@lumx/react 3.20.1-alpha.13 → 3.20.1-alpha.14
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/_internal/Falsy.d.ts +7 -0
- package/_internal/index.js +236 -0
- package/_internal/index.js.map +1 -0
- package/index.d.ts +352 -7
- package/index.js +14486 -65
- package/index.js.map +1 -1
- package/package.json +11 -3
- package/src/components/alert-dialog/AlertDialog.stories.tsx +127 -0
- package/src/components/alert-dialog/AlertDialog.test.tsx +34 -0
- package/src/components/alert-dialog/AlertDialog.tsx +189 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/autocomplete/Autocomplete.stories.tsx +75 -0
- package/src/components/autocomplete/Autocomplete.test.tsx +99 -0
- package/src/components/autocomplete/Autocomplete.tsx +294 -0
- package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +167 -0
- package/src/components/autocomplete/AutocompleteMultiple.test.tsx +61 -0
- package/src/components/autocomplete/AutocompleteMultiple.tsx +156 -0
- package/src/components/autocomplete/__mockData__/index.ts +39 -0
- package/src/components/autocomplete/index.ts +2 -0
- package/src/components/avatar/Avatar.stories.tsx +119 -0
- package/src/components/avatar/Avatar.test.tsx +32 -0
- package/src/components/avatar/Avatar.tsx +114 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/Badge.stories.tsx +69 -0
- package/src/components/badge/Badge.test.tsx +45 -0
- package/src/components/badge/Badge.tsx +58 -0
- package/src/components/badge/BadgeWrapper.stories.tsx +75 -0
- package/src/components/badge/BadgeWrapper.test.tsx +47 -0
- package/src/components/badge/BadgeWrapper.tsx +37 -0
- package/src/components/badge/index.ts +2 -0
- package/src/components/button/Button.stories.tsx +355 -0
- package/src/components/button/Button.test.tsx +125 -0
- package/src/components/button/Button.tsx +101 -0
- package/src/components/button/ButtonGroup.stories.tsx +52 -0
- package/src/components/button/ButtonGroup.test.tsx +41 -0
- package/src/components/button/ButtonGroup.tsx +50 -0
- package/src/components/button/ButtonRoot.tsx +163 -0
- package/src/components/button/IconButton.stories.tsx +52 -0
- package/src/components/button/IconButton.test.tsx +66 -0
- package/src/components/button/IconButton.tsx +91 -0
- package/src/components/button/index.ts +4 -0
- package/src/components/checkbox/Checkbox.stories.tsx +64 -0
- package/src/components/checkbox/Checkbox.test.tsx +154 -0
- package/src/components/checkbox/Checkbox.tsx +164 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/chip/Chip.stories.tsx +164 -0
- package/src/components/chip/Chip.test.tsx +243 -0
- package/src/components/chip/Chip.tsx +168 -0
- package/src/components/chip/ChipGroup.stories.tsx +47 -0
- package/src/components/chip/ChipGroup.test.tsx +37 -0
- package/src/components/chip/ChipGroup.tsx +60 -0
- package/src/components/chip/index.ts +2 -0
- package/src/components/comment-block/CommentBlock.stories.tsx +91 -0
- package/src/components/comment-block/CommentBlock.test.tsx +28 -0
- package/src/components/comment-block/CommentBlock.tsx +172 -0
- package/src/components/comment-block/index.ts +1 -0
- package/src/components/date-picker/DatePicker.stories.tsx +118 -0
- package/src/components/date-picker/DatePicker.test.tsx +34 -0
- package/src/components/date-picker/DatePicker.tsx +52 -0
- package/src/components/date-picker/DatePickerControlled.test.tsx +91 -0
- package/src/components/date-picker/DatePickerControlled.tsx +259 -0
- package/src/components/date-picker/DatePickerField.stories.tsx +100 -0
- package/src/components/date-picker/DatePickerField.test.tsx +70 -0
- package/src/components/date-picker/DatePickerField.tsx +135 -0
- package/src/components/date-picker/constants.ts +11 -0
- package/src/components/date-picker/index.ts +4 -0
- package/src/components/date-picker/types.ts +28 -0
- package/src/components/dialog/Dialog.stories.tsx +318 -0
- package/src/components/dialog/Dialog.test.tsx +97 -0
- package/src/components/dialog/Dialog.tsx +288 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/divider/Divider.test.tsx +51 -0
- package/src/components/divider/Divider.tsx +50 -0
- package/src/components/divider/index.ts +1 -0
- package/src/components/drag-handle/DragHandle.test.tsx +36 -0
- package/src/components/drag-handle/DragHandle.tsx +51 -0
- package/src/components/drag-handle/index.ts +1 -0
- package/src/components/dropdown/Dropdown.stories.tsx +31 -0
- package/src/components/dropdown/Dropdown.test.tsx +66 -0
- package/src/components/dropdown/Dropdown.tsx +186 -0
- package/src/components/dropdown/index.ts +1 -0
- package/src/components/expansion-panel/ExpansionPanel.stories.tsx +91 -0
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +185 -0
- package/src/components/expansion-panel/ExpansionPanel.tsx +195 -0
- package/src/components/expansion-panel/index.ts +1 -0
- package/src/components/flag/Flag.stories.tsx +48 -0
- package/src/components/flag/Flag.test.tsx +62 -0
- package/src/components/flag/Flag.tsx +52 -0
- package/src/components/flag/index.ts +1 -0
- package/src/components/flex-box/FlexBox.stories.tsx +156 -0
- package/src/components/flex-box/FlexBox.test.tsx +24 -0
- package/src/components/flex-box/FlexBox.tsx +100 -0
- package/src/components/flex-box/index.ts +1 -0
- package/src/components/generic-block/GenericBlock.stories.jsx +128 -0
- package/src/components/generic-block/GenericBlock.test.tsx +156 -0
- package/src/components/generic-block/GenericBlock.tsx +225 -0
- package/src/components/generic-block/constants.ts +9 -0
- package/src/components/generic-block/index.ts +2 -0
- package/src/components/grid/Grid.tsx +83 -0
- package/src/components/grid/GridItem.tsx +55 -0
- package/src/components/grid/index.ts +2 -0
- package/src/components/grid-column/GridColumn.stories.tsx +45 -0
- package/src/components/grid-column/GridColumn.test.jsx +56 -0
- package/src/components/grid-column/GridColumn.tsx +83 -0
- package/src/components/grid-column/index.ts +1 -0
- package/src/components/heading/Heading.stories.tsx +69 -0
- package/src/components/heading/Heading.test.tsx +82 -0
- package/src/components/heading/Heading.tsx +65 -0
- package/src/components/heading/HeadingLevelProvider.tsx +30 -0
- package/src/components/heading/constants.ts +16 -0
- package/src/components/heading/context.tsx +13 -0
- package/src/components/heading/index.ts +3 -0
- package/src/components/heading/useHeadingLevel.tsx +8 -0
- package/src/components/icon/Icon.stories.tsx +73 -0
- package/src/components/icon/Icon.test.tsx +125 -0
- package/src/components/icon/Icon.tsx +133 -0
- package/src/components/icon/index.ts +1 -0
- package/src/components/image-block/ImageBlock.stories.tsx +117 -0
- package/src/components/image-block/ImageBlock.test.tsx +58 -0
- package/src/components/image-block/ImageBlock.tsx +142 -0
- package/src/components/image-block/ImageCaption.tsx +115 -0
- package/src/components/image-block/index.ts +1 -0
- package/src/components/image-lightbox/ImageLightbox.stories.tsx +160 -0
- package/src/components/image-lightbox/ImageLightbox.test.tsx +254 -0
- package/src/components/image-lightbox/ImageLightbox.tsx +90 -0
- package/src/components/image-lightbox/constants.ts +11 -0
- package/src/components/image-lightbox/index.ts +2 -0
- package/src/components/image-lightbox/internal/ImageSlide.tsx +107 -0
- package/src/components/image-lightbox/internal/ImageSlideshow.tsx +164 -0
- package/src/components/image-lightbox/internal/useAnimateScroll.ts +55 -0
- package/src/components/image-lightbox/internal/usePointerZoom.ts +148 -0
- package/src/components/image-lightbox/types.ts +48 -0
- package/src/components/image-lightbox/useImageLightbox.tsx +141 -0
- package/src/components/inline-list/InlineList.stories.tsx +77 -0
- package/src/components/inline-list/InlineList.test.tsx +52 -0
- package/src/components/inline-list/InlineList.tsx +96 -0
- package/src/components/inline-list/index.ts +1 -0
- package/src/components/input-helper/InputHelper.stories.tsx +35 -0
- package/src/components/input-helper/InputHelper.test.tsx +55 -0
- package/src/components/input-helper/InputHelper.tsx +65 -0
- package/src/components/input-helper/constants.ts +11 -0
- package/src/components/input-helper/index.ts +1 -0
- package/src/components/input-label/InputLabel.stories.tsx +45 -0
- package/src/components/input-label/InputLabel.test.tsx +59 -0
- package/src/components/input-label/InputLabel.tsx +69 -0
- package/src/components/input-label/index.ts +1 -0
- package/src/components/lightbox/Lightbox.stories.tsx +101 -0
- package/src/components/lightbox/Lightbox.test.tsx +53 -0
- package/src/components/lightbox/Lightbox.tsx +180 -0
- package/src/components/lightbox/index.ts +1 -0
- package/src/components/link/Link.stories.tsx +195 -0
- package/src/components/link/Link.test.tsx +127 -0
- package/src/components/link/Link.tsx +106 -0
- package/src/components/link/index.ts +1 -0
- package/src/components/link-preview/LinkPreview.stories.tsx +61 -0
- package/src/components/link-preview/LinkPreview.test.tsx +105 -0
- package/src/components/link-preview/LinkPreview.tsx +158 -0
- package/src/components/link-preview/index.ts +1 -0
- package/src/components/list/List.stories.tsx +116 -0
- package/src/components/list/List.test.tsx +18 -0
- package/src/components/list/List.tsx +104 -0
- package/src/components/list/ListDivider.stories.tsx +12 -0
- package/src/components/list/ListDivider.test.tsx +22 -0
- package/src/components/list/ListDivider.tsx +35 -0
- package/src/components/list/ListItem.stories.tsx +66 -0
- package/src/components/list/ListItem.test.tsx +93 -0
- package/src/components/list/ListItem.tsx +157 -0
- package/src/components/list/ListSubheader.stories.tsx +11 -0
- package/src/components/list/ListSubheader.test.tsx +21 -0
- package/src/components/list/ListSubheader.tsx +44 -0
- package/src/components/list/index.ts +4 -0
- package/src/components/list/useInteractiveList.tsx +202 -0
- package/src/components/message/Message.stories.tsx +72 -0
- package/src/components/message/Message.test.tsx +76 -0
- package/src/components/message/Message.tsx +100 -0
- package/src/components/message/index.ts +1 -0
- package/src/components/mosaic/Mosaic.stories.tsx +89 -0
- package/src/components/mosaic/Mosaic.test.tsx +77 -0
- package/src/components/mosaic/Mosaic.tsx +98 -0
- package/src/components/mosaic/index.ts +1 -0
- package/src/components/navigation/Navigation.stories.tsx +234 -0
- package/src/components/navigation/Navigation.test.tsx +65 -0
- package/src/components/navigation/Navigation.tsx +79 -0
- package/src/components/navigation/NavigationItem.test.tsx +35 -0
- package/src/components/navigation/NavigationItem.tsx +82 -0
- package/src/components/navigation/NavigationSection.test.tsx +137 -0
- package/src/components/navigation/NavigationSection.tsx +108 -0
- package/src/components/navigation/context.tsx +7 -0
- package/src/components/navigation/index.ts +1 -0
- package/src/components/notification/Notification.test.tsx +94 -0
- package/src/components/notification/Notification.tsx +138 -0
- package/src/components/notification/Notifications.stories.tsx +92 -0
- package/src/components/notification/constants.ts +28 -0
- package/src/components/notification/index.ts +1 -0
- package/src/components/popover/Popover.stories.tsx +264 -0
- package/src/components/popover/Popover.test.tsx +62 -0
- package/src/components/popover/Popover.tsx +201 -0
- package/src/components/popover/constants.ts +62 -0
- package/src/components/popover/index.ts +3 -0
- package/src/components/popover/usePopoverStyle.tsx +184 -0
- package/src/components/popover/useRestoreFocusOnClose.tsx +47 -0
- package/src/components/popover-dialog/PopoverDialog.stories.tsx +64 -0
- package/src/components/popover-dialog/PopoverDialog.test.tsx +139 -0
- package/src/components/popover-dialog/PopoverDialog.tsx +74 -0
- package/src/components/popover-dialog/index.tsx +1 -0
- package/src/components/post-block/PostBlock.test.tsx +27 -0
- package/src/components/post-block/PostBlock.tsx +122 -0
- package/src/components/post-block/index.ts +1 -0
- package/src/components/progress/Progress.tsx +68 -0
- package/src/components/progress/ProgressCircular.stories.tsx +43 -0
- package/src/components/progress/ProgressCircular.test.tsx +46 -0
- package/src/components/progress/ProgressCircular.tsx +82 -0
- package/src/components/progress/ProgressLinear.stories.tsx +12 -0
- package/src/components/progress/ProgressLinear.test.tsx +30 -0
- package/src/components/progress/ProgressLinear.tsx +50 -0
- package/src/components/progress/index.ts +3 -0
- package/src/components/progress-tracker/ProgressTracker.stories.tsx +145 -0
- package/src/components/progress-tracker/ProgressTracker.test.tsx +42 -0
- package/src/components/progress-tracker/ProgressTracker.tsx +87 -0
- package/src/components/progress-tracker/ProgressTrackerProvider.test.tsx +65 -0
- package/src/components/progress-tracker/ProgressTrackerProvider.tsx +67 -0
- package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +36 -0
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +159 -0
- package/src/components/progress-tracker/ProgressTrackerStepPanel.test.tsx +34 -0
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +67 -0
- package/src/components/progress-tracker/index.ts +4 -0
- package/src/components/radio-button/RadioButton.stories.tsx +71 -0
- package/src/components/radio-button/RadioButton.test.tsx +143 -0
- package/src/components/radio-button/RadioButton.tsx +143 -0
- package/src/components/radio-button/RadioGroup.stories.tsx +39 -0
- package/src/components/radio-button/RadioGroup.test.tsx +29 -0
- package/src/components/radio-button/RadioGroup.tsx +44 -0
- package/src/components/radio-button/index.ts +2 -0
- package/src/components/select/Select.stories.tsx +385 -0
- package/src/components/select/Select.test.tsx +199 -0
- package/src/components/select/Select.tsx +199 -0
- package/src/components/select/SelectMultiple.stories.tsx +315 -0
- package/src/components/select/SelectMultiple.test.tsx +213 -0
- package/src/components/select/SelectMultiple.tsx +206 -0
- package/src/components/select/WithSelectContext.tsx +147 -0
- package/src/components/select/constants.ts +55 -0
- package/src/components/select/index.ts +2 -0
- package/src/components/side-navigation/SideNavigation.stories.tsx +191 -0
- package/src/components/side-navigation/SideNavigation.test.tsx +37 -0
- package/src/components/side-navigation/SideNavigation.tsx +52 -0
- package/src/components/side-navigation/SideNavigationItem.stories.tsx +133 -0
- package/src/components/side-navigation/SideNavigationItem.test.tsx +136 -0
- package/src/components/side-navigation/SideNavigationItem.tsx +165 -0
- package/src/components/side-navigation/index.ts +2 -0
- package/src/components/skeleton/SkeletonCircle.stories.tsx +41 -0
- package/src/components/skeleton/SkeletonCircle.test.tsx +27 -0
- package/src/components/skeleton/SkeletonCircle.tsx +52 -0
- package/src/components/skeleton/SkeletonRectangle.stories.tsx +82 -0
- package/src/components/skeleton/SkeletonRectangle.test.tsx +27 -0
- package/src/components/skeleton/SkeletonRectangle.tsx +88 -0
- package/src/components/skeleton/SkeletonTypography.stories.tsx +19 -0
- package/src/components/skeleton/SkeletonTypography.test.tsx +27 -0
- package/src/components/skeleton/SkeletonTypography.tsx +59 -0
- package/src/components/skeleton/index.ts +3 -0
- package/src/components/slider/Slider.stories.tsx +45 -0
- package/src/components/slider/Slider.test.tsx +29 -0
- package/src/components/slider/Slider.tsx +299 -0
- package/src/components/slider/index.ts +2 -0
- package/src/components/slideshow/Slides.tsx +130 -0
- package/src/components/slideshow/Slideshow.stories.tsx +179 -0
- package/src/components/slideshow/Slideshow.test.tsx +35 -0
- package/src/components/slideshow/Slideshow.tsx +173 -0
- package/src/components/slideshow/SlideshowControls.stories.tsx +100 -0
- package/src/components/slideshow/SlideshowControls.tsx +243 -0
- package/src/components/slideshow/SlideshowItem.tsx +44 -0
- package/src/components/slideshow/SlideshowItemGroup.tsx +60 -0
- package/src/components/slideshow/constants.ts +24 -0
- package/src/components/slideshow/index.ts +4 -0
- package/src/components/slideshow/useKeyNavigate.ts +28 -0
- package/src/components/slideshow/usePaginationVisibleRange.ts +37 -0
- package/src/components/slideshow/useSlideFocusManagement.tsx +92 -0
- package/src/components/slideshow/useSwipeNavigate.ts +18 -0
- package/src/components/switch/Switch.stories.tsx +49 -0
- package/src/components/switch/Switch.test.tsx +144 -0
- package/src/components/switch/Switch.tsx +145 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/table/Table.test.tsx +29 -0
- package/src/components/table/Table.tsx +59 -0
- package/src/components/table/TableBody.test.tsx +30 -0
- package/src/components/table/TableBody.tsx +42 -0
- package/src/components/table/TableCell.test.tsx +72 -0
- package/src/components/table/TableCell.tsx +130 -0
- package/src/components/table/TableHeader.test.tsx +30 -0
- package/src/components/table/TableHeader.tsx +48 -0
- package/src/components/table/TableRow.test.tsx +40 -0
- package/src/components/table/TableRow.tsx +71 -0
- package/src/components/table/index.ts +5 -0
- package/src/components/tabs/Tab.test.tsx +50 -0
- package/src/components/tabs/Tab.tsx +133 -0
- package/src/components/tabs/TabList.test.tsx +49 -0
- package/src/components/tabs/TabList.tsx +94 -0
- package/src/components/tabs/TabPanel.test.tsx +37 -0
- package/src/components/tabs/TabPanel.tsx +67 -0
- package/src/components/tabs/TabProvider.test.tsx +161 -0
- package/src/components/tabs/TabProvider.tsx +67 -0
- package/src/components/tabs/Tabs.stories.tsx +170 -0
- package/src/components/tabs/index.ts +4 -0
- package/src/components/tabs/state.ts +114 -0
- package/src/components/tabs/test-utils.ts +39 -0
- package/src/components/text/Text.stories.tsx +177 -0
- package/src/components/text/Text.test.tsx +92 -0
- package/src/components/text/Text.tsx +139 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text-field/TextField.stories.tsx +180 -0
- package/src/components/text-field/TextField.test.tsx +298 -0
- package/src/components/text-field/TextField.tsx +493 -0
- package/src/components/text-field/index.ts +1 -0
- package/src/components/thumbnail/Thumbnail.stories.tsx +448 -0
- package/src/components/thumbnail/Thumbnail.test.tsx +88 -0
- package/src/components/thumbnail/Thumbnail.tsx +248 -0
- package/src/components/thumbnail/index.ts +3 -0
- package/src/components/thumbnail/types.ts +48 -0
- package/src/components/thumbnail/useFocusPointStyle.test.ts +92 -0
- package/src/components/thumbnail/useFocusPointStyle.tsx +107 -0
- package/src/components/thumbnail/useImageLoad.ts +40 -0
- package/src/components/toolbar/Toolbar.tsx +68 -0
- package/src/components/toolbar/index.ts +1 -0
- package/src/components/tooltip/Tooltip.stories.tsx +118 -0
- package/src/components/tooltip/Tooltip.test.tsx +417 -0
- package/src/components/tooltip/Tooltip.tsx +165 -0
- package/src/components/tooltip/constants.ts +8 -0
- package/src/components/tooltip/context.tsx +17 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/useInjectTooltipRef.tsx +55 -0
- package/src/components/tooltip/useTooltipOpen.tsx +143 -0
- package/src/components/uploader/Uploader.stories.tsx +109 -0
- package/src/components/uploader/Uploader.test.tsx +146 -0
- package/src/components/uploader/Uploader.tsx +177 -0
- package/src/components/uploader/index.ts +1 -0
- package/src/components/user-block/UserBlock.stories.tsx +133 -0
- package/src/components/user-block/UserBlock.test.tsx +106 -0
- package/src/components/user-block/UserBlock.tsx +193 -0
- package/src/components/user-block/index.ts +1 -0
- package/src/constants.ts +27 -0
- package/src/hooks/useBooleanState.tsx +13 -0
- package/src/hooks/useCallbackOnEscape.ts +34 -0
- package/src/hooks/useChipGroupNavigation.tsx +75 -0
- package/src/hooks/useClickAway.tsx +48 -0
- package/src/hooks/useDisableBodyScroll.ts +28 -0
- package/src/hooks/useEventCallback.tsx +17 -0
- package/src/hooks/useFocus.tsx +21 -0
- package/src/hooks/useFocusTrap.ts +93 -0
- package/src/hooks/useFocusWithin.ts +33 -0
- package/src/hooks/useId.test.tsx +22 -0
- package/src/hooks/useId.ts +15 -0
- package/src/hooks/useImageSize.ts +17 -0
- package/src/hooks/useInfiniteScroll.tsx +60 -0
- package/src/hooks/useIntersectionObserver.tsx +43 -0
- package/src/hooks/useInterval.tsx +31 -0
- package/src/hooks/useKeyboardListNavigation.tsx +204 -0
- package/src/hooks/useListenFocus.tsx +26 -0
- package/src/hooks/useOverflowTooltipLabel.tsx +32 -0
- package/src/hooks/usePopper.ts +12 -0
- package/src/hooks/usePreviousValue.ts +12 -0
- package/src/hooks/useRovingTabIndex.tsx +90 -0
- package/src/hooks/useSizeOnWindowResize.ts +30 -0
- package/src/hooks/useSlideshowControls.ts +246 -0
- package/src/hooks/useStopPropagation.ts +21 -0
- package/src/hooks/useTransitionVisibility.ts +48 -0
- package/src/index.ts +63 -0
- package/src/stories/controls/color.ts +7 -0
- package/src/stories/controls/element.ts +6 -0
- package/src/stories/controls/focusPoint.ts +1 -0
- package/src/stories/controls/icons.ts +126 -0
- package/src/stories/controls/image.ts +84 -0
- package/src/stories/controls/selectArgType.ts +8 -0
- package/src/stories/controls/theme.ts +3 -0
- package/src/stories/controls/typography.ts +5 -0
- package/src/stories/controls/withUndefined.ts +1 -0
- package/src/stories/decorators/withChromaticForceScreenSize.tsx +7 -0
- package/src/stories/decorators/withCombinations.tsx +132 -0
- package/src/stories/decorators/withNestedProps.tsx +22 -0
- package/src/stories/decorators/withResizableBox.tsx +21 -0
- package/src/stories/decorators/withThemedBackground.tsx +16 -0
- package/src/stories/decorators/withValueOnChange.tsx +18 -0
- package/src/stories/decorators/withWrapper.tsx +19 -0
- package/src/stories/generated/Autocomplete/Demos.stories.tsx +7 -0
- package/src/stories/generated/Avatar/Demos.stories.tsx +7 -0
- package/src/stories/generated/Badge/Demos.stories.tsx +9 -0
- package/src/stories/generated/Button/Demos.stories.tsx +11 -0
- package/src/stories/generated/Checkbox/Demos.stories.tsx +6 -0
- package/src/stories/generated/Chip/Demos.stories.tsx +11 -0
- package/src/stories/generated/CommentBlock/Demos.stories.tsx +8 -0
- package/src/stories/generated/DatePicker/Demos.stories.tsx +8 -0
- package/src/stories/generated/Dialog/Demos.stories.tsx +10 -0
- package/src/stories/generated/Divider/Demos.stories.tsx +6 -0
- package/src/stories/generated/Dropdown/Demos.stories.tsx +8 -0
- package/src/stories/generated/ExpansionPanel/Demos.stories.tsx +9 -0
- package/src/stories/generated/Flag/Demos.stories.tsx +6 -0
- package/src/stories/generated/GenericBlock/Demos.stories.tsx +8 -0
- package/src/stories/generated/Heading/Demos.stories.tsx +6 -0
- package/src/stories/generated/Icon/Demos.stories.tsx +8 -0
- package/src/stories/generated/ImageBlock/Demos.stories.tsx +9 -0
- package/src/stories/generated/ImageLightbox/Demos.stories.tsx +6 -0
- package/src/stories/generated/Lightbox/Demos.stories.tsx +6 -0
- package/src/stories/generated/LinkPreview/Demos.stories.tsx +7 -0
- package/src/stories/generated/List/Demos.stories.tsx +11 -0
- package/src/stories/generated/Message/Demos.stories.tsx +11 -0
- package/src/stories/generated/Mosaic/Demos.stories.tsx +10 -0
- package/src/stories/generated/Notification/Demos.stories.tsx +6 -0
- package/src/stories/generated/Popover/Demos.stories.tsx +11 -0
- package/src/stories/generated/PopoverDialog/Demos.stories.tsx +6 -0
- package/src/stories/generated/PostBlock/Demos.stories.tsx +6 -0
- package/src/stories/generated/Progress/Demos.stories.tsx +7 -0
- package/src/stories/generated/ProgressTracker/Demos.stories.tsx +9 -0
- package/src/stories/generated/RadioButton/Demos.stories.tsx +6 -0
- package/src/stories/generated/Select/Demos.stories.tsx +14 -0
- package/src/stories/generated/SideNavigation/Demos.stories.tsx +10 -0
- package/src/stories/generated/Skeleton/Demos.stories.tsx +9 -0
- package/src/stories/generated/Slider/Demos.stories.tsx +9 -0
- package/src/stories/generated/Slideshow/Demos.stories.tsx +8 -0
- package/src/stories/generated/Switch/Demos.stories.tsx +6 -0
- package/src/stories/generated/Table/Demos.stories.tsx +7 -0
- package/src/stories/generated/Tabs/Demos.stories.tsx +8 -0
- package/src/stories/generated/TextField/Demos.stories.tsx +20 -0
- package/src/stories/generated/Thumbnail/Demos.stories.tsx +12 -0
- package/src/stories/generated/Toolbar/Demos.stories.tsx +10 -0
- package/src/stories/generated/Tooltip/Demos.stories.tsx +8 -0
- package/src/stories/generated/Uploader/Demos.stories.tsx +8 -0
- package/src/stories/generated/UserBlock/Demos.stories.tsx +11 -0
- package/src/stories/utils/CustomLink.tsx +12 -0
- package/src/stories/utils/concatPath.tsx +17 -0
- package/src/stories/utils/disableArgTypes.ts +3 -0
- package/src/stories/utils/initDemoShadowDOMPortal.ts +10 -0
- package/src/stories/utils/lorem.ts +59 -0
- package/src/stories/utils/theming.tsx +166 -0
- package/src/stories/utils/toFlattenProps.ts +28 -0
- package/src/stories/utils/withCategory.ts +12 -0
- package/src/testing/utils/ThemeSentinel.tsx +10 -0
- package/src/testing/utils/commonTestsSuiteRTL.tsx +193 -0
- package/src/testing/utils/index.ts +1 -0
- package/src/testing/utils/queries.ts +19 -0
- package/src/untypped-modules.d.ts +9 -0
- package/src/utils/ClickAwayProvider/ClickAwayProvider.stories.jsx +70 -0
- package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +69 -0
- package/src/utils/ClickAwayProvider/index.ts +1 -0
- package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +54 -0
- package/src/utils/MaterialThemeSwitcher/index.ts +1 -0
- package/src/utils/Portal/Portal.test.tsx +31 -0
- package/src/utils/Portal/Portal.tsx +33 -0
- package/src/utils/Portal/PortalProvider.stories.jsx +22 -0
- package/src/utils/Portal/PortalProvider.test.tsx +72 -0
- package/src/utils/Portal/PortalProvider.tsx +24 -0
- package/src/utils/Portal/index.tsx +2 -0
- package/src/utils/browser/DOM/findImage.tsx +3 -0
- package/src/utils/browser/DOM/startViewTransition.ts +68 -0
- package/src/utils/browser/focus/constants.ts +7 -0
- package/src/utils/browser/focus/getFirstAndLastFocusable.test.ts +134 -0
- package/src/utils/browser/focus/getFirstAndLastFocusable.ts +21 -0
- package/src/utils/browser/focus/getFocusableElements.test.ts +151 -0
- package/src/utils/browser/focus/getFocusableElements.ts +7 -0
- package/src/utils/browser/isFocusVisible.ts +9 -0
- package/src/utils/browser/isHoverNotSupported.test.js +24 -0
- package/src/utils/browser/isHoverNotSupported.ts +2 -0
- package/src/utils/browser/isReducedMotion.ts +6 -0
- package/src/utils/date/addMonthResetDay.test.ts +13 -0
- package/src/utils/date/addMonthResetDay.ts +9 -0
- package/src/utils/date/formatDayNumber.test.ts +12 -0
- package/src/utils/date/formatDayNumber.ts +5 -0
- package/src/utils/date/getFirstDayOfWeek.test.ts +20 -0
- package/src/utils/date/getFirstDayOfWeek.ts +59 -0
- package/src/utils/date/getMonthCalendar.test.ts +127 -0
- package/src/utils/date/getMonthCalendar.ts +69 -0
- package/src/utils/date/getWeekDays.test.ts +48 -0
- package/src/utils/date/getWeekDays.ts +34 -0
- package/src/utils/date/getYearDisplayName.test.ts +20 -0
- package/src/utils/date/getYearDisplayName.ts +12 -0
- package/src/utils/date/isDateValid.test.ts +15 -0
- package/src/utils/date/isDateValid.ts +4 -0
- package/src/utils/date/isSameDay.test.ts +37 -0
- package/src/utils/date/isSameDay.ts +11 -0
- package/src/utils/disabled/DisabledStateContext.tsx +29 -0
- package/src/utils/disabled/DisabledStateProvider.stories.tsx +92 -0
- package/src/utils/disabled/index.ts +2 -0
- package/src/utils/disabled/useDisableStateProps.test.tsx +74 -0
- package/src/utils/disabled/useDisableStateProps.tsx +37 -0
- package/src/utils/function/makeListenerTowerContext.ts +32 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/locale/getCurrentLocale.ts +4 -0
- package/src/utils/locale/parseLocale.test.ts +17 -0
- package/src/utils/locale/parseLocale.ts +23 -0
- package/src/utils/locale/types.ts +8 -0
- package/src/utils/number/clamp.ts +17 -0
- package/src/utils/object/isEqual.test.ts +25 -0
- package/src/utils/object/isEqual.ts +11 -0
- package/src/utils/partitionMulti.test.ts +27 -0
- package/{_internal/partitionMulti-4daccdd5.js → src/utils/partitionMulti.ts} +9 -5
- package/src/utils/react/OnBeforeUnmount.tsx +20 -0
- package/src/utils/react/RawClickable.test.tsx +153 -0
- package/src/utils/react/RawClickable.tsx +65 -0
- package/src/utils/react/flattenChildren.ts +32 -0
- package/src/utils/react/forwardRef.ts +11 -0
- package/src/utils/react/forwardRefPolymorphic.ts +9 -0
- package/src/utils/react/mergeRefs.ts +33 -0
- package/src/utils/react/renderLink.tsx +17 -0
- package/src/utils/react/skipRender.tsx +18 -0
- package/src/utils/react/unref.ts +7 -0
- package/src/utils/react/wrapChildrenIconWithSpaces.test.tsx +37 -0
- package/src/utils/react/wrapChildrenIconWithSpaces.tsx +22 -0
- package/src/utils/theme/ThemeContext.ts +16 -0
- package/src/utils/theme/invertTheme.ts +4 -0
- package/src/utils/type/Comp.ts +14 -0
- package/src/utils/type/ComponentRef.ts +16 -0
- package/src/utils/type/HasAriaDisabled.ts +6 -0
- package/src/utils/type/HasPolymorphicAs.ts +6 -0
- package/src/utils/type/HasRequiredLinkHref.ts +1 -0
- package/src/utils/type/MaybeElementOrRef.ts +6 -0
- package/src/utils/type/index.ts +9 -0
- package/src/utils/type/isComponent.ts +33 -0
- package/src/utils/type/isComponentType.ts +9 -0
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -3
- package/utils/index.js.map +1 -1
- package/_internal/Button-f19e18df.js +0 -96
- package/_internal/Button-f19e18df.js.map +0 -1
- package/_internal/ButtonRoot-ab633b1d.js +0 -115
- package/_internal/ButtonRoot-ab633b1d.js.map +0 -1
- package/_internal/Chip-4c572eec.js +0 -149
- package/_internal/Chip-4c572eec.js.map +0 -1
- package/_internal/ClickAwayProvider-bcce6ceb.js +0 -93
- package/_internal/ClickAwayProvider-bcce6ceb.js.map +0 -1
- package/_internal/DisabledStateContext-077b7bef.js +0 -29
- package/_internal/DisabledStateContext-077b7bef.js.map +0 -1
- package/_internal/HeadingLevelProvider-e4817816.js +0 -59
- package/_internal/HeadingLevelProvider-e4817816.js.map +0 -1
- package/_internal/IconButton-10585058.js +0 -72
- package/_internal/IconButton-10585058.js.map +0 -1
- package/_internal/ImageCaption-4279b2b6.js +0 -65
- package/_internal/ImageCaption-4279b2b6.js.map +0 -1
- package/_internal/List-d5f5d465.js +0 -791
- package/_internal/List-d5f5d465.js.map +0 -1
- package/_internal/PopoverDialog-21e5c9dd.js +0 -647
- package/_internal/PopoverDialog-21e5c9dd.js.map +0 -1
- package/_internal/Portal-c43d098b.js +0 -42
- package/_internal/Portal-c43d098b.js.map +0 -1
- package/_internal/RawClickable-c76bbc4c.js +0 -50
- package/_internal/RawClickable-c76bbc4c.js.map +0 -1
- package/_internal/Slides-01f513ce.js +0 -675
- package/_internal/Slides-01f513ce.js.map +0 -1
- package/_internal/ThemeContext-3181f000.js +0 -14
- package/_internal/ThemeContext-3181f000.js.map +0 -1
- package/_internal/Thumbnail-30d2a781.js +0 -312
- package/_internal/Thumbnail-30d2a781.js.map +0 -1
- package/_internal/components/alert-dialog-8f1c163c.js +0 -147
- package/_internal/components/alert-dialog-8f1c163c.js.map +0 -1
- package/_internal/components/autocomplete-bfbdeb3c.js +0 -264
- package/_internal/components/autocomplete-bfbdeb3c.js.map +0 -1
- package/_internal/components/avatar-6990e3e9.js +0 -87
- package/_internal/components/avatar-6990e3e9.js.map +0 -1
- package/_internal/components/badge-81543bc7.js +0 -81
- package/_internal/components/badge-81543bc7.js.map +0 -1
- package/_internal/components/button-927abe71.js +0 -49
- package/_internal/components/button-927abe71.js.map +0 -1
- package/_internal/components/checkbox-dc4caec8.js +0 -131
- package/_internal/components/checkbox-dc4caec8.js.map +0 -1
- package/_internal/components/chip-fb3d0c76.js +0 -104
- package/_internal/components/chip-fb3d0c76.js.map +0 -1
- package/_internal/components/comment-block-b84c4694.js +0 -121
- package/_internal/components/comment-block-b84c4694.js.map +0 -1
- package/_internal/components/date-picker-a425534c.js +0 -2
- package/_internal/components/date-picker-a425534c.js.map +0 -1
- package/_internal/components/dialog-7dbcb485.js +0 -226
- package/_internal/components/dialog-7dbcb485.js.map +0 -1
- package/_internal/components/divider-12e9b6a0.js +0 -53
- package/_internal/components/divider-12e9b6a0.js.map +0 -1
- package/_internal/components/drag-handle-a38ff757.js +0 -53
- package/_internal/components/drag-handle-a38ff757.js.map +0 -1
- package/_internal/components/dropdown-38b0b6a0.js +0 -148
- package/_internal/components/dropdown-38b0b6a0.js.map +0 -1
- package/_internal/components/expansion-panel-c4b93653.js +0 -158
- package/_internal/components/expansion-panel-c4b93653.js.map +0 -1
- package/_internal/components/flag-c5e2f5f0.js +0 -55
- package/_internal/components/flag-c5e2f5f0.js.map +0 -1
- package/_internal/components/flex-box-c8701a85.js +0 -58
- package/_internal/components/flex-box-c8701a85.js.map +0 -1
- package/_internal/components/generic-block-0d6ad5a6.js +0 -115
- package/_internal/components/generic-block-0d6ad5a6.js.map +0 -1
- package/_internal/components/grid-3b194fe8.js +0 -109
- package/_internal/components/grid-3b194fe8.js.map +0 -1
- package/_internal/components/grid-column-985b9327.js +0 -60
- package/_internal/components/grid-column-985b9327.js.map +0 -1
- package/_internal/components/heading-5e954dfc.js +0 -54
- package/_internal/components/heading-5e954dfc.js.map +0 -1
- package/_internal/components/icon-2e7345ad.js +0 -103
- package/_internal/components/icon-2e7345ad.js.map +0 -1
- package/_internal/components/image-block-8d21dd7e.js +0 -109
- package/_internal/components/image-block-8d21dd7e.js.map +0 -1
- package/_internal/components/image-lightbox-4a5ab962.js +0 -743
- package/_internal/components/image-lightbox-4a5ab962.js.map +0 -1
- package/_internal/components/inline-list-4884f004.js +0 -74
- package/_internal/components/inline-list-4884f004.js.map +0 -1
- package/_internal/components/input-helper-e644e05e.js +0 -73
- package/_internal/components/input-helper-e644e05e.js.map +0 -1
- package/_internal/components/input-label-5e509a1b.js +0 -61
- package/_internal/components/input-label-5e509a1b.js.map +0 -1
- package/_internal/components/lightbox-bec1b95f.js +0 -149
- package/_internal/components/lightbox-bec1b95f.js.map +0 -1
- package/_internal/components/link-9637b9e4.js +0 -70
- package/_internal/components/link-9637b9e4.js.map +0 -1
- package/_internal/components/link-preview-7a4a6e4b.js +0 -108
- package/_internal/components/link-preview-7a4a6e4b.js.map +0 -1
- package/_internal/components/list-5c8f7122.js +0 -77
- package/_internal/components/list-5c8f7122.js.map +0 -1
- package/_internal/components/message-a67067d9.js +0 -96
- package/_internal/components/message-a67067d9.js.map +0 -1
- package/_internal/components/mosaic-92b66c80.js +0 -92
- package/_internal/components/mosaic-92b66c80.js.map +0 -1
- package/_internal/components/navigation-4fd3917d.js +0 -210
- package/_internal/components/navigation-4fd3917d.js.map +0 -1
- package/_internal/components/notification-9063c963.js +0 -140
- package/_internal/components/notification-9063c963.js.map +0 -1
- package/_internal/components/popover-3c4c54bd.js +0 -3
- package/_internal/components/popover-3c4c54bd.js.map +0 -1
- package/_internal/components/post-block-0cfc2206.js +0 -99
- package/_internal/components/post-block-0cfc2206.js.map +0 -1
- package/_internal/components/progress-eaf5b33d.js +0 -188
- package/_internal/components/progress-eaf5b33d.js.map +0 -1
- package/_internal/components/progress-tracker-4a65718d.js +0 -309
- package/_internal/components/progress-tracker-4a65718d.js.map +0 -1
- package/_internal/components/radio-button-3ef8a325.js +0 -148
- package/_internal/components/radio-button-3ef8a325.js.map +0 -1
- package/_internal/components/select-d46cfe35.js +0 -404
- package/_internal/components/select-d46cfe35.js.map +0 -1
- package/_internal/components/side-navigation-75b22f19.js +0 -159
- package/_internal/components/side-navigation-75b22f19.js.map +0 -1
- package/_internal/components/skeleton-361ce335.js +0 -174
- package/_internal/components/skeleton-361ce335.js.map +0 -1
- package/_internal/components/slider-8094cb5c.js +0 -305
- package/_internal/components/slider-8094cb5c.js.map +0 -1
- package/_internal/components/slideshow-2e8cd372.js +0 -150
- package/_internal/components/slideshow-2e8cd372.js.map +0 -1
- package/_internal/components/switch-5516949b.js +0 -118
- package/_internal/components/switch-5516949b.js.map +0 -1
- package/_internal/components/table-fa198ee6.js +0 -299
- package/_internal/components/table-fa198ee6.js.map +0 -1
- package/_internal/components/tabs-bb9bc2a5.js +0 -298
- package/_internal/components/tabs-bb9bc2a5.js.map +0 -1
- package/_internal/components/text-289c0526.js +0 -2
- package/_internal/components/text-289c0526.js.map +0 -1
- package/_internal/components/text-field-82733568.js +0 -346
- package/_internal/components/text-field-82733568.js.map +0 -1
- package/_internal/components/thumbnail-e3acff82.js +0 -42
- package/_internal/components/thumbnail-e3acff82.js.map +0 -1
- package/_internal/components/toolbar-155562be.js +0 -60
- package/_internal/components/toolbar-155562be.js.map +0 -1
- package/_internal/components/tooltip-84ffb4f9.js +0 -318
- package/_internal/components/tooltip-84ffb4f9.js.map +0 -1
- package/_internal/components/uploader-896a1d89.js +0 -150
- package/_internal/components/uploader-896a1d89.js.map +0 -1
- package/_internal/components/user-block-8fd15895.js +0 -143
- package/_internal/components/user-block-8fd15895.js.map +0 -1
- package/_internal/constants-b9e57936.js +0 -2155
- package/_internal/constants-b9e57936.js.map +0 -1
- package/_internal/constants-d0e3f49e.js +0 -24
- package/_internal/constants-d0e3f49e.js.map +0 -1
- package/_internal/context-21aeb1c7.js +0 -19
- package/_internal/context-21aeb1c7.js.map +0 -1
- package/_internal/forwardRef-49d2bb84.js +0 -80
- package/_internal/forwardRef-49d2bb84.js.map +0 -1
- package/_internal/getFocusableElements-230173a8.js +0 -13
- package/_internal/getFocusableElements-230173a8.js.map +0 -1
- package/_internal/index-b4d256e7.js +0 -118
- package/_internal/index-b4d256e7.js.map +0 -1
- package/_internal/index-f415b08e.js +0 -430
- package/_internal/index-f415b08e.js.map +0 -1
- package/_internal/isComponent-78df9309.js +0 -20
- package/_internal/isComponent-78df9309.js.map +0 -1
- package/_internal/isComponentType-e806b848.js +0 -9
- package/_internal/isComponentType-e806b848.js.map +0 -1
- package/_internal/mergeRefs-f0d7d6ea.js +0 -30
- package/_internal/mergeRefs-f0d7d6ea.js.map +0 -1
- package/_internal/partitionMulti-4daccdd5.js.map +0 -1
- package/_internal/state-db358714.js +0 -130
- package/_internal/state-db358714.js.map +0 -1
- package/_internal/useBooleanState-2a3d237c.js +0 -12
- package/_internal/useBooleanState-2a3d237c.js.map +0 -1
- package/_internal/useCallbackOnEscape-ea4d9eb4.js +0 -62
- package/_internal/useCallbackOnEscape-ea4d9eb4.js.map +0 -1
- package/_internal/useDisableBodyScroll-36bd7352.js +0 -219
- package/_internal/useDisableBodyScroll-36bd7352.js.map +0 -1
- package/_internal/useDisableStateProps-fffc365f.js +0 -36
- package/_internal/useDisableStateProps-fffc365f.js.map +0 -1
- package/_internal/useFocusTrap-c3c6378b.js +0 -112
- package/_internal/useFocusTrap-c3c6378b.js.map +0 -1
- package/_internal/useId-3a1facc0.js +0 -18
- package/_internal/useId-3a1facc0.js.map +0 -1
- package/_internal/useRovingTabIndex-7daf0f24.js +0 -77
- package/_internal/useRovingTabIndex-7daf0f24.js.map +0 -1
- package/_internal/useTransitionVisibility-321fdbfa.js +0 -50
- package/_internal/useTransitionVisibility-321fdbfa.js.map +0 -1
- package/_internal/wrapChildrenIconWithSpaces-f86106ce.js +0 -20
- package/_internal/wrapChildrenIconWithSpaces-f86106ce.js.map +0 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import React__default, { useContext, useEffect, useMemo, useRef, createContext } from 'react';
|
|
2
|
+
import isEmpty from 'lodash/isEmpty';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
|
|
5
|
+
function _defineProperty(e, r, t) {
|
|
6
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
|
+
value: t,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[r] = t, e;
|
|
12
|
+
}
|
|
13
|
+
function _extends() {
|
|
14
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
15
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
16
|
+
var t = arguments[e];
|
|
17
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
18
|
+
}
|
|
19
|
+
return n;
|
|
20
|
+
}, _extends.apply(null, arguments);
|
|
21
|
+
}
|
|
22
|
+
function ownKeys(e, r) {
|
|
23
|
+
var t = Object.keys(e);
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
26
|
+
r && (o = o.filter(function (r) {
|
|
27
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
28
|
+
})), t.push.apply(t, o);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function _objectSpread2(e) {
|
|
33
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
34
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
35
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
36
|
+
_defineProperty(e, r, t[r]);
|
|
37
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
38
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function _objectWithoutProperties(e, t) {
|
|
44
|
+
if (null == e) return {};
|
|
45
|
+
var o,
|
|
46
|
+
r,
|
|
47
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
48
|
+
if (Object.getOwnPropertySymbols) {
|
|
49
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
50
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
51
|
+
}
|
|
52
|
+
return i;
|
|
53
|
+
}
|
|
54
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
55
|
+
if (null == r) return {};
|
|
56
|
+
var t = {};
|
|
57
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
58
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
59
|
+
t[n] = r[n];
|
|
60
|
+
}
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
function _toPrimitive(t, r) {
|
|
64
|
+
if ("object" != typeof t || !t) return t;
|
|
65
|
+
var e = t[Symbol.toPrimitive];
|
|
66
|
+
if (void 0 !== e) {
|
|
67
|
+
var i = e.call(t, r || "default");
|
|
68
|
+
if ("object" != typeof i) return i;
|
|
69
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
+
}
|
|
71
|
+
return ("string" === r ? String : Number)(t);
|
|
72
|
+
}
|
|
73
|
+
function _toPropertyKey(t) {
|
|
74
|
+
var i = _toPrimitive(t, "string");
|
|
75
|
+
return "symbol" == typeof i ? i : i + "";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const _excluded = ["children"];
|
|
79
|
+
|
|
80
|
+
/** Disable state */
|
|
81
|
+
|
|
82
|
+
const DisabledStateContext = /*#__PURE__*/React__default.createContext({
|
|
83
|
+
state: null
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* Disabled state provider.
|
|
87
|
+
* All nested LumX Design System components inherit this disabled state.
|
|
88
|
+
*/
|
|
89
|
+
function DisabledStateProvider(_ref) {
|
|
90
|
+
let {
|
|
91
|
+
children
|
|
92
|
+
} = _ref,
|
|
93
|
+
value = _objectWithoutProperties(_ref, _excluded);
|
|
94
|
+
return /*#__PURE__*/React__default.createElement(DisabledStateContext.Provider, {
|
|
95
|
+
value: value
|
|
96
|
+
}, children);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Get DisabledState context value
|
|
101
|
+
*/
|
|
102
|
+
function useDisabledStateContext() {
|
|
103
|
+
return useContext(DisabledStateContext);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const EVENT_TYPES = ['mousedown', 'touchstart'];
|
|
107
|
+
function isClickAway(targets, refs) {
|
|
108
|
+
// The targets elements are not contained in any of the listed element references.
|
|
109
|
+
return !refs.some(ref => targets.some(target => {
|
|
110
|
+
var _ref$current;
|
|
111
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.contains(target);
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Listen to clicks away from the given elements and callback the passed in function.
|
|
116
|
+
*
|
|
117
|
+
* Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.
|
|
118
|
+
*/
|
|
119
|
+
function useClickAway({
|
|
120
|
+
callback,
|
|
121
|
+
childrenRefs
|
|
122
|
+
}) {
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
const {
|
|
125
|
+
current: currentRefs
|
|
126
|
+
} = childrenRefs;
|
|
127
|
+
if (!callback || !currentRefs || isEmpty(currentRefs)) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
const listener = evt => {
|
|
131
|
+
var _evt$composedPath;
|
|
132
|
+
const targets = [(_evt$composedPath = evt.composedPath) === null || _evt$composedPath === void 0 ? void 0 : _evt$composedPath.call(evt)[0], evt.target];
|
|
133
|
+
if (isClickAway(targets, currentRefs)) {
|
|
134
|
+
callback(evt);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
EVENT_TYPES.forEach(evtType => document.addEventListener(evtType, listener));
|
|
138
|
+
return () => {
|
|
139
|
+
EVENT_TYPES.forEach(evtType => document.removeEventListener(evtType, listener));
|
|
140
|
+
};
|
|
141
|
+
}, [callback, childrenRefs]);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const ClickAwayAncestorContext = /*#__PURE__*/createContext(null);
|
|
145
|
+
/**
|
|
146
|
+
* Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure
|
|
147
|
+
* we take into account both the DOM tree and the React tree to detect click away.
|
|
148
|
+
*
|
|
149
|
+
* @return the react component.
|
|
150
|
+
*/
|
|
151
|
+
const ClickAwayProvider = ({
|
|
152
|
+
children,
|
|
153
|
+
callback,
|
|
154
|
+
childrenRefs,
|
|
155
|
+
parentRef
|
|
156
|
+
}) => {
|
|
157
|
+
const parentContext = useContext(ClickAwayAncestorContext);
|
|
158
|
+
const currentContext = useMemo(() => {
|
|
159
|
+
const context = {
|
|
160
|
+
childrenRefs: [],
|
|
161
|
+
/**
|
|
162
|
+
* Add element refs to the current context and propagate to the parent context.
|
|
163
|
+
*/
|
|
164
|
+
addRefs(...newChildrenRefs) {
|
|
165
|
+
// Add element refs that should be considered as inside the click away context.
|
|
166
|
+
context.childrenRefs.push(...newChildrenRefs);
|
|
167
|
+
if (parentContext) {
|
|
168
|
+
// Also add then to the parent context
|
|
169
|
+
parentContext.addRefs(...newChildrenRefs);
|
|
170
|
+
if (parentRef) {
|
|
171
|
+
// The parent element is also considered as inside the parent click away context but not inside the current context
|
|
172
|
+
parentContext.addRefs(parentRef);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
return context;
|
|
178
|
+
}, [parentContext, parentRef]);
|
|
179
|
+
useEffect(() => {
|
|
180
|
+
const {
|
|
181
|
+
current: currentRefs
|
|
182
|
+
} = childrenRefs;
|
|
183
|
+
if (!currentRefs) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
currentContext.addRefs(...currentRefs);
|
|
187
|
+
}, [currentContext, childrenRefs]);
|
|
188
|
+
useClickAway({
|
|
189
|
+
callback,
|
|
190
|
+
childrenRefs: useRef(currentContext.childrenRefs)
|
|
191
|
+
});
|
|
192
|
+
return /*#__PURE__*/React.createElement(ClickAwayAncestorContext.Provider, {
|
|
193
|
+
value: currentContext
|
|
194
|
+
}, children);
|
|
195
|
+
};
|
|
196
|
+
ClickAwayProvider.displayName = 'ClickAwayProvider';
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Portal initializing function.
|
|
200
|
+
* If it does not provide a container, the Portal children will render in classic React tree and not in a portal.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
const PortalContext = /*#__PURE__*/React__default.createContext(() => ({
|
|
204
|
+
container: document.body
|
|
205
|
+
}));
|
|
206
|
+
/**
|
|
207
|
+
* Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)
|
|
208
|
+
*/
|
|
209
|
+
const PortalProvider = PortalContext.Provider;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Render children in a portal outside the current DOM position
|
|
213
|
+
* (defaults to `document.body` but can be customized with the PortalContextProvider)
|
|
214
|
+
*/
|
|
215
|
+
const Portal = ({
|
|
216
|
+
children,
|
|
217
|
+
enabled = true
|
|
218
|
+
}) => {
|
|
219
|
+
const init = React__default.useContext(PortalContext);
|
|
220
|
+
const context = React__default.useMemo(() => {
|
|
221
|
+
return enabled ? init() : null;
|
|
222
|
+
},
|
|
223
|
+
// Only update on 'enabled'
|
|
224
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
225
|
+
[enabled]);
|
|
226
|
+
React__default.useLayoutEffect(() => {
|
|
227
|
+
return context === null || context === void 0 ? void 0 : context.teardown;
|
|
228
|
+
}, [context === null || context === void 0 ? void 0 : context.teardown, enabled]);
|
|
229
|
+
if (!(context !== null && context !== void 0 && context.container)) {
|
|
230
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
231
|
+
}
|
|
232
|
+
return /*#__PURE__*/createPortal(children, context.container);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export { ClickAwayProvider as C, DisabledStateProvider as D, Portal as P, _objectSpread2 as _, _objectWithoutProperties as a, _extends as b, PortalProvider as c, useDisabledStateContext as u };
|
|
236
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/disabled/DisabledStateContext.tsx","../../src/hooks/useClickAway.tsx","../../src/utils/ClickAwayProvider/ClickAwayProvider.tsx","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx"],"sourcesContent":["import React, { useContext } from 'react';\n\n/** Disable state */\ntype DisabledStateContextValue =\n | {\n state: 'disabled';\n }\n | { state: undefined | null };\n\nexport const DisabledStateContext = React.createContext<DisabledStateContextValue>({ state: null });\n\nexport type DisabledStateProviderProps = DisabledStateContextValue & {\n children: React.ReactNode;\n};\n\n/**\n * Disabled state provider.\n * All nested LumX Design System components inherit this disabled state.\n */\nexport function DisabledStateProvider({ children, ...value }: DisabledStateProviderProps) {\n return <DisabledStateContext.Provider value={value}>{children}</DisabledStateContext.Provider>;\n}\n\n/**\n * Get DisabledState context value\n */\nexport function useDisabledStateContext(): DisabledStateContextValue {\n return useContext(DisabledStateContext);\n}\n","import { RefObject, useEffect } from 'react';\n\nimport { Falsy } from '@lumx/react/utils/type';\n\nimport isEmpty from 'lodash/isEmpty';\n\nconst EVENT_TYPES = ['mousedown', 'touchstart'];\n\nfunction isClickAway(targets: HTMLElement[], refs: Array<RefObject<HTMLElement>>): boolean {\n // The targets elements are not contained in any of the listed element references.\n return !refs.some((ref) => targets.some((target) => ref?.current?.contains(target)));\n}\n\nexport interface ClickAwayParameters {\n /**\n * A callback function to call when the user clicks away from the elements.\n */\n callback: EventListener | Falsy;\n /**\n * Elements considered within the click away context (clicking outside them will trigger the click away callback).\n */\n childrenRefs: RefObject<Array<RefObject<HTMLElement>>>;\n}\n\n/**\n * Listen to clicks away from the given elements and callback the passed in function.\n *\n * Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.\n */\nexport function useClickAway({ callback, childrenRefs }: ClickAwayParameters): void {\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!callback || !currentRefs || isEmpty(currentRefs)) {\n return undefined;\n }\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target] as HTMLElement[];\n if (isClickAway(targets, currentRefs)) {\n callback(evt);\n }\n };\n\n EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n }, [callback, childrenRefs]);\n}\n","import { createContext, RefObject, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ClickAwayParameters, useClickAway } from '@lumx/react/hooks/useClickAway';\n\ninterface ContextValue {\n childrenRefs: Array<RefObject<HTMLElement>>;\n addRefs(...newChildrenRefs: Array<RefObject<HTMLElement>>): void;\n}\n\nconst ClickAwayAncestorContext = createContext<ContextValue | null>(null);\n\ninterface ClickAwayProviderProps extends ClickAwayParameters {\n /**\n * (Optional) Element that should be considered as part of the parent\n */\n parentRef?: RefObject<HTMLElement>;\n /**\n * Children\n */\n children?: React.ReactNode;\n}\n\n/**\n * Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure\n * we take into account both the DOM tree and the React tree to detect click away.\n *\n * @return the react component.\n */\nexport const ClickAwayProvider: React.FC<ClickAwayProviderProps> = ({\n children,\n callback,\n childrenRefs,\n parentRef,\n}) => {\n const parentContext = useContext(ClickAwayAncestorContext);\n const currentContext = useMemo(() => {\n const context: ContextValue = {\n childrenRefs: [],\n /**\n * Add element refs to the current context and propagate to the parent context.\n */\n addRefs(...newChildrenRefs) {\n // Add element refs that should be considered as inside the click away context.\n context.childrenRefs.push(...newChildrenRefs);\n\n if (parentContext) {\n // Also add then to the parent context\n parentContext.addRefs(...newChildrenRefs);\n if (parentRef) {\n // The parent element is also considered as inside the parent click away context but not inside the current context\n parentContext.addRefs(parentRef);\n }\n }\n },\n };\n return context;\n }, [parentContext, parentRef]);\n\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!currentRefs) {\n return;\n }\n currentContext.addRefs(...currentRefs);\n }, [currentContext, childrenRefs]);\n\n useClickAway({ callback, childrenRefs: useRef(currentContext.childrenRefs) });\n return <ClickAwayAncestorContext.Provider value={currentContext}>{children}</ClickAwayAncestorContext.Provider>;\n};\nClickAwayProvider.displayName = 'ClickAwayProvider';\n","import React from 'react';\n\ntype Container = DocumentFragment | Element;\n\n/**\n * Portal initializing function.\n * If it does not provide a container, the Portal children will render in classic React tree and not in a portal.\n */\nexport type PortalInit = () => {\n container?: Container;\n teardown?: () => void;\n};\n\nexport const PortalContext = React.createContext<PortalInit>(() => ({ container: document.body }));\n\nexport interface PortalProviderProps {\n children?: React.ReactNode;\n value: PortalInit;\n}\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider: React.FC<PortalProviderProps> = PortalContext.Provider;\n","import React from 'react';\nimport { createPortal } from 'react-dom';\nimport { PortalContext } from './PortalProvider';\n\nexport interface PortalProps {\n enabled?: boolean;\n children: React.ReactNode;\n}\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalContextProvider)\n */\nexport const Portal: React.FC<PortalProps> = ({ children, enabled = true }) => {\n const init = React.useContext(PortalContext);\n const context = React.useMemo(\n () => {\n return enabled ? init() : null;\n },\n // Only update on 'enabled'\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [enabled],\n );\n\n React.useLayoutEffect(() => {\n return context?.teardown;\n }, [context?.teardown, enabled]);\n\n if (!context?.container) {\n return <>{children}</>;\n }\n return createPortal(children, context.container);\n};\n"],"names":["DisabledStateContext","React","createContext","state","DisabledStateProvider","_ref","children","value","_objectWithoutProperties","_excluded","createElement","Provider","useDisabledStateContext","useContext","EVENT_TYPES","isClickAway","targets","refs","some","ref","target","_ref$current","current","contains","useClickAway","callback","childrenRefs","useEffect","currentRefs","isEmpty","undefined","listener","evt","_evt$composedPath","composedPath","call","forEach","evtType","document","addEventListener","removeEventListener","ClickAwayAncestorContext","ClickAwayProvider","parentRef","parentContext","currentContext","useMemo","context","addRefs","newChildrenRefs","push","useRef","displayName","PortalContext","container","body","PortalProvider","Portal","enabled","init","useLayoutEffect","teardown","Fragment","createPortal"],"mappings":"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"}
|
package/index.d.ts
CHANGED
|
@@ -1,11 +1,356 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export * from '@lumx/core/js/constants';
|
|
3
|
-
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
|
-
import { GenericProps, HasTheme, ValueOf, HasCloseMode, TextElement, HeadingElement, Falsy, HasClassName, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
|
|
5
|
-
export * from '@lumx/core/js/types';
|
|
1
|
+
import { F as Falsy } from './_internal/Falsy.js';
|
|
6
2
|
import * as React$1 from 'react';
|
|
7
3
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType } from 'react';
|
|
8
4
|
|
|
5
|
+
/** Get types of the values of a record. */
|
|
6
|
+
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The down key code.
|
|
10
|
+
*/
|
|
11
|
+
declare const DOWN_KEY_CODE = 40;
|
|
12
|
+
/**
|
|
13
|
+
* The enter/return key code.
|
|
14
|
+
*/
|
|
15
|
+
declare const ENTER_KEY_CODE = 13;
|
|
16
|
+
/**
|
|
17
|
+
* The space key code.
|
|
18
|
+
*/
|
|
19
|
+
declare const SPACE_KEY_CODE = 32;
|
|
20
|
+
/**
|
|
21
|
+
* The escape key code.
|
|
22
|
+
*/
|
|
23
|
+
declare const ESCAPE_KEY_CODE = 27;
|
|
24
|
+
/**
|
|
25
|
+
* The left key code.
|
|
26
|
+
*/
|
|
27
|
+
declare const LEFT_KEY_CODE = 37;
|
|
28
|
+
/**
|
|
29
|
+
* The right key code.
|
|
30
|
+
*/
|
|
31
|
+
declare const RIGHT_KEY_CODE = 39;
|
|
32
|
+
/**
|
|
33
|
+
* The tab key code.
|
|
34
|
+
*/
|
|
35
|
+
declare const TAB_KEY_CODE = 9;
|
|
36
|
+
/**
|
|
37
|
+
* The up key code.
|
|
38
|
+
*/
|
|
39
|
+
declare const UP_KEY_CODE = 38;
|
|
40
|
+
/**
|
|
41
|
+
* The up key code.
|
|
42
|
+
*/
|
|
43
|
+
declare const BACKSPACE_KEY_CODE = 8;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The prefix to use for the CSS classes.
|
|
47
|
+
*/
|
|
48
|
+
declare const CSS_PREFIX = "lumx";
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
52
|
+
* you need to update their scss counterpart as well
|
|
53
|
+
*/
|
|
54
|
+
declare const DIALOG_TRANSITION_DURATION = 400;
|
|
55
|
+
declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
56
|
+
declare const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
57
|
+
declare const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
58
|
+
/**
|
|
59
|
+
* Delay on hover after which we open or close the tooltip.
|
|
60
|
+
* Only applies to devices supporting pointer hover.
|
|
61
|
+
*/
|
|
62
|
+
declare const TOOLTIP_HOVER_DELAY: {
|
|
63
|
+
open: number;
|
|
64
|
+
close: number;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Delay on long press after which we open or close the tooltip.
|
|
68
|
+
* Only applies to devices not supporting pointer hover.
|
|
69
|
+
*/
|
|
70
|
+
declare const TOOLTIP_LONG_PRESS_DELAY: {
|
|
71
|
+
open: number;
|
|
72
|
+
close: number;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Alignments.
|
|
76
|
+
*/
|
|
77
|
+
declare const Alignment: {
|
|
78
|
+
readonly bottom: "bottom";
|
|
79
|
+
readonly center: "center";
|
|
80
|
+
readonly end: "end";
|
|
81
|
+
readonly left: "left";
|
|
82
|
+
readonly right: "right";
|
|
83
|
+
readonly spaceAround: "space-around";
|
|
84
|
+
readonly spaceBetween: "space-between";
|
|
85
|
+
readonly spaceEvenly: "space-evenly";
|
|
86
|
+
readonly start: "start";
|
|
87
|
+
readonly top: "top";
|
|
88
|
+
};
|
|
89
|
+
type Alignment = ValueOf<typeof Alignment>;
|
|
90
|
+
type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
91
|
+
type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
92
|
+
declare const Theme: {
|
|
93
|
+
readonly light: "light";
|
|
94
|
+
readonly dark: "dark";
|
|
95
|
+
};
|
|
96
|
+
type Theme = ValueOf<typeof Theme>;
|
|
97
|
+
declare const Size: {
|
|
98
|
+
readonly xxs: "xxs";
|
|
99
|
+
readonly xs: "xs";
|
|
100
|
+
readonly s: "s";
|
|
101
|
+
readonly m: "m";
|
|
102
|
+
readonly l: "l";
|
|
103
|
+
readonly xl: "xl";
|
|
104
|
+
readonly xxl: "xxl";
|
|
105
|
+
readonly tiny: "tiny";
|
|
106
|
+
readonly regular: "regular";
|
|
107
|
+
readonly medium: "medium";
|
|
108
|
+
readonly big: "big";
|
|
109
|
+
readonly huge: "huge";
|
|
110
|
+
};
|
|
111
|
+
type Size = ValueOf<typeof Size>;
|
|
112
|
+
type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
113
|
+
declare const Orientation: {
|
|
114
|
+
readonly horizontal: "horizontal";
|
|
115
|
+
readonly vertical: "vertical";
|
|
116
|
+
};
|
|
117
|
+
type Orientation = ValueOf<typeof Orientation>;
|
|
118
|
+
declare const Emphasis: {
|
|
119
|
+
readonly low: "low";
|
|
120
|
+
readonly medium: "medium";
|
|
121
|
+
readonly high: "high";
|
|
122
|
+
};
|
|
123
|
+
type Emphasis = ValueOf<typeof Emphasis>;
|
|
124
|
+
/**
|
|
125
|
+
* List of typographies that can't be customized.
|
|
126
|
+
*/
|
|
127
|
+
declare const TypographyInterface: {
|
|
128
|
+
readonly overline: "overline";
|
|
129
|
+
readonly caption: "caption";
|
|
130
|
+
readonly body1: "body1";
|
|
131
|
+
readonly body2: "body2";
|
|
132
|
+
readonly subtitle1: "subtitle1";
|
|
133
|
+
readonly subtitle2: "subtitle2";
|
|
134
|
+
readonly title: "title";
|
|
135
|
+
readonly headline: "headline";
|
|
136
|
+
readonly display1: "display1";
|
|
137
|
+
};
|
|
138
|
+
type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
139
|
+
/**
|
|
140
|
+
* List of title typographies that can be customized (via CSS variables).
|
|
141
|
+
*/
|
|
142
|
+
declare const TypographyTitleCustom: {
|
|
143
|
+
readonly title1: "custom-title1";
|
|
144
|
+
readonly title2: "custom-title2";
|
|
145
|
+
readonly title3: "custom-title3";
|
|
146
|
+
readonly title4: "custom-title4";
|
|
147
|
+
readonly title5: "custom-title5";
|
|
148
|
+
readonly title6: "custom-title6";
|
|
149
|
+
};
|
|
150
|
+
type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;
|
|
151
|
+
/**
|
|
152
|
+
* List of typographies that can be customized (via CSS variables).
|
|
153
|
+
*/
|
|
154
|
+
declare const TypographyCustom: {
|
|
155
|
+
readonly intro: "custom-intro";
|
|
156
|
+
readonly 'body-large': "custom-body-large";
|
|
157
|
+
readonly body: "custom-body";
|
|
158
|
+
readonly quote: "custom-quote";
|
|
159
|
+
readonly 'publish-info': "custom-publish-info";
|
|
160
|
+
readonly button: "custom-button";
|
|
161
|
+
readonly title1: "custom-title1";
|
|
162
|
+
readonly title2: "custom-title2";
|
|
163
|
+
readonly title3: "custom-title3";
|
|
164
|
+
readonly title4: "custom-title4";
|
|
165
|
+
readonly title5: "custom-title5";
|
|
166
|
+
readonly title6: "custom-title6";
|
|
167
|
+
};
|
|
168
|
+
type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
169
|
+
/**
|
|
170
|
+
* List of all typographies.
|
|
171
|
+
*/
|
|
172
|
+
declare const Typography: {
|
|
173
|
+
readonly custom: {
|
|
174
|
+
readonly intro: "custom-intro";
|
|
175
|
+
readonly 'body-large': "custom-body-large";
|
|
176
|
+
readonly body: "custom-body";
|
|
177
|
+
readonly quote: "custom-quote";
|
|
178
|
+
readonly 'publish-info': "custom-publish-info";
|
|
179
|
+
readonly button: "custom-button";
|
|
180
|
+
readonly title1: "custom-title1";
|
|
181
|
+
readonly title2: "custom-title2";
|
|
182
|
+
readonly title3: "custom-title3";
|
|
183
|
+
readonly title4: "custom-title4";
|
|
184
|
+
readonly title5: "custom-title5";
|
|
185
|
+
readonly title6: "custom-title6";
|
|
186
|
+
};
|
|
187
|
+
readonly overline: "overline";
|
|
188
|
+
readonly caption: "caption";
|
|
189
|
+
readonly body1: "body1";
|
|
190
|
+
readonly body2: "body2";
|
|
191
|
+
readonly subtitle1: "subtitle1";
|
|
192
|
+
readonly subtitle2: "subtitle2";
|
|
193
|
+
readonly title: "title";
|
|
194
|
+
readonly headline: "headline";
|
|
195
|
+
readonly display1: "display1";
|
|
196
|
+
};
|
|
197
|
+
type Typography = TypographyInterface | TypographyCustom;
|
|
198
|
+
/**
|
|
199
|
+
* All available aspect ratios.
|
|
200
|
+
*/
|
|
201
|
+
declare const AspectRatio: {
|
|
202
|
+
/** Intrinsic content ratio. */
|
|
203
|
+
readonly original: "original";
|
|
204
|
+
/** Ratio 3:1 */
|
|
205
|
+
readonly panoramic: "panoramic";
|
|
206
|
+
/** Ratio 16:9 */
|
|
207
|
+
readonly wide: "wide";
|
|
208
|
+
/** Ratio 3:2 */
|
|
209
|
+
readonly horizontal: "horizontal";
|
|
210
|
+
/** Ratio 3:2 */
|
|
211
|
+
readonly vertical: "vertical";
|
|
212
|
+
/** Ratio 1:1 */
|
|
213
|
+
readonly square: "square";
|
|
214
|
+
/** Ratio constrained by the parent. */
|
|
215
|
+
readonly free: "free";
|
|
216
|
+
};
|
|
217
|
+
type AspectRatio = ValueOf<typeof AspectRatio>;
|
|
218
|
+
/**
|
|
219
|
+
* Semantic info about the purpose of the component
|
|
220
|
+
*/
|
|
221
|
+
declare const Kind: {
|
|
222
|
+
readonly info: "info";
|
|
223
|
+
readonly success: "success";
|
|
224
|
+
readonly warning: "warning";
|
|
225
|
+
readonly error: "error";
|
|
226
|
+
};
|
|
227
|
+
type Kind = ValueOf<typeof Kind>;
|
|
228
|
+
/**
|
|
229
|
+
* All available white-space values
|
|
230
|
+
* */
|
|
231
|
+
declare const WhiteSpace: {
|
|
232
|
+
normal: string;
|
|
233
|
+
nowrap: string;
|
|
234
|
+
pre: string;
|
|
235
|
+
'pre-wrap': string;
|
|
236
|
+
'pre-line': string;
|
|
237
|
+
'break-spaces': string;
|
|
238
|
+
};
|
|
239
|
+
type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
240
|
+
/**
|
|
241
|
+
* See SCSS variable $lumx-color-palette
|
|
242
|
+
*/
|
|
243
|
+
declare const ColorPalette: {
|
|
244
|
+
readonly primary: "primary";
|
|
245
|
+
readonly secondary: "secondary";
|
|
246
|
+
readonly blue: "blue";
|
|
247
|
+
readonly dark: "dark";
|
|
248
|
+
readonly green: "green";
|
|
249
|
+
readonly yellow: "yellow";
|
|
250
|
+
readonly red: "red";
|
|
251
|
+
readonly light: "light";
|
|
252
|
+
readonly grey: "grey";
|
|
253
|
+
};
|
|
254
|
+
type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
255
|
+
type Color = ColorPalette | string;
|
|
256
|
+
/**
|
|
257
|
+
* See SCSS variable $lumx-color-variants
|
|
258
|
+
*/
|
|
259
|
+
declare const ColorVariant: {
|
|
260
|
+
readonly D1: "D1";
|
|
261
|
+
readonly D2: "D2";
|
|
262
|
+
readonly L1: "L1";
|
|
263
|
+
readonly L2: "L2";
|
|
264
|
+
readonly L3: "L3";
|
|
265
|
+
readonly L4: "L4";
|
|
266
|
+
readonly L5: "L5";
|
|
267
|
+
readonly L6: "L6";
|
|
268
|
+
readonly N: "N";
|
|
269
|
+
};
|
|
270
|
+
type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
271
|
+
/** ColorPalette with all possible color variant combination */
|
|
272
|
+
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Callback function type alias (use for readability)
|
|
276
|
+
*/
|
|
277
|
+
type Callback = () => void;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Require either `aria-label` or `arial-labelledby` prop.
|
|
281
|
+
* If none are set, the order will prioritize `aria-labelledby` over `aria-label` as it
|
|
282
|
+
* needs a visible element.
|
|
283
|
+
*/
|
|
284
|
+
type HasAriaLabelOrLabelledBy<T = string | undefined> = T extends string ? {
|
|
285
|
+
/**
|
|
286
|
+
* The id of the element to use as title of the dialog. Can be within or out of the dialog.
|
|
287
|
+
* Although it is not recommended, aria-label can be used instead if no visible element is available.
|
|
288
|
+
*/
|
|
289
|
+
'aria-labelledby': T;
|
|
290
|
+
/** The label of the dialog. */
|
|
291
|
+
'aria-label'?: undefined;
|
|
292
|
+
} : {
|
|
293
|
+
'aria-label': string;
|
|
294
|
+
'aria-labelledby'?: undefined;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
interface HasClassName {
|
|
298
|
+
/**
|
|
299
|
+
* Class name forwarded to the root element of the component.
|
|
300
|
+
*/
|
|
301
|
+
className?: string;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
interface HasCloseMode {
|
|
305
|
+
/**
|
|
306
|
+
* Choose how the children are hidden when closed
|
|
307
|
+
* ('hide' keeps the children in DOM but hide them, 'unmount' remove the children from the DOM).
|
|
308
|
+
*/
|
|
309
|
+
closeMode?: 'hide' | 'unmount';
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface HasTheme {
|
|
313
|
+
/**
|
|
314
|
+
* Theme adapting the component to light or dark background.
|
|
315
|
+
*/
|
|
316
|
+
theme?: Theme;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Define a generic props types.
|
|
321
|
+
*/
|
|
322
|
+
interface GenericProps extends HasClassName {
|
|
323
|
+
/**
|
|
324
|
+
* Any prop (particularly any supported prop for a HTML element).
|
|
325
|
+
*/
|
|
326
|
+
[propName: string]: any;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/** Union type of all heading elements */
|
|
330
|
+
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A point coordinate in 2D space
|
|
334
|
+
*/
|
|
335
|
+
type Point = {
|
|
336
|
+
x: number;
|
|
337
|
+
y: number;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/** Predicate function type */
|
|
341
|
+
type Predicate<T> = (t: T) => boolean;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Rectangle size
|
|
345
|
+
*/
|
|
346
|
+
type RectSize = {
|
|
347
|
+
width: number;
|
|
348
|
+
height: number;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/** Union type of all text elements */
|
|
352
|
+
type TextElement = 'span' | 'p' | HeadingElement;
|
|
353
|
+
|
|
9
354
|
/** LumX Component Type. */
|
|
10
355
|
type Comp<P, T = HTMLElement> = {
|
|
11
356
|
(props: P & {
|
|
@@ -1229,7 +1574,7 @@ declare const HeadingLevelProvider: React.FC<HeadingLevelProviderProps>;
|
|
|
1229
1574
|
|
|
1230
1575
|
declare const useHeadingLevel: () => {
|
|
1231
1576
|
level: number;
|
|
1232
|
-
headingElement:
|
|
1577
|
+
headingElement: HeadingElement;
|
|
1233
1578
|
};
|
|
1234
1579
|
|
|
1235
1580
|
type GridGutterSize = Extract<Size, 'regular' | 'big' | 'huge'>;
|
|
@@ -3152,4 +3497,4 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3152
3497
|
/** Get the theme in the current context. */
|
|
3153
3498
|
declare function useTheme(): ThemeContextValue;
|
|
3154
3499
|
|
|
3155
|
-
export { AlertDialog, type AlertDialogProps, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CommentBlock, type CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, type Elevation, ExpansionPanel, type ExpansionPanelProps, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, Heading, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Placement, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, TextField, type TextFieldProps, type TextProps, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3500
|
+
export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, BACKSPACE_KEY_CODE, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, CSS_PREFIX, type Callback, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type Color, ColorPalette, ColorVariant, type ColorWithVariants, CommentBlock, type CommentBlockProps, CommentBlockVariant, DIALOG_TRANSITION_DURATION, DOWN_KEY_CODE, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, ENTER_KEY_CODE, ESCAPE_KEY_CODE, EXPANSION_PANEL_TRANSITION_DURATION, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Falsy, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, type GenericProps, type GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, type HasAriaLabelOrLabelledBy, type HasClassName, type HasCloseMode, type HasTheme, Heading, type HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, type HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, LEFT_KEY_CODE, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, NOTIFICATION_TRANSITION_DURATION, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, type Point, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, type Predicate, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RIGHT_KEY_CODE, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RectSize, SLIDESHOW_TRANSITION_DURATION, SPACE_KEY_CODE, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, TAB_KEY_CODE, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, type TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, UP_KEY_CODE, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, type ValueOf, type VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|