@assure-one/design-system 1.45.0 → 1.46.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 { stateAttributes, slot, chipAnatomy, Pressable, CONTROL_GAP_CLASSES, EN_MESSAGES, microInteractions, listItemClasses, groupHeadingClasses, useDsMessages, withPortalContainer, Backdrop, sheetAnatomy, deprecate, OverlaySurface, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, OverlayTitle, OverlayDescription, Input, Textarea, Select, FileUpload, FileChip, Button, Checkbox, Tooltip, TooltipTrigger, TooltipContent, useMergedRefs, TooltipProvider, sidebarAnatomy, Slot, Avatar, DropdownMenu, DropdownMenuTrigger, sidebarBrandSwitcherAnatomy, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, buttonBase, CONTROL_SIZE_CLASSES, useFieldControl, useId as useId$1, useControllableState, Popover, PopoverAnchor, comboboxAnatomy, Spinner, IconButton, PopoverContent, LIST_SEPARATOR, listItemAttributes, optionElementId, FormBridge, useLinkComponent, useImageComponent, OverlayHeader, OverlayFooter, LIST_ITEM_INDICATOR_WELL } from './chunk-ZS5VLSJW.js';
1
+ import { stateAttributes, slot, chipAnatomy, Pressable, CONTROL_GAP_CLASSES, EN_MESSAGES, microInteractions, listItemClasses, groupHeadingClasses, useDsMessages, withPortalContainer, Backdrop, sheetAnatomy, deprecate, OverlaySurface, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, OverlayTitle, OverlayDescription, Input, Textarea, Select, FileUpload, FileChip, Button, Checkbox, Tooltip, TooltipTrigger, TooltipContent, useMergedRefs, TooltipProvider, sidebarAnatomy, Slot, Avatar, DropdownMenu, DropdownMenuTrigger, sidebarBrandSwitcherAnatomy, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, buttonBase, CONTROL_SIZE_CLASSES, useFieldControl, useId as useId$1, useControllableState, Popover, PopoverAnchor, comboboxAnatomy, Spinner, IconButton, PopoverContent, LIST_SEPARATOR, listItemAttributes, optionElementId, FormBridge, useLinkComponent, useImageComponent, OverlayHeader, OverlayFooter, LIST_ITEM_INDICATOR_WELL } from './chunk-IIBDSTOG.js';
2
2
  import { cn, XIcon, CheckIcon, EyeIcon, DownloadIcon, PhoneIcon, MailIcon, GlobeIcon, HomeIcon, ChevronLeftIcon, ChevronRightIcon, ReceiptIcon, RotateCcwIcon, CreditCardIcon, LockIcon, FileTextIcon, PlayIcon, InfoIcon, ClockIcon, PenSignIcon, TrashIcon, PlusIcon, CheckCircleSolidIcon, HelpCircleIcon, MinusIcon, PanelLeftCloseIcon, PanelLeftIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronDownIcon } from './chunk-ARCWF2S3.js';
3
3
  import { parseHexColor, contrastRatio, WHITE, formatHexColor, darkenUntilContrast } from './chunk-EUHGZA6Q.js';
