@espressif/dashboard-ui-components 1.12.0 → 1.14.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.
Files changed (192) hide show
  1. package/.claude/rules/dashboard-ui-consumption.md +63 -2
  2. package/.cursor/rules/dashboard-ui-consumption.mdc +61 -3
  3. package/CHANGELOG.md +265 -0
  4. package/README.md +59 -8
  5. package/dist/{alert.props-CcKo49Rb.d.ts → alert.props-BuLuWmXA.d.ts} +3 -3
  6. package/dist/common/copyright-card/copyright-card.js +1 -1
  7. package/dist/common/footer-card/footer-card.js +2 -2
  8. package/dist/common/index.d.ts +3 -0
  9. package/dist/common/my-account-menu/my-account-menu.js +2 -2
  10. package/dist/common/page-loader/page-loader.js +4 -1
  11. package/dist/common/profile-card/profile-card.js +2 -2
  12. package/dist/components/accordion/accordion.js +6 -11
  13. package/dist/components/alert/index.d.ts +5 -5
  14. package/dist/components/anchored-panel/anchored-panel.js +4 -4
  15. package/dist/components/async-multi-select/async-multi-select.js +8 -8
  16. package/dist/components/badge/index.d.ts +1 -1
  17. package/dist/components/bottom-sheet/_hooks/use-sheet-drag.js +112 -0
  18. package/dist/components/bottom-sheet/bottom-sheet.js +84 -0
  19. package/dist/components/bottom-sheet/index.d.ts +50 -0
  20. package/dist/components/bottom-sheet/index.js +3 -0
  21. package/dist/components/bubble/bubble.js +1 -1
  22. package/dist/components/calendar/calendar.js +5 -5
  23. package/dist/components/cards/animated-card/animated-card.js +1 -1
  24. package/dist/components/cards/basic-details-card.js +2 -2
  25. package/dist/components/cards/collapsible-card.js +1 -1
  26. package/dist/components/cards/index.d.ts +2 -2
  27. package/dist/components/cards/no-data-card/no-data-card.js +2 -2
  28. package/dist/components/cards/section-card.js +49 -41
  29. package/dist/components/cards/simple-card.js +2 -5
  30. package/dist/components/category-card/category-card.js +2 -2
  31. package/dist/components/chart/chart.js +4 -4
  32. package/dist/components/chart/donut-chart.js +1 -1
  33. package/dist/components/chart/treemap-chart.js +1 -1
  34. package/dist/components/choice-card/choice-card.js +3 -3
  35. package/dist/components/code-editor/code-editor.js +4 -3
  36. package/dist/components/data-table/table-header.js +1 -1
  37. package/dist/components/date-range-picker/date-range-picker.js +3 -3
  38. package/dist/components/dynamic-list/dynamic-list.js +14 -13
  39. package/dist/components/dynamic-list/index.d.ts +1 -1
  40. package/dist/components/error-display/full-size-error/full-size-error.js +2 -2
  41. package/dist/components/expandable-text/expandable-text-overlay.js +1 -1
  42. package/dist/components/facet-filters/filter-group.js +2 -2
  43. package/dist/components/feature-grid/feature-grid.js +3 -3
  44. package/dist/components/file-input/file-input.js +8 -8
  45. package/dist/components/file-upload/file-upload.js +4 -4
  46. package/dist/components/floating-window/_hooks/use-drag-move.js +1 -0
  47. package/dist/components/floating-window/_hooks/use-resize.js +133 -0
  48. package/dist/components/floating-window/floating-window.js +67 -40
  49. package/dist/components/floating-window/index.d.ts +21 -2
  50. package/dist/components/fullscreen-dialog/fullscreen-dialog.js +1 -1
  51. package/dist/components/gradient-ring-button/_hooks/use-ring-geometry.js +116 -0
  52. package/dist/components/gradient-ring-button/gradient-ring-button.js +44 -0
  53. package/dist/components/gradient-ring-button/gradient-ring.js +77 -0
  54. package/dist/components/gradient-ring-button/index.d.ts +66 -0
  55. package/dist/components/gradient-ring-button/index.js +3 -0
  56. package/dist/components/horizontal-stepper/horizontal-stepper.js +2 -6
  57. package/dist/components/horizontal-stepper/index.d.ts +2 -2
  58. package/dist/components/icon-avatar/index.d.ts +3 -3
  59. package/dist/components/icon-text-action-card/index.d.ts +4 -4
  60. package/dist/components/index.d.ts +14 -8
  61. package/dist/components/index.js +15 -6
  62. package/dist/components/key-value-manager/key-value-manager-add-popover.js +1 -1
  63. package/dist/components/key-value-manager/key-value-manager-table.js +1 -1
  64. package/dist/components/keyframes/index.d.ts +53 -0
  65. package/dist/components/keyframes/index.js +3 -0
  66. package/dist/components/keyframes/keyframes-motion.js +23 -0
  67. package/dist/components/keyframes/keyframes.js +37 -0
  68. package/dist/components/link/link.js +7 -7
  69. package/dist/components/list/list-item.utils.js +5 -4
  70. package/dist/components/list/list.js +1 -1
  71. package/dist/components/list-details/index.d.ts +2 -2
  72. package/dist/components/markdown-content/markdown-content.components.js +2 -2
  73. package/dist/components/media-card/media-card-reveal.js +2 -2
  74. package/dist/components/media-card/media-card.js +2 -2
  75. package/dist/components/monospace-content/index.d.ts +4 -4
  76. package/dist/components/monospace-content/monospace-content.js +9 -11
  77. package/dist/components/nav-bar/nav-bar-mobile-menu.js +3 -3
  78. package/dist/components/nav-bar/nav-bar.js +4 -4
  79. package/dist/components/notice-strip/notice-strip.js +1 -1
  80. package/dist/components/option-card-group/option-card-group.js +2 -2
  81. package/dist/components/overflow-badge-list/index.d.ts +2 -2
  82. package/dist/components/overflow-badge-list/overflow-badge-list.js +3 -3
  83. package/dist/components/page-banner/page-banner.js +1 -1
  84. package/dist/components/page-container/page-container.js +1 -1
  85. package/dist/components/pagination/pagination.js +1 -1
  86. package/dist/components/progress-bar/progress-bar.js +2 -2
  87. package/dist/components/qr-code/index.d.ts +26 -0
  88. package/dist/components/qr-code/index.js +2 -0
  89. package/dist/components/qr-code/qr-code.js +69 -0
  90. package/dist/components/radio-group/radio-group.js +3 -3
  91. package/dist/components/range-field/index.d.ts +45 -0
  92. package/dist/components/range-field/index.js +2 -0
  93. package/dist/components/range-field/range-field.js +161 -0
  94. package/dist/components/readout/readout.js +1 -1
  95. package/dist/components/requirement-list/requirement-list.js +5 -10
  96. package/dist/components/reveal/index.d.ts +6 -3
  97. package/dist/components/reveal/reveal.js +7 -4
  98. package/dist/components/scrollable-sections/scrollable-sections.js +1 -1
  99. package/dist/components/search-box/index.d.ts +3 -1
  100. package/dist/components/search-box/search-box.js +7 -12
  101. package/dist/components/search-field-shell.js +8 -8
  102. package/dist/components/selectable-card-list/selectable-card-list-shared.js +6 -6
  103. package/dist/components/showcase-card/index.d.ts +14 -3
  104. package/dist/components/showcase-card/showcase-card.js +43 -2
  105. package/dist/components/sidebar/sidebar.js +13 -15
  106. package/dist/components/simple-clickable-card/index.d.ts +4 -4
  107. package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +19 -23
  108. package/dist/components/simple-info-card/index.d.ts +3 -3
  109. package/dist/components/simple-list/index.d.ts +1 -1
  110. package/dist/components/simple-list/simple-list.js +8 -8
  111. package/dist/components/simple-paginated-list/simple-paginated-list.js +1 -4
  112. package/dist/components/stat-card/stat-card.js +7 -13
  113. package/dist/components/status-badge/index.d.ts +3 -3
  114. package/dist/components/status-badge/status-badge.js +4 -4
  115. package/dist/components/status-card-list/status-card-list.js +6 -6
  116. package/dist/components/step-tabs/index.d.ts +1 -1
  117. package/dist/components/tag/index.d.ts +1 -1
  118. package/dist/components/tag/tag.js +4 -4
  119. package/dist/components/tag-input/tag-input.js +12 -12
  120. package/dist/components/timeline/timeline.js +2 -2
  121. package/dist/components/toast/index.d.ts +1 -1
  122. package/dist/components/toast/toast.js +2 -2
  123. package/dist/components/toolbar/index.d.ts +5 -2
  124. package/dist/components/toolbar/toolbar-button.js +1 -1
  125. package/dist/components/toolbar/toolbar.js +9 -3
  126. package/dist/components/trace/index.d.ts +49 -0
  127. package/dist/components/trace/index.js +2 -0
  128. package/dist/components/trace/trace.js +109 -0
  129. package/dist/components/transfer-list/transfer-list.js +2 -2
  130. package/dist/components/typography/index.d.ts +12 -3
  131. package/dist/components/typography/typography-variants.js +98 -13
  132. package/dist/components/typography/typography.js +4 -2
  133. package/dist/components/user-type-badge/user-type-badge.js +4 -4
  134. package/dist/components/vertical-stepper/index.d.ts +2 -2
  135. package/dist/components/vertical-stepper/vertical-stepper.js +18 -11
  136. package/dist/core/alert.js +3 -3
  137. package/dist/core/animate-ui/components/animate/code-header.js +1 -1
  138. package/dist/core/animate-ui/components/animate/code.js +1 -1
  139. package/dist/core/animate-ui/components/animate/tabs.js +6 -6
  140. package/dist/core/animate-ui/components/animate/tooltip.js +1 -1
  141. package/dist/core/animate-ui/components/base/progress.js +2 -2
  142. package/dist/core/animate-ui/components/radix/accordion.js +2 -2
  143. package/dist/core/animate-ui/components/radix/dialog.js +2 -2
  144. package/dist/core/animate-ui/components/radix/dropdown-menu.js +6 -6
  145. package/dist/core/animate-ui/components/radix/sheet.js +2 -2
  146. package/dist/core/animate-ui/components/radix/sidebar.js +8 -8
  147. package/dist/core/animate-ui/components/radix/toggle.js +1 -1
  148. package/dist/core/badge.js +1 -1
  149. package/dist/core/breadcrumb.js +1 -1
  150. package/dist/core/button/button.js +2 -2
  151. package/dist/core/button-group.js +1 -1
  152. package/dist/core/button.js +2 -2
  153. package/dist/core/card.js +2 -2
  154. package/dist/core/combobox/combobox.js +3 -3
  155. package/dist/core/command.js +5 -5
  156. package/dist/core/field-label-row.js +4 -4
  157. package/dist/core/form.js +2 -2
  158. package/dist/core/index.d.ts +1 -1
  159. package/dist/core/input/input.js +11 -11
  160. package/dist/core/input-otp/input-otp.js +12 -12
  161. package/dist/core/label.js +1 -1
  162. package/dist/core/select.js +6 -6
  163. package/dist/core/separator.js +1 -1
  164. package/dist/core/table.js +2 -2
  165. package/dist/core/textarea/textarea.js +9 -9
  166. package/dist/{icon-avatar.props-RYtw2eSW.d.ts → icon-avatar.props-BJe0-vva.d.ts} +1 -1
  167. package/dist/{icon-text-action-card.props-B2ggncUK.d.ts → icon-text-action-card.props-BU7yFi2Q.d.ts} +2 -2
  168. package/dist/index.d.ts +14 -8
  169. package/dist/index.js +16 -7
  170. package/dist/layouts/entry-layout/entry-layout.js +1 -1
  171. package/dist/layouts/index.d.ts +21 -6
  172. package/dist/layouts/index.js +1 -1
  173. package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +10 -18
  174. package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +35 -7
  175. package/dist/layouts/workspace-layout/footer/footer.js +1 -1
  176. package/dist/markdown/index.d.ts +4 -4
  177. package/dist/{section-card-B7c5uc08.d.ts → section-card-DqQeQkzU.d.ts} +1 -1
  178. package/dist/{simple-clickable-card.props-BrPCw7CR.d.ts → simple-clickable-card.props-BhhotZMp.d.ts} +2 -2
  179. package/dist/{status-badge.props-lKlEOfRt.d.ts → status-badge.props-BVe8CmQZ.d.ts} +1 -1
  180. package/dist/styles/type-scale.js +153 -0
  181. package/dist/tailwind-preset.js +120 -1
  182. package/dist/toast/index.d.ts +1 -1
  183. package/dist/utils/cn.js +16 -5
  184. package/dist/utils/index.d.ts +31 -2
  185. package/dist/utils/index.js +2 -1
  186. package/dist/utils/variant.js +47 -47
  187. package/dist/{variant-D81RhpbR.d.ts → variant-DjdaxfIA.d.ts} +6 -1
  188. package/dist/{vertical-stepper.props-BXYcbW70.d.ts → vertical-stepper.props-DONJJXIy.d.ts} +1 -0
  189. package/package.json +9 -1
  190. package/src/styles/theme.css +23 -3
  191. package/src/styles/type-scale.css +152 -0
  192. package/tailwind.preset.ts +23 -0
@@ -125,81 +125,81 @@ var PRESET_VARIANT_STYLES = {
125
125
  soft: {
126
126
  container: "border border-primary/10 bg-primary/5 text-primary [&>svg]:text-primary",
127
127
  foreground: "text-primary",
128
- description: "text-primary/80"
128
+ description: "text-primary"
129
129
  },
130
130
  outline: {
131
131
  container: "bg-transparent border border-primary/50 dark:border-primary/30 text-primary [&>svg]:text-primary",
132
132
  foreground: "text-primary",
133
- description: "text-primary/80"
133
+ description: "text-primary"
134
134
  },
135
135
  solid: {
136
136
  container: "border border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",
137
137
  foreground: "text-primary-foreground",
138
- description: "text-primary-foreground/80"
138
+ description: "text-primary-foreground"
139
139
  },
140
140
  gradient: {
141
141
  container: "",
142
142
  foreground: "text-primary",
143
- description: "text-primary/60"
143
+ description: "text-primary"
144
144
  },
145
145
  glow: {
146
146
  container: "border border-primary/15 bg-primary/4 text-primary shadow-glow shadow-primary/45 [&>svg]:text-primary",
147
147
  foreground: "text-primary",
148
- description: "text-primary/80"
148
+ description: "text-primary"
149
149
  }
150
150
  },
