@assure-one/design-system 1.43.0 → 1.43.1
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.
- package/dist/{chunk-LUWPEBXZ.js → chunk-5AL4W32Z.js} +56 -49
- package/dist/chunk-5AL4W32Z.js.map +1 -0
- package/dist/{chunk-TYXT5C2B.js → chunk-L5IQK3GV.js} +20 -44
- package/dist/chunk-L5IQK3GV.js.map +1 -0
- package/dist/{chunk-XJKCKBHI.js → chunk-VK6SW34V.js} +27 -5
- package/dist/chunk-VK6SW34V.js.map +1 -0
- package/dist/css/components.css +1 -1
- package/dist/index.d.ts +14 -3
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/dist/legacy/index.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/suite/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-LUWPEBXZ.js.map +0 -1
- package/dist/chunk-TYXT5C2B.js.map +0 -1
- package/dist/chunk-XJKCKBHI.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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, ChevronDownIcon } from './chunk-TBDTXAFH.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-VK6SW34V.js';
|
|
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-TBDTXAFH.js';
|
|
3
3
|
import { parseHexColor, contrastRatio, WHITE, formatHexColor, darkenUntilContrast } from './chunk-EUHGZA6Q.js';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import * as React6 from 'react';
|
|
@@ -3382,7 +3382,10 @@ var Sidebar = React6.forwardRef(function Sidebar2({
|
|
|
3382
3382
|
};
|
|
3383
3383
|
const overlay = state === "rail" && (peek || peekLockCount > 0);
|
|
3384
3384
|
const labelsHidden = state === "rail" && !peek && peekLockCount === 0;
|
|
3385
|
-
const
|
|
3385
|
+
const railWidth = "var(--shell-sidebar-w-rail, var(--ds-layout-shell-sidebar-rail-width))";
|
|
3386
|
+
const fullWidth = "var(--shell-sidebar-w, var(--ds-layout-shell-sidebar-width))";
|
|
3387
|
+
const effectiveWidth = labelsHidden ? railWidth : fullWidth;
|
|
3388
|
+
const overlayMarginRight = isFloating ? `calc(0.625rem + ${railWidth} - ${fullWidth})` : `calc(${railWidth} - ${fullWidth})`;
|
|
3386
3389
|
return (
|
|
3387
3390
|
// Hover-peek is *enhancement only*: the canonical way to toggle the
|
|
3388
3391
|
// sidebar is <SidebarTrigger> (button) or the Mod+\ shortcut, both
|
|
@@ -3403,7 +3406,11 @@ var Sidebar = React6.forwardRef(function Sidebar2({
|
|
|
3403
3406
|
...slot(sidebarAnatomy, "root"),
|
|
3404
3407
|
onMouseEnter: handleEnter,
|
|
3405
3408
|
onMouseLeave: handleLeave,
|
|
3406
|
-
style: {
|
|
3409
|
+
style: {
|
|
3410
|
+
width: effectiveWidth,
|
|
3411
|
+
...overlay ? { marginRight: overlayMarginRight } : null,
|
|
3412
|
+
...style
|
|
3413
|
+
},
|
|
3407
3414
|
className: cn(
|
|
3408
3415
|
"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",
|
|
3409
3416
|
// Classic: full-height column flush to the left edge with a right
|
|
@@ -3418,12 +3425,13 @@ var Sidebar = React6.forwardRef(function Sidebar2({
|
|
|
3418
3425
|
// movement) but well short of `--duration-slow` (which feels
|
|
3419
3426
|
// sluggish). `will-change` hints the compositor so the column
|
|
3420
3427
|
// doesn't repaint every frame mid-transition.
|
|
3421
|
-
"ds:transition-[width,box-shadow] ds:duration-[var(--motion-duration-spatial)] ds:ease-[var(--motion-ease-move)] ds:motion-reduce:transition-none",
|
|
3428
|
+
"ds:transition-[width,margin-right,box-shadow] ds:duration-[var(--motion-duration-spatial)] ds:ease-[var(--motion-ease-move)] ds:motion-reduce:transition-none",
|
|
3422
3429
|
"ds:[will-change:width]",
|
|
3423
3430
|
// Overlay (hover-peek OR programmatic peek-lock): float above the
|
|
3424
|
-
// canvas without reflowing layout
|
|
3425
|
-
//
|
|
3426
|
-
|
|
3431
|
+
// canvas without reflowing layout (the negative margin above keeps
|
|
3432
|
+
// the rail's footprint). Driven by `data-overlay` so a single rule
|
|
3433
|
+
// handles both transient sources.
|
|
3434
|
+
"ds:data-[overlay=true]:relative",
|
|
3427
3435
|
"ds:data-[overlay=true]:z-[var(--z-overlay)] ds:data-[overlay=true]:shadow-pop",
|
|
3428
3436
|
// Padding is held constant across states so icons keep their
|
|
3429
3437
|
// horizontal anchor when the column widens — peek expands the
|
|
@@ -3514,7 +3522,7 @@ var SidebarPinButton = React6.forwardRef(
|
|
|
3514
3522
|
{
|
|
3515
3523
|
ref,
|
|
3516
3524
|
type: "button",
|
|
3517
|
-
"aria-label": isPinned ? unpinLabel ?? messages.
|
|
3525
|
+
"aria-label": isPinned ? unpinLabel ?? messages.collapse : pinLabel ?? messages.expand,
|
|
3518
3526
|
"aria-pressed": isPinned,
|
|
3519
3527
|
onClick: (e) => {
|
|
3520
3528
|
onClick?.(e);
|
|
@@ -3534,44 +3542,12 @@ var SidebarPinButton = React6.forwardRef(
|
|
|
3534
3542
|
className
|
|
3535
3543
|
),
|
|
3536
3544
|
...props,
|
|
3537
|
-
children: /* @__PURE__ */ jsx(
|
|
3545
|
+
children: isPinned ? /* @__PURE__ */ jsx(ChevronsLeftIcon, { size: 16 }) : /* @__PURE__ */ jsx(ChevronsRightIcon, { size: 16 })
|
|
3538
3546
|
}
|
|
3539
3547
|
);
|
|
3540
3548
|
}
|
|
3541
3549
|
);
|
|
3542
3550
|
SidebarPinButton.displayName = "SidebarPinButton";
|
|
3543
|
-
function PinGlyph({
|
|
3544
|
-
size = 16,
|
|
3545
|
-
filled = false,
|
|
3546
|
-
className
|
|
3547
|
-
}) {
|
|
3548
|
-
return /* @__PURE__ */ jsxs(
|
|
3549
|
-
"svg",
|
|
3550
|
-
{
|
|
3551
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3552
|
-
width: size,
|
|
3553
|
-
height: size,
|
|
3554
|
-
viewBox: "0 0 24 24",
|
|
3555
|
-
fill: "none",
|
|
3556
|
-
stroke: "currentColor",
|
|
3557
|
-
strokeWidth: 2,
|
|
3558
|
-
strokeLinecap: "round",
|
|
3559
|
-
strokeLinejoin: "round",
|
|
3560
|
-
"aria-hidden": "true",
|
|
3561
|
-
className,
|
|
3562
|
-
children: [
|
|
3563
|
-
/* @__PURE__ */ jsx("path", { d: "M12 17v5" }),
|
|
3564
|
-
/* @__PURE__ */ jsx(
|
|
3565
|
-
"path",
|
|
3566
|
-
{
|
|
3567
|
-
d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",
|
|
3568
|
-
fill: filled ? "currentColor" : "none"
|
|
3569
|
-
}
|
|
3570
|
-
)
|
|
3571
|
-
]
|
|
3572
|
-
}
|
|
3573
|
-
);
|
|
3574
|
-
}
|
|
3575
3551
|
var SidebarBrand = React6.forwardRef(
|
|
3576
3552
|
function SidebarBrand2({ className, ...props }, ref) {
|
|
3577
3553
|
return /* @__PURE__ */ jsx(
|
|
@@ -4421,5 +4397,5 @@ var BrandScope = forwardRef(function BrandScope2({ product, children, ...props }
|
|
|
4421
4397
|
BrandScope.displayName = "BrandScope";
|
|
4422
4398
|
|
|
4423
4399
|
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 };
|
|
4424
|
-
//# sourceMappingURL=chunk-
|
|
4425
|
-
//# sourceMappingURL=chunk-
|
|
4400
|
+
//# sourceMappingURL=chunk-L5IQK3GV.js.map
|
|
4401
|
+
//# sourceMappingURL=chunk-L5IQK3GV.js.map
|