@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
@@ -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, _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;
|
16
15
|
var _excluded = ["theme", "size", "alt"];
|
@@ -22,7 +21,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
22
21
|
size = _ref.size,
|
23
22
|
alt = _ref.alt,
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
25
|
-
var svgId =
|
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, _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;
|
16
15
|
var _excluded = ["theme", "size", "alt"];
|
@@ -22,7 +21,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
|
|
22
21
|
size = _ref.size,
|
23
22
|
alt = _ref.alt,
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
25
|
-
var svgId =
|
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, _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;
|
16
15
|
var _excluded = ["theme", "size", "alt"];
|
@@ -22,7 +21,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
22
21
|
size = _ref.size,
|
23
22
|
alt = _ref.alt,
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
25
|
-
var svgId =
|
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",
|
@@ -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
|
/**
|
@@ -36,10 +36,6 @@ ExpressiveCard.propTypes = {
|
|
36
36
|
iconDescription: PropTypes.string,
|
37
37
|
href: PropTypes.string
|
38
38
|
})),
|
39
|
-
/**
|
40
|
-
* 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.
|
41
|
-
*/
|
42
|
-
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
43
39
|
/**
|
44
40
|
* Content that shows in the body of the card
|
45
41
|
*/
|
@@ -48,6 +44,10 @@ ExpressiveCard.propTypes = {
|
|
48
44
|
* Optional user provided class
|
49
45
|
*/
|
50
46
|
className: PropTypes.string,
|
47
|
+
/**
|
48
|
+
* Optional prop that allows you to pass any component.
|
49
|
+
*/
|
50
|
+
decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
51
51
|
/**
|
52
52
|
* Optional header description
|
53
53
|
*/
|
@@ -118,7 +118,7 @@ ExpressiveCard.propTypes = {
|
|
118
118
|
/**
|
119
119
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
120
120
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
121
|
-
* @deprecated please use the `
|
121
|
+
* @deprecated please use the `decorator` prop
|
122
122
|
*/
|
123
123
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
124
124
|
/**
|
@@ -16,6 +16,7 @@ import cx from 'classnames';
|
|
16
16
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
17
17
|
import { pkg } from '../../settings.js';
|
18
18
|
|
19
|
+
var _span;
|
19
20
|
var _excluded = ["children", "className", "description", "label", "kind", "title"];
|
20
21
|
|
21
22
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -42,20 +43,17 @@ var FullPageError = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
42
43
|
var errorData = {
|
43
44
|
403: {
|
44
45
|
svg: /*#__PURE__*/React__default.createElement(Error403SVG, {
|
45
|
-
className: "".concat(blockClass, "__svg ").concat(blockClass, "__403")
|
46
|
-
title: title
|
46
|
+
className: "".concat(blockClass, "__svg ").concat(blockClass, "__403")
|
47
47
|
})
|
48
48
|
},
|
49
49
|
404: {
|
50
50
|
svg: /*#__PURE__*/React__default.createElement(Error404SVG, {
|
51
|
-
className: "".concat(blockClass, "__svg ").concat(blockClass, "__404")
|
52
|
-
title: title
|
51
|
+
className: "".concat(blockClass, "__svg ").concat(blockClass, "__404")
|
53
52
|
})
|
54
53
|
},
|
55
54
|
custom: {
|
56
55
|
svg: /*#__PURE__*/React__default.createElement(ErrorGenericSVG, {
|
57
|
-
className: "".concat(blockClass, "__svg ").concat(blockClass, "__custom")
|
58
|
-
title: title
|
56
|
+
className: "".concat(blockClass, "__svg ").concat(blockClass, "__custom")
|
59
57
|
})
|
60
58
|
}
|
61
59
|
};
|
@@ -76,7 +74,9 @@ var FullPageError = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
76
74
|
className: "".concat(blockClass, "__title")
|
77
75
|
}, /*#__PURE__*/React__default.createElement("span", {
|
78
76
|
className: "".concat(blockClass, "__label")
|
79
|
-
},
|
77
|
+
}, _span || (_span = /*#__PURE__*/React__default.createElement("span", {
|
78
|
+
"aria-hidden": "true"
|
79
|
+
}, "\u21B3 ")), label), /*#__PURE__*/React__default.createElement("span", null, title)), /*#__PURE__*/React__default.createElement("p", {
|
80
80
|
className: "".concat(blockClass, "__description")
|
81
81
|
}, description), /*#__PURE__*/React__default.createElement("div", {
|
82
82
|
className: "".concat(blockClass, "__body")
|
@@ -1,11 +1,9 @@
|
|
1
|
-
export function Error403SVG({ className
|
1
|
+
export function Error403SVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace Error403SVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var Error403SVG = function Error403SVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 750 570",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_0_2401)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -710,8 +709,7 @@ var Error403SVG = function Error403SVG(_ref) {
|
|
710
709
|
// in alphabetical order (for consistency).
|
711
710
|
// See https://www.npmjs.com/package/prop-types#usage.
|
712
711
|
Error403SVG.propTypes = {
|
713
|
-
className: propTypesExports.string
|
714
|
-
title: propTypesExports.string
|
712
|
+
className: propTypesExports.string
|
715
713
|
};
|
716
714
|
|
717
715
|
export { Error403SVG };
|
@@ -1,11 +1,9 @@
|
|
1
|
-
export function Error404SVG({ className
|
1
|
+
export function Error404SVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace Error404SVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var Error404SVG = function Error404SVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 751 549",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_0_2285)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -619,8 +618,7 @@ var Error404SVG = function Error404SVG(_ref) {
|
|
619
618
|
// in alphabetical order (for consistency).
|
620
619
|
// See https://www.npmjs.com/package/prop-types#usage.
|
621
620
|
Error404SVG.propTypes = {
|
622
|
-
className: propTypesExports.string
|
623
|
-
title: propTypesExports.string
|
621
|
+
className: propTypesExports.string
|
624
622
|
};
|
625
623
|
|
626
624
|
export { Error404SVG };
|
@@ -1,11 +1,9 @@
|
|
1
|
-
export function ErrorGenericSVG({ className
|
1
|
+
export function ErrorGenericSVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace ErrorGenericSVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 750 506",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_203_144)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -710,8 +709,7 @@ var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
|
|
710
709
|
// in alphabetical order (for consistency).
|
711
710
|
// See https://www.npmjs.com/package/prop-types#usage.
|
712
711
|
ErrorGenericSVG.propTypes = {
|
713
|
-
className: propTypesExports.string
|
714
|
-
title: propTypesExports.string
|
712
|
+
className: propTypesExports.string
|
715
713
|
};
|
716
714
|
|
717
715
|
export { ErrorGenericSVG };
|
@@ -51,8 +51,13 @@ export interface InlineTipProps {
|
|
51
51
|
* - If a stepped animation is required, use `{filePaths}`.
|
52
52
|
*
|
53
53
|
* Enabling `media` disables the `collapsible` feature.
|
54
|
+
* @deprecated please use the `renderMedia` prop
|
54
55
|
*/
|
55
56
|
media?: MediaType;
|
57
|
+
/**
|
58
|
+
* Optional prop to render any media like images or any animated media.
|
59
|
+
*/
|
60
|
+
renderMedia?: () => ReactNode;
|
56
61
|
/**
|
57
62
|
* Set to `true` to arrange the information in a format
|
58
63
|
* that is easier to read in a limited space.
|
@@ -18,7 +18,7 @@ import { pkg } from '../../settings.js';
|
|
18
18
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
19
19
|
|
20
20
|
var _Close, _Idea, _Crossroads;
|
21
|
-
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
21
|
+
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "renderMedia", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
22
22
|
|
23
23
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
24
24
|
var blockClass = "".concat(pkg.prefix, "--inline-tip");
|
@@ -56,6 +56,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
56
56
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
57
57
|
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
58
58
|
media = _ref.media,
|
59
|
+
renderMedia = _ref.renderMedia,
|
59
60
|
_ref$narrow = _ref.narrow,
|
60
61
|
narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
|
61
62
|
onClick = _ref.onClick,
|
@@ -66,6 +67,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
66
67
|
_ref$withLeftGutter = _ref.withLeftGutter,
|
67
68
|
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
68
69
|
rest = _objectWithoutProperties(_ref, _excluded);
|
70
|
+
var hasMedia = renderMedia || media;
|
69
71
|
var _useState = useState(collapsible),
|
70
72
|
_useState2 = _slicedToArray(_useState, 2),
|
71
73
|
isCollapsed = _useState2[0],
|
@@ -75,7 +77,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
75
77
|
return getComponentText(React__default.Children.toArray(children));
|
76
78
|
}, [children]);
|
77
79
|
var childrenToRender = children;
|
78
|
-
if (!
|
80
|
+
if (!hasMedia && collapsible && isCollapsed) {
|
79
81
|
childrenToRender = /*#__PURE__*/React__default.createElement("p", {
|
80
82
|
className: "".concat(blockClass, "__preview-text")
|
81
83
|
}, previewText);
|
@@ -87,7 +89,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
87
89
|
}, [collapsible]);
|
88
90
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
89
91
|
"aria-labelledby": labelId,
|
90
|
-
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"),
|
92
|
+
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), hasMedia && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
|
91
93
|
ref: ref,
|
92
94
|
role: "complementary"
|
93
95
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("div", {
|
@@ -100,7 +102,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
100
102
|
size: "lg"
|
101
103
|
}, _Close || (_Close = /*#__PURE__*/React__default.createElement(Close, {
|
102
104
|
size: 16
|
103
|
-
})))), (!
|
105
|
+
})))), (!hasMedia && narrow || !narrow) && /*#__PURE__*/React__default.createElement("div", {
|
104
106
|
className: "".concat(blockClass, "__icon-idea"),
|
105
107
|
tabIndex: -1
|
106
108
|
}, _Idea || (_Idea = /*#__PURE__*/React__default.createElement(Idea, {
|
@@ -116,7 +118,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
116
118
|
className: "".concat(blockClass, "__secondary-btn")
|
117
119
|
}, action)), (collapsible || tertiaryButtonLabel) && /*#__PURE__*/React__default.createElement("footer", {
|
118
120
|
className: "".concat(blockClass, "__footer")
|
119
|
-
}, collapsible && !
|
121
|
+
}, collapsible && !hasMedia && /*#__PURE__*/React__default.createElement(Button, {
|
120
122
|
className: "".concat(blockClass, "__toggle-btn"),
|
121
123
|
kind: "ghost",
|
122
124
|
size: "md",
|
@@ -135,12 +137,14 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
135
137
|
size: 16
|
136
138
|
}));
|
137
139
|
}
|
138
|
-
}, tertiaryButtonLabel))),
|
140
|
+
}, tertiaryButtonLabel))), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && /*#__PURE__*/React__default.createElement("div", {
|
139
141
|
className: "".concat(blockClass, "__media")
|
140
|
-
}, media.render()) : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
142
|
+
}, media.render()), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
141
143
|
className: "".concat(blockClass, "__media"),
|
142
144
|
filePaths: media.filePaths
|
143
|
-
})
|
145
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
146
|
+
className: "".concat(blockClass, "__media")
|
147
|
+
}, renderMedia()));
|
144
148
|
});
|
145
149
|
InlineTip = pkg.checkComponentEnabled(InlineTip, componentName);
|
146
150
|
InlineTip.displayName = componentName;
|
@@ -186,6 +190,7 @@ InlineTip.propTypes = {
|
|
186
190
|
* - If a stepped animation is required, use `{filePaths}`.
|
187
191
|
*
|
188
192
|
* Enabling `media` disables the `collapsible` feature.
|
193
|
+
* @deprecated please use the `renderMedia` prop
|
189
194
|
*/
|
190
195
|
/**@ts-ignore*/
|
191
196
|
media: PropTypes.oneOfType([PropTypes.shape({
|
@@ -206,6 +211,10 @@ InlineTip.propTypes = {
|
|
206
211
|
* Function to call when the InlineTip is closed via the "X" button.
|
207
212
|
*/
|
208
213
|
onClose: PropTypes.func,
|
214
|
+
/**
|
215
|
+
* Optional prop to render any media like images or animated media.
|
216
|
+
*/
|
217
|
+
renderMedia: PropTypes.func,
|
209
218
|
/**
|
210
219
|
* Defining the label will show a the tertiary button with the crossroads icon.
|
211
220
|
* You will still need to define the `onClose` method to trigger a callback.
|
@@ -22,9 +22,9 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
22
22
|
*/
|
23
23
|
actionIcons?: ActionIcon[];
|
24
24
|
/**
|
25
|
-
* Optional prop that
|
25
|
+
* Optional prop that allows you to pass any component.
|
26
26
|
*/
|
27
|
-
|
27
|
+
decorator?: ReactNode | boolean;
|
28
28
|
/**
|
29
29
|
* Determines if the action icons are on the top or bottom of the card
|
30
30
|
*/
|
@@ -108,7 +108,7 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
108
108
|
/**
|
109
109
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
110
110
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
111
|
-
* @deprecated please use the `
|
111
|
+
* @deprecated please use the `decorator` prop
|
112
112
|
*/
|
113
113
|
slug?: ReactNode | boolean;
|
114
114
|
/**
|
@@ -48,10 +48,6 @@ ProductiveCard.propTypes = {
|
|
48
48
|
* Determines if the action icons are on the top or bottom of the card
|
49
49
|
*/
|
50
50
|
actionsPlacement: PropTypes.oneOf(['top', 'bottom']),
|
51
|
-
/**
|
52
|
-
* 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.
|
53
|
-
*/
|
54
|
-
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
55
51
|
/**
|
56
52
|
* Content that shows in the body of the card
|
57
53
|
*/
|
@@ -64,6 +60,10 @@ ProductiveCard.propTypes = {
|
|
64
60
|
* Designates which zones of the card are clickable. Refer to design documentation for implementation guidelines
|
65
61
|
*/
|
66
62
|
clickZone: PropTypes.oneOf(['one', 'two', 'three']),
|
63
|
+
/**
|
64
|
+
* Optional prop that allows you to pass any component.
|
65
|
+
*/
|
66
|
+
decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
67
67
|
/**
|
68
68
|
* Optional header description
|
69
69
|
*/
|
@@ -43,6 +43,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
43
43
|
var backupRef = useRef(null);
|
44
44
|
var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
|
45
45
|
var localRefValue = localRef.current;
|
46
|
+
var filePathStr = filePaths === null || filePaths === void 0 ? void 0 : filePaths.join(); //converting the array to string will avoid unwanted useEffect trigger.
|
46
47
|
// load animation source
|
47
48
|
useEffect(function () {
|
48
49
|
var isJsonFile = function isJsonFile(filePath) {
|
@@ -85,7 +86,8 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
85
86
|
return _loadArtifact.apply(this, arguments);
|
86
87
|
}
|
87
88
|
loadArtifact();
|
88
|
-
|
89
|
+
// eslint-disable-next-line
|
90
|
+
}, [filePathStr]);
|
89
91
|
useEffect(function () {
|
90
92
|
var _window;
|
91
93
|
var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
|
@@ -66,6 +66,7 @@ declare namespace defaults {
|
|
66
66
|
let WebTerminal: boolean;
|
67
67
|
let WebTerminalContentWrapper: boolean;
|
68
68
|
let WebTerminalProvider: boolean;
|
69
|
+
let UserAvatar: boolean;
|
69
70
|
let Toolbar: boolean;
|
70
71
|
let ToolbarButton: boolean;
|
71
72
|
let ToolbarGroup: boolean;
|
@@ -115,7 +116,6 @@ declare namespace defaults {
|
|
115
116
|
let DescriptionListCell: boolean;
|
116
117
|
let DescriptionListRow: boolean;
|
117
118
|
let SearchBar: boolean;
|
118
|
-
let UserAvatar: boolean;
|
119
119
|
let EmptyStateV2: boolean;
|
120
120
|
let Guidebanner: boolean;
|
121
121
|
let GuidebannerElement: boolean;
|
@@ -64,6 +64,7 @@ var defaults = {
|
|
64
64
|
WebTerminal: true,
|
65
65
|
WebTerminalContentWrapper: true,
|
66
66
|
WebTerminalProvider: true,
|
67
|
+
UserAvatar: true,
|
67
68
|
// other public components not yet reviewed and released:
|
68
69
|
Toolbar: false,
|
69
70
|
ToolbarButton: false,
|
@@ -117,7 +118,6 @@ var defaults = {
|
|
117
118
|
DescriptionListCell: false,
|
118
119
|
DescriptionListRow: false,
|
119
120
|
SearchBar: false,
|
120
|
-
UserAvatar: false,
|
121
121
|
/* new component flags here - comment used by generate CLI */
|
122
122
|
|
123
123
|
// Onboarding components not yet reviewed and released:
|
package/es/settings.d.ts
CHANGED
@@ -52,6 +52,7 @@ export const pkg: {
|
|
52
52
|
WebTerminal: boolean;
|
53
53
|
WebTerminalContentWrapper: boolean;
|
54
54
|
WebTerminalProvider: boolean;
|
55
|
+
UserAvatar: boolean;
|
55
56
|
Toolbar: boolean;
|
56
57
|
ToolbarButton: boolean;
|
57
58
|
ToolbarGroup: boolean;
|
@@ -101,7 +102,6 @@ export const pkg: {
|
|
101
102
|
DescriptionListCell: boolean;
|
102
103
|
DescriptionListRow: boolean;
|
103
104
|
SearchBar: boolean;
|
104
|
-
UserAvatar: boolean;
|
105
105
|
EmptyStateV2: boolean;
|
106
106
|
Guidebanner: boolean;
|
107
107
|
GuidebannerElement: boolean;
|
@@ -63,12 +63,20 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
63
63
|
// eslint-disable-next-line react/prop-types
|
64
64
|
var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
|
65
65
|
var overflowItems = _ref2.overflowItems;
|
66
|
+
var handleClick = function handleClick(evt, item) {
|
67
|
+
var _item$props, _item$props2, _item$props2$onClick;
|
68
|
+
if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
|
69
|
+
window.location.href = item.props.href;
|
70
|
+
}
|
71
|
+
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);
|
72
|
+
};
|
66
73
|
return /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
|
67
74
|
key: "breadcrumb-overflow-".concat(internalId.current)
|
75
|
+
}, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
|
76
|
+
enableV12Overflowmenu: true
|
68
77
|
}, /*#__PURE__*/React.createElement(react.OverflowMenu, {
|
69
|
-
align: overflowTooltipAlign,
|
70
78
|
"aria-label": overflowAriaLabel,
|
71
|
-
|
79
|
+
label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
|
72
80
|
,
|
73
81
|
renderIcon: function renderIcon(props) {
|
74
82
|
return /*#__PURE__*/React.createElement(icons.OverflowMenuHorizontal, _rollupPluginBabelHelpers.extends({
|
@@ -76,17 +84,18 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
76
84
|
}, props));
|
77
85
|
},
|
78
86
|
className: "".concat(blockClass, "__overflow-menu"),
|
79
|
-
|
87
|
+
tooltipAlignment: overflowTooltipAlign
|
80
88
|
},
|
81
89
|
// eslint-disable-next-line react/prop-types
|
82
90
|
overflowItems.map(function (item, index) {
|
83
|
-
return /*#__PURE__*/React.createElement(react.
|
91
|
+
return /*#__PURE__*/React.createElement(react.MenuItem, {
|
84
92
|
key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
|
85
|
-
|
86
|
-
|
87
|
-
|
93
|
+
onClick: function onClick(evt) {
|
94
|
+
return handleClick(evt, item);
|
95
|
+
},
|
96
|
+
label: item.props.children
|
88
97
|
});
|
89
|
-
})));
|
98
|
+
}))));
|
90
99
|
};
|
91
100
|
|
92
101
|
// 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 `
|
61
|
+
* @deprecated please use the `decorator` prop
|
62
62
|
*/
|
63
63
|
slug?: ReactNode | boolean;
|
64
64
|
/**
|
65
|
-
* Optional prop that
|
65
|
+
* Optional prop that allows you to pass any component.
|
66
66
|
*/
|
67
|
-
|
67
|
+
decorator?: ReactNode | boolean;
|
68
68
|
status?: 'complete' | 'incomplete';
|
69
69
|
title?: ReactNode;
|
70
70
|
titleSize?: 'default' | 'large';
|