@ringcentral/spring-ui 1.7.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/Accordion.js +64 -0
- package/AccordionHeader.js +33 -0
- package/Alert.js +28 -0
- package/Animation.js +46 -0
- package/Announcement.js +48 -0
- package/Autocomplete.js +1767 -0
- package/Avatar.js +105 -0
- package/AvatarGroup.js +9 -0
- package/Backdrop.js +9 -0
- package/Badge.js +15 -0
- package/Block.js +20 -0
- package/BlockHeader.js +18 -0
- package/BottomNavigation.js +145 -0
- package/BottomNavigationItem.js +30 -0
- package/Button.js +24 -0
- package/CallButton.js +39 -0
- package/Checkbox.js +55 -0
- package/Chip.js +26 -0
- package/CircularProgressIndicator.js +10 -0
- package/ClickAwayListener.js +1 -0
- package/ComponentsProps.js +1 -0
- package/DatePicker.js +485 -0
- package/DateUtilsContext.js +56 -0
- package/Dialer.js +587 -0
- package/Dialog.js +62 -0
- package/Divider.js +9 -0
- package/DragHandle.js +8 -0
- package/Drawer.js +19 -0
- package/Dropdown.js +132 -0
- package/EmptyState.js +17 -0
- package/FabButton.js +32 -0
- package/FocusTrap.js +48 -0
- package/FormField.js +10 -0
- package/FormLabel.js +9 -0
- package/Icon.js +9 -0
- package/IconButton.js +26 -0
- package/IconButtonGroup.js +18 -0
- package/InlineEditable.js +98 -0
- package/LICENSE +22 -0
- package/LinearProgressIndicator.js +44 -0
- package/Link.js +18 -0
- package/List.js +11 -0
- package/ListItem.js +22 -0
- package/ListItemText.js +18 -0
- package/ListNavigation.js +57 -0
- package/Menu.js +23 -0
- package/MenuActions.js +21 -0
- package/MenuDivider.js +10 -0
- package/MenuFooter.js +18 -0
- package/MenuHeader.js +18 -0
- package/MenuItem.js +32 -0
- package/MenuItemText.js +9 -0
- package/MenuList.js +33 -0
- package/Modal.js +16 -0
- package/NestedMenuContext.js +23 -0
- package/Option.js +46 -0
- package/Overlap.js +9 -0
- package/PageHeader.js +56 -0
- package/PickerTextField.js +33 -0
- package/Popover.js +21 -0
- package/Popper.js +127 -0
- package/PopperPaper.js +10 -0
- package/Portal.js +1 -0
- package/README.md +76 -0
- package/Radio.js +34 -0
- package/RadioGroup.js +29 -0
- package/Rating.js +235 -0
- package/Select.js +40 -0
- package/SingleFilter.js +130 -0
- package/Skeleton.js +32 -0
- package/Slider.js +110 -0
- package/Snackbar.js +118 -0
- package/SortableList.js +17 -0
- package/SortableListDndContext.js +49 -0
- package/SortableListItem.js +69 -0
- package/SortableVirtualizedList.js +36 -0
- package/SplitButton.js +173 -0
- package/Squircle.js +9 -0
- package/StatusIndicator.js +11 -0
- package/Step.js +65 -0
- package/StepButton.js +41 -0
- package/StepConnector.js +10 -0
- package/StepContent.js +53 -0
- package/StepIcon.js +11 -0
- package/StepLabel.js +14 -0
- package/Stepper.js +37 -0
- package/SubMenu.js +142 -0
- package/SwipeableDrawer.js +742 -0
- package/Switch.js +43 -0
- package/Tab.js +103 -0
- package/TabContext.js +34 -0
- package/TabPanel.js +26 -0
- package/Table.js +24 -0
- package/TableBody.js +20 -0
- package/TableCell.js +86 -0
- package/TableContainer.js +16 -0
- package/TableFooter.js +16 -0
- package/TableHead.js +24 -0
- package/TablePagination.js +122 -0
- package/TableRow.js +37 -0
- package/Tabs.js +827 -0
- package/Tag.js +28 -0
- package/Text.js +61 -0
- package/TextField.js +29 -0
- package/Textarea.js +67 -0
- package/TimePicker.js +600 -0
- package/Tooltip.js +23 -0
- package/Tray.js +13 -0
- package/TrayMenu.js +60 -0
- package/VirtualizedList.js +291 -0
- package/VirtualizedMenu.js +28 -0
- package/VisuallyHidden.js +8 -0
- package/chunks/AccordionContext.js +6 -0
- package/chunks/Alert.js +47 -0
- package/chunks/AvatarGroup.js +22 -0
- package/chunks/Backdrop.js +18 -0
- package/chunks/Badge.js +32 -0
- package/chunks/BottomNavigationItem.js +37 -0
- package/chunks/Button.js +89 -0
- package/chunks/Chip.js +78 -0
- package/chunks/CircularProgressIndicator.js +62 -0
- package/chunks/Divider.js +19 -0
- package/chunks/DragHandle.js +11 -0
- package/chunks/Drawer.js +61 -0
- package/chunks/ExpandCollapseCaret.js +24 -0
- package/chunks/FormLabel.js +27 -0
- package/chunks/Icon.js +25 -0
- package/chunks/IconButtonLabel.js +69 -0
- package/chunks/List.js +22 -0
- package/chunks/ListItem.js +86 -0
- package/chunks/Menu.js +41 -0
- package/chunks/MenuDivider.js +15 -0
- package/chunks/MenuItemText.js +16 -0
- package/chunks/MenuList.js +49 -0
- package/chunks/Modal.js +88 -0
- package/chunks/Overlap.js +25 -0
- package/chunks/PickerTextField.js +75 -0
- package/chunks/Popover.js +58 -0
- package/chunks/PopperPaper.js +15 -0
- package/chunks/RadioGroup.context.js +19 -0
- package/chunks/Select.js +257 -0
- package/chunks/ShowHideEye.js +56 -0
- package/chunks/SlideIn.js +19 -0
- package/chunks/SortableArrow.js +73 -0
- package/chunks/Squircle.js +38 -0
- package/chunks/StatusIndicator.js +19 -0
- package/chunks/StepConnector.js +21 -0
- package/chunks/StepIcon.js +45 -0
- package/chunks/StepLabel.js +29 -0
- package/chunks/StepperContext.js +16 -0
- package/chunks/TableContext.js +6 -0
- package/chunks/Tablelvl2Context.js +6 -0
- package/chunks/TabsContext.js +6 -0
- package/chunks/TextField.js +111 -0
- package/chunks/Tooltip.js +253 -0
- package/chunks/VirtualizedMenu.js +216 -0
- package/chunks/VisuallyHidden.js +12 -0
- package/chunks/getFade.js +23 -0
- package/chunks/getGrow.js +70 -0
- package/chunks/getSlideIn.js +30 -0
- package/chunks/useFocusTrapStack.js +44 -0
- package/chunks/useHelperTextId.js +46 -0
- package/chunks/useListNavigation.js +211 -0
- package/chunks/useMenuItemSelect.js +252 -0
- package/chunks/useMotionSafeTransition.js +13 -0
- package/chunks/useNestedMenuItem.js +16 -0
- package/chunks/useNestedParentMenu.js +54 -0
- package/chunks/usePrefersReducedMotion.js +42 -0
- package/chunks/useTooltipForceHide.js +31 -0
- package/chunks/useTrayNavigate.js +151 -0
- package/chunks/withTooltip.js +15 -0
- package/index.css +10891 -0
- package/index.d.ts +1 -0
- package/index.js +191 -0
- package/package.json +41 -0
- package/src/Accordion/Accordion.classes.d.ts +7 -0
- package/src/Accordion/Accordion.d.ts +5 -0
- package/src/Accordion/Accordion.type.d.ts +31 -0
- package/src/Accordion/AccordionContext.d.ts +9 -0
- package/src/Accordion/index.d.ts +4 -0
- package/src/AccordionHeader/AccordionHeader.classes.d.ts +7 -0
- package/src/AccordionHeader/AccordionHeader.d.ts +5 -0
- package/src/AccordionHeader/AccordionHeader.type.d.ts +25 -0
- package/src/AccordionHeader/index.d.ts +3 -0
- package/src/Alert/Alert.classes.d.ts +8 -0
- package/src/Alert/Alert.d.ts +7 -0
- package/src/Alert/Alert.type.d.ts +56 -0
- package/src/Alert/AlertTitle.classes.d.ts +7 -0
- package/src/Alert/index.d.ts +4 -0
- package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.classes.d.ts +7 -0
- package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.d.ts +17 -0
- package/src/Animation/components/ExpandCollapseCaret/index.d.ts +2 -0
- package/src/Animation/components/Fade/Fade.d.ts +5 -0
- package/src/Animation/components/Fade/getFade.d.ts +4 -0
- package/src/Animation/components/Fade/index.d.ts +2 -0
- package/src/Animation/components/Grow/Grow.d.ts +5 -0
- package/src/Animation/components/Grow/getGrow.d.ts +19 -0
- package/src/Animation/components/Grow/index.d.ts +2 -0
- package/src/Animation/components/ShowHideEye/ShowHideEye.classes.d.ts +7 -0
- package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +14 -0
- package/src/Animation/components/ShowHideEye/index.d.ts +2 -0
- package/src/Animation/components/SlideIn/SlideIn.d.ts +5 -0
- package/src/Animation/components/SlideIn/getSlideIn.d.ts +9 -0
- package/src/Animation/components/SlideIn/index.d.ts +2 -0
- package/src/Animation/components/SortableArrow/SortableArrow.classes.d.ts +7 -0
- package/src/Animation/components/SortableArrow/SortableArrow.d.ts +9 -0
- package/src/Animation/components/SortableArrow/index.d.ts +2 -0
- package/src/Animation/components/index.d.ts +7 -0
- package/src/Animation/components/types.d.ts +9 -0
- package/src/Animation/hooks/__mocks__/MatchMedia.mock.d.ts +12 -0
- package/src/Animation/hooks/index.d.ts +2 -0
- package/src/Animation/hooks/useMotionSafeTransition/index.d.ts +1 -0
- package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +10 -0
- package/src/Animation/hooks/usePrefersReducedMotion/index.d.ts +1 -0
- package/src/Animation/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +1 -0
- package/src/Animation/index.d.ts +2 -0
- package/src/Announcement/Announcement.classes.d.ts +8 -0
- package/src/Announcement/Announcement.d.ts +5 -0
- package/src/Announcement/Announcement.type.d.ts +4 -0
- package/src/Announcement/index.d.ts +3 -0
- package/src/Autocomplete/Autocomplete.classes.d.ts +14 -0
- package/src/Autocomplete/Autocomplete.d.ts +11 -0
- package/src/Autocomplete/Autocomplete.type.d.ts +141 -0
- package/src/Autocomplete/SuggestionList/SuggestionList.classes.d.ts +7 -0
- package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +144 -0
- package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +28 -0
- package/src/Autocomplete/SuggestionList/index.d.ts +4 -0
- package/src/Autocomplete/SuggestionList/utils/SuggestionListItem.d.ts +33 -0
- package/src/Autocomplete/SuggestionList/utils/index.d.ts +5 -0
- package/src/Autocomplete/SuggestionList/utils/useDynamicHeight.d.ts +20 -0
- package/src/Autocomplete/SuggestionList/utils/useHighlightScroll.d.ts +33 -0
- package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +101 -0
- package/src/Autocomplete/SuggestionList/utils/useSuggestionListGroup.d.ts +71 -0
- package/src/Autocomplete/index.d.ts +6 -0
- package/src/Autocomplete/useAutocomplete.d.ts +640 -0
- package/src/Autocomplete/useAutocompleteTag.d.ts +599 -0
- package/src/Avatar/Avatar.classes.d.ts +10 -0
- package/src/Avatar/Avatar.d.ts +4 -0
- package/src/Avatar/Avatar.type.d.ts +91 -0
- package/src/Avatar/index.d.ts +3 -0
- package/src/AvatarGroup/AvatarGroup.classes.d.ts +7 -0
- package/src/AvatarGroup/AvatarGroup.d.ts +6 -0
- package/src/AvatarGroup/AvatarGroup.type.d.ts +21 -0
- package/src/AvatarGroup/index.d.ts +3 -0
- package/src/Backdrop/Backdrop.classes.d.ts +7 -0
- package/src/Backdrop/Backdrop.d.ts +5 -0
- package/src/Backdrop/Backdrop.type.d.ts +9 -0
- package/src/Backdrop/index.d.ts +3 -0
- package/src/Badge/Badge.classes.d.ts +11 -0
- package/src/Badge/Badge.d.ts +8 -0
- package/src/Badge/Badge.type.d.ts +52 -0
- package/src/Badge/index.d.ts +3 -0
- package/src/Block/Block.classes.d.ts +8 -0
- package/src/Block/Block.d.ts +4 -0
- package/src/Block/Block.type.d.ts +44 -0
- package/src/Block/index.d.ts +3 -0
- package/src/BlockHeader/BlockHeader.classes.d.ts +7 -0
- package/src/BlockHeader/BlockHeader.d.ts +4 -0
- package/src/BlockHeader/BlockHeader.type.d.ts +19 -0
- package/src/BlockHeader/index.d.ts +3 -0
- package/src/BottomNavigation/BottomNavigation.classes.d.ts +7 -0
- package/src/BottomNavigation/BottomNavigation.d.ts +4 -0
- package/src/BottomNavigation/BottomNavigation.type.d.ts +62 -0
- package/src/BottomNavigation/BottomNavigationContext.d.ts +9 -0
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.classes.d.ts +7 -0
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.d.ts +5 -0
- package/src/BottomNavigation/BottomNavigationGroup/BottomNavigationGroup.type.d.ts +3 -0
- package/src/BottomNavigation/BottomNavigationGroup/index.d.ts +3 -0
- package/src/BottomNavigation/index.d.ts +5 -0
- package/src/BottomNavigationItem/BottomNavigationItem.classes.d.ts +7 -0
- package/src/BottomNavigationItem/BottomNavigationItem.d.ts +4 -0
- package/src/BottomNavigationItem/BottomNavigationItem.type.d.ts +63 -0
- package/src/BottomNavigationItem/index.d.ts +3 -0
- package/src/Button/Button.classes.d.ts +8 -0
- package/src/Button/Button.d.ts +6 -0
- package/src/Button/Button.type.d.ts +57 -0
- package/src/Button/index.d.ts +3 -0
- package/src/CallButton/CallButton.classes.d.ts +7 -0
- package/src/CallButton/CallButton.d.ts +4 -0
- package/src/CallButton/CallButton.type.d.ts +19 -0
- package/src/CallButton/index.d.ts +3 -0
- package/src/Checkbox/Checkbox.classes.d.ts +8 -0
- package/src/Checkbox/Checkbox.d.ts +13 -0
- package/src/Checkbox/Checkbox.type.d.ts +30 -0
- package/src/Checkbox/index.d.ts +3 -0
- package/src/Chip/Chip.classes.d.ts +7 -0
- package/src/Chip/Chip.d.ts +4 -0
- package/src/Chip/Chip.type.d.ts +65 -0
- package/src/Chip/index.d.ts +3 -0
- package/src/CircularProgressIndicator/CircularProgressIndicator.classes.d.ts +10 -0
- package/src/CircularProgressIndicator/CircularProgressIndicator.d.ts +5 -0
- package/src/CircularProgressIndicator/CircularProgressIndicator.type.d.ts +32 -0
- package/src/CircularProgressIndicator/index.d.ts +3 -0
- package/src/ClickAwayListener/index.d.ts +2 -0
- package/src/ComponentsProps.d.ts +207 -0
- package/src/DatePicker/Calendar.d.ts +41 -0
- package/src/DatePicker/DatePicker.classes.d.ts +7 -0
- package/src/DatePicker/DatePicker.context.d.ts +6 -0
- package/src/DatePicker/DatePicker.d.ts +6 -0
- package/src/DatePicker/DatePicker.type.d.ts +36 -0
- package/src/DatePicker/DatePickerHeader.d.ts +27 -0
- package/src/DatePicker/Day.d.ts +23 -0
- package/src/DatePicker/HearderAction.d.ts +3 -0
- package/src/DatePicker/SlideDirection.d.ts +1 -0
- package/src/DatePicker/Year.d.ts +21 -0
- package/src/DatePicker/Years.d.ts +21 -0
- package/src/DatePicker/index.d.ts +12 -0
- package/src/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +16 -0
- package/src/DatePicker/utils/DatePickerUtils.d.ts +13 -0
- package/src/DatePicker/utils/findClosestEnabledDate.d.ts +13 -0
- package/src/DatePicker/utils/index.d.ts +3 -0
- package/src/DateUtilsContext/DateUtilsContext.d.ts +22 -0
- package/src/DateUtilsContext/index.d.ts +1 -0
- package/src/Dialer/DialDelete/DialDelete.d.ts +14 -0
- package/src/Dialer/DialDelete/index.d.ts +1 -0
- package/src/Dialer/DialPad/DialPad.classes.d.ts +7 -0
- package/src/Dialer/DialPad/DialPad.d.ts +143 -0
- package/src/Dialer/DialPad/assets/DialerPadSoundsMPEG.d.ts +15 -0
- package/src/Dialer/DialPad/assets/DialerPadSoundsOGG.d.ts +15 -0
- package/src/Dialer/DialPad/assets/index.d.ts +3 -0
- package/src/Dialer/DialPad/index.d.ts +4 -0
- package/src/Dialer/DialPad/utils/DialPadUtils.d.ts +16 -0
- package/src/Dialer/DialPad/utils/index.d.ts +4 -0
- package/src/Dialer/DialPad/utils/types.d.ts +11 -0
- package/src/Dialer/DialPad/utils/useDialKeyboard.d.ts +16 -0
- package/src/Dialer/DialPad/utils/useKeyAudio.d.ts +15 -0
- package/src/Dialer/DialPadButton/DialPadButton.classes.d.ts +7 -0
- package/src/Dialer/DialPadButton/DialPadButton.d.ts +27 -0
- package/src/Dialer/DialPadButton/index.d.ts +2 -0
- package/src/Dialer/DialTextField/DialTextField.d.ts +37 -0
- package/src/Dialer/DialTextField/index.d.ts +2 -0
- package/src/Dialer/DialTextField/utils/getDialPadValueOnlyRegex.d.ts +4 -0
- package/src/Dialer/DialTextField/utils/index.d.ts +2 -0
- package/src/Dialer/DialTextField/utils/useFixedEndSelection.d.ts +10 -0
- package/src/Dialer/Dialer.d.ts +5 -0
- package/src/Dialer/index.d.ts +6 -0
- package/src/Dialer/utils/DialerContext.d.ts +13 -0
- package/src/Dialer/utils/index.d.ts +1 -0
- package/src/Dialog/Dialog.classes.d.ts +29 -0
- package/src/Dialog/Dialog.d.ts +8 -0
- package/src/Dialog/Dialog.type.d.ts +26 -0
- package/src/Dialog/index.d.ts +3 -0
- package/src/Divider/Divider.classes.d.ts +10 -0
- package/src/Divider/Divider.d.ts +4 -0
- package/src/Divider/Divider.type.d.ts +35 -0
- package/src/Divider/index.d.ts +3 -0
- package/src/DragHandle/DragHandle.classes.d.ts +8 -0
- package/src/DragHandle/DragHandle.d.ts +4 -0
- package/src/DragHandle/DragHandle.type.d.ts +17 -0
- package/src/DragHandle/index.d.ts +3 -0
- package/src/Drawer/Drawer.classes.d.ts +10 -0
- package/src/Drawer/Drawer.d.ts +33 -0
- package/src/Drawer/Drawer.type.d.ts +107 -0
- package/src/Drawer/index.d.ts +3 -0
- package/src/Dropdown/Dropdown.classes.d.ts +7 -0
- package/src/Dropdown/Dropdown.d.ts +4 -0
- package/src/Dropdown/Dropdown.type.d.ts +96 -0
- package/src/Dropdown/index.d.ts +3 -0
- package/src/EmptyState/EmptyState.classes.d.ts +7 -0
- package/src/EmptyState/EmptyState.d.ts +5 -0
- package/src/EmptyState/EmptyState.type.d.ts +21 -0
- package/src/EmptyState/index.d.ts +3 -0
- package/src/FabButton/FabButton.classes.d.ts +7 -0
- package/src/FabButton/FabButton.d.ts +4 -0
- package/src/FabButton/FabButton.type.d.ts +22 -0
- package/src/FabButton/index.d.ts +3 -0
- package/src/FocusTrap/FocusTrap.d.ts +49 -0
- package/src/FocusTrap/index.d.ts +2 -0
- package/src/FocusTrap/useFocusTrapStack.d.ts +16 -0
- package/src/FormField/FormField.classes.d.ts +9 -0
- package/src/FormField/FormField.d.ts +5 -0
- package/src/FormField/FormField.type.d.ts +46 -0
- package/src/FormField/index.d.ts +4 -0
- package/src/FormField/useHelperTextId.d.ts +30 -0
- package/src/FormLabel/FormLabel.classes.d.ts +10 -0
- package/src/FormLabel/FormLabel.d.ts +5 -0
- package/src/FormLabel/FormLabel.type.d.ts +26 -0
- package/src/FormLabel/FormLabelContext.d.ts +8 -0
- package/src/FormLabel/index.d.ts +4 -0
- package/src/Icon/Icon.classes.d.ts +7 -0
- package/src/Icon/Icon.d.ts +5 -0
- package/src/Icon/Icon.type.d.ts +25 -0
- package/src/Icon/index.d.ts +3 -0
- package/src/IconButton/IconButton.classes.d.ts +8 -0
- package/src/IconButton/IconButton.d.ts +4 -0
- package/src/IconButton/IconButton.type.d.ts +58 -0
- package/src/IconButton/IconButtonLabel.classes.d.ts +7 -0
- package/src/IconButton/IconButtonLabel.d.ts +5 -0
- package/src/IconButton/IconButtonLabel.type.d.ts +12 -0
- package/src/IconButton/index.d.ts +6 -0
- package/src/IconButtonGroup/IconButtonGroup.classes.d.ts +7 -0
- package/src/IconButtonGroup/IconButtonGroup.d.ts +4 -0
- package/src/IconButtonGroup/IconButtonGroup.type.d.ts +22 -0
- package/src/IconButtonGroup/index.d.ts +3 -0
- package/src/InlineEditable/InlineEditable.classes.d.ts +9 -0
- package/src/InlineEditable/InlineEditable.d.ts +5 -0
- package/src/InlineEditable/InlineEditable.type.d.ts +116 -0
- package/src/InlineEditable/index.d.ts +3 -0
- package/src/LinearProgressIndicator/LinearProgressIndicator.classes.d.ts +9 -0
- package/src/LinearProgressIndicator/LinearProgressIndicator.d.ts +5 -0
- package/src/LinearProgressIndicator/LinearProgressIndicator.type.d.ts +46 -0
- package/src/LinearProgressIndicator/index.d.ts +3 -0
- package/src/Link/Link.classes.d.ts +8 -0
- package/src/Link/Link.d.ts +4 -0
- package/src/Link/Link.type.d.ts +22 -0
- package/src/Link/index.d.ts +3 -0
- package/src/List/List.classes.d.ts +7 -0
- package/src/List/List.d.ts +5 -0
- package/src/List/List.type.d.ts +4 -0
- package/src/List/index.d.ts +3 -0
- package/src/ListItem/HoverActions.d.ts +8 -0
- package/src/ListItem/ListItem.classes.d.ts +7 -0
- package/src/ListItem/ListItem.d.ts +5 -0
- package/src/ListItem/ListItem.type.d.ts +58 -0
- package/src/ListItem/index.d.ts +4 -0
- package/src/ListItemText/ListItemText.classes.d.ts +9 -0
- package/src/ListItemText/ListItemText.d.ts +5 -0
- package/src/ListItemText/ListItemText.type.d.ts +33 -0
- package/src/ListItemText/index.d.ts +3 -0
- package/src/ListNavigation/ListNavigationContext.d.ts +8 -0
- package/src/ListNavigation/index.d.ts +3 -0
- package/src/ListNavigation/useItemNavigation.d.ts +9 -0
- package/src/ListNavigation/useListNavigation.d.ts +49 -0
- package/src/Menu/Menu.classes.d.ts +7 -0
- package/src/Menu/Menu.d.ts +5 -0
- package/src/Menu/Menu.type.d.ts +19 -0
- package/src/Menu/MenuContext.d.ts +7 -0
- package/src/Menu/index.d.ts +4 -0
- package/src/MenuActions/MenuActions.classes.d.ts +13 -0
- package/src/MenuActions/MenuActions.d.ts +9 -0
- package/src/MenuActions/MenuActions.type.d.ts +3 -0
- package/src/MenuActions/index.d.ts +3 -0
- package/src/MenuDivider/MenuDivider.classes.d.ts +7 -0
- package/src/MenuDivider/MenuDivider.d.ts +5 -0
- package/src/MenuDivider/MenuDivider.type.d.ts +3 -0
- package/src/MenuDivider/index.d.ts +3 -0
- package/src/MenuFooter/MenuFooter.classes.d.ts +7 -0
- package/src/MenuFooter/MenuFooter.d.ts +5 -0
- package/src/MenuFooter/MenuFooter.type.d.ts +9 -0
- package/src/MenuFooter/index.d.ts +3 -0
- package/src/MenuHeader/MenuHeader.classes.d.ts +7 -0
- package/src/MenuHeader/MenuHeader.d.ts +5 -0
- package/src/MenuHeader/MenuHeader.type.d.ts +18 -0
- package/src/MenuHeader/index.d.ts +3 -0
- package/src/MenuItem/MenuItem.classes.d.ts +7 -0
- package/src/MenuItem/MenuItem.d.ts +5 -0
- package/src/MenuItem/MenuItem.type.d.ts +29 -0
- package/src/MenuItem/MenuItemSelectContext.d.ts +18 -0
- package/src/MenuItem/index.d.ts +7 -0
- package/src/MenuItem/useMenuItem.d.ts +16 -0
- package/src/MenuItem/useMenuItemSelect.d.ts +62 -0
- package/src/MenuItem/useVirtualizedMenuItem.d.ts +15 -0
- package/src/MenuItemText/MenuItemText.classes.d.ts +7 -0
- package/src/MenuItemText/MenuItemText.d.ts +5 -0
- package/src/MenuItemText/MenuItemText.type.d.ts +27 -0
- package/src/MenuItemText/index.d.ts +3 -0
- package/src/MenuList/MenuList.classes.d.ts +7 -0
- package/src/MenuList/MenuList.d.ts +4 -0
- package/src/MenuList/MenuList.type.d.ts +16 -0
- package/src/MenuList/MenuListContext.d.ts +12 -0
- package/src/MenuList/index.d.ts +4 -0
- package/src/Modal/InnerModal.d.ts +18 -0
- package/src/Modal/InnerModal.type.d.ts +23 -0
- package/src/Modal/Modal.classes.d.ts +7 -0
- package/src/Modal/Modal.d.ts +24 -0
- package/src/Modal/Modal.type.d.ts +19 -0
- package/src/Modal/ModalContext.d.ts +10 -0
- package/src/Modal/index.d.ts +6 -0
- package/src/NestedMenuContext/NestedMenuContext.d.ts +11 -0
- package/src/NestedMenuContext/index.d.ts +4 -0
- package/src/NestedMenuContext/useNestedChildMenu.d.ts +6 -0
- package/src/NestedMenuContext/useNestedMenuItem.d.ts +5 -0
- package/src/NestedMenuContext/useNestedParentMenu.d.ts +8 -0
- package/src/Option/Option.d.ts +4 -0
- package/src/Option/Option.type.d.ts +7 -0
- package/src/Option/index.d.ts +2 -0
- package/src/Overlap/Overlap.classes.d.ts +7 -0
- package/src/Overlap/Overlap.d.ts +4 -0
- package/src/Overlap/Overlap.type.d.ts +30 -0
- package/src/Overlap/index.d.ts +3 -0
- package/src/PageHeader/PageHeader.classes.d.ts +32 -0
- package/src/PageHeader/PageHeader.d.ts +9 -0
- package/src/PageHeader/PageHeader.type.d.ts +14 -0
- package/src/PageHeader/index.d.ts +3 -0
- package/src/PickerTextField/PickerTextField.classes.d.ts +7 -0
- package/src/PickerTextField/PickerTextField.d.ts +5 -0
- package/src/PickerTextField/PickerTextField.type.d.ts +30 -0
- package/src/PickerTextField/index.d.ts +3 -0
- package/src/Popover/Popover.classes.d.ts +7 -0
- package/src/Popover/Popover.d.ts +5 -0
- package/src/Popover/Popover.type.d.ts +50 -0
- package/src/Popover/index.d.ts +3 -0
- package/src/Popper/Popper.d.ts +4 -0
- package/src/Popper/Popper.type.d.ts +92 -0
- package/src/Popper/index.d.ts +2 -0
- package/src/PopperPaper/PopperPaper.classes.d.ts +7 -0
- package/src/PopperPaper/PopperPaper.d.ts +5 -0
- package/src/PopperPaper/PopperPaper.type.d.ts +8 -0
- package/src/PopperPaper/index.d.ts +3 -0
- package/src/Portal/Portal.d.ts +2 -0
- package/src/Portal/index.d.ts +1 -0
- package/src/Radio/Radio.classes.d.ts +7 -0
- package/src/Radio/Radio.d.ts +12 -0
- package/src/Radio/Radio.type.d.ts +16 -0
- package/src/Radio/index.d.ts +3 -0
- package/src/RadioGroup/RadioGroup.classes.d.ts +7 -0
- package/src/RadioGroup/RadioGroup.context.d.ts +15 -0
- package/src/RadioGroup/RadioGroup.d.ts +5 -0
- package/src/RadioGroup/RadioGroup.type.d.ts +14 -0
- package/src/RadioGroup/index.d.ts +4 -0
- package/src/Rating/Rating.classes.d.ts +7 -0
- package/src/Rating/Rating.d.ts +5 -0
- package/src/Rating/Rating.type.d.ts +106 -0
- package/src/Rating/RatingItem.d.ts +3 -0
- package/src/Rating/index.d.ts +5 -0
- package/src/Rating/utils.d.ts +5 -0
- package/src/Select/Select.classes.d.ts +11 -0
- package/src/Select/Select.d.ts +4 -0
- package/src/Select/Select.type.d.ts +118 -0
- package/src/Select/index.d.ts +4 -0
- package/src/Select/useSelect.d.ts +16 -0
- package/src/SingleFilter/FilterButton/FilterButton.classes.d.ts +7 -0
- package/src/SingleFilter/FilterButton/FilterButton.d.ts +5 -0
- package/src/SingleFilter/FilterButton/FilterButton.type.d.ts +27 -0
- package/src/SingleFilter/FilterButton/index.d.ts +3 -0
- package/src/SingleFilter/SingleFilter.classes.d.ts +7 -0
- package/src/SingleFilter/SingleFilter.d.ts +5 -0
- package/src/SingleFilter/SingleFilter.type.d.ts +44 -0
- package/src/SingleFilter/index.d.ts +4 -0
- package/src/Skeleton/Skeleton.classes.d.ts +7 -0
- package/src/Skeleton/Skeleton.d.ts +5 -0
- package/src/Skeleton/Skeleton.type.d.ts +6 -0
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.classes.d.ts +7 -0
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.d.ts +5 -0
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.type.d.ts +11 -0
- package/src/Skeleton/SkeletonContainer/index.d.ts +3 -0
- package/src/Skeleton/index.d.ts +4 -0
- package/src/Slider/Slider.classes.d.ts +13 -0
- package/src/Slider/Slider.d.ts +10 -0
- package/src/Slider/Slider.type.d.ts +137 -0
- package/src/Slider/SliderThumb.d.ts +16 -0
- package/src/Slider/index.d.ts +3 -0
- package/src/Slider/utils.d.ts +1 -0
- package/src/Snackbar/Snackbar.classes.d.ts +7 -0
- package/src/Snackbar/Snackbar.d.ts +5 -0
- package/src/Snackbar/Snackbar.hook.d.ts +1 -0
- package/src/Snackbar/Snackbar.type.d.ts +27 -0
- package/src/Snackbar/SnackbarContent/SnackbarContent.classes.d.ts +8 -0
- package/src/Snackbar/SnackbarContent/SnackbarContent.d.ts +5 -0
- package/src/Snackbar/SnackbarContent/SnackbarContent.type.d.ts +4 -0
- package/src/Snackbar/SnackbarContent/index.d.ts +3 -0
- package/src/Snackbar/index.d.ts +5 -0
- package/src/SortableList/SortableList.d.ts +3 -0
- package/src/SortableList/SortableList.type.d.ts +20 -0
- package/src/SortableList/index.d.ts +2 -0
- package/src/SortableListDndContext/DndKeyboardBlocker.d.ts +2 -0
- package/src/SortableListDndContext/SortableListDndContext.d.ts +4 -0
- package/src/SortableListDndContext/SortableListDndContext.type.d.ts +5 -0
- package/src/SortableListDndContext/index.d.ts +5 -0
- package/src/SortableListDndContext/useSortableListDndContext.d.ts +2 -0
- package/src/SortableListDndContext/utils.d.ts +1 -0
- package/src/SortableListItem/SortableListItem.d.ts +4 -0
- package/src/SortableListItem/SortableListItem.type.d.ts +6 -0
- package/src/SortableListItem/SortableListItemOverlay.d.ts +4 -0
- package/src/SortableListItem/SortableListItemOverlay.type.d.ts +8 -0
- package/src/SortableListItem/index.d.ts +4 -0
- package/src/SortableVirtualizedList/SortableVirtualizedList.d.ts +3 -0
- package/src/SortableVirtualizedList/SortableVirtualizedList.type.d.ts +19 -0
- package/src/SortableVirtualizedList/index.d.ts +2 -0
- package/src/SplitButton/SplitButton.classes.d.ts +8 -0
- package/src/SplitButton/SplitButton.d.ts +5 -0
- package/src/SplitButton/SplitButton.type.d.ts +37 -0
- package/src/SplitButton/index.d.ts +3 -0
- package/src/Squircle/Squircle.d.ts +4 -0
- package/src/Squircle/Squircle.type.d.ts +19 -0
- package/src/Squircle/index.d.ts +3 -0
- package/src/Squircle/squircle.classes.d.ts +7 -0
- package/src/StatusIndicator/StatusIndicator.classes.d.ts +7 -0
- package/src/StatusIndicator/StatusIndicator.d.ts +8 -0
- package/src/StatusIndicator/StatusIndicator.type.d.ts +14 -0
- package/src/StatusIndicator/index.d.ts +3 -0
- package/src/Step/Step.classes.d.ts +7 -0
- package/src/Step/Step.d.ts +4 -0
- package/src/Step/Step.type.d.ts +50 -0
- package/src/Step/StepContext.d.ts +22 -0
- package/src/Step/index.d.ts +4 -0
- package/src/StepButton/StepButton.classes.d.ts +7 -0
- package/src/StepButton/StepButton.d.ts +4 -0
- package/src/StepButton/StepButton.type.d.ts +34 -0
- package/src/StepButton/index.d.ts +3 -0
- package/src/StepConnector/StepConnector.classes.d.ts +7 -0
- package/src/StepConnector/StepConnector.d.ts +5 -0
- package/src/StepConnector/StepConnector.type.d.ts +3 -0
- package/src/StepConnector/index.d.ts +3 -0
- package/src/StepContent/StepContent.classes.d.ts +7 -0
- package/src/StepContent/StepContent.d.ts +5 -0
- package/src/StepContent/StepContent.type.d.ts +14 -0
- package/src/StepContent/index.d.ts +3 -0
- package/src/StepIcon/StepIcon.classes.d.ts +7 -0
- package/src/StepIcon/StepIcon.d.ts +5 -0
- package/src/StepIcon/StepIcon.type.d.ts +38 -0
- package/src/StepIcon/index.d.ts +3 -0
- package/src/StepLabel/StepLabel.classes.d.ts +10 -0
- package/src/StepLabel/StepLabel.d.ts +5 -0
- package/src/StepLabel/StepLabel.type.d.ts +36 -0
- package/src/StepLabel/index.d.ts +3 -0
- package/src/Stepper/Stepper.classes.d.ts +7 -0
- package/src/Stepper/Stepper.d.ts +4 -0
- package/src/Stepper/Stepper.type.d.ts +47 -0
- package/src/Stepper/StepperContext.d.ts +11 -0
- package/src/Stepper/index.d.ts +4 -0
- package/src/SubMenu/PopperMenu.classes.d.ts +7 -0
- package/src/SubMenu/PopperMenu.d.ts +5 -0
- package/src/SubMenu/PopperMenu.type.d.ts +4 -0
- package/src/SubMenu/SubMenu.d.ts +4 -0
- package/src/SubMenu/SubMenu.type.d.ts +6 -0
- package/src/SubMenu/index.d.ts +5 -0
- package/src/SwipeableDrawer/SwipeableDrawer.classes.d.ts +7 -0
- package/src/SwipeableDrawer/SwipeableDrawer.d.ts +31 -0
- package/src/SwipeableDrawer/SwipeableDrawer.types.d.ts +82 -0
- package/src/SwipeableDrawer/hooks/index.d.ts +5 -0
- package/src/SwipeableDrawer/hooks/useDimensions.d.ts +17 -0
- package/src/SwipeableDrawer/hooks/useDrawerGestures.d.ts +151 -0
- package/src/SwipeableDrawer/hooks/useElementSizeObserver.d.ts +10 -0
- package/src/SwipeableDrawer/hooks/useReady.d.ts +4 -0
- package/src/SwipeableDrawer/hooks/useSnapPoints.d.ts +94 -0
- package/src/SwipeableDrawer/index.d.ts +3 -0
- package/src/Switch/Switch.classes.d.ts +7 -0
- package/src/Switch/Switch.d.ts +11 -0
- package/src/Switch/Switch.type.d.ts +19 -0
- package/src/Switch/index.d.ts +3 -0
- package/src/Tab/Tab.classes.d.ts +10 -0
- package/src/Tab/Tab.d.ts +5 -0
- package/src/Tab/Tab.type.d.ts +50 -0
- package/src/Tab/index.d.ts +3 -0
- package/src/TabContext/TabContext.d.ts +20 -0
- package/src/TabContext/TabContext.type.d.ts +13 -0
- package/src/TabContext/index.d.ts +2 -0
- package/src/TabPanel/TabPanel.classes.d.ts +7 -0
- package/src/TabPanel/TabPanel.d.ts +5 -0
- package/src/TabPanel/TabPanel.type.d.ts +18 -0
- package/src/TabPanel/index.d.ts +3 -0
- package/src/Table/Table.classes.d.ts +7 -0
- package/src/Table/Table.d.ts +4 -0
- package/src/Table/Table.type.d.ts +36 -0
- package/src/Table/TableContext.d.ts +8 -0
- package/src/Table/Tablelvl2Context.d.ts +7 -0
- package/src/Table/index.d.ts +5 -0
- package/src/TableBody/TableBody.classes.d.ts +7 -0
- package/src/TableBody/TableBody.d.ts +4 -0
- package/src/TableBody/TableBody.type.d.ts +17 -0
- package/src/TableBody/index.d.ts +3 -0
- package/src/TableCell/TableCell.classes.d.ts +7 -0
- package/src/TableCell/TableCell.d.ts +8 -0
- package/src/TableCell/TableCell.type.d.ts +59 -0
- package/src/TableCell/index.d.ts +3 -0
- package/src/TableContainer/TableContainer.classes.d.ts +8 -0
- package/src/TableContainer/TableContainer.d.ts +4 -0
- package/src/TableContainer/TableContainer.type.d.ts +23 -0
- package/src/TableContainer/index.d.ts +3 -0
- package/src/TableFooter/TableFooter.classes.d.ts +8 -0
- package/src/TableFooter/TableFooter.d.ts +5 -0
- package/src/TableFooter/TableFooter.type.d.ts +9 -0
- package/src/TableFooter/index.d.ts +2 -0
- package/src/TableHead/TableHead.classes.d.ts +7 -0
- package/src/TableHead/TableHead.d.ts +4 -0
- package/src/TableHead/TableHead.type.d.ts +21 -0
- package/src/TableHead/index.d.ts +3 -0
- package/src/TablePagination/TablePagination.classes.d.ts +8 -0
- package/src/TablePagination/TablePagination.d.ts +4 -0
- package/src/TablePagination/TablePagination.type.d.ts +73 -0
- package/src/TablePagination/index.d.ts +2 -0
- package/src/TableRow/TableRow.classes.d.ts +7 -0
- package/src/TableRow/TableRow.d.ts +4 -0
- package/src/TableRow/TableRow.type.d.ts +34 -0
- package/src/TableRow/index.d.ts +3 -0
- package/src/Tabs/TabMoreMenu.d.ts +36 -0
- package/src/Tabs/TabScrollButton.d.ts +21 -0
- package/src/Tabs/Tabs.classes.d.ts +19 -0
- package/src/Tabs/Tabs.d.ts +5 -0
- package/src/Tabs/Tabs.type.d.ts +54 -0
- package/src/Tabs/TabsContext.d.ts +9 -0
- package/src/Tabs/hooks/index.d.ts +2 -0
- package/src/Tabs/hooks/useComputedTabs.d.ts +20 -0
- package/src/Tabs/hooks/useTabsScroller.d.ts +48 -0
- package/src/Tabs/index.d.ts +7 -0
- package/src/Tag/Tag.classes.d.ts +8 -0
- package/src/Tag/Tag.d.ts +5 -0
- package/src/Tag/Tag.type.d.ts +23 -0
- package/src/Tag/index.d.ts +3 -0
- package/src/Text/Text.classes.d.ts +7 -0
- package/src/Text/Text.d.ts +4 -0
- package/src/Text/Text.type.d.ts +34 -0
- package/src/Text/index.d.ts +3 -0
- package/src/TextField/TextField.classes.d.ts +7 -0
- package/src/TextField/TextField.d.ts +5 -0
- package/src/TextField/TextField.type.d.ts +112 -0
- package/src/TextField/index.d.ts +3 -0
- package/src/Textarea/Textarea.classes.d.ts +10 -0
- package/src/Textarea/Textarea.d.ts +5 -0
- package/src/Textarea/Textarea.type.d.ts +26 -0
- package/src/Textarea/index.d.ts +3 -0
- package/src/TimePicker/NumberPicker.d.ts +5 -0
- package/src/TimePicker/NumberPicker.type.d.ts +36 -0
- package/src/TimePicker/PickerView.d.ts +4 -0
- package/src/TimePicker/PickerView.type.d.ts +25 -0
- package/src/TimePicker/SelectionView.d.ts +19 -0
- package/src/TimePicker/TimeButton.d.ts +11 -0
- package/src/TimePicker/TimePicker.classes.d.ts +7 -0
- package/src/TimePicker/TimePicker.context.d.ts +6 -0
- package/src/TimePicker/TimePicker.d.ts +5 -0
- package/src/TimePicker/TimePicker.type.d.ts +30 -0
- package/src/TimePicker/ToggleText.d.ts +5 -0
- package/src/TimePicker/ToggleText.type.d.ts +14 -0
- package/src/TimePicker/constant.d.ts +7 -0
- package/src/TimePicker/index.d.ts +14 -0
- package/src/TimePicker/utils/A11yUtils.d.ts +2 -0
- package/src/TimePicker/utils/TimeBoundary.d.ts +27 -0
- package/src/TimePicker/utils/TimePickerHelper.d.ts +52 -0
- package/src/TimePicker/utils/getNumberPickerBoundary.d.ts +22 -0
- package/src/TimePicker/utils/index.d.ts +4 -0
- package/src/TimePicker/utils/runKeyHandler.d.ts +4 -0
- package/src/Tooltip/Tooltip.d.ts +5 -0
- package/src/Tooltip/Tooltip.type.d.ts +5 -0
- package/src/Tooltip/TooltipTrigger.a11y.d.ts +38 -0
- package/src/Tooltip/TooltipTrigger.d.ts +4 -0
- package/src/Tooltip/TooltipTrigger.type.d.ts +59 -0
- package/src/Tooltip/TooltipView.classes.d.ts +8 -0
- package/src/Tooltip/TooltipView.d.ts +16 -0
- package/src/Tooltip/TooltipView.type.d.ts +44 -0
- package/src/Tooltip/index.d.ts +9 -0
- package/src/Tooltip/useTooltipForceHide.d.ts +8 -0
- package/src/Tooltip/withTooltip/index.d.ts +1 -0
- package/src/Tooltip/withTooltip/withTooltip.d.ts +6 -0
- package/src/Tray/Tray.classes.d.ts +13 -0
- package/src/Tray/Tray.d.ts +5 -0
- package/src/Tray/Tray.type.d.ts +26 -0
- package/src/Tray/TrayContext.d.ts +14 -0
- package/src/Tray/TrayPanel.d.ts +7 -0
- package/src/Tray/hooks/index.d.ts +3 -0
- package/src/Tray/hooks/useTray.d.ts +33 -0
- package/src/Tray/hooks/useTrayNavigate.d.ts +5 -0
- package/src/Tray/hooks/useTrayPanel.d.ts +14 -0
- package/src/Tray/index.d.ts +7 -0
- package/src/Tray/types.d.ts +2 -0
- package/src/TrayMenu/TrayMenu.d.ts +4 -0
- package/src/TrayMenu/TrayMenu.type.d.ts +3 -0
- package/src/TrayMenu/TrayMenuItem.d.ts +9 -0
- package/src/TrayMenu/index.d.ts +3 -0
- package/src/VirtualizedList/VirtualizedItemPropsContext.d.ts +5 -0
- package/src/VirtualizedList/VirtualizedList.d.ts +3 -0
- package/src/VirtualizedList/VirtualizedList.type.d.ts +51 -0
- package/src/VirtualizedList/VirtuosoComponents.d.ts +16 -0
- package/src/VirtualizedList/VirtuosoContextType.d.ts +14 -0
- package/src/VirtualizedList/index.d.ts +5 -0
- package/src/VirtualizedMenu/VirtualizedMenu.classes.d.ts +7 -0
- package/src/VirtualizedMenu/VirtualizedMenu.context.d.ts +6 -0
- package/src/VirtualizedMenu/VirtualizedMenu.d.ts +4 -0
- package/src/VirtualizedMenu/VirtualizedMenu.type.d.ts +35 -0
- package/src/VirtualizedMenu/VirtualizedMenuList.d.ts +6 -0
- package/src/VirtualizedMenu/index.d.ts +5 -0
- package/src/VisuallyHidden/VisuallyHidden.classes.d.ts +7 -0
- package/src/VisuallyHidden/VisuallyHidden.d.ts +5 -0
- package/src/VisuallyHidden/VisuallyHidden.type.d.ts +3 -0
- package/src/VisuallyHidden/index.d.ts +3 -0
- package/src/index.d.ts +112 -0
package/Avatar.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useContext } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useImgLoaded, useClasses, useFocusVisible, useForkRef } from '@ringcentral/spring-base';
|
|
5
|
+
import { ProfileMd } from '@ringcentral/spring-icon';
|
|
6
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
7
|
+
import { A as AvatarGroupContext } from './chunks/AvatarGroup.js';
|
|
8
|
+
import { I as Icon } from './chunks/Icon.js';
|
|
9
|
+
import { O as Overlap } from './chunks/Overlap.js';
|
|
10
|
+
import { S as Squircle } from './chunks/Squircle.js';
|
|
11
|
+
import { S as StatusIndicator } from './chunks/StatusIndicator.js';
|
|
12
|
+
|
|
13
|
+
var Avatar$1 = {"sui-avatar-shape":"sui-avatar-shape","sui-avatar-content":"sui-avatar-content","sui-avatar-default":"sui-avatar-default","sui-avatar-primary":"sui-avatar-primary","sui-avatar-circle":"sui-avatar-circle","sui-avatar-circle-content":"sui-avatar-circle-content","sui-avatar-circle-default":"sui-avatar-circle-default","sui-avatar-circle-primary":"sui-avatar-circle-primary","sui-focus-visible":"sui-focus-visible","sui-avatar-img":"sui-avatar-img","sui-avatar-indicator":"sui-avatar-indicator","sui-avatar-root":"sui-avatar-root","sui-disabled":"sui-disabled","sui-avatar-xxlarge-content":"sui-avatar-xxlarge-content","sui-avatar-xlarge-content":"sui-avatar-xlarge-content","sui-avatar-xxlarge":"sui-avatar-xxlarge","sui-avatar-xlarge":"sui-avatar-xlarge","sui-avatar-large":"sui-avatar-large","sui-avatar-large-content":"sui-avatar-large-content","sui-avatar-medium":"sui-avatar-medium","sui-avatar-medium-content":"sui-avatar-medium-content","sui-avatar-small":"sui-avatar-small","sui-avatar-small-content":"sui-avatar-small-content","sui-avatar-xsmall-content":"sui-avatar-xsmall-content","sui-avatar-xxsmall-content":"sui-avatar-xxsmall-content","sui-avatar-xsmall":"sui-avatar-xsmall","sui-avatar-xxsmall":"sui-avatar-xxsmall","sui-avatar-clickable-shape":"sui-avatar-clickable-shape","sui-avatar-clickable-indicator":"sui-avatar-clickable-indicator","sui-avatar-clickable-hover-tint":"sui-avatar-clickable-hover-tint","sui-avatar-clickable-hover-tint-default-circle":"sui-avatar-clickable-hover-tint-default-circle","sui-avatar-clickable-hover-tint-primary-circle":"sui-avatar-clickable-hover-tint-primary-circle","sui-avatar-clickable":"sui-avatar-clickable","sui-avatar-hover-tint":"sui-avatar-hover-tint","sui-active":"sui-active"};
|
|
14
|
+
|
|
15
|
+
const IconSizeMap = {
|
|
16
|
+
xxlarge: 'large',
|
|
17
|
+
xlarge: 'medium',
|
|
18
|
+
large: 'small',
|
|
19
|
+
medium: 'small',
|
|
20
|
+
small: 'xsmall',
|
|
21
|
+
xsmall: 'xsmall',
|
|
22
|
+
xxsmall: 'xsmall',
|
|
23
|
+
};
|
|
24
|
+
const Avatar = forwardRef((inProps, ref) => {
|
|
25
|
+
const props = useThemeProps({ props: inProps, name: 'Avatar' });
|
|
26
|
+
const { component, classes, className, children: childrenProp, imgProps, alt, src, srcSet, size: sizeProp, color = 'default', variant = 'circle', clickable: clickableProp, symbol, avatarShapeRef, showStatusIndicator, IndicatorProps, rootProps, disabled, ...rest } = props;
|
|
27
|
+
let children = null;
|
|
28
|
+
const loaded = useImgLoaded({
|
|
29
|
+
...imgProps,
|
|
30
|
+
src,
|
|
31
|
+
srcSet,
|
|
32
|
+
});
|
|
33
|
+
const hasImg = src || srcSet;
|
|
34
|
+
const hasImgNotFailing = hasImg && loaded !== 'error';
|
|
35
|
+
const cls = useClasses('avatar', classes, className);
|
|
36
|
+
const imageProps = {
|
|
37
|
+
alt,
|
|
38
|
+
src,
|
|
39
|
+
srcSet,
|
|
40
|
+
...imgProps,
|
|
41
|
+
className: cls('img'),
|
|
42
|
+
};
|
|
43
|
+
const groupContext = useContext(AvatarGroupContext);
|
|
44
|
+
const size = sizeProp || groupContext?.size || 'xlarge';
|
|
45
|
+
const groupClassName = groupContext?.className || '';
|
|
46
|
+
let fillShape = false;
|
|
47
|
+
if (hasImgNotFailing) {
|
|
48
|
+
const AvatarImg = 'img';
|
|
49
|
+
children = jsx(AvatarImg, { ...imageProps });
|
|
50
|
+
fillShape = true;
|
|
51
|
+
}
|
|
52
|
+
else if (symbol) {
|
|
53
|
+
children = jsx(Icon, { size: IconSizeMap[size], symbol: symbol });
|
|
54
|
+
}
|
|
55
|
+
else if (childrenProp) {
|
|
56
|
+
children = childrenProp;
|
|
57
|
+
}
|
|
58
|
+
else if (hasImg && alt) {
|
|
59
|
+
children = alt[0];
|
|
60
|
+
fillShape = true;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
children = jsx(Icon, { size: IconSizeMap[size], symbol: ProfileMd });
|
|
64
|
+
}
|
|
65
|
+
const { focusVisible, focusVisibleRef, focusVisibleHandlers } = useFocusVisible(props);
|
|
66
|
+
const avatarRef = useForkRef(avatarShapeRef, focusVisibleRef);
|
|
67
|
+
const clickable = clickableProp !== false && rest.onClick ? true : clickableProp ?? false;
|
|
68
|
+
const supportsStatusIndicator = size !== 'xxsmall' && size !== 'xsmall';
|
|
69
|
+
let AvatarShape = component ?? 'div';
|
|
70
|
+
if (variant === 'squircle') {
|
|
71
|
+
AvatarShape = Squircle;
|
|
72
|
+
}
|
|
73
|
+
else if (clickable) {
|
|
74
|
+
AvatarShape = 'button';
|
|
75
|
+
}
|
|
76
|
+
const shapeProps = variant === 'squircle'
|
|
77
|
+
? {
|
|
78
|
+
component,
|
|
79
|
+
focusVisible: focusVisible && clickable,
|
|
80
|
+
fillShape,
|
|
81
|
+
interactive: clickable,
|
|
82
|
+
}
|
|
83
|
+
: {};
|
|
84
|
+
const ariaProps = component === 'button'
|
|
85
|
+
? {
|
|
86
|
+
disabled,
|
|
87
|
+
}
|
|
88
|
+
: {
|
|
89
|
+
'aria-disabled': disabled,
|
|
90
|
+
};
|
|
91
|
+
const nonInteractiveShapeProps = {
|
|
92
|
+
tabIndex: -1,
|
|
93
|
+
};
|
|
94
|
+
const indicatorSize = variant === 'circle' && size === 'xxlarge' ? 'large' : 'medium';
|
|
95
|
+
return (jsx(Overlap, { position: {
|
|
96
|
+
bottom: '-1px',
|
|
97
|
+
right: '-1px',
|
|
98
|
+
}, floater: supportsStatusIndicator && showStatusIndicator ? (jsx(StatusIndicator, { size: indicatorSize, ...IndicatorProps })) : undefined, className: clsx(className, groupClassName), classes: {
|
|
99
|
+
root: cls('root', size, { disabled }),
|
|
100
|
+
floater: cls('indicator', clickable && 'clickable-indicator'),
|
|
101
|
+
}, ...rootProps, ref: ref, children: jsxs(AvatarShape, { className: cls('shape', variant, color, { clickable }, clickable && 'clickable-shape', clickable && `clickable-${variant}`), ...focusVisibleHandlers, ...shapeProps, ...ariaProps, ...(!clickable ? nonInteractiveShapeProps : {}), ...rest, ref: avatarRef, children: [jsx("div", { className: cls('content', `${variant}-content`, `${size}-content`, `${variant}-${color}`), children: children }), variant === 'circle' && (jsx("div", { className: cls('hover-tint', clickable && 'clickable-hover-tint', clickable && `clickable-hover-tint-${color}-${variant}`) })), variant === 'squircle' && clickable && (jsx(Squircle, { interactive: false, className: cls('hover-tint', clickable && 'clickable-hover-tint', clickable && `clickable-hover-tint-${color}-${variant}`) }))] }) }));
|
|
102
|
+
});
|
|
103
|
+
Avatar.displayName = 'SuiAvatar';
|
|
104
|
+
|
|
105
|
+
export { Avatar, Avatar$1 as avatarStyles };
|
package/AvatarGroup.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { a as AvatarGroup, A as AvatarGroupContext } from './chunks/AvatarGroup.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
|
|
7
|
+
var AvatarGroup = {"sui-avatar-group-root":"sui-avatar-group-root","sui-avatar-group-item":"sui-avatar-group-item"};
|
|
8
|
+
|
|
9
|
+
export { AvatarGroup as avatarGroupStyles };
|
package/Backdrop.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { B as Backdrop } from './chunks/Backdrop.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
|
|
7
|
+
var Backdrop = {"sui-backdrop-root":"sui-backdrop-root","sui-backdrop-transparent":"sui-backdrop-transparent"};
|
|
8
|
+
|
|
9
|
+
export { Backdrop as backdropStyles };
|
package/Badge.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { B as Badge } from './chunks/Badge.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'framer-motion';
|
|
5
|
+
import 'lodash/isNumber';
|
|
6
|
+
import 'lodash/kebabCase';
|
|
7
|
+
import '@ringcentral/spring-base';
|
|
8
|
+
import '@ringcentral/spring-theme';
|
|
9
|
+
import './chunks/Icon.js';
|
|
10
|
+
import './chunks/useMotionSafeTransition.js';
|
|
11
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
12
|
+
|
|
13
|
+
var Badge = {"sui-badge-root":"sui-badge-root","sui-badge-content":"sui-badge-content","sui-badge-primary":"sui-badge-primary","sui-badge-danger":"sui-badge-danger","sui-badge-success":"sui-badge-success","sui-badge-warning":"sui-badge-warning","sui-badge-secondary":"sui-badge-secondary","sui-badge-absolute":"sui-badge-absolute","sui-badge-standard":"sui-badge-standard","sui-badge-standard-small":"sui-badge-standard-small","sui-badge-standard-medium":"sui-badge-standard-medium","sui-badge-standard-primary":"sui-badge-standard-primary","sui-badge-standard-contained":"sui-badge-standard-contained","sui-badge-standard-contained-small":"sui-badge-standard-contained-small","sui-badge-standard-contained-medium":"sui-badge-standard-contained-medium","sui-badge-standard-outlined":"sui-badge-standard-outlined","sui-badge-standard-outlined-small":"sui-badge-standard-outlined-small","sui-badge-standard-outlined-medium":"sui-badge-standard-outlined-medium","sui-badge-dot":"sui-badge-dot","sui-badge-dot-primary":"sui-badge-dot-primary","sui-badge-dot-danger":"sui-badge-dot-danger","sui-badge-dot-success":"sui-badge-dot-success","sui-badge-dot-warning":"sui-badge-dot-warning","sui-badge-dot-contained-small":"sui-badge-dot-contained-small","sui-badge-dot-contained-medium":"sui-badge-dot-contained-medium","sui-badge-dot-outlined":"sui-badge-dot-outlined","sui-badge-dot-outlined-small":"sui-badge-dot-outlined-small","sui-badge-dot-outlined-medium":"sui-badge-dot-outlined-medium","sui-badge-rectangular":"sui-badge-rectangular","sui-badge-circular":"sui-badge-circular","sui-badge-rectangular-top-right":"sui-badge-rectangular-top-right","sui-badge-rectangular-bottom-right":"sui-badge-rectangular-bottom-right","sui-badge-rectangular-top-left":"sui-badge-rectangular-top-left","sui-badge-rectangular-bottom-left":"sui-badge-rectangular-bottom-left","sui-badge-circular-top-right":"sui-badge-circular-top-right","sui-badge-circular-bottom-right":"sui-badge-circular-bottom-right","sui-badge-circular-top-left":"sui-badge-circular-top-left","sui-badge-circular-bottom-left":"sui-badge-circular-bottom-left"};
|
|
14
|
+
|
|
15
|
+
export { Badge as badgeStyles };
|
package/Block.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useClasses } from '@ringcentral/spring-base';
|
|
4
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
5
|
+
|
|
6
|
+
var Block$1 = {"sui-block-root":"sui-block-root","sui-block-row":"sui-block-row","sui-block-padding":"sui-block-padding","sui-block-bordered":"sui-block-bordered","sui-block-border-radius-none":"sui-block-border-radius-none","sui-block-border-radius-xsmall":"sui-block-border-radius-xsmall","sui-block-border-radius-small":"sui-block-border-radius-small","sui-block-border-radius-medium":"sui-block-border-radius-medium","sui-block-default":"sui-block-default","sui-block-neutral":"sui-block-neutral","sui-block-hide-background":"sui-block-hide-background"};
|
|
7
|
+
|
|
8
|
+
const Block = forwardRef((inProps, ref) => {
|
|
9
|
+
const props = useThemeProps({ props: inProps, name: 'Block' });
|
|
10
|
+
const { component: BlockRoot = 'div', classes, className, children, row = false, padding = true, bordered = true, borderRadius = 'medium', color = 'default', background = true, ...rest } = props;
|
|
11
|
+
const cls = useClasses('block', classes, className);
|
|
12
|
+
return (jsx(BlockRoot, { className: cls('root', `border-radius-${borderRadius}`, background ? color : 'hide-background', {
|
|
13
|
+
row,
|
|
14
|
+
padding,
|
|
15
|
+
bordered,
|
|
16
|
+
}), ...rest, ref: ref, children: children }));
|
|
17
|
+
});
|
|
18
|
+
Block.displayName = 'SuiBlock';
|
|
19
|
+
|
|
20
|
+
export { Block, Block$1 as blockStyles };
|
package/BlockHeader.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useClasses } from '@ringcentral/spring-base';
|
|
4
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
5
|
+
import { D as Divider } from './chunks/Divider.js';
|
|
6
|
+
|
|
7
|
+
var BlockHeader$1 = {"sui-block-header-root":"sui-block-header-root","sui-block-header-title":"sui-block-header-title","sui-block-header-end-slot":"sui-block-header-end-slot","sui-block-header-divider":"sui-block-header-divider"};
|
|
8
|
+
|
|
9
|
+
const BlockHeader = forwardRef((inProps, ref) => {
|
|
10
|
+
const props = useThemeProps({ props: inProps, name: 'BlockHeader' });
|
|
11
|
+
const { component: BlockHeaderRoot = 'div', classes, className, children, endSlot, divider = false, ...rest } = props;
|
|
12
|
+
const cls = useClasses('block-header', classes, className);
|
|
13
|
+
const title = typeof children === 'string' ? children : undefined;
|
|
14
|
+
return (jsxs(Fragment, { children: [jsxs(BlockHeaderRoot, { className: cls('root'), ...rest, ref: ref, children: [jsx("div", { title: title, className: cls('title'), children: children }), endSlot && jsx("div", { className: cls('end-slot'), children: endSlot })] }), divider && (jsx(Divider, { className: cls('divider'), orientation: "horizontal", flexItem: true }))] }));
|
|
15
|
+
});
|
|
16
|
+
BlockHeader.displayName = 'SuiBlockHeader';
|
|
17
|
+
|
|
18
|
+
export { BlockHeader, BlockHeader$1 as blockHeaderStyles };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useState, useMemo, useRef } from 'react';
|
|
3
|
+
import { motion, AnimatePresence } from 'framer-motion';
|
|
4
|
+
import { tabbable } from 'tabbable';
|
|
5
|
+
import { useClasses, useControlled, logInDev, useEventCallback, getTitle, useTabOut, combineProps } from '@ringcentral/spring-base';
|
|
6
|
+
import { OverflowMd } from '@ringcentral/spring-icon';
|
|
7
|
+
import { useThemeProps, motionTransition } from '@ringcentral/spring-theme';
|
|
8
|
+
import { ClickAwayListener } from '@mui/base';
|
|
9
|
+
import { a as BottomNavigationContext, B as BottomNavigationItem } from './chunks/BottomNavigationItem.js';
|
|
10
|
+
export { u as useBottomNavigationContext } from './chunks/BottomNavigationItem.js';
|
|
11
|
+
import { S as Squircle } from './chunks/Squircle.js';
|
|
12
|
+
import './chunks/Icon.js';
|
|
13
|
+
import { u as useMotionSafeTransition } from './chunks/useMotionSafeTransition.js';
|
|
14
|
+
import './chunks/Badge.js';
|
|
15
|
+
import 'lodash/isNumber';
|
|
16
|
+
import 'lodash/kebabCase';
|
|
17
|
+
import './chunks/IconButtonLabel.js';
|
|
18
|
+
import './chunks/withTooltip.js';
|
|
19
|
+
import './chunks/Tooltip.js';
|
|
20
|
+
import 'clsx';
|
|
21
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
22
|
+
import './chunks/getFade.js';
|
|
23
|
+
import './Popper.js';
|
|
24
|
+
import '@floating-ui/react-dom';
|
|
25
|
+
import './chunks/Modal.js';
|
|
26
|
+
import './chunks/useFocusTrapStack.js';
|
|
27
|
+
import './chunks/Backdrop.js';
|
|
28
|
+
import './chunks/PopperPaper.js';
|
|
29
|
+
import './chunks/useTooltipForceHide.js';
|
|
30
|
+
|
|
31
|
+
var BottomNavigationGroup$1 = {"sui-bottom-navigation-group-root":"sui-bottom-navigation-group-root"};
|
|
32
|
+
|
|
33
|
+
const BottomNavigationGroup = forwardRef((props, ref) => {
|
|
34
|
+
const { classes, className, children, ...rest } = props;
|
|
35
|
+
const cls = useClasses('bottom-navigation-group', classes, className);
|
|
36
|
+
return (jsx("div", { className: cls('root'), ...rest, ref: ref, children: children }));
|
|
37
|
+
});
|
|
38
|
+
BottomNavigationGroup.displayName = 'SuiBottomNavigationGroup';
|
|
39
|
+
|
|
40
|
+
var BottomNavigation$1 = {"sui-bottom-navigation-root":"sui-bottom-navigation-root","sui-bottom-navigation-full-width":"sui-bottom-navigation-full-width","sui-bottom-navigation-item-wrapper":"sui-bottom-navigation-item-wrapper","sui-bottom-navigation-description":"sui-bottom-navigation-description","sui-bottom-navigation-empty-slot":"sui-bottom-navigation-empty-slot","sui-expanded":"sui-expanded"};
|
|
41
|
+
|
|
42
|
+
const ROW_HEIGHT = 56;
|
|
43
|
+
const BottomNavigation = forwardRef((inProps, ref) => {
|
|
44
|
+
const props = useThemeProps({ props: inProps, name: 'BottomNavigation' });
|
|
45
|
+
const { classes, className, children, defaultValue, value: valueProp, defaultData, data: dataProp, onChange, renderItem, MoreProps, description, onTouchEnd, onClick, onKeyDown, onKeyUp, onBlur, onCollapse, fullWidth, ...rest } = props;
|
|
46
|
+
const [value, setValue] = useControlled({
|
|
47
|
+
controlled: valueProp,
|
|
48
|
+
default: defaultValue,
|
|
49
|
+
name: 'SuiBottomNavigation',
|
|
50
|
+
state: 'value',
|
|
51
|
+
});
|
|
52
|
+
// TODO: setData will be used when dnd is implemented
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
|
+
const [data, setData] = useControlled({
|
|
55
|
+
controlled: dataProp,
|
|
56
|
+
default: defaultData,
|
|
57
|
+
name: 'SuiBottomNavigation',
|
|
58
|
+
state: 'data',
|
|
59
|
+
});
|
|
60
|
+
const { visible, more } = data;
|
|
61
|
+
const VISIBLE_MAX_COUNT = more?.length ? 5 : 6;
|
|
62
|
+
if (process.env.NODE_ENV !== 'production' &&
|
|
63
|
+
visible.length > VISIBLE_MAX_COUNT) {
|
|
64
|
+
logInDev({
|
|
65
|
+
scope: 'BottomNavigation',
|
|
66
|
+
message: `You can not have more than ${VISIBLE_MAX_COUNT} visible items.`,
|
|
67
|
+
level: 'warn',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const emptySlots = VISIBLE_MAX_COUNT - visible.length;
|
|
71
|
+
const cls = useClasses('bottom-navigation', classes, className);
|
|
72
|
+
const [expanded, setExpanded] = useState(false);
|
|
73
|
+
const [animationComplete, setAnimationComplete] = useState();
|
|
74
|
+
const transition = useMotionSafeTransition(motionTransition['haste-01-fast']);
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
const handleClose = (e, reason) => {
|
|
77
|
+
if (!expanded)
|
|
78
|
+
return;
|
|
79
|
+
setExpanded(false);
|
|
80
|
+
onCollapse?.(e, reason);
|
|
81
|
+
};
|
|
82
|
+
const onSelected = useEventCallback((e, newValue) => {
|
|
83
|
+
handleClose(e, 'ItemSelected');
|
|
84
|
+
setValue(newValue);
|
|
85
|
+
if (onChange) {
|
|
86
|
+
onChange(e, newValue);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const contextValue = useMemo(() => {
|
|
90
|
+
return {
|
|
91
|
+
value,
|
|
92
|
+
expanded,
|
|
93
|
+
onSelected,
|
|
94
|
+
animationComplete,
|
|
95
|
+
};
|
|
96
|
+
}, [expanded, onSelected, animationComplete, value]);
|
|
97
|
+
const handleMoreClick = (e) => {
|
|
98
|
+
if (expanded) {
|
|
99
|
+
handleClose(e, 'ToggleMore');
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
setExpanded(true);
|
|
103
|
+
}
|
|
104
|
+
MoreProps?.onClick?.(e);
|
|
105
|
+
};
|
|
106
|
+
const descriptionTitle = getTitle(description);
|
|
107
|
+
const handleClickAway = useEventCallback((e) => {
|
|
108
|
+
if (!expanded)
|
|
109
|
+
return;
|
|
110
|
+
handleClose(e, 'ClickAway');
|
|
111
|
+
});
|
|
112
|
+
const { tabOutHandler } = useTabOut((e) => {
|
|
113
|
+
handleClose(e, 'TabBlur');
|
|
114
|
+
});
|
|
115
|
+
const handleKeyDown = (e) => {
|
|
116
|
+
if (e.key === 'Escape') {
|
|
117
|
+
handleClose(e, 'EscapeKeyDown');
|
|
118
|
+
}
|
|
119
|
+
onKeyDown?.(e);
|
|
120
|
+
};
|
|
121
|
+
const tabOutProps = combineProps(tabOutHandler, {
|
|
122
|
+
onKeyDown: handleKeyDown,
|
|
123
|
+
onKeyUp,
|
|
124
|
+
onBlur,
|
|
125
|
+
});
|
|
126
|
+
const moreGroupRef = useRef(null);
|
|
127
|
+
const moreButtonRef = useRef(null);
|
|
128
|
+
const handleAnimationComplete = () => {
|
|
129
|
+
setAnimationComplete(true);
|
|
130
|
+
if (expanded && moreGroupRef.current) {
|
|
131
|
+
const allTabbable = tabbable(moreGroupRef.current);
|
|
132
|
+
allTabbable.at(0)?.focus();
|
|
133
|
+
}
|
|
134
|
+
if (!expanded && moreButtonRef.current) {
|
|
135
|
+
moreButtonRef.current.focus();
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const itemWrapperClassName = cls('item-wrapper');
|
|
139
|
+
return (jsx(ClickAwayListener, { onClickAway: handleClickAway, children: jsx(motion.div, { transition: transition, onAnimationStart: () => {
|
|
140
|
+
setAnimationComplete(false);
|
|
141
|
+
}, onAnimationComplete: handleAnimationComplete, initial: false, animate: expanded ? { height: 'auto' } : { height: ROW_HEIGHT }, className: cls('root', { expanded, 'full-width': fullWidth }), ...rest, ...tabOutProps, onClick: onClick, onTouchEnd: onTouchEnd, ref: ref, children: jsxs(BottomNavigationContext.Provider, { value: contextValue, children: [jsxs(BottomNavigationGroup, { children: [visible.slice(0, VISIBLE_MAX_COUNT).map((item) => (jsx("span", { className: itemWrapperClassName, children: renderItem(item) }, item))), [...Array(emptySlots > 0 ? emptySlots : 0)].map((e, i) => (jsx("span", { className: itemWrapperClassName, children: jsx(Squircle, { interactive: false, className: cls('empty-slot', { expanded }) }) }, 'bottom-navigation-slot-' + i))), more?.length ? (jsx("span", { className: itemWrapperClassName, children: jsx(BottomNavigationItem, { symbol: OverflowMd, activated: expanded, expanded: false, ButtonProps: { 'aria-expanded': expanded }, ...MoreProps, count: expanded ? 0 : MoreProps?.count, onClick: handleMoreClick, ref: moreButtonRef }) })) : null] }), jsxs(AnimatePresence, { children: [expanded && more?.length ? (jsx(BottomNavigationGroup, { ref: moreGroupRef, children: more.map((item) => (jsx("span", { title: item, className: itemWrapperClassName, children: renderItem(item) }, item))) }, "more")) : null, expanded && description && (jsx("div", { className: cls('description'), title: descriptionTitle, children: description }))] })] }) }) }));
|
|
142
|
+
});
|
|
143
|
+
BottomNavigation.displayName = 'SuiBottomNavigation';
|
|
144
|
+
|
|
145
|
+
export { BottomNavigation, BottomNavigationContext, BottomNavigationGroup, BottomNavigationGroup$1 as bottomNavigationGroupStyles, BottomNavigation$1 as bottomNavigationStyles };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { B as BottomNavigationItem } from './chunks/BottomNavigationItem.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
import './chunks/Badge.js';
|
|
7
|
+
import 'framer-motion';
|
|
8
|
+
import 'lodash/isNumber';
|
|
9
|
+
import 'lodash/kebabCase';
|
|
10
|
+
import './chunks/Icon.js';
|
|
11
|
+
import './chunks/useMotionSafeTransition.js';
|
|
12
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
13
|
+
import './chunks/IconButtonLabel.js';
|
|
14
|
+
import '@mui/base';
|
|
15
|
+
import './chunks/Squircle.js';
|
|
16
|
+
import './chunks/withTooltip.js';
|
|
17
|
+
import './chunks/Tooltip.js';
|
|
18
|
+
import 'clsx';
|
|
19
|
+
import './chunks/getFade.js';
|
|
20
|
+
import './Popper.js';
|
|
21
|
+
import '@floating-ui/react-dom';
|
|
22
|
+
import './chunks/Modal.js';
|
|
23
|
+
import './chunks/useFocusTrapStack.js';
|
|
24
|
+
import './chunks/Backdrop.js';
|
|
25
|
+
import './chunks/PopperPaper.js';
|
|
26
|
+
import './chunks/useTooltipForceHide.js';
|
|
27
|
+
|
|
28
|
+
var BottomNavigationItem = {"sui-bottom-navigation-item-button":"sui-bottom-navigation-item-button","sui-expanded":"sui-expanded","sui-bottom-navigation-item-activated":"sui-bottom-navigation-item-activated"};
|
|
29
|
+
|
|
30
|
+
export { BottomNavigationItem as bottomNavigationItemStyles };
|
package/Button.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { B as Button, b as buttonIconSizeMap } from './chunks/Button.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'clsx';
|
|
5
|
+
import '@mui/base';
|
|
6
|
+
import '@ringcentral/spring-base';
|
|
7
|
+
import '@ringcentral/spring-theme';
|
|
8
|
+
import './chunks/CircularProgressIndicator.js';
|
|
9
|
+
import 'framer-motion';
|
|
10
|
+
import './chunks/Icon.js';
|
|
11
|
+
import './chunks/Tooltip.js';
|
|
12
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
13
|
+
import './chunks/getFade.js';
|
|
14
|
+
import './Popper.js';
|
|
15
|
+
import '@floating-ui/react-dom';
|
|
16
|
+
import './chunks/Modal.js';
|
|
17
|
+
import './chunks/useFocusTrapStack.js';
|
|
18
|
+
import './chunks/Backdrop.js';
|
|
19
|
+
import './chunks/PopperPaper.js';
|
|
20
|
+
import './chunks/withTooltip.js';
|
|
21
|
+
|
|
22
|
+
var Button = {"sui-button-root":"sui-button-root","sui-disabled":"sui-disabled","sui-button-loading-indicator":"sui-button-loading-indicator","sui-button-xlarge":"sui-button-xlarge","sui-button-large":"sui-button-large","sui-button-medium":"sui-button-medium","sui-button-small":"sui-button-small","sui-button-xsmall":"sui-button-xsmall","sui-button-contained-xlarge":"sui-button-contained-xlarge","sui-button-outlined-xlarge":"sui-button-outlined-xlarge","sui-button-inverted-xlarge":"sui-button-inverted-xlarge","sui-button-contained-large":"sui-button-contained-large","sui-button-outlined-large":"sui-button-outlined-large","sui-button-inverted-large":"sui-button-inverted-large","sui-button-contained-medium":"sui-button-contained-medium","sui-button-outlined-medium":"sui-button-outlined-medium","sui-button-inverted-medium":"sui-button-inverted-medium","sui-button-contained-small":"sui-button-contained-small","sui-button-outlined-small":"sui-button-outlined-small","sui-button-inverted-small":"sui-button-inverted-small","sui-button-contained-xsmall":"sui-button-contained-xsmall","sui-button-outlined-xsmall":"sui-button-outlined-xsmall","sui-button-inverted-xsmall":"sui-button-inverted-xsmall","sui-button-loading":"sui-button-loading","sui-button-content":"sui-button-content","sui-button-contained":"sui-button-contained","sui-focus-visible":"sui-focus-visible","sui-button-outlined":"sui-button-outlined","sui-button-inverted":"sui-button-inverted","sui-button-text":"sui-button-text","sui-button-contained-primary":"sui-button-contained-primary","sui-button-contained-secondary":"sui-button-contained-secondary","sui-button-contained-neutral":"sui-button-contained-neutral","sui-button-contained-danger":"sui-button-contained-danger","sui-button-contained-warning":"sui-button-contained-warning","sui-button-contained-success":"sui-button-contained-success","sui-button-contained-hide-background":"sui-button-contained-hide-background","sui-button-outlined-primary":"sui-button-outlined-primary","sui-button-outlined-secondary":"sui-button-outlined-secondary","sui-button-outlined-neutral":"sui-button-outlined-neutral","sui-button-outlined-danger":"sui-button-outlined-danger","sui-button-outlined-warning":"sui-button-outlined-warning","sui-button-outlined-success":"sui-button-outlined-success","sui-button-text-primary":"sui-button-text-primary","sui-button-text-secondary":"sui-button-text-secondary","sui-button-text-neutral":"sui-button-text-neutral","sui-button-text-danger":"sui-button-text-danger","sui-button-text-warning":"sui-button-text-warning","sui-button-text-success":"sui-button-text-success","sui-button-inverted-primary":"sui-button-inverted-primary","sui-button-inverted-secondary":"sui-button-inverted-secondary","sui-button-inverted-neutral":"sui-button-inverted-neutral","sui-button-inverted-danger":"sui-button-inverted-danger","sui-button-inverted-warning":"sui-button-inverted-warning","sui-button-inverted-success":"sui-button-inverted-success","sui-button-start-slot":"sui-button-start-slot","sui-button-end-slot":"sui-button-end-slot","sui-button-has-start-slot":"sui-button-has-start-slot","sui-button-has-end-slot":"sui-button-has-end-slot","sui-button-hide-background":"sui-button-hide-background","sui-button-full-width":"sui-button-full-width"};
|
|
23
|
+
|
|
24
|
+
export { Button as buttonClasses };
|
package/CallButton.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useClasses } from '@ringcentral/spring-base';
|
|
4
|
+
import { CallFilledMd } from '@ringcentral/spring-icon';
|
|
5
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
6
|
+
import { I as IconButton } from './chunks/IconButtonLabel.js';
|
|
7
|
+
import '@mui/base';
|
|
8
|
+
import './chunks/Icon.js';
|
|
9
|
+
import './chunks/Squircle.js';
|
|
10
|
+
import './chunks/withTooltip.js';
|
|
11
|
+
import './chunks/Tooltip.js';
|
|
12
|
+
import 'framer-motion';
|
|
13
|
+
import 'clsx';
|
|
14
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
15
|
+
import './chunks/getFade.js';
|
|
16
|
+
import './Popper.js';
|
|
17
|
+
import '@floating-ui/react-dom';
|
|
18
|
+
import './chunks/Modal.js';
|
|
19
|
+
import './chunks/useFocusTrapStack.js';
|
|
20
|
+
import './chunks/Backdrop.js';
|
|
21
|
+
import './chunks/PopperPaper.js';
|
|
22
|
+
|
|
23
|
+
var CallButton$1 = {"sui-call-button-end":"sui-call-button-end"};
|
|
24
|
+
|
|
25
|
+
const IconButtonPropsSizeMap = {
|
|
26
|
+
large: { size: 'xxxlarge', iconSize: 'large' },
|
|
27
|
+
medium: { size: 'xxlarge', iconSize: 'medium' },
|
|
28
|
+
small: { size: 'large', iconSize: 'small' },
|
|
29
|
+
};
|
|
30
|
+
const CallButton = forwardRef((inProps, ref) => {
|
|
31
|
+
const props = useThemeProps({ props: inProps, name: 'CallButton' });
|
|
32
|
+
const { variant, className, size = 'medium', classes, ...rest } = props;
|
|
33
|
+
const color = variant === 'end' ? 'danger' : 'success';
|
|
34
|
+
const cls = useClasses('call-button', classes, className);
|
|
35
|
+
return (jsx(IconButton, { ...rest, ...IconButtonPropsSizeMap[size], ref: ref, color: color, variant: "contained", symbol: CallFilledMd, className: cls('root', variant) }));
|
|
36
|
+
});
|
|
37
|
+
CallButton.displayName = 'SuiCallButton';
|
|
38
|
+
|
|
39
|
+
export { CallButton, CallButton$1 as callButtonStyle };
|
package/Checkbox.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useRef, useLayoutEffect, useEffect } from 'react';
|
|
3
|
+
import { useSwitch } from '@mui/base';
|
|
4
|
+
import { useClasses, useForkRef } from '@ringcentral/spring-base';
|
|
5
|
+
import { MinusBoldMd, CheckBoldMd } from '@ringcentral/spring-icon';
|
|
6
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
7
|
+
import { u as useFormLabel } from './chunks/FormLabel.js';
|
|
8
|
+
import { I as Icon } from './chunks/Icon.js';
|
|
9
|
+
import { S as Squircle } from './chunks/Squircle.js';
|
|
10
|
+
|
|
11
|
+
var Checkbox$1 = {"sui-checkbox-input":"sui-checkbox-input","sui-checkbox-root":"sui-checkbox-root","sui-disabled":"sui-disabled","sui-checkbox-rectangular":"sui-checkbox-rectangular","sui-checkbox-inner":"sui-checkbox-inner","sui-focus-visible":"sui-focus-visible","sui-checkbox-squircle":"sui-checkbox-squircle","sui-checkbox":"sui-checkbox","sui-checked":"sui-checked","sui-checkbox-indeterminate":"sui-checkbox-indeterminate","sui-checkbox-inner-rectangular":"sui-checkbox-inner-rectangular"};
|
|
12
|
+
|
|
13
|
+
const Checkbox = forwardRef((inProps, ref) => {
|
|
14
|
+
const props = useThemeProps({ props: inProps, name: 'Checkbox' });
|
|
15
|
+
const { classes, inputRef: inputRefProp, rootProps, inputProps, indeterminate, autoFocus = false, className: rootClass, disabled: disabledProp, shape = 'rectangular', ...rest } = props;
|
|
16
|
+
const cls = useClasses('checkbox', classes, rootClass);
|
|
17
|
+
const inputRef = useRef();
|
|
18
|
+
const forkRef = useForkRef(inputRefProp, inputRef);
|
|
19
|
+
const { disabled, id } = useFormLabel({
|
|
20
|
+
disabled: disabledProp,
|
|
21
|
+
id: inputProps?.id,
|
|
22
|
+
});
|
|
23
|
+
// TODO: wait useCheckBox ready, see https://github.com/mui/material-ui/issues/27170
|
|
24
|
+
const { getInputProps, checked, focusVisible } = useSwitch({
|
|
25
|
+
...rest,
|
|
26
|
+
disabled,
|
|
27
|
+
});
|
|
28
|
+
const widgetProps = getInputProps({
|
|
29
|
+
role: undefined,
|
|
30
|
+
...inputProps,
|
|
31
|
+
itemType: 'checkbox',
|
|
32
|
+
});
|
|
33
|
+
useLayoutEffect(() => {
|
|
34
|
+
if (autoFocus) {
|
|
35
|
+
inputRef.current?.focus();
|
|
36
|
+
}
|
|
37
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
|
+
}, []);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (inputRef.current) {
|
|
41
|
+
inputRef.current.indeterminate = !!indeterminate;
|
|
42
|
+
}
|
|
43
|
+
}, [indeterminate]);
|
|
44
|
+
const states = { checked, disabled, indeterminate, focusVisible };
|
|
45
|
+
const symbol = indeterminate ? MinusBoldMd : checked ? CheckBoldMd : null;
|
|
46
|
+
const rootClassName = cls('root', shape, states);
|
|
47
|
+
const checkboxContent = (jsxs(Fragment, { children: [symbol ? (jsx(Icon, { symbol: symbol, size: "xsmall" })) : (jsx("span", { className: cls('inner', `inner-${shape}`) })), jsx("input", { ...widgetProps, checked: checked, ref: forkRef, className: cls('input'), id: id })] }));
|
|
48
|
+
if (shape === 'squircle') {
|
|
49
|
+
return (jsx(Squircle, { ...rootProps, ref: ref, className: rootClassName, interactive: !disabled, focusVisible: focusVisible, children: checkboxContent }));
|
|
50
|
+
}
|
|
51
|
+
return (jsx("div", { ...rootProps, ref: ref, className: rootClassName, children: checkboxContent }));
|
|
52
|
+
});
|
|
53
|
+
Checkbox.displayName = 'SuiCheckbox';
|
|
54
|
+
|
|
55
|
+
export { Checkbox, Checkbox$1 as checkboxStyle };
|
package/Chip.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { C as Chip } from './chunks/Chip.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@mui/base';
|
|
5
|
+
import '@ringcentral/spring-base';
|
|
6
|
+
import '@ringcentral/spring-icon';
|
|
7
|
+
import '@ringcentral/spring-theme';
|
|
8
|
+
import './chunks/IconButtonLabel.js';
|
|
9
|
+
import './chunks/Icon.js';
|
|
10
|
+
import './chunks/Squircle.js';
|
|
11
|
+
import './chunks/withTooltip.js';
|
|
12
|
+
import './chunks/Tooltip.js';
|
|
13
|
+
import 'framer-motion';
|
|
14
|
+
import 'clsx';
|
|
15
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
16
|
+
import './chunks/getFade.js';
|
|
17
|
+
import './Popper.js';
|
|
18
|
+
import '@floating-ui/react-dom';
|
|
19
|
+
import './chunks/Modal.js';
|
|
20
|
+
import './chunks/useFocusTrapStack.js';
|
|
21
|
+
import './chunks/Backdrop.js';
|
|
22
|
+
import './chunks/PopperPaper.js';
|
|
23
|
+
|
|
24
|
+
var Chip = {"sui-chip-root":"sui-chip-root","sui-disabled":"sui-disabled","sui-chip-truncate":"sui-chip-truncate","sui-chip-label":"sui-chip-label","sui-chip-large":"sui-chip-large","sui-chip-medium":"sui-chip-medium","sui-chip-small":"sui-chip-small","sui-chip-delete-icon":"sui-chip-delete-icon","sui-chip-default":"sui-chip-default","sui-chip-error":"sui-chip-error","sui-chip-clickable":"sui-chip-clickable"};
|
|
25
|
+
|
|
26
|
+
export { Chip as chipStyle };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { C as CircularProgressIndicator } from './chunks/CircularProgressIndicator.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'framer-motion';
|
|
5
|
+
import '@ringcentral/spring-base';
|
|
6
|
+
import '@ringcentral/spring-theme';
|
|
7
|
+
|
|
8
|
+
var CircularProgressIndicator = {"sui-circular-progress-indicator-root":"sui-circular-progress-indicator-root","sui-circular-progress-indicator-xlarge":"sui-circular-progress-indicator-xlarge","sui-circular-progress-indicator-large":"sui-circular-progress-indicator-large","sui-circular-progress-indicator-medium":"sui-circular-progress-indicator-medium","sui-circular-progress-indicator-small":"sui-circular-progress-indicator-small","sui-circular-progress-indicator-xsmall":"sui-circular-progress-indicator-xsmall","sui-circular-progress-indicator-indeterminate":"sui-circular-progress-indicator-indeterminate","sui-circular-progress-indicator-indeterminate-outer-circle":"sui-circular-progress-indicator-indeterminate-outer-circle","sui-circular-progress-indicator-indeterminate-inner-circle":"sui-circular-progress-indicator-indeterminate-inner-circle","sui-circular-progress-indicator-indeterminate-xlarge":"sui-circular-progress-indicator-indeterminate-xlarge","sui-circular-progress-indicator-indeterminate-large":"sui-circular-progress-indicator-indeterminate-large","sui-circular-progress-indicator-indeterminate-medium":"sui-circular-progress-indicator-indeterminate-medium","sui-circular-progress-indicator-indeterminate-small":"sui-circular-progress-indicator-indeterminate-small","sui-circular-progress-indicator-indeterminate-xsmall":"sui-circular-progress-indicator-indeterminate-xsmall","sui-circular-progress-indicator-indeterminate-primary":"sui-circular-progress-indicator-indeterminate-primary","sui-circular-progress-indicator-indeterminate-neutral":"sui-circular-progress-indicator-indeterminate-neutral","sui-circular-progress-indicator-indeterminate-danger":"sui-circular-progress-indicator-indeterminate-danger","sui-circular-progress-indicator-indeterminate-warning":"sui-circular-progress-indicator-indeterminate-warning","sui-circular-progress-indicator-indeterminate-success":"sui-circular-progress-indicator-indeterminate-success","sui-circular-progress-indicator-determinate-progress-circle":"sui-circular-progress-indicator-determinate-progress-circle","sui-circular-progress-indicator-determinate-primary":"sui-circular-progress-indicator-determinate-primary","sui-circular-progress-indicator-determinate-neutral":"sui-circular-progress-indicator-determinate-neutral","sui-circular-progress-indicator-determinate-danger":"sui-circular-progress-indicator-determinate-danger","sui-circular-progress-indicator-determinate-warning":"sui-circular-progress-indicator-determinate-warning","sui-circular-progress-indicator-determinate-success":"sui-circular-progress-indicator-determinate-success"};
|
|
9
|
+
|
|
10
|
+
export { CircularProgressIndicator as circularProgressIndicatorStyle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClickAwayListener } from '@mui/base';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|