@ringcentral/spring-ui 1.11.2 → 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 (86) hide show
  1. package/AccordionHeader.js +4 -2
  2. package/Animation.js +10 -9
  3. package/Autocomplete.js +5 -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 +7 -4
  9. package/EmptyState.js +3 -1
  10. package/FormField.js +2 -0
  11. package/ListItemText.js +1 -0
  12. package/MenuHeader.js +1 -0
  13. package/MenuItem.js +2 -0
  14. package/MenuItemText.js +1 -0
  15. package/MenuList.js +2 -0
  16. package/Option.js +3 -1
  17. package/PickerTextField.js +2 -0
  18. package/Popper.js +28 -25
  19. package/Rating.js +2 -2
  20. package/Select.js +3 -0
  21. package/SingleFilter.js +2 -0
  22. package/Slider.js +3 -2
  23. package/SortableVirtualizedList.js +10 -10
  24. package/SplitButton.js +3 -0
  25. package/Squircle.js +2 -2
  26. package/StepContent.js +1 -1
  27. package/SubMenu.js +2 -0
  28. package/TableCell.js +1 -1
  29. package/TablePagination.js +2 -0
  30. package/Tabs.js +9 -5
  31. package/TextField.js +2 -0
  32. package/Textarea.js +2 -0
  33. package/TimePicker.js +3 -1
  34. package/TrayMenu.js +2 -0
  35. package/VirtualizedList.js +3 -2
  36. package/chunks/Alert.js +2 -2
  37. package/chunks/Badge.js +1 -1
  38. package/chunks/Drawer.js +3 -2
  39. package/chunks/MenuItemText.js +1 -0
  40. package/chunks/MenuList.js +2 -1
  41. package/chunks/Modal.js +2 -3
  42. package/chunks/Popover.js +13 -5
  43. package/chunks/Select.js +26 -21
  44. package/chunks/SlideIn.js +2 -1
  45. package/chunks/Squircle.js +2 -2
  46. package/chunks/VirtualizedMenu.js +3 -5
  47. package/chunks/composeEventHandlers.js +10 -0
  48. package/chunks/getSlideIn.js +2 -2
  49. package/chunks/useFocusTrapStack.js +3 -1
  50. package/chunks/useHelperTextId.js +4 -2
  51. package/chunks/useMenuItemSelect.js +34 -25
  52. package/index.css +205 -172
  53. package/index.js +3 -1
  54. package/internal/utils/index.d.ts +1 -0
  55. package/internal/utils/setRef.d.ts +1 -0
  56. package/package.json +8 -8
  57. package/src/Alert/Alert.type.d.ts +2 -1
  58. package/src/Animation/components/Fade/Fade.d.ts +4 -2
  59. package/src/Animation/components/Grow/Grow.d.ts +4 -2
  60. package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +1 -1
  61. package/src/Animation/components/SlideIn/SlideIn.d.ts +4 -2
  62. package/src/Animation/components/SlideIn/getSlideIn.d.ts +1 -1
  63. package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +1 -1
  64. package/src/Autocomplete/useAutocomplete.d.ts +18 -18
  65. package/src/Autocomplete/useAutocompleteTag.d.ts +18 -18
  66. package/src/Badge/Badge.d.ts +2 -1
  67. package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +2 -1
  68. package/src/Dialer/DialDelete/DialDelete.d.ts +2 -2
  69. package/src/Dialer/DialPad/DialPad.d.ts +2 -2
  70. package/src/Dialer/Dialer.d.ts +4 -2
  71. package/src/Dropdown/Dropdown.type.d.ts +2 -2
  72. package/src/InlineEditable/InlineEditable.type.d.ts +2 -1
  73. package/src/ListNavigation/useListNavigation.d.ts +3 -3
  74. package/src/MenuActions/MenuActions.d.ts +2 -2
  75. package/src/MenuItem/useMenuItem.d.ts +1 -1
  76. package/src/MenuItem/useVirtualizedMenuItem.d.ts +1 -1
  77. package/src/MenuList/MenuList.type.d.ts +1 -1
  78. package/src/NestedMenuContext/MenuOverlayGroupContext.d.ts +2 -2
  79. package/src/Popper/Popper.type.d.ts +10 -7
  80. package/src/Rating/utils.d.ts +3 -2
  81. package/src/Select/Select.type.d.ts +1 -1
  82. package/src/Slider/Slider.d.ts +2 -2
  83. package/src/Slider/SliderThumb.d.ts +2 -1
  84. package/src/Squircle/Squircle.d.ts +1 -1
  85. package/src/StatusIndicator/StatusIndicator.d.ts +2 -1
  86. package/src/SubMenu/PopperMenu.type.d.ts +4 -1
