@carbon/ibm-products 2.55.0 → 2.56.0-rc.0

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 (137) hide show
  1. package/css/index-full-carbon.css +1247 -653
  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 +945 -44
  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 +568 -542
  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 +636 -544
  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/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
  18. package/es/components/Card/Card.d.ts +3 -3
  19. package/es/components/Card/Card.js +10 -9
  20. package/es/components/Card/CardHeader.d.ts +7 -7
  21. package/es/components/Card/CardHeader.js +14 -12
  22. package/es/components/Coachmark/Coachmark.d.ts +5 -0
  23. package/es/components/Coachmark/Coachmark.js +11 -3
  24. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
  25. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +19 -5
  26. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  27. package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  28. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  29. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
  30. package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
  31. package/es/components/EmptyStates/assets/ErrorIllustration.js +2 -3
  32. package/es/components/EmptyStates/assets/NoDataIllustration.js +2 -3
  33. package/es/components/EmptyStates/assets/NoTagsIllustration.js +2 -3
  34. package/es/components/EmptyStates/assets/NotFoundIllustration.js +2 -3
  35. package/es/components/EmptyStates/assets/NotificationsIllustration.js +2 -3
  36. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -3
  37. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  38. package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
  39. package/es/components/FullPageError/FullPageError.js +7 -7
  40. package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  41. package/es/components/FullPageError/assets/Error403SVG.js +4 -6
  42. package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  43. package/es/components/FullPageError/assets/Error404SVG.js +4 -6
  44. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  45. package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  46. package/es/components/InlineTip/InlineTip.d.ts +5 -0
  47. package/es/components/InlineTip/InlineTip.js +17 -8
  48. package/es/components/ProductiveCard/ProductiveCard.d.ts +3 -3
  49. package/es/components/ProductiveCard/ProductiveCard.js +4 -4
  50. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  51. package/es/global/js/package-settings.d.ts +1 -1
  52. package/es/global/js/package-settings.js +1 -1
  53. package/es/settings.d.ts +1 -1
  54. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
  55. package/lib/components/Card/Card.d.ts +3 -3
  56. package/lib/components/Card/Card.js +10 -9
  57. package/lib/components/Card/CardHeader.d.ts +7 -7
  58. package/lib/components/Card/CardHeader.js +14 -12
  59. package/lib/components/Coachmark/Coachmark.d.ts +5 -0
  60. package/lib/components/Coachmark/Coachmark.js +11 -3
  61. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
  62. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +18 -4
  63. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  64. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  65. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  66. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
  67. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
  68. package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  69. package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  70. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  71. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  72. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  73. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  74. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  75. package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
  76. package/lib/components/FullPageError/FullPageError.js +7 -7
  77. package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  78. package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
  79. package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  80. package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
  81. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  82. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  83. package/lib/components/InlineTip/InlineTip.d.ts +5 -0
  84. package/lib/components/InlineTip/InlineTip.js +17 -8
  85. package/lib/components/ProductiveCard/ProductiveCard.d.ts +3 -3
  86. package/lib/components/ProductiveCard/ProductiveCard.js +4 -4
  87. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  88. package/lib/global/js/package-settings.d.ts +1 -1
  89. package/lib/global/js/package-settings.js +1 -1
  90. package/lib/settings.d.ts +1 -1
  91. package/package.json +5 -5
  92. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
  93. package/scss/components/Card/_card.scss +19 -5
  94. package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
  95. package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
  96. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
  97. package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
  98. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
  99. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
  100. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
  101. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
  102. package/scss/components/Datagrid/styles/_datagrid.scss +5 -8
  103. package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
  104. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
  105. package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
  106. package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
  107. package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
  108. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
  109. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
  110. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
  111. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
  112. package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
  113. package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
  114. package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
  115. package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
  116. package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
  117. package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
  118. package/scss/components/FullPageError/_full-page-error.scss +1 -1
  119. package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
  120. package/scss/components/Guidebanner/_guidebanner.scss +4 -4
  121. package/scss/components/HTTPErrors/_http-errors.scss +1 -1
  122. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  123. package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
  124. package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
  125. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  126. package/scss/components/OptionsTile/_options-tile.scss +6 -8
  127. package/scss/components/PageHeader/_page-header.scss +20 -13
  128. package/scss/components/ProductiveCard/_productive-card.scss +2 -2
  129. package/scss/components/SidePanel/_side-panel.scss +11 -11
  130. package/scss/components/StatusIcon/_status-icon.scss +9 -7
  131. package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
  132. package/scss/components/Tearsheet/_tearsheet.scss +5 -5
  133. package/scss/components/UserAvatar/_user-avatar.scss +5 -3
  134. package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
  135. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
  136. package/scss/components/_index-released-only.scss +1 -0
  137. package/telemetry.yml +3 -0
