@espressif/dashboard-ui-components 1.13.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 (170) hide show
  1. package/.claude/rules/dashboard-ui-consumption.md +41 -0
  2. package/.cursor/rules/dashboard-ui-consumption.mdc +39 -1
  3. package/CHANGELOG.md +222 -0
  4. package/README.md +50 -4
  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 +12 -12
  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/fullscreen-dialog/fullscreen-dialog.js +1 -1
  47. package/dist/components/gradient-ring-button/_hooks/use-ring-geometry.js +116 -0
  48. package/dist/components/gradient-ring-button/gradient-ring-button.js +44 -0
  49. package/dist/components/gradient-ring-button/gradient-ring.js +77 -0
  50. package/dist/components/gradient-ring-button/index.d.ts +66 -0
  51. package/dist/components/gradient-ring-button/index.js +3 -0
  52. package/dist/components/horizontal-stepper/horizontal-stepper.js +2 -6
  53. package/dist/components/horizontal-stepper/index.d.ts +1 -1
  54. package/dist/components/icon-avatar/index.d.ts +3 -3
  55. package/dist/components/icon-text-action-card/index.d.ts +4 -4
  56. package/dist/components/index.d.ts +9 -7
  57. package/dist/components/index.js +5 -1
  58. package/dist/components/key-value-manager/key-value-manager-add-popover.js +1 -1
  59. package/dist/components/key-value-manager/key-value-manager-table.js +1 -1
  60. package/dist/components/link/link.js +7 -7
  61. package/dist/components/list/list-item.utils.js +5 -4
  62. package/dist/components/list/list.js +1 -1
  63. package/dist/components/list-details/index.d.ts +2 -2
  64. package/dist/components/markdown-content/markdown-content.components.js +2 -2
  65. package/dist/components/media-card/media-card-reveal.js +2 -2
  66. package/dist/components/media-card/media-card.js +2 -2
  67. package/dist/components/monospace-content/index.d.ts +4 -4
  68. package/dist/components/monospace-content/monospace-content.js +9 -11
  69. package/dist/components/nav-bar/nav-bar-mobile-menu.js +3 -3
  70. package/dist/components/nav-bar/nav-bar.js +4 -4
  71. package/dist/components/notice-strip/notice-strip.js +1 -1
  72. package/dist/components/option-card-group/option-card-group.js +2 -2
  73. package/dist/components/overflow-badge-list/index.d.ts +2 -2
  74. package/dist/components/overflow-badge-list/overflow-badge-list.js +3 -3
  75. package/dist/components/page-banner/page-banner.js +1 -1
  76. package/dist/components/page-container/page-container.js +1 -1
  77. package/dist/components/pagination/pagination.js +1 -1
  78. package/dist/components/progress-bar/progress-bar.js +2 -2
  79. package/dist/components/qr-code/qr-code.js +2 -2
  80. package/dist/components/radio-group/radio-group.js +3 -3
  81. package/dist/components/range-field/range-field.js +9 -12
  82. package/dist/components/readout/readout.js +1 -1
  83. package/dist/components/requirement-list/requirement-list.js +5 -10
  84. package/dist/components/scrollable-sections/scrollable-sections.js +1 -1
  85. package/dist/components/search-field-shell.js +8 -8
  86. package/dist/components/selectable-card-list/selectable-card-list-shared.js +6 -6
  87. package/dist/components/showcase-card/showcase-card.js +2 -2
  88. package/dist/components/sidebar/sidebar.js +13 -15
  89. package/dist/components/simple-clickable-card/index.d.ts +4 -4
  90. package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +17 -23
  91. package/dist/components/simple-info-card/index.d.ts +3 -3
  92. package/dist/components/simple-list/index.d.ts +1 -1
  93. package/dist/components/simple-list/simple-list.js +8 -8
  94. package/dist/components/simple-paginated-list/simple-paginated-list.js +1 -4
  95. package/dist/components/stat-card/stat-card.js +7 -13
  96. package/dist/components/status-badge/index.d.ts +3 -3
  97. package/dist/components/status-badge/status-badge.js +4 -4
  98. package/dist/components/status-card-list/status-card-list.js +6 -6
  99. package/dist/components/tag/index.d.ts +1 -1
  100. package/dist/components/tag/tag.js +4 -4
  101. package/dist/components/tag-input/tag-input.js +12 -12
  102. package/dist/components/timeline/timeline.js +2 -2
  103. package/dist/components/toast/index.d.ts +1 -1
  104. package/dist/components/toast/toast.js +2 -2
  105. package/dist/components/toolbar/index.d.ts +5 -2
  106. package/dist/components/toolbar/toolbar-button.js +1 -1
  107. package/dist/components/toolbar/toolbar.js +9 -3
  108. package/dist/components/trace/trace.js +1 -1
  109. package/dist/components/transfer-list/transfer-list.js +2 -2
  110. package/dist/components/typography/index.d.ts +12 -3
  111. package/dist/components/typography/typography-variants.js +98 -13
  112. package/dist/components/typography/typography.js +4 -2
  113. package/dist/components/user-type-badge/user-type-badge.js +4 -4
  114. package/dist/components/vertical-stepper/vertical-stepper.js +11 -7
  115. package/dist/core/alert.js +3 -3
  116. package/dist/core/animate-ui/components/animate/code-header.js +1 -1
  117. package/dist/core/animate-ui/components/animate/code.js +1 -1
  118. package/dist/core/animate-ui/components/animate/tabs.js +6 -6
  119. package/dist/core/animate-ui/components/animate/tooltip.js +1 -1
  120. package/dist/core/animate-ui/components/base/progress.js +2 -2
  121. package/dist/core/animate-ui/components/radix/accordion.js +2 -2
  122. package/dist/core/animate-ui/components/radix/dialog.js +2 -2
  123. package/dist/core/animate-ui/components/radix/dropdown-menu.js +6 -6
  124. package/dist/core/animate-ui/components/radix/sheet.js +2 -2
  125. package/dist/core/animate-ui/components/radix/sidebar.js +8 -8
  126. package/dist/core/animate-ui/components/radix/toggle.js +1 -1
  127. package/dist/core/badge.js +1 -1
  128. package/dist/core/breadcrumb.js +1 -1
  129. package/dist/core/button/button.js +2 -2
  130. package/dist/core/button-group.js +1 -1
  131. package/dist/core/button.js +2 -2
  132. package/dist/core/card.js +2 -2
  133. package/dist/core/combobox/combobox.js +3 -3
  134. package/dist/core/command.js +5 -5
  135. package/dist/core/field-label-row.js +4 -4
  136. package/dist/core/form.js +2 -2
  137. package/dist/core/index.d.ts +1 -1
  138. package/dist/core/input/input.js +11 -11
  139. package/dist/core/input-otp/input-otp.js +12 -12
  140. package/dist/core/label.js +1 -1
  141. package/dist/core/select.js +6 -6
  142. package/dist/core/separator.js +1 -1
  143. package/dist/core/table.js +2 -2
  144. package/dist/core/textarea/textarea.js +9 -9
  145. package/dist/{icon-avatar.props-RYtw2eSW.d.ts → icon-avatar.props-BJe0-vva.d.ts} +1 -1
  146. package/dist/{icon-text-action-card.props-B2ggncUK.d.ts → icon-text-action-card.props-BU7yFi2Q.d.ts} +2 -2
  147. package/dist/index.d.ts +9 -7
  148. package/dist/index.js +6 -2
  149. package/dist/layouts/entry-layout/entry-layout.js +1 -1
  150. package/dist/layouts/index.d.ts +21 -6
  151. package/dist/layouts/index.js +1 -1
  152. package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +10 -18
  153. package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +35 -7
  154. package/dist/layouts/workspace-layout/footer/footer.js +1 -1
  155. package/dist/markdown/index.d.ts +4 -4
  156. package/dist/{section-card-B7c5uc08.d.ts → section-card-DqQeQkzU.d.ts} +1 -1
  157. package/dist/{simple-clickable-card.props-BrPCw7CR.d.ts → simple-clickable-card.props-BhhotZMp.d.ts} +2 -2
  158. package/dist/{status-badge.props-lKlEOfRt.d.ts → status-badge.props-BVe8CmQZ.d.ts} +1 -1
  159. package/dist/styles/type-scale.js +153 -0
  160. package/dist/tailwind-preset.js +120 -1
  161. package/dist/toast/index.d.ts +1 -1
  162. package/dist/utils/cn.js +16 -5
  163. package/dist/utils/index.d.ts +31 -2
  164. package/dist/utils/index.js +2 -1
  165. package/dist/utils/variant.js +47 -47
  166. package/dist/{variant-D81RhpbR.d.ts → variant-DjdaxfIA.d.ts} +6 -1
  167. package/package.json +3 -1
  168. package/src/styles/theme.css +8 -3
  169. package/src/styles/type-scale.css +152 -0
  170. package/tailwind.preset.ts +23 -0
