@assure-one/design-system 1.41.0 → 1.41.2

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.
@@ -1,4 +1,4 @@
1
- import { cn, LoaderIcon, ChevronDownIcon, ChevronUpIcon, CheckIcon, MinusIcon, ChevronRightIcon, CircleIcon, FileTextIcon, EyeOffIcon, EyeIcon, XIcon, AlertTriangleIcon, UploadIcon } from './chunk-KUSY7BLL.js';
1
+ import { cn, LoaderIcon, ChevronDownIcon, ChevronUpIcon, CheckIcon, MinusIcon, ChevronRightIcon, CircleIcon, FileTextIcon, EyeOffIcon, EyeIcon, XIcon, AlertTriangleIcon, UploadIcon } from './chunk-AF3QYJ24.js';
2
2
  import * as React7 from 'react';
3
3
  import { createContext, forwardRef, useMemo, useState, useRef, useCallback, useEffect, useContext, useId as useId$1, useLayoutEffect } from 'react';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -157,6 +157,15 @@ var buttonBase = cva(
157
157
  microInteractions.pressable,
158
158
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]",
159
159
  "ds:disabled:pointer-events-none ds:[&:disabled:not([data-loading=true])]:bg-bg-disabled ds:[&:disabled:not([data-loading=true])]:text-fg-disabled",
160
+ // `pointer-events-none` alone leaves the cursor showing whatever's
161
+ // beneath (or the inherited pointer), which reads as clickable in a
162
+ // screenshot or with assistive tooling that bypasses pointer-events.
163
+ // Every other control in the family (Checkbox, RadioGroup, Switch,
164
+ // Tabs, ToggleGroup) already pairs its disabled state with
165
+ // `cursor-not-allowed`; Button/IconButton/Chip share this recipe, so
166
+ // this one line brings all three in line. Excluded while loading,
167
+ // which already gets its own `cursor-wait` below.
168
+ "ds:[&:disabled:not([data-loading=true])]:cursor-not-allowed",
160
169
  "ds:data-[loading=true]:cursor-wait",
161
170
  "ds:[&_svg]:size-4 ds:[&_svg]:shrink-0"
162
171
  ),
@@ -196,194 +205,6 @@ function resolveButtonIcons({ iconStart, iconEnd, iconLeft, iconRight }, compone
196
205
  }
197
206
  return { start: iconStart ?? iconLeft, end: iconEnd ?? iconRight };
198
207
  }
199
-
200
- // src/foundation/messages/en.ts
201
- var EN_MESSAGES = {
202
- select: { clear: "Clear selection", placeholder: "Select..." },
203
- searchInput: { clear: "Clear search", placeholder: "Search..." },
204
- combobox: {
205
- empty: "No results",
206
- loading: "Loading\u2026",
207
- create: (query) => `Create \u201C${query}\u201D`,
208
- clear: "Clear",
209
- toggle: "Show options",
210
- remove: (label) => `Remove ${label}`
211
- },
212
- field: { optional: "optional" },
213
- fileUpload: {
214
- prompt: "Click to upload",
215
- dragHint: " or drag and drop",
216
- accepted: (accept) => `Accepted: ${accept}`,
217
- maxSize: (size) => `Max size: ${size}`
218
- },
219
- confirm: {
220
- confirm: "Confirm",
221
- cancel: "Cancel",
222
- failed: "Something went wrong. Please try again."
223
- },
224
- overlay: { close: "Close" },
225
- toast: { region: "Notifications", dismiss: "Dismiss" },
226
- commandPalette: {
227
- name: "Command palette",
228
- instructions: "Search and run commands",
229
- search: "Type a command or search...",
230
- empty: "No results found.",
231
- navigate: "Navigate",
232
- select: "Select",
233
- close: "Close",
234
- escapeKey: "esc"
235
- },
236
- keyboardShortcuts: {
237
- name: "Keyboard Shortcuts",
238
- general: "General",
239
- commandPalette: "Command palette",
240
- focusSearch: "Focus search",
241
- keyboardShortcuts: "Keyboard shortcuts",
242
- closeOrBack: "Close / go back",
243
- then: "then",
244
- hintPrefix: "Press",
245
- hintSuffix: "anytime to toggle this dialog"
246
- },
247
- pagination: {
248
- region: (page, total) => `Pagination, page ${page} of ${total}`,
249
- range: (start, end, total) => `${start}\u2013${end} of ${total}`,
250
- page: (page, total) => `Page ${page} of ${total}`,
251
- previous: "Previous page",
252
- next: "Next page",
253
- rowsPerPage: "Rows per page"
254
- },
255
- copyButton: { copy: "Copy to clipboard", copied: "Copied" },
256
- loadingRows: { loading: "Loading" },
257
- progress: { progress: "Progress" },
258
- segmentedProgress: { step: (filled, steps) => `Step ${filled} of ${steps}` },
259
- breadcrumb: { region: "Breadcrumb" },
260
- input: { showPassword: "Show password", hidePassword: "Hide password" },
261
- avatar: {
262
- image: "Avatar",
263
- unknownUser: "Unknown user",
264
- status: (status) => `${status} status`
265
- },
266
- avatarGroup: {
267
- overflow: (count) => `+${count}`,
268
- overflowLabel: (count) => `${count} more`
269
- },
270
- otpInput: { name: "One-time password" },
271
- datePicker: {
272
- openCalendar: "Open calendar",
273
- pickYear: "Pick a year",
274
- previousDecade: "Previous decade",
275
- nextDecade: "Next decade"
276
- },
277
- dateRangePicker: { name: "Date range", placeholder: "Select date range" },
278
- dismissibleChip: {
279
- remove: "Remove filter",
280
- removeNamed: (label) => `Remove ${label} filter`
281
- },
282
- multiFilterPill: {
283
- clear: (label) => `Clear ${label} filter`,
284
- clearSelection: "Clear selection"
285
- },
286
- searchSelect: {
287
- placeholder: "Search...",
288
- createNew: "Create new",
289
- all: "All",
290
- remove: (label) => `Remove ${label}`,
291
- empty: "No results found.",
292
- noOptions: "No options available.",
293
- clear: "Clear",
294
- clearNamed: (label) => `Clear ${label}`,
295
- toggle: "Show options",
296
- changeNamed: (label) => `Change ${label}`
297
- },
298
- phoneField: {
299
- country: "Country",
300
- searchCountries: "Search countries",
301
- noCountries: "No countries found"
302
- },
303
- phoneCountryInput: {
304
- selectCountry: "Select country code",
305
- searchCountries: "Search country or code...",
306
- noCountries: "No countries found"
307
- },
308
- starRating: {
309
- rating: (rating, max) => `${rating} out of ${max} stars`,
310
- half: "half"
311
- },
312
- fileTypeBadge: { file: (code) => `${code} file` },
313
- attachmentChip: {
314
- view: (name) => `View ${name}`,
315
- download: (name) => `Download ${name}`
316
- },
317
- masterDetailLayout: { back: "Back" },
318
- sidebar: {
319
- collapse: "Collapse sidebar",
320
- expand: "Expand sidebar",
321
- pin: "Pin sidebar",
322
- unpin: "Unpin sidebar",
323
- collapseSection: "Collapse section",
324
- expandSection: "Expand section",
325
- navigation: "Navigation"
326
- },
327
- shell: { content: "Page content" },
328
- bottomNav: { region: "Primary" },
329
- dashGrid: { reorder: "Reorder widget" },
330
- folderTree: {
331
- collapse: (name) => `Collapse ${name}`,
332
- expand: (name) => `Expand ${name}`
333
- },
334
- appHeader: { search: "Search\u2026" },
335
- bulkActionBar: { clearSelection: "Clear selection" },
336
- errorState: {
337
- title: "Something went wrong",
338
- retry: "Try again",
339
- showDetails: "Show details",
340
- hideDetails: "Hide details"
341
- },
342
- dataTable: {
343
- search: "Search\u2026",
344
- of: "of",
345
- searchLabel: "Search",
346
- columns: "Columns",
347
- filterAll: "All",
348
- selectAll: "Select all rows",
349
- selectRow: "Select row"
350
- },
351
- tableStates: { loading: "Loading", empty: "No results" },
352
- table: { region: "Scrollable table" },
353
- stackedBarChart: { region: "Scrollable chart" },
354
- pdfPreview: { region: "PDF preview" },
355
- spreadsheetPreview: { region: "Spreadsheet preview" },
356
- peoplePicker: { assignToMe: "Assign to me" },
357
- comingSoon: { eyebrow: "Coming soon", badge: "In Development" }
358
- };
359
-
360
- // src/foundation/provider/context.tsx
361
- var DesignSystemContext = createContext(null);
362
- function useDsMessages(namespace, override) {
363
- const provided = useContext(DesignSystemContext)?.messages?.[namespace];
364
- return useMemo(
365
- () => ({ ...EN_MESSAGES[namespace], ...stripUndefined(provided), ...stripUndefined(override) }),
366
- [namespace, provided, override]
367
- );
368
- }
369
- function stripUndefined(value) {
370
- if (!value) return {};
371
- const out = {};
372
- for (const key of Object.keys(value)) {
373
- if (value[key] !== void 0) out[key] = value[key];
374
- }
375
- return out;
376
- }
377
- function useLinkComponent() {
378
- return useContext(DesignSystemContext)?.linkComponent;
379
- }
380
- function useImageComponent() {
381
- return useContext(DesignSystemContext)?.imageComponent;
382
- }
383
- var TOOLTIP_DEFAULT_DELAY_MS = 300;
384
- function useSharedTooltipProvider() {
385
- return useContext(DesignSystemContext)?.sharedTooltipProvider ?? false;
386
- }
387
208
  var SPINNER_TONE_TO_INTENT = {
388
209
  current: void 0,
389
210
  muted: "neutral",
@@ -821,7 +642,7 @@ function warnLegacyButtonProps(component, { variant, size, iconLeft, iconRight }
821
642
  // src/primitives/behavior/inert.ts
822
643
  var INERT_ATTRIBUTES = { "aria-disabled": true, tabIndex: -1 };
823
644
  var INERT_CLASSES = "ds:pointer-events-none";
824
- var DISABLED_LOOK_CLASSES = "ds:bg-bg-disabled ds:text-fg-disabled";
645
+ var DISABLED_LOOK_CLASSES = "ds:bg-bg-disabled ds:text-fg-disabled ds:cursor-not-allowed";
825
646
  var isActivationKey = (key) => key === "Enter" || key === " ";
826
647
  function inertHandlers(inert, handlers) {
827
648
  return {
@@ -946,6 +767,194 @@ var Button = forwardRef(function Button2({
946
767
  });
947
768
  Button.displayName = "Button";
948
769
 
770
+ // src/foundation/messages/en.ts
771
+ var EN_MESSAGES = {
772
+ select: { clear: "Clear selection", placeholder: "Select..." },
773
+ searchInput: { clear: "Clear search", placeholder: "Search..." },
774
+ combobox: {
775
+ empty: "No results",
776
+ loading: "Loading\u2026",
777
+ create: (query) => `Create \u201C${query}\u201D`,
778
+ clear: "Clear",
779
+ toggle: "Show options",
780
+ remove: (label) => `Remove ${label}`
781
+ },
782
+ field: { optional: "optional" },
783
+ fileUpload: {
784
+ prompt: "Click to upload",
785
+ dragHint: " or drag and drop",
786
+ accepted: (accept) => `Accepted: ${accept}`,
787
+ maxSize: (size) => `Max size: ${size}`
788
+ },
789
+ confirm: {
790
+ confirm: "Confirm",
791
+ cancel: "Cancel",
792
+ failed: "Something went wrong. Please try again."
793
+ },
794
+ overlay: { close: "Close" },
795
+ toast: { region: "Notifications", dismiss: "Dismiss" },
796
+ commandPalette: {
797
+ name: "Command palette",
798
+ instructions: "Search and run commands",
799
+ search: "Type a command or search...",
800
+ empty: "No results found.",
801
+ navigate: "Navigate",
802
+ select: "Select",
803
+ close: "Close",
804
+ escapeKey: "esc"
805
+ },
806
+ keyboardShortcuts: {
807
+ name: "Keyboard Shortcuts",
808
+ general: "General",
809
+ commandPalette: "Command palette",
810
+ focusSearch: "Focus search",
811
+ keyboardShortcuts: "Keyboard shortcuts",
812
+ closeOrBack: "Close / go back",
813
+ then: "then",
814
+ hintPrefix: "Press",
815
+ hintSuffix: "anytime to toggle this dialog"
816
+ },
817
+ pagination: {
818
+ region: (page, total) => `Pagination, page ${page} of ${total}`,
819
+ range: (start, end, total) => `${start}\u2013${end} of ${total}`,
820
+ page: (page, total) => `Page ${page} of ${total}`,
821
+ previous: "Previous page",
822
+ next: "Next page",
823
+ rowsPerPage: "Rows per page"
824
+ },
825
+ copyButton: { copy: "Copy to clipboard", copied: "Copied" },
826
+ loadingRows: { loading: "Loading" },
827
+ progress: { progress: "Progress" },
828
+ segmentedProgress: { step: (filled, steps) => `Step ${filled} of ${steps}` },
829
+ breadcrumb: { region: "Breadcrumb" },
830
+ input: { showPassword: "Show password", hidePassword: "Hide password" },
831
+ avatar: {
832
+ image: "Avatar",
833
+ unknownUser: "Unknown user",
834
+ status: (status) => `${status} status`
835
+ },
836
+ avatarGroup: {
837
+ overflow: (count) => `+${count}`,
838
+ overflowLabel: (count) => `${count} more`
839
+ },
840
+ otpInput: { name: "One-time password" },
841
+ datePicker: {
842
+ openCalendar: "Open calendar",
843
+ pickYear: "Pick a year",
844
+ previousDecade: "Previous decade",
845
+ nextDecade: "Next decade"
846
+ },
847
+ dateRangePicker: { name: "Date range", placeholder: "Select date range" },
848
+ dismissibleChip: {
849
+ remove: "Remove filter",
850
+ removeNamed: (label) => `Remove ${label} filter`
851
+ },
852
+ multiFilterPill: {
853
+ clear: (label) => `Clear ${label} filter`,
854
+ clearSelection: "Clear selection"
855
+ },
856
+ searchSelect: {
857
+ placeholder: "Search...",
858
+ createNew: "Create new",
859
+ all: "All",
860
+ remove: (label) => `Remove ${label}`,
861
+ empty: "No results found.",
862
+ noOptions: "No options available.",
863
+ clear: "Clear",
864
+ clearNamed: (label) => `Clear ${label}`,
865
+ toggle: "Show options",
866
+ changeNamed: (label) => `Change ${label}`
867
+ },
868
+ phoneField: {
869
+ country: "Country",
870
+ searchCountries: "Search countries",
871
+ noCountries: "No countries found"
872
+ },
873
+ phoneCountryInput: {
874
+ selectCountry: "Select country code",
875
+ searchCountries: "Search country or code...",
876
+ noCountries: "No countries found"
877
+ },
878
+ starRating: {
879
+ rating: (rating, max) => `${rating} out of ${max} stars`,
880
+ half: "half"
881
+ },
882
+ fileTypeBadge: { file: (code) => `${code} file` },
883
+ attachmentChip: {
884
+ view: (name) => `View ${name}`,
885
+ download: (name) => `Download ${name}`
886
+ },
887
+ masterDetailLayout: { back: "Back" },
888
+ sidebar: {
889
+ collapse: "Collapse sidebar",
890
+ expand: "Expand sidebar",
891
+ pin: "Pin sidebar",
892
+ unpin: "Unpin sidebar",
893
+ collapseSection: "Collapse section",
894
+ expandSection: "Expand section",
895
+ navigation: "Navigation"
896
+ },
897
+ shell: { content: "Page content" },
898
+ bottomNav: { region: "Primary" },
899
+ dashGrid: { reorder: "Reorder widget" },
900
+ folderTree: {
901
+ collapse: (name) => `Collapse ${name}`,
902
+ expand: (name) => `Expand ${name}`
903
+ },
904
+ appHeader: { search: "Search\u2026" },
905
+ bulkActionBar: { clearSelection: "Clear selection" },
906
+ errorState: {
907
+ title: "Something went wrong",
908
+ retry: "Try again",
909
+ showDetails: "Show details",
910
+ hideDetails: "Hide details"
911
+ },
912
+ dataTable: {
913
+ search: "Search\u2026",
914
+ of: "of",
915
+ searchLabel: "Search",
916
+ columns: "Columns",
917
+ filterAll: "All",
918
+ selectAll: "Select all rows",
919
+ selectRow: "Select row"
920
+ },
921
+ tableStates: { loading: "Loading", empty: "No results" },
922
+ table: { region: "Scrollable table" },
923
+ stackedBarChart: { region: "Scrollable chart" },
924
+ pdfPreview: { region: "PDF preview" },
925
+ spreadsheetPreview: { region: "Spreadsheet preview" },
926
+ peoplePicker: { assignToMe: "Assign to me" },
927
+ comingSoon: { eyebrow: "Coming soon", badge: "In Development" }
928
+ };
929
+
930
+ // src/foundation/provider/context.tsx
931
+ var DesignSystemContext = createContext(null);
932
+ function useDsMessages(namespace, override) {
933
+ const provided = useContext(DesignSystemContext)?.messages?.[namespace];
934
+ return useMemo(
935
+ () => ({ ...EN_MESSAGES[namespace], ...stripUndefined(provided), ...stripUndefined(override) }),
936
+ [namespace, provided, override]
937
+ );
938
+ }
939
+ function stripUndefined(value) {
940
+ if (!value) return {};
941
+ const out = {};
942
+ for (const key of Object.keys(value)) {
943
+ if (value[key] !== void 0) out[key] = value[key];
944
+ }
945
+ return out;
946
+ }
947
+ function useLinkComponent() {
948
+ return useContext(DesignSystemContext)?.linkComponent;
949
+ }
950
+ function useImageComponent() {
951
+ return useContext(DesignSystemContext)?.imageComponent;
952
+ }
953
+ var TOOLTIP_DEFAULT_DELAY_MS = 300;
954
+ function useSharedTooltipProvider() {
955
+ return useContext(DesignSystemContext)?.sharedTooltipProvider ?? false;
956
+ }
957
+
949
958
  // src/foundation/anatomy/class-names.ts
950
959
  function slotClassName(classNames, part) {
951
960
  return classNames?.[part];
@@ -958,9 +967,10 @@ var avatarVariants = cva(
958
967
  {
959
968
  variants: {
960
969
  size: {
970
+ // 9px: off-scale, no type role — deliberately left literal (see file comment above).
961
971
  xs: "ds:size-(--avatar-size-xs) ds:text-[9px]",
962
- sm: "ds:size-(--avatar-size-sm) ds:text-[10px]",
963
- md: "ds:size-(--avatar-size-md) ds:text-[11px]",
972
+ sm: "ds:size-(--avatar-size-sm) ds:text-(length:--text-micro)",
973
+ md: "ds:size-(--avatar-size-md) ds:text-(length:--text-caption)",
964
974
  lg: "ds:size-(--avatar-size-lg) ds:text-sm",
965
975
  xl: "ds:size-(--avatar-size-xl) ds:text-base"
966
976
  },
@@ -1355,7 +1365,7 @@ var TooltipContent = React7.forwardRef(({ className, sideOffset = 6, maxWidth =
1355
1365
  ...slot(tooltipAnatomy, "content"),
1356
1366
  ...presence("floating"),
1357
1367
  className: cn(
1358
- "ds:rounded-input ds:border-rule-strong ds:bg-surface ds:z-[var(--z-tooltip)]",
1368
+ "ds:rounded-card ds:border-rule ds:bg-surface ds:z-[var(--z-tooltip)]",
1359
1369
  TOOLTIP_MAX_WIDTH[maxWidth],
1360
1370
  "ds:border ds:px-2.5 ds:py-1.5",
1361
1371
  "ds:font-body ds:text-fg ds:shadow-pop ds:text-xs ds:leading-tight",
@@ -1783,7 +1793,7 @@ var SelectTrigger = React7.forwardRef(({ className, children, tabIndex, size, cl
1783
1793
  {
1784
1794
  ...slot(selectAnatomy, "icon"),
1785
1795
  className: cn(
1786
- "ds:text-fg-3 ds:size-4 ds:shrink-0 ds:translate-y-px ds:transition-transform ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:data-[state=open]:rotate-180 ds:motion-reduce:transition-none",
1796
+ "ds:text-fg-3 ds:size-(--control-icon-md) ds:shrink-0 ds:translate-y-px ds:transition-transform ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:data-[state=open]:rotate-180 ds:motion-reduce:transition-none",
1787
1797
  classNames?.icon
1788
1798
  ),
1789
1799
  "aria-hidden": "true"
@@ -1804,7 +1814,7 @@ var SelectScrollUpButton = React7.forwardRef(({ className, ...props }, ref) => /
1804
1814
  className
1805
1815
  ),
1806
1816
  ...props,
1807
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "ds:size-4", "aria-hidden": "true" })
1817
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "ds:size-(--control-icon-md)", "aria-hidden": "true" })
1808
1818
  }
1809
1819
  ));
1810
1820
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
@@ -1818,7 +1828,7 @@ var SelectScrollDownButton = React7.forwardRef(({ className, ...props }, ref) =>
1818
1828
  className
1819
1829
  ),
1820
1830
  ...props,
1821
- children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "ds:size-4", "aria-hidden": "true" })
1831
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "ds:size-(--control-icon-md)", "aria-hidden": "true" })
1822
1832
  }
1823
1833
  ));
1824
1834
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
@@ -1866,7 +1876,7 @@ var SelectLabel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
1866
1876
  ref,
1867
1877
  ...slot(selectAnatomy, "label"),
1868
1878
  className: cn(
1869
- groupHeadingClasses({ palette: "neutral", labelSize: "ds:text-[11px]" }),
1879
+ groupHeadingClasses({ palette: "neutral", labelSize: "ds:text-(length:--text-caption)" }),
1870
1880
  className
1871
1881
  ),
1872
1882
  ...props
@@ -2097,6 +2107,9 @@ function mergeRefs(...refs) {
2097
2107
  function useMergedRefs(...refs) {
2098
2108
  return useMemo(() => mergeRefs(...refs), refs);
2099
2109
  }
2110
+
2111
+ // src/primitives/behavior/control-label.ts
2112
+ var CONTROL_LABEL_TEXT = "ds:text-(length:--control-font-size-md)";
2100
2113
  var FieldsetContext = createContext(null);
2101
2114
  function useFieldsetContext() {
2102
2115
  return useContext(FieldsetContext);
@@ -2184,7 +2197,7 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2184
2197
  ...slot(checkboxAnatomy, "root"),
2185
2198
  className: cn(
2186
2199
  "ds:peer ds:border-rule-strong ds:bg-surface ds:text-brand ds:flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center ds:border",
2187
- shape === "circle" ? "ds:rounded-full" : "ds:rounded-[4px]",
2200
+ shape === "circle" ? "ds:rounded-full" : "ds:rounded-badge",
2188
2201
  microInteractions.selection,
2189
2202
  "ds:hover:border-fg-4",
2190
2203
  "ds:focus-visible:[border-color:var(--focus-ring-border)] ds:focus-visible:[box-shadow:var(--shadow-focus-ring-field)] ds:focus-visible:outline-none",
@@ -2210,7 +2223,10 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2210
2223
  {
2211
2224
  htmlFor: wiring.id,
2212
2225
  ...slot(checkboxAnatomy, "label"),
2213
- className: "ds:text-fg ds:peer-disabled:text-fg-disabled ds:cursor-pointer ds:text-[13px] ds:leading-none ds:select-none ds:peer-disabled:cursor-not-allowed",
2226
+ className: cn(
2227
+ "ds:text-fg ds:peer-disabled:text-fg-disabled ds:cursor-pointer ds:leading-none ds:select-none ds:peer-disabled:cursor-not-allowed",
2228
+ CONTROL_LABEL_TEXT
2229
+ ),
2214
2230
  children: label
2215
2231
  }
2216
2232
  )
@@ -2300,7 +2316,7 @@ var Pressable = forwardRef(function Pressable2({
2300
2316
  );
2301
2317
  });
2302
2318
  Pressable.displayName = "Pressable";
2303
- var PRESSABLE_CLASSES = "ds:cursor-pointer ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:data-[disabled]:pointer-events-none";
2319
+ var PRESSABLE_CLASSES = "ds:cursor-pointer ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:data-[disabled]:pointer-events-none ds:data-[disabled]:cursor-not-allowed";
2304
2320
  function isNativeButton(element) {
2305
2321
  if (element.tagName === "BUTTON") return true;
2306
2322
  if (element.tagName !== "INPUT") return false;
@@ -2784,7 +2800,7 @@ var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) =>
2784
2800
  ...slot(dropdownMenuAnatomy, "sub-content"),
2785
2801
  ...presence("floating"),
2786
2802
  className: cn(
2787
- "ds:rounded-card ds:border-menu-border ds:bg-menu-bg ds:text-menu-fg ds:shadow-pop ds:z-[var(--z-dropdown)] ds:min-w-[8rem] ds:overflow-hidden ds:border ds:p-1",
2803
+ "ds:rounded-card ds:border-rule ds:bg-menu-bg ds:text-menu-fg ds:shadow-pop ds:z-[var(--z-dropdown)] ds:min-w-[8rem] ds:overflow-hidden ds:border ds:p-1",
2788
2804
  className
2789
2805
  ),
2790
2806
  ...props
@@ -2801,7 +2817,7 @@ var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 6, align
2801
2817
  sideOffset,
2802
2818
  align,
2803
2819
  className: cn(
2804
- "ds:rounded-card ds:border-menu-border ds:bg-menu-bg ds:text-menu-fg ds:shadow-pop ds:z-[var(--z-dropdown)] ds:min-w-[10rem] ds:overflow-hidden ds:border ds:p-1",
2820
+ "ds:rounded-card ds:border-rule ds:bg-menu-bg ds:text-menu-fg ds:shadow-pop ds:z-[var(--z-dropdown)] ds:min-w-[10rem] ds:overflow-hidden ds:border ds:p-1",
2805
2821
  DROPDOWN_MENU_WIDTH[width],
2806
2822
  className
2807
2823
  ),
@@ -2857,7 +2873,11 @@ var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref)
2857
2873
  {
2858
2874
  ref,
2859
2875
  ...slot(dropdownMenuAnatomy, "label"),
2860
- className: cn(menuLabelClasses(PALETTE, "ds:text-[11px]"), inset && MENU_INSET, className),
2876
+ className: cn(
2877
+ menuLabelClasses(PALETTE, "ds:text-(length:--text-overline)"),
2878
+ inset && MENU_INSET,
2879
+ className
2880
+ ),
2861
2881
  ...props
2862
2882
  }
2863
2883
  ));
@@ -2876,7 +2896,7 @@ var DropdownMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx(
2876
2896
  "span",
2877
2897
  {
2878
2898
  ...slot(dropdownMenuAnatomy, "shortcut"),
2879
- className: cn(menuShortcutClasses(PALETTE, "ds:text-[11px]"), className),
2899
+ className: cn(menuShortcutClasses(PALETTE, "ds:text-(length:--text-code)"), className),
2880
2900
  ...props
2881
2901
  }
2882
2902
  );
@@ -3018,8 +3038,8 @@ function FileUpload({
3018
3038
  /* @__PURE__ */ jsx("span", { className: "ds:text-fg ds:font-medium", children: messages.prompt }),
3019
3039
  messages.dragHint
3020
3040
  ] }),
3021
- accept && /* @__PURE__ */ jsx("p", { className: "ds:text-fg-4 ds:font-mono ds:text-[10.5px]", children: messages.accepted(accept) }),
3022
- maxSize && /* @__PURE__ */ jsx("p", { className: "ds:text-fg-4 ds:font-mono ds:text-[10.5px]", children: messages.maxSize(formatBytes(maxSize)) })
3041
+ accept && /* @__PURE__ */ jsx("p", { className: "ds:text-fg-4 ds:font-mono ds:text-(length:--text-code)", children: messages.accepted(accept) }),
3042
+ maxSize && /* @__PURE__ */ jsx("p", { className: "ds:text-fg-4 ds:font-mono ds:text-(length:--text-code)", children: messages.maxSize(formatBytes(maxSize)) })
3023
3043
  ] });
