@ringcentral/spring-ui 1.11.1 → 1.11.2
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/Autocomplete.js +2 -0
- package/Dropdown.js +1 -0
- package/ListItem.js +1 -0
- package/ListItemText.js +8 -3
- package/MenuHeader.js +4 -1
- package/MenuItem.js +1 -0
- package/MenuItemText.js +1 -0
- package/MenuList.js +1 -0
- package/Option.js +1 -0
- package/Select.js +1 -0
- package/SingleFilter.js +2 -0
- package/SortableListItem.js +1 -0
- package/SortableVirtualizedList.js +1 -0
- package/SplitButton.js +1 -0
- package/SubMenu.js +2 -0
- package/SwipeableDrawer.js +16 -18
- package/TablePagination.js +2 -0
- package/Tabs.js +2 -0
- package/TrayMenu.js +1 -0
- package/VirtualizedList.js +4 -3
- package/VirtualizedMenu.js +1 -0
- package/chunks/MenuItemText.js +2 -1
- package/chunks/Modal.js +132 -8
- package/chunks/VirtualizedMenu.js +2 -0
- package/chunks/hasContent.js +3 -0
- package/chunks/useAnimationFrame.js +15 -0
- package/chunks/useMenuItemSelect.js +3 -1
- package/index.js +2 -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/{src/internal → internal}/utils/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/Accordion/Accordion.d.ts +1 -1
- package/src/AccordionHeader/AccordionHeader.d.ts +1 -1
- package/src/Announcement/Announcement.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 +63 -39
- package/src/Autocomplete/useAutocompleteTag.d.ts +57 -33
- package/src/Backdrop/Backdrop.d.ts +1 -1
- package/src/Badge/Badge.d.ts +1 -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/Dialer/DialTextField/DialTextField.d.ts +1 -1
- package/src/Dialog/Dialog.d.ts +4 -4
- package/src/Drawer/Drawer.d.ts +1 -1
- 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/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 +2 -2
- package/src/Menu/Menu.d.ts +1 -1
- package/src/MenuActions/MenuActions.d.ts +2 -2
- 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/MenuItemText/MenuItemText.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 +1 -1
- 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/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 +2 -3
- 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 +1 -1
- package/src/Slider/SliderThumb.d.ts +1 -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/StatusIndicator/StatusIndicator.d.ts +1 -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/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 → internal}/utils/composeEventHandlers.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringcentral/spring-ui",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
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",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"@floating-ui/react-dom": "2.1.1",
|
|
16
16
|
"@juggle/resize-observer": "3.4.0",
|
|
17
17
|
"@mui/base": "5.0.0-beta.40",
|
|
18
|
-
"@ringcentral/spring-base": "^1.11.
|
|
19
|
-
"@ringcentral/spring-icon": "^1.11.
|
|
20
|
-
"@ringcentral/spring-theme": "^1.11.
|
|
18
|
+
"@ringcentral/spring-base": "^1.11.2",
|
|
19
|
+
"@ringcentral/spring-icon": "^1.11.2",
|
|
20
|
+
"@ringcentral/spring-theme": "^1.11.2",
|
|
21
21
|
"@types/lodash": "^4.14.182",
|
|
22
22
|
"@use-gesture/react": "10.3.1",
|
|
23
23
|
"clsx": "^1.2.1",
|
|
@@ -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
|
/// <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 };
|
|
@@ -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
|
};
|
|
@@ -35,31 +35,34 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
35
35
|
style?: import("react").CSSProperties | undefined;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
'aria-live'?: "assertive" | "off" | "polite" | undefined;
|
|
38
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
39
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
40
|
-
role?: string | undefined;
|
|
38
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
39
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
41
40
|
className?: string | undefined;
|
|
42
|
-
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
prefix?: string | undefined;
|
|
43
|
+
role?: import("react").AriaRole | undefined;
|
|
43
44
|
dir?: string | undefined;
|
|
45
|
+
accessKey?: string | undefined;
|
|
44
46
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
45
47
|
hidden?: boolean | undefined;
|
|
46
48
|
lang?: string | undefined;
|
|
47
49
|
translate?: "yes" | "no" | undefined;
|
|
48
|
-
id?: string | undefined;
|
|
49
|
-
prefix?: string | undefined;
|
|
50
50
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
51
|
-
inputMode?: "search" | "
|
|
51
|
+
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
52
|
+
nonce?: string | undefined;
|
|
52
53
|
tabIndex?: number | undefined;
|
|
53
54
|
key?: import("react").Key | null | undefined;
|
|
54
55
|
defaultChecked?: boolean | undefined;
|
|
55
56
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
56
57
|
placeholder?: string | undefined;
|
|
58
|
+
content?: string | undefined;
|
|
57
59
|
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
58
60
|
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
59
61
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
60
62
|
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
61
63
|
suppressContentEditableWarning?: boolean | undefined;
|
|
62
64
|
suppressHydrationWarning?: boolean | undefined;
|
|
65
|
+
autoFocus?: boolean | undefined;
|
|
63
66
|
contextMenu?: string | undefined;
|
|
64
67
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
65
68
|
radioGroup?: string | undefined;
|
|
@@ -67,7 +70,9 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
67
70
|
datatype?: string | undefined;
|
|
68
71
|
inlist?: any;
|
|
69
72
|
property?: string | undefined;
|
|
73
|
+
rel?: string | undefined;
|
|
70
74
|
resource?: string | undefined;
|
|
75
|
+
rev?: string | undefined;
|
|
71
76
|
typeof?: string | undefined;
|
|
72
77
|
vocab?: string | undefined;
|
|
73
78
|
autoCapitalize?: string | undefined;
|
|
@@ -84,43 +89,48 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
84
89
|
is?: string | undefined;
|
|
85
90
|
'aria-activedescendant'?: string | undefined;
|
|
86
91
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
87
|
-
'aria-
|
|
92
|
+
'aria-braillelabel'?: string | undefined;
|
|
93
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
94
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
88
95
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
89
96
|
'aria-colcount'?: number | undefined;
|
|
90
97
|
'aria-colindex'?: number | undefined;
|
|
98
|
+
'aria-colindextext'?: string | undefined;
|
|
91
99
|
'aria-colspan'?: number | undefined;
|
|
92
100
|
'aria-controls'?: string | undefined;
|
|
93
101
|
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
94
102
|
'aria-describedby'?: string | undefined;
|
|
103
|
+
'aria-description'?: string | undefined;
|
|
95
104
|
'aria-details'?: string | undefined;
|
|
96
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
105
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
97
106
|
'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
|
|
98
107
|
'aria-errormessage'?: string | undefined;
|
|
99
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
108
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
100
109
|
'aria-flowto'?: string | undefined;
|
|
101
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
102
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "
|
|
110
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
111
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
103
112
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
104
113
|
'aria-keyshortcuts'?: string | undefined;
|
|
105
114
|
'aria-label'?: string | undefined;
|
|
106
115
|
'aria-labelledby'?: string | undefined;
|
|
107
116
|
'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;
|
|
117
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
118
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
119
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
111
120
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
112
121
|
'aria-owns'?: string | undefined;
|
|
113
122
|
'aria-placeholder'?: string | undefined;
|
|
114
123
|
'aria-posinset'?: number | undefined;
|
|
115
124
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
116
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
125
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
117
126
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
118
|
-
'aria-required'?: 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;
|
|
@@ -336,50 +353,55 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
336
353
|
results?: number | undefined;
|
|
337
354
|
security?: string | undefined;
|
|
338
355
|
unselectable?: "on" | "off" | undefined;
|
|
339
|
-
inputMode?: "search" | "
|
|
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
370
|
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "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" | "
|
|
360
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
379
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
380
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "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
387
|
'aria-live'?: "assertive" | "off" | "polite" | undefined;
|
|
367
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
368
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
369
|
-
'aria-multiselectable'?: boolean | "true" | "false" | 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;
|
|
396
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
376
397
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "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[];
|