@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
@@ -4,16 +4,16 @@ import { Tag } from "../tag/tag.js";
4
4
  import * as React$1 from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/tag-input/tag-input.tsx
7
- 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";
7
+ 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";
8
8
  var controlSizeClasses = {
9
- sm: "min-h-8 gap-1 px-2 py-1 text-xs",
10
- default: "min-h-10 gap-1.5 px-3 py-2 text-base md:text-sm",
11
- lg: "min-h-12 gap-2 px-4 py-2 text-lg"
9
+ sm: "min-h-8 gap-1 px-2 py-1 type-input",
10
+ default: "min-h-10 gap-1.5 px-3 py-2 type-input",
11
+ lg: "min-h-12 gap-2 px-4 py-2 type-input"
12
12
  };
13
13
  var inputTextSizeClasses = {
14
- sm: "text-xs",
15
- default: "text-base md:text-sm",
16
- lg: "text-lg"
14
+ sm: "type-input",
15
+ default: "type-input",
16
+ lg: "type-input"
17
17
  };
18
18
  function truncateDisplay(text, maxLen) {
19
19
  if (text.length <= maxLen) return text;
@@ -100,12 +100,12 @@ var TagInput = React$1.forwardRef(({ tags, onTagsChange, label, required, size,
100
100
  children: "*"
101
101
  }) : null]
102
102
  }), hintContent ? /* @__PURE__ */ jsx("span", {
103
- className: "text-sm text-muted-foreground",
103
+ className: "type-caption text-muted-foreground",
104
104
  children: hintContent
105
105
  }) : null]
106
106
  }) : null,
107
107
  !label && hintContent ? /* @__PURE__ */ jsx("span", {
108
- className: "text-sm text-muted-foreground",
108
+ className: "type-caption text-muted-foreground",
109
109
  children: hintContent
110
110
  }) : null,
