@assure-one/design-system 1.41.1 → 1.42.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 (37) hide show
  1. package/dist/brand-scope-B7w3-y9E.d.ts +262 -0
  2. package/dist/{chunk-KUSY7BLL.js → chunk-AF3QYJ24.js} +3 -3
  3. package/dist/{chunk-KUSY7BLL.js.map → chunk-AF3QYJ24.js.map} +1 -1
  4. package/dist/{chunk-XV2VSEA5.js → chunk-H53VF62B.js} +14 -10
  5. package/dist/chunk-H53VF62B.js.map +1 -0
  6. package/dist/{chunk-NBI7E3VT.js → chunk-M2HMZ2RW.js} +243 -219
  7. package/dist/chunk-M2HMZ2RW.js.map +1 -0
  8. package/dist/{chunk-PTI4B2OI.js → chunk-YMRSFVW7.js} +23 -19
  9. package/dist/chunk-YMRSFVW7.js.map +1 -0
  10. package/dist/{chunk-X76J4QSJ.js → chunk-YRHRVOLV.js} +4 -4
  11. package/dist/{chunk-X76J4QSJ.js.map → chunk-YRHRVOLV.js.map} +1 -1
  12. package/dist/css/components.css +1 -1
  13. package/dist/css/tokens.css +8 -8
  14. package/dist/{data-table-view-ep8al7P9.d.ts → data-table-view-BN3GgNdp.d.ts} +186 -2
  15. package/dist/{design-system-provider-CfD2g2lY.d.ts → design-system-provider-CrBRFQjR.d.ts} +1 -1
  16. package/dist/icons/index.d.ts +1 -1
  17. package/dist/icons/index.js +2 -2
  18. package/dist/index.d.ts +67 -414
  19. package/dist/index.js +242 -129
  20. package/dist/index.js.map +1 -1
  21. package/dist/legacy/index.d.ts +11 -4
  22. package/dist/legacy/index.js +4 -4
  23. package/dist/next/index.d.ts +2 -2
  24. package/dist/{reference-BkDbrPIB.d.ts → reference-B5azRUoi.d.ts} +4 -4
  25. package/dist/styles.css +1 -1
  26. package/dist/suite/index.d.ts +14 -3
  27. package/dist/suite/index.js +4 -4
  28. package/dist/tokens/index.d.ts +1 -1
  29. package/dist/tokens/index.js +1 -1
  30. package/dist/{types-Coqw8iaS.d.ts → types-aBQCboFH.d.ts} +1 -1
  31. package/docs/components.md +5 -5
  32. package/docs/components.registry.json +5 -5
  33. package/package.json +1 -1
  34. package/dist/brand-scope-BOHId6BY.d.ts +0 -58
  35. package/dist/chunk-NBI7E3VT.js.map +0 -1
  36. package/dist/chunk-PTI4B2OI.js.map +0 -1
  37. package/dist/chunk-XV2VSEA5.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { useFormReset, badgeVariants, DataTableBody, DataTableRow, DataTableCell, Badge, Pagination, TableBody, TableRow, TableCell, Table, TableHeader, TableHead, ToggleGroup, ToggleGroupItem } from './chunk-PTI4B2OI.js';
3
- export { Badge, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, EmptyValue, PROGRESS_LEGACY_TO_INTENT, Pagination, ProgressBar, ProgressRing, SERVICE_TONES, STATUS_DOT_TONE_TO_INTENT, SegmentedProgress, StatusDot, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable } from './chunk-PTI4B2OI.js';
4
- import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, CmdkCompatContext, Sheet, SheetContent, SheetTitle } from './chunk-XV2VSEA5.js';
5
- export { BrandScope, BrandScopeProvider, Chip, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, DEFAULT_COMBOBOX_MESSAGES, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandText, SidebarDrawer, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, assetPath, brandScope, chipVariants, getAssetBasePath, resolveChipStyle, setAssetBasePath, sidebarLinkBadgeVariants, useBrandScope, useSidebarPeekLock, useSidebarState } from './chunk-XV2VSEA5.js';
6
- import { withPortalContainer, Backdrop, alertDialogAnatomy, OverlaySurface, OverlayTitle, OverlayDescription, buttonVariants, slot, useDsMessages, Button, useLinkComponent, surfaceAnatomy, stateAttributes, cardAnatomy, ModalPortal, kbdAnatomy, FieldContext, fieldAnatomy, useFieldContext, MENU_SUB_TRIGGER_CHEVRON, menuSubTriggerClasses, MENU_INSET, contextMenuAnatomy, presence, menuItemClasses, MENU_ITEM_DANGER, MENU_INDICATOR_WELL, MENU_CHECK_GLYPH, menuIndicatorItemClasses, MENU_RADIO_GLYPH, menuLabelClasses, menuSeparatorClasses, useFieldControl, useMergedRefs, joinIds, Popover, PopoverTrigger, PopoverContent, FormBridge, dialogAnatomy, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, headingAnatomy, deprecate, floatingSurfaceClasses, FLOATING_PADDING, FLOATING_WIDTH, labelAnatomy, warnLegacyButtonProps, resolveButtonIcons, INERT_CLASSES, DISABLED_LOOK_CLASSES, inertHandlers, INERT_ATTRIBUTES, linkButtonAnatomy, useControllableState, controlChrome, mergeRefs, numberInputAnatomy, EN_MESSAGES, phoneFieldAnatomy, Input, useFieldsetContext, radioGroupAnatomy, microInteractions, searchInputAnatomy, IconButton, codeAnatomy, Slot, textAnatomy, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, Tooltip, TooltipTrigger, TooltipContent, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, useId as useId$1, partId, errorOnce, isLabelable, Spinner, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset as useFormReset$1, sideDrawerAnatomy, Portal, toastAnatomy, useExitPresence, TooltipProvider, TOOLTIP_DEFAULT_DELAY_MS, DesignSystemContext, PortalContainerContext, ModalRoot, ModalOverlay, ModalContent, ModalTitle, ModalDescription } from './chunk-NBI7E3VT.js';
7
- export { Avatar, Button, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileChip, FileUpload, IconButton, Input, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, iconButtonVariants, inputVariants, resolveButtonStyle, spinnerVariants, textareaVariants, useDsMessages, useFieldControl } from './chunk-NBI7E3VT.js';
8
- import { cn, ChevronDownIcon, EyeIcon, DownloadIcon, ChevronRightIcon, CheckIcon, CircleIcon, CopyIcon, CalendarIcon, XIcon, AlertTriangleIcon, ArrowRightIcon, ArrowLeftIcon, FileTextIcon, ZoomOutIcon, ZoomInIcon, TrendingUpIcon, TrendingDownIcon, SearchIcon, TableIcon, StarIcon, ListChecksIcon, CheckCircleSolidIcon, HelpCircleIcon, UserIcon, SendIcon, SettingsIcon, ChevronLeftIcon, FolderOpenIcon, FolderClosedIcon, MinusIcon, AlertCircleIcon, CheckCircle2Icon, PlusIcon, LoaderIcon, InfoCircleSolidIcon, AlertTriangleSolidIcon, XCircleSolidIcon, RotateCcwIcon, InfoIcon, CommandIcon } from './chunk-KUSY7BLL.js';
9
- export { AlertCircleIcon, AlertTriangleIcon, AlertTriangleSolidIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, ArrowUpRightIcon, AtSignIcon, BanIcon, BarChartIcon, BellIcon, BoldIcon, BrainIcon, BriefcaseIcon, Building2Icon, BuildingIcon, CalculatorIcon, CalendarIcon, CameraIcon, ChatBubbleIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleDotIcon, CircleIcon, ClipboardCheckIcon, ClockIcon, CloseIcon, CommandIcon, CopyIcon, CornerDownLeftIcon, CreditCardIcon, DocumentIcon, DollarSignIcon, DownloadIcon, ExternalLinkIcon, ExtractIcon, EyeIcon, EyeOffIcon, FileChartColumnIcon, FileIcon, FileReturnIcon, FileTextIcon, FilterIcon, FlagIcon, FolderClosedIcon, FolderDownIcon, FolderOpenIcon, FolderPlusIcon, FolderUpIcon, GlobeIcon, GoogleBrandIcon, GraduationCapIcon, GripHorizontalIcon, GripVerticalIcon, HelpCircleIcon, HistoryIcon, HomeIcon, InboxIcon, InfoCircleSolidIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, LandmarkIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LightningIcon, Link2Icon, LinkIcon, ListChecksIcon, ListIcon, ListOrderedIcon, LoaderIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MessageCircleMoreIcon, MessageCircleWarningIcon, MicIcon, MicrosoftBrandIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointer2Icon, MoveIcon, PaletteIcon, PanelLeftCloseIcon, PanelLeftIcon, PanelRightCloseIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenSignIcon, PenToolIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, ReceiptIcon, RefreshCwIcon, ReplyIcon, RotateCcwIcon, SaveIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, SigmaIcon, SlashIcon, SmartphoneIcon, SparkleIcon, SparklesIcon, SquarePlayIcon, StarIcon, StopIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TeamIcon, ThumbsDownIcon, ThumbsUpIcon, TimerIcon, Trash2Icon, TrashIcon, TrashSolidIcon, TrendingDownIcon, TrendingUpIcon, TypeIcon, UnderlineIcon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VideoIcon, Volume2Icon, VolumeXIcon, WorkflowIcon, XCircleSolidIcon, XIcon, ZoomInIcon, ZoomOutIcon, cn, createIcon } from './chunk-KUSY7BLL.js';
2
+ import { useFormReset, badgeVariants, DataTableBody, DataTableRow, DataTableCell, Badge, Pagination, TableBody, TableRow, TableCell, Table, TableHeader, TableHead, ToggleGroup, ToggleGroupItem } from './chunk-YMRSFVW7.js';
3
+ export { Badge, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, EmptyValue, PROGRESS_LEGACY_TO_INTENT, Pagination, ProgressBar, ProgressRing, SERVICE_TONES, STATUS_DOT_TONE_TO_INTENT, SegmentedProgress, StatusDot, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable } from './chunk-YMRSFVW7.js';
4
+ import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, CmdkCompatContext, Sheet, SheetContent, SheetTitle } from './chunk-H53VF62B.js';
5
+ export { BrandScope, BrandScopeProvider, Chip, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, DEFAULT_COMBOBOX_MESSAGES, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandText, SidebarDrawer, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, assetPath, brandScope, chipVariants, getAssetBasePath, resolveChipStyle, setAssetBasePath, sidebarLinkBadgeVariants, useBrandScope, useSidebarPeekLock, useSidebarState } from './chunk-H53VF62B.js';
6
+ import { withPortalContainer, Backdrop, alertDialogAnatomy, OverlaySurface, OverlayTitle, OverlayDescription, Button, slot, useDsMessages, useLinkComponent, surfaceAnatomy, stateAttributes, cardAnatomy, ModalPortal, kbdAnatomy, FieldContext, fieldAnatomy, useFieldContext, MENU_SUB_TRIGGER_CHEVRON, menuSubTriggerClasses, MENU_INSET, contextMenuAnatomy, presence, menuItemClasses, MENU_ITEM_DANGER, MENU_INDICATOR_WELL, MENU_CHECK_GLYPH, menuIndicatorItemClasses, MENU_RADIO_GLYPH, menuLabelClasses, menuSeparatorClasses, useFieldControl, useMergedRefs, joinIds, Popover, PopoverTrigger, PopoverContent, FormBridge, CONTROL_SIZE_CLASSES, dialogAnatomy, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, headingAnatomy, deprecate, floatingSurfaceClasses, FLOATING_PADDING, FLOATING_WIDTH, labelAnatomy, warnLegacyButtonProps, resolveButtonIcons, buttonVariants, INERT_CLASSES, DISABLED_LOOK_CLASSES, inertHandlers, INERT_ATTRIBUTES, linkButtonAnatomy, useControllableState, controlChrome, mergeRefs, numberInputAnatomy, EN_MESSAGES, phoneFieldAnatomy, Input, useFieldsetContext, radioGroupAnatomy, microInteractions, CONTROL_LABEL_TEXT, searchInputAnatomy, IconButton, codeAnatomy, Slot, textAnatomy, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, Tooltip, TooltipTrigger, TooltipContent, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, useId as useId$1, partId, errorOnce, isLabelable, Spinner, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset as useFormReset$1, sideDrawerAnatomy, Portal, toastAnatomy, useExitPresence, TooltipProvider, TOOLTIP_DEFAULT_DELAY_MS, DesignSystemContext, PortalContainerContext, ModalRoot, ModalOverlay, ModalContent, ModalTitle, ModalDescription } from './chunk-M2HMZ2RW.js';
7
+ export { Avatar, Button, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileChip, FileUpload, IconButton, Input, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, iconButtonVariants, inputVariants, resolveButtonStyle, spinnerVariants, textareaVariants, useDsMessages, useFieldControl } from './chunk-M2HMZ2RW.js';
8
+ import { cn, ChevronDownIcon, EyeIcon, DownloadIcon, ChevronRightIcon, CheckIcon, CircleIcon, CopyIcon, CalendarIcon, XIcon, AlertTriangleIcon, ArrowRightIcon, ArrowLeftIcon, FileTextIcon, ZoomOutIcon, ZoomInIcon, TrendingUpIcon, TrendingDownIcon, SearchIcon, TableIcon, StarIcon, ListChecksIcon, CheckCircleSolidIcon, HelpCircleIcon, UserIcon, SendIcon, SettingsIcon, ChevronLeftIcon, FolderOpenIcon, FolderClosedIcon, MinusIcon, AlertCircleIcon, CheckCircle2Icon, PlusIcon, LoaderIcon, InfoCircleSolidIcon, AlertTriangleSolidIcon, XCircleSolidIcon, RotateCcwIcon, InfoIcon, CommandIcon } from './chunk-AF3QYJ24.js';
9
+ export { AlertCircleIcon, AlertTriangleIcon, AlertTriangleSolidIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, ArrowUpRightIcon, AtSignIcon, BanIcon, BarChartIcon, BellIcon, BoldIcon, BrainIcon, BriefcaseIcon, Building2Icon, BuildingIcon, CalculatorIcon, CalendarIcon, CameraIcon, ChatBubbleIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleDotIcon, CircleIcon, ClipboardCheckIcon, ClockIcon, CloseIcon, CommandIcon, CopyIcon, CornerDownLeftIcon, CreditCardIcon, DocumentIcon, DollarSignIcon, DownloadIcon, ExternalLinkIcon, ExtractIcon, EyeIcon, EyeOffIcon, FileChartColumnIcon, FileIcon, FileReturnIcon, FileTextIcon, FilterIcon, FlagIcon, FolderClosedIcon, FolderDownIcon, FolderOpenIcon, FolderPlusIcon, FolderUpIcon, GlobeIcon, GoogleBrandIcon, GraduationCapIcon, GripHorizontalIcon, GripVerticalIcon, HelpCircleIcon, HistoryIcon, HomeIcon, InboxIcon, InfoCircleSolidIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, LandmarkIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LightningIcon, Link2Icon, LinkIcon, ListChecksIcon, ListIcon, ListOrderedIcon, LoaderIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MessageCircleMoreIcon, MessageCircleWarningIcon, MicIcon, MicrosoftBrandIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointer2Icon, MoveIcon, PaletteIcon, PanelLeftCloseIcon, PanelLeftIcon, PanelRightCloseIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenSignIcon, PenToolIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, ReceiptIcon, RefreshCwIcon, ReplyIcon, RotateCcwIcon, SaveIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, SigmaIcon, SlashIcon, SmartphoneIcon, SparkleIcon, SparklesIcon, SquarePlayIcon, StarIcon, StopIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TeamIcon, ThumbsDownIcon, ThumbsUpIcon, TimerIcon, Trash2Icon, TrashIcon, TrashSolidIcon, TrendingDownIcon, TrendingUpIcon, TypeIcon, UnderlineIcon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VideoIcon, Volume2Icon, VolumeXIcon, WorkflowIcon, XCircleSolidIcon, XIcon, ZoomInIcon, ZoomOutIcon, cn, createIcon } from './chunk-AF3QYJ24.js';
10
10
  export { systemTokens } from './chunk-CPOGSNXS.js';
11
11
  import './chunk-EUHGZA6Q.js';
12
- export { colors, radii, reference, shadows, spacing, surfaces, typography } from './chunk-X76J4QSJ.js';
12
+ export { colors, radii, reference, shadows, spacing, surfaces, typography } from './chunk-YRHRVOLV.js';
13
13
  import * as React28 from 'react';
14
14
  import { forwardRef, useId, useRef, useState, useEffect, createContext, useCallback, useMemo, useImperativeHandle, Children, isValidElement, cloneElement, useSyncExternalStore, useContext } from 'react';
