@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
@@ -93,10 +93,10 @@ var sizeStyles = {
93
93
  headerTriggerPad: "-my-3 py-3 pl-3",
94
94
  headerRightPad: "pl-3 pr-3",
95
95
  gap: "gap-2",
96
- primaryTypography: "text-xs font-semibold",
97
- secondaryTypography: "text-xs",
98
- primary: "text-xs font-semibold text-foreground",
99
- secondary: "text-xs text-muted-foreground",
96
+ primaryTypography: "type-heading",
97
+ secondaryTypography: "type-secondary",
98
+ primary: "type-heading text-foreground",
99
+ secondary: "type-secondary text-muted-foreground",
100
100
  icon: "h-[18px] w-[18px] shrink-0",
101
101
  chevron: "h-[18px] w-[18px]",
102
102
  collapseTrigger: "h-[18px] w-[18px] min-h-[18px] min-w-[18px] !p-0 [&_svg]:!h-[18px] [&_svg]:!w-[18px] [&_svg]:!min-h-0 [&_svg]:!min-w-0"
@@ -108,10 +108,10 @@ var sizeStyles = {
108
108
  headerTriggerPad: "-my-4 py-4 pl-4",
109
109
  headerRightPad: "pl-3 pr-4",
110
110
  gap: "gap-3",
111
- primaryTypography: "text-sm font-semibold",
112
- secondaryTypography: "text-sm",
113
- primary: "text-sm font-semibold text-foreground",
114
- secondary: "text-sm text-muted-foreground",
111
+ primaryTypography: "type-heading",
112
+ secondaryTypography: "type-secondary",
113
+ primary: "type-heading text-foreground",
114
+ secondary: "type-secondary text-muted-foreground",
115
115
  icon: "h-6 w-6 shrink-0",
116
116
  chevron: "h-6 w-6",
117
117
  collapseTrigger: "h-6 w-6 min-h-6 min-w-6 !p-0 [&_svg]:!h-6 [&_svg]:!w-6 [&_svg]:!min-h-0 [&_svg]:!min-w-0"
@@ -123,10 +123,10 @@ var sizeStyles = {
123
123
  headerTriggerPad: "-my-6 py-6 pl-6",
124
124
  headerRightPad: "pl-3 pr-6",
125
125
  gap: "gap-4",
126
- primaryTypography: "text-base font-semibold",
127
- secondaryTypography: "text-sm",
128
- primary: "text-base font-semibold text-foreground",
129
- secondary: "text-sm text-muted-foreground",
126
+ primaryTypography: "type-heading",
127
+ secondaryTypography: "type-secondary",
128
+ primary: "type-heading text-foreground",
129
+ secondary: "type-secondary text-muted-foreground",
130
130
  icon: "h-8 w-8 shrink-0",
131
131
  chevron: "h-8 w-8",
132
132
  collapseTrigger: "h-8 w-8 min-h-8 min-w-8 !p-0 [&_svg]:!h-8 [&_svg]:!w-8 [&_svg]:!min-h-0 [&_svg]:!min-w-0"
@@ -282,38 +282,46 @@ function SectionCard({ icon, primaryText, secondaryText, truncateSecondaryText =
282
282
  })
283
283
  })
284
284
  });
