From cc07e233bfb43c4914750cd40bd2fd725463dcca Mon Sep 17 00:00:00 2001 From: igorkishko Date: Mon, 28 Oct 2024 20:38:26 +0200 Subject: [PATCH] expose Header and WalletConnect css classnames to be able to override them in apps --- package.json | 2 +- rollup.config.js | 7 +++++++ .../ConnectWalletModal/ConnectWalletModal.module.css | 0 3 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 src/components/ConnectWalletModal/ConnectWalletModal.module.css diff --git a/package.json b/package.json index 5093236..e47019b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@airdao/ui-library", - "version": "2.0.0-beta.13", + "version": "2.0.0-beta.14", "types": "./dist/types.d.ts", "exports": { ".": { diff --git a/rollup.config.js b/rollup.config.js index 4713be2..5199716 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -35,8 +35,15 @@ export default [ typescript({ tsconfig: './tsconfig.json' }), terser({ keep_fnames: true }), postcss({ + exclude: ['src/components/Header/*', 'src/components/ConnectWallet/*'], modules: true, }), + postcss({ + include: ['src/components/Header/*', 'src/components/ConnectWallet/*'], + modules: { + generateScopedName: 'airdao___[folder]__[local]', + }, + }), image(), ], external: ['react', 'react-dom', 'process', 'viem', 'wagmi', 'ethers'], diff --git a/src/components/ConnectWalletModal/ConnectWalletModal.module.css b/src/components/ConnectWalletModal/ConnectWalletModal.module.css deleted file mode 100644 index e69de29..0000000