@lumx/react 3.0.2 → 3.0.3
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,132 +0,0 @@
|
|
|
1
|
-
import { b as _objectWithoutProperties, _ as _objectSpread2, c as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { Size, Orientation, Theme, ColorPalette } from './components.js';
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { g as getRootClassName, c as classnames, h as handleBasicClasses } from './getRootClassName.js';
|
|
5
|
-
import isEmpty from 'lodash/isEmpty';
|
|
6
|
-
import { A as Avatar } from './Avatar2.js';
|
|
7
|
-
import { L as Link } from './Link2.js';
|
|
8
|
-
import set from 'lodash/set';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Component display name.
|
|
12
|
-
*/
|
|
13
|
-
var COMPONENT_NAME = 'UserBlock';
|
|
14
|
-
/**
|
|
15
|
-
* Component default class name and class prefix.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
var CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
19
|
-
/**
|
|
20
|
-
* Component default props.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
var DEFAULT_PROPS = {
|
|
24
|
-
orientation: Orientation.horizontal,
|
|
25
|
-
size: Size.m,
|
|
26
|
-
theme: Theme.light
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* UserBlock component.
|
|
30
|
-
*
|
|
31
|
-
* @param props Component props.
|
|
32
|
-
* @param ref Component ref.
|
|
33
|
-
* @return React element.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
var UserBlock = forwardRef(function (props, ref) {
|
|
37
|
-
var avatarProps = props.avatarProps,
|
|
38
|
-
className = props.className,
|
|
39
|
-
fields = props.fields,
|
|
40
|
-
linkProps = props.linkProps,
|
|
41
|
-
linkAs = props.linkAs,
|
|
42
|
-
multipleActions = props.multipleActions,
|
|
43
|
-
name = props.name,
|
|
44
|
-
nameProps = props.nameProps,
|
|
45
|
-
onClick = props.onClick,
|
|
46
|
-
onMouseEnter = props.onMouseEnter,
|
|
47
|
-
onMouseLeave = props.onMouseLeave,
|
|
48
|
-
orientation = props.orientation,
|
|
49
|
-
simpleAction = props.simpleAction,
|
|
50
|
-
size = props.size,
|
|
51
|
-
theme = props.theme,
|
|
52
|
-
forwardedProps = _objectWithoutProperties(props, ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"]);
|
|
53
|
-
|
|
54
|
-
var componentSize = size; // Special case - When using vertical orientation force the size to be Sizes.l.
|
|
55
|
-
|
|
56
|
-
if (orientation === Orientation.vertical) {
|
|
57
|
-
componentSize = Size.l;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var shouldDisplayActions = orientation === Orientation.vertical;
|
|
61
|
-
var isLink = Boolean((linkProps === null || linkProps === void 0 ? void 0 : linkProps.href) || linkAs);
|
|
62
|
-
var isClickable = !!onClick || isLink;
|
|
63
|
-
var nameBlock = React.useMemo(function () {
|
|
64
|
-
if (isEmpty(name)) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var NameComponent = 'span';
|
|
69
|
-
|
|
70
|
-
var nProps = _objectSpread2({}, nameProps, {
|
|
71
|
-
className: classnames("".concat(CLASSNAME, "__name"), linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
if (isClickable) {
|
|
75
|
-
NameComponent = Link;
|
|
76
|
-
Object.assign(nProps, _objectSpread2({}, linkProps, {
|
|
77
|
-
onClick: onClick,
|
|
78
|
-
linkAs: linkAs,
|
|
79
|
-
color: ColorPalette.dark
|
|
80
|
-
}));
|
|
81
|
-
} // Disable avatar focus since the name block is the same link / same button.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (avatarProps) {
|
|
85
|
-
set(avatarProps, ['thumbnailProps', 'tabIndex'], -1);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return React.createElement(NameComponent, nProps, name);
|
|
89
|
-
}, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
|
|
90
|
-
var fieldsBlock = fields && componentSize !== Size.s && React.createElement("div", {
|
|
91
|
-
className: "".concat(CLASSNAME, "__fields")
|
|
92
|
-
}, fields.map(function (field, idx) {
|
|
93
|
-
return React.createElement("span", {
|
|
94
|
-
key: idx,
|
|
95
|
-
className: "".concat(CLASSNAME, "__field")
|
|
96
|
-
}, field);
|
|
97
|
-
}));
|
|
98
|
-
return React.createElement("div", _extends({
|
|
99
|
-
ref: ref
|
|
100
|
-
}, forwardedProps, {
|
|
101
|
-
className: classnames(className, handleBasicClasses({
|
|
102
|
-
prefix: CLASSNAME,
|
|
103
|
-
orientation: orientation,
|
|
104
|
-
size: componentSize,
|
|
105
|
-
theme: theme,
|
|
106
|
-
isClickable: isClickable
|
|
107
|
-
})),
|
|
108
|
-
onMouseLeave: onMouseLeave,
|
|
109
|
-
onMouseEnter: onMouseEnter
|
|
110
|
-
}), avatarProps && React.createElement(Avatar, _extends({
|
|
111
|
-
linkAs: linkAs,
|
|
112
|
-
linkProps: linkProps,
|
|
113
|
-
alt: ""
|
|
114
|
-
}, avatarProps, {
|
|
115
|
-
className: classnames("".concat(CLASSNAME, "__avatar"), avatarProps.className),
|
|
116
|
-
size: componentSize,
|
|
117
|
-
onClick: onClick,
|
|
118
|
-
theme: theme
|
|
119
|
-
})), (fields || name) && React.createElement("div", {
|
|
120
|
-
className: "".concat(CLASSNAME, "__wrapper")
|
|
121
|
-
}, nameBlock, fieldsBlock), shouldDisplayActions && simpleAction && React.createElement("div", {
|
|
122
|
-
className: "".concat(CLASSNAME, "__action")
|
|
123
|
-
}, simpleAction), shouldDisplayActions && multipleActions && React.createElement("div", {
|
|
124
|
-
className: "".concat(CLASSNAME, "__actions")
|
|
125
|
-
}, multipleActions));
|
|
126
|
-
});
|
|
127
|
-
UserBlock.displayName = COMPONENT_NAME;
|
|
128
|
-
UserBlock.className = CLASSNAME;
|
|
129
|
-
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
130
|
-
|
|
131
|
-
export { UserBlock as U };
|
|
132
|
-
//# sourceMappingURL=UserBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserBlock.js","sources":["../../../src/components/user-block/UserBlock.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\nimport isEmpty from 'lodash/isEmpty';\nimport classNames from 'classnames';\nimport set from 'lodash/set';\n\nimport { Avatar, ColorPalette, Link, Orientation, Size, Theme } from '@lumx/react';\nimport { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';\n\nimport { AvatarProps } from '../avatar/Avatar';\n\n/**\n * User block sizes.\n */\nexport type UserBlockSize = Extract<Size, 's' | 'm' | 'l'>;\n\n/**\n * Defines the props of the component.\n */\nexport interface UserBlockProps extends GenericProps, HasTheme {\n /** Props to pass to the avatar. */\n avatarProps?: Omit<AvatarProps, 'alt'>;\n /** Additional fields used to describe the user. */\n fields?: string[];\n /** Props to pass to the link wrapping the avatar thumbnail. */\n linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;\n /** Custom react component for the link (can be used to inject react router Link). */\n linkAs?: 'a' | any;\n /** Multiple action toolbar content. */\n multipleActions?: ReactNode;\n /** User name. */\n name?: string;\n /** Props to pass to the name block. */\n nameProps?: GenericProps;\n /** Orientation. */\n orientation?: Orientation;\n /** Simple action toolbar content. */\n simpleAction?: ReactNode;\n /** Size variant. */\n size?: UserBlockSize;\n /** On click callback. */\n onClick?(): void;\n /** On mouse enter callback. */\n onMouseEnter?(): void;\n /** On mouse leave callback. */\n onMouseLeave?(): void;\n}\n\n/**\n * Component display name.\n */\nconst COMPONENT_NAME = 'UserBlock';\n\n/**\n * Component default class name and class prefix.\n */\nconst CLASSNAME = getRootClassName(COMPONENT_NAME);\n\n/**\n * Component default props.\n */\nconst DEFAULT_PROPS: Partial<UserBlockProps> = {\n orientation: Orientation.horizontal,\n size: Size.m,\n theme: Theme.light,\n};\n\n/**\n * UserBlock component.\n *\n * @param props Component props.\n * @param ref Component ref.\n * @return React element.\n */\nexport const UserBlock: Comp<UserBlockProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n avatarProps,\n className,\n fields,\n linkProps,\n linkAs,\n multipleActions,\n name,\n nameProps,\n onClick,\n onMouseEnter,\n onMouseLeave,\n orientation,\n simpleAction,\n size,\n theme,\n ...forwardedProps\n } = props;\n let componentSize = size;\n\n // Special case - When using vertical orientation force the size to be Sizes.l.\n if (orientation === Orientation.vertical) {\n componentSize = Size.l;\n }\n\n const shouldDisplayActions: boolean = orientation === Orientation.vertical;\n\n const isLink = Boolean(linkProps?.href || linkAs);\n const isClickable = !!onClick || isLink;\n\n const nameBlock: ReactNode = React.useMemo(() => {\n if (isEmpty(name)) {\n return null;\n }\n let NameComponent: any = 'span';\n const nProps: any = {\n ...nameProps,\n className: classNames(`${CLASSNAME}__name`, linkProps?.className, nameProps?.className),\n };\n if (isClickable) {\n NameComponent = Link;\n Object.assign(nProps, {\n ...linkProps,\n onClick,\n linkAs,\n color: ColorPalette.dark,\n });\n }\n // Disable avatar focus since the name block is the same link / same button.\n if (avatarProps) {\n set(avatarProps, ['thumbnailProps', 'tabIndex'], -1);\n }\n return <NameComponent {...nProps}>{name}</NameComponent>;\n }, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);\n\n const fieldsBlock: ReactNode = fields && componentSize !== Size.s && (\n <div className={`${CLASSNAME}__fields`}>\n {fields.map((field: string, idx: number) => (\n <span key={idx} className={`${CLASSNAME}__field`}>\n {field}\n </span>\n ))}\n </div>\n );\n\n return (\n <div\n ref={ref}\n {...forwardedProps}\n className={classNames(\n className,\n handleBasicClasses({ prefix: CLASSNAME, orientation, size: componentSize, theme, isClickable }),\n )}\n onMouseLeave={onMouseLeave}\n onMouseEnter={onMouseEnter}\n >\n {avatarProps && (\n <Avatar\n linkAs={linkAs}\n linkProps={linkProps}\n alt=\"\"\n {...(avatarProps as any)}\n className={classNames(`${CLASSNAME}__avatar`, avatarProps.className)}\n size={componentSize}\n onClick={onClick}\n theme={theme}\n />\n )}\n {(fields || name) && (\n <div className={`${CLASSNAME}__wrapper`}>\n {nameBlock}\n {fieldsBlock}\n </div>\n )}\n {shouldDisplayActions && simpleAction && <div className={`${CLASSNAME}__action`}>{simpleAction}</div>}\n {shouldDisplayActions && multipleActions && (\n <div className={`${CLASSNAME}__actions`}>{multipleActions}</div>\n )}\n </div>\n );\n});\nUserBlock.displayName = COMPONENT_NAME;\nUserBlock.className = CLASSNAME;\nUserBlock.defaultProps = DEFAULT_PROPS;\n"],"names":["COMPONENT_NAME","CLASSNAME","getRootClassName","DEFAULT_PROPS","orientation","Orientation","horizontal","size","Size","m","theme","Theme","light","UserBlock","forwardRef","props","ref","avatarProps","className","fields","linkProps","linkAs","multipleActions","name","nameProps","onClick","onMouseEnter","onMouseLeave","simpleAction","forwardedProps","componentSize","vertical","l","shouldDisplayActions","isLink","Boolean","href","isClickable","nameBlock","React","useMemo","isEmpty","NameComponent","nProps","classNames","Link","Object","assign","color","ColorPalette","dark","set","fieldsBlock","s","map","field","idx","handleBasicClasses","prefix","displayName","defaultProps"],"mappings":";;;;;;;;;AA+CA;;;AAGA,IAAMA,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L,EAEKc,WAFL,CAvBR,EA4BKnB,oBAAoB,IAAIL,YAAxB,IAAwC;AAAK,IAAA,SAAS,YAAK3B,SAAL;AAAd,KAAyC2B,YAAzC,CA5B7C,EA6BKK,oBAAoB,IAAIX,eAAxB,IACG;AAAK,IAAA,SAAS,YAAKrB,SAAL;AAAd,KAA0CqB,eAA1C,CA9BR,CADJ;AAmCH,CArGwE;AAsGzET,SAAS,CAAC8C,WAAV,GAAwB3D,cAAxB;AACAa,SAAS,CAACK,SAAV,GAAsBjB,SAAtB;AACAY,SAAS,CAAC+C,YAAV,GAAyBzD,aAAzB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,34 +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/concat';
|
|
13
|
-
import 'lodash/dropRight';
|
|
14
|
-
import 'lodash/last';
|
|
15
|
-
import 'lodash/partition';
|
|
16
|
-
import 'lodash/reduce';
|
|
17
|
-
import './partitionMulti.js';
|
|
18
|
-
import 'lodash/get';
|
|
19
|
-
import './type.js';
|
|
20
|
-
export { A as AlertDialog } from './AlertDialog.js';
|
|
21
|
-
import './mergeRefs.js';
|
|
22
|
-
import './renderLink.js';
|
|
23
|
-
import './ButtonRoot.js';
|
|
24
|
-
import './Button2.js';
|
|
25
|
-
import './ClickAwayProvider.js';
|
|
26
|
-
import 'lodash/pull';
|
|
27
|
-
import './useFocusTrap.js';
|
|
28
|
-
import 'react-dom';
|
|
29
|
-
import './Dialog2.js';
|
|
30
|
-
import './useDelayedVisibility.js';
|
|
31
|
-
import './useDisableBodyScroll.js';
|
|
32
|
-
import './Progress2.js';
|
|
33
|
-
import './Toolbar2.js';
|
|
34
|
-
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,32 +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
|
-
export { A as Autocomplete, a as AutocompleteMultiple } from './AutocompleteMultiple.js';
|
|
18
|
-
import './renderLink.js';
|
|
19
|
-
import './ButtonRoot.js';
|
|
20
|
-
import './IconButton.js';
|
|
21
|
-
import 'lodash/isFunction';
|
|
22
|
-
import './Chip2.js';
|
|
23
|
-
import './ClickAwayProvider.js';
|
|
24
|
-
import 'lodash/pull';
|
|
25
|
-
import 'react-dom';
|
|
26
|
-
import './List2.js';
|
|
27
|
-
import './Dropdown2.js';
|
|
28
|
-
import './InputHelper.js';
|
|
29
|
-
import './InputLabel.js';
|
|
30
|
-
import './TextField.js';
|
|
31
|
-
import './Tooltip2.js';
|
|
32
|
-
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/_internal/avatar.js
DELETED
|
@@ -1,13 +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
|
-
export { A as Avatar } from './Avatar2.js';
|
|
12
|
-
import './Thumbnail2.js';
|
|
13
|
-
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/esm/_internal/badge.js
DELETED
|
@@ -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 { B as Badge } from './Badge2.js';
|
|
10
|
-
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/esm/_internal/button.js
DELETED
|
@@ -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 './Popover2.js';
|
|
15
|
-
import './mergeRefs.js';
|
|
16
|
-
import './renderLink.js';
|
|
17
|
-
import './ButtonRoot.js';
|
|
18
|
-
export { a as Button, B as ButtonEmphasis } from './Button2.js';
|
|
19
|
-
export { I as IconButton } from './IconButton.js';
|
|
20
|
-
export { B as ButtonGroup } from './ButtonGroup.js';
|
|
21
|
-
import './ClickAwayProvider.js';
|
|
22
|
-
import 'lodash/pull';
|
|
23
|
-
import 'react-dom';
|
|
24
|
-
import './Tooltip2.js';
|
|
25
|
-
//# sourceMappingURL=button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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 '../index2.js';
|
|
7
|
-
import 'lodash/isBoolean';
|
|
8
|
-
import 'lodash/isEmpty';
|
|
9
|
-
import 'lodash/kebabCase';
|
|
10
|
-
import 'lodash/noop';
|
|
11
|
-
export { C as Checkbox } from './Checkbox2.js';
|
|
12
|
-
import './InputHelper.js';
|
|
13
|
-
import './InputLabel.js';
|
|
14
|
-
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/esm/_internal/chip.js
DELETED
|
@@ -1,12 +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/isFunction';
|
|
10
|
-
export { C as Chip } from './Chip2.js';
|
|
11
|
-
export { C as ChipGroup } from './ChipGroup.js';
|
|
12
|
-
//# sourceMappingURL=chip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chip.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,24 +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 './Avatar2.js';
|
|
17
|
-
import 'lodash/isFunction';
|
|
18
|
-
export { a as CommentBlock, C as CommentBlockVariant } from './CommentBlock.js';
|
|
19
|
-
import './ClickAwayProvider.js';
|
|
20
|
-
import 'lodash/pull';
|
|
21
|
-
import 'react-dom';
|
|
22
|
-
import './Thumbnail2.js';
|
|
23
|
-
import './Tooltip2.js';
|
|
24
|
-
//# sourceMappingURL=comment-block.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comment-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Alignments.
|
|
5
|
-
*/
|
|
6
|
-
var Alignment = {
|
|
7
|
-
bottom: 'bottom',
|
|
8
|
-
center: 'center',
|
|
9
|
-
end: 'end',
|
|
10
|
-
left: 'left',
|
|
11
|
-
right: 'right',
|
|
12
|
-
spaceAround: 'space-around',
|
|
13
|
-
spaceBetween: 'space-between',
|
|
14
|
-
spaceEvenly: 'space-evenly',
|
|
15
|
-
start: 'start',
|
|
16
|
-
top: 'top'
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* See SCSS variable $lumx-color-palette
|
|
21
|
-
*/
|
|
22
|
-
var ColorPalette = {
|
|
23
|
-
primary: 'primary',
|
|
24
|
-
secondary: 'secondary',
|
|
25
|
-
blue: 'blue',
|
|
26
|
-
dark: 'dark',
|
|
27
|
-
green: 'green',
|
|
28
|
-
yellow: 'yellow',
|
|
29
|
-
red: 'red',
|
|
30
|
-
light: 'light',
|
|
31
|
-
grey: 'grey'
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* See SCSS variable $lumx-color-variants
|
|
36
|
-
*/
|
|
37
|
-
var ColorVariant = {
|
|
38
|
-
D1: 'D1',
|
|
39
|
-
D2: 'D2',
|
|
40
|
-
L1: 'L1',
|
|
41
|
-
L2: 'L2',
|
|
42
|
-
L3: 'L3',
|
|
43
|
-
L4: 'L4',
|
|
44
|
-
L5: 'L5',
|
|
45
|
-
L6: 'L6',
|
|
46
|
-
N: 'N'
|
|
47
|
-
};
|
|
48
|
-
var Theme = {
|
|
49
|
-
light: 'light',
|
|
50
|
-
dark: 'dark'
|
|
51
|
-
};
|
|
52
|
-
var Size = {
|
|
53
|
-
xxs: 'xxs',
|
|
54
|
-
xs: 'xs',
|
|
55
|
-
s: 's',
|
|
56
|
-
m: 'm',
|
|
57
|
-
l: 'l',
|
|
58
|
-
xl: 'xl',
|
|
59
|
-
xxl: 'xxl',
|
|
60
|
-
tiny: 'tiny',
|
|
61
|
-
regular: 'regular',
|
|
62
|
-
medium: 'medium',
|
|
63
|
-
big: 'big',
|
|
64
|
-
huge: 'huge'
|
|
65
|
-
};
|
|
66
|
-
var Orientation = {
|
|
67
|
-
horizontal: 'horizontal',
|
|
68
|
-
vertical: 'vertical'
|
|
69
|
-
};
|
|
70
|
-
var Emphasis = {
|
|
71
|
-
low: 'low',
|
|
72
|
-
medium: 'medium',
|
|
73
|
-
high: 'high'
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* List of typographies that can't be customized.
|
|
78
|
-
*/
|
|
79
|
-
var TypographyInterface = {
|
|
80
|
-
overline: 'overline',
|
|
81
|
-
caption: 'caption',
|
|
82
|
-
body1: 'body1',
|
|
83
|
-
body2: 'body2',
|
|
84
|
-
subtitle1: 'subtitle1',
|
|
85
|
-
subtitle2: 'subtitle2',
|
|
86
|
-
title: 'title',
|
|
87
|
-
headline: 'headline',
|
|
88
|
-
display1: 'display1'
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* List of title typographies that can be customized (via CSS variables).
|
|
93
|
-
*/
|
|
94
|
-
var TypographyTitleCustom = {
|
|
95
|
-
title1: 'custom-title1',
|
|
96
|
-
title2: 'custom-title2',
|
|
97
|
-
title3: 'custom-title3',
|
|
98
|
-
title4: 'custom-title4',
|
|
99
|
-
title5: 'custom-title5',
|
|
100
|
-
title6: 'custom-title6'
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* List of typographies that can be customized (via CSS variables).
|
|
105
|
-
*/
|
|
106
|
-
var TypographyCustom = _objectSpread2({}, TypographyTitleCustom, {
|
|
107
|
-
intro: 'custom-intro',
|
|
108
|
-
'body-large': 'custom-body-large',
|
|
109
|
-
body: 'custom-body',
|
|
110
|
-
quote: 'custom-quote',
|
|
111
|
-
'publish-info': 'custom-publish-info',
|
|
112
|
-
button: 'custom-button'
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* List of all typographies.
|
|
117
|
-
*/
|
|
118
|
-
var Typography = _objectSpread2({}, TypographyInterface, {
|
|
119
|
-
custom: TypographyCustom
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* All available aspect ratios.
|
|
124
|
-
*/
|
|
125
|
-
var AspectRatio = {
|
|
126
|
-
/** Intrinsic content ratio. */
|
|
127
|
-
original: 'original',
|
|
128
|
-
|
|
129
|
-
/** Ratio 16:9 */
|
|
130
|
-
wide: 'wide',
|
|
131
|
-
|
|
132
|
-
/** Ratio 3:2 */
|
|
133
|
-
horizontal: 'horizontal',
|
|
134
|
-
|
|
135
|
-
/** Ratio 3:2 */
|
|
136
|
-
vertical: 'vertical',
|
|
137
|
-
|
|
138
|
-
/** Ratio 1:1 */
|
|
139
|
-
square: 'square',
|
|
140
|
-
|
|
141
|
-
/** Ratio constrained by the parent. */
|
|
142
|
-
free: 'free'
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Semantic info about the purpose of the component
|
|
147
|
-
*/
|
|
148
|
-
var Kind = {
|
|
149
|
-
info: 'info',
|
|
150
|
-
success: 'success',
|
|
151
|
-
warning: 'warning',
|
|
152
|
-
error: 'error'
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
export { Alignment, AspectRatio, ColorPalette, ColorVariant, Emphasis, Kind, Orientation, Size, Theme, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom };
|
|
156
|
-
//# sourceMappingURL=components.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sources":["../../../src/components/index.ts"],"sourcesContent":["import { ValueOf } from '@lumx/react/utils';\n\n/**\n * Alignments.\n */\nexport const Alignment = {\n bottom: 'bottom',\n center: 'center',\n end: 'end',\n left: 'left',\n right: 'right',\n spaceAround: 'space-around',\n spaceBetween: 'space-between',\n spaceEvenly: 'space-evenly',\n start: 'start',\n top: 'top',\n} as const;\nexport type Alignment = ValueOf<typeof Alignment>;\nexport type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;\nexport type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;\n\n/**\n * See SCSS variable $lumx-color-palette\n */\nexport const ColorPalette = {\n primary: 'primary',\n secondary: 'secondary',\n blue: 'blue',\n dark: 'dark',\n green: 'green',\n yellow: 'yellow',\n red: 'red',\n light: 'light',\n grey: 'grey',\n} as const;\nexport type ColorPalette = ValueOf<typeof ColorPalette>;\nexport type Color = ColorPalette | string;\n\n/**\n * See SCSS variable $lumx-color-variants\n */\nexport const ColorVariant = {\n D1: 'D1',\n D2: 'D2',\n L1: 'L1',\n L2: 'L2',\n L3: 'L3',\n L4: 'L4',\n L5: 'L5',\n L6: 'L6',\n N: 'N',\n} as const;\nexport type ColorVariant = ValueOf<typeof ColorVariant>;\n\nexport const Theme = {\n light: 'light',\n dark: 'dark',\n} as const;\nexport type Theme = ValueOf<typeof Theme>;\n\nexport const Size = {\n xxs: 'xxs',\n xs: 'xs',\n s: 's',\n m: 'm',\n l: 'l',\n xl: 'xl',\n xxl: 'xxl',\n tiny: 'tiny',\n regular: 'regular',\n medium: 'medium',\n big: 'big',\n huge: 'huge',\n} as const;\nexport type Size = ValueOf<typeof Size>;\nexport type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;\n\nexport const Orientation = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const;\nexport type Orientation = ValueOf<typeof Orientation>;\n\nexport const Emphasis = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\nexport type Emphasis = ValueOf<typeof Emphasis>;\n\n/**\n * List of typographies that can't be customized.\n */\nexport const TypographyInterface = {\n overline: 'overline',\n caption: 'caption',\n body1: 'body1',\n body2: 'body2',\n subtitle1: 'subtitle1',\n subtitle2: 'subtitle2',\n title: 'title',\n headline: 'headline',\n display1: 'display1',\n} as const;\nexport type TypographyInterface = ValueOf<typeof TypographyInterface>;\n\n/**\n * List of title typographies that can be customized (via CSS variables).\n */\nexport const TypographyTitleCustom = {\n title1: 'custom-title1',\n title2: 'custom-title2',\n title3: 'custom-title3',\n title4: 'custom-title4',\n title5: 'custom-title5',\n title6: 'custom-title6',\n} as const;\nexport type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;\n\n/**\n * List of typographies that can be customized (via CSS variables).\n */\nexport const TypographyCustom = {\n ...TypographyTitleCustom,\n intro: 'custom-intro',\n 'body-large': 'custom-body-large',\n body: 'custom-body',\n quote: 'custom-quote',\n 'publish-info': 'custom-publish-info',\n button: 'custom-button',\n} as const;\nexport type TypographyCustom = ValueOf<typeof TypographyCustom>;\n\n/**\n * List of all typographies.\n */\nexport const Typography = {\n ...TypographyInterface,\n custom: TypographyCustom,\n} as const;\nexport type Typography = TypographyInterface | TypographyCustom;\n\n/**\n * All available aspect ratios.\n */\nexport const AspectRatio = {\n /** Intrinsic content ratio. */\n original: 'original',\n /** Ratio 16:9 */\n wide: 'wide',\n /** Ratio 3:2 */\n horizontal: 'horizontal',\n /** Ratio 3:2 */\n vertical: 'vertical',\n /** Ratio 1:1 */\n square: 'square',\n /** Ratio constrained by the parent. */\n free: 'free',\n} as const;\nexport type AspectRatio = ValueOf<typeof AspectRatio>;\n\n/**\n * Semantic info about the purpose of the component\n */\nexport const Kind = {\n info: 'info',\n success: 'success',\n warning: 'warning',\n error: 'error',\n} as const;\nexport type Kind = ValueOf<typeof Kind>;\n"],"names":["Alignment","bottom","center","end","left","right","spaceAround","spaceBetween","spaceEvenly","start","top","ColorPalette","primary","secondary","blue","dark","green","yellow","red","light","grey","ColorVariant","D1","D2","L1","L2","L3","L4","L5","L6","N","Theme","Size","xxs","xs","s","m","l","xl","xxl","tiny","regular","medium","big","huge","Orientation","horizontal","vertical","Emphasis","low","high","TypographyInterface","overline","caption","body1","body2","subtitle1","subtitle2","title","headline","display1","TypographyTitleCustom","title1","title2","title3","title4","title5","title6","TypographyCustom","intro","body","quote","button","Typography","custom","AspectRatio","original","wide","square","free","Kind","info","success","warning","error"],"mappings":";;AAEA;;;IAGaA,SAAS,GAAG;AACrBC,EAAAA,MAAM,EAAE,QADa;AAErBC,EAAAA,MAAM,EAAE,QAFa;AAGrBC,EAAAA,GAAG,EAAE,KAHgB;AAIrBC,EAAAA,IAAI,EAAE,MAJe;AAKrBC,EAAAA,KAAK,EAAE,OALc;AAMrBC,EAAAA,WAAW,EAAE,cANQ;AAOrBC,EAAAA,YAAY,EAAE,eAPO;AAQrBC,EAAAA,WAAW,EAAE,cARQ;AASrBC,EAAAA,KAAK,EAAE,OATc;AAUrBC,EAAAA,GAAG,EAAE;AAVgB;;AAgBzB;;;IAGaC,YAAY,GAAG;AACxBC,EAAAA,OAAO,EAAE,SADe;AAExBC,EAAAA,SAAS,EAAE,WAFa;AAGxBC,EAAAA,IAAI,EAAE,MAHkB;AAIxBC,EAAAA,IAAI,EAAE,MAJkB;AAKxBC,EAAAA,KAAK,EAAE,OALiB;AAMxBC,EAAAA,MAAM,EAAE,QANgB;AAOxBC,EAAAA,GAAG,EAAE,KAPmB;AAQxBC,EAAAA,KAAK,EAAE,OARiB;AASxBC,EAAAA,IAAI,EAAE;AATkB;;AAc5B;;;IAGaC,YAAY,GAAG;AACxBC,EAAAA,EAAE,EAAE,IADoB;AAExBC,EAAAA,EAAE,EAAE,IAFoB;AAGxBC,EAAAA,EAAE,EAAE,IAHoB;AA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AAA,QAAQ,EAAE;AATqB;;AAanC;;;IAGaC,qBAAqB,GAAG;AACjCC,EAAAA,MAAM,EAAE,eADyB;AAEjCC,EAAAA,MAAM,EAAE,eAFyB;AAGjCC,EAAAA,MAAM,EAAE,eAHyB;AAIjCC,EAAAA,MAAM,EAAE,eAJyB;AAKjCC,EAAAA,MAAM,EAAE,eALyB;AAMjCC,EAAAA,MAAM,EAAE;AANyB;;AAUrC;;;IAGaC,gBAAgB,sBACtBP,qBADsB;AAEzBQ,EAAAA,KAAK,EAAE,cAFkB;AAGzB,gBAAc,mBAHW;AAIzBC,EAAAA,IAAI,EAAE,aAJmB;AAKzBC,EAAAA,KAAK,EAAE,cALkB;AAMzB,kBAAgB,qBANS;AAOzBC,EAAAA,MAAM,EAAE;AAPiB;;AAW7B;;;IAGaC,UAAU,sBAChBtB,mBADgB;AAEnBuB,EAAAA,MAAM,EAAEN;AAFW;;AAMvB;;;IAGaO,WAAW,GAAG;AACvB;AACAC,EAAAA,QAAQ,EAAE,UAFa;;AAGvB;AACAC,EAAAA,IAAI,EAAE,MAJiB;;AAKvB;AACA/B,EAAAA,UAAU,EAAE,YANW;;AAOvB;AACAC,EAAAA,QAAQ,EAAE,UARa;;AASvB;AACA+B,EAAAA,MAAM,EAAE,QAVe;;AAWvB;AACAC,EAAAA,IAAI,EAAE;AAZiB;;AAgB3B;;;IAGaC,IAAI,GAAG;AAChBC,EAAAA,IAAI,EAAE,MADU;AAEhBC,EAAAA,OAAO,EAAE,SAFO;AAGhBC,EAAAA,OAAO,EAAE,SAHO;AAIhBC,EAAAA,KAAK,EAAE;AAJS;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optional global `window` instance (not defined when running SSR).
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
var WINDOW = typeof window !== "undefined" ? window : undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Optional global `document` instance (not defined when running SSR).
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var DOCUMENT = typeof document !== "undefined" ? document : undefined;
|
|
11
|
-
|
|
12
|
-
export { DOCUMENT as D, WINDOW as W };
|
|
13
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/constants.ts"],"sourcesContent":["export {\n CSS_PREFIX,\n DIALOG_TRANSITION_DURATION,\n NOTIFICATION_TRANSITION_DURATION,\n TOOLTIP_HOVER_DELAY,\n TOOLTIP_LONG_PRESS_DELAY,\n} from '@lumx/core/js/constants';\n\n/**\n * Optional global `window` instance (not defined when running SSR).\n */\nexport const WINDOW = typeof window !== `undefined` ? window : undefined;\n\n/**\n * Optional global `document` instance (not defined when running SSR).\n */\nexport const DOCUMENT = typeof document !== `undefined` ? document : undefined;\n"],"names":["WINDOW","window","undefined","DOCUMENT","document"],"mappings":"AAQA;;;;IAGaA,MAAM,GAAG,OAAOC,MAAP,mBAAgCA,MAAhC,GAAyCC;AAE/D;;;;IAGaC,QAAQ,GAAG,OAAOC,QAAP,mBAAkCA,QAAlC,GAA6CF;;;;"}
|
|
@@ -1,32 +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 'moment';
|
|
20
|
-
export { D as DatePicker, a as DatePickerControlled, b as DatePickerField } from './DatePickerField.js';
|
|
21
|
-
import 'lodash/range';
|
|
22
|
-
import 'moment-range';
|
|
23
|
-
import './ClickAwayProvider.js';
|
|
24
|
-
import 'lodash/pull';
|
|
25
|
-
import './useFocusTrap.js';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import './InputHelper.js';
|
|
28
|
-
import './InputLabel.js';
|
|
29
|
-
import './TextField.js';
|
|
30
|
-
import './Toolbar2.js';
|
|
31
|
-
import './Tooltip2.js';
|
|
32
|
-
//# sourceMappingURL=date-picker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/_internal/dialog.js
DELETED
|
@@ -1,27 +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 './constants.js';
|
|
10
|
-
import 'lodash/concat';
|
|
11
|
-
import 'lodash/dropRight';
|
|
12
|
-
import 'lodash/last';
|
|
13
|
-
import 'lodash/partition';
|
|
14
|
-
import 'lodash/reduce';
|
|
15
|
-
import './partitionMulti.js';
|
|
16
|
-
import 'lodash/get';
|
|
17
|
-
import './type.js';
|
|
18
|
-
import './mergeRefs.js';
|
|
19
|
-
import './ClickAwayProvider.js';
|
|
20
|
-
import 'lodash/pull';
|
|
21
|
-
import './useFocusTrap.js';
|
|
22
|
-
import 'react-dom';
|
|
23
|
-
export { D as Dialog } from './Dialog2.js';
|
|
24
|
-
import './useDelayedVisibility.js';
|
|
25
|
-
import './useDisableBodyScroll.js';
|
|
26
|
-
import './Progress2.js';
|
|
27
|
-
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/_internal/divider.js
DELETED
|
@@ -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 { D as DEFAULT_PROPS, a as Divider } from './Divider2.js';
|
|
10
|
-
//# sourceMappingURL=divider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|