@lumx/react 3.0.2 → 3.0.3-alpha.1
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/{esm/_internal/_rollupPluginBabelHelpers.js → _internal/ClickAwayProvider.js} +107 -2
- package/_internal/ClickAwayProvider.js.map +1 -0
- package/_internal/types.d.ts +271 -0
- package/index.d.ts +2686 -0
- package/index.js +12533 -0
- package/index.js.map +1 -0
- package/package.json +7 -6
- package/src/components/alert-dialog/AlertDialog.tsx +2 -1
- package/src/components/autocomplete/Autocomplete.tsx +2 -2
- package/src/components/autocomplete/AutocompleteMultiple.tsx +2 -1
- package/src/components/avatar/Avatar.tsx +2 -1
- package/src/components/badge/Badge.test.tsx +1 -1
- package/src/components/badge/Badge.tsx +2 -1
- package/src/components/button/Button.test.tsx +1 -1
- package/src/components/button/Button.tsx +2 -1
- package/src/components/button/ButtonGroup.tsx +2 -1
- package/src/components/button/ButtonRoot.test.tsx +1 -1
- package/src/components/button/ButtonRoot.tsx +2 -1
- package/src/components/button/IconButton.tsx +2 -1
- package/src/components/checkbox/Checkbox.test.tsx +1 -1
- package/src/components/checkbox/Checkbox.tsx +2 -1
- package/src/components/chip/Chip.test.tsx +1 -1
- package/src/components/chip/Chip.tsx +3 -1
- package/src/components/chip/ChipGroup.tsx +2 -1
- package/src/components/comment-block/CommentBlock.tsx +2 -1
- package/src/components/date-picker/DatePicker.tsx +1 -1
- package/src/components/date-picker/DatePickerControlled.tsx +1 -1
- package/src/components/date-picker/DatePickerField.tsx +1 -1
- package/src/components/date-picker/constants.ts +1 -1
- package/src/components/date-picker/types.ts +1 -1
- package/src/components/dialog/Dialog.tsx +4 -8
- package/src/components/divider/Divider.test.tsx +1 -1
- package/src/components/divider/Divider.tsx +3 -2
- package/src/components/drag-handle/DragHandle.tsx +2 -1
- package/src/components/dropdown/Dropdown.tsx +2 -1
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +1 -1
- package/src/components/expansion-panel/ExpansionPanel.tsx +3 -10
- package/src/components/flag/Flag.test.tsx +1 -1
- package/src/components/flag/Flag.tsx +2 -1
- package/src/components/flex-box/FlexBox.stories.tsx +8 -0
- package/src/components/flex-box/FlexBox.tsx +7 -3
- package/src/components/flex-box/__snapshots__/FlexBox.test.tsx.snap +16 -0
- package/src/components/generic-block/GenericBlock.stories.jsx +23 -1
- package/src/components/generic-block/GenericBlock.tsx +18 -4
- package/src/components/generic-block/constants.ts +9 -0
- package/src/components/generic-block/index.ts +1 -0
- package/src/components/grid/Grid.tsx +2 -1
- package/src/components/grid/GridItem.tsx +2 -1
- package/src/components/heading/Heading.tsx +2 -1
- package/src/components/heading/HeadingLevelProvider.tsx +1 -1
- package/src/components/heading/context.tsx +1 -1
- package/src/components/icon/Icon.test.tsx +1 -1
- package/src/components/icon/Icon.tsx +2 -1
- package/src/components/image-block/ImageBlock.tsx +2 -1
- package/src/components/index.ts +1 -1
- package/src/components/inline-list/InlineList.stories.tsx +40 -0
- package/src/components/inline-list/InlineList.test.tsx +41 -0
- package/src/components/inline-list/InlineList.tsx +80 -0
- package/src/components/inline-list/index.ts +1 -0
- package/src/components/input-helper/InputHelper.tsx +2 -1
- package/src/components/input-label/InputLabel.tsx +2 -1
- package/src/components/lightbox/Lightbox.tsx +2 -1
- package/src/components/link/Link.tsx +2 -1
- package/src/components/link-preview/LinkPreview.test.tsx +1 -1
- package/src/components/link-preview/LinkPreview.tsx +2 -1
- package/src/components/list/List.tsx +2 -1
- package/src/components/list/ListDivider.tsx +2 -1
- package/src/components/list/ListItem.tsx +3 -8
- package/src/components/list/ListSubheader.tsx +2 -1
- package/src/components/list/useInteractiveList.tsx +1 -1
- package/src/components/message/Message.test.tsx +1 -1
- package/src/components/message/Message.tsx +2 -1
- package/src/components/mosaic/Mosaic.tsx +2 -1
- package/src/components/notification/Notification.tsx +2 -1
- package/src/components/popover/Popover.tsx +2 -1
- package/src/components/post-block/PostBlock.tsx +2 -1
- package/src/components/progress/Progress.tsx +2 -1
- package/src/components/progress-tracker/ProgressTracker.tsx +2 -1
- package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +2 -1
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +2 -1
- package/src/components/radio-button/RadioButton.test.tsx +1 -1
- package/src/components/radio-button/RadioButton.tsx +2 -1
- package/src/components/radio-button/RadioGroup.tsx +2 -1
- package/src/components/select/Select.test.tsx +1 -1
- package/src/components/select/Select.tsx +2 -1
- package/src/components/select/SelectMultiple.test.tsx +1 -1
- package/src/components/select/SelectMultiple.tsx +2 -1
- package/src/components/select/WithSelectContext.tsx +1 -1
- package/src/components/select/constants.ts +1 -1
- package/src/components/side-navigation/SideNavigation.tsx +2 -1
- package/src/components/side-navigation/SideNavigationItem.test.tsx +1 -1
- package/src/components/side-navigation/SideNavigationItem.tsx +3 -9
- package/src/components/skeleton/SkeletonCircle.tsx +2 -1
- package/src/components/skeleton/SkeletonRectangle.tsx +2 -1
- package/src/components/skeleton/SkeletonTypography.tsx +2 -1
- package/src/components/slider/Slider.tsx +2 -1
- package/src/components/slideshow/Slides.tsx +2 -1
- package/src/components/slideshow/Slideshow.tsx +1 -1
- package/src/components/slideshow/SlideshowControls.tsx +2 -1
- package/src/components/slideshow/SlideshowItem.tsx +2 -1
- package/src/components/slideshow/SlideshowItemGroup.tsx +2 -1
- package/src/components/switch/Switch.test.tsx +1 -1
- package/src/components/switch/Switch.tsx +2 -1
- package/src/components/table/Table.tsx +2 -1
- package/src/components/table/TableBody.tsx +2 -1
- package/src/components/table/TableCell.tsx +3 -1
- package/src/components/table/TableHeader.tsx +2 -1
- package/src/components/table/TableRow.tsx +2 -1
- package/src/components/tabs/Tab.test.tsx +1 -1
- package/src/components/tabs/Tab.tsx +2 -1
- package/src/components/tabs/TabList.test.tsx +1 -1
- package/src/components/tabs/TabList.tsx +2 -1
- package/src/components/tabs/TabPanel.tsx +2 -1
- package/src/components/text/{Text.stories.tsx → Text.stories.jsx} +23 -28
- package/src/components/text/Text.test.tsx +15 -1
- package/src/components/text/Text.tsx +38 -12
- package/src/components/text-field/TextField.test.tsx +1 -1
- package/src/components/text-field/TextField.tsx +2 -1
- package/src/components/thumbnail/Thumbnail.tsx +2 -1
- package/src/components/thumbnail/types.ts +1 -1
- package/src/components/toolbar/Toolbar.tsx +2 -1
- package/src/components/tooltip/Tooltip.tsx +2 -1
- package/src/components/tooltip/useTooltipOpen.tsx +1 -1
- package/src/components/uploader/Uploader.test.tsx +1 -1
- package/src/components/uploader/Uploader.tsx +2 -1
- package/src/components/user-block/UserBlock.tsx +2 -1
- package/src/hooks/useCallbackOnEscape.ts +2 -1
- package/src/hooks/useClickAway.tsx +1 -1
- package/src/hooks/useDisableBodyScroll.ts +1 -1
- package/src/hooks/useFocusTrap.ts +1 -1
- package/src/hooks/useInterval.tsx +1 -1
- package/src/hooks/useOnResize.ts +1 -1
- package/src/index.ts +5 -0
- package/src/stories/generated/GenericBlock/Demos.stories.tsx +3 -1
- package/src/stories/generated/Heading/Demos.stories.tsx +6 -0
- package/src/stories/withResizableBox.tsx +18 -0
- package/src/testing/utils/commonTestsSuite.ts +1 -1
- package/src/utils/{getRootClassName.ts → className.ts} +19 -0
- package/src/utils/event.ts +1 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/type.ts +3 -0
- package/src/utils/utils.test.ts +1 -1
- package/types.d.ts +68 -11
- package/utils/index.d.ts +29 -0
- package/utils/index.js +2 -0
- package/utils/index.js.map +1 -0
- package/esm/_internal/AlertDialog.js +0 -141
- package/esm/_internal/AlertDialog.js.map +0 -1
- package/esm/_internal/AutocompleteMultiple.js +0 -257
- package/esm/_internal/AutocompleteMultiple.js.map +0 -1
- package/esm/_internal/Avatar2.js +0 -82
- package/esm/_internal/Avatar2.js.map +0 -1
- package/esm/_internal/Badge2.js +0 -54
- package/esm/_internal/Badge2.js.map +0 -1
- package/esm/_internal/Button2.js +0 -84
- package/esm/_internal/Button2.js.map +0 -1
- package/esm/_internal/ButtonGroup.js +0 -51
- package/esm/_internal/ButtonGroup.js.map +0 -1
- package/esm/_internal/ButtonRoot.js +0 -135
- package/esm/_internal/ButtonRoot.js.map +0 -1
- package/esm/_internal/Checkbox2.js +0 -116
- package/esm/_internal/Checkbox2.js.map +0 -1
- package/esm/_internal/Chip2.js +0 -118
- package/esm/_internal/Chip2.js.map +0 -1
- package/esm/_internal/ChipGroup.js +0 -122
- package/esm/_internal/ChipGroup.js.map +0 -1
- package/esm/_internal/ClickAwayProvider.js +0 -217
- package/esm/_internal/ClickAwayProvider.js.map +0 -1
- package/esm/_internal/CommentBlock.js +0 -124
- package/esm/_internal/CommentBlock.js.map +0 -1
- package/esm/_internal/DatePickerField.js +0 -347
- package/esm/_internal/DatePickerField.js.map +0 -1
- package/esm/_internal/Dialog2.js +0 -274
- package/esm/_internal/Dialog2.js.map +0 -1
- package/esm/_internal/Divider2.js +0 -53
- package/esm/_internal/Divider2.js.map +0 -1
- package/esm/_internal/DragHandle.js +0 -50
- package/esm/_internal/DragHandle.js.map +0 -1
- package/esm/_internal/Dropdown2.js +0 -157
- package/esm/_internal/Dropdown2.js.map +0 -1
- package/esm/_internal/ExpansionPanel.js +0 -156
- package/esm/_internal/ExpansionPanel.js.map +0 -1
- package/esm/_internal/Flag2.js +0 -48
- package/esm/_internal/Flag2.js.map +0 -1
- package/esm/_internal/FlexBox.js +0 -55
- package/esm/_internal/FlexBox.js.map +0 -1
- package/esm/_internal/GenericBlock.js +0 -125
- package/esm/_internal/GenericBlock.js.map +0 -1
- package/esm/_internal/GridItem.js +0 -96
- package/esm/_internal/GridItem.js.map +0 -1
- package/esm/_internal/HeadingLevelProvider.js +0 -112
- package/esm/_internal/HeadingLevelProvider.js.map +0 -1
- package/esm/_internal/Icon2.js +0 -120
- package/esm/_internal/Icon2.js.map +0 -1
- package/esm/_internal/IconButton.js +0 -74
- package/esm/_internal/IconButton.js.map +0 -1
- package/esm/_internal/ImageBlock.js +0 -101
- package/esm/_internal/ImageBlock.js.map +0 -1
- package/esm/_internal/InputHelper.js +0 -72
- package/esm/_internal/InputHelper.js.map +0 -1
- package/esm/_internal/InputLabel.js +0 -58
- package/esm/_internal/InputLabel.js.map +0 -1
- package/esm/_internal/Lightbox2.js +0 -123
- package/esm/_internal/Lightbox2.js.map +0 -1
- package/esm/_internal/Link2.js +0 -122
- package/esm/_internal/Link2.js.map +0 -1
- package/esm/_internal/LinkPreview.js +0 -105
- package/esm/_internal/LinkPreview.js.map +0 -1
- package/esm/_internal/List2.js +0 -799
- package/esm/_internal/List2.js.map +0 -1
- package/esm/_internal/ListSubheader.js +0 -79
- package/esm/_internal/ListSubheader.js.map +0 -1
- package/esm/_internal/Message2.js +0 -78
- package/esm/_internal/Message2.js.map +0 -1
- package/esm/_internal/Mosaic2.js +0 -89
- package/esm/_internal/Mosaic2.js.map +0 -1
- package/esm/_internal/Notification2.js +0 -133
- package/esm/_internal/Notification2.js.map +0 -1
- package/esm/_internal/Popover2.js +0 -2473
- package/esm/_internal/Popover2.js.map +0 -1
- package/esm/_internal/PostBlock.js +0 -96
- package/esm/_internal/PostBlock.js.map +0 -1
- package/esm/_internal/Progress2.js +0 -81
- package/esm/_internal/Progress2.js.map +0 -1
- package/esm/_internal/ProgressTrackerStepPanel.js +0 -313
- package/esm/_internal/ProgressTrackerStepPanel.js.map +0 -1
- package/esm/_internal/RadioGroup.js +0 -147
- package/esm/_internal/RadioGroup.js.map +0 -1
- package/esm/_internal/SelectMultiple.js +0 -424
- package/esm/_internal/SelectMultiple.js.map +0 -1
- package/esm/_internal/SideNavigationItem.js +0 -151
- package/esm/_internal/SideNavigationItem.js.map +0 -1
- package/esm/_internal/SkeletonTypography.js +0 -168
- package/esm/_internal/SkeletonTypography.js.map +0 -1
- package/esm/_internal/Slider2.js +0 -327
- package/esm/_internal/Slider2.js.map +0 -1
- package/esm/_internal/Slides.js +0 -864
- package/esm/_internal/Slides.js.map +0 -1
- package/esm/_internal/Switch2.js +0 -116
- package/esm/_internal/Switch2.js.map +0 -1
- package/esm/_internal/TabPanel.js +0 -280
- package/esm/_internal/TabPanel.js.map +0 -1
- package/esm/_internal/TableRow.js +0 -291
- package/esm/_internal/TableRow.js.map +0 -1
- package/esm/_internal/Text2.js +0 -63
- package/esm/_internal/Text2.js.map +0 -1
- package/esm/_internal/TextField.js +0 -322
- package/esm/_internal/TextField.js.map +0 -1
- package/esm/_internal/Thumbnail2.js +0 -301
- package/esm/_internal/Thumbnail2.js.map +0 -1
- package/esm/_internal/Toolbar2.js +0 -60
- package/esm/_internal/Toolbar2.js.map +0 -1
- package/esm/_internal/Tooltip2.js +0 -282
- package/esm/_internal/Tooltip2.js.map +0 -1
- package/esm/_internal/Uploader2.js +0 -84
- package/esm/_internal/Uploader2.js.map +0 -1
- package/esm/_internal/UserBlock.js +0 -132
- package/esm/_internal/UserBlock.js.map +0 -1
- package/esm/_internal/_rollupPluginBabelHelpers.js.map +0 -1
- package/esm/_internal/alert-dialog.js +0 -34
- package/esm/_internal/alert-dialog.js.map +0 -1
- package/esm/_internal/autocomplete.js +0 -32
- package/esm/_internal/autocomplete.js.map +0 -1
- package/esm/_internal/avatar.js +0 -13
- package/esm/_internal/avatar.js.map +0 -1
- package/esm/_internal/badge.js +0 -10
- package/esm/_internal/badge.js.map +0 -1
- package/esm/_internal/button.js +0 -25
- package/esm/_internal/button.js.map +0 -1
- package/esm/_internal/checkbox.js +0 -14
- package/esm/_internal/checkbox.js.map +0 -1
- package/esm/_internal/chip.js +0 -12
- package/esm/_internal/chip.js.map +0 -1
- package/esm/_internal/comment-block.js +0 -24
- package/esm/_internal/comment-block.js.map +0 -1
- package/esm/_internal/components.js +0 -156
- package/esm/_internal/components.js.map +0 -1
- package/esm/_internal/constants.js +0 -13
- package/esm/_internal/constants.js.map +0 -1
- package/esm/_internal/date-picker.js +0 -32
- package/esm/_internal/date-picker.js.map +0 -1
- package/esm/_internal/dialog.js +0 -27
- package/esm/_internal/dialog.js.map +0 -1
- package/esm/_internal/divider.js +0 -10
- package/esm/_internal/divider.js.map +0 -1
- package/esm/_internal/drag-handle.js +0 -11
- package/esm/_internal/drag-handle.js.map +0 -1
- package/esm/_internal/dropdown.js +0 -21
- package/esm/_internal/dropdown.js.map +0 -1
- package/esm/_internal/expansion-panel.js +0 -32
- package/esm/_internal/expansion-panel.js.map +0 -1
- package/esm/_internal/flag.js +0 -11
- package/esm/_internal/flag.js.map +0 -1
- package/esm/_internal/flex-box.js +0 -11
- package/esm/_internal/flex-box.js.map +0 -1
- package/esm/_internal/generic-block.js +0 -20
- package/esm/_internal/generic-block.js.map +0 -1
- package/esm/_internal/getRootClassName.js +0 -346
- package/esm/_internal/getRootClassName.js.map +0 -1
- package/esm/_internal/grid.js +0 -10
- package/esm/_internal/grid.js.map +0 -1
- package/esm/_internal/heading.js +0 -11
- package/esm/_internal/heading.js.map +0 -1
- package/esm/_internal/icon.js +0 -10
- package/esm/_internal/icon.js.map +0 -1
- package/esm/_internal/image-block.js +0 -14
- package/esm/_internal/image-block.js.map +0 -1
- package/esm/_internal/input-helper.js +0 -10
- package/esm/_internal/input-helper.js.map +0 -1
- package/esm/_internal/input-label.js +0 -10
- package/esm/_internal/input-label.js.map +0 -1
- package/esm/_internal/lightbox.js +0 -27
- package/esm/_internal/lightbox.js.map +0 -1
- package/esm/_internal/link-preview.js +0 -15
- package/esm/_internal/link-preview.js.map +0 -1
- package/esm/_internal/link.js +0 -12
- package/esm/_internal/link.js.map +0 -1
- package/esm/_internal/list.js +0 -15
- package/esm/_internal/list.js.map +0 -1
- package/esm/_internal/mergeRefs.js +0 -25
- package/esm/_internal/mergeRefs.js.map +0 -1
- package/esm/_internal/message.js +0 -11
- package/esm/_internal/message.js.map +0 -1
- package/esm/_internal/mosaic.js +0 -14
- package/esm/_internal/mosaic.js.map +0 -1
- package/esm/_internal/notification.js +0 -18
- package/esm/_internal/notification.js.map +0 -1
- package/esm/_internal/partitionMulti.js +0 -27
- package/esm/_internal/partitionMulti.js.map +0 -1
- package/esm/_internal/popover.js +0 -15
- package/esm/_internal/popover.js.map +0 -1
- package/esm/_internal/post-block.js +0 -15
- package/esm/_internal/post-block.js.map +0 -1
- package/esm/_internal/progress-tracker.js +0 -17
- package/esm/_internal/progress-tracker.js.map +0 -1
- package/esm/_internal/progress.js +0 -10
- package/esm/_internal/progress.js.map +0 -1
- package/esm/_internal/radio-button.js +0 -13
- package/esm/_internal/radio-button.js.map +0 -1
- package/esm/_internal/renderLink.js +0 -25
- package/esm/_internal/renderLink.js.map +0 -1
- package/esm/_internal/select.js +0 -31
- package/esm/_internal/select.js.map +0 -1
- package/esm/_internal/side-navigation.js +0 -25
- package/esm/_internal/side-navigation.js.map +0 -1
- package/esm/_internal/skeleton.js +0 -10
- package/esm/_internal/skeleton.js.map +0 -1
- package/esm/_internal/slider.js +0 -13
- package/esm/_internal/slider.js.map +0 -1
- package/esm/_internal/slideshow.js +0 -29
- package/esm/_internal/slideshow.js.map +0 -1
- package/esm/_internal/state.js +0 -145
- package/esm/_internal/state.js.map +0 -1
- package/esm/_internal/switch.js +0 -13
- package/esm/_internal/switch.js.map +0 -1
- package/esm/_internal/table.js +0 -12
- package/esm/_internal/table.js.map +0 -1
- package/esm/_internal/tabs.js +0 -15
- package/esm/_internal/tabs.js.map +0 -1
- package/esm/_internal/text-field.js +0 -26
- package/esm/_internal/text-field.js.map +0 -1
- package/esm/_internal/text.js +0 -10
- package/esm/_internal/text.js.map +0 -1
- package/esm/_internal/thumbnail.js +0 -13
- package/esm/_internal/thumbnail.js.map +0 -1
- package/esm/_internal/toolbar.js +0 -9
- package/esm/_internal/toolbar.js.map +0 -1
- package/esm/_internal/tooltip.js +0 -18
- package/esm/_internal/tooltip.js.map +0 -1
- package/esm/_internal/type.js +0 -40
- package/esm/_internal/type.js.map +0 -1
- package/esm/_internal/types.js +0 -23
- package/esm/_internal/types.js.map +0 -1
- package/esm/_internal/uploader.js +0 -11
- package/esm/_internal/uploader.js.map +0 -1
- package/esm/_internal/useDelayedVisibility.js +0 -47
- package/esm/_internal/useDelayedVisibility.js.map +0 -1
- package/esm/_internal/useDisableBodyScroll.js +0 -220
- package/esm/_internal/useDisableBodyScroll.js.map +0 -1
- package/esm/_internal/useFocusTrap.js +0 -86
- package/esm/_internal/useFocusTrap.js.map +0 -1
- package/esm/_internal/useRovingTabIndex.js +0 -87
- package/esm/_internal/useRovingTabIndex.js.map +0 -1
- package/esm/_internal/user-block.js +0 -17
- package/esm/_internal/user-block.js.map +0 -1
- package/esm/index.js +0 -95
- package/esm/index.js.map +0 -1
- package/esm/index2.js +0 -16
- package/esm/index2.js.map +0 -1
- package/src/utils/index.tsx +0 -7
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './mergeRefs.js';
|
|
11
|
-
import './renderLink.js';
|
|
12
|
-
import './Link2.js';
|
|
13
|
-
export { L as LinkPreview } from './LinkPreview.js';
|
|
14
|
-
import './Thumbnail2.js';
|
|
15
|
-
//# sourceMappingURL=link-preview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-preview.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/esm/_internal/link.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './renderLink.js';
|
|
11
|
-
export { L as Link } from './Link2.js';
|
|
12
|
-
//# sourceMappingURL=link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/esm/_internal/list.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import 'lodash/isBoolean';
|
|
6
|
-
import 'lodash/isEmpty';
|
|
7
|
-
import 'lodash/kebabCase';
|
|
8
|
-
import 'lodash/noop';
|
|
9
|
-
import 'lodash/get';
|
|
10
|
-
import './type.js';
|
|
11
|
-
import './mergeRefs.js';
|
|
12
|
-
import './renderLink.js';
|
|
13
|
-
export { L as List, a as ListItem, i as isClickable } from './List2.js';
|
|
14
|
-
export { L as ListDivider, a as ListSubheader } from './ListSubheader.js';
|
|
15
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merge refs into a single function ref.
|
|
3
|
-
*
|
|
4
|
-
* @param refs React references to merge.
|
|
5
|
-
* @return the merged ref.
|
|
6
|
-
*/
|
|
7
|
-
function mergeRefs() {
|
|
8
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
|
-
refs[_key] = arguments[_key];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return function (value) {
|
|
13
|
-
return refs.forEach(function (ref) {
|
|
14
|
-
if (typeof ref === 'function') {
|
|
15
|
-
ref(value);
|
|
16
|
-
} else if (ref) {
|
|
17
|
-
// eslint-disable-next-line no-param-reassign
|
|
18
|
-
ref.current = value;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { mergeRefs as m };
|
|
25
|
-
//# sourceMappingURL=mergeRefs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeRefs.js","sources":["../../../src/utils/mergeRefs.ts"],"sourcesContent":["import { Falsy } from '@lumx/react/utils/type';\nimport { MutableRefObject } from 'react';\n\ntype FnRef<T> = (value: T) => void;\n\n/**\n * Merge refs into a single function ref.\n *\n * @param refs React references to merge.\n * @return the merged ref.\n */\nexport function mergeRefs<T>(...refs: Array<MutableRefObject<T | null> | FnRef<T> | Falsy>): FnRef<T> {\n return (value) =>\n refs.forEach((ref) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n // eslint-disable-next-line no-param-reassign\n (ref as MutableRefObject<T>).current = value;\n }\n });\n}\n"],"names":["mergeRefs","refs","value","forEach","ref","current"],"mappings":"AAKA;;;;;;AAMO,SAASA,SAAT,GAA+F;AAAA,oCAAtEC,IAAsE;AAAtEA,IAAAA,IAAsE;AAAA;;AAClG,SAAO,UAACC,KAAD;AAAA,WACHD,IAAI,CAACE,OAAL,CAAa,UAACC,GAAD,EAAS;AAClB,UAAI,OAAOA,GAAP,KAAe,UAAnB,EAA+B;AAC3BA,QAAAA,GAAG,CAACF,KAAD,CAAH;AACH,OAFD,MAEO,IAAIE,GAAJ,EAAS;AACZ;AACCA,QAAAA,GAAD,CAA6BC,OAA7B,GAAuCH,KAAvC;AACH;AACJ,KAPD,CADG;AAAA,GAAP;AASH;;;;"}
|
package/esm/_internal/message.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
export { M as Message } from './Message2.js';
|
|
11
|
-
//# sourceMappingURL=message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/esm/_internal/mosaic.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './mergeRefs.js';
|
|
11
|
-
import 'lodash/take';
|
|
12
|
-
export { M as Mosaic } from './Mosaic2.js';
|
|
13
|
-
import './Thumbnail2.js';
|
|
14
|
-
//# sourceMappingURL=mosaic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mosaic.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './constants.js';
|
|
11
|
-
import './renderLink.js';
|
|
12
|
-
import './ButtonRoot.js';
|
|
13
|
-
import './Button2.js';
|
|
14
|
-
import 'lodash/isFunction';
|
|
15
|
-
import 'react-dom';
|
|
16
|
-
import './useDelayedVisibility.js';
|
|
17
|
-
export { N as Notification } from './Notification2.js';
|
|
18
|
-
//# sourceMappingURL=notification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import concat from 'lodash/concat';
|
|
2
|
-
import dropRight from 'lodash/dropRight';
|
|
3
|
-
import last from 'lodash/last';
|
|
4
|
-
import partition from 'lodash/partition';
|
|
5
|
-
import reduce from 'lodash/reduce';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Similar to lodash `partition` function but working with multiple predicates.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* const isString = (s) => typeof s === 'string'
|
|
12
|
-
* const isNumber = (s) => typeof s === 'number'
|
|
13
|
-
* const [strings, numbers, others] = partitionMulti(['a', 1, 'b', false], [isString, isNumber])
|
|
14
|
-
* //=> [['a', 'b'], [1], [false]]
|
|
15
|
-
*
|
|
16
|
-
* @param elements array of elements
|
|
17
|
-
* @param predicates array of predicates to apply on elements
|
|
18
|
-
* @return partitioned elements by the given predicates
|
|
19
|
-
*/
|
|
20
|
-
function partitionMulti(elements, predicates) {
|
|
21
|
-
return reduce(predicates, function (partitioned, predicate) {
|
|
22
|
-
return concat(dropRight(partitioned), partition(last(partitioned), predicate));
|
|
23
|
-
}, [elements]);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { partitionMulti as p };
|
|
27
|
-
//# sourceMappingURL=partitionMulti.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"partitionMulti.js","sources":["../../../src/utils/partitionMulti.ts"],"sourcesContent":["import concat from 'lodash/concat';\nimport dropRight from 'lodash/dropRight';\nimport last from 'lodash/last';\nimport partition from 'lodash/partition';\nimport reduce from 'lodash/reduce';\nimport { Predicate } from './type';\n\n/**\n * Similar to lodash `partition` function but working with multiple predicates.\n *\n * @example\n * const isString = (s) => typeof s === 'string'\n * const isNumber = (s) => typeof s === 'number'\n * const [strings, numbers, others] = partitionMulti(['a', 1, 'b', false], [isString, isNumber])\n * //=> [['a', 'b'], [1], [false]]\n *\n * @param elements array of elements\n * @param predicates array of predicates to apply on elements\n * @return partitioned elements by the given predicates\n */\nexport function partitionMulti<T>(elements: T[], predicates: Array<Predicate<T>>): T[][] {\n return reduce(\n predicates,\n (partitioned: T[][], predicate: Predicate<T>) =>\n concat(dropRight(partitioned), partition(last(partitioned), predicate)),\n [elements],\n );\n}\n"],"names":["partitionMulti","elements","predicates","reduce","partitioned","predicate","concat","dropRight","partition","last"],"mappings":";;;;;;AAOA;;;;;;;;;;;;;AAaO,SAASA,cAAT,CAA2BC,QAA3B,EAA0CC,UAA1C,EAAkF;AACrF,SAAOC,MAAM,CACTD,UADS,EAET,UAACE,WAAD,EAAqBC,SAArB;AAAA,WACIC,MAAM,CAACC,SAAS,CAACH,WAAD,CAAV,EAAyBI,SAAS,CAACC,IAAI,CAACL,WAAD,CAAL,EAAoBC,SAApB,CAAlC,CADV;AAAA,GAFS,EAIT,CAACJ,QAAD,CAJS,CAAb;AAMH;;;;"}
|
package/esm/_internal/popover.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './getRootClassName.js';
|
|
4
|
-
import 'lodash/isBoolean';
|
|
5
|
-
import 'lodash/isEmpty';
|
|
6
|
-
import 'lodash/kebabCase';
|
|
7
|
-
import 'lodash/noop';
|
|
8
|
-
import './constants.js';
|
|
9
|
-
import 'lodash/last';
|
|
10
|
-
export { P as Placement, a as Popover } from './Popover2.js';
|
|
11
|
-
import './mergeRefs.js';
|
|
12
|
-
import './ClickAwayProvider.js';
|
|
13
|
-
import 'lodash/pull';
|
|
14
|
-
import 'react-dom';
|
|
15
|
-
//# sourceMappingURL=popover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './mergeRefs.js';
|
|
11
|
-
import 'lodash/isObject';
|
|
12
|
-
export { P as PostBlock } from './PostBlock.js';
|
|
13
|
-
import './Thumbnail2.js';
|
|
14
|
-
import './types.js';
|
|
15
|
-
//# sourceMappingURL=post-block.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import '../index2.js';
|
|
7
|
-
import 'lodash/isBoolean';
|
|
8
|
-
import 'lodash/isEmpty';
|
|
9
|
-
import 'lodash/kebabCase';
|
|
10
|
-
import 'lodash/noop';
|
|
11
|
-
import './mergeRefs.js';
|
|
12
|
-
import './InputHelper.js';
|
|
13
|
-
import './InputLabel.js';
|
|
14
|
-
import './state.js';
|
|
15
|
-
export { a as ProgressTracker, P as ProgressTrackerProvider, b as ProgressTrackerStep, c as ProgressTrackerStepPanel } from './ProgressTrackerStepPanel.js';
|
|
16
|
-
import './useRovingTabIndex.js';
|
|
17
|
-
//# sourceMappingURL=progress-tracker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-tracker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import 'lodash/isBoolean';
|
|
6
|
-
import 'lodash/isEmpty';
|
|
7
|
-
import 'lodash/kebabCase';
|
|
8
|
-
import 'lodash/noop';
|
|
9
|
-
export { a as Progress, P as ProgressVariant } from './Progress2.js';
|
|
10
|
-
//# sourceMappingURL=progress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import '../index2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './InputHelper.js';
|
|
11
|
-
import './InputLabel.js';
|
|
12
|
-
export { R as RadioButton, a as RadioGroup } from './RadioGroup.js';
|
|
13
|
-
//# sourceMappingURL=radio-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { b as _objectWithoutProperties } from './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
6
|
-
*
|
|
7
|
-
* Can be used to inject the `Link` component from `react-router` and provide better a11y on LumX components.
|
|
8
|
-
*
|
|
9
|
-
* @param linkAs Custom link component.
|
|
10
|
-
* @param children Link children.
|
|
11
|
-
* @return A link.
|
|
12
|
-
*/
|
|
13
|
-
var renderLink = function renderLink(_ref) {
|
|
14
|
-
var linkAs = _ref.linkAs,
|
|
15
|
-
forwardedProps = _objectWithoutProperties(_ref, ["linkAs"]);
|
|
16
|
-
|
|
17
|
-
for (var _len = arguments.length, children = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
18
|
-
children[_key - 1] = arguments[_key];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return React.createElement.apply(React, [linkAs || 'a', forwardedProps].concat(children));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { renderLink as r };
|
|
25
|
-
//# sourceMappingURL=renderLink.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderLink.js","sources":["../../../src/utils/renderLink.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react';\n\ninterface Props {\n linkAs: any;\n}\n\n/**\n * Render link with default <a> HTML component or a custom one provided by `linkAs`.\n *\n * Can be used to inject the `Link` component from `react-router` and provide better a11y on LumX components.\n *\n * @param linkAs Custom link component.\n * @param children Link children.\n * @return A link.\n */\nexport const renderLink = <P extends Props>({ linkAs, ...forwardedProps }: P, ...children: ReactNode[]): ReactElement =>\n React.createElement(linkAs || 'a', forwardedProps, ...children);\n"],"names":["renderLink","linkAs","forwardedProps","children","React","createElement"],"mappings":";;;AAMA;;;;;;;;;IASaA,UAAU,GAAG,SAAbA,UAAa;AAAA,MAAoBC,MAApB,QAAoBA,MAApB;AAAA,MAA+BC,cAA/B;;AAAA,oCAAuDC,QAAvD;AAAuDA,IAAAA,QAAvD;AAAA;;AAAA,SACtBC,KAAK,CAACC,aAAN,OAAAD,KAAK,GAAeH,MAAM,IAAI,GAAzB,EAA8BC,cAA9B,SAAiDC,QAAjD,EADiB;AAAA;;;;"}
|
package/esm/_internal/select.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import '../index2.js';
|
|
7
|
-
import 'lodash/isBoolean';
|
|
8
|
-
import 'lodash/isEmpty';
|
|
9
|
-
import 'lodash/kebabCase';
|
|
10
|
-
import 'lodash/noop';
|
|
11
|
-
import './constants.js';
|
|
12
|
-
import 'lodash/last';
|
|
13
|
-
import 'lodash/get';
|
|
14
|
-
import './type.js';
|
|
15
|
-
import './Popover2.js';
|
|
16
|
-
import './mergeRefs.js';
|
|
17
|
-
import './renderLink.js';
|
|
18
|
-
import './ButtonRoot.js';
|
|
19
|
-
import './IconButton.js';
|
|
20
|
-
import 'lodash/isFunction';
|
|
21
|
-
import './Chip2.js';
|
|
22
|
-
import './ClickAwayProvider.js';
|
|
23
|
-
import 'lodash/pull';
|
|
24
|
-
import 'react-dom';
|
|
25
|
-
import './List2.js';
|
|
26
|
-
import './Dropdown2.js';
|
|
27
|
-
import './InputHelper.js';
|
|
28
|
-
import './InputLabel.js';
|
|
29
|
-
export { a as Select, c as SelectMultiple, b as SelectMultipleField, S as SelectVariant } from './SelectMultiple.js';
|
|
30
|
-
import './Tooltip2.js';
|
|
31
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import '../index2.js';
|
|
7
|
-
import 'lodash/isBoolean';
|
|
8
|
-
import 'lodash/isEmpty';
|
|
9
|
-
import 'lodash/kebabCase';
|
|
10
|
-
import 'lodash/noop';
|
|
11
|
-
import './constants.js';
|
|
12
|
-
import 'lodash/last';
|
|
13
|
-
import 'lodash/get';
|
|
14
|
-
import './type.js';
|
|
15
|
-
import './Popover2.js';
|
|
16
|
-
import './mergeRefs.js';
|
|
17
|
-
import './renderLink.js';
|
|
18
|
-
import './ButtonRoot.js';
|
|
19
|
-
import './IconButton.js';
|
|
20
|
-
import './ClickAwayProvider.js';
|
|
21
|
-
import 'lodash/pull';
|
|
22
|
-
import 'react-dom';
|
|
23
|
-
export { S as SideNavigation, a as SideNavigationItem } from './SideNavigationItem.js';
|
|
24
|
-
import './Tooltip2.js';
|
|
25
|
-
//# sourceMappingURL=side-navigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"side-navigation.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import 'lodash/isBoolean';
|
|
6
|
-
import 'lodash/isEmpty';
|
|
7
|
-
import 'lodash/kebabCase';
|
|
8
|
-
import 'lodash/noop';
|
|
9
|
-
export { S as SkeletonCircle, b as SkeletonRectangle, a as SkeletonRectangleVariant, c as SkeletonTypography } from './SkeletonTypography.js';
|
|
10
|
-
//# sourceMappingURL=skeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/esm/_internal/slider.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import '../index2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './InputHelper.js';
|
|
11
|
-
import './InputLabel.js';
|
|
12
|
-
export { S as Slider, c as clamp } from './Slider2.js';
|
|
13
|
-
//# sourceMappingURL=slider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import '../index2.js';
|
|
7
|
-
import 'lodash/isBoolean';
|
|
8
|
-
import 'lodash/isEmpty';
|
|
9
|
-
import 'lodash/kebabCase';
|
|
10
|
-
import 'lodash/noop';
|
|
11
|
-
import './constants.js';
|
|
12
|
-
import 'lodash/last';
|
|
13
|
-
import 'lodash/get';
|
|
14
|
-
import './Popover2.js';
|
|
15
|
-
import './mergeRefs.js';
|
|
16
|
-
import './renderLink.js';
|
|
17
|
-
import './ButtonRoot.js';
|
|
18
|
-
import './IconButton.js';
|
|
19
|
-
import 'lodash/isFunction';
|
|
20
|
-
import 'lodash/range';
|
|
21
|
-
import './ClickAwayProvider.js';
|
|
22
|
-
import 'lodash/pull';
|
|
23
|
-
import 'react-dom';
|
|
24
|
-
import './useRovingTabIndex.js';
|
|
25
|
-
export { c as Slides, S as Slideshow, b as SlideshowControls, a as SlideshowItem } from './Slides.js';
|
|
26
|
-
import 'lodash/uniqueId';
|
|
27
|
-
import 'lodash/chunk';
|
|
28
|
-
import './Tooltip2.js';
|
|
29
|
-
//# sourceMappingURL=slideshow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slideshow.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/_internal/state.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { e as _toConsumableArray, _ as _objectSpread2, a as _defineProperty, d as _slicedToArray } from './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { createContext, useContext, useMemo, useEffect, useCallback } from 'react';
|
|
3
|
-
import { u as uid } from '../index2.js';
|
|
4
|
-
|
|
5
|
-
var INIT_STATE = {
|
|
6
|
-
isLazy: true,
|
|
7
|
-
shouldActivateOnFocus: false,
|
|
8
|
-
activeTabIndex: 0,
|
|
9
|
-
ids: {
|
|
10
|
-
tab: [],
|
|
11
|
-
tabPanel: []
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
var reducer = function reducer(state, action) {
|
|
15
|
-
switch (action.type) {
|
|
16
|
-
case 'update':
|
|
17
|
-
return _objectSpread2({}, state, {}, action.payload);
|
|
18
|
-
|
|
19
|
-
case 'setActiveTabIndex':
|
|
20
|
-
{
|
|
21
|
-
if (state.activeTabIndex === action.payload) {
|
|
22
|
-
return state;
|
|
23
|
-
} // Change active tab index.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _objectSpread2({}, state, {
|
|
27
|
-
activeTabIndex: action.payload
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
case 'register':
|
|
32
|
-
{
|
|
33
|
-
var _action$payload = action.payload,
|
|
34
|
-
type = _action$payload.type,
|
|
35
|
-
id = _action$payload.id; // Append tab/tabPanel id in state.
|
|
36
|
-
|
|
37
|
-
return _objectSpread2({}, state, {
|
|
38
|
-
ids: _objectSpread2({}, state.ids, _defineProperty({}, type, [].concat(_toConsumableArray(state.ids[type]), [id])))
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
case 'unregister':
|
|
43
|
-
{
|
|
44
|
-
var _action$payload2 = action.payload,
|
|
45
|
-
_type = _action$payload2.type,
|
|
46
|
-
_id = _action$payload2.id;
|
|
47
|
-
|
|
48
|
-
var index = state.ids[_type].indexOf(_id);
|
|
49
|
-
|
|
50
|
-
if (index === -1) return state; // Remove tab & tab panel at index.
|
|
51
|
-
|
|
52
|
-
var tabIds = _toConsumableArray(state.ids.tab);
|
|
53
|
-
|
|
54
|
-
tabIds.splice(index, 1);
|
|
55
|
-
|
|
56
|
-
var tabPanelIds = _toConsumableArray(state.ids.tabPanel);
|
|
57
|
-
|
|
58
|
-
tabPanelIds.splice(index, 1);
|
|
59
|
-
return _objectSpread2({}, state, {
|
|
60
|
-
ids: {
|
|
61
|
-
tab: tabIds,
|
|
62
|
-
tabPanel: tabPanelIds
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
default:
|
|
68
|
-
return state;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
var TabProviderContext = createContext(null);
|
|
72
|
-
|
|
73
|
-
/* eslint-disable react-hooks/rules-of-hooks */
|
|
74
|
-
var useTabProviderContext = function useTabProviderContext(type, originalId) {
|
|
75
|
-
var context = useContext(TabProviderContext);
|
|
76
|
-
|
|
77
|
-
if (!context) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
var _context = _slicedToArray(context, 2),
|
|
82
|
-
state = _context[0],
|
|
83
|
-
dispatch = _context[1]; // Current tab or tab panel id.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var id = useMemo(function () {
|
|
87
|
-
return originalId || "".concat(type, "-").concat(uid());
|
|
88
|
-
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
89
|
-
[]);
|
|
90
|
-
useEffect(function () {
|
|
91
|
-
// On mount: register tab or tab panel id.
|
|
92
|
-
dispatch({
|
|
93
|
-
type: 'register',
|
|
94
|
-
payload: {
|
|
95
|
-
type: type,
|
|
96
|
-
id: id
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
return function () {
|
|
100
|
-
// On unmount: unregister tab or tab panel id.
|
|
101
|
-
dispatch({
|
|
102
|
-
type: 'unregister',
|
|
103
|
-
payload: {
|
|
104
|
-
type: type,
|
|
105
|
-
id: id
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
110
|
-
[]); // Find tab/tabPanel index using it's id.
|
|
111
|
-
|
|
112
|
-
var index = useMemo(function () {
|
|
113
|
-
return state.ids[type].indexOf(id);
|
|
114
|
-
}, [state.ids, type, id]);
|
|
115
|
-
var tabId = useMemo(function () {
|
|
116
|
-
return state.ids.tab[index] || '';
|
|
117
|
-
}, [state, index]);
|
|
118
|
-
var tabPanelId = useMemo(function () {
|
|
119
|
-
return state.ids.tabPanel[index] || '';
|
|
120
|
-
}, [state, index]);
|
|
121
|
-
var isActive = useMemo(function () {
|
|
122
|
-
return state.activeTabIndex === index;
|
|
123
|
-
}, [state, index]);
|
|
124
|
-
var changeToTab = useCallback(function () {
|
|
125
|
-
return dispatch({
|
|
126
|
-
type: 'setActiveTabIndex',
|
|
127
|
-
payload: index
|
|
128
|
-
});
|
|
129
|
-
}, [dispatch, index]);
|
|
130
|
-
return {
|
|
131
|
-
isLazy: state.isLazy,
|
|
132
|
-
shouldActivateOnFocus: state.shouldActivateOnFocus,
|
|
133
|
-
tabId: tabId,
|
|
134
|
-
tabPanelId: tabPanelId,
|
|
135
|
-
isActive: isActive,
|
|
136
|
-
changeToTab: changeToTab
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
var useTabProviderContextState = function useTabProviderContextState() {
|
|
140
|
-
var context = useContext(TabProviderContext);
|
|
141
|
-
return context === null || context === void 0 ? void 0 : context[0];
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export { INIT_STATE as I, TabProviderContext as T, useTabProviderContext as a, reducer as r, useTabProviderContextState as u };
|
|
145
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sources":["../../../src/components/tabs/state.ts"],"sourcesContent":["import { Dispatch, createContext, useCallback, useContext, useEffect, useMemo } from 'react';\nimport { uid } from 'uid';\n\ntype TabType = 'tab' | 'tabPanel';\n\nexport interface State {\n isLazy: boolean;\n shouldActivateOnFocus: boolean;\n activeTabIndex: number;\n ids: Record<TabType, string[]>;\n}\n\nexport const INIT_STATE: State = {\n isLazy: true,\n shouldActivateOnFocus: false,\n activeTabIndex: 0,\n ids: { tab: [], tabPanel: [] },\n};\n\nexport type Action =\n | { type: 'update'; payload: Partial<State> }\n | { type: 'setActiveTabIndex'; payload: number }\n | { type: 'register'; payload: { type: TabType; id: string } }\n | { type: 'unregister'; payload: { type: TabType; id: string } };\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case 'update':\n return { ...state, ...action.payload };\n case 'setActiveTabIndex': {\n if (state.activeTabIndex === action.payload) {\n return state;\n }\n // Change active tab index.\n return { ...state, activeTabIndex: action.payload };\n }\n case 'register': {\n const { type, id } = action.payload;\n // Append tab/tabPanel id in state.\n return { ...state, ids: { ...state.ids, [type]: [...state.ids[type], id] } };\n }\n case 'unregister': {\n const { type, id } = action.payload;\n const index = state.ids[type].indexOf(id);\n if (index === -1) return state;\n // Remove tab & tab panel at index.\n const tabIds = [...state.ids.tab];\n tabIds.splice(index, 1);\n const tabPanelIds = [...state.ids.tabPanel];\n tabPanelIds.splice(index, 1);\n return {\n ...state,\n ids: { tab: tabIds, tabPanel: tabPanelIds },\n };\n }\n default:\n return state;\n }\n};\n\nexport const TabProviderContext = createContext<[State, Dispatch<Action>] | null>(null);\n\nexport type TabState = Pick<Required<State>, 'isLazy' | 'shouldActivateOnFocus'> & {\n isActive: boolean;\n tabId: string;\n tabPanelId: string;\n changeToTab(): void;\n};\n\n/* eslint-disable react-hooks/rules-of-hooks */\nexport const useTabProviderContext = (type: TabType, originalId?: string): undefined | TabState => {\n const context = useContext(TabProviderContext);\n if (!context) {\n return undefined;\n }\n const [state, dispatch] = context;\n\n // Current tab or tab panel id.\n const id = useMemo(\n () => originalId || `${type}-${uid()}`,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n useEffect(\n () => {\n // On mount: register tab or tab panel id.\n dispatch({ type: 'register', payload: { type, id } });\n return () => {\n // On unmount: unregister tab or tab panel id.\n dispatch({ type: 'unregister', payload: { type, id } });\n };\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n // Find tab/tabPanel index using it's id.\n const index = useMemo(() => state.ids[type].indexOf(id), [state.ids, type, id]);\n const tabId = useMemo(() => state.ids.tab[index] || '', [state, index]);\n const tabPanelId = useMemo(() => state.ids.tabPanel[index] || '', [state, index]);\n const isActive = useMemo(() => state.activeTabIndex === index, [state, index]);\n const changeToTab = useCallback(() => dispatch({ type: 'setActiveTabIndex', payload: index }), [dispatch, index]);\n return {\n isLazy: state.isLazy,\n shouldActivateOnFocus: state.shouldActivateOnFocus,\n tabId,\n tabPanelId,\n isActive,\n changeToTab,\n };\n};\n\nexport const useTabProviderContextState = (): State | undefined => {\n const context = useContext(TabProviderContext);\n return context?.[0];\n};\n"],"names":["INIT_STATE","isLazy","shouldActivateOnFocus","activeTabIndex","ids","tab","tabPanel","reducer","state","action","type","payload","id","index","indexOf","tabIds","splice","tabPanelIds","TabProviderContext","createContext","useTabProviderContext","originalId","context","useContext","undefined","dispatch","useMemo","uid","useEffect","tabId","tabPanelId","isActive","changeToTab","useCallback","useTabProviderContextState"],"mappings":"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"}
|
package/esm/_internal/switch.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import '../index2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import './InputHelper.js';
|
|
11
|
-
import './InputLabel.js';
|
|
12
|
-
export { S as Switch } from './Switch2.js';
|
|
13
|
-
//# sourceMappingURL=switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/esm/_internal/table.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import './components.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
|
-
import 'lodash/isBoolean';
|
|
7
|
-
import 'lodash/isEmpty';
|
|
8
|
-
import 'lodash/kebabCase';
|
|
9
|
-
import 'lodash/noop';
|
|
10
|
-
import 'lodash/isFunction';
|
|
11
|
-
export { T as Table, a as TableBody, d as TableCell, c as TableCellVariant, e as TableHeader, f as TableRow, b as ThOrder } from './TableRow.js';
|
|
12
|
-
//# sourceMappingURL=table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|