@carbon/ibm-products 2.54.0-canary.60 → 2.54.0-canary.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +11 -7
- 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 -7
- 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 -7
- 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 +11 -7
- 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/SidePanel/SidePanel.d.ts +6 -1
- package/es/components/SidePanel/SidePanel.js +27 -14
- package/lib/components/SidePanel/SidePanel.d.ts +6 -1
- package/lib/components/SidePanel/SidePanel.js +27 -14
- package/package.json +4 -4
- package/scss/components/SidePanel/_side-panel.scss +13 -6
- package/telemetry.yml +3 -0
@@ -24,7 +24,7 @@ import usePrefersReducedMotion from '../../global/js/hooks/usePrefersReducedMoti
|
|
24
24
|
import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js';
|
25
25
|
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
26
26
|
|
27
|
-
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
27
|
+
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "decorator", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
28
28
|
_excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
|
29
29
|
var blockClass = "".concat(pkg.prefix, "--side-panel");
|
30
30
|
var componentName = 'SidePanel';
|
@@ -57,6 +57,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
57
57
|
condensedActions = _ref.condensedActions,
|
58
58
|
_ref$currentStep = _ref.currentStep,
|
59
59
|
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
60
|
+
decorator = _ref.decorator,
|
60
61
|
_ref$id = _ref.id,
|
61
62
|
id = _ref$id === void 0 ? blockClass : _ref$id,
|
62
63
|
includeOverlay = _ref.includeOverlay,
|
@@ -335,7 +336,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
335
336
|
}
|
336
337
|
}, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
|
337
338
|
var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
|
338
|
-
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-ai-label"),
|
339
|
+
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-decorator"), decorator), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--has-ai-label"), aiLabel), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
|
339
340
|
var renderTitle = function renderTitle() {
|
340
341
|
return /*#__PURE__*/React__default.createElement("div", {
|
341
342
|
className: cx("".concat(blockClass, "__title"), _defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
|
@@ -351,23 +352,29 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
351
352
|
}, title));
|
352
353
|
};
|
353
354
|
var renderHeader = function renderHeader() {
|
354
|
-
var _slug$type, _aiLabel$type;
|
355
|
-
var
|
356
|
-
var
|
355
|
+
var _slug$type, _aiLabel$type, _decorator$type;
|
356
|
+
var closeSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
|
357
|
+
var normalizedDecorator;
|
357
358
|
/**
|
358
359
|
* slug is deprecated
|
359
360
|
* can remove this condition in future release
|
360
361
|
*/
|
361
|
-
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === '
|
362
|
-
|
362
|
+
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'AILabel') {
|
363
|
+
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(slug, {
|
363
364
|
// slug size is sm unless actions and size > md
|
364
|
-
size:
|
365
|
+
size: closeSize
|
365
366
|
});
|
366
367
|
}
|
367
368
|
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
|
368
|
-
|
369
|
+
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(aiLabel, {
|
369
370
|
// aiLabel size is sm unless actions and size > md
|
370
|
-
size:
|
371
|
+
size: closeSize
|
372
|
+
});
|
373
|
+
}
|
374
|
+
if ((decorator === null || decorator === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) === 'AILabel') {
|
375
|
+
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(decorator, {
|
376
|
+
// decorator size is sm unless actions and size > md
|
377
|
+
size: closeSize
|
371
378
|
});
|
372
379
|
}
|
373
380
|
return /*#__PURE__*/React__default.createElement("div", {
|
@@ -375,7 +382,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
375
382
|
ref: headerRef
|
376
383
|
}, currentStep > 0 && /*#__PURE__*/React__default.createElement(Button, {
|
377
384
|
kind: "ghost",
|
378
|
-
size:
|
385
|
+
size: closeSize,
|
379
386
|
disabled: false,
|
380
387
|
renderIcon: function renderIcon(props) {
|
381
388
|
return /*#__PURE__*/React__default.createElement(ArrowLeft, _extends({
|
@@ -389,8 +396,8 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
389
396
|
className: "".concat(blockClass, "__label-text"),
|
390
397
|
ref: labelTextRef
|
391
398
|
}, labelText), title && title.length && renderTitle(), /*#__PURE__*/React__default.createElement("div", {
|
392
|
-
className: "".concat(blockClass, "
|
393
|
-
},
|
399
|
+
className: "".concat(blockClass, "__decorator-and-close")
|
400
|
+
}, normalizedDecorator, /*#__PURE__*/React__default.createElement(IconButton, {
|
394
401
|
className: "".concat(blockClass, "__close-button"),
|
395
402
|
label: closeIconDescription,
|
396
403
|
onClick: onRequestClose,
|
@@ -493,7 +500,13 @@ var deprecatedProps = {
|
|
493
500
|
* **deprecated**
|
494
501
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
495
502
|
*/
|
496
|
-
slug: PropTypes.node
|
503
|
+
slug: PropTypes.node,
|
504
|
+
/**
|
505
|
+
* **deprecated**
|
506
|
+
* Please use the `decorator` instead
|
507
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
508
|
+
*/
|
509
|
+
aiLabel: PropTypes.node
|
497
510
|
};
|
498
511
|
SidePanel.propTypes = _objectSpread2({
|
499
512
|
/**
|
@@ -110,14 +110,19 @@ type SidePanelBaseProps = {
|
|
110
110
|
*/
|
111
111
|
slideIn?: boolean;
|
112
112
|
/**
|
113
|
-
* @deprecated please use the `
|
113
|
+
* @deprecated please use the `decorator` instead
|
114
114
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
115
115
|
*/
|
116
116
|
slug?: ReactNode;
|
117
117
|
/**
|
118
|
+
* @deprecated please use the `decorator` instead
|
118
119
|
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
119
120
|
*/
|
120
121
|
aiLabel?: ReactNode;
|
122
|
+
/**
|
123
|
+
* Provide a `decorator` component to be rendered inside the `SidePanel` component
|
124
|
+
*/
|
125
|
+
decorator?: ReactNode;
|
121
126
|
/**
|
122
127
|
* Sets the subtitle text
|
123
128
|
*/
|
@@ -26,7 +26,7 @@ var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMo
|
|
26
26
|
var useFocus = require('../../global/js/hooks/useFocus.js');
|
27
27
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
28
28
|
|
29
|
-
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
29
|
+
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "decorator", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
30
30
|
_excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
|
31
31
|
var blockClass = "".concat(settings.pkg.prefix, "--side-panel");
|
32
32
|
var componentName = 'SidePanel';
|
@@ -59,6 +59,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
59
59
|
condensedActions = _ref.condensedActions,
|
60
60
|
_ref$currentStep = _ref.currentStep,
|
61
61
|
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
62
|
+
decorator = _ref.decorator,
|
62
63
|
_ref$id = _ref.id,
|
63
64
|
id = _ref$id === void 0 ? blockClass : _ref$id,
|
64
65
|
includeOverlay = _ref.includeOverlay,
|
@@ -337,7 +338,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
337
338
|
}
|
338
339
|
}, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
|
339
340
|
var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
|
340
|
-
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-ai-label"),
|
341
|
+
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-decorator"), decorator), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--has-ai-label"), aiLabel), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
|
341
342
|
var renderTitle = function renderTitle() {
|
342
343
|
return /*#__PURE__*/React.createElement("div", {
|
343
344
|
className: cx("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
|
@@ -353,23 +354,29 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
353
354
|
}, title));
|
354
355
|
};
|
355
356
|
var renderHeader = function renderHeader() {
|
356
|
-
var _slug$type, _aiLabel$type;
|
357
|
-
var
|
358
|
-
var
|
357
|
+
var _slug$type, _aiLabel$type, _decorator$type;
|
358
|
+
var closeSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
|
359
|
+
var normalizedDecorator;
|
359
360
|
/**
|
360
361
|
* slug is deprecated
|
361
362
|
* can remove this condition in future release
|
362
363
|
*/
|
363
|
-
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === '
|
364
|
-
|
364
|
+
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'AILabel') {
|
365
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(slug, {
|
365
366
|
// slug size is sm unless actions and size > md
|
366
|
-
size:
|
367
|
+
size: closeSize
|
367
368
|
});
|
368
369
|
}
|
369
370
|
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
|
370
|
-
|
371
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(aiLabel, {
|
371
372
|
// aiLabel size is sm unless actions and size > md
|
372
|
-
size:
|
373
|
+
size: closeSize
|
374
|
+
});
|
375
|
+
}
|
376
|
+
if ((decorator === null || decorator === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) === 'AILabel') {
|
377
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(decorator, {
|
378
|
+
// decorator size is sm unless actions and size > md
|
379
|
+
size: closeSize
|
373
380
|
});
|
374
381
|
}
|
375
382
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -377,7 +384,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
377
384
|
ref: headerRef
|
378
385
|
}, currentStep > 0 && /*#__PURE__*/React.createElement(react.Button, {
|
379
386
|
kind: "ghost",
|
380
|
-
size:
|
387
|
+
size: closeSize,
|
381
388
|
disabled: false,
|
382
389
|
renderIcon: function renderIcon(props) {
|
383
390
|
return /*#__PURE__*/React.createElement(icons.ArrowLeft, _rollupPluginBabelHelpers.extends({
|
@@ -391,8 +398,8 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
391
398
|
className: "".concat(blockClass, "__label-text"),
|
392
399
|
ref: labelTextRef
|
393
400
|
}, labelText), title && title.length && renderTitle(), /*#__PURE__*/React.createElement("div", {
|
394
|
-
className: "".concat(blockClass, "
|
395
|
-
},
|
401
|
+
className: "".concat(blockClass, "__decorator-and-close")
|
402
|
+
}, normalizedDecorator, /*#__PURE__*/React.createElement(react.IconButton, {
|
396
403
|
className: "".concat(blockClass, "__close-button"),
|
397
404
|
label: closeIconDescription,
|
398
405
|
onClick: onRequestClose,
|
@@ -495,7 +502,13 @@ var deprecatedProps = {
|
|
495
502
|
* **deprecated**
|
496
503
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
497
504
|
*/
|
498
|
-
slug: index.default.node
|
505
|
+
slug: index.default.node,
|
506
|
+
/**
|
507
|
+
* **deprecated**
|
508
|
+
* Please use the `decorator` instead
|
509
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
510
|
+
*/
|
511
|
+
aiLabel: index.default.node
|
499
512
|
};
|
500
513
|
exports.SidePanel.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
501
514
|
/**
|
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.54.0-canary.
|
4
|
+
"version": "2.54.0-canary.64+336a5b0ad",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"fs-extra": "^11.2.0",
|
82
82
|
"glob": "^10.3.10",
|
83
83
|
"jest": "^29.7.0",
|
84
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
84
|
+
"jest-config-ibm-cloud-cognitive": "^1.15.0-rc.0",
|
85
85
|
"jest-environment-jsdom": "^29.7.0",
|
86
86
|
"namor": "^1.1.2",
|
87
87
|
"npm-check-updates": "^16.14.12",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.24.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.50.0-canary.
|
99
|
+
"@carbon/ibm-products-styles": "^2.50.0-canary.64+336a5b0ad",
|
100
100
|
"@carbon/telemetry": "^0.1.0",
|
101
101
|
"@dnd-kit/core": "^6.0.8",
|
102
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "336a5b0ad06051bd52080e5d7cd610feb56604c8"
|
124
124
|
}
|
@@ -112,7 +112,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
112
112
|
border-right: 1px solid $border-subtle-02;
|
113
113
|
}
|
114
114
|
&.#{$block-class}.#{$block-class}--has-slug,
|
115
|
-
&.#{$block-class}.#{$block-class}--has-ai-label
|
115
|
+
&.#{$block-class}.#{$block-class}--has-ai-label,
|
116
|
+
&.#{$block-class}.#{$block-class}--has-decorator {
|
116
117
|
border-color: transparent;
|
117
118
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
118
119
|
0 4px 10px 2px $ai-drop-shadow;
|
@@ -199,14 +200,16 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
199
200
|
&.#{$block-class}:has(.#{$block-class}__action-toolbar),
|
200
201
|
&.#{$block-class}--has-action-toolbar,
|
201
202
|
&.#{$block-class}--has-slug,
|
202
|
-
&.#{$block-class}--has-ai-label
|
203
|
+
&.#{$block-class}--has-ai-label,
|
204
|
+
&.#{$block-class}--has-decorator {
|
203
205
|
--#{$block-class}--title-padding-right: #{$spacing-10};
|
204
206
|
}
|
205
207
|
|
206
208
|
&.#{$block-class}:has(.#{$block-class}__action-toolbar),
|
207
209
|
&.#{$block-class}--has-action-toolbar {
|
208
210
|
&.#{$block-class}--has-slug,
|
209
|
-
&.#{$block-class}--has-ai-label
|
211
|
+
&.#{$block-class}--has-ai-label,
|
212
|
+
&.#{$block-class}--has-decorator {
|
210
213
|
--#{$block-class}--title-padding-right: #{$spacing-11};
|
211
214
|
}
|
212
215
|
}
|
@@ -313,7 +316,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
313
316
|
}
|
314
317
|
|
315
318
|
&.#{$block-class}--has-slug .#{$block-class}--scrolls,
|
316
|
-
&.#{$block-class}--has-ai-label .#{$block-class}--scrolls
|
319
|
+
&.#{$block-class}--has-ai-label .#{$block-class}--scrolls,
|
320
|
+
&.#{$block-class}--has-decorator .#{$block-class}--scrolls {
|
317
321
|
@include utilities.ai-popover-gradient('default', 0, 'layer');
|
318
322
|
|
319
323
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
@@ -368,7 +372,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
368
372
|
}
|
369
373
|
|
370
374
|
.#{$block-class}__slug-and-close,
|
371
|
-
.#{$block-class}__ai-label-and-close
|
375
|
+
.#{$block-class}__ai-label-and-close,
|
376
|
+
.#{$block-class}__decorator-and-close {
|
372
377
|
position: absolute;
|
373
378
|
z-index: 10; /* must be higher than title container border bottom */
|
374
379
|
top: 0;
|
@@ -470,7 +475,9 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
470
475
|
inset: 0;
|
471
476
|
}
|
472
477
|
|
478
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
473
479
|
.#{$block-class}--has-slug + .#{$block-class}__overlay,
|
474
|
-
.#{$block-class}--has-ai-label + .#{$block-class}__overlay
|
480
|
+
.#{$block-class}--has-ai-label + .#{$block-class}__overlay,
|
481
|
+
.#{$block-class}--has-decorator + .#{$block-class}__overlay {
|
475
482
|
background-color: $ai-overlay;
|
476
483
|
}
|
package/telemetry.yml
CHANGED
@@ -72,6 +72,7 @@ collect:
|
|
72
72
|
- DatagridBatchActions
|
73
73
|
- DatagridPagination
|
74
74
|
- datagridState
|
75
|
+
- decorator
|
75
76
|
- defaultColumn
|
76
77
|
- defaultEmptyRowCount
|
77
78
|
- description
|
@@ -284,6 +285,7 @@ collect:
|
|
284
285
|
- reactTableFiltersState
|
285
286
|
- readOnlyTable
|
286
287
|
- renderIcon
|
288
|
+
- renderMedia
|
287
289
|
- renderRowHeader
|
288
290
|
- renderRowHeaderDirection
|
289
291
|
- resetToDefaultLabel
|
@@ -517,6 +519,7 @@ collect:
|
|
517
519
|
- toggleLabel
|
518
520
|
- toggleLabelAlign
|
519
521
|
# Coachmark
|
522
|
+
- isOpenByDefault
|
520
523
|
- overlayClassName
|
521
524
|
- overlayKind
|
522
525
|
- overlayRef
|