@baseline-ui/core 0.14.0 → 0.16.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.ts CHANGED
@@ -10,8 +10,9 @@ import { AriaTabListProps } from '@react-types/tabs';
10
10
  import { ColorFieldProps, Color } from '@react-stately/color';
11
11
  import { OnRender, OnRenderStart, OnDragStart, OnDrag, OnDragEnd, OnResizeStart, OnResize, OnResizeEnd, OnRotateStart, OnRotate, OnRotateEnd, OnSnap, RotationPosition } from 'react-moveable';
12
12
  import { AriaToolbarProps } from '@react-aria/toolbar';
13
+ import { UseTransitionProps } from '@react-spring/core';
13
14
 
14
- type DragAndDropProps = Omit<DraggableCollectionStateOptions & DraggableCollectionOptions & DroppableCollectionOptions & DroppableCollectionStateOptions, "keyboardDelegate" | "dropTargetDelegate" | "shouldAcceptItemDrop" | "onDropEnter" | "onDropActivate" | "onDropExit" | "getDropOperation" | "collection" | "selectionManager" | "onRootDrop" | "onInsert" | "getAllowedDropOperations" | "getItems" | "onItemDrop"> & Partial<Pick<DraggableCollectionStateOptions, "getItems">> & {
15
+ declare type DragAndDropProps = Omit<DraggableCollectionStateOptions & DraggableCollectionOptions & DroppableCollectionOptions & DroppableCollectionStateOptions, "keyboardDelegate" | "dropTargetDelegate" | "shouldAcceptItemDrop" | "onDropEnter" | "onDropActivate" | "onDropExit" | "getDropOperation" | "collection" | "selectionManager" | "onRootDrop" | "onInsert" | "getAllowedDropOperations" | "getItems" | "onItemDrop"> & Partial<Pick<DraggableCollectionStateOptions, "getItems">> & {
15
16
  /**
16
17
  * Indicates whether reordering is enabled.
17
18
  *
@@ -34,21 +35,19 @@ type DragAndDropProps = Omit<DraggableCollectionStateOptions & DraggableCollecti
34
35
  };
35
36
 
36
37
  interface BlockProps {
37
- /**
38
- * The unique identifier for the block. This is used to identify the block in
39
- * the DOM and in the block map. It is added as a data attribute
40
- * `data-block-id` to the root element of the block if a DOM node is
41
- * rendered.
42
- */
43
- "data-block-id"?: Key;
38
+ /**
39
+ * The unique identifier for the block. This is used to identify the block in
40
+ * the DOM and in the block map. It is added as a data attribute
41
+ * `data-block-id` to the root element of the block if a DOM node is
42
+ * rendered.
43
+ */
44
+ "data-block-id"?: Key;
44
45
  }
45
-
46
46
  interface StylingProps extends BlockProps {
47
- /** The className applied to the root element of the component. */
48
- className?: string;
49
-
50
- /** The style applied to the root element of the component. */
51
- style?: React.CSSProperties;
47
+ /** The className applied to the root element of the component. */
48
+ className?: string;
49
+ /** The style applied to the root element of the component. */
50
+ style?: React.CSSProperties;
52
51
  }
53
52
 
54
53
  interface ListOption {
@@ -70,7 +69,7 @@ interface ListSection {
70
69
  type: "section";
71
70
  children: ListOption[];
72
71
  }
73
- type ListItem = ListOption | ListSection;
72
+ declare type ListItem = ListOption | ListSection;
74
73
  interface ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListItem> & AriaListBoxOptions<ListItem>, "children" | "linkBehavior" | "isVirtualized" | "keyboardDelegate">, Omit<DragAndDropProps, "preview" | "enableReorder" | "orientation" | "layout">, Partial<Pick<DragAndDropProps, "enableReorder" | "orientation" | "layout">> {
75
74
  /**
76
75
  * The items to render in the listbox. Items have the following shape:
@@ -264,7 +263,21 @@ declare function useUserPreferences(ownerWindow?: Window & typeof globalThis): {
264
263
  transparency: boolean;
265
264
  };
266
265
 
267
- type OverlayTriggerProps_ = Parameters<typeof useOverlayTrigger>[0];
266
+ interface PortalContainerProviderProps {
267
+ /**
268
+ * The container element for the popover. By default, the modal is rendered as
269
+ * a child of the body element.
270
+ *
271
+ * @default undefined
272
+ */
273
+ portalContainer: HTMLElement | undefined;
274
+ /** The children to render. */
275
+ children: React.ReactNode;
276
+ }
277
+
278
+ declare const PortalContainerProvider: React.FC<PortalContainerProviderProps>;
279
+
280
+ declare type OverlayTriggerProps_ = Parameters<typeof useOverlayTrigger>[0];
268
281
  interface PopoverProps extends OverlayTriggerProps, OverlayTriggerProps_ {
269
282
  /** The children of the popover. */
270
283
  children: React.ReactNode | ((state: OverlayTriggerState) => React.ReactNode);
@@ -279,6 +292,19 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
279
292
  underlayClassName?: string;
280
293
  /** The contents of the popover. */
281
294
  children: React.ReactNode;
295
+ /**
296
+ * The container element for the popover. By default, the modal is rendered as
297
+ * a child of the body element.
298
+ *
299
+ * @default document.body
300
+ */
301
+ portalContainer?: HTMLElement;
302
+ /**
303
+ * Whether to include an arrow on the popover.
304
+ *
305
+ * @default false
306
+ */
307
+ includeArrow?: boolean;
282
308
  }
283
309
  interface PopoverTriggerProps {
284
310
  /** The contents of the popover trigger. */
@@ -295,14 +321,14 @@ declare const PopoverTrigger: React.FC;
295
321
 
296
322
  declare const Popover: React.FC<PopoverProps>;
297
323
 
298
- type MenuOption = Omit<ListOption, "description"> & {
324
+ declare type MenuOption = Omit<ListOption, "description"> & {
299
325
  keyboardShortcut?: string;
300
326
  };
301
- type MenuSection = Omit<ListSection, "children"> & {
327
+ declare type MenuSection = Omit<ListSection, "children"> & {
302
328
  children: MenuOption[];
303
329
  };
304
- type MenuItem = MenuOption | MenuSection;
305
- type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset">;
330
+ declare type MenuItem = MenuOption | MenuSection;
331
+ declare type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset" | "portalContainer">;
306
332
  interface MenuProps extends MenuPopoverProps, MenuTriggerProps, Omit<AriaMenuProps<MenuItem>, "children">, Omit<AriaMenuTriggerProps, "type"> {
307
333
  /** The `className` property assigned to the root element of the component. */
308
334
  className?: string;
@@ -515,6 +541,13 @@ interface TooltipProps extends TooltipTriggerProps, AriaTooltipProps, Omit<AriaP
515
541
  * @default true
516
542
  */
517
543
  includeArrow?: boolean;
544
+ /**
545
+ * The container element for the modal. By default, the modal is rendered as a
546
+ * child of the body element.
547
+ *
548
+ * @default document.body
549
+ */
550
+ portalContainer?: HTMLElement;
518
551
  }
519
552
 
520
553
  declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
@@ -590,7 +623,7 @@ interface CheckboxProps extends Omit<AriaCheckboxProps, "children" | "validation
590
623
 
591
624
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
592
625
 
593
- type Excluded = "isDisabled" | "isReadOnly" | "isRequired" | "locale" | "validationState" | "label" | "formatOptions" | "isInvalid" | "validationBehaviour" | "validate" | "description" | "errorMessage";
626
+ declare type Excluded = "isDisabled" | "isReadOnly" | "isRequired" | "locale" | "validationState" | "label" | "formatOptions" | "isInvalid" | "validationBehaviour" | "validate" | "description" | "errorMessage";
594
627
  interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<NumberFieldStateOptions, Excluded>, StylingProps {
595
628
  /** The largest value allowed for the input. */
596
629
  maxValue: number;
@@ -619,14 +652,14 @@ interface I18nProviderProps extends I18nProviderProps$1 {
619
652
 
620
653
  declare const I18nProvider: React.FC<I18nProviderProps>;
621
654
 
622
- type NumberFormatProps = Parameters<typeof useNumberFormatter>[0] & {
655
+ declare type NumberFormatProps = Parameters<typeof useNumberFormatter>[0] & {
623
656
  /** The number to format. */
624
657
  value: number;
625
658
  };
626
659
 
627
660
  declare const NumberFormat: React.FC<NumberFormatProps>;
628
661
 
629
- type DateFormatProps = Parameters<typeof useDateFormatter>[0] & {
662
+ declare type DateFormatProps = Parameters<typeof useDateFormatter>[0] & {
630
663
  /** The date to format. */
631
664
  date: Date;
632
665
  };
@@ -786,7 +819,7 @@ interface AvatarProps extends StylingProps {
786
819
 
787
820
  declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
788
821
 
789
- type ItemProps = React.ComponentProps<typeof Item$1> & StylingProps & {
822
+ declare type ItemProps = React.ComponentProps<typeof Item$1> & StylingProps & {
790
823
  key?: Key;
791
824
  icon?: React.FC<SVGRProps>;
792
825
  value?: string;
@@ -794,7 +827,7 @@ type ItemProps = React.ComponentProps<typeof Item$1> & StylingProps & {
794
827
  titleClassName?: string;
795
828
  titleStyle?: React.CSSProperties;
796
829
  };
797
- type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation" | "children" | "items" | "selectedKey" | "defaultSelectedKey" | "disabledKeys"> & {
830
+ declare type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation" | "children" | "items" | "selectedKey" | "defaultSelectedKey" | "disabledKeys"> & {
798
831
  /**
799
832
  * The `TabItem` components to render inside the `Tabs` component.
800
833
  *
@@ -831,7 +864,7 @@ type TabsProps = Omit<StylingProps & AriaTabListProps<ItemProps>, "orientation"
831
864
  /** The style to apply to the tab header container. */
832
865
  tabHeaderStyle?: React.CSSProperties;
833
866
  };
834
- type TabItemProps = StylingProps & {
867
+ declare type TabItemProps = StylingProps & {
835
868
  /** The title of the tab. This will be displayed in the tab button. */
836
869
  title: string;
837
870
  /** The icon to display in front of the title. */
@@ -954,7 +987,7 @@ interface ColorPreset {
954
987
  label: string;
955
988
  color: string;
956
989
  }
957
- interface ColorInputProps extends OverlayTriggerProps, StylingProps, Pick<ColorFieldProps, "onChange" | "defaultValue" | "value" | "label" | "isDisabled">, Pick<AriaLabelingProps, "aria-label">, Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset"> {
990
+ interface ColorInputProps extends OverlayTriggerProps, StylingProps, Pick<ColorFieldProps, "onChange" | "defaultValue" | "value" | "label" | "isDisabled">, Pick<AriaLabelingProps, "aria-label">, Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset" | "portalContainer"> {
958
991
  /**
959
992
  * The list of color presets to show in the color picker. The signature of the
960
993
  * color presets is:
@@ -1185,7 +1218,7 @@ interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
1185
1218
 
1186
1219
  declare const FreehandCanvas: React.ForwardRefExoticComponent<FreehandCanvasProps & React.RefAttributes<HTMLDivElement>>;
1187
1220
 
1188
- type TextProps<T extends keyof React.JSX.IntrinsicElements = "span"> = StylingProps & React.ComponentProps<T> & {
1221
+ declare type TextProps<T extends keyof React.JSX.IntrinsicElements = "span"> = StylingProps & React.ComponentProps<T> & {
1189
1222
  /**
1190
1223
  * The type of text to render.
1191
1224
  *
@@ -1208,7 +1241,7 @@ type TextProps<T extends keyof React.JSX.IntrinsicElements = "span"> = StylingPr
1208
1241
  elementType?: React.ElementType;
1209
1242
  };
1210
1243
 
1211
- declare const Text: React.ForwardRefExoticComponent<Pick<TextProps, "children" | "autoFocus" | "onFocus" | "onBlur" | "id" | "aria-label" | "aria-labelledby" | "aria-describedby" | "aria-details" | "onDrop" | "onDragStart" | "onDragEnd" | "className" | "style" | "data-block-id" | "type" | "color" | "size" | "content" | "translate" | "hidden" | "elementType" | "role" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "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-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "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-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" | "onFocusCapture" | "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" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "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"> & React.RefAttributes<HTMLDivElement>>;
1244
+ declare const Text: React.ForwardRefExoticComponent<Pick<TextProps<"span">, "className" | "style" | "children" | "autoFocus" | "onFocus" | "onBlur" | "id" | "aria-label" | "aria-labelledby" | "aria-describedby" | "aria-details" | "onDrop" | "onDragStart" | "onDragEnd" | "data-block-id" | "type" | "color" | "size" | "content" | "translate" | "hidden" | "elementType" | "role" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "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-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "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-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" | "onFocusCapture" | "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" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "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"> & React.RefAttributes<HTMLDivElement>>;
1212
1245
 
1213
1246
  interface TransformProps {
1214
1247
  /** The `className` property assigned to the root element of the component. */
@@ -1572,7 +1605,7 @@ interface GroupProps extends StylingProps, AriaLabelingProps {
1572
1605
 
1573
1606
  declare const Group: React.ForwardRefExoticComponent<GroupProps & React.RefAttributes<HTMLDivElement>>;
1574
1607
 
1575
- type SprinkleProps = Parameters<Sprinkles>[0];
1608
+ declare type SprinkleProps = Parameters<Sprinkles>[0];
1576
1609
  interface BoxProps extends Pick<StylingProps, "data-block-id">, Omit<React.ComponentPropsWithoutRef<"div">, "color">, SprinkleProps {
1577
1610
  /**
1578
1611
  * The HTML element to use for the box.
@@ -1819,6 +1852,8 @@ declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogProps & Re
1819
1852
  interface MarkdownProps extends StylingProps {
1820
1853
  /** The markdown to render. */
1821
1854
  children: string;
1855
+ /** The flag to show the caret at the end */
1856
+ showCaret?: boolean;
1822
1857
  }
1823
1858
 
1824
1859
  declare const Markdown: React.ForwardRefExoticComponent<MarkdownProps & React.RefAttributes<HTMLDivElement>>;
@@ -1870,6 +1905,15 @@ interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
1870
1905
 
1871
1906
  declare const AudioPlayer: React.ForwardRefExoticComponent<AudioPlayerProps & React.RefAttributes<HTMLDivElement>>;
1872
1907
 
1908
+ interface TransitionProps extends StylingProps {
1909
+ isMounted: boolean;
1910
+ transitions: UseTransitionProps;
1911
+ elementType?: keyof React.ReactHTML;
1912
+ children: React.ReactNode;
1913
+ }
1914
+
1915
+ declare const Transition: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLElement>>;
1916
+
1873
1917
  /**
1874
1918
  * A hook that creates an IntersectionObserver and observes a target element.
1875
1919
  *
@@ -2092,11 +2136,11 @@ declare function useIsFirstRender(): boolean;
2092
2136
  */
2093
2137
  declare function useI18n<T extends Record<string, string>>(messages?: Record<string, T>): I18nResult<T>;
2094
2138
  interface I18nResult<T extends LocalizedStrings[keyof LocalizedStrings]> {
2095
- formatMessage: (id: keyof T | MessageDescriptor<T>, values?: Record<string, any>) => string;
2139
+ formatMessage: (id: keyof T | MessageDescriptor, values?: Record<string, any>) => string;
2096
2140
  locale: Locale;
2097
2141
  }
2098
- interface MessageDescriptor<T extends LocalizedStrings[keyof LocalizedStrings]> {
2099
- id: keyof T;
2142
+ interface MessageDescriptor {
2143
+ id: string;
2100
2144
  defaultMessage?: string;
2101
2145
  }
2102
2146
  /**
@@ -2106,7 +2150,7 @@ interface MessageDescriptor<T extends LocalizedStrings[keyof LocalizedStrings]>
2106
2150
  * @returns An object containing the message descriptors with their keys as
2107
2151
  * property names.
2108
2152
  */
2109
- declare const defineMessages: <const T extends Record<string, {
2153
+ declare const defineMessages: <T extends Record<string, {
2110
2154
  id: string;
2111
2155
  }>>(messages: T) => T;
2112
2156
 
@@ -2131,7 +2175,7 @@ declare const defineMessages: <const T extends Record<string, {
2131
2175
  */
2132
2176
  declare function useMutationObserver(target: Element | null, options: MutationObserverInit, callback: MutationCallback): MutationObserver | null;
2133
2177
 
2134
- type SetValue<T> = Dispatch<SetStateAction<T>>;
2178
+ declare type SetValue<T> = Dispatch<SetStateAction<T>>;
2135
2179
  /**
2136
2180
  * A hook to persist a value to localStorage.
2137
2181
  *
@@ -2200,4 +2244,16 @@ interface TextSelectionProps {
2200
2244
  */
2201
2245
  declare function useDevice(element?: Element | null | undefined): "tablet" | "desktop" | "mobile";
2202
2246
 
2203
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, 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, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, 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, defineMessages, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
2247
+ /**
2248
+ * Custom hook for accessing PortalContainerProviderContext. This hook allows
2249
+ * components to either use a specified portal container or fallback to a
2250
+ * default provided via context.
2251
+ *
2252
+ * @param _portalContainer - An optional HTML element that can be specified as
2253
+ * an override.
2254
+ * @returns The portal container element where components should be rendered,
2255
+ * either the overridden container, one from context or undefined.
2256
+ */
2257
+ declare function usePortalContainer(_portalContainer?: HTMLElement): HTMLElement | undefined;
2258
+
2259
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, 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, 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, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };