@proteos/ui 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.cjs +605 -60
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +174 -7
  4. package/dist/index.d.ts +174 -7
  5. package/dist/index.js +601 -64
  6. package/dist/index.js.map +1 -1
  7. package/package.json +2 -2
  8. package/src/components/attribute-type-icon/attribute-type-icon.tsx +5 -0
  9. package/src/components/avatar/avatar.stories.tsx +37 -1
  10. package/src/components/avatar/avatar.test.tsx +42 -0
  11. package/src/components/avatar/avatar.tsx +39 -4
  12. package/src/components/avatar-group/avatar-group.test.tsx +19 -0
  13. package/src/components/avatar-group/avatar-group.tsx +18 -3
  14. package/src/components/badge/badge.stories.tsx +27 -1
  15. package/src/components/badge/badge.test.tsx +26 -0
  16. package/src/components/badge/badge.tsx +48 -4
  17. package/src/components/badge-multi-select/badge-multi-select.stories.tsx +24 -0
  18. package/src/components/badge-multi-select/badge-multi-select.tsx +25 -4
  19. package/src/components/color-input/color-input.stories.tsx +72 -0
  20. package/src/components/color-input/color-input.test.tsx +95 -0
  21. package/src/components/color-input/color-input.tsx +208 -0
  22. package/src/components/color-input/index.ts +2 -0
  23. package/src/components/draft-message-composer/draft-message-composer.stories.tsx +1 -1
  24. package/src/components/icon-picker/icon-picker.stories.tsx +77 -0
  25. package/src/components/icon-picker/icon-picker.test.tsx +88 -0
  26. package/src/components/icon-picker/icon-picker.tsx +336 -0
  27. package/src/components/icon-picker/index.ts +2 -0
  28. package/src/components/record-filter/chip-value.tsx +10 -3
  29. package/src/components/record-filter/filter-value-input.tsx +12 -2
  30. package/src/components/record-filter/operators.ts +6 -6
  31. package/src/components/record-filter/record-filter.stories.tsx +1 -1
  32. package/src/components/record-filter/types.ts +4 -0
  33. package/src/components/table/table.stories.tsx +12 -13
  34. package/src/components/toast/index.ts +9 -0
  35. package/src/components/toast/toast.stories.tsx +58 -0
  36. package/src/components/toast/toast.test.tsx +34 -0
  37. package/src/components/toast/toast.tsx +121 -0
  38. package/src/index.ts +3 -0
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
3
  import { VariantProps } from 'tailwind-variants';
4
- import { LucideIcon, LucideProps } from 'lucide-react';
4
+ import { LucideIcon, LucideProps, icons } from 'lucide-react';
5
5
  import * as react from 'react';
6
6
  import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, Ref, MouseEvent, KeyboardEvent as KeyboardEvent$1, RefObject, Key as Key$1 } from 'react';
7
7
  import * as react_aria_components from 'react-aria-components';
8
- import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
8
+ import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, ToastOptions as ToastOptions$1, UNSTABLE_ToastQueue, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
9
9
  import { ColumnDef, SortingState, OnChangeFn, Row } from '@tanstack/react-table';
10
10
  import * as tailwind_merge from 'tailwind-merge';
11
11
  import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
@@ -82,6 +82,7 @@ declare const AttributeType: {
82
82
  readonly Object: "object";
83
83
  readonly Relation: "relation";
84
84
  readonly User: "user";
85
+ readonly Principal: "principal";
85
86
  readonly Currency: "currency";
86
87
  readonly KnowledgeText: "knowledge-text";
87
88
  readonly File: "file";
@@ -101,6 +102,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
101
102
  sm: string;
102
103
  md: string;
103
104
  lg: string;
105
+ xl: string;
104
106
  };
105
107
  tone: {
106
108
  paper: string;
@@ -114,6 +116,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
114
116
  sm: string;
115
117
  md: string;
116
118
  lg: string;
119
+ xl: string;
117
120
  };
