@assure-one/design-system 1.48.0 → 1.49.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.
@@ -1752,7 +1752,10 @@ function optionElementId(listId, value) {
1752
1752
  var LIST_ITEM_BOX = {
1753
1753
  select: "ds:rounded-surface-sm ds:relative ds:flex ds:w-full ds:cursor-pointer ds:items-center ds:gap-2 ds:py-1.5 ds:pr-8 ds:pl-2",
1754
1754
  menu: "ds:rounded-surface-sm ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-2 ds:px-2 ds:py-1.5",
1755
- "menu-indicator": "ds:rounded-surface-sm ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-2 ds:py-1.5 ds:pr-2 ds:pl-8"
1755
+ "menu-indicator": "ds:rounded-surface-sm ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-2 ds:py-1.5 ds:pr-2 ds:pl-8",
1756
+ // The well at the end instead: the row's own leading glyph (a status dot, an
1757
+ // icon) sits at the start, the check at the end, as on a Select option.
1758
+ "menu-indicator-end": "ds:rounded-surface-sm ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-2 ds:py-1.5 ds:pr-8 ds:pl-2"
1756
1759
  };
1757
1760
  var LIST_ITEM_INTERACTION = "ds:outline-none ds:select-none";
1758
1761
  var LIST_ITEM_INK = {
@@ -2933,6 +2936,7 @@ var MENU_SUB_TRIGGER_OPEN = {
2933
2936
  var MENU_SUB_TRIGGER_BOX = "ds:rounded-surface-sm ds:flex ds:cursor-pointer ds:items-center ds:gap-2 ds:px-2 ds:py-1.5";
2934
2937
  var MENU_SUB_TRIGGER_CHEVRON = "ds:text-fg-3 ds:ml-auto ds:size-4 ds:-translate-x-px";
2935
2938
  var MENU_INDICATOR_WELL = LIST_ITEM_INDICATOR_WELL.start;
2939
+ var MENU_INDICATOR_WELL_END = LIST_ITEM_INDICATOR_WELL.end;
2936
2940
  var MENU_CHECK_GLYPH = "ds:size-3.5!";
2937
2941
  var MENU_RADIO_GLYPH = "ds:size-2! ds:fill-current!";
2938
2942
  var MENU_SHORTCUT_INK = {
@@ -2950,9 +2954,9 @@ function menuItemClasses(palette) {
2950
2954
  selected: "none"
2951
2955
  });
2952
2956
  }
2953
- function menuIndicatorItemClasses(palette) {
2957
+ function menuIndicatorItemClasses(palette, side = "start") {
2954
2958
  return listItemClasses({
2955
- frame: "menu-indicator",
2959
+ frame: side === "end" ? "menu-indicator-end" : "menu-indicator",
2956
2960
  labelSize: MENU_ITEM_LABEL_SIZE,
2957
2961
  palette,
2958
2962
  highlight: "focus",
@@ -3074,17 +3078,20 @@ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, ...prop
3074
3078
  }
3075
3079
  ));
3076
3080
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
3077
- var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
3081
+ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, indicator = "dot", ...props }, ref) => /* @__PURE__ */ jsx(
3078
3082
  DropdownMenuPrimitive.RadioItem,
3079
3083
  {
3080
3084
  ref,
3081
3085
  ...slot(dropdownMenuAnatomy, "radio-item"),
3082
- className: cn(menuIndicatorItemClasses(PALETTE), className),
3086
+ className: cn(menuIndicatorItemClasses(PALETTE, indicator === "check" ? "end" : "start"), className),
3083
3087
  ...props,
3084
- children: [
3088
+ children: indicator === "check" ? /* @__PURE__ */ jsxs(Fragment, { children: [
3089
+ children,
3090
+ /* @__PURE__ */ jsx("span", { className: MENU_INDICATOR_WELL_END, children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { ...slot(dropdownMenuAnatomy, "item-indicator"), children: /* @__PURE__ */ jsx(CheckIcon, { className: MENU_CHECK_GLYPH, "aria-hidden": "true" }) }) })
3091
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3085
3092
  /* @__PURE__ */ jsx("span", { className: MENU_INDICATOR_WELL, children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { ...slot(dropdownMenuAnatomy, "item-indicator"), children: /* @__PURE__ */ jsx(CircleIcon, { className: MENU_RADIO_GLYPH, "aria-hidden": "true" }) }) }),
3086
3093
  children
3087
- ]
3094
+ ] })
3088
3095
  }
3089
3096
  ));
3090
3097
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
@@ -4015,5 +4022,5 @@ var DocumentRow = forwardRef(function DocumentRow2({ fileName, meta, icon, appro
4015
4022
  DocumentRow.displayName = "DocumentRow";
4016
4023
 
4017
4024
  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, TooltipRoot, TooltipTrigger, alertDialogAnatomy, badgeAnatomy, buttonBase, buttonVariants, cardAnatomy, chipAnatomy, codeAnatomy, comboboxAnatomy, commandAnatomy, contextMenuAnatomy, controlChrome, dataTableAnatomy, deprecate, dialogAnatomy, errorOnce, fieldAnatomy, fieldsetAnatomy, filterChipsAnatomy, floatingSurfaceClasses, groupHeadingClasses, headingAnatomy, iconButtonVariants, inertHandlers, inlineAnatomy, inputVariants, isLabelable, joinIds, kbdAnatomy, labelAnatomy, linkButtonAnatomy, listItemAttributes, listItemClasses, listPageAnatomy, 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, statStripAnatomy, stateAttributes, statusBadgeAnatomy, surfaceAnatomy, switchAnatomy, tableAnatomy, textAnatomy, textareaVariants, toastAnatomy, useControllableState, useDsDirection, useDsMessages, useExitPresence, useFieldContext, useFieldControl, useFieldsetContext, useFieldsetLegend, useFieldsetState, useFormReset, useFormReset2, useId, useImageComponent, useLinkComponent, useMergedRefs, warnLegacyButtonProps, withPortalContainer };
4018
- //# sourceMappingURL=chunk-HV24JSRN.js.map
4019
- //# sourceMappingURL=chunk-HV24JSRN.js.map
4025
+ //# sourceMappingURL=chunk-SFHFY72L.js.map
4026
+ //# sourceMappingURL=chunk-SFHFY72L.js.map