@ringcentral/spring-ui 1.7.0 → 1.8.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 (233) hide show
  1. package/Alert.js +3 -3
  2. package/Announcement.js +1 -1
  3. package/Autocomplete.js +174 -236
  4. package/Avatar.js +27 -13
  5. package/BottomNavigation.js +0 -3
  6. package/Checkbox.js +0 -2
  7. package/DatePicker.js +5 -13
  8. package/DateUtilsContext.js +0 -1
  9. package/Dialer.js +2 -50
  10. package/Dialog.js +4 -4
  11. package/Dropdown.js +0 -7
  12. package/FocusTrap.js +0 -32
  13. package/InlineEditable.js +0 -4
  14. package/Link.js +1 -1
  15. package/ListItem.js +1 -1
  16. package/ListNavigation.js +0 -6
  17. package/Menu.js +1 -1
  18. package/MenuDivider.js +2 -2
  19. package/MenuFooter.js +4 -4
  20. package/MenuHeader.js +4 -4
  21. package/MenuItem.js +1 -1
  22. package/MenuItemText.js +1 -1
  23. package/PageHeader.js +6 -4
  24. package/Popper.js +0 -1
  25. package/Rating.js +0 -5
  26. package/SingleFilter.js +0 -1
  27. package/Slider.js +1 -4
  28. package/Snackbar.js +0 -14
  29. package/SortableListItem.js +0 -1
  30. package/SplitButton.js +1 -3
  31. package/StatusIndicator.js +1 -1
  32. package/SubMenu.js +0 -4
  33. package/SwipeableDrawer.js +8 -146
  34. package/Switch.js +1 -4
  35. package/Tab.js +7 -8
  36. package/TabContext.js +0 -5
  37. package/TableBody.js +1 -1
  38. package/TableCell.js +0 -6
  39. package/TableRow.js +0 -1
  40. package/Tabs.js +20 -118
  41. package/Text.js +2 -4
  42. package/TimePicker.js +7 -46
  43. package/VirtualizedList.js +2 -30
  44. package/chunks/Alert.js +8 -7
  45. package/chunks/BottomNavigationItem.js +0 -1
  46. package/chunks/Button.js +0 -1
  47. package/chunks/Chip.js +0 -5
  48. package/chunks/Drawer.js +1 -30
  49. package/chunks/ListItem.js +3 -6
  50. package/chunks/Menu.js +3 -3
  51. package/chunks/MenuDivider.js +2 -3
  52. package/chunks/MenuItemText.js +3 -3
  53. package/chunks/MenuList.js +0 -3
  54. package/chunks/PickerTextField.js +0 -1
  55. package/chunks/Popover.js +0 -5
  56. package/chunks/Select.js +2 -39
  57. package/chunks/Squircle.js +0 -7
  58. package/chunks/StatusIndicator.js +1 -0
  59. package/chunks/StepIcon.js +1 -3
  60. package/chunks/StepperContext.js +0 -7
  61. package/chunks/Tooltip.js +0 -36
  62. package/chunks/VirtualizedMenu.js +2 -78
  63. package/chunks/getFade.js +2 -0
  64. package/chunks/useFocusTrapStack.js +0 -8
  65. package/chunks/useHelperTextId.js +0 -24
  66. package/chunks/useListNavigation.js +2 -17
  67. package/chunks/useMenuItemSelect.js +6 -19
  68. package/chunks/useMotionSafeTransition.js +0 -4
  69. package/chunks/useNestedParentMenu.js +0 -2
  70. package/chunks/usePrefersReducedMotion.js +0 -10
  71. package/chunks/useTooltipForceHide.js +0 -4
  72. package/chunks/useTrayNavigate.js +0 -1
  73. package/index.css +392 -120
  74. package/index.js +1 -1
  75. package/package.json +4 -4
  76. package/src/Accordion/Accordion.type.d.ts +0 -21
  77. package/src/AccordionHeader/AccordionHeader.type.d.ts +0 -14
  78. package/src/Alert/Alert.type.d.ts +0 -32
  79. package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.d.ts +0 -4
  80. package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +0 -4
  81. package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +0 -4
  82. package/src/Autocomplete/Autocomplete.d.ts +0 -5
  83. package/src/Autocomplete/Autocomplete.type.d.ts +0 -84
  84. package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +5 -89
  85. package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +0 -2
  86. package/src/Autocomplete/SuggestionList/utils/SuggestionListItem.d.ts +1 -13
  87. package/src/Autocomplete/SuggestionList/utils/useDynamicHeight.d.ts +0 -6
  88. package/src/Autocomplete/SuggestionList/utils/useHighlightScroll.d.ts +0 -20
  89. package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +3 -41
  90. package/src/Autocomplete/SuggestionList/utils/useSuggestionListGroup.d.ts +0 -49
  91. package/src/Autocomplete/useAutocomplete.d.ts +1 -62
  92. package/src/Autocomplete/useAutocompleteTag.d.ts +0 -33
  93. package/src/Avatar/Avatar.type.d.ts +0 -58
  94. package/src/AvatarGroup/AvatarGroup.type.d.ts +0 -3
  95. package/src/Backdrop/Backdrop.type.d.ts +0 -4
  96. package/src/Badge/Badge.type.d.ts +0 -33
  97. package/src/Block/Block.type.d.ts +0 -24
  98. package/src/BlockHeader/BlockHeader.type.d.ts +0 -5
  99. package/src/BottomNavigation/BottomNavigation.type.d.ts +0 -34
  100. package/src/BottomNavigationItem/BottomNavigationItem.type.d.ts +0 -39
  101. package/src/Button/Button.type.d.ts +0 -30
  102. package/src/CallButton/CallButton.type.d.ts +0 -4
  103. package/src/Checkbox/Checkbox.type.d.ts +0 -17
  104. package/src/Chip/Chip.type.d.ts +0 -41
  105. package/src/CircularProgressIndicator/CircularProgressIndicator.type.d.ts +0 -19
  106. package/src/DatePicker/Calendar.d.ts +1 -20
  107. package/src/DatePicker/DatePicker.type.d.ts +0 -18
  108. package/src/DatePicker/DatePickerHeader.d.ts +1 -12
  109. package/src/DatePicker/Day.d.ts +0 -7
  110. package/src/DatePicker/Year.d.ts +0 -6
  111. package/src/DatePicker/Years.d.ts +0 -7
  112. package/src/Dialer/DialDelete/DialDelete.d.ts +0 -3
  113. package/src/Dialer/DialPad/DialPad.d.ts +0 -106
  114. package/src/Dialer/DialPad/utils/types.d.ts +0 -5
  115. package/src/Dialer/DialPad/utils/useDialKeyboard.d.ts +0 -5
  116. package/src/Dialer/DialPad/utils/useKeyAudio.d.ts +0 -9
  117. package/src/Dialer/DialPadButton/DialPadButton.d.ts +0 -14
  118. package/src/Dialer/DialTextField/DialTextField.d.ts +0 -23
  119. package/src/Dialer/DialTextField/utils/getDialPadValueOnlyRegex.d.ts +0 -3
  120. package/src/Dialer/DialTextField/utils/useFixedEndSelection.d.ts +0 -3
  121. package/src/Dialog/Dialog.type.d.ts +0 -11
  122. package/src/Divider/Divider.type.d.ts +0 -17
  123. package/src/DragHandle/DragHandle.type.d.ts +0 -4
  124. package/src/Drawer/Drawer.d.ts +0 -28
  125. package/src/Drawer/Drawer.type.d.ts +0 -84
  126. package/src/Dropdown/Dropdown.type.d.ts +0 -64
  127. package/src/EmptyState/EmptyState.type.d.ts +0 -12
  128. package/src/FabButton/FabButton.type.d.ts +0 -5
  129. package/src/FocusTrap/FocusTrap.d.ts +0 -38
  130. package/src/FocusTrap/useFocusTrapStack.d.ts +0 -9
  131. package/src/FormField/FormField.type.d.ts +0 -26
  132. package/src/FormField/useHelperTextId.d.ts +0 -25
  133. package/src/FormLabel/FormLabel.type.d.ts +0 -14
  134. package/src/Icon/Icon.type.d.ts +0 -15
  135. package/src/IconButton/IconButton.type.d.ts +0 -30
  136. package/src/IconButton/IconButtonLabel.type.d.ts +0 -3
  137. package/src/IconButtonGroup/IconButtonGroup.type.d.ts +0 -8
  138. package/src/InlineEditable/InlineEditable.type.d.ts +0 -75
  139. package/src/LinearProgressIndicator/LinearProgressIndicator.type.d.ts +0 -31
  140. package/src/Link/Link.classes.d.ts +1 -1
  141. package/src/Link/Link.type.d.ts +1 -10
  142. package/src/ListItem/ListItem.type.d.ts +0 -41
  143. package/src/ListItemText/ListItemText.type.d.ts +0 -21
  144. package/src/ListNavigation/useListNavigation.d.ts +0 -16
  145. package/src/Menu/Menu.type.d.ts +0 -10
  146. package/src/MenuFooter/MenuFooter.type.d.ts +0 -4
  147. package/src/MenuHeader/MenuHeader.type.d.ts +0 -10
  148. package/src/MenuItem/MenuItem.type.d.ts +0 -19
  149. package/src/MenuItem/MenuItemSelectContext.d.ts +0 -3
  150. package/src/MenuItem/useMenuItemSelect.d.ts +0 -21
  151. package/src/MenuItemText/MenuItemText.type.d.ts +0 -17
  152. package/src/MenuList/MenuList.type.d.ts +0 -4
  153. package/src/MenuList/MenuListContext.d.ts +0 -6
  154. package/src/Modal/InnerModal.type.d.ts +0 -5
  155. package/src/Modal/Modal.type.d.ts +0 -11
  156. package/src/Modal/ModalContext.d.ts +0 -4
  157. package/src/Option/Option.type.d.ts +0 -3
  158. package/src/Overlap/Overlap.type.d.ts +0 -11
  159. package/src/PageHeader/PageHeader.type.d.ts +0 -4
  160. package/src/PickerTextField/PickerTextField.type.d.ts +0 -10
  161. package/src/Popover/Popover.type.d.ts +0 -29
  162. package/src/Popper/Popper.type.d.ts +0 -61
  163. package/src/Radio/Radio.type.d.ts +0 -5
  164. package/src/RadioGroup/RadioGroup.type.d.ts +0 -4
  165. package/src/Rating/Rating.type.d.ts +0 -74
  166. package/src/Select/Select.type.d.ts +0 -84
  167. package/src/SingleFilter/FilterButton/FilterButton.type.d.ts +0 -16
  168. package/src/SingleFilter/SingleFilter.type.d.ts +0 -26
  169. package/src/Skeleton/Skeleton.type.d.ts +0 -1
  170. package/src/Skeleton/SkeletonContainer/SkeletonContainer.classes.d.ts +1 -1
  171. package/src/Slider/Slider.classes.d.ts +1 -5
  172. package/src/Slider/Slider.type.d.ts +0 -104
  173. package/src/Snackbar/Snackbar.type.d.ts +0 -18
  174. package/src/SplitButton/SplitButton.type.d.ts +0 -21
  175. package/src/Squircle/Squircle.type.d.ts +0 -3
  176. package/src/StatusIndicator/StatusIndicator.classes.d.ts +1 -1
  177. package/src/StatusIndicator/StatusIndicator.type.d.ts +1 -9
  178. package/src/Step/Step.type.d.ts +0 -29
  179. package/src/Step/StepContext.d.ts +0 -7
  180. package/src/StepButton/StepButton.type.d.ts +0 -15
  181. package/src/StepContent/StepContent.type.d.ts +0 -7
  182. package/src/StepIcon/StepIcon.type.d.ts +0 -26
  183. package/src/StepLabel/StepLabel.type.d.ts +0 -23
  184. package/src/Stepper/Stepper.type.d.ts +0 -27
  185. package/src/SwipeableDrawer/SwipeableDrawer.d.ts +0 -26
  186. package/src/SwipeableDrawer/SwipeableDrawer.types.d.ts +0 -67
  187. package/src/SwipeableDrawer/hooks/useDrawerGestures.d.ts +0 -110
  188. package/src/SwipeableDrawer/hooks/useElementSizeObserver.d.ts +0 -5
  189. package/src/SwipeableDrawer/hooks/useSnapPoints.d.ts +0 -60
  190. package/src/Switch/Switch.type.d.ts +0 -9
  191. package/src/Tab/Tab.classes.d.ts +3 -2
  192. package/src/Tab/Tab.type.d.ts +0 -29
  193. package/src/TabContext/TabContext.d.ts +0 -4
  194. package/src/TabContext/TabContext.type.d.ts +0 -7
  195. package/src/TabPanel/TabPanel.type.d.ts +0 -10
  196. package/src/Table/Table.type.d.ts +0 -19
  197. package/src/TableBody/TableBody.type.d.ts +0 -3
  198. package/src/TableCell/TableCell.d.ts +0 -4
  199. package/src/TableCell/TableCell.type.d.ts +0 -35
  200. package/src/TableContainer/TableContainer.type.d.ts +0 -7
  201. package/src/TableFooter/TableFooter.type.d.ts +0 -3
  202. package/src/TableHead/TableHead.type.d.ts +0 -6
  203. package/src/TablePagination/TablePagination.type.d.ts +0 -47
  204. package/src/TableRow/TableRow.type.d.ts +0 -17
  205. package/src/Tabs/TabMoreMenu.d.ts +0 -16
  206. package/src/Tabs/TabScrollButton.d.ts +0 -10
  207. package/src/Tabs/Tabs.classes.d.ts +1 -1
  208. package/src/Tabs/Tabs.d.ts +1 -1
  209. package/src/Tabs/Tabs.type.d.ts +2 -36
  210. package/src/Tabs/TabsContext.d.ts +2 -0
  211. package/src/Tabs/hooks/useTabsScroller.d.ts +0 -30
  212. package/src/Tag/Tag.type.d.ts +0 -12
  213. package/src/Text/Text.type.d.ts +0 -13
  214. package/src/TextField/TextField.type.d.ts +0 -64
  215. package/src/Textarea/Textarea.type.d.ts +0 -13
  216. package/src/TimePicker/NumberPicker.type.d.ts +0 -12
  217. package/src/TimePicker/SelectionView.d.ts +0 -6
  218. package/src/TimePicker/TimeButton.d.ts +0 -3
  219. package/src/TimePicker/TimePicker.type.d.ts +0 -11
  220. package/src/TimePicker/ToggleText.type.d.ts +0 -3
  221. package/src/TimePicker/utils/TimeBoundary.d.ts +0 -3
  222. package/src/TimePicker/utils/TimePickerHelper.d.ts +0 -19
  223. package/src/TimePicker/utils/getNumberPickerBoundary.d.ts +0 -3
  224. package/src/Tooltip/TooltipTrigger.a11y.d.ts +0 -9
  225. package/src/Tooltip/TooltipTrigger.type.d.ts +0 -44
  226. package/src/Tooltip/TooltipView.type.d.ts +0 -25
  227. package/src/Tooltip/useTooltipForceHide.d.ts +0 -4
  228. package/src/Tray/Tray.type.d.ts +0 -13
  229. package/src/Tray/TrayContext.d.ts +0 -4
  230. package/src/Tray/hooks/useTray.d.ts +0 -16
  231. package/src/Tray/hooks/useTrayPanel.d.ts +0 -3
  232. package/src/VirtualizedList/VirtualizedList.type.d.ts +0 -27
  233. package/src/VirtualizedMenu/VirtualizedMenu.type.d.ts +0 -17
@@ -4,26 +4,9 @@ import { TableRowClassesKey } from './TableRow.classes';
4
4
  declare type DefaultElementType = 'tr';
5
5
  declare type ExtendElementType = ElementType;
6
6
  declare type BaseTableRowProps = WithClassesProps<{
7
- /**
8
- * Should be valid `<tr>` children such as `TableCell`.
9
- */
10
7
  children?: React.ReactNode;
11
- /**
12
- * If `true`, the table row will shade on hover.
13
- * Noted: hover style will not be applied to rows in the head (TableHead).
14
- * @default false
15
- */
16
8
  hoverable?: boolean;
17
- /**
18
- * If `true`, cursor will be pointer on hover and hover style will be applied.
19
- * It will be set to `true` automatically when onClick prop is defined.
20
- * Noted: clickable style will not be applied to rows in the head (TableHead).
21
- */
22
9
  clickable?: boolean;
23
- /**
24
- * If `true`, the table row will have the selected shading.
25
- * @default false
26
- */
27
10
  selected?: boolean;
28
11
  }, TableRowClassesKey>;
29
12
  export declare type TableRowProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableRowProps, T>;
@@ -7,26 +7,10 @@ import type { TabProps } from '../Tab/Tab.type';
7
7
  import { TooltipProps } from '../Tooltip';
8
8
  import { TabMoreMenuClassesKey } from './Tabs.classes';
9
9
  export declare type MoreMenuProps = StandardProps<{
10
- /**
11
- * Props applied to the Tooltip component shown when hovering over
12
- * the more Icon Button. If `TooltipProps.title` is not a truthy
13
- * value, no Tooltip will be shown.
14
- */
15
10
  TooltipProps?: Omit<TooltipProps, 'children'> & HTMLDataAttribute;
16
- /**
17
- * Props applied to Badge component
18
- */
19
11
  BadgeProps?: BadgeCompProps & HTMLDataAttribute;
20
- /**
21
- * Props applied to IconButton component
22
- */
23
12
  ButtonProps?: Omit<IconButtonProps, 'variant' | 'className' | 'onClick'> & HTMLDataAttribute;
24
- /** Props applied to Menu component */
25
13
  MenuProps?: Omit<MenuProps, 'anchorEl' | 'open'> & HTMLDataAttribute;
26
- /**
27
- * custom MenuItem render component
28
- * @default MenuItem
29
- */
30
14
  MenuItemComponent?: ComponentType<TabProps>;
31
15
  }, TabMoreMenuClassesKey, 'div'>;
32
16
  declare type TabMoreMenuProps = MoreMenuProps & {
@@ -3,18 +3,8 @@ import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
3
3
  import { IconButtonProps } from '../IconButton';
4
4
  import { TabScrollButtonClassesKey } from './Tabs.classes';
5
5
  export declare type TabScrollButtonProps = StandardProps<{
6
- /**
7
- * The direction the button should indicate
8
- * @default 'left'
9
- */
10
6
  direction?: 'left' | 'right';
11
- /**
12
- * Callback fired when the button is clicked
13
- */
14
7
  onClick?: IconButtonProps['onClick'];
15
- /**
16
- * Props applied to IconButton component
17
- */
18
8
  ButtonProps?: Omit<IconButtonProps, 'variant' | 'className' | 'onClick'> & HTMLDataAttribute;
19
9
  }, TabScrollButtonClassesKey, 'div'>;
20
10
  declare const TabScrollButton: import("react").ForwardRefExoticComponent<Pick<TabScrollButtonProps, "children" | "onKeyDown" | "onKeyUp" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "classes" | "className" | "accessKey" | "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" | "onMouseDown" | "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}` | "direction" | "ButtonProps"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import type { CamelCase } from 'type-fest';
2
- export declare type BaseTabsClassesKey = 'root' | 'scroller' | 'scrollable' | 'tab-list' | 'underline' | 'indicator' | 'compact' | 'pill' | 'floating-underline' | 'scroll-left' | 'scroll-right' | 'scroll-both';
2
+ export declare type BaseTabsClassesKey = 'root' | 'scroller' | 'scrollable' | 'tab-list' | 'underline' | 'indicator' | 'compact' | 'pill' | 'floating-underline' | 'scroll-left' | 'scroll-right' | 'scroll-both' | 'medium' | 'large' | 'small';
3
3
  export declare type TabsClassesKey = CamelCase<BaseTabsClassesKey>;
4
4
  export declare type TabsClasses = {
5
5
  name: 'tabs';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import tabsStyle from './styles/Tabs.css';
3
3
  import { TabsProps } from './Tabs.type';
4
- declare const Tabs: import("react").ForwardRefExoticComponent<Pick<TabsProps, "children" | "onKeyDown" | "onKeyUp" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "classes" | "className" | "accessKey" | "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" | "onMouseDown" | "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}` | "variant" | "pill" | "pillGap" | "onGroupInfoUpdate" | "MoreMenuProps" | "ScrollButtonStartProps" | "ScrollButtonEndProps" | "enableScrollButtons"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ declare const Tabs: import("react").ForwardRefExoticComponent<Pick<TabsProps, "children" | "onKeyDown" | "onKeyUp" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "classes" | "className" | "accessKey" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "size" | "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" | "onMouseDown" | "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}` | "variant" | "pill" | "pillGap" | "onGroupInfoUpdate" | "MoreMenuProps" | "ScrollButtonStartProps" | "ScrollButtonEndProps" | "enableScrollButtons"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  export { Tabs, tabsStyle };
@@ -4,51 +4,17 @@ import type { TabProps } from '../Tab/Tab.type';
4
4
  import { MoreMenuProps } from './TabMoreMenu';
5
5
  import { TabsClassesKey } from './Tabs.classes';
6
6
  import { TabScrollButtonProps } from './TabScrollButton';
7
+ export declare type TabsSize = 'medium' | 'large' | 'small';
7
8
  export declare type TabsProps = StandardProps<{
8
- /**
9
- * A set of tabs
10
- */
11
9
  children: ReactNode;
12
- /**
13
- * If 'scrollable', tabs will be scrollable.
14
- * All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
15
- * @default 'standard'
16
- */
17
10
  variant?: 'standard' | 'scrollable' | 'moreMenu';
18
- /**
19
- * If set to `true`, the tab will adopt a pill shape.
20
- */
21
11
  pill?: boolean;
22
- /**
23
- * The color scheme to use for tabs.
24
- * - 'default': Uses cobranding colors for non-pill tabs, grey colors for pill tabs
25
- * - 'cobranding': Uses cobranding colors for all tab types
26
- * @default 'default'
27
- */
28
12
  color?: 'default' | 'cobranding';
29
- /**
30
- * Specifies the gap between tabs when in pill mode. Unit: px.
31
- * Important for 'moreMenu' variant to calculate the width of tabs accurately.
32
- * @default 4
33
- */
34
13
  pillGap?: number;
35
- /**
36
- * Callback invoked when using variant 'moreMenu' and the group info is updated.
37
- */
38
14
  onGroupInfoUpdate?: (visibleItemValues: TabProps['value'][], hiddenItemValues: TabProps['value'][]) => void;
39
- /** Props applied to TabMoreMenu when variant is 'moreMenu' */
40
15
  MoreMenuProps?: MoreMenuProps;
41
- /**
42
- * Props applied to the TabScrollButtonStart when variant is 'scrollable' and pill is `true`
43
- */
44
16
  ScrollButtonStartProps?: TabScrollButtonProps['ButtonProps'];
45
- /**
46
- * Props applied to the TabScrollButtonEnd when variant is 'scrollable' and pill is `true`
47
- */
48
17
  ScrollButtonEndProps?: TabScrollButtonProps['ButtonProps'];
49
- /**
50
- * Whether to enable scroll buttons when variant is 'scrollable' and pill is `true`
51
- * @default true
52
- */
53
18
  enableScrollButtons?: boolean;
19
+ size?: TabsSize;
54
20
  }, TabsClassesKey, 'div'>;
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { TabsSize } from './Tabs.type';
2
3
  export declare type TabsContextValue = {
3
4
  pill?: boolean;
4
5
  pillGap?: number;
5
6
  color?: 'default' | 'cobranding';
7
+ size?: TabsSize;
6
8
  setFloatingUnderlineVisibility?: (isVisible: boolean) => void;
7
9
  };
8
10
  export declare const TabsContext: import("react").Context<TabsContextValue>;
@@ -2,38 +2,11 @@ import { motionTransition } from '@ringcentral/spring-theme';
2
2
  import React from 'react';
3
3
  import { TabScrollButtonProps } from '../TabScrollButton';
4
4
  export declare type UseTabsScrollerParameters = {
5
- /**
6
- * Determines whether the scrolling functionality is enabled.
7
- * If `true`, the scroller will respond to scroll events and user interactions.
8
- */
9
5
  enable: boolean;
10
- /**
11
- * A React ref object that provides a reference to the scrolling container element.
12
- * This is used to directly manipulate the DOM for scrolling actions.
13
- */
14
6
  scrollerRef: React.RefObject<HTMLDivElement>;
15
- /**
16
- * A React ref object that provides a reference to the element containing the list of tabs.
17
- * This is used to calculate the scroll width and to determine the scrolling requirements based on the children's width.
18
- */
19
7
  tabListRef: React.RefObject<HTMLDivElement>;
20
- /**
21
- * Scrolls the element by a specified value.
22
- *
23
- * @param scrollValue - The value by which to scroll. Positive values will scroll to the right,
24
- * while negative values will scroll to the left.
25
- * @param transitionType - Optional. Specifies the type of transition to use for the scrolling.
26
- */
27
8
  scroll: (scrollValue: number, transitionType?: keyof typeof motionTransition) => void;
28
- /**
29
- * An object containing optional properties for the start scroll button.
30
- * These properties are used to customize the appearance or behavior of the button that scrolls the tab list towards the start (left).
31
- */
32
9
  ScrollButtonStartProps?: TabScrollButtonProps['ButtonProps'];
33
- /**
34
- * Similar to ScrollButtonStartProps, this object contains optional properties for the end scroll button.
35
- * These properties customize the end (right) scroll button, which scrolls the tab list towards the end.
36
- */
37
10
  ScrollButtonEndProps?: TabScrollButtonProps['ButtonProps'];
38
11
  };
39
12
  declare type ConditionalElements = {
@@ -41,8 +14,5 @@ declare type ConditionalElements = {
41
14
  scrollButtonEnd?: React.ReactNode;
42
15
  };
43
16
  export declare type UseTabsScrollerReturn = ConditionalElements;
44
- /**
45
- * This `useTabsScroller` hook manages the state and behavior of scroll buttons at both ends of the tab list (start and end) when the tab list exceeds the visible container width
46
- */
47
17
  export declare const useTabsScroller: ({ enable, scrollerRef, tabListRef, scroll, ScrollButtonStartProps, ScrollButtonEndProps, }: UseTabsScrollerParameters) => UseTabsScrollerReturn;
48
18
  export {};
@@ -4,20 +4,8 @@ import { IconProps } from '../Icon';
4
4
  import { TagClassesKey } from './Tag.classes';
5
5
  export declare type TagColor = 'default' | 'neutral' | 'secondary' | 'primary' | 'danger' | 'success' | 'warning';
6
6
  export declare type TagProps = StandardProps<{
7
- /**
8
- * The variant to use.
9
- * @default 'outlined'
10
- */
11
7
  variant?: 'outlined' | 'filled' | 'inverted';
12
- /**
13
- * The color of the component.
14
- * @default 'default'
15
- */
16
8
  color?: TagColor;
17
- /** Icon placed before the label. */
18
9
  startIcon?: IconProps['symbol'];
19
- /**
20
- * @deprecated Use "children" instead.
21
- */
22
10
  label?: React.ReactNode;
23
11
  }, TagClassesKey, 'div'>;
@@ -5,25 +5,12 @@ import { TextClassesKey } from './Text.classes';
5
5
  export declare type TextDefaultElementType = 'span';
6
6
  declare type ExtendElementType = ElementType;
7
7
  declare type BaseTextProps = WithClassesProps<{
8
- /**
9
- * This prop isn't supported.
10
- * Use the `component` prop if you need to change the children structure.
11
- */
12
8
  children?: ReactNode;
13
- /** when set `true`, add style `flex: 1 1 auto` */
14
9
  flexFull?: boolean;
15
- /** highlight for text with color and background to be mentionMe */
16
10
  highlight?: boolean;
17
- /**
18
- * is show title only when truncated, use `number` value to truncate text at a specific number of lines.
19
- * ### should not change titleWhenOverflow dynamically, keep that be same value, that will cause hook issue
20
- */
21
11
  titleWhenOverflow?: number;
22
12
  noWrap?: boolean;
23
13
  useTooltip?: boolean;
24
- /**
25
- * Props applied to Tooltip component
26
- */
27
14
  TooltipProps?: Omit<TooltipProps, 'title' | 'PopperProps' | 'open' | 'onOpenStateChange'> & HTMLDataAttribute;
28
15
  }, TextClassesKey>;
29
16
  export declare type TextProps<T extends ExtendElementType = TextDefaultElementType> = OverridableProps<BaseTextProps, T>;
@@ -11,44 +11,14 @@ declare type InputComponentProps = ReactInputComponentProps & StandardInputAttri
11
11
  declare type OmittedInputProps = 'type' | 'className' | 'placeholder' | 'children';
12
12
  declare type TextFieldRawProps = {
13
13
  ref?: Ref<HTMLDivElement>;
14
- /**
15
- * The placeholder text in input element
16
- */
17
14
  placeholder?: string;
18
- /**
19
- * The root props for the form field component
20
- */
21
15
  RootProps?: FormFieldProps & HTMLDataAttribute;
22
- /**
23
- * If true, the input will take up the full width of its container.
24
- */
25
16
  fullWidth?: boolean;
26
- /**
27
- * Show clear button when text input has valid content.
28
- * @default true
29
- */
30
17
  clearBtn?: boolean;
31
- /**
32
- * When true, shows native clear button for search inputs.
33
- * if clearBtn is also true, both buttons will be shown.
34
- * @default false
35
- */
36
18
  useNativeClearBtn?: boolean;
37
- /**
38
- * The arial label of clear button.
39
- * @default 'clear'
40
- */
41
19
  clearText?: string;
42
- /**
43
- * Show the current/remaining character count. Only works for a controlled TextField where inputProps.maxLength is set.
44
- * @default false
45
- */
46
20
  showCharacterCount?: boolean;
47
- /** props apply on default clear button */
48
21
  ClearButtonProps?: IconButtonProps;
49
- /**
50
- * Trigger when click clear button.
51
- */
52
22
  onClear?: React.MouseEventHandler<HTMLButtonElement>;
53
23
  value?: string;
54
24
  defaultValue?: string;
@@ -62,51 +32,17 @@ declare type TextFieldRawProps = {
62
32
  } & Pick<FormFieldProps, 'className' | 'label' | 'helperText' | 'variant' | 'focused' | 'size' | 'FormHelperTextProps'> & Omit<UseInputParameters, 'value' | 'defaultValue' | 'onBlur' | 'onFocus' | 'onClick'> & Pick<ComponentPropsWithRef<'input'>, 'autoFocus' | 'id' | 'readOnly'>;
63
33
  declare type BaseTextFieldProps = WithClassesProps<TextFieldRawProps, TextFieldClassesKey>;
64
34
  export declare type OverridableTextFieldProps<B, T extends ElementType, P extends InputComponentProps> = B & {
65
- /**
66
- * The component used for the `input` element.
67
- * Either a string to use a HTML element or a component.
68
- * @default 'input'
69
- */
70
35
  inputComponent?: T;
71
- /**
72
- * Attributes applied to the `input` element .
73
- */
74
36
  inputProps?: (T extends 'input' ? Omit<P & InputHTMLAttributes<HTMLInputElement>, OmittedInputProps> : Omit<P, OmittedInputProps>) & HTMLDataAttribute;
75
- /**
76
- * If `true`, the component will be displayed in focused state.
77
- */
78
37
  focused?: boolean;
79
38
  };
80
39
  export declare type SharedTextInputProps<T extends ElementType = 'input', P extends InputComponentProps = InputComponentProps> = OverridableTextFieldProps<BaseTextFieldProps, T, P>;
81
40
  export declare type TextFieldProps<T extends ElementType = 'input', P extends InputComponentProps = InputComponentProps> = SharedTextInputProps<T, P> & {
82
- /**
83
- * Type of the `input` element.
84
- * @default 'text'
85
- */
86
41
  type?: 'text' | 'password' | 'number' | 'email' | 'tel' | 'url' | 'search';
87
- /**
88
- * Controls whether the mask value button is displayed, typically used for allowing the user to see their password in plaintext
89
- * @default true when type is "password"
90
- */
91
42
  showMaskValueToggleButton?: boolean;
92
- /**
93
- * Controls whether or not the value is masked and not shown in plaintext.
94
- * If not provided, masking the value will be uncontrolled and will be internally managed by the TextField component when the user clicks the mask value toggle button.
95
- * If provided, masking the value will be controlled and you will need to pass an `onMaskValueChange` callback.
96
- */
97
43
  maskValue?: boolean;
98
- /**
99
- * Callback when the Mask Button is toggled.
100
- * Receives the new visibility state as a boolean.
101
- */
102
44
  onMaskValueChange?: (visible: boolean) => void;
103
- /**
104
- * Additional props for customizing the appearance and behavior of the Mask Button.
105
- */
106
45
  MaskValueButtonProps?: Partial<IconButtonProps>;
107
- /**
108
- * Additional props for customizing the appearance and behavior of the `ShowHideEye` component.
109
- */
110
46
  ShowHideEyeIconProps?: Omit<ShowHideEyeProps, 'hide'>;
111
47
  };
112
48
  export {};
@@ -4,22 +4,9 @@ import { SharedTextInputProps } from '../TextField';
4
4
  import { TextFieldClassesKey } from '../TextField/TextField.classes';
5
5
  export declare type TextAreaVariant = UnionOmit<NonNullable<SharedTextInputProps['variant']>, 'quiet'>;
6
6
  declare type TextAreaInputProps = {
7
- /**
8
- * Maximum number of rows to display.
9
- */
10
7
  maxRows?: number;
11
- /**
12
- * Minimum number of rows to display.
13
- */
14
8
  minRows?: number;
15
- /**
16
- * Number of rows to display.
17
- */
18
9
  rows?: number;
19
- /**
20
- * The variant of textarea
21
- * @default 'outlined'
22
- */
23
10
  variant?: TextAreaVariant;
24
11
  } & Omit<TextareaAutosizeProps, 'value' | 'defaultValue'>;
25
12
  export declare type TextareaProps = StandardProps<TextAreaInputProps & SharedTextInputProps<typeof TextareaAutosize, TextAreaInputProps>, TextFieldClassesKey, typeof TextareaAutosize, 'inputComponent' | 'variant'>;
@@ -1,28 +1,16 @@
1
1
  import { PropsWithRoot } from '@ringcentral/spring-base';
2
2
  import { Ref } from 'react';
3
3
  export declare type NumberPickerProps = PropsWithRoot<{
4
- /** min number */
5
4
  min?: number;
6
- /** max number */
7
5
  max?: number;
8
- /** when user click the display number */
9
6
  onClick?: () => void;
10
- /** selected value */
11
7
  value: number;
12
- /** data source of the number array */
13
8
  source: number[];
14
9
  onChange: (value: number, reason: 'arrowKey' | 'arrowButton') => void;
15
- /** get label for screen reader */
16
10
  getScreenReaderLabel?: (value: string) => string;
17
- /** each step value */
18
11
  step: number;
19
- /** render value fn */
20
12
  renderValue?: (value: number) => string;
21
- /**
22
- * If `true`, the `NumberPicker` element will be focused during the first mount.
23
- */
24
13
  autoFocus?: boolean;
25
- /** Is 12 hours system */
26
14
  isTwelveHourSystem?: boolean;
27
15
  ref?: Ref<NumberPickerRef>;
28
16
  }, 'div'>;
@@ -1,16 +1,10 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  declare type SelectionViewProps = {
3
- /** dataSource, 12-hour, 24-hour or minutes */
4
3
  source: number[];
5
- /** selected value of source */
6
4
  value: number;
7
- /** handle user change value */
8
5
  onConfirm: (value: number) => void;
9
- /** min time */
10
6
  min?: number;
11
- /** max time */
12
7
  max?: number;
13
- /** Is 12 hours system */
14
8
  isTwelveHourSystem?: boolean;
15
9
  viewType: 'hour' | 'minute';
16
10
  };
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { PropsWithRoot } from '@ringcentral/spring-base';
3
3
  declare type TimeButtonProps = PropsWithRoot<{
4
- /**
5
- * @default false
6
- */
7
4
  selected?: boolean;
8
5
  }, 'button'>;
9
6
  declare const TimeButton: import("react").ForwardRefExoticComponent<Pick<TimeButtonProps, "selected" | "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -4,24 +4,13 @@ import { PickerTextField } from '../PickerTextField';
4
4
  import { PickerViewScreenReaderProps } from './PickerView.type';
5
5
  import { TimePickerClassesKey } from './TimePicker.classes';
6
6
  export declare type TimePickerProps<T = false> = StandardProps<{
7
- /** Sets if a 12 hour clock is being used. */
8
7
  isTwelveHourSystem?: boolean;
9
- /** A Date object or number that represents the duration in milliseconds since the start of the day. */
10
8
  value: (T extends true ? Date : number) | null;
11
- /** When all using date, this props will be remove, */
12
9
  dateMode?: T;
13
- /** The minimum time that can be set. */
14
10
  min?: T extends true ? Date : number;
15
- /** The maximum time that can be set. */
16
11
  max?: T extends true ? Date : number;
17
- /**
18
- * The default value to show in the picker when the input field is empty.
19
- * @default null 00:00
20
- */
21
12
  defaultPickerValue?: (T extends true ? Date : number) | null;
22
- /** Props containing functions for getting attributes of the target element */
23
13
  screenReaderProps?: PickerViewScreenReaderProps;
24
- /** Callback fired when the user changes the time. */
25
14
  onChange?: (time: TimePickerProps<T>['value'] | null) => void;
26
15
  }, TimePickerClassesKey, typeof PickerTextField, 'onClick' | 'children'>;
27
16
  export interface TimePickerComponent {
@@ -2,11 +2,8 @@ import { PropsWithRoot } from '@ringcentral/spring-base';
2
2
  import { TIME_SYSTEM_TEXT } from './constant';
3
3
  export declare type ToggleTextProps = PropsWithRoot<{
4
4
  onChange: (value: TIME_SYSTEM_TEXT, reason: 'arrowKey' | 'arrowButton') => void;
5
- /** initial value */
6
5
  value: TIME_SYSTEM_TEXT;
7
- /** get label for screen reader */
8
6
  getScreenReaderLabel?: (value: TIME_SYSTEM_TEXT) => string;
9
- /** Is 12 hours system */
10
7
  isTwelveHourSystem?: boolean;
11
8
  }, 'button'>;
12
9
  export declare type ToggleTextRef = {
@@ -1,6 +1,3 @@
1
- /**
2
- * get target time boundary, what time is nearest time with that timeGap
3
- */
4
1
  export declare class TimeBoundary {
5
2
  private _hour?;
6
3
  private value;
@@ -1,19 +1,12 @@
1
1
  import { TIME_SYSTEM_TEXT } from '../constant';
2
2
  declare const parseNumber: (value: number, isTwelveHourSystem?: boolean | undefined) => number;
3
3
  declare const parseNumberToString: (value: number, isTwelveHourSystem?: boolean | undefined) => string;
4
- /** add miss zero */
5
4
  declare const pad: (num: number, size?: number) => string;
6
5
  declare type GetFormattedTimeOption = {
7
6
  hour: number;
8
7
  minute: number;
9
8
  period: TIME_SYSTEM_TEXT;
10
9
  };
11
- /**
12
- * get formatted time hh:mm
13
- * @param option `{hour, min, period}`
14
- * @param isTwelveHourSystem boolean
15
- * @returns `hh:mm AM` or `hh:mm PM` or `hh:mm`
16
- */
17
10
  declare const getFormattedTime: ({ hour, minute, period }: GetFormattedTimeOption, isTwelveHourSystem?: boolean | undefined) => string;
18
11
  declare const HALF_DAY_HOURS = 12;
19
12
  declare const HOUR_MINUTES = 60;
@@ -23,13 +16,7 @@ declare const twelveHourSystemSource: number[];
23
16
  declare const twentyFourHourSystemSource: number[];
24
17
  declare const minuteSource: number[];
25
18
  declare const lastMinute = 45;
26
- /**
27
- * hour and minute timestamp
28
- */
29
19
  declare const getTimestampFromDate: (date: Date) => number;
30
- /**
31
- * hour and minute number
32
- */
33
20
  declare const getHourAndMinute: (times: number | null) => {
34
21
  hour: number;
35
22
  minute: number;
@@ -37,16 +24,10 @@ declare const getHourAndMinute: (times: number | null) => {
37
24
  declare function getTimestamp(nowTime: number | Date): number;
38
25
  declare function getTimestamp(nowTime: null): null;
39
26
  declare function getTimestamp(nowTime: number | Date | null): number | null;
40
- /**
41
- * hour and min object to timestamp
42
- */
43
27
  declare const getTimestampFromHourAndMin: (option: {
44
28
  hour: number;
45
29
  minute: number;
46
30
  }) => number;
47
- /**
48
- * get period, `PM` or `AM`
49
- */
50
31
  declare function getPeriod(currHour: number): TIME_SYSTEM_TEXT;
51
32
  declare const getRecoupHour: (currHour: number, period?: TIME_SYSTEM_TEXT | undefined) => number;
52
33
  export { getFormattedTime, getHourAndMinute, getPeriod, getRecoupHour, getTimestamp, getTimestampFromDate, getTimestampFromHourAndMin, HALF_DAY_HOURS, HOUR_MINUTES, lastMinute, minuteSource, ONE_HOUR, pad, parseNumber, parseNumberToString, TIME_GAP, twelveHourSystemSource, twentyFourHourSystemSource, };
@@ -6,9 +6,6 @@ declare type GetNumberPickerBoundaryOptions = {
6
6
  };
7
7
  isTwelveHourSystem?: boolean;
8
8
  };
9
- /**
10
- * get range from current hour
11
- */
12
9
  export declare function getNumberPickerBoundary(currentHour: number, { range, isTwelveHourSystem }: GetNumberPickerBoundaryOptions): {
13
10
  hour: {
14
11
  min: number;
@@ -1,14 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { TooltipTriggerProps } from './TooltipTrigger.type';
3
- /**
4
- * Accessibility naming strategy:
5
- * - Default (label mode): `title` is treated as an accessible label
6
- * - string `title` → `aria-label`
7
- * - React element `title` → `aria-labelledby` while the tooltip is open
8
- * - Description mode (`describeChild = true`): `title` is treated as an accessible description
9
- * - when closed → native `title` attribute
10
- * - when open → `aria-describedby` pointing to the tooltip id
11
- */
12
3
  declare const ARIA_DESCRIBEDBY = "aria-describedby";
13
4
  declare const ARIA_LABEL = "aria-label";
14
5
  declare const ARIA_LABELLEDBY = "aria-labelledby";