@@ -112,13 +112,13 @@ function SheetFooter({ className, ...props }) {
112
112
  }
113
113
  function SheetTitle({ className, ...props }) {
114
114
  return /* @__PURE__ */ jsx(SheetTitle$1, {
115
- className: cn("text-foreground font-semibold", className),
115
+ className: cn("text-foreground type-heading", className),
116
116
  ...props
117
117
  });
118
118
  }
119
119
  function SheetDescription({ className, ...props }) {
120
120
  return /* @__PURE__ */ jsx(SheetDescription$1, {
121
- className: cn("text-muted-foreground text-sm", className),
121
+ className: cn("text-muted-foreground type-body", className),
122
122
  ...props
123
123
  });
124
124
  }
@@ -261,7 +261,7 @@ function SidebarGroupLabel({ className, asChild = false, ...props }) {
261
261
  return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
262
262
  "data-slot": "sidebar-group-label",
263
263
  "data-sidebar": "group-label",
264
- className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-300 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className),
264
+ className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 type-caption font-medium outline-hidden transition-[margin,opacity] duration-300 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className),
265
265
  ...props
266
266
  });
267
267
  }
@@ -277,7 +277,7 @@ function SidebarGroupContent({ className, ...props }) {
277
277
  return /* @__PURE__ */ jsx("div", {
278
278
  "data-slot": "sidebar-group-content",
279
279
  "data-sidebar": "group-content",
280
- className: cn("w-full text-sm flex", className),
280
+ className: cn("w-full type-body flex", className),
281
281
  ...props
282
282
  });
283
283
  }
