@baseline-ui/core 0.30.0 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Acknowledgements.md +46 -4
- package/dist/index.css +1 -1
- package/dist/index.d.mts +391 -200
- package/dist/index.d.ts +391 -200
- package/dist/index.js +106 -100
- package/dist/index.mjs +12 -10
- package/package.json +6 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { AriaRole, Key, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
2
3
|
import { IconProps, SVGRProps } from '@baseline-ui/icons';
|
|
3
4
|
import * as react_stately from 'react-stately';
|
|
4
|
-
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2 } from 'react-stately';
|
|
5
|
+
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2, TreeProps } from 'react-stately';
|
|
5
6
|
import * as react_aria from 'react-aria';
|
|
6
7
|
import { DraggableCollectionOptions, DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, Locale } from 'react-aria';
|
|
7
8
|
export { I18nProviderProps, useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
|
|
@@ -15,18 +16,21 @@ import { AriaToolbarProps } from '@react-aria/toolbar';
|
|
|
15
16
|
import { UseTransitionProps } from '@react-spring/core';
|
|
16
17
|
import { AriaColorSwatchProps } from '@react-aria/color';
|
|
17
18
|
import { AriaActionGroupProps } from '@react-aria/actiongroup';
|
|
19
|
+
import { TreeItem } from 'react-complex-tree';
|
|
20
|
+
import { PanelProps as PanelProps$1, PanelGroupProps as PanelGroupProps$1, PanelResizeHandleProps as PanelResizeHandleProps$1, ImperativePanelGroupHandle as ImperativePanelGroupHandle$1, ImperativePanelHandle as ImperativePanelHandle$1 } from 'react-resizable-panels';
|
|
21
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
18
22
|
|
|
19
23
|
interface ListOption<T = Record<string, any>> {
|
|
20
24
|
id: string;
|
|
21
25
|
label: string;
|
|
22
26
|
description?: string;
|
|
23
|
-
icon?:
|
|
27
|
+
icon?: React__default.FC<IconProps>;
|
|
24
28
|
data?: T;
|
|
25
29
|
}
|
|
26
|
-
interface ListSection {
|
|
30
|
+
interface ListSection<T = Record<string, any>> {
|
|
27
31
|
id: string;
|
|
28
32
|
title?: string;
|
|
29
|
-
children: ListOption[];
|
|
33
|
+
children: ListOption<T>[];
|
|
30
34
|
}
|
|
31
35
|
declare type ListItem = ListOption | ListSection;
|
|
32
36
|
|
|
@@ -73,7 +77,7 @@ interface StylingProps extends BlockProps {
|
|
|
73
77
|
/** The className applied to the root element of the component. */
|
|
74
78
|
className?: string;
|
|
75
79
|
/** The style applied to the root element of the component. */
|
|
76
|
-
style?:
|
|
80
|
+
style?: React__default.CSSProperties;
|
|
77
81
|
}
|
|
78
82
|
interface Rect {
|
|
79
83
|
/** The left position of the rectangle. */
|
|
@@ -136,42 +140,42 @@ interface ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListItem> & A
|
|
|
136
140
|
renderOption?: (item: Node$1<ListItem>, options: OptionAria & {
|
|
137
141
|
showSelectedIcon?: boolean;
|
|
138
142
|
_state: ListState<ListItem>;
|
|
139
|
-
}, ref:
|
|
143
|
+
}, ref: React__default.Ref<HTMLLIElement>) => React__default.ReactNode;
|
|
140
144
|
/** Renders the drop indicator component. */
|
|
141
145
|
renderDropIndicator?: (options: {
|
|
142
|
-
dropIndicatorProps:
|
|
146
|
+
dropIndicatorProps: React__default.HTMLAttributes<HTMLLIElement>;
|
|
143
147
|
isDropTarget: boolean;
|
|
144
148
|
isHidden: boolean;
|
|
145
149
|
orientation: Orientation;
|
|
146
|
-
}, ref:
|
|
150
|
+
}, ref: React__default.RefObject<HTMLLIElement>) => React__default.ReactNode;
|
|
147
151
|
/**
|
|
148
152
|
* The custom render function for the drag preview. This can be used to render
|
|
149
153
|
* a custom drag preview when dragging items.
|
|
150
154
|
*/
|
|
151
|
-
renderDragPreview?: (items: DragItem[]) =>
|
|
155
|
+
renderDragPreview?: (items: DragItem[]) => React__default.ReactNode;
|
|
152
156
|
/**
|
|
153
157
|
* The custom render function for the listbox sections.
|
|
154
158
|
*
|
|
155
159
|
* @param section ListSection
|
|
156
160
|
* @param ref React.RefObject<HTMLDivElement>
|
|
157
161
|
*/
|
|
158
|
-
renderSectionHeader?: (section: Node$1<ListItem>, ref:
|
|
162
|
+
renderSectionHeader?: (section: Node$1<ListItem>, ref: React__default.Ref<HTMLSpanElement>) => React__default.ReactNode;
|
|
159
163
|
/** Whether to show the selected checkmark icon. */
|
|
160
164
|
showSelectedIcon?: boolean;
|
|
161
165
|
/** The label for the listbox. */
|
|
162
|
-
label?:
|
|
166
|
+
label?: React__default.ReactNode;
|
|
163
167
|
/** The CSS class name for the drop indicator. */
|
|
164
168
|
dropIndicatorClassName?: string;
|
|
165
169
|
/** The style of the drop indicator used in a component. */
|
|
166
|
-
dropIndicatorStyle?:
|
|
170
|
+
dropIndicatorStyle?: React__default.CSSProperties;
|
|
167
171
|
/** The CSS class name for the option. */
|
|
168
172
|
optionClassName?: string | ((item: ListOption) => string | undefined);
|
|
169
173
|
/** The CSS class name for the section. */
|
|
170
174
|
sectionClassName?: string | ((item: ListSection) => string | undefined);
|
|
171
175
|
/** The style of the option. */
|
|
172
|
-
optionStyle?:
|
|
176
|
+
optionStyle?: React__default.CSSProperties | ((item: ListOption) => React__default.CSSProperties | undefined);
|
|
173
177
|
/** The style of the section. */
|
|
174
|
-
sectionStyle?:
|
|
178
|
+
sectionStyle?: React__default.CSSProperties | ((item: ListSection) => React__default.CSSProperties | undefined);
|
|
175
179
|
/**
|
|
176
180
|
* Whether to show each section title when provided.
|
|
177
181
|
*
|
|
@@ -185,10 +189,10 @@ interface ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListItem> & A
|
|
|
185
189
|
*/
|
|
186
190
|
withSectionHeaderPadding?: boolean;
|
|
187
191
|
/** Handle to access the listbox methods. */
|
|
188
|
-
listBoxHandle?:
|
|
192
|
+
listBoxHandle?: React__default.RefObject<ListBoxHandle>;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
|
-
declare const ListBox:
|
|
195
|
+
declare const ListBox: React__default.ForwardRefExoticComponent<ListBoxProps & React__default.RefAttributes<HTMLUListElement>>;
|
|
192
196
|
|
|
193
197
|
declare type UIStateOptions<T extends {
|
|
194
198
|
isSelected?: boolean;
|
|
@@ -203,7 +207,7 @@ interface StylingWithUIState<T = object> {
|
|
|
203
207
|
/** The button's class name. */
|
|
204
208
|
className?: string | ((props: UIStateOptions<T>) => string);
|
|
205
209
|
/** The button's style. */
|
|
206
|
-
style?:
|
|
210
|
+
style?: React__default.CSSProperties | ((props: UIStateOptions<T>) => React__default.CSSProperties);
|
|
207
211
|
}
|
|
208
212
|
interface ActionButtonSharedProps extends Omit<AriaButtonProps<"button" | "div">, "rel" | "href" | "target" | "children">, Omit<StylingProps, "className" | "style">, StylingWithUIState {
|
|
209
213
|
/**
|
|
@@ -224,11 +228,11 @@ interface ActionButtonProps extends ActionButtonSharedProps {
|
|
|
224
228
|
*/
|
|
225
229
|
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "toolbar" | "success" | "warning" | "error";
|
|
226
230
|
/** The button's label. */
|
|
227
|
-
label:
|
|
231
|
+
label: React__default.ReactNode;
|
|
228
232
|
/** The button's icon before the label. */
|
|
229
|
-
iconStart?:
|
|
233
|
+
iconStart?: React__default.FC<IconProps>;
|
|
230
234
|
/** The button's icon after the label. */
|
|
231
|
-
iconEnd?:
|
|
235
|
+
iconEnd?: React__default.FC<IconProps>;
|
|
232
236
|
/**
|
|
233
237
|
* The button's size.
|
|
234
238
|
*
|
|
@@ -239,7 +243,7 @@ interface ActionButtonProps extends ActionButtonSharedProps {
|
|
|
239
243
|
preventFocusOnPress?: boolean;
|
|
240
244
|
}
|
|
241
245
|
|
|
242
|
-
declare const ActionButton:
|
|
246
|
+
declare const ActionButton: React__default.ForwardRefExoticComponent<ActionButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
243
247
|
|
|
244
248
|
interface DomNodeRendererProps extends StylingProps, Omit<PressHookProps, "ref"> {
|
|
245
249
|
/**
|
|
@@ -251,23 +255,23 @@ interface DomNodeRendererProps extends StylingProps, Omit<PressHookProps, "ref">
|
|
|
251
255
|
node: Node;
|
|
252
256
|
}
|
|
253
257
|
|
|
254
|
-
declare const DomNodeRenderer:
|
|
258
|
+
declare const DomNodeRenderer: React__default.ForwardRefExoticComponent<DomNodeRendererProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
255
259
|
|
|
256
260
|
declare type OverlayTriggerProps_ = Parameters<typeof useOverlayTrigger>[0];
|
|
257
261
|
interface PopoverProps extends OverlayTriggerProps, OverlayTriggerProps_ {
|
|
258
262
|
/** The children of the popover. */
|
|
259
|
-
children:
|
|
263
|
+
children: React__default.ReactNode;
|
|
260
264
|
}
|
|
261
265
|
interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset">, StylingProps {
|
|
262
266
|
/**
|
|
263
267
|
* The reference element for the popover position. By default, the popover is
|
|
264
268
|
* positioned relative to the trigger element.
|
|
265
269
|
*/
|
|
266
|
-
triggerRef?:
|
|
270
|
+
triggerRef?: React__default.RefObject<HTMLElement>;
|
|
267
271
|
/** The class name for the underlay element. */
|
|
268
272
|
underlayClassName?: string;
|
|
269
273
|
/** The contents of the popover. */
|
|
270
|
-
children:
|
|
274
|
+
children: React__default.ReactNode | ((state: OverlayTriggerState) => React__default.ReactNode);
|
|
271
275
|
/**
|
|
272
276
|
* The container element for the popover. By default, the modal is rendered as
|
|
273
277
|
* a child of the body element.
|
|
@@ -284,15 +288,15 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
|
|
|
284
288
|
/** The class name for the content container element. */
|
|
285
289
|
contentContainerClassName?: string;
|
|
286
290
|
/** The style for the content container element. */
|
|
287
|
-
contentContainerStyle?:
|
|
291
|
+
contentContainerStyle?: React__default.CSSProperties;
|
|
288
292
|
}
|
|
289
293
|
interface PopoverTriggerProps {
|
|
290
294
|
/** The contents of the popover trigger. */
|
|
291
|
-
children?:
|
|
295
|
+
children?: React__default.ReactNode | (({ isOpen, triggerProps, triggerRef, }: {
|
|
292
296
|
isOpen: boolean;
|
|
293
297
|
triggerProps: AriaButtonProps<"button">;
|
|
294
|
-
triggerRef:
|
|
295
|
-
}) =>
|
|
298
|
+
triggerRef: React__default.RefObject<HTMLElement>;
|
|
299
|
+
}) => React__default.ReactNode);
|
|
296
300
|
/**
|
|
297
301
|
* Client rect to be used as anchor for the popover content when no child
|
|
298
302
|
* element is provided.
|
|
@@ -300,17 +304,17 @@ interface PopoverTriggerProps {
|
|
|
300
304
|
anchorRect?: Rect;
|
|
301
305
|
}
|
|
302
306
|
|
|
303
|
-
declare const PopoverContent:
|
|
307
|
+
declare const PopoverContent: React__default.ForwardRefExoticComponent<PopoverContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
304
308
|
|
|
305
|
-
declare const PopoverTrigger:
|
|
309
|
+
declare const PopoverTrigger: React__default.FC<PopoverTriggerProps>;
|
|
306
310
|
|
|
307
|
-
declare const Popover:
|
|
311
|
+
declare const Popover: React__default.FC<PopoverProps>;
|
|
308
312
|
|
|
309
313
|
interface TooltipProps extends StylingProps, TooltipTriggerProps, AriaTooltipProps, Omit<AriaPositionProps, "overlayRef" | "targetRef" | "maxHeight" | "isOpen" | "arrowSize"> {
|
|
310
314
|
/** The content of the tooltip. */
|
|
311
315
|
text?: string;
|
|
312
316
|
/** The tooltip trigger element. */
|
|
313
|
-
children:
|
|
317
|
+
children: React__default.ReactNode;
|
|
314
318
|
/**
|
|
315
319
|
* The delay time for the tooltip to show up.
|
|
316
320
|
*
|
|
@@ -350,11 +354,11 @@ interface TooltipProps extends StylingProps, TooltipTriggerProps, AriaTooltipPro
|
|
|
350
354
|
portalContainer?: HTMLElement;
|
|
351
355
|
}
|
|
352
356
|
|
|
353
|
-
declare const Tooltip:
|
|
357
|
+
declare const Tooltip: React__default.ForwardRefExoticComponent<TooltipProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
354
358
|
|
|
355
359
|
interface IconComponentProps {
|
|
356
360
|
/** The icon to show at the start of the color input. */
|
|
357
|
-
icon?:
|
|
361
|
+
icon?: React__default.FC<IconProps>;
|
|
358
362
|
/** The aria label for the color input button. */
|
|
359
363
|
"aria-label": string;
|
|
360
364
|
/** Props to pass to the tooltip component. */
|
|
@@ -373,7 +377,7 @@ interface SliderProps extends Omit<AriaSliderProps<number> & SliderStateOptions<
|
|
|
373
377
|
numberingSystem?: string;
|
|
374
378
|
};
|
|
375
379
|
/** The label for the slider. */
|
|
376
|
-
label?:
|
|
380
|
+
label?: React__default.ReactNode;
|
|
377
381
|
/**
|
|
378
382
|
* Whether to include a number input for the slider.
|
|
379
383
|
*
|
|
@@ -381,7 +385,7 @@ interface SliderProps extends Omit<AriaSliderProps<number> & SliderStateOptions<
|
|
|
381
385
|
*/
|
|
382
386
|
includeNumberInput?: boolean;
|
|
383
387
|
}
|
|
384
|
-
interface IconSliderProps extends Pick<SliderProps, "value" | "minValue" | "maxValue" | "onChange" | "defaultValue" | "includeNumberInput" | "step" | "numberFormatOptions">, StylingProps, IconComponentProps {
|
|
388
|
+
interface IconSliderProps extends Pick<SliderProps, "value" | "minValue" | "maxValue" | "onChange" | "defaultValue" | "includeNumberInput" | "step" | "numberFormatOptions" | "isDisabled">, StylingProps, IconComponentProps {
|
|
385
389
|
/**
|
|
386
390
|
* A function to format the value of the slider.
|
|
387
391
|
*
|
|
@@ -392,13 +396,13 @@ interface IconSliderProps extends Pick<SliderProps, "value" | "minValue" | "maxV
|
|
|
392
396
|
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
393
397
|
}
|
|
394
398
|
|
|
395
|
-
declare const Slider:
|
|
399
|
+
declare const Slider: React__default.ForwardRefExoticComponent<SliderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
396
400
|
|
|
397
|
-
declare const IconSlider:
|
|
401
|
+
declare const IconSlider: React__default.ForwardRefExoticComponent<IconSliderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
398
402
|
|
|
399
403
|
interface SwitchProps extends Omit<AriaSwitchProps, "children">, Omit<ToggleProps, "children" | "isRequired" | "validate" | "validationBehavior" | "validationState" | "isInvalid">, StylingProps {
|
|
400
404
|
/** The label to display next to the switch. */
|
|
401
|
-
label?:
|
|
405
|
+
label?: React__default.ReactNode;
|
|
402
406
|
/** The position of the label. */
|
|
403
407
|
labelPosition?: "top" | "left";
|
|
404
408
|
/** The status label to display next to the switch. */
|
|
@@ -408,7 +412,7 @@ interface SwitchProps extends Omit<AriaSwitchProps, "children">, Omit<ToggleProp
|
|
|
408
412
|
};
|
|
409
413
|
}
|
|
410
414
|
|
|
411
|
-
declare const Switch:
|
|
415
|
+
declare const Switch: React__default.ForwardRefExoticComponent<SwitchProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
412
416
|
|
|
413
417
|
interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState" | "label" | "aria-autocomplete" | "autoComplete" | "isRequired" | "aria-haspopup" | "isReadOnly" | "aria-activedescendant" | "type" | "validationBehavior" | "validate" | "isInvalid">, StylingProps {
|
|
414
418
|
/**
|
|
@@ -427,7 +431,7 @@ interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState"
|
|
|
427
431
|
"aria-label": string;
|
|
428
432
|
}
|
|
429
433
|
|
|
430
|
-
declare const SearchInput:
|
|
434
|
+
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
431
435
|
|
|
432
436
|
interface ThemeProviderProps extends StylingProps {
|
|
433
437
|
/**
|
|
@@ -439,7 +443,7 @@ interface ThemeProviderProps extends StylingProps {
|
|
|
439
443
|
*/
|
|
440
444
|
theme?: Theme | "light" | "dark" | "system";
|
|
441
445
|
/** The children to render. */
|
|
442
|
-
children:
|
|
446
|
+
children: React__default.ReactNode;
|
|
443
447
|
/**
|
|
444
448
|
* A function that will be called when the theme changes from any of the child
|
|
445
449
|
* components.
|
|
@@ -447,7 +451,7 @@ interface ThemeProviderProps extends StylingProps {
|
|
|
447
451
|
setTheme?: (theme: Theme | "light" | "dark" | "system") => void;
|
|
448
452
|
}
|
|
449
453
|
|
|
450
|
-
declare const ThemeProvider:
|
|
454
|
+
declare const ThemeProvider: React__default.ForwardRefExoticComponent<ThemeProviderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
451
455
|
|
|
452
456
|
/**
|
|
453
457
|
* A hook that returns the user preferences for color scheme, contrast, reduced
|
|
@@ -478,10 +482,10 @@ interface PortalContainerProviderProps {
|
|
|
478
482
|
*/
|
|
479
483
|
portalContainer: HTMLElement | undefined;
|
|
480
484
|
/** The children to render. */
|
|
481
|
-
children:
|
|
485
|
+
children: React__default.ReactNode;
|
|
482
486
|
}
|
|
483
487
|
|
|
484
|
-
declare const PortalContainerProvider:
|
|
488
|
+
declare const PortalContainerProvider: React__default.FC<PortalContainerProviderProps>;
|
|
485
489
|
|
|
486
490
|
declare type MenuOption = Omit<ListOption, "description"> & {
|
|
487
491
|
keyboardShortcut?: string;
|
|
@@ -530,22 +534,22 @@ interface MenuProps extends MenuPopoverProps, MenuTriggerProps, Omit<AriaMenuPro
|
|
|
530
534
|
*/
|
|
531
535
|
renderTrigger?: (options: {
|
|
532
536
|
buttonProps: ActionButtonProps;
|
|
533
|
-
ref:
|
|
534
|
-
}) =>
|
|
537
|
+
ref: React__default.RefObject<HTMLButtonElement>;
|
|
538
|
+
}) => React__default.ReactNode;
|
|
535
539
|
/**
|
|
536
540
|
* The label of the trigger element. This can be a string, a React node, or a
|
|
537
541
|
* function that accepts a boolean indicating whether the menu is open.
|
|
538
542
|
*/
|
|
539
|
-
triggerLabel?:
|
|
543
|
+
triggerLabel?: React__default.ReactNode | ((isOpen: boolean) => React__default.ReactNode);
|
|
540
544
|
}
|
|
541
545
|
|
|
542
|
-
declare const Menu:
|
|
546
|
+
declare const Menu: React__default.ForwardRefExoticComponent<MenuProps & React__default.RefAttributes<HTMLUListElement>>;
|
|
543
547
|
|
|
544
548
|
interface LinkProps extends AriaLinkOptions, StylingProps {
|
|
545
549
|
/** The link's style variant. */
|
|
546
550
|
variant?: "default" | "inline";
|
|
547
551
|
/** The children to render. */
|
|
548
|
-
children:
|
|
552
|
+
children: React__default.ReactNode;
|
|
549
553
|
/** The size of the link. */
|
|
550
554
|
size?: "sm" | "md" | "lg";
|
|
551
555
|
/**
|
|
@@ -564,7 +568,7 @@ interface LinkProps extends AriaLinkOptions, StylingProps {
|
|
|
564
568
|
role?: AriaRole;
|
|
565
569
|
}
|
|
566
570
|
|
|
567
|
-
declare const Link:
|
|
571
|
+
declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLElement>>;
|
|
568
572
|
|
|
569
573
|
interface SharedFileUploadProps extends StylingProps {
|
|
570
574
|
/** Whether the component is inlined. */
|
|
@@ -583,7 +587,7 @@ interface SharedFileUploadProps extends StylingProps {
|
|
|
583
587
|
/** The name of the input. */
|
|
584
588
|
name?: string;
|
|
585
589
|
/** The callback function that is fired when the value changes. */
|
|
586
|
-
onChange?: (event:
|
|
590
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
587
591
|
/**
|
|
588
592
|
* The callback function that is fired when the value changes and the value is
|
|
589
593
|
* valid.
|
|
@@ -597,12 +601,12 @@ interface SharedFileUploadProps extends StylingProps {
|
|
|
597
601
|
}
|
|
598
602
|
interface FileUploadProps extends SharedFileUploadProps {
|
|
599
603
|
/** The Icon to display. */
|
|
600
|
-
icon?:
|
|
604
|
+
icon?: React__default.FC<IconProps>;
|
|
601
605
|
/** Whether to allow multiple files to be uploaded. */
|
|
602
606
|
multiple?: boolean;
|
|
603
607
|
}
|
|
604
608
|
|
|
605
|
-
declare const FileUpload:
|
|
609
|
+
declare const FileUpload: React__default.ForwardRefExoticComponent<FileUploadProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
606
610
|
|
|
607
611
|
interface SeparatorProps extends SeparatorProps$1, StylingProps {
|
|
608
612
|
/**
|
|
@@ -613,7 +617,7 @@ interface SeparatorProps extends SeparatorProps$1, StylingProps {
|
|
|
613
617
|
variant?: "primary" | "secondary";
|
|
614
618
|
}
|
|
615
619
|
|
|
616
|
-
declare const Separator:
|
|
620
|
+
declare const Separator: React__default.ForwardRefExoticComponent<SeparatorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
617
621
|
|
|
618
622
|
interface ProgressBarProps extends StylingProps, Omit<AriaProgressBarProps, "isIndeterminate"> {
|
|
619
623
|
/**
|
|
@@ -634,7 +638,7 @@ interface ProgressBarProps extends StylingProps, Omit<AriaProgressBarProps, "isI
|
|
|
634
638
|
errorMessage?: string;
|
|
635
639
|
}
|
|
636
640
|
|
|
637
|
-
declare const ProgressBar:
|
|
641
|
+
declare const ProgressBar: React__default.ForwardRefExoticComponent<ProgressBarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
638
642
|
|
|
639
643
|
interface InputMessage {
|
|
640
644
|
/** The description to display below the input. */
|
|
@@ -662,12 +666,12 @@ interface TextInputProps extends Omit<AriaTextFieldProps, "validationState" | "i
|
|
|
662
666
|
/** Whether the input is read only. */
|
|
663
667
|
readOnly?: boolean;
|
|
664
668
|
/** The style object to apply to the input element */
|
|
665
|
-
inputStyle?:
|
|
669
|
+
inputStyle?: React__default.CSSProperties;
|
|
666
670
|
/** The class name to apply to the input element */
|
|
667
671
|
inputClassName?: string;
|
|
668
672
|
}
|
|
669
673
|
|
|
670
|
-
declare const TextInput:
|
|
674
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<TextInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
671
675
|
|
|
672
676
|
interface ReactionProps extends Omit<AriaSwitchProps & ToggleProps, "validationState" | "isRequired" | "children" | "isInvalid" | "validationBehavior" | "validate">, StylingProps {
|
|
673
677
|
/** The size of the reaction. */
|
|
@@ -675,15 +679,15 @@ interface ReactionProps extends Omit<AriaSwitchProps & ToggleProps, "validationS
|
|
|
675
679
|
/** The number of reactions. */
|
|
676
680
|
count: number;
|
|
677
681
|
/** The icon to render. */
|
|
678
|
-
icon?:
|
|
682
|
+
icon?: React__default.FC<IconProps>;
|
|
679
683
|
}
|
|
680
684
|
|
|
681
|
-
declare const Reaction:
|
|
685
|
+
declare const Reaction: React__default.ForwardRefExoticComponent<ReactionProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
682
686
|
|
|
683
687
|
interface PortalProps extends OverlayProps, StylingProps {
|
|
684
688
|
}
|
|
685
689
|
|
|
686
|
-
declare const Portal:
|
|
690
|
+
declare const Portal: React__default.ForwardRefExoticComponent<PortalProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
687
691
|
|
|
688
692
|
interface ProgressSpinnerProps extends Omit<AriaProgressBarProps, "value" | "isIndeterminate" | "formatOptions" | "maxValue" | "minValue" | "valueLabel">, StylingProps {
|
|
689
693
|
/**
|
|
@@ -700,11 +704,11 @@ interface ProgressSpinnerProps extends Omit<AriaProgressBarProps, "value" | "isI
|
|
|
700
704
|
variant?: "active" | "inactive" | "success" | "error";
|
|
701
705
|
}
|
|
702
706
|
|
|
703
|
-
declare const ProgressSpinner:
|
|
707
|
+
declare const ProgressSpinner: React__default.ForwardRefExoticComponent<ProgressSpinnerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
704
708
|
|
|
705
709
|
interface ActionIconButtonProps extends ActionButtonSharedProps {
|
|
706
710
|
/** The icon to display */
|
|
707
|
-
icon:
|
|
711
|
+
icon: React__default.FC<IconProps>;
|
|
708
712
|
/**
|
|
709
713
|
* The size of the icon button.
|
|
710
714
|
*
|
|
@@ -728,15 +732,15 @@ interface ActionIconButtonProps extends ActionButtonSharedProps {
|
|
|
728
732
|
tooltip?: boolean | Partial<Omit<TooltipProps, "children">>;
|
|
729
733
|
}
|
|
730
734
|
|
|
731
|
-
declare const ActionIconButton:
|
|
735
|
+
declare const ActionIconButton: React__default.ForwardRefExoticComponent<ActionIconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
732
736
|
|
|
733
737
|
interface ToggleButtonProps extends Omit<StylingProps, "style" | "className">, Omit<AriaToggleButtonProps, "children">, StylingWithUIState<{
|
|
734
738
|
isSelected?: boolean;
|
|
735
739
|
}> {
|
|
736
740
|
/** The text content of the button. */
|
|
737
|
-
label:
|
|
741
|
+
label: React__default.ReactNode;
|
|
738
742
|
/** The icon to display before the label. */
|
|
739
|
-
iconStart?:
|
|
743
|
+
iconStart?: React__default.FC<IconProps>;
|
|
740
744
|
/**
|
|
741
745
|
* The size of the button.
|
|
742
746
|
*
|
|
@@ -753,7 +757,7 @@ interface ToggleButtonProps extends Omit<StylingProps, "style" | "className">, O
|
|
|
753
757
|
variant?: "primary" | "toolbar";
|
|
754
758
|
}
|
|
755
759
|
|
|
756
|
-
declare const ToggleButton:
|
|
760
|
+
declare const ToggleButton: React__default.ForwardRefExoticComponent<ToggleButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
757
761
|
|
|
758
762
|
interface CheckboxProps extends Omit<AriaCheckboxProps, "children" | "validationBehavior" | "validationState" | "validate">, StylingProps {
|
|
759
763
|
/** The checkbox's label. */
|
|
@@ -766,7 +770,7 @@ interface CheckboxProps extends Omit<AriaCheckboxProps, "children" | "validation
|
|
|
766
770
|
labelPosition?: "start" | "end";
|
|
767
771
|
}
|
|
768
772
|
|
|
769
|
-
declare const Checkbox:
|
|
773
|
+
declare const Checkbox: React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
770
774
|
|
|
771
775
|
declare type Excluded = "isRequired" | "locale" | "validationState" | "label" | "formatOptions" | "isInvalid" | "validationBehaviour" | "validate" | "description" | "errorMessage";
|
|
772
776
|
interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<NumberFieldStateOptions, Excluded>, StylingProps {
|
|
@@ -790,13 +794,13 @@ interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<Num
|
|
|
790
794
|
hideActions?: boolean;
|
|
791
795
|
}
|
|
792
796
|
|
|
793
|
-
declare const Pagination:
|
|
797
|
+
declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
794
798
|
|
|
795
799
|
interface I18nProviderProps extends I18nProviderProps$1 {
|
|
796
800
|
/** The messages to use for internationalization. */
|
|
797
801
|
messages?: LocalizedStrings;
|
|
798
802
|
/** The children to render. */
|
|
799
|
-
children:
|
|
803
|
+
children: React__default.ReactNode;
|
|
800
804
|
/**
|
|
801
805
|
* Whether to log missing messages.
|
|
802
806
|
*
|
|
@@ -805,27 +809,27 @@ interface I18nProviderProps extends I18nProviderProps$1 {
|
|
|
805
809
|
shouldLogMissingMessages?: boolean;
|
|
806
810
|
}
|
|
807
811
|
|
|
808
|
-
declare const I18nProvider:
|
|
812
|
+
declare const I18nProvider: React__default.FC<I18nProviderProps>;
|
|
809
813
|
|
|
810
814
|
declare type NumberFormatProps = Parameters<typeof useNumberFormatter>[0] & {
|
|
811
815
|
/** The number to format. */
|
|
812
816
|
value: number;
|
|
813
817
|
};
|
|
814
818
|
|
|
815
|
-
declare const NumberFormat:
|
|
819
|
+
declare const NumberFormat: React__default.FC<NumberFormatProps>;
|
|
816
820
|
|
|
817
821
|
declare type DateFormatProps = Parameters<typeof useDateFormatter>[0] & {
|
|
818
822
|
/** The date to format. */
|
|
819
823
|
date: Date;
|
|
820
824
|
};
|
|
821
825
|
|
|
822
|
-
declare const DateFormat:
|
|
826
|
+
declare const DateFormat: React__default.FC<DateFormatProps>;
|
|
823
827
|
|
|
824
828
|
interface Item$1 {
|
|
825
829
|
id: string;
|
|
826
830
|
label: string;
|
|
827
831
|
variant?: "neutral" | "red" | "green" | "blue" | "high-contrast";
|
|
828
|
-
icon?:
|
|
832
|
+
icon?: React__default.FC<SVGRProps>;
|
|
829
833
|
}
|
|
830
834
|
interface TagGroupProps extends StylingProps, Omit<AriaTagGroupProps<Item$1>, "children" | "errorMessage" | "description">, Omit<ListProps<Item$1>, "children" | "collection" | "filter"> {
|
|
831
835
|
/**
|
|
@@ -845,7 +849,7 @@ interface TagGroupProps extends StylingProps, Omit<AriaTagGroupProps<Item$1>, "c
|
|
|
845
849
|
"aria-label": string;
|
|
846
850
|
}
|
|
847
851
|
|
|
848
|
-
declare const TagGroup:
|
|
852
|
+
declare const TagGroup: React__default.ForwardRefExoticComponent<TagGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
849
853
|
|
|
850
854
|
interface AccordionProps extends StylingProps {
|
|
851
855
|
/**
|
|
@@ -859,7 +863,7 @@ interface AccordionProps extends StylingProps {
|
|
|
859
863
|
/** This callback is called when the expanded state of the accordion changes. */
|
|
860
864
|
onChange?: (value: Set<Key>) => void;
|
|
861
865
|
/** The children of the accordion. Each child should be an `AccordionItem`. */
|
|
862
|
-
children:
|
|
866
|
+
children: React__default.ReactNode;
|
|
863
867
|
/** The keys of the items that should be expanded by default. */
|
|
864
868
|
defaultExpandedKeys?: Set<Key>;
|
|
865
869
|
/**
|
|
@@ -904,7 +908,7 @@ interface AccordionItemProps extends StylingProps {
|
|
|
904
908
|
*/
|
|
905
909
|
showActionsOnTriggerOnly?: boolean;
|
|
906
910
|
/** The content of the accordion item. */
|
|
907
|
-
children:
|
|
911
|
+
children: React__default.ReactNode;
|
|
908
912
|
/** The key of the accordion item. */
|
|
909
913
|
value: Key;
|
|
910
914
|
/**
|
|
@@ -914,9 +918,9 @@ interface AccordionItemProps extends StylingProps {
|
|
|
914
918
|
subLabel?: string;
|
|
915
919
|
}
|
|
916
920
|
|
|
917
|
-
declare const Accordion:
|
|
921
|
+
declare const Accordion: React__default.ForwardRefExoticComponent<AccordionProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
918
922
|
|
|
919
|
-
declare const AccordionItem:
|
|
923
|
+
declare const AccordionItem: React__default.ForwardRefExoticComponent<AccordionItemProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
920
924
|
|
|
921
925
|
interface SelectProps extends Omit<AriaSelectOptions<ListItem> & SelectStateOptions<ListItem> & PopoverContentProps, "validationState" | "items" | "children" | "isRequired" | "className" | "style" | "triggerRef" | "validate" | "validationBehavior" | "keyboardDelegate">, Pick<ListBoxProps, "items" | "showSelectedIcon" | "optionStyle" | "optionClassName">, StylingProps {
|
|
922
926
|
/**
|
|
@@ -932,7 +936,7 @@ interface SelectProps extends Omit<AriaSelectOptions<ListItem> & SelectStateOpti
|
|
|
932
936
|
/** The warning message of the select component. */
|
|
933
937
|
warningMessage?: string;
|
|
934
938
|
/** The label of the select component. */
|
|
935
|
-
label?:
|
|
939
|
+
label?: React__default.ReactNode;
|
|
936
940
|
/** The variant of the select component. */
|
|
937
941
|
variant?: "primary" | "ghost";
|
|
938
942
|
/** The state of the select component. */
|
|
@@ -949,19 +953,19 @@ interface SelectProps extends Omit<AriaSelectOptions<ListItem> & SelectStateOpti
|
|
|
949
953
|
valueProps: DOMAttributes;
|
|
950
954
|
isOpen: boolean;
|
|
951
955
|
selectedValue: ListItem | null;
|
|
952
|
-
ref:
|
|
953
|
-
}) =>
|
|
956
|
+
ref: React__default.RefObject<HTMLButtonElement>;
|
|
957
|
+
}) => React__default.ReactNode;
|
|
954
958
|
/** The class name of the trigger element. */
|
|
955
959
|
triggerClassName?: string;
|
|
956
960
|
/** The style of the trigger element. */
|
|
957
|
-
triggerStyle?:
|
|
961
|
+
triggerStyle?: React__default.CSSProperties;
|
|
958
962
|
}
|
|
959
963
|
interface IconSelectProps extends Omit<SelectProps, "renderTrigger" | "aria-label">, IconComponentProps {
|
|
960
964
|
}
|
|
961
965
|
|
|
962
|
-
declare const Select:
|
|
966
|
+
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
963
967
|
|
|
964
|
-
declare const IconSelect:
|
|
968
|
+
declare const IconSelect: React__default.ForwardRefExoticComponent<IconSelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
965
969
|
|
|
966
970
|
interface AvatarProps extends StylingProps {
|
|
967
971
|
/**
|
|
@@ -974,7 +978,7 @@ interface AvatarProps extends StylingProps {
|
|
|
974
978
|
* The icon to display. This icon has to be imported from the
|
|
975
979
|
* `@baseline-ui/icons` package.
|
|
976
980
|
*/
|
|
977
|
-
icon?:
|
|
981
|
+
icon?: React__default.FC<SVGRProps>;
|
|
978
982
|
/** The name of the user. */
|
|
979
983
|
name: string;
|
|
980
984
|
/** The URL of the image to display. */
|
|
@@ -992,15 +996,15 @@ interface AvatarProps extends StylingProps {
|
|
|
992
996
|
hasNotifications?: boolean;
|
|
993
997
|
}
|
|
994
998
|
|
|
995
|
-
declare const Avatar:
|
|
999
|
+
declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
996
1000
|
|
|
997
|
-
declare type ItemProps =
|
|
1001
|
+
declare type ItemProps = React__default.ComponentProps<typeof Item$2> & StylingProps & {
|
|
998
1002
|
key?: Key$1;
|
|
999
|
-
icon?:
|
|
1003
|
+
icon?: React__default.FC<IconProps>;
|
|
1000
1004
|
value?: string;
|
|
1001
1005
|
title?: string;
|
|
1002
1006
|
titleClassName?: string;
|
|
1003
|
-
titleStyle?:
|
|
1007
|
+
titleStyle?: React__default.CSSProperties;
|
|
1004
1008
|
};
|
|
1005
1009
|
declare type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation" | "children" | "items" | "selectedKey" | "defaultSelectedKey" | "disabledKeys"> & {
|
|
1006
1010
|
/**
|
|
@@ -1017,7 +1021,7 @@ declare type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orien
|
|
|
1017
1021
|
* </Tabs>;
|
|
1018
1022
|
* ```
|
|
1019
1023
|
*/
|
|
1020
|
-
children:
|
|
1024
|
+
children: React__default.ReactNode;
|
|
1021
1025
|
/**
|
|
1022
1026
|
* The key of the tab that needs to be removed.
|
|
1023
1027
|
*
|
|
@@ -1037,25 +1041,25 @@ declare type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orien
|
|
|
1037
1041
|
/** The className to apply to the tab header container. */
|
|
1038
1042
|
tabHeaderClassName?: string;
|
|
1039
1043
|
/** The style to apply to the tab header container. */
|
|
1040
|
-
tabHeaderStyle?:
|
|
1044
|
+
tabHeaderStyle?: React__default.CSSProperties;
|
|
1041
1045
|
};
|
|
1042
1046
|
declare type TabItemProps = StylingProps & {
|
|
1043
1047
|
/** The title of the tab. This will be displayed in the tab button. */
|
|
1044
1048
|
title: string;
|
|
1045
1049
|
/** The icon to display in front of the title. */
|
|
1046
|
-
icon?:
|
|
1050
|
+
icon?: React__default.FC<SVGRProps>;
|
|
1047
1051
|
/** The value of the tab. This will be used to identify the tab. */
|
|
1048
1052
|
value: string;
|
|
1049
1053
|
/** The className to apply to the tab item. */
|
|
1050
1054
|
titleClassName?: string;
|
|
1051
1055
|
/** The style to apply to the tab item. */
|
|
1052
|
-
titleStyle?:
|
|
1056
|
+
titleStyle?: React__default.CSSProperties;
|
|
1053
1057
|
/** The contents of the tab item. */
|
|
1054
|
-
children:
|
|
1058
|
+
children: React__default.ReactNode;
|
|
1055
1059
|
};
|
|
1056
1060
|
|
|
1057
|
-
declare const Tabs:
|
|
1058
|
-
children:
|
|
1061
|
+
declare const Tabs: React__default.ForwardRefExoticComponent<Omit<StylingProps & react_aria.AriaTabListProps<ItemProps>, "children" | "items" | "orientation" | "disabledKeys" | "selectedKey" | "defaultSelectedKey"> & {
|
|
1062
|
+
children: React__default.ReactNode;
|
|
1059
1063
|
onRemove?: ((key: react_stately.Key) => void) | undefined;
|
|
1060
1064
|
selectedValue?: string | undefined;
|
|
1061
1065
|
defaultSelectedValue?: string | undefined;
|
|
@@ -1063,10 +1067,10 @@ declare const Tabs: React.ForwardRefExoticComponent<Omit<StylingProps & react_ar
|
|
|
1063
1067
|
actions?: Omit<ActionIconButtonProps, "size" | "variant">[] | undefined;
|
|
1064
1068
|
variant?: "primary" | "ghost" | undefined;
|
|
1065
1069
|
tabHeaderClassName?: string | undefined;
|
|
1066
|
-
tabHeaderStyle?:
|
|
1067
|
-
} &
|
|
1070
|
+
tabHeaderStyle?: React__default.CSSProperties | undefined;
|
|
1071
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1068
1072
|
|
|
1069
|
-
declare const TabItem:
|
|
1073
|
+
declare const TabItem: React__default.FC<TabItemProps>;
|
|
1070
1074
|
|
|
1071
1075
|
interface InlineAlertProps extends StylingProps {
|
|
1072
1076
|
/**
|
|
@@ -1106,7 +1110,7 @@ interface InlineAlertProps extends StylingProps {
|
|
|
1106
1110
|
size?: "sm" | "md";
|
|
1107
1111
|
}
|
|
1108
1112
|
|
|
1109
|
-
declare const InlineAlert:
|
|
1113
|
+
declare const InlineAlert: React__default.ForwardRefExoticComponent<InlineAlertProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1110
1114
|
|
|
1111
1115
|
interface NumberInputProps extends StylingProps, Omit<AriaNumberFieldProps, "validationState" | "isRequired" | "validate" | "validationBehavior"> {
|
|
1112
1116
|
/**
|
|
@@ -1133,11 +1137,11 @@ interface NumberInputProps extends StylingProps, Omit<AriaNumberFieldProps, "val
|
|
|
1133
1137
|
errorMessage?: string;
|
|
1134
1138
|
}
|
|
1135
1139
|
|
|
1136
|
-
declare const NumberInput:
|
|
1140
|
+
declare const NumberInput: React__default.ForwardRefExoticComponent<NumberInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1137
1141
|
|
|
1138
1142
|
interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
1139
1143
|
/** The children to render. */
|
|
1140
|
-
children:
|
|
1144
|
+
children: React__default.ReactNode;
|
|
1141
1145
|
/**
|
|
1142
1146
|
* The valid values for the background type are "medium" and "subtle".
|
|
1143
1147
|
*
|
|
@@ -1152,11 +1156,11 @@ interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
|
1152
1156
|
onCloseRequest?: () => void;
|
|
1153
1157
|
}
|
|
1154
1158
|
|
|
1155
|
-
declare const Drawer:
|
|
1159
|
+
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1156
1160
|
|
|
1157
1161
|
interface DialogProps extends AriaDialogProps, StylingProps {
|
|
1158
1162
|
/** The children to render. */
|
|
1159
|
-
children:
|
|
1163
|
+
children: React__default.ReactNode;
|
|
1160
1164
|
/**
|
|
1161
1165
|
* The size of the dialog. This defines the max width of the dialog.
|
|
1162
1166
|
*
|
|
@@ -1185,12 +1189,12 @@ interface DialogProps extends AriaDialogProps, StylingProps {
|
|
|
1185
1189
|
}
|
|
1186
1190
|
interface DialogTitleProps extends StylingProps {
|
|
1187
1191
|
/** The children to render. */
|
|
1188
|
-
children:
|
|
1192
|
+
children: React__default.ReactNode;
|
|
1189
1193
|
}
|
|
1190
1194
|
|
|
1191
|
-
declare const Dialog:
|
|
1195
|
+
declare const Dialog: React__default.ForwardRefExoticComponent<DialogProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1192
1196
|
|
|
1193
|
-
declare const DialogTitle:
|
|
1197
|
+
declare const DialogTitle: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1194
1198
|
|
|
1195
1199
|
interface ColorPreset {
|
|
1196
1200
|
label: string;
|
|
@@ -1287,11 +1291,11 @@ interface ColorInputProps extends OverlayTriggerProps, StylingProps, Pick<ColorF
|
|
|
1287
1291
|
renderTriggerButton?: (options: {
|
|
1288
1292
|
isOpen: boolean;
|
|
1289
1293
|
color: Color | null;
|
|
1290
|
-
ref:
|
|
1294
|
+
ref: React__default.RefObject<HTMLButtonElement>;
|
|
1291
1295
|
colorName?: string | boolean;
|
|
1292
1296
|
triggerProps: AriaButtonProps<"button">;
|
|
1293
1297
|
labelId?: string;
|
|
1294
|
-
}) =>
|
|
1298
|
+
}) => React__default.ReactElement;
|
|
1295
1299
|
/**
|
|
1296
1300
|
* Handler that is called when the user stops dragging or clicking on the
|
|
1297
1301
|
* color picker. In case of presets, this is called when the user clicks on a
|
|
@@ -1308,12 +1312,12 @@ interface IconColorInputProps extends StylingProps, Omit<ColorInputProps, "rende
|
|
|
1308
1312
|
variant?: "compact" | "standard";
|
|
1309
1313
|
}
|
|
1310
1314
|
|
|
1311
|
-
declare const ColorInput:
|
|
1315
|
+
declare const ColorInput: React__default.ForwardRefExoticComponent<ColorInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1312
1316
|
|
|
1313
|
-
declare const IconColorInputButton:
|
|
1314
|
-
icon:
|
|
1317
|
+
declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "children" | "color" | "labelPosition"> & {
|
|
1318
|
+
icon: React__default.FC<IconProps>;
|
|
1315
1319
|
color?: string | null | undefined;
|
|
1316
|
-
} &
|
|
1320
|
+
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1317
1321
|
interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "className" | "style">, StylingProps, Pick<ColorInputProps, "colorLabel"> {
|
|
1318
1322
|
isOpen: boolean;
|
|
1319
1323
|
"aria-label"?: string;
|
|
@@ -1322,19 +1326,19 @@ interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "class
|
|
|
1322
1326
|
colorName?: string | boolean;
|
|
1323
1327
|
}
|
|
1324
1328
|
|
|
1325
|
-
declare const IconColorInput:
|
|
1329
|
+
declare const IconColorInput: React__default.ForwardRefExoticComponent<IconColorInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1326
1330
|
|
|
1327
1331
|
interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
|
|
1328
1332
|
/** The className applicable to the SVG canvas. */
|
|
1329
1333
|
canvasClassName?: string;
|
|
1330
1334
|
/** The style applicable to the SVG canvas. */
|
|
1331
|
-
canvasStyle?:
|
|
1335
|
+
canvasStyle?: React__default.CSSProperties;
|
|
1332
1336
|
/** The ref for the canvas. */
|
|
1333
|
-
canvasRef?:
|
|
1337
|
+
canvasRef?: React__default.RefObject<HTMLDivElement>;
|
|
1334
1338
|
/** The className applicable to the footer. */
|
|
1335
1339
|
footerClassName?: string;
|
|
1336
1340
|
/** The style applicable to the footer. */
|
|
1337
|
-
footerStyle?:
|
|
1341
|
+
footerStyle?: React__default.CSSProperties;
|
|
1338
1342
|
/**
|
|
1339
1343
|
* How much to soften the stroke's edges.
|
|
1340
1344
|
*
|
|
@@ -1438,9 +1442,9 @@ declare type FreehandCanvasLine = FreehandCanvasPoint[];
|
|
|
1438
1442
|
/** A point in the freehand canvas. The pressure is optional. */
|
|
1439
1443
|
declare type FreehandCanvasPoint = [x: number, y: number, pressure?: number];
|
|
1440
1444
|
|
|
1441
|
-
declare const FreehandCanvas:
|
|
1445
|
+
declare const FreehandCanvas: React__default.ForwardRefExoticComponent<FreehandCanvasProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1442
1446
|
|
|
1443
|
-
declare type TextProps<T extends keyof
|
|
1447
|
+
declare type TextProps<T extends keyof React__default.JSX.IntrinsicElements = "span"> = StylingProps & React__default.ComponentProps<T> & {
|
|
1444
1448
|
/**
|
|
1445
1449
|
* The type of text to render.
|
|
1446
1450
|
*
|
|
@@ -1454,26 +1458,26 @@ declare type TextProps<T extends keyof React.JSX.IntrinsicElements = "span"> = S
|
|
|
1454
1458
|
*/
|
|
1455
1459
|
size?: "sm" | "md" | "lg";
|
|
1456
1460
|
/** The text to render. Can be a string or a number. */
|
|
1457
|
-
children:
|
|
1461
|
+
children: React__default.ReactNode;
|
|
1458
1462
|
/**
|
|
1459
1463
|
* The HTML element to render.
|
|
1460
1464
|
*
|
|
1461
1465
|
* @default "span"
|
|
1462
1466
|
*/
|
|
1463
|
-
elementType?:
|
|
1467
|
+
elementType?: React__default.ElementType;
|
|
1464
1468
|
};
|
|
1465
1469
|
|
|
1466
|
-
declare const Text:
|
|
1470
|
+
declare const Text: React__default.ForwardRefExoticComponent<Omit<TextProps<"span">, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1467
1471
|
|
|
1468
1472
|
interface TransformProps {
|
|
1469
1473
|
/** The `className` property assigned to the root element of the component. */
|
|
1470
1474
|
className?: string;
|
|
1471
1475
|
/** The `style` property assigned to the root element of the component. */
|
|
1472
|
-
style?:
|
|
1476
|
+
style?: React__default.CSSProperties;
|
|
1473
1477
|
/** The children to render. */
|
|
1474
1478
|
children: (options: {
|
|
1475
|
-
style:
|
|
1476
|
-
}) =>
|
|
1479
|
+
style: React__default.CSSProperties;
|
|
1480
|
+
}) => React__default.ReactNode;
|
|
1477
1481
|
/** Whether the transform is draggable. */
|
|
1478
1482
|
isDraggable?: boolean;
|
|
1479
1483
|
/** Whether the transform is resizable. */
|
|
@@ -1509,7 +1513,7 @@ interface TransformProps {
|
|
|
1509
1513
|
/** A callback that will be called when the target is snapped. */
|
|
1510
1514
|
onSnap?: (e: OnSnap) => void;
|
|
1511
1515
|
/** A callback that will be called when the child is double clicked. */
|
|
1512
|
-
onDoubleClick?: (e:
|
|
1516
|
+
onDoubleClick?: (e: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1513
1517
|
/** A list of selectors relative to which the guidelines will be rendered. */
|
|
1514
1518
|
elementGuidelines?: string[];
|
|
1515
1519
|
/**
|
|
@@ -1544,9 +1548,9 @@ interface TransformProps {
|
|
|
1544
1548
|
/** Whether the transform should be updated automatically. */
|
|
1545
1549
|
autoUpdate?: boolean;
|
|
1546
1550
|
/** The element ref, selector or element to which the transform will be bound. */
|
|
1547
|
-
bound?:
|
|
1551
|
+
bound?: React__default.RefObject<HTMLElement> | string | HTMLElement;
|
|
1548
1552
|
/** The element ref, selector or element that is it's scrollable ancestor. */
|
|
1549
|
-
scrollableAncestor?:
|
|
1553
|
+
scrollableAncestor?: React__default.RefObject<HTMLElement> | string | HTMLElement;
|
|
1550
1554
|
/**
|
|
1551
1555
|
* Whether to prevent bubbling of events like mousedown, touchstart, etc.
|
|
1552
1556
|
*
|
|
@@ -1567,7 +1571,7 @@ interface TransformProps {
|
|
|
1567
1571
|
transformOrigin?: (string | number)[] | string;
|
|
1568
1572
|
}
|
|
1569
1573
|
|
|
1570
|
-
declare const Transform:
|
|
1574
|
+
declare const Transform: React__default.ForwardRefExoticComponent<TransformProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1571
1575
|
|
|
1572
1576
|
interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "variant">, Omit<DropOptions, "ref" | "getDropOperation" | "hasDropButton" | "getDropOperationForPoint">, Omit<ClipboardProps, "getItems" | "onCut" | "onCopy">, Pick<FreehandCanvasProps, "footerClassName" | "footerStyle" | "placeholder" | "clearLabel">, AriaLabelingProps {
|
|
1573
1577
|
/**
|
|
@@ -1601,14 +1605,14 @@ interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "vari
|
|
|
1601
1605
|
/** The class name to apply to the picker button. */
|
|
1602
1606
|
pickerButtonClassName?: string;
|
|
1603
1607
|
/** The style to apply to the picker button. */
|
|
1604
|
-
pickerButtonStyle?:
|
|
1608
|
+
pickerButtonStyle?: React__default.CSSProperties;
|
|
1605
1609
|
/** The class name to apply to the label. */
|
|
1606
1610
|
labelClassName?: string;
|
|
1607
1611
|
/** The style to apply to the label. */
|
|
1608
|
-
labelStyle?:
|
|
1612
|
+
labelStyle?: React__default.CSSProperties;
|
|
1609
1613
|
}
|
|
1610
1614
|
|
|
1611
|
-
declare const ImageDropZone:
|
|
1615
|
+
declare const ImageDropZone: React__default.ForwardRefExoticComponent<ImageDropZoneProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1612
1616
|
|
|
1613
1617
|
interface PreviewProps extends StylingProps, AriaLabelingProps {
|
|
1614
1618
|
/**
|
|
@@ -1626,13 +1630,13 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
|
|
|
1626
1630
|
/** The alt text for the image. */
|
|
1627
1631
|
imageAlt?: string;
|
|
1628
1632
|
/** The SVG to display in the preview. This can be a React element or a string. */
|
|
1629
|
-
svgSrc?: string |
|
|
1633
|
+
svgSrc?: string | React__default.ReactElement;
|
|
1630
1634
|
/** Whether the preview should be disabled or not. */
|
|
1631
1635
|
isDisabled?: boolean;
|
|
1632
1636
|
/** The text to display in the preview. */
|
|
1633
1637
|
textValue?: string;
|
|
1634
1638
|
/** The style of the text. */
|
|
1635
|
-
textStyle?:
|
|
1639
|
+
textStyle?: React__default.CSSProperties;
|
|
1636
1640
|
/**
|
|
1637
1641
|
* This is fired when the `actionButtons` are not passed and you trigger a
|
|
1638
1642
|
* `click` event on the preview. In case you have passed `actionButtons`, this
|
|
@@ -1665,7 +1669,7 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
|
|
|
1665
1669
|
accent?: "theme" | "positive";
|
|
1666
1670
|
}
|
|
1667
1671
|
|
|
1668
|
-
declare const Preview:
|
|
1672
|
+
declare const Preview: React__default.ForwardRefExoticComponent<PreviewProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1669
1673
|
|
|
1670
1674
|
interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "description" | "errorMessage" | "isRequired" | "isInvalid" | "validate" | "validationBehavior" | "validationState"> {
|
|
1671
1675
|
/**
|
|
@@ -1712,11 +1716,11 @@ interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "descr
|
|
|
1712
1716
|
isDisabled: boolean;
|
|
1713
1717
|
optionLabelPosition: "start" | "end";
|
|
1714
1718
|
isReadOnly?: boolean;
|
|
1715
|
-
}) =>
|
|
1719
|
+
}) => React__default.ReactNode;
|
|
1716
1720
|
/** The class name for the group container. */
|
|
1717
1721
|
optionsContainerClassName?: string;
|
|
1718
1722
|
/** The style for the group container. */
|
|
1719
|
-
optionsContainerStyle?:
|
|
1723
|
+
optionsContainerStyle?: React__default.CSSProperties;
|
|
1720
1724
|
/** The ids of the items that are disabled. */
|
|
1721
1725
|
disabledValues?: string[];
|
|
1722
1726
|
/**
|
|
@@ -1728,21 +1732,21 @@ interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "descr
|
|
|
1728
1732
|
/** The className applicable to the label. */
|
|
1729
1733
|
optionClassName?: string;
|
|
1730
1734
|
/** The style applicable to the label. */
|
|
1731
|
-
optionStyle?:
|
|
1735
|
+
optionStyle?: React__default.CSSProperties;
|
|
1732
1736
|
}
|
|
1733
1737
|
|
|
1734
|
-
declare const RadioGroup:
|
|
1738
|
+
declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1735
1739
|
|
|
1736
1740
|
interface ModalProps extends OverlayTriggerProps {
|
|
1737
1741
|
/** The contents of the modal. */
|
|
1738
|
-
children:
|
|
1742
|
+
children: React__default.ReactNode;
|
|
1739
1743
|
}
|
|
1740
1744
|
interface ModalContentProps extends Omit<AriaModalOverlayProps, "isDismissable" | "isKeyboardDismissDisabled">, StylingProps {
|
|
1741
1745
|
/**
|
|
1742
1746
|
* The contents of the modal. Can be a React node or a function that returns a
|
|
1743
1747
|
* React node.
|
|
1744
1748
|
*/
|
|
1745
|
-
children:
|
|
1749
|
+
children: React__default.ReactNode | ((props: OverlayTriggerState) => React__default.ReactNode);
|
|
1746
1750
|
/**
|
|
1747
1751
|
* The container element for the modal. By default, the modal is rendered as a
|
|
1748
1752
|
* child of the body element.
|
|
@@ -1784,16 +1788,16 @@ interface ModalContentProps extends Omit<AriaModalOverlayProps, "isDismissable"
|
|
|
1784
1788
|
isKeyboardDismissDisabled?: boolean | ((isDrawer: boolean) => boolean);
|
|
1785
1789
|
}
|
|
1786
1790
|
|
|
1787
|
-
declare const Modal:
|
|
1791
|
+
declare const Modal: React__default.FC<ModalProps>;
|
|
1788
1792
|
|
|
1789
|
-
declare const ModalContent:
|
|
1793
|
+
declare const ModalContent: React__default.FC<ModalContentProps>;
|
|
1790
1794
|
|
|
1791
|
-
declare const ModalTrigger:
|
|
1792
|
-
children:
|
|
1795
|
+
declare const ModalTrigger: React__default.FC<{
|
|
1796
|
+
children: React__default.ReactNode;
|
|
1793
1797
|
}>;
|
|
1794
1798
|
|
|
1795
|
-
declare const ModalClose:
|
|
1796
|
-
children:
|
|
1799
|
+
declare const ModalClose: React__default.FC<{
|
|
1800
|
+
children: React__default.ReactNode;
|
|
1797
1801
|
}>;
|
|
1798
1802
|
|
|
1799
1803
|
interface MessageFormatProps {
|
|
@@ -1803,14 +1807,14 @@ interface MessageFormatProps {
|
|
|
1803
1807
|
* it with another React element (recommended), specify a different tagName
|
|
1804
1808
|
* (e.g., 'div')
|
|
1805
1809
|
*/
|
|
1806
|
-
elementType?:
|
|
1810
|
+
elementType?: React__default.ElementType | "div" | "span";
|
|
1807
1811
|
/** The id of the message to format. */
|
|
1808
1812
|
id: string;
|
|
1809
1813
|
/** The default message to use if the message id is not found. */
|
|
1810
1814
|
defaultMessage?: string;
|
|
1811
1815
|
}
|
|
1812
1816
|
|
|
1813
|
-
declare const MessageFormat:
|
|
1817
|
+
declare const MessageFormat: React__default.FC<MessageFormatProps>;
|
|
1814
1818
|
|
|
1815
1819
|
interface GroupProps extends StylingProps, AriaLabelingProps {
|
|
1816
1820
|
/**
|
|
@@ -1826,13 +1830,13 @@ interface GroupProps extends StylingProps, AriaLabelingProps {
|
|
|
1826
1830
|
/** Whether the group is disabled. */
|
|
1827
1831
|
isDisabled?: boolean;
|
|
1828
1832
|
/** The children to render. */
|
|
1829
|
-
children:
|
|
1833
|
+
children: React__default.ReactNode;
|
|
1830
1834
|
}
|
|
1831
1835
|
|
|
1832
|
-
declare const Group:
|
|
1836
|
+
declare const Group: React__default.ForwardRefExoticComponent<GroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1833
1837
|
|
|
1834
1838
|
declare type SprinkleProps = Parameters<Sprinkles>[0];
|
|
1835
|
-
interface BoxProps extends Pick<StylingProps, "data-block-id">, Omit<
|
|
1839
|
+
interface BoxProps extends Pick<StylingProps, "data-block-id">, Omit<React__default.ComponentPropsWithoutRef<"div">, "color">, SprinkleProps {
|
|
1836
1840
|
/**
|
|
1837
1841
|
* The HTML element to use for the box.
|
|
1838
1842
|
*
|
|
@@ -1841,11 +1845,11 @@ interface BoxProps extends Pick<StylingProps, "data-block-id">, Omit<React.Compo
|
|
|
1841
1845
|
elementType?: string;
|
|
1842
1846
|
}
|
|
1843
1847
|
|
|
1844
|
-
declare const Box:
|
|
1848
|
+
declare const Box: React__default.ForwardRefExoticComponent<BoxProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1845
1849
|
|
|
1846
1850
|
interface ToolbarProps extends StylingProps, AriaToolbarProps {
|
|
1847
1851
|
/** The children of the toolbar. */
|
|
1848
|
-
children:
|
|
1852
|
+
children: React__default.ReactNode;
|
|
1849
1853
|
/**
|
|
1850
1854
|
* Identifies the element (or elements) whose contents or presence are
|
|
1851
1855
|
* controlled by the current element.
|
|
@@ -1874,7 +1878,7 @@ interface ToolbarProps extends StylingProps, AriaToolbarProps {
|
|
|
1874
1878
|
onKeyDown?: KeyboardProps["onKeyDown"];
|
|
1875
1879
|
}
|
|
1876
1880
|
|
|
1877
|
-
declare const Toolbar:
|
|
1881
|
+
declare const Toolbar: React__default.ForwardRefExoticComponent<ToolbarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1878
1882
|
|
|
1879
1883
|
interface ToggleIconButtonProps extends Omit<StylingProps, "style" | "className">, Omit<ToggleProps, "children">, Omit<ToggleButtonProps, "size" | "iconStart" | "label" | "variant">, Pick<ActionIconButtonProps, "tooltip">, StylingWithUIState<{
|
|
1880
1884
|
isSelected?: boolean;
|
|
@@ -1892,15 +1896,15 @@ interface ToggleIconButtonProps extends Omit<StylingProps, "style" | "className"
|
|
|
1892
1896
|
* `selected` and `unselected` keys to display different icons based on the
|
|
1893
1897
|
* state of the button.
|
|
1894
1898
|
*/
|
|
1895
|
-
icon:
|
|
1896
|
-
selected:
|
|
1897
|
-
unselected:
|
|
1899
|
+
icon: React__default.FC<IconProps> | {
|
|
1900
|
+
selected: React__default.FC<IconProps>;
|
|
1901
|
+
unselected: React__default.FC<IconProps>;
|
|
1898
1902
|
};
|
|
1899
1903
|
/** Indicates whether focusing should be prevented on press. */
|
|
1900
1904
|
preventFocusOnPress?: boolean;
|
|
1901
1905
|
}
|
|
1902
1906
|
|
|
1903
|
-
declare const ToggleIconButton:
|
|
1907
|
+
declare const ToggleIconButton: React__default.ForwardRefExoticComponent<ToggleIconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1904
1908
|
|
|
1905
1909
|
interface MentionableUser {
|
|
1906
1910
|
id: string;
|
|
@@ -1969,7 +1973,7 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
|
|
|
1969
1973
|
*
|
|
1970
1974
|
* @default ArrowUpCircleFilledIcon
|
|
1971
1975
|
*/
|
|
1972
|
-
submitButtonIcon?:
|
|
1976
|
+
submitButtonIcon?: React__default.FC<IconProps>;
|
|
1973
1977
|
/**
|
|
1974
1978
|
* Optional property that represents the ARIA label for the cancel button.
|
|
1975
1979
|
*
|
|
@@ -2022,7 +2026,7 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
|
|
|
2022
2026
|
props: Omit<ToggleIconButtonProps, "size" | "variant">;
|
|
2023
2027
|
})[];
|
|
2024
2028
|
/** The imperative handle for manipulating editor. */
|
|
2025
|
-
editorHandle?:
|
|
2029
|
+
editorHandle?: React__default.RefObject<EditorHandle>;
|
|
2026
2030
|
/**
|
|
2027
2031
|
* Whether to clear the editor value when the editor is saved.
|
|
2028
2032
|
*
|
|
@@ -2049,7 +2053,7 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
|
|
|
2049
2053
|
saveOnEnter?: boolean;
|
|
2050
2054
|
}
|
|
2051
2055
|
|
|
2052
|
-
declare const Editor:
|
|
2056
|
+
declare const Editor: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<EditorProps & React__default.RefAttributes<HTMLDivElement>>>;
|
|
2053
2057
|
|
|
2054
2058
|
interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps, "label"> {
|
|
2055
2059
|
/**
|
|
@@ -2057,7 +2061,7 @@ interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps,
|
|
|
2057
2061
|
*
|
|
2058
2062
|
* @default document.body
|
|
2059
2063
|
*/
|
|
2060
|
-
scrollRef?:
|
|
2064
|
+
scrollRef?: React__default.RefObject<HTMLElement>;
|
|
2061
2065
|
/**
|
|
2062
2066
|
* Indicates whether the button should be hidden when the keyboard is being
|
|
2063
2067
|
* used.
|
|
@@ -2080,16 +2084,16 @@ interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps,
|
|
|
2080
2084
|
smoothScroll?: boolean;
|
|
2081
2085
|
}
|
|
2082
2086
|
|
|
2083
|
-
declare const ScrollControlButton:
|
|
2087
|
+
declare const ScrollControlButton: React__default.ForwardRefExoticComponent<ScrollControlButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2084
2088
|
|
|
2085
2089
|
interface TransitionProps extends StylingProps {
|
|
2086
2090
|
isMounted: boolean;
|
|
2087
2091
|
transitions: UseTransitionProps;
|
|
2088
|
-
elementType?: keyof
|
|
2089
|
-
children:
|
|
2092
|
+
elementType?: keyof React__default.ReactHTML;
|
|
2093
|
+
children: React__default.ReactNode;
|
|
2090
2094
|
}
|
|
2091
2095
|
|
|
2092
|
-
declare const Transition:
|
|
2096
|
+
declare const Transition: React__default.ForwardRefExoticComponent<TransitionProps & React__default.RefAttributes<HTMLElement>>;
|
|
2093
2097
|
|
|
2094
2098
|
interface AlertDialogProps extends StylingProps {
|
|
2095
2099
|
/**
|
|
@@ -2101,7 +2105,7 @@ interface AlertDialogProps extends StylingProps {
|
|
|
2101
2105
|
* The message of the dialog. This is the main content of the dialog and is
|
|
2102
2106
|
* displayed below the title.
|
|
2103
2107
|
*/
|
|
2104
|
-
message?:
|
|
2108
|
+
message?: React__default.ReactNode;
|
|
2105
2109
|
/**
|
|
2106
2110
|
* The label for the cancel button. This is the text that is displayed on the
|
|
2107
2111
|
* button that allows the user to cancel the dialog.
|
|
@@ -2135,7 +2139,7 @@ interface AlertDialogProps extends StylingProps {
|
|
|
2135
2139
|
* The icon that is displayed at the top of the dialog. This is typically used
|
|
2136
2140
|
* to display an icon that represents the type of alert that is being shown.
|
|
2137
2141
|
*/
|
|
2138
|
-
icon?:
|
|
2142
|
+
icon?: React__default.FC<IconProps>;
|
|
2139
2143
|
/** The color of the icon. This is the color that is used to fill the icon. */
|
|
2140
2144
|
iconColor?: string;
|
|
2141
2145
|
/**
|
|
@@ -2148,7 +2152,7 @@ interface AlertDialogProps extends StylingProps {
|
|
|
2148
2152
|
showCloseButton?: boolean;
|
|
2149
2153
|
}
|
|
2150
2154
|
|
|
2151
|
-
declare const AlertDialog:
|
|
2155
|
+
declare const AlertDialog: React__default.ForwardRefExoticComponent<AlertDialogProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2152
2156
|
|
|
2153
2157
|
interface MarkdownProps extends StylingProps {
|
|
2154
2158
|
/** The markdown to render. */
|
|
@@ -2157,7 +2161,7 @@ interface MarkdownProps extends StylingProps {
|
|
|
2157
2161
|
showCaret?: boolean;
|
|
2158
2162
|
}
|
|
2159
2163
|
|
|
2160
|
-
declare const Markdown:
|
|
2164
|
+
declare const Markdown: React__default.ForwardRefExoticComponent<MarkdownProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2161
2165
|
|
|
2162
2166
|
interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
|
|
2163
2167
|
/**
|
|
@@ -2185,7 +2189,7 @@ interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
|
|
|
2185
2189
|
size?: "sm" | "lg";
|
|
2186
2190
|
}
|
|
2187
2191
|
|
|
2188
|
-
declare const AudioPlayer:
|
|
2192
|
+
declare const AudioPlayer: React__default.ForwardRefExoticComponent<AudioPlayerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2189
2193
|
|
|
2190
2194
|
interface Item {
|
|
2191
2195
|
id: string;
|
|
@@ -2268,7 +2272,7 @@ interface ImageGalleryProps extends StylingProps, Omit<ListBoxProps, "items" | "
|
|
|
2268
2272
|
/** A callback that is called when an image is deleted. */
|
|
2269
2273
|
onDelete?: (keys: Selection$1) => void;
|
|
2270
2274
|
/** A callback that is called when a key is pressed. */
|
|
2271
|
-
onKeyDown?: (event:
|
|
2275
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLDivElement>) => void;
|
|
2272
2276
|
/** ClassName for each item container */
|
|
2273
2277
|
imageContainerClassName?: string;
|
|
2274
2278
|
/** ClassName for each item image */
|
|
@@ -2277,18 +2281,18 @@ interface ImageGalleryProps extends StylingProps, Omit<ListBoxProps, "items" | "
|
|
|
2277
2281
|
labelClassName?: string;
|
|
2278
2282
|
/** A callback that is called to render the image. */
|
|
2279
2283
|
renderImage?: (item: ListOption<Pick<Item, "alt" | "src">>, options: {
|
|
2280
|
-
deleteElement?:
|
|
2284
|
+
deleteElement?: React__default.ReactElement;
|
|
2281
2285
|
onDelete?: (id: string) => void;
|
|
2282
|
-
}) =>
|
|
2286
|
+
}) => React__default.ReactElement;
|
|
2283
2287
|
/** The dimensions of the grid. */
|
|
2284
|
-
imageContainerStyle?:
|
|
2288
|
+
imageContainerStyle?: React__default.CSSProperties;
|
|
2285
2289
|
/** The dimensions of the image. */
|
|
2286
2290
|
imageDimensions?: Dimension | ((item: Item, options: {
|
|
2287
2291
|
isSelected: boolean;
|
|
2288
2292
|
}) => Dimension);
|
|
2289
2293
|
}
|
|
2290
2294
|
|
|
2291
|
-
declare const ImageGallery:
|
|
2295
|
+
declare const ImageGallery: React__default.ForwardRefExoticComponent<ImageGalleryProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2292
2296
|
|
|
2293
2297
|
interface ButtonSelectProps extends StylingProps, Pick<SelectProps, "isDisabled" | "validationState" | "onSelectionChange" | "selectedKey" | "defaultSelectedKey" | "items" | "showSelectedIcon" | "isOpen" | "defaultOpen" | "triggerClassName" | "triggerStyle">, Pick<ToggleButtonProps, "onPress" | "isSelected" | "defaultSelected" | "excludeFromTabOrder">, AriaLabelingProps {
|
|
2294
2298
|
/**
|
|
@@ -2316,15 +2320,15 @@ interface ButtonSelectProps extends StylingProps, Pick<SelectProps, "isDisabled"
|
|
|
2316
2320
|
isSelected: boolean;
|
|
2317
2321
|
}) => string);
|
|
2318
2322
|
/** A function that is called to get the style for the option. */
|
|
2319
|
-
optionStyle?:
|
|
2323
|
+
optionStyle?: React__default.CSSProperties | ((item: ListOption, options: {
|
|
2320
2324
|
isButton: boolean;
|
|
2321
2325
|
isSelected: boolean;
|
|
2322
|
-
}) =>
|
|
2326
|
+
}) => React__default.CSSProperties);
|
|
2323
2327
|
/** Props for the tooltip. */
|
|
2324
2328
|
tooltipProps?: Omit<TooltipProps, "children"> | ((trigger: "button" | "select") => Omit<TooltipProps, "children">);
|
|
2325
2329
|
}
|
|
2326
2330
|
|
|
2327
|
-
declare const ButtonSelect:
|
|
2331
|
+
declare const ButtonSelect: React__default.ForwardRefExoticComponent<ButtonSelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2328
2332
|
|
|
2329
2333
|
interface ComboBoxProps extends StylingProps, Omit<AriaComboBoxOptions<ListItem>, "items" | "children" | "inputRef" | "popoverRef" | "listBoxRef" | "buttonRef" | "validationState" | "errorMessage" | "description">, Omit<AriaComboBoxProps<ListItem>, "items" | "children" | "errorMessage" | "description" | "validationState">, Omit<ListBoxProps, "autoFocus" | "onBlur" | "onFocus" | "onSelectionChange" | "selectionBehavior" | "selectionMode" | "selectedKeys" | "defaultSelectedKeys" | "renderDropIndicator" | "renderDragPreview" | "dropIndicatorClassName" | "dropIndicatorStyle" | keyof DragAndDropProps>, AriaValidationProps, Omit<ComboBoxStateOptions<ListItem>, "items" | "children" | "errorMessage" | "description" | "validationState" | "selectedKey">, InputMessage {
|
|
2330
2334
|
/** ID of the initially selected item */
|
|
@@ -2350,7 +2354,7 @@ interface ComboBoxProps extends StylingProps, Omit<AriaComboBoxOptions<ListItem>
|
|
|
2350
2354
|
/** Whether the input is read only. */
|
|
2351
2355
|
readOnly?: boolean;
|
|
2352
2356
|
/** The style object to apply to the input element */
|
|
2353
|
-
inputStyle?:
|
|
2357
|
+
inputStyle?: React__default.CSSProperties;
|
|
2354
2358
|
/** The class name to apply to the input element */
|
|
2355
2359
|
inputClassName?: string;
|
|
2356
2360
|
/** Optional label for the toggle button */
|
|
@@ -2365,7 +2369,7 @@ interface ComboBoxProps extends StylingProps, Omit<AriaComboBoxOptions<ListItem>
|
|
|
2365
2369
|
renderOption?: (item: Node$1<ListItem>, options: OptionAria & {
|
|
2366
2370
|
showSelectedIcon?: boolean;
|
|
2367
2371
|
_state: ListState<ListItem>;
|
|
2368
|
-
}, ref:
|
|
2372
|
+
}, ref: React__default.Ref<HTMLLIElement>) => React__default.ReactNode;
|
|
2369
2373
|
filterItems?: boolean;
|
|
2370
2374
|
onInputChange?: (value: string) => void;
|
|
2371
2375
|
showIcon?: boolean;
|
|
@@ -2417,7 +2421,7 @@ interface ComboBoxProps extends StylingProps, Omit<AriaComboBoxOptions<ListItem>
|
|
|
2417
2421
|
maxValue?: number;
|
|
2418
2422
|
}
|
|
2419
2423
|
|
|
2420
|
-
declare const ComboBox:
|
|
2424
|
+
declare const ComboBox: React__default.ForwardRefExoticComponent<ComboBoxProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2421
2425
|
|
|
2422
2426
|
interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, StylingProps, DOMProps, AriaLabelingProps {
|
|
2423
2427
|
/** Whether the swatch is focused by keyboard. */
|
|
@@ -2436,7 +2440,7 @@ interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, Styl
|
|
|
2436
2440
|
isDisabled?: boolean;
|
|
2437
2441
|
}
|
|
2438
2442
|
|
|
2439
|
-
declare const ColorSwatch:
|
|
2443
|
+
declare const ColorSwatch: React__default.ForwardRefExoticComponent<ColorSwatchProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2440
2444
|
|
|
2441
2445
|
interface GridListHandle {
|
|
2442
2446
|
/** Sets the selection manager focus state */
|
|
@@ -2496,7 +2500,7 @@ declare type GridListProps = Omit<StylingProps & ListProps<ListOption> & AriaGri
|
|
|
2496
2500
|
*/
|
|
2497
2501
|
renderGridItem: (item: Node$1<ListOption>, options: GridListItemAria & {
|
|
2498
2502
|
checkBoxProps?: CheckboxProps;
|
|
2499
|
-
}, ref:
|
|
2503
|
+
}, ref: React__default.Ref<HTMLLIElement>) => React__default.ReactElement;
|
|
2500
2504
|
/**
|
|
2501
2505
|
* Enables editing mode which disables keydown event capturing, useful
|
|
2502
2506
|
* when you may want the internal `GridList` from taking away focus from
|
|
@@ -2506,10 +2510,10 @@ declare type GridListProps = Omit<StylingProps & ListProps<ListOption> & AriaGri
|
|
|
2506
2510
|
*/
|
|
2507
2511
|
isEditing?: boolean;
|
|
2508
2512
|
/** Handle to access the gridlist imperative methods. */
|
|
2509
|
-
gridListHandle?:
|
|
2513
|
+
gridListHandle?: React__default.RefObject<GridListHandle>;
|
|
2510
2514
|
}, "children" | "suppressTextValueWarning" | "allowDuplicateSelectionEvents" | "linkBehavior" | "keyboardDelegate" | "isVirtualized" | "filter">;
|
|
2511
2515
|
|
|
2512
|
-
declare const GridList:
|
|
2516
|
+
declare const GridList: React__default.ForwardRefExoticComponent<GridListProps & React__default.RefAttributes<HTMLUListElement>>;
|
|
2513
2517
|
|
|
2514
2518
|
interface ActionGroupProps extends StylingProps, Omit<AriaActionGroupProps<ListItem>, "children"> {
|
|
2515
2519
|
/** The items to display in the action group. */
|
|
@@ -2541,11 +2545,13 @@ interface ActionGroupProps extends StylingProps, Omit<AriaActionGroupProps<ListI
|
|
|
2541
2545
|
renderActionItem?: (item: Node$2<ListItem>, options: {
|
|
2542
2546
|
isSelected?: boolean;
|
|
2543
2547
|
isDisabled?: boolean;
|
|
2544
|
-
}) =>
|
|
2548
|
+
}) => React__default.ReactNode;
|
|
2549
|
+
/** The icon visible at the start of the group. */
|
|
2550
|
+
icon?: React__default.FC<IconProps>;
|
|
2545
2551
|
}
|
|
2546
2552
|
|
|
2547
|
-
declare const ActionGroup:
|
|
2548
|
-
declare const ActionGroupItem:
|
|
2553
|
+
declare const ActionGroup: React__default.ForwardRefExoticComponent<ActionGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2554
|
+
declare const ActionGroupItem: React__default.FC<ActionGroupItemProps>;
|
|
2549
2555
|
interface ActionGroupItemProps extends Pick<ActionGroupProps, "tooltipProps" | "renderActionItem" | "onAction" | "isDisabled"> {
|
|
2550
2556
|
item: Node$2<ListItem>;
|
|
2551
2557
|
state: ListState<ListItem>;
|
|
@@ -2567,7 +2573,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
2567
2573
|
*/
|
|
2568
2574
|
items: ColorPreset[];
|
|
2569
2575
|
/** The icon visible at the start of the picker. */
|
|
2570
|
-
icon?:
|
|
2576
|
+
icon?: React__default.FC<IconProps>;
|
|
2571
2577
|
/**
|
|
2572
2578
|
* The value of the selected item. This is useful if you want to control the
|
|
2573
2579
|
* value of the picker.
|
|
@@ -2583,7 +2589,192 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
2583
2589
|
isDisabled?: boolean;
|
|
2584
2590
|
}
|
|
2585
2591
|
|
|
2586
|
-
declare const ColorSwatchPicker:
|
|
2592
|
+
declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2593
|
+
|
|
2594
|
+
interface TreeListItem extends ListOption {
|
|
2595
|
+
children?: TreeListItem[];
|
|
2596
|
+
}
|
|
2597
|
+
interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-describedby" | "aria-details">, Omit<TreeProps<TreeListItem>, "items" | "children" | "disabledKeys" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "collection" | "selectionMode"> {
|
|
2598
|
+
/**
|
|
2599
|
+
* The items to display in the tree view. Each item can be a leaf or a
|
|
2600
|
+
* section.
|
|
2601
|
+
*
|
|
2602
|
+
* @example
|
|
2603
|
+
* ```tsx
|
|
2604
|
+
* const treeItems = {
|
|
2605
|
+
* id: "root",
|
|
2606
|
+
* label: "Root item",
|
|
2607
|
+
* children: [
|
|
2608
|
+
* {
|
|
2609
|
+
* id: "documents",
|
|
2610
|
+
* label: "Documents",
|
|
2611
|
+
* icon: EllipseIcon,
|
|
2612
|
+
* children: [
|
|
2613
|
+
* {
|
|
2614
|
+
* id: "work",
|
|
2615
|
+
* icon: EllipseIcon,
|
|
2616
|
+
* label: "Work",
|
|
2617
|
+
* children: [
|
|
2618
|
+
* {
|
|
2619
|
+
* id: "project-a",
|
|
2620
|
+
* icon: EllipseIcon,
|
|
2621
|
+
* label: "Project A",
|
|
2622
|
+
* },
|
|
2623
|
+
* ],
|
|
2624
|
+
* },
|
|
2625
|
+
* {
|
|
2626
|
+
* id: "personal",
|
|
2627
|
+
* icon: EllipseIcon,
|
|
2628
|
+
* label: "Personal",
|
|
2629
|
+
* },
|
|
2630
|
+
* ],
|
|
2631
|
+
* },
|
|
2632
|
+
* {
|
|
2633
|
+
* id: "downloads",
|
|
2634
|
+
* icon: EllipseIcon,
|
|
2635
|
+
* label: "Downloads",
|
|
2636
|
+
* },
|
|
2637
|
+
* ],
|
|
2638
|
+
* };
|
|
2639
|
+
* ```;
|
|
2640
|
+
*/
|
|
2641
|
+
items: TreeListItem;
|
|
2642
|
+
/**
|
|
2643
|
+
* The id of the root item. If not provided, the id of the first item will be
|
|
2644
|
+
* used.
|
|
2645
|
+
*/
|
|
2646
|
+
rootId?: string;
|
|
2647
|
+
/** The callback function that is called when the item is collapsed. */
|
|
2648
|
+
onCollapse?: (key: Key) => void;
|
|
2649
|
+
/** The callback function that is called when the item is expanded. */
|
|
2650
|
+
onExpand?: (key: Key) => void;
|
|
2651
|
+
/**
|
|
2652
|
+
* The callback function that is called when the primary action is triggered.
|
|
2653
|
+
* If not provided, the primary action will not be shown.
|
|
2654
|
+
*/
|
|
2655
|
+
onPrimaryAction?: (key: Key) => void;
|
|
2656
|
+
/**
|
|
2657
|
+
* The callback function that is called when the secondary action is
|
|
2658
|
+
* triggered. If not provided, the secondary action will not be shown.
|
|
2659
|
+
*/
|
|
2660
|
+
onSecondaryAction?: (key: Key) => void;
|
|
2661
|
+
/** The icon to use for the primary action. */
|
|
2662
|
+
primaryActionIcon?: ToggleIconButtonProps["icon"];
|
|
2663
|
+
/** The icon to use for the secondary action. */
|
|
2664
|
+
secondaryActionIcon?: ToggleIconButtonProps["icon"];
|
|
2665
|
+
/** The aria label for the primary action. */
|
|
2666
|
+
primaryActionAriaLabel?: string | ((key: Key) => string);
|
|
2667
|
+
/** The aria label for the secondary action. */
|
|
2668
|
+
secondaryActionAriaLabel?: string | ((key: Key) => string);
|
|
2669
|
+
/**
|
|
2670
|
+
* The position of the actions.
|
|
2671
|
+
*
|
|
2672
|
+
* @default "end"
|
|
2673
|
+
*/
|
|
2674
|
+
actionsPosition?: "start" | "end";
|
|
2675
|
+
/**
|
|
2676
|
+
* The callback function that is called when the item is renamed. The rename
|
|
2677
|
+
* functionality is disabled if not provided.
|
|
2678
|
+
*/
|
|
2679
|
+
onRename?: (options: {
|
|
2680
|
+
key: Key;
|
|
2681
|
+
value: string;
|
|
2682
|
+
}) => void;
|
|
2683
|
+
/** The callback function that is called when the item is clicked. */
|
|
2684
|
+
onAction?: (key: Key) => void;
|
|
2685
|
+
/**
|
|
2686
|
+
* The callback function that is called to render the item title.
|
|
2687
|
+
*
|
|
2688
|
+
* @default item => item.label
|
|
2689
|
+
*/
|
|
2690
|
+
renderItemTitle?: (item: ReactComplexTreeItem) => ReactNode;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
declare type ReactComplexTreeItem = TreeItem<{
|
|
2694
|
+
label: string;
|
|
2695
|
+
description?: string;
|
|
2696
|
+
icon?: React__default.ElementType;
|
|
2697
|
+
posInset: number;
|
|
2698
|
+
setSize: number;
|
|
2699
|
+
[key: string]: unknown;
|
|
2700
|
+
}>;
|
|
2701
|
+
declare const TreeView: React__default.ForwardRefExoticComponent<TreeViewProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2702
|
+
|
|
2703
|
+
interface PanelProps extends StylingProps {
|
|
2704
|
+
/** Content */
|
|
2705
|
+
children: ReactNode;
|
|
2706
|
+
/**
|
|
2707
|
+
* Panel collapses to this size
|
|
2708
|
+
*
|
|
2709
|
+
* @default 0
|
|
2710
|
+
*/
|
|
2711
|
+
collapsedSize?: PanelProps$1["collapsedSize"];
|
|
2712
|
+
/**
|
|
2713
|
+
* Whether panel can be collapsed when resized beyond `minSize`
|
|
2714
|
+
*
|
|
2715
|
+
* @default false
|
|
2716
|
+
*/
|
|
2717
|
+
isCollapsible?: PanelProps$1["collapsible"];
|
|
2718
|
+
/** Initial size of the panel, accepts value between 0 - 100 */
|
|
2719
|
+
defaultSize?: PanelProps$1["defaultSize"];
|
|
2720
|
+
/**
|
|
2721
|
+
* Maximum allowed size for the panel, accepts value between 0 - 100
|
|
2722
|
+
*
|
|
2723
|
+
* @default 100
|
|
2724
|
+
*/
|
|
2725
|
+
maxSize?: PanelProps$1["maxSize"];
|
|
2726
|
+
/**
|
|
2727
|
+
* Minimum allowed size for the panel, accepts value between 0 - 100
|
|
2728
|
+
*
|
|
2729
|
+
* @default 10
|
|
2730
|
+
*/
|
|
2731
|
+
minSize?: PanelProps$1["minSize"];
|
|
2732
|
+
/** Called with current panel size on resize */
|
|
2733
|
+
onResize?: PanelProps$1["onResize"];
|
|
2734
|
+
/**
|
|
2735
|
+
* Provide a value in case of conditional rendering to ensure panels are
|
|
2736
|
+
* correctly added back
|
|
2737
|
+
*/
|
|
2738
|
+
order?: PanelProps$1["order"];
|
|
2739
|
+
}
|
|
2740
|
+
interface PanelGroupProps extends StylingProps {
|
|
2741
|
+
/** Content comprising `Panel` and `PanelResizeHandle` */
|
|
2742
|
+
children: ReactNode;
|
|
2743
|
+
/** Orientation of the layout */
|
|
2744
|
+
direction: PanelGroupProps$1["direction"];
|
|
2745
|
+
/** Called with current panel sizes when group layout changes */
|
|
2746
|
+
onLayout?: PanelGroupProps$1["onLayout"];
|
|
2747
|
+
/**
|
|
2748
|
+
* When passed, automatically persists layouts, should be unique amongst other
|
|
2749
|
+
* `PanelGroup`
|
|
2750
|
+
*/
|
|
2751
|
+
autoSaveId?: PanelGroupProps$1["autoSaveId"];
|
|
2752
|
+
}
|
|
2753
|
+
interface PanelResizeHandleProps extends StylingProps {
|
|
2754
|
+
/**
|
|
2755
|
+
* Disables resizing
|
|
2756
|
+
*
|
|
2757
|
+
* @default false
|
|
2758
|
+
*/
|
|
2759
|
+
isDisabled?: PanelResizeHandleProps$1["disabled"];
|
|
2760
|
+
}
|
|
2761
|
+
interface PanelResizeHandleProps extends StylingProps {
|
|
2762
|
+
}
|
|
2763
|
+
interface ImperativePanelGroupHandle {
|
|
2764
|
+
setLayout?: ImperativePanelGroupHandle$1["setLayout"];
|
|
2765
|
+
}
|
|
2766
|
+
interface ImperativePanelHandle {
|
|
2767
|
+
resize?: ImperativePanelHandle$1["resize"];
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<ImperativePanelHandle>>;
|
|
2771
|
+
|
|
2772
|
+
declare const PanelGroup: React.ForwardRefExoticComponent<PanelGroupProps & React.RefAttributes<ImperativePanelGroupHandle>>;
|
|
2773
|
+
|
|
2774
|
+
declare const PanelResizeHandle: {
|
|
2775
|
+
({ className, isDisabled, ...props }: PanelResizeHandleProps): react_jsx_runtime.JSX.Element;
|
|
2776
|
+
displayName: string;
|
|
2777
|
+
};
|
|
2587
2778
|
|
|
2588
2779
|
/**
|
|
2589
2780
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
@@ -2621,9 +2812,9 @@ declare const ColorSwatchPicker: React.ForwardRefExoticComponent<ColorSwatchPick
|
|
|
2621
2812
|
*/
|
|
2622
2813
|
declare function useIntersectionObserver({ ref, onIntersect, isDisabled, threshold, rootMargin, root, }: IntersectionObserverOptions): void;
|
|
2623
2814
|
interface IntersectionObserverOptions {
|
|
2624
|
-
ref:
|
|
2815
|
+
ref: React__default.RefObject<HTMLElement>;
|
|
2625
2816
|
onIntersect: (entry: IntersectionObserverEntry) => void;
|
|
2626
|
-
root?:
|
|
2817
|
+
root?: React__default.RefObject<HTMLElement>;
|
|
2627
2818
|
rootMargin?: string;
|
|
2628
2819
|
threshold?: number;
|
|
2629
2820
|
isDisabled?: boolean;
|
|
@@ -2662,7 +2853,7 @@ declare function useResizeObserver({ ref, onResize, isDisabled, }: ResizeObserve
|
|
|
2662
2853
|
} | undefined;
|
|
2663
2854
|
};
|
|
2664
2855
|
interface ResizeObserverOptions {
|
|
2665
|
-
ref:
|
|
2856
|
+
ref: React__default.RefObject<HTMLElement>;
|
|
2666
2857
|
onResize?: (entry: ResizeObserverEntry) => void;
|
|
2667
2858
|
isDisabled?: boolean;
|
|
2668
2859
|
}
|
|
@@ -2876,7 +3067,7 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<
|
|
|
2876
3067
|
*/
|
|
2877
3068
|
declare function useTextSelection({ ref, onSelectionChange, onSelectionEnd, isDisabled, }: TextSelectionProps): void;
|
|
2878
3069
|
interface TextSelectionProps {
|
|
2879
|
-
ref:
|
|
3070
|
+
ref: React__default.RefObject<HTMLElement>;
|
|
2880
3071
|
onSelectionChange: (selection: Selection) => void;
|
|
2881
3072
|
onSelectionEnd?: (selection: Selection) => void;
|
|
2882
3073
|
isDisabled?: boolean;
|
|
@@ -2915,4 +3106,4 @@ declare type Device = ReturnType<typeof useDevice>;
|
|
|
2915
3106
|
*/
|
|
2916
3107
|
declare function usePortalContainer(_portalContainer?: HTMLElement): HTMLElement | undefined;
|
|
2917
3108
|
|
|
2918
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, GridList, type GridListHandle, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, Transition, type TransitionProps, defineMessages, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
3109
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, GridList, type GridListHandle, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Panel, PanelGroup, type PanelGroupProps, type PanelProps, PanelResizeHandle, type PanelResizeHandleProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, type ReactComplexTreeItem, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, Transition, type TransitionProps, TreeView, type TreeViewProps, defineMessages, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|