@carbon/ibm-products 2.20.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/README.md +8 -5
  2. package/css/index-full-carbon.css +548 -253
  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 +208 -177
  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 +252 -189
  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 +233 -193
  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/ActionSet/ActionSet.js +3 -4
  19. package/es/components/AddSelect/AddSelectBody.js +2 -2
  20. package/es/components/AddSelect/AddSelectRow.js +2 -2
  21. package/es/components/Card/Card.js +1 -2
  22. package/es/components/Card/CardHeader.js +1 -2
  23. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -2
  24. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  25. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  26. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  27. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  28. package/es/components/Datagrid/Datagrid/DatagridContent.js +10 -10
  29. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  30. package/es/components/Datagrid/Datagrid/DatagridRow.js +15 -11
  31. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  32. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +21 -11
  33. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
  34. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +31 -74
  35. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  36. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  37. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  38. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  39. package/es/components/Datagrid/useActionsColumn.js +1 -2
  40. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  41. package/es/components/Datagrid/useFiltering.js +1 -0
  42. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  43. package/es/components/Datagrid/useNestedRows.js +49 -33
  44. package/es/components/Datagrid/useOnRowClick.js +1 -1
  45. package/es/components/Datagrid/useRowIsMouseOver.js +3 -1
  46. package/es/components/Datagrid/useSelectRows.js +1 -2
  47. package/es/components/Datagrid/useSortableColumns.js +1 -2
  48. package/es/components/Datagrid/useStickyColumn.js +3 -4
  49. package/es/components/Datagrid/utils/filterPropsForTesting.js +149 -0
  50. package/es/components/DelimitedList/DelimitedList.docs-page.js +15 -0
  51. package/es/components/DelimitedList/DelimitedList.js +73 -0
  52. package/es/components/DelimitedList/index.js +8 -0
  53. package/es/components/EditInPlace/EditInPlace.js +1 -2
  54. package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
  55. package/es/components/FilterSummary/FilterSummary.js +15 -12
  56. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
  57. package/es/components/PageHeader/PageHeader.js +9 -11
  58. package/es/components/Saving/Saving.js +6 -6
  59. package/es/components/SidePanel/SidePanel.js +147 -191
  60. package/es/components/TagSet/TagSet.js +21 -5
  61. package/es/components/TagSet/TagSetOverflow.js +14 -10
  62. package/es/components/Tearsheet/Tearsheet.js +5 -0
  63. package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
  64. package/es/components/Tearsheet/TearsheetShell.js +9 -9
  65. package/es/components/WebTerminal/WebTerminal.js +1 -2
  66. package/es/components/index.js +2 -1
  67. package/es/global/js/hooks/useResizeObserver.js +5 -2
  68. package/es/global/js/package-settings.js +1 -0
  69. package/lib/components/ActionSet/ActionSet.js +3 -4
  70. package/lib/components/AddSelect/AddSelectBody.js +2 -2
  71. package/lib/components/AddSelect/AddSelectRow.js +2 -2
  72. package/lib/components/Card/Card.js +1 -2
  73. package/lib/components/Card/CardHeader.js +1 -2
  74. package/lib/components/CreateFullPage/CreateFullPageStep.js +1 -2
  75. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  76. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  77. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  78. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  79. package/lib/components/Datagrid/Datagrid/DatagridContent.js +10 -10
  80. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  81. package/lib/components/Datagrid/Datagrid/DatagridRow.js +15 -11
  82. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  83. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +21 -11
  84. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
  85. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +31 -74
  86. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  87. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  88. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  89. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  90. package/lib/components/Datagrid/useActionsColumn.js +1 -2
  91. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  92. package/lib/components/Datagrid/useFiltering.js +1 -0
  93. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  94. package/lib/components/Datagrid/useNestedRows.js +49 -33
  95. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  96. package/lib/components/Datagrid/useRowIsMouseOver.js +3 -1
  97. package/lib/components/Datagrid/useSelectRows.js +1 -2
  98. package/lib/components/Datagrid/useSortableColumns.js +1 -2
  99. package/lib/components/Datagrid/useStickyColumn.js +3 -4
  100. package/lib/components/Datagrid/utils/filterPropsForTesting.js +156 -0
  101. package/lib/components/DelimitedList/DelimitedList.docs-page.js +25 -0
  102. package/lib/components/DelimitedList/DelimitedList.js +78 -0
  103. package/lib/components/DelimitedList/index.js +12 -0
  104. package/lib/components/EditInPlace/EditInPlace.js +1 -2
  105. package/lib/components/EditTearsheet/EditTearsheetForm.js +1 -2
  106. package/lib/components/FilterSummary/FilterSummary.js +15 -12
  107. package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -3
  108. package/lib/components/PageHeader/PageHeader.js +9 -11
  109. package/lib/components/Saving/Saving.js +6 -6
  110. package/lib/components/SidePanel/SidePanel.js +147 -191
  111. package/lib/components/TagSet/TagSet.js +21 -5
  112. package/lib/components/TagSet/TagSetOverflow.js +13 -9
  113. package/lib/components/Tearsheet/Tearsheet.js +5 -0
  114. package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
  115. package/lib/components/Tearsheet/TearsheetShell.js +9 -9
  116. package/lib/components/WebTerminal/WebTerminal.js +1 -2
  117. package/lib/components/index.js +8 -1
  118. package/lib/global/js/hooks/useResizeObserver.js +5 -2
  119. package/lib/global/js/package-settings.js +1 -0
  120. package/package.json +9 -8
  121. package/scss/components/Datagrid/_datagrid.scss +4 -0
  122. package/scss/components/Datagrid/styles/_datagrid.scss +9 -1
  123. package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -0
  124. package/scss/components/DelimitedList/_carbon-imports.scss +9 -0
  125. package/scss/components/DelimitedList/_delimited-list.scss +27 -0
  126. package/scss/components/DelimitedList/_index-with-carbon.scss +9 -0
  127. package/scss/components/DelimitedList/_index.scss +8 -0
  128. package/scss/components/Saving/_saving.scss +6 -0
  129. package/scss/components/SidePanel/_side-panel-variables.scss +5 -1
  130. package/scss/components/SidePanel/_side-panel.scss +158 -186
  131. package/scss/components/TagSet/_tag-set.scss +4 -1
  132. package/scss/components/_index-with-carbon.scss +1 -0
  133. package/scss/components/_index.scss +1 -0
  134. package/telemetry.yml +790 -0