@@ -304,16 +304,16 @@ var sidebarMenuButtonActiveVariants = cva("bg-sidebar-accent text-sidebar-accent
304
304
  } },
305
305
  defaultVariants: { variant: "default" }
306
306
  });
307
- var sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground [&:not([data-highlight])]:data-[state=open]:hover:bg-sidebar-accent [&:not([data-highlight])]:data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
307
+ var sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] p-2 text-left type-label outline-hidden ring-sidebar-ring transition-[width,height,padding] [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground [&:not([data-highlight])]:data-[state=open]:hover:bg-sidebar-accent [&:not([data-highlight])]:data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
308
308
  variants: {
309
309
  variant: {
310
310
  default: "[&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground",
311
311
  outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground [&:not([data-highlight])]:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
312
312
  },
313
313
  size: {
314
- default: "h-[var(--espd-sidebar-row-height,calc(var(--spacing)*8))] text-sm",
315
- sm: "h-[var(--espd-sidebar-row-height-sm,calc(var(--spacing)*7))] text-xs",
316
- lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
314
+ default: "h-[var(--espd-sidebar-row-height,calc(var(--spacing)*8))]",
315
+ sm: "h-[var(--espd-sidebar-row-height-sm,calc(var(--spacing)*7))]",
316
+ lg: "h-12 group-data-[collapsible=icon]:p-0!"
317
317
  }
318
318
  },
319
319
  defaultVariants: {
@@ -360,7 +360,7 @@ function SidebarMenuBadge({ className, ...props }) {
360
360
  return /* @__PURE__ */ jsx("div", {
361
361
  "data-slot": "sidebar-menu-badge",
362
362
  "data-sidebar": "menu-badge",
363
- className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className),
363
+ className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 type-caption font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className),
364
364
  ...props
365
365
  });
366
366
  }
@@ -407,7 +407,7 @@ function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false,
407
407
  "data-sidebar": "menu-sub-button",
408
408
  "data-size": size,
409
409
  "data-active": isActive,
410
- className: cn("text-sidebar-foreground ring-sidebar-ring [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", size === "sm" && "text-xs", size === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", className),
410
+ className: cn("text-sidebar-foreground ring-sidebar-ring [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", "type-label", "group-data-[collapsible=icon]:hidden", className),
411
411
  ...props
412
412
  })
413
413
  });
@@ -2,7 +2,7 @@ import "react";
2
2
  import "react/jsx-runtime";
3
3
  import { cva } from "class-variance-authority";
4
4
  //#region src/core/animate-ui/components/radix/toggle.tsx
5
- var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] text-sm font-medium hover:bg-muted/40 hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,background-color,box-shadow] duration-200 ease-in-out aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
5
+ var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label hover:bg-muted/40 hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,background-color,box-shadow] duration-200 ease-in-out aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
6
6
  variants: {
7
7
  variant: {
8
8
  default: "bg-transparent",
@@ -6,7 +6,7 @@ import "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { cva } from "class-variance-authority";
8
8
  //#region src/core/badge.tsx
9
- var badgeVariants = cva("inline-flex items-center rounded-[var(--espd-own-radius,var(--espd-radius-pill,var(--radius-md)))] px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2");
9
+ var badgeVariants = cva("inline-flex items-center rounded-[var(--espd-own-radius,var(--espd-radius-pill,var(--radius-md)))] px-2.5 py-0.5 type-caption font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2");
10
10
  function Badge({ className, variant = "soft", color = "primary", style, children, radius, ...props }) {
11
11
  const styles = resolveVariantStyles(variant, color);
12
12
  const { partStyle } = useStyleAxes({ radius }, ["radius"]);
@@ -12,7 +12,7 @@ var Breadcrumb = React$1.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("
12
12
  Breadcrumb.displayName = "Breadcrumb";
13
13
  var BreadcrumbList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("ol", {
14
14
  ref,
15
- className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className),
15
+ className: cn("flex flex-wrap items-center gap-1.5 break-words type-label text-muted-foreground sm:gap-2.5", className),
16
16
  ...props
17
17
  }));
18
18
  BreadcrumbList.displayName = "BreadcrumbList";
@@ -4,7 +4,7 @@ import { jsx } from "react/jsx-runtime";
4
4
  import { Slot } from "@radix-ui/react-slot";
5
5
  import { cva } from "class-variance-authority";
6
6
  //#region src/core/button/button.tsx
7
- var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
7
+ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
8
8
  variants: {
9
9
  variant: {
10
10
  default: "bg-primary text-primary-foreground shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-control,var(--shadow-sm)))] hover:bg-primary/90",
@@ -16,7 +16,7 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
16
16
  },
17
17
  size: {
18
18
  default: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] px-[var(--espd-button-padding-x-md,calc(var(--spacing)*4))] py-2",
19
- sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))] text-xs",
19
+ sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]",
20
20
  lg: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-lg,calc(var(--spacing)*8))]",
21
21
  icon: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] w-[var(--espd-control-height-md,calc(var(--spacing)*9))]"
22
22
  }
@@ -22,7 +22,7 @@ function ButtonGroup({ className, orientation, ...props }) {
22
22
  }
23
23
  function ButtonGroupText({ className, asChild = false, ...props }) {
24
24
  return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
25
- className: cn("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className),
25
+ className: cn("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 type-label [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className),
26
26
  ...props
27
27
  });
28
28
  }
