@ringcentral/spring-ui 1.11.1 → 1.12.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/AccordionHeader.js +4 -2
- package/Animation.js +10 -9
- package/Autocomplete.js +7 -2
- package/BlockHeader.js +3 -1
- package/DatePicker.js +5 -3
- package/Dialer.js +36 -21
- package/Dialog.js +4 -3
- package/Dropdown.js +8 -4
- package/EmptyState.js +3 -1
- package/FormField.js +2 -0
- package/ListItem.js +1 -0
- package/ListItemText.js +9 -3
- package/MenuHeader.js +5 -1
- package/MenuItem.js +3 -0
- package/MenuItemText.js +2 -0
- package/MenuList.js +3 -0
- package/Option.js +4 -1
- package/PickerTextField.js +2 -0
- package/Popper.js +28 -25
- package/Rating.js +2 -2
- package/Select.js +4 -0
- package/SingleFilter.js +4 -0
- package/Slider.js +3 -2
- package/SortableListItem.js +1 -0
- package/SortableVirtualizedList.js +11 -10
- package/SplitButton.js +4 -0
- package/Squircle.js +2 -2
- package/StepContent.js +1 -1
- package/SubMenu.js +4 -0
- package/SwipeableDrawer.js +16 -18
- package/TableCell.js +1 -1
- package/TablePagination.js +4 -0
- package/Tabs.js +11 -5
- package/TextField.js +2 -0
- package/Textarea.js +2 -0
- package/TimePicker.js +3 -1
- package/TrayMenu.js +3 -0
- package/VirtualizedList.js +7 -5
- package/VirtualizedMenu.js +1 -0
- package/chunks/Alert.js +2 -2
- package/chunks/Badge.js +1 -1
- package/chunks/Drawer.js +3 -2
- package/chunks/MenuItemText.js +3 -1
- package/chunks/MenuList.js +2 -1
- package/chunks/Modal.js +132 -9
- package/chunks/Popover.js +13 -5
- package/chunks/Select.js +26 -21
- package/chunks/SlideIn.js +2 -1
- package/chunks/Squircle.js +2 -2
- package/chunks/VirtualizedMenu.js +5 -5
- package/chunks/composeEventHandlers.js +10 -0
- package/chunks/getSlideIn.js +2 -2
- package/chunks/hasContent.js +3 -0
- package/chunks/useAnimationFrame.js +15 -0
- package/chunks/useFocusTrapStack.js +3 -1
- package/chunks/useHelperTextId.js +4 -2
- package/chunks/useMenuItemSelect.js +37 -26
- package/index.css +205 -172
- package/index.js +4 -0
- package/internal/hooks/index.d.ts +1 -0
- package/internal/hooks/useAnimationFrame.d.ts +4 -0
- package/internal/utils/hasContent.d.ts +2 -0
- package/internal/utils/index.d.ts +3 -0
- package/internal/utils/setRef.d.ts +1 -0
- package/package.json +8 -8
- package/src/Accordion/Accordion.d.ts +1 -1
- package/src/AccordionHeader/AccordionHeader.d.ts +1 -1
- package/src/Alert/Alert.type.d.ts +2 -1
- package/src/Animation/components/Fade/Fade.d.ts +4 -2
- package/src/Animation/components/Grow/Grow.d.ts +4 -2
- package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +1 -1
- package/src/Animation/components/SlideIn/SlideIn.d.ts +4 -2
- package/src/Animation/components/SlideIn/getSlideIn.d.ts +1 -1
- package/src/Announcement/Announcement.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +1 -1
- package/src/Autocomplete/useAutocomplete.d.ts +74 -50
- package/src/Autocomplete/useAutocompleteTag.d.ts +68 -44
- package/src/Backdrop/Backdrop.d.ts +1 -1
- package/src/Badge/Badge.d.ts +2 -2
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.d.ts +1 -1
- package/src/CircularProgressIndicator/CircularProgressIndicator.d.ts +1 -1
- package/src/DatePicker/DatePicker.d.ts +1 -1
- package/src/DatePicker/Day.d.ts +1 -1
- package/src/DatePicker/Year.d.ts +1 -1
- package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +2 -1
- package/src/Dialer/DialDelete/DialDelete.d.ts +2 -2
- package/src/Dialer/DialPad/DialPad.d.ts +2 -2
- package/src/Dialer/DialTextField/DialTextField.d.ts +1 -1
- package/src/Dialer/Dialer.d.ts +4 -2
- package/src/Dialog/Dialog.d.ts +4 -4
- package/src/Drawer/Drawer.d.ts +1 -1
- package/src/Dropdown/Dropdown.type.d.ts +2 -2
- package/src/EmptyState/EmptyState.d.ts +1 -1
- package/src/FormField/FormField.d.ts +1 -1
- package/src/FormLabel/FormLabel.d.ts +1 -1
- package/src/Icon/Icon.d.ts +1 -1
- package/src/IconButton/IconButtonLabel.d.ts +1 -1
- package/src/InlineEditable/InlineEditable.type.d.ts +2 -1
- package/src/LinearProgressIndicator/LinearProgressIndicator.d.ts +1 -1
- package/src/List/List.d.ts +1 -1
- package/src/ListItem/ListItem.d.ts +1 -1
- package/src/ListItemText/ListItemText.d.ts +1 -1
- package/src/ListNavigation/useListNavigation.d.ts +3 -3
- package/src/Menu/Menu.d.ts +1 -1
- package/src/MenuActions/MenuActions.d.ts +3 -3
- package/src/MenuDivider/MenuDivider.d.ts +1 -1
- package/src/MenuFooter/MenuFooter.d.ts +1 -1
- package/src/MenuHeader/MenuHeader.d.ts +1 -1
- package/src/MenuItem/MenuItem.d.ts +1 -1
- package/src/MenuItem/useMenuItem.d.ts +1 -1
- package/src/MenuItem/useVirtualizedMenuItem.d.ts +1 -1
- package/src/MenuItemText/MenuItemText.d.ts +1 -1
- package/src/MenuList/MenuList.type.d.ts +1 -1
- package/src/Modal/InnerModal.d.ts +2 -16
- package/src/Modal/InnerModal.type.d.ts +1 -0
- package/src/Modal/Modal.d.ts +2 -21
- package/src/Modal/ModalContext.d.ts +3 -0
- package/src/Modal/OverlayBranchRegistry.d.ts +8 -0
- package/src/Modal/useOverlayBranch.d.ts +8 -0
- package/src/NestedMenuContext/MenuOverlayGroupContext.d.ts +2 -2
- package/src/Option/Option.d.ts +1 -1
- package/src/PageHeader/PageHeader.d.ts +5 -5
- package/src/PickerTextField/PickerTextField.d.ts +1 -1
- package/src/Popover/Popover.d.ts +1 -1
- package/src/Popper/Popper.d.ts +1 -1
- package/src/Popper/Popper.type.d.ts +10 -7
- package/src/PopperPaper/PopperPaper.d.ts +1 -1
- package/src/RadioGroup/RadioGroup.d.ts +1 -1
- package/src/Rating/Rating.d.ts +1 -1
- package/src/Rating/RatingItem.d.ts +1 -1
- package/src/Rating/utils.d.ts +3 -3
- package/src/Select/Select.type.d.ts +1 -1
- package/src/SingleFilter/FilterButton/FilterButton.d.ts +1 -1
- package/src/SingleFilter/SingleFilter.d.ts +1 -1
- package/src/Skeleton/Skeleton.d.ts +1 -1
- package/src/Slider/Slider.d.ts +2 -2
- package/src/Slider/SliderThumb.d.ts +2 -2
- package/src/Snackbar/Snackbar.d.ts +1 -1
- package/src/Snackbar/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/src/SortableListItem/SortableListItem.d.ts +1 -1
- package/src/SortableListItem/SortableListItemOverlay.d.ts +1 -1
- package/src/SplitButton/SplitButton.d.ts +1 -1
- package/src/Squircle/Squircle.d.ts +1 -1
- package/src/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/src/StepConnector/StepConnector.d.ts +1 -1
- package/src/StepContent/StepContent.d.ts +1 -1
- package/src/StepIcon/StepIcon.d.ts +1 -1
- package/src/StepLabel/StepLabel.d.ts +1 -1
- package/src/SubMenu/PopperMenu.d.ts +1 -1
- package/src/SubMenu/PopperMenu.type.d.ts +4 -1
- package/src/SubMenu/SubMenu.d.ts +1 -1
- package/src/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/src/Tab/Tab.d.ts +1 -1
- package/src/TabPanel/TabPanel.d.ts +1 -1
- package/src/TableFooter/TableFooter.d.ts +1 -1
- package/src/Tabs/TabMoreMenu.d.ts +1 -1
- package/src/Tabs/TabScrollButton.d.ts +1 -1
- package/src/Tabs/Tabs.d.ts +1 -1
- package/src/Tag/Tag.d.ts +1 -1
- package/src/TextField/TextField.d.ts +1 -1
- package/src/Textarea/Textarea.d.ts +1 -1
- package/src/TimePicker/NumberPicker.d.ts +1 -1
- package/src/TimePicker/TimeButton.d.ts +1 -1
- package/src/TimePicker/ToggleText.d.ts +1 -1
- package/src/Tray/Tray.d.ts +1 -1
- package/src/Tray/TrayPanel.d.ts +1 -1
- package/src/TrayMenu/TrayMenu.d.ts +1 -1
- package/src/TrayMenu/TrayMenuItem.d.ts +1 -1
- package/src/VirtualizedList/VirtuosoComponents.d.ts +4 -4
- package/src/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/src/internal/utils/index.d.ts +0 -1
- /package/{src/internal → internal}/utils/composeEventHandlers.d.ts +0 -0
package/index.js
CHANGED
|
@@ -171,14 +171,18 @@ export { dragHandleStyle } from './DragHandle.js';
|
|
|
171
171
|
import 'react/jsx-runtime';
|
|
172
172
|
import 'react';
|
|
173
173
|
import 'clsx';
|
|
174
|
+
import './chunks/hasContent.js';
|
|
175
|
+
import '@mui/utils';
|
|
174
176
|
import '@ringcentral/spring-icon';
|
|
175
177
|
import 'framer-motion';
|
|
176
178
|
import 'lodash/isNumber';
|
|
177
179
|
import 'lodash/kebabCase';
|
|
178
180
|
import 'lodash/isString';
|
|
179
181
|
import '@floating-ui/react-dom';
|
|
182
|
+
import './chunks/composeEventHandlers.js';
|
|
180
183
|
import 'tabbable';
|
|
181
184
|
import 'lodash/clamp';
|
|
185
|
+
import './chunks/useAnimationFrame.js';
|
|
182
186
|
import 'dayjs';
|
|
183
187
|
import '@date-io/dayjs';
|
|
184
188
|
import '@dnd-kit/utilities';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useAnimationFrame';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unstable_setRef as setRef } from '@mui/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringcentral/spring-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"author": "RingCentral",
|
|
5
5
|
"description": "A comprehensive React component library built with Tailwind CSS, featuring production-ready components",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"@dnd-kit/utilities": "^3.2.2",
|
|
15
15
|
"@floating-ui/react-dom": "2.1.1",
|
|
16
16
|
"@juggle/resize-observer": "3.4.0",
|
|
17
|
-
"@mui/base": "5.0.0-beta.
|
|
18
|
-
"@ringcentral/spring-base": "^1.
|
|
19
|
-
"@ringcentral/spring-icon": "^1.
|
|
20
|
-
"@ringcentral/spring-theme": "^1.
|
|
17
|
+
"@mui/base": "5.0.0-beta.70",
|
|
18
|
+
"@ringcentral/spring-base": "^1.12.0",
|
|
19
|
+
"@ringcentral/spring-icon": "^1.12.0",
|
|
20
|
+
"@ringcentral/spring-theme": "^1.12.0",
|
|
21
21
|
"@types/lodash": "^4.14.182",
|
|
22
22
|
"@use-gesture/react": "10.3.1",
|
|
23
23
|
"clsx": "^1.2.1",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"type-fest": "^2.12.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@types/react": "
|
|
30
|
+
"@types/react": "^17.0.3 || ^18.0.0 || ^19.0.0",
|
|
31
31
|
"dayjs": "^1.11.13",
|
|
32
|
-
"react": "
|
|
33
|
-
"react-dom": "
|
|
32
|
+
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
33
|
+
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
34
34
|
"react-virtuoso": "4.7.10"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AccordionProps } from './Accordion.type';
|
|
3
3
|
import accordionStyles from './styles/Accordion.css';
|
|
4
|
-
declare const Accordion: import("react").ForwardRefExoticComponent<
|
|
4
|
+
declare const Accordion: import("react").ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { Accordion, accordionStyles };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AccordionHeaderProps } from './AccordionHeader.type';
|
|
3
3
|
import accordionHeaderStyles from './styles/AccordionHeader.css';
|
|
4
|
-
declare const AccordionHeader: import("react").ForwardRefExoticComponent<
|
|
4
|
+
declare const AccordionHeader: import("react").ForwardRefExoticComponent<Omit<AccordionHeaderProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export { AccordionHeader, accordionHeaderStyles };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ElementType } from 'react';
|
|
2
|
-
import { OverridableComponent, OverridableProps, StandardProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
2
|
+
import { OverridableComponent, OverridableProps, SlotProps, StandardProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { IconButtonProps } from '../IconButton';
|
|
4
4
|
import { AlertClassesKey } from './Alert.classes';
|
|
5
5
|
import { AlertTitleClassesKey } from './AlertTitle.classes';
|
|
@@ -14,6 +14,7 @@ type BaseAlertProps = WithClassesProps<{
|
|
|
14
14
|
closeText?: string;
|
|
15
15
|
severity?: AlertSeverity;
|
|
16
16
|
CloseButtonProps?: IconButtonProps;
|
|
17
|
+
contentProps?: SlotProps<'div', 'children'>;
|
|
17
18
|
}, AlertClassesKey>;
|
|
18
19
|
export type AlertProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseAlertProps, T>;
|
|
19
20
|
export type AlertComponent = OverridableComponent<{
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HTMLMotionProps } from 'framer-motion';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import { GetFadeOptions } from './getFade';
|
|
4
|
-
export type FadeProps = GetFadeOptions & HTMLMotionProps<'div'
|
|
4
|
+
export type FadeProps = GetFadeOptions & Omit<HTMLMotionProps<'div'>, 'children'> & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
5
7
|
export declare const Fade: ComponentType<FadeProps>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HTMLMotionProps } from 'framer-motion';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import { GetGrowOptions } from './getGrow';
|
|
4
|
-
export type GrowProps = GetGrowOptions & HTMLMotionProps<'div'
|
|
4
|
+
export type GrowProps = GetGrowOptions & Omit<HTMLMotionProps<'div'>, 'children'> & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
5
7
|
export declare const Grow: ComponentType<GrowProps>;
|
|
@@ -4,7 +4,7 @@ import { MotionComponent } from '../types';
|
|
|
4
4
|
import { ShowHideEyeClassesKey } from './ShowHideEye.classes';
|
|
5
5
|
import showHideEyeStyles from './styles/ShowHideEye.css';
|
|
6
6
|
export type ShowHideEyeProps = WithClassesProps<{
|
|
7
|
-
hide
|
|
7
|
+
hide?: boolean;
|
|
8
8
|
} & Omit<IconProps, 'symbol' | 'classes'>, ShowHideEyeClassesKey>;
|
|
9
9
|
export declare const ShowHideEye: MotionComponent<ShowHideEyeProps>;
|
|
10
10
|
export { showHideEyeStyles };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HTMLMotionProps } from 'framer-motion';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import { GetSlideInOptions } from './getSlideIn';
|
|
4
|
-
export type SlideInProps = GetSlideInOptions & HTMLMotionProps<'div'
|
|
4
|
+
export type SlideInProps = GetSlideInOptions & Omit<HTMLMotionProps<'div'>, 'children'> & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
5
7
|
export declare const SlideIn: ComponentType<SlideInProps>;
|
|
@@ -5,5 +5,5 @@ export type GetSlideInOptions = CommonMotionOptions & {
|
|
|
5
5
|
from?: Direction;
|
|
6
6
|
transition?: Transition;
|
|
7
7
|
};
|
|
8
|
-
export declare const getSlideIn: ({ toggle, from, prefersReducedMotion, toggleOnTransition, toggleOffTransition, }?: GetSlideInOptions) => MotionProps;
|
|
8
|
+
export declare const getSlideIn: ({ toggle, from, prefersReducedMotion, toggleOnTransition, toggleOffTransition, transition, }?: GetSlideInOptions) => MotionProps;
|
|
9
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AnnouncementProps } from './Announcement.type';
|
|
3
3
|
import announcementStyles from './styles/Announcement.css';
|
|
4
|
-
declare const Announcement: import("react").ForwardRefExoticComponent<
|
|
4
|
+
declare const Announcement: import("react").ForwardRefExoticComponent<Omit<AnnouncementProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { Announcement, announcementStyles };
|
|
@@ -56,5 +56,5 @@ export declare const SuggestionList: React.ForwardRefExoticComponent<{
|
|
|
56
56
|
optionsGroupList?: SuggestionListGroupedOption<SuggestionListItemData>[] | undefined;
|
|
57
57
|
renderOption?: ((option: SuggestionListItemData, state: AutocompleteRenderOptionState) => React.ReactNode) | undefined;
|
|
58
58
|
renderGroup?: ((option: SuggestionListItemData, state: AutocompleteRenderOptionState) => React.ReactNode) | undefined;
|
|
59
|
-
} & Pick<UseSuggestionListParams, "getOptionDisabled" | "groupExpanded" | "groupVariant" | "inputValue" | "getOptionLabel"> & Omit<Partial<VirtuosoProps<SuggestionListItemData, any>>, "
|
|
59
|
+
} & Pick<UseSuggestionListParams, "getOptionDisabled" | "groupExpanded" | "groupVariant" | "inputValue" | "getOptionLabel"> & Omit<Partial<VirtuosoProps<SuggestionListItemData, any>>, "color" | "data" | "itemContent" | "totalCount"> & ClassesProp<SuggestionListClassesKey> & HTMLDataAttribute & React.RefAttributes<VirtuosoHandle>>;
|
|
60
60
|
export { suggestionListStyles };
|
|
@@ -23,4 +23,4 @@ export declare const SuggestionListItem: import("react").ForwardRefExoticCompone
|
|
|
23
23
|
highlighted?: boolean | undefined;
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
expandIconProps?: Partial<IconButtonProps> | undefined;
|
|
26
|
-
} &
|
|
26
|
+
} & Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & ClassesProp<SuggestionListClassesKey> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -58,6 +58,6 @@ export declare const useSuggestionList: <T extends SuggestionListItemData = Sugg
|
|
|
58
58
|
changeHighlightedIndexReason: SuggestionListHighlightChangeReason;
|
|
59
59
|
optionsGroupList: import("./SuggestionListItem").SuggestionListGroupedOption<T>[];
|
|
60
60
|
id: string;
|
|
61
|
-
getNextFocusableOption: (index?: number, isInfinite?:
|
|
61
|
+
getNextFocusableOption: (index?: number, isInfinite?: boolean) => number;
|
|
62
62
|
handleF10KeyDown: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
63
63
|
};
|
|
@@ -31,24 +31,30 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
31
31
|
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
32
32
|
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
33
33
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
34
|
+
content?: string | undefined;
|
|
35
|
+
translate?: "yes" | "no" | undefined;
|
|
36
|
+
hidden?: boolean | undefined;
|
|
34
37
|
slot?: string | undefined;
|
|
35
38
|
style?: import("react").CSSProperties | undefined;
|
|
36
39
|
title?: string | undefined;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
rel?: string | undefined;
|
|
41
|
+
rev?: string | undefined;
|
|
42
|
+
role?: import("react").AriaRole | undefined;
|
|
43
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
44
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
45
|
+
'aria-labelledby'?: string | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
48
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
41
49
|
className?: string | undefined;
|
|
42
|
-
|
|
50
|
+
prefix?: string | undefined;
|
|
43
51
|
dir?: string | undefined;
|
|
52
|
+
accessKey?: string | undefined;
|
|
44
53
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
45
|
-
hidden?: boolean | undefined;
|
|
46
54
|
lang?: string | undefined;
|
|
47
|
-
translate?: "yes" | "no" | undefined;
|
|
48
|
-
id?: string | undefined;
|
|
49
|
-
prefix?: string | undefined;
|
|
50
55
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
51
|
-
inputMode?: "search" | "
|
|
56
|
+
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
57
|
+
nonce?: string | undefined;
|
|
52
58
|
tabIndex?: number | undefined;
|
|
53
59
|
key?: import("react").Key | null | undefined;
|
|
54
60
|
defaultChecked?: boolean | undefined;
|
|
@@ -60,6 +66,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
60
66
|
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
61
67
|
suppressContentEditableWarning?: boolean | undefined;
|
|
62
68
|
suppressHydrationWarning?: boolean | undefined;
|
|
69
|
+
autoFocus?: boolean | undefined;
|
|
63
70
|
contextMenu?: string | undefined;
|
|
64
71
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
65
72
|
radioGroup?: string | undefined;
|
|
@@ -80,47 +87,50 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
80
87
|
itemRef?: string | undefined;
|
|
81
88
|
results?: number | undefined;
|
|
82
89
|
security?: string | undefined;
|
|
83
|
-
unselectable?: "
|
|
90
|
+
unselectable?: "off" | "on" | undefined;
|
|
84
91
|
is?: string | undefined;
|
|
85
92
|
'aria-activedescendant'?: string | undefined;
|
|
86
93
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
87
|
-
'aria-
|
|
94
|
+
'aria-braillelabel'?: string | undefined;
|
|
95
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
96
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
88
97
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
89
98
|
'aria-colcount'?: number | undefined;
|
|
90
99
|
'aria-colindex'?: number | undefined;
|
|
100
|
+
'aria-colindextext'?: string | undefined;
|
|
91
101
|
'aria-colspan'?: number | undefined;
|
|
92
102
|
'aria-controls'?: string | undefined;
|
|
93
|
-
'aria-current'?: boolean | "true" | "
|
|
103
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
94
104
|
'aria-describedby'?: string | undefined;
|
|
105
|
+
'aria-description'?: string | undefined;
|
|
95
106
|
'aria-details'?: string | undefined;
|
|
96
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
107
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
97
108
|
'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
|
|
98
109
|
'aria-errormessage'?: string | undefined;
|
|
99
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
110
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
100
111
|
'aria-flowto'?: string | undefined;
|
|
101
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
102
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" |
|
|
112
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
103
114
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
104
115
|
'aria-keyshortcuts'?: string | undefined;
|
|
105
116
|
'aria-label'?: string | undefined;
|
|
106
|
-
'aria-labelledby'?: string | undefined;
|
|
107
117
|
'aria-level'?: number | undefined;
|
|
108
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
109
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
110
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
118
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
119
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
120
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
111
121
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
112
122
|
'aria-owns'?: string | undefined;
|
|
113
123
|
'aria-placeholder'?: string | undefined;
|
|
114
124
|
'aria-posinset'?: number | undefined;
|
|
115
125
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
116
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
117
|
-
'aria-
|
|
118
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
126
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
127
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
119
128
|
'aria-roledescription'?: string | undefined;
|
|
120
129
|
'aria-rowcount'?: number | undefined;
|
|
121
130
|
'aria-rowindex'?: number | undefined;
|
|
131
|
+
'aria-rowindextext'?: string | undefined;
|
|
122
132
|
'aria-rowspan'?: number | undefined;
|
|
123
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
133
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
124
134
|
'aria-setsize'?: number | undefined;
|
|
125
135
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
126
136
|
'aria-valuemax'?: number | undefined;
|
|
@@ -128,7 +138,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
128
138
|
'aria-valuenow'?: number | undefined;
|
|
129
139
|
'aria-valuetext'?: string | undefined;
|
|
130
140
|
dangerouslySetInnerHTML?: {
|
|
131
|
-
__html: string;
|
|
141
|
+
__html: string | TrustedHTML;
|
|
132
142
|
} | undefined;
|
|
133
143
|
onCopy?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
134
144
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
@@ -194,6 +204,8 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
194
204
|
onProgressCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
195
205
|
onRateChange?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
196
206
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
207
|
+
onResize?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
208
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
197
209
|
onSeeked?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
198
210
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
199
211
|
onSeeking?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
@@ -283,22 +295,23 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
283
295
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
284
296
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
285
297
|
};
|
|
286
|
-
getClearButtonProps: (props?: PropsWithoutRef<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'color'>>) =>
|
|
298
|
+
getClearButtonProps: (props?: PropsWithoutRef<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'color'>>) => Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color">, "ref">;
|
|
287
299
|
activeIndex: number;
|
|
288
300
|
setActiveIndex: (tagToFocus: number, focus?: any) => void;
|
|
289
301
|
isOpen: boolean;
|
|
290
|
-
getToggleButtonProps: (props?: PropsWithoutRef<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>) =>
|
|
291
|
-
getPopperProps: (restPopperProps?: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) =>
|
|
302
|
+
getToggleButtonProps: (props?: PropsWithoutRef<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>) => Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">;
|
|
303
|
+
getPopperProps: (restPopperProps?: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) => Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref">;
|
|
292
304
|
getLabelProps: (props?: DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined) => import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement>;
|
|
293
305
|
getSuggestionListProps: (restMenuProps?: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> | undefined) => import("react").ClassAttributes<HTMLElement> & HTMLAttributes<HTMLElement>;
|
|
294
|
-
getInputProps: (props?: PropsWithoutRef<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>) =>
|
|
295
|
-
getInputAriaProps: (props?: PropsWithoutRef<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>) =>
|
|
306
|
+
getInputProps: (props?: PropsWithoutRef<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>) => Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">;
|
|
307
|
+
getInputAriaProps: (props?: PropsWithoutRef<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>) => Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">;
|
|
296
308
|
getTagListBoxProps: (props?: HTMLAttributes<HTMLElement> | undefined) => {
|
|
297
309
|
defaultChecked?: boolean | undefined;
|
|
298
310
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
299
311
|
suppressContentEditableWarning?: boolean | undefined;
|
|
300
312
|
suppressHydrationWarning?: boolean | undefined;
|
|
301
313
|
accessKey?: string | undefined;
|
|
314
|
+
autoFocus?: boolean | undefined;
|
|
302
315
|
className?: string | undefined;
|
|
303
316
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
304
317
|
contextMenu?: string | undefined;
|
|
@@ -307,6 +320,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
307
320
|
hidden?: boolean | undefined;
|
|
308
321
|
id?: string | undefined;
|
|
309
322
|
lang?: string | undefined;
|
|
323
|
+
nonce?: string | undefined;
|
|
310
324
|
placeholder?: string | undefined;
|
|
311
325
|
slot?: string | undefined;
|
|
312
326
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -315,13 +329,16 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
315
329
|
title?: string | undefined;
|
|
316
330
|
translate?: "yes" | "no" | undefined;
|
|
317
331
|
radioGroup?: string | undefined;
|
|
318
|
-
role?:
|
|
332
|
+
role?: import("react").AriaRole | undefined;
|
|
319
333
|
about?: string | undefined;
|
|
334
|
+
content?: string | undefined;
|
|
320
335
|
datatype?: string | undefined;
|
|
321
336
|
inlist?: any;
|
|
322
337
|
prefix?: string | undefined;
|
|
323
338
|
property?: string | undefined;
|
|
339
|
+
rel?: string | undefined;
|
|
324
340
|
resource?: string | undefined;
|
|
341
|
+
rev?: string | undefined;
|
|
325
342
|
typeof?: string | undefined;
|
|
326
343
|
vocab?: string | undefined;
|
|
327
344
|
autoCapitalize?: string | undefined;
|
|
@@ -335,51 +352,56 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
335
352
|
itemRef?: string | undefined;
|
|
336
353
|
results?: number | undefined;
|
|
337
354
|
security?: string | undefined;
|
|
338
|
-
unselectable?: "
|
|
339
|
-
inputMode?: "search" | "
|
|
355
|
+
unselectable?: "off" | "on" | undefined;
|
|
356
|
+
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
340
357
|
is?: string | undefined;
|
|
341
358
|
'aria-activedescendant'?: string | undefined;
|
|
342
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
359
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
343
360
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
344
|
-
'aria-
|
|
361
|
+
'aria-braillelabel'?: string | undefined;
|
|
362
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
363
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
345
364
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
346
365
|
'aria-colcount'?: number | undefined;
|
|
347
366
|
'aria-colindex'?: number | undefined;
|
|
367
|
+
'aria-colindextext'?: string | undefined;
|
|
348
368
|
'aria-colspan'?: number | undefined;
|
|
349
369
|
'aria-controls'?: string | undefined;
|
|
350
|
-
'aria-current'?: boolean | "true" | "
|
|
370
|
+
'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
|
|
351
371
|
'aria-describedby'?: string | undefined;
|
|
372
|
+
'aria-description'?: string | undefined;
|
|
352
373
|
'aria-details'?: string | undefined;
|
|
353
374
|
'aria-disabled': boolean | "true" | "false";
|
|
354
375
|
'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
|
|
355
376
|
'aria-errormessage'?: string | undefined;
|
|
356
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
377
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
357
378
|
'aria-flowto'?: string | undefined;
|
|
358
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
359
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" |
|
|
360
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
379
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
380
|
+
'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
|
|
381
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
361
382
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
362
383
|
'aria-keyshortcuts'?: string | undefined;
|
|
363
384
|
'aria-label'?: string | undefined;
|
|
364
385
|
'aria-labelledby'?: string | undefined;
|
|
365
386
|
'aria-level'?: number | undefined;
|
|
366
|
-
'aria-live'?: "assertive" | "
|
|
367
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
368
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
369
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
387
|
+
'aria-live'?: "assertive" | "polite" | "off" | undefined;
|
|
388
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
389
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
390
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
370
391
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
371
392
|
'aria-owns'?: string | undefined;
|
|
372
393
|
'aria-placeholder'?: string | undefined;
|
|
373
394
|
'aria-posinset'?: number | undefined;
|
|
374
395
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
375
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
376
|
-
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "
|
|
396
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
397
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
377
398
|
'aria-required': boolean | "true" | "false";
|
|
378
399
|
'aria-roledescription'?: string | undefined;
|
|
379
400
|
'aria-rowcount'?: number | undefined;
|
|
380
401
|
'aria-rowindex'?: number | undefined;
|
|
402
|
+
'aria-rowindextext'?: string | undefined;
|
|
381
403
|
'aria-rowspan'?: number | undefined;
|
|
382
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
404
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
383
405
|
'aria-setsize'?: number | undefined;
|
|
384
406
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
385
407
|
'aria-valuemax'?: number | undefined;
|
|
@@ -388,7 +410,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
388
410
|
'aria-valuetext'?: string | undefined;
|
|
389
411
|
children?: import("react").ReactNode;
|
|
390
412
|
dangerouslySetInnerHTML?: {
|
|
391
|
-
__html: string;
|
|
413
|
+
__html: string | TrustedHTML;
|
|
392
414
|
} | undefined;
|
|
393
415
|
onCopy?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
394
416
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
@@ -458,6 +480,8 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
458
480
|
onProgressCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
459
481
|
onRateChange?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
460
482
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
483
|
+
onResize?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
484
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
461
485
|
onSeeked?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
462
486
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
463
487
|
onSeeking?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
@@ -552,7 +576,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
552
576
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
553
577
|
};
|
|
554
578
|
getItemProps: (props: SuggestionListGetItemPropsOptions<T>) => import("./SuggestionList").SuggestionListItemProps;
|
|
555
|
-
getNoOptionsProps: (additionProps: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) =>
|
|
579
|
+
getNoOptionsProps: (additionProps: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) => Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref">;
|
|
556
580
|
noOptionItem: T | null;
|
|
557
581
|
highlightedIndex: number;
|
|
558
582
|
tags: T[];
|