@assure-one/design-system 1.41.2 → 1.43.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 (33) hide show
  1. package/dist/brand-scope-BOKu4iOc.d.ts +262 -0
  2. package/dist/{chunk-UAPQ7VTS.js → chunk-LUWPEBXZ.js} +283 -178
  3. package/dist/chunk-LUWPEBXZ.js.map +1 -0
  4. package/dist/{chunk-AF3QYJ24.js → chunk-TBDTXAFH.js} +6 -4
  5. package/dist/chunk-TBDTXAFH.js.map +1 -0
  6. package/dist/{chunk-JKNHNNNY.js → chunk-TYXT5C2B.js} +95 -11
  7. package/dist/chunk-TYXT5C2B.js.map +1 -0
  8. package/dist/{chunk-XN7OBLQR.js → chunk-XJKCKBHI.js} +20 -16
  9. package/dist/chunk-XJKCKBHI.js.map +1 -0
  10. package/dist/css/components.css +1 -1
  11. package/dist/css/tokens.css +4 -4
  12. package/dist/{data-table-view-ep8al7P9.d.ts → data-table-view-BWhKeUiw.d.ts} +186 -2
  13. package/dist/{design-system-provider-CfD2g2lY.d.ts → design-system-provider-Coe2S3Lh.d.ts} +1 -1
  14. package/dist/icons/index.d.ts +5 -1
  15. package/dist/icons/index.js +1 -1
  16. package/dist/index.d.ts +290 -455
  17. package/dist/index.js +636 -250
  18. package/dist/index.js.map +1 -1
  19. package/dist/legacy/index.d.ts +11 -4
  20. package/dist/legacy/index.js +3 -3
  21. package/dist/next/index.d.ts +2 -2
  22. package/dist/styles.css +1 -1
  23. package/dist/suite/index.d.ts +14 -3
  24. package/dist/suite/index.js +3 -3
  25. package/dist/{types-Coqw8iaS.d.ts → types-DlqmlVyZ.d.ts} +11 -1
  26. package/docs/components.md +11 -8
  27. package/docs/components.registry.json +89 -22
  28. package/package.json +1 -1
  29. package/dist/brand-scope-BOHId6BY.d.ts +0 -58
  30. package/dist/chunk-AF3QYJ24.js.map +0 -1
  31. package/dist/chunk-JKNHNNNY.js.map +0 -1
  32. package/dist/chunk-UAPQ7VTS.js.map +0 -1
  33. package/dist/chunk-XN7OBLQR.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { cn, LoaderIcon, ChevronDownIcon, ChevronUpIcon, CheckIcon, MinusIcon, ChevronRightIcon, CircleIcon, FileTextIcon, EyeOffIcon, EyeIcon, XIcon, AlertTriangleIcon, UploadIcon } from './chunk-AF3QYJ24.js';
1
+ import { cn, LoaderIcon, ChevronDownIcon, ChevronUpIcon, CheckIcon, MinusIcon, ChevronRightIcon, CircleIcon, FileTextIcon, EyeOffIcon, EyeIcon, XIcon, AlertTriangleIcon, UploadIcon } from './chunk-TBDTXAFH.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';
@@ -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
@@ -920,6 +921,7 @@ var EN_MESSAGES = {
920
921
  },
921
922
  tableStates: { loading: "Loading", empty: "No results" },
922
923
  table: { region: "Scrollable table" },
924
+ tableDensity: { label: "Row density", comfortable: "Detailed view", compact: "Compact view" },
923
925
  stackedBarChart: { region: "Scrollable chart" },
924
926
  pdfPreview: { region: "PDF preview" },
925
927
  spreadsheetPreview: { region: "Spreadsheet preview" },
@@ -1839,14 +1841,9 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
1839
1841
  ref,
1840
1842
  position,
1841
1843
  ...slot(selectAnatomy, "content"),
1844
+ ...presence("floating"),
1842
1845
  className: cn(
1843
1846
  "ds:rounded-card ds:border-rule ds:bg-surface ds:text-fg ds:shadow-pop ds:relative ds:z-[var(--z-dropdown)] ds:max-h-(--radix-select-content-available-height) ds:min-w-[8rem] ds:overflow-hidden ds:border",
1844
- "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
1845
- "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
1846
- "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
1847
- "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
1848
- "ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
1849
- "ds:motion-reduce:transition-none",
1850
1847
  position === "popper" && "ds:data-[side=bottom]:translate-y-1 ds:data-[side=left]:-translate-x-1 ds:data-[side=right]:translate-x-1 ds:data-[side=top]:-translate-y-1",
1851
1848
  className
1852
1849
  ),
@@ -2179,7 +2176,7 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2179
2176
  });
2180
2177
  const rootRef = useMergedRefs(ref, wiring.ref);
2181
2178
  const resolvedChecked = indeterminate ? "indeterminate" : checked;
2182
- return /* @__PURE__ */ jsxs("div", { className: "ds:inline-flex ds:items-center ds:gap-2", children: [
2179
+ return /* @__PURE__ */ jsxs("div", { className: "ds:inline-flex ds:items-center ds:gap-2 ds:align-middle", children: [
2183
2180
  /* @__PURE__ */ jsx(
2184
2181
  CheckboxPrimitive.Root,
2185
2182
  {
@@ -2204,6 +2201,10 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2204
2201
  "ds:data-[state=checked]:border-brand ds:data-[state=checked]:bg-brand-bg",
2205
2202
  "ds:data-[state=indeterminate]:border-brand ds:data-[state=indeterminate]:bg-brand-bg",
2206
2203
  "ds:disabled:bg-bg-disabled ds:disabled:border-rule ds:disabled:text-fg-disabled ds:disabled:cursor-not-allowed",
2204
+ // A disabled box reads disabled whatever its value: the checked /
2205
+ // indeterminate brand edge and tint would otherwise outrank it.
2206
+ "ds:disabled:data-[state=checked]:border-rule ds:disabled:data-[state=checked]:bg-bg-disabled",
2207
+ "ds:disabled:data-[state=indeterminate]:border-rule ds:disabled:data-[state=indeterminate]:bg-bg-disabled",
2207
2208
  "ds:aria-[invalid=true]:border-danger-line",
2208
2209
  className
2209
2210
  ),
@@ -2212,7 +2213,7 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2212
2213
  CheckboxPrimitive.Indicator,
2213
2214
  {
2214
2215
  ...slot(checkboxAnatomy, "indicator"),
2215
- className: "ds:flex ds:items-center ds:justify-center ds:text-current",
2216
+ className: "ds:flex ds:items-center ds:justify-center ds:text-current ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:zoom-in-50 ds:duration-[var(--motion-duration-press)] ds:ease-[var(--motion-ease-enter)]",
2216
2217
  children: resolvedChecked === "indeterminate" ? /* @__PURE__ */ jsx(MinusIcon, { className: "ds:size-3", strokeWidth: 3, "aria-hidden": "true" }) : shape === "circle" ? /* @__PURE__ */ jsx("span", { className: "ds:size-1.5 ds:rounded-full ds:bg-current", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(CheckIcon, { className: "ds:size-3", strokeWidth: 3, "aria-hidden": "true" })
2217
2218
  }
2218
2219
  )
@@ -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-XJKCKBHI.js.map
3778
+ //# sourceMappingURL=chunk-XJKCKBHI.js.map