@@ -4,7 +4,7 @@ import { jsx } from "react/jsx-runtime";
4
4
  import { Slot } from "@radix-ui/react-slot";
5
5
  import { cva } from "class-variance-authority";
6
6
  //#region src/core/button.tsx
7
- var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
7
+ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
8
8
  variants: {
9
9
  variant: {
10
10
  default: "shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-control,var(--shadow-sm)))]",
@@ -17,7 +17,7 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
17
17
  },
18
18
  size: {
19
19
  default: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] px-[var(--espd-button-padding-x-md,calc(var(--spacing)*4))] py-2",
20
- sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))] text-xs",
20
+ sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]",
21
21
  lg: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-lg,calc(var(--spacing)*8))]",
22
22
  icon: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] w-[var(--espd-control-height-md,calc(var(--spacing)*9))]"
23
23
  }
package/dist/core/card.js CHANGED
@@ -34,13 +34,13 @@ var CardHeader = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE
34
34
  CardHeader.displayName = "CardHeader";
35
35
  var CardTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
36
36
  ref,
37
- className: cn("font-semibold leading-none tracking-tight", className),
37
+ className: cn("type-heading leading-none tracking-tight", className),
38
38
  ...props
39
39
  }));
40
40
  CardTitle.displayName = "CardTitle";
41
41
  var CardDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
42
42
  ref,
43
- className: cn("text-sm text-muted-foreground", className),
43
+ className: cn("type-body text-muted-foreground", className),
44
44
  ...props
45
45
  }));
46
46
  CardDescription.displayName = "CardDescription";
@@ -28,7 +28,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
28
28
  role: "combobox",
29
29
  "aria-expanded": open,
30
30
  disabled,
31
- className: cn("flex h-10 w-full items-center justify-between rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 text-base ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", !displayValue && "text-muted-foreground", className),
31
+ className: cn("flex h-10 w-full items-center justify-between rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 type-input ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", !displayValue && "text-muted-foreground", className),
32
32
  style: axes.style,
33
33
  onClick: () => setOpen(!open),
