@carbon/ibm-products 1.59.0 → 1.60.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/css/index-full-carbon.css +97 -65
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +3 -3
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon.css +53 -21
  6. package/css/index-without-carbon.css.map +1 -1
  7. package/css/index-without-carbon.min.css +2 -2
  8. package/css/index-without-carbon.min.css.map +1 -1
  9. package/css/index.css +97 -65
  10. package/css/index.css.map +1 -1
  11. package/css/index.min.css +3 -3
  12. package/css/index.min.css.map +1 -1
  13. package/es/components/Checklist/ChecklistChart.js +2 -2
  14. package/es/components/Datagrid/Datagrid/Datagrid.js +2 -1
  15. package/es/components/Datagrid/Datagrid/DatagridContent.js +15 -7
  16. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -2
  17. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
  18. package/es/components/Datagrid/Datagrid/DatagridRow.js +41 -33
  19. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
  20. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
  21. package/es/components/Datagrid/Datagrid/DraggableElement.js +32 -135
  22. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +14 -38
  23. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
  24. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +128 -40
  25. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
  26. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -18
  27. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -0
  28. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +37 -4
  29. package/es/components/Datagrid/useExpandedRow.js +1 -1
  30. package/es/components/Datagrid/useFiltering.js +4 -1
  31. package/es/components/Datagrid/useNestedRowExpander.js +22 -9
  32. package/es/components/Datagrid/useRowExpander.js +22 -9
  33. package/es/components/Datagrid/utils/DatagridPagination.js +1 -1
  34. package/es/components/Datagrid/utils/getArgTypes.js +12 -0
  35. package/es/components/EmptyStates/EmptyState.js +1 -1
  36. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  37. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  38. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  39. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  40. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  41. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  42. package/es/components/EmptyStates/assets/ErrorIllustration.js +6 -11
  43. package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -11
  44. package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
  45. package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
  46. package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
  47. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
  48. package/es/components/FilterSummary/FilterSummary.js +9 -3
  49. package/es/components/TagSet/TagSet.js +3 -7
  50. package/es/global/js/hooks/useWindowScroll.js +5 -0
  51. package/lib/components/Checklist/ChecklistChart.js +2 -2
  52. package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -1
  53. package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -6
  54. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -1
  55. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
  56. package/lib/components/Datagrid/Datagrid/DatagridRow.js +41 -33
  57. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +13 -1
  58. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +3 -15
  59. package/lib/components/Datagrid/Datagrid/DraggableElement.js +34 -140
  60. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -38
  61. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -0
  62. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +128 -47
  63. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +7 -6
  64. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -24
  65. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +4 -2
  66. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +36 -3
  67. package/lib/components/Datagrid/useExpandedRow.js +1 -1
  68. package/lib/components/Datagrid/useFiltering.js +4 -1
  69. package/lib/components/Datagrid/useNestedRowExpander.js +24 -9
  70. package/lib/components/Datagrid/useRowExpander.js +24 -9
  71. package/lib/components/Datagrid/utils/DatagridPagination.js +1 -1
  72. package/lib/components/Datagrid/utils/getArgTypes.js +12 -0
  73. package/lib/components/EmptyStates/EmptyState.js +1 -1
  74. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  75. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  76. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  77. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  78. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  79. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  80. package/lib/components/EmptyStates/assets/ErrorIllustration.js +6 -11
  81. package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -11
  82. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
  83. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
  84. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
  85. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
  86. package/lib/components/FilterSummary/FilterSummary.js +9 -10
  87. package/lib/components/TagSet/TagSet.js +2 -6
  88. package/lib/global/js/hooks/useWindowScroll.js +6 -0
  89. package/package.json +8 -7
  90. package/scss/components/Datagrid/_datagrid.scss +1 -1
  91. package/scss/components/Datagrid/styles/_datagrid.scss +5 -0
  92. package/scss/components/Datagrid/styles/_draggableElement.scss +44 -20
  93. package/scss/components/Datagrid/styles/_useExpandedRow.scss +10 -0
  94. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +0 -1
@@ -1,37 +1,51 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _react = _interopRequireDefault(require("react"));
11
+ var _react = _interopRequireWildcard(require("react"));
11
12
  var _iconsReact = require("@carbon/icons-react");
