@carbon/ibm-products 2.55.0 → 2.56.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.
- package/css/index-full-carbon.css +1247 -653
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +945 -44
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +568 -542
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +636 -544
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
- package/es/components/Card/Card.d.ts +3 -3
- package/es/components/Card/Card.js +10 -9
- package/es/components/Card/CardHeader.d.ts +7 -7
- package/es/components/Card/CardHeader.js +14 -12
- package/es/components/Coachmark/Coachmark.d.ts +5 -0
- package/es/components/Coachmark/Coachmark.js +11 -3
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +19 -5
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
- package/es/components/EmptyStates/assets/ErrorIllustration.js +2 -3
- package/es/components/EmptyStates/assets/NoDataIllustration.js +2 -3
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +2 -3
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +2 -3
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +2 -3
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
- package/es/components/FullPageError/FullPageError.js +7 -7
- package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error403SVG.js +4 -6
- package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error404SVG.js +4 -6
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/es/components/InlineTip/InlineTip.d.ts +5 -0
- package/es/components/InlineTip/InlineTip.js +17 -8
- package/es/components/ProductiveCard/ProductiveCard.d.ts +3 -3
- package/es/components/ProductiveCard/ProductiveCard.js +4 -4
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- package/es/global/js/package-settings.d.ts +1 -1
- package/es/global/js/package-settings.js +1 -1
- package/es/settings.d.ts +1 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
- package/lib/components/Card/Card.d.ts +3 -3
- package/lib/components/Card/Card.js +10 -9
- package/lib/components/Card/CardHeader.d.ts +7 -7
- package/lib/components/Card/CardHeader.js +14 -12
- package/lib/components/Coachmark/Coachmark.d.ts +5 -0
- package/lib/components/Coachmark/Coachmark.js +11 -3
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +18 -4
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
- package/lib/components/FullPageError/FullPageError.js +7 -7
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/lib/components/InlineTip/InlineTip.d.ts +5 -0
- package/lib/components/InlineTip/InlineTip.js +17 -8
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +3 -3
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -4
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- package/lib/global/js/package-settings.d.ts +1 -1
- package/lib/global/js/package-settings.js +1 -1
- package/lib/settings.d.ts +1 -1
- package/package.json +5 -5
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
- package/scss/components/Card/_card.scss +19 -5
- package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
- package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
- package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
- package/scss/components/Datagrid/styles/_datagrid.scss +5 -8
- package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
- package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
- package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
- package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
- package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
- package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
- package/scss/components/FullPageError/_full-page-error.scss +1 -1
- package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
- package/scss/components/Guidebanner/_guidebanner.scss +4 -4
- package/scss/components/HTTPErrors/_http-errors.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +4 -4
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
- package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
- package/scss/components/OptionsTile/_options-tile.scss +6 -8
- package/scss/components/PageHeader/_page-header.scss +20 -13
- package/scss/components/ProductiveCard/_productive-card.scss +2 -2
- package/scss/components/SidePanel/_side-panel.scss +11 -11
- package/scss/components/StatusIcon/_status-icon.scss +9 -7
- package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +5 -5
- package/scss/components/UserAvatar/_user-avatar.scss +5 -3
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
- package/scss/components/WebTerminal/_web-terminal.scss +2 -2
- package/scss/components/_index-released-only.scss +1 -0
- package/telemetry.yml +3 -0
@@ -18,7 +18,7 @@ var CardFooter = require('./CardFooter.js');
|
|
18
18
|
var settings = require('../../settings.js');
|
19
19
|
|
20
20
|
var _Incomplete, _CheckmarkOutline;
|
21
|
-
var _excluded = ["actionIcons", "actionsPlacement", "
|
21
|
+
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"],
|
22
22
|
_excluded2 = ["id", "itemText"],
|
23
23
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
24
24
|
var componentName = 'Card';
|
@@ -27,7 +27,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27
27
|
actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
|
28
28
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
29
29
|
actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
|
30
|
-
|
30
|
+
decorator = _ref.decorator,
|
31
31
|
_ref$metadata = _ref.metadata,
|
32
32
|
metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
|
33
33
|
children = _ref.children,
|
@@ -170,10 +170,11 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
170
170
|
return icons;
|
171
171
|
};
|
172
172
|
var getCardProps = function getCardProps() {
|
173
|
+
var _decorator$type, _decorator$type2;
|
173
174
|
var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
|
174
175
|
var cardProps = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
|
175
176
|
ref: ref,
|
176
|
-
className: cx(blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.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"), !!
|
177
|
+
className: cx(blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.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)
|
177
178
|
}, clickable && clickableProps);
|
178
179
|
return cardProps;
|
179
180
|
};
|
@@ -189,7 +190,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
189
190
|
var getHeaderProps = function getHeaderProps() {
|
190
191
|
return {
|
191
192
|
actions: actionsPlacement === 'top' ? getActions() : '',
|
192
|
-
|
193
|
+
decorator: decorator,
|
193
194
|
noActionIcons: getIcons().length > 0 && actionsPlacement === 'top' ? false : true,
|
194
195
|
actionsPlacement: actionsPlacement,
|
195
196
|
onPrimaryButtonClick: onPrimaryButtonClick,
|
@@ -273,13 +274,13 @@ Card.propTypes = {
|
|
273
274
|
href: index.default.string
|
274
275
|
})),
|
275
276
|
actionsPlacement: index.default.oneOf(['top', 'bottom']),
|
276
|
-
/**
|
277
|
-
* 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.
|
278
|
-
*/
|
279
|
-
aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
|
280
277
|
children: index.default.node,
|
281
278
|
className: index.default.string,
|
282
279
|
clickZone: index.default.oneOf(['one', 'two', 'three']),
|
280
|
+
/**
|
281
|
+
* Optional prop that allows you to pass any component.
|
282
|
+
*/
|
283
|
+
decorator: index.default.oneOfType([index.default.node, index.default.bool]),
|
283
284
|
/**@ts-ignore */
|
284
285
|
description: index.default.oneOfType([index.default.string, index.default.node]),
|
285
286
|
disabled: index.default.bool,
|
@@ -328,7 +329,7 @@ Card.propTypes = {
|
|
328
329
|
/**
|
329
330
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
330
331
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
331
|
-
* @deprecated please use the `
|
332
|
+
* @deprecated please use the `decorator` prop
|
332
333
|
*/
|
333
334
|
slug: index.default.oneOfType([index.default.node, index.default.bool]),
|
334
335
|
status: index.default.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
|
6
|
+
* Optional prop that allows you to pass any component.
|
7
7
|
*/
|
8
|
-
|
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 `
|
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,
|
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
|
44
|
+
* Optional prop that allows you to pass any component.
|
45
45
|
*/
|
46
|
-
|
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 `
|
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>>;
|
@@ -22,7 +22,7 @@ var defaults = {
|
|
22
22
|
};
|
23
23
|
var CardHeader = function CardHeader(_ref) {
|
24
24
|
var actions = _ref.actions,
|
25
|
-
|
25
|
+
decorator = _ref.decorator,
|
26
26
|
noActionIcons = _ref.noActionIcons,
|
27
27
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
28
28
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
@@ -67,13 +67,13 @@ var CardHeader = function CardHeader(_ref) {
|
|
67
67
|
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",
|
68
68
|
fill: "#161616"
|
69
69
|
})));
|
70
|
-
var
|
71
|
-
if (
|
72
|
-
if (inClickableCard || typeof
|
73
|
-
|
70
|
+
var normalizedDecorator = null;
|
71
|
+
if (decorator || slug) {
|
72
|
+
if (inClickableCard || typeof decorator === 'boolean' || typeof slug === 'boolean') {
|
73
|
+
normalizedDecorator = hollowAiIcon;
|
74
74
|
} else {
|
75
|
-
var element =
|
76
|
-
|
75
|
+
var element = decorator || slug;
|
76
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(element, {
|
77
77
|
size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
|
78
78
|
});
|
79
79
|
}
|
@@ -81,7 +81,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
81
81
|
return /*#__PURE__*/React.createElement("div", {
|
82
82
|
className: headerClasses
|
83
83
|
}, /*#__PURE__*/React.createElement("div", {
|
84
|
-
className: cx(["".concat(headerClass, "-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-
|
84
|
+
className: cx(["".concat(headerClass, "-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-decorator"), !!decorator), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
85
85
|
}, /*#__PURE__*/React.createElement("div", {
|
86
86
|
className: "".concat(blockClass, "__title-container")
|
87
87
|
}, label && /*#__PURE__*/React.createElement("p", {
|
@@ -107,15 +107,17 @@ var CardHeader = function CardHeader(_ref) {
|
|
107
107
|
onClick: onPrimaryButtonClick,
|
108
108
|
className: actionGhostButtonClass,
|
109
109
|
disabled: primaryButtonDisabled
|
110
|
-
}, primaryButtonText)),
|
110
|
+
}, primaryButtonText)), slug ? normalizedDecorator : decorator ? /*#__PURE__*/React.createElement("div", {
|
111
|
+
className: "".concat(blockClass, "__header__inner-wrapper--decorator")
|
112
|
+
}, normalizedDecorator) : ''));
|
111
113
|
};
|
112
114
|
/**@ts-ignore */
|
113
115
|
CardHeader.propTypes = {
|
114
116
|
actions: index.default.oneOfType([index.default.array, index.default.node]),
|
115
117
|
/**
|
116
|
-
* Optional prop that
|
118
|
+
* Optional prop that allows you to pass any component.
|
117
119
|
*/
|
118
|
-
|
120
|
+
decorator: index.default.oneOfType([index.default.node, index.default.bool]),
|
119
121
|
description: index.default.oneOfType([index.default.string, index.default.object, index.default.node]),
|
120
122
|
hasActions: index.default.bool,
|
121
123
|
/**
|
@@ -139,7 +141,7 @@ CardHeader.propTypes = {
|
|
139
141
|
/**
|
140
142
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
141
143
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
142
|
-
* @deprecated please use the `
|
144
|
+
* @deprecated please use the `decorator` prop
|
143
145
|
*/
|
144
146
|
slug: index.default.oneOfType([index.default.node, index.default.bool]),
|
145
147
|
title: index.default.oneOfType([index.default.string, index.default.object, index.default.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
|
@@ -22,7 +22,7 @@ var lodash = require('lodash');
|
|
22
22
|
var react = require('@carbon/react');
|
23
23
|
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
24
24
|
|
25
|
-
var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme"];
|
25
|
+
var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme", "isOpenByDefault"];
|
26
26
|
|
27
27
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
28
28
|
var blockClass = "".concat(settings.pkg.prefix, "--coachmark");
|
@@ -32,7 +32,8 @@ var defaults = {
|
|
32
32
|
align: 'bottom',
|
33
33
|
onClose: function onClose() {},
|
34
34
|
overlayKind: 'tooltip',
|
35
|
-
theme: 'light'
|
35
|
+
theme: 'light',
|
36
|
+
isOpenByDefault: false
|
36
37
|
};
|
37
38
|
/**
|
38
39
|
* Coachmarks are used to call out specific functionality or concepts
|
@@ -57,10 +58,12 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
57
58
|
target = _ref.target,
|
58
59
|
_ref$theme = _ref.theme,
|
59
60
|
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
61
|
+
_ref$isOpenByDefault = _ref.isOpenByDefault,
|
62
|
+
isOpenByDefault = _ref$isOpenByDefault === void 0 ? defaults.isOpenByDefault : _ref$isOpenByDefault,
|
60
63
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
61
64
|
var isBeacon = overlayKind === enums.COACHMARK_OVERLAY_KIND.TOOLTIP;
|
62
65
|
var isStacked = overlayKind === enums.COACHMARK_OVERLAY_KIND.STACKED;
|
63
|
-
var _useState = React.useState(isStacked),
|
66
|
+
var _useState = React.useState(isStacked || isOpenByDefault),
|
64
67
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
65
68
|
isOpen = _useState2[0],
|
66
69
|
setIsOpen = _useState2[1];
|
@@ -252,6 +255,11 @@ exports.Coachmark.propTypes = {
|
|
252
255
|
* Optional class name for this component.
|
253
256
|
*/
|
254
257
|
className: index.default.string,
|
258
|
+
/**
|
259
|
+
* Determines if the coachmark is open by default.
|
260
|
+
* Does nothing if `overlayKind=stacked`.
|
261
|
+
*/
|
262
|
+
isOpenByDefault: index.default.bool,
|
255
263
|
/**
|
256
264
|
* Function to call when the Coachmark closes.
|
257
265
|
*/
|
@@ -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
|
*/
|
@@ -22,7 +22,7 @@ var settings = require('../../settings.js');
|
|
22
22
|
require('../Coachmark/Coachmark.js');
|
23
23
|
var context = require('../Coachmark/utils/context.js');
|
24
24
|
|
25
|
-
var _excluded = ["className", "children", "isVisible", "media", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
|
25
|
+
var _excluded = ["className", "children", "isVisible", "media", "renderMedia", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
|
26
26
|
|
27
27
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
28
28
|
var blockClass = "".concat(settings.pkg.prefix, "--coachmark-overlay-elements");
|
@@ -55,6 +55,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
55
55
|
_ref$isVisible = _ref.isVisible,
|
56
56
|
isVisible = _ref$isVisible === void 0 ? defaults.isVisible : _ref$isVisible,
|
57
57
|
media = _ref.media,
|
58
|
+
renderMedia = _ref.renderMedia,
|
58
59
|
_ref$nextButtonText = _ref.nextButtonText,
|
59
60
|
nextButtonText = _ref$nextButtonText === void 0 ? defaults.nextButtonText : _ref$nextButtonText,
|
60
61
|
_ref$previousButtonLa = _ref.previousButtonLabel,
|
@@ -73,6 +74,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
73
74
|
currentProgStep = _useState4[0],
|
74
75
|
_setCurrentProgStep = _useState4[1];
|
75
76
|
var coachmark = context.useCoachmark();
|
77
|
+
var hasMedia = media || renderMedia;
|
76
78
|
var setCurrentProgStep = function setCurrentProgStep(value) {
|
77
79
|
if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
|
78
80
|
setTimeout(function () {
|
@@ -85,6 +87,11 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
85
87
|
var numProgSteps = React.Children.count(children);
|
86
88
|
var progStepFloor = 0;
|
87
89
|
var progStepCeil = numProgSteps - 1;
|
90
|
+
var renderMediaContent = React.useMemo(function () {
|
91
|
+
return renderMedia === null || renderMedia === void 0 ? void 0 : renderMedia({
|
92
|
+
playStep: currentProgStep
|
93
|
+
});
|
94
|
+
}, [currentProgStep, renderMedia]);
|
88
95
|
React.useEffect(function () {
|
89
96
|
// On mount, one of the two primary buttons ("next" or "close")
|
90
97
|
// will be rendered and must have focus. (a11y)
|
@@ -113,11 +120,13 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
113
120
|
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
114
121
|
}),
|
115
122
|
ref: ref
|
116
|
-
}, devtools.getDevtoolsProps(componentName)),
|
123
|
+
}, devtools.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.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
117
124
|
className: "".concat(blockClass, "__element-stepped-media"),
|
118
125
|
filePaths: media.filePaths,
|
119
126
|
playStep: currentProgStep
|
120
|
-
})
|
127
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
|
128
|
+
className: "".concat(blockClass, "__element-stepped-media")
|
129
|
+
}, renderMediaContent), numProgSteps === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React.createElement("div", {
|
121
130
|
className: cx("".concat(blockClass, "__footer"), 'coachmark-carousel-controls')
|
122
131
|
}, /*#__PURE__*/React.createElement(react.Button, _rollupPluginBabelHelpers.extends({
|
123
132
|
size: "sm"
|
@@ -196,6 +205,7 @@ exports.CoachmarkOverlayElements.propTypes = {
|
|
196
205
|
* The object describing an image in one of two shapes.
|
197
206
|
* If a single media element is required, use `{render}`.
|
198
207
|
* If a stepped animation is required, use `{filePaths}`.
|
208
|
+
* @deprecated please use the `renderMedia` prop
|
199
209
|
*/
|
200
210
|
/**@ts-ignore*/
|
201
211
|
media: index.default.oneOfType([index.default.shape({
|
@@ -210,5 +220,9 @@ exports.CoachmarkOverlayElements.propTypes = {
|
|
210
220
|
/**
|
211
221
|
* The label for the Previous button.
|
212
222
|
*/
|
213
|
-
previousButtonLabel: index.default.string
|
223
|
+
previousButtonLabel: index.default.string,
|
224
|
+
/**
|
225
|
+
* Optional prop to render any media like images or animated media.
|
226
|
+
*/
|
227
|
+
renderMedia: index.default.func
|
214
228
|
};
|
@@ -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
|
*/
|
@@ -19,9 +19,10 @@ var settings = require('../../settings.js');
|
|
19
19
|
var reactDom = require('react-dom');
|
20
20
|
var CoachmarkHeader = require('../Coachmark/CoachmarkHeader.js');
|
21
21
|
var SteppedAnimatedMedia = require('../SteppedAnimatedMedia/SteppedAnimatedMedia.js');
|
22
|
+
var propsHelper = require('../../global/js/utils/props-helper.js');
|
22
23
|
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
23
24
|
|
24
|
-
var _excluded = ["className", "description", "isOpen", "media", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
25
|
+
var _excluded = ["className", "description", "isOpen", "media", "renderMedia", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
25
26
|
// Carbon and package components we use.
|
26
27
|
/* TODO: @import(s) of carbon components and other package components. */
|
27
28
|
|
@@ -39,6 +40,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
39
40
|
description = _ref.description,
|
40
41
|
isOpen = _ref.isOpen,
|
41
42
|
media = _ref.media,
|
43
|
+
renderMedia = _ref.renderMedia,
|
42
44
|
navLinkLabels = _ref.navLinkLabels,
|
43
45
|
onClickNavItem = _ref.onClickNavItem,
|
44
46
|
_onClose = _ref.onClose,
|
@@ -51,6 +53,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
51
53
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
52
54
|
linkFocusIndex = _useState2[0],
|
53
55
|
setLinkFocusIndex = _useState2[1];
|
56
|
+
var hasMedia = media || renderMedia;
|
54
57
|
React.useEffect(function () {
|
55
58
|
setTimeout(function () {
|
56
59
|
if (isOpen && buttonFocusRef.current) {
|
@@ -92,13 +95,17 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
92
95
|
className: "".concat(overlayClass, "__body")
|
93
96
|
}, /*#__PURE__*/React.createElement("div", {
|
94
97
|
className: "".concat(overlayClass, "-element")
|
95
|
-
}, !
|
98
|
+
}, !hasMedia && /*#__PURE__*/React.createElement(icons.Idea, {
|
96
99
|
size: 20,
|
97
100
|
className: "".concat(blockClass, "__icon-idea")
|
98
|
-
}),
|
99
|
-
className: "".concat(
|
101
|
+
}), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
102
|
+
className: "".concat(blockClass, "__element-stepped-media"),
|
100
103
|
filePaths: media.filePaths,
|
101
104
|
playStep: 0
|
105
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
|
106
|
+
className: "".concat(blockClass, "__element-stepped-media")
|
107
|
+
}, renderMedia({
|
108
|
+
playStep: 0
|
102
109
|
})), /*#__PURE__*/React.createElement("div", {
|
103
110
|
className: "".concat(overlayClass, "-element__content")
|
104
111
|
}, title && /*#__PURE__*/React.createElement("h2", {
|
@@ -158,12 +165,13 @@ exports.CoachmarkStackHome.propTypes = {
|
|
158
165
|
* If a stepped animation is required, use `{filePaths}`.
|
159
166
|
*
|
160
167
|
* @see {@link MEDIA_PROP_TYPE}.
|
168
|
+
* @deprecated please use the `renderMedia` prop
|
161
169
|
*/
|
162
|
-
media: index.default.oneOfType([index.default.shape({
|
170
|
+
media: propsHelper.deprecateProp(index.default.oneOfType([index.default.shape({
|
163
171
|
render: index.default.func
|
164
172
|
}), index.default.shape({
|
165
173
|
filePaths: index.default.arrayOf(index.default.string)
|
166
|
-
})]),
|
174
|
+
})]), ''),
|
167
175
|
/**
|
168
176
|
* The labels used to link to the stackable Coachmarks.
|
169
177
|
*/
|
@@ -187,6 +195,10 @@ exports.CoachmarkStackHome.propTypes = {
|
|
187
195
|
* element is hidden or component is unmounted, the CoachmarkStackHome will disappear.
|
188
196
|
*/
|
189
197
|
portalTarget: index.default.string,
|
198
|
+
/**
|
199
|
+
* Optional prop to render any media like images or animated media.
|
200
|
+
*/
|
201
|
+
renderMedia: index.default.func,
|
190
202
|
/**
|
191
203
|
* The title of the Coachmark.
|
192
204
|
*/
|
@@ -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;
|
@@ -107,7 +107,7 @@ exports.CreateTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
107
107
|
_useState24 = _rollupPluginBabelHelpers.slicedToArray(_useState23, 2),
|
108
108
|
lastIncludedStep = _useState24[0],
|
109
109
|
setLastIncludedStep = _useState24[1];
|
110
|
-
var _useState25 = React.useState(
|
110
|
+
var _useState25 = React.useState(),
|
111
111
|
_useState26 = _rollupPluginBabelHelpers.slicedToArray(_useState25, 2),
|
112
112
|
experimentalSecondarySubmit = _useState26[0],
|
113
113
|
setExperimentalSecondarySubmit = _useState26[1];
|
@@ -178,7 +178,7 @@ exports.CreateTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
178
178
|
isSubmitting: isSubmitting,
|
179
179
|
componentBlockClass: blockClass,
|
180
180
|
experimentalSecondarySubmit: experimentalSecondarySubmit,
|
181
|
-
experimentalSecondarySubmitText: experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
|
181
|
+
experimentalSecondarySubmitText: experimentalSecondarySubmit !== null && experimentalSecondarySubmit !== void 0 && experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
|
182
182
|
setCreateComponentActions: setCreateTearsheetActions
|
183
183
|
});
|
184
184
|
return /*#__PURE__*/React.createElement(TearsheetShell.TearsheetShell, _rollupPluginBabelHelpers.extends({}, devtools.getDevtoolsProps(componentName), rest, {
|
@@ -84,7 +84,7 @@ exports.CreateTearsheetStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
84
84
|
React.useEffect(function () {
|
85
85
|
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)) {
|
86
86
|
stepsContext === null || stepsContext === void 0 || stepsContext.setOnMount(onMount);
|
87
|
-
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(
|
87
|
+
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
|
88
88
|
}
|
89
89
|
}, [onMount, experimentalSecondarySubmit, stepsContext, stepNumber, previousState === null || previousState === void 0 ? void 0 : previousState.currentStep]);
|
90
90
|
|
@@ -120,8 +120,11 @@ exports.CreateTearsheetStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
120
120
|
stepsContext.setIsDisabled(!!disableSubmit);
|
121
121
|
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
|
122
122
|
stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
|
123
|
+
|
124
|
+
//Handle props for experimentalSecondarySubmit button, depending on state change
|
125
|
+
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
|
123
126
|
}
|
124
|
-
}, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue]);
|
127
|
+
}, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue, experimentalSecondarySubmit]);
|
125
128
|
var renderDescription = function renderDescription() {
|
126
129
|
if (description) {
|
127
130
|
if (typeof description === 'string') {
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
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;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
width: 80,
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _path, _path2, _path3, _path4, _path5, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path6, _path7, _path8;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
width: 80,
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
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;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _path, _path2, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _path3;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
width: 80,
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path, _path2, _path3, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _path4;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
width: 80,
|
@@ -14,7 +14,6 @@ var React = require('react');
|
|
14
14
|
var index = require('../../../_virtual/index.js');
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
|
-
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
18
17
|
|
19
18
|
var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _linearGradient, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _path4;
|
20
19
|
var _excluded = ["theme", "size", "alt"];
|
@@ -26,7 +25,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
26
25
|
size = _ref.size,
|
27
26
|
alt = _ref.alt,
|
28
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
29
|
-
var svgId =
|
28
|
+
var svgId = React.useId();
|
30
29
|
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
|
31
30
|
xmlns: "http://www.w3.org/2000/svg",
|
32
31
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
@@ -13,10 +13,6 @@ export interface ExpressiveCardProps extends PropsWithChildren {
|
|
13
13
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines. Note- href will supersede onClick
|
14
14
|
*/
|
15
15
|
actionIcons?: ActionIcon[];
|
16
|
-
/**
|
17
|
-
* 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.
|
18
|
-
*/
|
19
|
-
aiLabel?: ReactNode | boolean;
|
20
16
|
/**
|
21
17
|
* Content that shows in the body of the card
|
22
18
|
*/
|
@@ -24,6 +20,10 @@ export interface ExpressiveCardProps extends PropsWithChildren {
|
|
24
20
|
* Optional user provided class
|
25
21
|
*/
|
26
22
|
className?: string;
|
23
|
+
/**
|
24
|
+
* Optional prop that allows you to pass any component.
|
25
|
+
*/
|
26
|
+
decorator?: ReactNode | boolean;
|
27
27
|
/**
|
28
28
|
* Optional header description
|
29
29
|
*/
|
@@ -91,7 +91,7 @@ export interface ExpressiveCardProps extends PropsWithChildren {
|
|
91
91
|
/**
|
92
92
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
93
93
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
94
|
-
* @deprecated please use the `
|
94
|
+
* @deprecated please use the `decorator` prop
|
95
95
|
*/
|
96
96
|
slug?: ReactNode | boolean;
|
97
97
|
/**
|