34
34
  children: [/* @__PURE__ */ jsx("span", {
@@ -41,7 +41,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
41
41
  children: [label != null && /* @__PURE__ */ jsx("div", {
42
42
  className: "flex items-center justify-between",
43
43
  children: /* @__PURE__ */ jsxs("label", {
44
- className: "flex items-center gap-2 text-sm leading-none font-medium select-none",
44
+ className: "flex items-center gap-2 type-label leading-none select-none",
45
45
  children: [label, required && /* @__PURE__ */ jsx("span", {
46
46
  className: "text-destructive",
47
47
  children: "*"
@@ -76,7 +76,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
76
76
  className: "border-t p-2",
77
77
  children: /* @__PURE__ */ jsx("button", {
78
78
  type: "button",
79
- className: "text-sm text-primary hover:underline w-full text-center",
79
+ className: "type-label text-primary hover:underline w-full text-center",
80
80
  onClick: () => onLoadMore(),
81
81
  children: "Load more"
82
82
  })
@@ -15,7 +15,7 @@ var CommandInput = React$1.forwardRef(({ className, ...props }, ref) => /* @__PU
15
15
  "cmdk-input-wrapper": "",
16
16
  children: [/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command.Input, {
17
17
  ref,
18
- className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-md bg-transparent py-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", className),
18
+ className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-md bg-transparent py-3 type-input placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", className),
19
19
  ...props
20
20
  })]
21
21
  }));
@@ -28,13 +28,13 @@ var CommandList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PUR
28
28
  CommandList.displayName = Command.List.displayName;
29
29
  var CommandEmpty = React$1.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command.Empty, {
30
30
  ref,
31
- className: "py-6 text-center text-sm",
31
+ className: "py-6 text-center type-body",
32
32
  ...props
33
33
  }));
34
34
  CommandEmpty.displayName = Command.Empty.displayName;
35
35
  var CommandGroup = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command.Group, {
36
36
  ref,
37
- className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
37
+ className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:type-caption [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
38
38
  ...props
39
39
  }));
40
40
  CommandGroup.displayName = Command.Group.displayName;
@@ -46,13 +46,13 @@ var CommandSeparator = React$1.forwardRef(({ className, ...props }, ref) => /* @
46
46
  CommandSeparator.displayName = Command.Separator.displayName;
47
47
  var CommandItem = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command.Item, {
48
48
  ref,
49
- className: cn("relative flex cursor-default gap-2 select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
49
+ className: cn("relative flex cursor-default gap-2 select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
50
50
  ...props
51
51
  }));
52
52
  CommandItem.displayName = Command.Item.displayName;
53
53
  var CommandShortcut = ({ className, ...props }) => {
54
54
  return /* @__PURE__ */ jsx("span", {
55
- className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
55
+ className: cn("ml-auto type-caption tracking-widest text-muted-foreground", className),
56
56
  ...props
57
57
  });
58
58
  };
@@ -3,13 +3,13 @@ import "react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/core/field-label-row.tsx
5
5
  /** Shared with `MonospaceContent` and any other UI that should match non-floating field labels. */
6
- var inputLabelClassName = "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50";
7
- /** Hint text placed at the end of a label row. `leading-none` keeps the row 14px tall like the label. */
8
- var fieldHintClassName = "text-sm leading-none text-muted-foreground";
6
+ var inputLabelClassName = "flex items-center gap-2 type-label leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50";
7
+ /** Hint text placed at the end of a label row. `leading-none` keeps it no taller than the label, so the row stays one label line tall. */
8
+ var fieldHintClassName = "type-caption leading-none text-muted-foreground";
9
9
  /**
10
10
  * The label row every enhanced form control shares (`Input`, `Textarea`,
11
11
  * `SelectTrigger`, the date pickers): label with an optional required
12
- * marker on the left, optional hint on the right, one line of `text-sm`
12
+ * marker on the left, optional hint on the right, one line of `type-label`
13
13
  * at `leading-none`. Rendering it from one place keeps the distance
14
14
  * between label text and control identical across control types.
15
15
  */
package/dist/core/form.js CHANGED
@@ -70,7 +70,7 @@ var FormDescription = React$1.forwardRef(({ className, ...props }, ref) => {
70
70
  return /* @__PURE__ */ jsx("p", {
71
71
  ref,
72
72
  id: formDescriptionId,
73
- className: cn("text-[0.8rem] text-muted-foreground", className),
73
+ className: cn("type-caption text-muted-foreground", className),
74
74
  ...props
75
75
  });
76
76
  });
@@ -82,7 +82,7 @@ var FormMessage = React$1.forwardRef(({ className, children, ...props }, ref) =>
82
82
  return /* @__PURE__ */ jsx("p", {
83
83
  ref,
84
84
  id: formMessageId,
85
- className: cn("text-[0.8rem] font-medium text-destructive", className),
85
+ className: cn("type-caption font-medium text-destructive", className),
86
86
  ...props,
87
87
  children: body
88
88
  });
@@ -16,7 +16,7 @@ export { u as useControlledState } from '../use-controlled-state-BL9NoHu8.js';
16
16
  export { useIsMobile } from '../components/use-mobile/index.js';
17
17
  import { UseInViewOptions } from 'motion/react';
18
18
  import '../style-axes-DSQ2DGc5.js';
19
- import '../variant-D81RhpbR.js';
19
+ import '../variant-DjdaxfIA.js';
20
20
  import '../index-BQANnKs9.js';
21
21
  import '@radix-ui/react-collapsible';
22
22
  import '@radix-ui/react-label';
@@ -5,9 +5,9 @@ import * as React$1 from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/core/input/input.tsx
7
7
  var sizeClasses = {
8
- sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] px-2 text-xs",
9
- default: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] px-3 py-2 text-base md:text-sm",
10
- lg: "h-12 px-4 text-lg"
8
+ sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] px-2 type-input",
9
+ default: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] px-3 py-2 type-input",
10
+ lg: "h-12 px-4 type-input"
11
11
  };
12
12
  /**
13
13
  * An add-on segment beside the field. A text add-on is a padded box. An
@@ -19,7 +19,7 @@ var sizeClasses = {
19
19
  */
20
20
  function addOnClassName(side, action, full) {
21
21
  const start = side === "start";
22
- return cn("border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background", start ? "-me-px" : "-ms-px", start && (full ? "rounded-s-full" : "rounded-s-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-lg)))]"), !start && (full ? "rounded-e-full" : "rounded-e-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-lg)))]"), action ? "relative flex shrink-0 overflow-hidden has-[:focus-visible]:z-20 has-[:focus-visible]:border-ring [&>*]:h-auto! [&>*]:self-stretch [&>*]:rounded-none! [&>*]:px-3! [&>*]:shadow-none! [&>*:focus-visible]:ring-1! [&>*:focus-visible]:ring-inset! [&>*:focus-visible]:ring-offset-0!" : "inline-flex items-center px-3 text-sm text-muted-foreground");
22
+ return cn("border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background", start ? "-me-px" : "-ms-px", start && (full ? "rounded-s-full" : "rounded-s-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-lg)))]"), !start && (full ? "rounded-e-full" : "rounded-e-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-lg)))]"), action ? "relative flex shrink-0 overflow-hidden has-[:focus-visible]:z-20 has-[:focus-visible]:border-ring [&>*]:h-auto! [&>*]:self-stretch [&>*]:rounded-none! [&>*]:px-3! [&>*]:shadow-none! [&>*:focus-visible]:ring-1! [&>*:focus-visible]:ring-inset! [&>*:focus-visible]:ring-offset-0!" : "inline-flex items-center px-3 type-input text-muted-foreground");
23
23
  }
24
24
  var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHelperContent, endHelperContent, hintContent, error, errorContent, startIcon, endIcon, startAddOnContent, endAddOnContent, startAddOn, endAddOn, startAddOnAction, endAddOnAction, floatingLabel, charLimit, onChange, value, defaultValue, id, required, placeholder, radius, border, style, ...restProps }, ref) => {
25
25
  const autoId = React$1.useId();
@@ -41,7 +41,7 @@ var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHe
41
41
  if (!(label !== void 0 || size !== void 0 || rounded !== void 0 || startHelperContent !== void 0 || endHelperContent !== void 0 || hintContent !== void 0 || error !== void 0 || errorContent !== void 0 || startIcon !== void 0 || endIcon !== void 0 || startAddOnContent !== void 0 || endAddOnContent !== void 0 || startAddOn !== void 0 || endAddOn !== void 0 || startAddOnAction !== void 0 || endAddOnAction !== void 0 || floatingLabel !== void 0 || charLimit !== void 0)) return /* @__PURE__ */ jsx("input", {
42
42
  type,
43
43
  id,
44
- className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 text-base ring-offset-background transition-[box-shadow,border-color] duration-[var(--espd-duration-normal,200ms)] ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 read-only:bg-muted md:text-sm", className),
44
+ className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 type-input ring-offset-background transition-[box-shadow,border-color] duration-[var(--espd-duration-normal,200ms)] ease-in-out file:border-0 file:bg-transparent file:type-label file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 read-only:bg-muted", className),
45
45
  ref,
46
46
  onChange,
47
47
  value,
@@ -77,7 +77,7 @@ var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHe
77
77
  type,
78
78
  id: inputId,
79
79
  ref,
80
- className: cn("flex w-full border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-[var(--espd-duration-normal,200ms)] ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 read-only:bg-muted z-10", floatingLabel ? "h-12 px-3 pt-4 pb-1 text-base md:text-sm" : sizeClasses[effectiveSize], rounded && radius === void 0 ? "rounded-full" : "rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))]", hasError && "border-destructive focus-visible:ring-destructive", startIcon && "ps-9", endIcon && "pe-9", charLimit !== void 0 && !endIcon && "pe-14", charLimit !== void 0 && endIcon && "pe-20", startAddOnNode != null && "rounded-s-none shadow-none", endAddOnNode != null && "rounded-e-none shadow-none", hasAddOn && "focus-visible:ring-0 focus-visible:ring-offset-0", "peer", floatingLabel && "placeholder:text-transparent", className),
80
+ className: cn("flex w-full border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-[var(--espd-duration-normal,200ms)] ease-in-out file:border-0 file:bg-transparent file:type-label file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 read-only:bg-muted z-10", floatingLabel ? "h-12 px-3 pt-4 pb-1 type-input" : sizeClasses[effectiveSize], rounded && radius === void 0 ? "rounded-full" : "rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))]", hasError && "border-destructive focus-visible:ring-destructive", startIcon && "ps-9", endIcon && "pe-9", charLimit !== void 0 && !endIcon && "pe-14", charLimit !== void 0 && endIcon && "pe-20", startAddOnNode != null && "rounded-s-none shadow-none", endAddOnNode != null && "rounded-e-none shadow-none", hasAddOn && "focus-visible:ring-0 focus-visible:ring-offset-0", "peer", floatingLabel && "placeholder:text-transparent", className),
81
81
  required,
82
82
  "aria-invalid": hasError || void 0,
83
83
  "aria-describedby": describedBy,
@@ -101,7 +101,7 @@ var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHe
101
101
  (endIcon || charLimit !== void 0) && /* @__PURE__ */ jsxs("div", {
102
102
  className: "pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center gap-2 pe-3 text-muted-foreground/80 peer-disabled:opacity-50",
103
103
  children: [charLimit !== void 0 && /* @__PURE__ */ jsxs("span", {
104
- className: "text-xs tabular-nums text-muted-foreground",
104
+ className: "type-caption tabular-nums text-muted-foreground",
105
105
  children: [
106
106
  charCount,
107
107
  "/",
@@ -111,7 +111,7 @@ var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHe
111
111
  }),
112
112
  floatingLabel && label && /* @__PURE__ */ jsxs("label", {
113
113
  htmlFor: inputId,
114
- className: "absolute start-2 top-0 z-10 block -translate-y-1/2 bg-background px-2 text-xs font-medium text-foreground/70 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-placeholder-shown:font-normal peer-focus:top-0 peer-focus:text-xs peer-focus:font-medium",
114
+ className: "absolute start-2 top-0 z-10 block -translate-y-1/2 bg-background px-2 type-caption font-medium text-foreground/70 transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:type-input peer-placeholder-shown:font-normal peer-focus:top-0 peer-focus:type-caption peer-focus:font-medium",
115
115
  children: [label, required && /* @__PURE__ */ jsx("span", {
116
116
  className: "text-destructive",
117
117
  children: " *"
@@ -152,17 +152,17 @@ var Input = React$1.forwardRef(({ className, type, label, size, rounded, startHe
152
152
  inputContainer,
153
153
  errorContent && /* @__PURE__ */ jsx("div", {
154
154
  id: `${inputId}-error`,
155
- className: "text-sm text-destructive",
155
+ className: "type-caption text-destructive",
156
156
  children: errorContent
157
157
  }),
158
158
  startHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
159
159
  id: helperStartId,
160
- className: "text-sm text-muted-foreground",
160
+ className: "type-caption text-muted-foreground",
161
161
  children: startHelperContent
162
162
  }),
163
163
  endHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
164
164
  id: helperEndId,
165
- className: "text-sm text-end text-muted-foreground",
165
+ className: "type-caption text-end text-muted-foreground",
166
166
  children: endHelperContent
167
167
  })
168
168
  ]
@@ -11,15 +11,15 @@ var LENGTH_MIN = 2;
11
11
  var LENGTH_MAX = 12;
12
12
  var LENGTH_DEFAULT = 6;
13
13
  var slotSizeClasses = {
14
- sm: "h-8 w-8 text-xs",
15
- default: "h-10 w-10 text-base md:text-sm",
16
- lg: "h-12 w-12 text-lg"
14
+ sm: "h-8 w-8 type-input",
15
+ default: "h-10 w-10 type-input",
16
+ lg: "h-12 w-12 type-input"
17
17
  };
18
- /** Expanded mode: keep the height and font size but let the slot flex-grow. */
18
+ /** Expanded mode: keep the height and text role but let the slot flex-grow. */
19
19
  var slotExpandedSizeClasses = {
20
- sm: "h-8 text-xs",
21
- default: "h-10 text-base md:text-sm",
22
- lg: "h-12 text-lg"
20
+ sm: "h-8 type-input",
21
+ default: "h-10 type-input",
22
+ lg: "h-12 type-input"
23
23
  };
24
24
  /**
25
25
  * Standalone visual divider used between OTP slot groups. Exported for callers
@@ -120,12 +120,12 @@ var InputOTP = React$1.forwardRef(({ length, allowAlphaNumeric, regex, separator
120
120
  children: "*"
121
121
  })]
122
122
  }), hintContent && /* @__PURE__ */ jsx("span", {
123
- className: "text-sm text-muted-foreground",
123
+ className: "type-caption text-muted-foreground",
124
124
  children: hintContent
125
125
  })]
126
126
  }),
127
127
  !label && hintContent && /* @__PURE__ */ jsx("span", {
128
- className: "text-sm text-muted-foreground",
128
+ className: "type-caption text-muted-foreground",
129
129
  children: hintContent
130
130
  }),
131
131
  /* @__PURE__ */ jsx(OTPInput, {
@@ -166,17 +166,17 @@ var InputOTP = React$1.forwardRef(({ length, allowAlphaNumeric, regex, separator
166
166
  }),
167
167
  errorContent && /* @__PURE__ */ jsx("div", {
168
168
  id: `${inputId}-error`,
169
- className: "text-sm text-destructive",
169
+ className: "type-caption text-destructive",
170
170
  children: errorContent
171
171
  }),
172
172
  startHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
173
173
  id: helperStartId,
174
- className: "text-sm text-muted-foreground",
174
+ className: "type-caption text-muted-foreground",
175
175
  children: startHelperContent
176
176
  }),
177
177
  endHelperContent && !errorContent && /* @__PURE__ */ jsx("div", {
178
178
  id: helperEndId,
179
- className: "text-sm text-end text-muted-foreground",
179
+ className: "type-caption text-end text-muted-foreground",
180
180
  children: endHelperContent
181
181
  })
182
182
  ]
@@ -4,7 +4,7 @@ import { jsx } from "react/jsx-runtime";
4
4
  import { cva } from "class-variance-authority";
5
5
  import * as LabelPrimitive from "@radix-ui/react-label";
6
6
  //#region src/core/label.tsx
7
- var labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
7
+ var labelVariants = cva("type-label leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
8
8
  var Label = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(LabelPrimitive.Root, {
9
9
  ref,
10
10
  className: cn(labelVariants(), className),
@@ -10,9 +10,9 @@ var Select = SelectPrimitive.Root;
10
10
  var SelectGroup = SelectPrimitive.Group;
11
11
  var SelectValue = SelectPrimitive.Value;
12
12
  var triggerSizeClasses = {
13
- sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] px-3 text-xs",
14
- default: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] px-3.5 py-2 text-base md:text-sm",
15
- lg: "h-12 px-5 text-lg"
13
+ sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] px-3 type-input",
14
+ default: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] px-3.5 py-2 type-input",
15
+ lg: "h-12 px-5 type-input"
16
16
  };
17
17
  /**
18
18
  * Fixed 16px like the decorators inside `Input` (`startIcon` / `endIcon`
@@ -66,7 +66,7 @@ var SelectTrigger = React$1.forwardRef(({ className, children, size = "default",
66
66
  trigger,
67
67
  errorContent && /* @__PURE__ */ jsx("div", {
68
68
  id: errorId,
69
- className: "text-sm text-destructive",
69
+ className: "type-caption text-destructive",
70
70
  children: errorContent
71
71
  })
72
72
  ]
@@ -128,13 +128,13 @@ var SelectContent = React$1.forwardRef(({ className, children, position = "poppe
128
128
  SelectContent.displayName = SelectPrimitive.Content.displayName;
129
129
  var SelectLabel = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, {
130
130
  ref,
131
- className: cn("px-2.5 py-2 text-sm font-semibold", className),
131
+ className: cn("px-2.5 py-2 type-subheading", className),
132
132
  ...props
133
133
  }));
134
134
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
135
135
  var SelectItem = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
136
136
  ref,
137
- className: cn("relative flex w-full cursor-default select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-2 pl-2.5 pr-9 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
137
+ className: cn("relative flex w-full cursor-default select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-2 pl-2.5 pr-9 type-label outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
138
138
  ...props,
139
139
  children: [/* @__PURE__ */ jsx("span", {
140
140
  className: "absolute right-2.5 flex h-3.5 w-3.5 items-center justify-center",
@@ -25,7 +25,7 @@ var Separator = React$1.forwardRef(({ className, orientation = "horizontal", dec
25
25
  className: cn("shrink-0 bg-border flex-1", isHorizontal ? "h-[1px]" : "w-[1px]")
26
26
  }),
27
27
  /* @__PURE__ */ jsx("span", {
28
- className: cn("text-xs font-medium text-muted-foreground shrink-0 select-none", !isHorizontal && stackLabel && "[writing-mode:vertical-lr] [text-orientation:upright]", labelClassName),
28
+ className: cn("type-caption font-medium text-muted-foreground shrink-0 select-none", !isHorizontal && stackLabel && "[writing-mode:vertical-lr] [text-orientation:upright]", labelClassName),
29
29
  children: label
30
30
  }),
31
31
  /* @__PURE__ */ jsx("div", {
@@ -10,7 +10,7 @@ var Table = React$1.forwardRef(({ className, containerRef, containerClassName, d
10
10
  className: cn("relative w-full overflow-auto", containerClassName),
11
11
  children: /* @__PURE__ */ jsx("table", {
12
12
  ref,
13
- className: cn("w-full caption-bottom text-sm", className),
13
+ className: cn("w-full caption-bottom type-body", className),
14
14
  ...props
15
15
  })
16
16
  }));
@@ -53,7 +53,7 @@ var TableCell = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE_
53
53
  TableCell.displayName = "TableCell";
54
54
  var TableCaption = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", {
55
55
  ref,
56
- className: cn("mt-4 text-sm text-muted-foreground", className),
56
+ className: cn("mt-4 type-body text-muted-foreground", className),
57
57
  ...props
58
58
  }));
59
59
  TableCaption.displayName = "TableCaption";
@@ -3,11 +3,11 @@ import { useStyleAxes } from "../../utils/style-axes.js";
3
3
  import * as React$1 from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/core/textarea/textarea.tsx
6
- var labelClasses = "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50";
6
+ var labelClasses = "flex items-center gap-2 type-label leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50";
7
7
  var sizeClasses = {
8
- sm: "min-h-[60px] px-2 py-1.5 text-xs",
9
- default: "min-h-[80px] px-3 py-2 text-base md:text-sm",
10
- lg: "min-h-[100px] px-4 py-3 text-lg"
8
+ sm: "min-h-[60px] px-2 py-1.5 type-input",
9
+ default: "min-h-[80px] px-3 py-2 type-input",
10
+ lg: "min-h-[100px] px-4 py-3 type-input"
11
11
  };
12
12
  var Textarea = React$1.forwardRef(({ className, label, size = "default", hintContent, error, errorContent, charLimit, onChange, value, defaultValue, id, required, placeholder, radius, border, style, ...restProps }, ref) => {
13
13
  const autoId = React$1.useId();
@@ -51,7 +51,7 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
51
51
  if (!hasEnhancedProps) return /* @__PURE__ */ jsx("textarea", {
52
52
  ref,
53
53
  id,
54
- className: cn("flex min-h-[60px] w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 text-base ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm resize-y", className),
54
+ className: cn("flex min-h-[60px] w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 type-input ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-y", className),
55
55
  required,
56
56
  placeholder,
57
57
  value,
@@ -73,18 +73,18 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
73
73
  children: "*"
74
74
  })]
75
75
  }), hintContent != null && /* @__PURE__ */ jsx("span", {
76
- className: "text-sm text-muted-foreground",
76
+ className: "type-caption text-muted-foreground",
77
77
  children: hintContent
78
78
  })]
79
79
  }),
80
80
  !label && hintContent != null && /* @__PURE__ */ jsx("span", {
81
- className: "text-sm text-muted-foreground",
81
+ className: "type-caption text-muted-foreground",
82
82
  children: hintContent
83
83
  }),
84
84
  /* @__PURE__ */ jsxs("div", {
85
85
  className: "relative",
86
86
  children: [textareaElement, charLimit !== void 0 && /* @__PURE__ */ jsxs("div", {
87
- className: "absolute bottom-2 end-2 text-xs tabular-nums text-muted-foreground pointer-events-none",
87
+ className: "absolute bottom-2 end-2 type-caption tabular-nums text-muted-foreground pointer-events-none",
88
88
  children: [
89
89
  charCount,
90
90
  "/",
@@ -94,7 +94,7 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
94
94
  }),
95
95
  errorContent != null && /* @__PURE__ */ jsx("div", {
96
96
  id: `${textareaId}-error`,
97
- className: "text-sm text-destructive",
97
+ className: "type-caption text-destructive",
98
98
  children: errorContent
99
99
  })
100
100
  ]
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
2
  import { C as Color } from './index-BQANnKs9.js';
3
- import { f as Variant } from './variant-D81RhpbR.js';
3
+ import { f as Variant } from './variant-DjdaxfIA.js';
4
4
 
5
5
  type IconAvatarVariant = "legacy" | Variant;
6
6
  interface IconAvatarRingProps {
@@ -1,8 +1,8 @@
1
1
  import { ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  import { C as Color, S as Size } from './index-BQANnKs9.js';
3
- import { f as Variant } from './variant-D81RhpbR.js';
3
+ import { f as Variant } from './variant-DjdaxfIA.js';
4
4
  import { k as StyleAxisProps } from './style-axes-DSQ2DGc5.js';
5
- import { b as IconAvatarVariant } from './icon-avatar.props-RYtw2eSW.js';
5
+ import { b as IconAvatarVariant } from './icon-avatar.props-BJe0-vva.js';
6
6
 
7
7
  type IconTextActionCardVariant = Variant;
8
8
  type IconTextActionCardActionsPlacement = "auto" | "below";