12
13
  var _classnames = _interopRequireDefault(require("classnames"));
13
14
  var _settings = require("../../settings");
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
17
  /* eslint-disable react/prop-types */
15
- /*
16
- * Licensed Materials - Property of IBM
17
- * 5724-Q36
18
- * (c) Copyright IBM Corp. 2020
19
- * US Government Users Restricted Rights - Use, duplication or disclosure
20
- * restricted by GSA ADP Schedule Contract with IBM Corp.
18
+ /**
19
+ * Copyright IBM Corp. 2020, 2023
20
+ *
21
+ * This source code is licensed under the Apache-2.0 license found in the
22
+ * LICENSE file in the root directory of this source tree.
21
23
  */
22
24
 
23
25
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
24
26
  var useRowExpander = function useRowExpander(hooks) {
27
+ var tempState = (0, _react.useRef)();
28
+ var useInstance = function useInstance(instance) {
29
+ tempState.current = instance;
30
+ };
25
31
  var visibleColumns = function visibleColumns(columns) {
26
32
  var expanderColumn = {
27
33
  id: 'expander',
28
34
  Cell: function Cell(_ref) {
29
35
  var row = _ref.row;
36
+ var _ref2 = (tempState === null || tempState === void 0 ? void 0 : tempState.current) || {},
37
+ _ref2$expanderButtonT = _ref2.expanderButtonTitleExpanded,
38
+ expanderButtonTitleExpanded = _ref2$expanderButtonT === void 0 ? 'Collapse row' : _ref2$expanderButtonT,
39
+ _ref2$expanderButtonT2 = _ref2.expanderButtonTitleCollapsed,
40
+ expanderButtonTitleCollapsed = _ref2$expanderButtonT2 === void 0 ? 'Expand row' : _ref2$expanderButtonT2;
41
+ var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
30
42
  return row.canExpand && /*#__PURE__*/_react.default.createElement("button", (0, _extends2.default)({
31
43
  type: "button",
32
- "aria-label": "Expand current row",
44
+ "aria-label": expanderTitle,
33
45
  className: (0, _classnames.default)("".concat(blockClass, "__row-expander"), "".concat(_settings.carbon.prefix, "--btn"), "".concat(_settings.carbon.prefix, "--btn--ghost"))
34
- }, row.getToggleRowExpandedProps()), row.isExpanded ? /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronUp16, {
46
+ }, row.getToggleRowExpandedProps(), {
47
+ title: expanderTitle
48
+ }), row.isExpanded ? /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronUp16, {
35
49
  className: "".concat(blockClass, "__row-expander--icon")
36
50
  }) : /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronDown16, {
37
51
  className: "".concat(blockClass, "__row-expander--icon")
@@ -45,6 +59,7 @@ var useRowExpander = function useRowExpander(hooks) {
45
59
  return [expanderColumn].concat((0, _toConsumableArray2.default)(columns));
46
60
  };
47
61
  hooks.visibleColumns.push(visibleColumns);
62
+ hooks.useInstance.push(useInstance);
48
63
  };
49
64
  var _default = useRowExpander;
50
65
  exports.default = _default;
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _carbonComponentsReact = require("carbon-components-react");
10
10
  /* eslint-disable react/prop-types */
11
11
  /**
12
- * Copyright IBM Corp. 2022, 2022
12
+ * Copyright IBM Corp. 2022, 2023
13
13
  *
14
14
  * This source code is licensed under the Apache-2.0 license found in the
15
15
  * LICENSE file in the root directory of this source tree.
@@ -97,6 +97,18 @@ var ARG_TYPES = {
97
97
  },
98
98
  description: 'This value controls the height of the expanded content area. _This value is set/passed inside of the `datagridState` object._'
99
99
  },
100
+ expanderButtonTitleExpanded: {
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
+ },
106
+ expanderButtonTitleCollapsed: {
107
+ control: {
108
+ type: 'text'
109
+ },
110
+ description: 'This value controls the expander title/aria-label when expanded. _This value is set/passed inside of the `datagridState` object._'
111
+ },
100
112
  customizeColumnsProps: {
101
113
  control: 'object',
102
114
  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._'
@@ -47,7 +47,7 @@ var EmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
47
47
  });
48
48
  };
49
49
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
50
- className: (0, _classnames.default)(blockClass, className),
50
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--default")),
51
51
  ref: ref
52
52
  }, (0, _devtools.getDevtoolsProps)(componentName)), illustration && renderIllustration(), /*#__PURE__*/_react.default.createElement(_EmptyStateContent.EmptyStateContent, {
53
53
  action: action,
@@ -34,7 +34,7 @@ var ErrorEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--error")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_ErrorIllustration.ErrorIllustration, {
40
40
  theme: illustrationTheme,
@@ -34,7 +34,7 @@ var NoDataEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--noData")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoDataIllustration.NoDataIllustration, {
40
40
  theme: illustrationTheme,
@@ -34,7 +34,7 @@ var NoTagsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--noTags")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoTagsIllustration.NoTagsIllustration, {
40
40
  theme: illustrationTheme,
@@ -34,7 +34,7 @@ var NotFoundEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref,
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--notFound")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotFoundIllustration.NotFoundIllustration, {
40
40
  theme: illustrationTheme,
@@ -34,7 +34,7 @@ var NotificationsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--notifications")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotificationsIllustration.NotificationsIllustration, {
40
40
  size: size,
@@ -34,7 +34,7 @@ var UnauthorizedEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_r
34
34
  title = _ref.title,
35
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
36
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
37
- className: (0, _classnames.default)(blockClass, className),
37
+ className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-type--default")),
38
38
  ref: ref
39
39
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_UnauthorizedIllustration.UnauthorizedIllustration, {
40
40
  size: size,
@@ -20,13 +20,14 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  width: 80,
26
26
  height: 80,
27
27
  viewBox: "0 0 80 80",
28
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
29
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
28
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-error"), "".concat(blockClass, "__illustration--").concat(size)]),
29
+ role: "img"
30
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
30
31
  id: "prefix__a_dark_".concat(svgId),
31
32
  x1: 38.9,
32
33
  y1: 77.08,
@@ -90,13 +91,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
90
91
  }), /*#__PURE__*/_react.default.createElement("path", {
91
92
  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",
92
93
  fill: "#525252"
93
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
94
- xmlns: "http://www.w3.org/2000/svg",
95
- width: 80,
96
- height: 80,
97
- viewBox: "0 0 80 80",
98
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
99
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
94
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
100
95
  id: "prefix__a_".concat(svgId),
101
96
  x1: 29.96,
102
97
  y1: 45.68,
@@ -206,7 +201,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
206
201
  }), /*#__PURE__*/_react.default.createElement("path", {
207
202
  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",
208
203
  fill: "url(#prefix__e_".concat(svgId, ")")
209
- }));
204
+ })));
210
205
  };
