@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
|
@@ -3,12 +3,12 @@ import { UseButtonParameters } from '@mui/base';
|
|
|
3
3
|
import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { CircularProgressIndicatorProps, IconProps, WithTooltipProps } from '@ringcentral/spring-ui';
|
|
5
5
|
import { ButtonClassesKey } from './Button.classes';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
|
|
6
|
+
type DefaultElementType = 'button';
|
|
7
|
+
type ExtendElementType = 'button' | 'a';
|
|
8
|
+
export type ButtonSize = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
9
|
+
export type ButtonVariant = 'text' | 'contained' | 'outlined' | 'inverted';
|
|
10
|
+
export type ButtonColor = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'neutral';
|
|
11
|
+
type BaseButtonProps = WithClassesProps<WithTooltipProps<{
|
|
12
12
|
startIcon?: IconProps['symbol'] | React.ReactNode;
|
|
13
13
|
endIcon?: IconProps['symbol'] | React.ReactNode;
|
|
14
14
|
fullWidth?: boolean;
|
|
@@ -19,8 +19,8 @@ declare type BaseButtonProps = WithClassesProps<WithTooltipProps<{
|
|
|
19
19
|
loading?: boolean;
|
|
20
20
|
CircularProgressIndicatorProps?: CircularProgressIndicatorProps;
|
|
21
21
|
} & Omit<UseButtonParameters, 'href' | 'type' | 'rootRef'>>, ButtonClassesKey>;
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type ButtonProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseButtonProps, T>;
|
|
23
|
+
export type ButtonComponent = OverridableComponent<{
|
|
24
24
|
props: BaseButtonProps;
|
|
25
25
|
defaultComponent: DefaultElementType;
|
|
26
26
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseCallButtonClassesKey = 'root' | 'end' | 'start';
|
|
3
|
+
export type CallButtonClassesKey = CamelCase<BaseCallButtonClassesKey>;
|
|
4
|
+
export type CallButtonClasses = {
|
|
5
5
|
name: 'call-button';
|
|
6
6
|
classes: BaseCallButtonClassesKey;
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OverridableComponent, OverridableProps, UnionOmit, WithClassesProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { IconButtonProps } from '../IconButton';
|
|
3
3
|
import { IconButtonClassesKey } from '../IconButton/IconButton.classes';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export type DefaultElementType = 'button';
|
|
5
|
+
type ExtendElementType = 'button';
|
|
6
|
+
type BaseCallButtonProps = Omit<IconButtonProps, 'classes' | 'symbol' | 'label' | 'color' | 'variant' | 'shape' | 'size'> & WithClassesProps<{
|
|
7
7
|
variant: 'start' | 'end';
|
|
8
8
|
size?: 'large' | 'medium' | 'small';
|
|
9
9
|
}, UnionOmit<IconButtonClassesKey, 'rectangular' | 'outlined' | 'label' | 'primary'>>;
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type CallButtonProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseCallButtonProps, T>;
|
|
11
|
+
export type CallButtonComponent = OverridableComponent<{
|
|
12
12
|
props: BaseCallButtonProps;
|
|
13
13
|
defaultComponent: DefaultElementType;
|
|
14
14
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import { CheckboxShape } from './Checkbox.type';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseCheckboxClassesKey = 'root' | 'inner' | CheckboxShape | 'input' | `inner-${CheckboxShape}` | 'indeterminate';
|
|
4
|
+
export type CheckboxClassesKey = CamelCase<BaseCheckboxClassesKey>;
|
|
5
|
+
export type CheckboxClasses = {
|
|
6
6
|
name: 'checkbox';
|
|
7
7
|
classes: BaseCheckboxClassesKey;
|
|
8
8
|
};
|
|
@@ -4,8 +4,8 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<import("@ringc
|
|
|
4
4
|
indeterminate?: boolean | undefined;
|
|
5
5
|
autoFocus?: boolean | undefined;
|
|
6
6
|
inputRef?: import("react").Ref<HTMLInputElement> | undefined;
|
|
7
|
-
rootProps?: import("@ringcentral/spring-base").SlotProps<"div"
|
|
8
|
-
inputProps?: import("@ringcentral/spring-base").SlotProps<"input", "type" | "ref"
|
|
7
|
+
rootProps?: import("@ringcentral/spring-base").SlotProps<"div"> | undefined;
|
|
8
|
+
inputProps?: import("@ringcentral/spring-base").SlotProps<"input", "type" | "ref"> | undefined;
|
|
9
9
|
shape?: import("./Checkbox.type").CheckboxShape | undefined;
|
|
10
10
|
} & Omit<import("@mui/base").UseSwitchParameters, "readonly"> & {
|
|
11
11
|
className?: string | undefined;
|
|
@@ -2,8 +2,8 @@ import { Ref } from 'react';
|
|
|
2
2
|
import { UseSwitchParameters } from '@mui/base';
|
|
3
3
|
import { SlotProps, StandardProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { CheckboxClassesKey } from './Checkbox.classes';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type CheckboxShape = 'rectangular' | 'squircle';
|
|
6
|
+
export type CheckboxProps = StandardProps<{
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
inputRef?: Ref<HTMLInputElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseChipClassesKey = 'root' | 'truncate' | 'label' | 'large' | 'medium' | 'small' | 'delete-icon' | 'default' | 'error' | 'clickable';
|
|
3
|
+
export type ChipClassesKey = CamelCase<BaseChipClassesKey>;
|
|
4
|
+
export type ChipClasses = {
|
|
5
5
|
name: 'chip';
|
|
6
6
|
classes: BaseChipClassesKey;
|
|
7
7
|
};
|
package/src/Chip/Chip.type.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { OverridableComponent, OverridableProps, WithClassesProps } from '@ringc
|
|
|
2
2
|
import { KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
3
3
|
import { IconButtonProps } from '../IconButton';
|
|
4
4
|
import { ChipClassesKey } from './Chip.classes';
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
5
|
+
type DefaultElementType = 'div';
|
|
6
|
+
export type ExtendElementType = 'div' | 'a';
|
|
7
|
+
type BaseChipProps = WithClassesProps<{
|
|
8
8
|
startSlot?: ReactElement;
|
|
9
9
|
children?: null;
|
|
10
10
|
clickable?: boolean;
|
|
@@ -16,8 +16,8 @@ declare type BaseChipProps = WithClassesProps<{
|
|
|
16
16
|
DeleteIconProps?: Omit<IconButtonProps, 'variant' | 'size' | 'shape'>;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
}, ChipClassesKey>;
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type ChipProps<T extends ExtendElementType = DefaultElementType> = OverridableProps<BaseChipProps, T>;
|
|
20
|
+
export type ChipComponent = OverridableComponent<{
|
|
21
21
|
props: BaseChipProps;
|
|
22
22
|
defaultComponent: DefaultElementType;
|
|
23
23
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import type { CircularProgressIndicatorVariant, CircularProgressIndicatorSize, CircularProgressIndicatorColor } from './CircularProgressIndicator.type';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
type CircularProgressIndicatorSlot = 'outer-circle' | 'progress-circle' | 'inner-circle';
|
|
4
|
+
export type BaseCircularProgressIndicatorClassesKey = 'root' | CircularProgressIndicatorSlot | CircularProgressIndicatorVariant | CircularProgressIndicatorSize | CircularProgressIndicatorColor | `${CircularProgressIndicatorVariant}-${CircularProgressIndicatorSlot}` | `${CircularProgressIndicatorVariant}-${CircularProgressIndicatorSize}` | `${CircularProgressIndicatorVariant}-${CircularProgressIndicatorColor}`;
|
|
5
|
+
export type CircularProgressIndicatorClassesKey = CamelCase<BaseCircularProgressIndicatorClassesKey>;
|
|
6
|
+
export type CircularProgressIndicatorClasses = {
|
|
7
7
|
name: 'circular-progress-indicator';
|
|
8
8
|
classes: BaseCircularProgressIndicatorClassesKey;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CircularProgressIndicatorProps } from './CircularProgressIndicator.type';
|
|
3
3
|
import circularProgressIndicatorStyle from './styles/CircularProgressIndicator.css';
|
|
4
|
-
declare const CircularProgressIndicator: React.ForwardRefExoticComponent<Pick<CircularProgressIndicatorProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "
|
|
4
|
+
declare const CircularProgressIndicator: React.ForwardRefExoticComponent<Pick<CircularProgressIndicatorProps, "value" | "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" | "progressBarProps"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
export { CircularProgressIndicator, circularProgressIndicatorStyle };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
import { CircularProgressIndicatorClassesKey } from './CircularProgressIndicator.classes';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export type CircularProgressIndicatorVariant = 'indeterminate' | 'determinate';
|
|
5
|
+
export type CircularProgressIndicatorSize = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
6
|
+
export type CircularProgressIndicatorColor = 'primary' | 'neutral' | 'danger' | 'success' | 'warning';
|
|
7
|
+
export type CircularProgressIndicatorProps = StandardProps<{
|
|
8
8
|
variant?: CircularProgressIndicatorVariant;
|
|
9
9
|
size?: CircularProgressIndicatorSize;
|
|
10
10
|
color?: CircularProgressIndicatorColor;
|
package/src/ComponentsProps.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ import type { StepIconProps } from './StepIcon';
|
|
|
96
96
|
import type { StepButtonProps } from './StepButton';
|
|
97
97
|
import type { StepContentProps } from './StepContent';
|
|
98
98
|
import type { RatingProps } from './Rating';
|
|
99
|
-
export
|
|
99
|
+
export type ComponentsProps = PartialDeep<{
|
|
100
100
|
Accordion?: AccordionProps;
|
|
101
101
|
AccordionHeader?: AccordionHeaderProps;
|
|
102
102
|
Alert?: AlertProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseDatePickerClassesKey = 'root' | 'calendar' | 'header' | 'header-action' | 'switch-year-action' | 'switch-year-action-caret' | 'switch-month-actions-group' | 'switch-month-action' | 'date-button' | 'current-date' | 'day' | 'year' | 'years-panel' | 'days-panel' | 'days-grid' | 'week' | 'day-cell' | 'weekdays' | 'weekday' | 'loading-container' | 'today-button';
|
|
3
|
+
export type DatePickerClassesKey = CamelCase<BaseDatePickerClassesKey>;
|
|
4
|
+
export type DatePickerClasses = {
|
|
5
5
|
name: 'date-picker';
|
|
6
6
|
classes: BaseDatePickerClassesKey;
|
|
7
7
|
};
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { DatePickerProps } from './DatePicker.type';
|
|
3
3
|
import datePickerStyle from './styles/DatePicker.css';
|
|
4
4
|
declare const DEFAULT_FORMAT = "MM/DD/YYYY";
|
|
5
|
-
declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<DatePickerProps, "error" | "value" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "label" | "classes" | "focused" | "required" | "className" | "id" | "key" | "max" | "min" | "placeholder" | "size" | "type" | "onFocus" | "onBlur" | "onChange" | "action" | `data-${string}` | "helperText" | "FormHelperTextProps" | "variant" | "
|
|
5
|
+
declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<DatePickerProps, "error" | "value" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "label" | "classes" | "focused" | "required" | "className" | "id" | "key" | "max" | "min" | "placeholder" | "size" | "type" | "onFocus" | "onBlur" | "onChange" | "action" | `data-${string}` | "helperText" | "FormHelperTextProps" | "variant" | "autoFocus" | "fullWidth" | "onClose" | "loadingIndicator" | "inputProps" | "inputRef" | "locale" | "endAdornment" | "startAdornment" | "RootProps" | "clearBtn" | "useNativeClearBtn" | "clearText" | "showCharacterCount" | "ClearButtonProps" | "onClear" | "showMaskValueToggleButton" | "maskValue" | "onMaskValueChange" | "MaskValueButtonProps" | "ShowHideEyeIconProps" | "announcementText" | "PopoverProps" | "endIconSymbol" | "textInputClasses" | "screenReaderProps" | "disableFuture" | "disablePast" | "todayButtonText" | "formatString" | "renderDay" | "shouldDisableDate" | "onMonthChange" | "onSelectDay"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { DatePicker, datePickerStyle, DEFAULT_FORMAT };
|
|
@@ -3,9 +3,9 @@ import dayjs from 'dayjs';
|
|
|
3
3
|
import { PickerTextField } from '../PickerTextField';
|
|
4
4
|
import { CalendarProps } from './Calendar';
|
|
5
5
|
import { DatePickerClassesKey } from './DatePicker.classes';
|
|
6
|
-
import { ScreenReaderProps } from './utils';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
import type { ScreenReaderProps } from './utils';
|
|
7
|
+
export type DateType = dayjs.Dayjs;
|
|
8
|
+
export type DatePickerProps = StandardProps<{
|
|
9
9
|
onChange?: (date: Date | null, fromUserSelect?: boolean) => void;
|
|
10
10
|
locale?: string;
|
|
11
11
|
value?: Date | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { SlideDirection } from './SlideDirection';
|
|
3
3
|
import { DateType } from './DatePicker.type';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ViewType = 'day' | 'year';
|
|
5
|
+
type DatePickerHeaderProps = {
|
|
6
6
|
focusedDate: DateType;
|
|
7
7
|
slideDirection: SlideDirection;
|
|
8
8
|
view: ViewType;
|
|
@@ -10,6 +10,7 @@ declare type DatePickerHeaderProps = {
|
|
|
10
10
|
onMonthChange: (date: DateType, direction: SlideDirection) => void | Promise<void>;
|
|
11
11
|
disablePrevMonth?: boolean;
|
|
12
12
|
disableNextMonth?: boolean;
|
|
13
|
+
gridLabelId?: string;
|
|
13
14
|
};
|
|
14
15
|
declare const DatePickerHeader: FunctionComponent<DatePickerHeaderProps>;
|
|
15
16
|
export { DatePickerHeader };
|
package/src/DatePicker/Day.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropsWithRoot } from '@ringcentral/spring-base';
|
|
3
3
|
import { DateType } from './DatePicker.type';
|
|
4
|
-
|
|
4
|
+
type DayProps = PropsWithRoot<{
|
|
5
5
|
children: string;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
focused?: boolean;
|
|
@@ -11,6 +11,6 @@ declare type DayProps = PropsWithRoot<{
|
|
|
11
11
|
date: DateType;
|
|
12
12
|
current: boolean;
|
|
13
13
|
}, 'button', 'className'>;
|
|
14
|
-
declare const Day: import("react").ForwardRefExoticComponent<Pick<DayProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "current" | "
|
|
14
|
+
declare const Day: import("react").ForwardRefExoticComponent<Pick<DayProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "current" | "form" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "name" | "focused" | "selected" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "type" | "date" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "autoFocus" | "formEncType"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
export { Day };
|
|
16
16
|
export type { DayProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SlideDirection = 'right' | 'left';
|
package/src/DatePicker/Year.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropsWithRoot } from '@ringcentral/spring-base';
|
|
3
3
|
import { DateType } from './DatePicker.type';
|
|
4
|
-
|
|
4
|
+
type YearProps = PropsWithRoot<{
|
|
5
5
|
children: string;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
onSelect: (value: string) => void;
|
|
@@ -10,6 +10,6 @@ declare type YearProps = PropsWithRoot<{
|
|
|
10
10
|
date: DateType;
|
|
11
11
|
current: boolean;
|
|
12
12
|
}, 'button', 'className'>;
|
|
13
|
-
declare const Year: import("react").ForwardRefExoticComponent<Pick<YearProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "current" | "
|
|
13
|
+
declare const Year: import("react").ForwardRefExoticComponent<Pick<YearProps, "value" | "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "disabled" | "current" | "form" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "aria-hidden" | "role" | "name" | "selected" | "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "type" | "date" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "autoFocus" | "formEncType"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
export { Year };
|
|
15
15
|
export type { YearProps };
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
2
|
+
import type { DateType } from '../DatePicker.type';
|
|
3
|
+
type DayAriaLabelContext = {
|
|
4
|
+
date: DateType;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
today: boolean;
|
|
7
|
+
focused?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ScreenReaderProps = {
|
|
3
10
|
getMonthYearAriaLabel?: (monthLabel?: string, expanded?: boolean) => string;
|
|
4
11
|
getYearAriaLabel?: (year: string, selected: boolean) => string;
|
|
5
12
|
getSwitchMonthAriaLabel?: (isNext?: boolean, currentMonth?: string) => string;
|
|
6
13
|
getBackToTodayAriaLabel?: () => string;
|
|
7
|
-
|
|
14
|
+
getLoadingAriaLabel?: () => string;
|
|
15
|
+
getDayAriaLabel?: (day: string, selected: boolean, context?: DayAriaLabelContext) => string;
|
|
8
16
|
};
|
|
9
17
|
declare const ScreenReaderContext: import("react").Context<ScreenReaderProps | null>;
|
|
10
18
|
declare const useScreenReaderContext: () => ScreenReaderProps | null;
|
|
11
|
-
|
|
19
|
+
type ScreenReaderProviderProps = {
|
|
12
20
|
screenReaderProps?: ScreenReaderProps;
|
|
13
21
|
};
|
|
14
22
|
declare const ScreenReaderProvider: FunctionComponent<ScreenReaderProviderProps>;
|
|
15
23
|
export { ScreenReaderContext, ScreenReaderProvider, useScreenReaderContext };
|
|
16
|
-
export type { ScreenReaderProps, ScreenReaderProviderProps };
|
|
24
|
+
export type { DayAriaLabelContext, ScreenReaderProps, ScreenReaderProviderProps, };
|
|
@@ -6,7 +6,7 @@ export declare const isSameYearAndMonth: ({ source, comparing }: {
|
|
|
6
6
|
source: DateType;
|
|
7
7
|
comparing: DateType;
|
|
8
8
|
}, utils: DateUtils) => boolean;
|
|
9
|
-
|
|
9
|
+
type ValidateDateInRange = {
|
|
10
10
|
now: DateType;
|
|
11
11
|
} & Pick<CalendarProps, 'dateRange' | 'disableFuture' | 'disablePast'>;
|
|
12
12
|
export declare const invalidateDateInRange: (day: DateType, { dateRange: { min, max }, disableFuture, disablePast, now, }: ValidateDateInRange, utils: DateUtils) => false | import("dayjs").Dayjs;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import DateUtils from '@date-io/dayjs';
|
|
2
2
|
import { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { DateType } from '../DatePicker/DatePicker.type';
|
|
4
|
-
|
|
4
|
+
type WeekdayLabel = {
|
|
5
|
+
min: string;
|
|
6
|
+
short: string;
|
|
7
|
+
full: string;
|
|
8
|
+
};
|
|
9
|
+
type DateUtilsContextValue = DateUtils & {
|
|
5
10
|
getCalendarHeaderText: (date: DateType) => string;
|
|
6
11
|
getYearText: (date: DateType) => string;
|
|
7
12
|
getMonthText: (date: DateType) => string;
|
|
8
13
|
getDatePickerHeaderText: (date: DateType) => string;
|
|
9
14
|
getDateTimePickerHeaderText: (date: DateType) => string;
|
|
10
15
|
getDayText: (date: DateType) => string;
|
|
16
|
+
getWeekdayLabels: () => WeekdayLabel[];
|
|
11
17
|
getHourText: (date: DateType, ampm: boolean) => string;
|
|
12
18
|
getMinuteText: (date: DateType) => string;
|
|
13
19
|
getSecondText: (date: DateType) => string;
|
|
14
20
|
date: DateUtils['dayjs'];
|
|
15
21
|
};
|
|
16
|
-
export
|
|
22
|
+
export type DateUtilsProviderProps = {
|
|
17
23
|
children: ReactNode;
|
|
18
24
|
locale: string;
|
|
19
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { DialPadOnChangeReason } from '../DialPad';
|
|
3
|
-
|
|
3
|
+
type DialDeleteProps = {
|
|
4
4
|
children: React.ReactElement;
|
|
5
5
|
onDelete?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
|
|
6
6
|
onClear?: (e: React.MouseEvent<unknown, MouseEvent> | React.TouchEvent<unknown> | React.KeyboardEvent<unknown>, reason: DialPadOnChangeReason) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseDialPadClassesKey = 'root' | 'auto-size';
|
|
3
|
+
export type DialPadClassesKey = CamelCase<BaseDialPadClassesKey>;
|
|
4
|
+
export type DialPadClasses = {
|
|
5
5
|
name: 'dial-pad';
|
|
6
6
|
classes: BaseDialPadClassesKey;
|
|
7
7
|
};
|
|
@@ -4,8 +4,8 @@ import { IconButtonProps } from '../../IconButton';
|
|
|
4
4
|
import { DialPadButtonProps } from '../DialPadButton';
|
|
5
5
|
import dialPadStyle from './styles/DialPad.css';
|
|
6
6
|
import type { DIALER_PAD_ICON_VALUES, DialPadAction, DialPadControl, DialPadSoundMap } from './utils';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type DialPadOnChangeReason = UseLongPressEventReason | 'customKeyboard';
|
|
8
|
+
type DialPadProps = {
|
|
9
9
|
onChange?: (value: string, reason: DialPadOnChangeReason) => void;
|
|
10
10
|
sounds?: DialPadSoundMap;
|
|
11
11
|
volume?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type DIALER_PAD_ICON_VALUES = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '*' | '0' | '#';
|
|
3
|
+
export type DialPadSoundMap = {
|
|
4
4
|
[key in DIALER_PAD_ICON_VALUES]: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type DialKeyTimerMap = {
|
|
7
7
|
[key in DIALER_PAD_ICON_VALUES]?: number;
|
|
8
8
|
};
|
|
9
9
|
export declare const DIALER_PAD_ICONS: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DialPadAction = {
|
|
2
2
|
playAudio: (key: string) => false | Promise<void>;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type DialPadControl = {
|
|
5
5
|
handleKeyboardEffect: (value: string, isKeyup: boolean) => void;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DialPadControl } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type UseDialKeyboard<E extends KeyboardEvent | React.KeyboardEvent<any>> = {
|
|
4
4
|
onKeyDown?: (e: E) => void;
|
|
5
5
|
onKeyUp?: (e: E) => void;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type BaseDialPadButtonClassesKey = 'root' | 'medium' | 'large' | 'label-container';
|
|
3
|
+
export type DialPadButtonClassesKey = CamelCase<BaseDialPadButtonClassesKey>;
|
|
4
|
+
export type DialPadButtonClasses = {
|
|
5
5
|
name: 'dial-pad-button';
|
|
6
6
|
classes: BaseDialPadButtonClassesKey;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { FunctionComponent } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '../../IconButton';
|
|
3
3
|
import { DialPadOnChangeReason } from '../DialPad';
|
|
4
4
|
import dialPadButtonStyle from './styles/DialPadButton.css';
|
|
5
|
-
export
|
|
5
|
+
export type DialPadButtonProps = {
|
|
6
6
|
value: string;
|
|
7
7
|
longPressValue?: string;
|
|
8
8
|
longPressDelay?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextFieldProps } from '../../TextField';
|
|
3
3
|
import { DialPadOnChangeReason } from '../DialPad';
|
|
4
|
-
|
|
4
|
+
type DialTextFieldProps = {
|
|
5
5
|
externalWindow?: Window;
|
|
6
6
|
value: string;
|
|
7
7
|
onChange(value: string): unknown;
|
|
@@ -9,6 +9,6 @@ declare type DialTextFieldProps = {
|
|
|
9
9
|
onlyAllowKeypadValue?: boolean;
|
|
10
10
|
keypadMode?: boolean;
|
|
11
11
|
} & Omit<TextFieldProps, 'onChange' | 'value' | 'onClear' | 'clearBtn'>;
|
|
12
|
-
declare const DialTextField: import("react").ForwardRefExoticComponent<Pick<DialTextFieldProps, "error" | "value" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "label" | "classes" | "focused" | "required" | "className" | "id" | "defaultValue" | "placeholder" | "readOnly" | "size" | "type" | "
|
|
12
|
+
declare const DialTextField: import("react").ForwardRefExoticComponent<Pick<DialTextFieldProps, "error" | "value" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "externalWindow" | "label" | "classes" | "focused" | "required" | "className" | "id" | "defaultValue" | "placeholder" | "readOnly" | "size" | "type" | "onFocus" | "onBlur" | "onChange" | "helperText" | "FormHelperTextProps" | "variant" | "autoFocus" | "fullWidth" | "inputProps" | "inputRef" | "endAdornment" | "startAdornment" | "RootProps" | "useNativeClearBtn" | "clearText" | "showCharacterCount" | "ClearButtonProps" | "inputComponent" | "showMaskValueToggleButton" | "maskValue" | "onMaskValueChange" | "MaskValueButtonProps" | "ShowHideEyeIconProps" | "onEmit" | "onlyAllowKeypadValue" | "keypadMode"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export { DialTextField };
|
|
14
14
|
export type { DialTextFieldProps };
|