285
- const headerRight = hasHeaderRight ? /* @__PURE__ */ jsxs("div", {
286
- className: cn("flex items-center gap-2", HEADER_RIGHT_CLASS, s.headerRightPad),
287
- children: [actions, showCollapseIcon ? chevronButton : null]
285
+ const hasActions = hasRenderableContent(actions);
286
+ const actionsBox = hasActions ? /* @__PURE__ */ jsx("div", {
287
+ className: cn("flex items-center gap-2", HEADER_RIGHT_CLASS, s.headerRightPad, showCollapseIcon && "pr-0"),
288
+ children: actions
288
289
  }) : null;
289
- const header = expandOnHover ? /* @__PURE__ */ jsxs("div", {
290
- className: headerRowClass,
291
- children: [/* @__PURE__ */ jsx("button", {
290
+ function headerRowWith(main) {
291
+ if (!showCollapseIcon) return /* @__PURE__ */ jsxs("div", {
292
+ className: headerRowClass,
293
+ children: [main, actionsBox]
294
+ });
295
+ return /* @__PURE__ */ jsxs("div", {
296
+ className: cn("flex min-w-0 items-center", s.headerRowPadY),
297
+ children: [/* @__PURE__ */ jsxs("div", {
298
+ className: cn("flex min-w-0 flex-1 items-center justify-between", HEADER_WRAP_ROW_CLASS, s.headerRowGapY),
299
+ children: [main, actionsBox]
300
+ }), /* @__PURE__ */ jsx("div", {
301
+ className: cn("flex shrink-0 items-center", s.headerRightPad, hasActions && "pl-2"),
302
+ children: chevronButton
303
+ })]
304
+ });
305
+ }
306
+ const header = expandOnHover ? headerRowWith(/* @__PURE__ */ jsx("button", {
307
+ type: "button",
308
+ className: cn("section-card-header", "flex min-w-0 flex-1 items-center text-left rounded-md", headerMainPad, s.gap, "cursor-default outline-none", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),
309
+ "aria-expanded": hasBody ? hover.open : void 0,
310
+ "aria-controls": hasBody ? hoverBodyId : void 0,
311
+ onClick: hover.onHeaderClick,
312
+ children: headerMain
313
+ })) : allowCollapse ? headerRowWith(/* @__PURE__ */ jsx(CollapsibleTrigger, {
314
+ asChild: true,
315
+ children: /* @__PURE__ */ jsx("button", {
292
316
  type: "button",
293
- className: cn("section-card-header", "flex min-w-0 flex-1 items-center text-left rounded-md", headerMainPad, s.gap, "cursor-default outline-none", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),
294
- "aria-expanded": hasBody ? hover.open : void 0,
295
- "aria-controls": hasBody ? hoverBodyId : void 0,
296
- onClick: hover.onHeaderClick,
297
- children: headerMain
298
- }), headerRight]
299
- }) : allowCollapse ? /* @__PURE__ */ jsxs("div", {
300
- className: headerRowClass,
301
- children: [/* @__PURE__ */ jsx(CollapsibleTrigger, {
302
- asChild: true,
303
- children: /* @__PURE__ */ jsx("button", {
304
- type: "button",
305
- className: cn("section-card-header", "flex min-w-0 flex-1 items-center text-left rounded-md", headerMainPad, s.gap, "cursor-pointer outline-none transition-colors hover:bg-muted/50", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),
306
- "aria-label": toggleLabel,
307
- children: headerMain
308
- })
309
- }), headerRight]
310
- }) : /* @__PURE__ */ jsxs("div", {
311
- className: headerRowClass,
312
- children: [/* @__PURE__ */ jsx("div", {
313
- className: cn("section-card-header", "flex min-w-0 flex-1 items-center", s.gap, headerMainPad),
317
+ className: cn("section-card-header", "flex min-w-0 flex-1 items-center text-left rounded-md", headerMainPad, s.gap, "cursor-pointer outline-none transition-colors hover:bg-muted/50", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),
318
+ "aria-label": toggleLabel,
314
319
  children: headerMain
315
- }), headerRight]
316
- });
320
+ })
321
+ })) : headerRowWith(/* @__PURE__ */ jsx("div", {
322
+ className: cn("section-card-header", "flex min-w-0 flex-1 items-center", s.gap, headerMainPad),
323
+ children: headerMain
324
+ }));
317
325
  const body = hasBody ? /* @__PURE__ */ jsx("div", {
318
326
  className: cn("section-card-body", isHeaderRequired && "border-t border-border", variant === "outline" && "dark:border-border/45", fillHeight && "flex min-h-0 flex-1 flex-col", s.pad),
319
327
  children
@@ -12,11 +12,8 @@ var SimpleCard = React$1.forwardRef(({ noShadow, noBorder, transparent, title, d
12
12
  className: cn(noShadow && elevation === void 0 && "shadow-none", noBorder && border === void 0 && "border-0", transparent && "bg-transparent", className),
13
13
  children: [(title || description) && /* @__PURE__ */ jsxs(CardHeader, {
14
14
  className: "space-y-1",
15
- children: [title && /* @__PURE__ */ jsx(CardTitle, {
16
- className: "text-2xl",
17
- children: title
18
- }), description && /* @__PURE__ */ jsx(CardDescription, {
19
- className: "text-sm tracking-normal",
15
+ children: [title && /* @__PURE__ */ jsx(CardTitle, { children: title }), description && /* @__PURE__ */ jsx(CardDescription, {
16
+ className: "tracking-normal",
20
17
  children: description
21
18
  })]
22
19
  }), /* @__PURE__ */ jsx(CardContent, { children })]
@@ -65,13 +65,13 @@ var CategoryCard = React$1.forwardRef(({ icon, title, description, value, tags,
65
65
  /* @__PURE__ */ jsxs("span", {
66
66
  className: "flex min-w-0 flex-col gap-1",
67
67
  children: [/* @__PURE__ */ jsx("span", {
68
- className: "text-sm font-semibold text-foreground @[12rem]:text-base",
68
+ className: "type-heading text-foreground",
69
69
  children: truncateTitle ? /* @__PURE__ */ jsx(TruncatedLineWithTooltip, {
70
70
  tooltipContent: title,
71
71
  children: title
72
72
  }) : title
73
73
  }), description != null && /* @__PURE__ */ jsx("span", {
74
- className: cn("text-xs text-muted-foreground @[12rem]:text-sm", truncateDescription && "line-clamp-2"),
74
+ className: cn("type-body text-muted-foreground", truncateDescription && "line-clamp-2"),
75
75
  children: description
76
76
  })]
77
77
  }),
@@ -24,7 +24,7 @@ var ChartContainer = React$1.forwardRef(function ChartContainer({ id, className,
24
24
  ref,
25
25
  "data-slot": "chart",
26
26
  "data-chart": chartId,
27
- className: cn("flex w-full min-w-0 flex-col items-stretch aspect-video text-xs [&_.recharts-responsive-container]:min-h-0 [&_.recharts-responsive-container]:w-full [&_.recharts-responsive-container]:min-w-0 [&_.recharts-responsive-container]:flex-1 [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className),
27
+ className: cn("flex w-full min-w-0 flex-col items-stretch aspect-video type-caption [&_.recharts-responsive-container]:min-h-0 [&_.recharts-responsive-container]:w-full [&_.recharts-responsive-container]:min-w-0 [&_.recharts-responsive-container]:flex-1 [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className),
28
28
  ...props,
29
29
  children: [/* @__PURE__ */ jsx(ChartStyle, {
30
30
  id: chartId,
@@ -82,7 +82,7 @@ function ChartTooltipContent({ active, payload, className, indicator = "dot", hi
82
82
  if (!active || !payload?.length) return null;
83
83
  const nestLabel = payload.length === 1 && indicator !== "dot";
84
84
  return /* @__PURE__ */ jsxs("div", {
85
- className: cn("grid min-w-[10rem] items-start gap-2.5 rounded-[var(--espd-own-radius,var(--espd-radius-overlay,var(--radius-lg)))] border border-border/50 bg-background px-4 py-3 text-xs shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-overlay,var(--shadow-xl)))]", className),
85
+ className: cn("grid min-w-[10rem] items-start gap-2.5 rounded-[var(--espd-own-radius,var(--espd-radius-overlay,var(--radius-lg)))] border border-border/50 bg-background px-4 py-3 type-caption shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-overlay,var(--shadow-xl)))]", className),
86
86
  style: axes.style,
87
87
  children: [!nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("div", {
88
88
  className: "grid gap-2.5",
@@ -134,7 +134,7 @@ function ChartLegendContent({ className, hideIcon = false, payload, verticalAlig
134
134
  className: "h-4 w-4 shrink-0 rounded-sm",
135
135
  style: { backgroundColor: item.color }
136
136
  }), /* @__PURE__ */ jsx("span", {
137
- className: "text-sm font-normal",
137
+ className: "type-caption",
138
138
  children: itemConfig?.label
139
139
  })]
140
140
  }, index);
@@ -169,7 +169,7 @@ function ChartLegendList({ items, layout = "rows", columns = 2, value = "value",
169
169
  return /* @__PURE__ */ jsx("div", {
170
170
  "data-slot": "chart-legend",
171
171
  "data-layout": layout,
172
- className: cn("@container w-full min-w-0 text-sm", className),
172
+ className: cn("@container w-full min-w-0 type-caption", className),
173
173
  style,
174
174
  ...props,
175
175
  children: /* @__PURE__ */ jsx("div", {
@@ -67,7 +67,7 @@ function DonutLegend({ config, order }) {
67
67
  }));
68
68
  if (items.length === 0) return null;
69
69
  return /* @__PURE__ */ jsx("div", {
70
- className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-2 pt-3 text-sm",
70
+ className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-2 pt-3 type-caption",
71
71
  children: items.map(({ key, entry }) => {
72
72
  return /* @__PURE__ */ jsxs("div", {
73
73
  className: "flex items-center gap-1.5",
@@ -170,7 +170,7 @@ function TreemapLegend({ config, order, colorByKey }) {
170
170
  }));
171
171
  if (items.length === 0) return null;
172
172
  return /* @__PURE__ */ jsx("div", {
173
- className: "flex flex-wrap items-center justify-start gap-x-4 gap-y-2 pt-3 text-sm",
173
+ className: "flex flex-wrap items-center justify-start gap-x-4 gap-y-2 pt-3 type-caption",
174
174
  children: items.map(({ key, entry }) => {
175
175
  return /* @__PURE__ */ jsxs("div", {
176
176
  className: "flex items-center gap-1.5",
@@ -24,7 +24,7 @@ function Tick() {
24
24
  /** The lines under (or beside) the title: the meta, then the note in the primary colour. */
25
25
  function Lines({ meta, note, wrap, disabled, className }) {
26
26
  return /* @__PURE__ */ jsxs("span", {
27
- className: cn("flex min-w-0 flex-col gap-0.5 text-xs text-foreground-secondary", !wrap && "*:truncate", className),
27
+ className: cn("flex min-w-0 flex-col gap-0.5 type-secondary text-foreground-secondary", !wrap && "*:truncate", className),
28
28
  children: [meta, note && /* @__PURE__ */ jsx("span", {
29
29
  className: cn("font-medium", disabled ? "text-foreground-secondary" : "text-primary"),
30
30
  children: note
@@ -60,7 +60,7 @@ function ChoiceCard(props) {
60
60
  }), /* @__PURE__ */ jsxs("span", {
61
61
  className: "flex min-w-0 flex-1 flex-col justify-center gap-0.5 py-2.5 pr-9 pl-1",
62
62
  children: [/* @__PURE__ */ jsx("span", {
63
- className: "line-clamp-2 text-sm font-semibold text-foreground",
63
+ className: "line-clamp-2 type-heading text-foreground",
64
64
  children: title
65
65
  }), /* @__PURE__ */ jsx(Lines, {
66
66
  meta,
@@ -76,7 +76,7 @@ function ChoiceCard(props) {
76
76
  }), /* @__PURE__ */ jsx("span", {
77
77
  className: "relative block px-3 pt-1",
78
78
  children: /* @__PURE__ */ jsx("span", {
79
- className: "line-clamp-2 text-sm font-semibold text-foreground",
79
+ className: "line-clamp-2 type-heading text-foreground",
80
80
  children: title
81
81
  })
82
82
  })]
@@ -16,9 +16,10 @@ import { Braces } from "lucide-react";
16
16
  * the same grid cell, so any difference in font, size, spacing, padding or
17
17
  * wrapping shows up as a caret that drifts from the characters. Ligatures are
18
18
  * off because Shiki's token spans break them in the highlight layer but not
19
- * in the textarea. 16px below `md` stops iOS Safari zooming on focus.
19
+ * in the textarea. `type-input` is 16px below `md`, which stops iOS Safari
20
+ * zooming on focus; `leading-normal` gives both layers the same line height.
20
21
  */
21
- var layerClassName = "col-start-1 row-start-1 m-0 box-border border-0 p-4 font-mono text-[16px] leading-normal tracking-normal [font-variant-ligatures:none] md:text-[13px]";
22
+ var layerClassName = "col-start-1 row-start-1 m-0 box-border border-0 p-4 font-mono type-input leading-normal tracking-normal [font-variant-ligatures:none]";
22
23
  /** Highlight layer: Shiki's `<pre>` / `<code>` take their metrics from the layer. */
23
24
  var highlightClassName = "[&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:[font:inherit] [&_pre]:[white-space:inherit] [&_pre]:[overflow-wrap:inherit] [&_code]:[font:inherit]";
24
25
  /**
@@ -230,7 +231,7 @@ var CodeEditor = React$1.forwardRef(({ className, style, radius, border, lang =
230
231
  editor,
231
232
  errorContent != null && /* @__PURE__ */ jsx("div", {
232
233
  id: errorId,
233
- className: "text-sm text-destructive",
234
+ className: "type-caption text-destructive",
234
235
  children: errorContent
235
236
  })
236
237
  ]
@@ -10,7 +10,7 @@ function DataTableHeader({ headerGroups, showBorder = false, stickyColumns }) {
10
10
  children: headerGroups.map((headerGroup) => /* @__PURE__ */ jsx(TableRow, { children: headerGroup.headers.map((header, headerIndex) => {
11
11
  const sticky = stickyCellProps(stickyColumns, header.column.id, showBorder ? "headBordered" : "head");
12
12
  return /* @__PURE__ */ jsx(TableHead, {
13
- className: cn("text-sm text-gray-500 font-medium whitespace-nowrap", showBorder && headerIndex === 0 && "pl-4", sticky.className),
13
+ className: cn("type-label text-gray-500 whitespace-nowrap", showBorder && headerIndex === 0 && "pl-4", sticky.className),
14
14
  style: sticky.style,
15
15
  children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())
16
16
  }, header.id);
@@ -264,7 +264,7 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
264
264
  type: "button",
265
265
  onClick: () => handlePresetClick(id),
266
266
  onMouseEnter: () => setShowCalendar(false),
267
- className: cn("flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left text-sm hover:bg-accent", selectedPresetId === id && "font-medium"),
267
+ className: cn("flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left type-label font-normal hover:bg-accent", selectedPresetId === id && "font-medium"),
268
268
  children: [resolveLabel(id), selectedPresetId === id && /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 shrink-0 text-primary" })]
269
269
  }, id)),
270
270
  allowCustom && /* @__PURE__ */ jsxs(Fragment$1, { children: [showPresetRows && /* @__PURE__ */ jsx("div", { className: "mx-1 my-1 h-px bg-border" }), /* @__PURE__ */ jsxs("button", {
@@ -278,14 +278,14 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
278
278
  onPointerEnter: (event) => {
279
279
  if (event.pointerType === "mouse") openCalendarPanel();
280
280
  },
281
- className: cn("flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left text-sm hover:bg-accent", showCalendar && "bg-accent font-medium"),
281
+ className: cn("flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left type-label font-normal hover:bg-accent", showCalendar && "bg-accent font-medium"),
282
282
  children: [resolveLabel("custom"), /* @__PURE__ */ jsx(ChevronRightIcon, { className: cn("size-4 shrink-0 text-muted-foreground transition-transform duration-200", showCalendar && "rotate-90") })]
283
283
  })] }),
284
284
  showPresetRows && clearable && hasSelection && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: "mx-1 my-1 h-px bg-border" }), /* @__PURE__ */ jsxs("button", {
285
285
  type: "button",
286
286
  onClick: handleClear,
287
287
  onMouseEnter: () => setShowCalendar(false),
288
- className: "flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left text-sm text-muted-foreground hover:bg-accent",
288
+ className: "flex w-full items-center justify-between gap-6 px-3 py-1.5 text-left type-label font-normal text-muted-foreground hover:bg-accent",
289
289
  children: [clearLabel, /* @__PURE__ */ jsx(XIcon, { className: "size-4 shrink-0" })]
290
290
  })] })
291
291
  ]
@@ -164,13 +164,18 @@ function rowUsesTagsPropertyArray(key, value, rowMeta) {
164
164
  return isTagsPropertyKey(key) && isPlainStringArray(value) && !rowMeta?.valueRender && !rowMeta?.valueFormatter;
165
165
  }
166
166
  var CODE_DISPLAY_CLASSNAME = "min-w-0 w-full max-w-full max-h-[200px] text-start [&_pre]:text-start";
167
+ /**
168
+ * Text roles, the same at every `size` (size moves gaps, avatar and icon
169
+ * sizes only): the key is a field label, the value the muted line beside or
170
+ * under it.
171
+ */
172
+ var LABEL_TYPOGRAPHY = "type-label font-semibold";
173
+ var VALUE_TYPOGRAPHY = "type-secondary";
167
174
  var DYNAMIC_LIST_SIZE_STYLES = {
168
175
  sm: {
169
176
  listGap: "gap-4",
170
177
  rowGap: "gap-3",
171
178
  itemGap: "gap-1.5",
172
- labelTypography: "text-xs font-semibold",
173
- valueTypography: "text-xs",
174
179
  avatarSize: "h-8 w-8",
175
180
  avatarFallbackTypography: "text-[10px]",
176
181
  rowIcon: "h-3 w-3 shrink-0"
@@ -179,8 +184,6 @@ var DYNAMIC_LIST_SIZE_STYLES = {
179
184
  listGap: "gap-5",
180
185
  rowGap: "gap-4",
181
186
  itemGap: "gap-2",
182
- labelTypography: "text-sm font-semibold",
183
- valueTypography: "text-sm",
184
187
  avatarSize: "h-10 w-10",
185
188
  avatarFallbackTypography: "text-xs",
186
189
  rowIcon: "h-3.5 w-3.5 shrink-0"
@@ -189,8 +192,6 @@ var DYNAMIC_LIST_SIZE_STYLES = {
189
192
  listGap: "gap-6",
190
193
  rowGap: "gap-5",
191
194
  itemGap: "gap-3",
192
- labelTypography: "text-base font-semibold",
193
- valueTypography: "text-base",
194
195
  avatarSize: "h-12 w-12",
195
196
  avatarFallbackTypography: "text-sm",
196
197
  rowIcon: "h-4 w-4 shrink-0"
@@ -256,7 +257,7 @@ function wrapTypedValue(value, rowMeta, key, opts, effectiveType) {
256
257
  case "badge": return /* @__PURE__ */ jsx(Badge, {
257
258
  variant: "solid",
258
259
  color: "gray",
259
- className: cn("w-fit max-w-full self-start font-medium", DYNAMIC_LIST_SIZE_STYLES[opts.size].valueTypography),
260
+ className: cn("w-fit max-w-full self-start font-medium", VALUE_TYPOGRAPHY),
260
261
  children: base
261
262
  });
262
263
  case "info": return /* @__PURE__ */ jsx(Alert, {
@@ -396,10 +397,10 @@ function DynamicList({ items, meta, className, size = "default", labelClassName,
396
397
  className: cn("flex min-w-0 flex-1 flex-col sm:flex-row sm:gap-0", sizeStyles.itemGap, valueRowAlignStart ? "sm:items-start" : "sm:items-center"),
397
398
  style: splitStyle,
398
399
  children: [/* @__PURE__ */ jsx("span", {
399
- className: cn("truncate sm:flex-none sm:basis-[var(--dynamic-list-key-width)]", sizeStyles.labelTypography, labelClassName),
400
+ className: cn("truncate sm:flex-none sm:basis-[var(--dynamic-list-key-width)]", LABEL_TYPOGRAPHY, labelClassName),
400
401
  children: labelText
401
402
  }), /* @__PURE__ */ jsx("div", {
402
- className: cn("flex min-w-0 text-muted-foreground sm:flex-none sm:basis-[var(--dynamic-list-value-width)] sm:justify-end", sizeStyles.valueTypography, usesBadgeArrayLayout ? "items-start sm:pt-0.5 text-start" : "items-center"),
403
+ className: cn("flex min-w-0 text-muted-foreground sm:flex-none sm:basis-[var(--dynamic-list-value-width)] sm:justify-end", VALUE_TYPOGRAPHY, usesBadgeArrayLayout ? "items-start sm:pt-0.5 text-start" : "items-center"),
403
404
  children: /* @__PURE__ */ jsx("div", {
404
405
  className: cn("min-w-0 max-w-full", !usesBadgeArrayLayout && "sm:truncate sm:text-end", valueClassName),
405
406
  children: valueDisplay
@@ -411,11 +412,11 @@ function DynamicList({ items, meta, className, size = "default", labelClassName,
411
412
  if (!needsBlockValueLayout) return /* @__PURE__ */ jsx(BasicDetailsCard, {
412
413
  icon: hideIcon ? void 0 : rowIcon,
413
414
  primaryText: /* @__PURE__ */ jsx("span", {
414
- className: cn(sizeStyles.labelTypography, labelClassName),
415
+ className: cn(LABEL_TYPOGRAPHY, labelClassName),
415
416
  children: labelText
416
417
  }),
417
418
  secondaryText: /* @__PURE__ */ jsx("span", {
418
- className: cn(sizeStyles.valueTypography, valueClassName),
419
+ className: cn(VALUE_TYPOGRAPHY, valueClassName),
419
420
  children: valueDisplay
420
421
  })
421
422
  }, key);
@@ -430,10 +431,10 @@ function DynamicList({ items, meta, className, size = "default", labelClassName,
430
431
  }), /* @__PURE__ */ jsxs("div", {
431
432
  className: cn("flex min-w-0 flex-1 flex-col", sizeStyles.itemGap),
432
433
  children: [/* @__PURE__ */ jsx("span", {
433
- className: cn(sizeStyles.labelTypography, labelClassName),
434
+ className: cn(LABEL_TYPOGRAPHY, labelClassName),
434
435
  children: labelText
435
436
  }), /* @__PURE__ */ jsx("div", {
436
- className: cn("min-w-0", sizeStyles.valueTypography, valueClassName),
437
+ className: cn("min-w-0", VALUE_TYPOGRAPHY, valueClassName),
437
438
  children: valueDisplay
438
439
  })]
439
440
  })]
@@ -34,7 +34,7 @@ interface DynamicListProps {
34
34
  /** Optional per-item overrides keyed by `DynamicListEntry.key`. */
35
35
  meta?: Record<string, DynamicListMetaEntry>;
36
36
  className?: string;
37
- /** Overall list spacing and typography scale. Default: `"default"`. */
37
+ /** Overall list spacing (and the avatar size). Text keeps its type role at every size. Default: `"default"`. */
38
38
  size?: DynamicListSize;
39
39
  /** Extra classes for each row label. */
40
40
  labelClassName?: string;
@@ -6,11 +6,11 @@ function FullSizeError({ title, children, illustration }) {
6
6
  children: [
7
7
  illustration,
8
8
  title && /* @__PURE__ */ jsx("h3", {
9
- className: "text-lg font-semibold",
9
+ className: "type-headline",
10
10
  children: title
11
11
  }),
12
12
  /* @__PURE__ */ jsx("div", {
13
- className: "text-muted-foreground text-sm",
13
+ className: "type-body text-muted-foreground",
14
14
  children
15
15
  })
16
16
  ]
@@ -64,7 +64,7 @@ function ExpandableTextOverlay({ text, header, footer, closeLabel, origin, open,
64
64
  }),
65
65
  /* @__PURE__ */ jsx("p", {
66
66
  tabIndex: 0,
67
- className: "m-0 min-h-0 flex-1 overflow-y-auto overscroll-contain text-sm whitespace-pre-line text-foreground-secondary outline-none focus-visible:ring-2 focus-visible:ring-ring",
67
+ className: "m-0 min-h-0 flex-1 overflow-y-auto overscroll-contain type-body whitespace-pre-line text-foreground-secondary outline-none focus-visible:ring-2 focus-visible:ring-ring",
68
68
  children: text
69
69
  }),
70
70
  footer && /* @__PURE__ */ jsx("div", {
@@ -53,7 +53,7 @@ function FilterGroup({ group, selected, onToggle, order, animate, labels }) {
53
53
  /* @__PURE__ */ jsx("ul", {
54
54
  className: "m-0 flex list-none flex-col gap-1 p-0",
55
55
  children: view.visible.map((option) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("label", {
56
- className: "flex cursor-pointer items-center gap-2 rounded-md px-1 py-1 text-sm text-foreground hover:bg-accent",
56
+ className: "flex cursor-pointer items-center gap-2 rounded-md px-1 py-1 type-body text-foreground hover:bg-accent",
57
57
  children: [
58
58
  /* @__PURE__ */ jsx(Checkbox, {
59
59
  checked: selected.includes(option.value),
@@ -64,7 +64,7 @@ function FilterGroup({ group, selected, onToggle, order, animate, labels }) {
64
64
  children: option.label
65
65
  }),
66
66
  /* @__PURE__ */ jsx("span", {
67
- className: "font-mono text-xs text-foreground-muted",
67
+ className: "type-caption font-mono text-foreground-muted",
68
68
  children: option.count
69
69
  })
70
70
  ]
@@ -85,15 +85,15 @@ var FeatureGrid = React$1.forwardRef(function FeatureGrid({ items, numbered = tr
85
85
  className: cn("flex gap-3 border-r border-b border-border p-4 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", index >= pageSize && "motion-safe:animate-rise-in"),
86
86
  children: [numbered && /* @__PURE__ */ jsx("span", {
87
87
  "aria-hidden": true,
88
- className: "h-fit shrink-0 rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs font-semibold text-muted-foreground",
88
+ className: "h-fit shrink-0 rounded-md bg-muted px-1.5 py-0.5 font-mono type-caption font-semibold text-muted-foreground",
89
89
  children: numberOf(index, items.length)
90
90
  }), /* @__PURE__ */ jsxs("div", {
91
91
  className: "flex min-w-0 flex-col gap-1",
92
92
  children: [/* @__PURE__ */ jsx(Title, {
93
- className: "m-0 text-sm font-semibold text-foreground [overflow-wrap:anywhere]",
93
+ className: "m-0 type-heading text-foreground [overflow-wrap:anywhere]",
94
94
  children: item.title
95
95
  }), item.description != null && /* @__PURE__ */ jsx("p", {
96
- className: "m-0 text-sm leading-relaxed text-muted-foreground",
96
+ className: "m-0 type-body text-muted-foreground",
97
97
  children: item.description
98
98
  })]
99
99
  })]
@@ -36,9 +36,9 @@ function mergeFiles(existing, incoming, multiple) {
36
36
  return next;
37
37
  }
38
38
  var sizeClasses = {
39
- sm: "h-8 text-xs",
40
- default: "h-10 text-base md:text-sm",
41
- lg: "h-12 text-lg"
39
+ sm: "h-8 type-input",
40
+ default: "h-10 type-input",
41
+ lg: "h-12 type-input"
42
42
  };
43
43
  var iconSizeClasses = {
44
44
  sm: "size-3.5",
@@ -246,12 +246,12 @@ var FileInput = React$1.forwardRef(function FileInput({ label, required, size, r
246
246
  children: "*"
247
247
  })]
248
248
  }), hintContent && /* @__PURE__ */ jsx("span", {
249
- className: "text-sm text-muted-foreground",
249
+ className: "type-caption text-muted-foreground",
250
250
  children: hintContent
251
251
  })]
252
252
  }),
253
253
  !label && hintContent && /* @__PURE__ */ jsx("span", {
254
- className: "text-sm text-muted-foreground",
254
+ className: "type-caption text-muted-foreground",
255
255
  children: hintContent
256
256
  }),
257
257
  /* @__PURE__ */ jsxs("div", {
@@ -303,17 +303,17 @@ var FileInput = React$1.forwardRef(function FileInput({ label, required, size, r
303
303
  }),
304
304
  errorContent && /* @__PURE__ */ jsx("div", {
305
305
  id: `${inputId}-error`,
306
- className: "text-sm text-destructive",
306
+ className: "type-caption text-destructive",
307
307
  children: errorContent
308
308
  }),
309
309
  startHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
310
310
  id: helperStartId,
311
- className: "text-sm text-muted-foreground",
311
+ className: "type-caption text-muted-foreground",
312
312
  children: startHelperContent
313
313
  }),
314
314
  endHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
315
315
  id: helperEndId,
316
- className: "text-sm text-end text-muted-foreground",
316
+ className: "type-caption text-end text-muted-foreground",
317
317
  children: endHelperContent
318
318
  })
319
319
  ]
@@ -259,9 +259,9 @@ var FileUpload = React$1.forwardRef(function FileUpload({ className, title = "Dr
259
259
  children: title
260
260
  }), hasDescription ? /* @__PURE__ */ jsx(Typography, {
261
261
  id: descriptionId,
262
- variant: "body2",
262
+ variant: "body",
263
263
  as: "p",
264
- className: "text-sm text-muted-foreground",
264
+ className: "text-muted-foreground",
265
265
  children: description
266
266
  }) : null]
267
267
  }),
@@ -293,9 +293,9 @@ var FileUpload = React$1.forwardRef(function FileUpload({ className, title = "Dr
293
293
  className: "truncate font-semibold",
294
294
  children: file.name
295
295
  }), /* @__PURE__ */ jsx(Typography, {
296
- variant: "body2",
296
+ variant: "caption",
297
297
  as: "p",
298
- className: "text-xs text-muted-foreground",
298
+ className: "text-muted-foreground",
299
299
  children: formatFileSize(file.size)
300
300
  })]
301
301
  }),
@@ -65,6 +65,7 @@ function useDragMove(position, onMove) {
65
65
  onMove(settled);
66
66
  }
67
67
  return {
68
+ frame,
68
69
  frameRef: setFrame,
69
70
  onPointerDown,
70
71
  onPointerMove,