@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
package/dist/index.d.ts
CHANGED
|
@@ -3292,6 +3292,12 @@ interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrim
|
|
|
3292
3292
|
* on the root. Implied by the surrounding `Field`'s `invalid`.
|
|
3293
3293
|
*/
|
|
3294
3294
|
invalid?: boolean;
|
|
3295
|
+
/**
|
|
3296
|
+
* Accessible names for the thumbs of a range, in value order (e.g.
|
|
3297
|
+
* `["Minimum fee", "Maximum fee"]`). Without it every thumb carries the
|
|
3298
|
+
* slider's own name and announces its own value.
|
|
3299
|
+
*/
|
|
3300
|
+
thumbLabels?: readonly string[] | undefined;
|
|
3295
3301
|
}
|
|
3296
3302
|
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3297
3303
|
|
|
@@ -5361,9 +5367,9 @@ interface SidebarTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonEle
|
|
|
5361
5367
|
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<SidebarTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
5362
5368
|
declare function useSidebarPeekLock(active: boolean): void;
|
|
5363
5369
|
interface SidebarPinButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5364
|
-
/** aria-label when state="rail" (default: "
|
|
5370
|
+
/** aria-label when state="rail" (default: the `sidebar.expand` message, "Expand sidebar"). */
|
|
5365
5371
|
pinLabel?: string;
|
|
5366
|
-
/** aria-label when state="expanded" (default: "
|
|
5372
|
+
/** aria-label when state="expanded" (default: the `sidebar.collapse` message, "Collapse sidebar"). */
|
|
5367
5373
|
unpinLabel?: string;
|
|
5368
5374
|
}
|
|
5369
5375
|
declare const SidebarPinButton: React$1.ForwardRefExoticComponent<SidebarPinButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6098,7 +6104,12 @@ type MessageBubbleComponent = React.ForwardRefExoticComponent<MessageBubbleProps
|
|
|
6098
6104
|
* Disabled / loading: pass `disabled` or `loading` on the root and the
|
|
6099
6105
|
* whole card greys to 60% opacity with pointer events blocked,
|
|
6100
6106
|
* `aria-disabled` is set, and `data-state="disabled"` is emitted for
|
|
6101
|
-
* analytics / CSS targeting.
|
|
6107
|
+
* analytics / CSS targeting. The controls the composer renders itself (the
|
|
6108
|
+
* quick-reply chips and Send) become natively `disabled`, so they leave the
|
|
6109
|
+
* Tab order too. What you pass in — the editor (`children`), `startSlot`,
|
|
6110
|
+
* `header`, `belowEditor` — is yours: disable it with the same flag (the
|
|
6111
|
+
* composer never makes it `inert`, which would also hide a draft from
|
|
6112
|
+
* assistive tech).
|
|
6102
6113
|
*
|
|
6103
6114
|
* @since 0.14.0
|
|
6104
6115
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Skeleton,
|
|
3
|
-
export { Badge, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, EmptyValue, PROGRESS_LEGACY_TO_INTENT, Pagination, ProgressBar, ProgressRing, SERVICE_TONES, STATUS_DOT_TONE_TO_INTENT, SegmentedProgress, Skeleton, SkeletonCircle, SkeletonText, StatusDot, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable } from './chunk-
|
|
4
|
-
import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, Sidebar, SidebarFooter, SidebarUser, useSidebarState, SidebarSection, SidebarLinkGroup, SidebarLink, SidebarLinkLabel, SidebarLinkBadge, CmdkCompatContext, Sheet, SheetContent, SheetTitle } from './chunk-
|
|
5
|
-
export { BrandScope, BrandScopeProvider, Chip, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, DEFAULT_COMBOBOX_MESSAGES, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandText, SidebarDrawer, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, assetPath, brandScope, chipVariants, getAssetBasePath, resolveChipStyle, setAssetBasePath, sidebarLinkBadgeVariants, useBrandScope, useSidebarPeekLock, useSidebarState } from './chunk-
|
|
6
|
-
import { withPortalContainer, Backdrop, alertDialogAnatomy, OverlaySurface, OverlayTitle, OverlayDescription, Button, slot, useDsMessages, useLinkComponent, surfaceAnatomy, stateAttributes, cardAnatomy, ModalPortal, kbdAnatomy, FieldContext, fieldAnatomy, useFieldContext, MENU_SUB_TRIGGER_CHEVRON, menuSubTriggerClasses, MENU_INSET, contextMenuAnatomy, presence, menuItemClasses, MENU_ITEM_DANGER, MENU_INDICATOR_WELL, MENU_CHECK_GLYPH, menuIndicatorItemClasses, MENU_RADIO_GLYPH, menuLabelClasses, menuSeparatorClasses, useFieldControl, useMergedRefs, joinIds, Popover, PopoverTrigger, PopoverContent, FormBridge, CONTROL_SIZE_CLASSES, dialogAnatomy, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, headingAnatomy, deprecate, floatingSurfaceClasses, FLOATING_PADDING, FLOATING_WIDTH, labelAnatomy, warnLegacyButtonProps, resolveButtonIcons, buttonVariants, INERT_CLASSES, DISABLED_LOOK_CLASSES, inertHandlers, INERT_ATTRIBUTES, linkButtonAnatomy, useControllableState, controlChrome, mergeRefs, numberInputAnatomy, EN_MESSAGES, phoneFieldAnatomy, Input, useFieldsetContext, radioGroupAnatomy, microInteractions, CONTROL_LABEL_TEXT, searchInputAnatomy, IconButton, Tooltip, TooltipTrigger, TooltipContent, codeAnatomy, Slot, textAnatomy, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, useId as useId$1, partId, errorOnce, isLabelable, Spinner, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset
|
|
7
|
-
export { Avatar, Button, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileChip, FileUpload, IconButton, Input, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, iconButtonVariants, inputVariants, resolveButtonStyle, spinnerVariants, textareaVariants, useDsMessages, useFieldControl } from './chunk-
|
|
2
|
+
import { Skeleton, ToggleGroup, ToggleGroupItem, badgeVariants, DataTableBody, DataTableRow, DataTableCell, Badge, Pagination, TableBody, TableRow, TableCell, Table, TableHeader, TableHead } from './chunk-5AL4W32Z.js';
|
|
3
|
+
export { Badge, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, EmptyValue, PROGRESS_LEGACY_TO_INTENT, Pagination, ProgressBar, ProgressRing, SERVICE_TONES, STATUS_DOT_TONE_TO_INTENT, SegmentedProgress, Skeleton, SkeletonCircle, SkeletonText, StatusDot, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable } from './chunk-5AL4W32Z.js';
|
|
4
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, Sidebar, SidebarFooter, SidebarUser, useSidebarState, SidebarSection, SidebarLinkGroup, SidebarLink, SidebarLinkLabel, SidebarLinkBadge, CmdkCompatContext, Sheet, SheetContent, SheetTitle } from './chunk-L5IQK3GV.js';
|
|
5
|
+
export { BrandScope, BrandScopeProvider, Chip, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, DEFAULT_COMBOBOX_MESSAGES, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandText, SidebarDrawer, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, assetPath, brandScope, chipVariants, getAssetBasePath, resolveChipStyle, setAssetBasePath, sidebarLinkBadgeVariants, useBrandScope, useSidebarPeekLock, useSidebarState } from './chunk-L5IQK3GV.js';
|
|
6
|
+
import { withPortalContainer, Backdrop, alertDialogAnatomy, OverlaySurface, OverlayTitle, OverlayDescription, Button, slot, useDsMessages, useLinkComponent, surfaceAnatomy, stateAttributes, cardAnatomy, ModalPortal, kbdAnatomy, FieldContext, fieldAnatomy, useFieldContext, MENU_SUB_TRIGGER_CHEVRON, menuSubTriggerClasses, MENU_INSET, contextMenuAnatomy, presence, menuItemClasses, MENU_ITEM_DANGER, MENU_INDICATOR_WELL, MENU_CHECK_GLYPH, menuIndicatorItemClasses, MENU_RADIO_GLYPH, menuLabelClasses, menuSeparatorClasses, useFieldControl, useMergedRefs, joinIds, Popover, PopoverTrigger, PopoverContent, FormBridge, CONTROL_SIZE_CLASSES, dialogAnatomy, DismissButton, DEFAULT_OVERLAY_MESSAGES, DISMISS_GLYPH_CLASSES, OverlayBody, headingAnatomy, deprecate, floatingSurfaceClasses, FLOATING_PADDING, FLOATING_WIDTH, labelAnatomy, warnLegacyButtonProps, resolveButtonIcons, buttonVariants, INERT_CLASSES, DISABLED_LOOK_CLASSES, inertHandlers, INERT_ATTRIBUTES, linkButtonAnatomy, useControllableState, controlChrome, mergeRefs, numberInputAnatomy, EN_MESSAGES, phoneFieldAnatomy, Input, useFieldsetContext, useFormReset2, radioGroupAnatomy, microInteractions, CONTROL_LABEL_TEXT, searchInputAnatomy, IconButton, Tooltip, TooltipTrigger, TooltipContent, codeAnatomy, Slot, textAnatomy, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, useId as useId$1, partId, errorOnce, isLabelable, Spinner, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset, sideDrawerAnatomy, Portal, toastAnatomy, useExitPresence, TooltipProvider, TOOLTIP_DEFAULT_DELAY_MS, DesignSystemContext, PortalContainerContext, ModalRoot, ModalOverlay, ModalContent, ModalTitle, ModalDescription } from './chunk-VK6SW34V.js';
|
|
7
|
+
export { Avatar, Button, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileChip, FileUpload, IconButton, Input, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, iconButtonVariants, inputVariants, resolveButtonStyle, spinnerVariants, textareaVariants, useDsMessages, useFieldControl } from './chunk-VK6SW34V.js';
|
|
8
8
|
import { cn, ChevronDownIcon, EyeIcon, DownloadIcon, ChevronRightIcon, CheckIcon, CircleIcon, CopyIcon, CalendarIcon, XIcon, AlertTriangleIcon, ArrowRightIcon, ArrowLeftIcon, FileTextIcon, ZoomOutIcon, ZoomInIcon, TrendingUpIcon, TrendingDownIcon, SearchIcon, TableIcon, StarIcon, RowsIcon, Rows4Icon, ListChecksIcon, CheckCircleSolidIcon, HelpCircleIcon, UserIcon, SendIcon, SettingsIcon, ChevronLeftIcon, FolderOpenIcon, FolderClosedIcon, MinusIcon, AlertCircleIcon, CheckCircle2Icon, PlusIcon, LoaderIcon, InfoCircleSolidIcon, AlertTriangleSolidIcon, XCircleSolidIcon, RotateCcwIcon, InfoIcon, CommandIcon } from './chunk-TBDTXAFH.js';
|
|
9
9
|
export { AlertCircleIcon, AlertTriangleIcon, AlertTriangleSolidIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, ArrowUpRightIcon, AtSignIcon, BanIcon, BarChartIcon, BellIcon, BoldIcon, BrainIcon, BriefcaseIcon, Building2Icon, BuildingIcon, CalculatorIcon, CalendarIcon, CameraIcon, ChatBubbleIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleDotIcon, CircleIcon, ClipboardCheckIcon, ClockIcon, CloseIcon, CommandIcon, CopyIcon, CornerDownLeftIcon, CreditCardIcon, DocumentIcon, DollarSignIcon, DownloadIcon, ExternalLinkIcon, ExtractIcon, EyeIcon, EyeOffIcon, FileChartColumnIcon, FileIcon, FileReturnIcon, FileTextIcon, FilterIcon, FlagIcon, FolderClosedIcon, FolderDownIcon, FolderOpenIcon, FolderPlusIcon, FolderUpIcon, GlobeIcon, GoogleBrandIcon, GraduationCapIcon, GripHorizontalIcon, GripVerticalIcon, HelpCircleIcon, HistoryIcon, HomeIcon, InboxIcon, InfoCircleSolidIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, LandmarkIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LightningIcon, Link2Icon, LinkIcon, ListChecksIcon, ListIcon, ListOrderedIcon, LoaderIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MessageCircleMoreIcon, MessageCircleWarningIcon, MicIcon, MicrosoftBrandIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointer2Icon, MoveIcon, PaletteIcon, PanelLeftCloseIcon, PanelLeftIcon, PanelRightCloseIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenSignIcon, PenToolIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, ReceiptIcon, RefreshCwIcon, ReplyIcon, RotateCcwIcon, Rows4Icon, RowsIcon, SaveIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, SigmaIcon, SlashIcon, SmartphoneIcon, SparkleIcon, SparklesIcon, SquarePlayIcon, StarIcon, StopIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TeamIcon, ThumbsDownIcon, ThumbsUpIcon, TimerIcon, Trash2Icon, TrashIcon, TrashSolidIcon, TrendingDownIcon, TrendingUpIcon, TypeIcon, UnderlineIcon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VideoIcon, Volume2Icon, VolumeXIcon, WorkflowIcon, XCircleSolidIcon, XIcon, ZoomInIcon, ZoomOutIcon, cn, createIcon } from './chunk-TBDTXAFH.js';
|
|
10
10
|
export { systemTokens } from './chunk-CPOGSNXS.js';
|
|
@@ -3539,9 +3539,10 @@ var FormSection = forwardRef(function FormSection2({ title, description, action,
|
|
|
3539
3539
|
"<FormSection> is deprecated. Render <Fieldset> with a <FieldsetLegend>. Removed in 3.0."
|
|
3540
3540
|
);
|
|
3541
3541
|
return /* @__PURE__ */ jsxs("fieldset", { ref, className: cn("ds:min-w-0", className), ...props, children: [
|
|
3542
|
+
/* @__PURE__ */ jsx("legend", { className: "ds:sr-only", children: title }),
|
|
3542
3543
|
/* @__PURE__ */ jsxs("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-3", children: [
|
|
3543
3544
|
/* @__PURE__ */ jsxs("div", { className: "ds:min-w-0", children: [
|
|
3544
|
-
/* @__PURE__ */ jsx("
|
|
3545
|
+
/* @__PURE__ */ jsx("p", { "aria-hidden": "true", className: "ds:text-fg ds:text-sm ds:font-semibold", children: title }),
|
|
3545
3546
|
description && /* @__PURE__ */ jsx("p", { className: "ds:text-fg-3 ds:mt-0.5 ds:text-xs ds:leading-relaxed", children: description })
|
|
3546
3547
|
] }),
|
|
3547
3548
|
action && /* @__PURE__ */ jsx("div", { className: "ds:shrink-0", children: action })
|
|
@@ -4572,7 +4573,7 @@ function OTPInput({
|
|
|
4572
4573
|
"aria-describedby": ariaDescribedBy
|
|
4573
4574
|
});
|
|
4574
4575
|
const inputRef = React30.useRef(null);
|
|
4575
|
-
useFormReset
|
|
4576
|
+
useFormReset(inputRef, () => setValue(defaultValue ?? ""), wiring.name, form);
|
|
4576
4577
|
const errorId = `${wiring.id}-error`;
|
|
4577
4578
|
const hasError = wiring["aria-invalid"] === true;
|
|
4578
4579
|
const messages = useDsMessages("otpInput");
|
|
@@ -5681,7 +5682,7 @@ var RadioGroup2 = React30.forwardRef(function RadioGroup3({
|
|
|
5681
5682
|
});
|
|
5682
5683
|
const initialValue = React30.useRef(valueProp ?? defaultValue ?? null);
|
|
5683
5684
|
const rootRef = React30.useRef(null);
|
|
5684
|
-
|
|
5685
|
+
useFormReset2(rootRef, () => setValue(initialValue.current));
|
|
5685
5686
|
const mergedRef = useMergedRefs(ref, rootRef);
|
|
5686
5687
|
const isInvalid = wiring["aria-invalid"] === true;
|
|
5687
5688
|
const context = React30.useMemo(
|
|
@@ -6585,6 +6586,7 @@ var Slider = React30.forwardRef(
|
|
|
6585
6586
|
showValue,
|
|
6586
6587
|
size,
|
|
6587
6588
|
invalid,
|
|
6589
|
+
thumbLabels,
|
|
6588
6590
|
id,
|
|
6589
6591
|
name,
|
|
6590
6592
|
disabled,
|
|
@@ -6617,7 +6619,7 @@ var Slider = React30.forwardRef(
|
|
|
6617
6619
|
});
|
|
6618
6620
|
const initialValue = React30.useRef(valueProp ?? defaultValue);
|
|
6619
6621
|
const rootRef = React30.useRef(null);
|
|
6620
|
-
|
|
6622
|
+
useFormReset2(rootRef, () => setValue(initialValue.current), form);
|
|
6621
6623
|
const mergedRef = useMergedRefs(ref, rootRef);
|
|
6622
6624
|
const displayValue = (() => {
|
|
6623
6625
|
const v = value;
|
|
@@ -6628,6 +6630,7 @@ var Slider = React30.forwardRef(
|
|
|
6628
6630
|
const labelledBy = wiring["aria-labelledby"];
|
|
6629
6631
|
const accessibleName = labelledBy ? void 0 : ariaLabel ?? label ?? "Slider value";
|
|
6630
6632
|
const resolvedSize = size ?? "md";
|
|
6633
|
+
const thumbCount = Array.isArray(value) && value.length > 1 ? value.length : 1;
|
|
6631
6634
|
return /* @__PURE__ */ jsxs("div", { className: "ds:w-full", children: [
|
|
6632
6635
|
(label || showValue) && /* @__PURE__ */ jsxs("div", { className: "ds:mb-2 ds:flex ds:items-center ds:justify-between ds:gap-2", children: [
|
|
6633
6636
|
label ? /* @__PURE__ */ jsx(
|
|
@@ -6672,7 +6675,7 @@ var Slider = React30.forwardRef(
|
|
|
6672
6675
|
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "ds:bg-brand ds:data-[disabled]:bg-fg-disabled ds:absolute ds:h-full" })
|
|
6673
6676
|
}
|
|
6674
6677
|
),
|
|
6675
|
-
/* @__PURE__ */ jsx(
|
|
6678
|
+
Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ jsx(
|
|
6676
6679
|
SliderPrimitive.Thumb,
|
|
6677
6680
|
{
|
|
6678
6681
|
className: cn(
|
|
@@ -6686,12 +6689,13 @@ var Slider = React30.forwardRef(
|
|
|
6686
6689
|
"ds:data-[disabled]:pointer-events-none ds:data-[disabled]:cursor-not-allowed",
|
|
6687
6690
|
"ds:data-[disabled]:border-fg-disabled ds:data-[disabled]:bg-bg-disabled"
|
|
6688
6691
|
),
|
|
6689
|
-
"aria-label": accessibleName,
|
|
6690
|
-
"aria-labelledby": labelledBy,
|
|
6692
|
+
"aria-label": thumbLabels?.[index] ?? accessibleName,
|
|
6693
|
+
"aria-labelledby": thumbLabels?.[index] ? void 0 : labelledBy,
|
|
6691
6694
|
"aria-describedby": wiring["aria-describedby"],
|
|
6692
6695
|
"aria-invalid": ariaInvalid ?? wiring["aria-invalid"]
|
|
6693
|
-
}
|
|
6694
|
-
|
|
6696
|
+
},
|
|
6697
|
+
index
|
|
6698
|
+
))
|
|
6695
6699
|
]
|
|
6696
6700
|
}
|
|
6697
6701
|
)
|
|
@@ -9840,6 +9844,7 @@ var MessageComposer = forwardRef(
|
|
|
9840
9844
|
"button",
|
|
9841
9845
|
{
|
|
9842
9846
|
type: "button",
|
|
9847
|
+
disabled: isDisabled,
|
|
9843
9848
|
onClick: () => onChipPick?.(chip),
|
|
9844
9849
|
title: chip.label,
|
|
9845
9850
|
className: cn(
|