1.4.7 • Published 1 year ago
@leather-wallet/ui v1.4.7
UI
This package contains Leather Wallet's UI library. It is intended for use in applications that are using panda css.
Setup
To setup in your application you need to:
- install panda-css
- setup panda css and configure it to acknowledge the library code
- configure webpack to load the files correctly
Panda configuration
Specify the library as part of the panda.config
include
:
include: [
'./node_modules/@leather-wallet/ui/dist-all/src/**/*.{js,jsx,ts,tsx}',
'./src/**/*.{js,jsx,ts,tsx}',
],
Webpack configuration
Alias
react
andreact-dom
to avoid react errors.Configure your
module
to handlejsx
files
export const config = {
...
module: {
resolve: {
...
alias: {
'leather-styles': path.resolve('leather-styles'),
'react': path.resolve('./node_modules/react'),
'react-dom': path.resolve('./node_modules/react-dom')
},
...
rules: [
...
{
test: /\.(js)$/,
include: [/node_modules\/@cteic\/ui/],
loader: 'esbuild-loader',
options: { tsconfig: './tsconfig.json', loader: 'jsx',target: 'es2020' },
},
License
1.4.7
1 year ago
1.4.6
1 year ago
1.4.5
1 year ago
1.4.4
1 year ago
1.4.3
1 year ago
1.4.2
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.2
1 year ago
1.2.2-beta.2
1 year ago
1.2.2-beta.1
1 year ago
1.2.2-beta.0
1 year ago