package/index.js CHANGED
@@ -171,15 +171,17 @@ 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';
182
- import './chunks/hasContent.js';
183
185
  import './chunks/useAnimationFrame.js';
184
186
  import 'dayjs';
185
187
  import '@date-io/dayjs';
@@ -1,2 +1,3 @@
1
1
  export * from './composeEventHandlers';
2
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.2",
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.2",
19
- "@ringcentral/spring-icon": "^1.11.2",
20
- "@ringcentral/spring-theme": "^1.11.2",
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
  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 {};
@@ -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 };
@@ -31,22 +31,27 @@ 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;
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;
38
47
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
39
48
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
40
49
  className?: string | undefined;
41
- id?: string | undefined;
42
50
  prefix?: string | undefined;
43
- role?: import("react").AriaRole | undefined;
44
51
  dir?: string | undefined;
45
52
  accessKey?: string | undefined;
46
53
  draggable?: (boolean | "true" | "false") | undefined;
47
- hidden?: boolean | undefined;
48
54
  lang?: string | undefined;
49
- translate?: "yes" | "no" | undefined;
50
55
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
51
56
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
52
57
  nonce?: string | undefined;
@@ -55,7 +60,6 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
55
60
  defaultChecked?: boolean | undefined;
56
61
  defaultValue?: string | number | readonly string[] | undefined;
57
62
  placeholder?: string | undefined;
58
- content?: string | undefined;
59
63
  onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
60
64
  onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
61
65
  onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
@@ -70,9 +74,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
70
74
  datatype?: string | undefined;
71
75
  inlist?: any;
72
76
  property?: string | undefined;
73
- rel?: string | undefined;
74
77
  resource?: string | undefined;
75
- rev?: string | undefined;
76
78
  typeof?: string | undefined;
77
79
  vocab?: string | undefined;
78
80
  autoCapitalize?: string | undefined;
@@ -85,7 +87,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
85
87
  itemRef?: string | undefined;
86
88
  results?: number | undefined;
87
89
  security?: string | undefined;
88
- unselectable?: "on" | "off" | undefined;
90
+ unselectable?: "off" | "on" | undefined;
89
91
  is?: string | undefined;
90
92
  'aria-activedescendant'?: string | undefined;
91
93
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
@@ -98,7 +100,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
98
100
  'aria-colindextext'?: string | undefined;
99
101
  'aria-colspan'?: number | undefined;
100
102
  'aria-controls'?: string | undefined;
101
- 'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
103
+ 'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
102
104
  'aria-describedby'?: string | undefined;
103
105
  'aria-description'?: string | undefined;
104
106
  'aria-details'?: string | undefined;
@@ -108,11 +110,10 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
108
110
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
109
111
  'aria-flowto'?: string | undefined;
110
112
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
111
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
113
+ 'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
112
114
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
113
115
  'aria-keyshortcuts'?: string | undefined;
114
116
  'aria-label'?: string | undefined;
115
- 'aria-labelledby'?: string | undefined;
116
117
  'aria-level'?: number | undefined;
117
118
  'aria-modal'?: (boolean | "true" | "false") | undefined;
118
119
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
@@ -123,7 +124,6 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
123
124
  'aria-posinset'?: number | undefined;
124
125
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
125
126
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
126
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
127
127
  'aria-required'?: (boolean | "true" | "false") | undefined;
128
128
  'aria-roledescription'?: string | undefined;
129
129
  'aria-rowcount'?: number | undefined;
@@ -352,7 +352,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
352
352
  itemRef?: string | undefined;
353
353
  results?: number | undefined;
354
354
  security?: string | undefined;
355
- unselectable?: "on" | "off" | undefined;
355
+ unselectable?: "off" | "on" | undefined;
356
356
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
357
357
  is?: string | undefined;
358
358
  'aria-activedescendant'?: string | undefined;
@@ -367,7 +367,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
367
367
  'aria-colindextext'?: string | undefined;
368
368
  'aria-colspan'?: number | undefined;
369
369
  'aria-controls'?: string | undefined;
370
- 'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
370
+ 'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
371
371
  'aria-describedby'?: string | undefined;
372
372
  'aria-description'?: string | undefined;
373
373
  'aria-details'?: string | undefined;
@@ -377,14 +377,14 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
377
377
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
378
378
  'aria-flowto'?: string | undefined;
379
379
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
380
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
380
+ 'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
381
381
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
382
382
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
383
383
  'aria-keyshortcuts'?: string | undefined;
384
384
  'aria-label'?: string | undefined;
385
385
  'aria-labelledby'?: string | undefined;
386
386
  'aria-level'?: number | undefined;
387
- 'aria-live'?: "assertive" | "off" | "polite" | undefined;
387
+ 'aria-live'?: "assertive" | "polite" | "off" | undefined;
388
388
  'aria-modal'?: (boolean | "true" | "false") | undefined;
389
389
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
390
390
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
@@ -394,7 +394,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
394
394
  'aria-posinset'?: number | undefined;
395
395
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
396
396
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
397
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
397
+ 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
398
398
  'aria-required': boolean | "true" | "false";
399
399
  'aria-roledescription'?: string | undefined;
400
400
  'aria-rowcount'?: number | undefined;
@@ -84,7 +84,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
84
84
  itemRef?: string | undefined;
85
85
  results?: number | undefined;
86
86
  security?: string | undefined;
87
- unselectable?: "on" | "off" | undefined;
87
+ unselectable?: "off" | "on" | undefined;
88
88
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
89
89
  is?: string | undefined;
90
90
  'aria-activedescendant'?: string | undefined;
@@ -99,7 +99,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
99
99
  'aria-colindextext'?: string | undefined;
100
100
  'aria-colspan'?: number | undefined;
101
101
  'aria-controls'?: string | undefined;
102
- 'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
102
+ 'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
103
103
  'aria-describedby'?: string | undefined;
104
104
  'aria-description'?: string | undefined;
105
105
  'aria-details'?: string | undefined;
@@ -109,14 +109,14 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
109
109
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
110
110
  'aria-flowto'?: string | undefined;
111
111
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
112
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
112
+ 'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
113
113
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
114
114
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
115
115
  'aria-keyshortcuts'?: string | undefined;
116
116
  'aria-label'?: string | undefined;
117
117
  'aria-labelledby'?: string | undefined;
118
118
  'aria-level'?: number | undefined;
119
- 'aria-live'?: "assertive" | "off" | "polite" | undefined;
119
+ 'aria-live'?: "assertive" | "polite" | "off" | undefined;
120
120
  'aria-modal'?: (boolean | "true" | "false") | undefined;
121
121
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
122
122
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
@@ -126,7 +126,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
126
126
  'aria-posinset'?: number | undefined;
127
127
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
128
128
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
129
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
129
+ 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
130
130
  'aria-required': boolean | "true" | "false";
131
131
  'aria-roledescription'?: string | undefined;
132
132
  'aria-rowcount'?: number | undefined;
@@ -317,22 +317,27 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
317
317
  onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
318
318
  onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
319
319
  onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
320
+ content?: string | undefined;
321
+ translate?: "yes" | "no" | undefined;
322
+ hidden?: boolean | undefined;
320
323
  slot?: string | undefined;
321
324
  style?: import("react").CSSProperties | undefined;
322
325
  title?: string | undefined;
323
- 'aria-live'?: "assertive" | "off" | "polite" | undefined;
326
+ rel?: string | undefined;
327
+ rev?: string | undefined;
328
+ role?: import("react").AriaRole | undefined;
329
+ 'aria-live'?: "assertive" | "polite" | "off" | undefined;
330
+ 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
331
+ 'aria-labelledby'?: string | undefined;
332
+ id?: string | undefined;
324
333
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
325
334
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
326
335
  className?: string | undefined;
327
- id?: string | undefined;
328
336
  prefix?: string | undefined;
329
- role?: import("react").AriaRole | undefined;
330
337
  dir?: string | undefined;
331
338
  accessKey?: string | undefined;
332
339
  draggable?: (boolean | "true" | "false") | undefined;
333
- hidden?: boolean | undefined;
334
340
  lang?: string | undefined;
335
- translate?: "yes" | "no" | undefined;
336
341
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
337
342
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
338
343
  nonce?: string | undefined;