15
15
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
@@ -143,49 +143,33 @@ var AlertDialogDescription = React28.forwardRef((props, ref) => /* @__PURE__ */
143
143
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
144
144
  var EMPHASES = /* @__PURE__ */ new Set(["solid", "soft", "outline", "ghost", "link"]);
145
145
  var isEmphasis = (word) => EMPHASES.has(word);
146
- var LEGACY_ACTION_CLASSES = cn(
147
- "ds:rounded-btn ds:inline-flex ds:h-10 ds:items-center ds:justify-center ds:px-4 ds:text-sm ds:font-medium ds:whitespace-nowrap",
148
- "ds:bg-destructive ds:text-destructive-foreground ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
149
- "ds:hover:bg-destructive/90",
150
- "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
151
- "ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled ds:disabled:pointer-events-none ds:disabled:cursor-not-allowed"
152
- );
153
- var AlertDialogAction = React28.forwardRef(({ variant, intent, className, ...props }, ref) => /* @__PURE__ */ jsx(
154
- AlertDialogPrimitive.Action,
155
- {
156
- ref,
157
- ...slot(alertDialogAnatomy, "action"),
158
- className: cn(
159
- variant === void 0 && intent === void 0 ? LEGACY_ACTION_CLASSES : buttonVariants({
160
- variant: variant ?? "solid",
161
- // An emphasis alone keeps the action's meaning (`danger`); a
162
- // legacy word alone carries its own intent (`primary` → brand).
163
- intent: intent ?? (variant === void 0 || isEmphasis(variant) ? "danger" : void 0),
164
- size: "md"
165
- }),
166
- className
167
- ),
168
- ...props
169
- }
170
- ));
146
+ var LEGACY_ACTION_HOVER = "ds:hover:bg-destructive/90";
147
+ var AlertDialogAction = React28.forwardRef(({ variant, intent, className, ...props }, ref) => {
148
+ const legacy = variant === void 0 && intent === void 0;
149
+ const resolvedIntent = intent ?? (variant === void 0 || isEmphasis(variant) ? "danger" : void 0);
150
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, asChild: true, ...slot(alertDialogAnatomy, "action"), children: /* @__PURE__ */ jsx(
151
+ Button,
152
+ {
153
+ variant: variant ?? "solid",
154
+ ...resolvedIntent !== void 0 ? { intent: resolvedIntent } : {},
155
+ size: "md",
156
+ className: cn(legacy && LEGACY_ACTION_HOVER, className),
157
+ ...props
158
+ }
159
+ ) });
160
+ });
171
161
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
172
- var AlertDialogCancel = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
173
- AlertDialogPrimitive.Cancel,
162
+ var LEGACY_CANCEL_HOVER = "ds:hover:border-rule-strong ds:hover:text-fg";
163
+ var AlertDialogCancel = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, { ref, asChild: true, ...slot(alertDialogAnatomy, "cancel"), children: /* @__PURE__ */ jsx(
164
+ Button,
174
165
  {
175
- ref,
176
- ...slot(alertDialogAnatomy, "cancel"),
177
- className: cn(
178
- "ds:rounded-btn ds:border-rule-strong ds:bg-surface ds:inline-flex ds:h-10 ds:items-center ds:justify-center ds:border ds:px-4 ds:text-sm ds:font-medium ds:whitespace-nowrap",
179
- "ds:text-fg-2 ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
180
- "ds:hover:bg-surface-hover ds:hover:text-fg",
181
- "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
182
- "ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled ds:disabled:pointer-events-none ds:disabled:cursor-not-allowed",
183
- className
184
- ),
166
+ variant: "outline",
167
+ size: "md",
168
+ className: cn(LEGACY_CANCEL_HOVER, className),
185
169
  ...props,
186
170
  children: children ?? "Cancel"
187
171
  }
188
- ));
172
+ ) }));
189
173
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
190
174
  var alertVariants = cva(
191
175
  cn(
@@ -358,12 +342,12 @@ var AreaChart = forwardRef(function AreaChart2({ data, height = 140, formatValue
358
342
  style: { left: `${pts[hover][0] / width * 100}%` },
359
343
  children: [
360
344
  /* @__PURE__ */ jsx("span", { className: "ds:block ds:text-xs ds:font-semibold ds:tabular-nums", children: formatValue(data[hover].value) }),
361
- /* @__PURE__ */ jsx("span", { className: "ds:block ds:text-[10px] ds:opacity-70", children: data[hover].label })
345
+ /* @__PURE__ */ jsx("span", { className: "ds:block ds:text-(length:--text-micro) ds:opacity-70", children: data[hover].label })
362
346
  ]
363
347
  }
364
348
  )
365
349
  ] }),
366
- showAxis && /* @__PURE__ */ jsx("div", { className: "ds:text-fg-4 ds:mt-1.5 ds:flex ds:justify-between ds:text-[11px] ds:tabular-nums", children: data.map((d) => /* @__PURE__ */ jsx("span", { children: d.label }, d.label)) })
350
+ showAxis && /* @__PURE__ */ jsx("div", { className: "ds:text-fg-4 ds:mt-1.5 ds:flex ds:justify-between ds:text-(length:--text-caption) ds:tabular-nums", children: data.map((d) => /* @__PURE__ */ jsx("span", { children: d.label }, d.label)) })
367
351
  ] });
368
352
  });
369
353
  AreaChart.displayName = "AreaChart";
@@ -387,8 +371,9 @@ var fileTypeBadgeVariants = cva(
387
371
  {
388
372
  variants: {
389
373
  size: {
374
+ // 9px: off-scale, no type role — left literal (VN/D1-track decision).
390
375
  sm: "ds:size-8 ds:rounded-btn ds:text-[9px]",
391
- md: "ds:size-10 ds:rounded-card ds:text-[10px]"
376
+ md: "ds:size-10 ds:rounded-card ds:text-(length:--text-micro)"
392
377
  }
393
378
  },
394
379
  defaultVariants: {
@@ -1185,15 +1170,18 @@ function Calendar({
1185
1170
  root: "ds:p-3 ds:min-w-[280px]",
1186
1171
  months: "ds:flex ds:flex-col ds:gap-4",
1187
1172
  ...CALENDAR_CAPTION_CLASSNAMES,
1188
- month_caption: cn(CALENDAR_CAPTION_CLASSNAMES.month_caption, "ds:text-[13px]"),
1173
+ month_caption: cn(
1174
+ CALENDAR_CAPTION_CLASSNAMES.month_caption,
1175
+ "ds:text-(length:--control-font-size-md)"
1176
+ ),
1189
1177
  month_grid: "ds:w-full ds:border-collapse",
1190
1178
  weekdays: "ds:flex",
1191
- weekday: "ds:flex-1 ds:text-center ds:text-[11px] ds:font-medium ds:uppercase ds:tracking-wide ds:text-fg-4 ds:pb-1",
1179
+ weekday: "ds:flex-1 ds:text-center ds:text-(length:--text-overline) ds:font-medium ds:uppercase ds:tracking-wide ds:text-fg-4 ds:pb-1",
1192
1180
  weeks: "",
1193
1181
  week: "ds:flex ds:w-full ds:mt-1",
1194
1182
  day: "ds:flex-1 ds:text-center ds:relative ds:p-0",
1195
1183
  day_button: cn(
1196
- "ds:inline-flex ds:size-8 ds:w-full ds:items-center ds:justify-center ds:rounded-input ds:font-mono ds:tabular-nums ds:text-[13px] ds:text-fg",
1184
+ "ds:inline-flex ds:size-8 ds:w-full ds:items-center ds:justify-center ds:rounded-input ds:font-mono ds:tabular-nums ds:text-(length:--control-font-size-md) ds:text-fg",
1197
1185
  "ds:transition-colors ds:duration-[var(--duration-instant)] ds:motion-reduce:transition-none",
1198
1186
  "ds:hover:bg-surface-hover",
1199
1187
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]",
@@ -1608,7 +1596,7 @@ function CommandPalette({
1608
1596
  {
1609
1597
  className: cn(
1610
1598
  "ds:[&_[cmdk-group-heading]]:px-4 ds:[&_[cmdk-group-heading]]:py-1.5",
1611
- "ds:[&_[cmdk-group-heading]]:font-mono ds:[&_[cmdk-group-heading]]:text-[11px]",
1599
+ "ds:[&_[cmdk-group-heading]]:font-mono ds:[&_[cmdk-group-heading]]:text-(length:--text-overline)",
1612
1600
  "ds:[&_[cmdk-group-heading]]:tracking-[0.14em] ds:[&_[cmdk-group-heading]]:uppercase",
1613
1601
  "ds:[&_[cmdk-group-heading]]:text-fg-3"
1614
1602
  ),
@@ -2130,7 +2118,11 @@ var ContextMenuLabel = React28.forwardRef(({ className, inset, ...props }, ref)
2130
2118
  {
2131
2119
  ref,
2132
2120
  ...slot(contextMenuAnatomy, "label"),
2133
- className: cn(menuLabelClasses(PALETTE, "ds:text-[11px]"), inset && MENU_INSET, className),
2121
+ className: cn(
2122
+ menuLabelClasses(PALETTE, "ds:text-(length:--text-overline)"),
2123
+ inset && MENU_INSET,
2124
+ className
2125
+ ),
2134
2126
  ...props
2135
2127
  }
2136
2128
  ));
@@ -2145,7 +2137,13 @@ var ContextMenuSeparator = React28.forwardRef(({ className, ...props }, ref) =>
2145
2137
  }
2146
2138
  ));
2147
2139
  ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
2148
- var ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn(menuShortcutClasses(PALETTE, "ds:text-[11px]"), className), ...props });
2140
+ var ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx(
2141
+ "span",
2142
+ {
2143
+ className: cn(menuShortcutClasses(PALETTE, "ds:text-(length:--text-code)"), className),
2144
+ ...props
2145
+ }
2146
+ );
2149
2147
  ContextMenuShortcut.displayName = "ContextMenuShortcut";
2150
2148
  var CopyButton = forwardRef(function CopyButton2({ value, feedbackDuration = 2e3, messages: messagesProp, className, children, ...props }, ref) {
2151
2149
  const messages = useDsMessages("copyButton", messagesProp);
@@ -2175,6 +2173,55 @@ var CopyButton = forwardRef(function CopyButton2({ value, feedbackDuration = 2e3
2175
2173
  );
2176
2174
  });
2177
2175
  CopyButton.displayName = "CopyButton";
2176
+ var DATE_PICKER_BOX = {
2177
+ xs: "ds:h-(--control-height-xs) ds:text-(length:--control-font-size-xs)",
2178
+ sm: "ds:h-(--control-height-sm) ds:text-(length:--control-font-size-sm)",
2179
+ md: "ds:h-(--control-height-md) ds:text-(length:--control-font-size-md)",
2180
+ lg: "ds:h-(--control-height-lg) ds:text-(length:--control-font-size-lg)",
2181
+ xl: "ds:h-(--control-height-xl) ds:text-(length:--control-font-size-xl)"
2182
+ };
2183
+ var DATE_PICKER_OUTER_PAD_LEFT = {
2184
+ xs: "ds:pl-2",
2185
+ sm: "ds:pl-2.5",
2186
+ md: "ds:pl-3",
2187
+ lg: "ds:pl-3.5",
2188
+ xl: "ds:pl-4"
2189
+ };
2190
+ var DATE_PICKER_OUTER_PAD_RIGHT = {
2191
+ xs: "ds:pr-2",
2192
+ sm: "ds:pr-2.5",
2193
+ md: "ds:pr-3",
2194
+ lg: "ds:pr-3.5",
2195
+ xl: "ds:pr-4"
2196
+ };
2197
+ var DATE_PICKER_ICON_SLOT = {
2198
+ xs: "ds:w-8",
2199
+ sm: "ds:w-9",
2200
+ md: "ds:w-10",
2201
+ lg: "ds:w-11",
2202
+ xl: "ds:w-12"
2203
+ };
2204
+ var DATE_PICKER_ICON_PAD_LEFT = {
2205
+ xs: "ds:pl-8",
2206
+ sm: "ds:pl-9",
2207
+ md: "ds:pl-10",
2208
+ lg: "ds:pl-11",
2209
+ xl: "ds:pl-12"
2210
+ };
2211
+ var DATE_PICKER_ICON_PAD_RIGHT = {
2212
+ xs: "ds:pr-8",
2213
+ sm: "ds:pr-9",
2214
+ md: "ds:pr-10",
2215
+ lg: "ds:pr-11",
2216
+ xl: "ds:pr-12"
2217
+ };
2218
+ var DATE_PICKER_ICON_SIZE = {
2219
+ xs: "ds:size-(--control-icon-xs)",
2220
+ sm: "ds:size-(--control-icon-sm)",
2221
+ md: "ds:size-(--control-icon-md)",
2222
+ lg: "ds:size-(--control-icon-lg)",
2223
+ xl: "ds:size-(--control-icon-xl)"
2224
+ };
2178
2225
  function YearGrid({ selected, onSelect, minYear, maxYear, formatLabel, autoFocus }) {
2179
2226
  const messages = useDsMessages("datePicker");
2180
2227
  const today = (/* @__PURE__ */ new Date()).getFullYear();
@@ -2207,10 +2254,10 @@ function YearGrid({ selected, onSelect, minYear, maxYear, formatLabel, autoFocus
2207
2254
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]",
2208
2255
  "ds:disabled:text-fg-disabled ds:disabled:pointer-events-none ds:disabled:cursor-not-allowed"
2209
2256
  ),
2210
- children: /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "ds:text-fg-3 ds:size-4", "aria-hidden": "true" })
2257
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "ds:text-fg-3 ds:size-(--control-icon-md)", "aria-hidden": "true" })
2211
2258
  }
2212
2259
  ),