@@ -115,6 +115,11 @@ Tearsheet.propTypes = _objectSpread({
115
115
  // we duplicate this Button prop to improve the DocGen here
116
116
  onClick: _react2.Button.propTypes.onClick
117
117
  })))]),
118
+ /**
119
+ * The aria-label for the tearsheet, which is optional.
120
+ * if it is not passed, the title will be used as the aria-label.
121
+ */
122
+ ariaLabel: _propTypes.default.string,
118
123
  /**
119
124
  * An optional class or classes to be added to the outermost element.
120
125
  */
@@ -103,6 +103,11 @@ TearsheetNarrow.propTypes = _objectSpread({
103
103
  // we duplicate this Button prop to improve the DocGen here
104
104
  onClick: _react2.Button.propTypes.onClick
105
105
  })))]),
106
+ /**
107
+ * The aria-label for the tearsheet, which is optional.
108
+ * if it is not passed, the title will be used as the aria-label.
109
+ */
110
+ ariaLabel: _propTypes.default.string,
106
111
  /**
107
112
  * An optional class or classes to be added to the outermost element.
108
113
  */
@@ -21,7 +21,7 @@ var _react2 = require("@carbon/react");
21
21
  var _ActionSet = require("../ActionSet");
22
22
  var _Wrap = require("../../global/js/utils/Wrap");
23
23
  var _usePortalTarget = require("../../global/js/hooks/usePortalTarget");
