@lumx/react 3.20.1-alpha.9 → 3.21.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/index.js +20 -13
- package/_internal/index.js.map +1 -1
- package/index.d.ts +60 -33
- package/index.js +2941 -3091
- package/index.js.map +1 -1
- package/package.json +5 -9
- package/src/components/alert-dialog/AlertDialog.stories.tsx +1 -1
- package/src/components/alert-dialog/AlertDialog.test.tsx +2 -0
- package/src/components/autocomplete/Autocomplete.stories.tsx +1 -1
- package/src/components/autocomplete/Autocomplete.test.tsx +2 -0
- package/src/components/autocomplete/Autocomplete.tsx +1 -1
- package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +1 -1
- package/src/components/autocomplete/AutocompleteMultiple.test.tsx +2 -0
- package/src/components/autocomplete/AutocompleteMultiple.tsx +1 -1
- package/src/components/avatar/Avatar.stories.tsx +2 -0
- package/src/components/avatar/Avatar.test.tsx +2 -0
- package/src/components/avatar/Avatar.tsx +1 -1
- package/src/components/badge/Badge.stories.tsx +1 -0
- package/src/components/badge/Badge.test.tsx +2 -0
- package/src/components/badge/Badge.tsx +1 -1
- package/src/components/badge/BadgeWrapper.stories.tsx +1 -0
- package/src/components/badge/BadgeWrapper.test.tsx +2 -0
- package/src/components/badge/BadgeWrapper.tsx +1 -1
- package/src/components/button/Button.stories.tsx +1 -0
- package/src/components/button/Button.test.tsx +2 -0
- package/src/components/button/Button.tsx +2 -0
- package/src/components/button/ButtonGroup.stories.tsx +2 -0
- package/src/components/button/ButtonGroup.test.tsx +2 -0
- package/src/components/button/ButtonGroup.tsx +2 -0
- package/src/components/button/ButtonRoot.tsx +1 -1
- package/src/components/button/IconButton.test.tsx +2 -0
- package/src/components/button/IconButton.tsx +2 -0
- package/src/components/checkbox/Checkbox.test.tsx +2 -0
- package/src/components/chip/Chip.stories.tsx +2 -0
- package/src/components/chip/Chip.test.tsx +2 -0
- package/src/components/chip/Chip.tsx +1 -1
- package/src/components/chip/ChipGroup.stories.tsx +2 -0
- package/src/components/chip/ChipGroup.test.tsx +2 -0
- package/src/components/chip/ChipGroup.tsx +1 -1
- package/src/components/comment-block/CommentBlock.stories.tsx +1 -0
- package/src/components/comment-block/CommentBlock.test.tsx +1 -0
- package/src/components/comment-block/CommentBlock.tsx +1 -1
- package/src/components/date-picker/DatePicker.test.tsx +2 -0
- package/src/components/date-picker/DatePicker.tsx +1 -1
- package/src/components/date-picker/DatePickerControlled.test.tsx +2 -0
- package/src/components/date-picker/DatePickerField.test.tsx +2 -0
- package/src/components/dialog/Dialog.test.tsx +2 -0
- package/src/components/divider/Divider.test.tsx +2 -0
- package/src/components/divider/Divider.tsx +2 -0
- package/src/components/drag-handle/DragHandle.test.tsx +2 -0
- package/src/components/drag-handle/DragHandle.tsx +2 -0
- package/src/components/dropdown/Dropdown.stories.tsx +1 -1
- package/src/components/dropdown/Dropdown.tsx +1 -1
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +2 -0
- package/src/components/flag/Flag.test.tsx +2 -0
- package/src/components/flag/Flag.tsx +2 -0
- package/src/components/flex-box/FlexBox.stories.tsx +2 -0
- package/src/components/flex-box/FlexBox.test.tsx +1 -0
- package/src/components/flex-box/FlexBox.tsx +1 -1
- package/src/components/generic-block/GenericBlock.test.tsx +1 -1
- package/src/components/grid/Grid.tsx +2 -0
- package/src/components/grid/GridItem.tsx +2 -0
- package/src/components/grid-column/GridColumn.stories.tsx +1 -0
- package/src/components/grid-column/GridColumn.test.jsx +2 -0
- package/src/components/grid-column/GridColumn.tsx +1 -1
- package/src/components/heading/Heading.stories.tsx +1 -0
- package/src/components/heading/Heading.test.tsx +2 -0
- package/src/components/heading/Heading.tsx +2 -0
- package/src/components/heading/HeadingLevelProvider.tsx +1 -1
- package/src/components/icon/Icon.test.tsx +2 -0
- package/src/components/icon/Icon.tsx +120 -7
- package/src/components/image-block/ImageBlock.stories.tsx +2 -0
- package/src/components/image-block/ImageBlock.test.tsx +1 -0
- package/src/components/image-block/ImageBlock.tsx +1 -1
- package/src/components/image-block/ImageCaption.tsx +1 -1
- package/src/components/image-lightbox/ImageLightbox.stories.tsx +1 -0
- package/src/components/image-lightbox/ImageLightbox.test.tsx +2 -0
- package/src/components/image-lightbox/types.ts +2 -0
- package/src/components/inline-list/InlineList.stories.tsx +1 -0
- package/src/components/inline-list/InlineList.test.tsx +2 -0
- package/src/components/inline-list/InlineList.tsx +1 -1
- package/src/components/input-helper/InputHelper.test.tsx +2 -0
- package/src/components/input-helper/InputHelper.tsx +1 -1
- package/src/components/input-label/InputLabel.stories.tsx +2 -0
- package/src/components/input-label/InputLabel.test.tsx +2 -0
- package/src/components/input-label/InputLabel.tsx +1 -1
- package/src/components/lightbox/Lightbox.test.tsx +2 -0
- package/src/components/lightbox/Lightbox.tsx +1 -1
- package/src/components/link/Link.stories.tsx +1 -0
- package/src/components/link/Link.test.tsx +2 -0
- package/src/components/link/Link.tsx +2 -0
- package/src/components/link-preview/LinkPreview.test.tsx +2 -0
- package/src/components/link-preview/LinkPreview.tsx +2 -0
- package/src/components/list/List.stories.tsx +1 -1
- package/src/components/list/List.test.tsx +2 -0
- package/src/components/list/List.tsx +1 -1
- package/src/components/list/ListDivider.test.tsx +2 -0
- package/src/components/list/ListDivider.tsx +2 -0
- package/src/components/list/ListItem.test.tsx +2 -0
- package/src/components/list/ListItem.tsx +1 -1
- package/src/components/list/ListSubheader.test.tsx +2 -0
- package/src/components/list/ListSubheader.tsx +1 -1
- package/src/components/message/Message.test.tsx +1 -0
- package/src/components/message/Message.tsx +1 -1
- package/src/components/mosaic/Mosaic.test.tsx +2 -0
- package/src/components/mosaic/Mosaic.tsx +1 -1
- package/src/components/navigation/Navigation.stories.tsx +2 -0
- package/src/components/navigation/Navigation.test.tsx +2 -0
- package/src/components/navigation/Navigation.tsx +2 -0
- package/src/components/navigation/NavigationItem.test.tsx +2 -0
- package/src/components/navigation/NavigationItem.tsx +1 -1
- package/src/components/navigation/NavigationSection.test.tsx +2 -0
- package/src/components/navigation/NavigationSection.tsx +1 -1
- package/src/components/notification/Notification.test.tsx +2 -0
- package/src/components/notification/Notification.tsx +1 -1
- package/src/components/popover/Popover.test.tsx +2 -0
- package/src/components/popover/Popover.tsx +1 -1
- package/src/components/popover/usePopoverStyle.tsx +1 -1
- package/src/components/popover-dialog/PopoverDialog.test.tsx +1 -0
- package/src/components/popover-dialog/PopoverDialog.tsx +2 -0
- package/src/components/post-block/PostBlock.test.tsx +2 -0
- package/src/components/post-block/PostBlock.tsx +1 -1
- package/src/components/progress/Progress.tsx +2 -0
- package/src/components/progress/ProgressCircular.stories.tsx +1 -0
- package/src/components/progress/ProgressCircular.test.tsx +2 -0
- package/src/components/progress/ProgressCircular.tsx +2 -0
- package/src/components/progress/ProgressLinear.test.tsx +2 -0
- package/src/components/progress/ProgressLinear.tsx +2 -0
- package/src/components/progress-tracker/ProgressTracker.stories.tsx +1 -1
- package/src/components/progress-tracker/ProgressTracker.test.tsx +2 -0
- package/src/components/progress-tracker/ProgressTrackerProvider.test.tsx +2 -0
- package/src/components/progress-tracker/ProgressTrackerProvider.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +2 -0
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerStepPanel.test.tsx +2 -0
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +2 -0
- package/src/components/radio-button/RadioButton.test.tsx +2 -0
- package/src/components/radio-button/RadioButton.tsx +1 -1
- package/src/components/radio-button/RadioGroup.stories.tsx +1 -1
- package/src/components/radio-button/RadioGroup.test.tsx +2 -0
- package/src/components/radio-button/RadioGroup.tsx +1 -1
- package/src/components/select/Select.stories.tsx +1 -1
- package/src/components/select/Select.test.tsx +2 -0
- package/src/components/select/Select.tsx +1 -1
- package/src/components/select/SelectMultiple.stories.tsx +1 -1
- package/src/components/select/SelectMultiple.test.tsx +2 -0
- package/src/components/select/SelectMultiple.tsx +1 -1
- package/src/components/select/WithSelectContext.tsx +1 -1
- package/src/components/select/constants.ts +1 -1
- package/src/components/side-navigation/SideNavigation.test.tsx +2 -0
- package/src/components/side-navigation/SideNavigation.tsx +1 -1
- package/src/components/side-navigation/SideNavigationItem.test.tsx +2 -0
- package/src/components/side-navigation/SideNavigationItem.tsx +1 -1
- package/src/components/skeleton/SkeletonCircle.test.tsx +2 -0
- package/src/components/skeleton/SkeletonCircle.tsx +2 -0
- package/src/components/skeleton/SkeletonRectangle.test.tsx +2 -0
- package/src/components/skeleton/SkeletonRectangle.tsx +2 -0
- package/src/components/skeleton/SkeletonTypography.stories.tsx +2 -0
- package/src/components/skeleton/SkeletonTypography.test.tsx +2 -0
- package/src/components/skeleton/SkeletonTypography.tsx +1 -1
- package/src/components/slider/Slider.test.tsx +2 -0
- package/src/components/slider/Slider.tsx +1 -1
- package/src/components/slideshow/Slideshow.stories.tsx +1 -0
- package/src/components/slideshow/Slideshow.test.tsx +2 -0
- package/src/components/slideshow/SlideshowControls.stories.tsx +2 -0
- package/src/components/slideshow/SlideshowItem.tsx +2 -0
- package/src/components/slideshow/useSlideFocusManagement.tsx +1 -1
- package/src/components/switch/Switch.test.tsx +2 -0
- package/src/components/switch/Switch.tsx +1 -1
- package/src/components/table/Table.test.tsx +2 -0
- package/src/components/table/Table.tsx +2 -0
- package/src/components/table/TableBody.test.tsx +2 -0
- package/src/components/table/TableBody.tsx +2 -0
- package/src/components/table/TableCell.test.tsx +2 -0
- package/src/components/table/TableCell.tsx +2 -0
- package/src/components/table/TableHeader.test.tsx +2 -0
- package/src/components/table/TableHeader.tsx +2 -0
- package/src/components/table/TableRow.test.tsx +2 -0
- package/src/components/table/TableRow.tsx +2 -0
- package/src/components/tabs/Tab.test.tsx +2 -0
- package/src/components/tabs/Tab.tsx +1 -1
- package/src/components/tabs/TabList.test.tsx +2 -0
- package/src/components/tabs/TabPanel.test.tsx +2 -0
- package/src/components/tabs/TabPanel.tsx +2 -0
- package/src/components/tabs/TabProvider.test.tsx +2 -0
- package/src/components/tabs/TabProvider.tsx +1 -1
- package/src/components/tabs/Tabs.stories.tsx +1 -1
- package/src/components/text/Text.stories.tsx +1 -1
- package/src/components/text/Text.test.tsx +2 -0
- package/src/components/text/Text.tsx +2 -0
- package/src/components/text-field/RawInputText.stories.tsx +18 -0
- package/src/components/text-field/RawInputText.test.tsx +59 -0
- package/src/components/text-field/RawInputText.tsx +69 -0
- package/src/components/text-field/RawInputTextarea.stories.tsx +22 -0
- package/src/components/text-field/RawInputTextarea.test.tsx +64 -0
- package/src/components/text-field/RawInputTextarea.tsx +74 -0
- package/src/components/text-field/TextField.test.tsx +11 -2
- package/src/components/text-field/TextField.tsx +40 -210
- package/src/components/text-field/constants.ts +16 -0
- package/src/components/text-field/index.ts +3 -1
- package/src/components/text-field/useFitRowsToContent.ts +42 -0
- package/src/components/thumbnail/Thumbnail.test.tsx +2 -0
- package/src/components/toolbar/Toolbar.tsx +1 -1
- package/src/components/tooltip/Tooltip.stories.tsx +1 -2
- package/src/components/tooltip/Tooltip.test.tsx +1 -1
- package/src/components/uploader/Uploader.test.tsx +2 -0
- package/src/components/user-block/UserBlock.stories.tsx +2 -0
- package/src/components/user-block/UserBlock.test.tsx +2 -0
- package/src/hooks/useId.test.tsx +1 -0
- package/src/hooks/useInfiniteScroll.tsx +1 -1
- package/src/hooks/usePreviousValue.ts +1 -0
- package/src/stories/decorators/withChromaticForceScreenSize.tsx +1 -0
- package/src/stories/decorators/withNestedProps.tsx +1 -0
- package/src/stories/decorators/withThemedBackground.tsx +2 -0
- package/src/stories/decorators/withWrapper.tsx +2 -0
- package/src/stories/utils/CustomLink.tsx +1 -0
- package/src/testing/utils/ThemeSentinel.tsx +1 -0
- package/src/utils/ClickAwayProvider/ClickAwayProvider.stories.jsx +1 -1
- package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +1 -1
- package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +1 -1
- package/src/utils/Portal/Portal.test.tsx +1 -0
- package/src/utils/Portal/PortalProvider.stories.jsx +1 -0
- package/src/utils/Portal/PortalProvider.test.tsx +1 -0
- package/src/utils/disabled/DisabledStateProvider.stories.tsx +2 -0
- package/src/utils/react/OnBeforeUnmount.tsx +1 -1
- package/src/utils/react/RawClickable.tsx +1 -1
- package/src/utils/react/skipRender.tsx +2 -2
- package/src/utils/react/wrapChildrenIconWithSpaces.test.tsx +1 -1
- package/src/utils/type/HasPolymorphicAs.ts +2 -0
- package/utils/index.d.ts +7 -7
- package/utils/index.js +1 -1
|
@@ -1,9 +1,52 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
|
|
5
|
+
import { mdiAlertCircle } from '@lumx/icons';
|
|
6
|
+
import { ColorPalette, ColorVariant, ColorWithVariants, Size, Theme } from '@lumx/react';
|
|
7
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
8
|
+
import { getRootClassName, handleBasicClasses, resolveColorWithVariants } from '@lumx/core/js/utils/className';
|
|
3
9
|
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
4
10
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
5
11
|
|
|
6
|
-
export type
|
|
12
|
+
export type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Defines the props of the component.
|
|
16
|
+
*/
|
|
17
|
+
export interface IconProps extends GenericProps, HasTheme {
|
|
18
|
+
/** Color variant. */
|
|
19
|
+
color?: ColorWithVariants;
|
|
20
|
+
/** Lightened or darkened variant of the selected icon color. */
|
|
21
|
+
colorVariant?: ColorVariant;
|
|
22
|
+
/** Whether the icon has a shape. */
|
|
23
|
+
hasShape?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Icon (SVG path) draw code (`d` property of the `<path>` SVG element).
|
|
26
|
+
* See https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
|
|
27
|
+
*/
|
|
28
|
+
icon: string;
|
|
29
|
+
/** Size variant. */
|
|
30
|
+
size?: IconSizes;
|
|
31
|
+
/** Sets an alternative text on the svg. Will set an `img` role to the svg. */
|
|
32
|
+
alt?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Component display name.
|
|
37
|
+
*/
|
|
38
|
+
const COMPONENT_NAME = 'Icon';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Component default class name and class prefix.
|
|
42
|
+
*/
|
|
43
|
+
const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Component default props.
|
|
47
|
+
*/
|
|
48
|
+
const DEFAULT_PROPS: Partial<IconProps> = {};
|
|
49
|
+
|
|
7
50
|
/**
|
|
8
51
|
* Icon component.
|
|
9
52
|
*
|
|
@@ -13,10 +56,80 @@ export type { IconProps, IconSizes };
|
|
|
13
56
|
*/
|
|
14
57
|
export const Icon = forwardRef<IconProps, HTMLElement>((props, ref) => {
|
|
15
58
|
const defaultTheme = useTheme();
|
|
59
|
+
const {
|
|
60
|
+
className,
|
|
61
|
+
color: propColor,
|
|
62
|
+
colorVariant: propColorVariant,
|
|
63
|
+
hasShape,
|
|
64
|
+
icon,
|
|
65
|
+
size,
|
|
66
|
+
theme = defaultTheme,
|
|
67
|
+
alt,
|
|
68
|
+
...forwardedProps
|
|
69
|
+
} = props;
|
|
70
|
+
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
16
71
|
|
|
17
|
-
|
|
18
|
-
|
|
72
|
+
// Color
|
|
73
|
+
let iconColor = color;
|
|
74
|
+
if (!iconColor && (hasShape || theme)) {
|
|
75
|
+
iconColor = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Color variant
|
|
79
|
+
let iconColorVariant = colorVariant;
|
|
80
|
+
if (!iconColorVariant && hasShape && iconColor === ColorPalette.dark) {
|
|
81
|
+
iconColorVariant = 'L2';
|
|
82
|
+
}
|
|
19
83
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
84
|
+
// Size
|
|
85
|
+
let iconSize = size;
|
|
86
|
+
if (size && hasShape) {
|
|
87
|
+
if (size === Size.xxs || size === Size.xs) {
|
|
88
|
+
iconSize = Size.s;
|
|
89
|
+
} else if (size === Size.xxl) {
|
|
90
|
+
iconSize = Size.xl;
|
|
91
|
+
}
|
|
92
|
+
} else if (hasShape) {
|
|
93
|
+
iconSize = Size.m;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<i
|
|
98
|
+
ref={ref}
|
|
99
|
+
{...forwardedProps}
|
|
100
|
+
className={classNames(
|
|
101
|
+
className,
|
|
102
|
+
handleBasicClasses({
|
|
103
|
+
color: iconColor,
|
|
104
|
+
colorVariant: iconColorVariant,
|
|
105
|
+
hasShape,
|
|
106
|
+
prefix: CLASSNAME,
|
|
107
|
+
theme,
|
|
108
|
+
size: iconSize,
|
|
109
|
+
}),
|
|
110
|
+
!hasShape && `${CLASSNAME}--no-shape`,
|
|
111
|
+
!hasShape &&
|
|
112
|
+
iconColor === ColorPalette.yellow &&
|
|
113
|
+
icon === mdiAlertCircle &&
|
|
114
|
+
`${CLASSNAME}--has-dark-layer`,
|
|
115
|
+
`${CLASSNAME}--path`,
|
|
116
|
+
)}
|
|
117
|
+
>
|
|
118
|
+
<svg
|
|
119
|
+
aria-hidden={alt ? undefined : 'true'}
|
|
120
|
+
role={alt ? 'img' : undefined}
|
|
121
|
+
aria-label={alt}
|
|
122
|
+
height="1em"
|
|
123
|
+
preserveAspectRatio="xMidYMid meet"
|
|
124
|
+
style={{ verticalAlign: '-0.125em' }}
|
|
125
|
+
viewBox="0 0 24 24"
|
|
126
|
+
width="1em"
|
|
127
|
+
>
|
|
128
|
+
<path d={icon} fill="currentColor" />
|
|
129
|
+
</svg>
|
|
130
|
+
</i>
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
Icon.displayName = COMPONENT_NAME;
|
|
134
|
+
Icon.className = CLASSNAME;
|
|
135
|
+
Icon.defaultProps = DEFAULT_PROPS;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import type { IconButtonProps, LightboxProps, SlideshowProps, ThumbnailProps } from '@lumx/react';
|
|
2
4
|
import type { HasClassName } from '@lumx/react/utils/type';
|
|
3
5
|
import type { ImageCaptionMetadata } from '@lumx/react/components/image-block/ImageCaption';
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
TypographyTitleCustom,
|
|
11
11
|
GenericBlock,
|
|
12
12
|
} from '@lumx/react';
|
|
13
|
+
import React from 'react';
|
|
13
14
|
import { getSelectArgType } from '@lumx/react/stories/controls/selectArgType';
|
|
14
15
|
import { colorArgType, colorVariantArgType } from '@lumx/react/stories/controls/color';
|
|
15
16
|
import { iconArgType } from '@lumx/react/stories/controls/icons';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import { ColorPalette, ColorVariant, Icon, Typography } from '@lumx/react';
|
|
2
4
|
import { commonTestsSuiteRTL } from '@lumx/react/testing/utils';
|
|
3
5
|
import { getByClassName, queryAllByClassName, queryByClassName } from '@lumx/react/testing/utils/queries';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { commonTestsSuiteRTL } from '@lumx/react/testing/utils';
|
|
2
2
|
import { Kind } from '@lumx/react';
|
|
3
3
|
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import { queryByRole, render } from '@testing-library/react';
|
|
5
6
|
import { getByClassName, queryByClassName } from '@lumx/react/testing/utils/queries';
|
|
6
7
|
import { mdiAbTesting } from '@lumx/icons';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import { Mosaic, MosaicProps } from '@lumx/react/components/mosaic/Mosaic';
|
|
2
4
|
import { render, screen, within } from '@testing-library/react';
|
|
3
5
|
import { getByClassName, queryAllByClassName, queryByClassName } from '@lumx/react/testing/utils/queries';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { Icon, Placement, Size, Tooltip, Text } from '@lumx/react';
|
|
3
3
|
import { getRootClassName, handleBasicClasses } from '@lumx/core/js/utils/className';
|
|
4
4
|
import { ComponentRef, HasClassName, HasPolymorphicAs, HasRequiredLinkHref, HasTheme } from '@lumx/react/utils/type';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ProgressCircular, ProgressCircularSize, Size, Text } from '@lumx/react';
|
|
2
3
|
import { getSelectArgType } from '@lumx/react/stories/controls/selectArgType';
|
|
3
4
|
import { withCombinations } from '@lumx/react/stories/decorators/withCombinations';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '@lumx/react';
|
|
11
11
|
import cloneDeep from 'lodash/cloneDeep';
|
|
12
12
|
import set from 'lodash/set';
|
|
13
|
-
import { useState } from 'react';
|
|
13
|
+
import React, { useState } from 'react';
|
|
14
14
|
|
|
15
15
|
export default { title: 'LumX components/progress-tracker/Progress Tracker' };
|
|
16
16
|
|