@carbon/ibm-products 2.20.0 → 2.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/css/index-full-carbon.css +19 -4
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +11 -2
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +11 -2
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +12 -3
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionSet/ActionSet.js +3 -4
  18. package/es/components/AddSelect/AddSelectBody.js +2 -2
  19. package/es/components/AddSelect/AddSelectRow.js +2 -2
  20. package/es/components/Card/Card.js +1 -2
  21. package/es/components/Card/CardHeader.js +1 -2
  22. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -2
  23. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  24. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  25. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  26. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  27. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -7
  28. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  29. package/es/components/Datagrid/Datagrid/DatagridRow.js +9 -10
  30. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  31. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -8
  32. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
  33. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  34. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  35. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  36. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  37. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  38. package/es/components/Datagrid/useActionsColumn.js +1 -2
  39. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  40. package/es/components/Datagrid/useFiltering.js +1 -0
  41. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  42. package/es/components/Datagrid/useNestedRows.js +49 -33
  43. package/es/components/Datagrid/useOnRowClick.js +1 -1
  44. package/es/components/Datagrid/useSelectRows.js +1 -2
  45. package/es/components/Datagrid/useSortableColumns.js +1 -2
  46. package/es/components/Datagrid/useStickyColumn.js +3 -4
  47. package/es/components/Datagrid/utils/filterPropsForTesting.js +149 -0
  48. package/es/components/EditInPlace/EditInPlace.js +1 -2
  49. package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
  50. package/es/components/FilterSummary/FilterSummary.js +15 -12
  51. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
  52. package/es/components/PageHeader/PageHeader.js +9 -11
  53. package/es/components/Saving/Saving.js +6 -6
  54. package/es/components/SidePanel/SidePanel.js +6 -6
  55. package/es/components/TagSet/TagSetOverflow.js +1 -2
  56. package/es/components/Tearsheet/Tearsheet.js +5 -0
  57. package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
  58. package/es/components/Tearsheet/TearsheetShell.js +9 -9
  59. package/es/components/WebTerminal/WebTerminal.js +1 -2
  60. package/lib/components/ActionSet/ActionSet.js +3 -4
  61. package/lib/components/AddSelect/AddSelectBody.js +2 -2
  62. package/lib/components/AddSelect/AddSelectRow.js +2 -2
  63. package/lib/components/Card/Card.js +1 -2
  64. package/lib/components/Card/CardHeader.js +1 -2
  65. package/lib/components/CreateFullPage/CreateFullPageStep.js +1 -2
  66. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  67. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  68. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  69. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  70. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -7
  71. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  72. package/lib/components/Datagrid/Datagrid/DatagridRow.js +9 -10
  73. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  74. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -8
  75. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
  76. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  77. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  78. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  79. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  80. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  81. package/lib/components/Datagrid/useActionsColumn.js +1 -2
  82. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  83. package/lib/components/Datagrid/useFiltering.js +1 -0
  84. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  85. package/lib/components/Datagrid/useNestedRows.js +49 -33
  86. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  87. package/lib/components/Datagrid/useSelectRows.js +1 -2
  88. package/lib/components/Datagrid/useSortableColumns.js +1 -2
  89. package/lib/components/Datagrid/useStickyColumn.js +3 -4
  90. package/lib/components/Datagrid/utils/filterPropsForTesting.js +156 -0
  91. package/lib/components/EditInPlace/EditInPlace.js +1 -2
  92. package/lib/components/EditTearsheet/EditTearsheetForm.js +1 -2
  93. package/lib/components/FilterSummary/FilterSummary.js +15 -12
  94. package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -3
  95. package/lib/components/PageHeader/PageHeader.js +9 -11
  96. package/lib/components/Saving/Saving.js +6 -6
  97. package/lib/components/SidePanel/SidePanel.js +6 -6
  98. package/lib/components/TagSet/TagSetOverflow.js +1 -2
  99. package/lib/components/Tearsheet/Tearsheet.js +5 -0
  100. package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
  101. package/lib/components/Tearsheet/TearsheetShell.js +9 -9
  102. package/lib/components/WebTerminal/WebTerminal.js +1 -2
  103. package/package.json +4 -4
  104. package/scss/components/Saving/_saving.scss +6 -0
  105. package/scss/components/SidePanel/_side-panel.scss +5 -1
  106. package/scss/components/TagSet/_tag-set.scss +4 -1
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
27
27
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
28
28
  var componentName = 'Saving';
