@espressif/dashboard-ui-components 1.14.0 → 1.15.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/.claude/rules/dashboard-ui-consumption.md +34 -0
- package/.cursor/rules/dashboard-ui-consumption.mdc +1 -0
- package/CHANGELOG.md +88 -1
- package/README.md +18 -2
- package/dist/common/index.d.ts +3 -3
- package/dist/common/my-account-menu/my-account-menu.js +3 -3
- package/dist/components/async-multi-select/async-multi-select.js +4 -8
- package/dist/components/async-multi-select/index.d.ts +5 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/bottom-sheet/_hooks/use-sheet-drag.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +4 -1
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/flash-button.js +4 -4
- package/dist/components/cards/index.d.ts +1 -1
- package/dist/components/cards/section-card.js +2 -2
- package/dist/components/carousel/carousel.js +8 -4
- package/dist/components/carousel/index.d.ts +8 -0
- package/dist/components/combobox/index.d.ts +3 -1
- package/dist/components/coverflow/coverflow.js +3 -2
- package/dist/components/coverflow/index.d.ts +2 -0
- package/dist/components/data-table/data-table.js +8 -4
- package/dist/components/data-table/index.d.ts +5 -1
- package/dist/components/date-range-picker/date-range-picker.js +5 -5
- package/dist/components/date-range-picker/index.d.ts +9 -1
- package/dist/components/dialog/index.d.ts +3 -1
- package/dist/components/facet-filters/active-filters.js +2 -1
- package/dist/components/facet-filters/filter-group.js +2 -1
- package/dist/components/facet-filters/index.d.ts +4 -0
- package/dist/components/file-upload/file-upload.js +2 -2
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/horizontal-stepper/horizontal-stepper.js +2 -2
- package/dist/components/index.d.ts +5 -5
- package/dist/components/key-value-manager/index.d.ts +8 -0
- package/dist/components/key-value-manager/key-value-manager-table.js +4 -4
- package/dist/components/key-value-manager/key-value-manager.js +5 -1
- package/dist/components/key-value-manager/key-value-manager.props.js +5 -1
- package/dist/components/list-details/index.d.ts +1 -1
- package/dist/components/nav-bar/index.d.ts +19 -2
- package/dist/components/nav-bar/nav-bar-mobile-menu.js +4 -3
- package/dist/components/nav-bar/nav-bar.js +10 -7
- package/dist/components/sheet/index.d.ts +3 -1
- package/dist/components/sidebar/index.d.ts +13 -6
- package/dist/components/sidebar/sidebar.js +4 -2
- package/dist/components/simple-paginated-list/index.d.ts +11 -2
- package/dist/components/simple-paginated-list/simple-paginated-list.js +3 -3
- package/dist/components/stat-card/index.d.ts +2 -0
- package/dist/components/stat-card/stat-card.js +2 -2
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/tag.js +2 -2
- package/dist/components/tag-input/index.d.ts +5 -0
- package/dist/components/tag-input/tag-input.js +5 -3
- package/dist/components/transfer-list/index.d.ts +22 -2
- package/dist/components/transfer-list/transfer-list.js +30 -8
- package/dist/components/user-type-badge/index.d.ts +2 -0
- package/dist/components/user-type-badge/user-type-badge.js +3 -2
- package/dist/core/animate-ui/components/radix/dialog.js +2 -2
- package/dist/core/animate-ui/components/radix/sheet.js +3 -3
- package/dist/core/animate-ui/components/radix/sidebar.js +4 -4
- package/dist/core/animate-ui/components/radix/toggle-group.js +4 -4
- package/dist/core/animate-ui/primitives/animate/tooltip.js +3 -0
- package/dist/core/breadcrumb.js +2 -2
- package/dist/core/button/craft-button.js +4 -4
- package/dist/core/combobox/combobox.js +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/layouts/index.d.ts +81 -35
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +8 -2
- package/dist/layouts/shared/account-menu-props.js +3 -2
- package/dist/layouts/workspace-layout/account-menu/account-menu.js +19 -8
- package/dist/layouts/workspace-layout/breadcrumbs/workspace-breadcrumbs.js +14 -11
- package/dist/layouts/workspace-layout/header/header.js +3 -3
- package/dist/layouts/workspace-layout/workspace-layout.js +13 -5
- package/dist/{my-account-menu.props-C7DK71WC.d.ts → my-account-menu.props-V3kFdvCZ.d.ts} +2 -0
- package/dist/{section-card-DqQeQkzU.d.ts → section-card-Bs3sKQtv.d.ts} +6 -1
- package/dist/{types-CkXflqg7.d.ts → types-CoZOfz4S.d.ts} +12 -1
- package/dist/utils/color.js +10 -1
- package/dist/utils/index.d.ts +6 -1
- package/dist/utils/variant.js +38 -38
- package/package.json +4 -2
- package/src/styles/colors.css +23 -2
package/dist/utils/variant.js
CHANGED
|
@@ -48,13 +48,13 @@ var VARIANT_GRADIENT_BACKDROP_BASE = "pointer-events-none absolute inset-0 -z-10
|
|
|
48
48
|
var VARIANT_GRADIENT_HOVER_OVERLAY_CLASS = cn("opacity-0 transition-opacity ease-in-out group-hover:opacity-100", VARIANT_GRADIENT_DURATION_CLASS);
|
|
49
49
|
/** Transparent frame + text/icon tint — gradients paint on {@link PRESET_GRADIENT_BACKDROP} layers. */
|
|
50
50
|
var PRESET_GRADIENT_FRAME = {
|
|
51
|
-
primary: "border border-primary/20 bg-transparent text-primary [&>svg]:text-primary",
|
|
51
|
+
primary: "border border-primary/20 bg-transparent text-primary-text [&>svg]:text-primary-text",
|
|
52
52
|
secondary: "border border-secondary/20 bg-transparent text-secondary [&>svg]:text-secondary",
|
|
53
53
|
info: "border border-info/20 bg-transparent text-info [&>svg]:text-info",
|
|
54
|
-
warning: "border border-warning/20 bg-transparent text-warning [&>svg]:text-warning",
|
|
54
|
+
warning: "border border-warning/20 bg-transparent text-warning-text [&>svg]:text-warning-text",
|
|
55
55
|
error: "border border-error/20 bg-transparent text-error [&>svg]:text-error",
|
|
56
56
|
success: "border border-success/20 bg-transparent text-success [&>svg]:text-success",
|
|
57
|
-
disabled: "border border-disabled/20 bg-transparent text-disabled [&>svg]:text-disabled",
|
|
57
|
+
disabled: "border border-disabled/20 bg-transparent text-disabled-text [&>svg]:text-disabled-text",
|
|
58
58
|
gray: "border border-gray/20 bg-transparent text-gray [&>svg]:text-gray",
|
|
59
59
|
mist: "border border-mist-border bg-transparent text-mist-foreground [&>svg]:text-mist-foreground"
|
|
60
60
|
};
|
|
@@ -123,14 +123,14 @@ function arbitraryGradientBackgroundImage(color, emphasis) {
|
|
|
123
123
|
var PRESET_VARIANT_STYLES = {
|
|
124
124
|
primary: {
|
|
125
125
|
soft: {
|
|
126
|
-
container: "border border-primary/10 bg-primary/5 text-primary [&>svg]:text-primary",
|
|
127
|
-
foreground: "text-primary",
|
|
128
|
-
description: "text-primary"
|
|
126
|
+
container: "border border-primary/10 bg-primary/5 text-primary-text [&>svg]:text-primary-text",
|
|
127
|
+
foreground: "text-primary-text",
|
|
128
|
+
description: "text-primary-text"
|
|
129
129
|
},
|
|
130
130
|
outline: {
|
|
131
|
-
container: "bg-transparent border border-primary/50 dark:border-primary/30 text-primary [&>svg]:text-primary",
|
|
132
|
-
foreground: "text-primary",
|
|
133
|
-
description: "text-primary"
|
|
131
|
+
container: "bg-transparent border border-primary/50 dark:border-primary/30 text-primary-text [&>svg]:text-primary-text",
|
|
132
|
+
foreground: "text-primary-text",
|
|
133
|
+
description: "text-primary-text"
|
|
134
134
|
},
|
|
135
135
|
solid: {
|
|
136
136
|
container: "border border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",
|
|
@@ -139,13 +139,13 @@ var PRESET_VARIANT_STYLES = {
|
|
|
139
139
|
},
|
|
140
140
|
gradient: {
|
|
141
141
|
container: "",
|
|
142
|
-
foreground: "text-primary",
|
|
143
|
-
description: "text-primary"
|
|
142
|
+
foreground: "text-primary-text",
|
|
143
|
+
description: "text-primary-text"
|
|
144
144
|
},
|
|
145
145
|
glow: {
|
|
146
|
-
container: "border border-primary/15 bg-primary/4 text-primary shadow-glow shadow-primary/45 [&>svg]:text-primary",
|
|
147
|
-
foreground: "text-primary",
|
|
148
|
-
description: "text-primary"
|
|
146
|
+
container: "border border-primary/15 bg-primary/4 text-primary-text shadow-glow shadow-primary/45 [&>svg]:text-primary-text",
|
|
147
|
+
foreground: "text-primary-text",
|
|
148
|
+
description: "text-primary-text"
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
secondary: {
|
|
@@ -204,29 +204,29 @@ var PRESET_VARIANT_STYLES = {
|
|
|
204
204
|
},
|
|
205
205
|
warning: {
|
|
206
206
|
soft: {
|
|
207
|
-
container: "border border-warning/10 bg-warning/5 text-warning [&>svg]:text-warning",
|
|
208
|
-
foreground: "text-warning",
|
|
209
|
-
description: "text-warning"
|
|
207
|
+
container: "border border-warning/10 bg-warning/5 text-warning-text [&>svg]:text-warning-text",
|
|
208
|
+
foreground: "text-warning-text",
|
|
209
|
+
description: "text-warning-text"
|
|
210
210
|
},
|
|
211
211
|
outline: {
|
|
212
|
-
container: "bg-transparent border border-warning/50 dark:border-warning/30 text-warning [&>svg]:text-warning",
|
|
213
|
-
foreground: "text-warning",
|
|
214
|
-
description: "text-warning"
|
|
212
|
+
container: "bg-transparent border border-warning/50 dark:border-warning/30 text-warning-text [&>svg]:text-warning-text",
|
|
213
|
+
foreground: "text-warning-text",
|
|
214
|
+
description: "text-warning-text"
|
|
215
215
|
},
|
|
216
216
|
solid: {
|
|
217
|
-
container: "border border-transparent bg-warning text-warning-foreground [&>svg]:text-warning-foreground",
|
|
217
|
+
container: "border border-transparent bg-warning-solid text-warning-foreground [&>svg]:text-warning-foreground",
|
|
218
218
|
foreground: "text-warning-foreground",
|
|
219
219
|
description: "text-warning-foreground"
|
|
220
220
|
},
|
|
221
221
|
gradient: {
|
|
222
222
|
container: "",
|
|
223
|
-
foreground: "text-warning",
|
|
224
|
-
description: "text-warning"
|
|
223
|
+
foreground: "text-warning-text",
|
|
224
|
+
description: "text-warning-text"
|
|
225
225
|
},
|
|
226
226
|
glow: {
|
|
227
|
-
container: "border border-warning/15 bg-warning/4 text-warning shadow-glow shadow-warning/45 [&>svg]:text-warning",
|
|
228
|
-
foreground: "text-warning",
|
|
229
|
-
description: "text-warning"
|
|
227
|
+
container: "border border-warning/15 bg-warning/4 text-warning-text shadow-glow shadow-warning/45 [&>svg]:text-warning-text",
|
|
228
|
+
foreground: "text-warning-text",
|
|
229
|
+
description: "text-warning-text"
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
error: {
|
|
@@ -285,29 +285,29 @@ var PRESET_VARIANT_STYLES = {
|
|
|
285
285
|
},
|
|
286
286
|
disabled: {
|
|
287
287
|
soft: {
|
|
288
|
-
container: "border border-disabled/10 bg-disabled/5 text-disabled [&>svg]:text-disabled",
|
|
289
|
-
foreground: "text-disabled",
|
|
290
|
-
description: "text-disabled"
|
|
288
|
+
container: "border border-disabled/10 bg-disabled/5 text-disabled-text [&>svg]:text-disabled-text",
|
|
289
|
+
foreground: "text-disabled-text",
|
|
290
|
+
description: "text-disabled-text"
|
|
291
291
|
},
|
|
292
292
|
outline: {
|
|
293
|
-
container: "bg-transparent border border-disabled/50 dark:border-disabled/30 text-disabled [&>svg]:text-disabled",
|
|
294
|
-
foreground: "text-disabled",
|
|
295
|
-
description: "text-disabled"
|
|
293
|
+
container: "bg-transparent border border-disabled/50 dark:border-disabled/30 text-disabled-text [&>svg]:text-disabled-text",
|
|
294
|
+
foreground: "text-disabled-text",
|
|
295
|
+
description: "text-disabled-text"
|
|
296
296
|
},
|
|
297
297
|
solid: {
|
|
298
|
-
container: "border border-transparent bg-disabled text-disabled-foreground [&>svg]:text-disabled-foreground",
|
|
298
|
+
container: "border border-transparent bg-disabled-solid text-disabled-foreground [&>svg]:text-disabled-foreground",
|
|
299
299
|
foreground: "text-disabled-foreground",
|
|
300
300
|
description: "text-disabled-foreground"
|
|
301
301
|
},
|
|
302
302
|
gradient: {
|
|
303
303
|
container: "",
|
|
304
|
-
foreground: "text-disabled",
|
|
305
|
-
description: "text-disabled"
|
|
304
|
+
foreground: "text-disabled-text",
|
|
305
|
+
description: "text-disabled-text"
|
|
306
306
|
},
|
|
307
307
|
glow: {
|
|
308
|
-
container: "border border-disabled/15 bg-disabled/4 text-disabled shadow-glow shadow-disabled/45 [&>svg]:text-disabled",
|
|
309
|
-
foreground: "text-disabled",
|
|
310
|
-
description: "text-disabled"
|
|
308
|
+
container: "border border-disabled/15 bg-disabled/4 text-disabled-text shadow-glow shadow-disabled/45 [&>svg]:text-disabled-text",
|
|
309
|
+
foreground: "text-disabled-text",
|
|
310
|
+
description: "text-disabled-text"
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
gray: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@espressif/dashboard-ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Reusable React UI components, page layouts, and utilities — Espressif's dashboard design system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -145,7 +145,9 @@
|
|
|
145
145
|
"dev:demo": "cd demo && npm run dev",
|
|
146
146
|
"build:demo": "cd demo && npm run build",
|
|
147
147
|
"deploy:demo": "bash scripts/deploy-demo.sh",
|
|
148
|
-
"release": "bash scripts/release.sh"
|
|
148
|
+
"release": "bash scripts/release.sh",
|
|
149
|
+
"release:active": "node scripts/active-release-branch.mjs",
|
|
150
|
+
"task:start": "node scripts/task-start.mjs"
|
|
149
151
|
},
|
|
150
152
|
"overrides": {
|
|
151
153
|
"esbuild": "^0.28.1"
|
package/src/styles/colors.css
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
--color-primary-light: #b9ebff;
|
|
12
12
|
--color-primary-dark: #000064;
|
|
13
13
|
--color-primary-foreground: #ffffff;
|
|
14
|
+
/* Text in primary on light surfaces and primary tints: the brand blue itself
|
|
15
|
+
is 4.0:1 on a /5 tint, under WCAG AA's 4.5:1. Fills keep --color-primary. */
|
|
16
|
+
--color-primary-text: #0065d6;
|
|
14
17
|
|
|
15
18
|
/* ─── Brand: Secondary ─── */
|
|
16
19
|
--color-secondary: #2a5a9a;
|
|
@@ -47,6 +50,13 @@
|
|
|
47
50
|
--color-warning-light: #fef9c3;
|
|
48
51
|
--color-warning-dark: #854d0e;
|
|
49
52
|
--color-warning-foreground: #ffffff;
|
|
53
|
+
/* Text in warning on light surfaces and warning tints (the amber itself is
|
|
54
|
+
2.4:1 there). Fills keep --color-warning. */
|
|
55
|
+
--color-warning-text: #8d6700;
|
|
56
|
+
/* A solid warning fill that carries text (solid variant, Button, Avatar…):
|
|
57
|
+
a deeper gold, so white text on it reaches 4.6:1 (2.7:1 on the amber).
|
|
58
|
+
Tints, borders, bars and charts keep --color-warning. */
|
|
59
|
+
--color-warning-solid: #956f00;
|
|
50
60
|
|
|
51
61
|
/* ─── Status: Success ─── */
|
|
52
62
|
--color-success: #007406;
|
|
@@ -63,6 +73,11 @@
|
|
|
63
73
|
/* ─── Status: Disabled ─── */
|
|
64
74
|
--color-disabled: #9e9e9e;
|
|
65
75
|
--color-disabled-foreground: #ffffff;
|
|
76
|
+
/* Text in disabled (a "Disabled" status, an outside-month day) on light
|
|
77
|
+
surfaces and disabled tints (the grey itself is 2.4:1 there). */
|
|
78
|
+
--color-disabled-text: #6d6d6d;
|
|
79
|
+
/* A solid disabled fill that carries text: white on it reaches 4.6:1. */
|
|
80
|
+
--color-disabled-solid: #757575;
|
|
66
81
|
|
|
67
82
|
/* ─── Neutral: Gray (darker than disabled for non-disabled UI) ─── */
|
|
68
83
|
--color-gray: #333333;
|
|
@@ -71,7 +86,7 @@
|
|
|
71
86
|
/* ─── Neutral: Mist ─── */
|
|
72
87
|
--color-mist: #F3F5F7;
|
|
73
88
|
--color-mist-foreground: #1F2937;
|
|
74
|
-
--color-mist-secondary: #
|
|
89
|
+
--color-mist-secondary: #5a616f;
|
|
75
90
|
--color-mist-border: #D9DEE5;
|
|
76
91
|
|
|
77
92
|
/* ─── Destructive (alias → error) ─── */
|
|
@@ -233,6 +248,7 @@
|
|
|
233
248
|
--color-primary-light: #b9ebff;
|
|
234
249
|
--color-primary-dark: #000064;
|
|
235
250
|
--color-primary-foreground: #000071;
|
|
251
|
+
--color-primary-text: var(--color-primary);
|
|
236
252
|
|
|
237
253
|
/* Brand: Secondary */
|
|
238
254
|
--color-secondary: #a5dbff;
|
|
@@ -260,7 +276,9 @@
|
|
|
260
276
|
--color-warning-light: #fef08a;
|
|
261
277
|
--color-warning-dark: #a16207;
|
|
262
278
|
--color-warning-foreground: #422006;
|
|
263
|
-
|
|
279
|
+
--color-warning-text: var(--color-warning);
|
|
280
|
+
--color-warning-solid: var(--color-warning);
|
|
281
|
+
|
|
264
282
|
--color-success: #69f991;
|
|
265
283
|
--color-success-light: #b5fcc3;
|
|
266
284
|
--color-success-dark: #002100;
|
|
@@ -273,6 +291,9 @@
|
|
|
273
291
|
/* Disabled */
|
|
274
292
|
--color-disabled: #616161;
|
|
275
293
|
--color-disabled-foreground: #e0e0e0;
|
|
294
|
+
/* The fill grey is 3.2:1 as text on dark tints. */
|
|
295
|
+
--color-disabled-text: #7b7b7b;
|
|
296
|
+
--color-disabled-solid: var(--color-disabled);
|
|
276
297
|
|
|
277
298
|
/* Neutral: Gray (lighter than disabled fill for contrast on dark surfaces) */
|
|
278
299
|
--color-gray: #b0b0b0;
|