@enonic/ui 1.0.5 → 1.1.0
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 +78 -64
- package/dist/enonic-ui.cjs +1 -1
- package/dist/enonic-ui.es.js +119 -202
- package/dist/styles/preset.css +0 -12
- package/dist/styles/style.css +3 -1
- package/dist/styles/tokens.css +0 -10
- package/dist/types/components/selectable-list-item/selectable-list-item.d.ts +1 -1
- package/dist/types/components/tab/tab.d.ts +12 -0
- package/dist/types/components/toolbar/index.d.ts +1 -1
- package/dist/types/components/toolbar/toolbar.d.ts +0 -19
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/providers/tab-provider.d.ts +2 -0
- package/dist/types/providers/toolbar-provider.d.ts +25 -0
- package/dist/types/stories/contrast.d.ts +22 -0
- package/package.json +44 -75
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic/ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Enonic UI Component Library",
|
|
5
5
|
"author": "Enonic",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,19 +51,22 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"class-variance-authority": "~0.7.1",
|
|
53
53
|
"clsx": "~2.1.1",
|
|
54
|
-
"
|
|
54
|
+
"lucide-react": "^1.16.0",
|
|
55
|
+
"tailwind-merge": "~3.6.0"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"@radix-ui/react-slot": "^1.2.0",
|
|
58
|
-
"focus-trap-react": "^
|
|
59
|
-
"lucide-react": ">=0.500.0",
|
|
59
|
+
"focus-trap-react": "^12.0.0",
|
|
60
60
|
"preact": ">=10.0.0",
|
|
61
61
|
"react": "^19.0.0",
|
|
62
62
|
"react-dom": "^19.0.0",
|
|
63
63
|
"react-virtuoso": "^4.0.0",
|
|
64
|
-
"tw-animate-css": "^1.
|
|
64
|
+
"tw-animate-css": "^1.4.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
|
+
"focus-trap-react": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
67
70
|
"preact": {
|
|
68
71
|
"optional": true
|
|
69
72
|
},
|
|
@@ -81,68 +84,36 @@
|
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
"devDependencies": {
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"rollup-plugin-visualizer": "~6.0.5",
|
|
111
|
-
"size-limit": "~12.0.0",
|
|
112
|
-
"storybook": "~10.1.6",
|
|
113
|
-
"tailwindcss": "~4.1.17",
|
|
114
|
-
"terser": "~5.44.1",
|
|
115
|
-
"tw-animate-css": "~1.4.0",
|
|
116
|
-
"typescript": "~5.9.3",
|
|
117
|
-
"typescript-eslint": "~8.49.0",
|
|
118
|
-
"vite": "~7.2.7",
|
|
119
|
-
"vite-plugin-dts": "~4.5.4",
|
|
120
|
-
"vite-plugin-environment": "~1.1.3"
|
|
121
|
-
},
|
|
122
|
-
"browserslist": {
|
|
123
|
-
"production": [
|
|
124
|
-
">0.2%",
|
|
125
|
-
"not dead",
|
|
126
|
-
"not op_mini all"
|
|
127
|
-
],
|
|
128
|
-
"development": [
|
|
129
|
-
"last 1 chrome version",
|
|
130
|
-
"last 1 firefox version",
|
|
131
|
-
"last 1 safari version"
|
|
132
|
-
]
|
|
87
|
+
"@preact/preset-vite": "~2.10.6",
|
|
88
|
+
"@radix-ui/react-slot": "^1.3.3",
|
|
89
|
+
"@size-limit/preset-small-lib": "~13.0.3",
|
|
90
|
+
"@storybook/addon-a11y": "~10.5.5",
|
|
91
|
+
"@storybook/addon-docs": "~10.5.5",
|
|
92
|
+
"@storybook/addon-themes": "~10.5.5",
|
|
93
|
+
"@storybook/preact-vite": "~10.5.5",
|
|
94
|
+
"@tailwindcss/vite": "~4.3.3",
|
|
95
|
+
"@types/node": "~24.13.3",
|
|
96
|
+
"@types/react": "~19.2.18",
|
|
97
|
+
"@types/react-dom": "~19.2.4",
|
|
98
|
+
"@typescript/typescript6": "~6.0.2",
|
|
99
|
+
"focus-trap-react": "^12.0.3",
|
|
100
|
+
"lucide-preact": "~1.28.0",
|
|
101
|
+
"react-virtuoso": "^4.18.11",
|
|
102
|
+
"rollup-plugin-visualizer": "~7.0.1",
|
|
103
|
+
"size-limit": "~13.0.3",
|
|
104
|
+
"storybook": "~10.5.5",
|
|
105
|
+
"tailwindcss": "~4.3.3",
|
|
106
|
+
"terser": "~5.49.0",
|
|
107
|
+
"tw-animate-css": "^1.4.0",
|
|
108
|
+
"typescript": "~7.0.2",
|
|
109
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@^0.2.7",
|
|
110
|
+
"vite-plugin-dts": "~5.0.3",
|
|
111
|
+
"vite-plugin-environment": "~1.1.3",
|
|
112
|
+
"vite-plus": "^0.2.7"
|
|
133
113
|
},
|
|
134
114
|
"engines": {
|
|
135
115
|
"node": ">=24.16.0",
|
|
136
|
-
"pnpm": ">=11.
|
|
137
|
-
},
|
|
138
|
-
"lint-staged": {
|
|
139
|
-
"*.{ts,tsx}": [
|
|
140
|
-
"biome check --write --unsafe --formatter-enabled=true --no-errors-on-unmatched",
|
|
141
|
-
"eslint --cache --fix --no-warn-ignored --concurrency auto"
|
|
142
|
-
],
|
|
143
|
-
"*.{json,css}": [
|
|
144
|
-
"biome check --write --unsafe --no-errors-on-unmatched"
|
|
145
|
-
]
|
|
116
|
+
"pnpm": ">=11.4.0"
|
|
146
117
|
},
|
|
147
118
|
"size-limit": [
|
|
148
119
|
{
|
|
@@ -165,21 +136,19 @@
|
|
|
165
136
|
"scripts": {
|
|
166
137
|
"build": "pnpm clean && pnpm build:ui",
|
|
167
138
|
"build:ui": "pnpm run /^build:ui:.*$/",
|
|
168
|
-
"build:ui:lib": "
|
|
169
|
-
"build:ui:css": "
|
|
139
|
+
"build:ui:lib": "vp build --config vite.config.ts",
|
|
140
|
+
"build:ui:css": "vp build --config vite.config.css.ts",
|
|
170
141
|
"build:storybook": "storybook build",
|
|
171
142
|
"build:all": "pnpm build && pnpm build:storybook",
|
|
172
143
|
"dev": "storybook dev -p 6006",
|
|
173
144
|
"clean": "rm -rf dist coverage reports storybook-static",
|
|
174
|
-
"check": "
|
|
175
|
-
"check:fix": "
|
|
176
|
-
"typecheck": "
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"format": "biome format --write .",
|
|
182
|
-
"format:check": "biome format .",
|
|
145
|
+
"check": "vp check && tsc --build --noEmit",
|
|
146
|
+
"check:fix": "vp check --fix && tsc --build --noEmit",
|
|
147
|
+
"typecheck": "tsc --build --noEmit",
|
|
148
|
+
"lint": "vp lint",
|
|
149
|
+
"lint:fix": "vp lint --fix",
|
|
150
|
+
"format": "vp fmt",
|
|
151
|
+
"format:check": "vp fmt --check",
|
|
183
152
|
"test": "exit 0",
|
|
184
153
|
"test:ci": "exit 0",
|
|
185
154
|
"release:dry": "pnpm publish --dry-run --no-git-checks",
|