29
29
  var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
30
- var _statusObj, _statusObj$status, _statusObj$status2, _statusObj$status3, _statusObj$status4;
30
+ var _statusObj$status, _statusObj$status2, _statusObj$status3, _statusObj$status4;
31
31
  var secondaryButtonText = _ref.secondaryButtonText,
32
32
  className = _ref.className,
33
33
  defaultIconDescription = _ref.defaultIconDescription,
@@ -43,7 +43,7 @@ var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
43
43
  successText = _ref.successText,
44
44
  type = _ref.type,
45
45
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
46
- var statusObj = (_statusObj = {
46
+ var statusObj = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
47
47
  default: {
48
48
  text: defaultText,
49
49
  iconDescription: defaultIconDescription,
@@ -53,7 +53,7 @@ var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
53
53
  }, props));
54
54
  }
55
55
  }
56
- }, (0, _defineProperty2.default)(_statusObj, 'in-progress', {
56
+ }, 'in-progress', {
57
57
  text: inProgressText,
58
58
  iconDescription: inProgressIconDescription,
59
59
  icon: function icon(props) {
@@ -61,7 +61,7 @@ var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
61
61
  size: 16
62
62
  }, props));
63
63
  }
64
- }), (0, _defineProperty2.default)(_statusObj, "success", {
64
+ }), "success", {
65
65
  text: successText,
66
66
  iconDescription: successIconDescription,
67
67
  icon: function icon(props) {
@@ -69,7 +69,7 @@ var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
69
69
  size: 16
70
70
  }, props));
71
71
  }
72
- }), (0, _defineProperty2.default)(_statusObj, "fail", {
72
+ }), "fail", {
73
73
  text: failText,
74
74
  iconDescription: failIconDescription,
75
75
  icon: function icon(props) {
@@ -77,7 +77,7 @@ var Saving = exports.Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
77
77
  size: 16
78
78
  }, props));
79
79
  }
80
- }), _statusObj);
80
+ });
81
81
  var blockClass = "".concat(_settings.pkg.prefix, "--saving");
82
82
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
83
83
  ref: ref,
@@ -61,7 +61,7 @@ var defaults = {
61
61
  * Side panels keep users in-context of a page while performing tasks like navigating, editing, viewing details, or configuring something new.
62
62
  */
63
63
  var SidePanel = exports.SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
64
- var _window, _ref5, _cx4;
64
+ var _window;
65
65
  var actionToolbarButtons = _ref.actionToolbarButtons,
66
66
  actions = _ref.actions,
67
67
  _ref$animateTitle = _ref.animateTitle,
@@ -387,9 +387,9 @@ var SidePanel = exports.SidePanel = /*#__PURE__*/_react.default.forwardRef(funct
387
387
  }
388
388
  };
