demio-ui 4.0.3 ā 4.0.5
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/README.md +122 -44
- package/dist/bundle-analysis.html +4949 -0
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +1 -7
- package/dist/cjs/types/src/icons/index.d.ts +10 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +1 -7
- package/dist/esm/types/src/icons/index.d.ts +10 -1
- package/dist/types.d.ts +1051 -854
- package/package.json +19 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "demio-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,12 +17,8 @@
|
|
|
17
17
|
"import": "./dist/esm/index.js",
|
|
18
18
|
"require": "./dist/cjs/index.js"
|
|
19
19
|
},
|
|
20
|
-
"./
|
|
21
|
-
"./package.json": "./package.json"
|
|
20
|
+
"./css": "./dist/cjs/index.css"
|
|
22
21
|
},
|
|
23
|
-
"sideEffects": [
|
|
24
|
-
"*.css"
|
|
25
|
-
],
|
|
26
22
|
"files": [
|
|
27
23
|
"dist/**/*",
|
|
28
24
|
"README.md",
|
|
@@ -32,14 +28,8 @@
|
|
|
32
28
|
"lint-all": "npm run lint && npm run stylelint",
|
|
33
29
|
"fix": "npm run lint:fix && npm run stylelint:fix && npx pretty-quick --staged",
|
|
34
30
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
35
|
-
"analyze": "
|
|
36
|
-
"
|
|
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",
|
|
31
|
+
"build:analyze": "npm run build && open dist/bundle-analysis.html",
|
|
32
|
+
"build:optimized": "NODE_ENV=production rollup -c --bundleConfigAsCjs",
|
|
43
33
|
"build-storybook": "storybook build",
|
|
44
34
|
"format": "prettier --write \"src/**/*.{ts, tsx, css}\"",
|
|
45
35
|
"lint": "eslint ./src/",
|
|
@@ -55,7 +45,11 @@
|
|
|
55
45
|
"preversion": "npm run lint-all",
|
|
56
46
|
"version": "npm run format && git add -A src",
|
|
57
47
|
"postversion": "git push && git push --tags --no-verify",
|
|
58
|
-
"chromatic": "chromatic --exit-zero-on-changes"
|
|
48
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
49
|
+
"bundle-size": "npm run build && echo 'Bundle size analysis:' && echo 'CJS bundle:' && du -h dist/cjs/index.js && echo 'ESM bundle:' && du -h dist/esm/index.js && echo 'CSS bundle:' && du -h dist/cjs/index.css && echo 'TypeScript definitions:' && du -h dist/types.d.ts",
|
|
50
|
+
"analyze-assets": "echo 'SVG Icons Analysis:' && find src/icons -name '*.svg' -exec ls -lh {} \\; | wc -l | xargs echo 'Total SVG files:' && echo 'SVG files by size:' && find src/icons -name '*.svg' -exec ls -lh {} \\; | sort -k5 -hr | head -10",
|
|
51
|
+
"analyze-all": "npm run bundle-size && echo '' && npm run analyze-assets",
|
|
52
|
+
"analyze-bundle": "node scripts/analyze-bundle.js"
|
|
59
53
|
},
|
|
60
54
|
"lint-staged": {
|
|
61
55
|
"*.{ts,tsx}": [
|
|
@@ -82,21 +76,12 @@
|
|
|
82
76
|
"@radix-ui/react-switch": "^1.0.3",
|
|
83
77
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
84
78
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"react-
|
|
90
|
-
"react-select": "^5.
|
|
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
|
-
}
|
|
79
|
+
"@storybook/preset-react-webpack": "^8.6.10",
|
|
80
|
+
"@storybook/react": "^8.6.10",
|
|
81
|
+
"@storybook/react-webpack5": "^8.6.10",
|
|
82
|
+
"classnames": "^2.5.1",
|
|
83
|
+
"react-easy-crop": "^5.0.8",
|
|
84
|
+
"react-select": "^5.8.0"
|
|
100
85
|
},
|
|
101
86
|
"devDependencies": {
|
|
102
87
|
"@babel/core": "^7.23.7",
|
|
@@ -104,7 +89,6 @@
|
|
|
104
89
|
"@babel/preset-react": "^7.23.3",
|
|
105
90
|
"@babel/preset-typescript": "^7.23.3",
|
|
106
91
|
"@chromatic-com/storybook": "^3.2.2",
|
|
107
|
-
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
108
92
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
109
93
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
110
94
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -119,9 +103,6 @@
|
|
|
119
103
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
120
104
|
"@storybook/cli": "^8.6.10",
|
|
121
105
|
"@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",
|
|
125
106
|
"@storybook/test": "^8.6.10",
|
|
126
107
|
"@storybook/theming": "^8.6.10",
|
|
127
108
|
"@svgr/rollup": "^8.1.0",
|
|
@@ -147,7 +128,6 @@
|
|
|
147
128
|
"jest-environment-jsdom": "^29.7.0",
|
|
148
129
|
"lint-staged": "^15.2.0",
|
|
149
130
|
"postcss-import": "^16.0.0",
|
|
150
|
-
"postcss-preset-env": "^10.2.4",
|
|
151
131
|
"prettier": "^3.3.3",
|
|
152
132
|
"pretty-quick": "^4.0.0",
|
|
153
133
|
"react": "^18.2.0",
|
|
@@ -155,20 +135,21 @@
|
|
|
155
135
|
"react-dom": "^18.2.0",
|
|
156
136
|
"resize-observer-polyfill": "^1.5.1",
|
|
157
137
|
"rollup": "^4.9.2",
|
|
158
|
-
"rollup-plugin-analyzer": "^4.0.0",
|
|
159
138
|
"rollup-plugin-dts": "^6.1.0",
|
|
160
139
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
161
140
|
"rollup-plugin-postcss": "^4.0.2",
|
|
162
|
-
"rollup-plugin-svgo": "^2.0.0",
|
|
163
141
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
164
142
|
"storybook": "^8.6.10",
|
|
165
143
|
"storybook-css-modules": "^1.0.8",
|
|
166
144
|
"stylelint": "^16.1.0",
|
|
167
145
|
"stylelint-config-standard": "^36.0.0",
|
|
168
|
-
"svgo": "^4.0.0",
|
|
169
146
|
"ts-node": "^10.9.2",
|
|
170
147
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
171
148
|
"tslib": "^2.6.2",
|
|
172
149
|
"typescript": "^5.5.4"
|
|
150
|
+
},
|
|
151
|
+
"peerDependencies": {
|
|
152
|
+
"react": "^18.2.0",
|
|
153
|
+
"react-dom": "^18.2.0"
|
|
173
154
|
}
|
|
174
155
|
}
|