grommet 2.25.3 → 2.27.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/all/stories/AllComponents.js +19 -126
- package/components/Accordion/stories/CustomHeader.js +3 -1
- package/components/Avatar/Avatar.js +22 -9
- package/components/Box/stories/BackgroundThemed.js +54 -0
- package/components/Box/stories/CustomThemed/ThemedBackground.tsx +176 -0
- package/components/Calendar/Calendar.js +2 -1
- package/components/CheckBox/StyledCheckBox.js +9 -5
- package/components/CheckBoxGroup/CheckBoxGroup.js +3 -2
- package/components/CheckBoxGroup/index.d.ts +2 -1
- package/components/CheckBoxGroup/propTypes.js +1 -0
- package/components/DataChart/Detail.js +3 -1
- package/components/DataTable/index.d.ts +6 -6
- package/components/DateInput/DateInput.js +1 -1
- package/components/Diagram/Diagram.js +2 -1
- package/components/Drop/stories/Inline.js +1 -1
- package/components/Drop/stories/Overflow.js +1 -1
- package/components/Drop/stories/Plain.js +1 -1
- package/components/Drop/stories/Simple.js +1 -1
- package/components/Drop/stories/Styled.js +1 -1
- package/components/FormField/FormField.js +1 -1
- package/components/Heading/Heading.js +31 -2
- package/components/Heading/StyledHeading.js +1 -1
- package/components/Heading/index.d.ts +1 -0
- package/components/Heading/propTypes.js +1 -0
- package/components/Heading/stories/All.js +4 -1
- package/components/List/List.js +125 -41
- package/components/List/index.d.ts +1 -0
- package/components/List/propTypes.js +1 -0
- package/components/List/stories/Order.js +1 -0
- package/components/List/stories/Pinned.js +37 -0
- package/components/List/stories/Selection.js +1 -0
- package/components/List/stories/onClickItem.js +1 -0
- package/components/Notification/Notification.js +2 -2
- package/components/Notification/index.d.ts +1 -1
- package/components/Notification/propTypes.js +1 -1
- package/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -2
- package/components/RadioButton/README.md +1 -279
- package/components/RadioButton/RadioButton.js +1 -0
- package/components/Select/DefaultSelectTextInput.js +43 -0
- package/components/Select/EmptySearchOption.js +34 -0
- package/components/Select/Select.js +38 -99
- package/components/Select/SelectContainer.js +20 -60
- package/components/Select/StyledSelect.js +58 -2
- package/components/Select/index.d.ts +11 -9
- package/components/Select/propTypes.js +44 -40
- package/components/Select/utils.js +129 -3
- package/components/SelectMultiple/README.md +2 -0
- package/components/SelectMultiple/SelectMultiple.js +476 -0
- package/components/SelectMultiple/SelectMultipleContainer.js +483 -0
- package/components/SelectMultiple/SelectMultipleValue.js +163 -0
- package/components/SelectMultiple/SelectionSummary.js +104 -0
- package/components/SelectMultiple/index.d.ts +21 -0
- package/components/SelectMultiple/index.js +8 -0
- package/components/SelectMultiple/propTypes.js +28 -0
- package/components/SelectMultiple/stories/Default.js +76 -0
- package/components/SelectMultiple/stories/Disabled.js +84 -0
- package/components/SelectMultiple/stories/FormField.js +66 -0
- package/components/SelectMultiple/stories/Limited.js +68 -0
- package/components/SelectMultiple/stories/LongList.js +76 -0
- package/components/SelectMultiple/stories/ObjectOptions.js +104 -0
- package/components/SelectMultiple/stories/ShowSelectedInline.js +76 -0
- package/components/SelectMultiple/stories/typescript/Children.tsx +106 -0
- package/components/Sidebar/stories/Labels.js +4 -1
- package/components/TextArea/stories/NonResizable.js +1 -0
- package/components/TextArea/stories/Simple.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +8 -0
- package/es6/all/stories/AllComponents.js +21 -121
- package/es6/components/Accordion/stories/CustomHeader.js +3 -1
- package/es6/components/Avatar/Avatar.js +21 -9
- package/es6/components/Box/stories/BackgroundThemed.js +39 -0
- package/es6/components/Box/stories/CustomThemed/ThemedBackground.tsx +176 -0
- package/es6/components/Calendar/Calendar.js +2 -1
- package/es6/components/CheckBox/StyledCheckBox.js +9 -5
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +3 -2
- package/es6/components/CheckBoxGroup/index.d.ts +2 -1
- package/es6/components/CheckBoxGroup/propTypes.js +1 -0
- package/es6/components/DataChart/Detail.js +3 -1
- package/es6/components/DataTable/index.d.ts +6 -6
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Diagram/Diagram.js +2 -1
- package/es6/components/Drop/stories/Inline.js +1 -1
- package/es6/components/Drop/stories/Overflow.js +1 -1
- package/es6/components/Drop/stories/Plain.js +1 -1
- package/es6/components/Drop/stories/Simple.js +1 -1
- package/es6/components/Drop/stories/Styled.js +1 -1
- package/es6/components/FormField/FormField.js +1 -1
- package/es6/components/Heading/Heading.js +30 -3
- package/es6/components/Heading/StyledHeading.js +1 -1
- package/es6/components/Heading/index.d.ts +1 -0
- package/es6/components/Heading/propTypes.js +1 -0
- package/es6/components/Heading/stories/All.js +4 -1
- package/es6/components/List/List.js +126 -42
- package/es6/components/List/index.d.ts +1 -0
- package/es6/components/List/propTypes.js +1 -0
- package/es6/components/List/stories/Order.js +1 -0
- package/es6/components/List/stories/Pinned.js +22 -0
- package/es6/components/List/stories/Selection.js +1 -0
- package/es6/components/List/stories/onClickItem.js +1 -0
- package/es6/components/Notification/Notification.js +2 -2
- package/es6/components/Notification/index.d.ts +1 -1
- package/es6/components/Notification/propTypes.js +1 -1
- package/es6/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -2
- package/es6/components/RadioButton/README.md +1 -279
- package/es6/components/RadioButton/RadioButton.js +1 -0
- package/es6/components/Select/DefaultSelectTextInput.js +31 -0
- package/es6/components/Select/EmptySearchOption.js +21 -0
- package/es6/components/Select/Select.js +34 -93
- package/es6/components/Select/SelectContainer.js +20 -59
- package/es6/components/Select/StyledSelect.js +45 -1
- package/es6/components/Select/index.d.ts +11 -9
- package/es6/components/Select/propTypes.js +41 -39
- package/es6/components/Select/utils.js +95 -1
- package/es6/components/SelectMultiple/README.md +2 -0
- package/es6/components/SelectMultiple/SelectMultiple.js +447 -0
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +455 -0
- package/es6/components/SelectMultiple/SelectMultipleValue.js +149 -0
- package/es6/components/SelectMultiple/SelectionSummary.js +91 -0
- package/es6/components/SelectMultiple/index.d.ts +21 -0
- package/es6/components/SelectMultiple/index.js +1 -0
- package/es6/components/SelectMultiple/propTypes.js +18 -0
- package/es6/components/SelectMultiple/stories/Default.js +60 -0
- package/es6/components/SelectMultiple/stories/Disabled.js +68 -0
- package/es6/components/SelectMultiple/stories/FormField.js +50 -0
- package/es6/components/SelectMultiple/stories/Limited.js +53 -0
- package/es6/components/SelectMultiple/stories/LongList.js +63 -0
- package/es6/components/SelectMultiple/stories/ObjectOptions.js +88 -0
- package/es6/components/SelectMultiple/stories/ShowSelectedInline.js +61 -0
- package/es6/components/SelectMultiple/stories/typescript/Children.tsx +106 -0
- package/es6/components/Sidebar/stories/Labels.js +4 -1
- package/es6/components/TextArea/stories/NonResizable.js +1 -0
- package/es6/components/TextArea/stories/Simple.js +1 -0
- package/es6/components/index.d.ts +1 -0
- package/es6/components/index.js +1 -0
- package/es6/index.d.ts +1 -0
- package/es6/themes/base.d.ts +16 -5
- package/es6/themes/base.js +60 -39
- package/es6/themes/grommet.js +15 -0
- package/es6/themes/hacktoberfest2022.js +129 -0
- package/es6/themes/index.js +2 -1
- package/es6/utils/background.js +65 -12
- package/es6/utils/general-prop-types.js +2 -0
- package/es6/utils/index.d.ts +2 -0
- package/es6/utils/styles.js +3 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +44 -41
- package/themes/base.d.ts +16 -5
- package/themes/base.js +61 -39
- package/themes/grommet.js +15 -0
- package/themes/hacktoberfest2022.js +137 -0
- package/themes/index.js +6 -2
- package/tools/grommet-babel-preset-es2015.js +1 -12
- package/tools/pack.js +1 -94
- package/tools/release-stable.js +1 -27
- package/utils/background.js +64 -12
- package/utils/general-prop-types.js +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/styles.js +3 -1
|
@@ -9,20 +9,6 @@ var _grommet = require("grommet");
|
|
|
9
9
|
|
|
10
10
|
var _grommetIcons = require("grommet-icons");
|
|
11
11
|
|
|
12
|
-
var _themes = require("grommet/themes");
|
|
13
|
-
|
|
14
|
-
var _base = require("grommet/themes/base");
|
|
15
|
-
|
|
16
|
-
var _utils = require("grommet/utils");
|
|
17
|
-
|
|
18
|
-
var _grommetThemeHpe = require("grommet-theme-hpe");
|
|
19
|
-
|
|
20
|
-
var _grommetThemeAruba = require("grommet-theme-aruba");
|
|
21
|
-
|
|
22
|
-
var _grommetThemeHp = require("grommet-theme-hp");
|
|
23
|
-
|
|
24
|
-
var _grommetThemeDxc = require("grommet-theme-dxc");
|
|
25
|
-
|
|
26
12
|
var _excluded = ["id"],
|
|
27
13
|
_excluded2 = ["color"];
|
|
28
14
|
|
|
@@ -63,61 +49,31 @@ var connection = function connection(fromTarget, toTarget, _temp) {
|
|
|
63
49
|
}, rest);
|
|
64
50
|
};
|
|
65
51
|
|
|
66
|
-
var themes = {
|
|
67
|
-
grommet: _themes.grommet,
|
|
68
|
-
hpe: _grommetThemeHpe.hpe,
|
|
69
|
-
aruba: _grommetThemeAruba.aruba,
|
|
70
|
-
hp: _grommetThemeHp.hp,
|
|
71
|
-
dxc: _grommetThemeDxc.dxc
|
|
72
|
-
};
|
|
73
|
-
|
|
74
52
|
var Components = function Components() {
|
|
75
|
-
var _useState = (0, _react.useState)(
|
|
76
|
-
|
|
77
|
-
|
|
53
|
+
var _useState = (0, _react.useState)(true),
|
|
54
|
+
checkBox = _useState[0],
|
|
55
|
+
setCheckBox = _useState[1];
|
|
78
56
|
|
|
79
|
-
var _useState2 = (0, _react.useState)(
|
|
80
|
-
|
|
81
|
-
|
|
57
|
+
var _useState2 = (0, _react.useState)(''),
|
|
58
|
+
textInput = _useState2[0],
|
|
59
|
+
setTextInput = _useState2[1];
|
|
82
60
|
|
|
83
61
|
var _useState3 = (0, _react.useState)(''),
|
|
84
|
-
|
|
85
|
-
|
|
62
|
+
maskedInput = _useState3[0],
|
|
63
|
+
setMaskedInput = _useState3[1];
|
|
86
64
|
|
|
87
|
-
var _useState4 = (0, _react.useState)(''),
|
|
88
|
-
|
|
89
|
-
|
|
65
|
+
var _useState4 = (0, _react.useState)('RadioButton 1'),
|
|
66
|
+
radioButton = _useState4[0],
|
|
67
|
+
setRadioButton = _useState4[1];
|
|
90
68
|
|
|
91
|
-
var _useState5 = (0, _react.useState)(
|
|
92
|
-
|
|
93
|
-
|
|
69
|
+
var _useState5 = (0, _react.useState)([1, 2]),
|
|
70
|
+
rangeSelector = _useState5[0],
|
|
71
|
+
setRangeSelector = _useState5[1];
|
|
94
72
|
|
|
95
|
-
var _useState6 = (0, _react.useState)(
|
|
96
|
-
|
|
97
|
-
|
|
73
|
+
var _useState6 = (0, _react.useState)(0),
|
|
74
|
+
tabIndex = _useState6[0],
|
|
75
|
+
setTabIndex = _useState6[1];
|
|
98
76
|
|
|
99
|
-
var _useState7 = (0, _react.useState)(),
|
|
100
|
-
themeMode = _useState7[0],
|
|
101
|
-
setThemeMode = _useState7[1];
|
|
102
|
-
|
|
103
|
-
var _useState8 = (0, _react.useState)('grommet'),
|
|
104
|
-
themeName = _useState8[0],
|
|
105
|
-
setThemeName = _useState8[1];
|
|
106
|
-
|
|
107
|
-
var _useState9 = (0, _react.useState)(undefined),
|
|
108
|
-
background = _useState9[0],
|
|
109
|
-
setBackground = _useState9[1];
|
|
110
|
-
|
|
111
|
-
var _useState10 = (0, _react.useState)(0),
|
|
112
|
-
tabIndex = _useState10[0],
|
|
113
|
-
setTabIndex = _useState10[1];
|
|
114
|
-
|
|
115
|
-
var theme = (0, _react.useMemo)(function () {
|
|
116
|
-
return (0, _utils.deepMerge)((0, _base.generate)(baseSize), themes[themeName]);
|
|
117
|
-
}, [baseSize, themeName]);
|
|
118
|
-
var themeCanMode = (0, _react.useMemo)(function () {
|
|
119
|
-
return theme && theme.global.colors.background && theme.global.colors.background.dark;
|
|
120
|
-
}, [theme]);
|
|
121
77
|
var content = [/*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
122
78
|
key: "type",
|
|
123
79
|
align: "start",
|
|
@@ -376,77 +332,14 @@ var Components = function Components() {
|
|
|
376
332
|
src: "http://techslides.com/demos/sample-videos/small.3gp",
|
|
377
333
|
type: "video/3gp"
|
|
378
334
|
})))];
|
|
379
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
380
|
-
style: {
|
|
381
|
-
height: '100vh',
|
|
382
|
-
display: 'flex',
|
|
383
|
-
flexDirection: 'column'
|
|
384
|
-
}
|
|
385
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Grommet, {
|
|
386
|
-
theme: _themes.grommet,
|
|
387
|
-
style: {
|
|
388
|
-
flex: '0 0 auto'
|
|
389
|
-
}
|
|
390
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
391
|
-
direction: "row-responsive",
|
|
392
|
-
gap: "medium",
|
|
393
|
-
justify: "end",
|
|
394
|
-
align: "center",
|
|
395
|
-
margin: "small"
|
|
396
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
397
|
-
basis: "small"
|
|
398
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Select, {
|
|
399
|
-
plain: true,
|
|
400
|
-
size: "small",
|
|
401
|
-
options: Object.keys(themes),
|
|
402
|
-
value: themeName,
|
|
403
|
-
onChange: function onChange(event) {
|
|
404
|
-
return setThemeName(event.option);
|
|
405
|
-
}
|
|
406
|
-
})), themeCanMode && /*#__PURE__*/_react["default"].createElement(_grommet.CheckBox, {
|
|
407
|
-
label: "dark",
|
|
408
|
-
checked: themeMode === 'dark',
|
|
409
|
-
onChange: function onChange() {
|
|
410
|
-
return setThemeMode(themeMode === 'dark' ? 'light' : 'dark');
|
|
411
|
-
}
|
|
412
|
-
}), !themeCanMode && /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
413
|
-
basis: "small"
|
|
414
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Select, {
|
|
415
|
-
plain: true,
|
|
416
|
-
placeholder: "background",
|
|
417
|
-
size: "small",
|
|
418
|
-
options: ['default', 'dark-1', 'light-1'],
|
|
419
|
-
value: background,
|
|
420
|
-
onChange: function onChange(event) {
|
|
421
|
-
return setBackground(event.option);
|
|
422
|
-
}
|
|
423
|
-
})), /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
424
|
-
basis: "small"
|
|
425
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.RangeInput, {
|
|
426
|
-
min: 16,
|
|
427
|
-
max: 36,
|
|
428
|
-
step: 2,
|
|
429
|
-
value: baseSize,
|
|
430
|
-
onChange: function onChange(event) {
|
|
431
|
-
return setBaseSize(parseInt(event.target.value, 10));
|
|
432
|
-
}
|
|
433
|
-
})), /*#__PURE__*/_react["default"].createElement(_grommet.Text, {
|
|
434
|
-
size: "small"
|
|
435
|
-
}, baseSize + "px base spacing"))), /*#__PURE__*/_react["default"].createElement(_grommet.Grommet, {
|
|
436
|
-
theme: theme,
|
|
437
|
-
themeMode: themeMode,
|
|
438
|
-
style: {
|
|
439
|
-
flex: '1 1'
|
|
440
|
-
}
|
|
441
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
335
|
+
return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
442
336
|
fill: true,
|
|
443
337
|
pad: "medium",
|
|
444
|
-
background: background || theme.global.colors.background,
|
|
445
338
|
overflow: "auto"
|
|
446
339
|
}, /*#__PURE__*/_react["default"].createElement(_grommet.Grid, {
|
|
447
340
|
columns: "small",
|
|
448
341
|
gap: "medium"
|
|
449
|
-
}, content))
|
|
342
|
+
}, content));
|
|
450
343
|
};
|
|
451
344
|
|
|
452
345
|
var All = function All() {
|
|
@@ -44,7 +44,9 @@ var CustomHeaderAccordion = function CustomHeaderAccordion() {
|
|
|
44
44
|
style: {
|
|
45
45
|
height: '800px'
|
|
46
46
|
}
|
|
47
|
-
}, /*#__PURE__*/_react["default"].createElement(_grommet.Text, null, "Panel 1 contents"), /*#__PURE__*/_react["default"].createElement(_grommet.TextInput,
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_grommet.Text, null, "Panel 1 contents"), /*#__PURE__*/_react["default"].createElement(_grommet.TextInput, {
|
|
48
|
+
a11yTitle: "panel 1 text box"
|
|
49
|
+
}))), /*#__PURE__*/_react["default"].createElement(_grommet.AccordionPanel, {
|
|
48
50
|
header: renderPanelHeader('Panel 2', activeIndex.includes(1))
|
|
49
51
|
}, /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
50
52
|
pad: "medium",
|
|
@@ -7,13 +7,15 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = require("styled-components");
|
|
9
9
|
|
|
10
|
+
var _Image = require("../Image");
|
|
11
|
+
|
|
10
12
|
var _defaultProps = require("../../default-props");
|
|
11
13
|
|
|
12
14
|
var _StyledAvatar = require("./StyledAvatar");
|
|
13
15
|
|
|
14
16
|
var _propTypes = require("./propTypes");
|
|
15
17
|
|
|
16
|
-
var _excluded = ["align", "children", "height", "justify", "round", "size", "src", "width"];
|
|
18
|
+
var _excluded = ["a11yTitle", "aria-label", "align", "children", "height", "justify", "round", "size", "src", "width"];
|
|
17
19
|
|
|
18
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
21
|
|
|
@@ -24,7 +26,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
24
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
27
|
|
|
26
28
|
var Avatar = function Avatar(_ref) {
|
|
27
|
-
var
|
|
29
|
+
var a11yTitle = _ref.a11yTitle,
|
|
30
|
+
ariaLabel = _ref['aria-label'],
|
|
31
|
+
_ref$align = _ref.align,
|
|
28
32
|
align = _ref$align === void 0 ? 'center' : _ref$align,
|
|
29
33
|
children = _ref.children,
|
|
30
34
|
height = _ref.height,
|
|
@@ -60,17 +64,26 @@ var Avatar = function Avatar(_ref) {
|
|
|
60
64
|
console.warn('Avatar should use `size` instead of `height` or `width` props');
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(_StyledAvatar.StyledAvatar, _extends({}, avatarProps, rest, {
|
|
65
|
-
background: "url(" + src + ")"
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
67
|
+
var content;
|
|
68
68
|
|
|
69
69
|
if (typeof children === 'string') {
|
|
70
|
-
|
|
70
|
+
content = /*#__PURE__*/_react["default"].createElement(_StyledAvatar.StyledAvatarText, {
|
|
71
71
|
alignSelf: "center",
|
|
72
72
|
size: avatarTextSize
|
|
73
|
-
}, children)
|
|
73
|
+
}, children);
|
|
74
|
+
} else if (typeof src === 'string') {
|
|
75
|
+
content = /*#__PURE__*/_react["default"].createElement(_Image.Image, {
|
|
76
|
+
role: "presentation",
|
|
77
|
+
fit: "contain",
|
|
78
|
+
src: src
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (typeof children === 'string' || typeof src === 'string') {
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement(_StyledAvatar.StyledAvatar, _extends({
|
|
84
|
+
role: typeof src === 'string' ? 'figure' : undefined,
|
|
85
|
+
a11yTitle: a11yTitle || ariaLabel
|
|
86
|
+
}, avatarProps, rest), content);
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
return /*#__PURE__*/_react["default"].createElement(AvatarChildren, null);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = exports.BackgroundThemed = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _grommet = require("grommet");
|
|
9
|
+
|
|
10
|
+
var _Grid = require("../../Grid");
|
|
11
|
+
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
|
|
16
|
+
var BackgroundThemed = function BackgroundThemed() {
|
|
17
|
+
var theme = (0, _react.useContext)(_grommet.ThemeContext);
|
|
18
|
+
var backgrounds = theme.global.backgrounds;
|
|
19
|
+
return (// Uncomment <Grommet> lines when using outside of storybook
|
|
20
|
+
// <Grommet>
|
|
21
|
+
backgrounds ? /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
|
|
22
|
+
columns: "small",
|
|
23
|
+
rows: "small",
|
|
24
|
+
gap: "small",
|
|
25
|
+
pad: "large"
|
|
26
|
+
}, Object.entries(backgrounds).map(function (_ref) {
|
|
27
|
+
var key = _ref[0],
|
|
28
|
+
background = _ref[1];
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
30
|
+
key: key,
|
|
31
|
+
background: background,
|
|
32
|
+
fill: true,
|
|
33
|
+
pad: "medium",
|
|
34
|
+
justify: "center",
|
|
35
|
+
round: "small"
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement(_grommet.Text, {
|
|
37
|
+
weight: "bold",
|
|
38
|
+
size: "large"
|
|
39
|
+
}, key));
|
|
40
|
+
})) : /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
41
|
+
pad: "large"
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_grommet.Paragraph, {
|
|
43
|
+
size: "large"
|
|
44
|
+
}, "There are no backgrounds defined at `theme.global.backgrounds` for the currently selected theme. Selecting \"grommet\" from the Theme menu above is a good place to start.")) // </Grommet>
|
|
45
|
+
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.BackgroundThemed = BackgroundThemed;
|
|
50
|
+
BackgroundThemed.storyName = 'Background from theme';
|
|
51
|
+
var _default = {
|
|
52
|
+
title: 'Layout/Box/Background from theme'
|
|
53
|
+
};
|
|
54
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Grommet, Box, Grid, Text } from 'grommet';
|
|
4
|
+
import { ThemeType } from 'grommet/themes';
|
|
5
|
+
|
|
6
|
+
const myTheme: ThemeType = {
|
|
7
|
+
global: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
hex: '#555555',
|
|
10
|
+
themeColor: 'accent-1',
|
|
11
|
+
image: `url(https://images.unsplash.com/photo-1583530015497-6cf9ef9c6f0f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80)`,
|
|
12
|
+
'dark-light-image': {
|
|
13
|
+
dark: `url(https://images.unsplash.com/photo-1620744209976-74accdabd814?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80)`,
|
|
14
|
+
light: `url(https://images.unsplash.com/photo-1646723504943-4b55a30ed655?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1471&q=80)`,
|
|
15
|
+
},
|
|
16
|
+
gradient: `linear-gradient(
|
|
17
|
+
80deg,
|
|
18
|
+
hsl(41deg 100% 67%) 0%,
|
|
19
|
+
hsl(333deg 100% 70%) 33%,
|
|
20
|
+
hsl(257deg 99% 73%) 67%,
|
|
21
|
+
hsl(173deg 95% 75%) 100%
|
|
22
|
+
);`,
|
|
23
|
+
object: {
|
|
24
|
+
color: 'white',
|
|
25
|
+
image: `url(https://images.unsplash.com/photo-1464820453369-31d2c0b651af?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=80&q=80)`,
|
|
26
|
+
repeat: 'repeat',
|
|
27
|
+
size: '24px',
|
|
28
|
+
opacity: true,
|
|
29
|
+
},
|
|
30
|
+
stack: {
|
|
31
|
+
color: 'light-1',
|
|
32
|
+
image: `url(https://v2.grommet.io/img/stak-hurrah.svg)`,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const backgroundSamples = [
|
|
39
|
+
{
|
|
40
|
+
background: '#F8F8F8',
|
|
41
|
+
label: { value: 'hex value', context: 'prop string' },
|
|
42
|
+
},
|
|
43
|
+
{ background: 'hex', label: { value: 'hex value', context: 'theme string' } },
|
|
44
|
+
{
|
|
45
|
+
background: 'accent-4',
|
|
46
|
+
label: { value: 'color name', context: 'prop string' },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
background: 'themeColor',
|
|
50
|
+
label: { value: 'color name', context: 'theme string' },
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
background: `url(https://images.unsplash.com/photo-1493552832879-f61d5dce6c9e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80)`,
|
|
54
|
+
label: { value: 'image', context: 'prop string' },
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
background: 'image',
|
|
58
|
+
label: { value: 'image', context: 'theme string' },
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
background: {
|
|
62
|
+
color: 'light-1',
|
|
63
|
+
},
|
|
64
|
+
label: { value: 'hover', context: 'over me' },
|
|
65
|
+
onClick: () => {},
|
|
66
|
+
hoverIndicator: 'stack',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
background: `linear-gradient(
|
|
70
|
+
155deg,
|
|
71
|
+
hsl(147deg 100% 72%) 0%,
|
|
72
|
+
hsl(223deg 100% 72%) 50%,
|
|
73
|
+
hsl(299deg 100% 72%) 100%
|
|
74
|
+
);`,
|
|
75
|
+
label: { value: 'gradient', context: 'prop string' },
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
background: 'gradient',
|
|
79
|
+
label: { value: 'gradient', context: 'theme string' },
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
background: { dark: 'accent-2', light: 'accent-3' },
|
|
83
|
+
label: { value: 'dark-light object', context: 'prop object' },
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
background: 'dark-light-image',
|
|
87
|
+
label: { value: 'dark-light object', context: 'theme object' },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
background: {
|
|
91
|
+
image: 'dark-light-image',
|
|
92
|
+
dark: true,
|
|
93
|
+
color: { dark: 'black', light: 'gold' },
|
|
94
|
+
},
|
|
95
|
+
label: { value: 'dark-light object force dark', context: 'theme object' },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
background: {
|
|
99
|
+
color: 'neutral-2',
|
|
100
|
+
image: `url(https://images.unsplash.com/photo-1653023500770-3a3b64a1b4c4?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1632&q=80)`,
|
|
101
|
+
position: 'top-left',
|
|
102
|
+
},
|
|
103
|
+
label: { value: 'object', context: 'prop object' },
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
background: 'object',
|
|
107
|
+
label: { value: 'object', context: 'theme object' },
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
background: { image: 'gradient', rotate: 180 },
|
|
111
|
+
label: { value: 'rotate', context: 'prop object' },
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
background: {
|
|
115
|
+
image: 'gradient',
|
|
116
|
+
rotate: -90,
|
|
117
|
+
clip: 'text',
|
|
118
|
+
},
|
|
119
|
+
label: {
|
|
120
|
+
value: <Text size="xxlarge">clip text</Text>,
|
|
121
|
+
context: <Text size="medium">prop object</Text>,
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
background: {
|
|
126
|
+
image: 'image',
|
|
127
|
+
rotate: -90,
|
|
128
|
+
clip: 'text',
|
|
129
|
+
},
|
|
130
|
+
label: {
|
|
131
|
+
value: <Text size="xxlarge">clip text</Text>,
|
|
132
|
+
context: <Text size="medium">prop object</Text>,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
];
|
|
136
|
+
|
|
137
|
+
const Swatch = ({ label, ...rest }) => (
|
|
138
|
+
<Box fill pad="medium" justify="center" round="small" {...rest}>
|
|
139
|
+
<Text weight="bold" size="large">
|
|
140
|
+
{label.value}
|
|
141
|
+
</Text>
|
|
142
|
+
<Text size="small">{label.context}</Text>
|
|
143
|
+
</Box>
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
export const ThemedBackgrounds = () => (
|
|
147
|
+
// Uncomment <Grommet> lines when using outside of storybook
|
|
148
|
+
<Grommet
|
|
149
|
+
theme={myTheme}
|
|
150
|
+
full
|
|
151
|
+
background={`linear-gradient(
|
|
152
|
+
155deg,
|
|
153
|
+
hsl(0deg 0% 51%) 0%,
|
|
154
|
+
hsl(0deg 0% 76%) 50%,
|
|
155
|
+
hsl(0deg 0% 100%) 100%
|
|
156
|
+
)`}
|
|
157
|
+
>
|
|
158
|
+
<Grid columns="small" rows="small" gap="small" pad="large">
|
|
159
|
+
{backgroundSamples.map((sample, index) => (
|
|
160
|
+
<Swatch
|
|
161
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
162
|
+
key={index}
|
|
163
|
+
background={sample.background}
|
|
164
|
+
label={sample.label}
|
|
165
|
+
{...sample}
|
|
166
|
+
/>
|
|
167
|
+
))}
|
|
168
|
+
</Grid>
|
|
169
|
+
</Grommet>
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
ThemedBackgrounds.storyName = 'Themed Background';
|
|
173
|
+
|
|
174
|
+
export default {
|
|
175
|
+
title: 'Layout/Box/Custom Themed/Themed Background',
|
|
176
|
+
};
|
|
@@ -569,7 +569,8 @@ var Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
|
|
|
569
569
|
}, /*#__PURE__*/_react["default"].createElement(_Heading.Heading, {
|
|
570
570
|
level: size === 'small' ? theme.calendar.heading && theme.calendar.heading.level || 4 : (theme.calendar.heading && theme.calendar.heading.level || 4) - 1,
|
|
571
571
|
size: size,
|
|
572
|
-
margin: "none"
|
|
572
|
+
margin: "none",
|
|
573
|
+
overflowWrap: "normal"
|
|
573
574
|
}, reference.toLocaleDateString(locale, {
|
|
574
575
|
month: 'long',
|
|
575
576
|
year: 'numeric'
|
|
@@ -21,14 +21,18 @@ var fillStyle = function fillStyle() {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
|
|
24
|
-
var hoverStyle = (0, _styledComponents.css)([":hover input:not([disabled]) + div,:hover input:not([disabled]) + span{border-color:", ";}:hover{background-color:", ";}"], function (props) {
|
|
24
|
+
var hoverStyle = (0, _styledComponents.css)([":hover input:not([disabled]) + div,:hover input:not([disabled]) + span{border-color:", ";", "}:hover{background-color:", ";}"], function (props) {
|
|
25
25
|
var _props$theme$checkBox, _props$theme$checkBox2;
|
|
26
26
|
|
|
27
27
|
return (0, _utils.normalizeColor)((_props$theme$checkBox = props.theme.checkBox.hover) == null ? void 0 : (_props$theme$checkBox2 = _props$theme$checkBox.border) == null ? void 0 : _props$theme$checkBox2.color, props.theme);
|
|
28
28
|
}, function (props) {
|
|
29
|
-
var _props$theme$checkBox3
|
|
29
|
+
var _props$theme$checkBox3;
|
|
30
30
|
|
|
31
|
-
return (
|
|
31
|
+
return (_props$theme$checkBox3 = props.theme.checkBox.hover) == null ? void 0 : _props$theme$checkBox3.extend;
|
|
32
|
+
}, function (props) {
|
|
33
|
+
var _props$theme$checkBox4, _props$theme$checkBox5;
|
|
34
|
+
|
|
35
|
+
return (0, _utils.normalizeColor)(!props.disabled && ((_props$theme$checkBox4 = props.theme.checkBox.hover) == null ? void 0 : (_props$theme$checkBox5 = _props$theme$checkBox4.background) == null ? void 0 : _props$theme$checkBox5.color), props.theme);
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
var StyledCheckBoxIcon = _styledComponents["default"].svg.withConfig({
|
|
@@ -64,9 +68,9 @@ var StyledCheckBoxContainer = _styledComponents["default"].label.withConfig({
|
|
|
64
68
|
}, function (props) {
|
|
65
69
|
return !props.disabled && 'cursor: pointer;';
|
|
66
70
|
}, hoverStyle, function (props) {
|
|
67
|
-
var _props$theme$
|
|
71
|
+
var _props$theme$checkBox6, _props$theme$checkBox7, _props$theme$checkBox8, _props$theme$checkBox9;
|
|
68
72
|
|
|
69
|
-
return props.focus && !props.focusIndicator && "\n input:not([disabled]) + div,\n input:not([disabled]) + span {\n border-color: " + (0, _utils.normalizeColor)((_props$theme$
|
|
73
|
+
return props.focus && !props.focusIndicator && "\n input:not([disabled]) + div,\n input:not([disabled]) + span {\n border-color: " + (0, _utils.normalizeColor)((_props$theme$checkBox6 = props.theme.checkBox.hover) == null ? void 0 : (_props$theme$checkBox7 = _props$theme$checkBox6.border) == null ? void 0 : _props$theme$checkBox7.color, props.theme) + ";\n }\n \n background-color: " + (0, _utils.normalizeColor)(!props.disabled && ((_props$theme$checkBox8 = props.theme.checkBox.hover) == null ? void 0 : (_props$theme$checkBox9 = _props$theme$checkBox8.background) == null ? void 0 : _props$theme$checkBox9.color), props.theme) + ";";
|
|
70
74
|
}, function (props) {
|
|
71
75
|
return props.theme.checkBox.extend;
|
|
72
76
|
});
|
|
@@ -15,7 +15,7 @@ var _StyledCheckBoxGroup = require("./StyledCheckBoxGroup");
|
|
|
15
15
|
|
|
16
16
|
var _propTypes = require("./propTypes");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["children", "value", "disabled", "focusIndicator", "gap", "labelKey", "valueKey", "onChange", "options", "name"],
|
|
18
|
+
var _excluded = ["children", "defaultValue", "value", "disabled", "focusIndicator", "gap", "labelKey", "valueKey", "onChange", "options", "name"],
|
|
19
19
|
_excluded2 = ["value"];
|
|
20
20
|
|
|
21
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -28,6 +28,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
28
28
|
|
|
29
29
|
var CheckBoxGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
30
30
|
var children = _ref.children,
|
|
31
|
+
defaultValue = _ref.defaultValue,
|
|
31
32
|
valueProp = _ref.value,
|
|
32
33
|
disabledProp = _ref.disabled,
|
|
33
34
|
_ref$focusIndicator = _ref.focusIndicator,
|
|
@@ -54,7 +55,7 @@ var CheckBoxGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
54
55
|
var _formContext$useFormI = formContext.useFormInput({
|
|
55
56
|
name: name,
|
|
56
57
|
value: valueProp,
|
|
57
|
-
initialValue: []
|
|
58
|
+
initialValue: defaultValue || []
|
|
58
59
|
}),
|
|
59
60
|
value = _formContext$useFormI[0],
|
|
60
61
|
setValue = _formContext$useFormI[1]; // Logic is necessary to maintain a proper data structure for Form logic
|
|
@@ -15,6 +15,7 @@ export interface CheckBoxType
|
|
|
15
15
|
|
|
16
16
|
export interface CheckBoxGroupProps {
|
|
17
17
|
value?: (number | string)[];
|
|
18
|
+
defaultValue?: (number | string)[];
|
|
18
19
|
disabled?: boolean;
|
|
19
20
|
labelKey?: string;
|
|
20
21
|
name?: string;
|
|
@@ -26,7 +27,7 @@ export interface CheckBoxGroupProps {
|
|
|
26
27
|
export interface CheckBoxGroupExtendedProps
|
|
27
28
|
extends CheckBoxGroupProps,
|
|
28
29
|
BoxProps,
|
|
29
|
-
Omit<JSX.IntrinsicElements['div'], 'onClick' |
|
|
30
|
+
Omit<JSX.IntrinsicElements['div'], 'onClick' | keyof CheckBoxGroupProps> {}
|
|
30
31
|
|
|
31
32
|
declare const CheckBoxGroup: React.FC<CheckBoxGroupExtendedProps>;
|
|
32
33
|
|
|
@@ -12,6 +12,7 @@ var PropType = {};
|
|
|
12
12
|
if (process.env.NODE_ENV !== 'production') {
|
|
13
13
|
PropType = {
|
|
14
14
|
value: _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string])),
|
|
15
|
+
defaultValue: _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])),
|
|
15
16
|
disabled: _propTypes["default"].bool,
|
|
16
17
|
labelKey: _propTypes["default"].string,
|
|
17
18
|
name: _propTypes["default"].string,
|
|
@@ -134,8 +134,10 @@ var Detail = function Detail(_ref) {
|
|
|
134
134
|
gap: "xsmall",
|
|
135
135
|
align: "center"
|
|
136
136
|
}, series.filter(function (_ref2) {
|
|
137
|
+
var _data$detailIndex;
|
|
138
|
+
|
|
137
139
|
var property = _ref2.property;
|
|
138
|
-
return !activeProperty || activeProperty === property || axis && axis.x && axis.x.property === property;
|
|
140
|
+
return (!activeProperty || activeProperty === property) && (data == null ? void 0 : (_data$detailIndex = data[detailIndex]) == null ? void 0 : _data$detailIndex[property]) !== undefined || axis && axis.x && axis.x.property === property;
|
|
139
141
|
}).map(function (serie) {
|
|
140
142
|
var propertyStyle = seriesStyles[serie.property];
|
|
141
143
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
@@ -91,12 +91,12 @@ export interface DataTableProps<TRowType = any> {
|
|
|
91
91
|
groupBy?:
|
|
92
92
|
| string
|
|
93
93
|
| {
|
|
94
|
-
property
|
|
95
|
-
expand
|
|
96
|
-
expandable
|
|
97
|
-
select
|
|
98
|
-
onExpand
|
|
99
|
-
onSelect
|
|
94
|
+
property?: string;
|
|
95
|
+
expand?: Array<string>;
|
|
96
|
+
expandable?: Array<string>;
|
|
97
|
+
select?: { [key: string]: 'all' | 'some' | 'none' };
|
|
98
|
+
onExpand?: (expandedKeys: string[]) => void;
|
|
99
|
+
onSelect?: (select: (string | number)[], datum: TRowType) => void;
|
|
100
100
|
};
|
|
101
101
|
primaryKey?: string | boolean;
|
|
102
102
|
select?: (string | number)[];
|
|
@@ -289,7 +289,7 @@ var DateInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, refArg) {
|
|
|
289
289
|
}, /*#__PURE__*/_react["default"].createElement(_Box.Box, {
|
|
290
290
|
ref: containerRef,
|
|
291
291
|
border: !plain,
|
|
292
|
-
round:
|
|
292
|
+
round: theme.dateInput.container.round,
|
|
293
293
|
direction: "row",
|
|
294
294
|
fill: true
|
|
295
295
|
}, reverse && calendarButton, /*#__PURE__*/_react["default"].createElement(_MaskedInput.MaskedInput, _extends({
|
|
@@ -223,7 +223,8 @@ var Diagram = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
223
223
|
|
|
224
224
|
path = /*#__PURE__*/_react["default"].createElement("path", _extends({
|
|
225
225
|
// eslint-disable-next-line react/no-array-index-key
|
|
226
|
-
key: index
|
|
226
|
+
key: index // eslint-disable-next-line react/no-unknown-property
|
|
227
|
+
,
|
|
227
228
|
animation: animation
|
|
228
229
|
}, cleanedRest, {
|
|
229
230
|
stroke: (0, _utils.normalizeColor)(colorName, theme),
|
|
@@ -48,7 +48,7 @@ var OverflowDrop = function OverflowDrop() {
|
|
|
48
48
|
align: "center",
|
|
49
49
|
justify: "center"
|
|
50
50
|
}, /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
51
|
-
background: "dark-
|
|
51
|
+
background: "dark-2",
|
|
52
52
|
pad: "medium",
|
|
53
53
|
align: "center",
|
|
54
54
|
justify: "start",
|