@@ -38,10 +38,6 @@ exports.ExpressiveCard.propTypes = {
38
38
  iconDescription: index.default.string,
39
39
  href: index.default.string
40
40
  })),
41
- /**
42
- * 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.
43
- */
44
- aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
45
41
  /**
46
42
  * Content that shows in the body of the card
47
43
  */
@@ -50,6 +46,10 @@ exports.ExpressiveCard.propTypes = {
50
46
  * Optional user provided class
51
47
  */
52
48
  className: index.default.string,
49
+ /**
50
+ * Optional prop that allows you to pass any component.
51
+ */
52
+ decorator: index.default.oneOfType([index.default.node, index.default.bool]),
53
53
  /**
54
54
  * Optional header description
55
55
  */
@@ -120,7 +120,7 @@ exports.ExpressiveCard.propTypes = {
120
120
  /**
121
121
  * **Experimental:** For all cases a `Slug` component can be provided.
122
122
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
123
- * @deprecated please use the `aiLabel` prop
123
+ * @deprecated please use the `decorator` prop
124
124
  */
125
125
  slug: index.default.oneOfType([index.default.node, index.default.bool]),
126
126
  /**
@@ -18,6 +18,7 @@ var cx = require('classnames');
18
18
  var devtools = require('../../global/js/utils/devtools.js');
19
19
  var settings = require('../../settings.js');
20
20
 
21
+ var _span;
21
22
  var _excluded = ["children", "className", "description", "label", "kind", "title"];
22
23
 
23
24
  // The block part of our conventional BEM class names (blockClass__E--M).
@@ -44,20 +45,17 @@ exports.FullPageError = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
44
45
  var errorData = {
45
46
  403: {
46
47
  svg: /*#__PURE__*/React.createElement(Error403SVG.Error403SVG, {
47
- className: "".concat(blockClass, "__svg ").concat(blockClass, "__403"),
48
- title: title
48
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__403")
49
49
  })
50
50
  },
51
51
  404: {
52
52
  svg: /*#__PURE__*/React.createElement(Error404SVG.Error404SVG, {
53
- className: "".concat(blockClass, "__svg ").concat(blockClass, "__404"),
54
- title: title
53
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__404")
55
54
  })
56
55
  },
57
56
  custom: {
58
57
  svg: /*#__PURE__*/React.createElement(ErrorGenericSVG.ErrorGenericSVG, {
59
- className: "".concat(blockClass, "__svg ").concat(blockClass, "__custom"),
60
- title: title
58
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__custom")
61
59
  })
62
60
  }
63
61
  };
@@ -78,7 +76,9 @@ exports.FullPageError = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
78
76
  className: "".concat(blockClass, "__title")
