Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@leather-wallet/ui

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leather-wallet/ui

This package contains Leather Wallet's UI library. It is intended for use in applications that are using [panda css](https://panda-css.com/).

latest
npmnpm
Version
1.4.7
Version published
Weekly downloads
27
-32.5%
Maintainers
0
Weekly downloads
 
Created
Source

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 and react-dom to avoid react errors.

  • Configure your module to handle jsx 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

MIT © Leather Wallet LLC

⬅ Back

FAQs

Package last updated on 20 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts