@assure-one/design-system 1.42.0 → 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.
@@ -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';
@@ -921,6 +921,7 @@ var EN_MESSAGES = {
921
921
  },
922
922
  tableStates: { loading: "Loading", empty: "No results" },
923
923
  table: { region: "Scrollable table" },
924
+ tableDensity: { label: "Row density", comfortable: "Detailed view", compact: "Compact view" },
924
925
  stackedBarChart: { region: "Scrollable chart" },
925
926
  pdfPreview: { region: "PDF preview" },
926
927
  spreadsheetPreview: { region: "Spreadsheet preview" },
@@ -1840,14 +1841,9 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
1840
1841
  ref,
1841
1842
  position,
1842
1843
  ...slot(selectAnatomy, "content"),
1844
+ ...presence("floating"),
1843
1845
  className: cn(
1844
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",
1845
- "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
1846
- "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
1847
- "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
1848
- "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
1849
- "ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
1850
- "ds:motion-reduce:transition-none",
1851
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",
1852
1848
  className
1853
1849
  ),
@@ -2180,7 +2176,7 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2180
2176
  });
2181
2177
  const rootRef = useMergedRefs(ref, wiring.ref);
2182
2178
  const resolvedChecked = indeterminate ? "indeterminate" : checked;
2183
- 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: [
2184
2180
  /* @__PURE__ */ jsx(
2185
2181
  CheckboxPrimitive.Root,
2186
2182
  {
@@ -2205,6 +2201,10 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2205
2201
  "ds:data-[state=checked]:border-brand ds:data-[state=checked]:bg-brand-bg",
2206
2202
  "ds:data-[state=indeterminate]:border-brand ds:data-[state=indeterminate]:bg-brand-bg",
2207
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",
2208
2208
  "ds:aria-[invalid=true]:border-danger-line",
2209
2209
  className
2210
2210
  ),
@@ -2213,7 +2213,7 @@ var Checkbox = React7.forwardRef(function Checkbox2({
2213
2213
  CheckboxPrimitive.Indicator,
2214
2214
  {
2215
2215
  ...slot(checkboxAnatomy, "indicator"),
2216
- 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)]",
2217
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" })
2218
2218
  }
2219
2219
  )
@@ -3774,5 +3774,5 @@ var DocumentRow = forwardRef(function DocumentRow2({ fileName, meta, icon, appro
3774
3774
  DocumentRow.displayName = "DocumentRow";
3775
3775
 
3776
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 };
3777
- //# sourceMappingURL=chunk-M2HMZ2RW.js.map
3778
- //# sourceMappingURL=chunk-M2HMZ2RW.js.map
3777
+ //# sourceMappingURL=chunk-XJKCKBHI.js.map
3778
+ //# sourceMappingURL=chunk-XJKCKBHI.js.map