@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.
- package/css/index-full-carbon.css +19 -4
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +11 -2
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +11 -2
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +12 -3
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionSet/ActionSet.js +3 -4
- package/es/components/AddSelect/AddSelectBody.js +2 -2
- package/es/components/AddSelect/AddSelectRow.js +2 -2
- package/es/components/Card/Card.js +1 -2
- package/es/components/Card/CardHeader.js +1 -2
- package/es/components/CreateFullPage/CreateFullPageStep.js +1 -2
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -7
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
- package/es/components/Datagrid/Datagrid/DatagridRow.js +9 -10
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -8
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
- package/es/components/Datagrid/useActionsColumn.js +1 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/es/components/Datagrid/useFiltering.js +1 -0
- package/es/components/Datagrid/useNestedRowExpander.js +1 -2
- package/es/components/Datagrid/useNestedRows.js +49 -33
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useSelectRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -2
- package/es/components/Datagrid/useStickyColumn.js +3 -4
- package/es/components/Datagrid/utils/filterPropsForTesting.js +149 -0
- package/es/components/EditInPlace/EditInPlace.js +1 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
- package/es/components/FilterSummary/FilterSummary.js +15 -12
- package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
- package/es/components/PageHeader/PageHeader.js +9 -11
- package/es/components/Saving/Saving.js +6 -6
- package/es/components/SidePanel/SidePanel.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +1 -2
- package/es/components/Tearsheet/Tearsheet.js +5 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
- package/es/components/Tearsheet/TearsheetShell.js +9 -9
- package/es/components/WebTerminal/WebTerminal.js +1 -2
- package/lib/components/ActionSet/ActionSet.js +3 -4
- package/lib/components/AddSelect/AddSelectBody.js +2 -2
- package/lib/components/AddSelect/AddSelectRow.js +2 -2
- package/lib/components/Card/Card.js +1 -2
- package/lib/components/Card/CardHeader.js +1 -2
- package/lib/components/CreateFullPage/CreateFullPageStep.js +1 -2
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -7
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +9 -10
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -8
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +22 -12
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
- package/lib/components/Datagrid/useActionsColumn.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -0
- package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
- package/lib/components/Datagrid/useNestedRows.js +49 -33
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useSelectRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +1 -2
- package/lib/components/Datagrid/useStickyColumn.js +3 -4
- package/lib/components/Datagrid/utils/filterPropsForTesting.js +156 -0
- package/lib/components/EditInPlace/EditInPlace.js +1 -2
- package/lib/components/EditTearsheet/EditTearsheetForm.js +1 -2
- package/lib/components/FilterSummary/FilterSummary.js +15 -12
- package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -3
- package/lib/components/PageHeader/PageHeader.js +9 -11
- package/lib/components/Saving/Saving.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +1 -2
- package/lib/components/Tearsheet/Tearsheet.js +5 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
- package/lib/components/Tearsheet/TearsheetShell.js +9 -9
- package/lib/components/WebTerminal/WebTerminal.js +1 -2
- package/package.json +4 -4
- package/scss/components/Saving/_saving.scss +6 -0
- package/scss/components/SidePanel/_side-panel.scss +5 -1
- 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
|
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 = (
|
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
|
-
},
|
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
|
-
}),
|
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
|
-
}),
|
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
|
-
})
|
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
|
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), (
|
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
|
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"), (
|
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"), (
|
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"), (
|
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"), (
|
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, (
|
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),
|
201
|
-
style: (
|
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"), (
|
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)((
|
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)((
|
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, (
|
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.
|
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.
|
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.
|
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": "
|
100
|
+
"gitHead": "752821d664db5561979e60b06ad4d70ab644a250"
|
101
101
|
}
|
@@ -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
|
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
|
-
|
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
|