@carbon/ibm-products 2.43.2-canary.300 → 2.43.2-canary.302

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.
Files changed (70) hide show
  1. package/css/index-full-carbon.css +12 -12
  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 +6 -6
  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 +12 -12
  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 +6 -6
  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/APIKeyModal/APIKeyModal.js +1 -1
  18. package/es/components/AboutModal/AboutModal.js +1 -1
  19. package/es/components/Coachmark/Coachmark.js +2 -2
  20. package/es/components/Coachmark/utils/hooks.js +1 -1
  21. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
  22. package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
  23. package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
  24. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
  25. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  26. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
  27. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
  28. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
  29. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  30. package/es/components/Datagrid/useNestedRowExpander.js +2 -2
  31. package/es/components/Datagrid/useParentDimensions.js +5 -5
  32. package/es/components/Datagrid/useRowExpander.js +2 -2
  33. package/es/components/Datagrid/useStickyColumn.js +3 -3
  34. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  35. package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
  36. package/es/components/ScrollGradient/ScrollGradient.js +2 -2
  37. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  38. package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
  39. package/es/components/Tearsheet/TearsheetShell.js +18 -11
  40. package/es/components/Toolbar/Toolbar.js +1 -1
  41. package/es/components/TruncatedList/TruncatedList.js +1 -1
  42. package/es/global/js/hooks/usePreviousValue.js +1 -1
  43. package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
  44. package/lib/components/AboutModal/AboutModal.js +1 -1
  45. package/lib/components/Coachmark/Coachmark.js +2 -2
  46. package/lib/components/Coachmark/utils/hooks.js +1 -1
  47. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
  48. package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
  49. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
  50. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
  51. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  52. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
  53. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
  54. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
  55. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  56. package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
  57. package/lib/components/Datagrid/useParentDimensions.js +5 -5
  58. package/lib/components/Datagrid/useRowExpander.js +2 -2
  59. package/lib/components/Datagrid/useStickyColumn.js +3 -3
  60. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  61. package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
  62. package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
  63. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  64. package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
  65. package/lib/components/Tearsheet/TearsheetShell.js +18 -11
  66. package/lib/components/Toolbar/Toolbar.js +1 -1
  67. package/lib/components/TruncatedList/TruncatedList.js +1 -1
  68. package/lib/global/js/hooks/usePreviousValue.js +1 -1
  69. package/package.json +3 -3
  70. package/scss/components/Tearsheet/_tearsheet.scss +13 -3
@@ -18,8 +18,8 @@ var useFocusRowExpander = require('./useFocusRowExpander.js');
18
18
 
19
19
  var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
20
20
  var useRowExpander = function useRowExpander(hooks) {
21
- var tempState = React.useRef();
22
- var lastExpandedRowIndex = React.useRef();
21
+ var tempState = React.useRef(undefined);
22
+ var lastExpandedRowIndex = React.useRef(undefined);
23
23
  var useInstance = function useInstance(instance) {
24
24
  tempState.current = instance;
25
25
  };
@@ -20,9 +20,9 @@ var styleClassPrefix = "".concat(blockClass, "__right-sticky-column");
20
20
  var leftStickyStyleClassPrefix = "".concat(blockClass, "__left-sticky-column");
21
21
  var OFFSET_SCROLL_CLASS = "".concat(styleClassPrefix, "-offset-scroll");
22
22
  var useStickyColumn = function useStickyColumn(hooks) {
23
- var tableBodyRef = React.useRef();
24
- var stickyHeaderCellRef = React.useRef();
25
- var _useState = React.useState(),
23
+ var tableBodyRef = React.useRef(undefined);
24
+ var stickyHeaderCellRef = React.useRef(undefined);
25
+ var _useState = React.useState(undefined),
26
26
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
27
27
  windowSize = _useState2[0],
28
28
  setWindowSize = _useState2[1];
@@ -53,7 +53,7 @@ exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function
53
53
  setShowMenuButton = _useState4[1];
54
54
  // Destructure overflow menu properties.
55
55
  var other = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(overflowMenuProps), overflowMenuProps));
56
- var backupRef = React.useRef();
56
+ var backupRef = React.useRef(undefined);
57
57
  var localRef = ref || backupRef;
