@kaizen/components 1.61.3 → 1.62.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/codemods/README.md +0 -1
- package/dist/cjs/{__containers__/GuidanceBlock/v2 → GuidanceBlock}/GuidanceBlock.cjs +6 -6
- package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +33 -0
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +1 -1
- package/dist/cjs/__layout__/Workflow/v2/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -4
- package/dist/cjs/__layout__/Workflow/v3/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/{__containers__/GuidanceBlock/v2 → GuidanceBlock}/GuidanceBlock.mjs +6 -6
- package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +31 -0
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +1 -1
- package/dist/esm/__layout__/Workflow/v2/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -4
- package/dist/esm/__layout__/Workflow/v3/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/styles.css +1437 -1766
- package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.module.scss +2 -2
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/_docs/GuidanceBlock.mdx +2 -2
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/_docs/GuidanceBlock.stickersheet.stories.tsx +1 -1
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/_docs/GuidanceBlock.stories.tsx +1 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +5 -1
- package/src/__layout__/Workflow/v2/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss +8 -2
- package/src/__layout__/Workflow/v2/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +2 -7
- package/src/__layout__/Workflow/v3/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +5 -0
- package/src/__layout__/Workflow/v3/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +2 -6
- package/src/index.ts +1 -2
- package/codemods/updateGuidanceBlockVariantProp/index.ts +0 -19
- package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.spec.ts +0 -135
- package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.ts +0 -77
- package/dist/cjs/__containers__/GuidanceBlock/v1/GuidanceBlock.cjs +0 -160
- package/dist/cjs/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.cjs +0 -33
- package/dist/cjs/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.cjs +0 -28
- package/dist/cjs/containersV1.cjs +0 -4
- package/dist/cjs/containersV2.cjs +0 -4
- package/dist/esm/__containers__/GuidanceBlock/v1/GuidanceBlock.mjs +0 -153
- package/dist/esm/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.mjs +0 -31
- package/dist/esm/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.mjs +0 -26
- package/dist/esm/containersV1.mjs +0 -1
- package/dist/esm/containersV2.mjs +0 -1
- package/dist/types/__containers__/GuidanceBlock/v2/GuidanceBlock.d.ts +0 -59
- package/dist/types/__containers__/GuidanceBlock/v2/index.d.ts +0 -1
- package/dist/types/__containers__/v1.d.ts +0 -1
- package/dist/types/__containers__/v2.d.ts +0 -1
- package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss +0 -356
- package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.spec.tsx +0 -82
- package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.tsx +0 -262
- package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.mdx +0 -38
- package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stickersheet.stories.tsx +0 -118
- package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stories.tsx +0 -152
- package/src/__containers__/GuidanceBlock/v2/index.ts +0 -1
- package/src/__containers__/v1.ts +0 -1
- package/src/__containers__/v2.ts +0 -1
- package/v1/containers/package.json +0 -5
- package/v2/containers/package.json +0 -5
- /package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/index.d.ts +0 -0
- /package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/types.d.ts +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.spec.tsx +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.tsx +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/index.ts +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/types.ts +0 -0
package/codemods/README.md
CHANGED
|
@@ -33,4 +33,3 @@ kaizen-codemod src migrateWellVariantToColor
|
|
|
33
33
|
- `migrateWellVariantToColor`: Migrates `Well` component prop from `variant` to `color`
|
|
34
34
|
- `removeInputEditModalMood`: Removes `InputEditModal` component prop `mood`
|
|
35
35
|
- `removePopoverVariant`: Removes `Popover` component props `variant` and `customIcon`
|
|
36
|
-
- `updateGuidanceBlockVariantProp`: Updates `GuidanceBlock` import location and updates `variant` prop to `default` or `expert-advice`
|
|
@@ -4,13 +4,13 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var Media = require('react-media');
|
|
7
|
-
var Heading = require('
|
|
8
|
-
require('
|
|
9
|
-
var ArrowForwardIcon = require('
|
|
10
|
-
var Text = require('
|
|
11
|
-
var index = require('
|
|
7
|
+
var Heading = require('../Heading/Heading.cjs');
|
|
8
|
+
require('../Icon/subcomponents/SVG/SVG.cjs');
|
|
9
|
+
var ArrowForwardIcon = require('../Icon/ArrowForwardIcon.cjs');
|
|
10
|
+
var Text = require('../Text/Text.cjs');
|
|
11
|
+
var index = require('../__overlays__/Tooltip/v1/index.cjs');
|
|
12
12
|
var GuidanceBlock_module = require('./GuidanceBlock.module.scss.cjs');
|
|
13
|
-
var Button = require('
|
|
13
|
+
var Button = require('../__actions__/Button/v1/Button/Button.cjs');
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
16
16
|
default: e
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
|
|
5
|
+
"noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
|
|
6
|
+
"banner": "GuidanceBlock-module_banner__FxKcd",
|
|
7
|
+
"noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
|
|
8
|
+
"illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
|
|
9
|
+
"illustration": "GuidanceBlock-module_illustration__sU1Vu",
|
|
10
|
+
"hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
|
|
11
|
+
"descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
|
|
12
|
+
"descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
|
|
13
|
+
"buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
|
|
14
|
+
"hidden": "GuidanceBlock-module_hidden__CbgXn",
|
|
15
|
+
"headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
|
|
16
|
+
"cancel": "GuidanceBlock-module_cancel__UaIA-",
|
|
17
|
+
"icon": "GuidanceBlock-module_icon__y2xz8",
|
|
18
|
+
"disabled": "GuidanceBlock-module_disabled__Uhgsr",
|
|
19
|
+
"hover": "GuidanceBlock-module_hover__7V9x1",
|
|
20
|
+
"active": "GuidanceBlock-module_active__YJaZt",
|
|
21
|
+
"default": "GuidanceBlock-module_default__Ffblg",
|
|
22
|
+
"positive": "GuidanceBlock-module_positive__yENlT",
|
|
23
|
+
"negative": "GuidanceBlock-module_negative__E-Jvh",
|
|
24
|
+
"assertive": "GuidanceBlock-module_assertive__6PZlM",
|
|
25
|
+
"informative": "GuidanceBlock-module_informative__ZUH4j",
|
|
26
|
+
"cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
|
|
27
|
+
"prominent": "GuidanceBlock-module_prominent__nn-r4",
|
|
28
|
+
"inline": "GuidanceBlock-module_inline__GwOWR",
|
|
29
|
+
"stacked": "GuidanceBlock-module_stacked__rDupX",
|
|
30
|
+
"centerContent": "GuidanceBlock-module_centerContent__m3IhB",
|
|
31
|
+
"smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
|
|
32
|
+
};
|
|
33
|
+
module.exports = styles;
|
|
@@ -128,7 +128,7 @@ var ConfirmationModal = function (_a) {
|
|
|
128
128
|
className: classnames__default.default(isProminent && ConfirmationModal_module.prominent, !unpadded && ConfirmationModal_module.padded)
|
|
129
129
|
}, React__default.default.createElement(ModalAccessibleDescription.ModalAccessibleDescription, null, children))), React__default.default.createElement(ModalFooter.ModalFooter, {
|
|
130
130
|
actions: footerActions,
|
|
131
|
-
appearance: mood === "negative" ? "destructive" : "primary",
|
|
131
|
+
appearance: mood === "negative" || variant == "warning" ? "destructive" : "primary",
|
|
132
132
|
unpadded: unpadded
|
|
133
133
|
})));
|
|
134
134
|
};
|
|
@@ -89,10 +89,8 @@ var ProgressStepper = function (_a) {
|
|
|
89
89
|
}, Icon)), index < steps.length - 1 && React__default.default.createElement("div", {
|
|
90
90
|
className: classnames__default.default([ProgressStepper_module.stepDivider, isCompletedStep && ProgressStepper_module.completedStep])
|
|
91
91
|
})));
|
|
92
|
-
})), React__default.default.createElement(
|
|
93
|
-
|
|
94
|
-
variant: "small",
|
|
95
|
-
color: "white",
|
|
92
|
+
})), React__default.default.createElement("span", {
|
|
93
|
+
className: ProgressStepper_module.stepperDescription,
|
|
96
94
|
id: "stepper-description"
|
|
97
95
|
}, "Step ", currentStepIndex + 1, " of ", steps.length));
|
|
98
96
|
};
|
|
@@ -89,9 +89,8 @@ var ProgressStepper = function (_a) {
|
|
|
89
89
|
}, Icon)), index < steps.length - 1 && React__default.default.createElement("div", {
|
|
90
90
|
className: classnames__default.default([ProgressStepper_module.stepDivider, isCompletedStep && ProgressStepper_module.completedStep])
|
|
91
91
|
})));
|
|
92
|
-
})), React__default.default.createElement(
|
|
93
|
-
|
|
94
|
-
variant: "small",
|
|
92
|
+
})), React__default.default.createElement("span", {
|
|
93
|
+
className: ProgressStepper_module.stepperDescription,
|
|
95
94
|
id: "stepper-description"
|
|
96
95
|
}, "Step ", currentStepIndex + 1, " of ", steps.length));
|
|
97
96
|
};
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ var getTruncatedLabel = require('./Filter/FilterMultiSelect/utils/getTruncatedLa
|
|
|
60
60
|
var getSelectedOptionLabels = require('./Filter/FilterMultiSelect/utils/getSelectedOptionLabels.cjs');
|
|
61
61
|
var getSelectedOptionKeys = require('./Filter/FilterMultiSelect/utils/getSelectedOptionKeys.cjs');
|
|
62
62
|
var FilterSelect = require('./Filter/FilterSelect/FilterSelect.cjs');
|
|
63
|
+
var GuidanceBlock = require('./GuidanceBlock/GuidanceBlock.cjs');
|
|
63
64
|
var Heading = require('./Heading/Heading.cjs');
|
|
64
65
|
var AcademyIcon = require('./Icon/AcademyIcon.cjs');
|
|
65
66
|
var ActionOffIcon = require('./Icon/ActionOffIcon.cjs');
|
|
@@ -410,7 +411,6 @@ var index$1 = require('./__overlays__/Tooltip/v1/index.cjs');
|
|
|
410
411
|
var index$2 = require('./__actions__/Menu/v1/index.cjs');
|
|
411
412
|
var Button = require('./__actions__/Button/v1/Button/Button.cjs');
|
|
412
413
|
var IconButton = require('./__actions__/Button/v1/IconButton/IconButton.cjs');
|
|
413
|
-
var GuidanceBlock = require('./__containers__/GuidanceBlock/v1/GuidanceBlock.cjs');
|
|
414
414
|
function _interopNamespace(e) {
|
|
415
415
|
if (e && e.__esModule) return e;
|
|
416
416
|
var n = Object.create(null);
|
|
@@ -504,6 +504,7 @@ exports.getTruncatedLabels = getTruncatedLabel.getTruncatedLabels;
|
|
|
504
504
|
exports.getSelectedOptionLabels = getSelectedOptionLabels.getSelectedOptionLabels;
|
|
505
505
|
exports.getSelectedOptionKeys = getSelectedOptionKeys.getSelectedOptionKeys;
|
|
506
506
|
exports.FilterSelect = FilterSelect.FilterSelect;
|
|
507
|
+
exports.GuidanceBlock = GuidanceBlock.GuidanceBlock;
|
|
507
508
|
exports.Heading = Heading.Heading;
|
|
508
509
|
exports.AcademyIcon = AcademyIcon.AcademyIcon;
|
|
509
510
|
exports.ActionOffIcon = ActionOffIcon.ActionOffIcon;
|
|
@@ -1045,4 +1046,3 @@ exports.MenuList = index$2.MenuList;
|
|
|
1045
1046
|
exports.StatelessMenu = index$2.StatelessMenu;
|
|
1046
1047
|
exports.Button = Button.Button;
|
|
1047
1048
|
exports.IconButton = IconButton.IconButton;
|
|
1048
|
-
exports.GuidanceBlock = GuidanceBlock.GuidanceBlock;
|
|
@@ -2,13 +2,13 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import Media from 'react-media';
|
|
5
|
-
import { Heading } from '
|
|
6
|
-
import '
|
|
7
|
-
import { ArrowForwardIcon } from '
|
|
8
|
-
import { Text } from '
|
|
9
|
-
import { Tooltip } from '
|
|
5
|
+
import { Heading } from '../Heading/Heading.mjs';
|
|
6
|
+
import '../Icon/subcomponents/SVG/SVG.mjs';
|
|
7
|
+
import { ArrowForwardIcon } from '../Icon/ArrowForwardIcon.mjs';
|
|
8
|
+
import { Text } from '../Text/Text.mjs';
|
|
9
|
+
import { Tooltip } from '../__overlays__/Tooltip/v1/index.mjs';
|
|
10
10
|
import styles from './GuidanceBlock.module.scss.mjs';
|
|
11
|
-
import { Button } from '
|
|
11
|
+
import { Button } from '../__actions__/Button/v1/Button/Button.mjs';
|
|
12
12
|
var WithTooltip = function (_a) {
|
|
13
13
|
var tooltipProps = _a.tooltipProps,
|
|
14
14
|
children = _a.children;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
|
|
3
|
+
"noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
|
|
4
|
+
"banner": "GuidanceBlock-module_banner__FxKcd",
|
|
5
|
+
"noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
|
|
6
|
+
"illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
|
|
7
|
+
"illustration": "GuidanceBlock-module_illustration__sU1Vu",
|
|
8
|
+
"hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
|
|
9
|
+
"descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
|
|
10
|
+
"descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
|
|
11
|
+
"buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
|
|
12
|
+
"hidden": "GuidanceBlock-module_hidden__CbgXn",
|
|
13
|
+
"headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
|
|
14
|
+
"cancel": "GuidanceBlock-module_cancel__UaIA-",
|
|
15
|
+
"icon": "GuidanceBlock-module_icon__y2xz8",
|
|
16
|
+
"disabled": "GuidanceBlock-module_disabled__Uhgsr",
|
|
17
|
+
"hover": "GuidanceBlock-module_hover__7V9x1",
|
|
18
|
+
"active": "GuidanceBlock-module_active__YJaZt",
|
|
19
|
+
"default": "GuidanceBlock-module_default__Ffblg",
|
|
20
|
+
"positive": "GuidanceBlock-module_positive__yENlT",
|
|
21
|
+
"negative": "GuidanceBlock-module_negative__E-Jvh",
|
|
22
|
+
"assertive": "GuidanceBlock-module_assertive__6PZlM",
|
|
23
|
+
"informative": "GuidanceBlock-module_informative__ZUH4j",
|
|
24
|
+
"cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
|
|
25
|
+
"prominent": "GuidanceBlock-module_prominent__nn-r4",
|
|
26
|
+
"inline": "GuidanceBlock-module_inline__GwOWR",
|
|
27
|
+
"stacked": "GuidanceBlock-module_stacked__rDupX",
|
|
28
|
+
"centerContent": "GuidanceBlock-module_centerContent__m3IhB",
|
|
29
|
+
"smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
|
|
30
|
+
};
|
|
31
|
+
export { styles as default };
|
|
@@ -120,7 +120,7 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
120
120
|
className: classnames(isProminent && styles.prominent, !unpadded && styles.padded)
|
|
121
121
|
}, /*#__PURE__*/React.createElement(ModalAccessibleDescription, null, children))), /*#__PURE__*/React.createElement(ModalFooter, {
|
|
122
122
|
actions: footerActions,
|
|
123
|
-
appearance: mood === "negative" ? "destructive" : "primary",
|
|
123
|
+
appearance: mood === "negative" || variant == "warning" ? "destructive" : "primary",
|
|
124
124
|
unpadded: unpadded
|
|
125
125
|
})));
|
|
126
126
|
};
|
|
@@ -81,10 +81,8 @@ const ProgressStepper = /*#__PURE__*/function () {
|
|
|
81
81
|
}, Icon)), index < steps.length - 1 && ( /*#__PURE__*/React.createElement("div", {
|
|
82
82
|
className: classnames([styles.stepDivider, isCompletedStep && styles.completedStep])
|
|
83
83
|
}))));
|
|
84
|
-
})), /*#__PURE__*/React.createElement(
|
|
85
|
-
|
|
86
|
-
variant: "small",
|
|
87
|
-
color: "white",
|
|
84
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
className: styles.stepperDescription,
|
|
88
86
|
id: "stepper-description"
|
|
89
87
|
}, "Step ", currentStepIndex + 1, " of ", steps.length));
|
|
90
88
|
};
|
|
@@ -81,9 +81,8 @@ const ProgressStepper = /*#__PURE__*/function () {
|
|
|
81
81
|
}, Icon)), index < steps.length - 1 && ( /*#__PURE__*/React.createElement("div", {
|
|
82
82
|
className: classnames([styles.stepDivider, isCompletedStep && styles.completedStep])
|
|
83
83
|
}))));
|
|
84
|
-
})), /*#__PURE__*/React.createElement(
|
|
85
|
-
|
|
86
|
-
variant: "small",
|
|
84
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
className: styles.stepperDescription,
|
|
87
86
|
id: "stepper-description"
|
|
88
87
|
}, "Step ", currentStepIndex + 1, " of ", steps.length));
|
|
89
88
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -58,6 +58,7 @@ export { getTruncatedLabels } from './Filter/FilterMultiSelect/utils/getTruncate
|
|
|
58
58
|
export { getSelectedOptionLabels } from './Filter/FilterMultiSelect/utils/getSelectedOptionLabels.mjs';
|
|
59
59
|
export { getSelectedOptionKeys } from './Filter/FilterMultiSelect/utils/getSelectedOptionKeys.mjs';
|
|
60
60
|
export { FilterSelect } from './Filter/FilterSelect/FilterSelect.mjs';
|
|
61
|
+
export { GuidanceBlock } from './GuidanceBlock/GuidanceBlock.mjs';
|
|
61
62
|
export { Heading } from './Heading/Heading.mjs';
|
|
62
63
|
export { AcademyIcon } from './Icon/AcademyIcon.mjs';
|
|
63
64
|
export { ActionOffIcon } from './Icon/ActionOffIcon.mjs';
|
|
@@ -415,4 +416,3 @@ export { Tooltip } from './__overlays__/Tooltip/v1/index.mjs';
|
|
|
415
416
|
export { Menu, MenuHeading, MenuItem, MenuList, StatelessMenu } from './__actions__/Menu/v1/index.mjs';
|
|
416
417
|
export { Button } from './__actions__/Button/v1/Button/Button.mjs';
|
|
417
418
|
export { IconButton } from './__actions__/Button/v1/IconButton/IconButton.mjs';
|
|
418
|
-
export { GuidanceBlock } from './__containers__/GuidanceBlock/v1/GuidanceBlock.mjs';
|