@carbon/ibm-products 1.59.1 → 1.61.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +99 -45
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +4 -4
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +9 -3
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +89 -30
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +2 -2
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +89 -45
- package/css/index.css.map +1 -1
- package/css/index.min.css +3 -3
- package/css/index.min.css.map +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +10 -2
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
- package/es/components/Datagrid/Datagrid/DraggableElement.js +32 -135
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +14 -38
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +134 -45
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -18
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +37 -4
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +6 -12
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +0 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +4 -3
- package/es/components/Datagrid/useFiltering.js +4 -1
- package/es/components/Datagrid/useInlineEdit.js +1 -6
- package/es/components/Datagrid/useNestedRowExpander.js +22 -9
- package/es/components/Datagrid/useRowExpander.js +22 -9
- package/es/components/Datagrid/useSortableColumns.js +5 -4
- package/es/components/Datagrid/utils/getArgTypes.js +12 -0
- 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/FilterSummary/FilterSummary.js +15 -5
- package/es/components/TagSet/TagSet.js +14 -10
- package/es/components/TagSet/TagSetOverflow.js +16 -5
- package/es/global/js/hooks/useWindowScroll.js +5 -0
- package/es/global/js/utils/getNodeTextContent.js +51 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +9 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +34 -140
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -38
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +134 -52
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +4 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +36 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +6 -12
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +0 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +15 -3
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +7 -3
- package/lib/components/Datagrid/useFiltering.js +4 -1
- package/lib/components/Datagrid/useInlineEdit.js +1 -6
- package/lib/components/Datagrid/useNestedRowExpander.js +24 -9
- package/lib/components/Datagrid/useRowExpander.js +24 -9
- package/lib/components/Datagrid/useSortableColumns.js +5 -4
- package/lib/components/Datagrid/utils/getArgTypes.js +12 -0
- 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/FilterSummary/FilterSummary.js +15 -12
- package/lib/components/TagSet/TagSet.js +13 -9
- package/lib/components/TagSet/TagSetOverflow.js +16 -5
- package/lib/global/js/hooks/useWindowScroll.js +6 -0
- package/lib/global/js/utils/getNodeTextContent.js +59 -0
- package/package.json +8 -7
- package/scss/components/Datagrid/_datagrid.scss +2 -1
- package/scss/components/Datagrid/styles/_draggableElement.scss +44 -20
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +7 -11
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +0 -1
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +42 -1
- package/scss/components/TagSet/_tag-set.scss +13 -3
- package/es/components/Datagrid/utils/getColTitle.js +0 -25
- package/lib/components/Datagrid/utils/getColTitle.js +0 -32
@@ -8,13 +8,13 @@
|
|
8
8
|
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
9
9
|
*/
|
10
10
|
|
11
|
-
import React from 'react';
|
11
|
+
import React, { forwardRef } from 'react';
|
12
12
|
import PropTypes from 'prop-types';
|
13
13
|
import { RadioButtonGroup, RadioButton } from 'carbon-components-react';
|
14
14
|
import isArray from 'lodash/isArray';
|
15
15
|
import { pkg } from '../../../../../settings';
|
16
16
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
17
|
-
var RowSizeRadioGroup = function
|
17
|
+
var RowSizeRadioGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
18
18
|
var rowSizes = _ref.rowSizes,
|
19
19
|
selectedOption = _ref.selectedOption,
|
20
20
|
datagridName = _ref.datagridName,
|
@@ -29,6 +29,7 @@ var RowSizeRadioGroup = function RowSizeRadioGroup(_ref) {
|
|
29
29
|
xs: 'Extra small'
|
30
30
|
} : _ref$rowSizeLabels;
|
31
31
|
return /*#__PURE__*/React.createElement("div", {
|
32
|
+
ref: ref,
|
32
33
|
className: "".concat(blockClass, "__row-size-dropdown"),
|
33
34
|
role: "presentation"
|
34
35
|
}, /*#__PURE__*/React.createElement(RadioButtonGroup, {
|
@@ -51,7 +52,7 @@ var RowSizeRadioGroup = function RowSizeRadioGroup(_ref) {
|
|
51
52
|
id: "".concat(datagridName || 'datagrid', "--row-density--").concat(option.value)
|
52
53
|
});
|
53
54
|
})));
|
54
|
-
};
|
55
|
+
});
|
55
56
|
var getBackwardCompatibleRowSize = function getBackwardCompatibleRowSize(rowSize) {
|
56
57
|
// TODO: deprecate this function in next major release (v8) on carbon-components-react
|
57
58
|
var rowSizeMap = {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -25,7 +26,9 @@ var useFiltering = function useFiltering(hooks) {
|
|
25
26
|
endDate = _ref2[1];
|
26
27
|
return rows.filter(function (row) {
|
27
28
|
var rowValue = row.values[id];
|
28
|
-
|
29
|
+
var startDateObj = _typeof(startDate) === 'object' ? startDate : new Date(startDate);
|
30
|
+
var endDateObj = _typeof(endDate) === 'object' ? endDate : new Date(endDate);
|
31
|
+
if (rowValue.getTime() <= endDateObj.getTime() && rowValue.getTime() >= startDateObj.getTime()) {
|
29
32
|
// In date range
|
30
33
|
return true;
|
31
34
|
} else {
|
@@ -22,14 +22,11 @@ var useInlineEdit = function useInlineEdit(hooks, usingEditableCell) {
|
|
22
22
|
}
|
23
23
|
}, [usingEditableCell]);
|
24
24
|
var addInlineEdit = function addInlineEdit(props, _ref) {
|
25
|
-
var _cell$column, _cell$column$inlineEd
|
25
|
+
var _cell$column, _cell$column$inlineEd;
|
26
26
|
var cell = _ref.cell,
|
27
27
|
instance = _ref.instance;
|
28
28
|
var columnInlineEditConfig = cell.column.inlineEdit;
|
29
29
|
var inlineEditType = (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : (_cell$column$inlineEd = _cell$column.inlineEdit) === null || _cell$column$inlineEd === void 0 ? void 0 : _cell$column$inlineEd.type;
|
30
|
-
var totalInlineEditColumns = (_instance$columns$fil = instance.columns.filter(function (item) {
|
31
|
-
return item.inlineEdit;
|
32
|
-
})) === null || _instance$columns$fil === void 0 ? void 0 : _instance$columns$fil.length;
|
33
30
|
var renderInlineEditComponent = function renderInlineEditComponent(type) {
|
34
31
|
return /*#__PURE__*/React.createElement(InlineEditCell, {
|
35
32
|
config: columnInlineEditConfig,
|
@@ -37,7 +34,6 @@ var useInlineEdit = function useInlineEdit(hooks, usingEditableCell) {
|
|
37
34
|
value: cell.value,
|
38
35
|
cell: cell,
|
39
36
|
instance: instance,
|
40
|
-
totalInlineEditColumns: totalInlineEditColumns,
|
41
37
|
type: type
|
42
38
|
});
|
43
39
|
};
|
@@ -57,7 +53,6 @@ var useInlineEdit = function useInlineEdit(hooks, usingEditableCell) {
|
|
57
53
|
instance: instance,
|
58
54
|
disabled: true,
|
59
55
|
nonEditCell: true,
|
60
|
-
totalInlineEditColumns: totalInlineEditColumns,
|
61
56
|
type: "text"
|
62
57
|
}))
|
63
58
|
}];
|
@@ -2,30 +2,42 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
4
|
/* eslint-disable react/prop-types */
|
5
|
-
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
10
|
-
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
5
|
+
/**
|
6
|
+
* Copyright IBM Corp. 2020, 2023
|
7
|
+
*
|
8
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
11
10
|
*/
|
12
|
-
|
11
|
+
|
12
|
+
import React, { useRef } from 'react';
|
13
13
|
import { ChevronRight16 } from '@carbon/icons-react';
|
14
14
|
import cx from 'classnames';
|
15
15
|
import { pkg, carbon } from '../../settings';
|
16
16
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
17
17
|
var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
18
|
+
var tempState = useRef();
|
19
|
+
var useInstance = function useInstance(instance) {
|
20
|
+
tempState.current = instance;
|
21
|
+
};
|
18
22
|
var visibleColumns = function visibleColumns(columns) {
|
19
23
|
var expanderColumn = {
|
20
24
|
id: 'expander',
|
21
25
|
Cell: function Cell(_ref) {
|
22
26
|
var _cx;
|
23
27
|
var row = _ref.row;
|
28
|
+
var _ref2 = (tempState === null || tempState === void 0 ? void 0 : tempState.current) || {},
|
29
|
+
_ref2$expanderButtonT = _ref2.expanderButtonTitleExpanded,
|
30
|
+
expanderButtonTitleExpanded = _ref2$expanderButtonT === void 0 ? 'Collapse row' : _ref2$expanderButtonT,
|
31
|
+
_ref2$expanderButtonT2 = _ref2.expanderButtonTitleCollapsed,
|
32
|
+
expanderButtonTitleCollapsed = _ref2$expanderButtonT2 === void 0 ? 'Expand row' : _ref2$expanderButtonT2;
|
33
|
+
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
24
34
|
return row.canExpand && /*#__PURE__*/React.createElement("button", _extends({
|
25
35
|
type: "button",
|
26
|
-
"aria-label":
|
36
|
+
"aria-label": expanderTitle,
|
27
37
|
className: cx("".concat(blockClass, "__row-expander"), "".concat(carbon.prefix, "--btn"), "".concat(carbon.prefix, "--btn--ghost"))
|
28
|
-
}, row.getToggleRowExpandedProps()
|
38
|
+
}, row.getToggleRowExpandedProps(), {
|
39
|
+
title: expanderTitle
|
40
|
+
}), /*#__PURE__*/React.createElement(ChevronRight16, {
|
29
41
|
className: cx("".concat(blockClass, "__expander-icon"), "".concat(blockClass, "__row-expander--icon"), (_cx = {}, _defineProperty(_cx, "".concat(blockClass, "__expander-icon--not-open"), !row.isExpanded), _defineProperty(_cx, "".concat(blockClass, "__expander-icon--open"), row.isExpanded), _cx))
|
30
42
|
}));
|
31
43
|
},
|
@@ -37,5 +49,6 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
37
49
|
return [expanderColumn].concat(_toConsumableArray(columns));
|
38
50
|
};
|
39
51
|
hooks.visibleColumns.push(visibleColumns);
|
52
|
+
hooks.useInstance.push(useInstance);
|
40
53
|
};
|
41
54
|
export default useNestedRowExpander;
|
@@ -1,29 +1,41 @@
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
/* eslint-disable react/prop-types */
|
4
|
-
|
5
|
-
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
4
|
+
/**
|
5
|
+
* Copyright IBM Corp. 2020, 2023
|
6
|
+
*
|
7
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
10
9
|
*/
|
11
|
-
|
10
|
+
|
11
|
+
import React, { useRef } from 'react';
|
12
12
|
import { ChevronDown16, ChevronUp16 } from '@carbon/icons-react';
|
13
13
|
import cx from 'classnames';
|
14
14
|
import { pkg, carbon } from '../../settings';
|
15
15
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
16
16
|
var useRowExpander = function useRowExpander(hooks) {
|
17
|
+
var tempState = useRef();
|
18
|
+
var useInstance = function useInstance(instance) {
|
19
|
+
tempState.current = instance;
|
20
|
+
};
|
17
21
|
var visibleColumns = function visibleColumns(columns) {
|
18
22
|
var expanderColumn = {
|
19
23
|
id: 'expander',
|
20
24
|
Cell: function Cell(_ref) {
|
21
25
|
var row = _ref.row;
|
26
|
+
var _ref2 = (tempState === null || tempState === void 0 ? void 0 : tempState.current) || {},
|
27
|
+
_ref2$expanderButtonT = _ref2.expanderButtonTitleExpanded,
|
28
|
+
expanderButtonTitleExpanded = _ref2$expanderButtonT === void 0 ? 'Collapse row' : _ref2$expanderButtonT,
|
29
|
+
_ref2$expanderButtonT2 = _ref2.expanderButtonTitleCollapsed,
|
30
|
+
expanderButtonTitleCollapsed = _ref2$expanderButtonT2 === void 0 ? 'Expand row' : _ref2$expanderButtonT2;
|
31
|
+
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
22
32
|
return row.canExpand && /*#__PURE__*/React.createElement("button", _extends({
|
23
33
|
type: "button",
|
24
|
-
"aria-label":
|
34
|
+
"aria-label": expanderTitle,
|
25
35
|
className: cx("".concat(blockClass, "__row-expander"), "".concat(carbon.prefix, "--btn"), "".concat(carbon.prefix, "--btn--ghost"))
|
26
|
-
}, row.getToggleRowExpandedProps()
|
36
|
+
}, row.getToggleRowExpandedProps(), {
|
37
|
+
title: expanderTitle
|
38
|
+
}), row.isExpanded ? /*#__PURE__*/React.createElement(ChevronUp16, {
|
27
39
|
className: "".concat(blockClass, "__row-expander--icon")
|
28
40
|
}) : /*#__PURE__*/React.createElement(ChevronDown16, {
|
29
41
|
className: "".concat(blockClass, "__row-expander--icon")
|
@@ -37,5 +49,6 @@ var useRowExpander = function useRowExpander(hooks) {
|
|
37
49
|
return [expanderColumn].concat(_toConsumableArray(columns));
|
38
50
|
};
|
39
51
|
hooks.visibleColumns.push(visibleColumns);
|
52
|
+
hooks.useInstance.push(useInstance);
|
40
53
|
};
|
41
54
|
export default useRowExpander;
|
@@ -14,6 +14,7 @@ import cx from 'classnames';
|
|
14
14
|
import { pkg, carbon } from '../../settings';
|
15
15
|
import { Button } from 'carbon-components-react';
|
16
16
|
import { ArrowUp16, Arrows16 } from '@carbon/icons-react';
|
17
|
+
import { SelectAll } from './Datagrid/DatagridSelectAll';
|
17
18
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
18
19
|
var ordering = {
|
19
20
|
ASC: 'ASC',
|
@@ -31,13 +32,13 @@ var getAriaSortValue = function getAriaSortValue(col, _ref) {
|
|
31
32
|
isSorted = _ref2.isSorted,
|
32
33
|
isSortedDesc = _ref2.isSortedDesc;
|
33
34
|
if (!isSorted) {
|
34
|
-
return defaultSortableLabelText
|
35
|
+
return defaultSortableLabelText;
|
35
36
|
}
|
36
37
|
if (isSorted && !isSortedDesc) {
|
37
|
-
return ascendingSortableLabelText
|
38
|
+
return ascendingSortableLabelText;
|
38
39
|
}
|
39
40
|
if (isSorted && isSortedDesc) {
|
40
|
-
return descendingSortableLabelText
|
41
|
+
return descendingSortableLabelText;
|
41
42
|
}
|
42
43
|
};
|
43
44
|
var useSortableColumns = function useSortableColumns(hooks) {
|
@@ -91,7 +92,7 @@ var useSortableColumns = function useSortableColumns(hooks) {
|
|
91
92
|
};
|
92
93
|
var Header = function Header(headerProp) {
|
93
94
|
var _cx;
|
94
|
-
return column.disableSortBy === true ? column.Header : /*#__PURE__*/React.createElement(Button, {
|
95
|
+
return column.disableSortBy === true || column.id === 'datagridSelection' ? column.disableSortBy ? column.Header : /*#__PURE__*/React.createElement(SelectAll, instance) : /*#__PURE__*/React.createElement(Button, {
|
95
96
|
"aria-sort": getAriaSortValue(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column, {
|
96
97
|
ascendingSortableLabelText: ascendingSortableLabelText,
|
97
98
|
descendingSortableLabelText: descendingSortableLabelText,
|
@@ -91,6 +91,18 @@ export var ARG_TYPES = {
|
|
91
91
|
},
|
92
92
|
description: 'This value controls the height of the expanded content area. _This value is set/passed inside of the `datagridState` object._'
|
93
93
|
},
|
94
|
+
expanderButtonTitleExpanded: {
|
95
|
+
control: {
|
96
|
+
type: 'text'
|
97
|
+
},
|
98
|
+
description: 'This value controls the expander title/aria-label when expanded. _This value is set/passed inside of the `datagridState` object._'
|
99
|
+
},
|
100
|
+
expanderButtonTitleCollapsed: {
|
101
|
+
control: {
|
102
|
+
type: 'text'
|
103
|
+
},
|
104
|
+
description: 'This value controls the expander title/aria-label when expanded. _This value is set/passed inside of the `datagridState` object._'
|
105
|
+
},
|
94
106
|
customizeColumnsProps: {
|
95
107
|
control: 'object',
|
96
108
|
description: 'This is an object containing all of the props used with the column customization extension. _This value is set/passed inside of the `datagridState` object._'
|
@@ -50,7 +50,7 @@ export var EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
50
|
});
|
51
51
|
};
|
52
52
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
53
|
-
className: cx(blockClass, className),
|
53
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--default")),
|
54
54
|
ref: ref
|
55
55
|
}, getDevtoolsProps(componentName)), illustration && renderIllustration(), /*#__PURE__*/React.createElement(EmptyStateContent, {
|
56
56
|
action: action,
|
@@ -38,7 +38,7 @@ export var ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--error")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(ErrorIllustration, {
|
44
44
|
theme: illustrationTheme,
|
@@ -38,7 +38,7 @@ export var NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--noData")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoDataIllustration, {
|
44
44
|
theme: illustrationTheme,
|
@@ -38,7 +38,7 @@ export var NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--noTags")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoTagsIllustration, {
|
44
44
|
theme: illustrationTheme,
|
@@ -38,7 +38,7 @@ export var NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, re
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--notFound")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotFoundIllustration, {
|
44
44
|
theme: illustrationTheme,
|
@@ -38,7 +38,7 @@ export var NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_re
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--notifications")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotificationsIllustration, {
|
44
44
|
size: size,
|
@@ -38,7 +38,7 @@ export var UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref
|
|
38
38
|
title = _ref.title,
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
41
|
-
className: cx(blockClass, className),
|
41
|
+
className: cx(blockClass, className, "".concat(blockClass, "-type--default")),
|
42
42
|
ref: ref
|
43
43
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(UnauthorizedIllustration, {
|
44
44
|
size: size,
|
@@ -24,13 +24,14 @@ export var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
width: 80,
|
30
30
|
height: 80,
|
31
31
|
viewBox: "0 0 80 80",
|
32
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
33
|
-
|
32
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-error"), "".concat(blockClass, "__illustration--").concat(size)]),
|
33
|
+
role: "img"
|
34
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
34
35
|
id: "prefix__a_dark_".concat(svgId),
|
35
36
|
x1: 38.9,
|
36
37
|
y1: 77.08,
|
@@ -94,13 +95,7 @@ export var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
94
95
|
}), /*#__PURE__*/React.createElement("path", {
|
95
96
|
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",
|
96
97
|
fill: "#525252"
|
97
|
-
})) : /*#__PURE__*/React.createElement("
|
98
|
-
xmlns: "http://www.w3.org/2000/svg",
|
99
|
-
width: 80,
|
100
|
-
height: 80,
|
101
|
-
viewBox: "0 0 80 80",
|
102
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
103
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
98
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
104
99
|
id: "prefix__a_".concat(svgId),
|
105
100
|
x1: 29.96,
|
106
101
|
y1: 45.68,
|
@@ -210,7 +205,7 @@ export var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
210
205
|
}), /*#__PURE__*/React.createElement("path", {
|
211
206
|
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",
|
212
207
|
fill: "url(#prefix__e_".concat(svgId, ")")
|
213
|
-
}));
|
208
|
+
})));
|
214
209
|
};
|
215
210
|
ErrorIllustration.propTypes = {
|
216
211
|
size: PropTypes.oneOf(['lg', 'sm']),
|
@@ -24,13 +24,14 @@ export var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
width: 80,
|
30
30
|
height: 80,
|
31
31
|
viewBox: "0 0 80 80",
|
32
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
33
|
-
|
32
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noData"), "".concat(blockClass, "__illustration--").concat(size)]),
|
33
|
+
role: "img"
|
34
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
34
35
|
id: "prefix__a_dark_".concat(svgId),
|
35
36
|
x1: 11.12,
|
36
37
|
y1: 43.34,
|
@@ -93,13 +94,7 @@ export var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
93
94
|
}), /*#__PURE__*/React.createElement("path", {
|
94
95
|
fill: "#525252",
|
95
96
|
d: "M21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
|
96
|
-
})) : /*#__PURE__*/React.createElement("
|
97
|
-
xmlns: "http://www.w3.org/2000/svg",
|
98
|
-
width: 80,
|
99
|
-
height: 80,
|
100
|
-
viewBox: "0 0 80 80",
|
101
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
102
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
97
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
103
98
|
id: "prefix__a_".concat(svgId),
|
104
99
|
x1: 18.35,
|
105
100
|
y1: 74.17,
|
@@ -173,7 +168,7 @@ export var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
173
168
|
}), /*#__PURE__*/React.createElement("path", {
|
174
169
|
className: "prefix__g_".concat(svgId),
|
175
170
|
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"
|
176
|
-
}));
|
171
|
+
})));
|
177
172
|
};
|
178
173
|
NoDataIllustration.propTypes = {
|
179
174
|
size: PropTypes.oneOf(['lg', 'sm']),
|
@@ -24,14 +24,15 @@ export var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
30
30
|
width: 80,
|
31
31
|
height: 80,
|
32
32
|
viewBox: "0 0 80 80",
|
33
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
34
|
-
|
33
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noTags"), "".concat(blockClass, "__illustration--").concat(size)]),
|
34
|
+
role: "img"
|
35
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
35
36
|
id: "prefix__c_dark_".concat(svgId),
|
36
37
|
x1: 34.96,
|
37
38
|
y1: 5.37,
|
@@ -231,14 +232,7 @@ export var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
231
232
|
}), /*#__PURE__*/React.createElement("path", {
|
232
233
|
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",
|
233
234
|
fill: "url(#prefix__i_dark_".concat(svgId, ")")
|
234
|
-
})) : /*#__PURE__*/React.createElement("
|
235
|
-
xmlns: "http://www.w3.org/2000/svg",
|
236
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
237
|
-
width: 80,
|
238
|
-
height: 80,
|
239
|
-
viewBox: "0 0 80 80",
|
240
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
241
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
235
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
242
236
|
id: "prefix__b_".concat(svgId),
|
243
237
|
x1: 634.81,
|
244
238
|
y1: 667.18,
|
@@ -481,7 +475,7 @@ export var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
481
475
|
}), /*#__PURE__*/React.createElement("path", {
|
482
476
|
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",
|
483
477
|
fill: "url(#prefix__j_".concat(svgId, ")")
|
484
|
-
}));
|
478
|
+
})));
|
485
479
|
};
|
486
480
|
NoTagsIllustration.propTypes = {
|
487
481
|
size: PropTypes.oneOf(['lg', 'sm']),
|
@@ -24,13 +24,14 @@ export var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
width: 80,
|
30
30
|
height: 80,
|
31
31
|
viewBox: "0 0 80 80",
|
32
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
33
|
-
|
32
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notFound"), "".concat(blockClass, "__illustration--").concat(size)]),
|
33
|
+
role: "img"
|
34
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
34
35
|
id: "prefix__a_dark_".concat(svgId),
|
35
36
|
x1: 2.6,
|
36
37
|
y1: -12.81,
|
@@ -181,14 +182,7 @@ export var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
181
182
|
}), /*#__PURE__*/React.createElement("path", {
|
182
183
|
d: "M57 37.5c0-12-8.75-26.85-19.56-33.08C31.82 1.16 26.73.89 23.16 3.09l-4.83 2.78 1.19 1.94c3.25-1.74 7.72-1.38 12.67 1.47C42.09 15 50.11 28.57 50.11 39.6c0 4.86-1.55 8.4-4.11 10.4-.12.1-1.17.73-1.31.82l2.12 1.42 4.83-2.79C55 47.44 57 43.34 57 37.5",
|
183
184
|
fill: "url(#prefix__f_dark_".concat(svgId, ")")
|
184
|
-
})) : /*#__PURE__*/React.createElement("
|
185
|
-
xmlns: "http://www.w3.org/2000/svg",
|
186
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
187
|
-
width: 80,
|
188
|
-
height: 80,
|
189
|
-
viewBox: "0 0 80 80",
|
190
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
191
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
185
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
192
186
|
id: "prefix__a_".concat(svgId),
|
193
187
|
x1: 2.6,
|
194
188
|
y1: -12.81,
|
@@ -358,7 +352,7 @@ export var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
358
352
|
}), /*#__PURE__*/React.createElement("path", {
|
359
353
|
d: "M57 37.5c0-12-8.75-26.85-19.56-33.08C31.82 1.16 26.73.89 23.16 3.09l-4.83 2.78 1.19 1.94c3.25-1.74 7.72-1.38 12.67 1.47C42.09 15 50.11 28.57 50.11 39.6c0 4.86-1.55 8.4-4.11 10.4-.12.1-1.17.73-1.31.82l2.12 1.42 4.83-2.79C55 47.44 57 43.34 57 37.5",
|
360
354
|
fill: "url(#prefix__g_".concat(svgId, ")")
|
361
|
-
}));
|
355
|
+
})));
|
362
356
|
};
|
363
357
|
NotFoundIllustration.propTypes = {
|
364
358
|
size: PropTypes.oneOf(['lg', 'sm']),
|
@@ -24,13 +24,14 @@ export var NotificationsIllustration = function NotificationsIllustration(_ref)
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
width: 80,
|
30
30
|
height: 80,
|
31
31
|
viewBox: "0 0 80 80",
|
32
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
33
|
-
|
32
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notification"), "".concat(blockClass, "__illustration--").concat(size)]),
|
33
|
+
role: "img"
|
34
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
34
35
|
id: "prefix__a_dark_".concat(svgId),
|
35
36
|
x1: 30.05,
|
36
37
|
y1: 54.31,
|
@@ -126,14 +127,7 @@ export var NotificationsIllustration = function NotificationsIllustration(_ref)
|
|
126
127
|
}), /*#__PURE__*/React.createElement("path", {
|
127
128
|
d: "M60.76 30.55a2.54 2.54 0 01.14.8v3.95l.41-.13v-3.82a3.54 3.54 0 00-1.63-2.82L16.86 3.8a2.09 2.09 0 00-.44-.19l-.78.45a1 1 0 01.21-.06h.48l.27.12 21.47 12.4 21.41 12.36a3.19 3.19 0 011.28 1.67z",
|
128
129
|
fill: "url(#prefix__d_dark_".concat(svgId, ")")
|
129
|
-
})) : /*#__PURE__*/React.createElement("
|
130
|
-
xmlns: "http://www.w3.org/2000/svg",
|
131
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
132
|
-
width: 80,
|
133
|
-
height: 80,
|
134
|
-
viewBox: "0 0 80 80",
|
135
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
136
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
130
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
137
131
|
id: "prefix__a_".concat(svgId),
|
138
132
|
x1: 61.44,
|
139
133
|
y1: 66.99,
|
@@ -329,7 +323,7 @@ export var NotificationsIllustration = function NotificationsIllustration(_ref)
|
|
329
323
|
}), /*#__PURE__*/React.createElement("path", {
|
330
324
|
d: "M60.76 30.55a2.54 2.54 0 01.14.8v3.95l.41-.13v-3.82a3.54 3.54 0 00-1.63-2.82L16.86 3.8a2.09 2.09 0 00-.44-.19l-.78.45a1 1 0 01.21-.06h.48l.27.12 21.47 12.4 21.41 12.36a3.19 3.19 0 011.28 1.67z",
|
331
325
|
fill: "url(#prefix__k_".concat(svgId, ")")
|
332
|
-
}));
|
326
|
+
})));
|
333
327
|
};
|
334
328
|
NotificationsIllustration.propTypes = {
|
335
329
|
size: PropTypes.oneOf(['lg', 'sm']),
|
@@ -24,14 +24,15 @@ export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
24
24
|
size = _ref.size,
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
26
26
|
var svgId = uuidv4();
|
27
|
-
return
|
27
|
+
return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
29
29
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
30
30
|
width: 80,
|
31
31
|
height: 80,
|
32
32
|
viewBox: "0 0 80 80",
|
33
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
34
|
-
|
33
|
+
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-unauthorized"), "".concat(blockClass, "__illustration--").concat(size)]),
|
34
|
+
role: "img"
|
35
|
+
}), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
35
36
|
id: "prefix__b_dark_".concat(svgId),
|
36
37
|
x1: 17.33,
|
37
38
|
y1: 40.68,
|
@@ -114,14 +115,7 @@ export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
114
115
|
}), /*#__PURE__*/React.createElement("path", {
|
115
116
|
d: "M51.41 38.51a1.9 1.9 0 00-.64-.65l-1.1-.63-28.49-16.45-.1-.05-.61.35a.33.33 0 01.17 0 .6.6 0 01.32.1l28.5 16.41 1.1.63a1.5 1.5 0 01.49.51s.05.09.08.14l.36-.21z",
|
116
117
|
fill: "#6f6f6f"
|
117
|
-
})) : /*#__PURE__*/React.createElement("
|
118
|
-
xmlns: "http://www.w3.org/2000/svg",
|
119
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
120
|
-
width: 80,
|
121
|
-
height: 80,
|
122
|
-
viewBox: "0 0 80 80",
|
123
|
-
className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
124
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
118
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
125
119
|
id: "prefix__b",
|
126
120
|
x1: 27.98,
|
127
121
|
y1: 73.72,
|
@@ -302,7 +296,7 @@ export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
302
296
|
}), /*#__PURE__*/React.createElement("path", {
|
303
297
|
d: "M51.41 38.51a1.9 1.9 0 00-.64-.65l-1.1-.63-28.49-16.45-.1-.05-.61.35a.33.33 0 01.17 0 .6.6 0 01.32.1l28.5 16.41 1.1.63a1.5 1.5 0 01.49.51s.05.09.08.14l.36-.21z",
|
304
298
|
fill: "url(#prefix__h_".concat(svgId, ")")
|
305
|
-
}));
|
299
|
+
})));
|
306
300
|
};
|
307
301
|
UnauthorizedIllustration.propTypes = {
|
308
302
|
size: PropTypes.oneOf(['lg', 'sm']),
|