58
58
  var setHideButton = function setHideButton(activeElement) {
59
59
  if (!menuIsOpen && !localRef.current.contains(activeElement)) {
@@ -92,11 +92,11 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (_ref, ref)
92
92
  _ref$skipButtonLabel = _ref.skipButtonLabel,
93
93
  skipButtonLabel = _ref$skipButtonLabel === void 0 ? defaults.skipButtonLabel : _ref$skipButtonLabel,
94
94
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
95
- var backupRef = React.useRef();
95
+ var backupRef = React.useRef(undefined);
96
96
  var _forwardedRef = ref || backupRef;
97
- var scrollRef = React.useRef();
98
- var startButtonRef = React.useRef();
99
- var nextButtonRef = React.useRef();
97
+ var scrollRef = React.useRef(undefined);
98
+ var startButtonRef = React.useRef(undefined);
99
+ var nextButtonRef = React.useRef(undefined);
100
100
  var _useState = React.useState(null),
101
101
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
102
102
  isVisibleClass = _useState2[0],
@@ -52,8 +52,8 @@ exports.ScrollGradient = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52
52
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
53
53
  horizontalPosition = _useState4[0],
54
54
  setHorizontalPosition = _useState4[1];
55
- var scrollContainer = React.useRef();
56
- var contentChildrenContainer = React.useRef();
55
+ var scrollContainer = React.useRef(undefined);
56
+ var contentChildrenContainer = React.useRef(undefined);
57
57
  var updateScrollState = lodash.throttle(function () {
58
58
  var updatedVerticalVal = constants.getScrollState(scrollContainer.current, constants.ScrollDirection.Y);
59
59
  var updatedHorizontalVal = constants.getScrollState(scrollContainer.current, constants.ScrollDirection.X);
@@ -41,7 +41,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41
41
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
42
42
  jsonData = _useState2[0],
43
43
  setJsonData = _useState2[1];
44
- var animRef = React.useRef();
44
+ var animRef = React.useRef(undefined);
45
45
  var backupRef = React.useRef(null);
46
46
  var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
47
47
  var localRefValue = localRef.current;
@@ -10,6 +10,11 @@ import PropTypes from 'prop-types';
10
10
  import { type ButtonProps } from '@carbon/react';
11
11
  interface TearsheetShellProps extends PropsWithChildren {
12
12
  actions?: ButtonProps<'button'>[];
13
+ /**
14
+ * Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency,
15
+ * accountability, and explainability at the UI level.
16
+ */
17
+ aiLabel?: ReactNode;
13
18
  ariaLabel?: string;
14
19
  /**
15
20
  * An optional class or classes to be added to the outermost element.
@@ -96,15 +101,15 @@ interface TearsheetShellProps extends PropsWithChildren {
96
101
  * Specifies the width of the tearsheet, 'narrow' or 'wide'.
97
102
  */
98
103
  size: 'narrow' | 'wide';
99
- /**
100
- * **Experimental:** Provide a `Slug` component to be rendered inside the `Tearsheet` component
101
- */
102
- slug?: ReactNode;
103
104
  /**
104
105
  * The main title of the tearsheet, displayed in the header area.
105
106
  */
106
107
  title?: ReactNode;
107
108
  verticalPosition?: 'normal' | 'lower';
109
+ /**
110
+ * @deprecated Property replaced by `aiLabel`
111
+ */
112
+ slug?: ReactNode;
108
113
  }
109
114
  export type CloseIconDescriptionTypes = {
110
115
  hasCloseIcon?: false;
@@ -126,6 +131,10 @@ export declare const tearsheetHasCloseIcon: (actions: any, hasCloseIcon: any) =>
126
131
  export declare const TearsheetShell: React.ForwardRefExoticComponent<(TearsheetShellProps & CloseIconDescriptionTypes) & React.RefAttributes<HTMLDivElement>>;
127
132
  export declare const portalType: PropTypes.Requireable<object>;
128
133
  export declare const deprecatedProps: {
134
+ /**
135
+ * @deprecated Property replaced by `aiLabel`
136
+ */
137
+ slug: (props: any, propName: any, comp: any, loc: any, propFullName: any, secret: any) => any;
129
138
  /**
130
139
  * **Deprecated**
131
140
  *
@@ -15,6 +15,7 @@ var cx = require('classnames');
15
15
  var settings = require('../../settings.js');
16
16
  var pconsole = require('../../global/js/utils/pconsole.js');
17
17
  var getNodeTextContent = require('../../global/js/utils/getNodeTextContent.js');
18
+ var propsHelper = require('../../global/js/utils/props-helper.js');
18
19
  var react = require('@carbon/react');
19
20
  var ActionSet = require('../ActionSet/ActionSet.js');
20
21
  var Wrap = require('../../global/js/utils/Wrap.js');
@@ -22,7 +23,7 @@ var usePortalTarget = require('../../global/js/hooks/usePortalTarget.js');
22
23
  var useFocus = require('../../global/js/hooks/useFocus.js');
23
24
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
24
25
 
25
- var _excluded = ["actions", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
26
+ var _excluded = ["actions", "aiLabel", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
26
27
 
27
28
  // The block part of our conventional BEM class names (bc__E--M).
28
29
  var bc = "".concat(settings.pkg.prefix, "--tearsheet");
@@ -65,6 +66,7 @@ var tearsheetHasCloseIcon = function tearsheetHasCloseIcon(actions, hasCloseIcon
65
66
  * */
66
67
  var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
67
68
  var actions = _ref.actions,
69
+ aiLabel = _ref.aiLabel,
68
70
  ariaLabel = _ref.ariaLabel,
69
71
  children = _ref.children,
70
72
  className = _ref.className,
@@ -84,7 +86,7 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
84
86
  _ref$selectorsFloatin = _ref.selectorsFloatingMenus,
85
87
  selectorsFloatingMenus = _ref$selectorsFloatin === void 0 ? [] : _ref$selectorsFloatin,
86
88
  size = _ref.size,
87
- slug = _ref.slug,
89
+ deprecated_slug = _ref.slug,
88
90
  title = _ref.title,
89
91
  verticalPosition = _ref.verticalPosition,
90
92
  launcherButtonRef = _ref.launcherButtonRef,
@@ -92,7 +94,7 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
92
94
  var carbonPrefix = react.usePrefix();
93
95
  var bcModalHeader = "".concat(carbonPrefix, "--modal-header");
94
96
  var renderPortalUse = usePortalTarget.usePortalTarget(portalTargetIn);
95
- var localRef = React.useRef();
97
+ var localRef = React.useRef(undefined);
96
98
  var resizer = React.useRef(null);
97
99
  var modalBodyRef = React.useRef(null);
98
100
  var modalRef = ref || localRef;
@@ -123,7 +125,7 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
123
125
  setPosition = _useState4[1];
124
126
 
125
127
  // Keep a record of the previous value of depth.
126
- var prevDepth = React.useRef();
128
+ var prevDepth = React.useRef(undefined);
127
129
  React.useEffect(function () {
128
130
  prevDepth.current = depth;
129
131
  });
@@ -265,10 +267,10 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
265
267
  }
266
268
  }, /*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
267
269
  "aria-label": ariaLabel || getNodeTextContent.getNodeTextContent(title),
268
- className: cx(bc, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
270
+ className: cx(bc, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
269
271
  // Don't apply this on the initial open of a single tearsheet.
270
- depth > 1 || depth === 1 && ((_prevDepth$current = prevDepth === null || prevDepth === void 0 ? void 0 : prevDepth.current) !== null && _prevDepth$current !== void 0 ? _prevDepth$current : 0) > 1), "".concat(bc, "--wide"), wide), "".concat(bc, "--narrow"), !wide), "".concat(bc, "--has-slug"), slug), "".concat(bc, "--has-close"), effectiveHasCloseIcon)),
271
- slug: slug,
272
+ depth > 1 || depth === 1 && ((_prevDepth$current = prevDepth === null || prevDepth === void 0 ? void 0 : prevDepth.current) !== null && _prevDepth$current !== void 0 ? _prevDepth$current : 0) > 1), "".concat(bc, "--wide"), wide), "".concat(bc, "--narrow"), !wide), "".concat(bc, "--has-slug"), deprecated_slug), "".concat(bc, "--has-ai-label"), aiLabel), "".concat(bc, "--has-close"), effectiveHasCloseIcon)),
273
+ slug: aiLabel || deprecated_slug,
272
274
  style: setScaleValues(),
273
275
  containerClassName: cx("".concat(bc, "__container"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "__container--lower"), verticalPosition === 'lower'), "".concat(bc, "__container--mixed-size-stacking"), !areAllSameSizeVariant())),
274
276
  onClose: onClose,
@@ -346,6 +348,10 @@ var portalType = typeof Element === 'undefined' ? index.default.object :
346
348
  // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
347
349
  index.default.instanceOf(Element);
348
350
  var deprecatedProps = {
351
+ /**
352
+ * @deprecated Property replaced by `aiLabel`
353
+ */
354
+ slug: propsHelper.deprecateProp(index.default.node, 'Property replaced by `aiLabel`'),
349
355
  /**
350
356
  * **Deprecated**
351
357
  *
@@ -390,6 +396,11 @@ TearsheetShell.propTypes = _rollupPluginBabelHelpers.objectSpread2({
390
396
  /**@ts-ignore*/
391
397
  onClick: react.Button.propTypes.onClick
392
398
  }))),