389
389
  var primaryActionContainerClassNames = (0, _classnames.default)(["".concat(blockClass, "__actions-container"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__actions-container-condensed"), condensedActions)]);
390
- var mainPanelClassNames = (0, _classnames.default)([blockClass, className, "".concat(blockClass, "__container"), "".concat(blockClass, "__container--").concat(size), (_ref5 = {}, (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container-right-placement"), placement === 'right'), (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container-left-placement"), placement === 'left'), (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container-with-action-toolbar"), actionToolbarButtons && actionToolbarButtons.length), (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container-without-overlay"), !includeOverlay && !slideIn), (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container-is-animating"), !animationComplete || !open), (0, _defineProperty2.default)(_ref5, "".concat(blockClass, "__container--has-slug"), slug), _ref5)]);
390
+ var mainPanelClassNames = (0, _classnames.default)([blockClass, className, "".concat(blockClass, "__container"), "".concat(blockClass, "__container--").concat(size), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__container-right-placement"), placement === 'right'), "".concat(blockClass, "__container-left-placement"), placement === 'left'), "".concat(blockClass, "__container-with-action-toolbar"), actionToolbarButtons && actionToolbarButtons.length), "".concat(blockClass, "__container-without-overlay"), !includeOverlay && !slideIn), "".concat(blockClass, "__container-is-animating"), !animationComplete || !open), "".concat(blockClass, "__container--has-slug"), slug)]);
391
391
  var renderHeader = function renderHeader() {
392
- var _slug$type, _cx, _cx2;
392
+ var _slug$type;
393
393
  var slugCloseSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
394
394
  var normalizedSlug;
395
395
  if (slug && (slug === null || slug === void 0 || (_slug$type = slug.type) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'Slug') {
@@ -399,7 +399,7 @@ var SidePanel = exports.SidePanel = /*#__PURE__*/_react.default.forwardRef(funct
399
399
  });
400
400
  }
401
401
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
402
- className: (0, _classnames.default)("".concat(blockClass, "__title-container"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__on-detail-step"), currentStep > 0), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__on-detail-step-without-title"), currentStep > 0 && !title), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__title-container--no-title-animation"), !animateTitle), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__title-container-is-animating"), !animationComplete || !open), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__title-container-without-title"), !title), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__title-container--reduced-motion"), reducedMotion.matches), _cx))
402
+ className: (0, _classnames.default)("".concat(blockClass, "__title-container"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__on-detail-step"), currentStep > 0), "".concat(blockClass, "__on-detail-step-without-title"), currentStep > 0 && !title), "".concat(blockClass, "__title-container--no-title-animation"), !animateTitle), "".concat(blockClass, "__title-container-is-animating"), !animationComplete || !open), "".concat(blockClass, "__title-container-without-title"), !title), "".concat(blockClass, "__title-container--reduced-motion"), reducedMotion.matches))
403
403
  }, currentStep > 0 && /*#__PURE__*/_react.default.createElement(_react2.Button, {
404
404
  "aria-label": navigationBackIconDescription,
405
405
  kind: "ghost",
@@ -431,7 +431,7 @@ var SidePanel = exports.SidePanel = /*#__PURE__*/_react.default.forwardRef(funct
431
431
  onClick: onRequestClose,
432
432
  ref: sidePanelCloseRef
433
433
  })), subtitle && /*#__PURE__*/_react.default.createElement("p", {
434
- className: (0, _classnames.default)("".concat(blockClass, "__subtitle-text"), (_cx2 = {}, (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__subtitle-text-no-animation"), !animateTitle), (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__subtitle-text-no-animation-no-action-toolbar"), !animateTitle && (!actionToolbarButtons || !actionToolbarButtons.length)), (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__subtitle-text-is-animating"), !animationComplete && animateTitle), (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__subtitle-without-title"), !title), _cx2))
434
+ className: (0, _classnames.default)("".concat(blockClass, "__subtitle-text"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__subtitle-text-no-animation"), !animateTitle), "".concat(blockClass, "__subtitle-text-no-animation-no-action-toolbar"), !animateTitle && (!actionToolbarButtons || !actionToolbarButtons.length)), "".concat(blockClass, "__subtitle-text-is-animating"), !animationComplete && animateTitle), "".concat(blockClass, "__subtitle-without-title"), !title))
435
435
  }, subtitle), actionToolbarButtons && actionToolbarButtons.length && /*#__PURE__*/_react.default.createElement("div", {
436
436
  className: (0, _classnames.default)("".concat(blockClass, "__action-toolbar"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__action-toolbar-no-animation"), !animateTitle))
437
437
  }, actionToolbarButtons.map(function (_ref6) {
@@ -496,7 +496,7 @@ var SidePanel = exports.SidePanel = /*#__PURE__*/_react.default.forwardRef(funct
496
496
  className: "".concat(blockClass, "__visually-hidden")
497
497
  }, "Focus sentinel"), !animateTitle && renderHeader(), /*#__PURE__*/_react.default.createElement("div", {
498
498
  ref: sidePanelInnerRef,
499
- className: (0, _classnames.default)("".concat(blockClass, "__inner-content"), (_cx4 = {}, (0, _defineProperty2.default)(_cx4, "".concat(blockClass, "__static-inner-content"), !animateTitle), (0, _defineProperty2.default)(_cx4, "".concat(blockClass, "__static-inner-content-no-actions"), !animateTitle && !(actions !== null && actions !== void 0 && actions.length)), (0, _defineProperty2.default)(_cx4, "".concat(blockClass, "__inner-content-with-actions"), actions && actions.length), _cx4))
499
+ className: (0, _classnames.default)("".concat(blockClass, "__inner-content"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__static-inner-content"), !animateTitle), "".concat(blockClass, "__static-inner-content-no-actions"), !animateTitle && !(actions !== null && actions !== void 0 && actions.length)), "".concat(blockClass, "__inner-content-with-actions"), actions && actions.length))
500
500
  }, animateTitle && renderHeader(), /*#__PURE__*/_react.default.createElement("div", {
501
501
  className: "".concat(blockClass, "__body-content")
502
502
  }, children), /*#__PURE__*/_react.default.createElement(_ActionSet.ActionSet, {
@@ -90,7 +90,6 @@ var TagSetOverflow = exports.TagSetOverflow = /*#__PURE__*/_react.default.forwar
90
90
  }, overflowTags.filter(function (_, index) {
91
91
  return overflowTags.length > allTagsModalSearchThreshold ? index < allTagsModalSearchThreshold : index <= allTagsModalSearchThreshold;
92
92
  }).map(function (tag, index) {
93
- var _cx2;
94
93
  var tagProps = {};
95
94
  if (overflowType === 'tag') {
96
95
  tagProps.type = 'high-contrast';
@@ -99,7 +98,7 @@ var TagSetOverflow = exports.TagSetOverflow = /*#__PURE__*/_react.default.forwar
99
98
  tagProps.filter = false;
100
99
  }
101
100
  return /*#__PURE__*/_react.default.createElement("li", {
102
- className: (0, _classnames.default)("".concat(blockClass, "__tag-item"), (_cx2 = {}, (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__tag-item--default"), overflowType === 'default'), (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__tag-item--tag"), overflowType === 'tag'), _cx2)),
101
+ className: (0, _classnames.default)("".concat(blockClass, "__tag-item"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__tag-item--default"), overflowType === 'default'), "".concat(blockClass, "__tag-item--tag"), overflowType === 'tag')),
103
102
  key: index
104
103
  }, /*#__PURE__*/_react.default.cloneElement(tag, tagProps));
105
104
  })), overflowTags.length > allTagsModalSearchThreshold && /*#__PURE__*/_react.default.createElement(_react2.Link, {
@@ -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
  },
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.21.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@babel/runtime": "^7.22.10",
78
- "@carbon/ibm-products-styles": "^2.20.0",
78
+ "@carbon/ibm-products-styles": "^2.20.1",
79
79
  "@carbon/telemetry": "^0.1.0",
80
80
  "@dnd-kit/core": "^6.0.8",
81
81
  "@dnd-kit/sortable": "^7.0.2",
@@ -91,11 +91,11 @@
91
91
  "@carbon/grid": "^11.21.1",
92
92
  "@carbon/layout": "^11.20.1",
93
93
  "@carbon/motion": "^11.16.1",
94
- "@carbon/react": "^1.46.1",
94
+ "@carbon/react": "^1.47.0",
95
95
  "@carbon/themes": "^11.28.0",
96
96
  "@carbon/type": "^11.25.1",
97
97
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
98
98
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
99
99
  },
100
- "gitHead": "d97c3273a61bd1ee38cc29be2b7dd82609fd1c2b"
100
+ "gitHead": "752821d664db5561979e60b06ad4d70ab644a250"
101
101
  }
@@ -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
+ }
@@ -114,9 +114,13 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
114
114
  position: sticky;
115
115
  z-index: 4;
116
116
  top: 0;
117
- padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
117
+ padding: $spacing-05;
118
118
  background-color: $layer-01;
119
119
 
120
+ &:has(~ .#{$block-class}__subtitle-text) {
121
+ padding-bottom: $spacing-03;
122
+ }
123
+
120
124
  &:has(.#{$block-class}__navigation-back-button) {
121
125
  padding-top: $spacing-07;
122
126
  }
@@ -142,7 +142,10 @@ $block-class-modal: #{$_block-class}-modal;
142
142
  .#{$block-class-overflow}__tag-list {
143
143
  display: flex;
144
144
  flex-direction: column;
145
- margin-bottom: $spacing-03;
145
+ }
146
+
147
+ .#{$block-class-overflow}__show-all-tags-link {
148
+ margin-top: $spacing-03;
146
149
  }
147
150
 
148
151
  .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--tag