@baseline-ui/core 0.37.0 → 0.38.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/Acknowledgements.md +156 -145
- package/dist/index.css +1 -1
- package/dist/index.d.mts +98 -6
- package/dist/index.d.ts +98 -6
- package/dist/index.js +35 -5
- package/dist/index.mjs +35 -5
- package/package.json +12 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { AriaRole, Key, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { IconProps, SVGRProps } from '@baseline-ui/icons';
|
|
4
|
-
import { DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, FocusableOptions, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, Locale } from 'react-aria';
|
|
4
|
+
import { DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, FocusableOptions, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, FocusProps, KeyboardProps as KeyboardProps$1, PressEvent, Locale } from 'react-aria';
|
|
5
5
|
export { I18nProviderProps, useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
|
|
6
6
|
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2, TreeProps } from 'react-stately';
|
|
7
7
|
import { Node as Node$1, DragItem, FocusableElement, DOMAttributes, AriaLabelingProps, AriaValidationProps, DOMProps } from '@react-types/shared';
|
|
8
8
|
import { PressHookProps, KeyboardProps } from '@react-aria/interactions';
|
|
9
|
-
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
10
|
-
export { MotionGlobalConfig } from 'motion/react';
|
|
11
9
|
import { AriaTabListProps } from '@react-types/tabs';
|
|
12
10
|
import { ColorFieldProps, Color } from '@react-stately/color';
|
|
13
11
|
import { OnRender, OnRenderStart, OnDragStart, OnDrag, OnDragEnd, OnResizeStart, OnResize, OnResizeEnd, OnRotateStart, OnRotate, OnRotateEnd, OnSnap, RotationPosition } from 'react-moveable';
|
|
12
|
+
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
14
13
|
import { AriaToolbarProps } from '@react-aria/toolbar';
|
|
15
14
|
import { AriaColorSwatchProps } from '@react-aria/color';
|
|
16
15
|
import { AriaActionGroupProps } from '@react-aria/actiongroup';
|
|
@@ -19,6 +18,7 @@ import { PanelProps as PanelProps$1, PanelGroupProps as PanelGroupProps$1, Panel
|
|
|
19
18
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
20
19
|
import { ToastQueue } from '@react-stately/toast';
|
|
21
20
|
export { ToastQueue } from '@react-stately/toast';
|
|
21
|
+
export { MotionGlobalConfig } from 'motion/react';
|
|
22
22
|
|
|
23
23
|
interface ListOption<T = Record<string, any>> {
|
|
24
24
|
id: string;
|
|
@@ -467,6 +467,7 @@ interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState"
|
|
|
467
467
|
|
|
468
468
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
469
469
|
|
|
470
|
+
type ThemeProviderTheme = Theme | "light" | "dark" | "system";
|
|
470
471
|
interface ThemeProviderProps extends StylingProps {
|
|
471
472
|
/**
|
|
472
473
|
* The theme to use. If not provided, the theme will be inherited from the
|
|
@@ -475,14 +476,22 @@ interface ThemeProviderProps extends StylingProps {
|
|
|
475
476
|
*
|
|
476
477
|
* @default "system"
|
|
477
478
|
*/
|
|
478
|
-
theme?:
|
|
479
|
+
theme?: ThemeProviderTheme;
|
|
479
480
|
/** The children to render. */
|
|
480
481
|
children: React__default.ReactNode;
|
|
482
|
+
/**
|
|
483
|
+
* A function that will be called when the theme changes from any of the child
|
|
484
|
+
* components.
|
|
485
|
+
*
|
|
486
|
+
* @deprecated This prop is deprecated and will be removed in a future
|
|
487
|
+
* version. Please use the `onThemeChange` prop instead.
|
|
488
|
+
*/
|
|
489
|
+
setTheme?: (theme: ThemeProviderTheme) => void;
|
|
481
490
|
/**
|
|
482
491
|
* A function that will be called when the theme changes from any of the child
|
|
483
492
|
* components.
|
|
484
493
|
*/
|
|
485
|
-
|
|
494
|
+
onThemeChange?: (theme: ThemeProviderTheme) => void;
|
|
486
495
|
}
|
|
487
496
|
|
|
488
497
|
declare const ThemeProvider: React__default.ForwardRefExoticComponent<ThemeProviderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -507,6 +516,9 @@ declare function useUserPreferences(ownerWindow?: (Window & typeof globalThis) |
|
|
|
507
516
|
transparency: boolean;
|
|
508
517
|
};
|
|
509
518
|
|
|
519
|
+
declare function disableAnimations(): void;
|
|
520
|
+
declare function enableAnimations(): void;
|
|
521
|
+
|
|
510
522
|
interface PortalContainerProviderProps {
|
|
511
523
|
/**
|
|
512
524
|
* The container element for the popover. By default, the modal is rendered as
|
|
@@ -2844,6 +2856,86 @@ interface GlobalToastRegionProps extends StylingProps {
|
|
|
2844
2856
|
|
|
2845
2857
|
declare const GlobalToastRegion: React__default.ForwardRefExoticComponent<GlobalToastRegionProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2846
2858
|
|
|
2859
|
+
interface FrameProviderProps extends BlockProps {
|
|
2860
|
+
/** The children of the FrameProvider */
|
|
2861
|
+
children: React__default.ReactNode;
|
|
2862
|
+
/** The container inside which all the overlays should be confined to */
|
|
2863
|
+
container?: HTMLElement | null;
|
|
2864
|
+
/** The container inside which all the portals should be confined to */
|
|
2865
|
+
portalContainer?: HTMLElement | null;
|
|
2866
|
+
/**
|
|
2867
|
+
* Whether the container should contain the overlays. Here's what happens when
|
|
2868
|
+
* the value is set to `"auto"`:
|
|
2869
|
+
*
|
|
2870
|
+
* - On mobile, the overlays will be positioned relative to the window.
|
|
2871
|
+
* - On desktop or tablet, the overlays will be positioned relative to the
|
|
2872
|
+
* container.
|
|
2873
|
+
*
|
|
2874
|
+
* When the value is set to `"always"`, the overlays will be positioned
|
|
2875
|
+
* relative to the container on all devices.
|
|
2876
|
+
*
|
|
2877
|
+
* When the value is set to `"never"`, the overlays will be positioned
|
|
2878
|
+
* relative to the window on all devices.
|
|
2879
|
+
*
|
|
2880
|
+
* @default "auto"
|
|
2881
|
+
*/
|
|
2882
|
+
shouldContainOverlays?: "always" | "auto" | "never";
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
declare const FrameProvider: React__default.FC<FrameProviderProps>;
|
|
2886
|
+
|
|
2887
|
+
interface MagnifierProps extends BlockProps {
|
|
2888
|
+
/** The magnifier's content. */
|
|
2889
|
+
children: React__default.ReactNode;
|
|
2890
|
+
/** Whether the magnifier is disabled. */
|
|
2891
|
+
isDisabled?: boolean;
|
|
2892
|
+
/** The callback function that is called when the magnifier is moved. */
|
|
2893
|
+
onMove?: (options: {
|
|
2894
|
+
coordinates: {
|
|
2895
|
+
x: number;
|
|
2896
|
+
y: number;
|
|
2897
|
+
};
|
|
2898
|
+
boundingRect: DOMRect | null;
|
|
2899
|
+
}) => void;
|
|
2900
|
+
/** The coordinates of the magnifier. */
|
|
2901
|
+
coordinates?: {
|
|
2902
|
+
x: number;
|
|
2903
|
+
y: number;
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
interface MagnifierContentProps extends StylingProps, AriaLabelingProps, FocusProps<FocusableElement>, KeyboardProps$1 {
|
|
2907
|
+
/** The magnifier's content. */
|
|
2908
|
+
children: React__default.ReactElement;
|
|
2909
|
+
/** The callback function that is called when the magnifier is pressed. */
|
|
2910
|
+
onPress?: (e: PressEvent) => void;
|
|
2911
|
+
}
|
|
2912
|
+
interface Description {
|
|
2913
|
+
label: string;
|
|
2914
|
+
icon: React__default.FC<IconProps>;
|
|
2915
|
+
}
|
|
2916
|
+
interface MagnifierDisplayProps extends StylingProps {
|
|
2917
|
+
/** The description of the magnifier. */
|
|
2918
|
+
description?: Description[] | ((options: {
|
|
2919
|
+
coordinates: {
|
|
2920
|
+
x: number;
|
|
2921
|
+
y: number;
|
|
2922
|
+
};
|
|
2923
|
+
boundingRect: DOMRect | null;
|
|
2924
|
+
}) => Description[]);
|
|
2925
|
+
/**
|
|
2926
|
+
* The scale of the magnifier.
|
|
2927
|
+
*
|
|
2928
|
+
* @default 5
|
|
2929
|
+
*/
|
|
2930
|
+
scale?: number;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
declare const Magnifier: React__default.FC<MagnifierProps>;
|
|
2934
|
+
|
|
2935
|
+
declare const MagnifierContent: React__default.ForwardRefExoticComponent<MagnifierContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2936
|
+
|
|
2937
|
+
declare const MagnifierDisplay: React__default.ForwardRefExoticComponent<MagnifierDisplayProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2938
|
+
|
|
2847
2939
|
/**
|
|
2848
2940
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
2849
2941
|
*
|
|
@@ -3175,4 +3267,4 @@ type Device = ReturnType<typeof useDevice>;
|
|
|
3175
3267
|
*/
|
|
3176
3268
|
declare function usePortalContainer(_portalContainer?: HTMLElement): HTMLElement | undefined;
|
|
3177
3269
|
|
|
3178
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, Focusable, type FocusableProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, type ReactComplexTreeItem, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, type ToastProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, TreeView, type TreeViewProps, defineMessages, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
3270
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle, type ListOption, Magnifier, MagnifierContent, type MagnifierContentProps, MagnifierDisplay, type MagnifierDisplayProps, type MagnifierProps, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, type ReactComplexTreeItem, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, type ToastProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, TreeView, type TreeViewProps, defineMessages, disableAnimations, enableAnimations, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { AriaRole, Key, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { IconProps, SVGRProps } from '@baseline-ui/icons';
|
|
4
|
-
import { DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, FocusableOptions, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, Locale } from 'react-aria';
|
|
4
|
+
import { DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, FocusableOptions, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, FocusProps, KeyboardProps as KeyboardProps$1, PressEvent, Locale } from 'react-aria';
|
|
5
5
|
export { I18nProviderProps, useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
|
|
6
6
|
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2, TreeProps } from 'react-stately';
|
|
7
7
|
import { Node as Node$1, DragItem, FocusableElement, DOMAttributes, AriaLabelingProps, AriaValidationProps, DOMProps } from '@react-types/shared';
|
|
8
8
|
import { PressHookProps, KeyboardProps } from '@react-aria/interactions';
|
|
9
|
-
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
10
|
-
export { MotionGlobalConfig } from 'motion/react';
|
|
11
9
|
import { AriaTabListProps } from '@react-types/tabs';
|
|
12
10
|
import { ColorFieldProps, Color } from '@react-stately/color';
|
|
13
11
|
import { OnRender, OnRenderStart, OnDragStart, OnDrag, OnDragEnd, OnResizeStart, OnResize, OnResizeEnd, OnRotateStart, OnRotate, OnRotateEnd, OnSnap, RotationPosition } from 'react-moveable';
|
|
12
|
+
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
14
13
|
import { AriaToolbarProps } from '@react-aria/toolbar';
|
|
15
14
|
import { AriaColorSwatchProps } from '@react-aria/color';
|
|
16
15
|
import { AriaActionGroupProps } from '@react-aria/actiongroup';
|
|
@@ -19,6 +18,7 @@ import { PanelProps as PanelProps$1, PanelGroupProps as PanelGroupProps$1, Panel
|
|
|
19
18
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
20
19
|
import { ToastQueue } from '@react-stately/toast';
|
|
21
20
|
export { ToastQueue } from '@react-stately/toast';
|
|
21
|
+
export { MotionGlobalConfig } from 'motion/react';
|
|
22
22
|
|
|
23
23
|
interface ListOption<T = Record<string, any>> {
|
|
24
24
|
id: string;
|
|
@@ -467,6 +467,7 @@ interface SearchInputProps extends Omit<AriaSearchFieldProps, "validationState"
|
|
|
467
467
|
|
|
468
468
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
469
469
|
|
|
470
|
+
type ThemeProviderTheme = Theme | "light" | "dark" | "system";
|
|
470
471
|
interface ThemeProviderProps extends StylingProps {
|
|
471
472
|
/**
|
|
472
473
|
* The theme to use. If not provided, the theme will be inherited from the
|
|
@@ -475,14 +476,22 @@ interface ThemeProviderProps extends StylingProps {
|
|
|
475
476
|
*
|
|
476
477
|
* @default "system"
|
|
477
478
|
*/
|
|
478
|
-
theme?:
|
|
479
|
+
theme?: ThemeProviderTheme;
|
|
479
480
|
/** The children to render. */
|
|
480
481
|
children: React__default.ReactNode;
|
|
482
|
+
/**
|
|
483
|
+
* A function that will be called when the theme changes from any of the child
|
|
484
|
+
* components.
|
|
485
|
+
*
|
|
486
|
+
* @deprecated This prop is deprecated and will be removed in a future
|
|
487
|
+
* version. Please use the `onThemeChange` prop instead.
|
|
488
|
+
*/
|
|
489
|
+
setTheme?: (theme: ThemeProviderTheme) => void;
|
|
481
490
|
/**
|
|
482
491
|
* A function that will be called when the theme changes from any of the child
|
|
483
492
|
* components.
|
|
484
493
|
*/
|
|
485
|
-
|
|
494
|
+
onThemeChange?: (theme: ThemeProviderTheme) => void;
|
|
486
495
|
}
|
|
487
496
|
|
|
488
497
|
declare const ThemeProvider: React__default.ForwardRefExoticComponent<ThemeProviderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -507,6 +516,9 @@ declare function useUserPreferences(ownerWindow?: (Window & typeof globalThis) |
|
|
|
507
516
|
transparency: boolean;
|
|
508
517
|
};
|
|
509
518
|
|
|
519
|
+
declare function disableAnimations(): void;
|
|
520
|
+
declare function enableAnimations(): void;
|
|
521
|
+
|
|
510
522
|
interface PortalContainerProviderProps {
|
|
511
523
|
/**
|
|
512
524
|
* The container element for the popover. By default, the modal is rendered as
|
|
@@ -2844,6 +2856,86 @@ interface GlobalToastRegionProps extends StylingProps {
|
|
|
2844
2856
|
|
|
2845
2857
|
declare const GlobalToastRegion: React__default.ForwardRefExoticComponent<GlobalToastRegionProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2846
2858
|
|
|
2859
|
+
interface FrameProviderProps extends BlockProps {
|
|
2860
|
+
/** The children of the FrameProvider */
|
|
2861
|
+
children: React__default.ReactNode;
|
|
2862
|
+
/** The container inside which all the overlays should be confined to */
|
|
2863
|
+
container?: HTMLElement | null;
|
|
2864
|
+
/** The container inside which all the portals should be confined to */
|
|
2865
|
+
portalContainer?: HTMLElement | null;
|
|
2866
|
+
/**
|
|
2867
|
+
* Whether the container should contain the overlays. Here's what happens when
|
|
2868
|
+
* the value is set to `"auto"`:
|
|
2869
|
+
*
|
|
2870
|
+
* - On mobile, the overlays will be positioned relative to the window.
|
|
2871
|
+
* - On desktop or tablet, the overlays will be positioned relative to the
|
|
2872
|
+
* container.
|
|
2873
|
+
*
|
|
2874
|
+
* When the value is set to `"always"`, the overlays will be positioned
|
|
2875
|
+
* relative to the container on all devices.
|
|
2876
|
+
*
|
|
2877
|
+
* When the value is set to `"never"`, the overlays will be positioned
|
|
2878
|
+
* relative to the window on all devices.
|
|
2879
|
+
*
|
|
2880
|
+
* @default "auto"
|
|
2881
|
+
*/
|
|
2882
|
+
shouldContainOverlays?: "always" | "auto" | "never";
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
declare const FrameProvider: React__default.FC<FrameProviderProps>;
|
|
2886
|
+
|
|
2887
|
+
interface MagnifierProps extends BlockProps {
|
|
2888
|
+
/** The magnifier's content. */
|
|
2889
|
+
children: React__default.ReactNode;
|
|
2890
|
+
/** Whether the magnifier is disabled. */
|
|
2891
|
+
isDisabled?: boolean;
|
|
2892
|
+
/** The callback function that is called when the magnifier is moved. */
|
|
2893
|
+
onMove?: (options: {
|
|
2894
|
+
coordinates: {
|
|
2895
|
+
x: number;
|
|
2896
|
+
y: number;
|
|
2897
|
+
};
|
|
2898
|
+
boundingRect: DOMRect | null;
|
|
2899
|
+
}) => void;
|
|
2900
|
+
/** The coordinates of the magnifier. */
|
|
2901
|
+
coordinates?: {
|
|
2902
|
+
x: number;
|
|
2903
|
+
y: number;
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
interface MagnifierContentProps extends StylingProps, AriaLabelingProps, FocusProps<FocusableElement>, KeyboardProps$1 {
|
|
2907
|
+
/** The magnifier's content. */
|
|
2908
|
+
children: React__default.ReactElement;
|
|
2909
|
+
/** The callback function that is called when the magnifier is pressed. */
|
|
2910
|
+
onPress?: (e: PressEvent) => void;
|
|
2911
|
+
}
|
|
2912
|
+
interface Description {
|
|
2913
|
+
label: string;
|
|
2914
|
+
icon: React__default.FC<IconProps>;
|
|
2915
|
+
}
|
|
2916
|
+
interface MagnifierDisplayProps extends StylingProps {
|
|
2917
|
+
/** The description of the magnifier. */
|
|
2918
|
+
description?: Description[] | ((options: {
|
|
2919
|
+
coordinates: {
|
|
2920
|
+
x: number;
|
|
2921
|
+
y: number;
|
|
2922
|
+
};
|
|
2923
|
+
boundingRect: DOMRect | null;
|
|
2924
|
+
}) => Description[]);
|
|
2925
|
+
/**
|
|
2926
|
+
* The scale of the magnifier.
|
|
2927
|
+
*
|
|
2928
|
+
* @default 5
|
|
2929
|
+
*/
|
|
2930
|
+
scale?: number;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
declare const Magnifier: React__default.FC<MagnifierProps>;
|
|
2934
|
+
|
|
2935
|
+
declare const MagnifierContent: React__default.ForwardRefExoticComponent<MagnifierContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2936
|
+
|
|
2937
|
+
declare const MagnifierDisplay: React__default.ForwardRefExoticComponent<MagnifierDisplayProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2938
|
+
|
|
2847
2939
|
/**
|
|
2848
2940
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
2849
2941
|
*
|
|
@@ -3175,4 +3267,4 @@ type Device = ReturnType<typeof useDevice>;
|
|
|
3175
3267
|
*/
|
|
3176
3268
|
declare function usePortalContainer(_portalContainer?: HTMLElement): HTMLElement | undefined;
|
|
3177
3269
|
|
|
3178
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, Focusable, type FocusableProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, type ReactComplexTreeItem, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, type ToastProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, TreeView, type TreeViewProps, defineMessages, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
3270
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionGroup, ActionGroupItem, type ActionGroupProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, ButtonSelect, type ButtonSelectProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, DateFormat, type DateFormatProps, type Device, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorHandle, type EditorProps, FileUpload, type FileUploadProps, Focusable, type FocusableProps, FrameProvider, type FrameProviderProps, FreehandCanvas, type FreehandCanvasProps, GlobalToastRegion, GridList, type GridListProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInput, IconColorInputButton, type IconColorInputProps, IconSelect, type IconSelectProps, IconSlider, type IconSliderProps, ImageDropZone, type ImageDropZoneProps, ImageGallery, type ImageGalleryProps, type ImperativePanelGroupHandle, type ImperativePanelHandle, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListHandle, type ListOption, Magnifier, MagnifierContent, type MagnifierContentProps, MagnifierDisplay, type MagnifierDisplayProps, type MagnifierProps, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, type ReactComplexTreeItem, Reaction, type ReactionProps, type Rect, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, type ToastProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, TreeView, type TreeViewProps, defineMessages, disableAnimations, enableAnimations, isInsideOverlayContent, isRect, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|