24
- var _excluded = ["actions", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "selectorPrimaryFocus", "size", "portalTarget", "title", "verticalPosition"];
24
+ var _excluded = ["actions", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "selectorPrimaryFocus", "size", "portalTarget", "title", "verticalPosition"];
25
25
  /**
26
26
  * Copyright IBM Corp. 2020, 2023
27
27
  *
@@ -71,6 +71,7 @@ var tearsheetHasCloseIcon = exports.tearsheetHasCloseIcon = function tearsheetHa
71
71
  * */
72
72
  var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
73
73
  var actions = _ref.actions,
74
+ ariaLabel = _ref.ariaLabel,
74
75
  children = _ref.children,
75
76
  className = _ref.className,
76
77
  closeIconDescription = _ref.closeIconDescription,
@@ -185,7 +186,6 @@ var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwar
185
186
  }
186
187
  }
187
188
  if (position <= depth) {
188
- var _cx, _ref2, _cx3, _cx5, _cx6;
189
189
  // Include a modal header if and only if one or more of these is given.
190
190
  // We can't use a Wrap for the ModalHeader because ComposedModal requires
191
191
  // the direct child to be the ModalHeader instance.
@@ -194,11 +194,11 @@ var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwar
194
194
  // Include an ActionSet if and only if one or more actions is given.
195
195
  var includeActions = actions && (actions === null || actions === void 0 ? void 0 : actions.length) > 0;
196
196
  return renderPortalUse( /*#__PURE__*/_react.default.createElement(_react2.ComposedModal, (0, _extends2.default)({}, rest, {
197
- "aria-label": (0, _getNodeTextContent.getNodeTextContent)(title),
198
- className: (0, _classnames.default)(bc, className, (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
197
+ "aria-label": ariaLabel || (0, _getNodeTextContent.getNodeTextContent)(title),
198
+ className: (0, _classnames.default)(bc, className, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
199
199
  // Don't apply this on the initial open of a single tearsheet.
200
- depth > 1 || depth === 1 && prevDepth.current > 1), (0, _defineProperty2.default)(_cx, "".concat(bc, "--wide"), wide), (0, _defineProperty2.default)(_cx, "".concat(bc, "--narrow"), !wide), _cx)),
201
- style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), (0, _defineProperty2.default)(_ref2, "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width), _ref2),
200
+ depth > 1 || depth === 1 && prevDepth.current > 1), "".concat(bc, "--wide"), wide), "".concat(bc, "--narrow"), !wide)),
201
+ style: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width),
202
202
  containerClassName: (0, _classnames.default)("".concat(bc, "__container"), (0, _defineProperty2.default)({}, "".concat(bc, "__container--lower"), verticalPosition === 'lower')),
203
203
  onClose: onClose,
204
204
  open: open,
@@ -209,7 +209,7 @@ var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwar
209
209
  selectorsFloatingMenus: [".".concat(carbonPrefix, "--overflow-menu-options"), ".".concat(carbonPrefix, "--tooltip"), '.flatpickr-calendar', ".".concat(bc, "__container")],
210
210
  size: "sm"
211
211
  }), includeHeader && /*#__PURE__*/_react.default.createElement(_react2.ModalHeader, {
212
- className: (0, _classnames.default)("".concat(bc, "__header"), (_cx3 = {}, (0, _defineProperty2.default)(_cx3, "".concat(bc, "__header--with-close-icon"), effectiveHasCloseIcon), (0, _defineProperty2.default)(_cx3, "".concat(bc, "__header--with-nav"), navigation), _cx3)),
212
+ className: (0, _classnames.default)("".concat(bc, "__header"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(bc, "__header--with-close-icon"), effectiveHasCloseIcon), "".concat(bc, "__header--with-nav"), navigation)),
213
213
  closeClassName: (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(bc, "__header--no-close-icon"), !effectiveHasCloseIcon)),
214
214
  closeModal: onClose,
215
215
  iconDescription: closeIconDescription
@@ -234,7 +234,7 @@ var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwar
234
234
  element: _react2.ModalBody,
235
235
  className: "".concat(bc, "__body")
236
236
  }, /*#__PURE__*/_react.default.createElement(_Wrap.Wrap, {
237
- className: (0, _classnames.default)((_cx5 = {}, (0, _defineProperty2.default)(_cx5, "".concat(bc, "__influencer"), true), (0, _defineProperty2.default)(_cx5, "".concat(bc, "__influencer--wide"), influencerWidth === 'wide'), _cx5)),
237
+ className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(bc, "__influencer"), true), "".concat(bc, "__influencer--wide"), influencerWidth === 'wide')),
238
238
  neverRender: influencerPosition === 'right'
239
239
  }, influencer), /*#__PURE__*/_react.default.createElement(_Wrap.Wrap, {
240
240
  className: "".concat(bc, "__right")
@@ -245,7 +245,7 @@ var TearsheetShell = exports.TearsheetShell = /*#__PURE__*/_react.default.forwar
245
245
  className: "".concat(bc, "__content"),
246
246
  alwaysRender: influencer && influencerPosition === 'right'
247
247
  }, children), /*#__PURE__*/_react.default.createElement(_Wrap.Wrap, {
248
- className: (0, _classnames.default)((_cx6 = {}, (0, _defineProperty2.default)(_cx6, "".concat(bc, "__influencer"), true), (0, _defineProperty2.default)(_cx6, "".concat(bc, "__influencer--wide"), influencerWidth === 'wide'), _cx6)),
248
+ className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(bc, "__influencer"), true), "".concat(bc, "__influencer--wide"), influencerWidth === 'wide')),
249
249
  neverRender: influencerPosition !== 'right'
250
250
  }, influencer)), includeActions && /*#__PURE__*/_react.default.createElement(_Wrap.Wrap, {
251
251
  className: "".concat(bc, "__button-container")
@@ -50,7 +50,6 @@ var defaults = {
50
50
  * The `WebTerminal` is prompted by the user and is persistent until dismissed. The purpose of a web terminal is to provide users with the ability to type commands manually instead of using the GUI.
51
51
  */
52
52
  var WebTerminal = exports.WebTerminal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
53
- var _ref3;
54
53
  var _ref$actions = _ref.actions,
55
54
  actions = _ref$actions === void 0 ? defaults.actions : _ref$actions,
56
55
  children = _ref.children,
@@ -114,7 +113,7 @@ var WebTerminal = exports.WebTerminal = /*#__PURE__*/_react.default.forwardRef(f
114
113
  };
115
114
  return shouldRender ? /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, _objectSpread(_objectSpread({}, rest), (0, _devtools.getDevtoolsProps)(componentName)), {
116
115
  ref: ref,
117
- className: (0, _classnames.default)([blockClass, className, (_ref3 = {}, (0, _defineProperty2.default)(_ref3, "".concat(blockClass, "--open"), open), (0, _defineProperty2.default)(_ref3, "".concat(blockClass, "--closed"), !open), _ref3)]),
116
+ className: (0, _classnames.default)([blockClass, className, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "--open"), open), "".concat(blockClass, "--closed"), !open)]),
118
117
  style: {
119
118
  animation: !prefersReducedMotion && webTerminalAnimationName
120
119
  },
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "Datagrid", {
99
99
  return _Datagrid.Datagrid;
100
100
  }
101
101
  });
102
+ Object.defineProperty(exports, "DelimitedList", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _DelimitedList.DelimitedList;
106
+ }
107
+ });
102
108
  Object.defineProperty(exports, "EditFullPage", {
103
109
  enumerable: true,
104
110
  get: function get() {
@@ -553,4 +559,5 @@ var _EditUpdateCards = require("./EditUpdateCards");
553
559
  var _Checklist = require("./Checklist");
554
560
  var _Guidebanner = require("./Guidebanner");
555
561
  var _InlineTip = require("./InlineTip");
556
- var _NonLinearReading = require("./NonLinearReading");
562
+ var _NonLinearReading = require("./NonLinearReading");
563
+ var _DelimitedList = require("./DelimitedList");
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.useResizeObserver = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
8
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
10
  var _react = require("react");
10
11
  /**
@@ -15,6 +16,7 @@ var _react = require("react");
15
16
  */
16
17
 
17
18
  var useResizeObserver = exports.useResizeObserver = function useResizeObserver(ref, callback) {
19
+ var deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
18
20
  var _useState = (0, _react.useState)(-1),
19
21
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
20
22
  width = _useState2[0],
@@ -46,7 +48,8 @@ var useResizeObserver = exports.useResizeObserver = function useResizeObserver(r
46
48
  return;
47
49
  }
48
50
  getInitialSize();
49
- }, [width, height, ref]);
51
+ // eslint-disable-next-line react-hooks/exhaustive-deps
52
+ }, [width, height, ref].concat((0, _toConsumableArray2.default)(deps)));
50
53
  (0, _react.useLayoutEffect)(function () {
51
54
  if (!(ref !== null && ref !== void 0 && ref.current)) {
52
55
  return;
@@ -76,7 +79,7 @@ var useResizeObserver = exports.useResizeObserver = function useResizeObserver(r
76
79
  observer = null;
77
80
  };
78
81
  // eslint-disable-next-line react-hooks/exhaustive-deps
79
- }, [ref.current]);
82
+ }, [ref].concat((0, _toConsumableArray2.default)(deps)));
80
83
  return {
81
84
  width: width,
82
85
  height: height
@@ -74,6 +74,7 @@ var defaults = {
74
74
  EditTearsheetNarrow: false,
75
75
  EditFullPage: false,
76
76
  EditUpdateCards: false,
77
+ DelimitedList: false,
77
78
  /* new component flags here - comment used by generate CLI */
78
79
 
79
80
  // Novice to pro components not yet reviewed and released:
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": "2.20.0",
4
+ "version": "2.22.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -24,7 +24,8 @@
24
24
  "es",
25
25
  "lib",
26
26
  "scss",
27
- "flags.js"
27
+ "flags.js",
28
+ "telemetry.yml"
28
29
  ],
29
30
  "keywords": [
30
31
  "carbon",
@@ -48,7 +49,7 @@
48
49
  "ci-check": "node scripts/import",
49
50
  "clean": "rimraf es lib css scss",
50
51
  "generate": "cross-env FORCE_COLOR=1 node scripts/generate",
51
- "postinstall": "carbon-telemetry collect --install",
52
+ "postinstall": "ibmtelemetry --config=telemetry.yml",
52
53
  "test": "jest --colors",
53
54
  "//upgrade-dependencies": "# don't upgrade carbon (done globally), react/react-dom (explicit range peer dependency), chalk (issue #1596)",
54
55
  "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor)/'"
@@ -75,11 +76,11 @@
75
76
  },
76
77
  "dependencies": {
77
78
  "@babel/runtime": "^7.22.10",
78
- "@carbon/ibm-products-styles": "^2.20.0",
79
- "@carbon/telemetry": "^0.1.0",
79
+ "@carbon/ibm-products-styles": "^2.21.0",
80
80
  "@dnd-kit/core": "^6.0.8",
81
81
  "@dnd-kit/sortable": "^7.0.2",
82
82
  "@dnd-kit/utilities": "^3.2.1",
83
+ "@ibm/telemetry-js": "^1.2.0",
83
84
  "framer-motion": "^6.5.1 < 7",
84
85
  "immutability-helper": "^3.1.1",
85
86
  "lodash": "^4.17.21",
@@ -91,11 +92,11 @@
91
92
  "@carbon/grid": "^11.21.1",
92
93
  "@carbon/layout": "^11.20.1",
93
94
  "@carbon/motion": "^11.16.1",
94
- "@carbon/react": "^1.46.1",
95
- "@carbon/themes": "^11.28.0",
95
+ "@carbon/react": "^1.48.1",
96
+ "@carbon/themes": "^11.29.1",
96
97
  "@carbon/type": "^11.25.1",
97
98
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
98
99
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
99
100
  },
100
- "gitHead": "d97c3273a61bd1ee38cc29be2b7dd82609fd1c2b"
101
+ "gitHead": "cc3061b3debb02bbbe32a8981d1ff39e9bca0f4a"
101
102
  }
@@ -80,3 +80,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
80
80
  ) {
81
81
  min-width: auto;
82
82
  }
