@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,7 +1,7 @@
|
|
|
1
1
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { TabPanelClassesKey } from './TabPanel.classes';
|
|
4
|
-
export
|
|
4
|
+
export type TabPanelProps = StandardProps<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
value: number | string;
|
|
7
7
|
keepMounted?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTableClassesKey = 'root' | 'sticky-header' | 'sticky-footer';
|
|
3
|
+
export type TableClassesKey = CamelCase<BaseTableClassesKey>;
|
|
4
|
+
export type TableClasses = {
|
|
5
5
|
name: 'table';
|
|
6
6
|
classes: BaseTableClassesKey;
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { TableClassesKey } from './Table.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type DefaultElementType = 'table';
|
|
5
|
+
type ExtendElementType = ElementType;
|
|
6
|
+
type BaseTableProps = WithClassesProps<{
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
stickyHeader?: boolean;
|
|
9
9
|
stickyFooter?: boolean;
|
|
10
10
|
columnDivider?: boolean;
|
|
11
11
|
}, TableClassesKey>;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type TableProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableProps, T>;
|
|
13
|
+
export type TableComponent = OverridableComponent<{
|
|
14
14
|
props: BaseTableProps;
|
|
15
15
|
defaultComponent: DefaultElementType;
|
|
16
16
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTableBodyClassesKey = 'root';
|
|
3
|
+
export type TableBodyClassesKey = CamelCase<BaseTableBodyClassesKey>;
|
|
4
|
+
export type TableBodyClasses = {
|
|
5
5
|
name: 'table-body';
|
|
6
6
|
classes: BaseTableBodyClassesKey;
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { WithClassesProps, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { TableBodyClassesKey } from './TableBody.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type DefaultElementType = 'tbody';
|
|
5
|
+
type ExtendElementType = ElementType;
|
|
6
|
+
type BaseTableBodyProps = WithClassesProps<{
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
}, TableBodyClassesKey>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type TableBodyProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableBodyProps, T>;
|
|
10
|
+
export type TableBodyComponent = OverridableComponent<{
|
|
11
11
|
props: BaseTableBodyProps;
|
|
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 BaseTableCellClassesKey = 'root' | 'head' | 'body' | 'sortable' | 'sorted' | 'footer' | 'padding-checkbox' | 'padding-none' | 'align-left' | 'align-center' | 'align-right' | 'align-justify' | 'sticky-header-default-bg' | 'content' | 'content-padding-checkbox' | 'content-align-right' | 'content-align-center' | 'content-align-justify' | 'content-sortable' | 'sort-icon' | 'sort-icon-sorted' | 'sort-indicator' | 'column-divider';
|
|
3
|
+
export type TableCellClassesKey = CamelCase<BaseTableCellClassesKey>;
|
|
4
|
+
export type TableCellClasses = {
|
|
5
5
|
name: 'table-cell';
|
|
6
6
|
classes: BaseTableCellClassesKey;
|
|
7
7
|
};
|
|
@@ -2,11 +2,11 @@ import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringc
|
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
4
|
import { TableCellClassesKey } from './TableCell.classes';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
5
|
+
type DefaultElementType = 'td';
|
|
6
|
+
type ExtendElementType = ElementType;
|
|
7
|
+
export type SortDirection = 'asc' | 'desc' | false;
|
|
8
|
+
export type TableCellBaseProps = React.ThHTMLAttributes<HTMLTableCellElement> & React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
9
|
+
type BaseTableCellProps = WithClassesProps<{
|
|
10
10
|
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
|
11
11
|
padding?: 'normal' | 'checkbox' | 'none';
|
|
12
12
|
scope?: TableCellBaseProps['scope'];
|
|
@@ -16,8 +16,8 @@ declare type BaseTableCellProps = WithClassesProps<{
|
|
|
16
16
|
SortIconProps?: IconProps;
|
|
17
17
|
variant?: 'head' | 'body' | 'footer';
|
|
18
18
|
}, TableCellClassesKey>;
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type TableCellProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableCellProps, T>;
|
|
20
|
+
export type TableCellComponent = OverridableComponent<{
|
|
21
21
|
props: BaseTableCellProps;
|
|
22
22
|
defaultComponent: DefaultElementType;
|
|
23
23
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import type { TableContainerBorder } from './TableContainer.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseTableContainerClassesKey = 'root' | TableContainerBorder | `${TableContainerBorder}-border`;
|
|
4
|
+
export type TableContainerClassesKey = CamelCase<BaseTableContainerClassesKey>;
|
|
5
|
+
export type TableContainerClasses = {
|
|
6
6
|
name: 'table-container';
|
|
7
7
|
classes: BaseTableContainerClassesKey;
|
|
8
8
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { WithClassesProps, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
import { TableContainerClassesKey } from './TableContainer.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
4
|
+
type DefaultElementType = 'div';
|
|
5
|
+
type ExtendElementType = ElementType;
|
|
6
|
+
export type TableContainerBorder = 'standard' | 'none' | 'rounded';
|
|
7
|
+
type BaseTableContainerProps = WithClassesProps<{
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
border?: TableContainerBorder;
|
|
10
10
|
}, TableContainerClassesKey>;
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type TableContainerProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableContainerProps, T>;
|
|
12
|
+
export type TableContainerComponent = OverridableComponent<{
|
|
13
13
|
props: BaseTableContainerProps;
|
|
14
14
|
defaultComponent: DefaultElementType;
|
|
15
15
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CamelCase } from 'type-fest';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
type BaseTableFooterClassesKey = 'root' | 'content' | 'padding-checkbox' | 'padding-none' | 'sticky';
|
|
3
|
+
export type TableFooterClassesKey = CamelCase<BaseTableFooterClassesKey>;
|
|
4
|
+
export type TableFooterClasses = {
|
|
5
5
|
name: 'table-footer';
|
|
6
6
|
classes: BaseTableFooterClassesKey;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TableFooterProps } from './TableFooter.type';
|
|
3
3
|
import tableFooterStyles from './styles/TableFooter.css';
|
|
4
|
-
declare const TableFooter: import("react").ForwardRefExoticComponent<Pick<TableFooterProps, "classes" | "key" | "padding" | `data-${string}` |
|
|
4
|
+
declare const TableFooter: import("react").ForwardRefExoticComponent<Pick<TableFooterProps, "classes" | "key" | "padding" | `data-${string}` | keyof import("react").HTMLAttributes<HTMLTableSectionElement> | "colSpan"> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
5
5
|
export { TableFooter, tableFooterStyles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { TdHTMLAttributes } from 'react';
|
|
3
3
|
import { TableFooterClassesKey } from './TableFooter.classes';
|
|
4
|
-
export
|
|
4
|
+
export type TableFooterProps = StandardProps<{
|
|
5
5
|
padding?: 'normal' | 'checkbox' | 'none';
|
|
6
6
|
} & Pick<TdHTMLAttributes<HTMLTableCellElement>, 'colSpan'>, TableFooterClassesKey, 'tfoot'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTableHeadClassesKey = 'root' | 'background' | 'title' | 'end-slot' | 'sticky' | 'divider';
|
|
3
|
+
export type TableHeadClassesKey = CamelCase<BaseTableHeadClassesKey>;
|
|
4
|
+
export type TableHeadClasses = {
|
|
5
5
|
name: 'table-head';
|
|
6
6
|
classes: BaseTableHeadClassesKey;
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { WithClassesProps, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
import { TableHeadClassesKey } from './TableHead.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type DefaultElementType = 'thead';
|
|
5
|
+
type ExtendElementType = ElementType;
|
|
6
|
+
type BaseTableHeadProps = WithClassesProps<{
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
useDefaultBgColor?: boolean;
|
|
9
9
|
}, TableHeadClassesKey>;
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type TableHeadProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableHeadProps, T>;
|
|
11
|
+
export type TableHeadComponent = OverridableComponent<{
|
|
12
12
|
props: BaseTableHeadProps;
|
|
13
13
|
defaultComponent: DefaultElementType;
|
|
14
14
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CamelCase } from 'type-fest';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
type BaseTablePaginationClassesKey = 'root' | 'content' | 'range-container' | 'rows-per-page-controls' | 'rows-per-page-label' | 'range-label' | 'current-page-controls' | 'selector';
|
|
3
|
+
export type TablePaginationClassesKey = CamelCase<BaseTablePaginationClassesKey>;
|
|
4
|
+
export type TablePaginationClasses = {
|
|
5
5
|
name: 'table-pagination';
|
|
6
6
|
classes: BaseTablePaginationClassesKey;
|
|
7
7
|
};
|
|
@@ -3,23 +3,25 @@ import { ElementType } from 'react';
|
|
|
3
3
|
import { IconButtonProps } from '../IconButton';
|
|
4
4
|
import { SelectProps } from '../Select';
|
|
5
5
|
import { TablePaginationClassesKey } from './TablePagination.classes';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
6
|
+
type DefaultElementType = 'td';
|
|
7
|
+
type ExtendElementType = ElementType;
|
|
8
|
+
export type BaseTablePaginationProps = WithClassesProps<{
|
|
9
9
|
variant?: 'range' | 'select-page' | 'page-size';
|
|
10
10
|
page: number;
|
|
11
11
|
count?: number;
|
|
12
12
|
rowsPerPage?: number;
|
|
13
13
|
rowsPerPageLabel?: string;
|
|
14
14
|
rowsPerPageOptions?: number[];
|
|
15
|
-
onRowsPerPageChange?: SelectProps['onChange'];
|
|
15
|
+
onRowsPerPageChange?: SelectProps<number>['onChange'];
|
|
16
16
|
rangeSeparatorLabel?: string;
|
|
17
17
|
previousPageButtonProps?: IconButtonProps;
|
|
18
18
|
nextPageButtonProps?: IconButtonProps;
|
|
19
|
+
selectorProps?: SelectProps<number>['selectorProps'];
|
|
20
|
+
MenuProps?: SelectProps<number>['MenuProps'];
|
|
19
21
|
onPageChange?: (e: React.MouseEvent<HTMLButtonElement> | React.ChangeEvent<HTMLInputElement>, page: number) => void;
|
|
20
22
|
}, TablePaginationClassesKey>;
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
+
export type TablePaginationProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTablePaginationProps, T>;
|
|
24
|
+
export type TablePaginationComponent = OverridableComponent<{
|
|
23
25
|
props: BaseTablePaginationProps;
|
|
24
26
|
defaultComponent: DefaultElementType;
|
|
25
27
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTableRowClassesKey = 'root' | 'body' | 'footer' | 'head' | 'hoverable' | 'clickable' | 'focusVisible';
|
|
3
|
+
export type TableRowClassesKey = CamelCase<BaseTableRowClassesKey>;
|
|
4
|
+
export type TableRowClasses = {
|
|
5
5
|
name: 'table-row';
|
|
6
6
|
classes: BaseTableRowClassesKey;
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { WithClassesProps, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
import { TableRowClassesKey } from './TableRow.classes';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type DefaultElementType = 'tr';
|
|
5
|
+
type ExtendElementType = ElementType;
|
|
6
|
+
type BaseTableRowProps = WithClassesProps<{
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
hoverable?: boolean;
|
|
9
9
|
clickable?: boolean;
|
|
10
10
|
selected?: boolean;
|
|
11
11
|
}, TableRowClassesKey>;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type TableRowProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseTableRowProps, T>;
|
|
13
|
+
export type TableRowComponent = OverridableComponent<{
|
|
14
14
|
props: BaseTableRowProps;
|
|
15
15
|
defaultComponent: DefaultElementType;
|
|
16
16
|
}>;
|
|
@@ -6,14 +6,14 @@ import { MenuProps } from '../Menu';
|
|
|
6
6
|
import type { TabProps } from '../Tab/Tab.type';
|
|
7
7
|
import { TooltipProps } from '../Tooltip';
|
|
8
8
|
import { TabMoreMenuClassesKey } from './Tabs.classes';
|
|
9
|
-
export
|
|
9
|
+
export type MoreMenuProps = StandardProps<{
|
|
10
10
|
TooltipProps?: Omit<TooltipProps, 'children'> & HTMLDataAttribute;
|
|
11
11
|
BadgeProps?: BadgeCompProps & HTMLDataAttribute;
|
|
12
12
|
ButtonProps?: Omit<IconButtonProps, 'variant' | 'className' | 'onClick'> & HTMLDataAttribute;
|
|
13
13
|
MenuProps?: Omit<MenuProps, 'anchorEl' | 'open'> & HTMLDataAttribute;
|
|
14
14
|
MenuItemComponent?: ComponentType<TabProps>;
|
|
15
15
|
}, TabMoreMenuClassesKey, 'div'>;
|
|
16
|
-
|
|
16
|
+
type TabMoreMenuProps = MoreMenuProps & {
|
|
17
17
|
menuItems: TabProps[];
|
|
18
18
|
};
|
|
19
19
|
declare const TabMoreMenu: import("react").ForwardRefExoticComponent<Pick<TabMoreMenuProps, "classes" | "key" | `data-${string}` | keyof import("react").HTMLAttributes<HTMLDivElement> | "TooltipProps" | "MenuProps" | "menuItems" | "BadgeProps" | "ButtonProps" | "MenuItemComponent"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { IconButtonProps } from '../IconButton';
|
|
4
4
|
import { TabScrollButtonClassesKey } from './Tabs.classes';
|
|
5
|
-
export
|
|
5
|
+
export type TabScrollButtonProps = StandardProps<{
|
|
6
6
|
direction?: 'left' | 'right';
|
|
7
7
|
onClick?: IconButtonProps['onClick'];
|
|
8
8
|
ButtonProps?: Omit<IconButtonProps, 'variant' | 'className' | 'onClick'> & HTMLDataAttribute;
|
|
9
9
|
}, TabScrollButtonClassesKey, 'div'>;
|
|
10
|
-
declare const TabScrollButton: import("react").ForwardRefExoticComponent<Pick<TabScrollButtonProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "
|
|
10
|
+
declare const TabScrollButton: import("react").ForwardRefExoticComponent<Pick<TabScrollButtonProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "classes" | "className" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "direction" | "ButtonProps"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export { TabScrollButton };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTabsClassesKey = 'root' | 'scroller' | 'scrollable' | 'tab-list' | 'underline' | 'indicator' | 'compact' | 'pill' | 'floating-underline' | 'scroll-left' | 'scroll-right' | 'scroll-both' | 'medium' | 'large' | 'small';
|
|
3
|
+
export type TabsClassesKey = CamelCase<BaseTabsClassesKey>;
|
|
4
|
+
export type TabsClasses = {
|
|
5
5
|
name: 'tabs';
|
|
6
6
|
classes: BaseTabsClassesKey;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
8
|
+
export type BaseTabMoreMenuClassesKey = 'root' | 'button' | 'badge-root' | 'pill-badge';
|
|
9
|
+
export type TabMoreMenuClassesKey = CamelCase<BaseTabMoreMenuClassesKey>;
|
|
10
|
+
export type TabMoreMenuClasses = {
|
|
11
11
|
name: 'tab-more-menu';
|
|
12
12
|
classes: BaseTabMoreMenuClassesKey;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type BaseTabScrollButtonClassesKey = 'root' | 'start' | 'button';
|
|
15
|
+
export type TabScrollButtonClassesKey = CamelCase<BaseTabScrollButtonClassesKey>;
|
|
16
|
+
export type TabScrollButtonClasses = {
|
|
17
17
|
name: 'tab-scroll-button';
|
|
18
18
|
classes: BaseTabScrollButtonClassesKey;
|
|
19
19
|
};
|
package/src/Tabs/Tabs.d.ts
CHANGED
|
@@ -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" | "onMouseDown" | "onClick" | "
|
|
4
|
+
declare const Tabs: import("react").ForwardRefExoticComponent<Pick<TabsProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "classes" | "className" | "accessKey" | "dir" | "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" | "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 };
|
package/src/Tabs/Tabs.type.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ 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
|
|
8
|
-
export
|
|
7
|
+
export type TabsSize = 'medium' | 'large' | 'small';
|
|
8
|
+
export type TabsProps = StandardProps<{
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
variant?: 'standard' | 'scrollable' | 'moreMenu';
|
|
11
11
|
pill?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { motionTransition } from '@ringcentral/spring-theme';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TabScrollButtonProps } from '../TabScrollButton';
|
|
4
|
-
export
|
|
4
|
+
export type UseTabsScrollerParameters = {
|
|
5
5
|
enable: boolean;
|
|
6
6
|
scrollerRef: React.RefObject<HTMLDivElement>;
|
|
7
7
|
tabListRef: React.RefObject<HTMLDivElement>;
|
|
@@ -9,10 +9,10 @@ export declare type UseTabsScrollerParameters = {
|
|
|
9
9
|
ScrollButtonStartProps?: TabScrollButtonProps['ButtonProps'];
|
|
10
10
|
ScrollButtonEndProps?: TabScrollButtonProps['ButtonProps'];
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ConditionalElements = {
|
|
13
13
|
scrollButtonStart?: React.ReactNode;
|
|
14
14
|
scrollButtonEnd?: React.ReactNode;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type UseTabsScrollerReturn = ConditionalElements;
|
|
17
17
|
export declare const useTabsScroller: ({ enable, scrollerRef, tabListRef, scroll, ScrollButtonStartProps, ScrollButtonEndProps, }: UseTabsScrollerParameters) => UseTabsScrollerReturn;
|
|
18
18
|
export {};
|
package/src/Tag/Tag.classes.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import { TagColor } from './Tag.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseTagClassesKey = 'root' | 'has-start-icon' | TagColor | 'outlined' | `filled-${TagColor}` | `inverted-${TagColor}` | 'label' | 'start-icon';
|
|
4
|
+
export type TagClassesKey = CamelCase<BaseTagClassesKey>;
|
|
5
|
+
export type TagClasses = {
|
|
6
6
|
name: 'tag';
|
|
7
7
|
classes: BaseTagClassesKey;
|
|
8
8
|
};
|
package/src/Tag/Tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import tagStyle from './styles/Tag.css';
|
|
3
3
|
import { TagProps } from './Tag.type';
|
|
4
|
-
declare const Tag: React.ForwardRefExoticComponent<Pick<TagProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "
|
|
4
|
+
declare const Tag: React.ForwardRefExoticComponent<Pick<TagProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "label" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "classes" | "className" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "variant" | "startIcon"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { Tag, tagStyle };
|
package/src/Tag/Tag.type.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
4
|
import { TagClassesKey } from './Tag.classes';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type TagColor = 'default' | 'neutral' | 'secondary' | 'primary' | 'danger' | 'success' | 'warning';
|
|
6
|
+
export type TagProps = StandardProps<{
|
|
7
7
|
variant?: 'outlined' | 'filled' | 'inverted';
|
|
8
8
|
color?: TagColor;
|
|
9
9
|
startIcon?: IconProps['symbol'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseTextClassesKey = 'root' | 'no-wrap' | 'highlight-term';
|
|
3
|
+
export type TextClassesKey = CamelCase<BaseTextClassesKey>;
|
|
4
|
+
export type TextClasses = {
|
|
5
5
|
name: 'text';
|
|
6
6
|
classes: BaseTextClassesKey;
|
|
7
7
|
};
|
package/src/Text/Text.type.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { ElementType, ReactNode } from 'react';
|
|
|
2
2
|
import { WithClassesProps, HTMLDataAttribute, OverridableComponent, OverridableProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { TooltipProps } from '@ringcentral/spring-ui';
|
|
4
4
|
import { TextClassesKey } from './Text.classes';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export type TextDefaultElementType = 'span';
|
|
6
|
+
type ExtendElementType = ElementType;
|
|
7
|
+
type BaseTextProps = WithClassesProps<{
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
flexFull?: boolean;
|
|
10
10
|
highlight?: boolean;
|
|
@@ -13,8 +13,8 @@ declare type BaseTextProps = WithClassesProps<{
|
|
|
13
13
|
useTooltip?: boolean;
|
|
14
14
|
TooltipProps?: Omit<TooltipProps, 'title' | 'PopperProps' | 'open' | 'onOpenStateChange'> & HTMLDataAttribute;
|
|
15
15
|
}, TextClassesKey>;
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type TextProps<T extends ExtendElementType = TextDefaultElementType> = OverridableProps<BaseTextProps, T>;
|
|
17
|
+
export type TextComponent = OverridableComponent<{
|
|
18
18
|
props: BaseTextProps;
|
|
19
19
|
defaultComponent: TextDefaultElementType;
|
|
20
20
|
}>;
|