@@ -341,7 +346,6 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
341
346
  defaultChecked?: boolean | undefined;
342
347
  defaultValue?: string | number | readonly string[] | undefined;
343
348
  placeholder?: string | undefined;
344
- content?: string | undefined;
345
349
  onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
346
350
  onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
347
351
  onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
@@ -356,9 +360,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
356
360
  datatype?: string | undefined;
357
361
  inlist?: any;
358
362
  property?: string | undefined;
359
- rel?: string | undefined;
360
363
  resource?: string | undefined;
361
- rev?: string | undefined;
362
364
  typeof?: string | undefined;
363
365
  vocab?: string | undefined;
364
366
  autoCapitalize?: string | undefined;
@@ -371,7 +373,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
371
373
  itemRef?: string | undefined;
372
374
  results?: number | undefined;
373
375
  security?: string | undefined;
374
- unselectable?: "on" | "off" | undefined;
376
+ unselectable?: "off" | "on" | undefined;
375
377
  is?: string | undefined;
376
378
  'aria-activedescendant'?: string | undefined;
377
379
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
@@ -384,7 +386,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
384
386
  'aria-colindextext'?: string | undefined;
385
387
  'aria-colspan'?: number | undefined;
386
388
  'aria-controls'?: string | undefined;
387
- 'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
389
+ 'aria-current'?: boolean | "true" | "page" | "time" | "false" | "step" | "date" | "location" | undefined;
388
390
  'aria-describedby'?: string | undefined;
389
391
  'aria-description'?: string | undefined;
390
392
  'aria-details'?: string | undefined;
@@ -394,11 +396,10 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
394
396
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
395
397
  'aria-flowto'?: string | undefined;
396
398
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
397
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
399
+ 'aria-haspopup'?: boolean | "true" | "grid" | "dialog" | "menu" | "false" | "listbox" | "tree" | undefined;
398
400
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
399
401
  'aria-keyshortcuts'?: string | undefined;
400
402
  'aria-label'?: string | undefined;
401
- 'aria-labelledby'?: string | undefined;
402
403
  'aria-level'?: number | undefined;
403
404
  'aria-modal'?: (boolean | "true" | "false") | undefined;
404
405
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
@@ -409,7 +410,6 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
409
410
  'aria-posinset'?: number | undefined;
410
411
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
411
412
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
412
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
413
413
  'aria-required'?: (boolean | "true" | "false") | undefined;
414
414
  'aria-roledescription'?: string | undefined;
415
415
  'aria-rowcount'?: number | undefined;
@@ -1,7 +1,8 @@
1
+ import { type ReactElement } from 'react';
1
2
  import { BadgeProps } from './Badge.type';
2
3
  import badgeStyles from './styles/Badge.css';
3
4
  export declare const Badge: {
4
- (inProps: BadgeProps): import("react/jsx-runtime").JSX.Element;
5
+ (inProps: BadgeProps): ReactElement;
5
6
  displayName: string;
6
7
  };
7
8
  export { badgeStyles };
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FunctionComponent, ReactNode } from 'react';
2
2
  import type { DateType } from '../DatePicker.type';
3
3
  type DayAriaLabelContext = {
4
4
  date: DateType;
@@ -18,6 +18,7 @@ declare const ScreenReaderContext: import("react").Context<ScreenReaderProps | n
18
18
  declare const useScreenReaderContext: () => ScreenReaderProps | null;
19
19
  type ScreenReaderProviderProps = {
20
20
  screenReaderProps?: ScreenReaderProps;
21
+ children?: ReactNode;
21
22
  };
22
23
  declare const ScreenReaderProvider: FunctionComponent<ScreenReaderProviderProps>;
23
24
  export { ScreenReaderContext, ScreenReaderProvider, useScreenReaderContext };
@@ -1,7 +1,7 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FunctionComponent, ReactElement } from 'react';
2
2
  import { DialPadOnChangeReason } from '../DialPad';