151
151
  secondary: {
152
152
  soft: {
153
153
  container: "border border-secondary/10 bg-secondary/5 text-secondary [&>svg]:text-secondary",
154
154
  foreground: "text-secondary",
155
- description: "text-secondary/80"
155
+ description: "text-secondary"
156
156
  },
157
157
  outline: {
158
158
  container: "bg-transparent border border-secondary/50 dark:border-secondary/30 text-secondary [&>svg]:text-secondary",
159
159
  foreground: "text-secondary",
160
- description: "text-secondary/80"
160
+ description: "text-secondary"
161
161
  },
162
162
  solid: {
163
163
  container: "border border-transparent bg-secondary text-secondary-foreground [&>svg]:text-secondary-foreground",
164
164
  foreground: "text-secondary-foreground",
165
- description: "text-secondary-foreground/80"
165
+ description: "text-secondary-foreground"
166
166
  },
167
167
  gradient: {
168
168
  container: "",
169
169
  foreground: "text-secondary",
170
- description: "text-secondary/60"
170
+ description: "text-secondary"
171
171
  },
172
172
  glow: {
173
173
  container: "border border-secondary/15 bg-secondary/4 text-secondary shadow-glow shadow-secondary/45 [&>svg]:text-secondary",
174
174
  foreground: "text-secondary",
175
- description: "text-secondary/80"
175
+ description: "text-secondary"
176
176
  }
177
177
  },