79
77
  }, /*#__PURE__*/React.createElement("span", {
80
78
  className: "".concat(blockClass, "__label")
81
- }, "\u21B3 ", label), /*#__PURE__*/React.createElement("span", null, title)), /*#__PURE__*/React.createElement("p", {
79
+ }, _span || (_span = /*#__PURE__*/React.createElement("span", {
80
+ "aria-hidden": "true"
81
+ }, "\u21B3 ")), label), /*#__PURE__*/React.createElement("span", null, title)), /*#__PURE__*/React.createElement("p", {
82
82
  className: "".concat(blockClass, "__description")
83
83
  }, description), /*#__PURE__*/React.createElement("div", {
84
84
  className: "".concat(blockClass, "__body")
@@ -1,11 +1,9 @@
1
- export function Error403SVG({ className, title }: {
1
+ export function Error403SVG({ className }: {
2
2
  className: any;
3
- title: any;
4
3
  }): React.JSX.Element;
5
4
  export namespace Error403SVG {
6
5
  namespace propTypes {
7
6
  export { string as className };
8
- export { string as title };
9
7
  }
10
8
  }
11
9
  import React from 'react';
@@ -12,14 +12,13 @@ var index = require('../../../_virtual/index.js');
12
12
 
13
13
  var _g, _defs;
14
14
  var Error403SVG = function Error403SVG(_ref) {
15
- var className = _ref.className,
16
- title = _ref.title;
15
+ var className = _ref.className;
17
16
  return /*#__PURE__*/React.createElement("svg", {
18
17
  viewBox: "0 0 750 570",
19
18
  fill: "none",
20
19
  className: className,
21
- xmlns: "http://www.w3.org/2000/svg",
22
- "aria-label": title
20
+ "aria-hidden": "true",
21
+ xmlns: "http://www.w3.org/2000/svg"
23
22
  }, _g || (_g = /*#__PURE__*/React.createElement("g", {
24
23
  clipPath: "url(#clip0_0_2401)"
25
24
  }, /*#__PURE__*/React.createElement("path", {
@@ -712,8 +711,7 @@ var Error403SVG = function Error403SVG(_ref) {
712
711
  // in alphabetical order (for consistency).
713
712
  // See https://www.npmjs.com/package/prop-types#usage.
714
713
  Error403SVG.propTypes = {
715
- className: index.propTypesExports.string,
716
- title: index.propTypesExports.string
714
+ className: index.propTypesExports.string
717
715
  };
718
716
 
719
717
  exports.Error403SVG = Error403SVG;
@@ -1,11 +1,9 @@
1
- export function Error404SVG({ className, title }: {
1
+ export function Error404SVG({ className }: {
2
2
  className: any;
3
- title: any;
4
3
  }): React.JSX.Element;
5
4
  export namespace Error404SVG {
6
5
  namespace propTypes {
7
6
  export { string as className };
8
- export { string as title };
9
7
  }
10
8
  }
11
9
  import React from 'react';
@@ -12,14 +12,13 @@ var index = require('../../../_virtual/index.js');
12
12
 
13
13
  var _g, _defs;
14
14
  var Error404SVG = function Error404SVG(_ref) {
15
- var className = _ref.className,
16
- title = _ref.title;
15
+ var className = _ref.className;
17
16
  return /*#__PURE__*/React.createElement("svg", {
18
17
  viewBox: "0 0 751 549",
19
18
  fill: "none",
20
19
  className: className,
21
- xmlns: "http://www.w3.org/2000/svg",
22
- "aria-label": title
20
+ "aria-hidden": "true",
21
+ xmlns: "http://www.w3.org/2000/svg"
23
22
  }, _g || (_g = /*#__PURE__*/React.createElement("g", {
24
23
  clipPath: "url(#clip0_0_2285)"
25
24
  }, /*#__PURE__*/React.createElement("path", {
@@ -621,8 +620,7 @@ var Error404SVG = function Error404SVG(_ref) {
621
620
  // in alphabetical order (for consistency).
622
621
  // See https://www.npmjs.com/package/prop-types#usage.
623
622
  Error404SVG.propTypes = {
624
- className: index.propTypesExports.string,
625
- title: index.propTypesExports.string
623
+ className: index.propTypesExports.string
626
624
  };
627
625
 
628
626
  exports.Error404SVG = Error404SVG;
@@ -1,11 +1,9 @@
1
- export function ErrorGenericSVG({ className, title }: {
1
+ export function ErrorGenericSVG({ className }: {
2
2
  className: any;
3
- title: any;
4
3
  }): React.JSX.Element;
5
4
  export namespace ErrorGenericSVG {
6
5
  namespace propTypes {
7
6
  export { string as className };
8
- export { string as title };
9
7
  }
10
8
  }
11
9
  import React from 'react';
@@ -12,14 +12,13 @@ var index = require('../../../_virtual/index.js');
12
12
 
13
13
  var _g, _defs;
14
14
  var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
15
- var className = _ref.className,
16
- title = _ref.title;
15
+ var className = _ref.className;
17
16
  return /*#__PURE__*/React.createElement("svg", {
18
17
  viewBox: "0 0 750 506",
19
18
  fill: "none",
20
19
  className: className,
21
- xmlns: "http://www.w3.org/2000/svg",
22
- "aria-label": title
20
+ "aria-hidden": "true",
21
+ xmlns: "http://www.w3.org/2000/svg"
23
22
  }, _g || (_g = /*#__PURE__*/React.createElement("g", {
24
23
  clipPath: "url(#clip0_203_144)"
25
24
  }, /*#__PURE__*/React.createElement("path", {
@@ -712,8 +711,7 @@ var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
712
711
  // in alphabetical order (for consistency).
713
712
  // See https://www.npmjs.com/package/prop-types#usage.
714
713
  ErrorGenericSVG.propTypes = {
715
- className: index.propTypesExports.string,
716
- title: index.propTypesExports.string
714
+ className: index.propTypesExports.string
717
715
  };
718
716
 
719
717
  exports.ErrorGenericSVG = ErrorGenericSVG;
@@ -51,8 +51,13 @@ export interface InlineTipProps {
51
51
  * - If a stepped animation is required, use `{filePaths}`.
52
52
  *
53
53
  * Enabling `media` disables the `collapsible` feature.
54
+ * @deprecated please use the `renderMedia` prop
54
55
  */
55
56
  media?: MediaType;
57
+ /**
58
+ * Optional prop to render any media like images or any animated media.
59
+ */
60
+ renderMedia?: () => ReactNode;
56
61
  /**
57
62
  * Set to `true` to arrange the information in a format
58
63
  * that is easier to read in a limited space.
@@ -20,7 +20,7 @@ var settings = require('../../settings.js');
20
20
  var uuidv4 = require('../../global/js/utils/uuidv4.js');
21
21
 
22
22
  var _Close, _Idea, _Crossroads;
23
- var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
23
+ var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "renderMedia", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
24
24
 
25
25
  // The block part of our conventional BEM class names (blockClass__E--M).
26
26
  var blockClass = "".concat(settings.pkg.prefix, "--inline-tip");
@@ -58,6 +58,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
58
58
  _ref$expandButtonLabe = _ref.expandButtonLabel,
59
59
  expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
60
60
  media = _ref.media,
61
+ renderMedia = _ref.renderMedia,
61
62
  _ref$narrow = _ref.narrow,
62
63
  narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
63
64
  onClick = _ref.onClick,
@@ -68,6 +69,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
68
69
  _ref$withLeftGutter = _ref.withLeftGutter,
69
70
  withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
70
71
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
72
+ var hasMedia = renderMedia || media;
71
73
  var _useState = React.useState(collapsible),
72
74
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
73
75
  isCollapsed = _useState2[0],
@@ -77,7 +79,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
77
79
  return utils.getComponentText(React.Children.toArray(children));
78
80
  }, [children]);
79
81
  var childrenToRender = children;
80
- if (!media && collapsible && isCollapsed) {
82
+ if (!hasMedia && collapsible && isCollapsed) {
81
83
  childrenToRender = /*#__PURE__*/React.createElement("p", {
82
84
  className: "".concat(blockClass, "__preview-text")
83
85
  }, previewText);
@@ -89,7 +91,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
89
91
  }, [collapsible]);
90
92
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
91
93
  "aria-labelledby": labelId,
92
- className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), media && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
94
+ className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), hasMedia && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
93
95
  ref: ref,
94
96
  role: "complementary"
95
97
  }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement("div", {
@@ -102,7 +104,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
102
104
  size: "lg"
103
105
  }, _Close || (_Close = /*#__PURE__*/React.createElement(icons.Close, {
104
106
  size: 16
105
- })))), (!media && narrow || !narrow) && /*#__PURE__*/React.createElement("div", {
107
+ })))), (!hasMedia && narrow || !narrow) && /*#__PURE__*/React.createElement("div", {
106
108
  className: "".concat(blockClass, "__icon-idea"),
107
109
  tabIndex: -1
108
110
  }, _Idea || (_Idea = /*#__PURE__*/React.createElement(icons.Idea, {
@@ -118,7 +120,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
118
120
  className: "".concat(blockClass, "__secondary-btn")
119
121
  }, action)), (collapsible || tertiaryButtonLabel) && /*#__PURE__*/React.createElement("footer", {
120
122
  className: "".concat(blockClass, "__footer")
121
- }, collapsible && !media && /*#__PURE__*/React.createElement(react.Button, {
123
+ }, collapsible && !hasMedia && /*#__PURE__*/React.createElement(react.Button, {
122
124
  className: "".concat(blockClass, "__toggle-btn"),
123
125
  kind: "ghost",
124
126
  size: "md",
@@ -137,12 +139,14 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
137
139
  size: 16
138
140
  }));
139
141
  }
140
- }, tertiaryButtonLabel))), media && (media.render ? /*#__PURE__*/React.createElement("div", {
142
+ }, tertiaryButtonLabel))), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && /*#__PURE__*/React.createElement("div", {
141
143
  className: "".concat(blockClass, "__media")
142
- }, media.render()) : /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
144
+ }, media.render()), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
143
145
  className: "".concat(blockClass, "__media"),
144
146
  filePaths: media.filePaths
145
- })));
147
+ }), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
148
+ className: "".concat(blockClass, "__media")
149
+ }, renderMedia()));
146
150
  });
147
151
  exports.InlineTip = settings.pkg.checkComponentEnabled(exports.InlineTip, componentName);
148
152
  exports.InlineTip.displayName = componentName;
@@ -188,6 +192,7 @@ exports.InlineTip.propTypes = {
188
192
  * - If a stepped animation is required, use `{filePaths}`.
189
193
  *
190
194
  * Enabling `media` disables the `collapsible` feature.
195
+ * @deprecated please use the `renderMedia` prop
191
196
  */
192
197
  /**@ts-ignore*/
193
198
  media: index.default.oneOfType([index.default.shape({
@@ -208,6 +213,10 @@ exports.InlineTip.propTypes = {
208
213
  * Function to call when the InlineTip is closed via the "X" button.
209
214
  */
210
215
  onClose: index.default.func,
216
+ /**
217
+ * Optional prop to render any media like images or animated media.
218
+ */
219
+ renderMedia: index.default.func,
211
220
  /**
212
221
  * Defining the label will show a the tertiary button with the crossroads icon.
213
222
  * You will still need to define the `onClose` method to trigger a callback.
@@ -22,9 +22,9 @@ export interface ProductiveCardProps extends PropsWithChildren {
22
22
  */
23
23
  actionIcons?: ActionIcon[];
24
24
  /**
25
- * 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.
25
+ * Optional prop that allows you to pass any component.
26
26
  */
27
- aiLabel?: ReactNode | boolean;
27
+ decorator?: ReactNode | boolean;
28
28
  /**
29
29
  * Determines if the action icons are on the top or bottom of the card
30
30
  */
@@ -108,7 +108,7 @@ export interface ProductiveCardProps extends PropsWithChildren {
108
108
  /**
109
109
  * **Experimental:** For all cases a `Slug` component can be provided.
110
110
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
111
- * @deprecated please use the `aiLabel` prop
111
+ * @deprecated please use the `decorator` prop
112
112
  */
113
113
  slug?: ReactNode | boolean;
114
114
  /**
@@ -50,10 +50,6 @@ exports.ProductiveCard.propTypes = {
50
50
  * Determines if the action icons are on the top or bottom of the card
51
51
  */
52
52
  actionsPlacement: index.default.oneOf(['top', 'bottom']),
53
- /**
54
- * 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.
55
- */
56
- aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
57
53
  /**
58
54
  * Content that shows in the body of the card
59
55
  */
@@ -66,6 +62,10 @@ exports.ProductiveCard.propTypes = {
66
62
  * Designates which zones of the card are clickable. Refer to design documentation for implementation guidelines
67
63
  */
68
64
  clickZone: index.default.oneOf(['one', 'two', 'three']),
65
+ /**
66
+ * Optional prop that allows you to pass any component.
67
+ */
68
+ decorator: index.default.oneOfType([index.default.node, index.default.bool]),
69
69
  /**
70
70
  * Optional header description
71
71
  */
@@ -45,6 +45,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
45
45
  var backupRef = React.useRef(null);
46
46
  var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
47
47
  var localRefValue = localRef.current;
48
+ var filePathStr = filePaths === null || filePaths === void 0 ? void 0 : filePaths.join(); //converting the array to string will avoid unwanted useEffect trigger.
48
49
  // load animation source
49
50
  React.useEffect(function () {
50
51
  var isJsonFile = function isJsonFile(filePath) {
@@ -87,7 +88,8 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
87
88
  return _loadArtifact.apply(this, arguments);
88
89
  }
89
90
  loadArtifact();
90
- }, [filePaths]);
91
+ // eslint-disable-next-line
92
+ }, [filePathStr]);
91
93
  React.useEffect(function () {
92
94
  var _window;
93
95
  var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
@@ -66,6 +66,7 @@ declare namespace defaults {
66
66
  let WebTerminal: boolean;
67
67
  let WebTerminalContentWrapper: boolean;
68
68
  let WebTerminalProvider: boolean;
69
+ let UserAvatar: boolean;
69
70
  let Toolbar: boolean;
70
71
  let ToolbarButton: boolean;
71
72
  let ToolbarGroup: boolean;
@@ -115,7 +116,6 @@ declare namespace defaults {
115
116
  let DescriptionListCell: boolean;
116
117
  let DescriptionListRow: boolean;
117
118
  let SearchBar: boolean;
118
- let UserAvatar: boolean;
119
119
  let EmptyStateV2: boolean;
120
120
  let Guidebanner: boolean;
121
121
  let GuidebannerElement: boolean;
@@ -68,6 +68,7 @@ var defaults = {
68
68
  WebTerminal: true,
69
69
  WebTerminalContentWrapper: true,
70
70
  WebTerminalProvider: true,
71
+ UserAvatar: true,
71
72
  // other public components not yet reviewed and released:
72
73
  Toolbar: false,
73
74
  ToolbarButton: false,
@@ -121,7 +122,6 @@ var defaults = {
121
122
  DescriptionListCell: false,
122
123
  DescriptionListRow: false,
123
124
  SearchBar: false,
124
- UserAvatar: false,
125
125
  /* new component flags here - comment used by generate CLI */
126
126
 
127
127
  // Onboarding components not yet reviewed and released:
package/lib/settings.d.ts CHANGED
@@ -52,6 +52,7 @@ export const pkg: {
52
52
  WebTerminal: boolean;
53
53
  WebTerminalContentWrapper: boolean;
54
54
  WebTerminalProvider: boolean;
55
+ UserAvatar: boolean;
55
56
  Toolbar: boolean;
56
57
  ToolbarButton: boolean;
57
58
  ToolbarGroup: boolean;
@@ -101,7 +102,6 @@ export const pkg: {
101
102
  DescriptionListCell: boolean;
102
103
  DescriptionListRow: boolean;
103
104
  SearchBar: boolean;
104
- UserAvatar: boolean;
105
105
  EmptyStateV2: boolean;
106
106
  Guidebanner: boolean;
107
107
  GuidebannerElement: boolean;
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.55.0",
4
+ "version": "2.56.0-rc.0",
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.14.0",
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.51.0",
99
+ "@carbon/ibm-products-styles": "^2.52.0-rc.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -114,11 +114,11 @@
114
114
  "@carbon/grid": "^11.29.0",
115
115
  "@carbon/layout": "^11.28.0",
116
116
  "@carbon/motion": "^11.24.0",
117
- "@carbon/react": "^1.70.0",
117
+ "@carbon/react": "^1.71.1",
118
118
  "@carbon/themes": "^11.43.0",
119
119
  "@carbon/type": "^11.33.0",
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": "7cbca46dca691777aee495a9626b1967ad9e3be9"
123
+ "gitHead": "6cbf686269c98ae8b5e9800217ff92af8aa363f4"
124
124
  }
@@ -89,7 +89,7 @@ $_block-class: #{c4p-settings.$pkg-prefix}--breadcrumb-with-overflow;
89
89
  text-overflow: ellipsis;
90
90
  }
91
91
  }
92
-
93
- .#{$_block-class}__overflow-menu-options.#{$_block-class}__overflow-menu-options {
94
- z-index: utilities.z('header');
92
+ .#{$_block-class}__overflow-menu {
93
+ /* stylelint-disable-next-line carbon/type-use */
94
+ line-height: 0;
95
95
  }
@@ -5,7 +5,7 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- // NOTE: Please do not remove the duplicate `slug` and `ai-label` classes. We need both until slug is fully deprecated
8
+ // NOTE: Please do not remove the duplicate `slug` and `decorator` classes. We need both until slug is fully deprecated
9
9
 
10
10
  // Standard imports.
11
11
  @use '@carbon/styles/scss/theme' as *;
@@ -144,25 +144,39 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
144
144
  position: relative;
145
145
  }
146
146
 
147
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--slug {
147
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--slug,
148
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--ai-label {
148
149
  position: absolute;
149
150
  top: $spacing-05;
150
151
  right: $spacing-05;
151
152
  }
152
153
 
154
+ .#{$block-class}__header__inner-wrapper--decorator {
155
+ position: absolute;
156
+ top: $spacing-05;
157
+ right: $spacing-05;
158
+
159
+ .#{c4p-settings.$carbon-prefix}--slug,
160
+ .#{c4p-settings.$carbon-prefix}--ai-label {
161
+ position: relative;
162
+ top: unset;
163
+ right: unset;
164
+ }
165
+ }
166
+
153
167
  .#{$block-class}__header-container--has-slug,
154
- .#{$block-class}__header-container--has-ai-label {
168
+ .#{$block-class}__header-container--has-decorator {
155
169
  width: 100%;
156
170
  padding-right: $spacing-07;
157
171
  }
158
172
 
159
173
  .#{$block-class}__header-container--has-slug.#{$block-class}__header-container--has-actions,
160
- .#{$block-class}__header-container--has-ai-label.#{$block-class}__header-container--has-actions {
174
+ .#{$block-class}__header-container--has-decorator.#{$block-class}__header-container--has-actions {
161
175
  padding-right: $spacing-08;
162
176
  }
163
177
 
164
178
  .#{$block-class}__header-container--has-slug.#{$block-class}__header-container--large-tile-or-label,
165
- .#{$block-class}__header-container--has-ai-label.#{$block-class}__header-container--large-tile-or-label {
179
+ .#{$block-class}__header-container--has-decorator.#{$block-class}__header-container--large-tile-or-label {
166
180
  padding-right: $spacing-09;
167
181
  }
168
182
 
@@ -7,8 +7,8 @@
7
7
  // LICENSE file in the root directory of this source tree.
8
8
  //
9
9
 
10
- /* stylelint-disable carbon/layout-token-use */
11
- /* stylelint-disable carbon/theme-token-use */
10
+ /* stylelint-disable carbon/layout-use */
11
+ /* stylelint-disable carbon/theme-use */
12
12
  /* stylelint-disable declaration-no-important */
13
13
 
14
14
  // Standard imports.
@@ -6,7 +6,7 @@
6
6
  //
7
7
 
8
8
  /* stylelint-disable max-nesting-depth */
9
- /* stylelint-disable carbon/theme-token-use */
9
+ /* stylelint-disable carbon/theme-use */
10
10
  /* stylelint-disable declaration-no-important */
11
11
 
12
12
  // Standard imports.
@@ -1,4 +1,4 @@
1
- /* stylelint-disable carbon/layout-token-use */
1
+ /* stylelint-disable carbon/layout-use */
2
2
  /* stylelint-disable carbon/motion-easing-use */
3
3
  /* stylelint-disable max-nesting-depth */
4
4
  //
@@ -44,7 +44,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-beacon;
44
44
  width: $spacing-04;
45
45
  height: $spacing-04;
46
46
  border-radius: 50%;
47
- /* stylelint-disable-next-line carbon/theme-token-use */
47
+ /* stylelint-disable-next-line carbon/theme-use */
48
48
  background-color: $blue-50;
49
49
  content: '';
50
50
  }
@@ -61,7 +61,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-beacon;
61
61
  height: 18px;
62
62
  border-radius: 100%;
63
63
  content: '';
64
- /* stylelint-disable-next-line carbon/theme-token-use */
64
+ /* stylelint-disable-next-line carbon/theme-use */
65
65
  outline: $spacing-01 $focus solid;
66
66
  }
67
67
  }
@@ -68,12 +68,12 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
68
68
  visibility: visible;
69
69
 
70
70
  &__light {
71
- /* stylelint-disable-next-line carbon/theme-token-use */
71
+ /* stylelint-disable-next-line carbon/theme-use */
72
72
  background-color: $gray-90;
73
73
  }
74
74
 
75
75
  &__dark {
76
- /* stylelint-disable-next-line carbon/theme-token-use */
76
+ /* stylelint-disable-next-line carbon/theme-use */
77
77
  background-color: $button-tertiary-active;
78
78
  }
79
79
  }
@@ -26,7 +26,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
26
26
  z-index: -1;
27
27
  opacity: 0;
28
28
  pointer-events: none;
29
- /* stylelint-disable-next-line carbon/layout-token-use */
29
+ /* stylelint-disable-next-line carbon/layout-use */
30
30
  transform: translateX($translateValue);
31
31
  transition: all $duration-fast-02 motion(standard, productive);
32
32
  }
@@ -204,24 +204,24 @@ $colors: (
204
204
  //this is to select and add color to the new group preview
205
205
  .#{$block-class}__group-preview[data-color-index='#{($i%list.length($colors))}']
206
206
  button {
207
- /* stylelint-disable-next-line carbon/theme-token-use */
207
+ /* stylelint-disable-next-line carbon/theme-use */
208
208
  $next-group-color: list.nth($colors, (($i%list.length($colors)) + 1));
209
- /* stylelint-disable-next-line carbon/theme-token-use */
209
+ /* stylelint-disable-next-line carbon/theme-use */
210
210
  box-shadow: inset 0 #{$spacing-01} 0 0 list.nth($next-group-color, 1);
211
211
  }
212
212
 
213
213
  //we need to select the group color from the $colors array and need to repeat the colors after $colors.length subgroups
214
214
  @for $el-index from 1 through 50 {
215
215
  $item-index: $el-index;
216
- /* stylelint-disable-next-line carbon/theme-token-use */
216
+ /* stylelint-disable-next-line carbon/theme-use */
217
217
  $item-index: ((($item-index - 1) % $group-colors-length) + 1);
218
218
  #{$selector} {
219
219
  @if $item-index != 1 {
220
- /* stylelint-disable-next-line carbon/theme-token-use */
220
+ /* stylelint-disable-next-line carbon/theme-use */
221
221
  --#{$block-class}__condition-wrapper-color: #{list.nth(
222
222
  $group-colors,
223
223
  $item-index
224
- )}; // stylelint-disable-line carbon/theme-token-use
224
+ )}; // stylelint-disable-line carbon/theme-use
225
225
  }
226
226
  }
227
227
 
@@ -248,7 +248,7 @@ $colors: (
248
248
  .#{$block-class}__add-button,
249
249
  .#{$block-class}__add-condition-sub-group
250
250
  ) {
251
- /* stylelint-disable-next-line carbon/theme-token-use */
251
+ /* stylelint-disable-next-line carbon/theme-use */
252
252
  box-shadow: inset 0 #{$spacing-01} 0 0 var(--#{$block-class}__condition-wrapper-color);
253
253
  }
254
254
  }