@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.
Files changed (174) hide show
  1. package/AccordionHeader.js +4 -2
  2. package/Animation.js +10 -9
  3. package/Autocomplete.js +7 -2
  4. package/BlockHeader.js +3 -1
  5. package/DatePicker.js +5 -3
  6. package/Dialer.js +36 -21
  7. package/Dialog.js +4 -3
  8. package/Dropdown.js +8 -4
  9. package/EmptyState.js +3 -1
  10. package/FormField.js +2 -0
  11. package/ListItem.js +1 -0
  12. package/ListItemText.js +9 -3
  13. package/MenuHeader.js +5 -1
  14. package/MenuItem.js +3 -0
  15. package/MenuItemText.js +2 -0
  16. package/MenuList.js +3 -0
  17. package/Option.js +4 -1
  18. package/PickerTextField.js +2 -0
  19. package/Popper.js +28 -25
  20. package/Rating.js +2 -2
  21. package/Select.js +4 -0
  22. package/SingleFilter.js +4 -0
  23. package/Slider.js +3 -2
  24. package/SortableListItem.js +1 -0
  25. package/SortableVirtualizedList.js +11 -10
  26. package/SplitButton.js +4 -0
  27. package/Squircle.js +2 -2
  28. package/StepContent.js +1 -1
  29. package/SubMenu.js +4 -0
  30. package/SwipeableDrawer.js +16 -18
  31. package/TableCell.js +1 -1
  32. package/TablePagination.js +4 -0
  33. package/Tabs.js +11 -5
  34. package/TextField.js +2 -0
  35. package/Textarea.js +2 -0
  36. package/TimePicker.js +3 -1
  37. package/TrayMenu.js +3 -0
  38. package/VirtualizedList.js +7 -5
  39. package/VirtualizedMenu.js +1 -0
  40. package/chunks/Alert.js +2 -2
  41. package/chunks/Badge.js +1 -1
  42. package/chunks/Drawer.js +3 -2
  43. package/chunks/MenuItemText.js +3 -1
  44. package/chunks/MenuList.js +2 -1
  45. package/chunks/Modal.js +132 -9
  46. package/chunks/Popover.js +13 -5
  47. package/chunks/Select.js +26 -21
  48. package/chunks/SlideIn.js +2 -1
  49. package/chunks/Squircle.js +2 -2
  50. package/chunks/VirtualizedMenu.js +5 -5
  51. package/chunks/composeEventHandlers.js +10 -0
  52. package/chunks/getSlideIn.js +2 -2
  53. package/chunks/hasContent.js +3 -0
  54. package/chunks/useAnimationFrame.js +15 -0
  55. package/chunks/useFocusTrapStack.js +3 -1
  56. package/chunks/useHelperTextId.js +4 -2
  57. package/chunks/useMenuItemSelect.js +37 -26
  58. package/index.css +205 -172
  59. package/index.js +4 -0
  60. package/internal/hooks/index.d.ts +1 -0
  61. package/internal/hooks/useAnimationFrame.d.ts +4 -0
  62. package/internal/utils/hasContent.d.ts +2 -0
  63. package/internal/utils/index.d.ts +3 -0
  64. package/internal/utils/setRef.d.ts +1 -0
  65. package/package.json +8 -8
  66. package/src/Accordion/Accordion.d.ts +1 -1
  67. package/src/AccordionHeader/AccordionHeader.d.ts +1 -1
  68. package/src/Alert/Alert.type.d.ts +2 -1
  69. package/src/Animation/components/Fade/Fade.d.ts +4 -2
  70. package/src/Animation/components/Grow/Grow.d.ts +4 -2
  71. package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +1 -1
  72. package/src/Animation/components/SlideIn/SlideIn.d.ts +4 -2
  73. package/src/Animation/components/SlideIn/getSlideIn.d.ts +1 -1
  74. package/src/Announcement/Announcement.d.ts +1 -1
  75. package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +1 -1
  76. package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +1 -1
  77. package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +1 -1
  78. package/src/Autocomplete/useAutocomplete.d.ts +74 -50
  79. package/src/Autocomplete/useAutocompleteTag.d.ts +68 -44
  80. package/src/Backdrop/Backdrop.d.ts +1 -1
  81. package/src/Badge/Badge.d.ts +2 -2
  82. package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.d.ts +1 -1
  83. package/src/CircularProgressIndicator/CircularProgressIndicator.d.ts +1 -1
  84. package/src/DatePicker/DatePicker.d.ts +1 -1
  85. package/src/DatePicker/Day.d.ts +1 -1
  86. package/src/DatePicker/Year.d.ts +1 -1
  87. package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +2 -1
  88. package/src/Dialer/DialDelete/DialDelete.d.ts +2 -2
  89. package/src/Dialer/DialPad/DialPad.d.ts +2 -2
  90. package/src/Dialer/DialTextField/DialTextField.d.ts +1 -1
  91. package/src/Dialer/Dialer.d.ts +4 -2
  92. package/src/Dialog/Dialog.d.ts +4 -4
  93. package/src/Drawer/Drawer.d.ts +1 -1
  94. package/src/Dropdown/Dropdown.type.d.ts +2 -2
  95. package/src/EmptyState/EmptyState.d.ts +1 -1
  96. package/src/FormField/FormField.d.ts +1 -1
  97. package/src/FormLabel/FormLabel.d.ts +1 -1
  98. package/src/Icon/Icon.d.ts +1 -1
  99. package/src/IconButton/IconButtonLabel.d.ts +1 -1
  100. package/src/InlineEditable/InlineEditable.type.d.ts +2 -1
  101. package/src/LinearProgressIndicator/LinearProgressIndicator.d.ts +1 -1
  102. package/src/List/List.d.ts +1 -1
  103. package/src/ListItem/ListItem.d.ts +1 -1
  104. package/src/ListItemText/ListItemText.d.ts +1 -1
  105. package/src/ListNavigation/useListNavigation.d.ts +3 -3
  106. package/src/Menu/Menu.d.ts +1 -1
  107. package/src/MenuActions/MenuActions.d.ts +3 -3
  108. package/src/MenuDivider/MenuDivider.d.ts +1 -1
  109. package/src/MenuFooter/MenuFooter.d.ts +1 -1
  110. package/src/MenuHeader/MenuHeader.d.ts +1 -1
  111. package/src/MenuItem/MenuItem.d.ts +1 -1
  112. package/src/MenuItem/useMenuItem.d.ts +1 -1
  113. package/src/MenuItem/useVirtualizedMenuItem.d.ts +1 -1
  114. package/src/MenuItemText/MenuItemText.d.ts +1 -1
  115. package/src/MenuList/MenuList.type.d.ts +1 -1
  116. package/src/Modal/InnerModal.d.ts +2 -16
  117. package/src/Modal/InnerModal.type.d.ts +1 -0
  118. package/src/Modal/Modal.d.ts +2 -21
  119. package/src/Modal/ModalContext.d.ts +3 -0
  120. package/src/Modal/OverlayBranchRegistry.d.ts +8 -0
  121. package/src/Modal/useOverlayBranch.d.ts +8 -0
  122. package/src/NestedMenuContext/MenuOverlayGroupContext.d.ts +2 -2
  123. package/src/Option/Option.d.ts +1 -1
  124. package/src/PageHeader/PageHeader.d.ts +5 -5
  125. package/src/PickerTextField/PickerTextField.d.ts +1 -1
  126. package/src/Popover/Popover.d.ts +1 -1
  127. package/src/Popper/Popper.d.ts +1 -1
  128. package/src/Popper/Popper.type.d.ts +10 -7
  129. package/src/PopperPaper/PopperPaper.d.ts +1 -1
  130. package/src/RadioGroup/RadioGroup.d.ts +1 -1
  131. package/src/Rating/Rating.d.ts +1 -1
  132. package/src/Rating/RatingItem.d.ts +1 -1
  133. package/src/Rating/utils.d.ts +3 -3
  134. package/src/Select/Select.type.d.ts +1 -1
  135. package/src/SingleFilter/FilterButton/FilterButton.d.ts +1 -1
  136. package/src/SingleFilter/SingleFilter.d.ts +1 -1
  137. package/src/Skeleton/Skeleton.d.ts +1 -1
  138. package/src/Slider/Slider.d.ts +2 -2
  139. package/src/Slider/SliderThumb.d.ts +2 -2
  140. package/src/Snackbar/Snackbar.d.ts +1 -1
  141. package/src/Snackbar/SnackbarContent/SnackbarContent.d.ts +1 -1
  142. package/src/SortableListItem/SortableListItem.d.ts +1 -1
  143. package/src/SortableListItem/SortableListItemOverlay.d.ts +1 -1
  144. package/src/SplitButton/SplitButton.d.ts +1 -1
  145. package/src/Squircle/Squircle.d.ts +1 -1
  146. package/src/StatusIndicator/StatusIndicator.d.ts +2 -2
  147. package/src/StepConnector/StepConnector.d.ts +1 -1
  148. package/src/StepContent/StepContent.d.ts +1 -1
  149. package/src/StepIcon/StepIcon.d.ts +1 -1
  150. package/src/StepLabel/StepLabel.d.ts +1 -1
  151. package/src/SubMenu/PopperMenu.d.ts +1 -1
  152. package/src/SubMenu/PopperMenu.type.d.ts +4 -1
  153. package/src/SubMenu/SubMenu.d.ts +1 -1
  154. package/src/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
  155. package/src/Tab/Tab.d.ts +1 -1
  156. package/src/TabPanel/TabPanel.d.ts +1 -1
  157. package/src/TableFooter/TableFooter.d.ts +1 -1
  158. package/src/Tabs/TabMoreMenu.d.ts +1 -1
  159. package/src/Tabs/TabScrollButton.d.ts +1 -1
  160. package/src/Tabs/Tabs.d.ts +1 -1
  161. package/src/Tag/Tag.d.ts +1 -1
  162. package/src/TextField/TextField.d.ts +1 -1
  163. package/src/Textarea/Textarea.d.ts +1 -1
  164. package/src/TimePicker/NumberPicker.d.ts +1 -1
  165. package/src/TimePicker/TimeButton.d.ts +1 -1
  166. package/src/TimePicker/ToggleText.d.ts +1 -1
  167. package/src/Tray/Tray.d.ts +1 -1
  168. package/src/Tray/TrayPanel.d.ts +1 -1
  169. package/src/TrayMenu/TrayMenu.d.ts +1 -1
  170. package/src/TrayMenu/TrayMenuItem.d.ts +1 -1
  171. package/src/VirtualizedList/VirtuosoComponents.d.ts +4 -4
  172. package/src/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  173. package/src/internal/utils/index.d.ts +0 -1
  174. /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,4 @@
1
+ export declare function useAnimationFrame(): {
2
+ requestAnimationFrame: (callback: FrameRequestCallback) => number;
3
+ cancelAnimationFrame: (handle: number) => void;
4
+ };
@@ -0,0 +1,2 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare const hasContent: (content: ReactNode) => boolean;
@@ -0,0 +1,3 @@
1
+ export * from './composeEventHandlers';
2
+ export * from './hasContent';
3
+ export * from './setRef';
@@ -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.11.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.40",
18
- "@ringcentral/spring-base": "^1.11.1",
19
- "@ringcentral/spring-icon": "^1.11.1",
20
- "@ringcentral/spring-theme": "^1.11.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": ">=17.0.3",
30
+ "@types/react": "^17.0.3 || ^18.0.0 || ^19.0.0",
31
31
  "dayjs": "^1.11.13",
32
- "react": ">=17.0.2",
33
- "react-dom": ">=17.0.2",
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<Pick<AccordionProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "header" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "classes" | "expanded" | "className" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "keepMounted" | "defaultExpanded"> & import("react").RefAttributes<HTMLDivElement>>;
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<Pick<AccordionHeaderProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "form" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "classes" | "name" | "className" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "type" | "onFocusVisible" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "autoFocus" | "formEncType" | "secondarySlot" | "expandIcon" | "ExpandCollapseCaretProps"> & import("react").RefAttributes<HTMLButtonElement>>;
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: boolean;
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<Pick<AnnouncementProps, "classes" | "key" | "action" | `data-${string}` | keyof import("react").HTMLAttributes<HTMLDivElement> | "component" | "icon" | "onClose" | "startSlot" | "closeText" | "severity" | "CloseButtonProps"> & import("react").RefAttributes<HTMLDivElement>>;
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>>, "data" | "color" | "itemContent" | "totalCount"> & ClassesProp<SuggestionListClassesKey> & HTMLDataAttribute & React.RefAttributes<VirtuosoHandle>>;
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
- } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof HTMLAttributes<HTMLElement>> & ClassesProp<SuggestionListClassesKey> & import("react").RefAttributes<HTMLDivElement>>;
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?: any) => number;
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
- 'aria-live'?: "assertive" | "off" | "polite" | undefined;
38
- 'aria-atomic'?: boolean | "true" | "false" | undefined;
39
- 'aria-hidden'?: boolean | "true" | "false" | undefined;
40
- role?: string | undefined;
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
- accessKey?: string | undefined;
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" | "none" | "text" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
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?: "on" | "off" | undefined;
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-busy'?: boolean | "true" | "false" | undefined;
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" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
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" | "grid" | undefined;
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-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;
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'>>) => Pick<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color">, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "form" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "name" | "className" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "type" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formEncType">;
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>>) => Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof ButtonHTMLAttributes<HTMLButtonElement>>;
291
- getPopperProps: (restPopperProps?: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) => Pick<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof HTMLAttributes<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>>) => Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof InputHTMLAttributes<HTMLInputElement>>;
295
- getInputAriaProps: (props?: PropsWithoutRef<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>) => Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof InputHTMLAttributes<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?: string | undefined;
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?: "on" | "off" | undefined;
339
- inputMode?: "search" | "none" | "text" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
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-busy'?: boolean | "true" | "false" | undefined;
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" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
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" | "grid" | undefined;
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" | "off" | "polite" | undefined;
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" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
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>>) => Pick<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof HTMLAttributes<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[];