@ringcentral/spring-ui 1.9.2 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert.js +1 -1
- package/Announcement.js +4 -2
- package/Autocomplete.js +40 -7
- package/Avatar.js +42 -27
- package/DatePicker.js +45 -38
- package/DateUtilsContext.js +18 -1
- package/Dialer.js +1 -1
- package/Dialog.js +24 -15
- package/NestedMenuContext.js +4 -3
- package/Option.js +5 -5
- package/PickerTextField.js +2 -2
- package/Popper.js +1 -1
- package/Snackbar.js +7 -5
- package/SortableListDndContext.js +3 -3
- package/SortableListItem.js +21 -9
- package/SplitButton.js +1 -1
- package/SubMenu.js +208 -77
- package/SwipeableDrawer.js +1 -9
- package/Switch.js +15 -5
- package/TablePagination.js +11 -21
- package/TableRow.js +1 -1
- package/Text.js +2 -2
- package/Textarea.js +1 -1
- package/TimePicker.js +1 -1
- package/chunks/Alert.js +1 -1
- package/chunks/Drawer.js +1 -1
- package/chunks/Menu.js +25 -6
- package/chunks/Modal.js +7 -3
- package/chunks/PickerTextField.js +18 -7
- package/chunks/TextField.js +0 -1
- package/chunks/Tooltip.js +1 -1
- package/chunks/VirtualizedMenu.js +1 -1
- package/chunks/useMenuItemSelect.js +49 -17
- package/chunks/useNestedMenuItem.js +16 -5
- package/chunks/useNestedParentMenu.js +77 -5
- package/chunks/useTrayNavigate.js +1 -1
- package/index.css +543 -398
- package/index.js +1 -1
- package/package.json +4 -4
- package/src/Accordion/Accordion.classes.d.ts +3 -3
- package/src/Accordion/Accordion.d.ts +1 -1
- package/src/Accordion/Accordion.type.d.ts +1 -1
- package/src/Accordion/AccordionContext.d.ts +1 -1
- package/src/AccordionHeader/AccordionHeader.classes.d.ts +3 -3
- package/src/AccordionHeader/AccordionHeader.d.ts +1 -1
- package/src/AccordionHeader/AccordionHeader.type.d.ts +1 -1
- package/src/Alert/Alert.classes.d.ts +3 -3
- package/src/Alert/Alert.d.ts +3 -3
- package/src/Alert/Alert.type.d.ts +7 -7
- package/src/Alert/AlertTitle.classes.d.ts +3 -3
- package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.classes.d.ts +3 -3
- package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.d.ts +2 -2
- package/src/Animation/components/Fade/Fade.d.ts +1 -1
- package/src/Animation/components/Fade/getFade.d.ts +1 -1
- package/src/Animation/components/Grow/Grow.d.ts +1 -1
- package/src/Animation/components/Grow/getGrow.d.ts +4 -4
- package/src/Animation/components/ShowHideEye/ShowHideEye.classes.d.ts +3 -3
- package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +1 -1
- package/src/Animation/components/SlideIn/SlideIn.d.ts +1 -1
- package/src/Animation/components/SlideIn/getSlideIn.d.ts +2 -2
- package/src/Animation/components/SortableArrow/SortableArrow.classes.d.ts +3 -3
- package/src/Animation/components/SortableArrow/SortableArrow.d.ts +1 -1
- package/src/Animation/components/types.d.ts +2 -2
- package/src/Announcement/Announcement.classes.d.ts +3 -3
- package/src/Announcement/Announcement.type.d.ts +1 -1
- package/src/Autocomplete/Autocomplete.classes.d.ts +6 -6
- package/src/Autocomplete/Autocomplete.type.d.ts +6 -5
- package/src/Autocomplete/SuggestionList/SuggestionList.classes.d.ts +3 -3
- package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +3 -3
- package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +2 -2
- package/src/Autocomplete/SuggestionList/utils/SuggestionListItem.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/utils/useDynamicHeight.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/utils/useHighlightScroll.d.ts +1 -1
- package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +11 -11
- package/src/Autocomplete/SuggestionList/utils/useSuggestionListGroup.d.ts +2 -2
- package/src/Autocomplete/useAutocomplete.d.ts +20 -20
- package/src/Autocomplete/useAutocompleteTag.d.ts +12 -12
- package/src/Avatar/Avatar.classes.d.ts +5 -5
- package/src/Avatar/Avatar.type.d.ts +7 -7
- package/src/AvatarGroup/AvatarGroup.classes.d.ts +3 -3
- package/src/AvatarGroup/AvatarGroup.type.d.ts +6 -6
- package/src/Backdrop/Backdrop.classes.d.ts +3 -3
- package/src/Backdrop/Backdrop.type.d.ts +1 -1
- package/src/Badge/Badge.classes.d.ts +5 -5
- package/src/Badge/Badge.type.d.ts +7 -7
- package/src/Block/Block.classes.d.ts +3 -3
- package/src/Block/Block.type.d.ts +6 -6
- package/src/BlockHeader/BlockHeader.classes.d.ts +3 -3
- package/src/BlockHeader/BlockHeader.type.d.ts +4 -4
- package/src/BottomNavigation/BottomNavigation.classes.d.ts +3 -3
- package/src/BottomNavigation/BottomNavigation.type.d.ts +2 -2
- package/src/BottomNavigation/BottomNavigationContext.d.ts +1 -1
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.classes.d.ts +3 -3
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.type.d.ts +1 -1
- package/src/BottomNavigationItem/BottomNavigationItem.classes.d.ts +3 -3
- package/src/BottomNavigationItem/BottomNavigationItem.type.d.ts +1 -1
- package/src/Button/Button.classes.d.ts +3 -3
- package/src/Button/Button.type.d.ts +8 -8
- package/src/CallButton/CallButton.classes.d.ts +3 -3
- package/src/CallButton/CallButton.type.d.ts +5 -5
- package/src/Checkbox/Checkbox.classes.d.ts +3 -3
- package/src/Checkbox/Checkbox.d.ts +2 -2
- package/src/Checkbox/Checkbox.type.d.ts +2 -2
- package/src/Chip/Chip.classes.d.ts +3 -3
- package/src/Chip/Chip.type.d.ts +5 -5
- package/src/CircularProgressIndicator/CircularProgressIndicator.classes.d.ts +4 -4
- package/src/CircularProgressIndicator/CircularProgressIndicator.d.ts +1 -1
- package/src/CircularProgressIndicator/CircularProgressIndicator.type.d.ts +4 -4
- package/src/ComponentsProps.d.ts +1 -1
- package/src/DatePicker/Calendar.d.ts +1 -1
- package/src/DatePicker/DatePicker.classes.d.ts +3 -3
- package/src/DatePicker/DatePicker.d.ts +1 -1
- package/src/DatePicker/DatePicker.type.d.ts +3 -3
- package/src/DatePicker/DatePickerHeader.d.ts +3 -2
- package/src/DatePicker/Day.d.ts +2 -2
- package/src/DatePicker/SlideDirection.d.ts +1 -1
- package/src/DatePicker/Year.d.ts +2 -2
- package/src/DatePicker/Years.d.ts +1 -1
- package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +12 -4
- package/src/DatePicker/utils/DatePickerUtils.d.ts +1 -1
- package/src/DatePicker/utils/findClosestEnabledDate.d.ts +1 -1
- package/src/DateUtilsContext/DateUtilsContext.d.ts +8 -2
- package/src/Dialer/DialDelete/DialDelete.d.ts +1 -1
- package/src/Dialer/DialPad/DialPad.classes.d.ts +3 -3
- package/src/Dialer/DialPad/DialPad.d.ts +2 -2
- package/src/Dialer/DialPad/utils/DialPadUtils.d.ts +3 -3
- package/src/Dialer/DialPad/utils/types.d.ts +2 -2
- package/src/Dialer/DialPad/utils/useDialKeyboard.d.ts +1 -1
- package/src/Dialer/DialPad/utils/useKeyAudio.d.ts +1 -1
- package/src/Dialer/DialPadButton/DialPadButton.classes.d.ts +3 -3
- package/src/Dialer/DialPadButton/DialPadButton.d.ts +1 -1
- package/src/Dialer/DialTextField/DialTextField.d.ts +2 -2
- package/src/Dialer/Dialer.d.ts +1 -1
- package/src/Dialer/utils/DialerContext.d.ts +1 -1
- package/src/Dialog/Dialog.classes.d.ts +14 -14
- package/src/Dialog/Dialog.d.ts +1 -1
- package/src/Dialog/Dialog.type.d.ts +5 -4
- package/src/Divider/Divider.classes.d.ts +4 -4
- package/src/Divider/Divider.type.d.ts +7 -7
- package/src/DragHandle/DragHandle.classes.d.ts +3 -3
- package/src/DragHandle/DragHandle.type.d.ts +5 -5
- package/src/Drawer/Drawer.classes.d.ts +5 -5
- package/src/Drawer/Drawer.d.ts +1 -1
- package/src/Drawer/Drawer.type.d.ts +4 -4
- package/src/Dropdown/Dropdown.classes.d.ts +3 -3
- package/src/Dropdown/Dropdown.type.d.ts +1 -1
- package/src/EmptyState/EmptyState.classes.d.ts +3 -3
- package/src/EmptyState/EmptyState.d.ts +1 -1
- package/src/EmptyState/EmptyState.type.d.ts +1 -1
- package/src/FabButton/FabButton.classes.d.ts +3 -3
- package/src/FabButton/FabButton.type.d.ts +5 -5
- package/src/FocusTrap/FocusTrap.d.ts +2 -2
- package/src/FormField/FormField.classes.d.ts +4 -4
- package/src/FormField/FormField.type.d.ts +3 -3
- package/src/FormLabel/FormLabel.classes.d.ts +4 -4
- package/src/FormLabel/FormLabel.d.ts +1 -1
- package/src/FormLabel/FormLabel.type.d.ts +2 -2
- package/src/FormLabel/FormLabelContext.d.ts +1 -1
- package/src/Icon/Icon.classes.d.ts +3 -3
- package/src/Icon/Icon.d.ts +1 -1
- package/src/Icon/Icon.type.d.ts +2 -2
- package/src/IconButton/IconButton.classes.d.ts +3 -3
- package/src/IconButton/IconButton.type.d.ts +9 -9
- package/src/IconButton/IconButtonLabel.classes.d.ts +3 -3
- package/src/IconButton/IconButtonLabel.d.ts +1 -1
- package/src/IconButton/IconButtonLabel.type.d.ts +1 -1
- package/src/IconButtonGroup/IconButtonGroup.classes.d.ts +3 -3
- package/src/IconButtonGroup/IconButtonGroup.type.d.ts +4 -4
- package/src/InlineEditable/InlineEditable.classes.d.ts +4 -4
- package/src/InlineEditable/InlineEditable.type.d.ts +5 -5
- package/src/LinearProgressIndicator/LinearProgressIndicator.classes.d.ts +4 -4
- package/src/LinearProgressIndicator/LinearProgressIndicator.type.d.ts +2 -2
- package/src/Link/Link.classes.d.ts +4 -4
- package/src/Link/Link.type.d.ts +4 -4
- package/src/List/List.classes.d.ts +3 -3
- package/src/List/List.type.d.ts +1 -1
- package/src/ListItem/HoverActions.d.ts +1 -1
- package/src/ListItem/ListItem.classes.d.ts +3 -3
- package/src/ListItem/ListItem.d.ts +1 -1
- package/src/ListItem/ListItem.type.d.ts +1 -1
- package/src/ListItemText/ListItemText.classes.d.ts +4 -4
- package/src/ListItemText/ListItemText.d.ts +1 -1
- package/src/ListItemText/ListItemText.type.d.ts +2 -2
- package/src/ListNavigation/ListNavigationContext.d.ts +1 -1
- package/src/ListNavigation/useListNavigation.d.ts +6 -6
- package/src/Menu/Menu.classes.d.ts +3 -3
- package/src/Menu/Menu.d.ts +1 -1
- package/src/Menu/Menu.type.d.ts +1 -1
- package/src/Menu/MenuContext.d.ts +1 -1
- package/src/MenuActions/MenuActions.classes.d.ts +6 -6
- package/src/MenuActions/MenuActions.type.d.ts +1 -1
- package/src/MenuDivider/MenuDivider.classes.d.ts +3 -3
- package/src/MenuDivider/MenuDivider.type.d.ts +1 -1
- package/src/MenuFooter/MenuFooter.classes.d.ts +3 -3
- package/src/MenuFooter/MenuFooter.type.d.ts +1 -1
- package/src/MenuHeader/MenuHeader.classes.d.ts +3 -3
- package/src/MenuHeader/MenuHeader.type.d.ts +1 -1
- package/src/MenuItem/MenuItem.classes.d.ts +3 -3
- package/src/MenuItem/MenuItem.d.ts +1 -1
- package/src/MenuItem/MenuItem.type.d.ts +1 -1
- package/src/MenuItem/MenuItemSelectContext.d.ts +1 -1
- package/src/MenuItem/useMenuItem.d.ts +1 -1
- package/src/MenuItem/useMenuItemSelect.d.ts +5 -5
- package/src/MenuItem/useVirtualizedMenuItem.d.ts +2 -1
- package/src/MenuItemText/MenuItemText.classes.d.ts +3 -3
- package/src/MenuItemText/MenuItemText.d.ts +1 -1
- package/src/MenuItemText/MenuItemText.type.d.ts +1 -1
- package/src/MenuList/MenuList.classes.d.ts +3 -3
- package/src/MenuList/MenuList.type.d.ts +1 -1
- package/src/MenuList/MenuListContext.d.ts +1 -1
- package/src/Modal/InnerModal.d.ts +1 -1
- package/src/Modal/InnerModal.type.d.ts +2 -2
- package/src/Modal/Modal.classes.d.ts +3 -3
- package/src/Modal/Modal.d.ts +1 -1
- package/src/Modal/Modal.type.d.ts +1 -1
- package/src/Modal/ModalContext.d.ts +1 -1
- package/src/NestedMenuContext/MenuOverlayGroupContext.d.ts +15 -0
- package/src/NestedMenuContext/NestedMenuContext.d.ts +22 -5
- package/src/NestedMenuContext/SubMenuTriggerNestedIdContext.d.ts +2 -0
- package/src/NestedMenuContext/pointerGrace.d.ts +8 -0
- package/src/NestedMenuContext/useNestedChildMenu.d.ts +4 -2
- package/src/NestedMenuContext/useNestedMenuItem.d.ts +8 -3
- package/src/NestedMenuContext/useNestedParentMenu.d.ts +8 -1
- package/src/Option/Option.d.ts +1 -1
- package/src/Option/Option.type.d.ts +1 -1
- package/src/Overlap/Overlap.classes.d.ts +3 -3
- package/src/Overlap/Overlap.type.d.ts +8 -8
- package/src/PageHeader/PageHeader.classes.d.ts +15 -15
- package/src/PageHeader/PageHeader.type.d.ts +6 -6
- package/src/PickerTextField/PickerTextField.classes.d.ts +3 -3
- package/src/PickerTextField/PickerTextField.d.ts +1 -1
- package/src/PickerTextField/PickerTextField.type.d.ts +2 -2
- package/src/Popover/Popover.classes.d.ts +3 -3
- package/src/Popover/Popover.d.ts +1 -1
- package/src/Popover/Popover.type.d.ts +2 -2
- package/src/Popper/Popper.d.ts +1 -1
- package/src/Popper/Popper.type.d.ts +4 -4
- package/src/PopperPaper/PopperPaper.classes.d.ts +3 -3
- package/src/PopperPaper/PopperPaper.d.ts +1 -1
- package/src/PopperPaper/PopperPaper.type.d.ts +1 -1
- package/src/Radio/Radio.classes.d.ts +3 -3
- package/src/Radio/Radio.d.ts +2 -2
- package/src/Radio/Radio.type.d.ts +1 -1
- package/src/RadioGroup/RadioGroup.classes.d.ts +3 -3
- package/src/RadioGroup/RadioGroup.context.d.ts +1 -1
- package/src/RadioGroup/RadioGroup.d.ts +1 -1
- package/src/RadioGroup/RadioGroup.type.d.ts +1 -1
- package/src/Rating/Rating.classes.d.ts +3 -3
- package/src/Rating/Rating.d.ts +1 -1
- package/src/Rating/Rating.type.d.ts +2 -2
- package/src/Rating/RatingItem.d.ts +1 -1
- package/src/Select/Select.classes.d.ts +4 -4
- package/src/Select/Select.type.d.ts +5 -5
- package/src/Select/useSelect.d.ts +1 -1
- package/src/SingleFilter/FilterButton/FilterButton.classes.d.ts +3 -3
- package/src/SingleFilter/FilterButton/FilterButton.d.ts +1 -1
- package/src/SingleFilter/FilterButton/FilterButton.type.d.ts +2 -2
- package/src/SingleFilter/SingleFilter.classes.d.ts +3 -3
- package/src/SingleFilter/SingleFilter.d.ts +1 -1
- package/src/SingleFilter/SingleFilter.type.d.ts +2 -2
- package/src/Skeleton/Skeleton.classes.d.ts +3 -3
- package/src/Skeleton/Skeleton.type.d.ts +1 -1
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.classes.d.ts +3 -3
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.type.d.ts +5 -5
- package/src/Slider/Slider.classes.d.ts +4 -4
- package/src/Slider/Slider.d.ts +3 -3
- package/src/Slider/Slider.type.d.ts +2 -2
- package/src/Slider/SliderThumb.d.ts +1 -1
- package/src/Snackbar/Snackbar.classes.d.ts +3 -3
- package/src/Snackbar/Snackbar.d.ts +1 -1
- package/src/Snackbar/Snackbar.type.d.ts +1 -1
- package/src/Snackbar/SnackbarContent/SnackbarContent.classes.d.ts +3 -3
- package/src/Snackbar/SnackbarContent/SnackbarContent.type.d.ts +1 -1
- package/src/SortableList/SortableList.type.d.ts +1 -1
- package/src/SortableListDndContext/SortableListDndContext.type.d.ts +2 -2
- package/src/SortableListItem/SortableListItem.d.ts +1 -1
- package/src/SortableListItem/SortableListItem.type.d.ts +2 -2
- package/src/SortableListItem/SortableListItemOverlay.d.ts +1 -1
- package/src/SortableListItem/SortableListItemOverlay.type.d.ts +1 -1
- package/src/SortableVirtualizedList/SortableVirtualizedList.type.d.ts +1 -1
- package/src/SplitButton/SplitButton.classes.d.ts +3 -3
- package/src/SplitButton/SplitButton.d.ts +1 -1
- package/src/SplitButton/SplitButton.type.d.ts +1 -1
- package/src/Squircle/Squircle.type.d.ts +5 -5
- package/src/Squircle/squircle.classes.d.ts +3 -3
- package/src/StatusIndicator/StatusIndicator.classes.d.ts +3 -3
- package/src/StatusIndicator/StatusIndicator.type.d.ts +1 -1
- package/src/Step/Step.classes.d.ts +3 -3
- package/src/Step/Step.type.d.ts +5 -5
- package/src/Step/StepContext.d.ts +1 -1
- package/src/StepButton/StepButton.classes.d.ts +3 -3
- package/src/StepButton/StepButton.type.d.ts +5 -5
- package/src/StepConnector/StepConnector.classes.d.ts +3 -3
- package/src/StepConnector/StepConnector.type.d.ts +1 -1
- package/src/StepContent/StepContent.classes.d.ts +3 -3
- package/src/StepContent/StepContent.d.ts +1 -1
- package/src/StepContent/StepContent.type.d.ts +1 -1
- package/src/StepIcon/StepIcon.classes.d.ts +3 -3
- package/src/StepIcon/StepIcon.type.d.ts +1 -1
- package/src/StepLabel/StepLabel.classes.d.ts +4 -4
- package/src/StepLabel/StepLabel.d.ts +1 -1
- package/src/StepLabel/StepLabel.type.d.ts +1 -1
- package/src/Stepper/Stepper.classes.d.ts +3 -3
- package/src/Stepper/Stepper.type.d.ts +6 -6
- package/src/Stepper/StepperContext.d.ts +1 -1
- package/src/SubMenu/PopperMenu.classes.d.ts +3 -3
- package/src/SubMenu/PopperMenu.d.ts +1 -1
- package/src/SubMenu/PopperMenu.type.d.ts +1 -1
- package/src/SubMenu/SubMenu.d.ts +1 -1
- package/src/SubMenu/SubMenu.type.d.ts +1 -1
- package/src/SubMenu/useSubMenuInteractionState.d.ts +13 -0
- package/src/SubMenu/useSubMenuPointerGrace.d.ts +15 -0
- package/src/SwipeableDrawer/SwipeableDrawer.classes.d.ts +3 -3
- package/src/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/src/SwipeableDrawer/SwipeableDrawer.types.d.ts +2 -2
- package/src/SwipeableDrawer/hooks/useSnapPoints.d.ts +1 -1
- package/src/Switch/Switch.classes.d.ts +3 -3
- package/src/Switch/Switch.d.ts +4 -2
- package/src/Switch/Switch.type.d.ts +4 -1
- package/src/Tab/Tab.classes.d.ts +4 -4
- package/src/Tab/Tab.d.ts +1 -1
- package/src/Tab/Tab.type.d.ts +4 -4
- package/src/TabContext/TabContext.type.d.ts +1 -1
- package/src/TabPanel/TabPanel.classes.d.ts +3 -3
- package/src/TabPanel/TabPanel.d.ts +1 -1
- package/src/TabPanel/TabPanel.type.d.ts +1 -1
- package/src/Table/Table.classes.d.ts +3 -3
- package/src/Table/Table.type.d.ts +5 -5
- package/src/Table/TableContext.d.ts +1 -1
- package/src/Table/Tablelvl2Context.d.ts +1 -1
- package/src/TableBody/TableBody.classes.d.ts +3 -3
- package/src/TableBody/TableBody.type.d.ts +5 -5
- package/src/TableCell/TableCell.classes.d.ts +3 -3
- package/src/TableCell/TableCell.type.d.ts +7 -7
- package/src/TableContainer/TableContainer.classes.d.ts +3 -3
- package/src/TableContainer/TableContainer.type.d.ts +6 -6
- package/src/TableFooter/TableFooter.classes.d.ts +3 -3
- package/src/TableFooter/TableFooter.d.ts +1 -1
- package/src/TableFooter/TableFooter.type.d.ts +1 -1
- package/src/TableHead/TableHead.classes.d.ts +3 -3
- package/src/TableHead/TableHead.type.d.ts +5 -5
- package/src/TablePagination/TablePagination.classes.d.ts +3 -3
- package/src/TablePagination/TablePagination.type.d.ts +8 -6
- package/src/TableRow/TableRow.classes.d.ts +3 -3
- package/src/TableRow/TableRow.type.d.ts +5 -5
- package/src/Tabs/TabMoreMenu.d.ts +2 -2
- package/src/Tabs/TabScrollButton.d.ts +2 -2
- package/src/Tabs/Tabs.classes.d.ts +9 -9
- package/src/Tabs/Tabs.d.ts +1 -1
- package/src/Tabs/Tabs.type.d.ts +2 -2
- package/src/Tabs/TabsContext.d.ts +1 -1
- package/src/Tabs/hooks/useTabsScroller.d.ts +3 -3
- package/src/Tag/Tag.classes.d.ts +3 -3
- package/src/Tag/Tag.d.ts +1 -1
- package/src/Tag/Tag.type.d.ts +2 -2
- package/src/Text/Text.classes.d.ts +3 -3
- package/src/Text/Text.type.d.ts +5 -5
- package/src/TextField/TextField.classes.d.ts +3 -3
- package/src/TextField/TextField.d.ts +1 -1
- package/src/TextField/TextField.type.d.ts +9 -9
- package/src/Textarea/Textarea.classes.d.ts +4 -4
- package/src/Textarea/Textarea.d.ts +1 -1
- package/src/Textarea/Textarea.type.d.ts +3 -3
- package/src/TimePicker/NumberPicker.d.ts +1 -1
- package/src/TimePicker/NumberPicker.type.d.ts +3 -3
- package/src/TimePicker/PickerView.type.d.ts +3 -3
- package/src/TimePicker/SelectionView.d.ts +1 -1
- package/src/TimePicker/TimeButton.d.ts +1 -1
- package/src/TimePicker/TimePicker.classes.d.ts +3 -3
- package/src/TimePicker/TimePicker.type.d.ts +1 -1
- package/src/TimePicker/ToggleText.d.ts +1 -1
- package/src/TimePicker/ToggleText.type.d.ts +2 -2
- package/src/TimePicker/utils/TimeBoundary.d.ts +3 -3
- package/src/TimePicker/utils/TimePickerHelper.d.ts +5 -5
- package/src/TimePicker/utils/getNumberPickerBoundary.d.ts +1 -1
- package/src/TimePicker/utils/runKeyHandler.d.ts +1 -1
- package/src/Tooltip/Tooltip.type.d.ts +1 -1
- package/src/Tooltip/TooltipTrigger.a11y.d.ts +4 -4
- package/src/Tooltip/TooltipTrigger.type.d.ts +1 -1
- package/src/Tooltip/TooltipView.classes.d.ts +3 -3
- package/src/Tooltip/TooltipView.type.d.ts +2 -2
- package/src/Tooltip/withTooltip/withTooltip.d.ts +1 -1
- package/src/Tray/Tray.classes.d.ts +6 -6
- package/src/Tray/Tray.d.ts +1 -1
- package/src/Tray/Tray.type.d.ts +2 -2
- package/src/Tray/TrayContext.d.ts +1 -1
- package/src/Tray/TrayPanel.d.ts +1 -1
- package/src/Tray/hooks/useTray.d.ts +2 -2
- package/src/Tray/hooks/useTrayPanel.d.ts +2 -2
- package/src/Tray/types.d.ts +2 -2
- package/src/TrayMenu/TrayMenu.d.ts +1 -1
- package/src/TrayMenu/TrayMenu.type.d.ts +1 -1
- package/src/TrayMenu/TrayMenuItem.d.ts +2 -2
- package/src/VirtualizedList/VirtualizedItemPropsContext.d.ts +1 -1
- package/src/VirtualizedList/VirtualizedList.type.d.ts +2 -2
- package/src/VirtualizedList/VirtuosoContextType.d.ts +1 -1
- package/src/VirtualizedMenu/VirtualizedMenu.classes.d.ts +3 -3
- package/src/VirtualizedMenu/VirtualizedMenu.context.d.ts +1 -1
- package/src/VirtualizedMenu/VirtualizedMenu.type.d.ts +1 -1
- package/src/VirtualizedMenu/VirtualizedMenuList.d.ts +1 -1
- package/src/VisuallyHidden/VisuallyHidden.classes.d.ts +3 -3
- package/src/VisuallyHidden/VisuallyHidden.type.d.ts +1 -1
- package/src/internal/utils/composeEventHandlers.d.ts +7 -0
- package/src/internal/utils/index.d.ts +1 -0
- package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, PropsWithoutRef } from 'react';
|
|
2
2
|
import { SuggestionListGroupedOption, SuggestionListItemData } from './SuggestionListItem';
|
|
3
|
-
export
|
|
3
|
+
export type UseAutocompleteGroupParams<T extends SuggestionListItemData = SuggestionListItemData> = {
|
|
4
4
|
id: string;
|
|
5
5
|
options: T[];
|
|
6
6
|
getOptionDisabled?: (option: T) => boolean;
|
|
@@ -12,7 +12,7 @@ export declare type UseAutocompleteGroupParams<T extends SuggestionListItemData
|
|
|
12
12
|
onGroupExpanded?: (group: SuggestionListGroupedOption<T>, groupStateMap: Record<string, boolean>) => void;
|
|
13
13
|
getExpandIconProps?: (group: SuggestionListGroupedOption) => PropsWithoutRef<React.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>> | undefined;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type ExpandedMapState = Record<string, boolean>;
|
|
16
16
|
export declare const useAutocompleteGroup: <T extends SuggestionListItemData = SuggestionListItemData>({ groupBy, options, filteredResult, getExpandIconProps, groupExpanded, groupDefaultExpanded, onGroupExpanded, groupVariant, getOptionDisabled, id, }: UseAutocompleteGroupParams<T>) => {
|
|
17
17
|
optionsGroupList: SuggestionListGroupedOption<T>[];
|
|
18
18
|
groupedResult: T[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ChangeEvent, DetailedHTMLProps, HTMLAttributes, InputHTMLAttributes, PropsWithoutRef } from 'react';
|
|
2
2
|
import { SuggestionListGetItemPropsOptions, SuggestionListItemData, UseSuggestionListParams } from './SuggestionList';
|
|
3
3
|
import { UseAutocompleteTagParams } from './useAutocompleteTag';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type AutocompleteCloseReason = 'toggleInput' | 'escape' | 'select-option' | 'blur';
|
|
5
|
+
export type UseAutocompleteParams<T extends SuggestionListItemData = SuggestionListItemData> = {
|
|
6
6
|
inputContainerRef?: React.RefObject<HTMLDivElement>;
|
|
7
7
|
addNoOptionItem?: 'first' | 'last';
|
|
8
8
|
open?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare type UseAutocompleteParams<T extends SuggestionListItemData = Sug
|
|
|
14
14
|
autoSelect?: boolean;
|
|
15
15
|
openOnFocus?: boolean;
|
|
16
16
|
toggleWithInput?: boolean;
|
|
17
|
-
renderNoOptions?: (getNoOptionsProps: (additionProps: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) => DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, additionItem: SuggestionListItemData | null) => React.ReactNode;
|
|
17
|
+
renderNoOptions?: boolean | ((getNoOptionsProps: (additionProps: PropsWithoutRef<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>>) => DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, additionItem: SuggestionListItemData | null) => React.ReactNode);
|
|
18
18
|
autoHighlight?: boolean;
|
|
19
19
|
focused?: boolean;
|
|
20
20
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required'> & UseSuggestionListParams<T> & Omit<UseAutocompleteTagParams<T>, 'id'>;
|
|
@@ -31,16 +31,16 @@ 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
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
35
|
-
dir?: string | undefined;
|
|
36
34
|
slot?: string | undefined;
|
|
37
35
|
style?: import("react").CSSProperties | undefined;
|
|
38
36
|
title?: string | undefined;
|
|
39
37
|
'aria-live'?: "assertive" | "off" | "polite" | undefined;
|
|
40
38
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
39
|
+
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
41
40
|
role?: string | undefined;
|
|
42
41
|
className?: string | undefined;
|
|
43
42
|
accessKey?: string | undefined;
|
|
43
|
+
dir?: string | undefined;
|
|
44
44
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
45
45
|
hidden?: boolean | undefined;
|
|
46
46
|
lang?: string | undefined;
|
|
@@ -90,7 +90,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
90
90
|
'aria-colindex'?: number | undefined;
|
|
91
91
|
'aria-colspan'?: number | undefined;
|
|
92
92
|
'aria-controls'?: string | undefined;
|
|
93
|
-
'aria-current'?: boolean | "true" | "
|
|
93
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
94
94
|
'aria-describedby'?: string | undefined;
|
|
95
95
|
'aria-details'?: string | undefined;
|
|
96
96
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
@@ -99,7 +99,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
99
99
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
100
100
|
'aria-flowto'?: string | undefined;
|
|
101
101
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
102
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
102
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
103
103
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
104
104
|
'aria-keyshortcuts'?: string | undefined;
|
|
105
105
|
'aria-label'?: string | undefined;
|
|
@@ -283,16 +283,16 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
283
283
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
284
284
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
285
285
|
};
|
|
286
|
-
getClearButtonProps: (props?:
|
|
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">;
|
|
287
287
|
activeIndex: number;
|
|
288
288
|
setActiveIndex: (tagToFocus: number, focus?: any) => void;
|
|
289
289
|
isOpen: boolean;
|
|
290
|
-
getToggleButtonProps: (props?:
|
|
291
|
-
getPopperProps: (restPopperProps?:
|
|
292
|
-
getLabelProps: (props?: DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined) =>
|
|
293
|
-
getSuggestionListProps: (restMenuProps?: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> | undefined) =>
|
|
294
|
-
getInputProps: (props?:
|
|
295
|
-
getInputAriaProps: (props?:
|
|
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>>;
|
|
292
|
+
getLabelProps: (props?: DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined) => import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement>;
|
|
293
|
+
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>>;
|
|
296
296
|
getTagListBoxProps: (props?: HTMLAttributes<HTMLElement> | undefined) => {
|
|
297
297
|
defaultChecked?: boolean | undefined;
|
|
298
298
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -347,7 +347,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
347
347
|
'aria-colindex'?: number | undefined;
|
|
348
348
|
'aria-colspan'?: number | undefined;
|
|
349
349
|
'aria-controls'?: string | undefined;
|
|
350
|
-
'aria-current'?: boolean | "true" | "
|
|
350
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
351
351
|
'aria-describedby'?: string | undefined;
|
|
352
352
|
'aria-details'?: string | undefined;
|
|
353
353
|
'aria-disabled': boolean | "true" | "false";
|
|
@@ -356,7 +356,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
356
356
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
357
357
|
'aria-flowto'?: string | undefined;
|
|
358
358
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
359
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
359
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
360
360
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
361
361
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
362
362
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -558,7 +558,7 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
558
558
|
tags: T[];
|
|
559
559
|
optionItems: T[];
|
|
560
560
|
inputValue: string;
|
|
561
|
-
onInputChange: (newValue: string, open?: boolean, e?: ChangeEvent<{}>
|
|
561
|
+
onInputChange: (newValue: string, open?: boolean, e?: ChangeEvent<{}>) => boolean;
|
|
562
562
|
keepHighlightedIndex: () => void;
|
|
563
563
|
isKeepHighlightedIndex: boolean;
|
|
564
564
|
setHighlightedIndex: (index: number, { reRender, reason, }: {
|
|
@@ -566,9 +566,9 @@ export declare const useAutocomplete: <T extends SuggestionListItemData = Sugges
|
|
|
566
566
|
reason?: import("./SuggestionList").SuggestionListHighlightChangeReason;
|
|
567
567
|
}) => void;
|
|
568
568
|
changeHighlightedIndexReason: import("./SuggestionList").SuggestionListHighlightChangeReason;
|
|
569
|
-
closeMenu: (e?: ChangeEvent<{}
|
|
570
|
-
openMenu: (e?: ChangeEvent<{}>
|
|
571
|
-
reset: (isFocus?: boolean
|
|
569
|
+
closeMenu: (e?: ChangeEvent<{}>, reason?: AutocompleteCloseReason) => void;
|
|
570
|
+
openMenu: (e?: ChangeEvent<{}>) => void;
|
|
571
|
+
reset: (isFocus?: boolean) => void;
|
|
572
572
|
forceUpdate: () => void;
|
|
573
573
|
optionsGroupList: import("./SuggestionList").SuggestionListGroupedOption<T>[];
|
|
574
574
|
focused: boolean | undefined;
|
|
@@ -3,14 +3,14 @@ import { HTMLDataAttribute } from '@ringcentral/spring-base';
|
|
|
3
3
|
import { SuggestionListItemData, UseSuggestionListParams } from './SuggestionList';
|
|
4
4
|
export declare function stringArrToRegExp(keyToTags?: string[]): RegExp;
|
|
5
5
|
export declare const DEFAULT_KEY_TO_CHIPS: string[];
|
|
6
|
-
export
|
|
6
|
+
export type GetTagProps<T> = PropsWithChildren<{
|
|
7
7
|
index: number;
|
|
8
8
|
selectedItem: T;
|
|
9
9
|
onDelete?: React.EventHandler<any>;
|
|
10
10
|
label?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
} & PropsWithoutRef<Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, 'color'>> & HTMLDataAttribute>;
|
|
13
|
-
export
|
|
13
|
+
export type UseAutocompleteTagParams<T extends SuggestionListItemData = SuggestionListItemData> = {
|
|
14
14
|
id: string;
|
|
15
15
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
16
16
|
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
@@ -34,10 +34,10 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
34
34
|
focusedIndex: number;
|
|
35
35
|
onInputChange: (e: React.ChangeEvent<HTMLInputElement>) => boolean;
|
|
36
36
|
checkAndAddFreeSolo: ({ selectedItem, value, }?: {
|
|
37
|
-
selectedItem?: T | null
|
|
38
|
-
value?: string
|
|
39
|
-
}, e?: ChangeEvent<{}>
|
|
40
|
-
getTagListBoxProps: (props?: HTMLAttributes<HTMLElement>
|
|
37
|
+
selectedItem?: T | null;
|
|
38
|
+
value?: string;
|
|
39
|
+
}, e?: ChangeEvent<{}>) => boolean;
|
|
40
|
+
getTagListBoxProps: (props?: HTMLAttributes<HTMLElement>) => {
|
|
41
41
|
defaultChecked?: boolean | undefined;
|
|
42
42
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
43
43
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -91,7 +91,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
91
91
|
'aria-colindex'?: number | undefined;
|
|
92
92
|
'aria-colspan'?: number | undefined;
|
|
93
93
|
'aria-controls'?: string | undefined;
|
|
94
|
-
'aria-current'?: boolean | "true" | "
|
|
94
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
95
95
|
'aria-describedby'?: string | undefined;
|
|
96
96
|
'aria-details'?: string | undefined;
|
|
97
97
|
'aria-disabled': boolean | "true" | "false";
|
|
@@ -100,7 +100,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
100
100
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
101
101
|
'aria-flowto'?: string | undefined;
|
|
102
102
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
103
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
103
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
104
104
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
105
105
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
106
106
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -305,16 +305,16 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
305
305
|
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
306
306
|
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
307
307
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
308
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
309
|
-
dir?: string | undefined;
|
|
310
308
|
slot?: string | undefined;
|
|
311
309
|
style?: import("react").CSSProperties | undefined;
|
|
312
310
|
title?: string | undefined;
|
|
313
311
|
'aria-live'?: "assertive" | "off" | "polite" | undefined;
|
|
314
312
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
313
|
+
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
315
314
|
role?: string | undefined;
|
|
316
315
|
className?: string | undefined;
|
|
317
316
|
accessKey?: string | undefined;
|
|
317
|
+
dir?: string | undefined;
|
|
318
318
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
319
319
|
hidden?: boolean | undefined;
|
|
320
320
|
lang?: string | undefined;
|
|
@@ -364,7 +364,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
364
364
|
'aria-colindex'?: number | undefined;
|
|
365
365
|
'aria-colspan'?: number | undefined;
|
|
366
366
|
'aria-controls'?: string | undefined;
|
|
367
|
-
'aria-current'?: boolean | "true" | "
|
|
367
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
368
368
|
'aria-describedby'?: string | undefined;
|
|
369
369
|
'aria-details'?: string | undefined;
|
|
370
370
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
@@ -373,7 +373,7 @@ export declare const useAutocompleteTag: <T extends SuggestionListItemData = Sug
|
|
|
373
373
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
374
374
|
'aria-flowto'?: string | undefined;
|
|
375
375
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
376
|
-
'aria-haspopup'?: boolean | "true" | "
|
|
376
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
377
377
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
378
378
|
'aria-keyshortcuts'?: string | undefined;
|
|
379
379
|
'aria-label'?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import type { AvatarSize, AvatarVariant } from './Avatar.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
3
|
+
export type AvatarSlot = 'content' | 'img' | 'indicator' | 'hover-tint' | 'shape';
|
|
4
|
+
export type AvatarColors = 'default' | 'primary';
|
|
5
|
+
export type BaseAvatarClassesKey = 'root' | 'clickable' | 'indicator' | AvatarVariant | AvatarSlot | AvatarSize | AvatarColors | `${AvatarSize}-${AvatarSlot}` | `${AvatarVariant}-${AvatarSlot}` | `${AvatarVariant}-${AvatarColors}` | `clickable-${AvatarSlot}` | `clickable-${AvatarVariant}` | `clickable-hover-tint-${AvatarColors}-${AvatarVariant}`;
|
|
6
|
+
export type AvatarClassesKey = CamelCase<BaseAvatarClassesKey>;
|
|
7
|
+
export type AvatarClasses = {
|
|
8
8
|
name: 'avatar';
|
|
9
9
|
classes: BaseAvatarClassesKey;
|
|
10
10
|
};
|
|
@@ -3,11 +3,11 @@ import { ComponentProps, ComponentType, ElementRef, ElementType, ReactNode, Ref
|
|
|
3
3
|
import { OverlapProps } from '../Overlap';
|
|
4
4
|
import { StatusIndicatorProps } from '../StatusIndicator';
|
|
5
5
|
import { AvatarClassesKey } from './Avatar.classes';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
6
|
+
type DefaultElementType = 'div';
|
|
7
|
+
type ExtendElementType = ElementType;
|
|
8
|
+
export type AvatarVariant = 'circle' | 'squircle';
|
|
9
|
+
export type AvatarSize = 'xxlarge' | 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | 'xxsmall';
|
|
10
|
+
type BaseAvatarProps = WithClassesProps<{
|
|
11
11
|
alt?: string;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
imgProps?: Omit<ComponentProps<'img'>, 'alt' | 'src' | 'srcSet'>;
|
|
@@ -25,8 +25,8 @@ declare type BaseAvatarProps = WithClassesProps<{
|
|
|
25
25
|
rootProps?: Omit<ComponentProps<'div'>, 'className' | 'classes'> & Partial<OverlapProps>;
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
} & Pick<UseFocusVisibleOptions, 'onFocusVisible'>, AvatarClassesKey>;
|
|
28
|
-
export
|
|
29
|
-
export
|
|
28
|
+
export type AvatarProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseAvatarProps, T>;
|
|
29
|
+
export type AvatarComponent = OverridableComponent<{
|
|
30
30
|
props: BaseAvatarProps;
|
|
31
31
|
defaultComponent: DefaultElementType;
|
|
32
32
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseAvatarGroupClassesKey = 'root' | 'item';
|
|
3
|
+
export type AvatarGroupClassesKey = CamelCase<BaseAvatarGroupClassesKey>;
|
|
4
|
+
export type AvatarGroupClasses = {
|
|
5
5
|
name: 'avatar-group';
|
|
6
6
|
classes: BaseAvatarGroupClassesKey;
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { WithClassesProps, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { AvatarGroupClassesKey } from './AvatarGroup.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type DefaultElementType = 'div';
|
|
5
|
+
type ExtendElementType = 'div' | 'button';
|
|
6
|
+
type BaseAvatarGroupProps = WithClassesProps<{
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}, AvatarGroupClassesKey>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type AvatarGroupProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseAvatarGroupProps, T>;
|
|
10
|
+
export type AvatarGroupComponent = OverridableComponent<{
|
|
11
11
|
props: BaseAvatarGroupProps;
|
|
12
12
|
defaultComponent: DefaultElementType;
|
|
13
13
|
}>;
|
|
14
|
-
export
|
|
14
|
+
export type AvatarGroupContextValue = {
|
|
15
15
|
size?: 'small';
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseBackdropClassesKey = 'root' | 'transparent';
|
|
3
|
+
export type BackdropClassesKey = CamelCase<BaseBackdropClassesKey>;
|
|
4
|
+
export type BackdropClasses = {
|
|
5
5
|
name: 'backdrop';
|
|
6
6
|
classes: BaseBackdropClassesKey;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { BackdropClassesKey } from './Backdrop.classes';
|
|
3
|
-
export
|
|
3
|
+
export type BackdropProps = StandardProps<{
|
|
4
4
|
isTransparent?: boolean;
|
|
5
5
|
}, BackdropClassesKey, 'div'>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CamelCase, KebabCase } from 'type-fest';
|
|
2
2
|
import type { BadgeAnchorOrigin, BadgeColor, BadgeOverlap, BadgeSize, BadgeType, BadgeVariant } from './Badge.type';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
3
|
+
type BadgeSlot = 'content';
|
|
4
|
+
export type BadgeAnchorOriginClasses = KebabCase<BadgeAnchorOrigin>;
|
|
5
|
+
export type BaseBadgeClassesKey = 'root' | 'absolute' | BadgeType | BadgeSlot | BadgeVariant | BadgeColor | BadgeSize | BadgeOverlap | BadgeAnchorOriginClasses | `${BadgeType}-${BadgeSize}` | `${BadgeType}-${BadgeColor}` | `${BadgeType}-${BadgeVariant}` | `${BadgeType}-${BadgeVariant}-${BadgeSize}` | `${BadgeOverlap}-${BadgeAnchorOriginClasses}`;
|
|
6
|
+
export type BadgeClassesKey = CamelCase<BaseBadgeClassesKey>;
|
|
7
|
+
export type BadgeClasses = {
|
|
8
8
|
name: 'badge';
|
|
9
9
|
classes: BaseBadgeClassesKey;
|
|
10
10
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { UseBadgeParameters } from '@mui/base';
|
|
2
2
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { BadgeClassesKey } from './Badge.classes';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
4
|
+
export type BadgeVariant = 'contained' | 'outlined';
|
|
5
|
+
export type BadgeColor = 'danger' | 'primary' | 'success' | 'warning' | 'secondary';
|
|
6
|
+
export type BadgeSize = 'small' | 'medium';
|
|
7
|
+
export type BadgeOverlap = 'rectangular' | 'circular';
|
|
8
|
+
export type BadgeAnchorOrigin = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
9
|
+
export type BadgeType = 'standard' | 'dot';
|
|
10
|
+
export type BadgeProps = StandardProps<{
|
|
11
11
|
variant?: BadgeVariant;
|
|
12
12
|
type?: BadgeType;
|
|
13
13
|
count?: number | string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import type { BlockBorderRadius, BlockColor } from './Block.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseBlockClassesKey = 'root' | 'row' | 'padding' | 'bordered' | `border-radius-${BlockBorderRadius}` | `border-radius-${BlockBorderRadius}` | `border-radius-${BlockBorderRadius}` | `border-radius-${BlockBorderRadius}` | BlockColor | 'hide-background';
|
|
4
|
+
export type BlockClassesKey = CamelCase<BaseBlockClassesKey>;
|
|
5
|
+
export type BlockClasses = {
|
|
6
6
|
name: 'block';
|
|
7
7
|
classes: BaseBlockClassesKey;
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
2
|
import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { BlockClassesKey } from './Block.classes';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export type BlockBorderRadius = 'none' | 'xsmall' | 'small' | 'medium';
|
|
5
|
+
export type BlockColor = 'default' | 'neutral';
|
|
6
|
+
type DefaultElementType = 'div';
|
|
7
|
+
type BaseBlockProps = WithClassesProps<{
|
|
8
8
|
row?: boolean;
|
|
9
9
|
padding?: boolean;
|
|
10
10
|
bordered?: boolean;
|
|
@@ -12,8 +12,8 @@ declare type BaseBlockProps = WithClassesProps<{
|
|
|
12
12
|
color?: BlockColor;
|
|
13
13
|
background?: boolean;
|
|
14
14
|
}, BlockClassesKey>;
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type BlockProps<T extends ElementType = DefaultElementType> = OverridableProps<BaseBlockProps, T>;
|
|
16
|
+
export type BlockComponent = OverridableComponent<{
|
|
17
17
|
props: BaseBlockProps;
|
|
18
18
|
defaultComponent: DefaultElementType;
|
|
19
19
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseBlockHeaderClassesKey = 'root' | 'title' | 'end-slot' | 'divider';
|
|
3
|
+
export type BlockHeaderClassesKey = CamelCase<BaseBlockHeaderClassesKey>;
|
|
4
|
+
export type BlockHeaderClasses = {
|
|
5
5
|
name: 'block-header';
|
|
6
6
|
classes: BaseBlockHeaderClassesKey;
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { BlockHeaderClassesKey } from './BlockHeader.classes';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type DefaultElementType = 'div';
|
|
5
|
+
type BaseBlockHeaderProps = WithClassesProps<{
|
|
6
6
|
endSlot?: ReactNode;
|
|
7
7
|
divider?: boolean;
|
|
8
8
|
}, BlockHeaderClassesKey>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type BlockHeaderProps<T extends ElementType = DefaultElementType> = OverridableProps<BaseBlockHeaderProps, T>;
|
|
10
|
+
export type BlockHeaderComponent = OverridableComponent<{
|
|
11
11
|
props: BaseBlockHeaderProps;
|
|
12
12
|
defaultComponent: DefaultElementType;
|
|
13
13
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseBottomNavigationClassesKey = 'root' | 'full-width' | 'item-wrapper' | 'description' | 'empty-slot';
|
|
3
|
+
export type BottomNavigationClassesKey = CamelCase<BaseBottomNavigationClassesKey>;
|
|
4
|
+
export type BottomNavigationClasses = {
|
|
5
5
|
name: 'bottom-navigation';
|
|
6
6
|
classes: BaseBottomNavigationClassesKey;
|
|
7
7
|
};
|
|
@@ -3,8 +3,8 @@ import { HTMLMotionProps } from 'framer-motion';
|
|
|
3
3
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { BottomNavigationItemProps } from '../BottomNavigationItem';
|
|
5
5
|
import { BottomNavigationClassesKey } from './BottomNavigation.classes';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type CollapseReason = 'EscapeKeyDown' | 'TabBlur' | 'ClickAway' | 'ToggleMore' | 'ItemSelected';
|
|
7
|
+
export type BottomNavigationProps<T = string> = StandardProps<{
|
|
8
8
|
defaultValue?: T;
|
|
9
9
|
value?: T;
|
|
10
10
|
defaultData?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseBottomNavigationGroupClassesKey = 'root';
|
|
3
|
+
export type BottomNavigationGroupClassesKey = CamelCase<BaseBottomNavigationGroupClassesKey>;
|
|
4
|
+
export type BottomNavigationGroupClasses = {
|
|
5
5
|
name: 'bottom-navigation-group';
|
|
6
6
|
classes: BaseBottomNavigationGroupClassesKey;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { BottomNavigationGroupClassesKey } from './BottomNavigationGroup.classes';
|
|
3
|
-
export
|
|
3
|
+
export type BottomNavigationGroupProps = StandardProps<{}, BottomNavigationGroupClassesKey, 'div'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseBottomNavigationItemClassesKey = 'root' | 'button' | 'activated';
|
|
3
|
+
export type BottomNavigationItemClassesKey = CamelCase<BaseBottomNavigationItemClassesKey>;
|
|
4
|
+
export type BottomNavigationItemClasses = {
|
|
5
5
|
name: 'bottom-navigation-item';
|
|
6
6
|
classes: BaseBottomNavigationItemClassesKey;
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { BadgeProps } from '../Badge';
|
|
|
4
4
|
import { IconButtonProps } from '../IconButton';
|
|
5
5
|
import { TooltipProps } from '../Tooltip';
|
|
6
6
|
import { BottomNavigationItemClassesKey } from './BottomNavigationItem.classes';
|
|
7
|
-
export
|
|
7
|
+
export type BottomNavigationItemProps<T = string> = StandardProps<{
|
|
8
8
|
value?: T;
|
|
9
9
|
symbol: ComponentType;
|
|
10
10
|
activatedSymbol?: ComponentType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import { ButtonColor, ButtonSize, ButtonVariant } from './Button.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseButtonClassesKey = 'root' | 'loading' | 'loading-indicator' | 'content' | 'start-slot' | 'end-slot' | 'full-width' | 'hide-background' | 'has-start-slot' | 'has-end-slot' | ButtonVariant | ButtonSize | ButtonColor | `${ButtonVariant}-${ButtonColor}` | `${ButtonVariant}-${ButtonSize}` | `${ButtonSize}-start-slot` | `${ButtonSize}-end-slot` | `${ButtonVariant}-${ButtonSize}-start-slot` | `${ButtonVariant}-${ButtonSize}-end-slot` | `${ButtonVariant}-hide-background`;
|
|
4
|
+
export type ButtonClassesKey = CamelCase<BaseButtonClassesKey>;
|
|
5
|
+
export type ButtonClasses = {
|
|
6
6
|
name: 'button';
|
|
7
7
|
classes: BaseButtonClassesKey;
|
|
8
8
|
};
|