118
121
  tone: {
119
122
  paper: string;
@@ -127,6 +130,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
127
130
  sm: string;
128
131
  md: string;
129
132
  lg: string;
133
+ xl: string;
130
134
  };
131
135
  tone: {
132
136
  paper: string;
@@ -140,8 +144,15 @@ type AvatarVariants = VariantProps<typeof avatarStyles>;
140
144
  type AvatarProps = HTMLAttributes<HTMLSpanElement> & AvatarVariants & {
141
145
  /** 1–2 character initials. Ignored if `children` is provided. */
142
146
  initials?: string;
147
+ /**
148
+ * Image URL. Rendered over the chip; on load error the chip reverts to
149
+ * `children ?? initials`. `null`/`undefined` = no image.
150
+ */
151
+ src?: string | null;
152
+ /** Alt text for the image. Defaults to empty — the avatar is decorative. */
153
+ alt?: string;
143
154
  };
144
- declare function Avatar({ size, tone, initials, className, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
155
+ declare function Avatar({ size, tone, initials, src, alt, className, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
145
156
 
146
157
  declare const avatarGroupStyles: tailwind_variants.TVReturnType<{
147
158
  size: {
@@ -163,10 +174,13 @@ declare const avatarGroupStyles: tailwind_variants.TVReturnType<{
163
174
  };
164
175
  }, undefined, "flex items-center", unknown, unknown, undefined>>;
165
176
  type AvatarGroupVariants = VariantProps<typeof avatarGroupStyles>;
166
- /** One person in the stack — initials plus an optional tone. */
177
+ /** One person in the stack — initials plus an optional tone and photo. */
167
178
  interface AvatarGroupItem {
168
179
  initials: string;
169
180
  tone?: AvatarVariants['tone'];
181
+ /** Photo URL; falls back to `initials` when absent or failing to load. */
182
+ src?: string | null;
183
+ alt?: string;
170
184
  /** Stable key (e.g. the participant's external id); falls back to the index. */
171
185
  key?: string;
172
186
  }
@@ -185,6 +199,7 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
185
199
  success: string[];
186
200
  warning: string[];
187
201
  danger: string[];
202
+ custom: string[];
188
203
  };
189
204
  }, undefined, string[], {
190
205
  variant: {
@@ -194,6 +209,7 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
194
209
  success: string[];
195
210
  warning: string[];
196
211
  danger: string[];
212
+ custom: string[];
197
213
  };
198
214
  }, undefined, tailwind_variants.TVReturnType<{
199
215
  variant: {
@@ -203,11 +219,17 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
203
219
  success: string[];
204
220
  warning: string[];
205
221
  danger: string[];
222
+ custom: string[];
206
223
  };
207
224
  }, undefined, string[], unknown, unknown, undefined>>;
208
225
  type BadgeVariants = VariantProps<typeof badgeStyles>;
209
- type BadgeProps = HTMLAttributes<HTMLSpanElement> & BadgeVariants;
210
- declare function Badge({ variant, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
226
+ type BadgeProps = HTMLAttributes<HTMLSpanElement> & BadgeVariants & {
227
+ /** `#rrggbb` tint. When set it overrides `variant` with the `custom` register. */
228
+ color?: string;
229
+ /** Lucide icon name (any casing). Replaces the leading dot; unknown names keep the dot. */
230
+ icon?: string;
231
+ };
232
+ declare function Badge({ variant, color, icon, className, style, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
211
233
 
212
234
  declare const fieldControlStyles: tailwind_variants.TVReturnType<{
213
235
  size: {
@@ -323,6 +345,10 @@ type BadgeMultiSelectOption<T extends Key = Key> = {
323
345
  label: string;
324
346
  /** Badge color register. Defaults to `default`. */
325
347
  variant?: BadgeVariants['variant'];
348
+ /** `#rrggbb` tint — overrides `variant` (see Badge). */
349
+ color?: string;
350
+ /** Lucide icon name; replaces the badge dot. */
351
+ icon?: string;
326
352
  isDisabled?: boolean;
327
353
  };
328
354
  type BadgeMultiSelectProps<T extends Key = Key> = {
@@ -512,6 +538,33 @@ type CheckboxGroupProps = Omit<CheckboxGroupProps$1, 'children'> & {
512
538
  };
513
539
  declare function CheckboxGroup({ label, description, errorMessage, children, className, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
514
540
 
541
+ /**
542
+ * Normalizes free-form text to a canonical lowercase `#rrggbb`, or null when
543
+ * it isn't a hex color. Accepts a missing `#` and 3-digit shorthand.
544
+ */
545
+ declare function normalizeHexColor(text: string | null | undefined): string | null;
546
+ type ColorInputProps = {
547
+ label?: ReactNode;
548
+ description?: ReactNode;
549
+ errorMessage?: ReactNode;
550
+ /** Shown while empty. Defaults to a sample hex. */
551
+ placeholder?: string;
552
+ /** Canonical or loose hex; null/'' mean "no color". */
553
+ value: string | null;
554
+ /** Fires with the canonical lowercase `#rrggbb`, or null when cleared. */
555
+ onChange: (hex: string | null) => void;
556
+ isDisabled?: boolean;
557
+ isInvalid?: boolean;
558
+ /** Field size. Defaults to `md`. */
559
+ size?: FieldSize;
560
+ /** Chrome variant. Defaults to `field`. `cell` flattens the box. */
561
+ appearance?: FieldAppearance;
562
+ /** Accessible name when no visible `label` is rendered. */
563
+ 'aria-label'?: string;
564
+ className?: string;
565
+ };
566
+ declare function ColorInput({ label, description, errorMessage, placeholder, value, onChange, isDisabled, isInvalid, size, appearance, 'aria-label': ariaLabel, className, }: ColorInputProps): react_jsx_runtime.JSX.Element;
567
+
515
568
  type ComboboxOption<T extends Key = Key> = {
516
569
  id: T;
517
570
  label: string;
@@ -1497,6 +1550,43 @@ interface FileViewerProps {
1497
1550
  }
1498
1551
  declare function FileViewer({ name, contentType, src, sizeInBytes, heightPx, errorMessage, isOversized, onDownload, className, }: FileViewerProps): react_jsx_runtime.JSX.Element;
1499
1552
 
1553
+ /** Canonical icon names — the keys of lucide's alias-free `icons` record. */
1554
+ type LucideIconName = keyof typeof icons;
1555
+ /**
1556
+ * Resolves a free-form icon name to its Lucide component, or null when it
1557
+ * matches nothing. Null (rather than a baked-in placeholder) so each caller
1558
+ * chooses its own fallback glyph.
1559
+ */
1560
+ declare function resolveLucideIcon(name: string | null | undefined): LucideIcon | null;
1561
+ /** Same resolution, returning the canonical PascalCase name instead. */
1562
+ declare function resolveLucideIconName(name: string | null | undefined): LucideIconName | null;
1563
+ type IconPickerProps = {
1564
+ label?: ReactNode;
1565
+ description?: ReactNode;
1566
+ errorMessage?: ReactNode;
1567
+ /** Trigger text while nothing is chosen. */
1568
+ placeholder?: string;
1569
+ /** Canonical or loose Lucide icon name; null/'' mean "no icon". */
1570
+ value: string | null;
1571
+ /** Fires with the canonical PascalCase name, or null when cleared. */
1572
+ onChange: (name: LucideIconName | null) => void;
1573
+ isDisabled?: boolean;
1574
+ isInvalid?: boolean;
1575
+ /** Offer a clear affordance once a value is set. Default true. */
1576
+ allowClear?: boolean;
1577
+ /** Field size. Defaults to `md`. */
1578
+ size?: FieldSize;
1579
+ /** Chrome variant. Defaults to `field`. `cell` flattens the trigger box. */
1580
+ appearance?: FieldAppearance;
1581
+ /** Square, icon-only trigger (no name, no caret) for dense rows. The
1582
+ * popover is unchanged. Pair with `aria-label` when there's no `label`. */
1583
+ compact?: boolean;
1584
+ /** Accessible name when no visible `label` is rendered. */
1585
+ 'aria-label'?: string;
1586
+ className?: string;
1587
+ };
1588
+ declare function IconPicker({ label, description, errorMessage, placeholder, value, onChange, isDisabled, isInvalid, allowClear, size, appearance, compact, 'aria-label': ariaLabel, className, }: IconPickerProps): react_jsx_runtime.JSX.Element;
1589
+
1500
1590
  declare const imageAttachmentStyles: tailwind_variants.TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
1501
1591
  type ImageAttachmentVariants = VariantProps<typeof imageAttachmentStyles>;
1502
1592
  interface ImageAttachmentProps {
@@ -1913,6 +2003,10 @@ type FilterFieldOption = {
1913
2003
  label: string;
1914
2004
  /** Badge color register, used when this option is rendered as a pill. */
1915
2005
  variant?: BadgeVariants['variant'];
2006
+ /** `#rrggbb` tint — overrides `variant` when the option renders as a pill. */
2007
+ color?: string;
2008
+ /** Lucide icon name shown in place of the pill's dot. */
2009
+ icon?: string;
1916
2010
  };
1917
2011
  type FilterField = {
1918
2012
  /** Dot-path to the attribute, e.g. `'owner.email'`. Stable identifier. */
@@ -2545,6 +2639,79 @@ type TimeFieldProps<T extends TimeValue> = TimeFieldProps$1<T> & {
2545
2639
  };
2546
2640
  declare function TimeField<T extends TimeValue = TimeValue>({ label, description, errorMessage, size, appearance, className, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
2547
2641
 
2642
+ type ToastVariant = 'info' | 'success' | 'danger';
2643
+ /** The payload a caller enqueues. Pure data — the region renders it. */
2644
+ interface ToastContent {
2645
+ title: string;
2646
+ description?: string;
2647
+ variant?: ToastVariant;
2648
+ }
2649
+ type ToastQueue = UNSTABLE_ToastQueue<ToastContent>;
2650
+ type ToastOptions = ToastOptions$1;
2651
+ /** Creates the app-wide queue. `maxVisibleToasts` bounds the on-screen stack. */
2652
+ declare function createToastQueue(options?: {
2653
+ maxVisibleToasts?: number;
2654
+ }): ToastQueue;
2655
+ declare const toastStyles: tailwind_variants.TVReturnType<{
2656
+ variant: {
2657
+ info: {
2658
+ icon: string;
2659
+ };
2660
+ success: {
2661
+ icon: string;
2662
+ };
2663
+ danger: {
2664
+ icon: string;
2665
+ };
2666
+ };
2667
+ }, {
2668
+ root: string[];
2669
+ icon: string;
2670
+ title: string;
2671
+ description: string;
2672
+ }, undefined, {
2673
+ variant: {
2674
+ info: {
2675
+ icon: string;
2676
+ };
2677
+ success: {
2678
+ icon: string;
2679
+ };
2680
+ danger: {
2681
+ icon: string;
2682
+ };
2683
+ };
2684
+ }, {
2685
+ root: string[];
2686
+ icon: string;
2687
+ title: string;
2688
+ description: string;
2689
+ }, tailwind_variants.TVReturnType<{
2690
+ variant: {
2691
+ info: {
2692
+ icon: string;
2693
+ };
2694
+ success: {
2695
+ icon: string;
2696
+ };
2697
+ danger: {
2698
+ icon: string;
2699
+ };
2700
+ };
2701
+ }, {
2702
+ root: string[];
2703
+ icon: string;
2704
+ title: string;
2705
+ description: string;
2706
+ }, undefined, unknown, unknown, undefined>>;
2707
+ type ToastVariants = VariantProps<typeof toastStyles>;
2708
+ interface ToastRegionProps {
2709
+ queue: ToastQueue;
2710
+ className?: string;
2711
+ }
2712
+ /** The single live region that renders queued toasts. */
2713
+ declare function ToastRegion({ queue, className }: ToastRegionProps): react_jsx_runtime.JSX.Element;
2714
+
2548
2715
  /** Stateful root. RAC handles hover delay + focus visibility.
2549
2716
  *
2550
2717
  * - `delay` — ms of hover before the tooltip opens. Keyboard focus opens
@@ -2560,4 +2727,4 @@ declare function Tooltip({ className, offset, ...props }: TooltipProps): react_j
2560
2727
 
2561
2728
  declare function cn(...inputs: ClassValue[]): string;
2562
2729
 
2563
- export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
2730
+ export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, ColorInput, type ColorInputProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, IconPicker, type IconPickerProps, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, type LucideIconName, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, type ToastContent, type ToastOptions, type ToastQueue, ToastRegion, type ToastRegionProps, type ToastVariant, type ToastVariants, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, createToastQueue, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, normalizeHexColor, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, resolveLucideIcon, resolveLucideIconName, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, toastStyles, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
3
  import { VariantProps } from 'tailwind-variants';
4
- import { LucideIcon, LucideProps } from 'lucide-react';
4
+ import { LucideIcon, LucideProps, icons } from 'lucide-react';
5
5
  import * as react from 'react';
6
6
  import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, Ref, MouseEvent, KeyboardEvent as KeyboardEvent$1, RefObject, Key as Key$1 } from 'react';
7
7
  import * as react_aria_components from 'react-aria-components';
8
- import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
8
+ import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, ToastOptions as ToastOptions$1, UNSTABLE_ToastQueue, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
9
9
  import { ColumnDef, SortingState, OnChangeFn, Row } from '@tanstack/react-table';
10
10
  import * as tailwind_merge from 'tailwind-merge';
11
11
  import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
@@ -82,6 +82,7 @@ declare const AttributeType: {
82
82
  readonly Object: "object";
83
83
  readonly Relation: "relation";
84
84
  readonly User: "user";
85
+ readonly Principal: "principal";
85
86
  readonly Currency: "currency";
86
87
  readonly KnowledgeText: "knowledge-text";
87
88
  readonly File: "file";
@@ -101,6 +102,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
101
102
  sm: string;
102
103
  md: string;
103
104
  lg: string;
105
+ xl: string;
104
106
  };
105
107
  tone: {
106
108
  paper: string;
@@ -114,6 +116,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
114
116
  sm: string;
115
117
  md: string;
116
118
  lg: string;
119
+ xl: string;
117
120
  };
118
121
  tone: {
119
122
  paper: string;
@@ -127,6 +130,7 @@ declare const avatarStyles: tailwind_variants.TVReturnType<{
127
130
  sm: string;
128
131
  md: string;
129
132
  lg: string;
133
+ xl: string;
130
134
  };
131
135
  tone: {
132
136
  paper: string;
@@ -140,8 +144,15 @@ type AvatarVariants = VariantProps<typeof avatarStyles>;
140
144
  type AvatarProps = HTMLAttributes<HTMLSpanElement> & AvatarVariants & {
141
145
  /** 1–2 character initials. Ignored if `children` is provided. */
142
146
  initials?: string;
147
+ /**
148
+ * Image URL. Rendered over the chip; on load error the chip reverts to
149
+ * `children ?? initials`. `null`/`undefined` = no image.
150
+ */
151
+ src?: string | null;
152
+ /** Alt text for the image. Defaults to empty — the avatar is decorative. */
153
+ alt?: string;
143
154
  };
144
- declare function Avatar({ size, tone, initials, className, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
155
+ declare function Avatar({ size, tone, initials, src, alt, className, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
145
156
 
146
157
  declare const avatarGroupStyles: tailwind_variants.TVReturnType<{
147
158
  size: {
@@ -163,10 +174,13 @@ declare const avatarGroupStyles: tailwind_variants.TVReturnType<{
163
174
  };
164
175
  }, undefined, "flex items-center", unknown, unknown, undefined>>;
165
176
  type AvatarGroupVariants = VariantProps<typeof avatarGroupStyles>;
166
- /** One person in the stack — initials plus an optional tone. */
177
+ /** One person in the stack — initials plus an optional tone and photo. */
167
178
  interface AvatarGroupItem {
168
179
  initials: string;
169
180
  tone?: AvatarVariants['tone'];
181
+ /** Photo URL; falls back to `initials` when absent or failing to load. */
182
+ src?: string | null;
183
+ alt?: string;
170
184
  /** Stable key (e.g. the participant's external id); falls back to the index. */
171
185
  key?: string;
172
186
  }
@@ -185,6 +199,7 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
185
199
  success: string[];
186
200
  warning: string[];
187
201
  danger: string[];
202
+ custom: string[];
188
203
  };
189
204
  }, undefined, string[], {
190
205
  variant: {
@@ -194,6 +209,7 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
194
209
  success: string[];
195
210
  warning: string[];
196
211
  danger: string[];
212
+ custom: string[];
197
213
  };
198
214
  }, undefined, tailwind_variants.TVReturnType<{
199
215
  variant: {
@@ -203,11 +219,17 @@ declare const badgeStyles: tailwind_variants.TVReturnType<{
203
219
  success: string[];
204
220
  warning: string[];
205
221
  danger: string[];
222
+ custom: string[];
206
223
  };
207
224
  }, undefined, string[], unknown, unknown, undefined>>;
208
225
  type BadgeVariants = VariantProps<typeof badgeStyles>;
209
- type BadgeProps = HTMLAttributes<HTMLSpanElement> & BadgeVariants;
210
- declare function Badge({ variant, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
226
+ type BadgeProps = HTMLAttributes<HTMLSpanElement> & BadgeVariants & {
227
+ /** `#rrggbb` tint. When set it overrides `variant` with the `custom` register. */
228
+ color?: string;
229
+ /** Lucide icon name (any casing). Replaces the leading dot; unknown names keep the dot. */
230
+ icon?: string;
231
+ };
232
+ declare function Badge({ variant, color, icon, className, style, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
211
233
 
212
234
  declare const fieldControlStyles: tailwind_variants.TVReturnType<{
213
235
  size: {
@@ -323,6 +345,10 @@ type BadgeMultiSelectOption<T extends Key = Key> = {
323
345
  label: string;
324
346
  /** Badge color register. Defaults to `default`. */
325
347
  variant?: BadgeVariants['variant'];
348
+ /** `#rrggbb` tint — overrides `variant` (see Badge). */
349
+ color?: string;
350
+ /** Lucide icon name; replaces the badge dot. */
351
+ icon?: string;
326
352
  isDisabled?: boolean;
327
353
  };
328
354
  type BadgeMultiSelectProps<T extends Key = Key> = {
@@ -512,6 +538,33 @@ type CheckboxGroupProps = Omit<CheckboxGroupProps$1, 'children'> & {
512
538
  };
513
539
  declare function CheckboxGroup({ label, description, errorMessage, children, className, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
514
540
 
541
+ /**
542
+ * Normalizes free-form text to a canonical lowercase `#rrggbb`, or null when
543
+ * it isn't a hex color. Accepts a missing `#` and 3-digit shorthand.
544
+ */
545
+ declare function normalizeHexColor(text: string | null | undefined): string | null;
546
+ type ColorInputProps = {
547
+ label?: ReactNode;
548
+ description?: ReactNode;
549
+ errorMessage?: ReactNode;
550
+ /** Shown while empty. Defaults to a sample hex. */
551
+ placeholder?: string;
552
+ /** Canonical or loose hex; null/'' mean "no color". */
553
+ value: string | null;
554
+ /** Fires with the canonical lowercase `#rrggbb`, or null when cleared. */
555
+ onChange: (hex: string | null) => void;
556
+ isDisabled?: boolean;
557
+ isInvalid?: boolean;
558
+ /** Field size. Defaults to `md`. */
559
+ size?: FieldSize;
560
+ /** Chrome variant. Defaults to `field`. `cell` flattens the box. */
561
+ appearance?: FieldAppearance;
562
+ /** Accessible name when no visible `label` is rendered. */
563
+ 'aria-label'?: string;
564
+ className?: string;
565
+ };
566
+ declare function ColorInput({ label, description, errorMessage, placeholder, value, onChange, isDisabled, isInvalid, size, appearance, 'aria-label': ariaLabel, className, }: ColorInputProps): react_jsx_runtime.JSX.Element;
567
+
515
568
  type ComboboxOption<T extends Key = Key> = {
516
569
  id: T;
517
570
  label: string;
@@ -1497,6 +1550,43 @@ interface FileViewerProps {
1497
1550
  }
1498
1551
  declare function FileViewer({ name, contentType, src, sizeInBytes, heightPx, errorMessage, isOversized, onDownload, className, }: FileViewerProps): react_jsx_runtime.JSX.Element;
1499
1552
 
1553
+ /** Canonical icon names — the keys of lucide's alias-free `icons` record. */
1554
+ type LucideIconName = keyof typeof icons;
1555
+ /**
1556
+ * Resolves a free-form icon name to its Lucide component, or null when it
1557
+ * matches nothing. Null (rather than a baked-in placeholder) so each caller
1558
+ * chooses its own fallback glyph.
1559
+ */
1560
+ declare function resolveLucideIcon(name: string | null | undefined): LucideIcon | null;
1561
+ /** Same resolution, returning the canonical PascalCase name instead. */
1562
+ declare function resolveLucideIconName(name: string | null | undefined): LucideIconName | null;
1563
+ type IconPickerProps = {
1564
+ label?: ReactNode;
1565
+ description?: ReactNode;
1566
+ errorMessage?: ReactNode;
1567
+ /** Trigger text while nothing is chosen. */
1568
+ placeholder?: string;
1569
+ /** Canonical or loose Lucide icon name; null/'' mean "no icon". */
1570
+ value: string | null;
1571
+ /** Fires with the canonical PascalCase name, or null when cleared. */
1572
+ onChange: (name: LucideIconName | null) => void;
1573
+ isDisabled?: boolean;
1574
+ isInvalid?: boolean;
1575
+ /** Offer a clear affordance once a value is set. Default true. */
1576
+ allowClear?: boolean;
1577
+ /** Field size. Defaults to `md`. */
1578
+ size?: FieldSize;
1579
+ /** Chrome variant. Defaults to `field`. `cell` flattens the trigger box. */
1580
+ appearance?: FieldAppearance;
1581
+ /** Square, icon-only trigger (no name, no caret) for dense rows. The
1582
+ * popover is unchanged. Pair with `aria-label` when there's no `label`. */
1583
+ compact?: boolean;
1584
+ /** Accessible name when no visible `label` is rendered. */
1585
+ 'aria-label'?: string;
1586
+ className?: string;
1587
+ };
1588
+ declare function IconPicker({ label, description, errorMessage, placeholder, value, onChange, isDisabled, isInvalid, allowClear, size, appearance, compact, 'aria-label': ariaLabel, className, }: IconPickerProps): react_jsx_runtime.JSX.Element;
1589
+
1500
1590
  declare const imageAttachmentStyles: tailwind_variants.TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
1501
1591
  type ImageAttachmentVariants = VariantProps<typeof imageAttachmentStyles>;
1502
1592
  interface ImageAttachmentProps {
@@ -1913,6 +2003,10 @@ type FilterFieldOption = {
1913
2003
  label: string;
1914
2004
  /** Badge color register, used when this option is rendered as a pill. */
1915
2005
  variant?: BadgeVariants['variant'];
2006
+ /** `#rrggbb` tint — overrides `variant` when the option renders as a pill. */
2007
+ color?: string;
2008
+ /** Lucide icon name shown in place of the pill's dot. */
2009
+ icon?: string;
1916
2010
  };
1917
2011
  type FilterField = {
1918
2012
  /** Dot-path to the attribute, e.g. `'owner.email'`. Stable identifier. */
@@ -2545,6 +2639,79 @@ type TimeFieldProps<T extends TimeValue> = TimeFieldProps$1<T> & {
2545
2639
  };
2546
2640
  declare function TimeField<T extends TimeValue = TimeValue>({ label, description, errorMessage, size, appearance, className, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
2547
2641
 
2642
+ type ToastVariant = 'info' | 'success' | 'danger';
2643
+ /** The payload a caller enqueues. Pure data — the region renders it. */
2644
+ interface ToastContent {
2645
+ title: string;
2646
+ description?: string;
2647
+ variant?: ToastVariant;
2648
+ }
2649
+ type ToastQueue = UNSTABLE_ToastQueue<ToastContent>;
2650
+ type ToastOptions = ToastOptions$1;
2651
+ /** Creates the app-wide queue. `maxVisibleToasts` bounds the on-screen stack. */
2652
+ declare function createToastQueue(options?: {
2653
+ maxVisibleToasts?: number;
2654
+ }): ToastQueue;
2655
+ declare const toastStyles: tailwind_variants.TVReturnType<{
2656
+ variant: {
2657
+ info: {
2658
+ icon: string;
2659
+ };
2660
+ success: {
2661
+ icon: string;
2662
+ };
2663
+ danger: {
2664
+ icon: string;
2665
+ };
2666
+ };
2667
+ }, {
2668
+ root: string[];
2669
+ icon: string;
2670
+ title: string;
2671
+ description: string;
2672
+ }, undefined, {
2673
+ variant: {
2674
+ info: {
2675
+ icon: string;
2676
+ };
2677
+ success: {
2678
+ icon: string;
2679
+ };
2680
+ danger: {
2681
+ icon: string;
2682
+ };
2683
+ };
2684
+ }, {
2685
+ root: string[];
2686
+ icon: string;
2687
+ title: string;
2688
+ description: string;
2689
+ }, tailwind_variants.TVReturnType<{
2690
+ variant: {
2691
+ info: {
2692
+ icon: string;
2693
+ };
2694
+ success: {
2695
+ icon: string;
2696
+ };
2697
+ danger: {
2698
+ icon: string;
2699
+ };
2700
+ };
2701
+ }, {
2702
+ root: string[];
2703
+ icon: string;
2704
+ title: string;
2705
+ description: string;
2706
+ }, undefined, unknown, unknown, undefined>>;
2707
+ type ToastVariants = VariantProps<typeof toastStyles>;
2708
+ interface ToastRegionProps {
2709
+ queue: ToastQueue;
2710
+ className?: string;
2711
+ }
2712
+ /** The single live region that renders queued toasts. */
2713
+ declare function ToastRegion({ queue, className }: ToastRegionProps): react_jsx_runtime.JSX.Element;
2714
+
2548
2715
  /** Stateful root. RAC handles hover delay + focus visibility.
2549
2716
  *
2550
2717
  * - `delay` — ms of hover before the tooltip opens. Keyboard focus opens
@@ -2560,4 +2727,4 @@ declare function Tooltip({ className, offset, ...props }: TooltipProps): react_j
2560
2727
 
2561
2728
  declare function cn(...inputs: ClassValue[]): string;
2562
2729
 
2563
- export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
2730
+ export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, ColorInput, type ColorInputProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, IconPicker, type IconPickerProps, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, type LucideIconName, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, type ToastContent, type ToastOptions, type ToastQueue, ToastRegion, type ToastRegionProps, type ToastVariant, type ToastVariants, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, createToastQueue, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, normalizeHexColor, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, resolveLucideIcon, resolveLucideIconName, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, toastStyles, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };