@carbon/ibm-products 2.22.0 → 2.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/README.md +2 -1
  2. package/css/index-full-carbon.css +29490 -28295
  3. package/css/index-full-carbon.css.map +1 -1
  4. package/css/index-full-carbon.min.css +1 -1
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +81 -104
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +1 -1
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +24399 -350
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css +1 -1
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +17204 -123
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css +1 -1
  17. package/css/index.min.css.map +1 -1
  18. package/es/components/Card/Card.js +1 -2
  19. package/es/components/Card/CardHeader.js +2 -2
  20. package/es/components/Carousel/Carousel.js +5 -3
  21. package/es/components/Coachmark/Coachmark.js +255 -0
  22. package/es/components/Coachmark/CoachmarkDragbar.js +146 -0
  23. package/es/components/Coachmark/CoachmarkHeader.js +91 -0
  24. package/es/components/Coachmark/CoachmarkOverlay.js +235 -0
  25. package/es/components/Coachmark/CoachmarkTagline.js +97 -0
  26. package/es/components/Coachmark/index.js +10 -0
  27. package/es/components/Coachmark/utils/constants.js +76 -0
  28. package/es/components/Coachmark/utils/context.js +5 -0
  29. package/es/components/Coachmark/utils/enums.js +40 -0
  30. package/es/components/Coachmark/utils/helpers.js +11 -0
  31. package/es/components/Coachmark/utils/hooks.js +54 -0
  32. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +93 -0
  33. package/es/components/CoachmarkBeacon/index.js +8 -0
  34. package/es/components/CoachmarkButton/CoachmarkButton.js +90 -0
  35. package/es/components/CoachmarkButton/index.js +8 -0
  36. package/es/components/CoachmarkFixed/CoachmarkFixed.js +226 -0
  37. package/es/components/CoachmarkFixed/index.js +8 -0
  38. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +86 -0
  39. package/es/components/CoachmarkOverlayElement/index.js +8 -0
  40. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +216 -0
  41. package/es/components/CoachmarkOverlayElements/index.js +8 -0
  42. package/es/components/CoachmarkStack/CoachmarkStack.js +283 -0
  43. package/es/components/CoachmarkStack/CoachmarkStackHome.js +192 -0
  44. package/es/components/CoachmarkStack/index.js +8 -0
  45. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -4
  46. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -1
  47. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  48. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  49. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +4 -1
  50. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  51. package/es/components/Datagrid/Datagrid/addons/Slug/ColumnHeaderSlug.js +26 -0
  52. package/es/components/Datagrid/Datagrid.docs-page.js +2 -2
  53. package/es/components/Datagrid/useActionsColumn.js +16 -12
  54. package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
  55. package/es/components/Datagrid/useNestedRowExpander.js +2 -2
  56. package/es/components/Datagrid/useSortableColumns.js +15 -5
  57. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +7 -2
  58. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +8 -3
  59. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +7 -2
  60. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +7 -2
  61. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +7 -2
  62. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +7 -2
  63. package/es/components/EmptyStates/assets/ErrorIllustration.js +5 -5
  64. package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  65. package/es/components/EmptyStates/assets/NoTagsIllustration.js +5 -5
  66. package/es/components/EmptyStates/assets/NotFoundIllustration.js +5 -5
  67. package/es/components/EmptyStates/assets/NotificationsIllustration.js +5 -5
  68. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -5
  69. package/es/components/FilterSummary/FilterSummary.js +100 -19
  70. package/es/components/InterstitialScreen/InterstitialScreen.js +427 -0
  71. package/es/components/InterstitialScreen/index.js +8 -0
  72. package/es/components/InterstitialScreenView/InterstitialScreenView.js +75 -0
  73. package/es/components/InterstitialScreenView/index.js +8 -0
  74. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +83 -0
  75. package/es/components/InterstitialScreenViewModule/index.js +8 -0
  76. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  77. package/es/components/SearchBar/SearchBar.js +227 -0
  78. package/es/components/SearchBar/index.js +8 -0
  79. package/es/components/TagSet/TagSet.js +11 -3
  80. package/es/components/index.js +12 -1
  81. package/es/global/js/hooks/useResizeObserver.js +2 -2
  82. package/es/global/js/package-settings.js +14 -0
  83. package/lib/components/Card/Card.js +3 -4
  84. package/lib/components/Card/CardHeader.js +2 -2
  85. package/lib/components/Carousel/Carousel.js +5 -3
  86. package/lib/components/Coachmark/Coachmark.js +264 -0
  87. package/lib/components/Coachmark/CoachmarkDragbar.js +151 -0
  88. package/lib/components/Coachmark/CoachmarkHeader.js +95 -0
  89. package/lib/components/Coachmark/CoachmarkOverlay.js +243 -0
  90. package/lib/components/Coachmark/CoachmarkTagline.js +101 -0
  91. package/lib/components/Coachmark/index.js +38 -0
  92. package/lib/components/Coachmark/utils/constants.js +81 -0
  93. package/lib/components/Coachmark/utils/context.js +11 -0
  94. package/lib/components/Coachmark/utils/enums.js +46 -0
  95. package/lib/components/Coachmark/utils/helpers.js +17 -0
  96. package/lib/components/Coachmark/utils/hooks.js +59 -0
  97. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +97 -0
  98. package/lib/components/CoachmarkBeacon/index.js +12 -0
  99. package/lib/components/CoachmarkButton/CoachmarkButton.js +93 -0
  100. package/lib/components/CoachmarkButton/index.js +12 -0
  101. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +232 -0
  102. package/lib/components/CoachmarkFixed/index.js +12 -0
  103. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +90 -0
  104. package/lib/components/CoachmarkOverlayElement/index.js +12 -0
  105. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +222 -0
  106. package/lib/components/CoachmarkOverlayElements/index.js +12 -0
  107. package/lib/components/CoachmarkStack/CoachmarkStack.js +288 -0
  108. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +198 -0
  109. package/lib/components/CoachmarkStack/index.js +12 -0
  110. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -4
  111. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -1
  112. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  113. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  114. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +4 -1
  115. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  116. package/lib/components/Datagrid/Datagrid/addons/Slug/ColumnHeaderSlug.js +36 -0
  117. package/lib/components/Datagrid/Datagrid.docs-page.js +2 -2
  118. package/lib/components/Datagrid/useActionsColumn.js +15 -11
  119. package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
  120. package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
  121. package/lib/components/Datagrid/useSortableColumns.js +15 -5
  122. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +7 -2
  123. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +8 -3
  124. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +7 -2
  125. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +7 -2
  126. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +7 -2
  127. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +7 -2
  128. package/lib/components/EmptyStates/assets/ErrorIllustration.js +5 -5
  129. package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  130. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +5 -5
  131. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +5 -5
  132. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +5 -5
  133. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -5
  134. package/lib/components/FilterSummary/FilterSummary.js +103 -23
  135. package/lib/components/InterstitialScreen/InterstitialScreen.js +434 -0
  136. package/lib/components/InterstitialScreen/index.js +12 -0
  137. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +77 -0
  138. package/lib/components/InterstitialScreenView/index.js +12 -0
  139. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +85 -0
  140. package/lib/components/InterstitialScreenViewModule/index.js +12 -0
  141. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  142. package/lib/components/SearchBar/SearchBar.js +233 -0
  143. package/lib/components/SearchBar/index.js +12 -0
  144. package/lib/components/TagSet/TagSet.js +11 -3
  145. package/lib/components/index.js +78 -1
  146. package/lib/global/js/hooks/useResizeObserver.js +2 -2
  147. package/lib/global/js/package-settings.js +14 -0
  148. package/package.json +5 -5
  149. package/scss/components/Card/_card.scss +6 -5
  150. package/scss/components/Coachmark/_carbon-imports.scss +10 -0
  151. package/scss/components/Coachmark/_coachmark-dragbar.scss +27 -0
  152. package/scss/components/Coachmark/_coachmark-header.scss +20 -0
  153. package/scss/components/Coachmark/_coachmark-overlay.scss +431 -0
  154. package/scss/components/Coachmark/_coachmark-tagline.scss +140 -0
  155. package/scss/components/Coachmark/_coachmark.scss +30 -0
  156. package/scss/components/Coachmark/_index-with-carbon.scss +9 -0
  157. package/scss/components/Coachmark/_index.scss +8 -0
  158. package/scss/components/CoachmarkBeacon/_carbon-imports.scss +9 -0
  159. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +166 -0
  160. package/scss/components/CoachmarkBeacon/_index-with-carbon.scss +9 -0
  161. package/scss/components/CoachmarkBeacon/_index.scss +8 -0
  162. package/scss/components/CoachmarkButton/_carbon-imports.scss +9 -0
  163. package/scss/components/CoachmarkButton/_coachmark-button.scss +25 -0
  164. package/scss/components/CoachmarkButton/_index-with-carbon.scss +9 -0
  165. package/scss/components/CoachmarkButton/_index.scss +8 -0
  166. package/scss/components/CoachmarkFixed/_carbon-imports.scss +9 -0
  167. package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +25 -0
  168. package/scss/components/CoachmarkFixed/_index-with-carbon.scss +9 -0
  169. package/scss/components/CoachmarkFixed/_index.scss +8 -0
  170. package/scss/components/CoachmarkOverlayElement/_carbon-imports.scss +9 -0
  171. package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +52 -0
  172. package/scss/components/CoachmarkOverlayElement/_index-with-carbon.scss +9 -0
  173. package/scss/components/CoachmarkOverlayElement/_index.scss +8 -0
  174. package/scss/components/CoachmarkOverlayElements/_carbon-imports.scss +9 -0
  175. package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +47 -0
  176. package/scss/components/CoachmarkOverlayElements/_index-with-carbon.scss +9 -0
  177. package/scss/components/CoachmarkOverlayElements/_index.scss +8 -0
  178. package/scss/components/CoachmarkStack/_carbon-imports.scss +9 -0
  179. package/scss/components/CoachmarkStack/_coachmark-stack.scss +95 -0
  180. package/scss/components/CoachmarkStack/_index-with-carbon.scss +9 -0
  181. package/scss/components/CoachmarkStack/_index.scss +8 -0
  182. package/scss/components/CreateSidePanel/_create-side-panel.scss +1 -38
  183. package/scss/components/Datagrid/styles/_datagrid.scss +15 -0
  184. package/scss/components/EditSidePanel/_edit-side-panel.scss +0 -18
  185. package/scss/components/FilterSummary/_filter-summary.scss +22 -1
  186. package/scss/components/InterstitialScreen/_carbon-imports.scss +9 -0
  187. package/scss/components/InterstitialScreen/_index-with-carbon.scss +9 -0
  188. package/scss/components/InterstitialScreen/_index.scss +8 -0
  189. package/scss/components/InterstitialScreen/_interstitial-screen.scss +276 -0
  190. package/scss/components/InterstitialScreenView/_carbon-imports.scss +9 -0
  191. package/scss/components/InterstitialScreenView/_index-with-carbon.scss +9 -0
  192. package/scss/components/InterstitialScreenView/_index.scss +8 -0
  193. package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +25 -0
  194. package/scss/components/InterstitialScreenViewModule/_carbon-imports.scss +9 -0
  195. package/scss/components/InterstitialScreenViewModule/_index-with-carbon.scss +9 -0
  196. package/scss/components/InterstitialScreenViewModule/_index.scss +8 -0
  197. package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +59 -0
  198. package/scss/components/PageHeader/_page-header.scss +0 -1
  199. package/scss/components/SearchBar/_carbon-imports.scss +9 -0
  200. package/scss/components/SearchBar/_index-with-carbon.scss +9 -0
  201. package/scss/components/SearchBar/_index.scss +8 -0
  202. package/scss/components/SearchBar/_search-bar.scss +26 -0
  203. package/scss/components/SidePanel/_side-panel.scss +12 -7
  204. package/scss/components/_index-with-carbon.scss +11 -0
  205. package/scss/components/_index.scss +11 -0
