@lumx/react 2.1.8-alpha.0 → 2.1.8
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/AlertDialog.js +2 -1
- package/esm/_internal/AlertDialog.js.map +1 -1
- package/esm/_internal/AutocompleteMultiple.js +2 -1
- package/esm/_internal/AutocompleteMultiple.js.map +1 -1
- package/esm/_internal/Button2.js +1 -1
- package/esm/_internal/Checkbox2.js +2 -1
- package/esm/_internal/Checkbox2.js.map +1 -1
- package/esm/_internal/DatePickerField.js +1 -1
- package/esm/_internal/DragHandle.js +3 -2
- package/esm/_internal/DragHandle.js.map +1 -1
- package/esm/_internal/ExpansionPanel.js +1 -1
- package/esm/_internal/Flag2.js +3 -1
- package/esm/_internal/Flag2.js.map +1 -1
- package/esm/_internal/Icon2.js +3 -23
- package/esm/_internal/Icon2.js.map +1 -1
- package/esm/_internal/IconButton.js +1 -1
- package/esm/_internal/Lightbox2.js +1 -1
- package/esm/_internal/Link2.js +1 -1
- package/esm/_internal/LinkPreview.js +1 -1
- package/esm/_internal/LinkPreview.js.map +1 -1
- package/esm/_internal/List2.js.map +1 -1
- package/esm/_internal/Message2.js +5 -5
- package/esm/_internal/Message2.js.map +1 -1
- package/esm/_internal/Notification2.js +2 -1
- package/esm/_internal/Notification2.js.map +1 -1
- package/esm/_internal/ProgressTrackerStepPanel.js +2 -1
- package/esm/_internal/ProgressTrackerStepPanel.js.map +1 -1
- package/esm/_internal/SelectMultiple.js +2 -1
- package/esm/_internal/SelectMultiple.js.map +1 -1
- package/esm/_internal/SideNavigationItem.js +2 -1
- package/esm/_internal/SideNavigationItem.js.map +1 -1
- package/esm/_internal/SlideshowControls.js +1 -1
- package/esm/_internal/TabPanel.js +1 -1
- package/esm/_internal/TableRow.js +2 -1
- package/esm/_internal/TableRow.js.map +1 -1
- package/esm/_internal/TextField.js +2 -1
- package/esm/_internal/TextField.js.map +1 -1
- package/esm/_internal/Thumbnail2.js +2 -1
- package/esm/_internal/Thumbnail2.js.map +1 -1
- package/esm/_internal/alert-dialog.js +2 -1
- package/esm/_internal/alert-dialog.js.map +1 -1
- package/esm/_internal/autocomplete.js +2 -1
- package/esm/_internal/autocomplete.js.map +1 -1
- package/esm/_internal/avatar.js +2 -1
- package/esm/_internal/avatar.js.map +1 -1
- package/esm/_internal/button.js +1 -1
- package/esm/_internal/checkbox.js +2 -1
- package/esm/_internal/checkbox.js.map +1 -1
- package/esm/_internal/comment-block.js +2 -1
- package/esm/_internal/comment-block.js.map +1 -1
- package/esm/_internal/date-picker.js +2 -1
- package/esm/_internal/date-picker.js.map +1 -1
- package/esm/_internal/drag-handle.js +2 -1
- package/esm/_internal/drag-handle.js.map +1 -1
- package/esm/_internal/expansion-panel.js +2 -1
- package/esm/_internal/expansion-panel.js.map +1 -1
- package/esm/_internal/flag.js +1 -1
- package/esm/_internal/icon.js +1 -1
- package/esm/_internal/image-block.js +2 -1
- package/esm/_internal/image-block.js.map +1 -1
- package/esm/_internal/lightbox.js +2 -1
- package/esm/_internal/lightbox.js.map +1 -1
- package/esm/_internal/link-preview.js +2 -1
- package/esm/_internal/link-preview.js.map +1 -1
- package/esm/_internal/link.js +1 -1
- package/esm/_internal/mdi.js +22 -0
- package/esm/_internal/mdi.js.map +1 -0
- package/esm/_internal/message.js +2 -1
- package/esm/_internal/message.js.map +1 -1
- package/esm/_internal/mosaic.js +2 -1
- package/esm/_internal/mosaic.js.map +1 -1
- package/esm/_internal/notification.js +2 -1
- package/esm/_internal/notification.js.map +1 -1
- package/esm/_internal/post-block.js +2 -1
- package/esm/_internal/post-block.js.map +1 -1
- package/esm/_internal/progress-tracker.js +2 -1
- package/esm/_internal/progress-tracker.js.map +1 -1
- package/esm/_internal/select.js +2 -1
- package/esm/_internal/select.js.map +1 -1
- package/esm/_internal/side-navigation.js +2 -1
- package/esm/_internal/side-navigation.js.map +1 -1
- package/esm/_internal/slideshow.js +2 -1
- package/esm/_internal/slideshow.js.map +1 -1
- package/esm/_internal/table.js +2 -1
- package/esm/_internal/table.js.map +1 -1
- package/esm/_internal/tabs.js +1 -1
- package/esm/_internal/text-field.js +2 -1
- package/esm/_internal/text-field.js.map +1 -1
- package/esm/_internal/thumbnail.js +2 -1
- package/esm/_internal/thumbnail.js.map +1 -1
- package/esm/_internal/uploader.js +1 -1
- package/esm/_internal/user-block.js +2 -1
- package/esm/_internal/user-block.js.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/drag-handle/DragHandle.tsx +1 -5
- package/src/components/flag/Flag.test.tsx +2 -1
- package/src/components/flag/Flag.tsx +10 -2
- package/src/components/flag/__snapshots__/Flag.test.tsx.snap +15 -0
- package/src/components/icon/Icon.tsx +0 -5
- package/src/components/link-preview/LinkPreview.tsx +1 -1
- package/src/components/link-preview/__snapshots__/LinkPreview.test.tsx.snap +2 -2
- package/src/components/message/Message.tsx +2 -4
package/esm/_internal/message.js
CHANGED
|
@@ -2,10 +2,11 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
|
+
import './Icon2.js';
|
|
10
11
|
export { M as Message } from './Message2.js';
|
|
11
12
|
//# sourceMappingURL=message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/esm/_internal/mosaic.js
CHANGED
|
@@ -2,13 +2,14 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
10
|
import './constants.js';
|
|
11
11
|
import './mergeRefs.js';
|
|
12
|
+
import './Icon2.js';
|
|
12
13
|
import 'lodash/take';
|
|
13
14
|
export { M as Mosaic } from './Mosaic2.js';
|
|
14
15
|
import './clamp.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mosaic.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mosaic.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
@@ -14,5 +14,6 @@ import './Button2.js';
|
|
|
14
14
|
import 'lodash/isFunction';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import './useDelayedVisibility.js';
|
|
17
|
+
import './Icon2.js';
|
|
17
18
|
export { N as Notification } from './Notification2.js';
|
|
18
19
|
//# sourceMappingURL=notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -2,13 +2,14 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
10
|
import './constants.js';
|
|
11
11
|
import './mergeRefs.js';
|
|
12
|
+
import './Icon2.js';
|
|
12
13
|
import 'lodash/isObject';
|
|
13
14
|
export { P as PostBlock } from './PostBlock.js';
|
|
14
15
|
import './clamp.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -2,13 +2,14 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import '../index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
9
9
|
import 'lodash/kebabCase';
|
|
10
10
|
import 'lodash/noop';
|
|
11
11
|
import './mergeRefs.js';
|
|
12
|
+
import './Icon2.js';
|
|
12
13
|
import './InputHelper.js';
|
|
13
14
|
import './InputLabel.js';
|
|
14
15
|
import './useRovingTabIndex.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-tracker.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progress-tracker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
package/esm/_internal/select.js
CHANGED
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import '../index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
@@ -23,6 +23,7 @@ import './ClickAwayProvider.js';
|
|
|
23
23
|
import 'lodash/pull';
|
|
24
24
|
import './List2.js';
|
|
25
25
|
import './Dropdown2.js';
|
|
26
|
+
import './Icon2.js';
|
|
26
27
|
import './InputHelper.js';
|
|
27
28
|
import './InputLabel.js';
|
|
28
29
|
export { a as Select, c as SelectMultiple, b as SelectMultipleField, S as SelectVariant } from './SelectMultiple.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import '../index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
@@ -19,6 +19,7 @@ import './IconButton.js';
|
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import './ClickAwayProvider.js';
|
|
21
21
|
import 'lodash/pull';
|
|
22
|
+
import './Icon2.js';
|
|
22
23
|
export { S as SideNavigation, a as SideNavigationItem } from './SideNavigationItem.js';
|
|
23
24
|
import './Tooltip2.js';
|
|
24
25
|
import 'lodash/debounce';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-navigation.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"side-navigation.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import '../index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
@@ -20,6 +20,7 @@ import 'lodash/range';
|
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import './ClickAwayProvider.js';
|
|
22
22
|
import 'lodash/pull';
|
|
23
|
+
import './Icon2.js';
|
|
23
24
|
export { S as Slideshow, b as SlideshowControls, a as SlideshowItem } from './SlideshowControls.js';
|
|
24
25
|
import './Tooltip2.js';
|
|
25
26
|
import 'lodash/debounce';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slideshow.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slideshow.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/_internal/table.js
CHANGED
|
@@ -2,11 +2,12 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
10
|
import 'lodash/isFunction';
|
|
11
|
+
import './Icon2.js';
|
|
11
12
|
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
13
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/esm/_internal/tabs.js
CHANGED
|
@@ -2,13 +2,13 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
5
|
import '../index2.js';
|
|
7
6
|
import 'lodash/isBoolean';
|
|
8
7
|
import 'lodash/isEmpty';
|
|
9
8
|
import 'lodash/kebabCase';
|
|
10
9
|
import 'lodash/noop';
|
|
11
10
|
import './mergeRefs.js';
|
|
11
|
+
import './Icon2.js';
|
|
12
12
|
import './useRovingTabIndex.js';
|
|
13
13
|
export { c as Tab, b as TabList, a as TabListLayout, d as TabPanel, T as TabProvider } from './TabPanel.js';
|
|
14
14
|
//# sourceMappingURL=tabs.js.map
|
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import '../index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
@@ -18,6 +18,7 @@ import './IconButton.js';
|
|
|
18
18
|
import 'react-dom';
|
|
19
19
|
import './ClickAwayProvider.js';
|
|
20
20
|
import 'lodash/pull';
|
|
21
|
+
import './Icon2.js';
|
|
21
22
|
import './InputHelper.js';
|
|
22
23
|
import './InputLabel.js';
|
|
23
24
|
export { T as TextField } from './TextField.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-field.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,13 +2,14 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
10
|
import './constants.js';
|
|
11
11
|
import './mergeRefs.js';
|
|
12
|
+
import './Icon2.js';
|
|
12
13
|
import './clamp.js';
|
|
13
14
|
export { T as Thumbnail } from './Thumbnail2.js';
|
|
14
15
|
import 'lodash';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thumbnail.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thumbnail.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -2,10 +2,10 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './Icon2.js';
|
|
6
5
|
import 'lodash/isBoolean';
|
|
7
6
|
import 'lodash/isEmpty';
|
|
8
7
|
import 'lodash/kebabCase';
|
|
9
8
|
import 'lodash/noop';
|
|
9
|
+
import './Icon2.js';
|
|
10
10
|
export { a as Uploader, U as UploaderVariant } from './Uploader2.js';
|
|
11
11
|
//# sourceMappingURL=uploader.js.map
|
|
@@ -2,7 +2,7 @@ import './_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import './components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './getRootClassName.js';
|
|
5
|
-
import './
|
|
5
|
+
import './mdi.js';
|
|
6
6
|
import 'lodash/isBoolean';
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
@@ -11,6 +11,7 @@ import './constants.js';
|
|
|
11
11
|
import './mergeRefs.js';
|
|
12
12
|
import './Avatar2.js';
|
|
13
13
|
import './renderLink.js';
|
|
14
|
+
import './Icon2.js';
|
|
14
15
|
import './clamp.js';
|
|
15
16
|
import './Thumbnail2.js';
|
|
16
17
|
import 'lodash';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import './_internal/_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
export { Alignment, AspectRatio, ColorPalette, ColorVariant, Emphasis, Kind, Orientation, Size, Theme, Typography, TypographyInterface, TypographyTitleCustom } from './_internal/components.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './_internal/getRootClassName.js';
|
|
5
|
-
|
|
5
|
+
import './_internal/mdi.js';
|
|
6
6
|
import './index2.js';
|
|
7
7
|
import 'lodash/isBoolean';
|
|
8
8
|
import 'lodash/isEmpty';
|
|
@@ -53,6 +53,7 @@ export { F as Flag } from './_internal/Flag2.js';
|
|
|
53
53
|
import 'lodash/castArray';
|
|
54
54
|
export { F as FlexBox } from './_internal/FlexBox.js';
|
|
55
55
|
export { G as Grid, a as GridItem } from './_internal/GridItem.js';
|
|
56
|
+
export { I as Icon } from './_internal/Icon2.js';
|
|
56
57
|
import 'lodash/isObject';
|
|
57
58
|
export { a as ImageBlock, I as ImageBlockCaptionPosition } from './_internal/ImageBlock.js';
|
|
58
59
|
export { I as InputHelper } from './_internal/InputHelper.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@juggle/resize-observer": "^3.2.0",
|
|
10
|
-
"@lumx/core": "^2.1.8
|
|
11
|
-
"@lumx/icons": "^2.1.8
|
|
10
|
+
"@lumx/core": "^2.1.8",
|
|
11
|
+
"@lumx/icons": "^2.1.8",
|
|
12
12
|
"@popperjs/core": "^2.5.4",
|
|
13
13
|
"body-scroll-lock": "^3.1.5",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
@@ -120,6 +120,6 @@
|
|
|
120
120
|
"build:storybook": "cd storybook && ./build"
|
|
121
121
|
},
|
|
122
122
|
"sideEffects": false,
|
|
123
|
-
"version": "2.1.8
|
|
124
|
-
"gitHead": "
|
|
123
|
+
"version": "2.1.8",
|
|
124
|
+
"gitHead": "e4e589f8924784b34e3a0dcdbbb71f0ed0ae82b8"
|
|
125
125
|
}
|
|
@@ -40,11 +40,7 @@ export const DragHandle: Comp<DragHandleProps, HTMLDivElement> = forwardRef((pro
|
|
|
40
40
|
{...forwardedProps}
|
|
41
41
|
className={classNames(className, handleBasicClasses({ prefix: CLASSNAME, theme }))}
|
|
42
42
|
>
|
|
43
|
-
<Icon
|
|
44
|
-
icon={mdiDragVertical}
|
|
45
|
-
color={theme === Theme.dark ? ColorPalette.light : ColorPalette.dark}
|
|
46
|
-
size={Size.xs}
|
|
47
|
-
/>
|
|
43
|
+
<Icon icon={mdiDragVertical} color={theme === Theme.dark ? ColorPalette.light : undefined} size={Size.xs} />
|
|
48
44
|
</div>
|
|
49
45
|
);
|
|
50
46
|
});
|
|
@@ -69,8 +69,9 @@ describe(`<${Flag.displayName} />`, () => {
|
|
|
69
69
|
|
|
70
70
|
it('should use the color', () => {
|
|
71
71
|
const color = ColorPalette.green;
|
|
72
|
-
const { wrapper } = setup({ icon: mdiAbTesting, color });
|
|
72
|
+
const { wrapper, iconEl } = setup({ icon: mdiAbTesting, color });
|
|
73
73
|
|
|
74
|
+
expect(iconEl.prop('color')).toEqual(color);
|
|
74
75
|
expect(wrapper).toHaveClassName(
|
|
75
76
|
getBasicClass({
|
|
76
77
|
prefix: CLASSNAME,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
|
|
4
|
-
import { ColorPalette, Icon, Size, Theme } from '@lumx/react';
|
|
4
|
+
import { ColorPalette, ColorVariant, Icon, Size, Theme } from '@lumx/react';
|
|
5
5
|
import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
|
|
6
6
|
|
|
7
7
|
export interface FlagProps extends GenericProps {
|
|
@@ -38,7 +38,15 @@ export const Flag: Comp<FlagProps, HTMLDivElement> = forwardRef((props, ref) =>
|
|
|
38
38
|
className={classNames(className, handleBasicClasses({ prefix: CLASSNAME, color: flagColor }))}
|
|
39
39
|
ref={ref}
|
|
40
40
|
>
|
|
41
|
-
{icon &&
|
|
41
|
+
{icon && (
|
|
42
|
+
<Icon
|
|
43
|
+
icon={icon}
|
|
44
|
+
color={color}
|
|
45
|
+
colorVariant={ColorVariant.D2}
|
|
46
|
+
size={Size.xxs}
|
|
47
|
+
className={`${CLASSNAME}__icon`}
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
42
50
|
<span className={`${CLASSNAME}__label`}>{label}</span>
|
|
43
51
|
</div>
|
|
44
52
|
);
|
|
@@ -19,6 +19,8 @@ Array [
|
|
|
19
19
|
>
|
|
20
20
|
<Icon
|
|
21
21
|
className="lumx-flag__icon"
|
|
22
|
+
color="blue"
|
|
23
|
+
colorVariant="D2"
|
|
22
24
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
23
25
|
size="xxs"
|
|
24
26
|
/>
|
|
@@ -33,6 +35,8 @@ Array [
|
|
|
33
35
|
>
|
|
34
36
|
<Icon
|
|
35
37
|
className="lumx-flag__icon"
|
|
38
|
+
color="dark"
|
|
39
|
+
colorVariant="D2"
|
|
36
40
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
37
41
|
size="xxs"
|
|
38
42
|
/>
|
|
@@ -47,6 +51,8 @@ Array [
|
|
|
47
51
|
>
|
|
48
52
|
<Icon
|
|
49
53
|
className="lumx-flag__icon"
|
|
54
|
+
color="green"
|
|
55
|
+
colorVariant="D2"
|
|
50
56
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
51
57
|
size="xxs"
|
|
52
58
|
/>
|
|
@@ -61,6 +67,8 @@ Array [
|
|
|
61
67
|
>
|
|
62
68
|
<Icon
|
|
63
69
|
className="lumx-flag__icon"
|
|
70
|
+
color="primary"
|
|
71
|
+
colorVariant="D2"
|
|
64
72
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
65
73
|
size="xxs"
|
|
66
74
|
/>
|
|
@@ -75,6 +83,8 @@ Array [
|
|
|
75
83
|
>
|
|
76
84
|
<Icon
|
|
77
85
|
className="lumx-flag__icon"
|
|
86
|
+
color="red"
|
|
87
|
+
colorVariant="D2"
|
|
78
88
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
79
89
|
size="xxs"
|
|
80
90
|
/>
|
|
@@ -89,6 +99,8 @@ Array [
|
|
|
89
99
|
>
|
|
90
100
|
<Icon
|
|
91
101
|
className="lumx-flag__icon"
|
|
102
|
+
color="secondary"
|
|
103
|
+
colorVariant="D2"
|
|
92
104
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
93
105
|
size="xxs"
|
|
94
106
|
/>
|
|
@@ -103,6 +115,8 @@ Array [
|
|
|
103
115
|
>
|
|
104
116
|
<Icon
|
|
105
117
|
className="lumx-flag__icon"
|
|
118
|
+
color="yellow"
|
|
119
|
+
colorVariant="D2"
|
|
106
120
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
107
121
|
size="xxs"
|
|
108
122
|
/>
|
|
@@ -121,6 +135,7 @@ exports[`<Flag /> Snapshots and structure should render story 'withIcon' 1`] = `
|
|
|
121
135
|
>
|
|
122
136
|
<Icon
|
|
123
137
|
className="lumx-flag__icon"
|
|
138
|
+
colorVariant="D2"
|
|
124
139
|
icon="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"
|
|
125
140
|
size="xxs"
|
|
126
141
|
/>
|
|
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
|
4
4
|
|
|
5
5
|
import { Color, ColorPalette, ColorVariant, Size, Theme } from '@lumx/react';
|
|
6
6
|
import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
|
|
7
|
-
import { mdiAlertCircle } from '@lumx/icons';
|
|
8
7
|
|
|
9
8
|
export type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
10
9
|
|
|
@@ -93,10 +92,6 @@ export const Icon: Comp<IconProps, HTMLElement> = forwardRef((props, ref) => {
|
|
|
93
92
|
size: iconSize,
|
|
94
93
|
}),
|
|
95
94
|
!hasShape && `${CLASSNAME}--no-shape`,
|
|
96
|
-
!hasShape &&
|
|
97
|
-
iconColor === ColorPalette.yellow &&
|
|
98
|
-
icon === mdiAlertCircle &&
|
|
99
|
-
`${CLASSNAME}--has-dark-layer`,
|
|
100
95
|
`${CLASSNAME}--path`,
|
|
101
96
|
)}
|
|
102
97
|
>
|
|
@@ -115,7 +115,7 @@ export const LinkPreview: Comp<LinkPreviewProps, HTMLDivElement> = forwardRef((p
|
|
|
115
115
|
className={classNames(`${CLASSNAME}__link`, linkProps?.className)}
|
|
116
116
|
target="_blank"
|
|
117
117
|
href={link}
|
|
118
|
-
color={theme === Theme.light ? ColorPalette.
|
|
118
|
+
color={theme === Theme.light ? ColorPalette.blue : ColorPalette.light}
|
|
119
119
|
colorVariant={ColorVariant.N}
|
|
120
120
|
>
|
|
121
121
|
{link}
|
|
@@ -15,7 +15,7 @@ exports[`<LinkPreview> Snapshots and structure should render correctly 1`] = `
|
|
|
15
15
|
>
|
|
16
16
|
<Link
|
|
17
17
|
className="lumx-link-preview__link"
|
|
18
|
-
color="
|
|
18
|
+
color="blue"
|
|
19
19
|
colorVariant="N"
|
|
20
20
|
target="_blank"
|
|
21
21
|
/>
|
|
@@ -40,7 +40,7 @@ exports[`<LinkPreview> Snapshots and structure should render correctly 2`] = `
|
|
|
40
40
|
>
|
|
41
41
|
<Link
|
|
42
42
|
className="lumx-link-preview__link"
|
|
43
|
-
color="
|
|
43
|
+
color="blue"
|
|
44
44
|
colorVariant="N"
|
|
45
45
|
target="_blank"
|
|
46
46
|
/>
|
|
@@ -62,10 +62,8 @@ export const Message: Comp<MessageProps, HTMLDivElement> = forwardRef((props, re
|
|
|
62
62
|
)}
|
|
63
63
|
{...forwardedProps}
|
|
64
64
|
>
|
|
65
|
-
{(customIcon || icon) &&
|
|
66
|
-
|
|
67
|
-
)}
|
|
68
|
-
<div className={`${CLASSNAME}__text`}>{children}</div>
|
|
65
|
+
{(customIcon || icon) && <Icon className="lumx-message__icon" icon={customIcon || icon} size={Size.xs} />}
|
|
66
|
+
<div className="lumx-message__text">{children}</div>
|
|
69
67
|
</div>
|
|
70
68
|
);
|
|
71
69
|
});
|