@omniviewdev/base-ui 0.1.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/base-ui.css +1 -0
- package/dist/index.d.ts +4392 -0
- package/dist/index.js +44775 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4392 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialog_2 } from '@base-ui/react/alert-dialog';
|
|
2
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
3
|
+
import { Autocomplete as Autocomplete_2 } from '@base-ui/react/autocomplete';
|
|
4
|
+
import { AutocompleteEmptyProps } from '@base-ui/react';
|
|
5
|
+
import { AutocompleteGroupLabelProps } from '@base-ui/react';
|
|
6
|
+
import { AutocompletePositionerProps } from '@base-ui/react';
|
|
7
|
+
import { Avatar as Avatar_2 } from '@base-ui/react/avatar';
|
|
8
|
+
import { Button as Button_2 } from '@base-ui/react/button';
|
|
9
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
10
|
+
import { ChangeEventHandler } from 'react';
|
|
11
|
+
import { Checkbox as Checkbox_2 } from '@base-ui/react/checkbox';
|
|
12
|
+
import { CheckboxGroup as CheckboxGroup_2 } from '@base-ui/react/checkbox-group';
|
|
13
|
+
import { ColumnDef as ColumnDef_2 } from '@tanstack/react-table';
|
|
14
|
+
import { ColumnOrderState } from '@tanstack/react-table';
|
|
15
|
+
import { ColumnPinningState } from '@tanstack/react-table';
|
|
16
|
+
import { ColumnSizingState } from '@tanstack/react-table';
|
|
17
|
+
import { Combobox as Combobox_2 } from '@base-ui/react/combobox';
|
|
18
|
+
import { ComboboxChipsProps } from '@base-ui/react';
|
|
19
|
+
import { ComboboxItemIndicatorProps } from '@base-ui/react';
|
|
20
|
+
import { ComponentProps } from 'react';
|
|
21
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
22
|
+
import { ComponentPropsWithRef } from 'react';
|
|
23
|
+
import { ContextMenu as ContextMenu_2 } from '@base-ui/react/context-menu';
|
|
24
|
+
import { ContextMenuBackdropProps } from '@base-ui/react';
|
|
25
|
+
import { ContextMenuCheckboxItemIndicatorProps } from '@base-ui/react';
|
|
26
|
+
import { ContextMenuGroupLabelProps } from '@base-ui/react';
|
|
27
|
+
import { ContextMenuPositionerProps } from '@base-ui/react';
|
|
28
|
+
import { ContextMenuRadioItemIndicatorProps } from '@base-ui/react';
|
|
29
|
+
import { CSSProperties } from 'react';
|
|
30
|
+
import { DialogBackdropProps } from '@base-ui/react';
|
|
31
|
+
import { DialogDescriptionProps } from '@base-ui/react';
|
|
32
|
+
import { DialogTitleProps as DialogTitleProps_2 } from '@base-ui/react';
|
|
33
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
34
|
+
import { ElementType } from 'react';
|
|
35
|
+
import { ExpandedState } from '@tanstack/react-table';
|
|
36
|
+
import { Field } from '@base-ui/react/field';
|
|
37
|
+
import { FieldControlProps } from '@base-ui/react';
|
|
38
|
+
import { FieldDescriptionProps } from '@base-ui/react';
|
|
39
|
+
import { FieldErrorProps } from '@base-ui/react';
|
|
40
|
+
import { FieldLabelProps } from '@base-ui/react';
|
|
41
|
+
import { FieldsetHTMLAttributes } from 'react';
|
|
42
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
43
|
+
import { HTMLAttributes } from 'react';
|
|
44
|
+
import { ImgHTMLAttributes } from 'react';
|
|
45
|
+
import { Input as Input_2 } from '@base-ui/react/input';
|
|
46
|
+
import { JSX } from 'react/jsx-runtime';
|
|
47
|
+
import { LabelHTMLAttributes } from 'react';
|
|
48
|
+
import { Menu as Menu_2 } from '@base-ui/react/menu';
|
|
49
|
+
import { NamedExoticComponent } from 'react';
|
|
50
|
+
import { NumberField } from '@base-ui/react/number-field';
|
|
51
|
+
import { PaginationState } from '@tanstack/react-table';
|
|
52
|
+
import { Popover as Popover_2 } from '@base-ui/react/popover';
|
|
53
|
+
import { PopoverBackdropProps } from '@base-ui/react';
|
|
54
|
+
import { PopoverDescriptionProps } from '@base-ui/react';
|
|
55
|
+
import { PopoverPortalProps } from '@base-ui/react';
|
|
56
|
+
import { PopoverPositionerProps } from '@base-ui/react';
|
|
57
|
+
import { PopoverTitleProps } from '@base-ui/react';
|
|
58
|
+
import { PropsWithChildren } from 'react';
|
|
59
|
+
import { PropsWithoutRef } from 'react';
|
|
60
|
+
import { Radio as Radio_2 } from '@base-ui/react/radio';
|
|
61
|
+
import { RadioGroup as RadioGroup_2 } from '@base-ui/react/radio-group';
|
|
62
|
+
import { ReactElement } from 'react';
|
|
63
|
+
import { ReactNode } from 'react';
|
|
64
|
+
import { Ref } from 'react';
|
|
65
|
+
import { RefAttributes } from 'react';
|
|
66
|
+
import { RefCallback } from 'react';
|
|
67
|
+
import { RefObject } from 'react';
|
|
68
|
+
import { RowSelectionState } from '@tanstack/react-table';
|
|
69
|
+
import { Select as Select_2 } from '@base-ui/react/select';
|
|
70
|
+
import { SelectArrowProps } from '@base-ui/react';
|
|
71
|
+
import { SelectBackdropProps } from '@base-ui/react';
|
|
72
|
+
import { SelectGroupLabelProps } from '@base-ui/react';
|
|
73
|
+
import { SelectItemIndicatorProps } from '@base-ui/react';
|
|
74
|
+
import { SelectItemTextProps } from '@base-ui/react';
|
|
75
|
+
import { SelectPositionerProps } from '@base-ui/react';
|
|
76
|
+
import { SelectScrollDownArrowProps } from '@base-ui/react';
|
|
77
|
+
import { SelectScrollUpArrowProps } from '@base-ui/react';
|
|
78
|
+
import { Separator as Separator_2 } from '@base-ui/react/separator';
|
|
79
|
+
import { SeparatorProps as SeparatorProps_2 } from '@base-ui/react';
|
|
80
|
+
import { Slider as Slider_2 } from '@base-ui/react/slider';
|
|
81
|
+
import { SortingState } from '@tanstack/react-table';
|
|
82
|
+
import { Switch as Switch_2 } from '@base-ui/react/switch';
|
|
83
|
+
import { Table as Table_2 } from '@tanstack/react-table';
|
|
84
|
+
import { TableHTMLAttributes } from 'react';
|
|
85
|
+
import { TableState } from '@tanstack/react-table';
|
|
86
|
+
import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
|
|
87
|
+
import { TabsIndicatorProps as TabsIndicatorProps_2 } from '@base-ui/react';
|
|
88
|
+
import { TabsListProps as TabsListProps_2 } from '@base-ui/react';
|
|
89
|
+
import { TabsPanelProps as TabsPanelProps_2 } from '@base-ui/react';
|
|
90
|
+
import { TdHTMLAttributes } from 'react';
|
|
91
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
92
|
+
import { ThHTMLAttributes } from 'react';
|
|
93
|
+
import { Toggle } from '@base-ui/react/toggle';
|
|
94
|
+
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
95
|
+
import { Tooltip as Tooltip_2 } from '@base-ui/react/tooltip';
|
|
96
|
+
import { TooltipPortalProps } from '@base-ui/react';
|
|
97
|
+
import { TooltipPositionerProps } from '@base-ui/react';
|
|
98
|
+
import { VirtualItem } from '@tanstack/react-virtual';
|
|
99
|
+
import { VisibilityState } from '@tanstack/react-table';
|
|
100
|
+
|
|
101
|
+
export declare const Accordion: AccordionCompound;
|
|
102
|
+
|
|
103
|
+
export declare type AccordionAnimation = 'default' | 'fast' | 'none';
|
|
104
|
+
|
|
105
|
+
declare type AccordionCompound = typeof AccordionRoot & {
|
|
106
|
+
Item: typeof AccordionItem;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
declare const AccordionItem: ForwardRefExoticComponent<AccordionItemProps & RefAttributes<HTMLDivElement>>;
|
|
110
|
+
|
|
111
|
+
export declare interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
112
|
+
/** Unique identifier for this item. */
|
|
113
|
+
id: string;
|
|
114
|
+
/** Header text. */
|
|
115
|
+
title: string;
|
|
116
|
+
/** Optional leading icon in the header. */
|
|
117
|
+
icon?: ReactNode;
|
|
118
|
+
/** Displayed as a small badge/count on the header. */
|
|
119
|
+
count?: number;
|
|
120
|
+
/** Trailing content slot on the header row. */
|
|
121
|
+
endDecorator?: ReactNode;
|
|
122
|
+
/** Whether this individual item starts expanded. */
|
|
123
|
+
defaultExpanded?: boolean;
|
|
124
|
+
/** Prevents toggling. */
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
/** Remove default padding from the content area. */
|
|
127
|
+
disableContentPadding?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
131
|
+
/** Only one item open at a time. */
|
|
132
|
+
exclusive?: boolean;
|
|
133
|
+
/** IDs of initially expanded items. */
|
|
134
|
+
defaultExpanded?: string[];
|
|
135
|
+
/** Animation speed for expand/collapse. */
|
|
136
|
+
animation?: AccordionAnimation;
|
|
137
|
+
/** Size preset — controls header density and font size. */
|
|
138
|
+
size?: AccordionSize;
|
|
139
|
+
/** Visual variant. `flush` gives edge-to-edge bold uppercase headers for sidebar/panel use. */
|
|
140
|
+
variant?: AccordionVariant;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare const AccordionRoot: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
|
|
144
|
+
|
|
145
|
+
export declare type AccordionSize = 'sm' | 'md' | 'lg';
|
|
146
|
+
|
|
147
|
+
export declare type AccordionVariant = 'default' | 'flush';
|
|
148
|
+
|
|
149
|
+
export declare const ActionList: ActionListCompound;
|
|
150
|
+
|
|
151
|
+
declare type ActionListCompound = typeof ActionListRoot & {
|
|
152
|
+
Item: typeof ActionListItem;
|
|
153
|
+
GroupLabel: typeof ActionListGroupLabel;
|
|
154
|
+
Separator: typeof ActionListSeparator;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare const ActionListGroupLabel: ForwardRefExoticComponent<ActionListGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
158
|
+
|
|
159
|
+
export declare type ActionListGroupLabelProps = HTMLAttributes<HTMLDivElement>;
|
|
160
|
+
|
|
161
|
+
declare const ActionListItem: ForwardRefExoticComponent<Omit<ActionListItemProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
162
|
+
|
|
163
|
+
export declare interface ActionListItemProps extends Omit<ButtonProps, 'children'> {
|
|
164
|
+
children?: ReactNode;
|
|
165
|
+
label?: ReactNode;
|
|
166
|
+
description?: ReactNode;
|
|
167
|
+
leadingIcon?: ReactNode;
|
|
168
|
+
trailingContent?: ReactNode;
|
|
169
|
+
icon?: ReactNode;
|
|
170
|
+
shortcut?: ReactNode;
|
|
171
|
+
/** @deprecated Use `leadingIcon` */
|
|
172
|
+
startAdornment?: ReactNode;
|
|
173
|
+
/** @deprecated Use `trailingContent` */
|
|
174
|
+
endAdornment?: ReactNode;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare type ActionListItemVariant = NonNullable<ComponentVariant>;
|
|
178
|
+
|
|
179
|
+
export declare interface ActionListProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color' | 'role'>, Pick<StyledComponentProps, 'color' | 'size'> {
|
|
180
|
+
itemVariant?: ActionListItemVariant;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare const ActionListRoot: ForwardRefExoticComponent<ActionListProps & RefAttributes<HTMLDivElement>>;
|
|
184
|
+
|
|
185
|
+
declare const ActionListSeparator: ForwardRefExoticComponent<ActionListSeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
186
|
+
|
|
187
|
+
export declare type ActionListSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
188
|
+
|
|
189
|
+
export declare const AlertDialog: AlertDialogCompound;
|
|
190
|
+
|
|
191
|
+
declare const AlertDialogBackdrop: ForwardRefExoticComponent<Omit<Omit<DialogBackdropProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
192
|
+
|
|
193
|
+
declare const AlertDialogClose: ForwardRefExoticComponent<AlertDialogCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
194
|
+
|
|
195
|
+
export declare interface AlertDialogCloseProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialog_2.Close>, 'color'>, StyledComponentProps {
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare type AlertDialogCompound = typeof AlertDialogRoot & {
|
|
199
|
+
Root: typeof AlertDialogRoot;
|
|
200
|
+
Backdrop: typeof AlertDialogBackdrop;
|
|
201
|
+
Close: typeof AlertDialogClose;
|
|
202
|
+
Description: typeof AlertDialogDescription;
|
|
203
|
+
Handle: typeof AlertDialog_2.Handle;
|
|
204
|
+
Popup: typeof AlertDialogPopup;
|
|
205
|
+
Portal: typeof AlertDialog_2.Portal;
|
|
206
|
+
Title: typeof AlertDialogTitle;
|
|
207
|
+
Trigger: typeof AlertDialogTrigger;
|
|
208
|
+
Viewport: typeof AlertDialog_2.Viewport;
|
|
209
|
+
createHandle: typeof AlertDialog_2.createHandle;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
declare const AlertDialogDescription: ForwardRefExoticComponent<Omit<Omit<DialogDescriptionProps, "ref"> & RefAttributes<HTMLParagraphElement>, "ref"> & RefAttributes<HTMLParagraphElement>>;
|
|
213
|
+
|
|
214
|
+
declare const AlertDialogPopup: ForwardRefExoticComponent<AlertDialogPopupProps & RefAttributes<HTMLDivElement>>;
|
|
215
|
+
|
|
216
|
+
export declare interface AlertDialogPopupProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialog_2.Popup>, 'color'>, StyledComponentProps {
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare const AlertDialogRoot: {
|
|
220
|
+
({ variant, color, size, ...props }: AlertDialogRootProps): JSX.Element;
|
|
221
|
+
displayName: string;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export declare interface AlertDialogRootProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialog_2.Root>, 'color'>, StyledComponentProps {
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
declare const AlertDialogTitle: ForwardRefExoticComponent<Omit<Omit<DialogTitleProps_2, "ref"> & RefAttributes<HTMLHeadingElement>, "ref"> & RefAttributes<HTMLHeadingElement>>;
|
|
228
|
+
|
|
229
|
+
declare const AlertDialogTrigger: {
|
|
230
|
+
({ className, variant, color, size, ...props }: AlertDialogTriggerProps): JSX.Element;
|
|
231
|
+
displayName: string;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export declare interface AlertDialogTriggerProps extends Omit<ComponentPropsWithoutRef<typeof AlertDialog_2.Trigger>, 'color'>, StyledComponentProps {
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export declare const AppShell: AppShellCompound;
|
|
238
|
+
|
|
239
|
+
declare type AppShellCompound = typeof AppShellRoot & {
|
|
240
|
+
Header: typeof Header;
|
|
241
|
+
Sidebar: typeof Sidebar;
|
|
242
|
+
Content: typeof Content;
|
|
243
|
+
Footer: typeof Footer;
|
|
244
|
+
NavRail: typeof NavRail;
|
|
245
|
+
SecondarySidebar: typeof SecondarySidebar;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export declare interface AppShellContentProps extends HTMLAttributes<HTMLElement> {
|
|
249
|
+
children?: ReactNode;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export declare interface AppShellFooterProps extends HTMLAttributes<HTMLElement> {
|
|
253
|
+
children?: ReactNode;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export declare interface AppShellHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
257
|
+
children?: ReactNode;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare interface AppShellNavRailProps extends HTMLAttributes<HTMLElement> {
|
|
261
|
+
children?: ReactNode;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export declare interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
265
|
+
/** Width of the sidebar. Default: 240px. */
|
|
266
|
+
sidebarWidth?: number | string;
|
|
267
|
+
/** Whether the sidebar is collapsed. */
|
|
268
|
+
sidebarCollapsed?: boolean;
|
|
269
|
+
/** Position of the sidebar. Default: 'left'. */
|
|
270
|
+
sidebarPosition?: 'left' | 'right';
|
|
271
|
+
/** Height of the header. Default: 40px. */
|
|
272
|
+
headerHeight?: number | string;
|
|
273
|
+
/** Height of the footer. Default: 24px. */
|
|
274
|
+
footerHeight?: number | string;
|
|
275
|
+
/** Width of the nav rail. Default: 48px. Only used when NavRail is present. */
|
|
276
|
+
navRailWidth?: number | string;
|
|
277
|
+
/** Width of the secondary sidebar. Default: 300px. */
|
|
278
|
+
secondarySidebarWidth?: number | string;
|
|
279
|
+
/** Whether the secondary sidebar is collapsed. */
|
|
280
|
+
secondarySidebarCollapsed?: boolean;
|
|
281
|
+
children?: ReactNode;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
declare const AppShellRoot: ForwardRefExoticComponent<AppShellProps & RefAttributes<HTMLDivElement>>;
|
|
285
|
+
|
|
286
|
+
declare interface AppShellSecondarySidebarProps extends HTMLAttributes<HTMLElement> {
|
|
287
|
+
children?: ReactNode;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export declare interface AppShellSidebarProps extends HTMLAttributes<HTMLElement> {
|
|
291
|
+
children?: ReactNode;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export declare const AspectRatio: ForwardRefExoticComponent<AspectRatioProps & RefAttributes<HTMLDivElement>>;
|
|
295
|
+
|
|
296
|
+
export declare interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
|
|
297
|
+
ratio?: number;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export declare type AttachCommit = {
|
|
301
|
+
tab: TabDescriptor;
|
|
302
|
+
sourceInstanceId: string;
|
|
303
|
+
insertIndex: number;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export declare const Autocomplete: AutocompleteCompound;
|
|
307
|
+
|
|
308
|
+
declare const AutocompleteClear: ForwardRefExoticComponent<AutocompleteClearProps & RefAttributes<HTMLButtonElement>>;
|
|
309
|
+
|
|
310
|
+
export declare interface AutocompleteClearProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Clear>, 'color'>, StyledComponentProps {
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare type AutocompleteCompound = typeof AutocompleteRoot & {
|
|
314
|
+
Root: typeof AutocompleteRoot;
|
|
315
|
+
Arrow: typeof Autocomplete_2.Arrow;
|
|
316
|
+
Backdrop: typeof Autocomplete_2.Backdrop;
|
|
317
|
+
Clear: typeof AutocompleteClear;
|
|
318
|
+
Collection: typeof Autocomplete_2.Collection;
|
|
319
|
+
Empty: typeof AutocompleteEmpty;
|
|
320
|
+
Group: typeof Autocomplete_2.Group;
|
|
321
|
+
GroupLabel: typeof AutocompleteGroupLabel;
|
|
322
|
+
Icon: typeof Autocomplete_2.Icon;
|
|
323
|
+
Input: typeof AutocompleteInput;
|
|
324
|
+
Item: typeof AutocompleteItem;
|
|
325
|
+
List: typeof AutocompleteList;
|
|
326
|
+
Popup: typeof AutocompletePopup;
|
|
327
|
+
Portal: typeof Autocomplete_2.Portal;
|
|
328
|
+
Positioner: typeof AutocompletePositioner;
|
|
329
|
+
Row: typeof Autocomplete_2.Row;
|
|
330
|
+
Separator: typeof AutocompleteSeparator;
|
|
331
|
+
Status: typeof Autocomplete_2.Status;
|
|
332
|
+
Trigger: typeof AutocompleteTrigger;
|
|
333
|
+
Value: typeof Autocomplete_2.Value;
|
|
334
|
+
useFilter: typeof Autocomplete_2.useFilter;
|
|
335
|
+
useFilteredItems: typeof Autocomplete_2.useFilteredItems;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
declare const AutocompleteEmpty: ForwardRefExoticComponent<Omit<Omit<AutocompleteEmptyProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
339
|
+
|
|
340
|
+
declare const AutocompleteGroupLabel: ForwardRefExoticComponent<Omit<Omit<AutocompleteGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
341
|
+
|
|
342
|
+
declare const AutocompleteInput: ForwardRefExoticComponent<AutocompleteInputProps & RefAttributes<HTMLInputElement>>;
|
|
343
|
+
|
|
344
|
+
export declare interface AutocompleteInputProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Input>, 'color' | 'size'>, StyledComponentProps {
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & RefAttributes<HTMLDivElement>>;
|
|
348
|
+
|
|
349
|
+
export declare interface AutocompleteItemProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Item>, 'color'>, StyledComponentProps {
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare const AutocompleteList: ForwardRefExoticComponent<AutocompleteListProps & RefAttributes<HTMLDivElement>>;
|
|
353
|
+
|
|
354
|
+
export declare interface AutocompleteListProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.List>, 'color'>, StyledComponentProps {
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare const AutocompletePopup: ForwardRefExoticComponent<AutocompletePopupProps & RefAttributes<HTMLDivElement>>;
|
|
358
|
+
|
|
359
|
+
export declare interface AutocompletePopupProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Popup>, 'color'>, StyledComponentProps {
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare const AutocompletePositioner: ForwardRefExoticComponent<Omit<Omit<AutocompletePositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
363
|
+
|
|
364
|
+
declare const AutocompleteRoot: {
|
|
365
|
+
({ variant, color, size, ...props }: AutocompleteRootProps): JSX.Element;
|
|
366
|
+
displayName: string;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
export declare interface AutocompleteRootProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Root>, 'color'>, StyledComponentProps {
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare const AutocompleteSeparator: ForwardRefExoticComponent<Omit<Omit<SeparatorProps_2, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
373
|
+
|
|
374
|
+
declare const AutocompleteTrigger: ForwardRefExoticComponent<AutocompleteTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
375
|
+
|
|
376
|
+
export declare interface AutocompleteTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Autocomplete_2.Trigger>, 'color'>, StyledComponentProps {
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export declare const Avatar: AvatarCompound;
|
|
380
|
+
|
|
381
|
+
declare const AvatarBase: ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLSpanElement>>;
|
|
382
|
+
|
|
383
|
+
declare type AvatarCompound = typeof AvatarBase & {
|
|
384
|
+
Root: typeof AvatarRoot;
|
|
385
|
+
Image: typeof AvatarImage;
|
|
386
|
+
Fallback: typeof AvatarFallback;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
declare const AvatarFallback: ForwardRefExoticComponent<AvatarFallbackProps & RefAttributes<HTMLSpanElement>>;
|
|
390
|
+
|
|
391
|
+
export declare interface AvatarFallbackProps extends Omit<ComponentPropsWithoutRef<typeof Avatar_2.Fallback>, 'color'>, StyledComponentProps {
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export declare const AvatarGroup: AvatarGroupCompound;
|
|
395
|
+
|
|
396
|
+
declare type AvatarGroupCompound = typeof AvatarGroupRoot & {
|
|
397
|
+
Item: typeof AvatarGroupItem;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
declare const AvatarGroupItem: ForwardRefExoticComponent<AvatarGroupItemProps & RefAttributes<HTMLSpanElement>>;
|
|
401
|
+
|
|
402
|
+
export declare interface AvatarGroupItemProps extends Omit<AvatarProps, 'shape' | 'deterministic' | 'variant' | 'color' | 'size'>, StyledComponentProps {
|
|
403
|
+
shape?: AvatarShape;
|
|
404
|
+
deterministic?: boolean;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare type AvatarGroupOverlap = 'sm' | 'md' | 'lg';
|
|
408
|
+
|
|
409
|
+
export declare interface AvatarGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
410
|
+
shape?: AvatarShape;
|
|
411
|
+
deterministic?: boolean;
|
|
412
|
+
overlap?: AvatarGroupOverlap;
|
|
413
|
+
max?: number;
|
|
414
|
+
total?: number;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare const AvatarGroupRoot: ForwardRefExoticComponent<AvatarGroupProps & RefAttributes<HTMLDivElement>>;
|
|
418
|
+
|
|
419
|
+
declare const AvatarImage: ForwardRefExoticComponent<AvatarImageProps & RefAttributes<HTMLImageElement>>;
|
|
420
|
+
|
|
421
|
+
export declare interface AvatarImageProps extends Omit<ComponentPropsWithoutRef<typeof Avatar_2.Image>, 'color'>, StyledComponentProps {
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export declare interface AvatarProps extends AvatarRootProps {
|
|
425
|
+
src?: string;
|
|
426
|
+
alt?: string;
|
|
427
|
+
name?: string;
|
|
428
|
+
seed?: string;
|
|
429
|
+
fallback?: ReactNode;
|
|
430
|
+
fallbackIcon?: ReactNode;
|
|
431
|
+
imageProps?: Omit<AvatarImageProps, 'src' | 'alt'>;
|
|
432
|
+
fallbackProps?: Omit<AvatarFallbackProps, 'children'>;
|
|
433
|
+
children?: ReactNode;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare const AvatarRoot: ForwardRefExoticComponent<AvatarRootProps & RefAttributes<HTMLSpanElement>>;
|
|
437
|
+
|
|
438
|
+
export declare interface AvatarRootProps extends Omit<ComponentPropsWithoutRef<typeof Avatar_2.Root>, 'color'>, StyledComponentProps {
|
|
439
|
+
shape?: AvatarShape;
|
|
440
|
+
deterministic?: boolean;
|
|
441
|
+
paletteIndex?: number;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare type AvatarShape = 'circle' | 'rounded';
|
|
445
|
+
|
|
446
|
+
export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
447
|
+
|
|
448
|
+
export declare type BadgeColor = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
|
|
449
|
+
|
|
450
|
+
export declare type BadgeOverlap = 'rectangular' | 'circular';
|
|
451
|
+
|
|
452
|
+
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
453
|
+
|
|
454
|
+
export declare interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color' | 'content'> {
|
|
455
|
+
content?: number | string;
|
|
456
|
+
variant?: BadgeVariant;
|
|
457
|
+
color?: BadgeColor;
|
|
458
|
+
position?: BadgePosition;
|
|
459
|
+
max?: number;
|
|
460
|
+
invisible?: boolean;
|
|
461
|
+
/** Pulsing animation for live indicators. */
|
|
462
|
+
pulse?: boolean;
|
|
463
|
+
/** Badge scale. */
|
|
464
|
+
size?: BadgeSize;
|
|
465
|
+
/** Adjusts positioning for circular children (e.g. avatars). */
|
|
466
|
+
overlap?: BadgeOverlap;
|
|
467
|
+
children: ReactNode;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export declare type BadgeSize = 'sm' | 'md' | 'lg';
|
|
471
|
+
|
|
472
|
+
export declare type BadgeVariant = 'standard' | 'dot';
|
|
473
|
+
|
|
474
|
+
export declare const Banner: BannerCompound;
|
|
475
|
+
|
|
476
|
+
declare const BannerActions: ForwardRefExoticComponent<BannerActionsProps & RefAttributes<HTMLDivElement>>;
|
|
477
|
+
|
|
478
|
+
export declare type BannerActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
479
|
+
|
|
480
|
+
declare const BannerClose: ForwardRefExoticComponent<BannerCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
481
|
+
|
|
482
|
+
export declare interface BannerCloseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
483
|
+
'aria-label'?: string;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
declare type BannerCompound = typeof BannerRoot & {
|
|
487
|
+
Icon: typeof BannerIcon;
|
|
488
|
+
Title: typeof BannerTitle;
|
|
489
|
+
Content: typeof BannerContent;
|
|
490
|
+
Actions: typeof BannerActions;
|
|
491
|
+
Close: typeof BannerClose;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
declare const BannerContent: ForwardRefExoticComponent<BannerContentProps & RefAttributes<HTMLDivElement>>;
|
|
495
|
+
|
|
496
|
+
export declare type BannerContentProps = HTMLAttributes<HTMLDivElement>;
|
|
497
|
+
|
|
498
|
+
declare const BannerIcon: ForwardRefExoticComponent<BannerIconProps & RefAttributes<HTMLSpanElement>>;
|
|
499
|
+
|
|
500
|
+
export declare type BannerIconProps = HTMLAttributes<HTMLSpanElement>;
|
|
501
|
+
|
|
502
|
+
export declare interface BannerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare const BannerRoot: ForwardRefExoticComponent<BannerProps & RefAttributes<HTMLDivElement>>;
|
|
506
|
+
|
|
507
|
+
declare const BannerTitle: ForwardRefExoticComponent<BannerTitleProps & RefAttributes<HTMLParagraphElement>>;
|
|
508
|
+
|
|
509
|
+
export declare type BannerTitleProps = HTMLAttributes<HTMLParagraphElement>;
|
|
510
|
+
|
|
511
|
+
export declare const BasicList: BasicListCompound;
|
|
512
|
+
|
|
513
|
+
declare type BasicListCompound = typeof BasicListRoot & {
|
|
514
|
+
Root: typeof BasicListRoot;
|
|
515
|
+
Viewport: typeof List.Viewport;
|
|
516
|
+
Item: typeof BasicListItem;
|
|
517
|
+
ItemIcon: typeof List.ItemIcon;
|
|
518
|
+
ItemLabel: typeof List.ItemLabel;
|
|
519
|
+
ItemDescription: typeof List.ItemDescription;
|
|
520
|
+
ItemMeta: typeof List.ItemMeta;
|
|
521
|
+
ItemActions: typeof List.ItemActions;
|
|
522
|
+
ItemBadge: typeof BasicListItemBadge;
|
|
523
|
+
ItemChevron: typeof BasicListItemChevron;
|
|
524
|
+
Group: typeof List.Group;
|
|
525
|
+
GroupHeader: typeof List.GroupHeader;
|
|
526
|
+
Separator: typeof List.Separator;
|
|
527
|
+
Empty: typeof List.Empty;
|
|
528
|
+
Loading: typeof List.Loading;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
declare const BasicListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLDivElement>>;
|
|
532
|
+
|
|
533
|
+
declare const BasicListItemBadge: ForwardRefExoticComponent<BasicListItemBadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
534
|
+
|
|
535
|
+
export declare type BasicListItemBadgeProps = HTMLAttributes<HTMLSpanElement>;
|
|
536
|
+
|
|
537
|
+
declare const BasicListItemChevron: ForwardRefExoticComponent<BasicListItemChevronProps & RefAttributes<HTMLSpanElement>>;
|
|
538
|
+
|
|
539
|
+
export declare type BasicListItemChevronProps = HTMLAttributes<HTMLSpanElement>;
|
|
540
|
+
|
|
541
|
+
export declare type BasicListItemProps = ListItemProps;
|
|
542
|
+
|
|
543
|
+
declare const BasicListRoot: ForwardRefExoticComponent<ListRootProps & RefAttributes<HTMLDivElement>>;
|
|
544
|
+
|
|
545
|
+
export declare type BasicListRootProps = ListRootProps;
|
|
546
|
+
|
|
547
|
+
export declare const Blockquote: BlockquoteComponent;
|
|
548
|
+
|
|
549
|
+
declare type BlockquoteComponent = <C extends BlockquoteElement = 'blockquote'>(props: BlockquoteProps<C> & {
|
|
550
|
+
ref?: PolymorphicRef<C>;
|
|
551
|
+
}) => ReactElement | null;
|
|
552
|
+
|
|
553
|
+
declare type BlockquoteElement = 'blockquote' | 'div';
|
|
554
|
+
|
|
555
|
+
declare interface BlockquoteOwnProps extends TypographyBaseProps, TruncationProps {
|
|
556
|
+
variant?: BlockquoteVariant;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export declare type BlockquoteProps<C extends BlockquoteElement = BlockquoteElement> = PolymorphicComponentProps<C, BlockquoteOwnProps>;
|
|
560
|
+
|
|
561
|
+
export declare type BlockquoteVariant = 'emphasis' | 'plain';
|
|
562
|
+
|
|
563
|
+
export declare const Box: ForwardRefExoticComponent<BoxProps & RefAttributes<HTMLElement>>;
|
|
564
|
+
|
|
565
|
+
export declare interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
566
|
+
as?: 'div' | 'span' | 'section' | 'article' | 'aside' | 'main' | 'nav' | 'header' | 'footer' | 'ul' | 'ol' | 'li';
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
declare type BreadcrumbItemBaseProps = {
|
|
570
|
+
/** Marks this item as the current page (not a link, styled differently). */
|
|
571
|
+
active?: boolean;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export declare type BreadcrumbItemProps = (BreadcrumbItemBaseProps & Omit<HTMLAttributes<HTMLElement>, 'color'> & {
|
|
575
|
+
href?: never;
|
|
576
|
+
}) | (BreadcrumbItemBaseProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> & {
|
|
577
|
+
href: string;
|
|
578
|
+
active?: false;
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
export declare const Breadcrumbs: BreadcrumbsCompound;
|
|
582
|
+
|
|
583
|
+
declare type BreadcrumbsCompound = typeof BreadcrumbsRoot & {
|
|
584
|
+
Item: typeof BreadcrumbsItem;
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
declare const BreadcrumbsItem: ForwardRefExoticComponent<BreadcrumbItemProps & RefAttributes<HTMLElement>>;
|
|
588
|
+
|
|
589
|
+
export declare interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
590
|
+
/** Separator rendered between items. Defaults to a chevron right icon. */
|
|
591
|
+
separator?: ReactNode;
|
|
592
|
+
/** Maximum number of visible items before collapsing. Defaults to 8. */
|
|
593
|
+
maxItems?: number;
|
|
594
|
+
/** Number of items to show before the ellipsis. Defaults to 1. */
|
|
595
|
+
itemsBeforeCollapse?: number;
|
|
596
|
+
/** Number of items to show after the ellipsis. Defaults to 1. */
|
|
597
|
+
itemsAfterCollapse?: number;
|
|
598
|
+
/** Controls font size of the breadcrumb trail. */
|
|
599
|
+
size?: ComponentSize;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare const BreadcrumbsRoot: ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLElement>>;
|
|
603
|
+
|
|
604
|
+
export declare const Button: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
605
|
+
|
|
606
|
+
export declare const ButtonGroup: ButtonGroupCompound;
|
|
607
|
+
|
|
608
|
+
declare const ButtonGroupButton: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
609
|
+
|
|
610
|
+
export declare type ButtonGroupButtonProps = ButtonProps;
|
|
611
|
+
|
|
612
|
+
declare type ButtonGroupCompound = typeof ButtonGroupRoot & {
|
|
613
|
+
Button: typeof ButtonGroupButton;
|
|
614
|
+
IconButton: typeof ButtonGroupIconButton;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
declare const ButtonGroupIconButton: ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
618
|
+
|
|
619
|
+
export declare type ButtonGroupIconButtonProps = IconButtonProps;
|
|
620
|
+
|
|
621
|
+
export declare type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
622
|
+
|
|
623
|
+
export declare interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
624
|
+
orientation?: ButtonGroupOrientation;
|
|
625
|
+
attached?: boolean;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare const ButtonGroupRoot: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<HTMLDivElement>>;
|
|
629
|
+
|
|
630
|
+
export declare interface ButtonProps extends Button_2.Props, StyledComponentProps {
|
|
631
|
+
startDecorator?: ReactNode;
|
|
632
|
+
endDecorator?: ReactNode;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export declare const Caption: <C extends CaptionElement = "span">(props: TypographyBaseProps & TruncationProps & {
|
|
636
|
+
as?: C | undefined;
|
|
637
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
638
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
639
|
+
}) => ReactElement | null;
|
|
640
|
+
|
|
641
|
+
declare type CaptionElement = 'span' | 'p' | 'div';
|
|
642
|
+
|
|
643
|
+
export declare type CaptionProps<E extends CaptionElement = CaptionElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
644
|
+
|
|
645
|
+
export declare const Card: CardCompound;
|
|
646
|
+
|
|
647
|
+
declare const CardAction: ForwardRefExoticComponent<CardActionProps & RefAttributes<HTMLDivElement>>;
|
|
648
|
+
|
|
649
|
+
declare const CardActionArea: ForwardRefExoticComponent<CardActionAreaProps & RefAttributes<HTMLDivElement>>;
|
|
650
|
+
|
|
651
|
+
export declare interface CardActionAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
652
|
+
disabled?: boolean;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export declare type CardActionProps = HTMLAttributes<HTMLDivElement>;
|
|
656
|
+
|
|
657
|
+
declare const CardBody: ForwardRefExoticComponent<CardBodyProps & RefAttributes<HTMLDivElement>>;
|
|
658
|
+
|
|
659
|
+
export declare type CardBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
660
|
+
|
|
661
|
+
declare type CardCompound = typeof CardRoot & {
|
|
662
|
+
Header: typeof CardHeader;
|
|
663
|
+
Title: typeof CardTitle;
|
|
664
|
+
Description: typeof CardDescription;
|
|
665
|
+
Body: typeof CardBody;
|
|
666
|
+
Footer: typeof CardFooter;
|
|
667
|
+
Action: typeof CardAction;
|
|
668
|
+
Eyebrow: typeof CardEyebrow;
|
|
669
|
+
Media: typeof CardMedia;
|
|
670
|
+
Cover: typeof CardCover;
|
|
671
|
+
Row: typeof CardRow;
|
|
672
|
+
Separator: typeof CardSeparator;
|
|
673
|
+
KeyValue: typeof CardKeyValue;
|
|
674
|
+
Stat: typeof CardStat;
|
|
675
|
+
Indicator: typeof CardIndicator;
|
|
676
|
+
ActionArea: typeof CardActionArea;
|
|
677
|
+
Toolbar: typeof CardToolbar;
|
|
678
|
+
Group: typeof CardGroup;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
declare const CardCover: ForwardRefExoticComponent<CardCoverProps & RefAttributes<HTMLDivElement>>;
|
|
682
|
+
|
|
683
|
+
export declare type CardCoverProps = HTMLAttributes<HTMLDivElement>;
|
|
684
|
+
|
|
685
|
+
declare const CardDescription: ForwardRefExoticComponent<CardDescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
686
|
+
|
|
687
|
+
export declare type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
688
|
+
|
|
689
|
+
declare const CardEyebrow: ForwardRefExoticComponent<CardEyebrowProps & RefAttributes<HTMLSpanElement>>;
|
|
690
|
+
|
|
691
|
+
export declare interface CardEyebrowProps extends HTMLAttributes<HTMLSpanElement> {
|
|
692
|
+
mono?: boolean;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
declare const CardFooter: ForwardRefExoticComponent<CardFooterProps & RefAttributes<HTMLDivElement>>;
|
|
696
|
+
|
|
697
|
+
export declare type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
698
|
+
|
|
699
|
+
declare const CardGroup: ForwardRefExoticComponent<CardGroupProps & RefAttributes<HTMLDivElement>>;
|
|
700
|
+
|
|
701
|
+
export declare interface CardGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
702
|
+
columns?: number | 'auto';
|
|
703
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
declare const CardHeader: ForwardRefExoticComponent<CardHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
707
|
+
|
|
708
|
+
export declare type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
709
|
+
|
|
710
|
+
declare const CardIndicator: ForwardRefExoticComponent<CardIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
711
|
+
|
|
712
|
+
export declare interface CardIndicatorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
713
|
+
status?: 'success' | 'warning' | 'danger' | 'neutral' | 'info';
|
|
714
|
+
pulse?: boolean;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
declare const CardKeyValue: ForwardRefExoticComponent<CardKeyValueProps & RefAttributes<HTMLDListElement>>;
|
|
718
|
+
|
|
719
|
+
export declare interface CardKeyValueProps extends HTMLAttributes<HTMLDListElement> {
|
|
720
|
+
label: ReactNode;
|
|
721
|
+
mono?: boolean;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
declare const CardMedia: ForwardRefExoticComponent<CardMediaProps & RefAttributes<HTMLDivElement>>;
|
|
725
|
+
|
|
726
|
+
export declare interface CardMediaProps extends HTMLAttributes<HTMLDivElement> {
|
|
727
|
+
ratio?: number;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export declare interface CardProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, StyledComponentProps {
|
|
731
|
+
as?: 'section' | 'article' | 'div';
|
|
732
|
+
elevation?: SurfaceElevation;
|
|
733
|
+
surface?: SurfaceType;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
declare const CardRoot: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLElement>>;
|
|
737
|
+
|
|
738
|
+
declare const CardRow: ForwardRefExoticComponent<CardRowProps & RefAttributes<HTMLDivElement>>;
|
|
739
|
+
|
|
740
|
+
export declare interface CardRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
741
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
742
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare const CardSeparator: ForwardRefExoticComponent<CardSeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
746
|
+
|
|
747
|
+
export declare type CardSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
748
|
+
|
|
749
|
+
declare const CardStat: ForwardRefExoticComponent<CardStatProps & RefAttributes<HTMLDivElement>>;
|
|
750
|
+
|
|
751
|
+
export declare interface CardStatProps extends HTMLAttributes<HTMLDivElement> {
|
|
752
|
+
mono?: boolean;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
declare const CardTitle: ForwardRefExoticComponent<CardTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
756
|
+
|
|
757
|
+
export declare type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
|
|
758
|
+
|
|
759
|
+
declare const CardToolbar: ForwardRefExoticComponent<CardToolbarProps & RefAttributes<HTMLDivElement>>;
|
|
760
|
+
|
|
761
|
+
export declare interface CardToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
762
|
+
/** Accessible name for the toolbar; provide via aria-label or aria-labelledby */
|
|
763
|
+
'aria-label'?: string;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export declare type CheckBehavior = 'checkbox' | 'radio';
|
|
767
|
+
|
|
768
|
+
export declare const Checkbox: CheckboxCompound;
|
|
769
|
+
|
|
770
|
+
declare type CheckboxCompound = typeof CheckboxItem & {
|
|
771
|
+
Root: typeof CheckboxRoot;
|
|
772
|
+
Control: typeof CheckboxControl;
|
|
773
|
+
Indicator: typeof CheckboxIndicator;
|
|
774
|
+
Label: typeof CheckboxLabel;
|
|
775
|
+
Description: typeof CheckboxDescription;
|
|
776
|
+
Item: typeof CheckboxItem;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
declare const CheckboxControl: ForwardRefExoticComponent<CheckboxControlProps & RefAttributes<HTMLSpanElement>>;
|
|
780
|
+
|
|
781
|
+
export declare type CheckboxControlProps = HTMLAttributes<HTMLSpanElement>;
|
|
782
|
+
|
|
783
|
+
declare const CheckboxDescription: ForwardRefExoticComponent<CheckboxDescriptionProps & RefAttributes<HTMLSpanElement>>;
|
|
784
|
+
|
|
785
|
+
export declare type CheckboxDescriptionProps = HTMLAttributes<HTMLSpanElement>;
|
|
786
|
+
|
|
787
|
+
export declare const CheckboxGroup: CheckboxGroupCompound;
|
|
788
|
+
|
|
789
|
+
declare type CheckboxGroupCompound = typeof CheckboxGroupRoot & {
|
|
790
|
+
Item: typeof CheckboxGroupItem;
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
declare const CheckboxGroupItem: ForwardRefExoticComponent<CheckboxGroupItemProps & RefAttributes<HTMLElement>>;
|
|
794
|
+
|
|
795
|
+
export declare interface CheckboxGroupItemProps extends Omit<CheckboxItemProps, 'variant' | 'color' | 'size' | 'value'>, StyledComponentProps {
|
|
796
|
+
value: string;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export declare interface CheckboxGroupProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxGroup_2>, 'color'>, StyledComponentProps {
|
|
800
|
+
orientation?: 'vertical' | 'horizontal';
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
declare const CheckboxGroupRoot: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<HTMLDivElement>>;
|
|
804
|
+
|
|
805
|
+
declare const CheckboxIndicator: ForwardRefExoticComponent<CheckboxIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
806
|
+
|
|
807
|
+
export declare interface CheckboxIndicatorProps extends Omit<ComponentPropsWithoutRef<typeof Checkbox_2.Indicator>, 'color'>, StyledComponentProps {
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
declare const CheckboxItem: ForwardRefExoticComponent<CheckboxItemProps & RefAttributes<HTMLElement>>;
|
|
811
|
+
|
|
812
|
+
export declare interface CheckboxItemProps extends Omit<CheckboxRootProps, 'children'> {
|
|
813
|
+
children?: ReactNode;
|
|
814
|
+
description?: ReactNode;
|
|
815
|
+
indicator?: ReactNode;
|
|
816
|
+
keepIndicatorMounted?: boolean;
|
|
817
|
+
labelPosition?: 'start' | 'end';
|
|
818
|
+
layout?: 'inline' | 'spread';
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare const CheckboxLabel: ForwardRefExoticComponent<CheckboxLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
822
|
+
|
|
823
|
+
export declare type CheckboxLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
824
|
+
|
|
825
|
+
declare const CheckboxRoot: ForwardRefExoticComponent<CheckboxRootProps & RefAttributes<HTMLElement>>;
|
|
826
|
+
|
|
827
|
+
export declare interface CheckboxRootProps extends Omit<ComponentPropsWithoutRef<typeof Checkbox_2.Root>, 'color'>, StyledComponentProps {
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export declare const Chip: ChipCompound;
|
|
831
|
+
|
|
832
|
+
declare type ChipCompound = typeof ChipRoot & {
|
|
833
|
+
Group: typeof ChipGroup;
|
|
834
|
+
Item: typeof ChipItem;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
declare const ChipGroup: ForwardRefExoticComponent<ChipGroupProps & RefAttributes<HTMLDivElement>>;
|
|
838
|
+
|
|
839
|
+
export declare interface ChipGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
840
|
+
mono?: boolean;
|
|
841
|
+
clickable?: boolean;
|
|
842
|
+
/** Gap between chips. Default: 1 */
|
|
843
|
+
spacing?: Spacing;
|
|
844
|
+
/** Whether chips wrap to the next line. Default: true */
|
|
845
|
+
wrap?: boolean;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
declare const ChipItem: ForwardRefExoticComponent<ChipProps & RefAttributes<HTMLElement>>;
|
|
849
|
+
|
|
850
|
+
export declare interface ChipProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, StyledComponentProps {
|
|
851
|
+
as?: 'span' | 'div' | 'button';
|
|
852
|
+
mono?: boolean;
|
|
853
|
+
clickable?: boolean;
|
|
854
|
+
disabled?: boolean;
|
|
855
|
+
startDecorator?: ReactNode;
|
|
856
|
+
endDecorator?: ReactNode;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
declare const ChipRoot: ForwardRefExoticComponent<ChipProps & RefAttributes<HTMLElement>>;
|
|
860
|
+
|
|
861
|
+
export declare const ClipboardText: ForwardRefExoticComponent<ClipboardTextProps & RefAttributes<HTMLSpanElement>>;
|
|
862
|
+
|
|
863
|
+
export declare interface ClipboardTextProps extends HTMLAttributes<HTMLElement> {
|
|
864
|
+
/** The text to display and copy. */
|
|
865
|
+
value: string;
|
|
866
|
+
/** Use monospace font (default: false). */
|
|
867
|
+
mono?: boolean;
|
|
868
|
+
/** Truncate with ellipsis (default: false). */
|
|
869
|
+
truncate?: boolean;
|
|
870
|
+
/** Milliseconds to show success state (default: 1500). */
|
|
871
|
+
feedbackDuration?: number;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export declare const Code: <C extends CodeElement = "code">(props: TypographyBaseProps & TruncationProps & {
|
|
875
|
+
as?: C | undefined;
|
|
876
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
877
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
878
|
+
}) => ReactElement | null;
|
|
879
|
+
|
|
880
|
+
export declare function CodeBlock({ className, code, children, language, lineNumbers, copyable, wrap, maxHeight, onCopyCode, copyLabel, variant, color, size, ...props }: CodeBlockProps): JSX.Element;
|
|
881
|
+
|
|
882
|
+
export declare namespace CodeBlock {
|
|
883
|
+
var displayName: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export declare interface CodeBlockProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'color'>, StyledComponentProps {
|
|
887
|
+
code?: string;
|
|
888
|
+
children?: string;
|
|
889
|
+
language?: string;
|
|
890
|
+
lineNumbers?: boolean;
|
|
891
|
+
copyable?: boolean;
|
|
892
|
+
wrap?: boolean;
|
|
893
|
+
maxHeight?: number | string;
|
|
894
|
+
onCopyCode?: (value: string) => void;
|
|
895
|
+
copyLabel?: string;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
declare type CodeElement = 'code' | 'span';
|
|
899
|
+
|
|
900
|
+
export declare type CodeProps<E extends CodeElement = CodeElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
901
|
+
|
|
902
|
+
export declare const Collapsible: ForwardRefExoticComponent<CollapsibleProps & RefAttributes<HTMLDivElement>>;
|
|
903
|
+
|
|
904
|
+
export declare type CollapsibleAnimation = 'default' | 'fast' | 'none';
|
|
905
|
+
|
|
906
|
+
export declare const CollapsibleContent: ForwardRefExoticComponent<CollapsibleContentProps & RefAttributes<HTMLDivElement>>;
|
|
907
|
+
|
|
908
|
+
export declare interface CollapsibleContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
909
|
+
/** Force mount even when collapsed (for SEO or pre-measuring) */
|
|
910
|
+
forceMount?: boolean;
|
|
911
|
+
children: ReactNode;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export declare interface CollapsibleContextValue {
|
|
915
|
+
open: boolean;
|
|
916
|
+
toggle: () => void;
|
|
917
|
+
disabled: boolean;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export declare interface CollapsibleProps extends HTMLAttributes<HTMLDivElement> {
|
|
921
|
+
/** Controlled open state */
|
|
922
|
+
open?: boolean;
|
|
923
|
+
/** Uncontrolled default open state (default: false) */
|
|
924
|
+
defaultOpen?: boolean;
|
|
925
|
+
/** Called when open state changes */
|
|
926
|
+
onOpenChange?: (open: boolean) => void;
|
|
927
|
+
/** Animation speed (default: 'default') */
|
|
928
|
+
animation?: CollapsibleAnimation;
|
|
929
|
+
/** Disable interaction */
|
|
930
|
+
disabled?: boolean;
|
|
931
|
+
children: ReactNode;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export declare const CollapsibleTrigger: ForwardRefExoticComponent<CollapsibleTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
935
|
+
|
|
936
|
+
export declare interface CollapsibleTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
937
|
+
children: ReactNode;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export declare interface ColumnDef {
|
|
941
|
+
/** Unique column identifier, used for Cell matching and sort callbacks */
|
|
942
|
+
id: string;
|
|
943
|
+
/** Header label */
|
|
944
|
+
header: ReactNode;
|
|
945
|
+
/** CSS grid column width — e.g. '1fr', '120px', 'minmax(80px, 1fr)' */
|
|
946
|
+
width?: string;
|
|
947
|
+
/** Column content alignment */
|
|
948
|
+
align?: 'start' | 'center' | 'end';
|
|
949
|
+
/** Whether this column is sortable */
|
|
950
|
+
sortable?: boolean;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare const Combobox: ComboboxCompound;
|
|
954
|
+
|
|
955
|
+
declare const ComboboxChip: ForwardRefExoticComponent<ComboboxChipProps & RefAttributes<HTMLDivElement>>;
|
|
956
|
+
|
|
957
|
+
export declare interface ComboboxChipProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Chip>, 'color'>, StyledComponentProps {
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
declare const ComboboxChipRemove: ForwardRefExoticComponent<ComboboxChipRemoveProps & RefAttributes<HTMLButtonElement>>;
|
|
961
|
+
|
|
962
|
+
export declare interface ComboboxChipRemoveProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.ChipRemove>, 'color'>, StyledComponentProps {
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
declare const ComboboxChips: ForwardRefExoticComponent<Omit<Omit<ComboboxChipsProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
966
|
+
|
|
967
|
+
declare const ComboboxClear: ForwardRefExoticComponent<ComboboxClearProps & RefAttributes<HTMLButtonElement>>;
|
|
968
|
+
|
|
969
|
+
export declare interface ComboboxClearProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Clear>, 'color'>, StyledComponentProps {
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
declare type ComboboxCompound = typeof ComboboxRoot & {
|
|
973
|
+
Root: typeof ComboboxRoot;
|
|
974
|
+
Value: typeof Combobox_2.Value;
|
|
975
|
+
Input: typeof ComboboxInput;
|
|
976
|
+
Trigger: typeof ComboboxTrigger;
|
|
977
|
+
List: typeof ComboboxList;
|
|
978
|
+
Status: typeof Combobox_2.Status;
|
|
979
|
+
Portal: typeof Combobox_2.Portal;
|
|
980
|
+
Backdrop: typeof Combobox_2.Backdrop;
|
|
981
|
+
Positioner: typeof ComboboxPositioner;
|
|
982
|
+
Popup: typeof ComboboxPopup;
|
|
983
|
+
Arrow: typeof Combobox_2.Arrow;
|
|
984
|
+
Icon: typeof Combobox_2.Icon;
|
|
985
|
+
Group: typeof Combobox_2.Group;
|
|
986
|
+
GroupLabel: typeof ComboboxGroupLabel;
|
|
987
|
+
Item: typeof ComboboxItem;
|
|
988
|
+
ItemIndicator: typeof ComboboxItemIndicator;
|
|
989
|
+
Chips: typeof ComboboxChips;
|
|
990
|
+
Chip: typeof ComboboxChip;
|
|
991
|
+
ChipRemove: typeof ComboboxChipRemove;
|
|
992
|
+
Row: typeof Combobox_2.Row;
|
|
993
|
+
Collection: typeof Combobox_2.Collection;
|
|
994
|
+
Empty: typeof ComboboxEmpty;
|
|
995
|
+
Clear: typeof ComboboxClear;
|
|
996
|
+
Separator: typeof ComboboxSeparator;
|
|
997
|
+
useFilter: typeof Combobox_2.useFilter;
|
|
998
|
+
useFilteredItems: typeof Combobox_2.useFilteredItems;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
declare const ComboboxEmpty: ForwardRefExoticComponent<Omit<Omit<AutocompleteEmptyProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1002
|
+
|
|
1003
|
+
declare const ComboboxGroupLabel: ForwardRefExoticComponent<Omit<Omit<AutocompleteGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1004
|
+
|
|
1005
|
+
declare const ComboboxInput: ForwardRefExoticComponent<ComboboxInputProps & RefAttributes<HTMLInputElement>>;
|
|
1006
|
+
|
|
1007
|
+
export declare interface ComboboxInputProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Input>, 'color' | 'size'>, StyledComponentProps {
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
declare const ComboboxItem: ForwardRefExoticComponent<ComboboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
1011
|
+
|
|
1012
|
+
declare const ComboboxItemIndicator: ForwardRefExoticComponent<Omit<Omit<ComboboxItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
1013
|
+
|
|
1014
|
+
export declare interface ComboboxItemProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Item>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps {
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
declare const ComboboxList: ForwardRefExoticComponent<ComboboxListProps & RefAttributes<HTMLDivElement>>;
|
|
1018
|
+
|
|
1019
|
+
export declare interface ComboboxListProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.List>, 'color'>, StyledComponentProps {
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare const ComboboxPopup: ForwardRefExoticComponent<ComboboxPopupProps & RefAttributes<HTMLDivElement>>;
|
|
1023
|
+
|
|
1024
|
+
export declare interface ComboboxPopupProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Popup>, 'color'>, StyledComponentProps {
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
declare const ComboboxPositioner: ForwardRefExoticComponent<Omit<Omit<AutocompletePositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1028
|
+
|
|
1029
|
+
declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>({ variant, color, size, ...props }: ComboboxRootProps<Value, Multiple>): JSX.Element;
|
|
1030
|
+
|
|
1031
|
+
declare namespace ComboboxRoot {
|
|
1032
|
+
var displayName: string;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export declare type ComboboxRootProps<Value = unknown, Multiple extends boolean | undefined = false> = Omit<Combobox_2.Root.Props<Value, Multiple>, 'color'> & StyledComponentProps;
|
|
1036
|
+
|
|
1037
|
+
declare const ComboboxSeparator: ForwardRefExoticComponent<Omit<Omit<SeparatorProps_2, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1038
|
+
|
|
1039
|
+
declare const ComboboxTrigger: ForwardRefExoticComponent<ComboboxTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
1040
|
+
|
|
1041
|
+
export declare interface ComboboxTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Combobox_2.Trigger>, 'color'>, StyledComponentProps {
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export declare interface CommandItemMeta {
|
|
1045
|
+
key: Key_2;
|
|
1046
|
+
isActive: boolean;
|
|
1047
|
+
isDisabled: boolean;
|
|
1048
|
+
groupKey?: string;
|
|
1049
|
+
score?: number;
|
|
1050
|
+
highlights?: HighlightRange[];
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export declare const CommandList: CommandListCompound;
|
|
1054
|
+
|
|
1055
|
+
declare interface CommandListActionsContextValue {
|
|
1056
|
+
invoke: (key: Key_2) => void;
|
|
1057
|
+
moveActive: (delta: number) => void;
|
|
1058
|
+
setActiveKey: (key: Key_2 | null) => void;
|
|
1059
|
+
setQuery: (query: string) => void;
|
|
1060
|
+
dismiss: () => void;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
declare type CommandListCompound = typeof CommandListRoot & {
|
|
1064
|
+
Root: typeof CommandListRoot;
|
|
1065
|
+
Input: typeof CommandListInput;
|
|
1066
|
+
Results: typeof CommandListResults;
|
|
1067
|
+
Item: typeof CommandListItem;
|
|
1068
|
+
ItemIcon: typeof CommandListItemIcon;
|
|
1069
|
+
ItemLabel: typeof CommandListItemLabel;
|
|
1070
|
+
ItemDescription: typeof CommandListItemDescription;
|
|
1071
|
+
ItemShortcut: typeof CommandListItemShortcut;
|
|
1072
|
+
Empty: typeof CommandListEmpty;
|
|
1073
|
+
Loading: typeof CommandListLoading;
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
declare interface CommandListConfigContextValue {
|
|
1077
|
+
listId: string;
|
|
1078
|
+
virtualized: boolean;
|
|
1079
|
+
density: ListDensity_2;
|
|
1080
|
+
loopFocus: boolean;
|
|
1081
|
+
placeholder: string;
|
|
1082
|
+
estimatedItemSize: number;
|
|
1083
|
+
overscan: number;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
declare const CommandListEmpty: ForwardRefExoticComponent<CommandListEmptyProps & RefAttributes<HTMLDivElement>>;
|
|
1087
|
+
|
|
1088
|
+
declare interface CommandListEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
1089
|
+
children: ReactNode;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
declare const CommandListInput: ForwardRefExoticComponent<CommandListInputProps & RefAttributes<HTMLInputElement>>;
|
|
1093
|
+
|
|
1094
|
+
declare interface CommandListInputProps extends Omit<SearchInputProps, 'value' | 'onValueChange'> {
|
|
1095
|
+
autoFocus?: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
declare const CommandListItem: ForwardRefExoticComponent<CommandListItemProps & RefAttributes<HTMLDivElement>>;
|
|
1099
|
+
|
|
1100
|
+
declare const CommandListItemDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1101
|
+
|
|
1102
|
+
declare const CommandListItemIcon: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1103
|
+
|
|
1104
|
+
declare const CommandListItemLabel: ForwardRefExoticComponent<CommandListItemLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
1105
|
+
|
|
1106
|
+
declare interface CommandListItemLabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1107
|
+
highlights?: HighlightRange[];
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export declare interface CommandListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
1111
|
+
itemKey: Key_2;
|
|
1112
|
+
disabled?: boolean;
|
|
1113
|
+
children: ReactNode;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
declare const CommandListItemShortcut: ForwardRefExoticComponent<CommandListItemShortcutProps & RefAttributes<HTMLSpanElement>>;
|
|
1117
|
+
|
|
1118
|
+
declare interface CommandListItemShortcutProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1119
|
+
/** Pre-split key labels. If omitted, children string is auto-split. */
|
|
1120
|
+
keys?: string[];
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
export declare interface CommandListItemState {
|
|
1124
|
+
isActive: boolean;
|
|
1125
|
+
isDisabled: boolean;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
declare const CommandListLoading: ForwardRefExoticComponent<CommandListLoadingProps & RefAttributes<HTMLDivElement>>;
|
|
1129
|
+
|
|
1130
|
+
declare interface CommandListLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
1131
|
+
children?: ReactNode;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
declare const CommandListResults: ForwardRefExoticComponent<CommandListResultsProps & RefAttributes<HTMLDivElement>>;
|
|
1135
|
+
|
|
1136
|
+
declare type CommandListResultsProps = HTMLAttributes<HTMLDivElement>;
|
|
1137
|
+
|
|
1138
|
+
declare const CommandListRoot: <TItem>(props: CommandListRootProps<TItem> & {
|
|
1139
|
+
ref?: Ref<HTMLDivElement>;
|
|
1140
|
+
}) => ReactNode;
|
|
1141
|
+
|
|
1142
|
+
export declare interface CommandListRootProps<TItem = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
1143
|
+
/** Items to display. For external search, update this when results arrive. */
|
|
1144
|
+
items: readonly TItem[];
|
|
1145
|
+
itemKey: (item: TItem) => Key_2;
|
|
1146
|
+
/** Extract display label for client-side filtering and highlight rendering. */
|
|
1147
|
+
getTextValue?: (item: TItem) => string;
|
|
1148
|
+
/** Render a single command item. */
|
|
1149
|
+
renderItem: (item: TItem, meta: CommandItemMeta) => ReactNode;
|
|
1150
|
+
query?: string;
|
|
1151
|
+
defaultQuery?: string;
|
|
1152
|
+
onQueryChange?: (query: string) => void;
|
|
1153
|
+
/** Return `true`/`false` for include/exclude, or a number for scored ranking. */
|
|
1154
|
+
filterFn?: (item: TItem, query: string) => boolean | number;
|
|
1155
|
+
/** Sort filtered results by score. Default true when filterFn returns numbers. */
|
|
1156
|
+
sortByScore?: boolean;
|
|
1157
|
+
groupBy?: (item: TItem) => string;
|
|
1158
|
+
groupOrder?: readonly string[];
|
|
1159
|
+
groupLabel?: (groupKey: string) => string;
|
|
1160
|
+
highlights?: ReadonlyMap<Key_2, HighlightRange[]>;
|
|
1161
|
+
disabledKeys?: Iterable<Key_2>;
|
|
1162
|
+
onAction?: (key: Key_2, item: TItem) => void;
|
|
1163
|
+
onDismiss?: () => void;
|
|
1164
|
+
loading?: boolean;
|
|
1165
|
+
density?: ListDensity_2;
|
|
1166
|
+
loopFocus?: boolean;
|
|
1167
|
+
placeholder?: string;
|
|
1168
|
+
virtualized?: boolean;
|
|
1169
|
+
overscan?: number;
|
|
1170
|
+
estimatedItemSize?: number;
|
|
1171
|
+
children?: ReactNode;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
declare interface CommandListStore {
|
|
1175
|
+
subscribe: (listener: () => void) => () => void;
|
|
1176
|
+
getSnapshot: () => CommandListStoreSnapshot;
|
|
1177
|
+
getItemState: (key: Key_2) => CommandListItemState;
|
|
1178
|
+
setActiveIndex: (index: number) => void;
|
|
1179
|
+
setActiveKey: (key: Key_2 | null) => void;
|
|
1180
|
+
setQuery: (query: string, silent?: boolean) => void;
|
|
1181
|
+
setItems: (items: ProcessedItem[], silent?: boolean) => void;
|
|
1182
|
+
setLoading: (loading: boolean, silent?: boolean) => void;
|
|
1183
|
+
getItems: () => readonly ProcessedItem[];
|
|
1184
|
+
getItemByIndex: (index: number) => ProcessedItem | undefined;
|
|
1185
|
+
/** Rebuild snapshot and notify listeners. Call from useEffect after silent updates. */
|
|
1186
|
+
emit: () => void;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
declare interface CommandListStoreSnapshot {
|
|
1190
|
+
activeIndex: number;
|
|
1191
|
+
activeKey: Key_2 | null;
|
|
1192
|
+
query: string;
|
|
1193
|
+
visibleCount: number;
|
|
1194
|
+
loading: boolean;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
export declare type ComponentColor = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
1198
|
+
|
|
1199
|
+
export declare type ComponentSize = 'sm' | 'md' | 'lg';
|
|
1200
|
+
|
|
1201
|
+
export declare type ComponentVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
1202
|
+
|
|
1203
|
+
export declare function computeTabSegments(tabs: TabDescriptor[], groups?: TabGroupDescriptor[]): TabSegments;
|
|
1204
|
+
|
|
1205
|
+
export declare const ConfirmButton: ForwardRefExoticComponent<ConfirmButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
1206
|
+
|
|
1207
|
+
export declare interface ConfirmButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'onClick' | 'type'>, StyledComponentProps {
|
|
1208
|
+
/** Text shown in the confirm state. */
|
|
1209
|
+
confirmLabel?: string;
|
|
1210
|
+
/** Color applied in the confirm state. */
|
|
1211
|
+
confirmColor?: ComponentColor;
|
|
1212
|
+
/** Milliseconds before the confirm state reverts to default. */
|
|
1213
|
+
confirmTimeout?: number;
|
|
1214
|
+
/** Callback fired on the second (confirming) click. */
|
|
1215
|
+
onConfirm: () => void;
|
|
1216
|
+
/** Whether the button is disabled. */
|
|
1217
|
+
disabled?: boolean;
|
|
1218
|
+
children: ReactNode;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export declare const Container: ForwardRefExoticComponent<ContainerProps & RefAttributes<HTMLDivElement>>;
|
|
1222
|
+
|
|
1223
|
+
export declare type ContainerMaxWidth = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1224
|
+
|
|
1225
|
+
export declare interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
1226
|
+
maxWidth?: ContainerMaxWidth;
|
|
1227
|
+
disableGutters?: boolean;
|
|
1228
|
+
fixed?: boolean;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
declare const Content: ForwardRefExoticComponent<AppShellContentProps & RefAttributes<HTMLElement>>;
|
|
1232
|
+
|
|
1233
|
+
export declare const ContextMenu: ContextMenuCompound;
|
|
1234
|
+
|
|
1235
|
+
declare const ContextMenuBackdrop: ForwardRefExoticComponent<Omit<Omit<ContextMenuBackdropProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1236
|
+
|
|
1237
|
+
declare const ContextMenuCheckboxItem: ForwardRefExoticComponent<ContextMenuCheckboxItemProps & RefAttributes<HTMLElement>>;
|
|
1238
|
+
|
|
1239
|
+
declare const ContextMenuCheckboxItemIndicator: ForwardRefExoticComponent<Omit<Omit<ContextMenuCheckboxItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
1240
|
+
|
|
1241
|
+
export declare interface ContextMenuCheckboxItemProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.CheckboxItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_2 {
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
declare type ContextMenuCompound = typeof ContextMenuRoot & {
|
|
1245
|
+
Root: typeof ContextMenuRoot;
|
|
1246
|
+
Trigger: typeof ContextMenuTrigger;
|
|
1247
|
+
Portal: typeof ContextMenu_2.Portal;
|
|
1248
|
+
Backdrop: typeof ContextMenuBackdrop;
|
|
1249
|
+
Positioner: typeof ContextMenuPositioner;
|
|
1250
|
+
Popup: typeof ContextMenuPopup;
|
|
1251
|
+
Arrow: typeof ContextMenu_2.Arrow;
|
|
1252
|
+
Group: typeof ContextMenu_2.Group;
|
|
1253
|
+
GroupLabel: typeof ContextMenuGroupLabel;
|
|
1254
|
+
Item: typeof ContextMenuItem;
|
|
1255
|
+
LinkItem: typeof ContextMenuLinkItem;
|
|
1256
|
+
CheckboxItem: typeof ContextMenuCheckboxItem;
|
|
1257
|
+
CheckboxItemIndicator: typeof ContextMenuCheckboxItemIndicator;
|
|
1258
|
+
RadioGroup: typeof ContextMenu_2.RadioGroup;
|
|
1259
|
+
RadioItem: typeof ContextMenuRadioItem;
|
|
1260
|
+
RadioItemIndicator: typeof ContextMenuRadioItemIndicator;
|
|
1261
|
+
SubmenuRoot: typeof ContextMenu_2.SubmenuRoot;
|
|
1262
|
+
SubmenuTrigger: typeof ContextMenuSubmenuTrigger;
|
|
1263
|
+
Separator: typeof ContextMenuSeparator;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
declare const ContextMenuGroupLabel: ForwardRefExoticComponent<Omit<Omit<Omit<ContextMenuGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
1267
|
+
|
|
1268
|
+
declare const ContextMenuItem: ForwardRefExoticComponent<ContextMenuItemProps & RefAttributes<HTMLElement>>;
|
|
1269
|
+
|
|
1270
|
+
export declare interface ContextMenuItemProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.Item>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_2 {
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
declare const ContextMenuLinkItem: ForwardRefExoticComponent<ContextMenuLinkItemProps & RefAttributes<Element>>;
|
|
1274
|
+
|
|
1275
|
+
export declare interface ContextMenuLinkItemProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.LinkItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_2 {
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
declare const ContextMenuPopup: ForwardRefExoticComponent<ContextMenuPopupProps & RefAttributes<HTMLDivElement>>;
|
|
1279
|
+
|
|
1280
|
+
export declare interface ContextMenuPopupProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.Popup>, 'color'>, StyledComponentProps {
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
declare const ContextMenuPositioner: ForwardRefExoticComponent<Omit<Omit<ContextMenuPositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1284
|
+
|
|
1285
|
+
declare const ContextMenuRadioItem: ForwardRefExoticComponent<ContextMenuRadioItemProps & RefAttributes<HTMLElement>>;
|
|
1286
|
+
|
|
1287
|
+
declare const ContextMenuRadioItemIndicator: ForwardRefExoticComponent<Omit<Omit<ContextMenuRadioItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
1288
|
+
|
|
1289
|
+
export declare interface ContextMenuRadioItemProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.RadioItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_2 {
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
declare const ContextMenuRoot: {
|
|
1293
|
+
({ variant, color, size, ...props }: ContextMenuRootProps): JSX.Element;
|
|
1294
|
+
displayName: string;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
export declare interface ContextMenuRootProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.Root>, 'color'>, StyledComponentProps {
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
declare const ContextMenuSeparator: ForwardRefExoticComponent<Omit<Omit<Omit<SeparatorProps_2, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
1301
|
+
|
|
1302
|
+
declare const ContextMenuSubmenuTrigger: ForwardRefExoticComponent<ContextMenuSubmenuTriggerProps & RefAttributes<HTMLElement>>;
|
|
1303
|
+
|
|
1304
|
+
export declare interface ContextMenuSubmenuTriggerProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.SubmenuTrigger>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_2 {
|
|
1305
|
+
showCaret?: boolean;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
declare const ContextMenuTrigger: ForwardRefExoticComponent<ContextMenuTriggerProps & RefAttributes<HTMLDivElement>>;
|
|
1309
|
+
|
|
1310
|
+
export declare interface ContextMenuTriggerProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenu_2.Trigger>, 'color'>, StyledComponentProps {
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export declare const DataTable: DataTableCompound;
|
|
1314
|
+
|
|
1315
|
+
declare const DataTableBody: ForwardRefExoticComponent<DataTableBodyProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1316
|
+
|
|
1317
|
+
export declare interface DataTableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
1318
|
+
renderExpandedRow?: (row: unknown) => ReactNode;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
declare const DataTableColumnVisibility: ForwardRefExoticComponent<DataTableColumnVisibilityProps & RefAttributes<HTMLDivElement>>;
|
|
1322
|
+
|
|
1323
|
+
export declare type DataTableColumnVisibilityProps = HTMLAttributes<HTMLDivElement>;
|
|
1324
|
+
|
|
1325
|
+
declare type DataTableCompound = typeof DataTableRoot & {
|
|
1326
|
+
Root: typeof DataTableRoot;
|
|
1327
|
+
Container: typeof DataTableContainer;
|
|
1328
|
+
Header: typeof DataTableHeader;
|
|
1329
|
+
Body: typeof DataTableBody;
|
|
1330
|
+
VirtualBody: typeof DataTableVirtualBody;
|
|
1331
|
+
Footer: typeof DataTableFooter;
|
|
1332
|
+
Toolbar: typeof DataTableToolbar;
|
|
1333
|
+
ColumnVisibility: typeof DataTableColumnVisibility;
|
|
1334
|
+
Pagination: typeof DataTablePagination;
|
|
1335
|
+
Empty: typeof DataTableEmpty;
|
|
1336
|
+
Loading: typeof DataTableLoading;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
declare const DataTableContainer: ForwardRefExoticComponent<DataTableContainerProps & RefAttributes<HTMLDivElement>>;
|
|
1340
|
+
|
|
1341
|
+
export declare interface DataTableContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
1342
|
+
height?: number | string;
|
|
1343
|
+
maxHeight?: number | string;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
declare interface DataTableContextValue {
|
|
1347
|
+
table: Table_2<any>;
|
|
1348
|
+
features: DataTableFeatures;
|
|
1349
|
+
stickyHeader: boolean;
|
|
1350
|
+
hoverable: boolean;
|
|
1351
|
+
striped: boolean;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
declare const DataTableEmpty: ForwardRefExoticComponent<DataTableEmptyProps & RefAttributes<HTMLDivElement>>;
|
|
1355
|
+
|
|
1356
|
+
export declare interface DataTableEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
1357
|
+
icon?: ReactNode;
|
|
1358
|
+
title?: string;
|
|
1359
|
+
description?: string;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
export declare interface DataTableFeatures {
|
|
1363
|
+
sorting?: boolean;
|
|
1364
|
+
filtering?: boolean;
|
|
1365
|
+
globalFilter?: boolean;
|
|
1366
|
+
columnResizing?: boolean;
|
|
1367
|
+
columnOrdering?: boolean;
|
|
1368
|
+
columnPinning?: boolean;
|
|
1369
|
+
columnVisibility?: boolean;
|
|
1370
|
+
rowSelection?: false | 'single' | 'multi';
|
|
1371
|
+
rowExpansion?: boolean;
|
|
1372
|
+
pagination?: boolean;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
declare const DataTableFooter: ForwardRefExoticComponent<DataTableFooterProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1376
|
+
|
|
1377
|
+
export declare type DataTableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
1378
|
+
|
|
1379
|
+
declare const DataTableHeader: ForwardRefExoticComponent<DataTableHeaderProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1380
|
+
|
|
1381
|
+
export declare type DataTableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
1382
|
+
|
|
1383
|
+
declare const DataTableLoading: ForwardRefExoticComponent<DataTableLoadingProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1384
|
+
|
|
1385
|
+
export declare interface DataTableLoadingProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
1386
|
+
rows?: number;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
declare const DataTablePagination: ForwardRefExoticComponent<DataTablePaginationProps & RefAttributes<HTMLDivElement>>;
|
|
1390
|
+
|
|
1391
|
+
export declare type DataTablePaginationProps = HTMLAttributes<HTMLDivElement>;
|
|
1392
|
+
|
|
1393
|
+
declare const DataTableRoot: ForwardRefExoticComponent<DataTableRootProps & RefAttributes<HTMLDivElement>>;
|
|
1394
|
+
|
|
1395
|
+
export declare interface DataTableRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
1396
|
+
table: Table_2<any>;
|
|
1397
|
+
features?: DataTableFeatures;
|
|
1398
|
+
stickyHeader?: boolean;
|
|
1399
|
+
hoverable?: boolean;
|
|
1400
|
+
striped?: boolean;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
declare const DataTableToolbar: ForwardRefExoticComponent<DataTableToolbarProps & RefAttributes<HTMLDivElement>>;
|
|
1404
|
+
|
|
1405
|
+
export declare interface DataTableToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
1406
|
+
searchPlaceholder?: string;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
declare const DataTableVirtualBody: ForwardRefExoticComponent<DataTableVirtualBodyProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1410
|
+
|
|
1411
|
+
export declare interface DataTableVirtualBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
1412
|
+
estimateRowSize?: number;
|
|
1413
|
+
overscan?: number;
|
|
1414
|
+
/**
|
|
1415
|
+
* When true, skips dynamic row measurement via `getBoundingClientRect`.
|
|
1416
|
+
* Use this when all rows have the same height (set via `estimateRowSize`)
|
|
1417
|
+
* to avoid forced reflow on mount — a significant perf win for large tables.
|
|
1418
|
+
*/
|
|
1419
|
+
fixedRowHeight?: boolean;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
declare interface DebouncedFunction<TArgs extends unknown[], TReturn> {
|
|
1423
|
+
(...args: TArgs): void;
|
|
1424
|
+
cancel: () => void;
|
|
1425
|
+
flush: () => TReturn | undefined;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
declare interface DecoratedContentProps {
|
|
1429
|
+
children?: ReactNode;
|
|
1430
|
+
startDecorator?: ReactNode;
|
|
1431
|
+
endDecorator?: ReactNode;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
declare interface DecoratedContentProps_2 {
|
|
1435
|
+
children?: ReactNode;
|
|
1436
|
+
startDecorator?: ReactNode;
|
|
1437
|
+
endDecorator?: ReactNode;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
declare interface DecoratedContentProps_3 {
|
|
1441
|
+
children?: ReactNode;
|
|
1442
|
+
startDecorator?: ReactNode;
|
|
1443
|
+
endDecorator?: ReactNode;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
declare interface DecoratedContentProps_4 {
|
|
1447
|
+
children?: ReactNode;
|
|
1448
|
+
startDecorator?: ReactNode;
|
|
1449
|
+
endDecorator?: ReactNode;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
export declare const DescriptionList: DescriptionListCompound;
|
|
1453
|
+
|
|
1454
|
+
export declare type DescriptionListColumns = 1 | 2 | 3;
|
|
1455
|
+
|
|
1456
|
+
declare type DescriptionListCompound = typeof DescriptionListRoot & {
|
|
1457
|
+
Item: typeof DescriptionListItem;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
declare const DescriptionListItem: ForwardRefExoticComponent<DescriptionListItemProps & RefAttributes<HTMLDivElement>>;
|
|
1461
|
+
|
|
1462
|
+
export declare interface DescriptionListItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
1463
|
+
label: string;
|
|
1464
|
+
copyable?: boolean;
|
|
1465
|
+
children?: ReactNode;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
export declare type DescriptionListLayout = 'horizontal' | 'vertical' | 'grid';
|
|
1469
|
+
|
|
1470
|
+
export declare interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
1471
|
+
layout?: DescriptionListLayout;
|
|
1472
|
+
columns?: DescriptionListColumns;
|
|
1473
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
declare const DescriptionListRoot: ForwardRefExoticComponent<DescriptionListProps & RefAttributes<HTMLDListElement>>;
|
|
1477
|
+
|
|
1478
|
+
export declare type DetachCommit = {
|
|
1479
|
+
id: TabId;
|
|
1480
|
+
payload?: unknown;
|
|
1481
|
+
screenX: number;
|
|
1482
|
+
screenY: number;
|
|
1483
|
+
};
|
|
1484
|
+
|
|
1485
|
+
export declare const Dialog: DialogCompound;
|
|
1486
|
+
|
|
1487
|
+
declare const DialogBody: ForwardRefExoticComponent<DialogBodyProps & RefAttributes<HTMLDivElement>>;
|
|
1488
|
+
|
|
1489
|
+
export declare type DialogBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
1490
|
+
|
|
1491
|
+
declare const DialogClose: ForwardRefExoticComponent<DialogCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
1492
|
+
|
|
1493
|
+
export declare type DialogCloseProps = HTMLAttributes<HTMLButtonElement>;
|
|
1494
|
+
|
|
1495
|
+
declare type DialogCompound = typeof DialogRoot & {
|
|
1496
|
+
Title: typeof DialogTitle;
|
|
1497
|
+
Body: typeof DialogBody;
|
|
1498
|
+
Footer: typeof DialogFooter;
|
|
1499
|
+
Close: typeof DialogClose;
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
declare const DialogFooter: ForwardRefExoticComponent<DialogFooterProps & RefAttributes<HTMLDivElement>>;
|
|
1503
|
+
|
|
1504
|
+
export declare type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
1505
|
+
|
|
1506
|
+
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
1507
|
+
open: boolean;
|
|
1508
|
+
onClose: () => void;
|
|
1509
|
+
size?: DialogSize;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
declare const DialogRoot: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
|
|
1513
|
+
|
|
1514
|
+
export declare type DialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1515
|
+
|
|
1516
|
+
declare const DialogTitle: ForwardRefExoticComponent<DialogTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
1517
|
+
|
|
1518
|
+
export declare interface DialogTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
1519
|
+
icon?: ReactNode;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export declare type DockDirection = 'horizontal' | 'vertical';
|
|
1523
|
+
|
|
1524
|
+
export declare const DockLayout: ForwardRefExoticComponent<DockLayoutProps & RefAttributes<HTMLDivElement>>;
|
|
1525
|
+
|
|
1526
|
+
export declare interface DockLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
1527
|
+
/** The layout tree definition. */
|
|
1528
|
+
layout: DockNode;
|
|
1529
|
+
/** Callback when layout changes (tab switches, closes, resize). */
|
|
1530
|
+
onLayoutChange?: (layout: DockNode) => void;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
export declare interface DockLeaf {
|
|
1534
|
+
type: 'leaf';
|
|
1535
|
+
id: string;
|
|
1536
|
+
tabs: DockTab[];
|
|
1537
|
+
activeTab?: string;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
export declare type DockNode = DockSplit | DockLeaf;
|
|
1541
|
+
|
|
1542
|
+
export declare interface DockSplit {
|
|
1543
|
+
type: 'split';
|
|
1544
|
+
direction: DockDirection;
|
|
1545
|
+
children: DockNode[];
|
|
1546
|
+
sizes?: number[];
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
export declare interface DockTab {
|
|
1550
|
+
id: string;
|
|
1551
|
+
title: string;
|
|
1552
|
+
icon?: ReactNode;
|
|
1553
|
+
closable?: boolean;
|
|
1554
|
+
content: ReactNode;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
export declare type DragMode = 'idle' | 'reorder' | 'detach-armed';
|
|
1558
|
+
|
|
1559
|
+
export declare const Drawer: DrawerCompound;
|
|
1560
|
+
|
|
1561
|
+
export declare type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
|
|
1562
|
+
|
|
1563
|
+
declare type DrawerCompound = typeof DrawerRoot & {
|
|
1564
|
+
Content: typeof DrawerContent;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
declare const DrawerContent: ForwardRefExoticComponent<DrawerContentProps & RefAttributes<HTMLDivElement>>;
|
|
1568
|
+
|
|
1569
|
+
export declare type DrawerContentProps = HTMLAttributes<HTMLDivElement>;
|
|
1570
|
+
|
|
1571
|
+
export declare type DrawerHandleVariant = 'bar' | 'edge';
|
|
1572
|
+
|
|
1573
|
+
export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
1574
|
+
open: boolean;
|
|
1575
|
+
onOpenChange?: (open: boolean) => void;
|
|
1576
|
+
anchor?: DrawerAnchor;
|
|
1577
|
+
defaultSize?: number;
|
|
1578
|
+
minSize?: number;
|
|
1579
|
+
maxSize?: number;
|
|
1580
|
+
resizable?: boolean;
|
|
1581
|
+
handleVariant?: DrawerHandleVariant;
|
|
1582
|
+
overlay?: boolean;
|
|
1583
|
+
modal?: boolean;
|
|
1584
|
+
animate?: boolean;
|
|
1585
|
+
onSizeChange?: (size: number) => void;
|
|
1586
|
+
children?: ReactNode;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
declare const DrawerRoot: ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDivElement>>;
|
|
1590
|
+
|
|
1591
|
+
declare interface DropZoneRegistration {
|
|
1592
|
+
instanceId: string;
|
|
1593
|
+
getRect: () => DOMRect | null;
|
|
1594
|
+
getElement: () => HTMLElement | null;
|
|
1595
|
+
onAttach: (commit: AttachCommit) => void;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
export declare const EditableList: EditableListCompound;
|
|
1599
|
+
|
|
1600
|
+
declare type EditableListCompound = typeof EditableListRoot & {
|
|
1601
|
+
Root: typeof EditableListRoot;
|
|
1602
|
+
Viewport: typeof List.Viewport;
|
|
1603
|
+
Item: typeof EditableListItem;
|
|
1604
|
+
ItemView: typeof EditableListItemView;
|
|
1605
|
+
ItemEditor: typeof EditableListItemEditor;
|
|
1606
|
+
ItemField: typeof EditableListItemField;
|
|
1607
|
+
ItemSave: typeof EditableListItemSave;
|
|
1608
|
+
ItemCancel: typeof EditableListItemCancel;
|
|
1609
|
+
useField: typeof useEditableField;
|
|
1610
|
+
ItemIcon: typeof List.ItemIcon;
|
|
1611
|
+
ItemLabel: typeof List.ItemLabel;
|
|
1612
|
+
ItemDescription: typeof List.ItemDescription;
|
|
1613
|
+
ItemMeta: typeof List.ItemMeta;
|
|
1614
|
+
ItemActions: typeof List.ItemActions;
|
|
1615
|
+
Group: typeof List.Group;
|
|
1616
|
+
GroupHeader: typeof List.GroupHeader;
|
|
1617
|
+
Separator: typeof List.Separator;
|
|
1618
|
+
Empty: typeof List.Empty;
|
|
1619
|
+
Loading: typeof List.Loading;
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
declare const EditableListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLDivElement>>;
|
|
1623
|
+
|
|
1624
|
+
declare const EditableListItemCancel: ForwardRefExoticComponent<EditableListItemCancelProps & RefAttributes<HTMLButtonElement>>;
|
|
1625
|
+
|
|
1626
|
+
export declare interface EditableListItemCancelProps extends HTMLAttributes<HTMLButtonElement> {
|
|
1627
|
+
children?: ReactNode;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
declare const EditableListItemEditor: ForwardRefExoticComponent<EditableListItemEditorProps & RefAttributes<HTMLDivElement>>;
|
|
1631
|
+
|
|
1632
|
+
export declare interface EditableListItemEditorProps extends HTMLAttributes<HTMLDivElement> {
|
|
1633
|
+
children?: ReactNode;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
declare const EditableListItemField: ForwardRefExoticComponent<EditableListItemFieldProps & RefAttributes<HTMLInputElement>>;
|
|
1637
|
+
|
|
1638
|
+
export declare interface EditableListItemFieldProps {
|
|
1639
|
+
/** Field name, used as key in the values map passed to onCommit */
|
|
1640
|
+
name: string;
|
|
1641
|
+
/** Default value when entering edit mode */
|
|
1642
|
+
defaultValue?: string;
|
|
1643
|
+
/** Placeholder text */
|
|
1644
|
+
placeholder?: string;
|
|
1645
|
+
/** Whether this field should auto-focus when edit mode starts */
|
|
1646
|
+
autoFocus?: boolean;
|
|
1647
|
+
/** Change handler */
|
|
1648
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
1649
|
+
/** Additional class name */
|
|
1650
|
+
className?: string;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
export declare type EditableListItemProps = ListItemProps;
|
|
1654
|
+
|
|
1655
|
+
declare const EditableListItemSave: ForwardRefExoticComponent<EditableListItemSaveProps & RefAttributes<HTMLButtonElement>>;
|
|
1656
|
+
|
|
1657
|
+
export declare interface EditableListItemSaveProps extends HTMLAttributes<HTMLButtonElement> {
|
|
1658
|
+
children?: ReactNode;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
declare const EditableListItemView: ForwardRefExoticComponent<EditableListItemViewProps & RefAttributes<HTMLDivElement>>;
|
|
1662
|
+
|
|
1663
|
+
export declare interface EditableListItemViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
1664
|
+
children?: ReactNode;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
declare const EditableListRoot: ForwardRefExoticComponent<EditableListRootProps & RefAttributes<HTMLDivElement>>;
|
|
1668
|
+
|
|
1669
|
+
export declare interface EditableListRootProps extends ListRootProps {
|
|
1670
|
+
/** Currently editing item key (controlled) */
|
|
1671
|
+
editingKey?: Key | null;
|
|
1672
|
+
/** Initial editing key (uncontrolled) */
|
|
1673
|
+
defaultEditingKey?: Key | null;
|
|
1674
|
+
/** Callback when editing key changes */
|
|
1675
|
+
onEditingKeyChange?: (key: Key | null) => void;
|
|
1676
|
+
/** Called when user commits an edit (Enter or Save button) */
|
|
1677
|
+
onCommit?: (key: Key, values: Record<string, string>) => void;
|
|
1678
|
+
/** Called when user cancels editing (Escape or Cancel button) */
|
|
1679
|
+
onCancel?: (key: Key) => void;
|
|
1680
|
+
/** Validation function, called before onCommit */
|
|
1681
|
+
validateItem?: ValidateItem;
|
|
1682
|
+
/** Whether editing is allowed (global toggle for read-only mode) */
|
|
1683
|
+
editable?: boolean;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
declare const EditorTabCloseButton: ForwardRefExoticComponent<EditorTabCloseButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
1687
|
+
|
|
1688
|
+
declare interface EditorTabCloseButtonProps {
|
|
1689
|
+
tabId: string;
|
|
1690
|
+
tabTitle: string;
|
|
1691
|
+
dirty?: boolean;
|
|
1692
|
+
onClose: (id: string) => void;
|
|
1693
|
+
className?: string;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
declare const EditorTabGroupChip: ForwardRefExoticComponent<EditorTabGroupChipProps & RefAttributes<HTMLElement>>;
|
|
1697
|
+
|
|
1698
|
+
declare interface EditorTabGroupChipProps {
|
|
1699
|
+
group: TabGroupDescriptor;
|
|
1700
|
+
tabCount: number;
|
|
1701
|
+
className?: string;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
declare const EditorTabItem: NamedExoticComponent<EditorTabItemProps & RefAttributes<HTMLDivElement>>;
|
|
1705
|
+
|
|
1706
|
+
declare interface EditorTabItemProps {
|
|
1707
|
+
tab: TabDescriptor;
|
|
1708
|
+
className?: string;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
export declare const EditorTabs: EditorTabsCompound;
|
|
1712
|
+
|
|
1713
|
+
declare type EditorTabsCompound = typeof EditorTabsRoot & {
|
|
1714
|
+
Root: typeof EditorTabsRoot;
|
|
1715
|
+
Viewport: typeof EditorTabsViewport;
|
|
1716
|
+
Segment: typeof EditorTabsSegment;
|
|
1717
|
+
Item: typeof EditorTabItem;
|
|
1718
|
+
CloseButton: typeof EditorTabCloseButton;
|
|
1719
|
+
ScrollButton: typeof EditorTabScrollButton;
|
|
1720
|
+
ScrollShadow: typeof EditorTabScrollShadow;
|
|
1721
|
+
GroupChip: typeof EditorTabGroupChip;
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
declare interface EditorTabsContextValue {
|
|
1725
|
+
activeId: TabId;
|
|
1726
|
+
onActiveChange: (id: TabId) => void;
|
|
1727
|
+
onCloseTab?: (id: TabId) => void;
|
|
1728
|
+
onContextMenuTab?: (id: TabId, ev: React.MouseEvent) => void;
|
|
1729
|
+
onToggleGroupCollapsed?: (groupId: TabGroupId) => void;
|
|
1730
|
+
onGroupContextMenu?: (groupId: TabGroupId, ev: React.MouseEvent) => void;
|
|
1731
|
+
scrollState: ScrollState;
|
|
1732
|
+
scrollTo: (direction: 'left' | 'right') => void;
|
|
1733
|
+
viewportRef: React.RefObject<HTMLDivElement | null>;
|
|
1734
|
+
tabs: TabId[];
|
|
1735
|
+
dragActiveId: TabId | null;
|
|
1736
|
+
dragMode: DragMode;
|
|
1737
|
+
isAttachDropTarget: boolean;
|
|
1738
|
+
attachInsertIndex: number | null;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
declare const EditorTabScrollButton: ForwardRefExoticComponent<EditorTabScrollButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
1742
|
+
|
|
1743
|
+
declare interface EditorTabScrollButtonProps {
|
|
1744
|
+
direction: 'left' | 'right';
|
|
1745
|
+
className?: string;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
declare const EditorTabScrollShadow: ForwardRefExoticComponent<EditorTabScrollShadowProps & RefAttributes<HTMLDivElement>>;
|
|
1749
|
+
|
|
1750
|
+
declare interface EditorTabScrollShadowProps {
|
|
1751
|
+
side: 'left' | 'right';
|
|
1752
|
+
className?: string;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
export declare interface EditorTabsProps extends Omit<StyledComponentProps, 'variant'> {
|
|
1756
|
+
/** Tab style variant. `'pill'` gives rounded top corners for browser-style tabs. */
|
|
1757
|
+
variant?: StyledComponentProps['variant'] | 'pill';
|
|
1758
|
+
tabs: TabDescriptor[];
|
|
1759
|
+
groups?: TabGroupDescriptor[];
|
|
1760
|
+
activeId?: TabId;
|
|
1761
|
+
defaultActiveId?: TabId;
|
|
1762
|
+
onActiveChange?: (id: TabId) => void;
|
|
1763
|
+
onCloseTab?: (id: TabId) => void;
|
|
1764
|
+
onContextMenuTab?: (id: TabId, ev: React.MouseEvent) => void;
|
|
1765
|
+
onToggleGroupCollapsed?: (groupId: TabGroupId) => void;
|
|
1766
|
+
onGroupContextMenu?: (groupId: TabGroupId, ev: React.MouseEvent) => void;
|
|
1767
|
+
onReorder?: (nextTabs: TabDescriptor[], meta: ReorderMeta) => void;
|
|
1768
|
+
allowReorderAcrossPinnedBoundary?: boolean;
|
|
1769
|
+
allowReorderAcrossGroups?: boolean;
|
|
1770
|
+
detachable?: boolean;
|
|
1771
|
+
detachThresholdPx?: number;
|
|
1772
|
+
onDetachCommit?: (commit: DetachCommit) => void;
|
|
1773
|
+
instanceId?: string;
|
|
1774
|
+
onAttachTab?: (commit: AttachCommit) => void;
|
|
1775
|
+
/** When true and a TabDragBrokerProvider is present, vertical detach starts a
|
|
1776
|
+
* broker session instead of the default Phase 3 flow. */
|
|
1777
|
+
detachToBroker?: boolean;
|
|
1778
|
+
className?: string;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
declare const EditorTabsRoot: ForwardRefExoticComponent<EditorTabsProps & RefAttributes<HTMLDivElement>>;
|
|
1782
|
+
|
|
1783
|
+
declare const EditorTabsSegment: ForwardRefExoticComponent<EditorTabsSegmentProps & RefAttributes<HTMLDivElement>>;
|
|
1784
|
+
|
|
1785
|
+
declare interface EditorTabsSegmentProps {
|
|
1786
|
+
type: 'pinned' | 'group' | 'ungrouped';
|
|
1787
|
+
group?: TabGroupDescriptor;
|
|
1788
|
+
tabCount?: number;
|
|
1789
|
+
items?: string[];
|
|
1790
|
+
children: ReactNode;
|
|
1791
|
+
className?: string;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
declare const EditorTabsViewport: ForwardRefExoticComponent<EditorTabsViewportProps & RefAttributes<HTMLDivElement>>;
|
|
1795
|
+
|
|
1796
|
+
declare interface EditorTabsViewportProps {
|
|
1797
|
+
children: ReactNode;
|
|
1798
|
+
className?: string;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
export declare const Em: <C extends EmElement = "em">(props: TypographyBaseProps & TruncationProps & {
|
|
1802
|
+
as?: C | undefined;
|
|
1803
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
1804
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
1805
|
+
}) => ReactElement | null;
|
|
1806
|
+
|
|
1807
|
+
declare type EmElement = 'em' | 'span';
|
|
1808
|
+
|
|
1809
|
+
export declare type EmProps<E extends EmElement = EmElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
1810
|
+
|
|
1811
|
+
export declare const EmptyState: ForwardRefExoticComponent<EmptyStateProps & RefAttributes<HTMLDivElement>>;
|
|
1812
|
+
|
|
1813
|
+
export declare interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
|
|
1814
|
+
icon?: ReactNode;
|
|
1815
|
+
title: string;
|
|
1816
|
+
description?: string;
|
|
1817
|
+
action?: ReactNode;
|
|
1818
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/** Any element that has a string `.value` and can receive focus. */
|
|
1822
|
+
export declare interface FieldElement {
|
|
1823
|
+
value: string;
|
|
1824
|
+
focus: () => void;
|
|
1825
|
+
select?: () => void;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/** Per-field error message keyed by field name */
|
|
1829
|
+
export declare type FieldErrors = Record<string, string | undefined>;
|
|
1830
|
+
|
|
1831
|
+
export declare const FileTable: FileTableCompound;
|
|
1832
|
+
|
|
1833
|
+
export declare function FileTableBody({ rowActions }: FileTableBodyProps): JSX.Element;
|
|
1834
|
+
|
|
1835
|
+
export declare interface FileTableBodyProps {
|
|
1836
|
+
rowActions?: (item: FileTableItem) => ReactNode;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
export declare function FileTableColumn<T extends FileTableItem = FileTableItem>(_props: FileTableColumnProps<T>): null;
|
|
1840
|
+
|
|
1841
|
+
export declare namespace FileTableColumn {
|
|
1842
|
+
var displayName: string;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
export declare interface FileTableColumnProps<T extends FileTableItem = FileTableItem> {
|
|
1846
|
+
id: string;
|
|
1847
|
+
header: ReactNode;
|
|
1848
|
+
accessor: (item: T) => ReactNode;
|
|
1849
|
+
sortAccessor?: (item: T) => string | number | Date | undefined;
|
|
1850
|
+
sortFn?: (a: T, b: T) => number;
|
|
1851
|
+
width?: number | string;
|
|
1852
|
+
sortable?: boolean;
|
|
1853
|
+
mono?: boolean;
|
|
1854
|
+
align?: 'left' | 'right';
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
declare type FileTableCompound = typeof FileTableRoot & {
|
|
1858
|
+
Root: typeof FileTableRoot;
|
|
1859
|
+
Header: typeof FileTableHeader;
|
|
1860
|
+
Body: typeof FileTableBody;
|
|
1861
|
+
Status: typeof FileTableStatus;
|
|
1862
|
+
Column: typeof FileTableColumn;
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
export declare function FileTableHeader({ children }: FileTableHeaderProps): JSX.Element;
|
|
1866
|
+
|
|
1867
|
+
export declare interface FileTableHeaderProps {
|
|
1868
|
+
children?: ReactNode;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
export declare interface FileTableItem {
|
|
1872
|
+
id: string;
|
|
1873
|
+
name: string;
|
|
1874
|
+
type: 'file' | 'folder';
|
|
1875
|
+
size?: number;
|
|
1876
|
+
modified?: string;
|
|
1877
|
+
extension?: string;
|
|
1878
|
+
children?: FileTableItem[];
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export declare const FileTableRoot: ForwardRefExoticComponent<FileTableRootProps & RefAttributes<HTMLDivElement>>;
|
|
1882
|
+
|
|
1883
|
+
export declare interface FileTableRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
1884
|
+
items: FileTableItem[];
|
|
1885
|
+
onNavigate?: (folder: FileTableItem) => void;
|
|
1886
|
+
onSelect?: (item: FileTableItem) => void;
|
|
1887
|
+
selectedId?: string;
|
|
1888
|
+
showParent?: boolean;
|
|
1889
|
+
onNavigateUp?: () => void;
|
|
1890
|
+
defaultSort?: SortConfig;
|
|
1891
|
+
children: ReactNode;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
export declare function FileTableStatus(): JSX.Element;
|
|
1895
|
+
|
|
1896
|
+
/** Derive file type label from a file node */
|
|
1897
|
+
export declare function fileTypeLabel(node: {
|
|
1898
|
+
type: string;
|
|
1899
|
+
extension?: string;
|
|
1900
|
+
}): string;
|
|
1901
|
+
|
|
1902
|
+
export declare const FilterBar: FilterBarCompound;
|
|
1903
|
+
|
|
1904
|
+
declare const FilterBarAdd: ForwardRefExoticComponent<FilterBarAddProps & RefAttributes<HTMLButtonElement>>;
|
|
1905
|
+
|
|
1906
|
+
export declare interface FilterBarAddProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
1907
|
+
onClick?: () => void;
|
|
1908
|
+
children?: ReactNode;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
declare const FilterBarChip: ForwardRefExoticComponent<FilterBarChipProps & RefAttributes<HTMLElement>>;
|
|
1912
|
+
|
|
1913
|
+
export declare interface FilterBarChipProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
1914
|
+
onRemove?: () => void;
|
|
1915
|
+
children: ReactNode;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
declare const FilterBarClear: ForwardRefExoticComponent<FilterBarClearProps & RefAttributes<HTMLButtonElement>>;
|
|
1919
|
+
|
|
1920
|
+
export declare interface FilterBarClearProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
1921
|
+
onClick: () => void;
|
|
1922
|
+
children?: ReactNode;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
declare type FilterBarCompound = typeof FilterBarRoot & {
|
|
1926
|
+
Chip: typeof FilterBarChip;
|
|
1927
|
+
Add: typeof FilterBarAdd;
|
|
1928
|
+
Clear: typeof FilterBarClear;
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
export declare interface FilterBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
1932
|
+
size?: ComponentSize;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
declare const FilterBarRoot: ForwardRefExoticComponent<FilterBarProps & RefAttributes<HTMLDivElement>>;
|
|
1936
|
+
|
|
1937
|
+
export declare const FindBar: ForwardRefExoticComponent<FindBarProps & RefAttributes<HTMLDivElement>>;
|
|
1938
|
+
|
|
1939
|
+
export declare interface FindBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
1940
|
+
open?: boolean;
|
|
1941
|
+
onOpenChange?: (open: boolean) => void;
|
|
1942
|
+
query?: string;
|
|
1943
|
+
onQueryChange?: (query: string) => void;
|
|
1944
|
+
matchCount?: number;
|
|
1945
|
+
currentMatch?: number;
|
|
1946
|
+
onNext?: () => void;
|
|
1947
|
+
onPrevious?: () => void;
|
|
1948
|
+
replaceEnabled?: boolean;
|
|
1949
|
+
replaceText?: string;
|
|
1950
|
+
onReplaceTextChange?: (text: string) => void;
|
|
1951
|
+
onReplace?: () => void;
|
|
1952
|
+
onReplaceAll?: () => void;
|
|
1953
|
+
caseSensitive?: boolean;
|
|
1954
|
+
onCaseSensitiveChange?: (v: boolean) => void;
|
|
1955
|
+
regex?: boolean;
|
|
1956
|
+
onRegexChange?: (v: boolean) => void;
|
|
1957
|
+
wholeWord?: boolean;
|
|
1958
|
+
onWholeWordChange?: (v: boolean) => void;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
export declare interface FlatNode<TItem = unknown> {
|
|
1962
|
+
key: Key_3;
|
|
1963
|
+
item: TItem;
|
|
1964
|
+
depth: number;
|
|
1965
|
+
parentKey: Key_3 | null;
|
|
1966
|
+
isBranch: boolean;
|
|
1967
|
+
isLastChild: boolean;
|
|
1968
|
+
ancestorIsLast: boolean[];
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
declare const Footer: ForwardRefExoticComponent<AppShellFooterProps & RefAttributes<HTMLElement>>;
|
|
1972
|
+
|
|
1973
|
+
/** Format bytes to human-readable string */
|
|
1974
|
+
export declare function formatBytes(bytes: number): string;
|
|
1975
|
+
|
|
1976
|
+
/** Format ISO date to short date string */
|
|
1977
|
+
export declare function formatDate(iso: string): string;
|
|
1978
|
+
|
|
1979
|
+
export declare const FormField: ForwardRefExoticComponent<FormFieldProps & RefAttributes<HTMLDivElement>>;
|
|
1980
|
+
|
|
1981
|
+
export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
1982
|
+
/** Text label rendered as a `<label>` element. */
|
|
1983
|
+
label: string;
|
|
1984
|
+
/** Helper text shown between the label and children. */
|
|
1985
|
+
description?: string;
|
|
1986
|
+
/** Error message shown below children in danger color. */
|
|
1987
|
+
error?: string;
|
|
1988
|
+
/** Renders a required asterisk after the label. */
|
|
1989
|
+
required?: boolean;
|
|
1990
|
+
/** Associates the label with a form control via `htmlFor`. */
|
|
1991
|
+
htmlFor: string;
|
|
1992
|
+
/** Controls density/font sizing. @default 'md' */
|
|
1993
|
+
size?: ComponentSize;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
export declare const FormSection: ForwardRefExoticComponent<FormSectionProps & RefAttributes<HTMLFieldSetElement>>;
|
|
1997
|
+
|
|
1998
|
+
export declare interface FormSectionProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
1999
|
+
/** Section heading rendered as a `<legend>`. */
|
|
2000
|
+
title: string;
|
|
2001
|
+
/** Optional description below the legend. */
|
|
2002
|
+
description?: string;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
export declare const Grid: GridCompound;
|
|
2006
|
+
|
|
2007
|
+
declare interface GridBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
2008
|
+
spacing?: GridSpacing;
|
|
2009
|
+
rowSpacing?: GridSpacing;
|
|
2010
|
+
columnSpacing?: GridSpacing;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
/** Breakpoints matching common responsive design thresholds. */
|
|
2014
|
+
export declare type GridBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2015
|
+
|
|
2016
|
+
declare type GridCompound = typeof GridRoot & {
|
|
2017
|
+
Item: typeof GridItem;
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
declare const GridItem: ForwardRefExoticComponent<GridItemProps & RefAttributes<HTMLDivElement>>;
|
|
2021
|
+
|
|
2022
|
+
export declare interface GridItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
2023
|
+
/** Column span — number for all sizes, or { xs: 12, md: 6 } for responsive. */
|
|
2024
|
+
span?: ResponsiveSpan;
|
|
2025
|
+
rowSpan?: number;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
export declare type GridProps = GridPropsWithColumns | GridPropsWithMinChildWidth;
|
|
2029
|
+
|
|
2030
|
+
declare interface GridPropsWithColumns extends GridBaseProps {
|
|
2031
|
+
columns?: number;
|
|
2032
|
+
minChildWidth?: never;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
declare interface GridPropsWithMinChildWidth extends GridBaseProps {
|
|
2036
|
+
columns?: never;
|
|
2037
|
+
minChildWidth?: string;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
declare const GridRoot: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
|
|
2041
|
+
|
|
2042
|
+
export declare type GridSpacing = Spacing;
|
|
2043
|
+
|
|
2044
|
+
declare const Header: ForwardRefExoticComponent<AppShellHeaderProps & RefAttributes<HTMLElement>>;
|
|
2045
|
+
|
|
2046
|
+
export declare const Heading: HeadingComponent;
|
|
2047
|
+
|
|
2048
|
+
declare type HeadingComponent = <C extends HeadingElement = 'h2'>(props: HeadingProps<C> & {
|
|
2049
|
+
ref?: PolymorphicRef<C>;
|
|
2050
|
+
}) => ReactElement | null;
|
|
2051
|
+
|
|
2052
|
+
declare type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
2053
|
+
|
|
2054
|
+
export declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
2055
|
+
|
|
2056
|
+
declare interface HeadingOwnProps extends TypographyBaseProps, TruncationProps {
|
|
2057
|
+
level?: HeadingLevel;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
export declare type HeadingProps<C extends HeadingElement = HeadingElement> = PolymorphicComponentProps<C, HeadingOwnProps>;
|
|
2061
|
+
|
|
2062
|
+
/** Range of characters to highlight in a label (from server-side fuzzy matcher). */
|
|
2063
|
+
export declare interface HighlightRange {
|
|
2064
|
+
/** Inclusive start index. */
|
|
2065
|
+
start: number;
|
|
2066
|
+
/** Exclusive end index. */
|
|
2067
|
+
end: number;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export declare const Hotkey: <C extends HotkeyElement = "kbd">(props: TypographyBaseProps & TruncationProps & {
|
|
2071
|
+
as?: C | undefined;
|
|
2072
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
2073
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
2074
|
+
}) => ReactElement | null;
|
|
2075
|
+
|
|
2076
|
+
declare type HotkeyElement = 'kbd' | 'span';
|
|
2077
|
+
|
|
2078
|
+
export declare type HotkeyProps<E extends HotkeyElement = HotkeyElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
2079
|
+
|
|
2080
|
+
export declare const IconButton: ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
2081
|
+
|
|
2082
|
+
export declare interface IconButtonProps extends Omit<ButtonProps, 'children'> {
|
|
2083
|
+
children: ReactNode;
|
|
2084
|
+
dense?: boolean;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
declare const Image_2: NamedExoticComponent<ImageProps & RefAttributes<HTMLImageElement>>;
|
|
2088
|
+
export { Image_2 as Image }
|
|
2089
|
+
|
|
2090
|
+
export declare type ImageBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
2091
|
+
|
|
2092
|
+
export declare const ImageList: ImageListCompound;
|
|
2093
|
+
|
|
2094
|
+
declare type ImageListCompound = typeof ImageListRoot & {
|
|
2095
|
+
Item: typeof ImageListItem;
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
declare const ImageListItem: ForwardRefExoticComponent<ImageListItemProps & RefAttributes<HTMLDivElement>>;
|
|
2099
|
+
|
|
2100
|
+
export declare interface ImageListItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
2101
|
+
colSpan?: number;
|
|
2102
|
+
rowSpan?: number;
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
export declare interface ImageListProps extends HTMLAttributes<HTMLDivElement> {
|
|
2106
|
+
cols?: number;
|
|
2107
|
+
gap?: Spacing;
|
|
2108
|
+
variant?: ImageListVariant;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
declare const ImageListRoot: ForwardRefExoticComponent<ImageListProps & RefAttributes<HTMLDivElement>>;
|
|
2112
|
+
|
|
2113
|
+
export declare type ImageListVariant = 'standard' | 'masonry' | 'quilted';
|
|
2114
|
+
|
|
2115
|
+
export declare type ImageObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
2116
|
+
|
|
2117
|
+
export declare interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
|
|
2118
|
+
fallback?: ReactNode;
|
|
2119
|
+
objectFit?: ImageObjectFit;
|
|
2120
|
+
borderRadius?: ImageBorderRadius;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/** Internal props injected by StepperRoot via Children.map. */
|
|
2124
|
+
declare interface InjectedStepProps {
|
|
2125
|
+
/* Excluded from this release type: _index */
|
|
2126
|
+
/* Excluded from this release type: _isFirst */
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
export declare const Input: InputCompound;
|
|
2130
|
+
|
|
2131
|
+
declare type InputCompound = typeof InputRoot & {
|
|
2132
|
+
Root: typeof InputRoot;
|
|
2133
|
+
Label: typeof InputLabel;
|
|
2134
|
+
Control: typeof InputControl;
|
|
2135
|
+
Description: typeof InputDescription;
|
|
2136
|
+
Error: typeof InputError;
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
declare const InputControl: ForwardRefExoticComponent<InputControlProps & RefAttributes<HTMLElement>>;
|
|
2140
|
+
|
|
2141
|
+
export declare interface InputControlProps extends Omit<ComponentPropsWithoutRef<typeof Input_2>, 'size' | 'color'>, StyledComponentProps {
|
|
2142
|
+
startDecorator?: ReactNode;
|
|
2143
|
+
endDecorator?: ReactNode;
|
|
2144
|
+
mono?: boolean;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
declare const InputDescription: ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & RefAttributes<HTMLParagraphElement>>;
|
|
2148
|
+
|
|
2149
|
+
export declare type InputDescriptionProps = Field.Description.Props;
|
|
2150
|
+
|
|
2151
|
+
declare const InputError: ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2152
|
+
|
|
2153
|
+
export declare type InputErrorProps = Field.Error.Props;
|
|
2154
|
+
|
|
2155
|
+
declare const InputLabel: ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
2156
|
+
|
|
2157
|
+
export declare type InputLabelProps = Field.Label.Props;
|
|
2158
|
+
|
|
2159
|
+
declare const InputRoot: ForwardRefExoticComponent<Omit<InputRootProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2160
|
+
|
|
2161
|
+
export declare interface InputRootProps extends Field.Root.Props, StyledComponentProps {
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
export declare interface ItemState {
|
|
2165
|
+
isSelected: boolean;
|
|
2166
|
+
isActive: boolean;
|
|
2167
|
+
isDisabled: boolean;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
export declare type Key = string | number;
|
|
2171
|
+
|
|
2172
|
+
declare type Key_2 = string | number;
|
|
2173
|
+
|
|
2174
|
+
declare type Key_3 = string | number;
|
|
2175
|
+
|
|
2176
|
+
export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
2177
|
+
|
|
2178
|
+
export declare interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'>, TypographyBaseProps, TruncationProps {
|
|
2179
|
+
underline?: LinkUnderline;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
export declare type LinkUnderline = 'always' | 'hover' | 'none';
|
|
2183
|
+
|
|
2184
|
+
export declare const List: ListCompound;
|
|
2185
|
+
|
|
2186
|
+
declare interface ListActionsContextValue {
|
|
2187
|
+
select: (key: Key) => void;
|
|
2188
|
+
deselect: (key: Key) => void;
|
|
2189
|
+
toggle: (key: Key) => void;
|
|
2190
|
+
selectRange: (toKey: Key) => void;
|
|
2191
|
+
selectAll: () => void;
|
|
2192
|
+
clearSelection: () => void;
|
|
2193
|
+
setActiveKey: (key: Key | null) => void;
|
|
2194
|
+
registerItem: (key: Key, textValue?: string) => () => void;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
declare type ListCompound = typeof ListRoot & {
|
|
2198
|
+
Root: typeof ListRoot;
|
|
2199
|
+
Viewport: typeof ListViewport;
|
|
2200
|
+
Item: typeof ListItem;
|
|
2201
|
+
ItemIcon: typeof ListItemIcon;
|
|
2202
|
+
ItemLabel: typeof ListItemLabel;
|
|
2203
|
+
ItemDescription: typeof ListItemDescription;
|
|
2204
|
+
ItemMeta: typeof ListItemMeta;
|
|
2205
|
+
ItemActions: typeof ListItemActions;
|
|
2206
|
+
Group: typeof ListGroup;
|
|
2207
|
+
GroupHeader: typeof ListGroupHeader;
|
|
2208
|
+
Separator: typeof ListSeparator;
|
|
2209
|
+
Empty: typeof ListEmpty;
|
|
2210
|
+
Loading: typeof ListLoading;
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
declare interface ListConfigContextValue {
|
|
2214
|
+
listId: string;
|
|
2215
|
+
selectionMode: SelectionMode_2;
|
|
2216
|
+
selectionBehavior: SelectionBehavior;
|
|
2217
|
+
density: ListDensity;
|
|
2218
|
+
orientation: ListOrientation;
|
|
2219
|
+
typeahead: boolean;
|
|
2220
|
+
loopFocus: boolean;
|
|
2221
|
+
virtualized: boolean;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
export declare type ListDensity = 'compact' | 'default' | 'comfortable';
|
|
2225
|
+
|
|
2226
|
+
declare type ListDensity_2 = 'compact' | 'default' | 'comfortable';
|
|
2227
|
+
|
|
2228
|
+
declare type ListDensity_3 = 'compact' | 'default' | 'comfortable';
|
|
2229
|
+
|
|
2230
|
+
declare const ListEmpty: ForwardRefExoticComponent<ListEmptyProps & RefAttributes<HTMLDivElement>>;
|
|
2231
|
+
|
|
2232
|
+
declare interface ListEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
2233
|
+
children: ReactNode;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
declare const ListGroup: ForwardRefExoticComponent<ListGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2237
|
+
|
|
2238
|
+
declare const ListGroupHeader: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
2239
|
+
|
|
2240
|
+
export declare interface ListGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
2241
|
+
children: ReactNode;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
export declare interface ListHandle {
|
|
2245
|
+
focus: () => void;
|
|
2246
|
+
scrollToKey: (key: Key, align?: ScrollLogicalPosition) => void;
|
|
2247
|
+
getSelectedKeys: () => ReadonlySet<Key>;
|
|
2248
|
+
clearSelection: () => void;
|
|
2249
|
+
selectAll: () => void;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
declare const ListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLDivElement>>;
|
|
2253
|
+
|
|
2254
|
+
declare const ListItemActions: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
2255
|
+
|
|
2256
|
+
declare const ListItemDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
2257
|
+
|
|
2258
|
+
declare const ListItemIcon: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
2259
|
+
|
|
2260
|
+
declare const ListItemLabel: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
2261
|
+
|
|
2262
|
+
declare const ListItemMeta: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
2263
|
+
|
|
2264
|
+
export declare interface ListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
2265
|
+
itemKey: Key;
|
|
2266
|
+
disabled?: boolean;
|
|
2267
|
+
textValue?: string;
|
|
2268
|
+
children: ReactNode;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
declare const ListLoading: ForwardRefExoticComponent<ListLoadingProps & RefAttributes<HTMLDivElement>>;
|
|
2272
|
+
|
|
2273
|
+
declare interface ListLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
2274
|
+
children?: ReactNode;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
export declare type ListOrientation = 'vertical' | 'horizontal';
|
|
2278
|
+
|
|
2279
|
+
declare const ListRoot: ForwardRefExoticComponent<ListRootProps & RefAttributes<HTMLDivElement>>;
|
|
2280
|
+
|
|
2281
|
+
export declare interface ListRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
2282
|
+
selectionMode?: SelectionMode_2;
|
|
2283
|
+
selectionBehavior?: SelectionBehavior;
|
|
2284
|
+
selectedKeys?: ReadonlySet<Key>;
|
|
2285
|
+
defaultSelectedKeys?: Iterable<Key>;
|
|
2286
|
+
onSelectedKeysChange?: (keys: ReadonlySet<Key>) => void;
|
|
2287
|
+
activeKey?: Key | null;
|
|
2288
|
+
defaultActiveKey?: Key | null;
|
|
2289
|
+
onActiveKeyChange?: (key: Key | null) => void;
|
|
2290
|
+
disabledKeys?: Iterable<Key>;
|
|
2291
|
+
orientation?: ListOrientation;
|
|
2292
|
+
loopFocus?: boolean;
|
|
2293
|
+
typeahead?: boolean;
|
|
2294
|
+
density?: ListDensity;
|
|
2295
|
+
virtualized?: boolean;
|
|
2296
|
+
overscan?: number;
|
|
2297
|
+
estimatedItemSize?: number;
|
|
2298
|
+
loading?: boolean;
|
|
2299
|
+
error?: ReactNode;
|
|
2300
|
+
children?: ReactNode;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
declare const ListSeparator: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
2304
|
+
|
|
2305
|
+
declare interface ListStore {
|
|
2306
|
+
subscribe: (listener: () => void) => () => void;
|
|
2307
|
+
getSnapshot: () => ListStoreSnapshot;
|
|
2308
|
+
getItemState: (key: Key) => ItemState;
|
|
2309
|
+
setSelectedKeys: (keys: Set<Key>) => void;
|
|
2310
|
+
setActiveKey: (key: Key | null) => void;
|
|
2311
|
+
registerItem: (key: Key, textValue?: string) => () => void;
|
|
2312
|
+
getRegisteredKeys: () => Key[];
|
|
2313
|
+
getTextValue: (key: Key) => string | undefined;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
declare interface ListStoreSnapshot {
|
|
2317
|
+
selectedKeys: ReadonlySet<Key>;
|
|
2318
|
+
activeKey: Key | null;
|
|
2319
|
+
disabledKeys: ReadonlySet<Key>;
|
|
2320
|
+
registeredKeys: Key[];
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
declare const ListViewport: ForwardRefExoticComponent<ListViewportProps & RefAttributes<HTMLDivElement>>;
|
|
2324
|
+
|
|
2325
|
+
export declare interface ListViewportProps extends HTMLAttributes<HTMLDivElement> {
|
|
2326
|
+
onReachEnd?: () => void;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
export declare const Menu: MenuCompound;
|
|
2330
|
+
|
|
2331
|
+
declare const MenuBackdrop: ForwardRefExoticComponent<Omit<Omit<ContextMenuBackdropProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2332
|
+
|
|
2333
|
+
declare const MenuCheckboxItem: ForwardRefExoticComponent<MenuCheckboxItemProps & RefAttributes<HTMLElement>>;
|
|
2334
|
+
|
|
2335
|
+
declare const MenuCheckboxItemIndicator: ForwardRefExoticComponent<Omit<Omit<ContextMenuCheckboxItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
2336
|
+
|
|
2337
|
+
export declare interface MenuCheckboxItemProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.CheckboxItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_3 {
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
declare type MenuCompound = typeof MenuRoot & {
|
|
2341
|
+
Root: typeof MenuRoot;
|
|
2342
|
+
Trigger: typeof MenuTrigger;
|
|
2343
|
+
Portal: typeof Menu_2.Portal;
|
|
2344
|
+
Backdrop: typeof MenuBackdrop;
|
|
2345
|
+
Positioner: typeof MenuPositioner;
|
|
2346
|
+
Popup: typeof MenuPopup;
|
|
2347
|
+
Arrow: typeof Menu_2.Arrow;
|
|
2348
|
+
Group: typeof Menu_2.Group;
|
|
2349
|
+
GroupLabel: typeof MenuGroupLabel;
|
|
2350
|
+
Item: typeof MenuItem;
|
|
2351
|
+
LinkItem: typeof MenuLinkItem;
|
|
2352
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
2353
|
+
CheckboxItemIndicator: typeof MenuCheckboxItemIndicator;
|
|
2354
|
+
RadioGroup: typeof Menu_2.RadioGroup;
|
|
2355
|
+
RadioItem: typeof MenuRadioItem;
|
|
2356
|
+
RadioItemIndicator: typeof MenuRadioItemIndicator;
|
|
2357
|
+
SubmenuRoot: typeof Menu_2.SubmenuRoot;
|
|
2358
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
2359
|
+
Separator: typeof MenuSeparator;
|
|
2360
|
+
Handle: typeof Menu_2.Handle;
|
|
2361
|
+
createHandle: typeof Menu_2.createHandle;
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
declare const MenuGroupLabel: ForwardRefExoticComponent<Omit<Omit<Omit<ContextMenuGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
2365
|
+
|
|
2366
|
+
declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLElement>>;
|
|
2367
|
+
|
|
2368
|
+
export declare interface MenuItemProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.Item>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_3 {
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
declare const MenuLinkItem: ForwardRefExoticComponent<MenuLinkItemProps & RefAttributes<Element>>;
|
|
2372
|
+
|
|
2373
|
+
export declare interface MenuLinkItemProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.LinkItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_3 {
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
declare const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & RefAttributes<HTMLDivElement>>;
|
|
2377
|
+
|
|
2378
|
+
export declare interface MenuPopupProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.Popup>, 'color'>, StyledComponentProps {
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
declare const MenuPositioner: ForwardRefExoticComponent<Omit<Omit<ContextMenuPositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2382
|
+
|
|
2383
|
+
declare const MenuRadioItem: ForwardRefExoticComponent<MenuRadioItemProps & RefAttributes<HTMLElement>>;
|
|
2384
|
+
|
|
2385
|
+
declare const MenuRadioItemIndicator: ForwardRefExoticComponent<Omit<Omit<ContextMenuRadioItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
2386
|
+
|
|
2387
|
+
export declare interface MenuRadioItemProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.RadioItem>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_3 {
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
declare const MenuRoot: {
|
|
2391
|
+
({ variant, color, size, ...props }: MenuRootProps): JSX.Element;
|
|
2392
|
+
displayName: string;
|
|
2393
|
+
};
|
|
2394
|
+
|
|
2395
|
+
export declare interface MenuRootProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.Root>, 'color'>, StyledComponentProps {
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
declare const MenuSeparator: ForwardRefExoticComponent<Omit<Omit<Omit<SeparatorProps_2, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
2399
|
+
|
|
2400
|
+
declare const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & RefAttributes<HTMLElement>>;
|
|
2401
|
+
|
|
2402
|
+
export declare interface MenuSubmenuTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.SubmenuTrigger>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_3 {
|
|
2403
|
+
showCaret?: boolean;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
declare const MenuTrigger: {
|
|
2407
|
+
({ className, variant, color, size, render, ...props }: MenuTriggerProps): JSX.Element;
|
|
2408
|
+
displayName: string;
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
export declare interface MenuTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Menu_2.Trigger>, 'color'>, StyledComponentProps {
|
|
2412
|
+
/** Custom render element — when provided, the default Trigger styling is skipped. */
|
|
2413
|
+
render?: Menu_2.Trigger.Props['render'];
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
export declare const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<HTMLDivElement>>;
|
|
2417
|
+
|
|
2418
|
+
export declare interface MeterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
2419
|
+
value: number;
|
|
2420
|
+
min?: number;
|
|
2421
|
+
max?: number;
|
|
2422
|
+
low?: number;
|
|
2423
|
+
high?: number;
|
|
2424
|
+
optimum?: number;
|
|
2425
|
+
size?: ComponentSize;
|
|
2426
|
+
color?: ComponentColor;
|
|
2427
|
+
label?: ReactNode;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
export declare function MultiSelect<Item = string>({ items, value, defaultValue, onValueChange, variant, color, size, label, placeholder, searchPlaceholder, emptyMessage, className, controlClassName, popupClassName, listClassName, maxVisibleChips, showItemIndicator, getItemLabel, getItemValue, getItemKey, getItemDisabled, renderChipLabel, renderItemLabel, renderItemEndDecorator, removeButtonLabel, triggerLabel, clearable, clearButtonLabel, clearDecorator, ...props }: MultiSelectProps<Item>): JSX.Element;
|
|
2431
|
+
|
|
2432
|
+
export declare namespace MultiSelect {
|
|
2433
|
+
var displayName: string;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
export declare interface MultiSelectProps<Item = string> extends Omit<Combobox_2.Root.Props<Item, true>, 'multiple' | 'children' | 'color' | 'itemToStringLabel' | 'itemToStringValue'>, StyledComponentProps {
|
|
2437
|
+
label?: ReactNode;
|
|
2438
|
+
placeholder?: string;
|
|
2439
|
+
searchPlaceholder?: string;
|
|
2440
|
+
emptyMessage?: ReactNode;
|
|
2441
|
+
className?: string;
|
|
2442
|
+
controlClassName?: string;
|
|
2443
|
+
popupClassName?: string;
|
|
2444
|
+
listClassName?: string;
|
|
2445
|
+
maxVisibleChips?: number;
|
|
2446
|
+
showItemIndicator?: boolean;
|
|
2447
|
+
getItemLabel?: (item: Item) => string;
|
|
2448
|
+
getItemValue?: (item: Item) => string;
|
|
2449
|
+
getItemKey?: (item: Item, index: number) => string;
|
|
2450
|
+
getItemDisabled?: (item: Item) => boolean;
|
|
2451
|
+
renderChipLabel?: (item: Item) => ReactNode;
|
|
2452
|
+
renderItemLabel?: (item: Item) => ReactNode;
|
|
2453
|
+
renderItemEndDecorator?: (item: Item) => ReactNode;
|
|
2454
|
+
removeButtonLabel?: (item: Item) => string;
|
|
2455
|
+
triggerLabel?: string;
|
|
2456
|
+
clearable?: boolean;
|
|
2457
|
+
clearButtonLabel?: string;
|
|
2458
|
+
clearDecorator?: ReactNode;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
export declare const NavList: NavListCompound;
|
|
2462
|
+
|
|
2463
|
+
declare type NavListCompound = typeof NavListRoot & {
|
|
2464
|
+
Root: typeof NavListRoot;
|
|
2465
|
+
Viewport: typeof List.Viewport;
|
|
2466
|
+
Item: typeof NavListItem;
|
|
2467
|
+
ItemIcon: typeof List.ItemIcon;
|
|
2468
|
+
ItemLabel: typeof List.ItemLabel;
|
|
2469
|
+
ItemDescription: typeof List.ItemDescription;
|
|
2470
|
+
ItemMeta: typeof List.ItemMeta;
|
|
2471
|
+
ItemActions: typeof List.ItemActions;
|
|
2472
|
+
Group: typeof NavListGroup;
|
|
2473
|
+
GroupHeader: typeof NavListGroupHeader;
|
|
2474
|
+
GroupItems: typeof NavListGroupItems;
|
|
2475
|
+
Separator: typeof List.Separator;
|
|
2476
|
+
Empty: typeof List.Empty;
|
|
2477
|
+
Loading: typeof List.Loading;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
declare const NavListGroup: ForwardRefExoticComponent<NavListGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2481
|
+
|
|
2482
|
+
declare const NavListGroupHeader: ForwardRefExoticComponent<NavListGroupHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
2483
|
+
|
|
2484
|
+
export declare interface NavListGroupHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
2485
|
+
children: ReactNode;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
declare const NavListGroupItems: ForwardRefExoticComponent<NavListGroupItemsProps & RefAttributes<HTMLDivElement>>;
|
|
2489
|
+
|
|
2490
|
+
export declare interface NavListGroupItemsProps extends HTMLAttributes<HTMLDivElement> {
|
|
2491
|
+
children: ReactNode;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
export declare interface NavListGroupProps extends ListGroupProps {
|
|
2495
|
+
collapsible?: boolean;
|
|
2496
|
+
defaultExpanded?: boolean;
|
|
2497
|
+
expanded?: boolean;
|
|
2498
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
declare const NavListItem: ForwardRefExoticComponent<NavListItemProps & RefAttributes<HTMLDivElement>>;
|
|
2502
|
+
|
|
2503
|
+
export declare interface NavListItemProps extends ListItemProps {
|
|
2504
|
+
unread?: boolean;
|
|
2505
|
+
dirty?: boolean;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
declare const NavListRoot: ForwardRefExoticComponent<NavListRootProps & RefAttributes<HTMLDivElement>>;
|
|
2509
|
+
|
|
2510
|
+
export declare interface NavListRootProps extends Omit<ListRootProps, 'density'> {
|
|
2511
|
+
density?: ListRootProps['density'];
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
declare const NavRail: ForwardRefExoticComponent<AppShellNavRailProps & RefAttributes<HTMLElement>>;
|
|
2515
|
+
|
|
2516
|
+
export declare const NumberInput: NumberInputCompound;
|
|
2517
|
+
|
|
2518
|
+
declare type NumberInputCompound = typeof NumberInputRoot & {
|
|
2519
|
+
Root: typeof NumberInputRoot;
|
|
2520
|
+
Label: typeof NumberInputLabel;
|
|
2521
|
+
Group: typeof NumberInputGroup;
|
|
2522
|
+
Input: typeof NumberInputInput;
|
|
2523
|
+
Increment: typeof NumberInputIncrement;
|
|
2524
|
+
Decrement: typeof NumberInputDecrement;
|
|
2525
|
+
Description: typeof NumberInputDescription;
|
|
2526
|
+
Error: typeof NumberInputError;
|
|
2527
|
+
ScrubArea: typeof NumberField.ScrubArea;
|
|
2528
|
+
ScrubAreaCursor: typeof NumberField.ScrubAreaCursor;
|
|
2529
|
+
};
|
|
2530
|
+
|
|
2531
|
+
declare const NumberInputDecrement: ForwardRefExoticComponent<NumberInputStepperProps & RefAttributes<HTMLButtonElement>>;
|
|
2532
|
+
|
|
2533
|
+
declare const NumberInputDescription: ForwardRefExoticComponent<NumberInputDescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
2534
|
+
|
|
2535
|
+
export declare type NumberInputDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
2536
|
+
|
|
2537
|
+
declare const NumberInputError: ForwardRefExoticComponent<NumberInputErrorProps & RefAttributes<HTMLDivElement>>;
|
|
2538
|
+
|
|
2539
|
+
export declare type NumberInputErrorProps = HTMLAttributes<HTMLDivElement>;
|
|
2540
|
+
|
|
2541
|
+
declare const NumberInputGroup: ForwardRefExoticComponent<NumberInputGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2542
|
+
|
|
2543
|
+
export declare interface NumberInputGroupProps extends Omit<ComponentPropsWithoutRef<typeof NumberField.Group>, 'color'>, StyledComponentProps {
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
declare const NumberInputIncrement: ForwardRefExoticComponent<NumberInputStepperProps & RefAttributes<HTMLButtonElement>>;
|
|
2547
|
+
|
|
2548
|
+
declare const NumberInputInput: ForwardRefExoticComponent<NumberInputInputProps & RefAttributes<HTMLInputElement>>;
|
|
2549
|
+
|
|
2550
|
+
export declare interface NumberInputInputProps extends Omit<ComponentPropsWithoutRef<typeof NumberField.Input>, 'color' | 'size'>, StyledComponentProps {
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
declare const NumberInputLabel: ForwardRefExoticComponent<NumberInputLabelProps & RefAttributes<HTMLLabelElement>>;
|
|
2554
|
+
|
|
2555
|
+
export declare type NumberInputLabelProps = LabelHTMLAttributes<HTMLLabelElement>;
|
|
2556
|
+
|
|
2557
|
+
declare const NumberInputRoot: ForwardRefExoticComponent<NumberInputRootProps & RefAttributes<HTMLDivElement>>;
|
|
2558
|
+
|
|
2559
|
+
export declare interface NumberInputRootProps extends Omit<ComponentPropsWithoutRef<typeof NumberField.Root>, 'color'>, StyledComponentProps {
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
export declare interface NumberInputStepperProps extends Omit<ComponentPropsWithoutRef<typeof NumberField.Increment>, 'color'>, StyledComponentProps {
|
|
2563
|
+
children?: ReactNode;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
export declare const Overline: <C extends OverlineElement = "span">(props: TypographyBaseProps & TruncationProps & {
|
|
2567
|
+
as?: C | undefined;
|
|
2568
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
2569
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
2570
|
+
}) => ReactElement | null;
|
|
2571
|
+
|
|
2572
|
+
declare type OverlineElement = 'span' | 'p' | 'div';
|
|
2573
|
+
|
|
2574
|
+
export declare type OverlineProps<E extends OverlineElement = OverlineElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
2575
|
+
|
|
2576
|
+
export declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
|
|
2577
|
+
|
|
2578
|
+
export declare interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
2579
|
+
/** Total number of pages. */
|
|
2580
|
+
count: number;
|
|
2581
|
+
/** Current active page (1-indexed). */
|
|
2582
|
+
page: number;
|
|
2583
|
+
/** Called when the user selects a page. */
|
|
2584
|
+
onChange: (page: number) => void;
|
|
2585
|
+
/** Number of sibling pages to show on each side of the current page. @default 1 */
|
|
2586
|
+
siblingCount?: number;
|
|
2587
|
+
/** Number of boundary pages to always show at start/end. @default 1 */
|
|
2588
|
+
boundaryCount?: number;
|
|
2589
|
+
/** Whether to show first/last navigation buttons. @default true */
|
|
2590
|
+
showFirstLast?: boolean;
|
|
2591
|
+
/** Component size. @default 'md' */
|
|
2592
|
+
size?: ComponentSize;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
export declare const Paper: ForwardRefExoticComponent<SheetProps & RefAttributes<HTMLElement>>;
|
|
2596
|
+
|
|
2597
|
+
declare type PolymorphicComponentProps<C extends ElementType, Props = Record<string, never>> = Props & {
|
|
2598
|
+
as?: C;
|
|
2599
|
+
} & Omit<ComponentPropsWithoutRef<C>, keyof Props | 'as' | 'color'>;
|
|
2600
|
+
|
|
2601
|
+
declare type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
|
|
2602
|
+
|
|
2603
|
+
export declare const Popover: PopoverCompound;
|
|
2604
|
+
|
|
2605
|
+
declare const PopoverArrow: ForwardRefExoticComponent<PopoverArrowProps & RefAttributes<HTMLDivElement>>;
|
|
2606
|
+
|
|
2607
|
+
export declare interface PopoverArrowProps extends Omit<ComponentPropsWithoutRef<typeof Popover_2.Arrow>, 'color'>, StyledComponentProps {
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
declare const PopoverBackdrop: ForwardRefExoticComponent<Omit<Omit<PopoverBackdropProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2611
|
+
|
|
2612
|
+
declare const PopoverClose: ForwardRefExoticComponent<PopoverCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
2613
|
+
|
|
2614
|
+
export declare interface PopoverCloseProps extends Omit<ComponentPropsWithoutRef<typeof Popover_2.Close>, 'color'>, StyledComponentProps {
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
declare type PopoverCompound = typeof PopoverRoot & {
|
|
2618
|
+
Root: typeof PopoverRoot;
|
|
2619
|
+
Trigger: typeof PopoverTrigger;
|
|
2620
|
+
Portal: typeof PopoverPortal;
|
|
2621
|
+
Backdrop: typeof PopoverBackdrop;
|
|
2622
|
+
Positioner: typeof PopoverPositioner;
|
|
2623
|
+
Popup: typeof PopoverPopup;
|
|
2624
|
+
Arrow: typeof PopoverArrow;
|
|
2625
|
+
Title: typeof PopoverTitle;
|
|
2626
|
+
Description: typeof PopoverDescription;
|
|
2627
|
+
Close: typeof PopoverClose;
|
|
2628
|
+
Viewport: typeof PopoverViewport;
|
|
2629
|
+
Handle: typeof Popover_2.Handle;
|
|
2630
|
+
createHandle: typeof Popover_2.createHandle;
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
declare const PopoverDescription: ForwardRefExoticComponent<Omit<Omit<PopoverDescriptionProps, "ref"> & RefAttributes<HTMLParagraphElement>, "ref"> & RefAttributes<HTMLParagraphElement>>;
|
|
2634
|
+
|
|
2635
|
+
declare const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & RefAttributes<HTMLDivElement>>;
|
|
2636
|
+
|
|
2637
|
+
export declare interface PopoverPopupProps extends Omit<ComponentPropsWithoutRef<typeof Popover_2.Popup>, 'color'>, StyledComponentProps {
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
declare const PopoverPortal: ForwardRefExoticComponent<Omit<Omit<PopoverPortalProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2641
|
+
|
|
2642
|
+
declare const PopoverPositioner: ForwardRefExoticComponent<Omit<Omit<PopoverPositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2643
|
+
|
|
2644
|
+
declare function PopoverRoot<Payload>({ variant, color, size, ...props }: PopoverRootProps<Payload>): JSX.Element;
|
|
2645
|
+
|
|
2646
|
+
declare namespace PopoverRoot {
|
|
2647
|
+
var displayName: string;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
export declare type PopoverRootProps<Payload = unknown> = Omit<Popover_2.Root.Props<Payload>, 'color'> & StyledComponentProps;
|
|
2651
|
+
|
|
2652
|
+
declare const PopoverTitle: ForwardRefExoticComponent<Omit<Omit<PopoverTitleProps, "ref"> & RefAttributes<HTMLHeadingElement>, "ref"> & RefAttributes<HTMLHeadingElement>>;
|
|
2653
|
+
|
|
2654
|
+
declare const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
2655
|
+
|
|
2656
|
+
export declare interface PopoverTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Popover_2.Trigger>, 'color'>, StyledComponentProps {
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
declare const PopoverViewport: ForwardRefExoticComponent<Omit<Omit<Popover_2.Viewport.Props, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2660
|
+
|
|
2661
|
+
declare interface ProcessedItem<TItem = unknown> {
|
|
2662
|
+
key: Key_2;
|
|
2663
|
+
item: TItem;
|
|
2664
|
+
groupKey?: string;
|
|
2665
|
+
score?: number;
|
|
2666
|
+
highlights?: HighlightRange[];
|
|
2667
|
+
disabled: boolean;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
export declare const Progress: ForwardRefExoticComponent<ProgressProps & RefAttributes<HTMLDivElement>>;
|
|
2671
|
+
|
|
2672
|
+
export declare interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
2673
|
+
value?: number;
|
|
2674
|
+
variant?: ComponentVariant;
|
|
2675
|
+
color?: ComponentColor;
|
|
2676
|
+
size?: ComponentSize;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
export declare const Quote: <C extends QuoteElement = "q">(props: TypographyBaseProps & TruncationProps & {
|
|
2680
|
+
as?: C | undefined;
|
|
2681
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
2682
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
2683
|
+
}) => ReactElement | null;
|
|
2684
|
+
|
|
2685
|
+
declare type QuoteElement = 'q' | 'span';
|
|
2686
|
+
|
|
2687
|
+
export declare type QuoteProps<E extends QuoteElement = QuoteElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
2688
|
+
|
|
2689
|
+
export declare const Radio: RadioCompound;
|
|
2690
|
+
|
|
2691
|
+
declare type RadioCompound = typeof RadioItem & {
|
|
2692
|
+
Root: typeof RadioRoot;
|
|
2693
|
+
Control: typeof RadioControl;
|
|
2694
|
+
Indicator: typeof RadioIndicator;
|
|
2695
|
+
Label: typeof RadioLabel;
|
|
2696
|
+
Description: typeof RadioDescription;
|
|
2697
|
+
Item: typeof RadioItem;
|
|
2698
|
+
};
|
|
2699
|
+
|
|
2700
|
+
declare const RadioControl: ForwardRefExoticComponent<RadioControlProps & RefAttributes<HTMLSpanElement>>;
|
|
2701
|
+
|
|
2702
|
+
export declare type RadioControlProps = HTMLAttributes<HTMLSpanElement>;
|
|
2703
|
+
|
|
2704
|
+
declare const RadioDescription: ForwardRefExoticComponent<RadioDescriptionProps & RefAttributes<HTMLSpanElement>>;
|
|
2705
|
+
|
|
2706
|
+
export declare type RadioDescriptionProps = HTMLAttributes<HTMLSpanElement>;
|
|
2707
|
+
|
|
2708
|
+
export declare const RadioGroup: RadioGroupCompound;
|
|
2709
|
+
|
|
2710
|
+
declare type RadioGroupCompound = typeof RadioGroupRoot & {
|
|
2711
|
+
Item: typeof RadioGroupItem;
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
declare function RadioGroupItem({ className, variant, color, size, ...props }: RadioGroupItemProps): JSX.Element;
|
|
2715
|
+
|
|
2716
|
+
declare namespace RadioGroupItem {
|
|
2717
|
+
var displayName: string;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
export declare interface RadioGroupItemProps extends Omit<RadioItemProps, 'variant' | 'color' | 'size' | 'value'>, StyledComponentProps {
|
|
2721
|
+
value: string;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
export declare interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroup_2<string>>, 'color'>, StyledComponentProps {
|
|
2725
|
+
orientation?: 'vertical' | 'horizontal';
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
declare function RadioGroupRoot({ className, variant, color, size, orientation, ...props }: RadioGroupProps): JSX.Element;
|
|
2729
|
+
|
|
2730
|
+
declare namespace RadioGroupRoot {
|
|
2731
|
+
var displayName: string;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
declare const RadioIndicator: ForwardRefExoticComponent<RadioIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
2735
|
+
|
|
2736
|
+
export declare interface RadioIndicatorProps extends Omit<ComponentPropsWithoutRef<typeof Radio_2.Indicator>, 'color'>, StyledComponentProps {
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
declare const RadioItem: ForwardRefExoticComponent<RadioItemProps & RefAttributes<HTMLSpanElement>>;
|
|
2740
|
+
|
|
2741
|
+
export declare interface RadioItemProps extends Omit<RadioRootProps, 'children'> {
|
|
2742
|
+
children?: ReactNode;
|
|
2743
|
+
description?: ReactNode;
|
|
2744
|
+
indicator?: ReactNode;
|
|
2745
|
+
keepIndicatorMounted?: boolean;
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
declare const RadioLabel: ForwardRefExoticComponent<RadioLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
2749
|
+
|
|
2750
|
+
export declare type RadioLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
2751
|
+
|
|
2752
|
+
declare const RadioRoot: ForwardRefExoticComponent<RadioRootProps & RefAttributes<HTMLSpanElement>>;
|
|
2753
|
+
|
|
2754
|
+
export declare interface RadioRootProps extends Omit<ComponentPropsWithoutRef<typeof Radio_2.Root<string>>, 'color' | 'value'>, StyledComponentProps {
|
|
2755
|
+
value: string;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
export declare type ReorderMeta = {
|
|
2759
|
+
id: TabId;
|
|
2760
|
+
from: number;
|
|
2761
|
+
to: number;
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2764
|
+
export declare const ResizableSplitPane: ForwardRefExoticComponent<ResizableSplitPaneProps & RefAttributes<HTMLDivElement>>;
|
|
2765
|
+
|
|
2766
|
+
export declare interface ResizableSplitPaneProps extends HTMLAttributes<HTMLDivElement> {
|
|
2767
|
+
/** Split direction. 'horizontal' = side by side, 'vertical' = stacked. */
|
|
2768
|
+
direction?: SplitDirection;
|
|
2769
|
+
/** Initial size of the sized pane in pixels. */
|
|
2770
|
+
defaultSize?: number;
|
|
2771
|
+
/** Minimum size of the sized pane in pixels. */
|
|
2772
|
+
minSize?: number;
|
|
2773
|
+
/** Maximum size of the sized pane in pixels. */
|
|
2774
|
+
maxSize?: number;
|
|
2775
|
+
/** When true, the second pane is the sized pane instead of the first. */
|
|
2776
|
+
reverse?: boolean;
|
|
2777
|
+
/** Accessible label for the resize handle (role="separator"). */
|
|
2778
|
+
handleLabel?: string;
|
|
2779
|
+
/** Callback fired during resize with the current sized-pane size in px. */
|
|
2780
|
+
onResize?: (size: number) => void;
|
|
2781
|
+
/** The two pane contents. */
|
|
2782
|
+
children: [ReactNode, ReactNode];
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
/** A span value can be a plain number or a per-breakpoint responsive object. */
|
|
2786
|
+
export declare type ResponsiveSpan = number | Partial<Record<GridBreakpoint, number>>;
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* Pre-computed row heights for each DataTable size variant.
|
|
2790
|
+
* Use with `fixedRowHeight` + `estimateRowSize` for optimal virtual scrolling.
|
|
2791
|
+
* These match the CSS `--ov-size-table-row-height-{size}` tokens.
|
|
2792
|
+
*/
|
|
2793
|
+
export declare const ROW_HEIGHT: {
|
|
2794
|
+
readonly sm: 30;
|
|
2795
|
+
readonly md: 36;
|
|
2796
|
+
readonly lg: 44;
|
|
2797
|
+
};
|
|
2798
|
+
|
|
2799
|
+
export declare const RowList: RowListCompound;
|
|
2800
|
+
|
|
2801
|
+
declare const RowListCell: ForwardRefExoticComponent<RowListCellProps & RefAttributes<HTMLDivElement>>;
|
|
2802
|
+
|
|
2803
|
+
export declare interface RowListCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
2804
|
+
/** Which column this cell belongs to (matches ColumnDef.id) */
|
|
2805
|
+
column: string;
|
|
2806
|
+
children?: ReactNode;
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
declare type RowListCompound = typeof RowListRoot & {
|
|
2810
|
+
Root: typeof RowListRoot;
|
|
2811
|
+
Header: typeof RowListHeader;
|
|
2812
|
+
Viewport: typeof List.Viewport;
|
|
2813
|
+
Item: typeof RowListItem;
|
|
2814
|
+
Cell: typeof RowListCell;
|
|
2815
|
+
Group: typeof List.Group;
|
|
2816
|
+
GroupHeader: typeof List.GroupHeader;
|
|
2817
|
+
Separator: typeof List.Separator;
|
|
2818
|
+
Empty: typeof List.Empty;
|
|
2819
|
+
Loading: typeof List.Loading;
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2822
|
+
declare const RowListHeader: ForwardRefExoticComponent<RowListHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
2823
|
+
|
|
2824
|
+
export declare type RowListHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
2825
|
+
|
|
2826
|
+
declare const RowListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLDivElement>>;
|
|
2827
|
+
|
|
2828
|
+
export declare type RowListItemProps = ListItemProps;
|
|
2829
|
+
|
|
2830
|
+
declare const RowListRoot: ForwardRefExoticComponent<RowListRootProps & RefAttributes<HTMLDivElement>>;
|
|
2831
|
+
|
|
2832
|
+
export declare interface RowListRootProps extends ListRootProps {
|
|
2833
|
+
/** Column definitions drive the grid layout and header rendering */
|
|
2834
|
+
columns: readonly ColumnDef[];
|
|
2835
|
+
/** Current sort state (visual only — consumer sorts data) */
|
|
2836
|
+
sortState?: SortState | null;
|
|
2837
|
+
/** Called when a sortable column header is clicked */
|
|
2838
|
+
onSortChange?: (sort: SortState) => void;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
export declare const ScrollArea: ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>;
|
|
2842
|
+
|
|
2843
|
+
export declare type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
|
|
2844
|
+
|
|
2845
|
+
export declare interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
2846
|
+
orientation?: ScrollAreaOrientation;
|
|
2847
|
+
size?: ComponentSize;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
declare interface ScrollState {
|
|
2851
|
+
canScrollLeft: boolean;
|
|
2852
|
+
canScrollRight: boolean;
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
export declare const SearchInput: ForwardRefExoticComponent<SearchInputProps & RefAttributes<HTMLElement>>;
|
|
2856
|
+
|
|
2857
|
+
export declare interface SearchInputProps extends Omit<InputControlProps, 'startDecorator' | 'endDecorator' | 'onValueChange' | 'value' | 'defaultValue' | 'type' | 'className' | 'variant' | 'color' | 'size' | 'style'>, StyledComponentProps {
|
|
2858
|
+
value?: string;
|
|
2859
|
+
defaultValue?: string;
|
|
2860
|
+
onValueChange?: (value: string) => void;
|
|
2861
|
+
onClear?: () => void;
|
|
2862
|
+
clearable?: boolean;
|
|
2863
|
+
clearButtonLabel?: string;
|
|
2864
|
+
startDecorator?: ReactNode;
|
|
2865
|
+
endDecorator?: ReactNode;
|
|
2866
|
+
clearDecorator?: ReactNode;
|
|
2867
|
+
style?: CSSProperties;
|
|
2868
|
+
className?: string;
|
|
2869
|
+
controlClassName?: string;
|
|
2870
|
+
rootProps?: Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'color'>;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
declare const SecondarySidebar: ForwardRefExoticComponent<AppShellSecondarySidebarProps & RefAttributes<HTMLElement>>;
|
|
2874
|
+
|
|
2875
|
+
export declare const SegmentedControl: SegmentedControlCompound;
|
|
2876
|
+
|
|
2877
|
+
declare type SegmentedControlCompound = typeof SegmentedControlRoot & {
|
|
2878
|
+
Item: typeof SegmentedControlItem;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
declare const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<HTMLLabelElement>>;
|
|
2882
|
+
|
|
2883
|
+
export declare interface SegmentedControlItemProps extends Omit<HTMLAttributes<HTMLLabelElement>, 'onChange'> {
|
|
2884
|
+
value: string;
|
|
2885
|
+
disabled?: boolean;
|
|
2886
|
+
children: ReactNode;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
export declare interface SegmentedControlProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
2890
|
+
value?: string;
|
|
2891
|
+
defaultValue?: string;
|
|
2892
|
+
onValueChange?: (value: string) => void;
|
|
2893
|
+
size?: ComponentSize;
|
|
2894
|
+
disabled?: boolean;
|
|
2895
|
+
children: ReactNode;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
declare const SegmentedControlRoot: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<HTMLDivElement>>;
|
|
2899
|
+
|
|
2900
|
+
export declare const Select: SelectCompound;
|
|
2901
|
+
|
|
2902
|
+
export declare const SelectableList: SelectableListCompound;
|
|
2903
|
+
|
|
2904
|
+
declare type SelectableListCompound = typeof SelectableListRoot & {
|
|
2905
|
+
Root: typeof SelectableListRoot;
|
|
2906
|
+
Viewport: typeof List.Viewport;
|
|
2907
|
+
Item: typeof SelectableListItem;
|
|
2908
|
+
ItemIndicator: typeof SelectableListItemIndicator;
|
|
2909
|
+
ItemIcon: typeof List.ItemIcon;
|
|
2910
|
+
ItemLabel: typeof List.ItemLabel;
|
|
2911
|
+
ItemDescription: typeof List.ItemDescription;
|
|
2912
|
+
ItemMeta: typeof List.ItemMeta;
|
|
2913
|
+
ItemActions: typeof List.ItemActions;
|
|
2914
|
+
SelectAll: typeof SelectableListSelectAll;
|
|
2915
|
+
SelectionSummary: typeof SelectableListSelectionSummary;
|
|
2916
|
+
Group: typeof List.Group;
|
|
2917
|
+
GroupHeader: typeof List.GroupHeader;
|
|
2918
|
+
GroupSelectAll: typeof SelectableListGroupSelectAll;
|
|
2919
|
+
Separator: typeof List.Separator;
|
|
2920
|
+
Empty: typeof List.Empty;
|
|
2921
|
+
Loading: typeof List.Loading;
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
declare const SelectableListGroupSelectAll: ForwardRefExoticComponent<SelectableListGroupSelectAllProps & RefAttributes<HTMLDivElement>>;
|
|
2925
|
+
|
|
2926
|
+
export declare interface SelectableListGroupSelectAllProps extends HTMLAttributes<HTMLDivElement> {
|
|
2927
|
+
/** Keys of items in this group, used to compute indeterminate state */
|
|
2928
|
+
groupKeys: readonly Key[];
|
|
2929
|
+
children?: ReactNode;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
declare const SelectableListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLDivElement>>;
|
|
2933
|
+
|
|
2934
|
+
declare const SelectableListItemIndicator: ForwardRefExoticComponent<SelectableListItemIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
2935
|
+
|
|
2936
|
+
export declare type SelectableListItemIndicatorProps = HTMLAttributes<HTMLSpanElement>;
|
|
2937
|
+
|
|
2938
|
+
export declare type SelectableListItemProps = ListItemProps;
|
|
2939
|
+
|
|
2940
|
+
declare const SelectableListRoot: ForwardRefExoticComponent<SelectableListRootProps & RefAttributes<HTMLDivElement>>;
|
|
2941
|
+
|
|
2942
|
+
export declare interface SelectableListRootProps extends ListRootProps {
|
|
2943
|
+
/**
|
|
2944
|
+
* Visual indicator type.
|
|
2945
|
+
* Defaults to 'checkbox' when selectionMode='multiple',
|
|
2946
|
+
* 'radio' when selectionMode='single'.
|
|
2947
|
+
*/
|
|
2948
|
+
checkBehavior?: CheckBehavior;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
declare const SelectableListSelectAll: ForwardRefExoticComponent<SelectableListSelectAllProps & RefAttributes<HTMLDivElement>>;
|
|
2952
|
+
|
|
2953
|
+
export declare interface SelectableListSelectAllProps extends HTMLAttributes<HTMLDivElement> {
|
|
2954
|
+
children?: ReactNode;
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
declare const SelectableListSelectionSummary: ForwardRefExoticComponent<SelectableListSelectionSummaryProps & RefAttributes<HTMLDivElement>>;
|
|
2958
|
+
|
|
2959
|
+
export declare interface SelectableListSelectionSummaryProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
2960
|
+
/** Custom render function. If omitted, renders "N of M selected" */
|
|
2961
|
+
children?: ReactNode | ((selected: number, total: number) => ReactNode);
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
declare const SelectArrow: ForwardRefExoticComponent<Omit<Omit<SelectArrowProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2965
|
+
|
|
2966
|
+
declare const SelectBackdrop: ForwardRefExoticComponent<Omit<Omit<SelectBackdropProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2967
|
+
|
|
2968
|
+
declare type SelectCompound = typeof SelectRoot & {
|
|
2969
|
+
Root: typeof SelectRoot;
|
|
2970
|
+
Trigger: typeof SelectTrigger;
|
|
2971
|
+
Value: typeof SelectValue;
|
|
2972
|
+
Icon: typeof SelectIcon;
|
|
2973
|
+
Portal: typeof Select_2.Portal;
|
|
2974
|
+
Backdrop: typeof SelectBackdrop;
|
|
2975
|
+
Positioner: typeof SelectPositioner;
|
|
2976
|
+
Popup: typeof SelectPopup;
|
|
2977
|
+
Arrow: typeof SelectArrow;
|
|
2978
|
+
ScrollUpArrow: typeof SelectScrollUpArrow;
|
|
2979
|
+
ScrollDownArrow: typeof SelectScrollDownArrow;
|
|
2980
|
+
List: typeof SelectList;
|
|
2981
|
+
Group: typeof Select_2.Group;
|
|
2982
|
+
GroupLabel: typeof SelectGroupLabel;
|
|
2983
|
+
Item: typeof SelectItem;
|
|
2984
|
+
ItemIndicator: typeof SelectItemIndicator;
|
|
2985
|
+
ItemText: typeof SelectItemText;
|
|
2986
|
+
Separator: typeof SelectSeparator;
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
declare const SelectGroupLabel: ForwardRefExoticComponent<Omit<Omit<Omit<SelectGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
2990
|
+
|
|
2991
|
+
declare const SelectIcon: ForwardRefExoticComponent<SelectIconProps & RefAttributes<HTMLSpanElement>>;
|
|
2992
|
+
|
|
2993
|
+
export declare interface SelectIconProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.Icon>, 'color'>, StyledComponentProps {
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
export declare type SelectionBehavior = 'replace' | 'toggle';
|
|
2997
|
+
|
|
2998
|
+
declare type SelectionBehavior_2 = 'replace' | 'toggle';
|
|
2999
|
+
|
|
3000
|
+
declare type SelectionIndicatorMode = 'auto' | 'always' | 'never';
|
|
3001
|
+
|
|
3002
|
+
declare type SelectionMode_2 = 'none' | 'single' | 'multiple';
|
|
3003
|
+
export { SelectionMode_2 as SelectionMode }
|
|
3004
|
+
|
|
3005
|
+
declare type SelectionMode_3 = 'none' | 'single' | 'multiple';
|
|
3006
|
+
|
|
3007
|
+
declare const SelectItem: ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLElement>>;
|
|
3008
|
+
|
|
3009
|
+
declare const SelectItemIndicator: ForwardRefExoticComponent<Omit<Omit<SelectItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
3010
|
+
|
|
3011
|
+
export declare interface SelectItemProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.Item>, 'color' | 'children'>, StyledComponentProps, DecoratedContentProps_4 {
|
|
3012
|
+
selectionIndicator?: boolean;
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
declare const SelectItemText: ForwardRefExoticComponent<Omit<Omit<SelectItemTextProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3016
|
+
|
|
3017
|
+
declare const SelectList: ForwardRefExoticComponent<SelectListProps & RefAttributes<HTMLDivElement>>;
|
|
3018
|
+
|
|
3019
|
+
export declare interface SelectListProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.List>, 'color'>, StyledComponentProps {
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
declare const SelectPopup: ForwardRefExoticComponent<SelectPopupProps & RefAttributes<HTMLDivElement>>;
|
|
3023
|
+
|
|
3024
|
+
export declare interface SelectPopupProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.Popup>, 'color'>, StyledComponentProps {
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
declare const SelectPositioner: ForwardRefExoticComponent<Omit<Omit<SelectPositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3028
|
+
|
|
3029
|
+
declare function SelectRoot<Value, Multiple extends boolean | undefined = false>({ variant, color, size, selectionIndicator, multiple, ...props }: SelectRootProps<Value, Multiple>): JSX.Element;
|
|
3030
|
+
|
|
3031
|
+
declare namespace SelectRoot {
|
|
3032
|
+
var displayName: string;
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
export declare type SelectRootProps<Value, Multiple extends boolean | undefined = false> = Omit<Select_2.Root.Props<Value, Multiple>, 'color'> & StyledComponentProps & {
|
|
3036
|
+
selectionIndicator?: SelectionIndicatorMode;
|
|
3037
|
+
};
|
|
3038
|
+
|
|
3039
|
+
declare const SelectScrollDownArrow: ForwardRefExoticComponent<Omit<Omit<SelectScrollDownArrowProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3040
|
+
|
|
3041
|
+
declare const SelectScrollUpArrow: ForwardRefExoticComponent<Omit<Omit<SelectScrollUpArrowProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3042
|
+
|
|
3043
|
+
declare const SelectSeparator: ForwardRefExoticComponent<Omit<Omit<Omit<SeparatorProps_2, "ref"> & RefAttributes<HTMLDivElement>, "ref">, "color"> & StyledComponentProps & RefAttributes<HTMLDivElement>>;
|
|
3044
|
+
|
|
3045
|
+
declare const SelectTrigger: ForwardRefExoticComponent<SelectTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
3046
|
+
|
|
3047
|
+
export declare interface SelectTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.Trigger>, 'color'>, StyledComponentProps, DecoratedContentProps_4 {
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
declare const SelectValue: ForwardRefExoticComponent<SelectValueProps & RefAttributes<HTMLSpanElement>>;
|
|
3051
|
+
|
|
3052
|
+
export declare interface SelectValueProps extends Omit<ComponentPropsWithoutRef<typeof Select_2.Value>, 'color'>, StyledComponentProps {
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
export declare const Separator: SeparatorCompound;
|
|
3056
|
+
|
|
3057
|
+
declare type SeparatorCompound = typeof SeparatorRoot & {
|
|
3058
|
+
Root: typeof SeparatorRoot;
|
|
3059
|
+
};
|
|
3060
|
+
|
|
3061
|
+
export declare type SeparatorInset = 'none' | 'start' | 'end' | 'middle';
|
|
3062
|
+
|
|
3063
|
+
export declare type SeparatorLabelAlign = 'start' | 'center' | 'end';
|
|
3064
|
+
|
|
3065
|
+
export declare type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
3066
|
+
|
|
3067
|
+
export declare interface SeparatorProps extends Omit<ComponentPropsWithoutRef<typeof Separator_2>, 'color'>, StyledComponentProps {
|
|
3068
|
+
orientation?: SeparatorOrientation;
|
|
3069
|
+
inset?: SeparatorInset;
|
|
3070
|
+
label?: ReactNode;
|
|
3071
|
+
labelAlign?: SeparatorLabelAlign;
|
|
3072
|
+
decorative?: boolean;
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
declare const SeparatorRoot: ForwardRefExoticComponent<SeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
3076
|
+
|
|
3077
|
+
export declare const Sheet: ForwardRefExoticComponent<SheetProps & RefAttributes<HTMLElement>>;
|
|
3078
|
+
|
|
3079
|
+
/** @deprecated Use `SurfaceElevation` from `system/types` instead. */
|
|
3080
|
+
export declare type SheetElevation = SurfaceElevation;
|
|
3081
|
+
|
|
3082
|
+
export declare interface SheetProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, StyledComponentProps {
|
|
3083
|
+
as?: 'div' | 'section' | 'article' | 'aside' | 'main' | 'nav' | 'header' | 'footer';
|
|
3084
|
+
elevation?: SurfaceElevation;
|
|
3085
|
+
surface?: SurfaceType;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
/** @deprecated Use `SurfaceType` from `system/types` instead. */
|
|
3089
|
+
export declare type SheetSurface = SurfaceType;
|
|
3090
|
+
|
|
3091
|
+
declare const Sidebar: ForwardRefExoticComponent<AppShellSidebarProps & RefAttributes<HTMLElement>>;
|
|
3092
|
+
|
|
3093
|
+
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps & RefAttributes<HTMLDivElement>>;
|
|
3094
|
+
|
|
3095
|
+
export declare interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
3096
|
+
variant?: SkeletonVariant;
|
|
3097
|
+
width?: string | number;
|
|
3098
|
+
height?: string | number;
|
|
3099
|
+
lines?: number;
|
|
3100
|
+
animation?: 'pulse' | 'wave' | 'none';
|
|
3101
|
+
size?: SkeletonSize;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
declare type SkeletonSize = 'sm' | 'md' | 'lg';
|
|
3105
|
+
|
|
3106
|
+
export declare type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
3107
|
+
|
|
3108
|
+
export declare const Slider: SliderCompound;
|
|
3109
|
+
|
|
3110
|
+
declare type SliderCompound = typeof SliderRoot & {
|
|
3111
|
+
Root: typeof SliderRoot;
|
|
3112
|
+
Label: typeof SliderLabel;
|
|
3113
|
+
Value: typeof SliderValue;
|
|
3114
|
+
Control: typeof SliderControl;
|
|
3115
|
+
Track: typeof SliderTrack;
|
|
3116
|
+
Indicator: typeof SliderIndicator;
|
|
3117
|
+
Thumb: typeof SliderThumb;
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3120
|
+
declare const SliderControl: ForwardRefExoticComponent<SliderControlProps & RefAttributes<HTMLDivElement>>;
|
|
3121
|
+
|
|
3122
|
+
export declare interface SliderControlProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Control>, 'color'>, StyledComponentProps {
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
declare const SliderIndicator: ForwardRefExoticComponent<SliderIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
3126
|
+
|
|
3127
|
+
export declare interface SliderIndicatorProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Indicator>, 'color'>, StyledComponentProps {
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
declare const SliderLabel: ForwardRefExoticComponent<SliderLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
3131
|
+
|
|
3132
|
+
export declare type SliderLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
3133
|
+
|
|
3134
|
+
declare const SliderRoot: ForwardRefExoticComponent<SliderRootProps & RefAttributes<HTMLDivElement>>;
|
|
3135
|
+
|
|
3136
|
+
export declare interface SliderRootProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Root>, 'color'>, StyledComponentProps {
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
declare const SliderThumb: ForwardRefExoticComponent<SliderThumbProps & RefAttributes<HTMLDivElement>>;
|
|
3140
|
+
|
|
3141
|
+
export declare interface SliderThumbProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Thumb>, 'color'>, StyledComponentProps {
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
declare const SliderTrack: ForwardRefExoticComponent<SliderTrackProps & RefAttributes<HTMLDivElement>>;
|
|
3145
|
+
|
|
3146
|
+
export declare interface SliderTrackProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Track>, 'color'>, StyledComponentProps {
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
declare const SliderValue: ForwardRefExoticComponent<SliderValueProps & RefAttributes<HTMLOutputElement>>;
|
|
3150
|
+
|
|
3151
|
+
export declare interface SliderValueProps extends Omit<ComponentPropsWithoutRef<typeof Slider_2.Value>, 'color'>, StyledComponentProps {
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
export declare interface SortableColumnDef<T> {
|
|
3155
|
+
id: string;
|
|
3156
|
+
header: ReactNode;
|
|
3157
|
+
accessor: (item: T) => string | number | Date | undefined;
|
|
3158
|
+
sortable?: boolean;
|
|
3159
|
+
sortFn?: (a: T, b: T) => number;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
export declare function SortableHeader({ columnId, sort, onSort, sortable, children, }: SortableHeaderProps): JSX.Element;
|
|
3163
|
+
|
|
3164
|
+
export declare interface SortableHeaderProps {
|
|
3165
|
+
columnId: string;
|
|
3166
|
+
sort: SortConfig;
|
|
3167
|
+
onSort: (columnId: string) => void;
|
|
3168
|
+
sortable?: boolean;
|
|
3169
|
+
children: ReactNode;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
export declare interface SortConfig {
|
|
3173
|
+
key: string;
|
|
3174
|
+
direction: 'asc' | 'desc';
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
export declare type SortDirection = 'ascending' | 'descending';
|
|
3178
|
+
|
|
3179
|
+
export declare interface SortState {
|
|
3180
|
+
columnId: string;
|
|
3181
|
+
direction: SortDirection;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
declare type Spacing = 0 | 1 | 2 | 3 | 4;
|
|
3185
|
+
|
|
3186
|
+
export declare const Spinner: ForwardRefExoticComponent<SpinnerProps & RefAttributes<HTMLSpanElement>>;
|
|
3187
|
+
|
|
3188
|
+
export declare interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color' | 'children'> {
|
|
3189
|
+
size?: ComponentSize;
|
|
3190
|
+
color?: ComponentColor;
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
export declare const SplitButton: SplitButtonCompound;
|
|
3194
|
+
|
|
3195
|
+
declare const SplitButtonAction: ForwardRefExoticComponent<SplitButtonActionProps & RefAttributes<HTMLButtonElement>>;
|
|
3196
|
+
|
|
3197
|
+
export declare interface SplitButtonActionProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
3198
|
+
disabled?: boolean;
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
declare type SplitButtonColor = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
|
|
3202
|
+
|
|
3203
|
+
declare type SplitButtonCompound = typeof SplitButtonRoot & {
|
|
3204
|
+
Action: typeof SplitButtonAction;
|
|
3205
|
+
Menu: typeof SplitButtonMenu;
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
declare const SplitButtonMenu: ForwardRefExoticComponent<SplitButtonMenuProps & RefAttributes<HTMLDivElement>>;
|
|
3209
|
+
|
|
3210
|
+
export declare interface SplitButtonMenuProps {
|
|
3211
|
+
children: ReactNode;
|
|
3212
|
+
/** Accessible label for the menu trigger button. @default 'More actions' */
|
|
3213
|
+
menuAriaLabel?: string;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
export declare interface SplitButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
3217
|
+
variant?: ComponentVariant;
|
|
3218
|
+
color?: SplitButtonColor;
|
|
3219
|
+
size?: ComponentSize;
|
|
3220
|
+
disabled?: boolean;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
declare const SplitButtonRoot: ForwardRefExoticComponent<SplitButtonProps & RefAttributes<HTMLDivElement>>;
|
|
3224
|
+
|
|
3225
|
+
export declare type SplitDirection = 'horizontal' | 'vertical';
|
|
3226
|
+
|
|
3227
|
+
export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLElement>>;
|
|
3228
|
+
|
|
3229
|
+
export declare type StackDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
3230
|
+
|
|
3231
|
+
export declare interface StackProps extends HTMLAttributes<HTMLElement> {
|
|
3232
|
+
as?: 'div' | 'section' | 'nav' | 'ul' | 'ol';
|
|
3233
|
+
direction?: StackDirection;
|
|
3234
|
+
spacing?: StackSpacing;
|
|
3235
|
+
align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
3236
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
3237
|
+
wrap?: boolean;
|
|
3238
|
+
divider?: boolean;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
export declare type StackSpacing = 0 | 1 | 2 | 3 | 4;
|
|
3242
|
+
|
|
3243
|
+
export declare const StatRow: StatRowCompound;
|
|
3244
|
+
|
|
3245
|
+
declare type StatRowCompound = typeof StatRowRoot & {
|
|
3246
|
+
Item: typeof StatRowItem;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
declare const StatRowItem: ForwardRefExoticComponent<StatRowItemProps & RefAttributes<HTMLSpanElement>>;
|
|
3250
|
+
|
|
3251
|
+
export declare interface StatRowItemProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
3252
|
+
/** Optional icon rendered before the label. */
|
|
3253
|
+
icon?: ReactNode;
|
|
3254
|
+
/** Semantic color for this item. */
|
|
3255
|
+
color?: ComponentColor;
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
export declare interface StatRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
3259
|
+
/** Size of the row. Default: 'sm'. */
|
|
3260
|
+
size?: ComponentSize;
|
|
3261
|
+
/**
|
|
3262
|
+
* Separator character rendered between items.
|
|
3263
|
+
* Default: '·' (middle dot). Set to `null` to disable automatic separators.
|
|
3264
|
+
*/
|
|
3265
|
+
separator?: string | null;
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
declare const StatRowRoot: ForwardRefExoticComponent<StatRowProps & RefAttributes<HTMLDivElement>>;
|
|
3269
|
+
|
|
3270
|
+
declare const STATUS_MAP: {
|
|
3271
|
+
readonly success: "success";
|
|
3272
|
+
readonly healthy: "success";
|
|
3273
|
+
readonly running: "success";
|
|
3274
|
+
readonly ready: "success";
|
|
3275
|
+
readonly active: "success";
|
|
3276
|
+
readonly complete: "success";
|
|
3277
|
+
readonly connected: "success";
|
|
3278
|
+
readonly warning: "warning";
|
|
3279
|
+
readonly degraded: "warning";
|
|
3280
|
+
readonly slow: "warning";
|
|
3281
|
+
readonly danger: "danger";
|
|
3282
|
+
readonly error: "danger";
|
|
3283
|
+
readonly failed: "danger";
|
|
3284
|
+
readonly unhealthy: "danger";
|
|
3285
|
+
readonly critical: "danger";
|
|
3286
|
+
readonly disconnected: "danger";
|
|
3287
|
+
readonly info: "info";
|
|
3288
|
+
readonly pending: "info";
|
|
3289
|
+
readonly waiting: "info";
|
|
3290
|
+
readonly building: "info";
|
|
3291
|
+
readonly syncing: "info";
|
|
3292
|
+
readonly neutral: "neutral";
|
|
3293
|
+
readonly unknown: "neutral";
|
|
3294
|
+
readonly idle: "neutral";
|
|
3295
|
+
readonly stopped: "neutral";
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
export declare const StatusBar: StatusBarCompound;
|
|
3299
|
+
|
|
3300
|
+
declare type StatusBarCompound = typeof StatusBarRoot & {
|
|
3301
|
+
Section: typeof StatusBarSection;
|
|
3302
|
+
Item: typeof StatusBarItem;
|
|
3303
|
+
Indicator: typeof StatusBarIndicator;
|
|
3304
|
+
Progress: typeof StatusBarProgress;
|
|
3305
|
+
IconItem: typeof StatusBarIconItem;
|
|
3306
|
+
Separator: typeof StatusBarSeparator;
|
|
3307
|
+
};
|
|
3308
|
+
|
|
3309
|
+
declare const StatusBarIconItem: ForwardRefExoticComponent<StatusBarIconItemProps & RefAttributes<HTMLDivElement>>;
|
|
3310
|
+
|
|
3311
|
+
export declare interface StatusBarIconItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
3312
|
+
icon: ReactNode;
|
|
3313
|
+
onClick?: () => void;
|
|
3314
|
+
active?: boolean;
|
|
3315
|
+
color?: ComponentColor;
|
|
3316
|
+
children: ReactNode;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
declare const StatusBarIndicator: ForwardRefExoticComponent<StatusBarIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
3320
|
+
|
|
3321
|
+
export declare interface StatusBarIndicatorProps extends Omit<StatusDotProps, 'size'> {
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
declare const StatusBarItem: ForwardRefExoticComponent<StatusBarItemProps & RefAttributes<HTMLDivElement>>;
|
|
3325
|
+
|
|
3326
|
+
export declare interface StatusBarItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
3327
|
+
onClick?: () => void;
|
|
3328
|
+
active?: boolean;
|
|
3329
|
+
children: ReactNode;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
declare const StatusBarProgress: ForwardRefExoticComponent<StatusBarProgressProps & RefAttributes<HTMLDivElement>>;
|
|
3333
|
+
|
|
3334
|
+
export declare interface StatusBarProgressProps extends Omit<ProgressProps, 'size'> {
|
|
3335
|
+
label?: ReactNode;
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
export declare interface StatusBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3339
|
+
size?: ComponentSize;
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
declare const StatusBarRoot: ForwardRefExoticComponent<StatusBarProps & RefAttributes<HTMLDivElement>>;
|
|
3343
|
+
|
|
3344
|
+
declare const StatusBarSection: ForwardRefExoticComponent<StatusBarSectionProps & RefAttributes<HTMLDivElement>>;
|
|
3345
|
+
|
|
3346
|
+
export declare interface StatusBarSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
3347
|
+
align?: 'start' | 'center' | 'end';
|
|
3348
|
+
children: ReactNode;
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3351
|
+
declare const StatusBarSeparator: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
3352
|
+
|
|
3353
|
+
export declare type StatusColor = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
3354
|
+
|
|
3355
|
+
export declare const StatusDot: ForwardRefExoticComponent<StatusDotProps & RefAttributes<HTMLSpanElement>>;
|
|
3356
|
+
|
|
3357
|
+
export declare interface StatusDotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3358
|
+
status?: StatusDotStatus;
|
|
3359
|
+
label?: string;
|
|
3360
|
+
pulse?: boolean;
|
|
3361
|
+
/** Controls the visual intensity of the pulse animation. */
|
|
3362
|
+
pulseIntensity?: StatusDotPulseIntensity;
|
|
3363
|
+
size?: 'sm' | 'md' | 'lg';
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
export declare type StatusDotPulseIntensity = 'subtle' | 'default' | 'strong';
|
|
3367
|
+
|
|
3368
|
+
export declare type StatusDotStatus = 'success' | 'warning' | 'danger' | 'info' | 'neutral' | 'pending';
|
|
3369
|
+
|
|
3370
|
+
/**
|
|
3371
|
+
* Maps a semantic status string to a component color.
|
|
3372
|
+
* Case-insensitive. Unknown values default to 'neutral'.
|
|
3373
|
+
*/
|
|
3374
|
+
export declare function statusToColor(status: string): StatusColor;
|
|
3375
|
+
|
|
3376
|
+
export declare type StatusValue = keyof typeof STATUS_MAP;
|
|
3377
|
+
|
|
3378
|
+
export declare const Stepper: StepperCompound;
|
|
3379
|
+
|
|
3380
|
+
declare type StepperCompound = typeof StepperRoot & {
|
|
3381
|
+
Step: typeof StepperStep;
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
3385
|
+
|
|
3386
|
+
export declare interface StepperProps extends HTMLAttributes<HTMLDivElement> {
|
|
3387
|
+
/** 0-indexed current step. */
|
|
3388
|
+
activeStep: number;
|
|
3389
|
+
/** Layout direction. @default 'horizontal' */
|
|
3390
|
+
orientation?: StepperOrientation;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
declare const StepperRoot: ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLDivElement>>;
|
|
3394
|
+
|
|
3395
|
+
declare const StepperStep: ForwardRefExoticComponent<StepProps & InjectedStepProps & RefAttributes<HTMLDivElement>>;
|
|
3396
|
+
|
|
3397
|
+
export declare interface StepProps extends HTMLAttributes<HTMLDivElement> {
|
|
3398
|
+
/** Primary text shown next to the step indicator. */
|
|
3399
|
+
label: string;
|
|
3400
|
+
/** Secondary text below the label. */
|
|
3401
|
+
description?: string;
|
|
3402
|
+
/** Custom icon to replace the step number. */
|
|
3403
|
+
icon?: ReactNode;
|
|
3404
|
+
/** Show the step in an error state. */
|
|
3405
|
+
error?: boolean;
|
|
3406
|
+
/** Override the auto-completion detection. */
|
|
3407
|
+
completed?: boolean;
|
|
3408
|
+
/** Mark the step as disabled (muted, non-interactive). */
|
|
3409
|
+
disabled?: boolean;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
export declare const Strong: <C extends StrongElement = "strong">(props: TypographyBaseProps & TruncationProps & {
|
|
3413
|
+
as?: C | undefined;
|
|
3414
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
3415
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
3416
|
+
}) => ReactElement | null;
|
|
3417
|
+
|
|
3418
|
+
declare type StrongElement = 'strong' | 'span';
|
|
3419
|
+
|
|
3420
|
+
export declare type StrongProps<E extends StrongElement = StrongElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
3421
|
+
|
|
3422
|
+
export declare interface StyledComponentProps {
|
|
3423
|
+
variant?: ComponentVariant;
|
|
3424
|
+
color?: ComponentColor;
|
|
3425
|
+
size?: ComponentSize;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
export declare type SurfaceElevation = 0 | 1 | 2 | 3;
|
|
3429
|
+
|
|
3430
|
+
export declare type SurfaceType = 'base' | 'default' | 'raised' | 'overlay' | 'inset' | 'elevated';
|
|
3431
|
+
|
|
3432
|
+
export declare const Switch: SwitchCompound;
|
|
3433
|
+
|
|
3434
|
+
declare const SwitchBase: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLElement>>;
|
|
3435
|
+
|
|
3436
|
+
declare type SwitchCompound = typeof SwitchBase & {
|
|
3437
|
+
Root: typeof SwitchRoot;
|
|
3438
|
+
Thumb: typeof SwitchThumb;
|
|
3439
|
+
Field: typeof SwitchField;
|
|
3440
|
+
Label: typeof SwitchLabel;
|
|
3441
|
+
Description: typeof SwitchDescription;
|
|
3442
|
+
};
|
|
3443
|
+
|
|
3444
|
+
declare const SwitchDescription: ForwardRefExoticComponent<SwitchDescriptionProps & RefAttributes<HTMLSpanElement>>;
|
|
3445
|
+
|
|
3446
|
+
export declare type SwitchDescriptionProps = HTMLAttributes<HTMLSpanElement>;
|
|
3447
|
+
|
|
3448
|
+
declare const SwitchField: ForwardRefExoticComponent<SwitchFieldProps & RefAttributes<HTMLLabelElement>>;
|
|
3449
|
+
|
|
3450
|
+
export declare type SwitchFieldProps = HTMLAttributes<HTMLLabelElement>;
|
|
3451
|
+
|
|
3452
|
+
declare const SwitchLabel: ForwardRefExoticComponent<SwitchLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
3453
|
+
|
|
3454
|
+
export declare type SwitchLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
3455
|
+
|
|
3456
|
+
export declare interface SwitchProps extends Omit<SwitchRootProps, 'children'> {
|
|
3457
|
+
children?: ReactNode;
|
|
3458
|
+
description?: ReactNode;
|
|
3459
|
+
thumb?: ReactNode;
|
|
3460
|
+
thumbProps?: Omit<SwitchThumbProps, 'children'>;
|
|
3461
|
+
labelPosition?: 'start' | 'end';
|
|
3462
|
+
layout?: 'inline' | 'spread';
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
declare const SwitchRoot: ForwardRefExoticComponent<SwitchRootProps & RefAttributes<HTMLElement>>;
|
|
3466
|
+
|
|
3467
|
+
export declare interface SwitchRootProps extends Omit<ComponentPropsWithoutRef<typeof Switch_2.Root>, 'color'>, StyledComponentProps {
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
declare const SwitchThumb: ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLSpanElement>>;
|
|
3471
|
+
|
|
3472
|
+
export declare interface SwitchThumbProps extends Omit<ComponentPropsWithoutRef<typeof Switch_2.Thumb>, 'color'>, StyledComponentProps {
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
export declare type TabDescriptor = {
|
|
3476
|
+
id: TabId;
|
|
3477
|
+
title: string;
|
|
3478
|
+
icon?: ReactNode;
|
|
3479
|
+
dirty?: boolean;
|
|
3480
|
+
disabled?: boolean;
|
|
3481
|
+
closable?: boolean;
|
|
3482
|
+
pinned?: boolean;
|
|
3483
|
+
groupId?: TabGroupId | null;
|
|
3484
|
+
payload?: unknown;
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
export declare function TabDragBrokerProvider({ children, onCancel }: TabDragBrokerProviderProps): JSX.Element;
|
|
3488
|
+
|
|
3489
|
+
declare interface TabDragBrokerProviderProps {
|
|
3490
|
+
children: ReactNode;
|
|
3491
|
+
onCancel?: (session: TabDragSession) => void;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
declare interface TabDragBrokerValue {
|
|
3495
|
+
activeSession: TabDragSession | null;
|
|
3496
|
+
beginSession: (session: TabDragSession, clientX: number, clientY: number) => void;
|
|
3497
|
+
cancelSession: () => void;
|
|
3498
|
+
/** Clears the session without calling onCancel (used when reverting mid-drag). */
|
|
3499
|
+
clearSession: () => void;
|
|
3500
|
+
registerDropZone: (reg: DropZoneRegistration) => void;
|
|
3501
|
+
unregisterDropZone: (instanceId: string) => void;
|
|
3502
|
+
hoverInstanceId: string | null;
|
|
3503
|
+
pointerX: number;
|
|
3504
|
+
pointerY: number;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
declare interface TabDragSession {
|
|
3508
|
+
tab: TabDescriptor;
|
|
3509
|
+
sourceInstanceId: string;
|
|
3510
|
+
ghostStyle?: React.CSSProperties;
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
export declare type TabGroupDescriptor = {
|
|
3514
|
+
id: TabGroupId;
|
|
3515
|
+
title?: string;
|
|
3516
|
+
color?: string;
|
|
3517
|
+
fg?: string;
|
|
3518
|
+
collapsed?: boolean;
|
|
3519
|
+
};
|
|
3520
|
+
|
|
3521
|
+
export declare type TabGroupId = string;
|
|
3522
|
+
|
|
3523
|
+
export declare type TabId = string;
|
|
3524
|
+
|
|
3525
|
+
export declare const Table: TableCompound;
|
|
3526
|
+
|
|
3527
|
+
declare const TableBody: ForwardRefExoticComponent<TableBodyProps & RefAttributes<HTMLTableSectionElement>>;
|
|
3528
|
+
|
|
3529
|
+
export declare type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3530
|
+
|
|
3531
|
+
declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & RefAttributes<HTMLTableCaptionElement>>;
|
|
3532
|
+
|
|
3533
|
+
export declare interface TableCaptionProps extends Omit<HTMLAttributes<HTMLTableCaptionElement>, 'color'> {
|
|
3534
|
+
side?: 'top' | 'bottom';
|
|
3535
|
+
}
|
|
3536
|
+
|
|
3537
|
+
declare const TableCell: ForwardRefExoticComponent<TableCellProps & RefAttributes<HTMLTableCellElement>>;
|
|
3538
|
+
|
|
3539
|
+
export declare type TableCellAlign = 'left' | 'center' | 'right';
|
|
3540
|
+
|
|
3541
|
+
declare interface TableCellBaseProps {
|
|
3542
|
+
align?: TableCellAlign;
|
|
3543
|
+
numeric?: boolean;
|
|
3544
|
+
mono?: boolean;
|
|
3545
|
+
truncate?: boolean;
|
|
3546
|
+
tone?: TableCellTone;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
export declare interface TableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, 'color' | 'align'>, TableCellBaseProps {
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
export declare type TableCellTone = 'default' | 'muted' | 'subtle' | 'brand' | 'success' | 'warning' | 'danger';
|
|
3553
|
+
|
|
3554
|
+
declare type TableCompound = typeof TableRoot & {
|
|
3555
|
+
Root: typeof TableRoot;
|
|
3556
|
+
Container: typeof TableContainer;
|
|
3557
|
+
Head: typeof TableHead;
|
|
3558
|
+
Body: typeof TableBody;
|
|
3559
|
+
Footer: typeof TableFooter;
|
|
3560
|
+
Row: typeof TableRow;
|
|
3561
|
+
Cell: typeof TableCell;
|
|
3562
|
+
HeaderCell: typeof TableHeaderCell;
|
|
3563
|
+
Caption: typeof TableCaption;
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3566
|
+
declare const TableContainer: ForwardRefExoticComponent<TableContainerProps & RefAttributes<HTMLDivElement>>;
|
|
3567
|
+
|
|
3568
|
+
export declare interface TableContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
3569
|
+
maxHeight?: number | string;
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
declare const TableFooter: ForwardRefExoticComponent<TableFooterProps & RefAttributes<HTMLTableSectionElement>>;
|
|
3573
|
+
|
|
3574
|
+
export declare type TableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3575
|
+
|
|
3576
|
+
declare const TableHead: ForwardRefExoticComponent<TableHeadProps & RefAttributes<HTMLTableSectionElement>>;
|
|
3577
|
+
|
|
3578
|
+
declare const TableHeaderCell: ForwardRefExoticComponent<TableHeaderCellProps & RefAttributes<HTMLTableCellElement>>;
|
|
3579
|
+
|
|
3580
|
+
export declare interface TableHeaderCellProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'color' | 'align'>, TableCellBaseProps {
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
export declare type TableHeadProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3584
|
+
|
|
3585
|
+
export declare type TableLayout = 'auto' | 'fixed';
|
|
3586
|
+
|
|
3587
|
+
export declare interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'color'>, StyledComponentProps {
|
|
3588
|
+
layout?: TableLayout;
|
|
3589
|
+
striped?: boolean;
|
|
3590
|
+
hoverable?: boolean;
|
|
3591
|
+
stickyHeader?: boolean;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
declare const TableRoot: ForwardRefExoticComponent<TableProps & RefAttributes<HTMLTableElement>>;
|
|
3595
|
+
|
|
3596
|
+
declare const TableRow: ForwardRefExoticComponent<TableRowProps & RefAttributes<HTMLTableRowElement>>;
|
|
3597
|
+
|
|
3598
|
+
export declare interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
3599
|
+
selected?: boolean;
|
|
3600
|
+
interactive?: boolean;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
export declare const Tabs: TabsCompound;
|
|
3604
|
+
|
|
3605
|
+
declare type TabsCompound = typeof TabsRoot & {
|
|
3606
|
+
Root: typeof TabsRoot;
|
|
3607
|
+
List: typeof TabsList;
|
|
3608
|
+
Tab: typeof TabsTab;
|
|
3609
|
+
Panel: typeof TabsPanel;
|
|
3610
|
+
Indicator: typeof TabsIndicator;
|
|
3611
|
+
};
|
|
3612
|
+
|
|
3613
|
+
export declare type TabSegments = {
|
|
3614
|
+
pinned: TabDescriptor[];
|
|
3615
|
+
groups: Array<{
|
|
3616
|
+
group: TabGroupDescriptor;
|
|
3617
|
+
tabs: TabDescriptor[];
|
|
3618
|
+
}>;
|
|
3619
|
+
ungrouped: TabDescriptor[];
|
|
3620
|
+
};
|
|
3621
|
+
|
|
3622
|
+
declare const TabsIndicator: ForwardRefExoticComponent<Omit<TabsIndicatorProps_2, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3623
|
+
|
|
3624
|
+
export declare type TabsIndicatorProps = Tabs_2.Indicator.Props;
|
|
3625
|
+
|
|
3626
|
+
declare const TabsList: ForwardRefExoticComponent<Omit<TabsListProps_2, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3627
|
+
|
|
3628
|
+
export declare type TabsListProps = Tabs_2.List.Props;
|
|
3629
|
+
|
|
3630
|
+
declare const TabsPanel: ForwardRefExoticComponent<Omit<TabsPanelProps_2, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3631
|
+
|
|
3632
|
+
export declare type TabsPanelProps = Tabs_2.Panel.Props;
|
|
3633
|
+
|
|
3634
|
+
declare const TabsRoot: ForwardRefExoticComponent<Omit<TabsRootProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3635
|
+
|
|
3636
|
+
export declare interface TabsRootProps extends Tabs_2.Root.Props, Omit<StyledComponentProps, 'variant'> {
|
|
3637
|
+
variant?: TabsVariant;
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
declare const TabsTab: ForwardRefExoticComponent<Omit<TabsTabProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
3641
|
+
|
|
3642
|
+
export declare type TabsTabProps = Tabs_2.Tab.Props & {
|
|
3643
|
+
/** Slot rendered after the tab label (e.g. Badge, icon, count) */
|
|
3644
|
+
endDecorator?: ReactNode;
|
|
3645
|
+
};
|
|
3646
|
+
|
|
3647
|
+
declare type TabsVariant = 'solid' | 'soft' | 'outline' | 'ghost' | 'flat';
|
|
3648
|
+
|
|
3649
|
+
export declare const TagInput: ForwardRefExoticComponent<TagInputProps & RefAttributes<HTMLDivElement>>;
|
|
3650
|
+
|
|
3651
|
+
export declare interface TagInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3652
|
+
/** Current tag values (controlled). */
|
|
3653
|
+
value: string[];
|
|
3654
|
+
/** Called whenever the tag list changes. */
|
|
3655
|
+
onChange: (tags: string[]) => void;
|
|
3656
|
+
/** Placeholder shown when there are no tags and the input is empty. */
|
|
3657
|
+
placeholder?: string;
|
|
3658
|
+
/** Character or pattern used to split input into tags. Defaults to `","`. */
|
|
3659
|
+
delimiter?: string | RegExp;
|
|
3660
|
+
/** Maximum number of tags allowed. */
|
|
3661
|
+
max?: number;
|
|
3662
|
+
/** Whether duplicate tags are permitted. Defaults to `false`. */
|
|
3663
|
+
allowDuplicates?: boolean;
|
|
3664
|
+
/** Optional validation function; only tags for which this returns `true` are added. */
|
|
3665
|
+
validate?: (tag: string) => boolean;
|
|
3666
|
+
/** Control size. */
|
|
3667
|
+
size?: ComponentSize;
|
|
3668
|
+
/** Disables the entire input. */
|
|
3669
|
+
disabled?: boolean;
|
|
3670
|
+
/** Props forwarded to the inner `<input>` element (e.g. id, name, aria-*, autoComplete). */
|
|
3671
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
declare const Text_2: TextComponent;
|
|
3675
|
+
export { Text_2 as Text }
|
|
3676
|
+
|
|
3677
|
+
export declare const TextArea: TextAreaCompound;
|
|
3678
|
+
|
|
3679
|
+
declare type TextAreaCompound = typeof TextAreaRoot & {
|
|
3680
|
+
Root: typeof TextAreaRoot;
|
|
3681
|
+
Label: typeof TextAreaLabel;
|
|
3682
|
+
Control: typeof TextAreaControl;
|
|
3683
|
+
Description: typeof TextAreaDescription;
|
|
3684
|
+
Error: typeof TextAreaError;
|
|
3685
|
+
};
|
|
3686
|
+
|
|
3687
|
+
declare const TextAreaControl: ForwardRefExoticComponent<TextAreaControlProps & RefAttributes<HTMLTextAreaElement>>;
|
|
3688
|
+
|
|
3689
|
+
export declare interface TextAreaControlProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'color'>, StyledComponentProps {
|
|
3690
|
+
mono?: boolean;
|
|
3691
|
+
resize?: CSSProperties['resize'];
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
declare const TextAreaDescription: ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & RefAttributes<HTMLParagraphElement>>;
|
|
3695
|
+
|
|
3696
|
+
export declare type TextAreaDescriptionProps = Field.Description.Props;
|
|
3697
|
+
|
|
3698
|
+
declare const TextAreaError: ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3699
|
+
|
|
3700
|
+
export declare type TextAreaErrorProps = Field.Error.Props;
|
|
3701
|
+
|
|
3702
|
+
declare const TextAreaLabel: ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
3703
|
+
|
|
3704
|
+
export declare type TextAreaLabelProps = Field.Label.Props;
|
|
3705
|
+
|
|
3706
|
+
declare const TextAreaRoot: ForwardRefExoticComponent<Omit<TextAreaRootProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3707
|
+
|
|
3708
|
+
export declare interface TextAreaRootProps extends Field.Root.Props, StyledComponentProps {
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
declare type TextComponent = <C extends TextElement = 'span'>(props: TextProps<C> & {
|
|
3712
|
+
ref?: PolymorphicRef<C>;
|
|
3713
|
+
}) => ReactElement | null;
|
|
3714
|
+
|
|
3715
|
+
declare type TextElement = 'span' | 'p' | 'div' | 'label';
|
|
3716
|
+
|
|
3717
|
+
export declare const TextField: TextFieldCompound;
|
|
3718
|
+
|
|
3719
|
+
declare type TextFieldCompound = typeof TextFieldRoot & {
|
|
3720
|
+
Root: typeof TextFieldRoot;
|
|
3721
|
+
Label: typeof TextFieldLabel;
|
|
3722
|
+
Control: typeof TextFieldControl;
|
|
3723
|
+
Description: typeof TextFieldDescription;
|
|
3724
|
+
Error: typeof TextFieldError;
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
declare const TextFieldControl: ForwardRefExoticComponent<Omit<FieldControlProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
3728
|
+
|
|
3729
|
+
export declare type TextFieldControlProps = Field.Control.Props;
|
|
3730
|
+
|
|
3731
|
+
declare const TextFieldDescription: ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3732
|
+
|
|
3733
|
+
export declare type TextFieldDescriptionProps = Field.Description.Props;
|
|
3734
|
+
|
|
3735
|
+
declare const TextFieldError: ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3736
|
+
|
|
3737
|
+
export declare type TextFieldErrorProps = Field.Error.Props;
|
|
3738
|
+
|
|
3739
|
+
declare const TextFieldLabel: ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & RefAttributes<HTMLLabelElement>>;
|
|
3740
|
+
|
|
3741
|
+
export declare type TextFieldLabelProps = Field.Label.Props;
|
|
3742
|
+
|
|
3743
|
+
declare const TextFieldRoot: ForwardRefExoticComponent<Omit<TextFieldRootProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3744
|
+
|
|
3745
|
+
export declare interface TextFieldRootProps extends Field.Root.Props, StyledComponentProps {
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
declare interface TextOwnProps extends TypographyBaseProps, TruncationProps {
|
|
3749
|
+
weight?: TypographyWeight;
|
|
3750
|
+
mono?: boolean;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
export declare type TextProps<C extends TextElement = TextElement> = PolymorphicComponentProps<C, TextOwnProps>;
|
|
3754
|
+
|
|
3755
|
+
export declare interface ThemeContextValue extends ThemeState {
|
|
3756
|
+
setTheme: (theme: ThemeMode) => void;
|
|
3757
|
+
setDensity: (density: ThemeDensity) => void;
|
|
3758
|
+
setMotion: (motion: ThemeMotion) => void;
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
export declare type ThemeDensity = 'compact' | 'comfortable';
|
|
3762
|
+
|
|
3763
|
+
export declare type ThemeMode = 'dark' | 'light' | 'high-contrast-dark' | 'high-contrast-light' | 'obsidian' | 'carbon' | 'void';
|
|
3764
|
+
|
|
3765
|
+
export declare type ThemeMotion = 'normal' | 'reduced';
|
|
3766
|
+
|
|
3767
|
+
export declare function ThemeProvider({ children, initialTheme, initialDensity, initialMotion, persist, }: ThemeProviderProps): JSX.Element;
|
|
3768
|
+
|
|
3769
|
+
export declare interface ThemeProviderProps extends PropsWithChildren {
|
|
3770
|
+
initialTheme?: ThemeMode;
|
|
3771
|
+
initialDensity?: ThemeDensity;
|
|
3772
|
+
initialMotion?: ThemeMotion;
|
|
3773
|
+
persist?: boolean;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
export declare interface ThemeState {
|
|
3777
|
+
theme: ThemeMode;
|
|
3778
|
+
density: ThemeDensity;
|
|
3779
|
+
motion: ThemeMotion;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
export declare const ThemeSwitcher: NamedExoticComponent<ThemeSwitcherProps>;
|
|
3783
|
+
|
|
3784
|
+
export declare interface ThemeSwitcherProps {
|
|
3785
|
+
className?: string;
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
export declare const Timeline: TimelineCompound;
|
|
3789
|
+
|
|
3790
|
+
declare type TimelineCompound = typeof TimelineRoot & {
|
|
3791
|
+
Item: typeof TimelineItem;
|
|
3792
|
+
Group: typeof TimelineGroup;
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
declare const TimelineGroup: ForwardRefExoticComponent<TimelineGroupProps & RefAttributes<HTMLDivElement>>;
|
|
3796
|
+
|
|
3797
|
+
export declare interface TimelineGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3798
|
+
label: ReactNode;
|
|
3799
|
+
children: ReactNode;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
declare const TimelineItem: ForwardRefExoticComponent<TimelineItemProps & RefAttributes<HTMLDivElement>>;
|
|
3803
|
+
|
|
3804
|
+
export declare interface TimelineItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
3805
|
+
timestamp?: ReactNode;
|
|
3806
|
+
icon?: ReactNode;
|
|
3807
|
+
color?: ComponentColor;
|
|
3808
|
+
/** Collapsible content revealed when item is expanded */
|
|
3809
|
+
details?: ReactNode;
|
|
3810
|
+
/** Default expanded state (uncontrolled) */
|
|
3811
|
+
defaultExpanded?: boolean;
|
|
3812
|
+
/** Controlled expanded state */
|
|
3813
|
+
expanded?: boolean;
|
|
3814
|
+
/** Called when expanded state changes */
|
|
3815
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
3816
|
+
children: ReactNode;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
export declare interface TimelineProps extends HTMLAttributes<HTMLDivElement> {
|
|
3820
|
+
size?: ComponentSize;
|
|
3821
|
+
children: ReactNode;
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
declare const TimelineRoot: ForwardRefExoticComponent<TimelineProps & RefAttributes<HTMLDivElement>>;
|
|
3825
|
+
|
|
3826
|
+
declare interface ToastContextValue {
|
|
3827
|
+
toast: (message: string, options?: ToastOptions) => string;
|
|
3828
|
+
dismiss: (id: string) => void;
|
|
3829
|
+
dismissAll: () => void;
|
|
3830
|
+
promise: <T>(promise: Promise<T>, messages: ToastPromiseMessages<T>) => Promise<T>;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
export declare interface ToastOptions {
|
|
3834
|
+
/** Severity colour band. @default 'info' */
|
|
3835
|
+
severity?: ToastSeverity;
|
|
3836
|
+
/** Auto-dismiss in ms. 0 = persistent. @default 5000 */
|
|
3837
|
+
duration?: number;
|
|
3838
|
+
/** Optional action button rendered inside the toast. */
|
|
3839
|
+
action?: {
|
|
3840
|
+
label: string;
|
|
3841
|
+
onClick: () => void;
|
|
3842
|
+
};
|
|
3843
|
+
/** Optional title displayed above the message. */
|
|
3844
|
+
title?: string;
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
export declare type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
3848
|
+
|
|
3849
|
+
export declare interface ToastPromiseMessages<T> {
|
|
3850
|
+
loading: string;
|
|
3851
|
+
success: string | ((data: T) => string);
|
|
3852
|
+
error: string | ((err: unknown) => string);
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
export declare const ToastProvider: ForwardRefExoticComponent<ToastProviderProps & RefAttributes<HTMLDivElement>>;
|
|
3856
|
+
|
|
3857
|
+
export declare interface ToastProviderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3858
|
+
/** Screen corner for the toast container. @default 'bottom-right' */
|
|
3859
|
+
position?: ToastPosition;
|
|
3860
|
+
/** Maximum visible toasts before older ones are dismissed. @default 5 */
|
|
3861
|
+
maxVisible?: number;
|
|
3862
|
+
/** Background surface level for toasts. @default 'raised' */
|
|
3863
|
+
surface?: SurfaceType;
|
|
3864
|
+
/** Shadow elevation level. @default 2 */
|
|
3865
|
+
elevation?: SurfaceElevation;
|
|
3866
|
+
children: ReactNode;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
export declare type ToastSeverity = 'success' | 'warning' | 'danger' | 'info';
|
|
3870
|
+
|
|
3871
|
+
export declare const ToggleButton: ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
3872
|
+
|
|
3873
|
+
export declare const ToggleButtonGroup: ToggleButtonGroupCompound;
|
|
3874
|
+
|
|
3875
|
+
declare type ToggleButtonGroupCompound = typeof ToggleButtonGroupRoot & {
|
|
3876
|
+
Item: typeof ToggleButtonGroupItem;
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3879
|
+
declare const ToggleButtonGroupItem: ForwardRefExoticComponent<Omit<ToggleButtonGroupItemProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
3880
|
+
|
|
3881
|
+
export declare interface ToggleButtonGroupItemProps extends Omit<ToggleButtonProps, 'value'> {
|
|
3882
|
+
value: string;
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
export declare interface ToggleButtonGroupProps extends Omit<ToggleGroup.Props<string>, 'color'>, StyledComponentProps {
|
|
3886
|
+
attached?: boolean;
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3889
|
+
declare const ToggleButtonGroupRoot: ForwardRefExoticComponent<Omit<ToggleButtonGroupProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3890
|
+
|
|
3891
|
+
export declare interface ToggleButtonProps extends Omit<Toggle.Props<string>, 'color'>, StyledComponentProps {
|
|
3892
|
+
/** Render as a square button (same sizing as IconButton). */
|
|
3893
|
+
square?: boolean;
|
|
3894
|
+
startDecorator?: ReactNode;
|
|
3895
|
+
endDecorator?: ReactNode;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
export declare const Toolbar: ToolbarCompound;
|
|
3899
|
+
|
|
3900
|
+
declare type ToolbarCompound = typeof ToolbarRoot & {
|
|
3901
|
+
Group: typeof ToolbarGroup;
|
|
3902
|
+
};
|
|
3903
|
+
|
|
3904
|
+
declare const ToolbarGroup: ForwardRefExoticComponent<ToolbarGroupProps & RefAttributes<HTMLDivElement>>;
|
|
3905
|
+
|
|
3906
|
+
export declare interface ToolbarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3907
|
+
/** Show a vertical separator before this group. */
|
|
3908
|
+
separator?: boolean;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
export declare interface ToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3912
|
+
/** Size of the toolbar – controls height. */
|
|
3913
|
+
size?: ComponentSize;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
declare const ToolbarRoot: ForwardRefExoticComponent<ToolbarProps & RefAttributes<HTMLDivElement>>;
|
|
3917
|
+
|
|
3918
|
+
export declare const Tooltip: TooltipCompound;
|
|
3919
|
+
|
|
3920
|
+
declare const TooltipArrow: ForwardRefExoticComponent<TooltipArrowProps & RefAttributes<HTMLDivElement>>;
|
|
3921
|
+
|
|
3922
|
+
export declare interface TooltipArrowProps extends Omit<ComponentPropsWithoutRef<typeof Tooltip_2.Arrow>, 'color'>, StyledComponentProps {
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
declare type TooltipCompound = typeof TooltipRoot & {
|
|
3926
|
+
Root: typeof TooltipRoot;
|
|
3927
|
+
Provider: typeof Tooltip_2.Provider;
|
|
3928
|
+
Trigger: typeof TooltipTrigger;
|
|
3929
|
+
Portal: typeof TooltipPortal;
|
|
3930
|
+
Positioner: typeof TooltipPositioner;
|
|
3931
|
+
Popup: typeof TooltipPopup;
|
|
3932
|
+
Arrow: typeof TooltipArrow;
|
|
3933
|
+
Viewport: typeof TooltipViewport;
|
|
3934
|
+
Handle: typeof Tooltip_2.Handle;
|
|
3935
|
+
createHandle: typeof Tooltip_2.createHandle;
|
|
3936
|
+
};
|
|
3937
|
+
|
|
3938
|
+
declare const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAttributes<HTMLDivElement>>;
|
|
3939
|
+
|
|
3940
|
+
export declare interface TooltipPopupProps extends Omit<ComponentPropsWithoutRef<typeof Tooltip_2.Popup>, 'color'>, StyledComponentProps {
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
declare const TooltipPortal: ForwardRefExoticComponent<Omit<Omit<TooltipPortalProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3944
|
+
|
|
3945
|
+
declare const TooltipPositioner: ForwardRefExoticComponent<Omit<Omit<TooltipPositionerProps, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3946
|
+
|
|
3947
|
+
declare function TooltipRoot<Payload>({ variant, color, size, lazy, defaultOpen, open, onOpenChange, ...props }: TooltipRootProps<Payload>): JSX.Element;
|
|
3948
|
+
|
|
3949
|
+
declare namespace TooltipRoot {
|
|
3950
|
+
var displayName: string;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
export declare type TooltipRootProps<Payload = unknown> = Omit<Tooltip_2.Root.Props<Payload>, 'color'> & StyledComponentProps & {
|
|
3954
|
+
/** Defer content rendering until the tooltip first opens. Default: false */
|
|
3955
|
+
lazy?: boolean;
|
|
3956
|
+
};
|
|
3957
|
+
|
|
3958
|
+
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
3959
|
+
|
|
3960
|
+
export declare interface TooltipTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Tooltip_2.Trigger>, 'color'>, StyledComponentProps {
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
declare const TooltipViewport: ForwardRefExoticComponent<Omit<Omit<Tooltip_2.Viewport.Props, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
3964
|
+
|
|
3965
|
+
declare interface TreeActionsContextValue {
|
|
3966
|
+
select: (key: Key_3) => void;
|
|
3967
|
+
deselect: (key: Key_3) => void;
|
|
3968
|
+
toggle: (key: Key_3) => void;
|
|
3969
|
+
selectRange: (toKey: Key_3) => void;
|
|
3970
|
+
selectAll: () => void;
|
|
3971
|
+
clearSelection: () => void;
|
|
3972
|
+
setActiveKey: (key: Key_3 | null) => void;
|
|
3973
|
+
expand: (key: Key_3) => void;
|
|
3974
|
+
collapse: (key: Key_3) => void;
|
|
3975
|
+
toggleExpanded: (key: Key_3) => void;
|
|
3976
|
+
expandAll: () => void;
|
|
3977
|
+
/** Non-blocking alternative to expandAll for very large trees (10k+ nodes). */
|
|
3978
|
+
expandAllAsync: () => Promise<void>;
|
|
3979
|
+
collapseAll: () => void;
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
declare interface TreeConfigContextValue {
|
|
3983
|
+
listId: string;
|
|
3984
|
+
selectionMode: SelectionMode_3;
|
|
3985
|
+
selectionBehavior: SelectionBehavior_2;
|
|
3986
|
+
density: ListDensity_3;
|
|
3987
|
+
typeahead: boolean;
|
|
3988
|
+
loopFocus: boolean;
|
|
3989
|
+
virtualized: boolean;
|
|
3990
|
+
indentation: number;
|
|
3991
|
+
showBranchConnectors: boolean;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
export declare interface TreeItemState {
|
|
3995
|
+
isSelected: boolean;
|
|
3996
|
+
isActive: boolean;
|
|
3997
|
+
isDisabled: boolean;
|
|
3998
|
+
isExpanded: boolean;
|
|
3999
|
+
isBranch: boolean;
|
|
4000
|
+
isLoading: boolean;
|
|
4001
|
+
depth: number;
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
export declare const TreeList: TreeListCompound;
|
|
4005
|
+
|
|
4006
|
+
declare type TreeListCompound = typeof TreeListRoot & {
|
|
4007
|
+
Root: typeof TreeListRoot;
|
|
4008
|
+
Viewport: typeof TreeListViewport;
|
|
4009
|
+
Item: typeof TreeListItem;
|
|
4010
|
+
ItemIndent: typeof TreeListItemIndent;
|
|
4011
|
+
ItemToggle: typeof TreeListItemToggle;
|
|
4012
|
+
ItemIcon: typeof TreeListItemIcon;
|
|
4013
|
+
ItemLabel: typeof TreeListItemLabel;
|
|
4014
|
+
ItemDescription: typeof TreeListItemDescription;
|
|
4015
|
+
ItemMeta: typeof TreeListItemMeta;
|
|
4016
|
+
ItemBadge: typeof TreeListItemBadge;
|
|
4017
|
+
ItemActions: typeof TreeListItemActions;
|
|
4018
|
+
Empty: typeof TreeListEmpty;
|
|
4019
|
+
Loading: typeof TreeListLoading;
|
|
4020
|
+
};
|
|
4021
|
+
|
|
4022
|
+
declare const TreeListEmpty: ForwardRefExoticComponent<TreeListEmptyProps & RefAttributes<HTMLDivElement>>;
|
|
4023
|
+
|
|
4024
|
+
declare interface TreeListEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
4025
|
+
children: ReactNode;
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
declare const TreeListItem: ForwardRefExoticComponent<TreeListItemProps & RefAttributes<HTMLDivElement>>;
|
|
4029
|
+
|
|
4030
|
+
declare const TreeListItemActions: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
4031
|
+
|
|
4032
|
+
declare const TreeListItemBadge: ForwardRefExoticComponent<TreeListItemBadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
4033
|
+
|
|
4034
|
+
declare interface TreeListItemBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4035
|
+
color?: ComponentColor;
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
declare const TreeListItemDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
4039
|
+
|
|
4040
|
+
declare const TreeListItemIcon: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
4041
|
+
|
|
4042
|
+
declare const TreeListItemIndent: ForwardRefExoticComponent<TreeListItemIndentProps & RefAttributes<HTMLSpanElement>>;
|
|
4043
|
+
|
|
4044
|
+
declare interface TreeListItemIndentProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4045
|
+
depth?: number;
|
|
4046
|
+
ancestorIsLast?: boolean[];
|
|
4047
|
+
isLastChild?: boolean;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
declare const TreeListItemLabel: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
4051
|
+
|
|
4052
|
+
declare const TreeListItemMeta: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
4053
|
+
|
|
4054
|
+
export declare interface TreeListItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
4055
|
+
itemKey: Key_3;
|
|
4056
|
+
disabled?: boolean;
|
|
4057
|
+
textValue?: string;
|
|
4058
|
+
children: ReactNode;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
declare const TreeListItemToggle: ForwardRefExoticComponent<TreeListItemToggleProps & RefAttributes<HTMLButtonElement>>;
|
|
4062
|
+
|
|
4063
|
+
declare interface TreeListItemToggleProps extends HTMLAttributes<HTMLButtonElement> {
|
|
4064
|
+
itemKey?: Key_3;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
declare const TreeListLoading: ForwardRefExoticComponent<TreeListLoadingProps & RefAttributes<HTMLDivElement>>;
|
|
4068
|
+
|
|
4069
|
+
declare interface TreeListLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
4070
|
+
children?: ReactNode;
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
declare const TreeListRoot: <TItem>(props: TreeListRootProps<TItem> & {
|
|
4074
|
+
ref?: Ref<HTMLDivElement>;
|
|
4075
|
+
}) => ReactNode;
|
|
4076
|
+
|
|
4077
|
+
export declare interface TreeListRootProps<TItem = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, StyledComponentProps {
|
|
4078
|
+
items: readonly TItem[];
|
|
4079
|
+
itemKey: (item: TItem) => Key_3;
|
|
4080
|
+
/** Return the children array, or `undefined` if children haven't been loaded yet.
|
|
4081
|
+
* An empty array `[]` means "loaded, no children" and will NOT trigger `loadChildren`. */
|
|
4082
|
+
getChildren: (item: TItem) => readonly TItem[] | undefined;
|
|
4083
|
+
isBranch?: (item: TItem) => boolean;
|
|
4084
|
+
getTextValue?: (item: TItem) => string;
|
|
4085
|
+
renderItem: (item: TItem, node: TreeNodeMeta) => ReactNode;
|
|
4086
|
+
expandedKeys?: ReadonlySet<Key_3>;
|
|
4087
|
+
defaultExpandedKeys?: Iterable<Key_3>;
|
|
4088
|
+
onExpandedKeysChange?: (keys: ReadonlySet<Key_3>) => void;
|
|
4089
|
+
/** Called when a branch is expanded whose `getChildren` returns `undefined` (not yet loaded).
|
|
4090
|
+
* Not called for branches that return `[]` (loaded but empty). */
|
|
4091
|
+
loadChildren?: (key: Key_3, item: TItem) => Promise<void>;
|
|
4092
|
+
onLoadError?: (error: unknown, key: Key_3, item: TItem) => void;
|
|
4093
|
+
selectionMode?: SelectionMode_3;
|
|
4094
|
+
selectionBehavior?: SelectionBehavior_2;
|
|
4095
|
+
selectedKeys?: ReadonlySet<Key_3>;
|
|
4096
|
+
defaultSelectedKeys?: Iterable<Key_3>;
|
|
4097
|
+
onSelectedKeysChange?: (keys: ReadonlySet<Key_3>) => void;
|
|
4098
|
+
activeKey?: Key_3 | null;
|
|
4099
|
+
defaultActiveKey?: Key_3 | null;
|
|
4100
|
+
onActiveKeyChange?: (key: Key_3 | null) => void;
|
|
4101
|
+
disabledKeys?: Iterable<Key_3>;
|
|
4102
|
+
loopFocus?: boolean;
|
|
4103
|
+
typeahead?: boolean;
|
|
4104
|
+
density?: ListDensity_3;
|
|
4105
|
+
virtualized?: boolean;
|
|
4106
|
+
overscan?: number;
|
|
4107
|
+
estimatedItemSize?: number;
|
|
4108
|
+
filterText?: string;
|
|
4109
|
+
defaultFilterText?: string;
|
|
4110
|
+
onFilterTextChange?: (filterText: string) => void;
|
|
4111
|
+
filterFn?: (item: TItem, filterText: string) => boolean;
|
|
4112
|
+
indentation?: number;
|
|
4113
|
+
showBranchConnectors?: boolean;
|
|
4114
|
+
loading?: boolean;
|
|
4115
|
+
error?: ReactNode;
|
|
4116
|
+
children?: ReactNode;
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
declare const TreeListViewport: ForwardRefExoticComponent<TreeListViewportProps & RefAttributes<HTMLDivElement>>;
|
|
4120
|
+
|
|
4121
|
+
declare type TreeListViewportProps = HTMLAttributes<HTMLDivElement>;
|
|
4122
|
+
|
|
4123
|
+
export declare interface TreeNodeMeta {
|
|
4124
|
+
key: Key_3;
|
|
4125
|
+
depth: number;
|
|
4126
|
+
parentKey: Key_3 | null;
|
|
4127
|
+
isBranch: boolean;
|
|
4128
|
+
isExpanded: boolean;
|
|
4129
|
+
isLoading: boolean;
|
|
4130
|
+
isLastChild: boolean;
|
|
4131
|
+
ancestorIsLast: boolean[];
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
declare interface TreeStore {
|
|
4135
|
+
subscribe: (listener: () => void) => () => void;
|
|
4136
|
+
getSnapshot: () => TreeStoreSnapshot;
|
|
4137
|
+
getItemState: (key: Key_3) => TreeItemState;
|
|
4138
|
+
getNodeMeta: (key: Key_3) => TreeNodeMeta | undefined;
|
|
4139
|
+
getFlatNodes: () => readonly FlatNode[];
|
|
4140
|
+
setSelectedKeys: (keys: Set<Key_3>, silent?: boolean) => void;
|
|
4141
|
+
setActiveKey: (key: Key_3 | null, silent?: boolean) => void;
|
|
4142
|
+
setExpandedKeys: (keys: Set<Key_3>, silent?: boolean) => void;
|
|
4143
|
+
setLoadingKey: (key: Key_3, loading: boolean, silent?: boolean) => void;
|
|
4144
|
+
setFlatNodes: (nodes: FlatNode[], silent?: boolean) => void;
|
|
4145
|
+
registerTextValue: (key: Key_3, textValue: string) => void;
|
|
4146
|
+
getTextValue: (key: Key_3) => string | undefined;
|
|
4147
|
+
getRegisteredKeys: () => Key_3[];
|
|
4148
|
+
/** Rebuild snapshot and notify listeners. Call from useEffect after silent updates. */
|
|
4149
|
+
emit: () => void;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
declare interface TreeStoreSnapshot {
|
|
4153
|
+
selectedKeys: ReadonlySet<Key_3>;
|
|
4154
|
+
activeKey: Key_3 | null;
|
|
4155
|
+
disabledKeys: ReadonlySet<Key_3>;
|
|
4156
|
+
expandedKeys: ReadonlySet<Key_3>;
|
|
4157
|
+
loadingKeys: ReadonlySet<Key_3>;
|
|
4158
|
+
flattenedKeys: readonly Key_3[];
|
|
4159
|
+
visibleCount: number;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
export declare interface TruncationProps {
|
|
4163
|
+
truncate?: TypographyTruncate;
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4166
|
+
export declare const Typography: TypographyCompound;
|
|
4167
|
+
|
|
4168
|
+
export declare interface TypographyBaseProps {
|
|
4169
|
+
size?: ComponentSize;
|
|
4170
|
+
tone?: TypographyTone;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
declare type TypographyCompound = typeof Text_2 & {
|
|
4174
|
+
Heading: typeof Heading;
|
|
4175
|
+
Blockquote: typeof Blockquote;
|
|
4176
|
+
Caption: typeof Caption;
|
|
4177
|
+
Code: typeof Code;
|
|
4178
|
+
Em: typeof Em;
|
|
4179
|
+
Link: typeof Link;
|
|
4180
|
+
Overline: typeof Overline;
|
|
4181
|
+
Quote: typeof Quote;
|
|
4182
|
+
Strong: typeof Strong;
|
|
4183
|
+
Underline: typeof Underline;
|
|
4184
|
+
Hotkey: typeof Hotkey;
|
|
4185
|
+
};
|
|
4186
|
+
|
|
4187
|
+
export declare type TypographyTone = 'default' | 'muted' | 'subtle' | 'brand' | 'success' | 'warning' | 'danger';
|
|
4188
|
+
|
|
4189
|
+
export declare type TypographyTruncate = boolean | number;
|
|
4190
|
+
|
|
4191
|
+
export declare type TypographyWeight = 'regular' | 'medium' | 'semibold';
|
|
4192
|
+
|
|
4193
|
+
export declare const Underline: <C extends UnderlineElement = "u">(props: TypographyBaseProps & TruncationProps & {
|
|
4194
|
+
as?: C | undefined;
|
|
4195
|
+
} & Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "as" | "truncate" | keyof TypographyBaseProps> & {
|
|
4196
|
+
ref?: PolymorphicRef<C> | undefined;
|
|
4197
|
+
}) => ReactElement | null;
|
|
4198
|
+
|
|
4199
|
+
declare type UnderlineElement = 'u' | 'span';
|
|
4200
|
+
|
|
4201
|
+
export declare type UnderlineProps<E extends UnderlineElement = UnderlineElement> = PolymorphicComponentProps<E, TypographyBaseProps & TruncationProps>;
|
|
4202
|
+
|
|
4203
|
+
export declare function useCollapsible(): CollapsibleContextValue;
|
|
4204
|
+
|
|
4205
|
+
/**
|
|
4206
|
+
* Provides a DnD end handler that reorders columns.
|
|
4207
|
+
* Used with @dnd-kit/core DndContext in the DataTable root.
|
|
4208
|
+
*/
|
|
4209
|
+
export declare function useColumnDnd(table: Table_2<any>): {
|
|
4210
|
+
handleDragEnd: (event: DragEndEvent) => void;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4213
|
+
/**
|
|
4214
|
+
* Computes CSS custom properties for all column widths.
|
|
4215
|
+
* Applied at the root table element so cells reference them via
|
|
4216
|
+
* `width: calc(var(--header-{id}-size) * 1px)` without per-cell inline styles.
|
|
4217
|
+
*
|
|
4218
|
+
* Only recomputes when columnSizing or columnSizingInfo changes.
|
|
4219
|
+
*/
|
|
4220
|
+
export declare function useColumnSizeVars(table: Table_2<any>): Record<string, number>;
|
|
4221
|
+
|
|
4222
|
+
export declare function useCommandListActions(): CommandListActionsContextValue;
|
|
4223
|
+
|
|
4224
|
+
export declare function useCommandListConfig(): CommandListConfigContextValue;
|
|
4225
|
+
|
|
4226
|
+
/**
|
|
4227
|
+
* Per-item hook that subscribes to only this item's state slice.
|
|
4228
|
+
* Uses useSyncExternalStore so the item only re-renders when
|
|
4229
|
+
* its own isActive/isDisabled changes.
|
|
4230
|
+
*/
|
|
4231
|
+
export declare function useCommandListItem(store: CommandListStore, key: Key_2): CommandListItemState;
|
|
4232
|
+
|
|
4233
|
+
export declare function useCommandListStoreContext(): CommandListStore;
|
|
4234
|
+
|
|
4235
|
+
export declare function useDataTable<TData = any>(options: UseDataTableOptions<TData>): Table_2<TData>;
|
|
4236
|
+
|
|
4237
|
+
export declare function useDataTableContext(): DataTableContextValue;
|
|
4238
|
+
|
|
4239
|
+
export declare interface UseDataTableOptions<TData> {
|
|
4240
|
+
data: TData[];
|
|
4241
|
+
columns: ColumnDef_2<TData, unknown>[];
|
|
4242
|
+
features?: DataTableFeatures;
|
|
4243
|
+
initialState?: Partial<TableState>;
|
|
4244
|
+
getRowId?: (row: TData, index: number) => string;
|
|
4245
|
+
getSubRows?: (row: TData) => TData[] | undefined;
|
|
4246
|
+
getRowCanExpand?: (row: {
|
|
4247
|
+
original: TData;
|
|
4248
|
+
depth: number;
|
|
4249
|
+
}) => boolean;
|
|
4250
|
+
persistenceKey?: string;
|
|
4251
|
+
onRowSelectionChange?: (selection: RowSelectionState) => void;
|
|
4252
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
4253
|
+
onColumnVisibilityChange?: (visibility: VisibilityState) => void;
|
|
4254
|
+
onColumnOrderChange?: (order: ColumnOrderState) => void;
|
|
4255
|
+
onColumnSizingChange?: (sizing: ColumnSizingState) => void;
|
|
4256
|
+
onExpandedChange?: (expanded: ExpandedState) => void;
|
|
4257
|
+
onPaginationChange?: (pagination: PaginationState) => void;
|
|
4258
|
+
onColumnPinningChange?: (pinning: ColumnPinningState) => void;
|
|
4259
|
+
defaultColumn?: Partial<ColumnDef_2<TData, unknown>>;
|
|
4260
|
+
meta?: Record<string, unknown>;
|
|
4261
|
+
enableMultiSort?: boolean;
|
|
4262
|
+
manualSorting?: boolean;
|
|
4263
|
+
manualFiltering?: boolean;
|
|
4264
|
+
manualPagination?: boolean;
|
|
4265
|
+
pageCount?: number;
|
|
4266
|
+
globalFilterFn?: 'auto' | 'includesString' | 'includesStringSensitive';
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
/**
|
|
4270
|
+
* Persists select table state to localStorage under the given key.
|
|
4271
|
+
* Restores on mount. Only persists column sizing, visibility, order, and sorting.
|
|
4272
|
+
*/
|
|
4273
|
+
export declare function useDataTablePersistence(table: Table_2<any>, key: string | undefined): void;
|
|
4274
|
+
|
|
4275
|
+
/**
|
|
4276
|
+
* Returns a debounced version of the callback that only fires after `delay` ms
|
|
4277
|
+
* of no invocations. Includes `cancel()` and `flush()` methods.
|
|
4278
|
+
*/
|
|
4279
|
+
export declare function useDebouncedCallback<TArgs extends unknown[], TReturn>(callback: (...args: TArgs) => TReturn, delay?: number): DebouncedFunction<TArgs, TReturn>;
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* Returns a debounced version of the value that only updates after `delay` ms
|
|
4283
|
+
* of no changes. The initial value is returned immediately without delay.
|
|
4284
|
+
*/
|
|
4285
|
+
export declare function useDebouncedValue<T>(value: T, delay?: number): T;
|
|
4286
|
+
|
|
4287
|
+
/**
|
|
4288
|
+
* Hook that registers any control with the EditableList field system.
|
|
4289
|
+
* Works with `<input>`, `<select>`, `<textarea>`, or any custom component
|
|
4290
|
+
* that exposes `{ value, focus() }`.
|
|
4291
|
+
*
|
|
4292
|
+
* Usage:
|
|
4293
|
+
* ```tsx
|
|
4294
|
+
* function MySelect({ name, defaultValue }) {
|
|
4295
|
+
* const { ref, error, setValue } = EditableList.useField(name, defaultValue);
|
|
4296
|
+
* return (
|
|
4297
|
+
* <select ref={ref} defaultValue={defaultValue} onChange={e => setValue(e.target.value)}>
|
|
4298
|
+
* <option value="a">A</option>
|
|
4299
|
+
* <option value="b">B</option>
|
|
4300
|
+
* </select>
|
|
4301
|
+
* );
|
|
4302
|
+
* }
|
|
4303
|
+
* ```
|
|
4304
|
+
*/
|
|
4305
|
+
declare function useEditableField(name: string, defaultValue?: string): UseEditableFieldResult;
|
|
4306
|
+
|
|
4307
|
+
/** Return value of the `useEditableField` hook. */
|
|
4308
|
+
export declare interface UseEditableFieldResult {
|
|
4309
|
+
/** Attach to your control's `ref` to register it with the field system. */
|
|
4310
|
+
ref: RefCallback<FieldElement>;
|
|
4311
|
+
/** Current error message for this field (undefined = no error). */
|
|
4312
|
+
error: string | undefined;
|
|
4313
|
+
/** Call when the control's value changes to keep the field system in sync. */
|
|
4314
|
+
setValue: (value: string) => void;
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
export declare function useEditorTabsContext(): EditorTabsContextValue;
|
|
4318
|
+
|
|
4319
|
+
export declare function useListActions(): ListActionsContextValue;
|
|
4320
|
+
|
|
4321
|
+
export declare function useListConfig(): ListConfigContextValue;
|
|
4322
|
+
|
|
4323
|
+
/**
|
|
4324
|
+
* Per-item hook that subscribes to only this item's state slice.
|
|
4325
|
+
* Uses useSyncExternalStore so the item only re-renders when
|
|
4326
|
+
* its own isSelected/isActive/isDisabled changes.
|
|
4327
|
+
*/
|
|
4328
|
+
export declare function useListItem(store: ListStore, key: Key, textValue?: string): ItemState;
|
|
4329
|
+
|
|
4330
|
+
export declare function useListStoreContext(): ListStore;
|
|
4331
|
+
|
|
4332
|
+
/**
|
|
4333
|
+
* Thin wrapper around @tanstack/react-virtual for list virtualization.
|
|
4334
|
+
*/
|
|
4335
|
+
export declare function useListVirtualizer({ count, scrollRef, overscan, estimatedItemSize, enabled, orientation, }: UseListVirtualizerOptions): UseListVirtualizerReturn;
|
|
4336
|
+
|
|
4337
|
+
export declare interface UseListVirtualizerOptions {
|
|
4338
|
+
count: number;
|
|
4339
|
+
scrollRef: RefObject<HTMLDivElement | null>;
|
|
4340
|
+
overscan?: number;
|
|
4341
|
+
estimatedItemSize?: number;
|
|
4342
|
+
enabled?: boolean;
|
|
4343
|
+
orientation?: ListOrientation;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
export declare interface UseListVirtualizerReturn {
|
|
4347
|
+
virtualItems: VirtualItem[];
|
|
4348
|
+
totalSize: number;
|
|
4349
|
+
measureElement: (el: HTMLElement | null) => void;
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
export declare function useSortableTable<T>(options: UseSortableTableOptions<T>): UseSortableTableReturn<T>;
|
|
4353
|
+
|
|
4354
|
+
export declare interface UseSortableTableOptions<T> {
|
|
4355
|
+
data: T[];
|
|
4356
|
+
defaultSort?: SortConfig;
|
|
4357
|
+
columns: SortableColumnDef<T>[];
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
export declare interface UseSortableTableReturn<T> {
|
|
4361
|
+
sortedData: T[];
|
|
4362
|
+
sort: SortConfig;
|
|
4363
|
+
onSort: (columnId: string) => void;
|
|
4364
|
+
columns: SortableColumnDef<T>[];
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
export declare function useTabDragBroker(): TabDragBrokerValue | null;
|
|
4368
|
+
|
|
4369
|
+
export declare function useTheme(): ThemeContextValue;
|
|
4370
|
+
|
|
4371
|
+
export declare function useToast(): ToastContextValue;
|
|
4372
|
+
|
|
4373
|
+
export declare function useTreeActions(): TreeActionsContextValue;
|
|
4374
|
+
|
|
4375
|
+
export declare function useTreeConfig(): TreeConfigContextValue;
|
|
4376
|
+
|
|
4377
|
+
/**
|
|
4378
|
+
* Per-item hook that subscribes to only this item's state slice.
|
|
4379
|
+
* Uses useSyncExternalStore so the item only re-renders when
|
|
4380
|
+
* its own state changes.
|
|
4381
|
+
*
|
|
4382
|
+
* Unlike useListItem, this does NOT self-register — keys come from
|
|
4383
|
+
* the flattener, not from DOM mount.
|
|
4384
|
+
*/
|
|
4385
|
+
export declare function useTreeItem(store: TreeStore, key: Key_3, textValue?: string): TreeItemState;
|
|
4386
|
+
|
|
4387
|
+
export declare function useTreeStoreContext(): TreeStore;
|
|
4388
|
+
|
|
4389
|
+
/** Validation function. Return a FieldErrors map (empty or all-undefined = valid). */
|
|
4390
|
+
export declare type ValidateItem = (key: Key, values: Record<string, string>) => FieldErrors | Promise<FieldErrors>;
|
|
4391
|
+
|
|
4392
|
+
export { }
|