@baseline-ui/core 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import React$1, { Key } from 'react';
1
+ import React, { Key } from 'react';
2
2
  import { IconProps, SVGRProps } from '@baseline-ui/icons';
3
3
  import * as react_aria from 'react-aria';
4
- import { AriaButtonProps, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaPopoverProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, AriaTooltipProps, AriaPositionProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaListBoxOptions, AriaListBoxProps, OptionAria, AriaSelectOptions, AriaDialogProps, DropOptions, ClipboardProps, AriaRadioGroupProps, AriaModalOverlayProps, Locale } from 'react-aria';
4
+ import { AriaButtonProps, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaPopoverProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, AriaTooltipProps, AriaPositionProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaListBoxOptions, AriaListBoxProps, OptionAria, AriaSelectOptions, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, Locale } from 'react-aria';
5
5
  export { I18nProviderProps, useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
6
6
  import { SliderStateOptions, ToggleProps, MenuTriggerProps, TooltipTriggerProps, NumberFieldStateOptions, ListProps, Orientation, SelectStateOptions, Item as Item$2, OverlayTriggerProps } from 'react-stately';
7
7
  import { Theme, Sprinkles } from '@baseline-ui/tokens';
@@ -19,16 +19,10 @@ interface StylingProps extends BlockProps {
19
19
  className?: string;
20
20
 
21
21
  /** The style applied to the root element of the component. */
22
- style?: React$1.CSSProperties;
22
+ style?: React.CSSProperties;
23
23
  }
24
24
 
25
- interface ActionButtonSharedProps extends Omit<AriaButtonProps<"button" | "div">, "onKeyUp" | "rel" | "href" | "target">, StylingProps {
26
- /**
27
- * Handler that is called when the element receives or loses focus.
28
- *
29
- * @param isHovered
30
- */
31
- onHoverChange?: (isHovered: boolean) => void;
25
+ interface ActionButtonSharedProps extends Omit<AriaButtonProps<"button" | "div">, "onKeyUp" | "rel" | "href" | "target" | "children">, StylingProps {
32
26
  }
33
27
  interface ActionButtonProps extends ActionButtonSharedProps {
34
28
  /**
@@ -38,11 +32,11 @@ interface ActionButtonProps extends ActionButtonSharedProps {
38
32
  */
39
33
  variant?: "primary" | "secondary" | "tertiary" | "ghost";
40
34
  /** The button's label. */
41
- label: string;
35
+ label: React.ReactNode;
42
36
  /** The button's icon before the label. */
43
- iconStart?: React$1.FC<IconProps>;
37
+ iconStart?: React.FC<IconProps>;
44
38
  /** The button's icon after the label. */
45
- iconEnd?: React$1.FC<IconProps>;
39
+ iconEnd?: React.FC<IconProps>;
46
40
  /**
47
41
  * The button's size.
48
42
  *
@@ -51,7 +45,7 @@ interface ActionButtonProps extends ActionButtonSharedProps {
51
45
  size?: "sm" | "md";
52
46
  }
53
47
 
54
- declare const ActionButton: React$1.ForwardRefExoticComponent<ActionButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
48
+ declare const ActionButton: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
55
49
 
56
50
  interface DomNodeRendererProps {
57
51
  /** The class name applied to the wrapper `div` component. */
@@ -65,7 +59,7 @@ interface DomNodeRendererProps {
65
59
  node: Node;
66
60
  }
67
61
 
68
- declare const DomNodeRenderer: React$1.ForwardRefExoticComponent<DomNodeRendererProps & React$1.RefAttributes<HTMLDivElement>>;
62
+ declare const DomNodeRenderer: React.ForwardRefExoticComponent<DomNodeRendererProps & React.RefAttributes<HTMLDivElement>>;
69
63
 
70
64
  interface SliderProps extends AriaSliderProps<number>, Omit<SliderStateOptions<number>, "numberFormatter"> {
71
65
  /**
@@ -90,7 +84,7 @@ interface SliderProps extends AriaSliderProps<number>, Omit<SliderStateOptions<n
90
84
  includeNumberInput?: boolean;
91
85
  }
92
86
 
93
- declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLDivElement>>;
87
+ declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
94
88
 
95
89
  interface SwitchProps extends Omit<AriaSwitchProps, "children">, Omit<ToggleProps, "children">, StylingProps {
96
90
  /** The label to display next to the switch. */
@@ -104,7 +98,7 @@ interface SwitchProps extends Omit<AriaSwitchProps, "children">, Omit<ToggleProp
104
98
  };
105
99
  }
106
100
 
107
- declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLLabelElement>>;
101
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLLabelElement>>;
108
102
 
109
103
  interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState" | "label" | "aria-autocomplete" | "autoComplete" | "isRequired" | "aria-haspopup" | "isReadOnly" | "aria-activedescendant" | "type">, StylingProps {
110
104
  /**
@@ -123,7 +117,7 @@ interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState"
123
117
  "aria-label": string;
124
118
  }
125
119
 
126
- declare const SearchInput: React$1.ForwardRefExoticComponent<SearchInputProps & React$1.RefAttributes<HTMLDivElement>>;
120
+ declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLDivElement>>;
127
121
 
128
122
  interface ThemeProviderProps extends StylingProps {
129
123
  /**
@@ -135,7 +129,7 @@ interface ThemeProviderProps extends StylingProps {
135
129
  */
136
130
  theme?: Theme | "light" | "dark" | "system";
137
131
  /** The children to render. */
138
- children: React$1.ReactNode;
132
+ children: React.ReactNode;
139
133
  /**
140
134
  * A function that will be called when the theme changes from any of the child
141
135
  * components.
@@ -143,7 +137,7 @@ interface ThemeProviderProps extends StylingProps {
143
137
  setTheme?: (theme: Theme | "light" | "dark" | "system") => void;
144
138
  }
145
139
 
146
- declare const ThemeProvider: React$1.ForwardRefExoticComponent<ThemeProviderProps & React$1.RefAttributes<HTMLDivElement>>;
140
+ declare const ThemeProvider: React.ForwardRefExoticComponent<ThemeProviderProps & React.RefAttributes<HTMLDivElement>>;
147
141
 
148
142
  /**
149
143
  * A hook that returns the user preferences for color scheme, contrast, reduced
@@ -174,11 +168,11 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
174
168
  * The reference element for the popover position. By default, the popover is
175
169
  * positioned relative to the trigger element.
176
170
  */
177
- triggerRef?: React$1.RefObject<HTMLElement>;
171
+ triggerRef?: React.RefObject<HTMLElement>;
178
172
  /** The class name for the underlay element. */
179
173
  underlayClassName?: string;
180
174
  /** The contents of the popover. */
181
- children: React$1.ReactNode;
175
+ children: React.ReactNode;
182
176
  }
183
177
 
184
178
  type Item$1 = {
@@ -228,18 +222,18 @@ interface MenuProps extends MenuTriggerProps, MenuPopoverProps, Omit<AriaMenuPro
228
222
  items: ItemsUnion[];
229
223
  }
230
224
 
231
- declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLButtonElement>>;
225
+ declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLButtonElement>>;
232
226
 
233
227
  interface LinkProps extends AriaLinkOptions, StylingProps {
234
228
  /** The link's style variant. */
235
229
  variant?: "default" | "inline";
236
230
  /** The children to render. */
237
- children: React$1.ReactNode;
231
+ children: React.ReactNode;
238
232
  /** The size of the link. */
239
233
  size?: "sm" | "md" | "lg";
240
234
  }
241
235
 
242
- declare const Link: React$1.ForwardRefExoticComponent<LinkProps & React$1.RefAttributes<HTMLElement>>;
236
+ declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
243
237
 
244
238
  interface SharedFileUploadProps extends StylingProps {
245
239
  /** Whether the component is inlined. */
@@ -258,7 +252,7 @@ interface SharedFileUploadProps extends StylingProps {
258
252
  /** The name of the input. */
259
253
  name?: string;
260
254
  /** The callback function that is fired when the value changes. */
261
- onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
255
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
262
256
  /**
263
257
  * The callback function that is fired when the value changes and the value is
264
258
  * valid.
@@ -272,12 +266,12 @@ interface SharedFileUploadProps extends StylingProps {
272
266
  }
273
267
  interface FileUploadProps extends SharedFileUploadProps {
274
268
  /** The Icon to display. */
275
- icon?: React$1.FC<IconProps>;
269
+ icon?: React.FC<IconProps>;
276
270
  /** Whether to allow multiple files to be uploaded. */
277
271
  multiple?: boolean;
278
272
  }
279
273
 
280
- declare const FileUpload: React$1.ForwardRefExoticComponent<FileUploadProps & React$1.RefAttributes<HTMLLabelElement>>;
274
+ declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLLabelElement>>;
281
275
 
282
276
  interface SeparatorProps extends Omit<SeparatorProps$1, "elementType">, StylingProps {
283
277
  /**
@@ -288,7 +282,7 @@ interface SeparatorProps extends Omit<SeparatorProps$1, "elementType">, StylingP
288
282
  variant?: "primary" | "secondary";
289
283
  }
290
284
 
291
- declare const Separator: React$1.ForwardRefExoticComponent<SeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
285
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
292
286
 
293
287
  interface ProgressBarProps extends Omit<AriaProgressBarProps, "isIndeterminate"> {
294
288
  /** The `className` property assigned to the root element of the component. */
@@ -311,7 +305,7 @@ interface ProgressBarProps extends Omit<AriaProgressBarProps, "isIndeterminate">
311
305
  errorMessage?: string;
312
306
  }
313
307
 
314
- declare const ProgressBar: React$1.ForwardRefExoticComponent<ProgressBarProps & React$1.RefAttributes<HTMLDivElement>>;
308
+ declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
315
309
 
316
310
  interface InputMessage {
317
311
  /** The description to display below the input. */
@@ -339,29 +333,29 @@ interface TextInputProps extends Omit<AriaTextFieldProps, "validationState" | "i
339
333
  /** Whether the input is read only. */
340
334
  readOnly?: boolean;
341
335
  /** The style object to apply to the input element */
342
- inputStyle?: React$1.CSSProperties;
336
+ inputStyle?: React.CSSProperties;
343
337
  /** The class name to apply to the input element */
344
338
  inputClassName?: string;
345
339
  }
346
340
 
347
- declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<HTMLInputElement>>;
341
+ declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
348
342
 
349
- interface ReactionProps extends Omit<AriaSwitchProps & ToggleProps, "validationState" | "isRequired" | "children" | "isInvalid">, StylingProps {
343
+ interface ReactionProps extends Omit<AriaSwitchProps & ToggleProps, "validationState" | "isRequired" | "children" | "isInvalid" | "validationBehavior" | "validate" | "onKeyUp">, StylingProps {
350
344
  /** The size of the reaction. */
351
- size?: "small" | "medium";
345
+ size?: "sm" | "md";
352
346
  /** The number of reactions. */
353
347
  count: number;
354
348
  /** The icon to render. */
355
- icon?: React$1.FC<IconProps>;
349
+ icon?: React.FC<IconProps>;
356
350
  }
357
351
 
358
- declare const Reaction: React$1.ForwardRefExoticComponent<ReactionProps & React$1.RefAttributes<HTMLLabelElement>>;
352
+ declare const Reaction: React.ForwardRefExoticComponent<ReactionProps & React.RefAttributes<HTMLLabelElement>>;
359
353
 
360
354
  interface TooltipProps extends TooltipTriggerProps, AriaTooltipProps, Omit<AriaPositionProps, "overlayRef" | "targetRef" | "maxHeight" | "isOpen" | "arrowSize"> {
361
355
  /** The content of the tooltip. */
362
356
  text?: string;
363
357
  /** The tooltip trigger element. */
364
- children: React$1.ReactNode;
358
+ children: React.ReactNode;
365
359
  /**
366
360
  * The delay time for the tooltip to show up.
367
361
  *
@@ -376,14 +370,14 @@ interface TooltipProps extends TooltipTriggerProps, AriaTooltipProps, Omit<AriaP
376
370
  closeDelay?: number;
377
371
  }
378
372
 
379
- declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipProps & React$1.RefAttributes<HTMLDivElement>>;
373
+ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
380
374
 
381
375
  interface PortalProps extends OverlayProps {
382
376
  /** The `className` property assigned to the root element of the component. */
383
377
  className?: string;
384
378
  }
385
379
 
386
- declare const Portal: React$1.ForwardRefExoticComponent<PortalProps & React$1.RefAttributes<HTMLDivElement>>;
380
+ declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLDivElement>>;
387
381
 
388
382
  interface ProgressSpinnerProps extends Omit<AriaProgressBarProps, "value" | "isIndeterminate" | "formatOptions" | "maxValue" | "minValue" | "valueLabel">, StylingProps {
389
383
  /**
@@ -400,11 +394,11 @@ interface ProgressSpinnerProps extends Omit<AriaProgressBarProps, "value" | "isI
400
394
  variant?: "active" | "inactive" | "success" | "error";
401
395
  }
402
396
 
403
- declare const ProgressSpinner: React$1.ForwardRefExoticComponent<ProgressSpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
397
+ declare const ProgressSpinner: React.ForwardRefExoticComponent<ProgressSpinnerProps & React.RefAttributes<HTMLDivElement>>;
404
398
 
405
399
  interface ActionIconButtonProps extends ActionButtonSharedProps {
406
400
  /** The icon to display */
407
- icon: React$1.FC<IconProps>;
401
+ icon: React.FC<IconProps>;
408
402
  /**
409
403
  * The size of the icon button.
410
404
  *
@@ -419,13 +413,13 @@ interface ActionIconButtonProps extends ActionButtonSharedProps {
419
413
  variant?: "primary" | "secondary" | "tertiary";
420
414
  }
421
415
 
422
- declare const ActionIconButton: React$1.ForwardRefExoticComponent<ActionIconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
416
+ declare const ActionIconButton: React.ForwardRefExoticComponent<ActionIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
423
417
 
424
- interface ToggleButtonProps extends StylingProps, Omit<AriaToggleButtonProps, "type" | "elementType"> {
418
+ interface ToggleButtonProps extends StylingProps, Omit<AriaToggleButtonProps, "children"> {
425
419
  /** The text content of the button. */
426
- label: string;
420
+ label: React.ReactNode;
427
421
  /** The icon to display before the label. */
428
- iconStart?: React$1.FC<SVGRProps>;
422
+ iconStart?: React.FC<SVGRProps>;
429
423
  /**
430
424
  * In case the button is being used as a trigger for a popover, this prop will
431
425
  * determine the direction of caret in which the popover will be displayed.
@@ -441,7 +435,7 @@ interface ToggleButtonProps extends StylingProps, Omit<AriaToggleButtonProps, "t
441
435
  size?: "md" | "lg";
442
436
  }
443
437
 
444
- declare const ToggleButton: React$1.ForwardRefExoticComponent<ToggleButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
438
+ declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<HTMLButtonElement>>;
445
439
 
446
440
  interface CheckboxProps extends AriaCheckboxProps, Omit<ToggleProps, "children">, StylingProps {
447
441
  /** The checkbox's label. */
@@ -454,7 +448,7 @@ interface CheckboxProps extends AriaCheckboxProps, Omit<ToggleProps, "children">
454
448
  labelPosition?: "start" | "end";
455
449
  }
456
450
 
457
- declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLLabelElement>>;
451
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
458
452
 
459
453
  type Excluded = "isDisabled" | "isReadOnly" | "isRequired" | "locale" | "validationState" | "label" | "formatOptions" | "isInvalid";
460
454
  interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<NumberFieldStateOptions, Excluded>, StylingProps {
@@ -476,34 +470,34 @@ interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<Num
476
470
  size?: "xs" | "sm" | "md" | "lg";
477
471
  }
478
472
 
479
- declare const Pagination: React$1.ForwardRefExoticComponent<PaginationProps & React$1.RefAttributes<HTMLDivElement>>;
473
+ declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>;
480
474
 
481
475
  interface I18nProviderProps extends I18nProviderProps$1 {
482
476
  /** The messages to use for internationalization. */
483
477
  messages?: LocalizedStrings;
484
478
  }
485
479
 
486
- declare const I18nProvider: React$1.FC<I18nProviderProps>;
480
+ declare const I18nProvider: React.FC<I18nProviderProps>;
487
481
 
488
482
  type NumberFormatProps = Parameters<typeof useNumberFormatter>[0] & {
489
483
  /** The number to format. */
490
484
  value: number;
491
485
  };
492
486
 
493
- declare const NumberFormat: React$1.FC<NumberFormatProps>;
487
+ declare const NumberFormat: React.FC<NumberFormatProps>;
494
488
 
495
489
  type DateFormatProps = Parameters<typeof useDateFormatter>[0] & {
496
490
  /** The date to format. */
497
491
  date: Date;
498
492
  };
499
493
 
500
- declare const DateFormat: React$1.FC<DateFormatProps>;
494
+ declare const DateFormat: React.FC<DateFormatProps>;
501
495
 
502
496
  type Item = {
503
497
  id: string;
504
498
  label: string;
505
499
  variant?: "neutral" | "red" | "green" | "blue" | "high-contrast";
506
- icon?: React$1.FC<SVGRProps>;
500
+ icon?: React.FC<SVGRProps>;
507
501
  };
508
502
  interface TagGroupProps extends StylingProps, Omit<AriaTagGroupProps<Item>, "children" | "errorMessage" | "description">, Omit<ListProps<Item>, "children" | "collection" | "filter"> {
509
503
  /**
@@ -523,7 +517,7 @@ interface TagGroupProps extends StylingProps, Omit<AriaTagGroupProps<Item>, "chi
523
517
  "aria-label": string;
524
518
  }
525
519
 
526
- declare const TagGroup: React$1.ForwardRefExoticComponent<TagGroupProps & React$1.RefAttributes<HTMLDivElement>>;
520
+ declare const TagGroup: React.ForwardRefExoticComponent<TagGroupProps & React.RefAttributes<HTMLDivElement>>;
527
521
 
528
522
  interface AccordionProps extends StylingProps {
529
523
  /**
@@ -537,7 +531,7 @@ interface AccordionProps extends StylingProps {
537
531
  /** This callback is called when the expanded state of the accordion changes. */
538
532
  onChange?: (value: Set<Key>) => void;
539
533
  /** The children of the accordion. Each child should be an `AccordionItem`. */
540
- children: React$1.ReactNode;
534
+ children: React.ReactNode;
541
535
  /** The keys of the items that should be expanded by default. */
542
536
  defaultExpandedKeys?: Set<Key>;
543
537
  /**
@@ -582,7 +576,7 @@ interface AccordionItemProps extends StylingProps {
582
576
  */
583
577
  showActionsOnTriggerOnly?: boolean;
584
578
  /** The content of the accordion item. */
585
- children: React$1.ReactNode;
579
+ children: React.ReactNode;
586
580
  /** The key of the accordion item. */
587
581
  value: Key;
588
582
  /**
@@ -592,15 +586,15 @@ interface AccordionItemProps extends StylingProps {
592
586
  subLabel?: string;
593
587
  }
594
588
 
595
- declare const Accordion: React$1.ForwardRefExoticComponent<AccordionProps & React$1.RefAttributes<HTMLDivElement>>;
589
+ declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
596
590
 
597
- declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProps & React$1.RefAttributes<HTMLHeadingElement>>;
591
+ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLHeadingElement>>;
598
592
 
599
593
  type ListOption = {
600
594
  id: string;
601
595
  label: string;
602
596
  description?: string;
603
- icon?: React$1.FC<IconProps>;
597
+ icon?: React.FC<IconProps>;
604
598
  /**
605
599
  * The type of item.
606
600
  *
@@ -644,7 +638,7 @@ interface ListBoxProps extends StylingProps, AriaListBoxOptions<ListItem>, Omit<
644
638
  * @param options [OptionAria]()
645
639
  * @param ref React.RefObject<HTMLLIElement>
646
640
  */
647
- renderOption?: (item: Node$1<ListItem>, options: OptionAria, ref: React$1.RefObject<HTMLLIElement>) => React$1.ReactNode;
641
+ renderOption?: (item: Node$1<ListItem>, options: OptionAria, ref: React.RefObject<HTMLLIElement>) => React.ReactNode;
648
642
  /** Whether to show the selected checkmark icon. */
649
643
  showSelectedIcon?: boolean;
650
644
  /** The label for the listbox. */
@@ -687,9 +681,9 @@ interface SelectProps extends Omit<AriaSelectOptions<ListItem>, "validationState
687
681
  isReadOnly?: boolean;
688
682
  }
689
683
 
690
- declare const Select: React$1.ForwardRefExoticComponent<SelectProps & React$1.RefAttributes<HTMLDivElement>>;
684
+ declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
691
685
 
692
- declare const ListBox: React$1.ForwardRefExoticComponent<ListBoxProps & React$1.RefAttributes<HTMLUListElement>>;
686
+ declare const ListBox: React.ForwardRefExoticComponent<ListBoxProps & React.RefAttributes<HTMLUListElement>>;
693
687
 
694
688
  interface AvatarProps extends StylingProps {
695
689
  /**
@@ -702,7 +696,7 @@ interface AvatarProps extends StylingProps {
702
696
  * The icon to display. This icon has to be imported from the
703
697
  * `@baseline-ui/icons` package.
704
698
  */
705
- icon?: React$1.FC<SVGRProps>;
699
+ icon?: React.FC<SVGRProps>;
706
700
  /** The name of the user. */
707
701
  name: string;
708
702
  /** The URL of the image to display. */
@@ -720,11 +714,11 @@ interface AvatarProps extends StylingProps {
720
714
  hasNotifications?: boolean;
721
715
  }
722
716
 
723
- declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLSpanElement>>;
717
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
724
718
 
725
- type ItemProps = React$1.ComponentProps<typeof Item$2> & StylingProps & {
719
+ type ItemProps = React.ComponentProps<typeof Item$2> & StylingProps & {
726
720
  key?: Key;
727
- icon?: React$1.FC<SVGRProps>;
721
+ icon?: React.FC<SVGRProps>;
728
722
  value?: string;
729
723
  title?: string;
730
724
  };
@@ -743,7 +737,7 @@ type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation"
743
737
  * </Tabs>;
744
738
  * ```
745
739
  */
746
- children: React$1.ReactNode;
740
+ children: React.ReactNode;
747
741
  /**
748
742
  * The key of the tab that needs to be removed.
749
743
  *
@@ -763,30 +757,30 @@ type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation"
763
757
  /** The className to apply to the tab header container. */
764
758
  tabHeaderClassName?: string;
765
759
  /** The style to apply to the tab header container. */
766
- tabHeaderStyle?: React$1.CSSProperties;
760
+ tabHeaderStyle?: React.CSSProperties;
767
761
  };
768
762
  type TabItemProps = StylingProps & {
769
763
  /** The title of the tab. This will be displayed in the tab button. */
770
764
  title: string;
771
765
  /** The icon to display in front of the title. */
772
- icon?: React$1.FC<SVGRProps>;
766
+ icon?: React.FC<SVGRProps>;
773
767
  /** The value of the tab. This will be used to identify the tab. */
774
768
  value: string;
775
769
  };
776
770
 
777
- declare const Tabs: React$1.ForwardRefExoticComponent<Omit<StylingProps & react_aria.AriaTabListProps<ItemProps>, "children" | "orientation" | "items" | "disabledKeys" | "selectedKey" | "defaultSelectedKey"> & {
778
- children: React$1.ReactNode;
779
- onRemove?: ((key: React$1.Key) => void) | undefined;
771
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<StylingProps & react_aria.AriaTabListProps<ItemProps>, "children" | "orientation" | "items" | "disabledKeys" | "selectedKey" | "defaultSelectedKey"> & {
772
+ children: React.ReactNode;
773
+ onRemove?: ((key: React.Key) => void) | undefined;
780
774
  selectedValue?: string | undefined;
781
775
  defaultSelectedValue?: string | undefined;
782
- disabledValues?: Set<React$1.Key> | undefined;
776
+ disabledValues?: Set<React.Key> | undefined;
783
777
  actions?: Omit<ActionIconButtonProps, "size" | "variant">[] | undefined;
784
778
  variant?: "primary" | "ghost" | undefined;
785
779
  tabHeaderClassName?: string | undefined;
786
- tabHeaderStyle?: React$1.CSSProperties | undefined;
787
- } & React$1.RefAttributes<HTMLDivElement>>;
780
+ tabHeaderStyle?: React.CSSProperties | undefined;
781
+ } & React.RefAttributes<HTMLDivElement>>;
788
782
 
789
- declare const TabItem: React$1.FC<TabItemProps>;
783
+ declare const TabItem: React.FC<TabItemProps>;
790
784
 
791
785
  interface InlineAlertProps extends StylingProps {
792
786
  /**
@@ -826,7 +820,7 @@ interface InlineAlertProps extends StylingProps {
826
820
  size?: "sm" | "md";
827
821
  }
828
822
 
829
- declare const InlineAlert: React$1.ForwardRefExoticComponent<InlineAlertProps & React$1.RefAttributes<HTMLDivElement>>;
823
+ declare const InlineAlert: React.ForwardRefExoticComponent<InlineAlertProps & React.RefAttributes<HTMLDivElement>>;
830
824
 
831
825
  interface NumberInputProps extends StylingProps, Omit<AriaNumberFieldProps, "validationState" | "isRequired"> {
832
826
  /**
@@ -853,11 +847,11 @@ interface NumberInputProps extends StylingProps, Omit<AriaNumberFieldProps, "val
853
847
  errorMessage?: string;
854
848
  }
855
849
 
856
- declare const NumberInput: React$1.ForwardRefExoticComponent<NumberInputProps & React$1.RefAttributes<HTMLDivElement>>;
850
+ declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLDivElement>>;
857
851
 
858
852
  interface DialogProps extends AriaDialogProps, StylingProps {
859
853
  /** The children to render. */
860
- children: React$1.ReactNode;
854
+ children: React.ReactNode;
861
855
  /**
862
856
  * The size of the dialog. This defines the max width of the dialog.
863
857
  *
@@ -873,12 +867,12 @@ interface DialogProps extends AriaDialogProps, StylingProps {
873
867
  }
874
868
  interface DialogTitleProps extends StylingProps {
875
869
  /** The children to render. */
876
- children: React$1.ReactNode;
870
+ children: React.ReactNode;
877
871
  }
878
872
 
879
- declare const Dialog: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
873
+ declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
880
874
 
881
- declare const DialogTitle: React$1.ForwardRefExoticComponent<DialogTitleProps & React$1.RefAttributes<HTMLDivElement>>;
875
+ declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLDivElement>>;
882
876
 
883
877
  interface ColorPreset {
884
878
  label: string;
@@ -921,9 +915,9 @@ interface ColorInputProps extends OverlayTriggerProps, StylingProps, Pick<ColorF
921
915
  labelPosition?: "top" | "start";
922
916
  }
923
917
 
924
- declare const ColorInput: React$1.ForwardRefExoticComponent<ColorInputProps & React$1.RefAttributes<HTMLDivElement>>;
918
+ declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLDivElement>>;
925
919
 
926
- declare const ColorSwatch: React$1.FC<ColorSwatchProps>;
920
+ declare const ColorSwatch: React.FC<ColorSwatchProps>;
927
921
  interface ColorSwatchProps {
928
922
  color?: string;
929
923
  isFocusVisible?: boolean;
@@ -936,11 +930,11 @@ interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
936
930
  /** The className applicable to the SVG canvas. */
937
931
  canvasClassName?: string;
938
932
  /** The style applicable to the SVG canvas. */
939
- canvasStyle?: React$1.CSSProperties;
933
+ canvasStyle?: React.CSSProperties;
940
934
  /** The className applicable to the footer. */
941
935
  footerClassName?: string;
942
936
  /** The style applicable to the footer. */
943
- footerStyle?: React$1.CSSProperties;
937
+ footerStyle?: React.CSSProperties;
944
938
  /**
945
939
  * How much to soften the stroke's edges.
946
940
  *
@@ -1035,9 +1029,9 @@ interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
1035
1029
  description?: string;
1036
1030
  }
1037
1031
 
1038
- declare const FreehandCanvas: React$1.ForwardRefExoticComponent<FreehandCanvasProps & React$1.RefAttributes<HTMLDivElement>>;
1032
+ declare const FreehandCanvas: React.ForwardRefExoticComponent<FreehandCanvasProps & React.RefAttributes<HTMLDivElement>>;
1039
1033
 
1040
- type TextProps<T extends keyof React$1.JSX.IntrinsicElements = "span"> = StylingProps & React$1.ComponentProps<T> & {
1034
+ type TextProps<T extends keyof React.JSX.IntrinsicElements = "span"> = StylingProps & React.ComponentProps<T> & {
1041
1035
  /**
1042
1036
  * The type of text to render.
1043
1037
  *
@@ -1051,26 +1045,26 @@ type TextProps<T extends keyof React$1.JSX.IntrinsicElements = "span"> = Styling
1051
1045
  */
1052
1046
  size?: "sm" | "md" | "lg";
1053
1047
  /** The text to render. Can be a string or a number. */
1054
- children: React$1.ReactNode;
1048
+ children: React.ReactNode;
1055
1049
  /**
1056
1050
  * The HTML element to render.
1057
1051
  *
1058
1052
  * @default "span"
1059
1053
  */
1060
- elementType?: React$1.ElementType;
1054
+ elementType?: React.ElementType;
1061
1055
  };
1062
1056
 
1063
- declare const Text: React$1.ForwardRefExoticComponent<Pick<TextProps, "color" | "size" | "content" | "translate" | "hidden" | "style" | "children" | "elementType" | "className" | "data-blockid" | "slot" | "title" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React$1.RefAttributes<HTMLDivElement>>;
1057
+ declare const Text: React.ForwardRefExoticComponent<Pick<TextProps, "color" | "size" | "content" | "translate" | "hidden" | "style" | "onKeyUp" | "rel" | "children" | "autoFocus" | "onFocus" | "onBlur" | "onKeyDown" | "elementType" | "aria-expanded" | "aria-haspopup" | "aria-controls" | "aria-pressed" | "type" | "id" | "aria-label" | "aria-labelledby" | "aria-describedby" | "aria-details" | "slot" | "title" | "className" | "data-blockid" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLDivElement>>;
1064
1058
 
1065
1059
  type TransformProps = {
1066
1060
  /** The `className` property assigned to the root element of the component. */
1067
1061
  className?: string;
1068
1062
  /** The `style` property assigned to the root element of the component. */
1069
- style?: React$1.CSSProperties;
1063
+ style?: React.CSSProperties;
1070
1064
  /** The children to render. */
1071
1065
  children: (options: {
1072
- style: React$1.CSSProperties;
1073
- }) => React$1.ReactNode;
1066
+ style: React.CSSProperties;
1067
+ }) => React.ReactNode;
1074
1068
  /** Whether the transform is draggable. */
1075
1069
  isDraggable?: boolean;
1076
1070
  /** Whether the transform is resizable. */
@@ -1106,7 +1100,7 @@ type TransformProps = {
1106
1100
  /** A callback that will be called when the target is snapped. */
1107
1101
  onSnap?: (e: OnSnap) => void;
1108
1102
  /** A callback that will be called when the child is double clicked. */
1109
- onDoubleClick?: (e: React$1.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1103
+ onDoubleClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1110
1104
  /** A list of selectors relative to which the guidelines will be rendered. */
1111
1105
  elementGuidelines?: string[];
1112
1106
  /**
@@ -1141,9 +1135,9 @@ type TransformProps = {
1141
1135
  /** Whether the transform should be updated automatically. */
1142
1136
  autoUpdate?: boolean;
1143
1137
  /** The element ref, selector or element to which the transform will be bound. */
1144
- bound?: React$1.RefObject<HTMLElement> | string | HTMLElement;
1138
+ bound?: React.RefObject<HTMLElement> | string | HTMLElement;
1145
1139
  /** The element ref, selector or element that is it's scrollable ancestor. */
1146
- scrollableAncestor?: React$1.RefObject<HTMLElement> | string | HTMLElement;
1140
+ scrollableAncestor?: React.RefObject<HTMLElement> | string | HTMLElement;
1147
1141
  /**
1148
1142
  * Whether to prevent bubbling of events like mousedown, touchstart, etc.
1149
1143
  *
@@ -1164,7 +1158,7 @@ type TransformProps = {
1164
1158
  transformOrigin?: Array<string | number> | string | "";
1165
1159
  };
1166
1160
 
1167
- declare const Transform: React$1.ForwardRefExoticComponent<TransformProps & React$1.RefAttributes<HTMLDivElement>>;
1161
+ declare const Transform: React.ForwardRefExoticComponent<TransformProps & React.RefAttributes<HTMLDivElement>>;
1168
1162
 
1169
1163
  interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "variant">, Omit<DropOptions, "ref" | "getDropOperation" | "hasDropButton" | "getDropOperationForPoint">, Omit<ClipboardProps, "getItems" | "onCut" | "onCopy">, AriaLabelingProps {
1170
1164
  /**
@@ -1199,7 +1193,7 @@ interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "vari
1199
1193
  isInline?: boolean;
1200
1194
  }
1201
1195
 
1202
- declare const ImageDropZone: React$1.ForwardRefExoticComponent<ImageDropZoneProps & React$1.RefAttributes<HTMLLabelElement>>;
1196
+ declare const ImageDropZone: React.ForwardRefExoticComponent<ImageDropZoneProps & React.RefAttributes<HTMLLabelElement>>;
1203
1197
 
1204
1198
  interface PreviewProps extends StylingProps, AriaLabelingProps {
1205
1199
  /**
@@ -1217,7 +1211,7 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
1217
1211
  /** The alt text for the image. */
1218
1212
  imageAlt?: string;
1219
1213
  /** The SVG to display in the preview. This can be a React element or a string. */
1220
- svgSrc?: string | React$1.ReactElement;
1214
+ svgSrc?: string | React.ReactElement;
1221
1215
  /** Whether the preview should be disabled or not. */
1222
1216
  isDisabled?: boolean;
1223
1217
  /**
@@ -1229,10 +1223,16 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
1229
1223
  /** The text to display in the preview. */
1230
1224
  textValue?: string;
1231
1225
  /** The style of the text. */
1232
- textStyle?: React$1.CSSProperties;
1226
+ textStyle?: React.CSSProperties;
1227
+ /**
1228
+ * This is fired when the `actionButtons` are not passed and you trigger a
1229
+ * `click` event on the preview. In case you have passed `actionButtons`, this
1230
+ * is not fired as focus shifts to the action buttons.
1231
+ */
1232
+ onPress?: PressProps["onPress"];
1233
1233
  }
1234
1234
 
1235
- declare const Preview: React$1.ForwardRefExoticComponent<PreviewProps & React$1.RefAttributes<HTMLDivElement>>;
1235
+ declare const Preview: React.ForwardRefExoticComponent<PreviewProps & React.RefAttributes<HTMLDivElement>>;
1236
1236
 
1237
1237
  interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "description" | "errorMessage" | "isRequired"> {
1238
1238
  /**
@@ -1278,11 +1278,11 @@ interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "descr
1278
1278
  isHovered: boolean;
1279
1279
  isDisabled: boolean;
1280
1280
  optionLabelPosition: "start" | "end";
1281
- }) => React$1.ReactNode;
1281
+ }) => React.ReactNode;
1282
1282
  /** The class name for the group container. */
1283
1283
  groupContainerClassName?: string;
1284
1284
  /** The style for the group container. */
1285
- groupContainerStyle?: React$1.CSSProperties;
1285
+ groupContainerStyle?: React.CSSProperties;
1286
1286
  /** The ids of the items that are disabled. */
1287
1287
  disabledValues?: string[];
1288
1288
  /**
@@ -1294,26 +1294,26 @@ interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "descr
1294
1294
  /** The className applicable to the label. */
1295
1295
  labelClassName?: string;
1296
1296
  /** The style applicable to the label. */
1297
- labelStyle?: React$1.CSSProperties;
1297
+ labelStyle?: React.CSSProperties;
1298
1298
  }
1299
1299
 
1300
- declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
1300
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
1301
1301
 
1302
1302
  interface ModalProps extends OverlayTriggerProps {
1303
1303
  }
1304
1304
  interface ModalContentProps extends AriaModalOverlayProps, StylingProps {
1305
- children: React$1.ReactNode | ((props: {
1305
+ children: React.ReactNode | ((props: {
1306
1306
  close: () => void;
1307
- }) => React$1.ReactNode);
1307
+ }) => React.ReactNode);
1308
1308
  }
1309
1309
 
1310
- declare const Modal: React$1.FC<ModalProps>;
1310
+ declare const Modal: React.FC<ModalProps>;
1311
1311
 
1312
- declare const ModalContent: React$1.FC<ModalContentProps>;
1312
+ declare const ModalContent: React.FC<ModalContentProps>;
1313
1313
 
1314
- declare const ModalTrigger: React$1.FC;
1314
+ declare const ModalTrigger: React.FC;
1315
1315
 
1316
- declare const ModalClose: React$1.FC;
1316
+ declare const ModalClose: React.FC;
1317
1317
 
1318
1318
  interface MessageFormatProps {
1319
1319
  /**
@@ -1322,14 +1322,14 @@ interface MessageFormatProps {
1322
1322
  * it with another React element (recommended), specify a different tagName
1323
1323
  * (e.g., 'div')
1324
1324
  */
1325
- elementType?: React$1.ElementType | "div" | "span";
1325
+ elementType?: React.ElementType | "div" | "span";
1326
1326
  /** The id of the message to format. */
1327
1327
  id: string;
1328
1328
  /** The default message to use if the message id is not found. */
1329
1329
  defaultMessage?: string;
1330
1330
  }
1331
1331
 
1332
- declare const MessageFormat: React$1.FC<MessageFormatProps>;
1332
+ declare const MessageFormat: React.FC<MessageFormatProps>;
1333
1333
 
1334
1334
  interface GroupProps extends StylingProps, AriaLabelingProps {
1335
1335
  /**
@@ -1348,10 +1348,10 @@ interface GroupProps extends StylingProps, AriaLabelingProps {
1348
1348
  children: React.ReactNode;
1349
1349
  }
1350
1350
 
1351
- declare const Group: React$1.ForwardRefExoticComponent<GroupProps & React$1.RefAttributes<HTMLDivElement>>;
1351
+ declare const Group: React.ForwardRefExoticComponent<GroupProps & React.RefAttributes<HTMLDivElement>>;
1352
1352
 
1353
1353
  type SprinkleProps = Parameters<Sprinkles>[0];
1354
- interface BoxProps extends Pick<StylingProps, "data-blockid">, Omit<React$1.ComponentPropsWithoutRef<"div">, "color">, SprinkleProps {
1354
+ interface BoxProps extends Pick<StylingProps, "data-blockid">, Omit<React.ComponentPropsWithoutRef<"div">, "color">, SprinkleProps {
1355
1355
  /**
1356
1356
  * The HTML element to use for the box.
1357
1357
  *
@@ -1360,7 +1360,7 @@ interface BoxProps extends Pick<StylingProps, "data-blockid">, Omit<React$1.Comp
1360
1360
  elementType?: string;
1361
1361
  }
1362
1362
 
1363
- declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
1363
+ declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
1364
1364
 
1365
1365
  /**
1366
1366
  * A hook that creates an IntersectionObserver and observes a target element.
@@ -1398,9 +1398,9 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
1398
1398
  */
1399
1399
  declare function useIntersectionObserver({ ref, onIntersect, isDisabled, threshold, rootMargin, root, }: IntersectionObserverOptions): void;
1400
1400
  interface IntersectionObserverOptions {
1401
- ref: React$1.RefObject<HTMLElement>;
1401
+ ref: React.RefObject<HTMLElement>;
1402
1402
  onIntersect: (entry: IntersectionObserverEntry) => void;
1403
- root?: React$1.RefObject<HTMLElement>;
1403
+ root?: React.RefObject<HTMLElement>;
1404
1404
  rootMargin?: string;
1405
1405
  threshold?: number;
1406
1406
  isDisabled?: boolean;
@@ -1439,7 +1439,7 @@ declare function useResizeObserver({ ref, onResize, isDisabled, }: ResizeObserve
1439
1439
  } | undefined;
1440
1440
  };
1441
1441
  interface ResizeObserverOptions {
1442
- ref: React$1.RefObject<HTMLElement>;
1442
+ ref: React.RefObject<HTMLElement>;
1443
1443
  onResize?: (entry: ResizeObserverEntry) => void;
1444
1444
  isDisabled?: boolean;
1445
1445
  }
@@ -1672,7 +1672,7 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<
1672
1672
  */
1673
1673
  declare function useTextSelection({ ref, onSelectionChange, onSelectionEnd, isDisabled, }: TextSelectionProps): void;
1674
1674
  interface TextSelectionProps {
1675
- ref: React$1.RefObject<HTMLElement>;
1675
+ ref: React.RefObject<HTMLElement>;
1676
1676
  onSelectionChange: (selection: Selection) => void;
1677
1677
  onSelectionEnd?: (selection: Selection) => void;
1678
1678
  isDisabled?: boolean;