@proteos/ui 0.45.0 → 0.47.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/index.cjs +720 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -8
- package/dist/index.d.ts +191 -8
- package/dist/index.js +715 -74
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/attribute-type-icon/attribute-type-icon.tsx +5 -0
- package/src/components/avatar/avatar.stories.tsx +37 -1
- package/src/components/avatar/avatar.test.tsx +42 -0
- package/src/components/avatar/avatar.tsx +39 -4
- package/src/components/avatar-group/avatar-group.test.tsx +19 -0
- package/src/components/avatar-group/avatar-group.tsx +18 -3
- package/src/components/badge/badge.stories.tsx +27 -1
- package/src/components/badge/badge.test.tsx +26 -0
- package/src/components/badge/badge.tsx +48 -4
- package/src/components/badge-multi-select/badge-multi-select.stories.tsx +24 -0
- package/src/components/badge-multi-select/badge-multi-select.tsx +25 -4
- package/src/components/checkbox/checkbox.tsx +8 -1
- package/src/components/color-input/color-input.stories.tsx +72 -0
- package/src/components/color-input/color-input.test.tsx +95 -0
- package/src/components/color-input/color-input.tsx +208 -0
- package/src/components/color-input/index.ts +2 -0
- package/src/components/data-table/data-table.test.tsx +112 -0
- package/src/components/data-table/data-table.tsx +135 -11
- package/src/components/data-table/index.ts +1 -1
- package/src/components/draft-message-composer/draft-message-composer.stories.tsx +1 -1
- package/src/components/icon-picker/icon-picker.stories.tsx +77 -0
- package/src/components/icon-picker/icon-picker.test.tsx +88 -0
- package/src/components/icon-picker/icon-picker.tsx +336 -0
- package/src/components/icon-picker/index.ts +2 -0
- package/src/components/record-filter/chip-value.tsx +10 -3
- package/src/components/record-filter/filter-value-input.tsx +12 -2
- package/src/components/record-filter/operators.ts +6 -6
- package/src/components/record-filter/record-filter.stories.tsx +1 -1
- package/src/components/record-filter/types.ts +4 -0
- package/src/components/table/table.stories.tsx +12 -13
- package/src/components/toast/index.ts +9 -0
- package/src/components/toast/toast.stories.tsx +58 -0
- package/src/components/toast/toast.test.tsx +34 -0
- package/src/components/toast/toast.tsx +121 -0
- package/src/index.ts +3 -0
- package/src/test/setup.ts +30 -0
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
|
-
|
|
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;
|
|
@@ -959,6 +1012,20 @@ type DataTableProps<TRow> = {
|
|
|
959
1012
|
* at slot='end'. Sits inside the scrollable area below the rows.
|
|
960
1013
|
*/
|
|
961
1014
|
bodyAfter?: ReactNode;
|
|
1015
|
+
/**
|
|
1016
|
+
* Row selection. `none` (default) renders no checkbox column; `multiple`
|
|
1017
|
+
* prepends a sticky leading checkbox column and turns the header checkbox
|
|
1018
|
+
* into a tri-state select-all.
|
|
1019
|
+
*
|
|
1020
|
+
* Selection is CONTROLLED — the owner holds the ids because it is the one
|
|
1021
|
+
* that acts on them (running a batch action, clearing after a save). The
|
|
1022
|
+
* header checkbox covers the rows currently LOADED: an infinite list can't
|
|
1023
|
+
* honestly claim to select rows it has never fetched, so "select everything
|
|
1024
|
+
* matching the filter" belongs to the owner's toolbar, not here.
|
|
1025
|
+
*/
|
|
1026
|
+
selectionMode?: 'none' | 'multiple';
|
|
1027
|
+
selectedIds?: Set<string>;
|
|
1028
|
+
onSelectionChange?: (ids: Set<string>) => void;
|
|
962
1029
|
/**
|
|
963
1030
|
* Draw vertical gridlines between body cells. The header always has them;
|
|
964
1031
|
* the body opts in (e.g. inline-edit mode wants the full Excel-style grid).
|
|
@@ -966,7 +1033,9 @@ type DataTableProps<TRow> = {
|
|
|
966
1033
|
*/
|
|
967
1034
|
columnBorders?: boolean;
|
|
968
1035
|
};
|
|
969
|
-
|
|
1036
|
+
/** Column id of the leading checkbox column added by `selectionMode`. */
|
|
1037
|
+
declare const SELECTION_COLUMN_ID = "__select__";
|
|
1038
|
+
declare function DataTable<TRow>({ query, columns, sorting, onSortingChange, rowHeight, overscan, onRowClick, zebra, emptyState, errorState, loadingState, getRowId, className, ariaLabel, enableColumnReordering, enableColumnRemoval, onReorderColumn, onRemoveColumn, variant, rowWrapper, extraRows, bodyBefore, bodyAfter, selectionMode, selectedIds, onSelectionChange, columnBorders, }: DataTableProps<TRow>): react_jsx_runtime.JSX.Element;
|
|
970
1039
|
|
|
971
1040
|
type ActionsColumnOptions<TData> = {
|
|
972
1041
|
id?: string;
|
|
@@ -1497,6 +1566,43 @@ interface FileViewerProps {
|
|
|
1497
1566
|
}
|
|
1498
1567
|
declare function FileViewer({ name, contentType, src, sizeInBytes, heightPx, errorMessage, isOversized, onDownload, className, }: FileViewerProps): react_jsx_runtime.JSX.Element;
|
|
1499
1568
|
|
|
1569
|
+
/** Canonical icon names — the keys of lucide's alias-free `icons` record. */
|
|
1570
|
+
type LucideIconName = keyof typeof icons;
|
|
1571
|
+
/**
|
|
1572
|
+
* Resolves a free-form icon name to its Lucide component, or null when it
|
|
1573
|
+
* matches nothing. Null (rather than a baked-in placeholder) so each caller
|
|
1574
|
+
* chooses its own fallback glyph.
|
|
1575
|
+
*/
|
|
1576
|
+
declare function resolveLucideIcon(name: string | null | undefined): LucideIcon | null;
|
|
1577
|
+
/** Same resolution, returning the canonical PascalCase name instead. */
|
|
1578
|
+
declare function resolveLucideIconName(name: string | null | undefined): LucideIconName | null;
|
|
1579
|
+
type IconPickerProps = {
|
|
1580
|
+
label?: ReactNode;
|
|
1581
|
+
description?: ReactNode;
|
|
1582
|
+
errorMessage?: ReactNode;
|
|
1583
|
+
/** Trigger text while nothing is chosen. */
|
|
1584
|
+
placeholder?: string;
|
|
1585
|
+
/** Canonical or loose Lucide icon name; null/'' mean "no icon". */
|
|
1586
|
+
value: string | null;
|
|
1587
|
+
/** Fires with the canonical PascalCase name, or null when cleared. */
|
|
1588
|
+
onChange: (name: LucideIconName | null) => void;
|
|
1589
|
+
isDisabled?: boolean;
|
|
1590
|
+
isInvalid?: boolean;
|
|
1591
|
+
/** Offer a clear affordance once a value is set. Default true. */
|
|
1592
|
+
allowClear?: boolean;
|
|
1593
|
+
/** Field size. Defaults to `md`. */
|
|
1594
|
+
size?: FieldSize;
|
|
1595
|
+
/** Chrome variant. Defaults to `field`. `cell` flattens the trigger box. */
|
|
1596
|
+
appearance?: FieldAppearance;
|
|
1597
|
+
/** Square, icon-only trigger (no name, no caret) for dense rows. The
|
|
1598
|
+
* popover is unchanged. Pair with `aria-label` when there's no `label`. */
|
|
1599
|
+
compact?: boolean;
|
|
1600
|
+
/** Accessible name when no visible `label` is rendered. */
|
|
1601
|
+
'aria-label'?: string;
|
|
1602
|
+
className?: string;
|
|
1603
|
+
};
|
|
1604
|
+
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;
|
|
1605
|
+
|
|
1500
1606
|
declare const imageAttachmentStyles: tailwind_variants.TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
1501
1607
|
type ImageAttachmentVariants = VariantProps<typeof imageAttachmentStyles>;
|
|
1502
1608
|
interface ImageAttachmentProps {
|
|
@@ -1913,6 +2019,10 @@ type FilterFieldOption = {
|
|
|
1913
2019
|
label: string;
|
|
1914
2020
|
/** Badge color register, used when this option is rendered as a pill. */
|
|
1915
2021
|
variant?: BadgeVariants['variant'];
|
|
2022
|
+
/** `#rrggbb` tint — overrides `variant` when the option renders as a pill. */
|
|
2023
|
+
color?: string;
|
|
2024
|
+
/** Lucide icon name shown in place of the pill's dot. */
|
|
2025
|
+
icon?: string;
|
|
1916
2026
|
};
|
|
1917
2027
|
type FilterField = {
|
|
1918
2028
|
/** Dot-path to the attribute, e.g. `'owner.email'`. Stable identifier. */
|
|
@@ -2545,6 +2655,79 @@ type TimeFieldProps<T extends TimeValue> = TimeFieldProps$1<T> & {
|
|
|
2545
2655
|
};
|
|
2546
2656
|
declare function TimeField<T extends TimeValue = TimeValue>({ label, description, errorMessage, size, appearance, className, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
|
|
2547
2657
|
|
|
2658
|
+
type ToastVariant = 'info' | 'success' | 'danger';
|
|
2659
|
+
/** The payload a caller enqueues. Pure data — the region renders it. */
|
|
2660
|
+
interface ToastContent {
|
|
2661
|
+
title: string;
|
|
2662
|
+
description?: string;
|
|
2663
|
+
variant?: ToastVariant;
|
|
2664
|
+
}
|
|
2665
|
+
type ToastQueue = UNSTABLE_ToastQueue<ToastContent>;
|
|
2666
|
+
type ToastOptions = ToastOptions$1;
|
|
2667
|
+
/** Creates the app-wide queue. `maxVisibleToasts` bounds the on-screen stack. */
|
|
2668
|
+
declare function createToastQueue(options?: {
|
|
2669
|
+
maxVisibleToasts?: number;
|
|
2670
|
+
}): ToastQueue;
|
|
2671
|
+
declare const toastStyles: tailwind_variants.TVReturnType<{
|
|
2672
|
+
variant: {
|
|
2673
|
+
info: {
|
|
2674
|
+
icon: string;
|
|
2675
|
+
};
|
|
2676
|
+
success: {
|
|
2677
|
+
icon: string;
|
|
2678
|
+
};
|
|
2679
|
+
danger: {
|
|
2680
|
+
icon: string;
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
}, {
|
|
2684
|
+
root: string[];
|
|
2685
|
+
icon: string;
|
|
2686
|
+
title: string;
|
|
2687
|
+
description: string;
|
|
2688
|
+
}, undefined, {
|
|
2689
|
+
variant: {
|
|
2690
|
+
info: {
|
|
2691
|
+
icon: string;
|
|
2692
|
+
};
|
|
2693
|
+
success: {
|
|
2694
|
+
icon: string;
|
|
2695
|
+
};
|
|
2696
|
+
danger: {
|
|
2697
|
+
icon: string;
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
}, {
|
|
2701
|
+
root: string[];
|
|
2702
|
+
icon: string;
|
|
2703
|
+
title: string;
|
|
2704
|
+
description: string;
|
|
2705
|
+
}, tailwind_variants.TVReturnType<{
|
|
2706
|
+
variant: {
|
|
2707
|
+
info: {
|
|
2708
|
+
icon: string;
|
|
2709
|
+
};
|
|
2710
|
+
success: {
|
|
2711
|
+
icon: string;
|
|
2712
|
+
};
|
|
2713
|
+
danger: {
|
|
2714
|
+
icon: string;
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
}, {
|
|
2718
|
+
root: string[];
|
|
2719
|
+
icon: string;
|
|
2720
|
+
title: string;
|
|
2721
|
+
description: string;
|
|
2722
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
2723
|
+
type ToastVariants = VariantProps<typeof toastStyles>;
|
|
2724
|
+
interface ToastRegionProps {
|
|
2725
|
+
queue: ToastQueue;
|
|
2726
|
+
className?: string;
|
|
2727
|
+
}
|
|
2728
|
+
/** The single live region that renders queued toasts. */
|
|
2729
|
+
declare function ToastRegion({ queue, className }: ToastRegionProps): react_jsx_runtime.JSX.Element;
|
|
2730
|
+
|
|
2548
2731
|
/** Stateful root. RAC handles hover delay + focus visibility.
|
|
2549
2732
|
*
|
|
2550
2733
|
* - `delay` — ms of hover before the tooltip opens. Keyboard focus opens
|
|
@@ -2560,4 +2743,4 @@ declare function Tooltip({ className, offset, ...props }: TooltipProps): react_j
|
|
|
2560
2743
|
|
|
2561
2744
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2562
2745
|
|
|
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 };
|
|
2746
|
+
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, SELECTION_COLUMN_ID, 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 };
|