399
+ /**
400
+ * Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency,
401
+ * accountability, and explainability at the UI level.
402
+ */
403
+ aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
393
404
  /**
394
405
  * The main content of the tearsheet.
395
406
  */
@@ -496,10 +507,6 @@ TearsheetShell.propTypes = _rollupPluginBabelHelpers.objectSpread2({
496
507
  */
497
508
  /**@ts-ignore*/
498
509
  size: index.default.oneOf(['narrow', 'wide']).isRequired,
499
- /**
500
- * **Experimental:** Provide a `Slug` component to be rendered inside the `Tearsheet` component
501
- */
502
- slug: index.default.node,
503
510
  /**
504
511
  * The main title of the tearsheet, displayed in the header area.
505
512
  */
@@ -27,7 +27,7 @@ exports.Toolbar = /*#__PURE__*/React.forwardRef(function (_ref, r) {
27
27
  className = _ref.className,
28
28
  vertical = _ref.vertical,
29
29
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
30
- var focusableElements = React.useRef();
30
+ var focusableElements = React.useRef(undefined);
31
31
  var getFocusableElements$1 = React.useCallback(function () {
32
32
  return focusableElements.current;
33
33
  }, [focusableElements]);
@@ -69,7 +69,7 @@ exports.TruncatedList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
69
69
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
70
70
  listHeight = _useState4[0],
71
71
  setListHeight = _useState4[1];
72
- var listRef = React.useRef();
72
+ var listRef = React.useRef(undefined);
73
73
  var handleToggle = function handleToggle() {
74
74
  setIsCollapsed(function (prev) {
75
75
  return !prev;
@@ -15,7 +15,7 @@ var React = require('react');
15
15
  * @returns {T | undefined} - The previous value of the same type, or undefined if there is none
16
16
  */
17
17
  var usePreviousValue = function usePreviousValue(value) {
18
- var ref = React.useRef();
18
+ var ref = React.useRef(undefined);
19
19
  React.useEffect(function () {
20
20
  ref.current = value;
21
21
  });
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.43.2-canary.300+d3f08bcd0",
4
+ "version": "2.43.2-canary.302+5c0f2adf5",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.22.0",
99
- "@carbon/ibm-products-styles": "^2.39.1-canary.310+d3f08bcd0",
99
+ "@carbon/ibm-products-styles": "^2.39.1-canary.312+5c0f2adf5",
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": "d3f08bcd0b479a84e69fc29dfe03a931618168a7"
123
+ "gitHead": "5c0f2adf55e6c9c7f081dab72ab711b611593476"
124
124
  }
@@ -110,6 +110,8 @@ $motion-duration: $duration-moderate-02;
110
110
  }
111
111
 
112
112
  &.#{$block-class}.#{$block-class}.#{$block-class}.#{$block-class}--has-slug
113
+ .#{$block-class}__container,
114
+ &.#{$block-class}.#{$block-class}.#{$block-class}.#{$block-class}--has-ai-label
113
115
  .#{$block-class}__container {
114
116
  border: 1px solid transparent;
115
117
  border-bottom: 0;
@@ -276,11 +278,15 @@ $motion-duration: $duration-moderate-02;
276
278
 
277
279
  &.#{$block-class}--wide
278
280
  .#{$block-class}__header.#{$block-class}__header--with-close-icon,
279
- &.#{$block-class}--has-slug .#{$block-class}__header.#{$block-class}__header {
281
+ &.#{$block-class}--has-slug .#{$block-class}__header.#{$block-class}__header,
282
+ &.#{$block-class}--has-ai-label
283
+ .#{$block-class}__header.#{$block-class}__header {
280
284
  padding-inline-end: $spacing-11;
281
285
  }
282
286
 
283
287
  &.#{$block-class}--wide.#{$block-class}--has-slug
288
+ .#{$block-class}__header.#{$block-class}__header--with-close-icon,
289
+ &.#{$block-class}--wide.#{$block-class}--has-ai-label
284
290
  .#{$block-class}__header.#{$block-class}__header--with-close-icon {
285
291
  /* spacing 11 plus additional space for slug/close */
286
292
  /* stylelint-disable-next-line carbon/layout-token-use */
@@ -362,7 +368,8 @@ $motion-duration: $duration-moderate-02;
362
368
  flex-grow: 1;
363
369
  }
364
370
 
365
- &.#{$block-class}--has-slug .#{$block-class}__content {
371
+ &.#{$block-class}--has-slug .#{$block-class}__content,
372
+ &.#{$block-class}--has-ai-label .#{$block-class}__content {
366
373
  @include utilities.ai-popover-gradient('default', 0);
367
374
 
368
375
  box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow;
@@ -418,12 +425,15 @@ $motion-duration: $duration-moderate-02;
418
425
  background: $background;
419
426
  }
420
427
 
421
- &.#{$block-class}--has-slug {
428
+ &.#{$block-class}--has-slug,
429
+ &.#{$block-class}--has-ai-label {
422
430
  /* stylelint-disable-next-line carbon/theme-token-use */
423
431
  --overlay-color: #{$ai-overlay};
424
432
  }
425
433
 
426
434
  &.#{$block-class}--has-slug:not(.#{$block-class}--has-close)
435
+ .#{$carbon-prefix}--slug,
436
+ &.#{$block-class}--has-ai-label:not(.#{$block-class}--has-close)
427
437
  .#{$carbon-prefix}--slug {
428
438
  inset-inline-end: 0;
429
439
  margin-block: 6px;