demio-ui 2.7.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.7.0",
3
+ "version": "4.0.1",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,6 +11,18 @@
11
11
  "main": "dist/cjs/index.js",
12
12
  "module": "dist/esm/index.js",
13
13
  "types": "dist/types.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types.d.ts",
17
+ "import": "./dist/esm/index.js",
18
+ "require": "./dist/cjs/index.js"
19
+ },
20
+ "./dist/*": "./dist/*",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "sideEffects": [
24
+ "*.css"
25
+ ],
14
26
  "files": [
15
27
  "dist/**/*",
16
28
  "README.md",
@@ -20,6 +32,14 @@
20
32
  "lint-all": "npm run lint && npm run stylelint",
21
33
  "fix": "npm run lint:fix && npm run stylelint:fix && npx pretty-quick --staged",
22
34
  "build": "rollup -c --bundleConfigAsCjs",
35
+ "analyze": "ANALYZE_BUNDLE=true rollup -c --bundleConfigAsCjs && echo 'Bundle analysis complete! Check bundle-analysis.html'",
36
+ "analyze:size": "npm run build && ls -lh dist/",
37
+ "analyze:detailed": "ROLLUP_ANALYZE=detailed npm run build",
38
+ "build:treeshake": "ROLLUP_TREESHAKE=true npm run build",
39
+ "size-check": "npm run build && echo 'šŸ“¦ Bundle Sizes:' && ls -lh dist/ && echo '\nšŸ” For detailed analysis run: npm run analyze'",
40
+ "analyze:svg": "echo 'šŸ“Š SVG Analysis:' && find src/icons -name '*.svg' -exec wc -c {} + | tail -1 && echo 'Icons count:' && find src/icons -name '*.svg' | wc -l",
41
+ "optimize:svg": "npx svgo -f src/icons -o src/icons --config=svgo.config.js",
42
+ "prepack": "npm run build",
23
43
  "build-storybook": "storybook build",
24
44
  "format": "prettier --write \"src/**/*.{ts, tsx, css}\"",
25
45
  "lint": "eslint ./src/",
@@ -62,12 +82,21 @@
62
82
  "@radix-ui/react-switch": "^1.0.3",
63
83
  "@radix-ui/react-tabs": "^1.0.4",
64
84
  "@radix-ui/react-tooltip": "^1.0.7",
65
- "@storybook/preset-react-webpack": "^8.6.10",
66
- "@storybook/react": "^8.6.10",
67
- "@storybook/react-webpack5": "^8.6.10",
68
- "classnames": "^2.5.1",
69
- "react-easy-crop": "^5.0.8",
70
- "react-select": "^5.8.0"
85
+ "classnames": "^2.5.1"
86
+ },
87
+ "peerDependencies": {
88
+ "react": "^18.2.0",
89
+ "react-dom": "^18.2.0",
90
+ "react-select": "^5.0.0",
91
+ "react-easy-crop": "^5.0.0"
92
+ },
93
+ "peerDependenciesMeta": {
94
+ "react-easy-crop": {
95
+ "optional": true
96
+ },
97
+ "react-select": {
98
+ "optional": true
99
+ }
71
100
  },
72
101
  "devDependencies": {
73
102
  "@babel/core": "^7.23.7",
@@ -75,6 +104,7 @@
75
104
  "@babel/preset-react": "^7.23.3",
76
105
  "@babel/preset-typescript": "^7.23.3",
77
106
  "@chromatic-com/storybook": "^3.2.2",
107
+ "@fullhuman/postcss-purgecss": "^7.0.2",
78
108
  "@rollup/plugin-commonjs": "^25.0.7",
79
109
  "@rollup/plugin-node-resolve": "^15.2.3",
80
110
  "@rollup/plugin-terser": "^0.4.4",
@@ -89,6 +119,9 @@
89
119
  "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
90
120
  "@storybook/cli": "^8.6.10",
91
121
  "@storybook/manager-api": "^8.6.10",
122
+ "@storybook/preset-react-webpack": "^8.6.10",
123
+ "@storybook/react": "^8.6.10",
124
+ "@storybook/react-webpack5": "^8.6.10",
92
125
  "@storybook/test": "^8.6.10",
93
126
  "@storybook/theming": "^8.6.10",
94
127
  "@svgr/rollup": "^8.1.0",
@@ -114,6 +147,7 @@
114
147
  "jest-environment-jsdom": "^29.7.0",
115
148
  "lint-staged": "^15.2.0",
116
149
  "postcss-import": "^16.0.0",
150
+ "postcss-preset-env": "^10.2.4",
117
151
  "prettier": "^3.3.3",
118
152
  "pretty-quick": "^4.0.0",
119
153
  "react": "^18.2.0",
@@ -121,20 +155,20 @@
121
155
  "react-dom": "^18.2.0",
122
156
  "resize-observer-polyfill": "^1.5.1",
123
157
  "rollup": "^4.9.2",
158
+ "rollup-plugin-analyzer": "^4.0.0",
124
159
  "rollup-plugin-dts": "^6.1.0",
125
160
  "rollup-plugin-peer-deps-external": "^2.2.4",
126
161
  "rollup-plugin-postcss": "^4.0.2",
162
+ "rollup-plugin-svgo": "^2.0.0",
163
+ "rollup-plugin-visualizer": "^6.0.3",
127
164
  "storybook": "^8.6.10",
128
165
  "storybook-css-modules": "^1.0.8",
129
166
  "stylelint": "^16.1.0",
130
167
  "stylelint-config-standard": "^36.0.0",
168
+ "svgo": "^4.0.0",
131
169
  "ts-node": "^10.9.2",
132
170
  "tsconfig-paths-webpack-plugin": "^4.1.0",
133
171
  "tslib": "^2.6.2",
134
172
  "typescript": "^5.5.4"
135
- },
136
- "peerDependencies": {
137
- "react": "^18.2.0",
138
- "react-dom": "^18.2.0"
139
173
  }
140
174
  }