4
4
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1094,8 +1094,9 @@ var CollapsibleTrigger = React6.forwardRef(function CollapsibleTrigger2({ classN
1094
1094
  {
1095
1095
  ref,
1096
1096
  className: cn(
1097
- "ds:flex ds:w-full ds:items-center",
1097
+ "ds:flex ds:w-full ds:cursor-pointer ds:items-center",
1098
1098
  "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
1099
+ "ds:disabled:cursor-not-allowed",
1099
1100
  className
1100
1101
  ),
1101
1102
  ...props
@@ -3415,7 +3416,19 @@ var Sidebar = React6.forwardRef(function Sidebar2({
3415
3416
  "ds:group/sidebar group/sidebar ds:scrollbar-thin ds:flex ds:shrink-0 ds:flex-col ds:overflow-y-auto ds:px-3 ds:pt-4 ds:pb-4",
3416
3417
  // Classic: full-height column flush to the left edge with a right
3417
3418
  // rule. The legacy look.
3418
- !isFloating && "ds:h-dvh ds:border-rule ds:bg-bg-2 ds:border-r",
3419
+ !isFloating && "ds:h-dvh ds:border-rule ds:border-r",
3420
+ !isFloating && (isFlush ? "ds:bg-surface" : "ds:bg-bg-2"),
3421
+ // Flush against a `bg-bg` canvas (Shell's own background) `bg-bg-2`
3422
+ // (--color-bg-2, #f1f3f8 light / #141416 dark) sits only ~1.06:1 off
3423
+ // the page (#f7f8fa / #0a0a0b) — the two regions read as one grey
3424
+ // field with a hairline in the middle, not two surfaces. `surface`
3425
+ // (white / #16161a) against the same canvas is the ~2–3x bigger
3426
+ // luminance step the classic Notion/Linear sidebar convention reads
3427
+ // on, and it is the token every card in the product already sits
3428
+ // on, so the column now looks like the same kind of "raised" surface
3429
+ // as the content it fronts, not a third, unrelated grey. `classic`
3430
+ // and `floating` are unchanged (visual change note: the sidebar
3431
+ // background change below is for `variant="flush"` only).
3419
3432
  // Floating: a detached, rounded card inset from the viewport with a
3420
3433
  // soft shadow — the modern SaaS pattern. The clear figure/ground gap
3421
3434
  // (Aesthetic-Usability) reads as its own surface above the canvas.
@@ -3482,7 +3495,7 @@ var SidebarTrigger = React6.forwardRef(
3482
3495
  },
3483
3496
  ...slot(sidebarAnatomy, "trigger"),
3484
3497
  className: cn(
3485
- "ds:inline-flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-md",
3498
+ "ds:inline-flex ds:size-7 ds:shrink-0 ds:cursor-pointer ds:items-center ds:justify-center ds:rounded-md",
3486
3499
  "ds:text-fg-3 ds:hover:bg-bg-3 ds:hover:text-fg",
3487
3500
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
3488
3501
  "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
@@ -3531,7 +3544,7 @@ var SidebarPinButton = React6.forwardRef(
3531
3544
  ...slot(sidebarAnatomy, "pin"),
3532
3545
  ...stateAttributes({ selected: isPinned }),
3533
3546
  className: cn(
3534
- "ds:inline-flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-md",
3547
+ "ds:inline-flex ds:size-7 ds:shrink-0 ds:cursor-pointer ds:items-center ds:justify-center ds:rounded-md",
3535
3548
  "ds:text-fg-4 ds:hover:bg-bg-3 ds:hover:text-fg ds:aria-pressed:text-fg",
3536
3549
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
3537
3550
  "ds:focus-visible:outline-none ds:focus-visible:[box-shadow:var(--shadow-focus-ring)]",
@@ -3561,7 +3574,10 @@ var SidebarBrand = React6.forwardRef(
3561
3574
  // pass behind it instead of over it. `data-scrolled` is only ever
3562
3575
  // set while flush (see <Sidebar>), so the hairline needs no variant
3563
3576
  // check of its own — one derived attribute, one rule.
3564
- "ds:group-data-[variant=flush]/sidebar:bg-bg-2 ds:group-data-[variant=flush]/sidebar:sticky ds:group-data-[variant=flush]/sidebar:top-0 ds:group-data-[variant=flush]/sidebar:z-[var(--z-sticky)]",
3577
+ // Sticky row's fill matches the aside's own flush background
3578
+ // (`bg-surface`, W-cursor-sidebar-tooltips) so scrolled nav rows
3579
+ // disappear behind it rather than showing through.
3580
+ "ds:group-data-[variant=flush]/sidebar:bg-surface ds:group-data-[variant=flush]/sidebar:sticky ds:group-data-[variant=flush]/sidebar:top-0 ds:group-data-[variant=flush]/sidebar:z-[var(--z-sticky)]",
3565
3581
  "ds:group-data-[variant=flush]/sidebar:border-b ds:group-data-[variant=flush]/sidebar:border-transparent ds:group-data-[variant=flush]/sidebar:transition-colors ds:group-data-[variant=flush]/sidebar:duration-[var(--duration-normal)] ds:group-data-[variant=flush]/sidebar:ease-[var(--ease-out-quart)] ds:group-data-[variant=flush]/sidebar:motion-reduce:transition-none",
3566
3582
  "ds:group-data-[scrolled=true]/sidebar:border-rule",
3567
3583
  className
@@ -3698,7 +3714,7 @@ var SidebarLink = React6.forwardRef(
3698
3714
  "aria-label": accessibleLabel,
3699
3715
  ...slot(sidebarAnatomy, "link"),
3700
3716
  className: cn(
3701
- "ds:group/link ds:relative ds:mb-px ds:flex ds:items-center ds:gap-2.5 ds:rounded-md ds:px-2.5 ds:py-1.5",
3717
+ "ds:group/link ds:relative ds:mb-px ds:flex ds:cursor-pointer ds:items-center ds:gap-2.5 ds:rounded-md ds:px-2.5 ds:py-1.5",
3702
3718
  "ds:text-fg-2 ds:text-[13px] ds:font-normal ds:no-underline",
3703
3719
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
3704
3720
  "ds:motion-reduce:transition-none",
@@ -3902,7 +3918,7 @@ var SidebarLinkGroup = React6.forwardRef(
3902
3918
  };
3903
3919
  const contentId = `${id}-content`;
3904
3920
  const bodyClassName = cn(
3905
- "ds:group/link ds:relative ds:flex ds:flex-1 ds:items-center ds:gap-2.5 ds:rounded-md ds:px-2.5 ds:py-1.5",
3921
+ "ds:group/link ds:relative ds:flex ds:flex-1 ds:cursor-pointer ds:items-center ds:gap-2.5 ds:rounded-md ds:px-2.5 ds:py-1.5",
3906
3922
  "ds:text-fg-2 ds:text-[13px] ds:font-normal ds:no-underline",
3907
3923
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)]",
3908
3924
  "ds:motion-reduce:transition-none",
@@ -3980,7 +3996,7 @@ var SidebarLinkGroup = React6.forwardRef(
3980
3996
  onClick: handleChevronClick,
3981
3997
  ...slot(sidebarAnatomy, "group-trigger"),
3982
3998
  className: cn(
3983
- "ds:ml-px ds:inline-flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-md",
3999
+ "ds:ml-px ds:inline-flex ds:size-7 ds:shrink-0 ds:cursor-pointer ds:items-center ds:justify-center ds:rounded-md",
3984
4000
  "ds:text-fg-4 ds:hover:bg-bg-3 ds:hover:text-fg-2",
3985
4001
  "ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
3986
4002
  "ds:focus-visible:[box-shadow:var(--shadow-focus-ring)] ds:focus-visible:outline-none",
@@ -4155,8 +4171,9 @@ var SidebarBrandSwitcher = React6.forwardRef(
4155
4171
  // Flush — mirrors <SidebarBrand>: pinned to the top of the
4156
4172
  // scrolling column, with a hairline that appears once the list
4157
4173
  // has scrolled. `data-scrolled` is only ever set while flush, so
4158
- // the hairline rule needs no variant check of its own.
4159
- "ds:group-data-[variant=flush]/sidebar:bg-bg-2 ds:group-data-[variant=flush]/sidebar:sticky ds:group-data-[variant=flush]/sidebar:top-0 ds:group-data-[variant=flush]/sidebar:z-[var(--z-sticky)]",
4174
+ // the hairline rule needs no variant check of its own. Fill
4175
+ // matches the aside's own flush background (`bg-surface`).
4176
+ "ds:group-data-[variant=flush]/sidebar:bg-surface ds:group-data-[variant=flush]/sidebar:sticky ds:group-data-[variant=flush]/sidebar:top-0 ds:group-data-[variant=flush]/sidebar:z-[var(--z-sticky)]",
4160
4177
  "ds:group-data-[variant=flush]/sidebar:border-b ds:group-data-[variant=flush]/sidebar:border-transparent ds:group-data-[variant=flush]/sidebar:transition-colors ds:group-data-[variant=flush]/sidebar:duration-[var(--duration-normal)] ds:group-data-[variant=flush]/sidebar:ease-[var(--ease-out-quart)] ds:group-data-[variant=flush]/sidebar:motion-reduce:transition-none",
4161
4178
  "ds:group-data-[scrolled=true]/sidebar:border-rule",
4162
4179
  className
@@ -4173,7 +4190,7 @@ var SidebarBrandSwitcher = React6.forwardRef(
4173
4190
  // the column edge while the inner padding holds the brand
4174
4191
  // glyph at the same x-position as direct <SidebarBrand>
4175
4192
  // children — same hover affordance, no glyph drift.
4176
- "ds:group/brand-trigger ds:-ml-2 ds:flex ds:min-w-0 ds:flex-1 ds:items-center ds:gap-2 ds:rounded-md ds:py-1.5 ds:pr-1.5 ds:pl-2",
4193
+ "ds:group/brand-trigger ds:-ml-2 ds:flex ds:min-w-0 ds:flex-1 ds:cursor-pointer ds:items-center ds:gap-2 ds:rounded-md ds:py-1.5 ds:pr-1.5 ds:pl-2",
4177
4194
  "ds:text-fg ds:transition-colors ds:duration-[var(--duration-fast)] ds:ease-[var(--ease-out-quart)] ds:motion-reduce:transition-none",
4178
4195
  // `aria-expanded` twin: a TooltipTrigger asChild ancestor can
4179
4196
  // clobber this trigger's own `data-state` with the tooltip's
@@ -4397,5 +4414,5 @@ var BrandScope = forwardRef(function BrandScope2({ product, children, ...props }
4397
4414
  BrandScope.displayName = "BrandScope";
4398
4415
 
4399
4416
  export { AgreementPaneHeading, AgreementViewer, AssureAuditBrandIcon, AssureBooksBrandIcon, AssureProBrandIcon, AssureTaxBrandIcon, BRAND_PRODUCTS, BrandScope, BrandScopeProvider, Chip, ClientSelect, CmdkCompatContext, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComingSoon, DEFAULT_COMBOBOX_MESSAGES, Grid, Logo, PlainLink, ProposalAddOn, ProposalBillingTerms, ProposalConsentGate, ProposalCustomPage, ProposalNote, ProposalPackageCard, ProposalPaymentCapture, ProposalPricingSummary, ProposalServiceRow, ProposalSignatureBlock, ProposalSignerList, QUESTION_TYPES, QUESTION_TYPE_CONTRACT_VERSION, Questions, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandSwitcher, SidebarBrandSwitcherTile, SidebarBrandText, SidebarDrawer, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, assetPath, brandLabel, brandScope, chipVariants, getAssetBasePath, resolveChipStyle, setAssetBasePath, sidebarLinkBadgeVariants, useBrandScope, useSidebarPeekLock, useSidebarState };
4400
- //# sourceMappingURL=chunk-XNJP5LKC.js.map
4401
- //# sourceMappingURL=chunk-XNJP5LKC.js.map
4417
+ //# sourceMappingURL=chunk-JJ5JFA56.js.map
4418
+ //# sourceMappingURL=chunk-JJ5JFA56.js.map