83
+
84
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--pagination {
85
+ background-color: $layer-02;
86
+ }
@@ -45,6 +45,7 @@
45
45
  position: sticky;
46
46
  z-index: 1;
47
47
  left: 0;
48
+ background-color: $layer-01;
48
49
  }
49
50
  }
50
51
 
@@ -68,6 +69,7 @@
68
69
  &.#{$block-class}__checkbox-cell-sticky-left {
69
70
  position: sticky;
70
71
  left: 0;
72
+ background-color: $layer-01;
71
73
  }
72
74
  }
73
75
 
@@ -183,6 +185,12 @@
183
185
  overflow-x: auto;
184
186
  }
185
187
 
188
+ .#{$block-class}-filter-panel
189
+ + .#{$block-class}__table-container-inner
190
+ .#{c4p-settings.$carbon-prefix}--data-table-content {
191
+ height: fit-content;
192
+ }
193
+
186
194
  table.#{$block-class}__table-simple {
187
195
  display: flex;
188
196
  overflow: auto;
@@ -346,7 +354,7 @@
346
354
  }
347
355
 
348
356
  .#{$block-class}__resizableColumn:hover {
349
- background-color: $background-selected-hover;
357
+ background-color: $layer-selected-hover;
350
358
 
351
359
  .#{$block-class}__resizer {
352
360
  border-right: $spacing-01 solid $border-strong-01;
@@ -17,6 +17,7 @@
17
17
  display: flex;
18
18
  align-items: center;
19
19
  border-left: 1px solid $layer-active-02;
20
+ background-color: $layer-01;
20
21
  }
21
22
 
22
23
  .#{variables.$block-class}__right-sticky-column-header {
@@ -32,6 +33,7 @@
32
33
  display: flex;
33
34
  align-items: center;
34
35
  border-right: 1px solid $layer-active-02;
36
+ background-color: $layer-01;
35
37
  }
36
38
 
37
39
  .#{variables.$block-class}__left-sticky-column-header {
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2024, 2024
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ // Import any Carbon component styles used from DelimitedList in this file.
9
+ // DelimitedList uses the following Carbon components:
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright IBM Corp. 2024, 2024
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ // Standard imports.
9
+ @use '../../global/styles/project-settings' as c4p-settings;
10
+ @use '../../global/styles/mixins';
11
+
12
+ // Other Carbon settings if needed
13
+ // TODO: @use '@carbon/styles/scss/grid';
14
+ // or
15
+ // TODO: @use '@carbon/react/scss/grid';
16
+
17
+ // DelimitedList uses the following Carbon for IBM Products components:
18
+ // TODO: @use(s) of IBM Products component styles used by DelimitedList
19
+
20
+ // The block part of our conventional BEM class names (blockClass__E--M).
21
+ $block-class: #{c4p-settings.$pkg-prefix}--delimited-list;
22
+
23
+ .#{$block-class}-truncate {
24
+ overflow: hidden;
25
+ text-overflow: ellipsis;
26
+ white-space: nowrap;
27
+ }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2024, 2024
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use './carbon-imports';
9
+ @use './delimited-list';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2024, 2024
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use './delimited-list';
@@ -32,3 +32,9 @@ $block-class: #{c4p-settings.$pkg-prefix}--saving;
32
32
  .#{$block-class}__buttons {
33
33
  display: flex;
34
34
  }
35
+
36
+ .#{$block-class}__buttons
37
+ .#{c4p-settings.$carbon-prefix}--btn
38
+ .#{c4p-settings.$carbon-prefix}--inline-loading {
39
+ min-block-size: auto;
40
+ }
@@ -5,10 +5,14 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ /* One or two values
9
+ * - width (first value)
10
+ * - min-width (optional second value)
11
+ */
8
12
  $side-panel-sizes: (
9
13
  xs: 16rem,
10
14
  sm: 20rem,
11
15
  md: 30rem,
12
16
  lg: 40rem,
13
- 2xl: 75%,
17
+ 2xl: 40rem 75%,
14
18
  );