111
111
  /* @__PURE__ */ jsxs("div", {
@@ -146,17 +146,17 @@ var TagInput = React$1.forwardRef(({ tags, onTagsChange, label, required, size,
146
146
  }),
147
147
  errorContent ? /* @__PURE__ */ jsx("div", {
148
148
  id: `${inputId}-error`,
149
- className: "text-sm text-destructive",
149
+ className: "type-caption text-destructive",
150
150
  children: errorContent
151
151
  }) : null,
152
152
  startHelperContent && !errorContent ? /* @__PURE__ */ jsx("div", {
153
153
  id: `${inputId}-helper`,
154
- className: "text-sm text-muted-foreground",
154
+ className: "type-caption text-muted-foreground",
155
155
  children: startHelperContent
156
156
  }) : null,
157
157
  endHelperContent && !errorContent ? /* @__PURE__ */ jsx("div", {
158
158
  id: `${inputId}-helper`,
159
- className: "text-end text-sm text-muted-foreground",
159
+ className: "text-end type-caption text-muted-foreground",
160
160
  children: endHelperContent
161
161
  }) : null
162
162
  ]
@@ -62,10 +62,10 @@ var Timeline = React$1.forwardRef(function Timeline({ items, pageSize = DEFAULT_
62
62
  /* @__PURE__ */ jsxs("div", {
63
63
  className: "flex min-w-0 flex-col gap-0.5",
64
64
  children: [/* @__PURE__ */ jsx("div", {
65
- className: "min-w-0 text-sm text-foreground [overflow-wrap:anywhere]",
65
+ className: "min-w-0 type-body text-foreground [overflow-wrap:anywhere]",
66
66
  children: item.title
67
67
  }), item.time != null ? /* @__PURE__ */ jsx("div", {
68
- className: "font-mono text-xs text-foreground-secondary",
68
+ className: "type-caption font-mono text-foreground-secondary",
69
69
  children: item.time
70
70
  }) : null]
71
71
  })
@@ -3,7 +3,7 @@ import { ToasterProps } from 'sonner';
3
3
  import * as React from 'react';
4
4
  import { C as Color } from '../../index-BQANnKs9.js';
5
5
  import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
6
- import { f as Variant } from '../../variant-D81RhpbR.js';
6
+ import { f as Variant } from '../../variant-DjdaxfIA.js';
7
7
 
8
8
  type ToastColor = Color;
9
9
  type ToastVariant = Variant;
@@ -83,10 +83,10 @@ var Toast = React$1.forwardRef(({ icon, title, children, type, color, variant, h
83
83
  /* @__PURE__ */ jsxs("div", {
84
84
  className: "flex min-w-0 flex-1 flex-col gap-1",
85
85
  children: [title && /* @__PURE__ */ jsx("div", {
86
- className: "font-medium leading-normal text-sm",
86
+ className: "type-subheading font-medium",
87
87
  children: title
88
88
  }), children && /* @__PURE__ */ jsx("div", {
89
- className: cn("text-sm leading-normal", styles.description),
89
+ className: cn("type-body", styles.description),
90
90
  style: styles.descriptionStyle,
91
91
  children
92
92
  })]
@@ -22,8 +22,11 @@ interface ToolbarProps {
22
22
  /**
23
23
  * A thin bar of small controls across the top of a work area — 44px, so
24
24
  * 28px controls (`ToolbarButton`) sit in it with air on both sides. Three
25
- * slots: the start and end share the width, so the centre is centred on the
26
- * bar, not between whatever the sides happen to hold. A bottom rule in the
25
+ * slots: with a centre, the start and end share the width, so the centre is
26
+ * centred on the bar, not between whatever the sides happen to hold. With no
27
+ * centre there is nothing to keep centred: the end takes only the width its
28
+ * controls need and the start the rest, so a title there truncates as late as
29
+ * possible (a narrow phone). A bottom rule in the
27
30
  * border colour every panel edge uses, so the bar and the columns under it
28
31
  * read as one grid. Left/Right arrows move between its controls.
29
32
  */
@@ -30,7 +30,7 @@ function ToolbarButton({ label, icon, onClick, pressed, tooltip, count = 0, atte
30
30
  }),
31
31
  count > 0 && /* @__PURE__ */ jsx("span", {
32
32
  "aria-hidden": true,
33
- className: "absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-xs leading-none font-semibold text-primary-foreground",
33
+ className: "absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 type-caption leading-none font-semibold text-primary-foreground",
34
34
  children: count
35
35
  })
36
36
  ]
@@ -24,8 +24,11 @@ function moveFocus(event) {
24
24
  /**
25
25
  * A thin bar of small controls across the top of a work area — 44px, so
26
26
  * 28px controls (`ToolbarButton`) sit in it with air on both sides. Three
27
- * slots: the start and end share the width, so the centre is centred on the
28
- * bar, not between whatever the sides happen to hold. A bottom rule in the
27
+ * slots: with a centre, the start and end share the width, so the centre is
28
+ * centred on the bar, not between whatever the sides happen to hold. With no
29
+ * centre there is nothing to keep centred: the end takes only the width its
30
+ * controls need and the start the rest, so a title there truncates as late as
31
+ * possible (a narrow phone). A bottom rule in the
29
32
  * border colour every panel edge uses, so the bar and the columns under it
30
33
  * read as one grid. Left/Right arrows move between its controls.
31
34
  */
@@ -38,15 +41,18 @@ function Toolbar({ label, start, center, end, tone = "page", className }) {
38
41
  className: cn("flex h-11 shrink-0 items-center gap-2 border-b border-border px-2", tone === "dark" ? "dark bg-sidebar text-foreground" : "bg-background", className),
39
42
  children: [
40
43
  /* @__PURE__ */ jsx("div", {
44
+ "data-slot": "toolbar-start",
41
45
  className: "flex min-w-0 flex-1 items-center gap-2",
42
46
  children: start
43
47
  }),
44
48
  center && /* @__PURE__ */ jsx("div", {
49
+ "data-slot": "toolbar-center",
45
50
  className: "flex min-w-0 shrink-0 items-center justify-center",
46
51
  children: center
47
52
  }),
48
53
  /* @__PURE__ */ jsx("div", {
49
- className: "flex min-w-0 flex-1 items-center justify-end gap-2",
54
+ "data-slot": "toolbar-end",
55
+ className: cn("flex min-w-0 items-center justify-end gap-2", center ? "flex-1" : "flex-none"),
50
56
  children: end
51
57
  })
52
58
  ]
@@ -23,7 +23,7 @@ function Trace({ size = "md", className, ...props }) {
23
23
  value: size,
24
24
  children: /* @__PURE__ */ jsx("div", {
25
25
  "data-slot": "trace",
26
- className: cn("flex min-w-0 flex-col gap-0.5", size === "sm" ? "text-xs leading-5" : "text-sm leading-6", className),
26
+ className: cn("flex min-w-0 flex-col gap-0.5 type-body", size === "sm" ? "leading-5" : "leading-6", className),
27
27
  ...props
28
28
  })
29
29
  });
@@ -89,7 +89,7 @@ function filterItemsByQuery(items, query, getLabel) {
89
89
  }
90
90
  function TransferListItems({ filteredItems, items, selectedIds, getItemId, getItemLabel, isItemDisabled, renderItem, disabled, rowVariants, onChecked }) {
91
91
  if (filteredItems.length === 0) return /* @__PURE__ */ jsx("p", {
92
- className: "px-1 py-2 text-sm text-muted-foreground",
92
+ className: "px-1 py-2 type-body text-muted-foreground",
93
93
  children: items.length === 0 ? "No items" : "No matching items"
94
94
  });
95
95
  return /* @__PURE__ */ jsx(AnimatePresence, {
@@ -113,7 +113,7 @@ function TransferListItems({ filteredItems, items, selectedIds, getItemId, getIt
113
113
  onCheckedChange: (state) => onChecked(id, state),
114
114
  "aria-label": label
115
115
  }), /* @__PURE__ */ jsx("span", {
116
- className: "min-w-0 flex-1 text-sm text-foreground",
116
+ className: "min-w-0 flex-1 type-body text-foreground",
117
117
  children: renderItem?.(item) ?? label
118
118
  })]
119
119
  }, id);
@@ -1,14 +1,23 @@
1
1
  import * as React from 'react';
2
2
  import { JSX, HTMLAttributes } from 'react';
3
3
 
4
- declare const TYPOGRAPHY_VARIANTS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "body1", "body2", "subtitle1", "subtitle2"];
4
+ declare const TYPOGRAPHY_VARIANTS: readonly ["display", "lead", "title", "headline", "heading", "subheading", "prose", "body", "secondary", "caption", "label", "code", "h1", "h2", "h3", "h4", "h5", "h6", "body1", "body2", "subtitle1", "subtitle2"];
5
5
  type TypographyVariant = (typeof TYPOGRAPHY_VARIANTS)[number];
6
- /** Tailwind classes per variant — edit here to tune the type scale. */
6
+ /**
7
+ * Classes per variant. Size, line height and weight come from the role's
8
+ * `type-*` utility only (the tokens in `type-scale.css`), so a theme that
9
+ * changes a role changes every variant on it. Tune the scale there, not here.
10
+ */
7
11
  declare const typographyVariantClasses: Record<TypographyVariant, string>;
8
- /** Default semantic tag per variant (Material UI–aligned). */
12
+ /** Default semantic tag per variant. */
9
13
  declare const typographyDefaultElement: Record<TypographyVariant, keyof JSX.IntrinsicElements>;
10
14
 
11
15
  interface TypographyProps extends HTMLAttributes<HTMLElement> {
16
+ /**
17
+ * A role of the type scale (`title`, `heading`, `body`, `caption`, …), or one
18
+ * of the variants before 1.14 (`h1`…`h6`, `body1`, `body2`, `subtitle1`,
19
+ * `subtitle2`), each an alias of a role. Default `body1` (the `prose` role).
20
+ */
12
21
  variant?: TypographyVariant;
13
22
  /** Override the rendered element while keeping variant styles (e.g. `as="span"` with `variant="h1"`). */
14
23
  as?: keyof JSX.IntrinsicElements;
@@ -1,5 +1,17 @@
1
1
  //#region src/components/typography/typography-variants.ts
2
2
  var TYPOGRAPHY_VARIANTS = [
3
+ "display",
4
+ "lead",
5
+ "title",
6
+ "headline",
7
+ "heading",
8
+ "subheading",
9
+ "prose",
10
+ "body",
11
+ "secondary",
12
+ "caption",
13
+ "label",
14
+ "code",
3
15
  "h1",
4
16
  "h2",
5
17
  "h3",
@@ -11,21 +23,94 @@ var TYPOGRAPHY_VARIANTS = [
11
23
  "subtitle1",
12
24
  "subtitle2"
13
25
  ];
14
- /** Tailwind classes per variant — edit here to tune the type scale. */
26
+ /**
27
+ * Classes per variant. Size, line height and weight come from the role's
28
+ * `type-*` utility only (the tokens in `type-scale.css`), so a theme that
29
+ * changes a role changes every variant on it. Tune the scale there, not here.
30
+ */
15
31
  var typographyVariantClasses = {
16
- h1: "text-3xl font-bold tracking-tight",
17
- h2: "text-2xl font-bold tracking-tight",
18
- h3: "text-xl font-semibold tracking-tight",
19
- h4: "text-lg font-semibold",
20
- h5: "text-base font-semibold",
21
- h6: "text-sm font-semibold",
22
- subtitle1: "text-sm font-medium text-muted-foreground",
23
- subtitle2: "text-xs font-medium text-muted-foreground",
24
- body1: "text-base leading-relaxed",
25
- body2: "text-sm leading-normal"
32
+ display: "type-display tracking-tight",
33
+ lead: "type-lead",
34
+ title: "type-title tracking-tight",
35
+ headline: "type-headline tracking-tight",
36
+ heading: "type-heading",
37
+ subheading: "type-subheading",
38
+ prose: "type-prose",
39
+ body: "type-body",
40
+ secondary: "type-secondary",
41
+ caption: "type-caption",
42
+ label: "type-label",
43
+ code: "type-code font-mono",
44
+ h1: "type-title tracking-tight",
45
+ h2: "type-title tracking-tight",
46
+ h3: "type-headline tracking-tight",
47
+ h4: "type-heading",
48
+ h5: "type-heading",
49
+ h6: "type-subheading",
50
+ subtitle1: "type-label text-muted-foreground",
51
+ subtitle2: "type-caption font-medium text-muted-foreground",
52
+ body1: "type-prose",
53
+ body2: "type-body"
26
54
  };
27
- /** Default semantic tag per variant (Material UI–aligned). */
55
+ /** The role each variant is, or aliases. */
56
+ var typographyVariantRole = {
57
+ display: "display",
58
+ lead: "lead",
59
+ title: "title",
60
+ headline: "headline",
61
+ heading: "heading",
62
+ subheading: "subheading",
63
+ prose: "prose",
64
+ body: "body",
65
+ secondary: "secondary",
66
+ caption: "caption",
67
+ label: "label",
68
+ code: "code",
69
+ h1: "title",
70
+ h2: "title",
71
+ h3: "headline",
72
+ h4: "heading",
73
+ h5: "heading",
74
+ h6: "subheading",
75
+ subtitle1: "label",
76
+ subtitle2: "caption",
77
+ body1: "prose",
78
+ body2: "body"
79
+ };
80
+ /**
81
+ * The role's weight on its own, for when a caller's raw text size
82
+ * (`className="text-xs"`) replaces the role: before 1.14 such an override
83
+ * replaced only the variant's size, so the variant's weight is kept. Written
84
+ * out in full so Tailwind finds every class in the built files.
85
+ */
86
+ var typographyRoleWeightClasses = {
87
+ display: "font-[weight:var(--espd-type-display-weight,800)]",
88
+ lead: "font-[weight:var(--espd-type-lead-weight,400)]",
89
+ title: "font-[weight:var(--espd-type-title-weight,700)]",
90
+ headline: "font-[weight:var(--espd-type-headline-weight,600)]",
91
+ heading: "font-[weight:var(--espd-type-heading-weight,600)]",
92
+ subheading: "font-[weight:var(--espd-type-subheading-weight,600)]",
93
+ prose: "font-[weight:var(--espd-type-prose-weight,400)]",
94
+ body: "font-[weight:var(--espd-type-body-weight,400)]",
95
+ secondary: "font-[weight:var(--espd-type-secondary-weight,400)]",
96
+ caption: "font-[weight:var(--espd-type-caption-weight,400)]",
97
+ label: "font-[weight:var(--espd-type-label-weight,500)]",
98
+ code: "font-[weight:var(--espd-type-code-weight,400)]"
99
+ };
100
+ /** Default semantic tag per variant. */
28
101
  var typographyDefaultElement = {
102
+ display: "h1",
103
+ lead: "p",
104
+ title: "h1",
105
+ headline: "h2",
106
+ heading: "h3",
107
+ subheading: "h4",
108
+ prose: "p",
109
+ body: "p",
110
+ secondary: "p",
111
+ caption: "span",
112
+ label: "span",
113
+ code: "code",
29
114
  h1: "h1",
30
115
  h2: "h2",
31
116
  h3: "h3",
@@ -38,4 +123,4 @@ var typographyDefaultElement = {
38
123
  body2: "p"
39
124
  };
40
125
  //#endregion
41
- export { TYPOGRAPHY_VARIANTS, typographyDefaultElement, typographyVariantClasses };
126
+ export { TYPOGRAPHY_VARIANTS, typographyDefaultElement, typographyRoleWeightClasses, typographyVariantClasses, typographyVariantRole };
@@ -1,12 +1,14 @@
1
1
  import { cn } from "../../utils/cn.js";
2
- import { typographyDefaultElement, typographyVariantClasses } from "./typography-variants.js";
2
+ import { typographyDefaultElement, typographyRoleWeightClasses, typographyVariantClasses, typographyVariantRole } from "./typography-variants.js";
3
3
  import * as React$1 from "react";
4
4
  //#region src/components/typography/typography.tsx
5
5
  var Typography = React$1.forwardRef(function Typography({ variant = "body1", as, className, children, ...rest }, ref) {
6
6
  const Component = as ?? typographyDefaultElement[variant];
7
+ const role = typographyVariantRole[variant];
8
+ const sizeOverridden = !!className && !cn(`type-${role}`, className).split(" ").includes(`type-${role}`);
7
9
  return React$1.createElement(Component, {
8
10
  ref,
9
- className: cn("text-foreground", typographyVariantClasses[variant], className),
11
+ className: cn("text-foreground", sizeOverridden && typographyRoleWeightClasses[role], typographyVariantClasses[variant], className),
10
12
  ...rest
11
13
  }, children);
12
14
  });
@@ -5,11 +5,11 @@ import * as React$1 from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { cva } from "class-variance-authority";
7
7
  //#region src/components/user-type-badge/user-type-badge.tsx
8
- var userTypeBadgeSizeVariants = cva("inline-flex font-medium tracking-tight shadow-none transition-shadow duration-200 ease-out hover:shadow-sm [&_svg]:shrink-0", {
8
+ var userTypeBadgeSizeVariants = cva("inline-flex type-caption font-medium tracking-tight shadow-none transition-shadow duration-200 ease-out hover:shadow-sm [&_svg]:shrink-0", {
9
9
  variants: { size: {
10
- sm: "gap-1 px-1.5 py-0.5 text-xs [&_svg]:size-3",
11
- default: "gap-1.5 px-2 py-1 text-sm [&_svg]:size-3.5",
12
- lg: "gap-2 px-2.5 py-1.5 text-base [&_svg]:size-4"
10
+ sm: "gap-1 px-1.5 py-0.5 [&_svg]:size-3",
11
+ default: "gap-1.5 px-2 py-1 [&_svg]:size-3.5",
12
+ lg: "gap-2 px-2.5 py-1.5 [&_svg]:size-4"
13
13
  } },
14
14
  defaultVariants: { size: "default" }
15
15
  });
@@ -47,13 +47,17 @@ var statusSrLabel = {
47
47
  in_progress: "Current step",
48
48
  not_started: "Not started"
49
49
  };
50
- /** Aligned with StatusCardList / SelectableCardList size scales. */
50
+ /**
51
+ * Aligned with StatusCardList / SelectableCardList size scales. The size
52
+ * changes the icon box and gaps only: the title is `label` (semibold) and the
53
+ * description `secondary` at every size.
54
+ */
51
55
  var sizeStyles = {
52
56
  sm: {
53
57
  rowGap: "gap-2",
54
58
  stepGap: "pb-8",
55
- primary: "text-xs font-semibold",
56
- secondary: "text-xs",
59
+ primary: "type-label font-semibold",
60
+ secondary: "type-secondary",
57
61
  icon: "h-[18px] w-[18px] shrink-0",
58
62
  iconBox: "size-9",
59
63
  iconBoxHeight: "h-9",
@@ -67,8 +71,8 @@ var sizeStyles = {
67
71
  default: {
68
72
  rowGap: "gap-3",
69
73
  stepGap: "pb-10",
70
- primary: "text-sm font-semibold",
71
- secondary: "text-sm",
74
+ primary: "type-label font-semibold",
75
+ secondary: "type-secondary",
72
76
  icon: "h-6 w-6 shrink-0",
73
77
  iconBox: "size-11",
74
78
  iconBoxHeight: "h-11",
@@ -82,8 +86,8 @@ var sizeStyles = {
82
86
  lg: {
83
87
  rowGap: "gap-4",
84
88
  stepGap: "pb-12",
85
- primary: "text-base font-semibold",
86
- secondary: "text-sm",
89
+ primary: "type-label font-semibold",
90
+ secondary: "type-secondary",
87
91
  icon: "h-8 w-8 shrink-0",
88
92
  iconBox: "size-[52px]",
89
93
  iconBoxHeight: "h-[52px]",
@@ -3,7 +3,7 @@ import * as React$1 from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { cva } from "class-variance-authority";
5
5
  //#region src/core/alert.tsx
6
- var alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
6
+ var alertVariants = cva("relative w-full rounded-lg border px-4 py-3 type-body [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
7
7
  variants: { variant: {
8
8
  default: "bg-background text-foreground",
9
9
  destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
@@ -19,13 +19,13 @@ var Alert = React$1.forwardRef(({ className, variant, ...props }, ref) => /* @__
19
19
  Alert.displayName = "Alert";
20
20
  var AlertTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("h5", {
21
21
  ref,
22
- className: cn("mb-1 font-medium leading-none tracking-tight", className),
22
+ className: cn("mb-1 type-subheading font-medium leading-none tracking-tight", className),
23
23
  ...props
24
24
  }));
25
25
  AlertTitle.displayName = "AlertTitle";
26
26
  var AlertDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
27
27
  ref,
28
- className: cn("text-sm [&_p]:leading-relaxed", className),
28
+ className: cn("type-body", className),
29
29
  ...props
30
30
  }));
31
31
  AlertDescription.displayName = "AlertDescription";
@@ -15,7 +15,7 @@ function CodeHeader({ icon: Icon, fileName, copyContent, copyLabel = "Copy", act
15
15
  className: cn(actions == null && "ml-auto", "w-auto h-auto p-2 -mr-2")
16
16
  });
17
17
  return /* @__PURE__ */ jsxs("div", {
18
- className: "shrink-0 gap-x-2 border-b border-border/75 dark:border-border/50 text-sm flex text-muted-foreground items-center px-4 w-full h-10 font-medium",
18
+ className: "shrink-0 gap-x-2 border-b border-border/75 dark:border-border/50 type-code font-mono flex text-muted-foreground items-center px-4 w-full h-10 font-medium",
19
19
  children: [
20
20
  Icon && /* @__PURE__ */ jsx(Icon, { className: "size-4" }),
21
21
  fileName,
@@ -91,7 +91,7 @@ function Code({ className, code, icon: Icon, theme = "light", themes, copyButton
91
91
  theme,
92
92
  themes,
93
93
  scrollContainerRef: scrollRef,
94
- className: cn("relative text-sm p-4", "[&>pre,_&_code]:!bg-transparent [&>pre,_&_code]:[background:transparent_!important] [&>pre,_&_code]:border-none [&_code]:!text-[13px] [&_code_.line]:!px-0", "[&_code_.line]:inline-block [&_code_.line]:min-w-full [&_code_.line.highlighted]:bg-primary/12", "data-[line-numbers]:[&_code]:[counter-reset:line] data-[line-numbers]:[&_code_.line]:before:[counter-increment:line] data-[line-numbers]:[&_code_.line]:before:content-[counter(line)] data-[line-numbers]:[&_code_.line]:before:inline-block data-[line-numbers]:[&_code_.line]:before:w-[4ch] data-[line-numbers]:[&_code_.line]:before:mr-4 data-[line-numbers]:[&_code_.line]:before:text-right data-[line-numbers]:[&_code_.line]:before:text-muted-foreground/60 data-[line-numbers]:[&_code_.line]:before:select-none"),
94
+ className: cn("relative type-code font-mono p-4", "[&>pre,_&_code]:!bg-transparent [&>pre,_&_code]:[background:transparent_!important] [&>pre,_&_code]:border-none [&_code_.line]:!px-0", "[&_code_.line]:inline-block [&_code_.line]:min-w-full [&_code_.line.highlighted]:bg-primary/12", "data-[line-numbers]:[&_code]:[counter-reset:line] data-[line-numbers]:[&_code_.line]:before:[counter-increment:line] data-[line-numbers]:[&_code_.line]:before:content-[counter(line)] data-[line-numbers]:[&_code_.line]:before:inline-block data-[line-numbers]:[&_code_.line]:before:w-[4ch] data-[line-numbers]:[&_code_.line]:before:mr-4 data-[line-numbers]:[&_code_.line]:before:text-right data-[line-numbers]:[&_code_.line]:before:text-muted-foreground/60 data-[line-numbers]:[&_code_.line]:before:select-none"),
95
95
  code,
96
96
  lang,
97
97
  lineNumbers,
@@ -71,7 +71,7 @@ var TABS_LIST_VARIANTS = {
71
71
  };
72
72
  /**
73
73
  * `sm`: the list's padding and its triggers shrink to a 28px strip, for a
74
- * toolbar. `lg`: 36px triggers with base text and 20px icons, for a page's
74
+ * toolbar. `lg`: 36px triggers with 20px icons, for a page's
75
75
  * main switch; the rounded list grows by as much as `sm` shrinks it.
76
76
  */
77
77
  var TABS_LIST_SIZE = {
@@ -82,13 +82,13 @@ var TABS_LIST_SIZE = {
82
82
  },
83
83
  sm: {
84
84
  list: "p-0.5",
85
- trigger: "h-6 px-2.5 py-0 text-xs",
86
- lineTrigger: "py-1.5 text-xs"
85
+ trigger: "h-6 px-2.5 py-0",
86
+ lineTrigger: "py-1.5"
87
87
  },
88
88
  lg: {
89
89
  list: "",
90
- trigger: "h-9 px-4 py-0 gap-2 text-base [&_svg:not([class*='size-'])]:size-5",
91
- lineTrigger: "py-3 gap-2 text-base [&_svg:not([class*='size-'])]:size-5"
90
+ trigger: "h-9 px-4 py-0 gap-2 [&_svg:not([class*='size-'])]:size-5",
91
+ lineTrigger: "py-3 gap-2 [&_svg:not([class*='size-'])]:size-5"
92
92
  }
93
93
  };
94
94
  /** The CSS variables a list sets from its `color`: the colour, and (for `solid`) the text that reads on a fill of it. */
@@ -271,7 +271,7 @@ function TabsList({ variant, size = "default", color = "primary", fullWidth = tr
271
271
  })
272
272
  });
273
273
  }
274
- var tabsTriggerBaseClass = "data-[state=active]:text-[color:var(--espd-tabs-color)] tracking-wide focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] w-full px-2 text-sm font-medium whitespace-nowrap transition-colors duration-500 ease-in-out focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
274
+ var tabsTriggerBaseClass = "data-[state=active]:text-[color:var(--espd-tabs-color)] tracking-wide focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] w-full px-2 type-label whitespace-nowrap transition-colors duration-500 ease-in-out focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
275
275
  /**
276
276
  * The selected label in the list's colour, its lightness held where text
277
277
  * reads (4.5:1 on the 10% pill, with room for an off-white page): at most
@@ -32,7 +32,7 @@ function TooltipContent({ className, children, layout = "preserve-aspect", radiu
32
32
  ...typeof children === "string" || typeof children === "number" ? { "data-text": String(children) } : {},
33
33
  ...props,
34
34
  children: [/* @__PURE__ */ jsx(motion.div, {
35
- className: "overflow-hidden px-3 py-1.5 text-xs text-balance",
35
+ className: "overflow-hidden px-3 py-1.5 type-caption text-balance",
36
36
  children: /* @__PURE__ */ jsx(motion.div, {
37
37
  layout,
38
38
  children
@@ -18,13 +18,13 @@ function ProgressTrack({ className, indicatorClassName, indicatorStyle, ...props
18
18
  }
19
19
  function ProgressLabel(props) {
20
20
  return /* @__PURE__ */ jsx(ProgressLabel$1, {
21
- className: "text-sm font-medium",
21
+ className: "type-label",
22
22
  ...props
23
23
  });
24
24
  }
25
25
  function ProgressValue(props) {
26
26
  return /* @__PURE__ */ jsx(ProgressValue$1, {
27
- className: "text-sm",
27
+ className: "type-body",
28
28
  ...props
29
29
  });
30
30
  }
@@ -17,7 +17,7 @@ function AccordionTrigger({ className, children, showArrow = true, ...props }) {
17
17
  return /* @__PURE__ */ jsx(AccordionHeader, {
18
18
  className: "flex",
19
19
  children: /* @__PURE__ */ jsxs(AccordionTrigger$1, {
20
- className: cn("flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all [&[data-state=open]>svg]:rotate-180", className),
20
+ className: cn("flex flex-1 items-center justify-between py-4 text-left type-heading font-medium transition-all [&[data-state=open]>svg]:rotate-180", className),
21
21
  ...props,
22
22
  children: [children, showArrow && /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-px transition-transform duration-200" })]
23
23
  })
@@ -27,7 +27,7 @@ function AccordionContent({ className, children, ...props }) {
27
27
  return /* @__PURE__ */ jsx(AccordionContent$1, {
28
28
  ...props,
29
29
  children: /* @__PURE__ */ jsx("div", {
30
- className: cn("pb-4 text-sm", className),
30
+ className: cn("pb-4 type-body", className),
31
31
  children
32
32
  })
33
33
  });
@@ -60,13 +60,13 @@ function DialogFooter({ className, ...props }) {
60
60
  }
61
61
  function DialogTitle({ className, ...props }) {
62
62
  return /* @__PURE__ */ jsx(DialogTitle$1, {
63
- className: cn("text-lg leading-none font-semibold", className),
63
+ className: cn("type-heading leading-none", className),
64
64
  ...props
65
65
  });
66
66
  }
67
67
  function DialogDescription({ className, ...props }) {
68
68
  return /* @__PURE__ */ jsx(DialogDescription$1, {
69
- className: cn("text-muted-foreground text-sm", className),
69
+ className: cn("text-muted-foreground type-body", className),
70
70
  ...props
71
71
  });
72
72
  }
@@ -41,7 +41,7 @@ function DropdownMenuItem({ className, inset, variant = "default", disabled, ...
41
41
  disabled,
42
42
  "data-inset": inset,
43
43
  "data-variant": variant,
44
- className: cn("focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
44
+ className: cn("focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
45
45
  ...props
46
46
  })
47
47
  });
@@ -51,7 +51,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, disabled, ...p
51
51
  disabled,
52
52
  children: /* @__PURE__ */ jsxs(DropdownMenuCheckboxItem$1, {
53
53
  disabled,
54
- className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
54
+ className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
55
55
  checked,
56
56
  ...props,
57
57
  children: [/* @__PURE__ */ jsx("span", {
@@ -79,7 +79,7 @@ function DropdownMenuRadioItem({ className, children, disabled, ...props }) {
79
79
  disabled,
80
80
  children: /* @__PURE__ */ jsxs(DropdownMenuRadioItem$1, {
81
81
  disabled,
82
- className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
82
+ className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
83
83
  ...props,
84
84
  children: [/* @__PURE__ */ jsx("span", {
85
85
  className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
@@ -94,7 +94,7 @@ function DropdownMenuRadioItem({ className, children, disabled, ...props }) {
94
94
  function DropdownMenuLabel({ className, inset, ...props }) {
95
95
  return /* @__PURE__ */ jsx(DropdownMenuLabel$1, {
96
96
  "data-inset": inset,
97
- className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
97
+ className: cn("px-2 py-1.5 type-subheading data-[inset]:pl-8", className),
98
98
  ...props
99
99
  });
100
100
  }
@@ -106,7 +106,7 @@ function DropdownMenuSeparator({ className, ...props }) {
106
106
  }
107
107
  function DropdownMenuShortcut({ className, ...props }) {
108
108
  return /* @__PURE__ */ jsx(DropdownMenuShortcut$1, {
109
- className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
109
+ className: cn("text-muted-foreground ml-auto type-caption tracking-widest", className),
110
110
  ...props
111
111
  });
112
112
  }
@@ -119,7 +119,7 @@ function DropdownMenuSubTrigger({ disabled, className, inset, children, ...props
119
119
  children: /* @__PURE__ */ jsxs(DropdownMenuSubTrigger$1, {
120
120
  disabled,
121
121
  "data-inset": inset,
122
- className: cn("focus:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", "data-[state=open]:[&_[data-slot=chevron]]:rotate-90 [&_[data-slot=chevron]]:transition-transform [&_[data-slot=chevron]]:duration-300 [&_[data-slot=chevron]]:ease-in-out", className),
122
+ className: cn("focus:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-hidden select-none data-[inset]:pl-8", "data-[state=open]:[&_[data-slot=chevron]]:rotate-90 [&_[data-slot=chevron]]:transition-transform [&_[data-slot=chevron]]:duration-300 [&_[data-slot=chevron]]:ease-in-out", className),
123
123
  ...props,
124
124
  children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, {
125
125
  "data-slot": "chevron",