178
178
  info: {
179
179
  soft: {
180
180
  container: "border border-info/10 bg-info/5 text-info [&>svg]:text-info",
181
181
  foreground: "text-info",
182
- description: "text-info/80"
182
+ description: "text-info"
183
183
  },
184
184
  outline: {
185
185
  container: "bg-transparent border border-info/50 dark:border-info/30 text-info [&>svg]:text-info",
186
186
  foreground: "text-info",
187
- description: "text-info/80"
187
+ description: "text-info"
188
188
  },
189
189
  solid: {
190
190
  container: "border border-transparent bg-info text-info-foreground [&>svg]:text-info-foreground",
191
191
  foreground: "text-info-foreground",
192
- description: "text-info-foreground/80"
192
+ description: "text-info-foreground"
193
193
  },
194
194
  gradient: {
195
195
  container: "",
196
196
  foreground: "text-info",
197
- description: "text-info/60"
197
+ description: "text-info"
198
198
  },
199
199
  glow: {
200
200
  container: "border border-info/15 bg-info/4 text-info shadow-glow shadow-info/45 [&>svg]:text-info",
201
201
  foreground: "text-info",
202
- description: "text-info/80"
202
+ description: "text-info"
203
203
  }
204
204
  },
205
205
  warning: {
@@ -216,12 +216,12 @@ var PRESET_VARIANT_STYLES = {
216
216
  solid: {
217
217
  container: "border border-transparent bg-warning text-warning-foreground [&>svg]:text-warning-foreground",
218
218
  foreground: "text-warning-foreground",
219
- description: "text-warning-foreground/80"
219
+ description: "text-warning-foreground"
220
220
  },
221
221
  gradient: {
222
222
  container: "",
223
223
  foreground: "text-warning",
224
- description: "text-warning/60"
224
+ description: "text-warning"
225
225
  },
226
226
  glow: {
227
227
  container: "border border-warning/15 bg-warning/4 text-warning shadow-glow shadow-warning/45 [&>svg]:text-warning",
@@ -233,108 +233,108 @@ var PRESET_VARIANT_STYLES = {
233
233
  soft: {
234
234
  container: "border border-error/10 bg-error/5 text-error [&>svg]:text-error",
235
235
  foreground: "text-error",
236
- description: "text-error/80"
236
+ description: "text-error"
237
237
  },
238
238
  outline: {
239
239
  container: "bg-transparent border border-error/50 dark:border-error/30 text-error [&>svg]:text-error",
240
240
  foreground: "text-error",
241
- description: "text-error/80"
241
+ description: "text-error"
242
242
  },
243
243
  solid: {
244
244
  container: "border border-transparent bg-error text-error-foreground [&>svg]:text-error-foreground",
245
245
  foreground: "text-error-foreground",
246
- description: "text-error-foreground/80"
246
+ description: "text-error-foreground"
247
247
  },
248
248
  gradient: {
249
249
  container: "",
250
250
  foreground: "text-error",
251
- description: "text-error/60"
251
+ description: "text-error"
252
252
  },
253
253
  glow: {
254
254
  container: "border border-error/15 bg-error/4 text-error shadow-glow shadow-error/45 [&>svg]:text-error",
255
255
  foreground: "text-error",
256
- description: "text-error/80"
256
+ description: "text-error"
257
257
  }
258
258
  },
259
259
  success: {
260
260
  soft: {
261
261
  container: "border border-success/10 bg-success/5 text-success [&>svg]:text-success",
262
262
  foreground: "text-success",
263
- description: "text-success/80"
263
+ description: "text-success"
264
264
  },
265
265
  outline: {
266
266
  container: "bg-transparent border border-success/50 dark:border-success/30 text-success [&>svg]:text-success",
267
267
  foreground: "text-success",
268
- description: "text-success/80"
268
+ description: "text-success"
269
269
  },
270
270
  solid: {
271
271
  container: "border border-transparent bg-success text-success-foreground [&>svg]:text-success-foreground",
272
272
  foreground: "text-success-foreground",
273
- description: "text-success-foreground/80"
273
+ description: "text-success-foreground"
274
274
  },
275
275
  gradient: {
276
276
  container: "",
277
277
  foreground: "text-success",
278
- description: "text-success/60"
278
+ description: "text-success"
279
279
  },
280
280
  glow: {
281
281
  container: "border border-success/15 bg-success/4 text-success shadow-glow shadow-success/45 [&>svg]:text-success",
282
282
  foreground: "text-success",
283
- description: "text-success/80"
283
+ description: "text-success"
284
284
  }
285
285
  },
286
286
  disabled: {
287
287
  soft: {
288
288
  container: "border border-disabled/10 bg-disabled/5 text-disabled [&>svg]:text-disabled",
289
289
  foreground: "text-disabled",
290
- description: "text-disabled/80"
290
+ description: "text-disabled"
291
291
  },
292
292
  outline: {
293
293
  container: "bg-transparent border border-disabled/50 dark:border-disabled/30 text-disabled [&>svg]:text-disabled",
294
294
  foreground: "text-disabled",
295
- description: "text-disabled/80"
295
+ description: "text-disabled"
296
296
  },
297
297
  solid: {
298
298
  container: "border border-transparent bg-disabled text-disabled-foreground [&>svg]:text-disabled-foreground",
299
299
  foreground: "text-disabled-foreground",
300
- description: "text-disabled-foreground/80"
300
+ description: "text-disabled-foreground"
301
301
  },
302
302
  gradient: {
303
303
  container: "",
304
304
  foreground: "text-disabled",
305
- description: "text-disabled/60"
305
+ description: "text-disabled"
306
306
  },
307
307
  glow: {
308
308
  container: "border border-disabled/15 bg-disabled/4 text-disabled shadow-glow shadow-disabled/45 [&>svg]:text-disabled",
309
309
  foreground: "text-disabled",
310
- description: "text-disabled/80"
310
+ description: "text-disabled"
311
311
  }
312
312
  },
313
313
  gray: {
314
314
  soft: {
315
315
  container: "border border-gray/10 bg-gray/5 text-gray [&>svg]:text-gray",
316
316
  foreground: "text-gray",
317
- description: "text-gray/80"
317
+ description: "text-gray"
318
318
  },
319
319
  outline: {
320
320
  container: "bg-transparent border border-gray/50 dark:border-gray/30 text-gray [&>svg]:text-gray",
321
321
  foreground: "text-gray",
322
- description: "text-gray/80"
322
+ description: "text-gray"
323
323
  },
324
324
  solid: {
325
325
  container: "border border-transparent bg-gray text-gray-foreground [&>svg]:text-gray-foreground",
326
326
  foreground: "text-gray-foreground",
327
- description: "text-gray-foreground/80"
327
+ description: "text-gray-foreground"
328
328
  },
329
329
  gradient: {
330
330
  container: "",
331
331
  foreground: "text-gray",
332
- description: "text-gray/60"
332
+ description: "text-gray"
333
333
  },
334
334
  glow: {
335
335
  container: "border border-gray/15 bg-gray/4 text-gray shadow-glow shadow-gray/45 [&>svg]:text-gray",
336
336
  foreground: "text-gray",
337
- description: "text-gray/80"
337
+ description: "text-gray"
338
338
  }
339
339
  },
340
340
  mist: {
@@ -374,29 +374,29 @@ var SILVER_VARIANT_ROWS = {
374
374
  soft: {
375
375
  container: "border border-gray/5 bg-gray/2 text-gray [&>svg]:text-gray",
376
376
  foreground: "text-gray",
377
- description: "text-gray/80"
377
+ description: "text-gray"
378
378
  },
379
379
  outline: {
380
380
  /** No `border-*` here — the metallic ring is painted by `SilverMetallicBorderOverlay`. */
381
381
  container: "bg-transparent border-0 text-gray [&>svg]:text-gray",
382
382
  foreground: "text-gray",
383
- description: "text-gray/80"
383
+ description: "text-gray"
384
384
  },
385
385
  solid: {
386
386
  /** Metallic surface gradient layered on top of `bg-gray` via `SILVER_SOLID_SURFACE_STYLE`. */
387
387
  container: "border border-transparent bg-gray text-gray-foreground [&>svg]:text-gray-foreground",
388
388
  foreground: "text-gray-foreground",
389
- description: "text-gray-foreground/80"
389
+ description: "text-gray-foreground"
390
390
  },
391
391
  gradient: {
392
392
  container: "",
393
393
  foreground: "text-gray",
394
- description: "text-gray/60"
394
+ description: "text-gray"
395
395
  },
396
396
  glow: {
397
397
  container: "border border-gray/15 bg-gray/4 text-gray shadow-glow shadow-gray/45 [&>svg]:text-gray",
398
398
  foreground: "text-gray",
399
- description: "text-gray/80"
399
+ description: "text-gray"
400
400
  }
401
401
  };
402
402
  /**
@@ -411,7 +411,7 @@ function getArbitraryVariantStyles(variant, color) {
411
411
  container: cn("border [&>svg]:text-current", text.className),
412
412
  foreground: text.className ?? "",
413
413
  foregroundStyle: text.style,
414
- description: "text-current/80",
414
+ description: "text-current",
415
415
  containerStyle: {
416
416
  backgroundColor: `color-mix(in srgb, ${color} 5%, transparent)`,
417
417
  borderColor: `color-mix(in srgb, ${color} 10%, transparent)`,
@@ -422,7 +422,7 @@ function getArbitraryVariantStyles(variant, color) {
422
422
  container: cn("bg-transparent border [&>svg]:text-current", border.className, text.className),
423
423
  foreground: text.className ?? "",
424
424
  foregroundStyle: text.style,
425
- description: "text-current/80",
425
+ description: "text-current",
426
426
  containerStyle: {
427
427
  borderColor: `light-dark(
428
428
  color-mix(in srgb, ${color} 50%, transparent),
@@ -435,7 +435,7 @@ function getArbitraryVariantStyles(variant, color) {
435
435
  container: cn("border [&>svg]:text-current", text.className),
436
436
  foreground: text.className ?? "",
437
437
  foregroundStyle: text.style,
438
- description: "text-current/80",
438
+ description: "text-current",
439
439
  containerStyle: {
440
440
  backgroundColor: `color-mix(in oklab, ${color} 4%, transparent)`,
441
441
  borderColor: `color-mix(in oklab, ${color} 15%, transparent)`,
@@ -447,7 +447,7 @@ function getArbitraryVariantStyles(variant, color) {
447
447
  container: "border border-transparent text-[color:var(--espd-on-solid-foreground,#fff)] [&>svg]:text-[color:var(--espd-on-solid-foreground,#fff)]",
448
448
  foreground: "text-[color:var(--espd-on-solid-foreground,#fff)]",
449
449
  foregroundStyle: { color: ON_SOLID_FOREGROUND },
450
- description: "text-[color:var(--espd-on-solid-foreground,#fff)]/80",
450
+ description: "text-[color:var(--espd-on-solid-foreground,#fff)]",
451
451
  containerStyle: {
452
452
  backgroundColor: color,
453
453
  color: ON_SOLID_FOREGROUND
@@ -457,7 +457,7 @@ function getArbitraryVariantStyles(variant, color) {
457
457
  container: cn("relative isolate overflow-hidden group border [&>svg]:text-current", text.className),
458
458
  foreground: text.className ?? "",
459
459
  foregroundStyle: text.style,
460
- description: "text-current/60",
460
+ description: "text-current",
461
461
  containerStyle: {
462
462
  borderColor: `color-mix(in srgb, ${color} 20%, transparent)`,
463
463
  ...text.style
@@ -62,7 +62,12 @@ interface VariantStyles {
62
62
  /** Foreground/text classes (use on labels, icons not living inside the container). */
63
63
  foreground: string;
64
64
  foregroundStyle?: React.CSSProperties;
65
- /** Description/secondary text classes (slightly de-emphasized). */
65
+ /**
66
+ * Description/secondary text classes. Built-in variants draw it at the full
67
+ * strength of the variant's text colour (an alpha such as `/60` or `/80`
68
+ * dropped the text under WCAG AA's 4.5:1 on the tinted surfaces); it reads as
69
+ * secondary through its lighter weight, not a fainter colour.
70
+ */
66
71
  description: string;
67
72
  descriptionStyle?: React.CSSProperties;
68
73
  /**
@@ -12,6 +12,7 @@ type VerticalStepperSize = "sm" | "default" | "lg";
12
12
  interface VerticalStepperStep {
13
13
  id: string;
14
14
  title: string;
15
+ /** A second line under the title; an empty string draws none, and the title centres on the icon. */
15
16
  description: string;
16
17
  icon: ReactNode;
17
18
  status: VerticalStepperStepStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@espressif/dashboard-ui-components",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Reusable React UI components, page layouts, and utilities — Espressif's dashboard design system.",
5
5
  "keywords": [
6
6
  "react",
@@ -116,6 +116,7 @@
116
116
  "files": [
117
117
  "dist",
118
118
  "src/styles",
119
+ "!src/styles/**/*.ts",
119
120
  "src/assets",
120
121
  "tailwind.preset.ts",
121
122
  "LICENSE",
@@ -130,6 +131,7 @@
130
131
  "build": "node scripts/gen-entries.mjs && vite build --config vite.lib.config.ts && npm run build:types",
131
132
  "build:types": "node --max-old-space-size=4096 node_modules/tsup/dist/cli-default.js",
132
133
  "gen:entries": "node scripts/gen-entries.mjs",
134
+ "gen:type-scale": "node scripts/gen-type-scale.mjs",
133
135
  "dev:lib": "node scripts/gen-entries.mjs && npm run build:types && vite build --config vite.lib.config.ts --watch",
134
136
  "prepublishOnly": "npm run build",
135
137
  "typecheck": "tsc --noEmit",
@@ -150,6 +152,7 @@
150
152
  },
151
153
  "peerDependencies": {
152
154
  "@tanstack/react-table": "^8.0.0",
155
+ "qrcode": "^1.5.0",
153
156
  "react": "^18.0.0 || ^19.0.0",
154
157
  "react-dom": "^18.0.0 || ^19.0.0",
155
158
  "react-hook-form": "^7.0.0",
@@ -160,6 +163,9 @@
160
163
  "@tanstack/react-table": {
161
164
  "optional": true
162
165
  },
166
+ "qrcode": {
167
+ "optional": true
168
+ },
163
169
  "react-hook-form": {
164
170
  "optional": true
165
171
  }
@@ -206,11 +212,13 @@
206
212
  "@testing-library/react": "16.3.2",
207
213
  "@testing-library/user-event": "14.6.1",
208
214
  "@types/lodash-es": "^4.17.12",
215
+ "@types/qrcode": "1.5.6",
209
216
  "@types/react": "^19.0.0",
210
217
  "@types/react-dom": "^19.0.0",
211
218
  "esbuild": "^0.28.1",
212
219
  "eslint": "10.10.0",
213
220
  "jsdom": "29.1.1",
221
+ "qrcode": "1.5.4",
214
222
  "react": "^19.0.0",
215
223
  "react-dom": "^19.0.0",
216
224
  "react-hook-form": "^7.71.0",
@@ -17,6 +17,7 @@
17
17
  */
18
18
  @import "./colors.css";
19
19
  @import "./style-axes.css";
20
+ @import "./type-scale.css";
20
21
 
21
22
  @source "../../dist";
22
23
  /* Utilities the components generated before 1.12 and no longer use since
@@ -37,6 +38,9 @@
37
38
  @source inline("bg-black/50 bg-black/80");
38
39
  /* The NavBar details panel's shadow, now on the navbar elevation token (1.12). */
39
40
  @source inline("shadow-lg");
41
+ /* The raw text sizes (and the leading / weight classes that only went with
42
+ them) the components generated before they moved onto the type roles (1.14). */
43
+ @source inline("text-base text-lg text-[0.8rem] text-[11px] text-[16px] md:text-sm md:text-xs md:text-[13px] @[12rem]:text-base @[12rem]:text-sm @md:text-lg [&>div]:text-sm [&>span]:text-xs [&_[cmdk-group-heading]]:text-xs [&_code]:!text-[13px] [&_p]:leading-relaxed peer-focus:text-xs peer-placeholder-shown:text-sm file:text-sm file:font-medium data-[active=true]:font-medium leading-4 leading-[var(--tw-leading,var(--text-sm--line-height))]");
40
44
  /* Footer heights and the AppLogo cap before the shell / workspace-layout
41
45
  token names (1.12). */
42
46
  @source inline("h-[var(--espd-footer-height)] h-[var(--espd-hidden-footer-height)] max-h-[calc(var(--espd-header-height)-16px)]");
@@ -106,6 +110,12 @@
106
110
  at the call site. */
107
111
  --animate-throb: espd-throb 2s ease-out infinite;
108
112
  --animate-throb-ring: espd-throb-ring 2s ease-out infinite;
113
+ /* "This is the one": a soft primary tint that fades back, once, to the
114
+ element's own background (a panel showing what a click elsewhere opened,
115
+ even when it was already open). Background only, so it never moves
116
+ anything. Restart it by re-mounting or re-keying the element. Wrap it in
117
+ motion-safe: at the call site. */
118
+ --animate-highlight: espd-highlight 0.9s ease-out;
109
119
 
110
120
  /* Easings beyond Tailwind's three. `spring` overshoots and settles (a mark
111
121
  scaling up when it lights); `emphasized` is a fast-out, long-settle curve
@@ -354,6 +364,15 @@
354
364
  }
355
365
  }
356
366
 
367
+ /* Only a start: it fades to whatever background the element has. The tint is
368
+ mixed into the page background, not into transparent, so an opaque surface
369
+ (a sticky header over scrolled content) stays opaque the whole way. */
370
+ @keyframes espd-highlight {
371
+ from {
372
+ background-color: color-mix(in oklab, var(--color-primary) 18%, var(--color-background));
373
+ }
374
+ }
375
+
357
376
  @keyframes espd-throb {
358
377
  0%,
359
378
  70%,
@@ -580,11 +599,12 @@
580
599
  --text-sm: 0.875rem;
581
600
  --text-sm--line-height: 1.25rem;
582
601
 
583
- /** Every sidebar nav row: group labels and menu item labels share one scale. */
584
- --espd-sidebar-item-font-size: 0.875rem;
602
+ /** Every sidebar nav row: group labels and menu item labels share one scale,
603
+ the `label` role's size by default. */
604
+ --espd-sidebar-item-font-size: var(--espd-type-label-size);
585
605
  /** Collapsed-sidebar flyout: group title row. Matches the rows above by default;
586
606
  raise it if you want the flyout title to stand out from its submenu items. */
587
- --espd-sidebar-flyout-group-label-font-size: 0.875rem;
607
+ --espd-sidebar-flyout-group-label-font-size: var(--espd-type-label-size);
588
608
 
589
609
  /* ─── Semantic tokens beyond colour ───
590
610
  Each default reproduces the value the components used before it existed,
@@ -0,0 +1,152 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /* GENERATED from src/styles/type-scale.ts by `npm run gen:type-scale`.
8
+ Do not edit by hand: change the table there and run the script.
9
+
10
+ The type scale. A role is what a piece of text is (`body`, `caption`,
11
+ `label`, …); the same role is the same size in every component. Each role
12
+ has three tokens, --espd-type-<role>-size, -line and -weight: phone values
13
+ on :root, and the ones that change from 768px up redefined below. An app
14
+ changes a role by setting the token, in the same two places.
15
+
16
+ Components and apps size text with the `type-<role>` utilities, never a
17
+ raw `text-xs`…`text-9xl`. `leading-*` and `font-*` still win, in any
18
+ class order. */
19
+
20
+ :root {
21
+ --espd-type-display-size: var(--text-display);
22
+ --espd-type-display-line: var(--text-display--line-height);
23
+ --espd-type-display-weight: var(--text-display--font-weight);
24
+ --espd-type-lead-size: var(--text-lead);
25
+ --espd-type-lead-line: var(--text-lead--line-height);
26
+ --espd-type-lead-weight: 400;
27
+ --espd-type-title-size: 1.375rem;
28
+ --espd-type-title-line: 1.75rem;
29
+ --espd-type-title-weight: 700;
30
+ --espd-type-headline-size: 1.125rem;
31
+ --espd-type-headline-line: 1.5rem;
32
+ --espd-type-headline-weight: 600;
33
+ --espd-type-heading-size: 1rem;
34
+ --espd-type-heading-line: 1.375rem;
35
+ --espd-type-heading-weight: 600;
36
+ --espd-type-subheading-size: 0.875rem;
37
+ --espd-type-subheading-line: 1.25rem;
38
+ --espd-type-subheading-weight: 600;
39
+ --espd-type-prose-size: 1rem;
40
+ --espd-type-prose-line: 1.5rem;
41
+ --espd-type-prose-weight: 400;
42
+ --espd-type-body-size: 0.875rem;
43
+ --espd-type-body-line: 1.3125rem;
44
+ --espd-type-body-weight: 400;
45
+ --espd-type-secondary-size: 0.8125rem;
46
+ --espd-type-secondary-line: 1.125rem;
47
+ --espd-type-secondary-weight: 400;
48
+ --espd-type-caption-size: 0.75rem;
49
+ --espd-type-caption-line: 1rem;
50
+ --espd-type-caption-weight: 400;
51
+ --espd-type-label-size: 0.875rem;
52
+ --espd-type-label-line: 1.25rem;
53
+ --espd-type-label-weight: 500;
54
+ --espd-type-input-size: 1rem;
55
+ --espd-type-input-line: 1.5rem;
56
+ --espd-type-input-weight: 400;
57
+ --espd-type-code-size: 0.75rem;
58
+ --espd-type-code-line: 1.125rem;
59
+ --espd-type-code-weight: 400;
60
+ }
61
+
62
+ @media (width >= 48rem) {
63
+ :root {
64
+ --espd-type-title-size: 1.625rem;
65
+ --espd-type-title-line: 2rem;
66
+ --espd-type-headline-size: 1.25rem;
67
+ --espd-type-headline-line: 1.75rem;
68
+ --espd-type-prose-line: 1.625rem;
69
+ --espd-type-input-size: 0.875rem;
70
+ --espd-type-input-line: 1.25rem;
71
+ --espd-type-code-size: 0.8125rem;
72
+ --espd-type-code-line: 1.25rem;
73
+ }
74
+ }
75
+
76
+ @utility type-display {
77
+ font-size: var(--espd-type-display-size, clamp(2.5rem, 7vw, 5.5rem));
78
+ line-height: var(--tw-leading, var(--espd-type-display-line, 1.04));
79
+ font-weight: var(--tw-font-weight, var(--espd-type-display-weight, 800));
80
+ }
81
+
82
+ @utility type-lead {
83
+ font-size: var(--espd-type-lead-size, clamp(1.0625rem, 1.5vw, 1.3125rem));
84
+ line-height: var(--tw-leading, var(--espd-type-lead-line, 1.6));
85
+ font-weight: var(--tw-font-weight, var(--espd-type-lead-weight, 400));
86
+ }
87
+
88
+ @utility type-title {
89
+ font-size: var(--espd-type-title-size, 1.375rem);
90
+ line-height: var(--tw-leading, var(--espd-type-title-line, 1.75rem));
91
+ font-weight: var(--tw-font-weight, var(--espd-type-title-weight, 700));
92
+ }
93
+
94
+ @utility type-headline {
95
+ font-size: var(--espd-type-headline-size, 1.125rem);
96
+ line-height: var(--tw-leading, var(--espd-type-headline-line, 1.5rem));
97
+ font-weight: var(--tw-font-weight, var(--espd-type-headline-weight, 600));
98
+ }
99
+
100
+ @utility type-heading {
101
+ font-size: var(--espd-type-heading-size, 1rem);
102
+ line-height: var(--tw-leading, var(--espd-type-heading-line, 1.375rem));
103
+ font-weight: var(--tw-font-weight, var(--espd-type-heading-weight, 600));
104
+ }
105
+
106
+ @utility type-subheading {
107
+ font-size: var(--espd-type-subheading-size, 0.875rem);
108
+ line-height: var(--tw-leading, var(--espd-type-subheading-line, 1.25rem));
109
+ font-weight: var(--tw-font-weight, var(--espd-type-subheading-weight, 600));
110
+ }
111
+
112
+ @utility type-prose {
113
+ font-size: var(--espd-type-prose-size, 1rem);
114
+ line-height: var(--tw-leading, var(--espd-type-prose-line, 1.5rem));
115
+ font-weight: var(--tw-font-weight, var(--espd-type-prose-weight, 400));
116
+ }
117
+
118
+ @utility type-body {
119
+ font-size: var(--espd-type-body-size, 0.875rem);
120
+ line-height: var(--tw-leading, var(--espd-type-body-line, 1.3125rem));
121
+ font-weight: var(--tw-font-weight, var(--espd-type-body-weight, 400));
122
+ }
123
+
124
+ @utility type-secondary {
125
+ font-size: var(--espd-type-secondary-size, 0.8125rem);
126
+ line-height: var(--tw-leading, var(--espd-type-secondary-line, 1.125rem));
127
+ font-weight: var(--tw-font-weight, var(--espd-type-secondary-weight, 400));
128
+ }
129
+
130
+ @utility type-caption {
131
+ font-size: var(--espd-type-caption-size, 0.75rem);
132
+ line-height: var(--tw-leading, var(--espd-type-caption-line, 1rem));
133
+ font-weight: var(--tw-font-weight, var(--espd-type-caption-weight, 400));
134
+ }
135
+
136
+ @utility type-label {
137
+ font-size: var(--espd-type-label-size, 0.875rem);
138
+ line-height: var(--tw-leading, var(--espd-type-label-line, 1.25rem));
139
+ font-weight: var(--tw-font-weight, var(--espd-type-label-weight, 500));
140
+ }
141
+
142
+ @utility type-input {
143
+ font-size: var(--espd-type-input-size, 1rem);
144
+ line-height: var(--tw-leading, var(--espd-type-input-line, 1.5rem));
145
+ font-weight: var(--tw-font-weight, var(--espd-type-input-weight, 400));
146
+ }
147
+
148
+ @utility type-code {
149
+ font-size: var(--espd-type-code-size, 0.75rem);
150
+ line-height: var(--tw-leading, var(--espd-type-code-line, 1.125rem));
151
+ font-weight: var(--tw-font-weight, var(--espd-type-code-weight, 400));
152
+ }
@@ -1,4 +1,26 @@
1
1
  import type { Config } from 'tailwindcss'
2
+ import plugin from 'tailwindcss/plugin'
3
+ import {
4
+ TYPE_ROLES,
5
+ TYPE_SCALE_MD,
6
+ typeScaleMdTokens,
7
+ typeScaleRootTokens,
8
+ typeUtilityDeclarations,
9
+ } from './src/styles/type-scale'
10
+
11
+ /**
12
+ * The type scale for apps that use only this preset (no library stylesheet):
13
+ * the same `--espd-type-*` tokens and `type-<role>` utilities as
14
+ * `src/styles/type-scale.css`, from the same table, so every component keeps
15
+ * its text size there too.
16
+ */
17
+ const typeScale = plugin(({ addBase, addUtilities }) => {
18
+ addBase({
19
+ ':root': typeScaleRootTokens(),
20
+ [`@media (width >= ${TYPE_SCALE_MD})`]: { ':root': typeScaleMdTokens() },
21
+ })
22
+ addUtilities(Object.fromEntries(TYPE_ROLES.map((role) => [`.type-${role}`, typeUtilityDeclarations(role)])))
23
+ })
2
24
 
3
25
  const espPreset: Partial<Config> = {
4
26
  darkMode: 'class',
@@ -110,6 +132,7 @@ const espPreset: Partial<Config> = {
110
132
  },
111
133
  },
112
134
  },
135
+ plugins: [typeScale],
113
136
  }
114
137
 
115
138
  export default espPreset