@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.
Files changed (109) hide show
  1. package/css/index-full-carbon.css +99 -45
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +4 -4
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +9 -3
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +89 -30
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +2 -2
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +89 -45
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +3 -3
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/Datagrid/Datagrid/Datagrid.js +2 -1
  18. package/es/components/Datagrid/Datagrid/DatagridContent.js +10 -2
  19. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -4
  20. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  21. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
  22. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
  23. package/es/components/Datagrid/Datagrid/DraggableElement.js +32 -135
  24. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +14 -38
  25. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
  26. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +134 -45
  27. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
  28. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -18
  29. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -0
  30. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +37 -4
  31. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +6 -12
  32. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +0 -5
  33. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -5
  34. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +4 -3
  35. package/es/components/Datagrid/useFiltering.js +4 -1
  36. package/es/components/Datagrid/useInlineEdit.js +1 -6
  37. package/es/components/Datagrid/useNestedRowExpander.js +22 -9
  38. package/es/components/Datagrid/useRowExpander.js +22 -9
  39. package/es/components/Datagrid/useSortableColumns.js +5 -4
  40. package/es/components/Datagrid/utils/getArgTypes.js +12 -0
  41. package/es/components/EmptyStates/EmptyState.js +1 -1
  42. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  43. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  44. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  45. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  46. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  47. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  48. package/es/components/EmptyStates/assets/ErrorIllustration.js +6 -11
  49. package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -11
  50. package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
  51. package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
  52. package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
  53. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
  54. package/es/components/FilterSummary/FilterSummary.js +15 -5
  55. package/es/components/TagSet/TagSet.js +14 -10
  56. package/es/components/TagSet/TagSetOverflow.js +16 -5
  57. package/es/global/js/hooks/useWindowScroll.js +5 -0
  58. package/es/global/js/utils/getNodeTextContent.js +51 -0
  59. package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -1
  60. package/lib/components/Datagrid/Datagrid/DatagridContent.js +9 -1
  61. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -3
  62. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  63. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
  64. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
  65. package/lib/components/Datagrid/Datagrid/DraggableElement.js +34 -140
  66. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -38
  67. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
  68. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +134 -52
  69. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
  70. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -24
  71. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +4 -2
  72. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +36 -3
  73. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +6 -12
  74. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +0 -5
  75. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +15 -3
  76. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +7 -3
  77. package/lib/components/Datagrid/useFiltering.js +4 -1
  78. package/lib/components/Datagrid/useInlineEdit.js +1 -6
  79. package/lib/components/Datagrid/useNestedRowExpander.js +24 -9
  80. package/lib/components/Datagrid/useRowExpander.js +24 -9
  81. package/lib/components/Datagrid/useSortableColumns.js +5 -4
  82. package/lib/components/Datagrid/utils/getArgTypes.js +12 -0
  83. package/lib/components/EmptyStates/EmptyState.js +1 -1
  84. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  85. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  86. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  87. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  88. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  89. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  90. package/lib/components/EmptyStates/assets/ErrorIllustration.js +6 -11
  91. package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -11
  92. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
  93. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
  94. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
  95. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
  96. package/lib/components/FilterSummary/FilterSummary.js +15 -12
  97. package/lib/components/TagSet/TagSet.js +13 -9
  98. package/lib/components/TagSet/TagSetOverflow.js +16 -5
  99. package/lib/global/js/hooks/useWindowScroll.js +6 -0
  100. package/lib/global/js/utils/getNodeTextContent.js +59 -0
  101. package/package.json +8 -7
  102. package/scss/components/Datagrid/_datagrid.scss +2 -1
  103. package/scss/components/Datagrid/styles/_draggableElement.scss +44 -20
  104. package/scss/components/Datagrid/styles/_useInlineEdit.scss +7 -11
  105. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +0 -1
  106. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +42 -1
  107. package/scss/components/TagSet/_tag-set.scss +13 -3
  108. package/es/components/Datagrid/utils/getColTitle.js +0 -25
  109. 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 RowSizeRadioGroup(_ref) {
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
- if (rowValue.getTime() <= endDate.getTime() && rowValue.getTime() >= startDate.getTime()) {
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, _instance$columns$fil;
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
- * Licensed Materials - Property of IBM
7
- * 5724-Q36
8
- * (c) Copyright IBM Corp. 2020
9
- * US Government Users Restricted Rights - Use, duplication or disclosure
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
- import React from 'react';
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": "Expand current row",
36
+ "aria-label": expanderTitle,
27
37
  className: cx("".concat(blockClass, "__row-expander"), "".concat(carbon.prefix, "--btn"), "".concat(carbon.prefix, "--btn--ghost"))
28
- }, row.getToggleRowExpandedProps()), /*#__PURE__*/React.createElement(ChevronRight16, {
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
- * Licensed Materials - Property of IBM
6
- * 5724-Q36
7
- * (c) Copyright IBM Corp. 2020
8
- * US Government Users Restricted Rights - Use, duplication or disclosure
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
- import React from 'react';
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": "Expand current row",
34
+ "aria-label": expanderTitle,
25
35
  className: cx("".concat(blockClass, "__row-expander"), "".concat(carbon.prefix, "--btn"), "".concat(carbon.prefix, "--btn--ghost"))
26
- }, row.getToggleRowExpandedProps()), row.isExpanded ? /*#__PURE__*/React.createElement(ChevronUp16, {
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 || 'none';
35
+ return defaultSortableLabelText;
35
36
  }
36
37
  if (isSorted && !isSortedDesc) {
37
- return ascendingSortableLabelText || 'ascending';
38
+ return ascendingSortableLabelText;
38
39
  }
39
40
  if (isSorted && isSortedDesc) {
40
- return descendingSortableLabelText || 'descending';
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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 theme === 'dark' ? /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
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
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
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("svg", _extends({}, rest, {
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']),