@@ -14,8 +14,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
 
15
15
  import React from 'react';
16
16
  import cx from 'classnames';
17
- import { IconSkeleton, OverflowMenu, OverflowMenuItem } from '@carbon/react';
17
+ import { IconSkeleton, OverflowMenu, OverflowMenuItem, IconButton } from '@carbon/react';
18
18
  import { pkg } from '../../settings';
19
+ import { prepareProps } from '../../global/js/utils/props-helper';
19
20
  var blockClass = "".concat(pkg.prefix, "--datagrid");
20
21
  var useActionsColumn = function useActionsColumn(hooks) {
21
22
  var useAttachActionsOnInstance = function useAttachActionsOnInstance(instance) {
@@ -49,25 +50,28 @@ var useActionsColumn = function useActionsColumn(hooks) {
49
50
  display: 'flex'
50
51
  }
51
52
  }, rowActions.map(function (action, index) {
52
- var align = action.align,
53
- id = action.id,
54
- itemText = action.itemText,
55
- _onClick = action.onClick,
56
- icon = action.icon,
57
- shouldHideMenuItem = action.shouldHideMenuItem,
58
- rest = _objectWithoutProperties(action, _excluded);
53
+ var preparedActionProps = prepareProps(action, ['isDelete']);
54
+ var align = preparedActionProps.align,
55
+ id = preparedActionProps.id,
56
+ itemText = preparedActionProps.itemText,
57
+ _onClick = preparedActionProps.onClick,
58
+ icon = preparedActionProps.icon,
59
+ shouldHideMenuItem = preparedActionProps.shouldHideMenuItem,
60
+ rest = _objectWithoutProperties(preparedActionProps, _excluded);
59
61
  var hidden = typeof shouldHideMenuItem === 'function' && shouldHideMenuItem(row);
60
62
  if (hidden) {
61
63
  return null;
62
64
  }
65
+ var Icon = icon;
63
66
  return /*#__PURE__*/React.createElement("div", {
64
67
  className: cx("".concat(blockClass, "__actions-column-button"), _defineProperty({}, "".concat(blockClass, "__disabled-row-action-button"), getDisabledState(row.index))),
65
68
  key: "".concat(itemText, "__").concat(index)
66
- }, /*#__PURE__*/React.createElement(OverflowMenu, _extends({}, rest, {
69
+ }, /*#__PURE__*/React.createElement(IconButton, _extends({}, rest, {
67
70
  align: align || 'top',
68
- renderIcon: icon,
69
- iconDescription: itemText,
71
+ label: itemText,
70
72
  kind: "ghost",
73
+ name: itemText //for test use
74
+ ,
71
75
  className: cx(_defineProperty({}, "".concat(blockClass, "__disabled-row-action"), getDisabledState(row.index))),
72
76
  onClick: function onClick(e) {
73
77
  if (getDisabledState(row.index)) {
@@ -77,7 +81,7 @@ var useActionsColumn = function useActionsColumn(hooks) {
77
81
  e.stopPropagation();
78
82
  _onClick(id, row, e);
79
83
  }
80
- })));
84
+ }), /*#__PURE__*/React.createElement(Icon, null)));
81
85
  })), !isFetching && (rowActions.length > 2 || isColumnSticky) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(OverflowMenu, {
82
86
  align: "left",
83
87
  size: "sm",
@@ -20,9 +20,9 @@ var useDefaultStringRenderer = function useDefaultStringRenderer(hooks) {
20
20
  className: cx("".concat(blockClass, "__defaultStringRenderer"), _defineProperty({}, "".concat(blockClass, "__defaultStringRenderer--multiline"), ((_tableProps$column = tableProps.column) === null || _tableProps$column === void 0 ? void 0 : _tableProps$column.multiLineWrap) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.multiLineWrapAll)))
21
21
  }, tableProps.value);