3024
3044
  return /* @__PURE__ */ jsxs(
3025
3045
  "div",
@@ -3190,9 +3210,9 @@ function inputVariants({
3190
3210
  }
3191
3211
  var floatingLabelSize = {
3192
3212
  sm: "ds:text-xs",
3193
- md: "ds:text-[13px]",
3213
+ md: "ds:text-(length:--control-font-size-md)",
3194
3214
  lg: "ds:text-sm",
3195
- compact: "ds:text-[13px]",
3215
+ compact: "ds:text-(length:--control-font-size-md)",
3196
3216
  default: "ds:text-sm",
3197
3217
  comfortable: "ds:text-base",
3198
3218
  xs: "ds:text-(length:--control-font-size-xs)",
@@ -3269,7 +3289,7 @@ var Input = forwardRef(function Input2({
3269
3289
  id: partId(id, "label"),
3270
3290
  ...slot(inputAnatomy, "label"),
3271
3291
  className: cn(
3272
- "ds:text-fg ds:mb-1.5 ds:block ds:text-[13px] ds:leading-none ds:font-medium",
3292
+ "ds:text-fg ds:mb-1.5 ds:block ds:text-(length:--control-font-size-md) ds:leading-none ds:font-medium",
3273
3293
  classNames?.label
3274
3294
  ),
3275
3295
  children: label
@@ -3484,7 +3504,7 @@ var Textarea = forwardRef(function Textarea2({
3484
3504
  id: partId(id, "label"),
3485
3505
  ...slot(textareaAnatomy, "label"),
3486
3506
  className: cn(
3487
- "ds:text-fg ds:mb-1.5 ds:block ds:text-[13px] ds:leading-none ds:font-medium",
3507
+ "ds:text-fg ds:mb-1.5 ds:block ds:text-(length:--control-font-size-md) ds:leading-none ds:font-medium",
3488
3508
  classNames?.label
3489
3509
  ),
3490
3510
  children: label
@@ -3544,7 +3564,7 @@ var Textarea = forwardRef(function Textarea2({
3544
3564
  {
3545
3565
  ...slot(textareaAnatomy, "count"),
3546
3566
  className: cn(
3547
- "ds:text-fg-4 ds:ml-auto ds:font-mono ds:text-[11px]",
3567
+ "ds:text-fg-4 ds:ml-auto ds:font-mono ds:text-(length:--text-caption)",
3548
3568
  classNames?.count
3549
3569
  ),
3550
3570
  children: [
@@ -3749,6 +3769,6 @@ var DocumentRow = forwardRef(function DocumentRow2({ fileName, meta, icon, appro
3749
3769
  });
3750
3770
  DocumentRow.displayName = "DocumentRow";
3751
3771
 
3752
- export { Avatar, Backdrop, Button, CONTROL_GAP_CLASSES, CONTROL_SIZE_CLASSES, Checkbox, DEFAULT_OVERLAY_MESSAGES, DISABLED_LOOK_CLASSES, DISMISS_GLYPH_CLASSES, DesignSystemContext, DismissButton, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EN_MESSAGES, FIELD_PARTS, FLOATING_PADDING, FLOATING_WIDTH, FieldContext, FieldsetContext, FileChip, FileUpload, FormBridge, INERT_ATTRIBUTES, INERT_CLASSES, IconButton, Input, LIST_ITEM_INDICATOR_WELL, LIST_SEPARATOR, MENU_CHECK_GLYPH, MENU_INDICATOR_WELL, MENU_INSET, MENU_ITEM_DANGER, MENU_RADIO_GLYPH, MENU_SUB_TRIGGER_CHEVRON, ModalContent, ModalDescription, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, OverlayBody, OverlayDescription, OverlayFooter, OverlayHeader, OverlaySurface, OverlayTitle, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, PortalContainerContext, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, TOOLTIP_DEFAULT_DELAY_MS, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, alertDialogAnatomy, badgeAnatomy, buttonBase, buttonVariants, cardAnatomy, chipAnatomy, codeAnatomy, comboboxAnatomy, commandAnatomy, contextMenuAnatomy, controlChrome, dataTableAnatomy, deprecate, dialogAnatomy, errorOnce, fieldAnatomy, fieldsetAnatomy, floatingSurfaceClasses, groupHeadingClasses, headingAnatomy, iconButtonVariants, inertHandlers, inlineAnatomy, inputVariants, isLabelable, joinIds, kbdAnatomy, labelAnatomy, linkButtonAnatomy, listItemAttributes, listItemClasses, menuIndicatorItemClasses, menuItemClasses, menuLabelClasses, menuSeparatorClasses, menuShortcutClasses, menuSubTriggerClasses, mergeRefs, microInteractions, numberInputAnatomy, optionElementId, paginationAnatomy, partId, phoneFieldAnatomy, presence, radioGroupAnatomy, resolveButtonIcons, resolveButtonStyle, searchInputAnatomy, sheetAnatomy, shellAnatomy, sideDrawerAnatomy, sidebarAnatomy, sidebarBrandSwitcherAnatomy, slot, spinnerVariants, stackAnatomy, stateAttributes, statusBadgeAnatomy, surfaceAnatomy, switchAnatomy, tableAnatomy, textAnatomy, textareaVariants, toastAnatomy, useControllableState, useDsMessages, useExitPresence, useFieldContext, useFieldControl, useFieldsetContext, useFieldsetLegend, useFieldsetState, useFormReset, useId, useImageComponent, useLinkComponent, useMergedRefs, warnLegacyButtonProps, withPortalContainer };
3753
- //# sourceMappingURL=chunk-NBI7E3VT.js.map
3754
- //# sourceMappingURL=chunk-NBI7E3VT.js.map
3772
+ export { Avatar, Backdrop, Button, CONTROL_GAP_CLASSES, CONTROL_LABEL_TEXT, CONTROL_SIZE_CLASSES, Checkbox, DEFAULT_OVERLAY_MESSAGES, DISABLED_LOOK_CLASSES, DISMISS_GLYPH_CLASSES, DesignSystemContext, DismissButton, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EN_MESSAGES, FIELD_PARTS, FLOATING_PADDING, FLOATING_WIDTH, FieldContext, FieldsetContext, FileChip, FileUpload, FormBridge, INERT_ATTRIBUTES, INERT_CLASSES, IconButton, Input, LIST_ITEM_INDICATOR_WELL, LIST_SEPARATOR, MENU_CHECK_GLYPH, MENU_INDICATOR_WELL, MENU_INSET, MENU_ITEM_DANGER, MENU_RADIO_GLYPH, MENU_SUB_TRIGGER_CHEVRON, ModalContent, ModalDescription, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, OverlayBody, OverlayDescription, OverlayFooter, OverlayHeader, OverlaySurface, OverlayTitle, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, PortalContainerContext, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, TOOLTIP_DEFAULT_DELAY_MS, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, alertDialogAnatomy, badgeAnatomy, buttonBase, buttonVariants, cardAnatomy, chipAnatomy, codeAnatomy, comboboxAnatomy, commandAnatomy, contextMenuAnatomy, controlChrome, dataTableAnatomy, deprecate, dialogAnatomy, errorOnce, fieldAnatomy, fieldsetAnatomy, floatingSurfaceClasses, groupHeadingClasses, headingAnatomy, iconButtonVariants, inertHandlers, inlineAnatomy, inputVariants, isLabelable, joinIds, kbdAnatomy, labelAnatomy, linkButtonAnatomy, listItemAttributes, listItemClasses, menuIndicatorItemClasses, menuItemClasses, menuLabelClasses, menuSeparatorClasses, menuShortcutClasses, menuSubTriggerClasses, mergeRefs, microInteractions, numberInputAnatomy, optionElementId, paginationAnatomy, partId, phoneFieldAnatomy, presence, radioGroupAnatomy, resolveButtonIcons, resolveButtonStyle, searchInputAnatomy, sheetAnatomy, shellAnatomy, sideDrawerAnatomy, sidebarAnatomy, sidebarBrandSwitcherAnatomy, slot, spinnerVariants, stackAnatomy, stateAttributes, statusBadgeAnatomy, surfaceAnatomy, switchAnatomy, tableAnatomy, textAnatomy, textareaVariants, toastAnatomy, useControllableState, useDsMessages, useExitPresence, useFieldContext, useFieldControl, useFieldsetContext, useFieldsetLegend, useFieldsetState, useFormReset, useId, useImageComponent, useLinkComponent, useMergedRefs, warnLegacyButtonProps, withPortalContainer };
3773
+ //# sourceMappingURL=chunk-XN7OBLQR.js.map
3774
+ //# sourceMappingURL=chunk-XN7OBLQR.js.map