3
3
  type DialDeleteProps = {
4
- children: React.ReactElement;
4
+ children: ReactElement;
5
5
  onDelete?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
6
6
  onClear?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
7
7
  externalWindow?: Window;
@@ -16,7 +16,7 @@ type DialPadProps = {
16
16
  autoSize?: boolean;
17
17
  action?: Ref<DialPadAction>;
18
18
  control?: Ref<DialPadControl>;
19
- getDialPadButtonProps?: (value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onKeyDown' | 'onFocus'> & HTMLDataAttribute;
19
+ getDialPadButtonProps?: (value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onFocus'> & HTMLDataAttribute;
20
20
  size?: 'large' | 'medium';
21
21
  } & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & Pick<DialPadButtonProps, 'classes'>;
22
22
  declare const DialPad: import("react").ForwardRefExoticComponent<{
@@ -30,7 +30,7 @@ declare const DialPad: import("react").ForwardRefExoticComponent<{
30
30
  autoSize?: boolean | undefined;
31
31
  action?: Ref<DialPadAction> | undefined;
32
32
  control?: Ref<DialPadControl> | undefined;
33
- getDialPadButtonProps?: ((value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onKeyDown' | 'onFocus'> & HTMLDataAttribute) | undefined;
33
+ getDialPadButtonProps?: ((value: DIALER_PAD_ICON_VALUES) => Omit<IconButtonProps, 'value' | 'onFocus'> & HTMLDataAttribute) | undefined;
34
34
  size?: "medium" | "large" | undefined;
35
35
  } & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & Pick<DialPadButtonProps, "classes"> & import("react").RefAttributes<HTMLDivElement>>;
36
36
  export type { DialPadAction, DialPadOnChangeReason, DialPadProps };
@@ -1,5 +1,7 @@
1
- import { FunctionComponent } from 'react';
2
- type DialerProps = {};
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ type DialerProps = {
3
+ children?: ReactNode;
4
+ };
3
5
  declare const Dialer: FunctionComponent<DialerProps>;
4
6
  export { Dialer };
5
7
  export type { DialerProps };
@@ -10,7 +10,7 @@ export type DropdownProps<T = string, D = unknown> = StandardProps<{
10
10
  placeholder?: ReactNode;
11
11
  rootProps?: SlotProps<'div', 'ref'>;
12
12
  buttonProps?: SlotProps<'button'> & Pick<UseFocusVisibleOptions, 'onFocusVisible'>;
13
- MenuProps?: (Omit<VirtualizedMenuProps, 'open' | 'anchorEl' | 'onClose' | 'initialFocus' | 'data' | 'children'> | Omit<MenuProps, 'open' | 'anchorEl' | 'onClose' | 'children'>) & HTMLDataAttribute;
13
+ MenuProps?: (Omit<VirtualizedMenuProps<D>, 'open' | 'anchorEl' | 'onClose' | 'initialFocus' | 'data' | 'children'> | Omit<MenuProps, 'open' | 'anchorEl' | 'onClose' | 'children'>) & HTMLDataAttribute;
14
14
  ref?: Ref<HTMLDivElement>;
15
15
  buttonRef?: Ref<HTMLButtonElement>;
16
16
  virtualize?: boolean;
@@ -23,7 +23,7 @@ export type DropdownProps<T = string, D = unknown> = StandardProps<{
23
23
  onOpenChange?: (isOpen: boolean) => void;
24
24
  label?: string;
25
25
  data: D[];
26
- children: ReactNode | VirtualizedMenuProps['children'];
26
+ children: ReactNode | VirtualizedMenuProps<D>['children'];
27
27
  getSelectedIndex?: (value: T) => number;
28
28
  }, DropdownClassesKey>;
29
29
  export interface DropdownComponent {
@@ -1,6 +1,6 @@
1
1
  import { TextareaAutosizeProps } from '@mui/base';
2
2
  import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
3
- import { ComponentProps, ComponentPropsWithRef, FocusEvent, KeyboardEvent } from 'react';
3
+ import { ComponentProps, ComponentPropsWithRef, FocusEvent, KeyboardEvent, ReactNode } from 'react';
4
4
  import { TooltipProps } from '../Tooltip';
5
5
  import { InlineEditableClassesKey } from './InlineEditable.classes';
6
6
  export type TextareaEditHandler<T = EditCompleteReason> = (e: KeyboardEvent<HTMLTextAreaElement> | FocusEvent<HTMLTextAreaElement>, reason: T, value: {
@@ -38,4 +38,5 @@ export type InlineEditableProps = StandardProps<(({
38
38
  fullWidth?: boolean;
39
39
  TooltipProps?: Omit<TooltipProps, 'children' | 'open' | 'onOpenStateChange'>;
40
40
  rootProps?: ComponentProps<'div'> & HTMLDataAttribute;
41
+ children?: ReactNode;
41
42
  }, InlineEditableClassesKey>;
@@ -1,4 +1,4 @@
1
- import { FocusEventHandler, KeyboardEventHandler, ReactNode, Ref } from 'react';
1
+ import { FocusEventHandler, KeyboardEventHandler, type ReactElement, ReactNode, Ref } from 'react';
2
2
  export type SearchElementOption = {
3
3
  baseElement: HTMLElement;
4
4
  direction: 'up' | 'down';
@@ -19,8 +19,8 @@ export type UseListNavigationProps = {
19
19
  actions?: Ref<UseListNavigationActions>;
20
20
  };
21
21
  export declare const useListNavigation: (props: UseListNavigationProps) => {
22
- renderItems: (items: ReactNode) => import("react/jsx-runtime").JSX.Element;
23
- renderTabBoundary: () => import("react/jsx-runtime").JSX.Element;
22
+ renderItems: (items: ReactNode) => ReactElement;
23
+ renderTabBoundary: () => ReactElement;
24
24
  getListProps: (otherHandler: {
25
25
  onKeyDown?: KeyboardEventHandler;
26
26
  onFocus?: FocusEventHandler;
@@ -1,9 +1,9 @@
1
- import { ComponentProps } from 'react';
1
+ import { ComponentProps, type ReactElement } from 'react';
2
2
  import { MenuActionsProps } from './MenuActions.type';
3
3
  import menuActionsStyle from './styles/MenuActions.css';
4
4
  declare const MenuActions: import("react").ForwardRefExoticComponent<Omit<MenuActionsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const MenuActionsGroup: {
6
- ({ className, ...rest }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ ({ className, ...rest }: ComponentProps<'div'>): ReactElement;
7
7
  displayName: string;
8
8
  };
9
9
  export { MenuActions, MenuActionsGroup, menuActionsStyle };
@@ -10,7 +10,7 @@ export type UseMenuItemProps = {
10
10
  autoClose?: boolean;
11
11
  };
12
12
  export declare const useMenuItem: (props: UseMenuItemProps) => {
13
- getRootProps: (otherProps: any) => any;
13
+ getRootProps: (otherProps?: any) => any;
14
14
  focusVisible: boolean;
15
15
  active: boolean;
16
16
  };
@@ -10,7 +10,7 @@ export type UseVirtualizedMenuItemProps = {
10
10
  autoClose?: boolean;
11
11
  };
12
12
  export declare const useVirtualizedMenuItem: (props: UseVirtualizedMenuItemProps) => {
13
- getRootProps: (otherProps: any) => any;
13
+ getRootProps: (otherProps?: any) => any;
14
14
  focusVisible: boolean;
15
15
  active: boolean;
16
16
  };
@@ -3,7 +3,7 @@ import { StandardProps } from '@ringcentral/spring-base';
3
3
  import { MenuItemSelectProps, SelectMode } from '../MenuItem';
4
4
  import { MenuListClassesKey } from './MenuList.classes';
5
5
  import { MenuListContextValue } from './MenuListContext';
6
- export type MenuListProps<M extends SelectMode = 'single', V = unknown> = StandardProps<MenuItemSelectProps<V, M> & {
6
+ export type MenuListProps<M extends SelectMode = 'single', V = unknown> = StandardProps<Omit<MenuItemSelectProps<V, M>, 'onClose'> & {
7
7
  autoFocus?: boolean;
8
8
  } & MenuListContextValue, MenuListClassesKey, 'div'>;
9
9
  export interface MenuListComponent {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type ReactElement } from 'react';
2
2
  export type MenuOverlayGroupContextValue = {
3
3
  container: HTMLElement | null;
4
4
  };
@@ -11,5 +11,5 @@ export declare const useMenuOverlayGroupValue: () => {
11
11
  setContainer: import("react").Dispatch<import("react").SetStateAction<HTMLDivElement | null>>;
12
12
  value: MenuOverlayGroupContextValue;
13
13
  };
14
- export declare const MenuOverlayGroupContainer: (props: MenuOverlayGroupContainerProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const MenuOverlayGroupContainer: (props: MenuOverlayGroupContainerProps) => ReactElement;
15
15
  export { MenuOverlayGroupContext };