22
22
  };
23
- var HeaderRenderer = function HeaderRenderer(header) {
23
+ var HeaderRenderer = function HeaderRenderer(header, slug) {
24
24
  return /*#__PURE__*/React.createElement("div", {
25
- className: "".concat(blockClass, "__defaultStringRenderer"),
25
+ className: cx("".concat(blockClass, "__defaultStringRenderer"), _defineProperty({}, "".concat(blockClass, "__defaultStringRenderer--slug"), slug && /*#__PURE__*/React.isValidElement(slug))),
26
26
  title: typeof header === 'string' ? header : '',
27
27
  key: typeof header === 'string' ? header : ''
28
28
  }, header);
@@ -32,7 +32,7 @@ var useDefaultStringRenderer = function useDefaultStringRenderer(hooks) {
32
32
  return _objectSpread(_objectSpread({
33
33
  Cell: StringRenderer
34
34
  }, column), {}, {
35
- Header: column.HeaderRenderer || HeaderRenderer(column.Header)
35
+ Header: column.HeaderRenderer || HeaderRenderer(column.Header, column.slug)
36
36
  });
37
37
  });
38
38
  return _toConsumableArray(columnsWithDefaultCells);
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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) { _defineProperty(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; }
6
6
  /* eslint-disable react/prop-types */
7
7
  /**
8
- * Copyright IBM Corp. 2020, 2023
8
+ * Copyright IBM Corp. 2020, 2024
9
9
  *
10
10
  * This source code is licensed under the Apache-2.0 license found in the
11
11
  * LICENSE file in the root directory of this source tree.
@@ -27,7 +27,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
27
27
  instance: tempState === null || tempState === void 0 ? void 0 : tempState.current,
28
28
  lastExpandedRowIndex: lastExpandedRowIndex === null || lastExpandedRowIndex === void 0 ? void 0 : lastExpandedRowIndex.current,
29
29
  blockClass: blockClass,
30
- activeElement: document.activeElement
30
+ activeElement: typeof document !== 'undefined' && document.activeElement
31
31
  });
32
32
  var visibleColumns = function visibleColumns(columns) {
33
33
  var expanderColumn = {
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  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; }
4
4
  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) { _defineProperty(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; }
5
5
  /**
6
- * Copyright IBM Corp. 2020, 2023
6
+ * Copyright IBM Corp. 2020, 2024
7
7
  *
8
8
  * This source code is licensed under the Apache-2.0 license found in the
9
9
  * LICENSE file in the root directory of this source tree.
@@ -15,6 +15,7 @@ import { pkg, carbon } from '../../settings';
15
15
  import { Button } from '@carbon/react';
16
16
  import { ArrowUp, ArrowDown, ArrowsVertical } from '@carbon/react/icons';
17
17
  import { SelectAll } from './Datagrid/DatagridSelectAll';
18
+ import { ColumnHeaderSlug } from './Datagrid/addons/Slug/ColumnHeaderSlug';
18
19
  var blockClass = "".concat(pkg.prefix, "--datagrid");
19
20
  var ordering = {
20
21
  ASC: 'ASC',
@@ -58,7 +59,13 @@ var useSortableColumns = function useSortableColumns(hooks) {
58
59
  ascendingSortableLabelText = instance.ascendingSortableLabelText,
59
60
  descendingSortableLabelText = instance.descendingSortableLabelText,
60
61
  defaultSortableLabelText = instance.defaultSortableLabelText;
61
- var onSortClick = function onSortClick(column) {
62
+ var onSortClick = function onSortClick(event, column) {
63
+ var slug = event.target.classList.contains("".concat(carbon.prefix, "--slug")) || event.target.closest(".".concat(carbon.prefix, "--slug"));
64
+ // Do not continue with sorting if we find a slug
65
+ if (slug) {
66
+ event.stopPropagation();
67
+ return;
68
+ }
62
69
  var key = column.id;
63
70
  var sortDesc = column.isSortedDesc;
64
71
  var _getNewSortOrder = getNewSortOrder(sortDesc),
@@ -96,12 +103,15 @@ var useSortableColumns = function useSortableColumns(hooks) {
96
103
  defaultSortableLabelText: defaultSortableLabelText
97
104
  }),
98
105
  "aria-pressed": getAriaPressedValue(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column),
99
- onClick: function onClick() {
100
- return onSortClick(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column);
106
+ onClick: function onClick(event) {
107
+ return onSortClick(event, headerProp === null || headerProp === void 0 ? void 0 : headerProp.column);
101
108
  },
102
109
  kind: "ghost",
103
110
  renderIcon: function renderIcon(props) {
104
- return icon(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column, props);
111
+ var _headerProp$column;
112
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColumnHeaderSlug, {
113
+ slug: headerProp === null || headerProp === void 0 || (_headerProp$column = headerProp.column) === null || _headerProp$column === void 0 ? void 0 : _headerProp$column.slug
114
+ }), icon(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column, props));
105
115
  },
106
116
  className: cx("".concat(carbon.prefix, "--table-sort ").concat(blockClass, "--table-sort"), _defineProperty(_defineProperty({}, "".concat(blockClass, "--table-sort--desc"), headerProp === null || headerProp === void 0 ? void 0 : headerProp.column.isSortedDesc), "".concat(blockClass, "--table-sort--asc"), (headerProp === null || headerProp === void 0 ? void 0 : headerProp.column.isSortedDesc) === false))
107
117
  }, column.Header);
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationDescription", "illustrationTheme", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -36,6 +36,7 @@ export var ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
36
36
  className = _ref.className,
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
+ illustrationDescription = _ref.illustrationDescription,
39
40
  illustrationTheme = _ref.illustrationTheme,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
@@ -49,7 +50,7 @@ export var ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(ErrorIllustration, {
50
51
  theme: illustrationTheme,
51
52
  size: size,
52
- title: title
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ ErrorEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -37,6 +37,7 @@ export var NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
39
  illustrationTheme = _ref.illustrationTheme,
40
+ illustrationDescription = _ref.illustrationDescription,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
42
43
  size = _ref$size === void 0 ? defaults.size : _ref$size,
@@ -47,9 +48,9 @@ export var NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
47
48
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noData")),
48
49
  ref: ref
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoDataIllustration, {
50
- title: title,
51
51
  theme: illustrationTheme,
52
- size: size
52
+ size: size,
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ NoDataEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -37,6 +37,7 @@ export var NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
39
  illustrationTheme = _ref.illustrationTheme,
40
+ illustrationDescription = _ref.illustrationDescription,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
42
43
  size = _ref$size === void 0 ? defaults.size : _ref$size,
@@ -49,7 +50,7 @@ export var NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoTagsIllustration, {
50
51
  theme: illustrationTheme,
51
52
  size: size,
52
- title: title
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ NoTagsEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -37,6 +37,7 @@ export var NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, re
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
39
  illustrationTheme = _ref.illustrationTheme,
40
+ illustrationDescription = _ref.illustrationDescription,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
42
43
  size = _ref$size === void 0 ? defaults.size : _ref$size,
@@ -49,7 +50,7 @@ export var NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, re
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotFoundIllustration, {
50
51
  theme: illustrationTheme,
51
52
  size: size,
52
- title: title
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ NotFoundEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -37,6 +37,7 @@ export var NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_re
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
39
  illustrationTheme = _ref.illustrationTheme,
40
+ illustrationDescription = _ref.illustrationDescription,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
42
43
  size = _ref$size === void 0 ? defaults.size : _ref$size,
@@ -49,7 +50,7 @@ export var NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_re
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotificationsIllustration, {
50
51
  size: size,
51
52
  theme: illustrationTheme,
52
- title: title
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ NotificationsEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "link", "size", "subtitle", "title"];
4
+ var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  /**
@@ -37,6 +37,7 @@ export var UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref
37
37
  _ref$illustrationPosi = _ref.illustrationPosition,
38
38
  illustrationPosition = _ref$illustrationPosi === void 0 ? defaults.position : _ref$illustrationPosi,
39
39
  illustrationTheme = _ref.illustrationTheme,
40
+ illustrationDescription = _ref.illustrationDescription,
40
41
  link = _ref.link,
41
42
  _ref$size = _ref.size,
42
43
  size = _ref$size === void 0 ? defaults.size : _ref$size,
@@ -49,7 +50,7 @@ export var UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref
49
50
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(UnauthorizedIllustration, {
50
51
  size: size,
51
52
  theme: illustrationTheme,
52
- title: title
53
+ alt: illustrationDescription || title
53
54
  }), /*#__PURE__*/React.createElement(EmptyStateContent, {
54
55
  action: action,
55
56
  link: link,
@@ -83,6 +84,10 @@ UnauthorizedEmptyState.propTypes = {
83
84
  * Provide an optional class to be applied to the containing node.
84
85
  */
85
86
  className: PropTypes.string,
87
+ /**
88
+ * The alt text for empty state svg images. If not provided , title will be used.
89
+ */
90
+ illustrationDescription: PropTypes.string,
86
91
  /**
87
92
  * Designates the position of the illustration relative to the content
88
93
  */
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var ErrorIllustration = function ErrorIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -32,7 +32,7 @@ export var ErrorIllustration = function ErrorIllustration(_ref) {
32
32
  viewBox: "0 0 80 80",
33
33
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-error"), "".concat(blockClass, "__illustration--").concat(size)]),
34
34
  role: "img"
35
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
35
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
36
  id: "prefix__a_dark_".concat(svgId),
37
37
  x1: 38.9,
38
38
  y1: 77.08,
@@ -209,7 +209,7 @@ export var ErrorIllustration = function ErrorIllustration(_ref) {
209
209
  })));
210
210
  };
211
211
  ErrorIllustration.propTypes = {
212
+ alt: PropTypes.string.isRequired,
212
213
  size: PropTypes.oneOf(['lg', 'sm']),
213
- theme: PropTypes.oneOf(['light', 'dark']),
214
- title: PropTypes.string
214
+ theme: PropTypes.oneOf(['light', 'dark'])
215
215
  };
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var NoDataIllustration = function NoDataIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -32,7 +32,7 @@ export var NoDataIllustration = function NoDataIllustration(_ref) {
32
32
  viewBox: "0 0 80 80",
33
33
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noData"), "".concat(blockClass, "__illustration--").concat(size)]),
34
34
  role: "img"
35
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
35
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
36
  id: "prefix__a_dark_".concat(svgId),
37
37
  x1: 11.12,
38
38
  y1: 43.34,
@@ -172,7 +172,7 @@ export var NoDataIllustration = function NoDataIllustration(_ref) {
172
172
  })));
173
173
  };
174
174
  NoDataIllustration.propTypes = {
175
+ alt: PropTypes.string.isRequired,
175
176
  size: PropTypes.oneOf(['lg', 'sm']),
176
- theme: PropTypes.oneOf(['light', 'dark']),
177
- title: PropTypes.string
177
+ theme: PropTypes.oneOf(['light', 'dark'])
178
178
  };
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var NoTagsIllustration = function NoTagsIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -33,7 +33,7 @@ export var NoTagsIllustration = function NoTagsIllustration(_ref) {
33
33
  viewBox: "0 0 80 80",
34
34
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noTags"), "".concat(blockClass, "__illustration--").concat(size)]),
35
35
  role: "img"
36
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
37
37
  id: "prefix__c_dark_".concat(svgId),
38
38
  x1: 34.96,
39
39
  y1: 5.37,
@@ -479,7 +479,7 @@ export var NoTagsIllustration = function NoTagsIllustration(_ref) {
479
479
  })));
480
480
  };
481
481
  NoTagsIllustration.propTypes = {
482
+ alt: PropTypes.string.isRequired,
482
483
  size: PropTypes.oneOf(['lg', 'sm']),
483
- theme: PropTypes.oneOf(['light', 'dark']),
484
- title: PropTypes.string
484
+ theme: PropTypes.oneOf(['light', 'dark'])
485
485
  };
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var NotFoundIllustration = function NotFoundIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -32,7 +32,7 @@ export var NotFoundIllustration = function NotFoundIllustration(_ref) {
32
32
  viewBox: "0 0 80 80",
33
33
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notFound"), "".concat(blockClass, "__illustration--").concat(size)]),
34
34
  role: "img"
35
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
35
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
36
  id: "prefix__a_dark_".concat(svgId),
37
37
  x1: 2.6,
38
38
  y1: -12.81,
@@ -356,7 +356,7 @@ export var NotFoundIllustration = function NotFoundIllustration(_ref) {
356
356
  })));
