|
3 | 3 | "version": "3.1.2", |
4 | 4 | "description": "UI components library which implements the Kleros design system.", |
5 | 5 | "source": "./src/lib/index.ts", |
6 | | - "main": "./dist/esm/ui-components-library.js", |
7 | | - "module": "./dist/esm/ui-components-library.js", |
| 6 | + "main": "./dist/index.js", |
| 7 | + "module": "./dist/index.js", |
8 | 8 | "types": "./dist/ui-components-library.d.ts", |
9 | | - "style": "./dist/esm/ui-components-library.css", |
| 9 | + "style": "./dist/assets/index.css", |
10 | 10 | "isLibrary": true, |
11 | 11 | "type": "module", |
12 | 12 | "browserslist": "> 0.5%, last 2 versions, not dead", |
|
15 | 15 | "license": "MIT", |
16 | 16 | "exports": { |
17 | 17 | ".": { |
18 | | - "import": "./dist/esm/ui-components-library.js", |
| 18 | + "import": "./dist/index.js", |
19 | 19 | "types": "./dist/ui-components-library.d.ts" |
20 | 20 | }, |
21 | | - "./style.css": "./dist/esm/ui-components-library.css", |
22 | | - "./theme.css": "./dist/theme/theme.css" |
| 21 | + "./style.css": "./dist/assets/index.css", |
| 22 | + "./theme.css": "./dist/assets/theme.css" |
23 | 23 | }, |
| 24 | + "sideEffects": [ |
| 25 | + "**/*.css" |
| 26 | + ], |
24 | 27 | "scripts": { |
25 | | - "build:theme": "vite build --config vite.config.theme.js", |
26 | | - "build": "vite build && yarn build:theme", |
| 28 | + "build": "vite build", |
27 | 29 | "build-storybook": "storybook build", |
28 | 30 | "check-style": "eslint 'src/**/*.{ts,tsx}'", |
29 | 31 | "check-types": "tsc --noEmit", |
|
49 | 51 | "@storybook/react-vite": "^8.6.4", |
50 | 52 | "@storybook/test": "^8.6.4", |
51 | 53 | "@tailwindcss/postcss": "^4.0.11", |
| 54 | + "@tailwindcss/vite": "^4.1.4", |
52 | 55 | "@types/node": "^22.13.10", |
53 | 56 | "@types/react": "^18.0.9", |
54 | 57 | "@types/react-dom": "^18.0.3", |
|
64 | 67 | "eslint-plugin-react-hooks": "^5.2.0", |
65 | 68 | "eslint-plugin-security": "^3.0.1", |
66 | 69 | "eslint-plugin-storybook": "^0.11.4", |
| 70 | + "glob": "^11.0.1", |
67 | 71 | "globals": "^16.0.0", |
68 | 72 | "husky": "^7.0.0", |
69 | 73 | "lint-staged": "^12.1.2", |
|
74 | 78 | "tailwindcss": "^4.0.11", |
75 | 79 | "typescript": "^5.8.2", |
76 | 80 | "vite": "^6.2.1", |
| 81 | + "vite-plugin-dts": "^4.5.3", |
| 82 | + "vite-plugin-lib-inject-css": "^2.2.2", |
77 | 83 | "vite-plugin-svgr": "^4.3.0" |
78 | 84 | }, |
79 | 85 | "peerDependencies": { |
|
85 | 91 | }, |
86 | 92 | "dependencies": { |
87 | 93 | "@internationalized/date": "^3.7.0", |
88 | | - "@tailwindcss/vite": "^4.0.12", |
89 | 94 | "bignumber.js": "^9.1.2", |
90 | 95 | "clsx": "^2.1.1", |
91 | 96 | "react": "^18.0.0", |
|
96 | 101 | "simplebar-react": "^2.3.6", |
97 | 102 | "tailwind-merge": "^3.0.2", |
98 | 103 | "tailwindcss-react-aria-components": "^2.0.0", |
99 | | - "usehooks-ts": "^2.9.1", |
100 | | - "vite-plugin-dts": "^4.5.3" |
| 104 | + "usehooks-ts": "^2.9.1" |
101 | 105 | }, |
102 | 106 | "lint-staged": { |
103 | 107 | "*.js": "eslint --cache --fix", |
|
0 commit comments