@carbon/ibm-products 2.10.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/css/index-full-carbon.css +72 -26
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +3 -3
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +1 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +72 -26
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +3 -3
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +69 -25
- package/css/index.css.map +1 -1
- package/css/index.min.css +2 -2
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +10 -3
- package/es/components/AboutModal/AboutModal.js +10 -3
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/es/components/CreateModal/CreateModal.js +10 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -3
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/es/components/Datagrid/Datagrid/DatagridRow.js +47 -40
- package/es/components/Datagrid/Datagrid/DraggableElement.js +36 -132
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -49
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +125 -40
- package/es/components/Datagrid/useActionsColumn.js +5 -3
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/es/components/ExportModal/ExportModal.js +10 -3
- package/es/components/ImportModal/ImportModal.js +10 -3
- package/es/components/RemoveModal/RemoveModal.js +10 -3
- package/es/components/TagSet/TagSet.js +5 -21
- package/es/components/TagSet/TagSetModal.js +7 -3
- package/es/components/Tearsheet/TearsheetShell.js +12 -26
- package/es/components/index.js +1 -1
- package/es/global/decorators/sidePanelDecorator.js +7 -0
- package/es/global/js/hooks/usePortalTarget.js +30 -0
- package/es/global/js/hooks/useWindowScroll.js +5 -0
- package/es/global/js/package-settings.js +1 -1
- package/es/global/js/utils/getNodeTextContent.js +47 -0
- package/flags.js +6 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +10 -3
- package/lib/components/AboutModal/AboutModal.js +10 -3
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/lib/components/CreateModal/CreateModal.js +10 -3
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +46 -41
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +37 -137
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +20 -49
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +130 -47
- package/lib/components/Datagrid/useActionsColumn.js +5 -3
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/lib/components/EmptyStates/EmptyState.js +1 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/lib/components/ExportModal/ExportModal.js +10 -3
- package/lib/components/ImportModal/ImportModal.js +10 -3
- package/lib/components/RemoveModal/RemoveModal.js +10 -3
- package/lib/components/TagSet/TagSet.js +5 -21
- package/lib/components/TagSet/TagSetModal.js +7 -3
- package/lib/components/Tearsheet/TearsheetShell.js +12 -26
- package/lib/components/index.js +6 -0
- package/lib/global/decorators/sidePanelDecorator.js +7 -0
- package/lib/global/js/hooks/usePortalTarget.js +38 -0
- package/lib/global/js/hooks/useWindowScroll.js +6 -0
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/getNodeTextContent.js +55 -0
- package/package.json +11 -7
- package/scss/components/ActionSet/_action-set.scss +2 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +11 -6
- package/scss/components/Datagrid/styles/_draggableElement.scss +34 -16
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -0
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +22 -11
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +6 -3
- package/scss/components/FilterSummary/_filter-summary.scss +2 -1
- package/scss/global/decorators/_side-panel-decorator.scss +7 -0
- package/scss/global/js/utils/_story-as-full-page.scss +0 -6
@@ -1,18 +1,23 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = void 0;
|
8
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
10
|
-
var _react =
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
12
13
|
var _react2 = require("@carbon/react");
|
14
|
+
var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"));
|
13
15
|
var _settings = require("../../../../../settings");
|
14
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
15
17
|
var _DraggableItemsList = require("./DraggableItemsList");
|
18
|
+
var _uuidv = _interopRequireDefault(require("../../../../../global/js/utils/uuidv4"));
|
19
|
+
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); }
|
20
|
+
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; }
|
16
21
|
/**
|
17
22
|
* Copyright IBM Corp. 2022, 2023
|
18
23
|
*
|
@@ -20,20 +25,7 @@ var _DraggableItemsList = require("./DraggableItemsList");
|
|
20
25
|
* LICENSE file in the root directory of this source tree.
|
21
26
|
*/
|
22
27
|
|
23
|
-
// import { DndProvider } from 'react-dnd';
|
24
|
-
// import { HTML5Backend } from 'react-dnd-html5-backend';
|
25
|
-
// import update from 'immutability-helper';
|
26
28
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
27
|
-
var getNextIndex = function getNextIndex(array, currentIndex, key) {
|
28
|
-
var newIndex = -1;
|
29
|
-
if (key === 'ArrowUp') {
|
30
|
-
newIndex = currentIndex - 1 >= 0 ? currentIndex - 1 : array.length - 1;
|
31
|
-
}
|
32
|
-
if (key === 'ArrowDown') {
|
33
|
-
newIndex = currentIndex + 1 < array.length ? currentIndex + 1 : 0;
|
34
|
-
}
|
35
|
-
return newIndex;
|
36
|
-
};
|
37
29
|
var Columns = function Columns(_ref) {
|
38
30
|
var getVisibleColumnsCount = _ref.getVisibleColumnsCount,
|
39
31
|
filterString = _ref.filterString,
|
@@ -43,43 +35,26 @@ var Columns = function Columns(_ref) {
|
|
43
35
|
assistiveTextInstructionsLabel = _ref.assistiveTextInstructionsLabel,
|
44
36
|
assistiveTextDisabledInstructionsLabel = _ref.assistiveTextDisabledInstructionsLabel,
|
45
37
|
selectAllLabel = _ref.selectAllLabel;
|
38
|
+
var listId = (0, _react.useRef)((0, _uuidv.default)()); // keep id between renders
|
39
|
+
var listRef = (0, _react.useRef)(null);
|
46
40
|
var _React$useState = _react.default.useState(''),
|
47
41
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
48
42
|
ariaRegionText = _React$useState2[0],
|
49
43
|
setAriaRegionText = _React$useState2[1];
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
// setColumnsObject(
|
58
|
-
// update(columns, {
|
59
|
-
// $splice: [
|
60
|
-
// [dragIndex, 1],
|
61
|
-
// [hoverIndex, 0, dragCard],
|
62
|
-
// ],
|
63
|
-
// })
|
64
|
-
// );
|
65
|
-
// },
|
66
|
-
// [columns, setColumnsObject]
|
67
|
-
// );
|
68
|
-
|
44
|
+
// after a drag/drop action set the columns
|
45
|
+
var moveElement = _react.default.useCallback(function (from, to) {
|
46
|
+
var fromCol = columns[from];
|
47
|
+
setColumnsObject((0, _immutabilityHelper.default)(columns, {
|
48
|
+
$splice: [[from, 1], [to, 0, fromCol]]
|
49
|
+
}));
|
50
|
+
}, [columns, setColumnsObject]);
|
69
51
|
return /*#__PURE__*/_react.default.createElement("div", {
|
70
|
-
className: "".concat(blockClass, "__customize-columns-column-list")
|
52
|
+
className: "".concat(blockClass, "__customize-columns-column-list"),
|
53
|
+
ref: listRef
|
71
54
|
}, /*#__PURE__*/_react.default.createElement("ol", {
|
72
55
|
className: "".concat(blockClass, "__customize-columns-column-list--focus"),
|
73
56
|
role: "listbox",
|
74
57
|
"aria-describedby": "".concat(blockClass, "__customize-columns--instructions"),
|
75
|
-
onKeyDown: function onKeyDown(e) {
|
76
|
-
var nextIndex = getNextIndex(columns, focusIndex, e.key);
|
77
|
-
if (nextIndex >= 0) {
|
78
|
-
setFocusIndex(nextIndex);
|
79
|
-
e.preventDefault();
|
80
|
-
e.stopPropagation();
|
81
|
-
}
|
82
|
-
},
|
83
58
|
tabIndex: 0
|
84
59
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
85
60
|
"aria-live": "assertive",
|
@@ -101,16 +76,12 @@ var Columns = function Columns(_ref) {
|
|
101
76
|
id: "".concat(blockClass, "__customization-column-select-all"),
|
102
77
|
labelText: selectAllLabel
|
103
78
|
})), /*#__PURE__*/_react.default.createElement(_DraggableItemsList.DraggableItemsList, {
|
79
|
+
id: listId.current,
|
104
80
|
columns: columns,
|
105
81
|
filterString: filterString,
|
106
|
-
|
107
|
-
getNextIndex: getNextIndex
|
108
|
-
// moveElement={moveElement}
|
109
|
-
,
|
110
|
-
onSelectColumn: onSelectColumn,
|
82
|
+
moveElement: moveElement,
|
111
83
|
setAriaRegionText: setAriaRegionText,
|
112
|
-
|
113
|
-
setFocusIndex: setFocusIndex
|
84
|
+
onSelectColumn: onSelectColumn
|
114
85
|
})));
|
115
86
|
};
|
116
87
|
Columns.propTypes = {
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.DraggableItemsList = void 0;
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
9
10
|
var _propTypes = require("prop-types");
|
10
11
|
var _react2 = require("@carbon/react");
|
@@ -12,24 +13,28 @@ var _common = require("./common");
|
|
12
13
|
var _DraggableElement = _interopRequireDefault(require("../../DraggableElement"));
|
13
14
|
var _settings = require("../../../../../settings");
|
14
15
|
var _getColTitle2 = _interopRequireDefault(require("../../../utils/getColTitle"));
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
var _core = require("@dnd-kit/core");
|
17
|
+
var _sortable = require("@dnd-kit/sortable");
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
20
|
+
* Copyright IBM Corp. 2023, 2023
|
21
|
+
*
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
24
|
+
*/
|
22
25
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
26
|
+
var matchedColsById = function matchedColsById(col1, col2) {
|
27
|
+
return col1 && col2 && col1.id === col2.id;
|
28
|
+
};
|
23
29
|
var DraggableItemsList = function DraggableItemsList(_ref) {
|
24
30
|
var columns = _ref.columns,
|
25
31
|
filterString = _ref.filterString,
|
26
|
-
|
27
|
-
|
32
|
+
id = _ref.id,
|
33
|
+
moveElement = _ref.moveElement,
|
28
34
|
onSelectColumn = _ref.onSelectColumn,
|
29
|
-
setAriaRegionText = _ref.setAriaRegionText
|
30
|
-
|
31
|
-
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, columns
|
35
|
+
setAriaRegionText = _ref.setAriaRegionText;
|
36
|
+
var draggableClass = "".concat(blockClass, "__draggable-item");
|
37
|
+
var visibleCols = columns
|
33
38
|
// hide the columns without Header, e.g the sticky actions, spacer
|
34
39
|
.filter(function (colDef) {
|
35
40
|
return !!(0, _getColTitle2.default)(colDef);
|
@@ -38,7 +43,108 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
38
43
|
}).filter(function (colDef) {
|
39
44
|
var _getColTitle;
|
40
45
|
return filterString.length === 0 || ((_getColTitle = (0, _getColTitle2.default)(colDef)) === null || _getColTitle === void 0 ? void 0 : _getColTitle.toLowerCase().includes(filterString)) && colDef.id !== 'spacer';
|
41
|
-
})
|
46
|
+
});
|
47
|
+
|
48
|
+
// let localRefCopy;
|
49
|
+
var handleDragEnd = function handleDragEnd(event) {
|
50
|
+
var active = event.active,
|
51
|
+
over = event.over;
|
52
|
+
var fromVisibleIndex = columns.findIndex(function (col) {
|
53
|
+
return matchedColsById(col, active);
|
54
|
+
});
|
55
|
+
var toVisibleIndex = columns.findIndex(function (col) {
|
56
|
+
return matchedColsById(col, over);
|
57
|
+
});
|
58
|
+
var colTitle = (0, _getColTitle2.default)(visibleCols[fromVisibleIndex]);
|
59
|
+
setAriaRegionText("".concat(colTitle, " dropped. New position ").concat(toVisibleIndex + 1, " of ").concat(visibleCols.length, "."));
|
60
|
+
var fromIndex = columns.findIndex(function (col) {
|
61
|
+
return matchedColsById(col, active);
|
62
|
+
});
|
63
|
+
var toIndex = columns.findIndex(function (col) {
|
64
|
+
return matchedColsById(col, over);
|
65
|
+
});
|
66
|
+
moveElement(fromIndex, toIndex);
|
67
|
+
};
|
68
|
+
var handleDragStart = function handleDragStart(event) {
|
69
|
+
var active = event.active;
|
70
|
+
var fromIndex = visibleCols.findIndex(function (col) {
|
71
|
+
return matchedColsById(col, active);
|
72
|
+
});
|
73
|
+
var colTitle = (0, _getColTitle2.default)(visibleCols[fromIndex]);
|
74
|
+
setAriaRegionText("".concat(colTitle, " grabbed. Current position ").concat(fromIndex + 1, " of ").concat(visibleCols.length, "."));
|
75
|
+
};
|
76
|
+
var handleDragUpdate = function handleDragUpdate(event) {
|
77
|
+
var active = event.active,
|
78
|
+
over = event.over;
|
79
|
+
var fromIndex = visibleCols.findIndex(function (col) {
|
80
|
+
return matchedColsById(col, active);
|
81
|
+
});
|
82
|
+
var toIndex = visibleCols.findIndex(function (col) {
|
83
|
+
return matchedColsById(col, over);
|
84
|
+
});
|
85
|
+
var colTitle = (0, _getColTitle2.default)(visibleCols[fromIndex]);
|
86
|
+
setAriaRegionText("".concat(colTitle, " grabbed. Original position ").concat(fromIndex + 1, ", new position ").concat(toIndex + 1, " of ").concat(visibleCols.length, "."));
|
87
|
+
};
|
88
|
+
var pointerSensor = (0, _core.useSensor)(_core.PointerSensor, {
|
89
|
+
// Require the mouse to move by 10 pixels before activating
|
90
|
+
activationConstraint: {
|
91
|
+
distance: 4
|
92
|
+
}
|
93
|
+
});
|
94
|
+
var keyboardSensor = (0, _core.useSensor)(_core.KeyboardSensor, {
|
95
|
+
coordinateGetter: function coordinateGetter(event, args) {
|
96
|
+
var currentCoordinates = args.currentCoordinates;
|
97
|
+
var target = event.target;
|
98
|
+
while (target && !target.classList.contains(draggableClass)) {
|
99
|
+
target = target.parentNode;
|
100
|
+
}
|
101
|
+
var delta = target.offsetHeight;
|
102
|
+
switch (event.code) {
|
103
|
+
case 'ArrowRight':
|
104
|
+
case 'ArrowLeft':
|
105
|
+
// ignore right and left
|
106
|
+
return currentCoordinates;
|
107
|
+
case 'ArrowUp':
|
108
|
+
return _objectSpread(_objectSpread({}, currentCoordinates), {}, {
|
109
|
+
y: currentCoordinates.y - delta
|
110
|
+
});
|
111
|
+
case 'ArrowDown':
|
112
|
+
return _objectSpread(_objectSpread({}, currentCoordinates), {}, {
|
113
|
+
y: currentCoordinates.y + delta
|
114
|
+
});
|
115
|
+
case 'Space':
|
116
|
+
break;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
});
|
120
|
+
var sensors = (0, _core.useSensors)(pointerSensor, keyboardSensor);
|
121
|
+
var handleCheckboxKeydown = function handleCheckboxKeydown(event, colDef) {
|
122
|
+
if (event.code === 'Space') {
|
123
|
+
onSelectColumn(colDef, !(0, _common.isColumnVisible)(colDef));
|
124
|
+
event.preventDefault();
|
125
|
+
event.stopPropagation();
|
126
|
+
return false;
|
127
|
+
}
|
128
|
+
};
|
129
|
+
return /*#__PURE__*/_react.default.createElement(_core.DndContext, {
|
130
|
+
collisionDetection: _core.closestCenter,
|
131
|
+
onDragEnd: handleDragEnd,
|
132
|
+
onDragStart: handleDragStart,
|
133
|
+
onDragMove: handleDragUpdate,
|
134
|
+
sensors: sensors
|
135
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
136
|
+
className: "".concat(blockClass, "__draggable-underlay"),
|
137
|
+
"aria-hidden": "true",
|
138
|
+
key: "draggable-underlay-".concat(id)
|
139
|
+
}, visibleCols.map(function (colDef) {
|
140
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
141
|
+
className: "".concat(blockClass, "__draggable-underlay-item"),
|
142
|
+
key: colDef.id
|
143
|
+
});
|
144
|
+
})), /*#__PURE__*/_react.default.createElement(_sortable.SortableContext, {
|
145
|
+
items: visibleCols,
|
146
|
+
strategy: _sortable.verticalListSortingStrategy
|
147
|
+
}, visibleCols.map(function (colDef) {
|
42
148
|
var colHeaderTitle = (0, _getColTitle2.default)(colDef);
|
43
149
|
var searchString = new RegExp('(' + filterString + ')');
|
44
150
|
var res = filterString.length ? colHeaderTitle.toLowerCase().split(searchString) : null;
|
@@ -46,7 +152,6 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
46
152
|
var highlightedText = res !== null ? res[0] === '' ? "<strong>".concat(firstWord, "</strong>") + res[2] : firstWord + "<strong>".concat(res[1], "</strong>") + res[2] : colHeaderTitle;
|
47
153
|
var isFrozenColumn = !!colDef.sticky;
|
48
154
|
var listContents = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_react2.Checkbox, {
|
49
|
-
wrapperClassName: "".concat(blockClass, "__customize-columns-checkbox-wrapper"),
|
50
155
|
checked: (0, _common.isColumnVisible)(colDef),
|
51
156
|
disabled: isFrozenColumn,
|
52
157
|
onChange: function onChange(_, _ref2) {
|
@@ -57,7 +162,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
57
162
|
labelText: colHeaderTitle,
|
58
163
|
title: colHeaderTitle,
|
59
164
|
className: "".concat(blockClass, "__customize-columns-checkbox"),
|
60
|
-
hideLabel: true
|
165
|
+
hideLabel: true,
|
166
|
+
onKeyDown: function onKeyDown(event) {
|
167
|
+
return handleCheckboxKeydown(event, colDef);
|
168
|
+
}
|
61
169
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
62
170
|
dangerouslySetInnerHTML: {
|
63
171
|
__html: highlightedText
|
@@ -65,47 +173,22 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
65
173
|
className: "".concat(blockClass, "__customize-columns-checkbox-visible-label")
|
66
174
|
}));
|
67
175
|
return /*#__PURE__*/_react.default.createElement(_DraggableElement.default, {
|
176
|
+
classList: draggableClass,
|
68
177
|
key: colDef.id,
|
69
|
-
|
70
|
-
listData: columns,
|
71
|
-
setListData: setColumnsObject,
|
72
|
-
id: "dnd-datagrid-columns-".concat(colDef.id),
|
73
|
-
type: "column-customization",
|
178
|
+
id: colDef.id,
|
74
179
|
disabled: filterString.length > 0 || isFrozenColumn,
|
75
180
|
ariaLabel: colHeaderTitle,
|
76
|
-
onGrab: setAriaRegionText,
|
77
|
-
isFocused: focusIndex === i
|
78
|
-
// moveElement={moveElement}
|
79
|
-
,
|
80
|
-
onArrowKeyDown: function onArrowKeyDown(e, isGrabbed, currentIndex) {
|
81
|
-
if (isGrabbed) {
|
82
|
-
var _columns$nextIndex;
|
83
|
-
var nextIndex = getNextIndex(columns, currentIndex, e.key);
|
84
|
-
e.preventDefault();
|
85
|
-
e.stopPropagation();
|
86
|
-
if (nextIndex >= 0 && !((_columns$nextIndex = columns[nextIndex]) !== null && _columns$nextIndex !== void 0 && _columns$nextIndex.sticky)) {
|
87
|
-
setFocusIndex(nextIndex);
|
88
|
-
// moveElement(currentIndex, nextIndex);
|
89
|
-
e.target.scrollIntoView({
|
90
|
-
block: 'center'
|
91
|
-
});
|
92
|
-
}
|
93
|
-
}
|
94
|
-
},
|
95
181
|
isSticky: isFrozenColumn,
|
96
182
|
selected: (0, _common.isColumnVisible)(colDef)
|
97
183
|
}, listContents);
|
98
|
-
}));
|
184
|
+
}))));
|
99
185
|
};
|
100
186
|
exports.DraggableItemsList = DraggableItemsList;
|
101
187
|
DraggableItemsList.propTypes = {
|
102
188
|
columns: _propTypes.PropTypes.array.isRequired,
|
103
189
|
filterString: _propTypes.PropTypes.string.isRequired,
|
104
|
-
|
105
|
-
|
106
|
-
// moveElement: PropTypes.func.isRequired,
|
190
|
+
id: _propTypes.PropTypes.string.isRequired,
|
191
|
+
moveElement: _propTypes.PropTypes.func.isRequired,
|
107
192
|
onSelectColumn: _propTypes.PropTypes.func.isRequired,
|
108
|
-
setAriaRegionText: _propTypes.PropTypes.func.isRequired
|
109
|
-
setColumnsObject: _propTypes.PropTypes.func.isRequired,
|
110
|
-
setFocusIndex: _propTypes.PropTypes.func.isRequired
|
193
|
+
setAriaRegionText: _propTypes.PropTypes.func.isRequired
|
111
194
|
};
|
@@ -13,7 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
14
14
|
var _react2 = require("@carbon/react");
|
15
15
|
var _settings = require("../../settings");
|
16
|
-
var _excluded = ["id", "itemText", "onClick", "icon", "shouldHideMenuItem"],
|
16
|
+
var _excluded = ["align", "id", "itemText", "onClick", "icon", "shouldHideMenuItem"],
|
17
17
|
_excluded2 = ["id", "onClick", "shouldHideMenuItem", "shouldDisableMenuItem", "disabled"];
|
18
18
|
/**
|
19
19
|
* Copyright IBM Corp. 2021, 2023
|
@@ -61,7 +61,8 @@ var useActionsColumn = function useActionsColumn(hooks) {
|
|
61
61
|
display: 'flex'
|
62
62
|
}
|
63
63
|
}, rowActions.map(function (action, index) {
|
64
|
-
var
|
64
|
+
var align = action.align,
|
65
|
+
id = action.id,
|
65
66
|
itemText = action.itemText,
|
66
67
|
_onClick = action.onClick,
|
67
68
|
icon = action.icon,
|
@@ -75,8 +76,8 @@ var useActionsColumn = function useActionsColumn(hooks) {
|
|
75
76
|
className: (0, _classnames.default)("".concat(blockClass, "__actions-column-button"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__disabled-row-action-button"), getDisabledState(row.index))),
|
76
77
|
key: "".concat(itemText, "__").concat(index)
|
77
78
|
}, /*#__PURE__*/_react.default.createElement(_react2.OverflowMenu, (0, _extends2.default)({}, rest, {
|
79
|
+
align: align || 'top',
|
78
80
|
renderIcon: icon,
|
79
|
-
hasIconOnly: true,
|
80
81
|
light: true,
|
81
82
|
iconDescription: itemText,
|
82
83
|
kind: "ghost",
|
@@ -91,6 +92,7 @@ var useActionsColumn = function useActionsColumn(hooks) {
|
|
91
92
|
}
|
92
93
|
})));
|
93
94
|
})), !isFetching && rowActions.length > 2 && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_react2.OverflowMenu, {
|
95
|
+
align: "top-right",
|
94
96
|
size: "sm",
|
95
97
|
light: true,
|
96
98
|
flipped: true,
|
@@ -38,7 +38,7 @@ var useExpandedRow = function useExpandedRow(hooks) {
|
|
38
38
|
return _objectSpread(_objectSpread({}, row), {}, {
|
39
39
|
canExpand: row.original && !row.original.notExpandable,
|
40
40
|
expandedContentHeight: expandedRowsHeight[row.index] || expandedContentHeight,
|
41
|
-
|
41
|
+
RowExpansionRenderer: (0, _DatagridExpandedRow.default)(ExpandedRowContentComponent)
|
42
42
|
});
|
43
43
|
});
|
44
44
|
Object.assign(instance, {
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@carbon/react");
|
10
10
|
/* eslint-disable react/prop-types */
|
11
11
|
/**
|
12
|
-
* Copyright IBM Corp. 2022,
|
12
|
+
* Copyright IBM Corp. 2022, 2023
|
13
13
|
*
|
14
14
|
* This source code is licensed under the Apache-2.0 license found in the
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
@@ -55,7 +55,7 @@ var EmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
55
55
|
title = _ref.title,
|
56
56
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
57
57
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
58
|
-
className: (0, _classnames.default)(blockClass, className, (0, _defineProperty2.default)({}, "".concat(blockClass, "-position--").concat(illustrationPosition), !!illustration)),
|
58
|
+
className: (0, _classnames.default)(blockClass, "".concat(blockClass, "-type--default"), className, (0, _defineProperty2.default)({}, "".concat(blockClass, "-position--").concat(illustrationPosition), !!illustration)),
|
59
59
|
ref: ref
|
60
60
|
}, (0, _devtools.getDevtoolsProps)(componentName)), illustration && /*#__PURE__*/_react.default.createElement("img", {
|
61
61
|
src: illustration,
|
@@ -48,7 +48,7 @@ var ErrorEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--error")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_ErrorIllustration.ErrorIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NoDataEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noData")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoDataIllustration.NoDataIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NoTagsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noTags")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoTagsIllustration.NoTagsIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NotFoundEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref,
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notFound")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotFoundIllustration.NotFoundIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NotificationsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notifications")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotificationsIllustration.NotificationsIllustration, {
|
54
54
|
size: size,
|
@@ -48,7 +48,7 @@ var UnauthorizedEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_r
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--unauthorized")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_UnauthorizedIllustration.UnauthorizedIllustration, {
|
54
54
|
size: size,
|
@@ -28,13 +28,14 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-error"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 38.9,
|
40
41
|
y1: 77.08,
|
@@ -98,13 +99,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
98
99
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
99
100
|
d: "M38.93 49.79a6.9 6.9 0 01-2.66-2.51 6.11 6.11 0 01-.81-3v-1a2.26 2.26 0 01.81-2c.54-.35 1.43-.17 2.66.54a6.71 6.71 0 012.61 2.5 6.06 6.06 0 01.81 3v1a2.24 2.24 0 01-.81 2.05c-.54.29-1.41.12-2.61-.58zm-1.16-11.63L36 22.77V13l5.81 3.36v9.73l-1.64 13.46z",
|
100
101
|
fill: "#525252"
|
101
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
102
|
-
xmlns: "http://www.w3.org/2000/svg",
|
103
|
-
width: 80,
|
104
|
-
height: 80,
|
105
|
-
viewBox: "0 0 80 80",
|
106
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
107
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
102
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
108
103
|
id: "prefix__a_".concat(svgId),
|
109
104
|
x1: 29.96,
|
110
105
|
y1: 45.68,
|
@@ -214,7 +209,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
214
209
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
215
210
|
d: "M38.93 49.79a6.9 6.9 0 01-2.66-2.51 6.11 6.11 0 01-.81-3v-1a2.26 2.26 0 01.81-2c.54-.35 1.43-.17 2.66.54a6.71 6.71 0 012.61 2.5 6.06 6.06 0 01.81 3v1a2.24 2.24 0 01-.81 2.05c-.54.29-1.41.12-2.61-.58zm-1.16-11.63L36 22.77V13l5.81 3.36v9.73l-1.64 13.46z",
|
216
211
|
fill: "url(#prefix__e_".concat(svgId, ")")
|
217
|
-
}));
|
212
|
+
})));
|
218
213
|
};
|
219
214
|
exports.ErrorIllustration = ErrorIllustration;
|
220
215
|
ErrorIllustration.propTypes = {
|
@@ -28,13 +28,14 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noData"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 11.12,
|
40
41
|
y1: 43.34,
|
@@ -97,13 +98,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
97
98
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
98
99
|
fill: "#525252",
|
99
100
|
d: "M21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
|
100
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
101
|
-
xmlns: "http://www.w3.org/2000/svg",
|
102
|
-
width: 80,
|
103
|
-
height: 80,
|
104
|
-
viewBox: "0 0 80 80",
|
105
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
106
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
101
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
107
102
|
id: "prefix__a_".concat(svgId),
|
108
103
|
x1: 18.35,
|
109
104
|
y1: 74.17,
|
@@ -177,7 +172,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
177
172
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
178
173
|
className: "prefix__g_".concat(svgId),
|
179
174
|
d: "M40 35.24L11.13 18.57v-.24l.21-.12 28.87 16.67-.21.11v.25zM21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
|
180
|
-
}));
|
175
|
+
})));
|
181
176
|
};
|
182
177
|
exports.NoDataIllustration = NoDataIllustration;
|
183
178
|
NoDataIllustration.propTypes = {
|
@@ -28,14 +28,15 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
34
34
|
width: 80,
|
35
35
|
height: 80,
|
36
36
|
viewBox: "0 0 80 80",
|
37
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
38
|
-
|
37
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noTags"), "".concat(blockClass, "__illustration--").concat(size)]),
|
38
|
+
role: "img"
|
39
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
39
40
|
id: "prefix__c_dark_".concat(svgId),
|
40
41
|
x1: 34.96,
|
41
42
|
y1: 5.37,
|
@@ -235,14 +236,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
235
236
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
236
237
|
d: "M35.67 16.33a2.88 2.88 0 011.41.43 7 7 0 013.13 5.44c0 1.42-.7 2.24-1.73 2.24a2.82 2.82 0 01-1.4-.43 6.93 6.93 0 01-3.14-5.44c0-1.42.7-2.24 1.73-2.24m0-.41c-1.3 0-2.15 1-2.15 2.65a7.3 7.3 0 003.35 5.8 3.23 3.23 0 001.61.48c1.3 0 2.15-1 2.15-2.65a7.29 7.29 0 00-3.35-5.8 3.2 3.2 0 00-1.61-.48z",
|
237
238
|
fill: "url(#prefix__i_dark_".concat(svgId, ")")
|
238
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
239
|
-
xmlns: "http://www.w3.org/2000/svg",
|
240
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
241
|
-
width: 80,
|
242
|
-
height: 80,
|
243
|
-
viewBox: "0 0 80 80",
|
244
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
245
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
239
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
246
240
|
id: "prefix__b_".concat(svgId),
|
247
241
|
x1: 634.81,
|
248
242
|
y1: 667.18,
|
@@ -485,7 +479,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
485
479
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
486
480
|
d: "M35.67 16.33a2.88 2.88 0 011.41.43 7 7 0 013.13 5.44c0 1.42-.7 2.24-1.73 2.24a2.82 2.82 0 01-1.4-.43 6.93 6.93 0 01-3.14-5.44c0-1.42.7-2.24 1.73-2.24m0-.41c-1.3 0-2.15 1-2.15 2.65a7.3 7.3 0 003.35 5.8 3.23 3.23 0 001.61.48c1.3 0 2.15-1 2.15-2.65a7.29 7.29 0 00-3.35-5.8 3.2 3.2 0 00-1.61-.48z",
|
487
481
|
fill: "url(#prefix__j_".concat(svgId, ")")
|
488
|
-
}));
|
482
|
+
})));
|
489
483
|
};
|
490
484
|
exports.NoTagsIllustration = NoTagsIllustration;
|
491
485
|
NoTagsIllustration.propTypes = {
|