2213
- /* @__PURE__ */ jsxs("span", { className: "ds:font-display ds:text-fg ds:text-[13px] ds:font-medium ds:tabular-nums", children: [
2260
+ /* @__PURE__ */ jsxs("span", { className: "ds:font-display ds:text-fg ds:text-(length:--control-font-size-md) ds:font-medium ds:tabular-nums", children: [
2214
2261
  startYear,
2215
2262
  " \u2013 ",
2216
2263
  startYear + 11
@@ -2229,7 +2276,7 @@ function YearGrid({ selected, onSelect, minYear, maxYear, formatLabel, autoFocus
2229
2276
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]",
2230
2277
  "ds:disabled:text-fg-disabled ds:disabled:pointer-events-none ds:disabled:cursor-not-allowed"
2231
2278
  ),
2232
- children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ds:text-fg-3 ds:size-4", "aria-hidden": "true" })
2279
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ds:text-fg-3 ds:size-(--control-icon-md)", "aria-hidden": "true" })
2233
2280
  }
2234
2281
  )
2235
2282
  ] }),
@@ -2248,7 +2295,7 @@ function YearGrid({ selected, onSelect, minYear, maxYear, formatLabel, autoFocus
2248
2295
  "aria-pressed": isSelected,
2249
2296
  "aria-current": isToday ? "date" : void 0,
2250
2297
  className: cn(
2251
- "ds:rounded-input ds:font-mono ds:text-[13px] ds:tabular-nums",
2298
+ "ds:rounded-input ds:font-mono ds:text-(length:--control-font-size-md) ds:tabular-nums",
2252
2299
  "ds:inline-flex ds:h-10 ds:items-center ds:justify-center",
2253
2300
  "ds:transition-colors ds:duration-[var(--duration-instant)] ds:motion-reduce:transition-none",
2254
2301
  "ds:hover:bg-surface-hover",
@@ -2288,7 +2335,8 @@ var DatePicker = forwardRef(function DatePicker2({
2288
2335
  formatLabel,
2289
2336
  iconPosition = "right",
2290
2337
  captionLayout = "dropdown",
2291
- inputClassName
2338
+ inputClassName,
2339
+ size
2292
2340
  }, ref) {
2293
2341
  const messages = useDsMessages("datePicker");
2294
2342
  const isYearMode = picker === "year";
@@ -2419,7 +2467,7 @@ var DatePicker = forwardRef(function DatePicker2({
2419
2467
  const minYear = min ? Number(isoToYear(min)) : void 0;
2420
2468
  const maxYear = max ? Number(isoToYear(max)) : void 0;
2421
2469
  return /* @__PURE__ */ jsxs("div", { className: cn("ds:w-full", className), children: [
2422
- label && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "ds:text-fg ds:mb-1.5 ds:block ds:text-[13px] ds:leading-none ds:font-medium", children: [
2470
+ label && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "ds:text-fg ds:mb-1.5 ds:block ds:text-(length:--control-font-size-md) ds:leading-none ds:font-medium", children: [
2423
2471
  label,
2424
2472
  wiring.required && /* @__PURE__ */ jsx("span", { className: "ds:text-danger-fg ds:ml-0.5", "aria-hidden": "true", children: "*" })
2425
2473
  ] }),
@@ -2444,8 +2492,8 @@ var DatePicker = forwardRef(function DatePicker2({
2444
2492
  "aria-describedby": joinIds(wiring["aria-describedby"], error ? errorId : void 0),
2445
2493
  "aria-labelledby": wiring["aria-labelledby"],
2446
2494
  "aria-label": ariaLabel,
2447
- className: cn(
2448
- "ds:rounded-input ds:bg-surface ds:text-fg ds:flex ds:h-9 ds:w-full ds:border ds:font-mono ds:text-[13px] ds:tabular-nums",
2495
+ className: size == null ? cn(
2496
+ "ds:rounded-input ds:bg-surface ds:text-fg ds:flex ds:h-9 ds:w-full ds:border ds:font-mono ds:text-(length:--control-font-size-md) ds:tabular-nums",
2449
2497
  "ds:border-field-border ds:py-2",
2450
2498
  iconPosition === "left" ? "ds:pl-10 ds:pr-3" : "ds:pl-3 ds:pr-10",
2451
2499
  "ds:transition-[color,background-color,border-color,box-shadow] ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
@@ -2459,6 +2507,22 @@ var DatePicker = forwardRef(function DatePicker2({
2459
2507
  "ds:aria-[invalid=true]:focus-visible:[box-shadow:0_0_0_2px_var(--color-danger-bg)]",
2460
2508
  hasCustomYearLabel && "ds:cursor-pointer",
2461
2509
  inputClassName
2510
+ ) : cn(
2511
+ "ds:rounded-input ds:bg-surface ds:text-fg ds:flex ds:w-full ds:border ds:font-mono ds:tabular-nums",
2512
+ DATE_PICKER_BOX[size],
2513
+ "ds:border-field-border ds:py-2",
2514
+ iconPosition === "left" ? cn(DATE_PICKER_ICON_PAD_LEFT[size], DATE_PICKER_OUTER_PAD_RIGHT[size]) : cn(DATE_PICKER_OUTER_PAD_LEFT[size], DATE_PICKER_ICON_PAD_RIGHT[size]),
2515
+ "ds:transition-[color,background-color,border-color,box-shadow] ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
2516
+ "ds:motion-reduce:transition-none",
2517
+ "ds:placeholder:font-body ds:placeholder:text-fg-4",
2518
+ "ds:not-disabled:hover:border-field-border-hover",
2519
+ "ds:focus-visible:[border-color:var(--focus-ring-border)] ds:focus-visible:outline-none",
2520
+ "ds:focus-visible:[box-shadow:var(--shadow-focus-ring-field)]",
2521
+ "ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed",
2522
+ "ds:aria-[invalid=true]:border-field-border-invalid ds:aria-[invalid=true]:focus-visible:border-danger-fg",
2523
+ "ds:aria-[invalid=true]:focus-visible:[box-shadow:0_0_0_2px_var(--color-danger-bg)]",
2524
+ hasCustomYearLabel && "ds:cursor-pointer",
2525
+ inputClassName
2462
2526
  )
2463
2527
  }
2464
2528
  ),
@@ -2470,7 +2534,7 @@ var DatePicker = forwardRef(function DatePicker2({
2470
2534
  disabled: isDisabled,
2471
2535
  tabIndex: -1,
2472
2536
  "aria-label": messages.openCalendar,
2473
- className: cn(
2537
+ className: size == null ? cn(
2474
2538
  "ds:text-fg-3 ds:absolute ds:inset-y-0 ds:flex ds:w-10 ds:cursor-pointer ds:items-center ds:justify-center",
2475
2539
  iconPosition === "left" ? "ds:left-0 ds:rounded-l-input" : "ds:right-0 ds:rounded-r-input",
2476
2540
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
@@ -2478,8 +2542,17 @@ var DatePicker = forwardRef(function DatePicker2({
2478
2542
  "ds:hover:bg-surface-hover ds:hover:text-fg",
2479
2543
  "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
2480
2544
  "ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed ds:disabled:hover:bg-transparent"
2545
+ ) : cn(
2546
+ "ds:text-fg-3 ds:absolute ds:inset-y-0 ds:flex ds:cursor-pointer ds:items-center ds:justify-center",
2547
+ DATE_PICKER_ICON_SLOT[size],
2548
+ iconPosition === "left" ? "ds:left-0 ds:rounded-l-input" : "ds:right-0 ds:rounded-r-input",
2549
+ "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
2550
+ "ds:motion-reduce:transition-none",
2551
+ "ds:hover:bg-surface-hover ds:hover:text-fg",
2552
+ "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
2553
+ "ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed ds:disabled:hover:bg-transparent"
2481
2554
  ),
2482
- children: /* @__PURE__ */ jsx(CalendarIcon, { className: "ds:size-4", "aria-hidden": "true" })
2555
+ children: /* @__PURE__ */ jsx(CalendarIcon, { className: DATE_PICKER_ICON_SIZE[size ?? "md"], "aria-hidden": "true" })
2483
2556
  }
2484
2557
  ) }),
2485
2558
  /* @__PURE__ */ jsx(
@@ -2552,7 +2625,8 @@ var DateRangePicker = forwardRef(
2552
2625
  max,
2553
2626
  iconPosition = "right",
2554
2627
  "aria-label": ariaLabel,
2555
- captionLayout = "dropdown"
2628
+ captionLayout = "dropdown",
2629
+ size
2556
2630
  }, ref) {
2557
2631
  const messages = useDsMessages("dateRangePicker");
2558
2632
  const placeholder = placeholderProp ?? messages.placeholder;
@@ -2647,7 +2721,7 @@ var DateRangePicker = forwardRef(
2647
2721
  const iconNode = /* @__PURE__ */ jsx(
2648
2722
  CalendarIcon,
2649
2723
  {
2650
- className: cn("ds:size-4 ds:shrink-0", isDisabled ? "ds:text-fg-disabled" : "ds:text-fg-3"),
2724
+ className: cn("ds:size-(--control-icon-md) ds:shrink-0", isDisabled ? "ds:text-fg-disabled" : "ds:text-fg-3"),
2651
2725
  "aria-hidden": "true"
2652
2726
  }
2653
2727
  );
@@ -2663,7 +2737,7 @@ var DateRangePicker = forwardRef(
2663
2737
  {
2664
2738
  id: labelId,
2665
2739
  htmlFor: id,
2666
- className: "ds:text-fg ds:mb-1.5 ds:block ds:text-[13px] ds:leading-none ds:font-medium",
2740
+ className: "ds:text-fg ds:mb-1.5 ds:block ds:text-(length:--control-font-size-md) ds:leading-none ds:font-medium",
2667
2741
  children: [
2668
2742
  label,
2669
2743
  isRequired && /* @__PURE__ */ jsx("span", { className: "ds:text-danger-fg ds:ml-0.5", "aria-hidden": "true", children: "*" })
@@ -2684,8 +2758,8 @@ var DateRangePicker = forwardRef(
2684
2758
  "aria-label": ariaLabel ?? label ?? messages.name,
2685
2759
  "aria-haspopup": "dialog",
2686
2760
  "aria-expanded": open,
2687
- className: cn(
2688
- "ds:rounded-input ds:bg-surface ds:flex ds:h-9 ds:w-full ds:cursor-pointer ds:items-center ds:border ds:font-mono ds:text-[13px] ds:tabular-nums",
2761
+ className: size == null ? cn(
2762
+ "ds:rounded-input ds:bg-surface ds:flex ds:h-9 ds:w-full ds:cursor-pointer ds:items-center ds:border ds:font-mono ds:text-(length:--control-font-size-md) ds:tabular-nums",
2689
2763
  "ds:border-field-border ds:px-3 ds:py-2 ds:gap-2",
2690
2764
  "ds:transition-[color,background-color,border-color,box-shadow] ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
2691
2765
  "ds:motion-reduce:transition-none",
@@ -2695,6 +2769,18 @@ var DateRangePicker = forwardRef(
2695
2769
  "ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed ds:disabled:hover:bg-bg-disabled",
2696
2770
  "ds:data-[invalid=true]:border-field-border-invalid ds:data-[invalid=true]:focus-visible:border-danger-fg",
2697
2771
  "ds:data-[invalid=true]:focus-visible:[box-shadow:0_0_0_2px_var(--color-danger-bg)]"
2772
+ ) : cn(
2773
+ "ds:rounded-input ds:bg-surface ds:flex ds:w-full ds:cursor-pointer ds:items-center ds:border ds:font-mono ds:tabular-nums",
2774
+ "ds:border-field-border",
2775
+ CONTROL_SIZE_CLASSES[size],
2776
+ "ds:transition-[color,background-color,border-color,box-shadow] ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
2777
+ "ds:motion-reduce:transition-none",
2778
+ "ds:hover:bg-surface-hover ds:not-disabled:hover:border-field-border-hover",
2779
+ "ds:focus-visible:[border-color:var(--focus-ring-border)] ds:focus-visible:outline-none",
2780
+ "ds:focus-visible:[box-shadow:var(--shadow-focus-ring-field)]",
2781
+ "ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed ds:disabled:hover:bg-bg-disabled",
2782
+ "ds:data-[invalid=true]:border-field-border-invalid ds:data-[invalid=true]:focus-visible:border-danger-fg",
2783
+ "ds:data-[invalid=true]:focus-visible:[box-shadow:0_0_0_2px_var(--color-danger-bg)]"
2698
2784
  ),
2699
2785
  children: [
2700
2786
  iconPosition === "left" && iconNode,
@@ -2913,7 +2999,7 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
2913
2999
  var chipVariants2 = cva(
2914
3000
  cn(
2915
3001
  "ds:inline-flex ds:items-center ds:gap-1 ds:rounded-full ds:px-2.5 ds:py-1",
2916
- "ds:text-[12px] ds:font-medium",
3002
+ "ds:text-(length:--text-helper) ds:font-medium",
2917
3003
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
2918
3004
  "ds:motion-reduce:transition-none",
2919
3005
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]"
@@ -3598,7 +3684,7 @@ function KeyboardShortcutsDialog({
3598
3684
  {
3599
3685
  className: cn(
3600
3686
  "ds:mb-2.5 ds:inline-flex ds:items-center ds:gap-1.5",
3601
- "ds:text-fg-3 ds:font-mono ds:text-[11px] ds:tracking-[0.14em] ds:uppercase"
3687
+ "ds:text-fg-3 ds:font-mono ds:text-(length:--text-overline) ds:tracking-[0.14em] ds:uppercase"
3602
3688
  ),
3603
3689
  children: [
3604
3690
  section.icon,
@@ -3613,7 +3699,7 @@ function KeyboardShortcutsDialog({
3613
3699
  children: [
3614
3700
  /* @__PURE__ */ jsx("span", { className: "ds:text-fg ds:text-sm", children: shortcut.description }),
3615
3701
  /* @__PURE__ */ jsx("div", { className: "ds:flex ds:shrink-0 ds:items-center ds:gap-1", children: shortcut.keys.map((key, i) => /* @__PURE__ */ jsxs(React28.Fragment, { children: [
3616
- i > 0 && /* @__PURE__ */ jsx("span", { className: "ds:text-fg-4 ds:mx-0.5 ds:text-[11px]", children: messages.then }),
3702
+ i > 0 && /* @__PURE__ */ jsx("span", { className: "ds:text-fg-4 ds:mx-0.5 ds:text-(length:--text-caption)", children: messages.then }),
3617
3703
  /* @__PURE__ */ jsx(Kbd, { children: key })
3618
3704
  ] }, i)) })
3619
3705
  ]
@@ -3621,7 +3707,7 @@ function KeyboardShortcutsDialog({
3621
3707
  shortcut.description
3622
3708
  )) })
3623
3709
  ] }, section.title)) }) }),
3624
- /* @__PURE__ */ jsx("div", { className: "ds:border-rule ds:bg-bg-2/40 ds:border-t ds:px-5 ds:py-3", children: /* @__PURE__ */ jsxs("p", { className: "ds:text-fg-3 ds:text-[11px]", children: [
3710
+ /* @__PURE__ */ jsx("div", { className: "ds:border-rule ds:bg-bg-2/40 ds:border-t ds:px-5 ds:py-3", children: /* @__PURE__ */ jsxs("p", { className: "ds:text-fg-3 ds:text-(length:--text-caption)", children: [
3625
3711
  messages.hintPrefix,
3626
3712
  " ",
3627
3713
  /* @__PURE__ */ jsx(Kbd, { children: hotkey ?? "?" }),
@@ -3631,7 +3717,7 @@ function KeyboardShortcutsDialog({
3631
3717
  ] }) });
3632
3718
  }
3633
3719
  var labelVariants = cva(
3634
- "ds:text-[13px] ds:font-medium ds:leading-none ds:text-fg ds:select-none ds:peer-disabled:cursor-not-allowed ds:peer-disabled:text-fg-disabled ds:has-[+input:disabled]:text-fg-disabled"
3720
+ "ds:text-(length:--text-label) ds:font-medium ds:leading-none ds:text-fg ds:select-none ds:peer-disabled:cursor-not-allowed ds:peer-disabled:text-fg-disabled ds:has-[+input:disabled]:text-fg-disabled"
3635
3721
  );
3636
3722
  var Label2 = React28.forwardRef(
3637
3723
  function Label3({ children, required, className, id, htmlFor, onClick, ...props }, ref) {
@@ -3940,9 +4026,9 @@ var MasterDetailLayout = forwardRef(
3940
4026
  );
3941
4027
  MasterDetailLayout.displayName = "MasterDetailLayout";
3942
4028
  var TRIGGER_SIZE = {
3943
- sm: "ds:h-8 ds:gap-1.5 ds:px-2.5 ds:text-[13px]",
3944
- md: "ds:h-9 ds:gap-2 ds:px-3 ds:text-sm",
3945
- lg: "ds:h-10 ds:gap-2 ds:px-3.5 ds:text-base"
4029
+ sm: "ds:h-(--multi-filter-pill-height-sm) ds:gap-1.5 ds:px-2.5 ds:text-(length:--control-font-size-md)",
4030
+ md: "ds:h-(--multi-filter-pill-height-md) ds:gap-2 ds:px-3 ds:text-sm",
4031
+ lg: "ds:h-(--multi-filter-pill-height-lg) ds:gap-2 ds:px-3.5 ds:text-base"
3946
4032
  };
3947
4033
  function MultiFilterPill({
3948
4034
  label,
@@ -4040,7 +4126,7 @@ function MultiFilterPill({
4040
4126
  "aria-selected": isSelected,
4041
4127
  onClick: () => onToggle(opt.key),
4042
4128
  className: cn(
4043
- "ds:rounded-pill ds:flex ds:w-full ds:cursor-default ds:items-center ds:gap-2 ds:px-2 ds:py-1.5 ds:text-[13px] ds:outline-none ds:select-none",
4129
+ "ds:rounded-pill ds:flex ds:w-full ds:cursor-default ds:items-center ds:gap-2 ds:px-2 ds:py-1.5 ds:text-(length:--control-font-size-md) ds:outline-none ds:select-none",
4044
4130
  "ds:text-fg-2 ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
4045
4131
  "ds:motion-reduce:transition-none",
4046
4132
  "ds:hover:bg-surface-hover ds:hover:text-fg",
@@ -4080,7 +4166,7 @@ function MultiFilterPill({
4080
4166
  type: "button",
4081
4167
  onClick: onClear,
4082
4168
  className: cn(
4083
- "ds:rounded-pill ds:flex ds:w-full ds:items-center ds:justify-center ds:px-2 ds:py-1.5 ds:text-[12px] ds:outline-none",
4169
+ "ds:rounded-pill ds:flex ds:w-full ds:items-center ds:justify-center ds:px-2 ds:py-1.5 ds:text-(length:--text-helper) ds:outline-none",
4084
4170
  "ds:text-fg-3 ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
4085
4171
  "ds:motion-reduce:transition-none",
4086
4172
  "ds:hover:bg-surface-hover ds:hover:text-fg",
@@ -4125,7 +4211,7 @@ function MultiSelectField({
4125
4211
  "div",
4126
4212
  {
4127
4213
  id: `${groupId}-label`,
4128
- className: "ds:text-fg ds:mb-1.5 ds:block ds:text-[13px] ds:leading-none ds:font-medium",
4214
+ className: "ds:text-fg ds:mb-1.5 ds:block ds:text-(length:--control-font-size-md) ds:leading-none ds:font-medium",
4129
4215
  children: label
4130
4216
  }
4131
4217
  ),
@@ -5329,7 +5415,8 @@ PhoneInput.displayName = "PhoneInput";
5329
5415
  function CountryFlag2({ iso }) {
5330
5416
  const flags = useCountryFlags();
5331
5417
  const Flag = flags?.[iso];
5332
- if (flags !== null && !Flag) return /* @__PURE__ */ jsx("span", { className: "ds:text-[10px] ds:font-mono", children: iso });
5418
+ if (flags !== null && !Flag)
5419
+ return /* @__PURE__ */ jsx("span", { className: "ds:text-(length:--text-micro) ds:font-mono", children: iso });
5333
5420
  const Tag = Flag ?? "span";
5334
5421
  return /* @__PURE__ */ jsx(
5335
5422
  Tag,
@@ -5339,10 +5426,25 @@ function CountryFlag2({ iso }) {
5339
5426
  }
5340
5427
  );
5341
5428
  }
5429
+ var COUNTRY_SELECT_SIZE_ROWS = {
5430
+ xs: "ds:h-(--control-height-xs) ds:w-[72px] ds:gap-1 ds:px-2 ds:text-xs",
5431
+ sm: "ds:h-(--control-height-sm) ds:w-[80px] ds:gap-1 ds:px-2 ds:text-xs",
5432
+ md: "ds:h-(--control-height-md) ds:w-[90px] ds:gap-1.5 ds:px-2.5 ds:text-sm",
5433
+ lg: "ds:h-(--control-height-lg) ds:w-[100px] ds:gap-2 ds:px-3 ds:text-sm",
5434
+ xl: "ds:h-(--control-height-xl) ds:w-[120px] ds:gap-2 ds:px-3.5 ds:text-base"
5435
+ };
5436
+ var COUNTRY_SELECT_ICON_SIZE = {
5437
+ xs: "ds:size-2.5",
5438
+ sm: "ds:size-2.5",
5439
+ md: "ds:size-3",
5440
+ lg: "ds:size-3.5",
5441
+ xl: "ds:size-4"
5442
+ };
5342
5443
  function CountrySelect({
5343
5444
  value,
5344
5445
  onChange,
5345
- disabled
5446
+ disabled,
5447
+ size
5346
5448
  }) {
5347
5449
  const messages = useDsMessages("phoneCountryInput");
5348
5450
  const [open, setOpen] = useState(false);
@@ -5372,14 +5474,17 @@ function CountrySelect({
5372
5474
  type: "button",
5373
5475
  disabled,
5374
5476
  "aria-label": messages.selectCountry,
5375
- className: "ds:rounded-input ds:flex ds:h-9 ds:w-[90px] ds:shrink-0 ds:items-center ds:gap-1.5 ds:border ds:border-field-border ds:bg-surface ds:px-2.5 ds:text-sm ds:text-fg ds:transition-colors ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none ds:motion-reduce:transition-none ds:disabled:cursor-not-allowed ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled",
5477
+ className: size == null ? "ds:rounded-input ds:flex ds:h-9 ds:w-[90px] ds:shrink-0 ds:items-center ds:gap-1.5 ds:border ds:border-field-border ds:bg-surface ds:px-2.5 ds:text-sm ds:text-fg ds:transition-colors ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none ds:motion-reduce:transition-none ds:disabled:cursor-not-allowed ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled" : cn(
5478
+ "ds:rounded-input ds:flex ds:shrink-0 ds:items-center ds:border ds:border-field-border ds:bg-surface ds:text-fg ds:transition-colors ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none ds:motion-reduce:transition-none ds:disabled:cursor-not-allowed ds:disabled:bg-bg-disabled ds:disabled:text-fg-disabled",
5479
+ COUNTRY_SELECT_SIZE_ROWS[size]
5480
+ ),
5376
5481
  children: [
5377
5482
  /* @__PURE__ */ jsx(CountryFlag2, { iso: selected.iso }),
5378
5483
  /* @__PURE__ */ jsx("span", { className: "ds:text-xs ds:tabular-nums ds:text-fg-3", children: selected.dialCode }),
5379
5484
  /* @__PURE__ */ jsx(
5380
5485
  ChevronDownIcon,
5381
5486
  {
5382
- className: "ds:ml-auto ds:size-3 ds:shrink-0 ds:text-fg-3",
5487
+ className: cn("ds:ml-auto ds:shrink-0 ds:text-fg-3", COUNTRY_SELECT_ICON_SIZE[size ?? "md"]),
5383
5488
  "aria-hidden": "true"
5384
5489
  }
5385
5490
  )
@@ -5403,20 +5508,34 @@ function CountrySelect({
5403
5508
  if (e.key !== "Escape") e.stopPropagation();
5404
5509
  },
5405
5510
  children: [
5406
- /* @__PURE__ */ jsx("div", { className: "ds:rounded-t-card ds:border-b ds:border-rule ds:px-3 ds:py-2.5", children: /* @__PURE__ */ jsxs("div", { className: "ds:rounded-input ds:flex ds:items-center ds:gap-2 ds:border ds:border-field-border ds:bg-surface ds:px-2.5", children: [
5407
- /* @__PURE__ */ jsx(SearchIcon, { className: "ds:size-3.5 ds:shrink-0 ds:text-fg-3", "aria-hidden": "true" }),
5408
- /* @__PURE__ */ jsx(
5409
- "input",
5410
- {
5411
- ref: searchRef,
5412
- value: search,
5413
- onChange: (e) => setSearch(e.target.value),
5414
- onKeyDown: (e) => e.stopPropagation(),
5415
- placeholder: messages.searchCountries,
5416
- className: "ds:h-8 ds:flex-1 ds:bg-transparent ds:text-xs ds:text-fg ds:placeholder:text-fg-3 ds:focus:outline-none"
5417
- }
5418
- )
5419
- ] }) }),
5511
+ /* @__PURE__ */ jsx("div", { className: "ds:rounded-t-card ds:border-b ds:border-rule ds:px-3 ds:py-2.5", children: /* @__PURE__ */ jsxs(
5512
+ "div",
5513
+ {
5514
+ className: cn(
5515
+ "ds:rounded-input ds:flex ds:items-center ds:gap-2 ds:border ds:border-field-border ds:bg-surface ds:px-2.5",
5516
+ // The visible input here suppresses its own outline
5517
+ // (`ds:focus:outline-none` below); this wrapper carries the
5518
+ // ring instead, the same `focus-within` field-halo pattern
5519
+ // `CONTROL_FRAME` uses in combobox.tsx — this search field had
5520
+ // no focus indicator at all before (W-polish-2, control-states).
5521
+ "ds:focus-within:[border-color:var(--focus-ring-border)] ds:focus-within:[box-shadow:var(--shadow-focus-ring-field)]"
5522
+ ),
5523
+ children: [
5524
+ /* @__PURE__ */ jsx(SearchIcon, { className: "ds:size-3.5 ds:shrink-0 ds:text-fg-3", "aria-hidden": "true" }),
5525
+ /* @__PURE__ */ jsx(
5526
+ "input",
5527
+ {
5528
+ ref: searchRef,
5529
+ value: search,
5530
+ onChange: (e) => setSearch(e.target.value),
5531
+ onKeyDown: (e) => e.stopPropagation(),
5532
+ placeholder: messages.searchCountries,
5533
+ className: "ds:h-8 ds:flex-1 ds:bg-transparent ds:text-xs ds:text-fg ds:placeholder:text-fg-3 ds:focus:outline-none"
5534
+ }
5535
+ )
5536
+ ]
5537
+ }
5538
+ ) }),
5420
5539
  /* @__PURE__ */ jsx(
5421
5540
  "div",
5422
5541
  {
@@ -5656,7 +5775,10 @@ var RadioGroupItem = React28.forwardRef(function RadioGroupItem2({
5656
5775
  {
5657
5776
  htmlFor: id,
5658
5777
  ...slot(radioGroupAnatomy, "label"),
5659
- className: card ? "ds:text-fg ds:group-has-[:disabled]:text-fg-disabled ds:text-label ds:leading-4 ds:cursor-pointer ds:select-none ds:after:absolute ds:after:inset-0 ds:group-has-[:disabled]:cursor-not-allowed" : "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",
5778
+ className: card ? "ds:text-fg ds:group-has-[:disabled]:text-fg-disabled ds:text-label ds:leading-4 ds:cursor-pointer ds:select-none ds:after:absolute ds:after:inset-0 ds:group-has-[:disabled]:cursor-not-allowed" : cn(
5779
+ "ds:text-fg ds:peer-disabled:text-fg-disabled ds:cursor-pointer ds:leading-none ds:select-none ds:peer-disabled:cursor-not-allowed",
5780
+ CONTROL_LABEL_TEXT
5781
+ ),
5660
5782
  children: label
5661
5783
  }
5662
5784
  ) : null;
@@ -5894,7 +6016,7 @@ var SEARCH_RESET = "ds:[&::-webkit-search-cancel-button]:appearance-none ds:[&::
5894
6016
  var SEARCH_INPUT_SIZE_ROWS = {
5895
6017
  sm: "ds:h-(--control-height-sm) ds:pl-8 ds:pr-8 ds:text-(length:--control-font-size-sm)",
5896
6018
  md: "ds:h-(--control-height-md) ds:pl-9 ds:pr-9 ds:text-(length:--control-font-size-md)",
5897
- lg: "ds:h-(--search-input-height-lg) ds:pl-10 ds:pr-10 ds:text-sm",
6019
+ lg: "ds:h-(--control-height-lg) ds:pl-10 ds:pr-10 ds:text-sm",
5898
6020
  compact: "ds:h-(--control-height-sm) ds:pl-8 ds:pr-8 ds:text-(length:--control-font-size-sm)",
5899
6021
  default: "ds:h-(--control-height-lg) ds:pl-9 ds:pr-9 ds:text-sm",
5900
6022
  comfortable: "ds:h-(--control-height-xl) ds:pl-10 ds:pr-10 ds:text-base"
@@ -5905,18 +6027,7 @@ function searchInputVariants({
5905
6027
  class: classProp,
5906
6028
  className
5907
6029
  } = {}) {
5908
- const LEGACY_ROWS = {
5909
- // `sm` is the dense control tier: h-8 + 13px, so a search box lines up
5910
- // pixel-for-pixel (height AND text) with Button / MultiFilterPill /
5911
- // FilterChip at their `sm` tier in a toolbar row.
5912
- sm: "ds:h-8 ds:pl-8 ds:pr-8 ds:text-[13px]",
5913
- md: "ds:h-9 ds:pl-9 ds:pr-9 ds:text-[13px]",
5914
- lg: "ds:h-11 ds:pl-10 ds:pr-10 ds:text-sm",
5915
- compact: "ds:h-8 ds:pl-8 ds:pr-8 ds:text-[13px]",
5916
- default: "ds:h-10 ds:pl-9 ds:pr-9 ds:text-sm",
5917
- comfortable: "ds:h-12 ds:pl-10 ds:pr-10 ds:text-base"
5918
- };
5919
- const row = size ? SEARCH_INPUT_SIZE_ROWS[size] : LEGACY_ROWS[inputSize ?? "md"];
6030
+ const row = SEARCH_INPUT_SIZE_ROWS[size ?? inputSize ?? "md"];
5920
6031
  return controlChrome({
5921
6032
  variant: "default",
5922
6033
  size: null,
@@ -6080,7 +6191,7 @@ function renderSearchSelectRow(row, hasLeadingDot) {
6080
6191
  style: { backgroundColor: source.color },
6081
6192
  "aria-hidden": "true"
6082
6193
  }
6083
- ) : hasLeadingDot && /* @__PURE__ */ jsx(CheckIcon, { className: "ds:size-4 ds:shrink-0 ds:text-transparent", "aria-hidden": "true" }),
6194
+ ) : hasLeadingDot && /* @__PURE__ */ jsx(CheckIcon, { className: "ds:size-(--control-icon-md) ds:shrink-0 ds:text-transparent", "aria-hidden": "true" }),
6084
6195
  /* @__PURE__ */ jsx("span", { className: "ds:line-clamp-1", children: source.label })
6085
6196
  ] });
6086
6197
  }
@@ -6105,7 +6216,8 @@ function SearchSelect({
6105
6216
  "aria-label": ariaLabel,
6106
6217
  "aria-labelledby": ariaLabelledBy,
6107
6218
  "aria-describedby": ariaDescribedBy,
6108
- id
6219
+ id,
6220
+ size
6109
6221
  }) {
6110
6222
  deprecate(
6111
6223
  CONTRACT,
@@ -6220,7 +6332,7 @@ function SearchSelect({
6220
6332
  type: "button",
6221
6333
  onClick: () => setActiveChip(chip),
6222
6334
  className: cn(
6223
- "ds:rounded-pill ds:px-2.5 ds:py-0.5 ds:text-[12px] ds:font-medium",
6335
+ "ds:rounded-pill ds:px-2.5 ds:py-0.5 ds:text-(length:--text-helper) ds:font-medium",
6224
6336
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
6225
6337
  active ? "ds:bg-brand ds:text-fg-on-brand" : "ds:border-rule ds:text-fg-2 ds:hover:bg-surface-hover ds:border ds:bg-transparent"
6226
6338
  ),
@@ -6239,14 +6351,14 @@ function SearchSelect({
6239
6351
  setOpen(false);
6240
6352
  },
6241
6353
  className: cn(
6242
- "ds:text-brand ds:flex ds:w-full ds:shrink-0 ds:items-center ds:gap-2 ds:px-3 ds:py-2.5 ds:text-[13px] ds:font-medium",
6354
+ "ds:text-brand ds:flex ds:w-full ds:shrink-0 ds:items-center ds:gap-2 ds:px-3 ds:py-2.5 ds:text-(length:--control-font-size-md) ds:font-medium",
6243
6355
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
6244
6356
  "ds:motion-reduce:transition-none",
6245
6357
  "ds:hover:bg-brand-bg",
6246
6358
  "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none"
6247
6359
  ),
6248
6360
  children: [
6249
- /* @__PURE__ */ jsx(PlusIcon, { className: "ds:size-4 ds:shrink-0", "aria-hidden": "true" }),
6361
+ /* @__PURE__ */ jsx(PlusIcon, { className: "ds:size-(--control-icon-md) ds:shrink-0", "aria-hidden": "true" }),
6250
6362
  createNewLabel
6251
6363
  ]
6252
6364
  }
@@ -6254,6 +6366,7 @@ function SearchSelect({
6254
6366
  const shared = {
6255
6367
  options: rows,
6256
6368
  id,
6369
+ size,
6257
6370
  "aria-label": ariaLabel ?? (ariaLabelledBy ? void 0 : placeholder),
6258
6371
  "aria-labelledby": ariaLabelledBy,
6259
6372
  "aria-describedby": ariaDescribedBy,
@@ -6279,7 +6392,7 @@ function SearchSelect({
6279
6392
  renderOption: (row) => renderSearchSelectRow(row, hasLeadingDot)
6280
6393
  };
6281
6394
  const CHIP_CLASSES = cn(
6282
- "ds:rounded-pill ds:border-rule ds:inline-flex ds:items-center ds:gap-1 ds:border ds:px-2 ds:py-0.5 ds:text-[12px]",
6395
+ "ds:rounded-pill ds:border-rule ds:inline-flex ds:items-center ds:gap-1 ds:border ds:px-2 ds:py-0.5 ds:text-(length:--text-helper)",
6283
6396
  "ds:bg-bg-2 ds:font-body ds:text-fg-2"
6284
6397
  );
6285
6398
  const CHIP_REMOVE_CLASSES = cn(
@@ -6536,11 +6649,11 @@ var Slider = React28.forwardRef(
6536
6649
  "label",
6537
6650
  {
6538
6651
  htmlFor: wiring.id,
6539
- className: "ds:text-fg ds:text-[13px] ds:leading-none ds:font-medium",
6652
+ className: "ds:text-fg ds:text-(length:--text-label) ds:leading-none ds:font-medium",
6540
6653
  children: label
6541
6654
  }
6542
6655
  ) : /* @__PURE__ */ jsx("span", {}),
6543
- showValue && /* @__PURE__ */ jsx("span", { className: "ds:text-fg-3 ds:font-mono ds:text-[12px]", children: displayValue })
6656
+ showValue && /* @__PURE__ */ jsx("span", { className: "ds:text-fg-3 ds:font-mono ds:text-(length:--text-helper)", children: displayValue })
6544
6657
  ] }),
6545
6658
  /* @__PURE__ */ jsxs(
6546
6659
  SliderPrimitive.Root,
@@ -6621,7 +6734,7 @@ function columnLabel(index) {
6621
6734
  }
6622
6735
  var headerCell = cn(
6623
6736
  "ds:border-rule-soft ds:bg-bg-2 ds:text-fg-4 ds:sticky ds:border-b ds:border-r",
6624
- "ds:font-mono ds:text-[11px] ds:font-medium",
6737
+ "ds:font-mono ds:text-(length:--text-code) ds:font-medium",
6625
6738
  "ds:select-none"
6626
6739
  );
6627
6740
  var SpreadsheetPreview = forwardRef(
@@ -6868,7 +6981,7 @@ var StackedBarChart = forwardRef(
6868
6981
  showYAxis && /* @__PURE__ */ jsx(
6869
6982
  "div",
6870
6983
  {
6871
- className: "ds:text-fg-4 ds:relative ds:shrink-0 ds:text-[11px] ds:tabular-nums",
6984
+ className: "ds:text-fg-4 ds:relative ds:shrink-0 ds:text-(length:--text-caption) ds:tabular-nums",
6872
6985
  style: { width: Y_GUTTER, height },
6873
6986
  "aria-hidden": true,
6874
6987
  children: ticks.map((t) => /* @__PURE__ */ jsx(
@@ -6962,7 +7075,7 @@ var StackedBarChart = forwardRef(
6962
7075
  );
6963
7076
  }) })
6964
7077
  ] }),
6965
- showXAxis && /* @__PURE__ */ jsx("div", { className: "ds:text-fg-3 ds:mt-2 ds:flex ds:gap-3 ds:text-[11px]", children: bars.map((bar, i) => /* @__PURE__ */ jsx(
7078
+ showXAxis && /* @__PURE__ */ jsx("div", { className: "ds:text-fg-3 ds:mt-2 ds:flex ds:gap-3 ds:text-(length:--text-caption)", children: bars.map((bar, i) => /* @__PURE__ */ jsx(
6966
7079
  "div",
6967
7080
  {
6968
7081
  className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:gap-1.5 ds:truncate ds:text-center",
@@ -6991,7 +7104,7 @@ var StackedBarChart = forwardRef(
6991
7104
  ),
6992
7105
  formatValue(hover.value)
6993
7106
  ] }),
6994
- /* @__PURE__ */ jsx("span", { className: "ds:block ds:text-[10px] ds:opacity-70", children: (() => {
7107
+ /* @__PURE__ */ jsx("span", { className: "ds:block ds:text-(length:--text-micro) ds:opacity-70", children: (() => {
6995
7108
  const col = bars[hover.barIndex];
6996
7109
  const colLabel = col?.tooltipLabel ?? (typeof col?.label === "string" ? col.label : "");
6997
7110
  return colLabel ? `${colLabel} \xB7 ${hover.label}` : hover.label;
@@ -9753,9 +9866,9 @@ var filterChipVariants = cva(
9753
9866
  // Control text scale shared with Button / MultiFilterPill: sm = 13px,
9754
9867
  // md = 14px, lg = 16px. Defaults to the dense `sm` tier (toolbar control).
9755
9868
  size: {
9756
- sm: "ds:h-8 ds:px-3 ds:text-[13px]",
9757
- md: "ds:h-9 ds:px-3.5 ds:text-sm",
9758
- lg: "ds:h-10 ds:px-4 ds:text-base"
9869
+ sm: "ds:h-(--filter-chip-height-sm) ds:px-3 ds:text-[13px]",
9870
+ md: "ds:h-(--filter-chip-height-md) ds:px-3.5 ds:text-sm",
9871
+ lg: "ds:h-(--filter-chip-height-lg) ds:px-4 ds:text-base"
9759
9872
  }
9760
9873
  },
9761
9874
  defaultVariants: {