@baseline-ui/core 0.43.0 → 0.44.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 +282 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +223 -130
- package/dist/index.d.ts +223 -130
- package/dist/index.js +16 -7
- package/dist/index.mjs +16 -7
- package/package.json +7 -5
package/dist/index.d.mts
CHANGED
|
@@ -2177,7 +2177,7 @@ declare function mergeProps<T extends PropsArg[]>(...args: T): UnionToIntersecti
|
|
|
2177
2177
|
* Merges multiple refs into one. Works with either callback or object refs.
|
|
2178
2178
|
*/
|
|
2179
2179
|
declare function mergeRefs<T>(...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined>): Ref<T>;
|
|
2180
|
-
interface Options {
|
|
2180
|
+
interface Options$1 {
|
|
2181
2181
|
/**
|
|
2182
2182
|
* If labelling associated aria properties should be included in the filter.
|
|
2183
2183
|
*/
|
|
@@ -2194,7 +2194,7 @@ interface Options {
|
|
|
2194
2194
|
* @param props - The component props to be filtered.
|
|
2195
2195
|
* @param opts - Props to override.
|
|
2196
2196
|
*/
|
|
2197
|
-
declare function filterDOMProps(props: DOMProps & AriaLabelingProps & LinkDOMProps, opts?: Options): DOMProps & AriaLabelingProps;
|
|
2197
|
+
declare function filterDOMProps(props: DOMProps & AriaLabelingProps & LinkDOMProps, opts?: Options$1): DOMProps & AriaLabelingProps;
|
|
2198
2198
|
/**
|
|
2199
2199
|
* Offers an object ref for a given callback ref or an object ref. Especially
|
|
2200
2200
|
* helfpul when passing forwarded refs (created using `React.forwardRef`) to
|
|
@@ -19420,6 +19420,79 @@ interface DomNodeRendererProps extends StylingProps, Omit<PressHookProps, "ref">
|
|
|
19420
19420
|
|
|
19421
19421
|
declare const DomNodeRenderer: React__default__default.ForwardRefExoticComponent<DomNodeRendererProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
19422
19422
|
|
|
19423
|
+
interface ModalProps extends OverlayTriggerProps$1 {
|
|
19424
|
+
/** The contents of the modal. */
|
|
19425
|
+
children: React__default__default.ReactNode;
|
|
19426
|
+
}
|
|
19427
|
+
interface ModalContentProps extends Omit<AriaModalOverlayProps, "isDismissable" | "isKeyboardDismissDisabled">, StylingProps {
|
|
19428
|
+
/**
|
|
19429
|
+
* The contents of the modal. Can be a React node or a function that returns a
|
|
19430
|
+
* React node.
|
|
19431
|
+
*/
|
|
19432
|
+
children: React__default__default.ReactNode | ((props: OverlayTriggerState) => React__default__default.ReactNode);
|
|
19433
|
+
/**
|
|
19434
|
+
* The container element for the modal. By default, the modal is rendered as a
|
|
19435
|
+
* child of the body element.
|
|
19436
|
+
*
|
|
19437
|
+
* @default document.body
|
|
19438
|
+
*/
|
|
19439
|
+
portalContainer?: HTMLElement;
|
|
19440
|
+
/**
|
|
19441
|
+
* Whether to disable the animation for the modal. This is useful when you
|
|
19442
|
+
* want to render one modal after another without the animation.
|
|
19443
|
+
*
|
|
19444
|
+
* @default false
|
|
19445
|
+
*/
|
|
19446
|
+
disableAnimation?: boolean;
|
|
19447
|
+
/**
|
|
19448
|
+
* Whether the modal should be rendered with the initial animation. If set to
|
|
19449
|
+
* false, the modal will be rendered without the initial animation on mount.
|
|
19450
|
+
* This doesn't affect the animation when the modal is is being opened or
|
|
19451
|
+
* closed after it has been mounted. This prop is ignored if
|
|
19452
|
+
* `disableAnimation` is set to `true`.
|
|
19453
|
+
*
|
|
19454
|
+
* @default true
|
|
19455
|
+
*/
|
|
19456
|
+
shouldAnimateOnMount?: boolean;
|
|
19457
|
+
/**
|
|
19458
|
+
* Whether the modal should be rendered as a drawer. This will render the
|
|
19459
|
+
* modal with a transparent background and no border at the bottom. The `auto`
|
|
19460
|
+
* value will render the modal as a drawer on mobile and as a dialog on
|
|
19461
|
+
* desktop and tablet.
|
|
19462
|
+
*
|
|
19463
|
+
* @default false
|
|
19464
|
+
*/
|
|
19465
|
+
enableDrawer?: boolean | "auto";
|
|
19466
|
+
/**
|
|
19467
|
+
* Specifies if the component is dismissable or not. If the value is a
|
|
19468
|
+
* function, it will be called with a boolean indicating if the modal is
|
|
19469
|
+
* rendered as a drawer or not.
|
|
19470
|
+
*
|
|
19471
|
+
* @default true
|
|
19472
|
+
*/
|
|
19473
|
+
isDismissable?: boolean | ((isDrawer: boolean) => boolean);
|
|
19474
|
+
/**
|
|
19475
|
+
* Determines if keyboard dismissal is disabled. If the value is a function,
|
|
19476
|
+
* it will be called with a boolean indicating if the modal is rendered as a
|
|
19477
|
+
* drawer or not.
|
|
19478
|
+
*
|
|
19479
|
+
* @default false
|
|
19480
|
+
*/
|
|
19481
|
+
isKeyboardDismissDisabled?: boolean | ((isDrawer: boolean) => boolean);
|
|
19482
|
+
}
|
|
19483
|
+
|
|
19484
|
+
declare const Modal: React__default__default.FC<ModalProps>;
|
|
19485
|
+
|
|
19486
|
+
declare const ModalContent: React__default__default.ForwardRefExoticComponent<ModalContentProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
19487
|
+
|
|
19488
|
+
declare const ModalTrigger: React__default__default.FC<{
|
|
19489
|
+
children: React__default__default.ReactNode;
|
|
19490
|
+
}>;
|
|
19491
|
+
|
|
19492
|
+
declare const ModalClose: React__default__default.FC<{
|
|
19493
|
+
children: React__default__default.ReactNode;
|
|
19494
|
+
}>;
|
|
19495
|
+
|
|
19423
19496
|
type OverlayTriggerProps_ = Parameters<typeof useOverlayTrigger>[0];
|
|
19424
19497
|
interface PopoverProps extends OverlayTriggerProps$1, OverlayTriggerProps_, BlockProps {
|
|
19425
19498
|
/** The children of the popover. */
|
|
@@ -19431,7 +19504,7 @@ type ClassName$1 = string | ((state: {
|
|
|
19431
19504
|
type Style = React__default__default.CSSProperties | ((state: {
|
|
19432
19505
|
isOpen: boolean;
|
|
19433
19506
|
}) => React__default__default.CSSProperties | undefined);
|
|
19434
|
-
interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset">, BlockProps {
|
|
19507
|
+
interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "triggerRef" | "arrowSize" | "arrowBoundaryOffset">, Pick<OverlayProps, "shouldContainFocus" | "disableFocusManagement">, Pick<ModalContentProps, "disableAnimation">, BlockProps {
|
|
19435
19508
|
/** The class name for the popover element. */
|
|
19436
19509
|
className?: ClassName$1;
|
|
19437
19510
|
/** The style for the popover element. */
|
|
@@ -19470,6 +19543,10 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
|
|
|
19470
19543
|
state?: MenuTriggerState | OverlayTriggerState;
|
|
19471
19544
|
/** The props for the overlay element. */
|
|
19472
19545
|
overlayProps?: React__default__default.HTMLAttributes<HTMLElement>;
|
|
19546
|
+
/** The class name for the arrow element. */
|
|
19547
|
+
arrowClassName?: ClassName$1;
|
|
19548
|
+
/** The style for the arrow element. */
|
|
19549
|
+
arrowStyle?: Style;
|
|
19473
19550
|
}
|
|
19474
19551
|
interface PopoverTriggerProps {
|
|
19475
19552
|
/** The contents of the popover trigger. */
|
|
@@ -21015,79 +21092,6 @@ interface RadioGroupProps extends StylingProps, Omit<AriaRadioGroupProps, "descr
|
|
|
21015
21092
|
|
|
21016
21093
|
declare const RadioGroup: React__default__default.ForwardRefExoticComponent<RadioGroupProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
21017
21094
|
|
|
21018
|
-
interface ModalProps extends OverlayTriggerProps$1 {
|
|
21019
|
-
/** The contents of the modal. */
|
|
21020
|
-
children: React__default__default.ReactNode;
|
|
21021
|
-
}
|
|
21022
|
-
interface ModalContentProps extends Omit<AriaModalOverlayProps, "isDismissable" | "isKeyboardDismissDisabled">, StylingProps {
|
|
21023
|
-
/**
|
|
21024
|
-
* The contents of the modal. Can be a React node or a function that returns a
|
|
21025
|
-
* React node.
|
|
21026
|
-
*/
|
|
21027
|
-
children: React__default__default.ReactNode | ((props: OverlayTriggerState) => React__default__default.ReactNode);
|
|
21028
|
-
/**
|
|
21029
|
-
* The container element for the modal. By default, the modal is rendered as a
|
|
21030
|
-
* child of the body element.
|
|
21031
|
-
*
|
|
21032
|
-
* @default document.body
|
|
21033
|
-
*/
|
|
21034
|
-
portalContainer?: HTMLElement;
|
|
21035
|
-
/**
|
|
21036
|
-
* Whether to disable the animation for the modal. This is useful when you
|
|
21037
|
-
* want to render one modal after another without the animation.
|
|
21038
|
-
*
|
|
21039
|
-
* @default false
|
|
21040
|
-
*/
|
|
21041
|
-
disableAnimation?: boolean;
|
|
21042
|
-
/**
|
|
21043
|
-
* Whether the modal should be rendered with the initial animation. If set to
|
|
21044
|
-
* false, the modal will be rendered without the initial animation on mount.
|
|
21045
|
-
* This doesn't affect the animation when the modal is is being opened or
|
|
21046
|
-
* closed after it has been mounted. This prop is ignored if
|
|
21047
|
-
* `disableAnimation` is set to `true`.
|
|
21048
|
-
*
|
|
21049
|
-
* @default true
|
|
21050
|
-
*/
|
|
21051
|
-
shouldAnimateOnMount?: boolean;
|
|
21052
|
-
/**
|
|
21053
|
-
* Whether the modal should be rendered as a drawer. This will render the
|
|
21054
|
-
* modal with a transparent background and no border at the bottom. The `auto`
|
|
21055
|
-
* value will render the modal as a drawer on mobile and as a dialog on
|
|
21056
|
-
* desktop and tablet.
|
|
21057
|
-
*
|
|
21058
|
-
* @default false
|
|
21059
|
-
*/
|
|
21060
|
-
enableDrawer?: boolean | "auto";
|
|
21061
|
-
/**
|
|
21062
|
-
* Specifies if the component is dismissable or not. If the value is a
|
|
21063
|
-
* function, it will be called with a boolean indicating if the modal is
|
|
21064
|
-
* rendered as a drawer or not.
|
|
21065
|
-
*
|
|
21066
|
-
* @default true
|
|
21067
|
-
*/
|
|
21068
|
-
isDismissable?: boolean | ((isDrawer: boolean) => boolean);
|
|
21069
|
-
/**
|
|
21070
|
-
* Determines if keyboard dismissal is disabled. If the value is a function,
|
|
21071
|
-
* it will be called with a boolean indicating if the modal is rendered as a
|
|
21072
|
-
* drawer or not.
|
|
21073
|
-
*
|
|
21074
|
-
* @default false
|
|
21075
|
-
*/
|
|
21076
|
-
isKeyboardDismissDisabled?: boolean | ((isDrawer: boolean) => boolean);
|
|
21077
|
-
}
|
|
21078
|
-
|
|
21079
|
-
declare const Modal: React__default__default.FC<ModalProps>;
|
|
21080
|
-
|
|
21081
|
-
declare const ModalContent: React__default__default.ForwardRefExoticComponent<ModalContentProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
21082
|
-
|
|
21083
|
-
declare const ModalTrigger: React__default__default.FC<{
|
|
21084
|
-
children: React__default__default.ReactNode;
|
|
21085
|
-
}>;
|
|
21086
|
-
|
|
21087
|
-
declare const ModalClose: React__default__default.FC<{
|
|
21088
|
-
children: React__default__default.ReactNode;
|
|
21089
|
-
}>;
|
|
21090
|
-
|
|
21091
21095
|
interface MessageFormatProps {
|
|
21092
21096
|
/**
|
|
21093
21097
|
* By default `<MessageFormat>` will render the formatted string into a
|
|
@@ -22120,58 +22124,6 @@ declare const DateField: React__default__default.ForwardRefExoticComponent<Styli
|
|
|
22120
22124
|
|
|
22121
22125
|
type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isInvalid" | "isRequired" | "validate" | "createCalendar"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
|
|
22122
22126
|
|
|
22123
|
-
interface MagnifierProps extends BlockProps {
|
|
22124
|
-
/** The magnifier's content. */
|
|
22125
|
-
children: React__default__default.ReactNode;
|
|
22126
|
-
/** Whether the magnifier is disabled. */
|
|
22127
|
-
isDisabled?: boolean;
|
|
22128
|
-
/** The callback function that is called when the magnifier is moved. */
|
|
22129
|
-
onMove?: (options: {
|
|
22130
|
-
coordinates: {
|
|
22131
|
-
x: number;
|
|
22132
|
-
y: number;
|
|
22133
|
-
};
|
|
22134
|
-
boundingRect: DOMRect | null;
|
|
22135
|
-
}) => void;
|
|
22136
|
-
/** The coordinates of the magnifier. */
|
|
22137
|
-
coordinates?: {
|
|
22138
|
-
x: number;
|
|
22139
|
-
y: number;
|
|
22140
|
-
};
|
|
22141
|
-
}
|
|
22142
|
-
interface MagnifierContentProps extends StylingProps, AriaLabelingProps, FocusProps<FocusableElement>, KeyboardProps {
|
|
22143
|
-
/** The magnifier's content. */
|
|
22144
|
-
children: React__default__default.JSX.Element;
|
|
22145
|
-
/** The callback function that is called when the magnifier is pressed. */
|
|
22146
|
-
onPress?: (e: PressEvent) => void;
|
|
22147
|
-
}
|
|
22148
|
-
interface Description {
|
|
22149
|
-
label: string;
|
|
22150
|
-
icon: React__default__default.FC<IconProps>;
|
|
22151
|
-
}
|
|
22152
|
-
interface MagnifierDisplayProps extends StylingProps {
|
|
22153
|
-
/** The description of the magnifier. */
|
|
22154
|
-
description?: Description[] | ((options: {
|
|
22155
|
-
coordinates: {
|
|
22156
|
-
x: number;
|
|
22157
|
-
y: number;
|
|
22158
|
-
};
|
|
22159
|
-
boundingRect: DOMRect | null;
|
|
22160
|
-
}) => Description[]);
|
|
22161
|
-
/**
|
|
22162
|
-
* The scale of the magnifier.
|
|
22163
|
-
*
|
|
22164
|
-
* @default 5
|
|
22165
|
-
*/
|
|
22166
|
-
scale?: number;
|
|
22167
|
-
}
|
|
22168
|
-
|
|
22169
|
-
declare const Magnifier: React__default__default.FC<MagnifierProps>;
|
|
22170
|
-
|
|
22171
|
-
declare const MagnifierContent: React__default__default.ForwardRefExoticComponent<MagnifierContentProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22172
|
-
|
|
22173
|
-
declare const MagnifierDisplay: React__default__default.ForwardRefExoticComponent<MagnifierDisplayProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22174
|
-
|
|
22175
22127
|
interface Breakpoints {
|
|
22176
22128
|
mobile: number;
|
|
22177
22129
|
tablet: number;
|
|
@@ -22237,6 +22189,133 @@ interface TaggedPaginationProps extends StylingProps, Pick<PaginationProps, "isD
|
|
|
22237
22189
|
|
|
22238
22190
|
declare const TaggedPagination: React__default__default.ForwardRefExoticComponent<TaggedPaginationProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22239
22191
|
|
|
22192
|
+
interface PointPickerProps extends BlockProps {
|
|
22193
|
+
/** The magnifier's content. */
|
|
22194
|
+
children: React__default__default.ReactNode;
|
|
22195
|
+
/**
|
|
22196
|
+
* Whether the point picker is disabled.
|
|
22197
|
+
*
|
|
22198
|
+
* @default false
|
|
22199
|
+
*/
|
|
22200
|
+
isDisabled?: boolean;
|
|
22201
|
+
}
|
|
22202
|
+
interface Options {
|
|
22203
|
+
coordinates: {
|
|
22204
|
+
x: number;
|
|
22205
|
+
y: number;
|
|
22206
|
+
} | null;
|
|
22207
|
+
boundingRect: DOMRect | null;
|
|
22208
|
+
}
|
|
22209
|
+
type GridLines = {
|
|
22210
|
+
coordinates: {
|
|
22211
|
+
x: number;
|
|
22212
|
+
y: number;
|
|
22213
|
+
} | null;
|
|
22214
|
+
} | boolean;
|
|
22215
|
+
interface PointPickerContentProps extends StylingProps, AriaLabelingProps, Omit<FocusProps<FocusableElement>, "isDisabled">, Omit<KeyboardProps, "isDisabled"> {
|
|
22216
|
+
/** The magnifier's content. */
|
|
22217
|
+
children: React__default__default.ReactElement;
|
|
22218
|
+
/** The callback function that is called when the magnifier is pressed. */
|
|
22219
|
+
onPress?: (e: PressEvent) => void;
|
|
22220
|
+
/**
|
|
22221
|
+
* Whether to show the grid lines. If a function is provided, it will be
|
|
22222
|
+
* called with the current options and should return a boolean or an object
|
|
22223
|
+
* with the coordinates to show the grid lines.
|
|
22224
|
+
*
|
|
22225
|
+
* The custom coordinates object will be used to show the grid lines at a
|
|
22226
|
+
* specific point. This will be helpful if you want to show the grid lines at
|
|
22227
|
+
* a a snapped point that is not the cursor.
|
|
22228
|
+
*
|
|
22229
|
+
* @default true
|
|
22230
|
+
*/
|
|
22231
|
+
gridLines?: GridLines | ((options: Options) => GridLines);
|
|
22232
|
+
/** The ref to the element. */
|
|
22233
|
+
elementHandle?: React__default__default.RefObject<{
|
|
22234
|
+
focus: () => void;
|
|
22235
|
+
}>;
|
|
22236
|
+
/**
|
|
22237
|
+
* The callback function that is called when the cursor is moved.
|
|
22238
|
+
*
|
|
22239
|
+
* @param options - The options for the move event.
|
|
22240
|
+
* @param options.coordinates - The coordinates of the cursor.
|
|
22241
|
+
* @param options.boundingRect - The bounding rectangle of the element.
|
|
22242
|
+
* @param options.activePoint - The active point of the element. This point is
|
|
22243
|
+
* the point which is snapped to the snap points if any or the coordinates
|
|
22244
|
+
* of the cursor if no snap points are provided or the cursor is not near a
|
|
22245
|
+
* snap point.
|
|
22246
|
+
*/
|
|
22247
|
+
onMove?: (options: Options) => void;
|
|
22248
|
+
}
|
|
22249
|
+
interface Description {
|
|
22250
|
+
label: string;
|
|
22251
|
+
icon: React__default__default.FC<IconProps>;
|
|
22252
|
+
}
|
|
22253
|
+
interface PointPickerDisplayProps extends StylingProps {
|
|
22254
|
+
/**
|
|
22255
|
+
* The description of the display.
|
|
22256
|
+
*
|
|
22257
|
+
* @param options - The options for the description.
|
|
22258
|
+
* @param options.coordinates - The coordinates of the cursor.
|
|
22259
|
+
* @param options.boundingRect - The bounding rectangle of the element.
|
|
22260
|
+
* @param options.activePoint - The active point of the element. This point is
|
|
22261
|
+
* the point which is snapped to the snap points if any or the coordinates
|
|
22262
|
+
* of the cursor if no snap points are provided or the cursor is not near a
|
|
22263
|
+
* snap point.
|
|
22264
|
+
*/
|
|
22265
|
+
description?: Description[] | ((options: Options) => Description[]);
|
|
22266
|
+
/**
|
|
22267
|
+
* Whether to show the magnifier.
|
|
22268
|
+
*
|
|
22269
|
+
* @default true
|
|
22270
|
+
*/
|
|
22271
|
+
magnifier?: boolean | {
|
|
22272
|
+
scale?: number;
|
|
22273
|
+
};
|
|
22274
|
+
/**
|
|
22275
|
+
* The variant of the display.
|
|
22276
|
+
*
|
|
22277
|
+
* @default "auto"
|
|
22278
|
+
*/
|
|
22279
|
+
variant?: "floating" | "auto";
|
|
22280
|
+
/** The content to render in the magnifier. */
|
|
22281
|
+
renderMagnifierContent?: (options: Options & {
|
|
22282
|
+
children: React__default__default.ReactNode;
|
|
22283
|
+
}) => React__default__default.ReactElement;
|
|
22284
|
+
}
|
|
22285
|
+
|
|
22286
|
+
declare const PointPicker: React__default__default.NamedExoticComponent<PointPickerProps>;
|
|
22287
|
+
|
|
22288
|
+
declare const PointPickerContent: React__default__default.ForwardRefExoticComponent<PointPickerContentProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22289
|
+
|
|
22290
|
+
declare const PointPickerDisplay: React__default__default.ForwardRefExoticComponent<PointPickerDisplayProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22291
|
+
|
|
22292
|
+
interface Point$1 {
|
|
22293
|
+
x: number;
|
|
22294
|
+
y: number;
|
|
22295
|
+
}
|
|
22296
|
+
declare function usePointProximity({ snapPoints, snapRadius, }: {
|
|
22297
|
+
snapPoints?: Point$1[];
|
|
22298
|
+
snapRadius?: number;
|
|
22299
|
+
}): {
|
|
22300
|
+
findNearestPoint: (cursor: Point$1) => Promise<Point$1 | null>;
|
|
22301
|
+
findPointsInRadius: (cursor: Point$1) => Promise<Point$1[]>;
|
|
22302
|
+
};
|
|
22303
|
+
|
|
22304
|
+
interface Point {
|
|
22305
|
+
x: number;
|
|
22306
|
+
y: number;
|
|
22307
|
+
}
|
|
22308
|
+
|
|
22309
|
+
interface PointsVisualiserProps {
|
|
22310
|
+
debugPoints: Point[];
|
|
22311
|
+
radius?: number;
|
|
22312
|
+
showRadius?: boolean;
|
|
22313
|
+
showSnapPoints?: boolean;
|
|
22314
|
+
type?: "nearest" | "within";
|
|
22315
|
+
onActivePointsChange?: (points: Point[]) => void;
|
|
22316
|
+
}
|
|
22317
|
+
declare const PointsVisualiser: React__default__default.NamedExoticComponent<PointsVisualiserProps>;
|
|
22318
|
+
|
|
22240
22319
|
/**
|
|
22241
22320
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
22242
22321
|
*
|
|
@@ -22568,6 +22647,20 @@ type Device = ReturnType<typeof useDevice>;
|
|
|
22568
22647
|
*/
|
|
22569
22648
|
declare function usePortalContainer(_portalContainer?: HTMLElement): HTMLElement | undefined;
|
|
22570
22649
|
|
|
22650
|
+
/**
|
|
22651
|
+
* This hook is used to get the live interaction modality of the user. It is
|
|
22652
|
+
* useful for components that need to know the interaction modality of the user
|
|
22653
|
+
* in real time. This is different from the `useInteractionModality` hook, which
|
|
22654
|
+
* changes modality when a significant event occurs, such as clicking or
|
|
22655
|
+
* pressing a key. It does not change when the user is moving the mouse.
|
|
22656
|
+
*
|
|
22657
|
+
* @param ownerDocument - The owner document to listen to.
|
|
22658
|
+
* @returns The live interaction modality of the user.
|
|
22659
|
+
*/
|
|
22660
|
+
declare function useLiveInteractionModality({ ownerDocument, }: {
|
|
22661
|
+
ownerDocument?: Document;
|
|
22662
|
+
}): "pointer" | "keyboard";
|
|
22663
|
+
|
|
22571
22664
|
declare const reactAria_AriaButtonProps: typeof AriaButtonProps;
|
|
22572
22665
|
declare const reactAria_AriaTextFieldOptions: typeof AriaTextFieldOptions;
|
|
22573
22666
|
declare const reactAria_DroppableCollectionReorderEvent: typeof DroppableCollectionReorderEvent;
|
|
@@ -22589,5 +22682,5 @@ declare namespace reactStately {
|
|
|
22589
22682
|
export type { Color };
|
|
22590
22683
|
}
|
|
22591
22684
|
|
|
22592
|
-
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, AlertDialog, AudioPlayer, Avatar, Box, ButtonSelect, Checkbox, ColorInput, ColorSwatch, ColorSwatchPicker, ComboBox, DateField, DateFormat, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, DomNodeRenderer, Drawer, Editor, FileUpload, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Link, ListBox,
|
|
22593
|
-
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, AlertDialogProps, Assertiveness, AudioPlayerProps, AvatarProps, BlockProps, BoxProps, ButtonSelectProps, CheckboxProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ComboBoxProps, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DomNodeRendererProps, DrawerProps, EditorHandle, EditorProps, FileUploadProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, Key, LinkProps, ListBoxProps, ListHandle, ListOption,
|
|
22685
|
+
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, AlertDialog, AudioPlayer, Avatar, Box, ButtonSelect, Checkbox, ColorInput, ColorSwatch, ColorSwatchPicker, ComboBox, DateField, DateFormat, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, DomNodeRenderer, Drawer, Editor, FileUpload, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Link, ListBox, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, MotionGlobalConfig, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, PointsVisualiser, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, RadioGroup, Reaction, ScrollControlButton, SearchInput, Select, Separator, Slider, Switch, TabItem, Tabs, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, Transform, TreeView, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VisuallyHidden, announce, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, invariant, isFocusableElement, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useFocusRing, useFocusVisible, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useLiveInteractionModality, useLocalStorage, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
22686
|
+
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, AlertDialogProps, Assertiveness, AudioPlayerProps, AvatarProps, BlockProps, BoxProps, ButtonSelectProps, CheckboxProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ComboBoxProps, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DomNodeRendererProps, DrawerProps, EditorHandle, EditorProps, FileUploadProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, Key, LinkProps, ListBoxProps, ListHandle, ListOption, MarkdownProps, MenuItem, MenuProps, Message, MessageDescriptor, MessageFormatProps, MessageFormatter, ModalContentProps, ModalProps, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PointsVisualiserProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, ReactComplexTreeItem, ReactionProps, Rect, SVGRProps, ScrollControlButtonProps, SearchInputProps, SelectProps, SeparatorProps, SliderProps, StylingProps, SwitchProps, TabItemProps, TabsProps, TagGroupProps, TaggedPaginationProps, TextInputProps, TextProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TransformProps, TreeViewProps };
|