211
206
  exports.ErrorIllustration = ErrorIllustration;
212
207
  ErrorIllustration.propTypes = {
@@ -20,13 +20,14 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  width: 80,
26
26
  height: 80,
27
27
  viewBox: "0 0 80 80",
28
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
29
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
28
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noData"), "".concat(blockClass, "__illustration--").concat(size)]),
29
+ role: "img"
30
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
30
31
  id: "prefix__a_dark_".concat(svgId),
31
32
  x1: 11.12,
32
33
  y1: 43.34,
@@ -89,13 +90,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
89
90
  }), /*#__PURE__*/_react.default.createElement("path", {
90
91
  fill: "#525252",
91
92
  d: "M21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
92
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
93
- xmlns: "http://www.w3.org/2000/svg",
94
- width: 80,
95
- height: 80,
96
- viewBox: "0 0 80 80",
97
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
98
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
93
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
99
94
  id: "prefix__a_".concat(svgId),
100
95
  x1: 18.35,
101
96
  y1: 74.17,
@@ -169,7 +164,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
169
164
  }), /*#__PURE__*/_react.default.createElement("path", {
170
165
  className: "prefix__g_".concat(svgId),
171
166
  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"
172
- }));
167
+ })));
173
168
  };
174
169
  exports.NoDataIllustration = NoDataIllustration;
