@baseline-ui/core 0.51.0 → 0.52.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.
@@ -9817,7 +9817,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
9817
9817
 
9818
9818
  ---
9819
9819
 
9820
- The following software may be included in this product: markdown-it (14.1.0)
9820
+ The following software may be included in this product: markdown-it (14.1.1)
9821
9821
  This software contains the following license and notice below:
9822
9822
 
9823
9823
  Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
package/dist/index.d.mts CHANGED
@@ -3070,6 +3070,12 @@ interface AriaMenuTriggerProps {
3070
3070
  trigger?: MenuTriggerType;
3071
3071
  }
3072
3072
 
3073
+ /**
3074
+ * Controls which axes the boundary element constrains when calculating overlay
3075
+ * position.
3076
+ */
3077
+ type BoundaryAxis = 'horizontal' | 'vertical' | 'both';
3078
+
3073
3079
  interface AriaPositionProps extends PositionProps {
3074
3080
  /**
3075
3081
  * Cross size of the overlay arrow in pixels.
@@ -3077,10 +3083,23 @@ interface AriaPositionProps extends PositionProps {
3077
3083
  */
3078
3084
  arrowSize?: number;
3079
3085
  /**
3080
- * Element that that serves as the positioning boundary.
3086
+ * Element that serves as the positioning boundary. The overlay is shifted or
3087
+ * flipped to stay within this element's bounds on the axes selected by
3088
+ * `boundaryAxis`. Pass `null` to disable all boundary constraints.
3081
3089
  * @default document.body
3082
3090
  */
3083
- boundaryElement?: Element;
3091
+ boundaryElement?: Element | null;
3092
+ /**
3093
+ * Controls which axes `boundaryElement` constrains.
3094
+ *
3095
+ * - `"both"` — constrains horizontal and vertical (default)
3096
+ * - `"horizontal"` — constrains only horizontal overflow
3097
+ * - `"vertical"` — constrains only vertical overflow
3098
+ *
3099
+ * Has no effect when `boundaryElement` is `null`.
3100
+ * @default "both"
3101
+ */
3102
+ boundaryAxis?: BoundaryAxis;
3084
3103
  /**
3085
3104
  * The ref for the element which the overlay positions itself with respect to.
3086
3105
  */
@@ -5448,7 +5467,7 @@ type ClassName$1 = string | ((state: {
5448
5467
  type Style = React__default.CSSProperties | ((state: {
5449
5468
  isOpen: boolean;
5450
5469
  }) => React__default.CSSProperties | undefined);
5451
- interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset" | "shouldCloseOnScroll">, Pick<OverlayProps, "shouldContainFocus" | "disableFocusManagement">, Pick<ModalContentProps, "disableAnimation">, BlockProps {
5470
+ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset" | "shouldCloseOnScroll" | "boundaryElement">, Pick<OverlayProps, "shouldContainFocus" | "disableFocusManagement">, Pick<ModalContentProps, "disableAnimation">, BlockProps {
5452
5471
  /** The class name for the popover element. */
5453
5472
  className?: ClassName$1;
5454
5473
  /** The style for the popover element. */
@@ -5505,6 +5524,29 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
5505
5524
  * trigger popover position recalculation.
5506
5525
  */
5507
5526
  elementHandle?: React__default.Ref<PopoverContentHandle>;
5527
+ /**
5528
+ * The element used as the boundary when calculating popover position. The
5529
+ * popover is shifted or flipped to stay within this element's bounds on the
5530
+ * axes specified by `boundaryAxis`.
5531
+ *
5532
+ * Pass `null` to disable all boundary constraints.
5533
+ *
5534
+ * @default document.body
5535
+ */
5536
+ boundaryElement?: Element | null;
5537
+ /**
5538
+ * Controls which axes the `boundaryElement` constrains. Has no effect when
5539
+ * `boundaryElement` is `null`.
5540
+ *
5541
+ * - `"both"` — constrains horizontal and vertical (default)
5542
+ * - `"horizontal"` — constrains only horizontal overflow; popover may overflow
5543
+ * vertically
5544
+ * - `"vertical"` — constrains only vertical overflow; popover may overflow
5545
+ * horizontally
5546
+ *
5547
+ * @default "both"
5548
+ */
5549
+ boundaryAxis?: BoundaryAxis;
5508
5550
  }
5509
5551
  interface PopoverTriggerProps {
5510
5552
  /** The contents of the popover trigger. */
@@ -5533,7 +5575,7 @@ type MenuSection = Omit<ListSection, "children"> & {
5533
5575
  children: MenuOption[];
5534
5576
  };
5535
5577
  type MenuItem = MenuOption | MenuSection;
5536
- type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset" | "portalContainer">;
5578
+ type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "boundaryAxis" | "crossOffset" | "offset" | "portalContainer">;
5537
5579
  interface MenuProps extends MenuPopoverProps, MenuTriggerProps, Omit<AriaMenuProps<MenuItem>, "children">, Omit<AriaMenuTriggerProps, "type"> {
5538
5580
  /** The `className` property assigned to the root element of the component. */
5539
5581
  className?: string;
@@ -6994,6 +7036,13 @@ interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "vari
6994
7036
  labelClassName?: string;
6995
7037
  /** The style to apply to the label. */
6996
7038
  labelStyle?: React__default.CSSProperties;
7039
+ /**
7040
+ * Maximum allowed file size in bytes. Files exceeding this limit will be
7041
+ * rejected.
7042
+ */
7043
+ maxFileSize?: number;
7044
+ /** Callback fired when a dropped/pasted/selected file exceeds `maxFileSize`. */
7045
+ onFileSizeError?: (file: File) => void;
6997
7046
  }
6998
7047
 
6999
7048
  declare const ImageDropZone: React__default.ForwardRefExoticComponent<ImageDropZoneProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -8083,6 +8132,12 @@ declare const TreeView: React__default.ForwardRefExoticComponent<TreeViewProps &
8083
8132
  interface PanelProps extends StylingProps {
8084
8133
  /** Content */
8085
8134
  children: ReactNode;
8135
+ /**
8136
+ * Unique identifier for the panel. Required for localStorage persistence when
8137
+ * using `PanelGroup` with `autoSaveId`. Must remain stable across page
8138
+ * loads.
8139
+ */
8140
+ id?: PanelProps$1["id"];
8086
8141
  /**
8087
8142
  * Panel collapses to this size
8088
8143
  *
@@ -8126,7 +8181,8 @@ interface PanelGroupProps extends StylingProps {
8126
8181
  onLayout?: PanelGroupProps$1["onLayout"];
8127
8182
  /**
8128
8183
  * When passed, automatically persists layouts, should be unique amongst other
8129
- * `PanelGroup`
8184
+ * `PanelGroup`. Each `Panel` should have a stable `id` prop for persistence
8185
+ * to work correctly.
8130
8186
  */
8131
8187
  autoSaveId?: PanelGroupProps$1["autoSaveId"];
8132
8188
  }
@@ -8715,11 +8771,12 @@ declare function useIsFirstRender(): boolean;
8715
8771
 
8716
8772
  /**
8717
8773
  * A hook that provides internationalization functionality. It returns a
8718
- * function to format messages and the current locale. The hook can be used with
8719
- * or without a messages object. If no messages object is provided, the hook
8720
- * will use the messages provided by the `I18nProvider`. If a messages object is
8721
- * provided, the hook will use those messages instead of the ones provided by
8722
- * the `I18nProvider`.
8774
+ * function to format messages and the current locale.
8775
+ *
8776
+ * When both a local `messages` object and provider messages (from
8777
+ * `I18nProvider`) are present, they are merged per locale: provider messages
8778
+ * win on key conflicts, while unmatched local keys are preserved. When only one
8779
+ * source is present the behavior is unchanged (backwards compatible).
8723
8780
  *
8724
8781
  * @example
8725
8782
  * ```tsx
@@ -8742,8 +8799,11 @@ declare function useIsFirstRender(): boolean;
8742
8799
  * ```;
8743
8800
  *
8744
8801
  * @template T - A type that represents the shape of the translation messages.
8745
- * @param {Object<string, T>} [messages] - An optional object containing
8746
- * translation messages for different languages.
8802
+ * @param messages - An optional object containing translation messages for
8803
+ * different locales. When provider messages (from `I18nProvider`) are also
8804
+ * present, local and provider messages are merged per locale — provider
8805
+ * values take precedence on key conflicts. If omitted, the hook reads
8806
+ * entirely from the provider.
8747
8807
  * @returns {I18nResult<T>} An object containing a function to format messages
8748
8808
  * and the current locale.
8749
8809
  */
@@ -8946,4 +9006,4 @@ declare namespace reactStately {
8946
9006
  export { type reactStately_Color as Color, type reactStately_ListData as ListData, type reactStately_TreeData as TreeData, reactStately_useListData as useListData, reactStately_useTreeData as useTreeData };
8947
9007
  }
8948
9008
 
8949
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, Actionable, type ActionableProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, Code, type CodeProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateField, type DateFieldProps, DateFormat, type DateFormatProps, DefaultListOption, type Device, DeviceProvider, DeviceProviderContext, type DeviceProviderProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, type DisclosureProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FocusScope, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridLayout, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nProviderProps, type I18nResult, Icon, IconColorInput, IconColorInputButton, type IconColorInputProps, type IconComponentProps$1 as IconComponentProps, type IconProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Kbd, type KbdProps, type Key, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle$1 as ListHandle, ListLayout, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, type MessageFormatter, 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, PointPicker, PointPickerContent, type PointPickerContentProps, PointPickerDisplay, type PointPickerDisplayProps, type PointPickerProps, Popover, PopoverContent, type PopoverContentHandle, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, type PressEvent, Pressable, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, type Rect, type SVGRProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Size, Slider, type SliderProps, StatusCard, type StatusCardProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, TableLayout, Tabs, type TabsProps, TagGroup, type TagGroupProps, TaggedPagination, type TaggedPaginationProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, type ToastProps, ToastQueue, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, type TreeListItem, TreeView, type TreeViewProps, UNSAFE_ListBox, type UNSAFE_ListBoxProps, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, type VirtualizerProps, VisuallyHidden, WaterfallLayout, announce, booleanOrObjectToConfig, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useDragAndDrop, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
9009
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, Actionable, type ActionableProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, type BlockProps, type BoundaryAxis, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, Code, type CodeProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateField, type DateFieldProps, DateFormat, type DateFormatProps, DefaultListOption, type Device, DeviceProvider, DeviceProviderContext, type DeviceProviderProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, type DisclosureProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FocusScope, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridLayout, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nProviderProps, type I18nResult, Icon, IconColorInput, IconColorInputButton, type IconColorInputProps, type IconComponentProps$1 as IconComponentProps, type IconProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Kbd, type KbdProps, type Key, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle$1 as ListHandle, ListLayout, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, type MessageFormatter, 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, PointPicker, PointPickerContent, type PointPickerContentProps, PointPickerDisplay, type PointPickerDisplayProps, type PointPickerProps, Popover, PopoverContent, type PopoverContentHandle, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, type PressEvent, Pressable, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, type Rect, type SVGRProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Size, Slider, type SliderProps, StatusCard, type StatusCardProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, TableLayout, Tabs, type TabsProps, TagGroup, type TagGroupProps, TaggedPagination, type TaggedPaginationProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, type ToastProps, ToastQueue, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, type TreeListItem, TreeView, type TreeViewProps, UNSAFE_ListBox, type UNSAFE_ListBoxProps, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, type VirtualizerProps, VisuallyHidden, WaterfallLayout, announce, booleanOrObjectToConfig, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useDragAndDrop, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
package/dist/index.d.ts CHANGED
@@ -3070,6 +3070,12 @@ interface AriaMenuTriggerProps {
3070
3070
  trigger?: MenuTriggerType;
3071
3071
  }
3072
3072
 
3073
+ /**
3074
+ * Controls which axes the boundary element constrains when calculating overlay
3075
+ * position.
3076
+ */
3077
+ type BoundaryAxis = 'horizontal' | 'vertical' | 'both';
3078
+
3073
3079
  interface AriaPositionProps extends PositionProps {
3074
3080
  /**
3075
3081
  * Cross size of the overlay arrow in pixels.
@@ -3077,10 +3083,23 @@ interface AriaPositionProps extends PositionProps {
3077
3083
  */
3078
3084
  arrowSize?: number;
3079
3085
  /**
3080
- * Element that that serves as the positioning boundary.
3086
+ * Element that serves as the positioning boundary. The overlay is shifted or
3087
+ * flipped to stay within this element's bounds on the axes selected by
3088
+ * `boundaryAxis`. Pass `null` to disable all boundary constraints.
3081
3089
  * @default document.body
3082
3090
  */
3083
- boundaryElement?: Element;
3091
+ boundaryElement?: Element | null;
3092
+ /**
3093
+ * Controls which axes `boundaryElement` constrains.
3094
+ *
3095
+ * - `"both"` — constrains horizontal and vertical (default)
3096
+ * - `"horizontal"` — constrains only horizontal overflow
3097
+ * - `"vertical"` — constrains only vertical overflow
3098
+ *
3099
+ * Has no effect when `boundaryElement` is `null`.
3100
+ * @default "both"
3101
+ */
3102
+ boundaryAxis?: BoundaryAxis;
3084
3103
  /**
3085
3104
  * The ref for the element which the overlay positions itself with respect to.
3086
3105
  */
@@ -5448,7 +5467,7 @@ type ClassName$1 = string | ((state: {
5448
5467
  type Style = React__default.CSSProperties | ((state: {
5449
5468
  isOpen: boolean;
5450
5469
  }) => React__default.CSSProperties | undefined);
5451
- interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset" | "shouldCloseOnScroll">, Pick<OverlayProps, "shouldContainFocus" | "disableFocusManagement">, Pick<ModalContentProps, "disableAnimation">, BlockProps {
5470
+ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset" | "shouldCloseOnScroll" | "boundaryElement">, Pick<OverlayProps, "shouldContainFocus" | "disableFocusManagement">, Pick<ModalContentProps, "disableAnimation">, BlockProps {
5452
5471
  /** The class name for the popover element. */
5453
5472
  className?: ClassName$1;
5454
5473
  /** The style for the popover element. */
@@ -5505,6 +5524,29 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
5505
5524
  * trigger popover position recalculation.
5506
5525
  */
5507
5526
  elementHandle?: React__default.Ref<PopoverContentHandle>;
5527
+ /**
5528
+ * The element used as the boundary when calculating popover position. The
5529
+ * popover is shifted or flipped to stay within this element's bounds on the
5530
+ * axes specified by `boundaryAxis`.
5531
+ *
5532
+ * Pass `null` to disable all boundary constraints.
5533
+ *
5534
+ * @default document.body
5535
+ */
5536
+ boundaryElement?: Element | null;
5537
+ /**
5538
+ * Controls which axes the `boundaryElement` constrains. Has no effect when
5539
+ * `boundaryElement` is `null`.
5540
+ *
5541
+ * - `"both"` — constrains horizontal and vertical (default)
5542
+ * - `"horizontal"` — constrains only horizontal overflow; popover may overflow
5543
+ * vertically
5544
+ * - `"vertical"` — constrains only vertical overflow; popover may overflow
5545
+ * horizontally
5546
+ *
5547
+ * @default "both"
5548
+ */
5549
+ boundaryAxis?: BoundaryAxis;
5508
5550
  }
5509
5551
  interface PopoverTriggerProps {
5510
5552
  /** The contents of the popover trigger. */
@@ -5533,7 +5575,7 @@ type MenuSection = Omit<ListSection, "children"> & {
5533
5575
  children: MenuOption[];
5534
5576
  };
5535
5577
  type MenuItem = MenuOption | MenuSection;
5536
- type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "crossOffset" | "offset" | "portalContainer">;
5578
+ type MenuPopoverProps = Pick<PopoverContentProps, "isNonModal" | "placement" | "shouldUpdatePosition" | "shouldFlip" | "boundaryElement" | "boundaryAxis" | "crossOffset" | "offset" | "portalContainer">;
5537
5579
  interface MenuProps extends MenuPopoverProps, MenuTriggerProps, Omit<AriaMenuProps<MenuItem>, "children">, Omit<AriaMenuTriggerProps, "type"> {
5538
5580
  /** The `className` property assigned to the root element of the component. */
5539
5581
  className?: string;
@@ -6994,6 +7036,13 @@ interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "vari
6994
7036
  labelClassName?: string;
6995
7037
  /** The style to apply to the label. */
6996
7038
  labelStyle?: React__default.CSSProperties;
7039
+ /**
7040
+ * Maximum allowed file size in bytes. Files exceeding this limit will be
7041
+ * rejected.
7042
+ */
7043
+ maxFileSize?: number;
7044
+ /** Callback fired when a dropped/pasted/selected file exceeds `maxFileSize`. */
7045
+ onFileSizeError?: (file: File) => void;
6997
7046
  }
6998
7047
 
6999
7048
  declare const ImageDropZone: React__default.ForwardRefExoticComponent<ImageDropZoneProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -8083,6 +8132,12 @@ declare const TreeView: React__default.ForwardRefExoticComponent<TreeViewProps &
8083
8132
  interface PanelProps extends StylingProps {
8084
8133
  /** Content */
8085
8134
  children: ReactNode;
8135
+ /**
8136
+ * Unique identifier for the panel. Required for localStorage persistence when
8137
+ * using `PanelGroup` with `autoSaveId`. Must remain stable across page
8138
+ * loads.
8139
+ */
8140
+ id?: PanelProps$1["id"];
8086
8141
  /**
8087
8142
  * Panel collapses to this size
8088
8143
  *
@@ -8126,7 +8181,8 @@ interface PanelGroupProps extends StylingProps {
8126
8181
  onLayout?: PanelGroupProps$1["onLayout"];
8127
8182
  /**
8128
8183
  * When passed, automatically persists layouts, should be unique amongst other
8129
- * `PanelGroup`
8184
+ * `PanelGroup`. Each `Panel` should have a stable `id` prop for persistence
8185
+ * to work correctly.
8130
8186
  */
8131
8187
  autoSaveId?: PanelGroupProps$1["autoSaveId"];
8132
8188
  }
@@ -8715,11 +8771,12 @@ declare function useIsFirstRender(): boolean;
8715
8771
 
8716
8772
  /**
8717
8773
  * A hook that provides internationalization functionality. It returns a
8718
- * function to format messages and the current locale. The hook can be used with
8719
- * or without a messages object. If no messages object is provided, the hook
8720
- * will use the messages provided by the `I18nProvider`. If a messages object is
8721
- * provided, the hook will use those messages instead of the ones provided by
8722
- * the `I18nProvider`.
8774
+ * function to format messages and the current locale.
8775
+ *
8776
+ * When both a local `messages` object and provider messages (from
8777
+ * `I18nProvider`) are present, they are merged per locale: provider messages
8778
+ * win on key conflicts, while unmatched local keys are preserved. When only one
8779
+ * source is present the behavior is unchanged (backwards compatible).
8723
8780
  *
8724
8781
  * @example
8725
8782
  * ```tsx
@@ -8742,8 +8799,11 @@ declare function useIsFirstRender(): boolean;
8742
8799
  * ```;
8743
8800
  *
8744
8801
  * @template T - A type that represents the shape of the translation messages.
8745
- * @param {Object<string, T>} [messages] - An optional object containing
8746
- * translation messages for different languages.
8802
+ * @param messages - An optional object containing translation messages for
8803
+ * different locales. When provider messages (from `I18nProvider`) are also
8804
+ * present, local and provider messages are merged per locale — provider
8805
+ * values take precedence on key conflicts. If omitted, the hook reads
8806
+ * entirely from the provider.
8747
8807
  * @returns {I18nResult<T>} An object containing a function to format messages
8748
8808
  * and the current locale.
8749
8809
  */
@@ -8946,4 +9006,4 @@ declare namespace reactStately {
8946
9006
  export { type reactStately_Color as Color, type reactStately_ListData as ListData, type reactStately_TreeData as TreeData, reactStately_useListData as useListData, reactStately_useTreeData as useTreeData };
8947
9007
  }
8948
9008
 
8949
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, Actionable, type ActionableProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, Code, type CodeProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateField, type DateFieldProps, DateFormat, type DateFormatProps, DefaultListOption, type Device, DeviceProvider, DeviceProviderContext, type DeviceProviderProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, type DisclosureProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FocusScope, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridLayout, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nProviderProps, type I18nResult, Icon, IconColorInput, IconColorInputButton, type IconColorInputProps, type IconComponentProps$1 as IconComponentProps, type IconProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Kbd, type KbdProps, type Key, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle$1 as ListHandle, ListLayout, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, type MessageFormatter, 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, PointPicker, PointPickerContent, type PointPickerContentProps, PointPickerDisplay, type PointPickerDisplayProps, type PointPickerProps, Popover, PopoverContent, type PopoverContentHandle, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, type PressEvent, Pressable, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, type Rect, type SVGRProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Size, Slider, type SliderProps, StatusCard, type StatusCardProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, TableLayout, Tabs, type TabsProps, TagGroup, type TagGroupProps, TaggedPagination, type TaggedPaginationProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, type ToastProps, ToastQueue, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, type TreeListItem, TreeView, type TreeViewProps, UNSAFE_ListBox, type UNSAFE_ListBoxProps, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, type VirtualizerProps, VisuallyHidden, WaterfallLayout, announce, booleanOrObjectToConfig, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useDragAndDrop, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
9009
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, Actionable, type ActionableProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, type BlockProps, type BoundaryAxis, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, Code, type CodeProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateField, type DateFieldProps, DateFormat, type DateFormatProps, DefaultListOption, type Device, DeviceProvider, DeviceProviderContext, type DeviceProviderProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, Disclosure, type DisclosureProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, FocusScope, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridLayout, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nProviderProps, type I18nResult, Icon, IconColorInput, IconColorInputButton, type IconColorInputProps, type IconComponentProps$1 as IconComponentProps, type IconProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Kbd, type KbdProps, type Key, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle$1 as ListHandle, ListLayout, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, type MessageFormatter, 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, PointPicker, PointPickerContent, type PointPickerContentProps, PointPickerDisplay, type PointPickerDisplayProps, type PointPickerProps, Popover, PopoverContent, type PopoverContentHandle, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, type PressEvent, Pressable, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, type Rect, type SVGRProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Size, Slider, type SliderProps, StatusCard, type StatusCardProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, TableLayout, Tabs, type TabsProps, TagGroup, type TagGroupProps, TaggedPagination, type TaggedPaginationProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, type ToastProps, ToastQueue, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, type TreeListItem, TreeView, type TreeViewProps, UNSAFE_ListBox, type UNSAFE_ListBoxProps, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, type VirtualizerProps, VisuallyHidden, WaterfallLayout, announce, booleanOrObjectToConfig, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useDragAndDrop, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };