@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/ListItem.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { H as HoverActions, L as ListItem } from './chunks/ListItem.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
import './chunks/Divider.js';
|
|
7
|
+
import './ListNavigation.js';
|
|
8
|
+
import './chunks/useListNavigation.js';
|
|
9
|
+
import 'tabbable';
|
|
10
|
+
import './VirtualizedList.js';
|
|
11
|
+
import 'react-virtuoso';
|
|
12
|
+
import './chunks/List.js';
|
|
13
|
+
import 'framer-motion';
|
|
14
|
+
import './chunks/Icon.js';
|
|
15
|
+
import './chunks/useMotionSafeTransition.js';
|
|
16
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
17
|
+
import './chunks/SlideIn.js';
|
|
18
|
+
import './chunks/getSlideIn.js';
|
|
19
|
+
|
|
20
|
+
var ListItem = {"sui-list-item-root":"sui-list-item-root","sui-list-item-content":"sui-list-item-content","sui-list-item-text":"sui-list-item-text","sui-list-item-divider":"sui-list-item-divider","sui-list-item-container":"sui-list-item-container","sui-list-item-hover-actions":"sui-list-item-hover-actions","sui-list-item-small":"sui-list-item-small","sui-list-item-large":"sui-list-item-large","sui-list-item-auto":"sui-list-item-auto","sui-focus-visible":"sui-focus-visible","sui-focused":"sui-focused","sui-list-item-hoverable":"sui-list-item-hoverable","sui-focus-visible-within":"sui-focus-visible-within","sui-list-item-clickable":"sui-list-item-clickable","sui-selected":"sui-selected","sui-list-item-highlighted":"sui-list-item-highlighted","sui-dragged":"sui-dragged","sui-active":"sui-active"};
|
|
21
|
+
|
|
22
|
+
export { ListItem as listItemStyle };
|
package/ListItemText.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, 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 ListItemText$1 = {"sui-list-item-text-root":"sui-list-item-text-root","sui-list-item-text-primary-text":"sui-list-item-text-primary-text","sui-list-item-text-secondary-text":"sui-list-item-text-secondary-text","sui-list-item-text-primary":"sui-list-item-text-primary","sui-list-item-text-primary-primary-text":"sui-list-item-text-primary-primary-text","sui-list-item-text-secondary":"sui-list-item-text-secondary","sui-list-item-text-secondary-primary-text":"sui-list-item-text-secondary-primary-text"};
|
|
7
|
+
|
|
8
|
+
const ListItemText = forwardRef((inProps, ref) => {
|
|
9
|
+
const props = useThemeProps({ props: inProps, name: 'ListItemText' });
|
|
10
|
+
const { classes, className, primary, secondary, primaryText, secondaryText, variant = 'primary', children, ...rest } = props;
|
|
11
|
+
const cls = useClasses('list-item-text', classes, className);
|
|
12
|
+
const primaryContent = primary || primaryText || children;
|
|
13
|
+
const secondaryContent = secondary || secondaryText;
|
|
14
|
+
return (jsxs("div", { className: cls('root', variant), ...rest, ref: ref, children: [jsx("span", { className: cls('primary-text', `${variant}-primary-text`), children: primaryContent }), secondaryContent && (jsx("span", { className: cls('secondary-text', `${variant}-secondary-text`), children: secondaryContent }))] }));
|
|
15
|
+
});
|
|
16
|
+
ListItemText.displayName = 'SuiListItemText';
|
|
17
|
+
|
|
18
|
+
export { ListItemText, ListItemText$1 as listItemTextStyle };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { u as useListNavigationContext } from './chunks/useListNavigation.js';
|
|
2
|
+
export { L as ListNavigationContext, a as useListNavigation } from './chunks/useListNavigation.js';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import { tabbable } from 'tabbable';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import '@ringcentral/spring-base';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
9
|
+
const useItemNavigation = () => {
|
|
10
|
+
const itemRef = useRef(null);
|
|
11
|
+
const navContextValue = useListNavigationContext();
|
|
12
|
+
if (navContextValue) {
|
|
13
|
+
return {
|
|
14
|
+
keyboardNavHandlers: {
|
|
15
|
+
onKeyDown: (e) => {
|
|
16
|
+
// There some problems if `itemRef.current` is null.
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
18
|
+
const itemEl = itemRef.current;
|
|
19
|
+
// All tabbable element in item. No include item self.
|
|
20
|
+
const allTabbable = tabbable(itemEl);
|
|
21
|
+
const { key, shiftKey, target, currentTarget } = e;
|
|
22
|
+
if (key === 'Tab') {
|
|
23
|
+
if (shiftKey) {
|
|
24
|
+
if (currentTarget === target) {
|
|
25
|
+
navContextValue.onShiftTab();
|
|
26
|
+
}
|
|
27
|
+
else if (allTabbable.at(0) === target) {
|
|
28
|
+
// prevent default focus logic
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
// focus item manual, because tabindex of item is -1
|
|
31
|
+
itemEl.focus();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
if (allTabbable.at(-1) === target || !allTabbable.length) {
|
|
36
|
+
navContextValue.onTab();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
onFocus: (e) => {
|
|
42
|
+
navContextValue.updateFocusedItem(e.currentTarget);
|
|
43
|
+
},
|
|
44
|
+
onBlur: (e) => {
|
|
45
|
+
if (e.relatedTarget &&
|
|
46
|
+
!e.currentTarget.contains(e.relatedTarget)) {
|
|
47
|
+
navContextValue.updateFocusedItem(null);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
itemRef,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { useItemNavigation, useListNavigationContext };
|
package/Menu.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { M as Menu, a as MenuContext, u as useMenuContext } from './chunks/Menu.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
import './chunks/useNestedParentMenu.js';
|
|
7
|
+
import './chunks/Popover.js';
|
|
8
|
+
import '@floating-ui/react-dom';
|
|
9
|
+
import 'framer-motion';
|
|
10
|
+
import './chunks/Icon.js';
|
|
11
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
12
|
+
import './chunks/getGrow.js';
|
|
13
|
+
import './chunks/Modal.js';
|
|
14
|
+
import '@mui/base';
|
|
15
|
+
import './chunks/getFade.js';
|
|
16
|
+
import './chunks/useFocusTrapStack.js';
|
|
17
|
+
import './chunks/Backdrop.js';
|
|
18
|
+
import './Popper.js';
|
|
19
|
+
import './chunks/PopperPaper.js';
|
|
20
|
+
|
|
21
|
+
var Menu = {"sui-menu-paper":"sui-menu-paper"};
|
|
22
|
+
|
|
23
|
+
export { Menu as menuStyle };
|
package/MenuActions.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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 MenuActions$1 = {"sui-menu-actions-root":"sui-menu-actions-root","sui-menu-actions-group-root":"sui-menu-actions-group-root"};
|
|
7
|
+
|
|
8
|
+
const MenuActions = forwardRef((inProps, ref) => {
|
|
9
|
+
const props = useThemeProps({ props: inProps, name: 'MenuActions' });
|
|
10
|
+
const { classes, className, children, ...rest } = props;
|
|
11
|
+
const cls = useClasses('menu-actions', classes, className);
|
|
12
|
+
return (jsx("div", { className: cls('root'), ...rest, ref: ref, children: children }));
|
|
13
|
+
});
|
|
14
|
+
MenuActions.displayName = 'SuiMenuActions';
|
|
15
|
+
const MenuActionsGroup = ({ className, ...rest }) => {
|
|
16
|
+
const cls = useClasses('menu-actions-group', undefined, className);
|
|
17
|
+
return jsx("div", { className: cls('root'), ...rest });
|
|
18
|
+
};
|
|
19
|
+
MenuActionsGroup.displayName = 'SuiMenuActionsGroup';
|
|
20
|
+
|
|
21
|
+
export { MenuActions, MenuActionsGroup, MenuActions$1 as menuActionsStyle };
|
package/MenuDivider.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { M as MenuDivider } from './chunks/MenuDivider.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
import './chunks/Divider.js';
|
|
7
|
+
|
|
8
|
+
var MenuDivider = {"sui-menu-divider-root":"sui-menu-divider-root"};
|
|
9
|
+
|
|
10
|
+
export { MenuDivider as menuDividerStyle };
|
package/MenuFooter.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 { M as MenuDivider } from './chunks/MenuDivider.js';
|
|
6
|
+
import './chunks/Divider.js';
|
|
7
|
+
|
|
8
|
+
var MenuFooter$1 = {"sui-menu-footer-root":"sui-menu-footer-root"};
|
|
9
|
+
|
|
10
|
+
const MenuFooter = forwardRef((inProps, ref) => {
|
|
11
|
+
const props = useThemeProps({ props: inProps, name: 'MenuFooter' });
|
|
12
|
+
const { classes, className, children, divider = true, ...rest } = props;
|
|
13
|
+
const cls = useClasses('menu-footer', classes, className);
|
|
14
|
+
return (jsxs(Fragment, { children: [divider && jsx(MenuDivider, {}), jsx("div", { className: cls('root'), ...rest, ref: ref, children: children })] }));
|
|
15
|
+
});
|
|
16
|
+
MenuFooter.displayName = 'SuiMenuFooter';
|
|
17
|
+
|
|
18
|
+
export { MenuFooter, MenuFooter$1 as menuFooterStyle };
|
package/MenuHeader.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 { M as MenuDivider } from './chunks/MenuDivider.js';
|
|
6
|
+
import './chunks/Divider.js';
|
|
7
|
+
|
|
8
|
+
var MenuHeader$1 = {"sui-menu-header-root":"sui-menu-header-root","sui-menu-header-title":"sui-menu-header-title","sui-menu-header-start":"sui-menu-header-start","sui-menu-header-end":"sui-menu-header-end"};
|
|
9
|
+
|
|
10
|
+
const MenuHeader = forwardRef((inProps, ref) => {
|
|
11
|
+
const props = useThemeProps({ props: inProps, name: 'MenuHeader' });
|
|
12
|
+
const { classes, className, children, start, end, divider = true, ...rest } = props;
|
|
13
|
+
const cls = useClasses('menu-header', classes, className);
|
|
14
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: cls('root'), ...rest, ref: ref, children: [start && jsx("div", { className: cls('start'), children: start }), end && jsx("div", { className: cls('end'), children: end }), typeof children === 'string' ? (jsx("span", { className: cls('title'), title: children, children: children })) : (children)] }), divider && jsx(MenuDivider, {})] }));
|
|
15
|
+
});
|
|
16
|
+
MenuHeader.displayName = 'SuiMenuHeader';
|
|
17
|
+
|
|
18
|
+
export { MenuHeader, MenuHeader$1 as menuHeaderStyle };
|
package/MenuItem.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { A as Action, M as MenuItem, a as MenuItemSelectContext, b as useMenuItem, c as useMenuItemSelect, u as useMenuItemSelectContext, d as useVirtualizedMenuItem } from './chunks/useMenuItemSelect.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-icon';
|
|
6
|
+
import '@ringcentral/spring-theme';
|
|
7
|
+
import './chunks/Icon.js';
|
|
8
|
+
import './chunks/useNestedParentMenu.js';
|
|
9
|
+
import './chunks/useNestedMenuItem.js';
|
|
10
|
+
import './VirtualizedList.js';
|
|
11
|
+
import 'react-virtuoso';
|
|
12
|
+
import './chunks/List.js';
|
|
13
|
+
import './chunks/useListNavigation.js';
|
|
14
|
+
import 'tabbable';
|
|
15
|
+
import './ListNavigation.js';
|
|
16
|
+
import './chunks/Menu.js';
|
|
17
|
+
import './chunks/Popover.js';
|
|
18
|
+
import '@floating-ui/react-dom';
|
|
19
|
+
import 'framer-motion';
|
|
20
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
21
|
+
import './chunks/getGrow.js';
|
|
22
|
+
import './chunks/Modal.js';
|
|
23
|
+
import '@mui/base';
|
|
24
|
+
import './chunks/getFade.js';
|
|
25
|
+
import './chunks/useFocusTrapStack.js';
|
|
26
|
+
import './chunks/Backdrop.js';
|
|
27
|
+
import './Popper.js';
|
|
28
|
+
import './chunks/PopperPaper.js';
|
|
29
|
+
|
|
30
|
+
var MenuItem = {"sui-menu-item-container":"sui-menu-item-container","sui-menu-item-select-indicator":"sui-menu-item-select-indicator","sui-menu-item-select-dot":"sui-menu-item-select-dot","sui-menu-item-root":"sui-menu-item-root","sui-selected":"sui-selected","sui-disabled":"sui-disabled","sui-spruno":"sui-spruno","sui-list-item-text":"sui-list-item-text","sui-focus-visible":"sui-focus-visible","sui-focused":"sui-focused","sui-active":"sui-active","sui-menu-item-nowrap":"sui-menu-item-nowrap","sui-menu-item-text":"sui-menu-item-text","sui-menu-item-selectable":"sui-menu-item-selectable","sui-menu-item-highlighted":"sui-menu-item-highlighted"};
|
|
31
|
+
|
|
32
|
+
export { MenuItem as menuItemStyle };
|
package/MenuItemText.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { M as MenuItemText } from './chunks/MenuItemText.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
|
|
7
|
+
var MenuItemText = {"sui-menu-item-text-root":"sui-menu-item-text-root","sui-menu-item-text-primary-text":"sui-menu-item-text-primary-text","sui-menu-item-text-info-text":"sui-menu-item-text-info-text"};
|
|
8
|
+
|
|
9
|
+
export { MenuItemText as menuItemTextStyle };
|
package/MenuList.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { M as MenuList } from './chunks/MenuList.js';
|
|
2
|
+
export { e as MenuListContext, f as useMenuListContext } from './chunks/useMenuItemSelect.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@ringcentral/spring-base';
|
|
6
|
+
import '@ringcentral/spring-theme';
|
|
7
|
+
import './chunks/List.js';
|
|
8
|
+
import './chunks/useListNavigation.js';
|
|
9
|
+
import 'tabbable';
|
|
10
|
+
import './chunks/Menu.js';
|
|
11
|
+
import './chunks/useNestedParentMenu.js';
|
|
12
|
+
import './chunks/Popover.js';
|
|
13
|
+
import '@floating-ui/react-dom';
|
|
14
|
+
import 'framer-motion';
|
|
15
|
+
import './chunks/Icon.js';
|
|
16
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
17
|
+
import './chunks/getGrow.js';
|
|
18
|
+
import './chunks/Modal.js';
|
|
19
|
+
import '@mui/base';
|
|
20
|
+
import './chunks/getFade.js';
|
|
21
|
+
import './chunks/useFocusTrapStack.js';
|
|
22
|
+
import './chunks/Backdrop.js';
|
|
23
|
+
import './Popper.js';
|
|
24
|
+
import './chunks/PopperPaper.js';
|
|
25
|
+
import './VirtualizedList.js';
|
|
26
|
+
import 'react-virtuoso';
|
|
27
|
+
import '@ringcentral/spring-icon';
|
|
28
|
+
import './chunks/useNestedMenuItem.js';
|
|
29
|
+
import './ListNavigation.js';
|
|
30
|
+
|
|
31
|
+
var MenuList = {"sui-menu-list-root":"sui-menu-list-root"};
|
|
32
|
+
|
|
33
|
+
export { MenuList as menuListStyle };
|
package/Modal.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { I as InnerModal, M as Modal, a as ModalContext, u as useModalContext } from './chunks/Modal.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
import '@mui/base';
|
|
7
|
+
import 'framer-motion';
|
|
8
|
+
import './chunks/Icon.js';
|
|
9
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
10
|
+
import './chunks/getFade.js';
|
|
11
|
+
import './chunks/useFocusTrapStack.js';
|
|
12
|
+
import './chunks/Backdrop.js';
|
|
13
|
+
|
|
14
|
+
var Modal = {"sui-modal-root":"sui-modal-root"};
|
|
15
|
+
|
|
16
|
+
export { Modal as modalStyles };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { u as useNestedMenuContext } from './chunks/useNestedParentMenu.js';
|
|
2
|
+
export { N as NestedMenuContext, a as useNestedParentMenu } from './chunks/useNestedParentMenu.js';
|
|
3
|
+
import { useEventCallback } from '@ringcentral/spring-base';
|
|
4
|
+
import { useEffect } from 'react';
|
|
5
|
+
export { u as useNestedMenuItem } from './chunks/useNestedMenuItem.js';
|
|
6
|
+
|
|
7
|
+
const useNestedChildMenu = (props) => {
|
|
8
|
+
const { open, closeMenu, id } = props;
|
|
9
|
+
const context = useNestedMenuContext();
|
|
10
|
+
const { registOpenedSubMenu } = context ?? {};
|
|
11
|
+
const closeMenuMemo = useEventCallback(() => closeMenu());
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (open) {
|
|
14
|
+
return registOpenedSubMenu?.({
|
|
15
|
+
anchorId: id,
|
|
16
|
+
closeSubMenu: closeMenuMemo,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
20
|
+
}, [closeMenuMemo, id, open, registOpenedSubMenu]);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { useNestedChildMenu, useNestedMenuContext };
|
package/Option.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
4
|
+
import { u as useMenuItemSelectContext, M as MenuItem } from './chunks/useMenuItemSelect.js';
|
|
5
|
+
import '@ringcentral/spring-base';
|
|
6
|
+
import 'tabbable';
|
|
7
|
+
import './chunks/useListNavigation.js';
|
|
8
|
+
import './chunks/Menu.js';
|
|
9
|
+
import './VirtualizedList.js';
|
|
10
|
+
import '@ringcentral/spring-icon';
|
|
11
|
+
import './chunks/Icon.js';
|
|
12
|
+
import './chunks/useNestedParentMenu.js';
|
|
13
|
+
import './chunks/useNestedMenuItem.js';
|
|
14
|
+
import './ListNavigation.js';
|
|
15
|
+
import './chunks/Popover.js';
|
|
16
|
+
import '@floating-ui/react-dom';
|
|
17
|
+
import 'framer-motion';
|
|
18
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
19
|
+
import './chunks/getGrow.js';
|
|
20
|
+
import './chunks/Modal.js';
|
|
21
|
+
import '@mui/base';
|
|
22
|
+
import './chunks/getFade.js';
|
|
23
|
+
import './chunks/useFocusTrapStack.js';
|
|
24
|
+
import './chunks/Backdrop.js';
|
|
25
|
+
import './Popper.js';
|
|
26
|
+
import './chunks/PopperPaper.js';
|
|
27
|
+
import 'react-virtuoso';
|
|
28
|
+
import './chunks/List.js';
|
|
29
|
+
|
|
30
|
+
const Option = forwardRef((inProps, ref) => {
|
|
31
|
+
const props = useThemeProps({ props: inProps, name: 'Option' });
|
|
32
|
+
const { children, value, onClick: onClickProp, autoClose: autoCloseProp, ...rest } = props;
|
|
33
|
+
const selectContextValue = useMenuItemSelectContext();
|
|
34
|
+
if (selectContextValue === null) {
|
|
35
|
+
throw Error('SPRING [Option]: Option component must be child of Dropdown/Select/MenuList');
|
|
36
|
+
}
|
|
37
|
+
const { handleSelect, getMenuItemProps } = selectContextValue;
|
|
38
|
+
const autoClose = autoCloseProp ?? selectContextValue.selectMode === 'single';
|
|
39
|
+
return (jsx(MenuItem, { ...getMenuItemProps(value), ...rest, onClick: (e) => {
|
|
40
|
+
onClickProp?.(e);
|
|
41
|
+
handleSelect(value);
|
|
42
|
+
}, ref: ref, autoClose: autoClose, children: children }));
|
|
43
|
+
});
|
|
44
|
+
Option.displayName = 'SuiOption';
|
|
45
|
+
|
|
46
|
+
export { Option };
|
package/Overlap.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { O as Overlap } from './chunks/Overlap.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import '@ringcentral/spring-theme';
|
|
6
|
+
|
|
7
|
+
var Overlap = {"sui-overlap-root":"sui-overlap-root","sui-overlap-floater":"sui-overlap-floater","sui-overlap-top-left":"sui-overlap-top-left","sui-overlap-top-right":"sui-overlap-top-right","sui-overlap-bottom-left":"sui-overlap-bottom-left","sui-overlap-bottom-right":"sui-overlap-bottom-right","sui-overlap-show-floater-on-hover-only":"sui-overlap-show-floater-on-hover-only"};
|
|
8
|
+
|
|
9
|
+
export { Overlap as overlapStyle };
|
package/PageHeader.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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 PageHeader$1 = {"sui-page-header-root":"sui-page-header-root","sui-page-header-left-root":"sui-page-header-left-root","sui-page-header-right-root":"sui-page-header-right-root","sui-page-header-center-root":"sui-page-header-center-root","sui-page-header-title-root":"sui-page-header-title-root","sui-page-header-integrated":"sui-page-header-integrated","sui-page-header-detached":"sui-page-header-detached"};
|
|
7
|
+
|
|
8
|
+
const PageHeader = forwardRef((inProps, ref) => {
|
|
9
|
+
const props = useThemeProps({ props: inProps, name: 'PageHeader' });
|
|
10
|
+
const { classes, className, children, variant = 'integrated', ...rest } = props;
|
|
11
|
+
const cls = useClasses('page-header', classes, className);
|
|
12
|
+
return (jsx("header", { className: cls('root', variant), ...rest, ref: ref, children: children }));
|
|
13
|
+
});
|
|
14
|
+
PageHeader.displayName = 'SuiPageHeader';
|
|
15
|
+
const PageHeaderLeft = forwardRef((inProps, ref) => {
|
|
16
|
+
const props = useThemeProps({
|
|
17
|
+
props: inProps,
|
|
18
|
+
name: 'PageHeaderLeft',
|
|
19
|
+
});
|
|
20
|
+
const { className, ...rest } = props;
|
|
21
|
+
const cls = useClasses('page-header-left', undefined, className);
|
|
22
|
+
return jsx("div", { className: cls('root'), ...rest, ref: ref });
|
|
23
|
+
});
|
|
24
|
+
PageHeaderLeft.displayName = 'SuiPageHeaderLeft';
|
|
25
|
+
const PageHeaderCenter = forwardRef((inProps, ref) => {
|
|
26
|
+
const props = useThemeProps({
|
|
27
|
+
props: inProps,
|
|
28
|
+
name: 'PageHeaderCenter',
|
|
29
|
+
});
|
|
30
|
+
const { className, ...rest } = props;
|
|
31
|
+
const cls = useClasses('page-header-center', undefined, className);
|
|
32
|
+
return jsx("div", { className: cls('root'), ...rest, ref: ref });
|
|
33
|
+
});
|
|
34
|
+
PageHeaderCenter.displayName = 'SuiPageHeaderCenter';
|
|
35
|
+
const PageHeaderTitle = forwardRef((inProps, ref) => {
|
|
36
|
+
const props = useThemeProps({
|
|
37
|
+
props: inProps,
|
|
38
|
+
name: 'PageHeaderTitle',
|
|
39
|
+
});
|
|
40
|
+
const { className, ...rest } = props;
|
|
41
|
+
const cls = useClasses('page-header-title', undefined, className);
|
|
42
|
+
return jsx("div", { className: cls('root'), ...rest, ref: ref });
|
|
43
|
+
});
|
|
44
|
+
PageHeaderTitle.displayName = 'SuiPageHeaderTitle';
|
|
45
|
+
const PageHeaderRight = forwardRef((inProps, ref) => {
|
|
46
|
+
const props = useThemeProps({
|
|
47
|
+
props: inProps,
|
|
48
|
+
name: 'PageHeaderRight',
|
|
49
|
+
});
|
|
50
|
+
const { className, ...rest } = props;
|
|
51
|
+
const cls = useClasses('page-header-right', undefined, className);
|
|
52
|
+
return jsx("div", { className: cls('root'), ...rest, ref: ref });
|
|
53
|
+
});
|
|
54
|
+
PageHeaderRight.displayName = 'SuiPageHeaderRight';
|
|
55
|
+
|
|
56
|
+
export { PageHeader, PageHeaderCenter, PageHeaderLeft, PageHeaderRight, PageHeaderTitle, PageHeader$1 as pageHeaderStyle };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { P as PickerTextField } from './chunks/PickerTextField.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@ringcentral/spring-base';
|
|
5
|
+
import './chunks/Icon.js';
|
|
6
|
+
import '@ringcentral/spring-theme';
|
|
7
|
+
import './chunks/Popover.js';
|
|
8
|
+
import '@floating-ui/react-dom';
|
|
9
|
+
import 'framer-motion';
|
|
10
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
11
|
+
import './chunks/getGrow.js';
|
|
12
|
+
import './chunks/Modal.js';
|
|
13
|
+
import '@mui/base';
|
|
14
|
+
import './chunks/getFade.js';
|
|
15
|
+
import './chunks/useFocusTrapStack.js';
|
|
16
|
+
import './chunks/Backdrop.js';
|
|
17
|
+
import './Popper.js';
|
|
18
|
+
import './chunks/PopperPaper.js';
|
|
19
|
+
import './chunks/TextField.js';
|
|
20
|
+
import '@ringcentral/spring-icon';
|
|
21
|
+
import './chunks/ShowHideEye.js';
|
|
22
|
+
import './chunks/useMotionSafeTransition.js';
|
|
23
|
+
import './chunks/useHelperTextId.js';
|
|
24
|
+
import 'clsx';
|
|
25
|
+
import './chunks/IconButtonLabel.js';
|
|
26
|
+
import './chunks/Squircle.js';
|
|
27
|
+
import './chunks/withTooltip.js';
|
|
28
|
+
import './chunks/Tooltip.js';
|
|
29
|
+
import './chunks/VisuallyHidden.js';
|
|
30
|
+
|
|
31
|
+
var PickerTextField = {"sui-picker-text-field-form-field-content":"sui-picker-text-field-form-field-content","sui-picker-text-field-input":"sui-picker-text-field-input","sui-picker-text-field-has-value":"sui-picker-text-field-has-value","sui-picker-text-field-end-icon":"sui-picker-text-field-end-icon","sui-focused":"sui-focused"};
|
|
32
|
+
|
|
33
|
+
export { PickerTextField as pickerTextFieldStyle };
|
package/Popover.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { P as Popover } from './chunks/Popover.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@floating-ui/react-dom';
|
|
5
|
+
import '@ringcentral/spring-base';
|
|
6
|
+
import '@ringcentral/spring-theme';
|
|
7
|
+
import 'framer-motion';
|
|
8
|
+
import './chunks/Icon.js';
|
|
9
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
10
|
+
import './chunks/getGrow.js';
|
|
11
|
+
import './chunks/Modal.js';
|
|
12
|
+
import '@mui/base';
|
|
13
|
+
import './chunks/getFade.js';
|
|
14
|
+
import './chunks/useFocusTrapStack.js';
|
|
15
|
+
import './chunks/Backdrop.js';
|
|
16
|
+
import './Popper.js';
|
|
17
|
+
import './chunks/PopperPaper.js';
|
|
18
|
+
|
|
19
|
+
var Popover = {"sui-popover-popper":"sui-popover-popper","sui-popover-paper":"sui-popover-paper","sui-popover-widget":"sui-popover-widget","sui-popover-bordered":"sui-popover-bordered","sui-popover-shadow":"sui-popover-shadow"};
|
|
20
|
+
|
|
21
|
+
export { Popover as popoverStyle };
|
package/Popper.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { flip, shift, limitShift, arrow, offset, size, useFloating, autoUpdate } from '@floating-ui/react-dom';
|
|
3
|
+
import { useWindowContext, useForkRef } from '@ringcentral/spring-base';
|
|
4
|
+
import { useThemeProps, useTheme } from '@ringcentral/spring-theme';
|
|
5
|
+
import { forwardRef, useRef, useImperativeHandle, useLayoutEffect } from 'react';
|
|
6
|
+
import { u as useModalContext } from './chunks/Modal.js';
|
|
7
|
+
import { Portal } from '@mui/base';
|
|
8
|
+
import 'framer-motion';
|
|
9
|
+
import './chunks/Icon.js';
|
|
10
|
+
import './chunks/usePrefersReducedMotion.js';
|
|
11
|
+
import './chunks/getFade.js';
|
|
12
|
+
import './chunks/useFocusTrapStack.js';
|
|
13
|
+
import './chunks/Backdrop.js';
|
|
14
|
+
|
|
15
|
+
const getArrowSide = (placement) => ({
|
|
16
|
+
top: 'bottom',
|
|
17
|
+
right: 'left',
|
|
18
|
+
bottom: 'top',
|
|
19
|
+
left: 'right',
|
|
20
|
+
}[placement.split('-')[0]]);
|
|
21
|
+
const Popper = forwardRef((inProps, ref) => {
|
|
22
|
+
const props = useThemeProps({ props: inProps, name: 'Popper' });
|
|
23
|
+
const { children: childrenProp, middlewares: middlewaresProp = [], placement: placementProp, anchorEl, arrowHeight = 0, offset: offset$1 = 0, padding = 0, arrowPadding = 0, style, actions, autoUpdate: autoUpdate$1 = true, whileElementsMounted, matchAnchorWidth, container: containerProp, disablePortal, ...rest } = props;
|
|
24
|
+
const { externalWindow, document } = useWindowContext();
|
|
25
|
+
const container = containerProp ?? document?.body;
|
|
26
|
+
const { scopeProps } = useTheme();
|
|
27
|
+
const modalContext = useModalContext();
|
|
28
|
+
const finalDisablePortal = disablePortal ?? (modalContext?.ariaHideEnabled ? true : false);
|
|
29
|
+
const arrowRef = useRef(null);
|
|
30
|
+
const presetMiddlewares = [
|
|
31
|
+
flip({ padding }),
|
|
32
|
+
shift({
|
|
33
|
+
limiter: limitShift(),
|
|
34
|
+
padding,
|
|
35
|
+
}),
|
|
36
|
+
arrow({
|
|
37
|
+
element: arrowRef,
|
|
38
|
+
padding: arrowPadding,
|
|
39
|
+
}),
|
|
40
|
+
offset(offset$1 + arrowHeight),
|
|
41
|
+
];
|
|
42
|
+
if (matchAnchorWidth) {
|
|
43
|
+
presetMiddlewares.push(size({
|
|
44
|
+
apply({ rects, elements, }) {
|
|
45
|
+
Object.assign(elements.floating.style, {
|
|
46
|
+
width: `${rects.reference.width}px`,
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
const middlewares = typeof middlewaresProp === 'function'
|
|
52
|
+
? middlewaresProp(presetMiddlewares)
|
|
53
|
+
: [...presetMiddlewares, ...middlewaresProp];
|
|
54
|
+
const { x, y, refs: { setReference, setFloating }, strategy, placement, update, middlewareData: { arrow: { x: arrowX, y: arrowY } = {} }, } = useFloating({
|
|
55
|
+
placement: placementProp,
|
|
56
|
+
middleware: middlewares,
|
|
57
|
+
whileElementsMounted: (reference, floating, update) => {
|
|
58
|
+
const dispose = whileElementsMounted?.(reference, floating, update);
|
|
59
|
+
const disposeAutoUpdate = (() => {
|
|
60
|
+
if (autoUpdate$1 === false) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (autoUpdate$1 === true) {
|
|
64
|
+
return autoUpdate(reference, floating, update, {
|
|
65
|
+
ancestorResize: true,
|
|
66
|
+
ancestorScroll: true,
|
|
67
|
+
animationFrame: false,
|
|
68
|
+
elementResize: Boolean(matchAnchorWidth),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return autoUpdate(reference, floating, update, autoUpdate$1);
|
|
72
|
+
})();
|
|
73
|
+
return () => {
|
|
74
|
+
disposeAutoUpdate?.();
|
|
75
|
+
dispose?.();
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
useImperativeHandle(actions, () => ({ update }), [update]);
|
|
80
|
+
const handleRootRef = useForkRef(ref, setFloating);
|
|
81
|
+
useLayoutEffect(() => {
|
|
82
|
+
if (anchorEl) {
|
|
83
|
+
const anchor = typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
84
|
+
setReference(anchor);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
setReference(null);
|
|
88
|
+
}
|
|
89
|
+
}, [setReference, anchorEl]);
|
|
90
|
+
const arrowSide = getArrowSide(placement);
|
|
91
|
+
const children = (() => {
|
|
92
|
+
if (typeof childrenProp !== 'function')
|
|
93
|
+
return childrenProp;
|
|
94
|
+
if (!arrowHeight)
|
|
95
|
+
childrenProp({ placement, arrowRef, arrowStyle: {} });
|
|
96
|
+
const squareSideLength = Math.round(((arrowHeight * 2) ** 2 / 2) ** (1 / 2));
|
|
97
|
+
return childrenProp({
|
|
98
|
+
placement,
|
|
99
|
+
arrowRef,
|
|
100
|
+
arrowStyle: {
|
|
101
|
+
width: squareSideLength,
|
|
102
|
+
height: squareSideLength,
|
|
103
|
+
top: arrowY,
|
|
104
|
+
left: arrowX,
|
|
105
|
+
[arrowSide]: -squareSideLength / 2,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
})();
|
|
109
|
+
const dpr = externalWindow?.devicePixelRatio ?? 1;
|
|
110
|
+
const fixedX = Math.round(Number(x ?? 0) * dpr) / dpr;
|
|
111
|
+
const fixedY = Math.round(Number(y ?? 0) * dpr) / dpr;
|
|
112
|
+
return (jsx(Portal, { container: container, disablePortal: finalDisablePortal, children: jsx("div", { ...scopeProps, style: { display: 'contents' }, children: jsx("div", { ...rest, "data-sui-popper-placement": placement, ref: handleRootRef, style: {
|
|
113
|
+
/* prevent arrow overflow when content too small */
|
|
114
|
+
...(arrowHeight
|
|
115
|
+
? { minWidth: (arrowHeight + arrowPadding) * 2 }
|
|
116
|
+
: undefined),
|
|
117
|
+
...style,
|
|
118
|
+
position: strategy,
|
|
119
|
+
top: '0',
|
|
120
|
+
left: '0',
|
|
121
|
+
transform: `translate3d(${fixedX}px,${fixedY}px,0)`,
|
|
122
|
+
width: 'max-content',
|
|
123
|
+
}, children: children }) }) }));
|
|
124
|
+
});
|
|
125
|
+
Popper.displayName = 'SuiPopper';
|
|
126
|
+
|
|
127
|
+
export { Popper };
|
package/PopperPaper.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { P as PopperPaper } from './chunks/PopperPaper.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 PopperPaper = {"sui-popper-paper-root":"sui-popper-paper-root","sui-popper-paper-arrow":"sui-popper-paper-arrow","sui-popper":"sui-popper","sui-popper-paper-content":"sui-popper-paper-content"};
|
|
9
|
+
|
|
10
|
+
export { PopperPaper as popperPaperStyle };
|
package/Portal.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Portal } from '@mui/base';
|