175
170
  NoDataIllustration.propTypes = {
@@ -20,14 +20,15 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  xmlnsXlink: "http://www.w3.org/1999/xlink",
26
26
  width: 80,
27
27
  height: 80,
28
28
  viewBox: "0 0 80 80",
29
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
30
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
29
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noTags"), "".concat(blockClass, "__illustration--").concat(size)]),
30
+ role: "img"
31
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
31
32
  id: "prefix__c_dark_".concat(svgId),
32
33
  x1: 34.96,
33
34
  y1: 5.37,
@@ -227,14 +228,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
227
228
  }), /*#__PURE__*/_react.default.createElement("path", {
228
229
  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",
229
230
  fill: "url(#prefix__i_dark_".concat(svgId, ")")
230
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
231
- xmlns: "http://www.w3.org/2000/svg",
232
- xmlnsXlink: "http://www.w3.org/1999/xlink",
233
- width: 80,
234
- height: 80,
235
- viewBox: "0 0 80 80",
236
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
237
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
231
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
238
232
  id: "prefix__b_".concat(svgId),
239
233
  x1: 634.81,
240
234
  y1: 667.18,
@@ -477,7 +471,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
477
471
  }), /*#__PURE__*/_react.default.createElement("path", {
478
472
  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",
479
473
  fill: "url(#prefix__j_".concat(svgId, ")")
480
- }));
474
+ })));
481
475
  };
482
476
  exports.NoTagsIllustration = NoTagsIllustration;
483
477
  NoTagsIllustration.propTypes = {
@@ -20,13 +20,14 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  width: 80,
26
26
  height: 80,
27
27
  viewBox: "0 0 80 80",
28
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
29
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
28
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notFound"), "".concat(blockClass, "__illustration--").concat(size)]),
29
+ role: "img"
30
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
30
31
  id: "prefix__a_dark_".concat(svgId),
31
32
  x1: 2.6,
32
33
  y1: -12.81,
@@ -177,14 +178,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
177
178
  }), /*#__PURE__*/_react.default.createElement("path", {
178
179
  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",
179
180
  fill: "url(#prefix__f_dark_".concat(svgId, ")")
180
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
181
- xmlns: "http://www.w3.org/2000/svg",
182
- xmlnsXlink: "http://www.w3.org/1999/xlink",
183
- width: 80,
184
- height: 80,
185
- viewBox: "0 0 80 80",
186
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
187
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
181
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
188
182
  id: "prefix__a_".concat(svgId),
189
183
  x1: 2.6,
190
184
  y1: -12.81,
@@ -354,7 +348,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
354
348
  }), /*#__PURE__*/_react.default.createElement("path", {
355
349
  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",
356
350
  fill: "url(#prefix__g_".concat(svgId, ")")
357
- }));
351
+ })));
358
352
  };
359
353
  exports.NotFoundIllustration = NotFoundIllustration;
360
354
  NotFoundIllustration.propTypes = {
@@ -20,13 +20,14 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  width: 80,
26
26
  height: 80,
27
27
  viewBox: "0 0 80 80",
28
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
29
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
28
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notification"), "".concat(blockClass, "__illustration--").concat(size)]),
29
+ role: "img"
30
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
30
31
  id: "prefix__a_dark_".concat(svgId),
31
32
  x1: 30.05,
32
33
  y1: 54.31,
@@ -122,14 +123,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
122
123
  }), /*#__PURE__*/_react.default.createElement("path", {
123
124
  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",
124
125
  fill: "url(#prefix__d_dark_".concat(svgId, ")")
125
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
126
- xmlns: "http://www.w3.org/2000/svg",
127
- xmlnsXlink: "http://www.w3.org/1999/xlink",
128
- width: 80,
129
- height: 80,
130
- viewBox: "0 0 80 80",
131
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
132
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
126
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
133
127
  id: "prefix__a_".concat(svgId),
134
128
  x1: 61.44,
135
129
  y1: 66.99,
@@ -325,7 +319,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
325
319
  }), /*#__PURE__*/_react.default.createElement("path", {
326
320
  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",
327
321
  fill: "url(#prefix__k_".concat(svgId, ")")
328
- }));
322
+ })));
329
323
  };
330
324
  exports.NotificationsIllustration = NotificationsIllustration;
331
325
  NotificationsIllustration.propTypes = {
@@ -20,14 +20,15 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
20
20
  size = _ref.size,
21
21
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  var svgId = (0, _uuidv.default)();
23
- return theme === 'dark' ? /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
23
+ return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
25
  xmlnsXlink: "http://www.w3.org/1999/xlink",
26
26
  width: 80,
27
27
  height: 80,
28
28
  viewBox: "0 0 80 80",
29
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
30
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
29
+ className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-unauthorized"), "".concat(blockClass, "__illustration--").concat(size)]),
30
+ role: "img"
31
+ }), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
31
32
  id: "prefix__b_dark_".concat(svgId),
32
33
  x1: 17.33,
33
34
  y1: 40.68,
@@ -110,14 +111,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
110
111
  }), /*#__PURE__*/_react.default.createElement("path", {
111
112
  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",
112
113
  fill: "#6f6f6f"
113
- })) : /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
114
- xmlns: "http://www.w3.org/2000/svg",
115
- xmlnsXlink: "http://www.w3.org/1999/xlink",
116
- width: 80,
117
- height: 80,
118
- viewBox: "0 0 80 80",
119
- className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
120
- }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
114
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
121
115
  id: "prefix__b",
122
116
  x1: 27.98,
123
117
  y1: 73.72,
@@ -298,7 +292,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
298
292
  }), /*#__PURE__*/_react.default.createElement("path", {
299
293
  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",
300
294
  fill: "url(#prefix__h_".concat(svgId, ")")
301
- }));
295
+ })));
302
296
  };
303
297
  exports.UnauthorizedIllustration = UnauthorizedIllustration;
304
298
  UnauthorizedIllustration.propTypes = {
@@ -5,19 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
8
10
  var _carbonComponentsReact = require("carbon-components-react");
9
11
  var _react = _interopRequireDefault(require("react"));
10
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
13
  var _classnames = _interopRequireDefault(require("classnames"));
12
14
  var _TagSet = require("../TagSet");
13
15
  var _settings = require("../../settings");
14
- /**
15
- * Copyright IBM Corp. 2022, 2022
16
- *
17
- * This source code is licensed under the Apache-2.0 license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
-
16
+ var _excluded = ["key", "value"];
17
+ 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; }
18
+ 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) { (0, _defineProperty2.default)(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; }
21
19
  var blockClass = "".concat(_settings.pkg.prefix, "--filter-summary");
22
20
  var FilterSummary = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
23
21
  var _ref$className = _ref.className,
@@ -33,11 +31,12 @@ var FilterSummary = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
33
31
  var tagFilters = filters.map(function (_ref2) {
34
32
  var _renderLabel;
35
33
  var key = _ref2.key,
36
- value = _ref2.value;
37
- return {
34
+ value = _ref2.value,
35
+ rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
36
+ return _objectSpread(_objectSpread({}, rest), {}, {
38
37
  type: 'gray',
39
38
  label: (_renderLabel = renderLabel === null || renderLabel === void 0 ? void 0 : renderLabel(key, value)) !== null && _renderLabel !== void 0 ? _renderLabel : "".concat(key, ": ").concat(value)
40
- };
39
+ });
41
40
  });
42
41
  return /*#__PURE__*/_react.default.createElement("div", {
43
42
  ref: ref,
@@ -113,8 +113,7 @@ var TagSet = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
113
113
  }
114
114
  }, /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.Tag, (0, _extends2.default)({}, other, {
115
115
  // ensure id is not duplicated
116
- "data-original-id": id,
117
- filter: false
116
+ "data-original-id": id
118
117
  }), label));
119
118
  }) : []);
120
119
  setSizingTags(newSizingTags);
@@ -125,7 +124,6 @@ var TagSet = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
125
124
  var label = _ref3.label,
126
125
  other = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
127
126
  return /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.Tag, (0, _extends2.default)({}, other, {
128
- filter: false,
129
127
  key: "displayed-tag-".concat(index)
130
128
  }), label);
131
129
  }) : [];
@@ -318,12 +316,10 @@ TagSet.propTypes = {
318
316
  * with properties: **label**\* (required) to supply the tag content, and
319
317
  * other properties will be passed to the Carbon Tag component, such as
320
318
  * **type**, **disabled**, **ref**, **className** , and any other Tag props.
321
- * NOTE: **filter** is not supported. Any other fields in the object will be passed through to the HTML element
322
- * as HTML attributes.
323
319
  *
324
320
  * See https://react.carbondesignsystem.com/?path=/docs/components-tag--default
325
321
  */
326
- tags: _propTypes.default.arrayOf(_propTypes.default.shape(_objectSpread(_objectSpread({}, (0, _propsHelper.prepareProps)(_carbonComponentsReact.Tag.propTypes, 'filter')), {}, {
322
+ tags: _propTypes.default.arrayOf(_propTypes.default.shape(_objectSpread(_objectSpread({}, _carbonComponentsReact.Tag.propTypes), {}, {
327
323
  label: _propTypes.default.string.isRequired,
328
324
  // we duplicate this prop to improve the DocGen
329
325
  type: _propTypes.default.oneOf(tagTypes)
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.useNearestScroll = useNearestScroll;
8
+ exports.useScroll = useScroll;
8
9
  exports.useWindowScroll = useWindowScroll;
9
10
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
10
11
  var _react = require("react");
@@ -76,4 +77,9 @@ function useNearestScroll(ref, effect, deps) {
76
77
  scrollableTarget = window;
77
78
  }
78
79
  return useTargetScroll(scrollableTarget, effect, deps, throttle);
80
+ }
81
+ function useScroll(ref, effect, deps) {
82
+ var _ref$current;
83
+ var throttle = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
84
+ return useTargetScroll((_ref$current = ref === null || ref === void 0 ? void 0 : ref.current) !== null && _ref$current !== void 0 ? _ref$current : null, effect, deps, throttle);
79
85
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "1.59.0",
4
+ "version": "1.60.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -48,7 +48,7 @@
48
48
  "postinstall": "carbon-telemetry collect --install",
49
49
  "test": "jest --colors",
50
50
  "//upgrade-dependencies": "# don't upgrade carbon (done globally), react/react-dom (explicit range peer dependency), chalk (issue #1596)",
51
- "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^react-dnd|^namor)/'"
51
+ "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor)/'"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@babel/cli": "^7.20.7",
@@ -73,12 +73,13 @@
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.20.13",
75
75
  "@carbon/telemetry": "^0.1.0",
76
+ "@dnd-kit/core": "^6.0.8",
77
+ "@dnd-kit/sortable": "^7.0.2",
78
+ "@dnd-kit/utilities": "^3.2.1",
76
79
  "framer-motion": "^6.5.1 <7",
77
80
  "immutability-helper": "^3.1.1",
78
81
  "lodash": "^4.17.21",
79
82
  "lottie-web": "^5.11.0",
80
- "react-dnd": "^15.1.2",
81
- "react-dnd-html5-backend": "^15.1.3",
82
83
  "react-table": "^7.8.0",
83
84
  "react-window": "^1.8.8"
84
85
  },
@@ -90,11 +91,11 @@
90
91
  "@carbon/motion": "^10.29.2",
91
92
  "@carbon/themes": "^10.55.3",
92
93
  "@carbon/type": "^10.45.3",
93
- "carbon-components": "^10.58.9",
94
- "carbon-components-react": "^7.59.11",
94
+ "carbon-components": "^10.58.10",
95
+ "carbon-components-react": "^7.59.14",
95
96
  "carbon-icons": "^7.0.7",
96
97
  "react": "^16.8.6 || ^17.0.1",
97
98
  "react-dom": "^16.8.6 || ^17.0.1"
98
99
  },
99
- "gitHead": "873c5ae8e573e99c87aadd1d300c967d7da635e6"
100
+ "gitHead": "60db5711e16835785348a1fc148a7c346bad5bde"
100
101
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2022
2
+ // Copyright IBM Corp. 2022, 2023
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -288,6 +288,7 @@
288
288
  }
289
289
 
290
290
  .#{$block-class}__empty-state .#{$block-class}__table-simple tr:hover td {
291
+ border-bottom: none;
291
292
  background: transparent;
292
293
  }
293
294
 
@@ -299,6 +300,10 @@
299
300
  flex: 1 1 auto;
300
301
  }
301
302
 
303
+ .#{$block-class}__empty-state .#{$block-class}__empty-state-cell {
304
+ border-bottom: none;
305
+ }
306
+
302
307
  .#{$block-class}__resizer {
303
308
  position: absolute;
304
309
  z-index: 1;