@assure-one/design-system 1.49.0 → 1.51.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.
- package/dist/{brand-scope-ObBYNT0J.d.ts → brand-scope-4F-W2F_m.d.ts} +1 -1
- package/dist/{chunk-4OAER6Q6.js → chunk-AVPJDQUY.js} +3 -3
- package/dist/{chunk-4OAER6Q6.js.map → chunk-AVPJDQUY.js.map} +1 -1
- package/dist/{chunk-7VPEFOTS.js → chunk-KITVNCIJ.js} +159 -31
- package/dist/chunk-KITVNCIJ.js.map +1 -0
- package/dist/{chunk-SFHFY72L.js → chunk-TL4NK3KN.js} +56 -4
- package/dist/chunk-TL4NK3KN.js.map +1 -0
- package/dist/css/components.css +1 -1
- package/dist/{data-table-view-CNTfzEyS.d.ts → data-table-view-CwciwQq3.d.ts} +61 -2
- package/dist/{design-system-provider-YblRtwYw.d.ts → design-system-provider-DLS-Nd27.d.ts} +1 -1
- package/dist/index.d.ts +237 -16
- package/dist/index.js +718 -78
- package/dist/index.js.map +1 -1
- package/dist/legacy/index.d.ts +3 -3
- package/dist/legacy/index.js +2 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/suite/index.d.ts +3 -3
- package/dist/suite/index.js +2 -2
- package/dist/{types-CKpkEBvW.d.ts → types-iJjWtP6z.d.ts} +2 -0
- package/docs/components.md +16 -4
- package/docs/components.registry.json +81 -5
- package/package.json +1 -1
- package/dist/chunk-7VPEFOTS.js.map +0 -1
- package/dist/chunk-SFHFY72L.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Skeleton, ToggleGroup, ToggleGroupItem, useOverflowTooltip, badgeVariants, DataTableBody, DataTableRow, DataTableCell, Badge, VisuallyHidden, ProgressBar, Pagination, TableBody, TableRow, TableCell, Table, TableHeader, TableHead } from './chunk-
|
|
3
|
-
export { Badge, DATA_TABLE_NO_GROUPING, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCellSecondary, DataTableCheckbox, DataTableHead, DataTableHeader, DataTableHeaderMenu, DataTableLoadMore, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableSpacerRow, 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, TableCellSecondary, TableFooter, TableGroupRow, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, VisuallyHidden, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable, useDataTableGrouping, useDataTableVirtualRows, useScrollRestoration } from './chunk-
|
|
4
|
-
import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, Sidebar, SidebarFooter, SidebarUser, Chip, 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, useFormReset2, radioGroupAnatomy, microInteractions, CONTROL_LABEL_TEXT, searchInputAnatomy, IconButton, Tooltip, TooltipTrigger, TooltipContent, codeAnatomy, textAnatomy, Slot, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, useId as useId$1, partId, statStripAnatomy, Pressable, Spinner, DropdownMenuItem, filterChipsAnatomy, listPageAnatomy, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, errorOnce, isLabelable, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset, sideDrawerAnatomy, Portal, toastAnatomy, useExitPresence, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, TooltipProvider, TOOLTIP_DEFAULT_DELAY_MS, DesignSystemContext, PortalContainerContext, ModalRoot, ModalOverlay, ModalContent, ModalTitle, ModalDescription } from './chunk-
|
|
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-
|
|
8
|
-
import { cn, ChevronDownIcon, EyeIcon, DownloadIcon, ChevronRightIcon, CheckIcon, CircleIcon, CopyIcon, CalendarIcon, XIcon, AlertTriangleIcon, ArrowRightIcon, ArrowLeftIcon, FileTextIcon, ZoomOutIcon, ZoomInIcon, lucideIcon, SquareExclamationPointIcon, TrendingUpIcon, TrendingDownIcon, SearchIcon, TableIcon, StarIcon, RowsIcon, Rows4Icon, ListChecksIcon, CheckCircleSolidIcon, HelpCircleIcon, UserIcon, SendIcon, SettingsIcon, ChevronUpIcon, XCircleIcon, CheckCircle2Icon, InfoIcon, ChevronLeftIcon, FolderOpenIcon, FolderClosedIcon, MinusIcon, Icon, ChartNoAxesColumnIncreasingIcon, MoreHorizontalIcon, AlertCircleIcon, PlusIcon, CircleDashedIcon, LoaderIcon, InfoCircleSolidIcon, AlertTriangleSolidIcon, XCircleSolidIcon, RotateCcwIcon, CommandIcon, GripVerticalIcon, LockIcon, ArrowUpIcon, ArrowDownIcon } from './chunk-ARCWF2S3.js';
|
|
2
|
+
import { Skeleton, ToggleGroup, ToggleGroupItem, useOverflowTooltip, badgeVariants, DataTableBody, DataTableRow, DataTableCell, Badge, VisuallyHidden, ProgressBar, Pagination, TableBody, TableRow, TableCell, Table, TableHeader, TableHead } from './chunk-AVPJDQUY.js';
|
|
3
|
+
export { Badge, DATA_TABLE_NO_GROUPING, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCellSecondary, DataTableCheckbox, DataTableHead, DataTableHeader, DataTableHeaderMenu, DataTableLoadMore, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableSpacerRow, 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, TableCellSecondary, TableFooter, TableGroupRow, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, VisuallyHidden, badgeVariants, compareSortValues, nextSortDirection, progressBarVariants, progressRingVariants, resolveBadgeAppearance, serviceToneLabel, serviceToneStyle, statusDotVariants, useDataTable, useDataTableGrouping, useDataTableVirtualRows, useScrollRestoration } from './chunk-AVPJDQUY.js';
|
|
4
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent, PlainLink, Combobox, Sidebar, SidebarFooter, SidebarUser, Chip, useSidebarState, SidebarSection, SidebarLinkGroup, SidebarLink, SidebarLinkLabel, SidebarLinkBadge, CmdkCompatContext, Sheet, SheetContent, SheetTitle } from './chunk-KITVNCIJ.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-KITVNCIJ.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, textAnatomy, Slot, stackAnatomy, inlineAnatomy, statusBadgeAnatomy, useFieldsetState, FieldsetContext, fieldsetAnatomy, useFieldsetLegend, shellAnatomy, Avatar, messageBubbleAnatomy, useId as useId$1, partId, statStripAnatomy, Pressable, Spinner, DropdownMenuItem, filterChipsAnatomy, listPageAnatomy, dataTableAnatomy, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuCheckboxItem, threadEventAnatomy, threadDividerAnatomy, conversationRowAnatomy, conversationHeaderAnatomy, peopleListAnatomy, errorOnce, isLabelable, Select, Checkbox, FIELD_PARTS, SelectRoot, SelectTrigger, SelectValue, SelectContent, SelectItem, OverlayHeader, OverlayFooter, commandAnatomy, menuShortcutClasses, useFormReset, sideDrawerAnatomy, Portal, toastAnatomy, useExitPresence, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, TooltipProvider, TOOLTIP_DEFAULT_DELAY_MS, DesignSystemContext, PortalContainerContext, ModalRoot, ModalOverlay, ModalContent, ModalTitle, ModalDescription } from './chunk-TL4NK3KN.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-TL4NK3KN.js';
|
|
8
|
+
import { cn, ChevronDownIcon, EyeIcon, DownloadIcon, ChevronRightIcon, CheckIcon, CircleIcon, CopyIcon, CalendarIcon, XIcon, AlertTriangleIcon, ArrowRightIcon, ArrowLeftIcon, FileTextIcon, ZoomOutIcon, ZoomInIcon, lucideIcon, SquareExclamationPointIcon, TrendingUpIcon, TrendingDownIcon, SearchIcon, TableIcon, StarIcon, RowsIcon, Rows4Icon, ListChecksIcon, CheckCircleSolidIcon, HelpCircleIcon, UserIcon, SendIcon, SettingsIcon, ChevronUpIcon, ClockIcon, XCircleIcon, CheckCircle2Icon, InfoIcon, ChevronLeftIcon, FolderOpenIcon, FolderClosedIcon, MinusIcon, Icon, ChartNoAxesColumnIncreasingIcon, MoreHorizontalIcon, AlertCircleIcon, PlusIcon, CircleDashedIcon, LoaderIcon, InfoCircleSolidIcon, AlertTriangleSolidIcon, XCircleSolidIcon, RotateCcwIcon, CommandIcon, GripVerticalIcon, LockIcon, ArrowUpIcon, ArrowDownIcon } from './chunk-ARCWF2S3.js';
|
|
9
9
|
export { AlertCircleIcon, AlertTriangleIcon, AlertTriangleSolidIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppWindowIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, ArrowUpRightIcon, AtSignIcon, BanIcon, BarChartIcon, BellIcon, BellRingIcon, BoldIcon, BookTextIcon, BrainIcon, BriefcaseIcon, Building2Icon, BuildingIcon, CalculatorIcon, CalendarIcon, CameraIcon, ChartNoAxesColumnIncreasingIcon, ChatBubbleIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleDashedIcon, CircleDotIcon, CircleIcon, ClipboardCheckIcon, ClockAlertIcon, ClockIcon, CloseIcon, CommandIcon, CopyIcon, CornerDownLeftIcon, CreditCardIcon, DecimalsArrowLeftIcon, DecimalsArrowRightIcon, DocumentIcon, DollarSignIcon, DownloadIcon, ExternalLinkIcon, ExtractIcon, EyeIcon, EyeOffIcon, FileChartColumnIcon, FileIcon, FilePlusIcon, FileReturnIcon, FileTextIcon, FilterIcon, FlagIcon, FolderClosedIcon, FolderDownIcon, FolderOpenIcon, FolderPlusIcon, FolderUpIcon, GlobeIcon, GoogleBrandIcon, GraduationCapIcon, Grid2x2Icon, GripHorizontalIcon, GripVerticalIcon, HelpCircleIcon, HighlighterIcon, 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, PercentIcon, PhoneIcon, PinIcon, PinOffIcon, PlayIcon, PlusIcon, ReceiptIcon, RefreshCwIcon, RepeatIcon, ReplyIcon, RotateCcwIcon, Rows4Icon, RowsIcon, SaveIcon, SearchCheckIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, SigmaIcon, SlashIcon, SmartphoneIcon, SparkleIcon, SparklesIcon, SquareExclamationPointIcon, SquareFunctionIcon, SquareIcon, SquarePlayIcon, SquareSquareIcon, StampIcon, StarIcon, StopIcon, StrikethroughIcon, StripeBrandIcon, SunIcon, TableIcon, TagIcon, TeamIcon, ThumbsDownIcon, ThumbsUpIcon, TimerIcon, Trash2Icon, TrashIcon, TrashSolidIcon, TrendingDownIcon, TrendingUpIcon, TypeIcon, UnderlineIcon, Undo2Icon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VideoIcon, Volume2Icon, VolumeXIcon, WorkflowIcon, XCircleIcon, XCircleSolidIcon, XIcon, ZoomInIcon, ZoomOutIcon, cn, createIcon, iconCursor, iconToSvg } from './chunk-ARCWF2S3.js';
|
|
10
10
|
export { systemTokens } from './chunk-CPOGSNXS.js';
|
|
11
11
|
import './chunk-EUHGZA6Q.js';
|
|
@@ -8607,89 +8607,201 @@ QuestionnairePanel.displayName = "QuestionnairePanel";
|
|
|
8607
8607
|
var ROW_BASE = "ds:group/row ds:flex ds:w-full ds:items-center ds:gap-1.5 ds:rounded-lg ds:px-2.5 ds:py-1 ds:text-left ds:text-[12px] ds:font-medium ds:transition-colors ds:duration-[var(--motion-duration-feedback)] ds:motion-reduce:transition-none";
|
|
8608
8608
|
var ROW_INACTIVE = "ds:text-fg-2 ds:hover:bg-surface-2 ds:hover:text-fg";
|
|
8609
8609
|
var ROW_ACTIVE = "ds:bg-brand-bg ds:text-brand ds:font-semibold";
|
|
8610
|
+
var ROW_FOCUS = "ds:[li:focus-visible>&]:[box-shadow:var(--shadow-focus-ring)]";
|
|
8610
8611
|
var BADGE_BASE = "ds:ml-auto ds:min-w-[18px] ds:rounded-full ds:px-[5px] ds:py-px ds:text-center ds:text-[10px] ds:font-[650] ds:tabular-nums";
|
|
8611
8612
|
var BADGE_INACTIVE = "ds:bg-surface-2 ds:text-fg-4";
|
|
8612
8613
|
var BADGE_ACTIVE = "ds:bg-brand-bg ds:text-brand";
|
|
8613
|
-
var FolderTree = forwardRef(function FolderTree2({
|
|
8614
|
+
var FolderTree = forwardRef(function FolderTree2({
|
|
8615
|
+
nodes,
|
|
8616
|
+
activeId,
|
|
8617
|
+
onSelect,
|
|
8618
|
+
defaultOpenIds,
|
|
8619
|
+
openIds,
|
|
8620
|
+
onOpenChange,
|
|
8621
|
+
className,
|
|
8622
|
+
"aria-label": ariaLabel,
|
|
8623
|
+
"aria-labelledby": ariaLabelledBy,
|
|
8624
|
+
...props
|
|
8625
|
+
}, ref) {
|
|
8614
8626
|
const messages = useDsMessages("folderTree");
|
|
8615
8627
|
const isControlled = openIds !== void 0;
|
|
8616
8628
|
const [internalOpen, setInternalOpen] = useState(() => new Set(defaultOpenIds ?? []));
|
|
8617
8629
|
const open = isControlled ? new Set(openIds) : internalOpen;
|
|
8630
|
+
const [focusedId, setFocusedId] = useState();
|
|
8631
|
+
const items = useRef(/* @__PURE__ */ new Map());
|
|
8632
|
+
const idBase = useId();
|
|
8633
|
+
const visible = [];
|
|
8634
|
+
const collect = (list, parentId) => {
|
|
8635
|
+
for (const node of list) {
|
|
8636
|
+
const hasChildren = Boolean(node.children?.length);
|
|
8637
|
+
visible.push({ id: node.id, name: node.name, parentId, hasChildren });
|
|
8638
|
+
if (hasChildren && open.has(node.id)) collect(node.children, node.id);
|
|
8639
|
+
}
|
|
8640
|
+
};
|
|
8641
|
+
collect(nodes, void 0);
|
|
8642
|
+
const isVisible = (id) => id !== void 0 && visible.some((n) => n.id === id);
|
|
8643
|
+
const tabbableId = isVisible(focusedId) ? focusedId : isVisible(activeId) ? activeId : visible[0]?.id;
|
|
8644
|
+
const focusItem = (id) => {
|
|
8645
|
+
if (id === void 0) return;
|
|
8646
|
+
setFocusedId(id);
|
|
8647
|
+
items.current.get(id)?.focus();
|
|
8648
|
+
};
|
|
8649
|
+
const setOpen = (id, next) => {
|
|
8650
|
+
if (open.has(id) === next) return;
|
|
8651
|
+
const nextOpen = new Set(open);
|
|
8652
|
+
if (next) nextOpen.add(id);
|
|
8653
|
+
else nextOpen.delete(id);
|
|
8654
|
+
if (!isControlled) setInternalOpen(nextOpen);
|
|
8655
|
+
onOpenChange?.([...nextOpen]);
|
|
8656
|
+
};
|
|
8618
8657
|
const toggle = (id) => {
|
|
8619
|
-
const
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8658
|
+
const closing = open.has(id);
|
|
8659
|
+
setOpen(id, !closing);
|
|
8660
|
+
if (closing && focusedId !== void 0 && focusedId !== id) {
|
|
8661
|
+
let cursor = visible.find((n) => n.id === focusedId)?.parentId;
|
|
8662
|
+
while (cursor !== void 0 && cursor !== id) cursor = visible.find((n) => n.id === cursor)?.parentId;
|
|
8663
|
+
if (cursor === id) focusItem(id);
|
|
8664
|
+
}
|
|
8665
|
+
};
|
|
8666
|
+
const onKeyDown = (event) => {
|
|
8667
|
+
const index = visible.findIndex((n) => n.id === tabbableId);
|
|
8668
|
+
const current = visible[index];
|
|
8669
|
+
if (!current || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
8670
|
+
let handled = true;
|
|
8671
|
+
switch (event.key) {
|
|
8672
|
+
case "ArrowDown":
|
|
8673
|
+
focusItem(visible[index + 1]?.id);
|
|
8674
|
+
break;
|
|
8675
|
+
case "ArrowUp":
|
|
8676
|
+
focusItem(visible[index - 1]?.id);
|
|
8677
|
+
break;
|
|
8678
|
+
case "Home":
|
|
8679
|
+
focusItem(visible[0]?.id);
|
|
8680
|
+
break;
|
|
8681
|
+
case "End":
|
|
8682
|
+
focusItem(visible[visible.length - 1]?.id);
|
|
8683
|
+
break;
|
|
8684
|
+
case "ArrowRight":
|
|
8685
|
+
if (current.hasChildren && !open.has(current.id)) setOpen(current.id, true);
|
|
8686
|
+
else if (current.hasChildren) focusItem(visible[index + 1]?.id);
|
|
8687
|
+
break;
|
|
8688
|
+
case "ArrowLeft":
|
|
8689
|
+
if (current.hasChildren && open.has(current.id)) setOpen(current.id, false);
|
|
8690
|
+
else focusItem(current.parentId);
|
|
8691
|
+
break;
|
|
8692
|
+
case "Enter":
|
|
8693
|
+
case " ":
|
|
8694
|
+
onSelect?.(current.id);
|
|
8695
|
+
break;
|
|
8696
|
+
default: {
|
|
8697
|
+
handled = false;
|
|
8698
|
+
if (event.key.length !== 1 || !/\S/.test(event.key)) break;
|
|
8699
|
+
const key = event.key.toLocaleLowerCase();
|
|
8700
|
+
for (let step = 1; step <= visible.length; step++) {
|
|
8701
|
+
const candidate = visible[(index + step) % visible.length];
|
|
8702
|
+
if (candidate.name.toLocaleLowerCase().startsWith(key)) {
|
|
8703
|
+
focusItem(candidate.id);
|
|
8704
|
+
handled = true;
|
|
8705
|
+
break;
|
|
8706
|
+
}
|
|
8707
|
+
}
|
|
8708
|
+
}
|
|
8626
8709
|
}
|
|
8710
|
+
if (handled) event.preventDefault();
|
|
8627
8711
|
};
|
|
8628
|
-
const renderNode = (node, depth) => {
|
|
8712
|
+
const renderNode = (node, depth, position, setSize) => {
|
|
8629
8713
|
const hasChildren = Boolean(node.children?.length);
|
|
8630
8714
|
const isOpen = open.has(node.id);
|
|
8631
8715
|
const isActive = activeId === node.id;
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
}
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8716
|
+
const labelId = `${idBase}-${node.id}`;
|
|
8717
|
+
return /* @__PURE__ */ jsxs(
|
|
8718
|
+
"li",
|
|
8719
|
+
{
|
|
8720
|
+
ref: (el) => {
|
|
8721
|
+
if (el) items.current.set(node.id, el);
|
|
8722
|
+
else items.current.delete(node.id);
|
|
8723
|
+
},
|
|
8724
|
+
role: "treeitem",
|
|
8725
|
+
"aria-labelledby": labelId,
|
|
8726
|
+
"aria-level": depth + 1,
|
|
8727
|
+
"aria-posinset": position,
|
|
8728
|
+
"aria-setsize": setSize,
|
|
8729
|
+
"aria-expanded": hasChildren ? isOpen : void 0,
|
|
8730
|
+
"aria-selected": isActive,
|
|
8731
|
+
tabIndex: node.id === tabbableId ? 0 : -1,
|
|
8732
|
+
onFocus: (event) => {
|
|
8733
|
+
if (event.target === event.currentTarget) setFocusedId(node.id);
|
|
8734
|
+
},
|
|
8735
|
+
className: "ds:relative ds:outline-none",
|
|
8736
|
+
children: [
|
|
8737
|
+
depth > 0 && /* @__PURE__ */ jsx(
|
|
8738
|
+
"span",
|
|
8739
|
+
{
|
|
8740
|
+
"aria-hidden": true,
|
|
8741
|
+
className: "ds:pointer-events-none ds:absolute ds:left-[-11px] ds:top-0 ds:bottom-0 ds:w-px ds:bg-[color:var(--color-rule-strong)]"
|
|
8742
|
+
}
|
|
8743
|
+
),
|
|
8744
|
+
/* @__PURE__ */ jsxs(
|
|
8745
|
+
"div",
|
|
8746
|
+
{
|
|
8747
|
+
onClick: () => onSelect?.(node.id),
|
|
8748
|
+
className: cn(ROW_BASE, ROW_FOCUS, "ds:cursor-pointer", isActive ? ROW_ACTIVE : ROW_INACTIVE),
|
|
8749
|
+
children: [
|
|
8750
|
+
hasChildren ? /* @__PURE__ */ jsx(
|
|
8751
|
+
"span",
|
|
8752
|
+
{
|
|
8753
|
+
"aria-hidden": true,
|
|
8754
|
+
onClick: (e) => {
|
|
8755
|
+
e.stopPropagation();
|
|
8756
|
+
toggle(node.id);
|
|
8757
|
+
},
|
|
8758
|
+
className: cn(
|
|
8759
|
+
"ds:shrink-0 ds:rounded-icon ds:text-fg-4 ds:hover:text-fg-2",
|
|
8760
|
+
"ds:transition-[color,transform] ds:duration-[var(--motion-duration-feedback)] ds:ease-[var(--motion-ease-enter)] ds:motion-reduce:transition-none",
|
|
8761
|
+
isOpen && "ds:rotate-90"
|
|
8762
|
+
),
|
|
8763
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: 13, "aria-hidden": "true" })
|
|
8764
|
+
}
|
|
8765
|
+
) : /* @__PURE__ */ jsx("span", { className: "ds:w-[13px] ds:shrink-0", "aria-hidden": true }),
|
|
8766
|
+
/* @__PURE__ */ jsxs("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:items-center ds:gap-1.5 ds:text-left ds:text-[12px]", children: [
|
|
8767
|
+
isOpen && hasChildren ? /* @__PURE__ */ jsx(
|
|
8768
|
+
FolderOpenIcon,
|
|
8769
|
+
{
|
|
8770
|
+
size: 14,
|
|
8771
|
+
"aria-hidden": "true",
|
|
8772
|
+
className: cn("ds:shrink-0", isActive ? "ds:text-brand" : "ds:text-fg-3")
|
|
8773
|
+
}
|
|
8774
|
+
) : /* @__PURE__ */ jsx(
|
|
8775
|
+
FolderClosedIcon,
|
|
8776
|
+
{
|
|
8777
|
+
size: 14,
|
|
8778
|
+
"aria-hidden": "true",
|
|
8779
|
+
className: cn("ds:shrink-0", isActive ? "ds:text-brand" : "ds:text-fg-3")
|
|
8780
|
+
}
|
|
8781
|
+
),
|
|
8782
|
+
/* @__PURE__ */ jsx("span", { id: labelId, className: "ds:min-w-0 ds:flex-1 ds:truncate", children: node.name })
|
|
8783
|
+
] }),
|
|
8784
|
+
node.count != null && /* @__PURE__ */ jsx("span", { className: cn(BADGE_BASE, isActive ? BADGE_ACTIVE : BADGE_INACTIVE), children: node.count })
|
|
8785
|
+
]
|
|
8786
|
+
}
|
|
8787
|
+
),
|
|
8788
|
+
hasChildren && isOpen && /* @__PURE__ */ jsx("ul", { role: "group", className: "ds:relative ds:flex ds:flex-col ds:pl-[22px]", children: node.children.map((child, i, list) => renderNode(child, depth + 1, i + 1, list.length)) })
|
|
8789
|
+
]
|
|
8790
|
+
},
|
|
8791
|
+
node.id
|
|
8792
|
+
);
|
|
8691
8793
|
};
|
|
8692
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cn("ds:w-full", className), ...props, children: /* @__PURE__ */ jsx(
|
|
8794
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("ds:w-full", className), ...props, children: /* @__PURE__ */ jsx(
|
|
8795
|
+
"ul",
|
|
8796
|
+
{
|
|
8797
|
+
role: "tree",
|
|
8798
|
+
"aria-label": ariaLabelledBy ? ariaLabel : ariaLabel ?? messages.label,
|
|
8799
|
+
"aria-labelledby": ariaLabelledBy,
|
|
8800
|
+
onKeyDown,
|
|
8801
|
+
className: "ds:flex ds:flex-col",
|
|
8802
|
+
children: nodes.map((node, i, list) => renderNode(node, 0, i + 1, list.length))
|
|
8803
|
+
}
|
|
8804
|
+
) });
|
|
8693
8805
|
});
|
|
8694
8806
|
FolderTree.displayName = "FolderTree";
|
|
8695
8807
|
function SegmentedControl({
|
|
@@ -9713,7 +9825,113 @@ var KanbanCard = forwardRef(function KanbanCard2({ className, label, title, clie
|
|
|
9713
9825
|
] }) : children });
|
|
9714
9826
|
});
|
|
9715
9827
|
KanbanCard.displayName = "KanbanCard";
|
|
9716
|
-
var
|
|
9828
|
+
var CHAT_BUBBLE = {
|
|
9829
|
+
default: {
|
|
9830
|
+
inbound: "ds:bg-surface ds:text-fg ds:border ds:border-rule ds:rounded-surface ds:px-3 ds:py-2 ds:text-sm ds:leading-relaxed ds:break-words",
|
|
9831
|
+
outbound: "ds:bg-brand ds:text-fg-on-brand ds:rounded-surface ds:px-3 ds:py-2 ds:text-sm ds:leading-relaxed ds:break-words"
|
|
9832
|
+
},
|
|
9833
|
+
note: {
|
|
9834
|
+
inbound: "ds:bg-bg-2 ds:text-fg ds:border-2 ds:border-dashed ds:border-rule-strong ds:rounded-surface ds:px-3 ds:py-2 ds:text-sm ds:leading-relaxed ds:break-words",
|
|
9835
|
+
outbound: "ds:bg-bg-2 ds:text-fg ds:border-2 ds:border-dashed ds:border-rule-strong ds:rounded-surface ds:px-3 ds:py-2 ds:text-sm ds:leading-relaxed ds:break-words"
|
|
9836
|
+
}
|
|
9837
|
+
};
|
|
9838
|
+
var ACTIONS_REVEAL = "ds:opacity-0 ds:transition-opacity ds:duration-[var(--motion-duration-feedback)] ds:ease-[var(--motion-ease-enter)] ds:motion-reduce:transition-none ds:group-hover/bubble:opacity-100 ds:group-focus-within/bubble:opacity-100";
|
|
9839
|
+
var MessageBubble = forwardRef(function MessageBubble2({
|
|
9840
|
+
avatar,
|
|
9841
|
+
name,
|
|
9842
|
+
timestamp,
|
|
9843
|
+
actions,
|
|
9844
|
+
children,
|
|
9845
|
+
className,
|
|
9846
|
+
direction,
|
|
9847
|
+
tone = "default",
|
|
9848
|
+
groupStart = true,
|
|
9849
|
+
groupEnd = true,
|
|
9850
|
+
meta,
|
|
9851
|
+
footer,
|
|
9852
|
+
...props
|
|
9853
|
+
}, ref) {
|
|
9854
|
+
if (direction) {
|
|
9855
|
+
const outbound = direction === "outbound";
|
|
9856
|
+
const showHeader = groupStart && (name != null || timestamp != null);
|
|
9857
|
+
return /* @__PURE__ */ jsxs(
|
|
9858
|
+
"li",
|
|
9859
|
+
{
|
|
9860
|
+
ref,
|
|
9861
|
+
...slot(messageBubbleAnatomy, "root"),
|
|
9862
|
+
"data-direction": direction,
|
|
9863
|
+
"data-tone": tone,
|
|
9864
|
+
"data-group-start": groupStart ? "" : void 0,
|
|
9865
|
+
"data-group-end": groupEnd ? "" : void 0,
|
|
9866
|
+
className: cn(
|
|
9867
|
+
"ds:group/bubble ds:flex ds:items-start ds:gap-2.5",
|
|
9868
|
+
outbound && "ds:flex-row-reverse",
|
|
9869
|
+
groupStart ? "ds:pt-3" : "ds:pt-1",
|
|
9870
|
+
className
|
|
9871
|
+
),
|
|
9872
|
+
...props,
|
|
9873
|
+
children: [
|
|
9874
|
+
avatar && (groupStart ? /* @__PURE__ */ jsx("span", { ...slot(messageBubbleAnatomy, "avatar"), className: "ds:mt-0.5 ds:flex ds:shrink-0", children: avatar }) : (
|
|
9875
|
+
// Holds the avatar's width so a run's bubbles stay aligned.
|
|
9876
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ds:invisible ds:flex ds:shrink-0", children: avatar })
|
|
9877
|
+
)),
|
|
9878
|
+
/* @__PURE__ */ jsxs(
|
|
9879
|
+
"div",
|
|
9880
|
+
{
|
|
9881
|
+
className: cn(
|
|
9882
|
+
"ds:flex ds:min-w-0 ds:max-w-[min(36rem,85%)] ds:flex-col ds:gap-1",
|
|
9883
|
+
outbound ? "ds:items-end" : "ds:items-start"
|
|
9884
|
+
),
|
|
9885
|
+
children: [
|
|
9886
|
+
showHeader && /* @__PURE__ */ jsxs(
|
|
9887
|
+
"div",
|
|
9888
|
+
{
|
|
9889
|
+
...slot(messageBubbleAnatomy, "header"),
|
|
9890
|
+
className: "ds:flex ds:max-w-full ds:items-baseline ds:gap-2 ds:px-0.5",
|
|
9891
|
+
children: [
|
|
9892
|
+
name != null && /* @__PURE__ */ jsx("span", { ...slot(messageBubbleAnatomy, "name"), className: "ds:text-fg-2 ds:truncate ds:text-xs ds:font-semibold", children: name }),
|
|
9893
|
+
timestamp != null && /* @__PURE__ */ jsx("span", { ...slot(messageBubbleAnatomy, "time"), className: "ds:text-fg-4 ds:text-xs ds:tabular-nums", children: timestamp })
|
|
9894
|
+
]
|
|
9895
|
+
}
|
|
9896
|
+
),
|
|
9897
|
+
/* @__PURE__ */ jsxs("div", { className: cn("ds:flex ds:max-w-full ds:items-center ds:gap-1.5", outbound && "ds:flex-row-reverse"), children: [
|
|
9898
|
+
/* @__PURE__ */ jsx(
|
|
9899
|
+
"div",
|
|
9900
|
+
{
|
|
9901
|
+
...slot(messageBubbleAnatomy, "bubble"),
|
|
9902
|
+
className: cn(
|
|
9903
|
+
"ds:min-w-0",
|
|
9904
|
+
CHAT_BUBBLE[tone][direction],
|
|
9905
|
+
groupStart && (outbound ? "ds:rounded-tr-badge" : "ds:rounded-tl-badge")
|
|
9906
|
+
),
|
|
9907
|
+
children
|
|
9908
|
+
}
|
|
9909
|
+
),
|
|
9910
|
+
actions && /* @__PURE__ */ jsx("div", { ...slot(messageBubbleAnatomy, "actions"), className: cn("ds:flex ds:shrink-0 ds:items-center", ACTIONS_REVEAL), children: actions })
|
|
9911
|
+
] }),
|
|
9912
|
+
footer != null && /* @__PURE__ */ jsx(
|
|
9913
|
+
"div",
|
|
9914
|
+
{
|
|
9915
|
+
...slot(messageBubbleAnatomy, "footer"),
|
|
9916
|
+
className: cn("ds:flex ds:max-w-full ds:flex-col ds:gap-1", outbound ? "ds:items-end" : "ds:items-start"),
|
|
9917
|
+
children: footer
|
|
9918
|
+
}
|
|
9919
|
+
),
|
|
9920
|
+
groupEnd && meta != null && /* @__PURE__ */ jsx(
|
|
9921
|
+
"div",
|
|
9922
|
+
{
|
|
9923
|
+
...slot(messageBubbleAnatomy, "meta"),
|
|
9924
|
+
className: "ds:text-fg-3 ds:flex ds:items-center ds:gap-1 ds:px-0.5 ds:text-xs ds:tabular-nums",
|
|
9925
|
+
children: meta
|
|
9926
|
+
}
|
|
9927
|
+
)
|
|
9928
|
+
]
|
|
9929
|
+
}
|
|
9930
|
+
)
|
|
9931
|
+
]
|
|
9932
|
+
}
|
|
9933
|
+
);
|
|
9934
|
+
}
|
|
9717
9935
|
return /* @__PURE__ */ jsxs("li", { ref, className: cn("ds:group/bubble ds:flex ds:gap-2.5", className), ...props, children: [
|
|
9718
9936
|
avatar,
|
|
9719
9937
|
/* @__PURE__ */ jsxs("div", { className: "ds:min-w-0 ds:flex-1", children: [
|
|
@@ -14464,6 +14682,428 @@ function InfoHint({
|
|
|
14464
14682
|
}
|
|
14465
14683
|
);
|
|
14466
14684
|
}
|
|
14685
|
+
var ICON_INK = {
|
|
14686
|
+
neutral: "ds:text-fg-3",
|
|
14687
|
+
brand: "ds:text-brand",
|
|
14688
|
+
success: "ds:text-success-fg",
|
|
14689
|
+
danger: "ds:text-danger-fg"
|
|
14690
|
+
};
|
|
14691
|
+
var ThreadEvent = React30.forwardRef(function ThreadEvent2({ children, icon, intent = "neutral", time, dateTime, as = "div", className, ...props }, ref) {
|
|
14692
|
+
const Root9 = as;
|
|
14693
|
+
return /* @__PURE__ */ jsxs(
|
|
14694
|
+
Root9,
|
|
14695
|
+
{
|
|
14696
|
+
ref,
|
|
14697
|
+
...slot(threadEventAnatomy, "root"),
|
|
14698
|
+
"data-intent": intent,
|
|
14699
|
+
className: cn(
|
|
14700
|
+
"ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-x-1.5 ds:gap-y-0.5 ds:py-1 ds:text-center",
|
|
14701
|
+
className
|
|
14702
|
+
),
|
|
14703
|
+
...props,
|
|
14704
|
+
children: [
|
|
14705
|
+
icon && /* @__PURE__ */ jsx(
|
|
14706
|
+
"span",
|
|
14707
|
+
{
|
|
14708
|
+
...slot(threadEventAnatomy, "icon"),
|
|
14709
|
+
"aria-hidden": "true",
|
|
14710
|
+
className: cn("ds:inline-flex ds:shrink-0 ds:[&_svg]:size-3.5", ICON_INK[intent]),
|
|
14711
|
+
children: icon
|
|
14712
|
+
}
|
|
14713
|
+
),
|
|
14714
|
+
/* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", ...slot(threadEventAnatomy, "label"), children }),
|
|
14715
|
+
time && /* @__PURE__ */ jsx(Text, { size: "helper", color: "subtle", numeric: true, asChild: true, children: /* @__PURE__ */ jsx("time", { ...slot(threadEventAnatomy, "time"), dateTime, children: time }) })
|
|
14716
|
+
]
|
|
14717
|
+
}
|
|
14718
|
+
);
|
|
14719
|
+
});
|
|
14720
|
+
ThreadEvent.displayName = "ThreadEvent";
|
|
14721
|
+
var ThreadDivider = React30.forwardRef(
|
|
14722
|
+
function ThreadDivider2({ label, dateTime, action, as = "div", className, ...props }, ref) {
|
|
14723
|
+
const Root9 = as;
|
|
14724
|
+
const text = /* @__PURE__ */ jsx(Text, { size: "helper", weight: "medium", color: "muted", numeric: true, asChild: true, children: dateTime ? /* @__PURE__ */ jsx("time", { dateTime, children: label }) : /* @__PURE__ */ jsx("span", { children: label }) });
|
|
14725
|
+
return /* @__PURE__ */ jsxs(
|
|
14726
|
+
Root9,
|
|
14727
|
+
{
|
|
14728
|
+
ref,
|
|
14729
|
+
...slot(threadDividerAnatomy, "root"),
|
|
14730
|
+
className: cn("ds:flex ds:items-center ds:gap-3 ds:py-2", className),
|
|
14731
|
+
...props,
|
|
14732
|
+
children: [
|
|
14733
|
+
/* @__PURE__ */ jsx(Separator2, { ...slot(threadDividerAnatomy, "rule"), className: "ds:flex-1" }),
|
|
14734
|
+
/* @__PURE__ */ jsx("span", { ...slot(threadDividerAnatomy, "label"), className: "ds:inline-flex ds:shrink-0", children: action ? action(text) : text }),
|
|
14735
|
+
/* @__PURE__ */ jsx(Separator2, { ...slot(threadDividerAnatomy, "rule"), className: "ds:flex-1" })
|
|
14736
|
+
]
|
|
14737
|
+
}
|
|
14738
|
+
);
|
|
14739
|
+
}
|
|
14740
|
+
);
|
|
14741
|
+
ThreadDivider.displayName = "ThreadDivider";
|
|
14742
|
+
var ConversationRow = React30.forwardRef(
|
|
14743
|
+
function ConversationRow2({
|
|
14744
|
+
title,
|
|
14745
|
+
marker,
|
|
14746
|
+
leading,
|
|
14747
|
+
meta,
|
|
14748
|
+
metaIcon,
|
|
14749
|
+
preview,
|
|
14750
|
+
time,
|
|
14751
|
+
dateTime,
|
|
14752
|
+
status,
|
|
14753
|
+
unread = false,
|
|
14754
|
+
unreadLabel,
|
|
14755
|
+
selected = false,
|
|
14756
|
+
selection,
|
|
14757
|
+
actions,
|
|
14758
|
+
onSelect,
|
|
14759
|
+
pressed,
|
|
14760
|
+
as = "div",
|
|
14761
|
+
className,
|
|
14762
|
+
...props
|
|
14763
|
+
}, ref) {
|
|
14764
|
+
const Root9 = as;
|
|
14765
|
+
const hasAside = time != null || status != null;
|
|
14766
|
+
return /* @__PURE__ */ jsxs(
|
|
14767
|
+
Root9,
|
|
14768
|
+
{
|
|
14769
|
+
ref,
|
|
14770
|
+
...slot(conversationRowAnatomy, "root"),
|
|
14771
|
+
"data-selected": selected ? "" : void 0,
|
|
14772
|
+
"data-unread": unread ? "" : void 0,
|
|
14773
|
+
className: cn(
|
|
14774
|
+
"ds:group/row ds:relative ds:border-b ds:border-rule ds:transition-colors ds:duration-[var(--motion-duration-feedback)] ds:motion-reduce:transition-none",
|
|
14775
|
+
selected ? "ds:bg-bg-2" : "ds:hover:bg-surface-hover",
|
|
14776
|
+
className
|
|
14777
|
+
),
|
|
14778
|
+
...props,
|
|
14779
|
+
children: [
|
|
14780
|
+
/* @__PURE__ */ jsx(
|
|
14781
|
+
"span",
|
|
14782
|
+
{
|
|
14783
|
+
...slot(conversationRowAnatomy, "indicator"),
|
|
14784
|
+
"aria-hidden": "true",
|
|
14785
|
+
className: cn(
|
|
14786
|
+
"ds:absolute ds:inset-y-0 ds:left-0 ds:w-1 ds:origin-top ds:rounded-r-full ds:bg-brand ds:transition-transform ds:duration-[var(--motion-duration-feedback)] ds:motion-reduce:transition-none",
|
|
14787
|
+
selected ? "ds:scale-y-100" : "ds:scale-y-0"
|
|
14788
|
+
)
|
|
14789
|
+
}
|
|
14790
|
+
),
|
|
14791
|
+
selection != null && /* @__PURE__ */ jsx(
|
|
14792
|
+
"span",
|
|
14793
|
+
{
|
|
14794
|
+
...slot(conversationRowAnatomy, "selection"),
|
|
14795
|
+
className: "ds:absolute ds:top-1/2 ds:left-3 ds:flex ds:-translate-y-1/2",
|
|
14796
|
+
children: selection
|
|
14797
|
+
}
|
|
14798
|
+
),
|
|
14799
|
+
/* @__PURE__ */ jsx(
|
|
14800
|
+
Pressable,
|
|
14801
|
+
{
|
|
14802
|
+
...slot(conversationRowAnatomy, "open"),
|
|
14803
|
+
onClick: onSelect,
|
|
14804
|
+
pressed,
|
|
14805
|
+
"aria-current": selected && pressed === void 0 ? "true" : void 0,
|
|
14806
|
+
className: cn(
|
|
14807
|
+
"ds:block ds:w-full ds:py-2.5 ds:pr-3 ds:text-left",
|
|
14808
|
+
selection != null ? "ds:pl-10" : "ds:pl-3"
|
|
14809
|
+
),
|
|
14810
|
+
children: /* @__PURE__ */ jsxs("span", { className: "ds:flex ds:items-start ds:gap-3", children: [
|
|
14811
|
+
leading != null && /* @__PURE__ */ jsx("span", { ...slot(conversationRowAnatomy, "leading"), className: "ds:mt-0.5 ds:flex ds:shrink-0", children: leading }),
|
|
14812
|
+
/* @__PURE__ */ jsxs("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-0.5", children: [
|
|
14813
|
+
/* @__PURE__ */ jsxs("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-1.5", children: [
|
|
14814
|
+
unread && /* @__PURE__ */ jsxs("span", { ...slot(conversationRowAnatomy, "unread"), className: "ds:flex ds:shrink-0", children: [
|
|
14815
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ds:bg-brand ds:size-2 ds:rounded-full" }),
|
|
14816
|
+
unreadLabel && /* @__PURE__ */ jsx("span", { className: "ds:sr-only", children: unreadLabel })
|
|
14817
|
+
] }),
|
|
14818
|
+
marker != null && /* @__PURE__ */ jsx(
|
|
14819
|
+
"span",
|
|
14820
|
+
{
|
|
14821
|
+
...slot(conversationRowAnatomy, "marker"),
|
|
14822
|
+
className: "ds:flex ds:shrink-0 ds:[&_svg]:size-3.5",
|
|
14823
|
+
children: marker
|
|
14824
|
+
}
|
|
14825
|
+
),
|
|
14826
|
+
/* @__PURE__ */ jsx(
|
|
14827
|
+
Text,
|
|
14828
|
+
{
|
|
14829
|
+
...slot(conversationRowAnatomy, "title"),
|
|
14830
|
+
size: "body-sm",
|
|
14831
|
+
weight: "semibold",
|
|
14832
|
+
truncate: true,
|
|
14833
|
+
className: "ds:min-w-0",
|
|
14834
|
+
children: title
|
|
14835
|
+
}
|
|
14836
|
+
)
|
|
14837
|
+
] }),
|
|
14838
|
+
meta != null && /* @__PURE__ */ jsxs(
|
|
14839
|
+
"span",
|
|
14840
|
+
{
|
|
14841
|
+
...slot(conversationRowAnatomy, "meta"),
|
|
14842
|
+
className: "ds:text-fg-3 ds:flex ds:min-w-0 ds:items-center ds:gap-1 ds:[&_svg]:size-3.5 ds:[&_svg]:shrink-0",
|
|
14843
|
+
children: [
|
|
14844
|
+
metaIcon != null && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ds:flex ds:shrink-0", children: metaIcon }),
|
|
14845
|
+
/* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", truncate: true, className: "ds:min-w-0", children: meta })
|
|
14846
|
+
]
|
|
14847
|
+
}
|
|
14848
|
+
),
|
|
14849
|
+
preview != null && /* @__PURE__ */ jsx(
|
|
14850
|
+
Text,
|
|
14851
|
+
{
|
|
14852
|
+
...slot(conversationRowAnatomy, "preview"),
|
|
14853
|
+
size: "helper",
|
|
14854
|
+
color: "muted",
|
|
14855
|
+
truncate: true,
|
|
14856
|
+
className: "ds:min-w-0",
|
|
14857
|
+
children: preview
|
|
14858
|
+
}
|
|
14859
|
+
)
|
|
14860
|
+
] }),
|
|
14861
|
+
hasAside && /* @__PURE__ */ jsxs(
|
|
14862
|
+
"span",
|
|
14863
|
+
{
|
|
14864
|
+
...slot(conversationRowAnatomy, "aside"),
|
|
14865
|
+
className: "ds:flex ds:shrink-0 ds:flex-col ds:items-end ds:gap-2",
|
|
14866
|
+
children: [
|
|
14867
|
+
time != null && /* @__PURE__ */ jsxs(
|
|
14868
|
+
"span",
|
|
14869
|
+
{
|
|
14870
|
+
className: cn(
|
|
14871
|
+
"ds:text-fg-3 ds:flex ds:items-center ds:gap-1",
|
|
14872
|
+
actions != null && "ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover/row:opacity-0 ds:group-focus-within/row:opacity-0"
|
|
14873
|
+
),
|
|
14874
|
+
children: [
|
|
14875
|
+
/* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true", className: "ds:size-3" }),
|
|
14876
|
+
/* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", numeric: true, asChild: true, children: /* @__PURE__ */ jsx("time", { ...slot(conversationRowAnatomy, "time"), dateTime, children: time }) })
|
|
14877
|
+
]
|
|
14878
|
+
}
|
|
14879
|
+
),
|
|
14880
|
+
status != null && /* @__PURE__ */ jsx("span", { ...slot(conversationRowAnatomy, "status"), className: "ds:flex", children: status })
|
|
14881
|
+
]
|
|
14882
|
+
}
|
|
14883
|
+
)
|
|
14884
|
+
] })
|
|
14885
|
+
}
|
|
14886
|
+
),
|
|
14887
|
+
actions != null && /* @__PURE__ */ jsx(
|
|
14888
|
+
"span",
|
|
14889
|
+
{
|
|
14890
|
+
...slot(conversationRowAnatomy, "actions"),
|
|
14891
|
+
className: "ds:absolute ds:top-2 ds:right-1.5 ds:flex ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:focus-within:opacity-100 ds:group-hover/row:opacity-100",
|
|
14892
|
+
children: actions
|
|
14893
|
+
}
|
|
14894
|
+
)
|
|
14895
|
+
]
|
|
14896
|
+
}
|
|
14897
|
+
);
|
|
14898
|
+
}
|
|
14899
|
+
);
|
|
14900
|
+
ConversationRow.displayName = "ConversationRow";
|
|
14901
|
+
var META_TEXT = "ds:text-fg-3 ds:inline-flex ds:min-w-0 ds:items-center ds:gap-1.5 ds:[&_svg]:size-3.5 ds:[&_svg]:shrink-0";
|
|
14902
|
+
var META_PRESSABLE = "ds:rounded-badge ds:transition-colors ds:motion-reduce:transition-none ds:hover:text-fg-2";
|
|
14903
|
+
var META_LINK = "ds:underline ds:decoration-fg-4 ds:underline-offset-2";
|
|
14904
|
+
function MetaContent({
|
|
14905
|
+
icon,
|
|
14906
|
+
label,
|
|
14907
|
+
interactive = false
|
|
14908
|
+
}) {
|
|
14909
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14910
|
+
icon != null && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ds:flex ds:shrink-0", children: icon }),
|
|
14911
|
+
/* @__PURE__ */ jsx(Text, { size: "helper", truncate: true, className: cn("ds:min-w-0", interactive && META_LINK), children: label })
|
|
14912
|
+
] });
|
|
14913
|
+
}
|
|
14914
|
+
function MetaItem({ item }) {
|
|
14915
|
+
if (item.detail != null) {
|
|
14916
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
14917
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Pressable, { className: cn(META_TEXT, META_PRESSABLE), children: /* @__PURE__ */ jsx(MetaContent, { icon: item.icon, label: item.label, interactive: true }) }) }),
|
|
14918
|
+
/* @__PURE__ */ jsx(PopoverContent, { align: "start", width: "lg", padding: "none", children: item.detail })
|
|
14919
|
+
] });
|
|
14920
|
+
}
|
|
14921
|
+
if (item.onSelect) {
|
|
14922
|
+
return /* @__PURE__ */ jsx(Pressable, { onClick: item.onSelect, className: cn(META_TEXT, META_PRESSABLE), children: /* @__PURE__ */ jsx(MetaContent, { icon: item.icon, label: item.label, interactive: true }) });
|
|
14923
|
+
}
|
|
14924
|
+
return /* @__PURE__ */ jsx("span", { className: META_TEXT, children: /* @__PURE__ */ jsx(MetaContent, { icon: item.icon, label: item.label }) });
|
|
14925
|
+
}
|
|
14926
|
+
var ConversationHeader = React30.forwardRef(
|
|
14927
|
+
function ConversationHeader2({
|
|
14928
|
+
title,
|
|
14929
|
+
headingLevel = 2,
|
|
14930
|
+
badge,
|
|
14931
|
+
avatar,
|
|
14932
|
+
meta,
|
|
14933
|
+
actions,
|
|
14934
|
+
secondaryActions,
|
|
14935
|
+
back,
|
|
14936
|
+
embedded = false,
|
|
14937
|
+
className,
|
|
14938
|
+
...props
|
|
14939
|
+
}, ref) {
|
|
14940
|
+
const hasAside = actions != null || secondaryActions != null;
|
|
14941
|
+
return /* @__PURE__ */ jsxs(
|
|
14942
|
+
"header",
|
|
14943
|
+
{
|
|
14944
|
+
ref,
|
|
14945
|
+
...slot(conversationHeaderAnatomy, "root"),
|
|
14946
|
+
"data-embedded": embedded ? "" : void 0,
|
|
14947
|
+
className: cn(
|
|
14948
|
+
"ds:flex ds:items-start ds:gap-3 ds:border-b ds:border-rule ds:bg-surface ds:px-4 ds:py-3",
|
|
14949
|
+
className
|
|
14950
|
+
),
|
|
14951
|
+
...props,
|
|
14952
|
+
children: [
|
|
14953
|
+
back && !embedded && /* @__PURE__ */ jsx("span", { ...slot(conversationHeaderAnatomy, "back"), className: "ds:flex ds:shrink-0", children: /* @__PURE__ */ jsx(
|
|
14954
|
+
IconButton,
|
|
14955
|
+
{
|
|
14956
|
+
label: back.label,
|
|
14957
|
+
variant: "ghost",
|
|
14958
|
+
intent: "neutral",
|
|
14959
|
+
size: "sm",
|
|
14960
|
+
icon: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" }),
|
|
14961
|
+
onClick: back.onBack
|
|
14962
|
+
}
|
|
14963
|
+
) }),
|
|
14964
|
+
avatar != null && !embedded && /* @__PURE__ */ jsx("span", { ...slot(conversationHeaderAnatomy, "avatar"), className: "ds:mt-0.5 ds:flex ds:shrink-0", children: avatar }),
|
|
14965
|
+
/* @__PURE__ */ jsxs("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-1", children: [
|
|
14966
|
+
/* @__PURE__ */ jsxs(
|
|
14967
|
+
"div",
|
|
14968
|
+
{
|
|
14969
|
+
className: cn(
|
|
14970
|
+
"ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-2 ds:gap-y-1",
|
|
14971
|
+
embedded && !badge && "ds:sr-only"
|
|
14972
|
+
),
|
|
14973
|
+
children: [
|
|
14974
|
+
/* @__PURE__ */ jsx(
|
|
14975
|
+
Heading,
|
|
14976
|
+
{
|
|
14977
|
+
...slot(conversationHeaderAnatomy, "title"),
|
|
14978
|
+
level: headingLevel,
|
|
14979
|
+
size: "title-section",
|
|
14980
|
+
className: cn("ds:min-w-0 ds:break-words", embedded && "ds:sr-only"),
|
|
14981
|
+
children: title
|
|
14982
|
+
}
|
|
14983
|
+
),
|
|
14984
|
+
badge != null && /* @__PURE__ */ jsx("span", { ...slot(conversationHeaderAnatomy, "badge"), className: "ds:flex ds:shrink-0", children: badge })
|
|
14985
|
+
]
|
|
14986
|
+
}
|
|
14987
|
+
),
|
|
14988
|
+
meta && meta.length > 0 && /* @__PURE__ */ jsx(
|
|
14989
|
+
"ul",
|
|
14990
|
+
{
|
|
14991
|
+
...slot(conversationHeaderAnatomy, "meta"),
|
|
14992
|
+
className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-3 ds:gap-y-1",
|
|
14993
|
+
children: meta.map((item) => /* @__PURE__ */ jsx(
|
|
14994
|
+
"li",
|
|
14995
|
+
{
|
|
14996
|
+
...slot(conversationHeaderAnatomy, "meta-item"),
|
|
14997
|
+
className: "ds:flex ds:min-w-0 ds:items-center",
|
|
14998
|
+
children: /* @__PURE__ */ jsx(MetaItem, { item })
|
|
14999
|
+
},
|
|
15000
|
+
item.id
|
|
15001
|
+
))
|
|
15002
|
+
}
|
|
15003
|
+
)
|
|
15004
|
+
] }),
|
|
15005
|
+
hasAside && /* @__PURE__ */ jsxs(
|
|
15006
|
+
"div",
|
|
15007
|
+
{
|
|
15008
|
+
...slot(conversationHeaderAnatomy, "aside"),
|
|
15009
|
+
className: "ds:flex ds:shrink-0 ds:flex-col ds:items-end ds:gap-2",
|
|
15010
|
+
children: [
|
|
15011
|
+
actions != null && /* @__PURE__ */ jsx("div", { ...slot(conversationHeaderAnatomy, "actions"), className: "ds:flex ds:items-center ds:gap-1.5", children: actions }),
|
|
15012
|
+
secondaryActions != null && /* @__PURE__ */ jsx(
|
|
15013
|
+
"div",
|
|
15014
|
+
{
|
|
15015
|
+
...slot(conversationHeaderAnatomy, "secondary-actions"),
|
|
15016
|
+
className: "ds:flex ds:items-center ds:gap-1.5",
|
|
15017
|
+
children: secondaryActions
|
|
15018
|
+
}
|
|
15019
|
+
)
|
|
15020
|
+
]
|
|
15021
|
+
}
|
|
15022
|
+
)
|
|
15023
|
+
]
|
|
15024
|
+
}
|
|
15025
|
+
);
|
|
15026
|
+
}
|
|
15027
|
+
);
|
|
15028
|
+
ConversationHeader.displayName = "ConversationHeader";
|
|
15029
|
+
var ICON = "ds:flex ds:shrink-0 ds:[&_svg]:size-3.5";
|
|
15030
|
+
var PeopleList = React30.forwardRef(function PeopleList2({ title, titleIcon, description, sections, footer, footerIcon, className, ...props }, ref) {
|
|
15031
|
+
const baseId = React30.useId();
|
|
15032
|
+
return /* @__PURE__ */ jsxs(
|
|
15033
|
+
"div",
|
|
15034
|
+
{
|
|
15035
|
+
ref,
|
|
15036
|
+
...slot(peopleListAnatomy, "root"),
|
|
15037
|
+
className: cn("ds:flex ds:w-full ds:flex-col ds:text-left", className),
|
|
15038
|
+
...props,
|
|
15039
|
+
children: [
|
|
15040
|
+
(title != null || description != null) && /* @__PURE__ */ jsxs("div", { ...slot(peopleListAnatomy, "header"), className: "ds:flex ds:flex-col ds:gap-0.5 ds:px-4 ds:pt-3 ds:pb-2.5", children: [
|
|
15041
|
+
title != null && /* @__PURE__ */ jsxs("span", { ...slot(peopleListAnatomy, "title"), className: "ds:text-fg ds:flex ds:items-center ds:gap-2", children: [
|
|
15042
|
+
titleIcon != null && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: ICON, children: titleIcon }),
|
|
15043
|
+
/* @__PURE__ */ jsx(Text, { size: "body-sm", weight: "semibold", children: title })
|
|
15044
|
+
] }),
|
|
15045
|
+
description != null && /* @__PURE__ */ jsx(Text, { ...slot(peopleListAnatomy, "description"), size: "helper", color: "muted", children: description })
|
|
15046
|
+
] }),
|
|
15047
|
+
sections.map((section) => {
|
|
15048
|
+
const labelId = `${baseId}-${section.id}`;
|
|
15049
|
+
return /* @__PURE__ */ jsxs(
|
|
15050
|
+
"section",
|
|
15051
|
+
{
|
|
15052
|
+
...slot(peopleListAnatomy, "section"),
|
|
15053
|
+
"aria-labelledby": labelId,
|
|
15054
|
+
className: "ds:border-t ds:border-rule ds:px-4 ds:py-2",
|
|
15055
|
+
children: [
|
|
15056
|
+
/* @__PURE__ */ jsxs(
|
|
15057
|
+
"div",
|
|
15058
|
+
{
|
|
15059
|
+
...slot(peopleListAnatomy, "section-header"),
|
|
15060
|
+
className: "ds:text-fg-3 ds:flex ds:items-center ds:gap-2 ds:py-1",
|
|
15061
|
+
children: [
|
|
15062
|
+
section.icon != null && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: ICON, children: section.icon }),
|
|
15063
|
+
/* @__PURE__ */ jsx(Text, { id: labelId, size: "overline", color: "muted", truncate: true, className: "ds:min-w-0", children: section.label }),
|
|
15064
|
+
section.count != null && /* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", numeric: true, className: "ds:ml-auto ds:shrink-0", children: section.count })
|
|
15065
|
+
]
|
|
15066
|
+
}
|
|
15067
|
+
),
|
|
15068
|
+
/* @__PURE__ */ jsx("ul", { className: "ds:flex ds:flex-col", children: section.people.map((person) => /* @__PURE__ */ jsxs(
|
|
15069
|
+
"li",
|
|
15070
|
+
{
|
|
15071
|
+
...slot(peopleListAnatomy, "person"),
|
|
15072
|
+
className: "ds:flex ds:items-center ds:gap-2.5 ds:py-1.5",
|
|
15073
|
+
children: [
|
|
15074
|
+
person.avatar != null && /* @__PURE__ */ jsx("span", { className: "ds:flex ds:shrink-0", children: person.avatar }),
|
|
15075
|
+
/* @__PURE__ */ jsxs("span", { className: "ds:flex ds:min-w-0 ds:flex-col", children: [
|
|
15076
|
+
/* @__PURE__ */ jsxs("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-1.5", children: [
|
|
15077
|
+
/* @__PURE__ */ jsx(Text, { size: "body-sm", weight: "medium", truncate: true, className: "ds:min-w-0", children: person.name }),
|
|
15078
|
+
person.tag
|
|
15079
|
+
] }),
|
|
15080
|
+
person.detail != null && /* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", children: person.detail })
|
|
15081
|
+
] })
|
|
15082
|
+
]
|
|
15083
|
+
},
|
|
15084
|
+
person.id
|
|
15085
|
+
)) })
|
|
15086
|
+
]
|
|
15087
|
+
},
|
|
15088
|
+
section.id
|
|
15089
|
+
);
|
|
15090
|
+
}),
|
|
15091
|
+
footer != null && /* @__PURE__ */ jsxs(
|
|
15092
|
+
"div",
|
|
15093
|
+
{
|
|
15094
|
+
...slot(peopleListAnatomy, "footer"),
|
|
15095
|
+
className: "ds:text-fg-3 ds:flex ds:items-start ds:gap-2 ds:border-t ds:border-rule ds:bg-bg-2 ds:px-4 ds:py-2.5",
|
|
15096
|
+
children: [
|
|
15097
|
+
footerIcon != null && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(ICON, "ds:mt-0.5"), children: footerIcon }),
|
|
15098
|
+
/* @__PURE__ */ jsx(Text, { size: "helper", color: "muted", children: footer })
|
|
15099
|
+
]
|
|
15100
|
+
}
|
|
15101
|
+
)
|
|
15102
|
+
]
|
|
15103
|
+
}
|
|
15104
|
+
);
|
|
15105
|
+
});
|
|
15106
|
+
PeopleList.displayName = "PeopleList";
|
|
14467
15107
|
var ROW_CLASSES = "ds:w-full ds:justify-start";
|
|
14468
15108
|
function PeoplePicker(props) {
|
|
14469
15109
|
const {
|
|
@@ -14585,6 +15225,6 @@ function useTableDensity(options) {
|
|
|
14585
15225
|
return { density, setDensity };
|
|
14586
15226
|
}
|
|
14587
15227
|
|
|
14588
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityEventItem, ActivityItem, ActivityList, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppHeader, AppHeaderActions, AppHeaderBreadcrumb, AppHeaderSearch, AppHeaderTitle, AppSidebar, AppSidebarNav, AreaChart, AspectRatio, AttachmentChip, AvatarGroup, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BulkActionBar, BulkActionBarAction, BulkActionBarMenu, BulkActionBarMenuItem, BulkActionBarMenuRadioGroup, BulkActionBarMenuSub, BulkActionBarMore, BulkActionBarPicker, BulkActionBarSeparator, COUNTRY_CODES, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Code, CommandPalette, ConfirmActionButton, ConfirmDialog, ConfirmHost, Content6 as Content, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CountryFlag2 as CountryFlag, CountrySelect, DATE_DISPLAY_PLACEHOLDER, DEFAULT_PHONE_FIELD_MESSAGES, DangerAction, DataItem, DataTablePattern, DatePicker, DateRangePicker, DesignSystemProvider, DetailGrid, DetailMain, DetailSpine, DetailSpineHeader, DetailSpineSection, DetailSpineStats, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DismissibleChip, DisplayMenu, DonutChart, EmptyState, ErrorState, Eyebrow, Field, FieldControl, FieldDescription, FieldError, Fieldset, FieldsetLegend, FileTypeBadge, FilterChip, FilterChips, FolderTree, FormError, FormSection, FormSuccess, Heading, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, ICON_TILE_TONE_TO_INTENT, IconAction, IconTile, InfoHint, Inline, Kanban, KanbanCard, KanbanColumn, Kbd, KbdHint, KeyboardShortcutsDialog, KpiCard, Label2 as Label, LinkAction, LinkButton, ListPage, ListPageResultCount, ListPageScroll, ListPageTable, ListPageToolbar, LoadingRows, Main, MasterDetailLayout, MessageBubble, MessageBubbleAction, MessageBubbleTombstone, MessageComposer, MetadataGrid, MultiFilterPill, MultiSelect, MultiSelectField, MutedSpec, NotificationFilter, NotificationItem, NotificationList, NotificationPanel, NotificationPanelFooter, NotificationPanelHeader, NumberInput, Numeric, OTPInput, PageHeader, PageHeaderSep, PageHeaderSpec, PdfPreview, PeoplePicker, PhoneCountryInput, PhoneField, PhoneInput, PrimaryAction, PriorityIcon, QuestionnairePanel, RadioGroup2 as RadioGroup, RadioGroupItem, RankedBars, ResponsiveDialog, RouteTransition, ScrollArea, ScrollBar, SearchInput, SearchSelect, SecondaryAction, SectionCard, SegmentedControl, SelectableKpiCard, Separator2 as Separator, Shell, SideDrawer, Slider, SpreadsheetPreview, Stack, StackedBarChart, StarRating, StatStrip, StatStripItem, StatusBadge, StatusIcon, Stepper, StickyActionBar, StickyStack, StickyStackLayer, StickyStackSectionHeader, StickyStackSticky, SubmitButton, SuiteProgress, Surface, TableDensityToggle, TableEmpty, TableError, TableLoading, Text, ToastProvider, Toolbar, YEAR_DISPLAY_PLACEHOLDER, alertVariants, applyMask, applyYearMask, attachmentChipVariants, cardVariants, dateToIso, defineStatusMap, detectDisplayMenuDatePreset, displayToIso, fileTypeBadgeVariants, fileTypeFromName, filterChipVariants, getFlagEmoji, resolveIconTileVariants as iconTileVariants, isDisplayMenuSectionActive, isoToDate, isoToDisplay, isoToYear, labelVariants, matchesDisplayMenuDate, matchesDisplayMenuNumber, matchesDisplayMenuOperator, matchesDisplayMenuTags, matchesDisplayMenuText, parseDisplayMenuNumber, parsePhoneForEditing, resolveDisplayMenuDatePreset, searchInputVariants, sharedBulkValue, starRatingVariants, suiteProgressFillVariants, summarizeDisplayMenuSection, useConfirm, useDisplayMenuFilterChips, usePrompt, useTableDensity, useToast, yearToIso };
|
|
15228
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityEventItem, ActivityItem, ActivityList, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppHeader, AppHeaderActions, AppHeaderBreadcrumb, AppHeaderSearch, AppHeaderTitle, AppSidebar, AppSidebarNav, AreaChart, AspectRatio, AttachmentChip, AvatarGroup, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BulkActionBar, BulkActionBarAction, BulkActionBarMenu, BulkActionBarMenuItem, BulkActionBarMenuRadioGroup, BulkActionBarMenuSub, BulkActionBarMore, BulkActionBarPicker, BulkActionBarSeparator, COUNTRY_CODES, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Code, CommandPalette, ConfirmActionButton, ConfirmDialog, ConfirmHost, Content6 as Content, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationHeader, ConversationRow, CopyButton, CountryFlag2 as CountryFlag, CountrySelect, DATE_DISPLAY_PLACEHOLDER, DEFAULT_PHONE_FIELD_MESSAGES, DangerAction, DataItem, DataTablePattern, DatePicker, DateRangePicker, DesignSystemProvider, DetailGrid, DetailMain, DetailSpine, DetailSpineHeader, DetailSpineSection, DetailSpineStats, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DismissibleChip, DisplayMenu, DonutChart, EmptyState, ErrorState, Eyebrow, Field, FieldControl, FieldDescription, FieldError, Fieldset, FieldsetLegend, FileTypeBadge, FilterChip, FilterChips, FolderTree, FormError, FormSection, FormSuccess, Heading, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, ICON_TILE_TONE_TO_INTENT, IconAction, IconTile, InfoHint, Inline, Kanban, KanbanCard, KanbanColumn, Kbd, KbdHint, KeyboardShortcutsDialog, KpiCard, Label2 as Label, LinkAction, LinkButton, ListPage, ListPageResultCount, ListPageScroll, ListPageTable, ListPageToolbar, LoadingRows, Main, MasterDetailLayout, MessageBubble, MessageBubbleAction, MessageBubbleTombstone, MessageComposer, MetadataGrid, MultiFilterPill, MultiSelect, MultiSelectField, MutedSpec, NotificationFilter, NotificationItem, NotificationList, NotificationPanel, NotificationPanelFooter, NotificationPanelHeader, NumberInput, Numeric, OTPInput, PageHeader, PageHeaderSep, PageHeaderSpec, PdfPreview, PeopleList, PeoplePicker, PhoneCountryInput, PhoneField, PhoneInput, PrimaryAction, PriorityIcon, QuestionnairePanel, RadioGroup2 as RadioGroup, RadioGroupItem, RankedBars, ResponsiveDialog, RouteTransition, ScrollArea, ScrollBar, SearchInput, SearchSelect, SecondaryAction, SectionCard, SegmentedControl, SelectableKpiCard, Separator2 as Separator, Shell, SideDrawer, Slider, SpreadsheetPreview, Stack, StackedBarChart, StarRating, StatStrip, StatStripItem, StatusBadge, StatusIcon, Stepper, StickyActionBar, StickyStack, StickyStackLayer, StickyStackSectionHeader, StickyStackSticky, SubmitButton, SuiteProgress, Surface, TableDensityToggle, TableEmpty, TableError, TableLoading, Text, ThreadDivider, ThreadEvent, ToastProvider, Toolbar, YEAR_DISPLAY_PLACEHOLDER, alertVariants, applyMask, applyYearMask, attachmentChipVariants, cardVariants, dateToIso, defineStatusMap, detectDisplayMenuDatePreset, displayToIso, fileTypeBadgeVariants, fileTypeFromName, filterChipVariants, getFlagEmoji, resolveIconTileVariants as iconTileVariants, isDisplayMenuSectionActive, isoToDate, isoToDisplay, isoToYear, labelVariants, matchesDisplayMenuDate, matchesDisplayMenuNumber, matchesDisplayMenuOperator, matchesDisplayMenuTags, matchesDisplayMenuText, parseDisplayMenuNumber, parsePhoneForEditing, resolveDisplayMenuDatePreset, searchInputVariants, sharedBulkValue, starRatingVariants, suiteProgressFillVariants, summarizeDisplayMenuSection, useConfirm, useDisplayMenuFilterChips, usePrompt, useTableDensity, useToast, yearToIso };
|
|
14589
15229
|
//# sourceMappingURL=index.js.map
|
|
14590
15230
|
//# sourceMappingURL=index.js.map
|