@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
@@ -10,7 +10,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
10
10
  import PropTypes from '../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { useResizeObserver } from '../../global/js/hooks/useResizeObserver.js';
13
- import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip, OverflowMenuItem } from '@carbon/react';
13
+ import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip, unstable_FeatureFlags, MenuItem } from '@carbon/react';
14
14
  import { pkg } from '../../settings.js';
15
15
  import { OverflowMenuHorizontal, ArrowLeft } from '@carbon/react/icons';
16
16
  import uuidv4 from '../../global/js/utils/uuidv4.js';
@@ -61,12 +61,20 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
61
61
  // eslint-disable-next-line react/prop-types
62
62
  var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
63
63
  var overflowItems = _ref2.overflowItems;
64
+ var handleClick = function handleClick(evt, item) {
65
+ var _item$props, _item$props2, _item$props2$onClick;
66
+ if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
67
+ window.location.href = item.props.href;
68
+ }
69
+ item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 || (_item$props2$onClick = _item$props2.onClick) === null || _item$props2$onClick === void 0 || _item$props2$onClick.call(_item$props2, evt);
70
+ };
64
71
  return /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
65
72
  key: "breadcrumb-overflow-".concat(internalId.current)
73
+ }, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
74
+ enableV12Overflowmenu: true
66
75
  }, /*#__PURE__*/React__default.createElement(OverflowMenu, {
67
- align: overflowTooltipAlign,
68
76
  "aria-label": overflowAriaLabel,
69
- iconDescription: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
77
+ label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
70
78
  ,
71
79
  renderIcon: function renderIcon(props) {
72
80
  return /*#__PURE__*/React__default.createElement(OverflowMenuHorizontal, _extends({
@@ -74,17 +82,18 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
74
82
  }, props));
75
83
  },
76
84
  className: "".concat(blockClass, "__overflow-menu"),
77
- menuOptionsClass: "".concat(blockClass, "__overflow-menu-options")
85
+ tooltipAlignment: overflowTooltipAlign
78
86
  },
79
87
  // eslint-disable-next-line react/prop-types
80
88
  overflowItems.map(function (item, index) {
81
- return /*#__PURE__*/React__default.createElement(OverflowMenuItem, {
89
+ return /*#__PURE__*/React__default.createElement(MenuItem, {
82
90
  key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
83
- href: item.props.href,
84
- onClick: item.props.onClick,
85
- itemText: item.props.children
91
+ onClick: function onClick(evt) {
92
+ return handleClick(evt, item);
93
+ },
94
+ label: item.props.children
86
95
  });
87
- })));
96
+ }))));
88
97
  };
89
98
 
90
99
  // create hidden sizing items
@@ -58,13 +58,13 @@ interface CardProp extends PropsWithChildren {
58
58
  iconDescription?: string;
59
59
  /**
60
60
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
61
- * @deprecated please use the `aiLabel` prop
61
+ * @deprecated please use the `decorator` prop
62
62
  */
63
63
  slug?: ReactNode | boolean;
64
64
  /**
65
- * 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.
65
+ * Optional prop that allows you to pass any component.
66
66
  */
67
- aiLabel?: ReactNode | boolean;
67
+ decorator?: ReactNode | boolean;
68
68
  status?: 'complete' | 'incomplete';
69
69
  title?: ReactNode;
70
70
  titleSize?: 'default' | 'large';
@@ -16,7 +16,7 @@ import { CardFooter } from './CardFooter.js';
16
16
  import { pkg } from '../../settings.js';
17
17
 
18
18
  var _Incomplete, _CheckmarkOutline;
19
- var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
19
+ var _excluded = ["actionIcons", "actionsPlacement", "decorator", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
20
20
  _excluded2 = ["id", "itemText"],
21
21
  _excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
22
22
  var componentName = 'Card';
@@ -25,7 +25,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
25
25
  actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
26
26
  _ref$actionsPlacement = _ref.actionsPlacement,
27
27
  actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
28
- aiLabel = _ref.aiLabel,
28
+ decorator = _ref.decorator,
29
29
  _ref$metadata = _ref.metadata,
30
30
  metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
31
31
  children = _ref.children,
@@ -168,10 +168,11 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
168
168
  return icons;
169
169
  };
170
170
  var getCardProps = function getCardProps() {
171
+ var _decorator$type, _decorator$type2;
171
172
  var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
172
173
  var cardProps = _objectSpread2(_objectSpread2({}, rest), {}, {
173
174
  ref: ref,
174
- className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-ai-label"), !!aiLabel), className)
175
+ className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-decorator"), !!decorator && ((_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) !== 'AILabel'), "".concat(blockClass, "--has-ai-label"), !!decorator && ((_decorator$type2 = decorator['type']) === null || _decorator$type2 === void 0 ? void 0 : _decorator$type2.displayName) === 'AILabel'), className)
175
176
  }, clickable && clickableProps);
176
177
  return cardProps;
177
178
  };
@@ -187,7 +188,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
187
188
  var getHeaderProps = function getHeaderProps() {
188
189
  return {
189
190
  actions: actionsPlacement === 'top' ? getActions() : '',
190
- aiLabel: aiLabel,
191
+ decorator: decorator,
191
192
  noActionIcons: getIcons().length > 0 && actionsPlacement === 'top' ? false : true,
192
193
  actionsPlacement: actionsPlacement,
193
194
  onPrimaryButtonClick: onPrimaryButtonClick,
@@ -271,13 +272,13 @@ Card.propTypes = {
271
272
  href: PropTypes.string
272
273
  })),
273
274
  actionsPlacement: PropTypes.oneOf(['top', 'bottom']),
274
- /**
275
- * 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.
276
- */
277
- aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
278
275
  children: PropTypes.node,
279
276
  className: PropTypes.string,
280
277
  clickZone: PropTypes.oneOf(['one', 'two', 'three']),
278
+ /**
279
+ * Optional prop that allows you to pass any component.
280
+ */
281
+ decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
281
282
  /**@ts-ignore */
282
283
  description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
283
284
  disabled: PropTypes.bool,
@@ -326,7 +327,7 @@ Card.propTypes = {
326
327
  /**
327
328
  * **Experimental:** For all cases a `Slug` component can be provided.
328
329
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
329
- * @deprecated please use the `aiLabel` prop
330
+ * @deprecated please use the `decorator` prop
330
331
  */
331
332
  slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
332
333
  status: PropTypes.oneOf(['complete', 'incomplete']),
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
3
3
  interface CardHeaderProps {
4
4
  actions?: ReactNode;
5
5
  /**
6
- * 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.
6
+ * Optional prop that allows you to pass any component.
7
7
  */
8
- aiLabel?: ReactNode | boolean;
8
+ decorator?: ReactNode | boolean;
9
9
  description?: ReactNode;
10
10
  hasActions?: boolean;
11
11
  /**
@@ -29,21 +29,21 @@ interface CardHeaderProps {
29
29
  /**
30
30
  * **Experimental:** For all cases a `Slug` component can be provided.
31
31
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
32
- * @deprecated please use the `aiLabel` prop
32
+ * @deprecated please use the `decorator` prop
33
33
  */
34
34
  slug?: ReactNode;
35
35
  title?: ReactNode;
36
36
  titleSize?: 'default' | 'large';
37
37
  }
38
38
  export declare const CardHeader: {
39
- ({ actions, aiLabel, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
39
+ ({ actions, decorator, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
40
40
  /**@ts-ignore */
41
41
  propTypes: {
42
42
  actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
43
43
  /**
44
- * 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.
44
+ * Optional prop that allows you to pass any component.
45
45
  */
46
- aiLabel: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
46
+ decorator: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
47
47
  description: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
48
48
  hasActions: PropTypes.Requireable<boolean>;
49
49
  /**
@@ -67,7 +67,7 @@ export declare const CardHeader: {
67
67
  /**
68
68
  * **Experimental:** For all cases a `Slug` component can be provided.
69
69
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
70
- * @deprecated please use the `aiLabel` prop
70
+ * @deprecated please use the `decorator` prop
71
71
  */
72
72
  slug: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
73
73
  title: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
@@ -20,7 +20,7 @@ var defaults = {
20
20
  };
21
21
  var CardHeader = function CardHeader(_ref) {
22
22
  var actions = _ref.actions,
23
- aiLabel = _ref.aiLabel,
23
+ decorator = _ref.decorator,
24
24
  noActionIcons = _ref.noActionIcons,
25
25
  onPrimaryButtonClick = _ref.onPrimaryButtonClick,
26
26
  onSecondaryButtonClick = _ref.onSecondaryButtonClick,
@@ -65,13 +65,13 @@ var CardHeader = function CardHeader(_ref) {
65
65
  d: "M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",
66
66
  fill: "#161616"
67
67
  })));
68
- var normalizedAiLabel = null;
69
- if (aiLabel || slug) {
70
- if (inClickableCard || typeof aiLabel === 'boolean' || typeof slug === 'boolean') {
71
- normalizedAiLabel = hollowAiIcon;
68
+ var normalizedDecorator = null;
69
+ if (decorator || slug) {
70
+ if (inClickableCard || typeof decorator === 'boolean' || typeof slug === 'boolean') {
71
+ normalizedDecorator = hollowAiIcon;
72
72
  } else {
73
- var element = aiLabel || slug;
74
- normalizedAiLabel = /*#__PURE__*/React__default.cloneElement(element, {
73
+ var element = decorator || slug;
74
+ normalizedDecorator = /*#__PURE__*/React__default.cloneElement(element, {
75
75
  size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
76
76
  });
77
77
  }
@@ -79,7 +79,7 @@ var CardHeader = function CardHeader(_ref) {
79
79
  return /*#__PURE__*/React__default.createElement("div", {
80
80
  className: headerClasses
81
81
  }, /*#__PURE__*/React__default.createElement("div", {
82
- className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-ai-label"), !!aiLabel), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
82
+ className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-decorator"), !!decorator), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
83
83
  }, /*#__PURE__*/React__default.createElement("div", {
84
84
  className: "".concat(blockClass, "__title-container")
85
85
  }, label && /*#__PURE__*/React__default.createElement("p", {
@@ -105,15 +105,17 @@ var CardHeader = function CardHeader(_ref) {
105
105
  onClick: onPrimaryButtonClick,
106
106
  className: actionGhostButtonClass,
107
107
  disabled: primaryButtonDisabled
108
- }, primaryButtonText)), normalizedAiLabel));
108
+ }, primaryButtonText)), slug ? normalizedDecorator : decorator ? /*#__PURE__*/React__default.createElement("div", {
109
+ className: "".concat(blockClass, "__header__inner-wrapper--decorator")
110
+ }, normalizedDecorator) : ''));
109
111
  };
110
112
  /**@ts-ignore */
111
113
  CardHeader.propTypes = {
112
114
  actions: PropTypes.oneOfType([PropTypes.array, PropTypes.node]),
113
115
  /**
114
- * 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.
116
+ * Optional prop that allows you to pass any component.
115
117
  */
116
- aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
118
+ decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
117
119
  description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
118
120
  hasActions: PropTypes.bool,
119
121
  /**
@@ -137,7 +139,7 @@ CardHeader.propTypes = {
137
139
  /**
138
140
  * **Experimental:** For all cases a `Slug` component can be provided.
139
141
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
140
- * @deprecated please use the `aiLabel` prop
142
+ * @deprecated please use the `decorator` prop
141
143
  */
142
144
  slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
143
145
  title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
@@ -65,6 +65,11 @@ export interface CoachmarkProps {
65
65
  * Determines the theme of the component.
66
66
  */
67
67
  theme?: 'light' | 'dark';
68
+ /**
69
+ * Determines if the coachmark is open by default.
70
+ * Does nothing if `overlayKind=stacked`.
71
+ */
72
+ isOpenByDefault?: boolean;
68
73
  }
69
74
  /**
70
75
  * Coachmarks are used to call out specific functionality or concepts
@@ -20,7 +20,7 @@ import { throttle } from 'lodash';
20
20
  import { Popover, PopoverContent } from '@carbon/react';
21
21
  import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
22
22
 
23
- var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme"];
23
+ var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme", "isOpenByDefault"];
24
24
 
25
25
  // The block part of our conventional BEM class names (blockClass__E--M).
26
26
  var blockClass = "".concat(pkg.prefix, "--coachmark");
@@ -30,7 +30,8 @@ var defaults = {
30
30
  align: 'bottom',
31
31
  onClose: function onClose() {},
32
32
  overlayKind: 'tooltip',
33
- theme: 'light'
33
+ theme: 'light',
34
+ isOpenByDefault: false
34
35
  };
35
36
  /**
36
37
  * Coachmarks are used to call out specific functionality or concepts
@@ -55,10 +56,12 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
55
56
  target = _ref.target,
56
57
  _ref$theme = _ref.theme,
57
58
  theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
59
+ _ref$isOpenByDefault = _ref.isOpenByDefault,
60
+ isOpenByDefault = _ref$isOpenByDefault === void 0 ? defaults.isOpenByDefault : _ref$isOpenByDefault,
58
61
  rest = _objectWithoutProperties(_ref, _excluded);
59
62
  var isBeacon = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
60
63
  var isStacked = overlayKind === COACHMARK_OVERLAY_KIND.STACKED;
61
- var _useState = useState(isStacked),
64
+ var _useState = useState(isStacked || isOpenByDefault),
62
65
  _useState2 = _slicedToArray(_useState, 2),
63
66
  isOpen = _useState2[0],
64
67
  setIsOpen = _useState2[1];
@@ -250,6 +253,11 @@ Coachmark.propTypes = {
250
253
  * Optional class name for this component.
251
254
  */
252
255
  className: PropTypes.string,
256
+ /**
257
+ * Determines if the coachmark is open by default.
258
+ * Does nothing if `overlayKind=stacked`.
259
+ */
260
+ isOpenByDefault: PropTypes.bool,
253
261
  /**
254
262
  * Function to call when the Coachmark closes.
255
263
  */
@@ -24,11 +24,16 @@ export interface CoachmarkOverlayElementsProps {
24
24
  * The object describing an image in one of two shapes.
25
25
  * If a single media element is required, use `{render}`.
26
26
  * If a stepped animation is required, use `{filePaths}`.
27
+ * * @deprecated please use the `renderMedia` prop
27
28
  */
28
29
  media?: {
29
30
  render?: () => ReactNode;
30
31
  filePaths?: string[];
31
32
  };
33
+ /**
34
+ * Optional prop to render any media like images or any animated media.
35
+ */
36
+ renderMedia?: (params: any) => ReactNode;
32
37
  /**
33
38
  * The label for the Next button.
34
39
  */
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { Button } from '@carbon/react';
10
- import React__default, { useRef, useState, Children, useEffect } from 'react';
10
+ import React__default, { useRef, useState, Children, useMemo, useEffect } from 'react';
11
11
  import { Carousel } from '../Carousel/Carousel.js';
12
12
  import '../Carousel/CarouselItem.js';
13
13
  import PropTypes from '../../_virtual/index.js';
@@ -20,7 +20,7 @@ import { pkg } from '../../settings.js';
20
20
  import '../Coachmark/Coachmark.js';
21
21
  import { useCoachmark } from '../Coachmark/utils/context.js';
22
22
 
23
- var _excluded = ["className", "children", "isVisible", "media", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
23
+ var _excluded = ["className", "children", "isVisible", "media", "renderMedia", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
24
24
 
25
25
  // The block part of our conventional BEM class names (blockClass__E--M).
26
26
  var blockClass = "".concat(pkg.prefix, "--coachmark-overlay-elements");
@@ -53,6 +53,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
53
53
  _ref$isVisible = _ref.isVisible,
54
54
  isVisible = _ref$isVisible === void 0 ? defaults.isVisible : _ref$isVisible,
55
55
  media = _ref.media,
56
+ renderMedia = _ref.renderMedia,
56
57
  _ref$nextButtonText = _ref.nextButtonText,
57
58
  nextButtonText = _ref$nextButtonText === void 0 ? defaults.nextButtonText : _ref$nextButtonText,
58
59
  _ref$previousButtonLa = _ref.previousButtonLabel,
@@ -71,6 +72,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
71
72
  currentProgStep = _useState4[0],
72
73
  _setCurrentProgStep = _useState4[1];
73
74
  var coachmark = useCoachmark();
75
+ var hasMedia = media || renderMedia;
74
76
  var setCurrentProgStep = function setCurrentProgStep(value) {
75
77
  if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
76
78
  setTimeout(function () {
@@ -83,6 +85,11 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
83
85
  var numProgSteps = Children.count(children);
84
86
  var progStepFloor = 0;
85
87
  var progStepCeil = numProgSteps - 1;
88
+ var renderMediaContent = useMemo(function () {
89
+ return renderMedia === null || renderMedia === void 0 ? void 0 : renderMedia({
90
+ playStep: currentProgStep
91
+ });
92
+ }, [currentProgStep, renderMedia]);
86
93
  useEffect(function () {
87
94
  // On mount, one of the two primary buttons ("next" or "close")
88
95
  // will be rendered and must have focus. (a11y)
@@ -111,11 +118,13 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
111
118
  // example: [`${blockClass}__here-if-small`]: size === 'sm',
112
119
  }),
113
120
  ref: ref
114
- }, getDevtoolsProps(componentName)), media && (media.render ? media.render() : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
121
+ }, getDevtoolsProps(componentName)), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
115
122
  className: "".concat(blockClass, "__element-stepped-media"),
116
123
  filePaths: media.filePaths,
117
124
  playStep: currentProgStep
118
- })), numProgSteps === 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React__default.createElement("div", {
125
+ }), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
126
+ className: "".concat(blockClass, "__element-stepped-media")
127
+ }, renderMediaContent), numProgSteps === 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React__default.createElement("div", {
119
128
  className: cx("".concat(blockClass, "__footer"), 'coachmark-carousel-controls')
120
129
  }, /*#__PURE__*/React__default.createElement(Button, _extends({
121
130
  size: "sm"
@@ -194,6 +203,7 @@ CoachmarkOverlayElements.propTypes = {
194
203
  * The object describing an image in one of two shapes.
195
204
  * If a single media element is required, use `{render}`.
196
205
  * If a stepped animation is required, use `{filePaths}`.
206
+ * @deprecated please use the `renderMedia` prop
197
207
  */
198
208
  /**@ts-ignore*/
199
209
  media: PropTypes.oneOfType([PropTypes.shape({
@@ -208,7 +218,11 @@ CoachmarkOverlayElements.propTypes = {
208
218
  /**
209
219
  * The label for the Previous button.
210
220
  */
211
- previousButtonLabel: PropTypes.string
221
+ previousButtonLabel: PropTypes.string,
222
+ /**
223
+ * Optional prop to render any media like images or animated media.
224
+ */
225
+ renderMedia: PropTypes.func
212
226
  };
213
227
 
214
228
  export { CoachmarkOverlayElements };
@@ -39,6 +39,10 @@ interface CoachmarkStackHomeProps {
39
39
  * @see {@link MEDIA_PROP_TYPE}.
40
40
  */
41
41
  media?: Media;
42
+ /**
43
+ * Optional prop to render any media like images or any animated media.
44
+ */
45
+ renderMedia?: (params: any) => ReactNode;
42
46
  /**
43
47
  * The labels used to link to the stackable Coachmarks.
44
48
  */
@@ -17,9 +17,10 @@ import { pkg } from '../../settings.js';
17
17
  import { createPortal } from 'react-dom';
18
18
  import { CoachmarkHeader } from '../Coachmark/CoachmarkHeader.js';
19
19
  import { SteppedAnimatedMedia } from '../SteppedAnimatedMedia/SteppedAnimatedMedia.js';
20
+ import { deprecateProp } from '../../global/js/utils/props-helper.js';
20
21
  import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
21
22
 
22
- var _excluded = ["className", "description", "isOpen", "media", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
23
+ var _excluded = ["className", "description", "isOpen", "media", "renderMedia", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
23
24
  // Carbon and package components we use.
24
25
  /* TODO: @import(s) of carbon components and other package components. */
25
26
 
@@ -37,6 +38,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
37
38
  description = _ref.description,
38
39
  isOpen = _ref.isOpen,
39
40
  media = _ref.media,
41
+ renderMedia = _ref.renderMedia,
40
42
  navLinkLabels = _ref.navLinkLabels,
41
43
  onClickNavItem = _ref.onClickNavItem,
42
44
  _onClose = _ref.onClose,
@@ -49,6 +51,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
49
51
  _useState2 = _slicedToArray(_useState, 2),
50
52
  linkFocusIndex = _useState2[0],
51
53
  setLinkFocusIndex = _useState2[1];
54
+ var hasMedia = media || renderMedia;
52
55
  useEffect(function () {
53
56
  setTimeout(function () {
54
57
  if (isOpen && buttonFocusRef.current) {
@@ -90,13 +93,17 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
90
93
  className: "".concat(overlayClass, "__body")
91
94
  }, /*#__PURE__*/React__default.createElement("div", {
92
95
  className: "".concat(overlayClass, "-element")
93
- }, !media && /*#__PURE__*/React__default.createElement(Idea, {
96
+ }, !hasMedia && /*#__PURE__*/React__default.createElement(Idea, {
94
97
  size: 20,
95
98
  className: "".concat(blockClass, "__icon-idea")
96
- }), media && (media.render ? media.render() : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
97
- className: "".concat(overlayClass, "__element-stepped-media"),
99
+ }), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
100
+ className: "".concat(blockClass, "__element-stepped-media"),
98
101
  filePaths: media.filePaths,
99
102
  playStep: 0
103
+ }), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
104
+ className: "".concat(blockClass, "__element-stepped-media")
105
+ }, renderMedia({
106
+ playStep: 0
100
107
  })), /*#__PURE__*/React__default.createElement("div", {
101
108
  className: "".concat(overlayClass, "-element__content")
102
109
  }, title && /*#__PURE__*/React__default.createElement("h2", {
@@ -156,12 +163,13 @@ CoachmarkStackHome.propTypes = {
156
163
  * If a stepped animation is required, use `{filePaths}`.
157
164
  *
158
165
  * @see {@link MEDIA_PROP_TYPE}.
166
+ * @deprecated please use the `renderMedia` prop
159
167
  */
160
- media: PropTypes.oneOfType([PropTypes.shape({
168
+ media: deprecateProp(PropTypes.oneOfType([PropTypes.shape({
161
169
  render: PropTypes.func
162
170
  }), PropTypes.shape({
163
171
  filePaths: PropTypes.arrayOf(PropTypes.string)
164
- })]),
172
+ })]), ''),
165
173
  /**
166
174
  * The labels used to link to the stackable Coachmarks.
167
175
  */
@@ -185,6 +193,10 @@ CoachmarkStackHome.propTypes = {
185
193
  * element is hidden or component is unmounted, the CoachmarkStackHome will disappear.
186
194
  */
187
195
  portalTarget: PropTypes.string,
196
+ /**
197
+ * Optional prop to render any media like images or animated media.
198
+ */
199
+ renderMedia: PropTypes.func,
188
200
  /**
189
201
  * The title of the Coachmark.
190
202
  */
@@ -8,7 +8,7 @@ import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'r
8
8
  import { ExperimentalSecondarySubmit } from './CreateTearsheetStep';
9
9
  export interface StepsContextType {
10
10
  currentStep: number;
11
- setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit>>;
11
+ setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit | undefined>>;
12
12
  setIsDisabled: Dispatch<SetStateAction<boolean>>;
13
13
  setOnPrevious: (fn: any) => void;
14
14
  setOnNext: (fn: any) => void;
@@ -105,7 +105,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
105
105
  _useState24 = _slicedToArray(_useState23, 2),
106
106
  lastIncludedStep = _useState24[0],
107
107
  setLastIncludedStep = _useState24[1];
108
- var _useState25 = useState({}),
108
+ var _useState25 = useState(),
109
109
  _useState26 = _slicedToArray(_useState25, 2),
110
110
  experimentalSecondarySubmit = _useState26[0],
111
111
  setExperimentalSecondarySubmit = _useState26[1];
@@ -176,7 +176,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
176
176
  isSubmitting: isSubmitting,
177
177
  componentBlockClass: blockClass,
178
178
  experimentalSecondarySubmit: experimentalSecondarySubmit,
179
- experimentalSecondarySubmitText: experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
179
+ experimentalSecondarySubmitText: experimentalSecondarySubmit !== null && experimentalSecondarySubmit !== void 0 && experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
180
180
  setCreateComponentActions: setCreateTearsheetActions
181
181
  });
182
182
  return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, getDevtoolsProps(componentName), rest, {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useRef, useContext, useState, useEffect, isValidElement } from 'react';
10
10
  import PropTypes from '../../_virtual/index.js';
11
11
  import cx from 'classnames';
@@ -82,7 +82,7 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
82
82
  useEffect(function () {
83
83
  if (stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep) && (previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)) {
84
84
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnMount(onMount);
85
- stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(_objectSpread2({}, experimentalSecondarySubmit));
85
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
86
86
  }
87
87
  }, [onMount, experimentalSecondarySubmit, stepsContext, stepNumber, previousState === null || previousState === void 0 ? void 0 : previousState.currentStep]);
88
88
 
@@ -118,8 +118,11 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
118
118
  stepsContext.setIsDisabled(!!disableSubmit);
119
119
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnNext(onNext); // needs to be updated here otherwise there could be stale state values from only initially setting onNext
120
120
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
121
+
122
+ //Handle props for experimentalSecondarySubmit button, depending on state change
123
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
121
124
  }
122
- }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue]);
125
+ }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue, experimentalSecondarySubmit]);
123
126
  var renderDescription = function renderDescription() {
124
127
  if (description) {
125
128
  if (typeof description === 'string') {
@@ -6,11 +6,10 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default from 'react';
9
+ import React__default, { useId } from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
- import uuidv4 from '../../../global/js/utils/uuidv4.js';
14
13
 
15
14
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _path4;
16
15
  var _excluded = ["theme", "size", "alt"];
@@ -22,7 +21,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
22
21
  size = _ref.size,
23
22
  alt = _ref.alt,
24
23
  rest = _objectWithoutProperties(_ref, _excluded);
25
- var svgId = uuidv4();
24
+ var svgId = useId();
26
25
  return /*#__PURE__*/React__default.createElement("svg", _extends({}, rest, {
27
26
  xmlns: "http://www.w3.org/2000/svg",
28
27
  width: 80,
@@ -6,11 +6,10 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default from 'react';
9
+ import React__default, { useId } from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
- import uuidv4 from '../../../global/js/utils/uuidv4.js';
14
13
 
15
14
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _path, _path2, _path3, _path4, _path5, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path6, _path7, _path8;
16
15
  var _excluded = ["theme", "size", "alt"];
@@ -22,7 +21,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
22
21
  size = _ref.size,
23
22
  alt = _ref.alt,
24
23
  rest = _objectWithoutProperties(_ref, _excluded);
25
- var svgId = uuidv4();
24
+ var svgId = useId();
26
25
  return /*#__PURE__*/React__default.createElement("svg", _extends({}, rest, {
27
26
  xmlns: "http://www.w3.org/2000/svg",
28
27
  width: 80,
@@ -6,11 +6,10 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default from 'react';
9
+ import React__default, { useId } from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
- import uuidv4 from '../../../global/js/utils/uuidv4.js';
14
13
 
15
14
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _path, _path2, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _stop49, _stop50, _stop51, _stop52, _stop53, _stop54, _stop55, _stop56, _stop57, _stop58, _stop59, _stop60, _stop61, _stop62, _stop63, _stop64, _stop65, _stop66, _path3;
16
15
  var _excluded = ["theme", "size", "alt"];
@@ -22,7 +21,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
22
21
  size = _ref.size,
23
22
  alt = _ref.alt,
24
23
  rest = _objectWithoutProperties(_ref, _excluded);
25
- var svgId = uuidv4();
24
+ var svgId = useId();
26
25
  return /*#__PURE__*/React__default.createElement("svg", _extends({}, rest, {
27
26
  xmlns: "http://www.w3.org/2000/svg",
28
27
  xmlnsXlink: "http://www.w3.org/1999/xlink",