357
357
  };
358
358
  NotFoundIllustration.propTypes = {
359
+ alt: PropTypes.string.isRequired,
359
360
  size: PropTypes.oneOf(['lg', 'sm']),
360
- theme: PropTypes.oneOf(['light', 'dark']),
361
- title: PropTypes.string
361
+ theme: PropTypes.oneOf(['light', 'dark'])
362
362
  };
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var NotificationsIllustration = function NotificationsIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -32,7 +32,7 @@ export var NotificationsIllustration = function NotificationsIllustration(_ref)
32
32
  viewBox: "0 0 80 80",
33
33
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notification"), "".concat(blockClass, "__illustration--").concat(size)]),
34
34
  role: "img"
35
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
35
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
36
  id: "prefix__a_dark_".concat(svgId),
37
37
  x1: 30.05,
38
38
  y1: 54.31,
@@ -327,7 +327,7 @@ export var NotificationsIllustration = function NotificationsIllustration(_ref)
327
327
  })));
328
328
  };
329
329
  NotificationsIllustration.propTypes = {
330
+ alt: PropTypes.string.isRequired,
330
331
  size: PropTypes.oneOf(['lg', 'sm']),
331
- theme: PropTypes.oneOf(['light', 'dark']),
332
- title: PropTypes.string
332
+ theme: PropTypes.oneOf(['light', 'dark'])
333
333
  };
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["theme", "title", "size"];
3
+ var _excluded = ["theme", "size", "alt"];
4
4
  /**
5
5
  * Copyright IBM Corp. 2020, 2021
6
6
  *
@@ -21,8 +21,8 @@ import uuidv4 from '../../../global/js/utils/uuidv4';
21
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
22
22
  export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
23
23
  var theme = _ref.theme,
24
- title = _ref.title,
25
24
  size = _ref.size,
25
+ alt = _ref.alt,
26
26
  rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var svgId = uuidv4();
28
28
  return /*#__PURE__*/React.createElement("svg", _extends({}, rest, {
@@ -33,7 +33,7 @@ export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
33
33
  viewBox: "0 0 80 80",
34
34
  className: cx(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-unauthorized"), "".concat(blockClass, "__illustration--").concat(size)]),
35
35
  role: "img"
36
- }), /*#__PURE__*/React.createElement("title", null, title), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
36
+ }), /*#__PURE__*/React.createElement("title", null, alt), theme === 'dark' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
37
37
  id: "prefix__b_dark_".concat(svgId),
38
38
  x1: 17.33,
39
39
  y1: 40.68,
@@ -300,7 +300,7 @@ export var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
300
300
  })));
301
301
  };
302
302
  UnauthorizedIllustration.propTypes = {
303
+ alt: PropTypes.string.isRequired,
303
304
  size: PropTypes.oneOf(['lg', 'sm']),
304
- theme: PropTypes.oneOf(['light', 'dark']),
305
- title: PropTypes.string
305
+ theme: PropTypes.oneOf(['light', 'dark'])
306
306
  };