@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
@@ -241,7 +241,7 @@ function NavBar({ logo, items, rightContent, activeId: activeIdProp, defaultActi
241
241
  const highlightId = React$1.useId();
242
242
  const hasActiveOverflowItem = overflowIds.some((id) => id === activeId);
243
243
  const isOverflowDetailsOpen = openDetailsId != null && overflowIds.includes(openDetailsId);
244
- const navClasses = cn("relative z-50 w-full transition-[color,background-color,border-color,box-shadow] duration-300", background, position === "sticky" && "sticky", position === "fixed" && "fixed left-0", morphOnScroll && "mx-auto overflow-hidden", isScrolled && morphOnScroll ? "border border-header-border" : "border-b border-header-border", className, atTopClassName, panelVisible && "rounded-b-none border-b-border/60", isScrolled && morphOnScroll && "shadow-[shadow:var(--espd-elevation-navbar,var(--espd-elevation-overlay,var(--shadow-lg)))]", isScrolled && morphOnScroll && panelVisible && "[clip-path:inset(-80px_-80px_0_-80px)]");
244
+ const navClasses = cn("relative z-50 w-full text-foreground transition-[color,background-color,border-color,box-shadow] duration-300", background, position === "sticky" && "sticky", position === "fixed" && "fixed left-0", morphOnScroll && "mx-auto overflow-hidden", isScrolled && morphOnScroll ? "border border-header-border" : "border-b border-header-border", className, atTopClassName, panelVisible && "rounded-b-none border-b-border/60", isScrolled && morphOnScroll && "shadow-[shadow:var(--espd-elevation-navbar,var(--espd-elevation-overlay,var(--shadow-lg)))]", isScrolled && morphOnScroll && panelVisible && "[clip-path:inset(-80px_-80px_0_-80px)]");
245
245
  const topRadius = isScrolled ? panelVisible ? PILL_PANEL_RADIUS : pillRadius : 0;
246
246
  const morphAnimateProps = morphOnScroll ? {
247
247
  initial: false,
@@ -262,7 +262,7 @@ function NavBar({ logo, items, rightContent, activeId: activeIdProp, defaultActi
262
262
  } : { style: { top: 0 } };
263
263
  if (isMobile) return /* @__PURE__ */ jsxs("nav", {
264
264
  ref: navRef,
265
- className: cn("relative z-50 w-full border-b border-header-border", background, position === "sticky" && "sticky top-0", position === "fixed" && "fixed top-0 left-0", className, atTopClassName),
265
+ className: cn("relative z-50 w-full border-b border-header-border text-foreground", background, position === "sticky" && "sticky top-0", position === "fixed" && "fixed top-0 left-0", className, atTopClassName),
266
266
  "aria-label": "Main navigation",
267
267
  children: [/* @__PURE__ */ jsxs("div", {
268
268
  className: "flex items-center gap-3 px-4",
@@ -467,7 +467,7 @@ var MoreButton = React$1.forwardRef(function MoreButton({ label, hasActiveOverfl
467
467
  return /* @__PURE__ */ jsxs("button", {
468
468
  ref,
469
469
  type: "button",
470
- className: cn("inline-flex items-center gap-1 px-3 h-8 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))]", "text-sm font-medium whitespace-nowrap cursor-pointer", "transition-colors duration-[var(--espd-duration-fast,150ms)]", "text-foreground/80 hover:text-foreground", resolvedColor ? resolvedColor.hoverBgClass : "hover:bg-foreground/5", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", highlighted && resolvedColor && `${resolvedColor.textClass} ${resolvedColor.bgClass}`),
470
+ className: cn("inline-flex items-center gap-1 px-3 h-8 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))]", "type-label whitespace-nowrap cursor-pointer", "transition-colors duration-[var(--espd-duration-fast,150ms)]", "text-foreground/80 hover:text-foreground", resolvedColor ? resolvedColor.hoverBgClass : "hover:bg-foreground/5", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", highlighted && resolvedColor && `${resolvedColor.textClass} ${resolvedColor.bgClass}`),
471
471
  style: highlighted && resolvedColor?.textStyle ? {
472
472
  ...resolvedColor.textStyle,
473
473
  ...resolvedColor.bgStyle
@@ -479,7 +479,7 @@ var MoreButton = React$1.forwardRef(function MoreButton({ label, hasActiveOverfl
479
479
  });
480
480
  function NavBarItemTrigger({ item, isActive, isDetailsOpen, onClick, linkComponent, tabIndex, resolvedColor, isPill, detailsAsLink = false, hoverHandlers, onKeyDown, highlightLayoutId, plainHover = false }) {
481
481
  const slidingHighlight = isDetailsOpen && Boolean(highlightLayoutId);
482
- const classes = cn("relative isolate inline-flex items-center gap-1 px-3 h-8", isPill ? "rounded-full" : "rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))]", "text-sm font-medium whitespace-nowrap cursor-pointer", "transition-colors duration-[var(--espd-duration-fast,150ms)]", "text-foreground/80 hover:text-foreground", !plainHover && (resolvedColor ? resolvedColor.hoverBgClass : "hover:bg-foreground/5"), "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", isActive && !slidingHighlight && resolvedColor && `${resolvedColor.textClass} ${resolvedColor.bgClass}`, isDetailsOpen && !isActive && plainHover && "text-foreground", isDetailsOpen && !plainHover && resolvedColor && (slidingHighlight ? resolvedColor.textClass : `${resolvedColor.textClass} ${resolvedColor.bgClass}`), item.disabled && "opacity-50 pointer-events-none");
482
+ const classes = cn("relative isolate inline-flex items-center gap-1 px-3 h-8", isPill ? "rounded-full" : "rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))]", "type-label whitespace-nowrap cursor-pointer", "transition-colors duration-[var(--espd-duration-fast,150ms)]", "text-foreground/80 hover:text-foreground", !plainHover && (resolvedColor ? resolvedColor.hoverBgClass : "hover:bg-foreground/5"), "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", isActive && !slidingHighlight && resolvedColor && `${resolvedColor.textClass} ${resolvedColor.bgClass}`, isDetailsOpen && !isActive && plainHover && "text-foreground", isDetailsOpen && !plainHover && resolvedColor && (slidingHighlight ? resolvedColor.textClass : `${resolvedColor.textClass} ${resolvedColor.bgClass}`), item.disabled && "opacity-50 pointer-events-none");
483
483
  const colorStyle = resolvedColor?.textStyle && (isActive || isDetailsOpen && !plainHover) ? {
484
484
  ...resolvedColor.textStyle,
485
485
  ...slidingHighlight ? void 0 : resolvedColor.bgStyle
@@ -35,7 +35,7 @@ function NoticeStrip({ tone, title, description, actions, onDismiss, dismissLabe
35
35
  hideIcon: true,
36
36
  title,
37
37
  ...description ? { description: /* @__PURE__ */ jsx("span", {
38
- className: "text-xs leading-snug",
38
+ className: "type-body leading-snug",
39
39
  children: description
40
40
  }) } : {},
41
41
  ...actions ? { actions } : {},
@@ -26,12 +26,12 @@ function Card({ item, name, chosen, disabled, onChoose }) {
26
26
  className: cn("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-4.5", chosen ? "bg-primary/10 text-primary" : "bg-muted text-foreground"),
27
27
  children: item.media
28
28
  }), /* @__PURE__ */ jsx("span", {
29
- className: "text-base font-semibold",
29
+ className: "type-heading",
30
30
  children: item.title
31
31
  })]
32
32
  }),
33
33
  item.description && /* @__PURE__ */ jsx("span", {
34
- className: "text-sm leading-relaxed text-muted-foreground",
34
+ className: "type-body text-muted-foreground",
35
35
  children: item.description
36
36
  }),
37
37
  item.tags && item.tags.length > 0 && /* @__PURE__ */ jsx("ul", {
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { LucideIcon } from 'lucide-react';
3
- import { S as StatusBadgeIcon } from '../../status-badge.props-lKlEOfRt.js';
3
+ import { S as StatusBadgeIcon } from '../../status-badge.props-BVe8CmQZ.js';
4
4
  import { C as Color, S as Size, P as PresetColor } from '../../index-BQANnKs9.js';
5
- import { f as Variant } from '../../variant-D81RhpbR.js';
5
+ import { f as Variant } from '../../variant-DjdaxfIA.js';
6
6
  import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
7
7
 
8
8
  type OverflowBadgeListColor = Extract<PresetColor, "warning" | "success" | "info" | "error" | "gray">;
@@ -23,7 +23,7 @@ function OverflowPopover({ as, label, hidden, badgeVariant, badgeSize, badgeColo
23
23
  return /* @__PURE__ */ jsxs(Popover, {
24
24
  openOnHover: true,
25
25
  children: [/* @__PURE__ */ jsx(PopoverTrigger, {
26
- className: cn("shrink-0 cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", as === "badge" && "inline-flex", as === "text" && "text-sm text-muted-foreground underline decoration-dotted underline-offset-2"),
26
+ className: cn("shrink-0 cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", as === "badge" && "inline-flex", as === "text" && "type-caption text-muted-foreground underline decoration-dotted underline-offset-2"),
27
27
  children: as === "badge" ? /* @__PURE__ */ jsx(StatusBadge, {
28
28
  radius,
29
29
  label,
@@ -64,7 +64,7 @@ function OverflowBadgeList({ items, icon, badgeColor, badgeVariant = "outline",
64
64
  const visibleBadges = badges.slice(0, visibleCount);
65
65
  const hiddenCount = badges.length - visibleCount;
66
66
  const tooltipContent = hiddenCount > 0 ? /* @__PURE__ */ jsx("ul", {
67
- className: "max-h-48 max-w-xs list-disc space-y-1 overflow-y-auto pl-4 text-left text-sm",
67
+ className: "max-h-48 max-w-xs list-disc space-y-1 overflow-y-auto pl-4 text-left type-body",
68
68
  children: badges.map((badge) => /* @__PURE__ */ jsx("li", {
69
69
  className: "break-words",
70
70
  children: badge.label
@@ -105,7 +105,7 @@ function OverflowBadgeList({ items, icon, badgeColor, badgeVariant = "outline",
105
105
  side: "top",
106
106
  align: "start",
107
107
  children: /* @__PURE__ */ jsx("span", {
108
- className: "cursor-default shrink-0 text-sm text-muted-foreground underline decoration-dotted underline-offset-2",
108
+ className: "cursor-default shrink-0 type-caption text-muted-foreground underline decoration-dotted underline-offset-2",
109
109
  tabIndex: 0,
110
110
  children: andMoreLabel
111
111
  })
@@ -25,7 +25,7 @@ function PageBanner({ kicker, title, titleAs = "h2", titleId, description, meta,
25
25
  className: "flex min-w-0 flex-col gap-3.5",
26
26
  children: [
27
27
  kicker && /* @__PURE__ */ jsx("span", {
28
- className: "font-mono text-sm font-semibold text-primary",
28
+ className: "font-mono type-label font-semibold text-primary",
29
29
  children: kicker
30
30
  }),
31
31
  /* @__PURE__ */ jsx(Typography, {
@@ -13,7 +13,7 @@ var maxWidthClasses = {
13
13
  lg: "max-w-5xl",
14
14
  xl: "max-w-7xl"
15
15
  };
16
- var headingTitleClasses = "min-w-0 flex-1 text-2xl text-foreground font-bold track-tight";
16
+ var headingTitleClasses = "min-w-0 flex-1 type-title text-foreground track-tight";
17
17
  var headingContentClasses = "min-w-0 flex-1";
18
18
  var stickyHeaderClasses = "sticky top-0 z-11 bg-background/75 backdrop-blur-xs";
19
19
  var stickyHeaderFromMdClasses = "md:sticky md:top-0 md:z-11 md:bg-background/75 md:backdrop-blur-xs";
@@ -32,7 +32,7 @@ function Pagination({ pageLabel, previousLabel = "Previous", nextLabel = "Next",
32
32
  className: cn("@container flex flex-wrap items-center gap-x-2 gap-y-3 border-t", s.container),
33
33
  children: [
34
34
  pageLabel !== void 0 ? /* @__PURE__ */ jsx("span", {
35
- className: "flex-1 text-sm whitespace-nowrap text-muted-foreground",
35
+ className: "flex-1 type-body whitespace-nowrap text-muted-foreground",
36
36
  children: pageLabel
37
37
  }) : /* @__PURE__ */ jsx("span", { className: "flex-1" }),
38
38
  /* @__PURE__ */ jsxs("div", {
@@ -63,7 +63,7 @@ function ProgressBar({ showFakeProgress = false, value: valueProp, label, showPe
63
63
  children: [showHeader && /* @__PURE__ */ jsx("div", {
64
64
  className: "flex items-center justify-between gap-1",
65
65
  children: label != null && /* @__PURE__ */ jsx("span", {
66
- className: "text-sm font-medium",
66
+ className: "type-label",
67
67
  children: label
68
68
  })
69
69
  }), /* @__PURE__ */ jsx("div", {
@@ -106,7 +106,7 @@ function ProgressBar({ showFakeProgress = false, value: valueProp, label, showPe
106
106
  children: [showHeader && /* @__PURE__ */ jsxs("div", {
107
107
  className: "flex items-center justify-between gap-1",
108
108
  children: [label != null && /* @__PURE__ */ jsx(ProgressLabel, { children: label }), showPercentage && /* @__PURE__ */ jsxs("span", {
109
- className: "text-sm",
109
+ className: "type-body",
110
110
  children: [/* @__PURE__ */ jsx(ProgressValue, {}), " %"]
111
111
  })]
112
112
  }), /* @__PURE__ */ jsx(ProgressTrack, { ...isPresetColor(color) ? {
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+
3
+ interface QrCodeProps {
4
+ /** Exactly what the code encodes. */
5
+ text: string;
6
+ /** What the picture is, read out in its place (the code itself is not words). */
7
+ label: string;
8
+ /** Shown in its place when the code cannot be made (no `qrcode` installed, text too long). */
9
+ fallback: string;
10
+ /** Sizes the code (`size-40`); it is square. */
11
+ className?: string;
12
+ /** The modules' colour. Default black: a phone reads dark on light, so keep it dark in every theme. */
13
+ ink?: string;
14
+ /** The background and quiet zone. Default white. */
15
+ paper?: string;
16
+ }
17
+
18
+ /**
19
+ * A QR code, drawn as SVG from the encoder's modules, dark on light in every
20
+ * theme so a phone can read it. The encoder (`qrcode`, an optional peer
21
+ * dependency) is loaded only when a code is shown. A placeholder while it
22
+ * loads; `fallback` in its place when the code cannot be made.
23
+ */
24
+ declare function QrCode({ text, label, fallback, className, ink, paper }: QrCodeProps): React.JSX.Element;
25
+
26
+ export { QrCode, type QrCodeProps };
@@ -0,0 +1,2 @@
1
+ import { QrCode } from "./qr-code.js";
2
+ export { QrCode };
@@ -0,0 +1,69 @@
1
+ import { cn } from "../../utils/cn.js";
2
+ import { Skeleton } from "../../core/skeleton.js";
3
+ import { Typography } from "../typography/typography.js";
4
+ import { useEffect, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/qr-code/qr-code.tsx
7
+ /** The quiet margin around the modules, in modules: what lets a camera find the code's edge. */
8
+ var QUIET = 2;
9
+ /** One path of every dark module, each a unit square at its row and column. */
10
+ async function draw(text) {
11
+ const { create } = await import("qrcode");
12
+ const { modules } = create(text, { errorCorrectionLevel: "M" });
13
+ let path = "";
14
+ for (let row = 0; row < modules.size; row += 1) for (let col = 0; col < modules.size; col += 1) if (modules.get(row, col)) path += `M${col + QUIET} ${row + QUIET}h1v1h-1z`;
15
+ return {
16
+ text,
17
+ size: modules.size,
18
+ path
19
+ };
20
+ }
21
+ /**
22
+ * A QR code, drawn as SVG from the encoder's modules, dark on light in every
23
+ * theme so a phone can read it. The encoder (`qrcode`, an optional peer
24
+ * dependency) is loaded only when a code is shown. A placeholder while it
25
+ * loads; `fallback` in its place when the code cannot be made.
26
+ */
27
+ function QrCode({ text, label, fallback, className, ink = "#000000", paper = "#ffffff" }) {
28
+ const [drawn, setDrawn] = useState(null);
29
+ useEffect(() => {
30
+ let alive = true;
31
+ draw(text).then((next) => alive && setDrawn(next)).catch(() => alive && setDrawn({
32
+ text,
33
+ size: 0,
34
+ path: ""
35
+ }));
36
+ return () => {
37
+ alive = false;
38
+ };
39
+ }, [text]);
40
+ if (drawn?.text !== text) return /* @__PURE__ */ jsx(Skeleton, {
41
+ role: "img",
42
+ "aria-label": label,
43
+ className: cn("aspect-square rounded-md", className)
44
+ });
45
+ if (drawn.size === 0) return /* @__PURE__ */ jsx(Typography, {
46
+ variant: "body",
47
+ className: "m-0 text-muted-foreground",
48
+ children: fallback
49
+ });
50
+ const side = drawn.size + QUIET * 2;
51
+ return /* @__PURE__ */ jsxs("svg", {
52
+ "data-slot": "qr-code",
53
+ role: "img",
54
+ "aria-label": label,
55
+ viewBox: `0 0 ${side} ${side}`,
56
+ shapeRendering: "crispEdges",
57
+ className: cn("aspect-square", className),
58
+ children: [/* @__PURE__ */ jsx("rect", {
59
+ width: side,
60
+ height: side,
61
+ fill: paper
62
+ }), /* @__PURE__ */ jsx("path", {
63
+ d: drawn.path,
64
+ fill: ink
65
+ })]
66
+ });
67
+ }
68
+ //#endregion
69
+ export { QrCode };
@@ -5,15 +5,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  var sizeStyles = {
6
6
  sm: {
7
7
  radio: "size-3.5",
8
- label: "text-sm"
8
+ label: "type-label"
9
9
  },
10
10
  default: {
11
11
  radio: "size-4",
12
- label: "text-base"
12
+ label: "type-label"
13
13
  },
14
14
  lg: {
15
15
  radio: "size-5",
16
- label: "text-lg"
16
+ label: "type-label"
17
17
  }
18
18
  };
19
19
  function RadioGroup({ options, value, defaultValue, onValueChange, orientation = "vertical", disabled = false, className, size = "default" }) {
@@ -0,0 +1,45 @@
1
+ import * as React from 'react';
2
+
3
+ interface RangeFieldLabels {
4
+ /** The − button's name ("Temperature down by 2"). */
5
+ down: string;
6
+ /** The + button's name. */
7
+ up: string;
8
+ /** The slider's name. */
9
+ slider: string;
10
+ }
11
+ interface RangeFieldProps {
12
+ label: string;
13
+ value: number;
14
+ onChange: (value: number) => void;
15
+ min: number;
16
+ max: number;
17
+ /** The display precision, and the slider's step. */
18
+ step: number;
19
+ unit?: string;
20
+ /** How far − and + move it. Default ten steps, at most the whole range. */
21
+ by?: number;
22
+ /** A compass: − and + go round, the last position to the first. */
23
+ wrap?: boolean;
24
+ /** The range in words ("−40 to 80 °C"), beside the label. */
25
+ rangeText?: string;
26
+ labels: RangeFieldLabels;
27
+ disabled?: boolean;
28
+ }
29
+
30
+ /**
31
+ * One number in a range, on three short rows that need no width: its name,
32
+ * with the range after it in brackets (reference, in a quiet hand — one
33
+ * phrase, so a narrow panel wraps it rather than squeezing two ends of a
34
+ * row); the slider alone on its own row, as wide as the panel, drawn in the
35
+ * scope's own corners; then the exact value as ONE control — a box to type
36
+ * it (kept as typed until Enter or leaving it, then clamped) between − and +
37
+ * for a step either way — and its unit, at the left, under the name and the
38
+ * slider's start, where the eye already is. The slider is the quick way, the
39
+ * box the precise one; − and + stay because a compass goes round (the last
40
+ * position to the first), which neither of the others can do. Nothing here
41
+ * shares a row with the slider, so a narrow panel squeezes nothing.
42
+ */
43
+ declare function RangeField({ label, value, onChange, min, max, step: by, unit, by: nudgeBy, wrap, rangeText, labels, disabled }: RangeFieldProps): React.JSX.Element;
44
+
45
+ export { RangeField, type RangeFieldLabels, type RangeFieldProps };
@@ -0,0 +1,2 @@
1
+ import { RangeField } from "./range-field.js";
2
+ export { RangeField };
@@ -0,0 +1,161 @@
1
+ import { cn } from "../../utils/cn.js";
2
+ import { Button } from "../button/button.js";
3
+ import { Input } from "../../core/input/input.js";
4
+ import { Label } from "../../core/label.js";
5
+ import { useLayoutEffect, useRef, useState } from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Minus, Plus } from "lucide-react";
8
+ //#region src/components/range-field/range-field.tsx
9
+ /** Decimal places a step shows: 0.1 -> 1, 0.25 -> 2, 5 -> 0. */
10
+ function placesOf(step) {
11
+ const s = String(step);
12
+ return s.includes(".") ? (s.split(".")[1] ?? "").length : 0;
13
+ }
14
+ /** `n` brought back into the range by going round it, as a compass does: one step past the last is the first. */
15
+ function wrapped(n, range) {
16
+ const span = range.max - range.min + range.step;
17
+ return range.min + ((n - range.min) % span + span) % span;
18
+ }
19
+ var step = {
20
+ type: "button",
21
+ size: "icon",
22
+ fullWidth: false,
23
+ variant: "ghost",
24
+ color: "gray",
25
+ hideRingOnHover: true
26
+ };
27
+ /**
28
+ * The slider drawn by us, not the browser: a hairline track, the part of it
29
+ * below the value filled, and a thumb — all in the scope's control radius
30
+ * (`--espd-radius-control`, the token every library control rounds by; the
31
+ * library's own classes read the same variable), so it is square where the
32
+ * scope's controls are square and round where they are round. The native slider's own
33
+ * drawing is turned off (`appearance-none`) and its thumb restyled through
34
+ * the two vendors' pseudo-elements; the input stays a real range input, so
35
+ * the keyboard, the wheel and assistive tech see nothing different.
36
+ */
37
+ var SLIDER = cn("relative z-10 h-5 w-full cursor-pointer appearance-none bg-transparent outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-default disabled:opacity-50", "[&::-webkit-slider-runnable-track]:h-5 [&::-webkit-slider-runnable-track]:bg-transparent", "[&::-webkit-slider-thumb]:mt-0.5 [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-(--espd-radius-control) [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-background [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:shadow-sm", "[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-(--espd-radius-control) [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-background [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:shadow-sm");
38
+ /** The filled part of the track, as a share of it: it moves with every drag frame, so it is written to the element, never a class. */
39
+ function useFill(share) {
40
+ const ref = useRef(null);
41
+ useLayoutEffect(() => {
42
+ if (ref.current) ref.current.style.width = `${share}%`;
43
+ }, [share]);
44
+ return ref;
45
+ }
46
+ /**
47
+ * One number in a range, on three short rows that need no width: its name,
48
+ * with the range after it in brackets (reference, in a quiet hand — one
49
+ * phrase, so a narrow panel wraps it rather than squeezing two ends of a
50
+ * row); the slider alone on its own row, as wide as the panel, drawn in the
51
+ * scope's own corners; then the exact value as ONE control — a box to type
52
+ * it (kept as typed until Enter or leaving it, then clamped) between − and +
53
+ * for a step either way — and its unit, at the left, under the name and the
54
+ * slider's start, where the eye already is. The slider is the quick way, the
55
+ * box the precise one; − and + stay because a compass goes round (the last
56
+ * position to the first), which neither of the others can do. Nothing here
57
+ * shares a row with the slider, so a narrow panel squeezes nothing.
58
+ */
59
+ function RangeField({ label, value, onChange, min, max, step: by, unit, by: nudgeBy, wrap = false, rangeText, labels, disabled = false }) {
60
+ const [draft, setDraft] = useState(null);
61
+ const nudge = nudgeBy ?? Math.min(by * 10, max - min);
62
+ const fill = useFill(max > min ? Math.min(100, Math.max(0, (value - min) / (max - min) * 100)) : 0);
63
+ function set(n) {
64
+ setDraft(null);
65
+ onChange(wrap ? wrapped(n, {
66
+ min,
67
+ max,
68
+ step: by
69
+ }) : Math.min(max, Math.max(min, n)));
70
+ }
71
+ function commit() {
72
+ const n = Number(draft);
73
+ if (draft === null || draft.trim() === "" || !Number.isFinite(n)) {
74
+ setDraft(null);
75
+ return;
76
+ }
77
+ set(n);
78
+ }
79
+ return /* @__PURE__ */ jsxs("div", {
80
+ className: "flex flex-col gap-1",
81
+ children: [
82
+ /* @__PURE__ */ jsxs(Label, { children: [label, rangeText && /* @__PURE__ */ jsxs("span", {
83
+ className: "ml-1.5 font-mono type-caption text-foreground-muted tabular-nums",
84
+ children: [
85
+ "(",
86
+ rangeText,
87
+ ")"
88
+ ]
89
+ })] }),
90
+ /* @__PURE__ */ jsxs("span", {
91
+ className: "relative flex h-5 w-full items-center",
92
+ children: [
93
+ /* @__PURE__ */ jsx("span", {
94
+ "aria-hidden": true,
95
+ className: "absolute inset-x-0 h-1 rounded-(--espd-radius-control) bg-border"
96
+ }),
97
+ /* @__PURE__ */ jsx("span", {
98
+ ref: fill,
99
+ "aria-hidden": true,
100
+ className: cn("absolute left-0 h-1 w-0 rounded-(--espd-radius-control) bg-primary", disabled && "opacity-50")
101
+ }),
102
+ /* @__PURE__ */ jsx("input", {
103
+ type: "range",
104
+ "aria-label": labels.slider,
105
+ min,
106
+ max,
107
+ step: by,
108
+ value,
109
+ disabled,
110
+ onChange: (event) => set(Number(event.target.value)),
111
+ className: SLIDER
112
+ })
113
+ ]
114
+ }),
115
+ /* @__PURE__ */ jsxs("div", {
116
+ className: "flex items-center gap-2",
117
+ children: [/* @__PURE__ */ jsxs("span", {
118
+ className: "inline-flex items-center rounded-xs border border-border",
119
+ children: [
120
+ /* @__PURE__ */ jsx(Button, {
121
+ ...step,
122
+ disabled,
123
+ "aria-label": labels.down,
124
+ onClick: () => set(value - nudge),
125
+ className: "size-7 rounded-none",
126
+ children: /* @__PURE__ */ jsx(Minus, { className: "h-3.5 w-3.5" })
127
+ }),
128
+ /* @__PURE__ */ jsx(Input, {
129
+ size: "sm",
130
+ type: "number",
131
+ inputMode: "decimal",
132
+ "aria-label": label,
133
+ min,
134
+ max,
135
+ step: by,
136
+ disabled,
137
+ value: draft ?? value.toFixed(placesOf(by)),
138
+ onChange: (event) => setDraft(event.target.value),
139
+ onBlur: commit,
140
+ onKeyDown: (event) => event.key === "Enter" && commit(),
141
+ className: "h-7 w-20 rounded-none border-x border-y-0 border-border text-center font-mono tabular-nums shadow-none"
142
+ }),
143
+ /* @__PURE__ */ jsx(Button, {
144
+ ...step,
145
+ disabled,
146
+ "aria-label": labels.up,
147
+ onClick: () => set(value + nudge),
148
+ className: "size-7 rounded-none",
149
+ children: /* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5" })
150
+ })
151
+ ]
152
+ }), unit && /* @__PURE__ */ jsx("span", {
153
+ className: "w-7 font-mono type-caption text-foreground-secondary",
154
+ children: unit
155
+ })]
156
+ })
157
+ ]
158
+ });
159
+ }
160
+ //#endregion
161
+ export { RangeField, placesOf, wrapped };
@@ -34,7 +34,7 @@ function Segments({ segments, error, labelled }) {
34
34
  * made of tokens. With `onClick` it is a real (toggle) button.
35
35
  */
36
36
  function Readout({ segments, state = "normal", labelled = false, onClick, "aria-label": label, className }) {
37
- const classes = cn("dark inline-flex h-6 items-center rounded-xs border bg-background font-mono text-xs leading-none tabular-nums", STATE[state], className);
37
+ const classes = cn("dark inline-flex h-6 items-center rounded-xs border bg-background type-code font-mono leading-none tabular-nums", STATE[state], className);
38
38
  if (!onClick) return /* @__PURE__ */ jsx("span", {
39
39
  "aria-label": label,
40
40
  "data-slot": "readout",
@@ -20,35 +20,30 @@ var stateVisuals = {
20
20
  /**
21
21
  * Aligned with SimpleList / VerticalStepper size scales. `iconTop` centres the
22
22
  * icon on the label's first line when a description makes the row two lines
23
- * (the row then aligns to the top); `description` is one step smaller than
24
- * the label, `describedRowGap` the roomier spacing two-line rows need.
23
+ * (the row then aligns to the top); `describedRowGap` is the roomier spacing
24
+ * two-line rows need. The text keeps its roles at every size: the label is
25
+ * `type-body`, the description under it `type-secondary`.
25
26
  */
26
27
  var sizeStyles = {
27
28
  sm: {
28
- text: "text-xs",
29
29
  icon: "h-3.5 w-3.5 shrink-0",
30
30
  gap: "gap-2",
31
31
  rowGap: "gap-1",
32
32
  iconTop: "mt-px",
33
- description: "text-xs",
34
33
  describedRowGap: "gap-2"
35
34
  },
36
35
  default: {
37
- text: "text-sm",
38
36
  icon: "size-4 shrink-0",
39
37
  gap: "gap-2",
40
38
  rowGap: "gap-1.5",
41
39
  iconTop: "mt-0.5",
42
- description: "text-xs",
43
40
  describedRowGap: "gap-2.5"
44
41
  },
45
42
  lg: {
46
- text: "text-base",
47
43
  icon: "size-5 shrink-0",
48
44
  gap: "gap-2.5",
49
45
  rowGap: "gap-2",
50
46
  iconTop: "mt-0.5",
51
- description: "text-sm",
52
47
  describedRowGap: "gap-3"
53
48
  }
54
49
  };
@@ -77,7 +72,7 @@ var RequirementList = forwardRef(function RequirementList({ items, size = "sm",
77
72
  const visuals = stateVisuals[item.met ? "met" : "unmet"];
78
73
  const Icon = visuals.icon;
79
74
  return /* @__PURE__ */ jsxs("li", {
80
- className: cn("flex transition-colors", item.description ? "items-start" : "items-center", styles.gap, styles.text, visuals.textClass),
75
+ className: cn("flex transition-colors", item.description ? "items-start" : "items-center", "type-body", styles.gap, visuals.textClass),
81
76
  children: [
82
77
  /* @__PURE__ */ jsx(Icon, {
83
78
  className: cn(styles.icon, item.description && styles.iconTop),
@@ -86,7 +81,7 @@ var RequirementList = forwardRef(function RequirementList({ items, size = "sm",
86
81
  item.description ? /* @__PURE__ */ jsxs("span", {
87
82
  className: "flex min-w-0 flex-col gap-0.5",
88
83
  children: [/* @__PURE__ */ jsx("span", { children: item.label }), /* @__PURE__ */ jsx("span", {
89
- className: cn(styles.description, "text-muted-foreground"),
84
+ className: "type-secondary text-muted-foreground",
90
85
  children: item.description
91
86
  })]
92
87
  }) : item.label,
@@ -13,9 +13,12 @@ interface RevealProps {
13
13
  }
14
14
 
15
15
  /**
16
- * One part of a section's entrance: it rises into place and fades in when
17
- * `revealed` turns true (the section first scrolled into view — pair it with
18
- * `useIsInView` or an observer of your own). Uniform motion, so Tailwind
16
+ * One part of a section's entrance: it rises into place when `revealed` turns
17
+ * true (the section first scrolled into view — pair it with `useIsInView` or
18
+ * an observer of your own). It waits a little low, and a touch small with
19
+ * `grow`, but always fully drawn: a page read without scrolling it in (a
20
+ * screenshot, a background tab whose observer never fires, a reader jumping
21
+ * by heading, reduced motion) shows every word. Uniform motion, so Tailwind
19
22
  * utilities on library tokens; under reduced motion it is simply there.
20
23
  */
21
24
  declare function Reveal({ revealed, order, grow, className, children }: RevealProps): React.JSX.Element;
@@ -8,15 +8,18 @@ var DELAY = [
8
8
  "delay-450"
9
9
  ];
10
10
  /**
11
- * One part of a section's entrance: it rises into place and fades in when
12
- * `revealed` turns true (the section first scrolled into view — pair it with
13
- * `useIsInView` or an observer of your own). Uniform motion, so Tailwind
11
+ * One part of a section's entrance: it rises into place when `revealed` turns
12
+ * true (the section first scrolled into view — pair it with `useIsInView` or
13
+ * an observer of your own). It waits a little low, and a touch small with
14
+ * `grow`, but always fully drawn: a page read without scrolling it in (a
15
+ * screenshot, a background tab whose observer never fires, a reader jumping
16
+ * by heading, reduced motion) shows every word. Uniform motion, so Tailwind
14
17
  * utilities on library tokens; under reduced motion it is simply there.
15
18
  */
16
19
  function Reveal({ revealed, order, grow = false, className, children }) {
17
20
  return /* @__PURE__ */ jsx("div", {
18
21
  "data-slot": "reveal",
19
- className: cn("transition duration-700 ease-emphasized motion-reduce:transition-none", DELAY[order], revealed ? "translate-y-0 scale-100 opacity-100" : cn("translate-y-8 opacity-0", grow && "scale-97"), className),
22
+ className: cn("transition duration-700 ease-emphasized motion-reduce:transition-none", DELAY[order], revealed ? "translate-y-0 scale-100" : cn("translate-y-4", grow && "scale-97"), className),
20
23
  children
21
24
  });
22
25
  }
@@ -187,7 +187,7 @@ function ScrollableSectionsRoot({ className, children, defaultValue, scrollRootR
187
187
  value: safeActiveId,
188
188
  onValueChange: selectSection,
189
189
  children: [/* @__PURE__ */ jsx(SelectTrigger, {
190
- className: "w-full text-sm font-medium",
190
+ className: "w-full type-label",
191
191
  children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Section" })
192
192
  }), /* @__PURE__ */ jsx(SelectContent, { children: tabsItems.map((item) => /* @__PURE__ */ jsx(SelectItem, {
193
193
  value: item.id,
@@ -25,8 +25,10 @@ interface SearchBoxProps extends Pick<StyleAxisProps, "radius" | "border">, Sear
25
25
  onValueChange?: (value: string) => void;
26
26
  size?: Size;
27
27
  className?: string;
28
+ /** The clear button's accessible name, in the page's language. Default "Clear search". */
29
+ clearLabel?: string;
28
30
  }
29
31
 
30
- declare function SearchBox({ placeholder, value: controlledValue, defaultValue, onSearch, onClear, onValueChange, size, className, radius, border, id, name, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: SearchBoxProps): React.JSX.Element;
32
+ declare function SearchBox({ placeholder, value: controlledValue, defaultValue, onSearch, onClear, onValueChange, size, className, radius, border, id, name, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, clearLabel, }: SearchBoxProps): React.JSX.Element;
31
33
 
32
34
  export { SearchBox, type SearchBoxProps };