@assure-one/design-system 1.41.2 → 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.
@@ -140,9 +140,10 @@ var BUTTON_SIZES = {
140
140
  // scale's 14, so the glyph column is left to the base until D5.
141
141
  sm: "ds:h-(--control-height-sm) ds:px-(--control-padding-x-sm) ds:text-(length:--control-font-size-sm) ds:gap-(--control-gap-sm)",
142
142
  xl: "ds:h-(--control-height-xl) ds:px-(--control-padding-x-xl) ds:text-(length:--control-font-size-xl) ds:gap-(--control-gap-xl) ds:[&_svg]:size-(--control-icon-xl)",
143
- // A1 mismatches (D5): today's pixels through the compat height tokens.
144
- md: "ds:h-(--button-height-md) ds:px-4 ds:text-sm ds:gap-2",
145
- lg: "ds:h-(--button-height-lg) ds:px-6 ds:text-base ds:gap-2",
143
+ // D5 (W2-05): md/lg now read the shared scale (36px / 40px), same as
144
+ // every other row, instead of the old compat tokens (40px / 48px).
145
+ md: "ds:h-(--control-height-md) ds:px-(--control-padding-x-md) ds:text-(length:--control-font-size-md) ds:gap-(--control-gap-md)",
146
+ lg: "ds:h-(--control-height-lg) ds:px-(--control-padding-x-lg) ds:text-(length:--control-font-size-lg) ds:gap-(--control-gap-lg)",
146
147
  // Icon-only sizes: square, today's pixels through the compat tokens
147
148
  // (C-BTN-SIZE-ICON). Hit target ≥ 24px (WCAG 2.5.5 floor); `icon-xs` /
148
149
  // `icon-sm` are for dense in-row action stacks where `icon` (40×40) would
@@ -3178,7 +3179,7 @@ var isScaleRowSize = (size) => size === "xs" || size === "xl";
3178
3179
  var INPUT_SIZE_ROWS = {
3179
3180
  sm: "ds:h-(--control-height-sm) ds:px-2.5 ds:py-1 ds:text-xs",
3180
3181
  md: "ds:h-(--control-height-md) ds:px-3 ds:py-2 ds:text-(length:--control-font-size-md)",
3181
- lg: "ds:h-(--input-height-lg) ds:px-3.5 ds:py-2.5 ds:text-sm",
3182
+ lg: "ds:h-(--control-height-lg) ds:px-3.5 ds:py-2.5 ds:text-sm",
3182
3183
  compact: "ds:h-(--control-height-sm) ds:px-2.5 ds:py-1 ds:text-(length:--control-font-size-md)",
3183
3184
  default: "ds:h-(--control-height-lg) ds:px-3 ds:py-2 ds:text-sm",
3184
3185
  comfortable: "ds:h-(--control-height-xl) ds:px-3.5 ds:py-2.5 ds:text-base"
@@ -3192,9 +3193,12 @@ function inputVariants({
3192
3193
  } = {}) {
3193
3194
  const LEGACY_ROWS = {
3194
3195
  // The `inputSize` rows: today's classes, byte for byte (W2-03 compat).
3196
+ // `lg` moved with `size`'s row at D5 (h-11→h-10, 44px→40px) — the
3197
+ // deprecation message promises "same pixels" as `size`, so the two paths
3198
+ // must never disagree.
3195
3199
  sm: "ds:h-8 ds:px-2.5 ds:py-1 ds:text-xs",
3196
3200
  md: "ds:h-9 ds:px-3 ds:py-2 ds:text-[13px]",
3197
- lg: "ds:h-11 ds:px-3.5 ds:py-2.5 ds:text-sm",
3201
+ lg: "ds:h-10 ds:px-3.5 ds:py-2.5 ds:text-sm",
3198
3202
  compact: "ds:h-8 ds:px-2.5 ds:py-1 ds:text-[13px]",
3199
3203
  default: "ds:h-10 ds:px-3 ds:py-2 ds:text-sm",
3200
3204
  comfortable: "ds:h-12 ds:px-3.5 ds:py-2.5 ds:text-base"
@@ -3770,5 +3774,5 @@ var DocumentRow = forwardRef(function DocumentRow2({ fileName, meta, icon, appro
3770
3774
  DocumentRow.displayName = "DocumentRow";
3771
3775
 
3772
3776
  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
3777
+ //# sourceMappingURL=chunk-M2HMZ2RW.js.map
3778
+ //# sourceMappingURL=chunk-M2HMZ2RW.js.map