@kaizen/components 1.63.0 → 1.63.2
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/dist/cjs/Workflow/Workflow.cjs +57 -0
- package/dist/cjs/Workflow/subcomponents/Footer/Footer.cjs +34 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +26 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css.cjs +8 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +96 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css.cjs +16 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css.cjs +6 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/Root/Root.cjs +23 -0
- package/dist/cjs/Workflow/subcomponents/Header/Header.cjs +32 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.cjs +26 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.module.css.cjs +6 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.cjs +25 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.module.css.cjs +7 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Root/Root.cjs +23 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Root/Root.module.css.cjs +6 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +38 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.module.css.cjs +9 -0
- package/dist/cjs/Workflow/subcomponents/Main/Main.cjs +23 -0
- package/dist/cjs/Workflow/subcomponents/Main/Main.module.css.cjs +6 -0
- package/dist/cjs/Workflow/subcomponents/Wrapper/Wrapper.cjs +23 -0
- package/dist/cjs/Workflow/subcomponents/Wrapper/Wrapper.module.css.cjs +6 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/esm/Workflow/Workflow.mjs +52 -0
- package/dist/esm/Workflow/subcomponents/Footer/Footer.mjs +29 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +20 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css.mjs +6 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +90 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css.mjs +14 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css.mjs +4 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/Root.mjs +17 -0
- package/dist/esm/Workflow/subcomponents/Header/Header.mjs +27 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.mjs +21 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.module.css.mjs +4 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.mjs +20 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.module.css.mjs +5 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Root/Root.mjs +17 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Root/Root.module.css.mjs +4 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +34 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.module.css.mjs +7 -0
- package/dist/esm/Workflow/subcomponents/Main/Main.mjs +17 -0
- package/dist/esm/Workflow/subcomponents/Main/Main.module.css.mjs +4 -0
- package/dist/esm/Workflow/subcomponents/Wrapper/Wrapper.mjs +17 -0
- package/dist/esm/Workflow/subcomponents/Wrapper/Wrapper.module.css.mjs +4 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/styles.css +273 -30
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/GuidanceBlock/GuidanceBlock.tsx +3 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import '../../../../../Icon/subcomponents/SVG/SVG.mjs';
|
|
5
|
+
import { IndicatorActiveIcon } from '../../../../../Icon/IndicatorActiveIcon.mjs';
|
|
6
|
+
import { IndicatorInactiveIcon } from '../../../../../Icon/IndicatorInactiveIcon.mjs';
|
|
7
|
+
import { SuccessIcon } from '../../../../../Icon/SuccessIcon.mjs';
|
|
8
|
+
import { VisuallyHidden } from '../../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
9
|
+
import styles from './ProgressStepper.module.css.mjs';
|
|
10
|
+
var getStepStatus = function (isComplete, isCurrentStep, step, index) {
|
|
11
|
+
if (isComplete) {
|
|
12
|
+
return {
|
|
13
|
+
icon: ( /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
14
|
+
key: index,
|
|
15
|
+
inheritSize: true,
|
|
16
|
+
role: "presentation",
|
|
17
|
+
classNameOverride: "success"
|
|
18
|
+
})),
|
|
19
|
+
accessibleName: "Completed: ".concat(step.label)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (isCurrentStep) {
|
|
23
|
+
return {
|
|
24
|
+
icon: ( /*#__PURE__*/React.createElement(IndicatorActiveIcon, {
|
|
25
|
+
key: index,
|
|
26
|
+
inheritSize: true,
|
|
27
|
+
role: "presentation",
|
|
28
|
+
classNameOverride: "active"
|
|
29
|
+
})),
|
|
30
|
+
accessibleName: "Current: ".concat(step.label)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
icon: ( /*#__PURE__*/React.createElement(IndicatorInactiveIcon, {
|
|
35
|
+
key: index,
|
|
36
|
+
inheritSize: true,
|
|
37
|
+
classNameOverride: "incomplete",
|
|
38
|
+
role: "presentation"
|
|
39
|
+
})),
|
|
40
|
+
accessibleName: "Not started: ".concat(step.label)
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const ProgressStepper = /*#__PURE__*/function () {
|
|
44
|
+
const ProgressStepper = function (_a) {
|
|
45
|
+
var currentStepId = _a.currentStepId,
|
|
46
|
+
steps = _a.steps,
|
|
47
|
+
_b = _a.isComplete,
|
|
48
|
+
isComplete = _b === void 0 ? false : _b,
|
|
49
|
+
restprops = __rest(_a, ["currentStepId", "steps", "isComplete"]);
|
|
50
|
+
var currentStepIndex = steps.findIndex(function (stepItem) {
|
|
51
|
+
return stepItem.id === currentStepId;
|
|
52
|
+
});
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: styles.stepsContainer
|
|
55
|
+
}, /*#__PURE__*/React.createElement("ol", __assign({
|
|
56
|
+
className: styles.stepList
|
|
57
|
+
}, restprops, {
|
|
58
|
+
"aria-labelledby": "stepper-description"
|
|
59
|
+
}), steps.map(function (step, index) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
var isCurrentStep = currentStepIndex === index;
|
|
62
|
+
var isCompletedStep = index < currentStepIndex || isComplete;
|
|
63
|
+
var _c = getStepStatus(isCompletedStep, isCurrentStep, step, index),
|
|
64
|
+
accessibleName = _c.accessibleName,
|
|
65
|
+
Icon = _c.icon;
|
|
66
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
67
|
+
className: styles.step,
|
|
68
|
+
key: "".concat(step.id),
|
|
69
|
+
"aria-current": isCurrentStep
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: styles.stepContent
|
|
72
|
+
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, accessibleName), /*#__PURE__*/React.createElement("span", {
|
|
73
|
+
className: classnames(styles.stepName, (_a = {}, _a[styles.isCurrent] = isCurrentStep, _a)),
|
|
74
|
+
"aria-hidden": true
|
|
75
|
+
}, step.label), /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: styles.stepIndicator
|
|
77
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
78
|
+
className: classnames(styles.stepIcon, (_b = {}, _b[styles.isCompleted] = isCompletedStep, _b))
|
|
79
|
+
}, Icon)), index < steps.length - 1 && ( /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: classnames([styles.stepDivider, isCompletedStep && styles.completedStep])
|
|
81
|
+
}))));
|
|
82
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
83
|
+
className: styles.stepperDescription,
|
|
84
|
+
id: "stepper-description"
|
|
85
|
+
}, "Step ", currentStepIndex + 1, " of ", steps.length));
|
|
86
|
+
};
|
|
87
|
+
ProgressStepper.displayName = "Workflow.ProgressStepper";
|
|
88
|
+
return ProgressStepper;
|
|
89
|
+
}();
|
|
90
|
+
export { ProgressStepper };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"stepsContainer": "ProgressStepper-module_stepsContainer__7Motj",
|
|
3
|
+
"stepList": "ProgressStepper-module_stepList__jmArV",
|
|
4
|
+
"step": "ProgressStepper-module_step__x0O0y",
|
|
5
|
+
"stepContent": "ProgressStepper-module_stepContent__OuBES",
|
|
6
|
+
"stepIndicator": "ProgressStepper-module_stepIndicator__opcbs",
|
|
7
|
+
"stepName": "ProgressStepper-module_stepName__QvpQ4",
|
|
8
|
+
"isCurrent": "ProgressStepper-module_isCurrent__L8bL9",
|
|
9
|
+
"stepIcon": "ProgressStepper-module_stepIcon__K-fVm",
|
|
10
|
+
"isCompleted": "ProgressStepper-module_isCompleted__l7HiL",
|
|
11
|
+
"stepDivider": "ProgressStepper-module_stepDivider__1dq4c",
|
|
12
|
+
"stepperDescription": "ProgressStepper-module_stepperDescription__KplV3"
|
|
13
|
+
};
|
|
14
|
+
export { styles as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import styles from './FooterRoot.module.css.mjs';
|
|
5
|
+
const FooterRoot = /*#__PURE__*/function () {
|
|
6
|
+
const FooterRoot = function (_a) {
|
|
7
|
+
var children = _a.children,
|
|
8
|
+
classNameOverride = _a.classNameOverride,
|
|
9
|
+
restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
10
|
+
return /*#__PURE__*/React.createElement("footer", __assign({
|
|
11
|
+
className: classnames(styles.footerRoot, classNameOverride)
|
|
12
|
+
}, restProps), children);
|
|
13
|
+
};
|
|
14
|
+
FooterRoot.displayName = "Workflow.FooterRoot";
|
|
15
|
+
return FooterRoot;
|
|
16
|
+
}();
|
|
17
|
+
export { FooterRoot };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Titles } from './components/Titles/Titles.mjs';
|
|
4
|
+
import { Actions } from './components/Actions/Actions.mjs';
|
|
5
|
+
import { Branding } from './components/Branding/Branding.mjs';
|
|
6
|
+
import { HeaderRoot } from './components/Root/Root.mjs';
|
|
7
|
+
const Header = /*#__PURE__*/function () {
|
|
8
|
+
const Header = function (_a) {
|
|
9
|
+
var workflowName = _a.workflowName,
|
|
10
|
+
stepName = _a.stepName,
|
|
11
|
+
statusTag = _a.statusTag,
|
|
12
|
+
headerActions = _a.headerActions,
|
|
13
|
+
restProps = __rest(_a, ["workflowName", "stepName", "statusTag", "headerActions"]);
|
|
14
|
+
return /*#__PURE__*/React.createElement(HeaderRoot, __assign({}, restProps), /*#__PURE__*/React.createElement(Branding, {
|
|
15
|
+
alt: "Culture Amp"
|
|
16
|
+
}), /*#__PURE__*/React.createElement(Titles, {
|
|
17
|
+
workflowName: workflowName,
|
|
18
|
+
stepName: stepName,
|
|
19
|
+
statusTag: statusTag
|
|
20
|
+
}), /*#__PURE__*/React.createElement(Actions, {
|
|
21
|
+
headerActions: headerActions
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
Header.displayName = "Workflow.Header";
|
|
25
|
+
return Header;
|
|
26
|
+
}();
|
|
27
|
+
export { Header };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styles from './Actions.module.css.mjs';
|
|
4
|
+
|
|
5
|
+
/** A wrapper for an exit trigger (and other) actions of the Header Workflow */
|
|
6
|
+
const Actions = /*#__PURE__*/function () {
|
|
7
|
+
const Actions = function (_a) {
|
|
8
|
+
var headerActions = _a.headerActions,
|
|
9
|
+
restProps = __rest(_a, ["headerActions"]);
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", __assign({
|
|
11
|
+
className: styles.actions
|
|
12
|
+
}, restProps), headerActions === null || headerActions === void 0 ? void 0 : headerActions.map(function (action, index) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(action.type, __assign({
|
|
14
|
+
key: "header-actions ".concat(index)
|
|
15
|
+
}, action.props));
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
Actions.displayName = "Workflow.Actions";
|
|
19
|
+
return Actions;
|
|
20
|
+
}();
|
|
21
|
+
export { Actions };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Brand } from '../../../../../Brand/Brand.mjs';
|
|
3
|
+
import styles from './Branding.module.css.mjs';
|
|
4
|
+
const Branding = /*#__PURE__*/function () {
|
|
5
|
+
const Branding = function (_a) {
|
|
6
|
+
var _b = _a.variant,
|
|
7
|
+
variant = _b === void 0 ? "logo-horizontal" : _b,
|
|
8
|
+
alt = _a.alt;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: styles.branding
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Brand, {
|
|
12
|
+
classNameOverride: styles.logo,
|
|
13
|
+
variant: variant,
|
|
14
|
+
alt: alt
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
Branding.displayName = "Workflow.Branding";
|
|
18
|
+
return Branding;
|
|
19
|
+
}();
|
|
20
|
+
export { Branding };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import styles from './Root.module.css.mjs';
|
|
5
|
+
const HeaderRoot = /*#__PURE__*/function () {
|
|
6
|
+
const HeaderRoot = function (_a) {
|
|
7
|
+
var children = _a.children,
|
|
8
|
+
classNameOverride = _a.classNameOverride,
|
|
9
|
+
restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
10
|
+
return /*#__PURE__*/React.createElement("header", __assign({
|
|
11
|
+
className: classnames(styles.root, classNameOverride)
|
|
12
|
+
}, restProps), children);
|
|
13
|
+
};
|
|
14
|
+
HeaderRoot.displayName = "Workflow.HeaderRoot";
|
|
15
|
+
return HeaderRoot;
|
|
16
|
+
}();
|
|
17
|
+
export { HeaderRoot };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Heading } from '../../../../../Heading/Heading.mjs';
|
|
4
|
+
import { VisuallyHidden } from '../../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
5
|
+
import styles from './Titles.module.css.mjs';
|
|
6
|
+
const Titles = /*#__PURE__*/function () {
|
|
7
|
+
const Titles = function (_a) {
|
|
8
|
+
var workflowName = _a.workflowName,
|
|
9
|
+
stepName = _a.stepName,
|
|
10
|
+
statusTag = _a.statusTag,
|
|
11
|
+
restProps = __rest(_a, ["workflowName", "stepName", "statusTag"]);
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", __assign({
|
|
13
|
+
className: styles.titles
|
|
14
|
+
}, restProps), /*#__PURE__*/React.createElement(Heading, {
|
|
15
|
+
variant: "composable-header-title",
|
|
16
|
+
tag: "h1",
|
|
17
|
+
color: "dark",
|
|
18
|
+
classNameOverride: styles.pageTitle
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
20
|
+
classNameOverride: styles.prefix,
|
|
21
|
+
variant: "heading-6",
|
|
22
|
+
tag: "span",
|
|
23
|
+
color: "dark-reduced-opacity"
|
|
24
|
+
}, workflowName, /*#__PURE__*/React.createElement(VisuallyHidden, null, ":")), /*#__PURE__*/React.createElement("span", null, stepName)), statusTag && (
|
|
25
|
+
/*#__PURE__*/
|
|
26
|
+
// status may need to be update by a fetch
|
|
27
|
+
React.createElement("div", {
|
|
28
|
+
className: styles.statusTag
|
|
29
|
+
}, statusTag)));
|
|
30
|
+
};
|
|
31
|
+
Titles.displayName = "Workflow.Titles";
|
|
32
|
+
return Titles;
|
|
33
|
+
}();
|
|
34
|
+
export { Titles };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import styles from './Main.module.css.mjs';
|
|
5
|
+
const Main = /*#__PURE__*/function () {
|
|
6
|
+
const Main = function (_a) {
|
|
7
|
+
var children = _a.children,
|
|
8
|
+
classNameOverride = _a.classNameOverride,
|
|
9
|
+
restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
10
|
+
return /*#__PURE__*/React.createElement("main", __assign({
|
|
11
|
+
className: classnames([styles.main, classNameOverride])
|
|
12
|
+
}, restProps), children);
|
|
13
|
+
};
|
|
14
|
+
Main.displayName = "Workflow.Main";
|
|
15
|
+
return Main;
|
|
16
|
+
}();
|
|
17
|
+
export { Main };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import styles from './Wrapper.module.css.mjs';
|
|
5
|
+
const Wrapper = /*#__PURE__*/function () {
|
|
6
|
+
const Wrapper = function (_a) {
|
|
7
|
+
var children = _a.children,
|
|
8
|
+
classNameOverride = _a.classNameOverride,
|
|
9
|
+
restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", __assign({
|
|
11
|
+
className: classnames(styles.wrapper, classNameOverride)
|
|
12
|
+
}, restProps), children);
|
|
13
|
+
};
|
|
14
|
+
Wrapper.displayName = "Workflow.Wrapper";
|
|
15
|
+
return Wrapper;
|
|
16
|
+
}();
|
|
17
|
+
export { Wrapper };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -411,6 +411,7 @@ export { subtractOnePixel, useMediaQueries } from './utils/useMediaQueries.mjs';
|
|
|
411
411
|
export { assetUrl } from './utils/hostedAssets.mjs';
|
|
412
412
|
export { VisuallyHidden } from './VisuallyHidden/VisuallyHidden.mjs';
|
|
413
413
|
export { Well } from './Well/Well.mjs';
|
|
414
|
+
export { Workflow } from './Workflow/Workflow.mjs';
|
|
414
415
|
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';
|
package/dist/styles.css
CHANGED
|
@@ -27,36 +27,6 @@
|
|
|
27
27
|
.OverlayArrow-module_overlayArrow__hoDyK.OverlayArrow-module_reversed__-WGcR path {
|
|
28
28
|
fill: var(--color-white, #ffffff);
|
|
29
29
|
}
|
|
30
|
-
.Menu-module_menu__iHYqh {
|
|
31
|
-
background-color: var(--color-white);
|
|
32
|
-
color: var(--color-purple-800);
|
|
33
|
-
width: 248px;
|
|
34
|
-
max-height: 22rem;
|
|
35
|
-
overflow: auto;
|
|
36
|
-
padding-block: var(--spacing-6);
|
|
37
|
-
outline: none;
|
|
38
|
-
border-radius: var(--border-solid-border-radius);
|
|
39
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.Menu-module_menu__iHYqh .react-aria-Header {
|
|
43
|
-
font-family: var(--typography-heading-6-font-family);
|
|
44
|
-
font-size: var(--typography-heading-6-font-size);
|
|
45
|
-
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
46
|
-
font-weight: var(--typography-heading-6-font-weight);
|
|
47
|
-
line-height: var(--typography-heading-6-line-height);
|
|
48
|
-
padding: var(--spacing-6) 10px;
|
|
49
|
-
margin-inline: var(--spacing-6);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.Menu-module_menu__iHYqh section:not(:last-of-type)::after {
|
|
53
|
-
width: 100%;
|
|
54
|
-
height: 1px;
|
|
55
|
-
background-color: var(--border-solid-border-color);
|
|
56
|
-
content: "";
|
|
57
|
-
display: block;
|
|
58
|
-
margin-block: var(--spacing-6);
|
|
59
|
-
}
|
|
60
30
|
.MenuItem-module_item__DPerF {
|
|
61
31
|
font-family: var(--typography-paragraph-body-font-family);
|
|
62
32
|
font-size: var(--typography-paragraph-body-font-size);
|
|
@@ -91,6 +61,36 @@
|
|
|
91
61
|
.MenuItem-module_item__DPerF[data-disabled] {
|
|
92
62
|
opacity: 0.3;
|
|
93
63
|
}
|
|
64
|
+
.Menu-module_menu__iHYqh {
|
|
65
|
+
background-color: var(--color-white);
|
|
66
|
+
color: var(--color-purple-800);
|
|
67
|
+
width: 248px;
|
|
68
|
+
max-height: 22rem;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
padding-block: var(--spacing-6);
|
|
71
|
+
outline: none;
|
|
72
|
+
border-radius: var(--border-solid-border-radius);
|
|
73
|
+
box-shadow: var(--shadow-large-box-shadow);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Menu-module_menu__iHYqh .react-aria-Header {
|
|
77
|
+
font-family: var(--typography-heading-6-font-family);
|
|
78
|
+
font-size: var(--typography-heading-6-font-size);
|
|
79
|
+
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
80
|
+
font-weight: var(--typography-heading-6-font-weight);
|
|
81
|
+
line-height: var(--typography-heading-6-line-height);
|
|
82
|
+
padding: var(--spacing-6) 10px;
|
|
83
|
+
margin-inline: var(--spacing-6);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Menu-module_menu__iHYqh section:not(:last-of-type)::after {
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 1px;
|
|
89
|
+
background-color: var(--border-solid-border-color);
|
|
90
|
+
content: "";
|
|
91
|
+
display: block;
|
|
92
|
+
margin-block: var(--spacing-6);
|
|
93
|
+
}
|
|
94
94
|
.Button-module_button__QOSYH {
|
|
95
95
|
--button-min-height-width: var(--spacing-48);
|
|
96
96
|
--button-padding-x: calc(
|
|
@@ -12186,3 +12186,246 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
12186
12186
|
--border-color: transparent;
|
|
12187
12187
|
--border-style: none;
|
|
12188
12188
|
}
|
|
12189
|
+
.FooterRoot-module_footerRoot__-osuZ {
|
|
12190
|
+
display: grid;
|
|
12191
|
+
grid-template-areas: "prev stepper next";
|
|
12192
|
+
grid-template-columns: 1fr 2fr 1fr;
|
|
12193
|
+
flex-grow: 1;
|
|
12194
|
+
justify-content: center;
|
|
12195
|
+
align-items: center;
|
|
12196
|
+
padding: var(--spacing-24) var(--spacing-12);
|
|
12197
|
+
background: var(--color-white);
|
|
12198
|
+
gap: var(--spacing-16);
|
|
12199
|
+
border-top: 2px solid rgba(var(--color-gray-600-rgb), 0.1);
|
|
12200
|
+
|
|
12201
|
+
@media (width >= 768px) {
|
|
12202
|
+
grid-template-columns: 1fr 5fr 1fr;
|
|
12203
|
+
padding: var(--spacing-24) var(--spacing-32);
|
|
12204
|
+
position: sticky;
|
|
12205
|
+
bottom: 0;
|
|
12206
|
+
z-index: 1;
|
|
12207
|
+
}
|
|
12208
|
+
}
|
|
12209
|
+
|
|
12210
|
+
.ProgressStepper-module_stepsContainer__7Motj {
|
|
12211
|
+
--progress-stepper-indicator-size: 1.25rem;
|
|
12212
|
+
|
|
12213
|
+
width: 100%;
|
|
12214
|
+
grid-area: stepper;
|
|
12215
|
+
}
|
|
12216
|
+
|
|
12217
|
+
.ProgressStepper-module_stepList__jmArV {
|
|
12218
|
+
display: none;
|
|
12219
|
+
justify-content: center;
|
|
12220
|
+
align-items: flex-end;
|
|
12221
|
+
list-style: none;
|
|
12222
|
+
margin: 0;
|
|
12223
|
+
padding: 0;
|
|
12224
|
+
|
|
12225
|
+
@media (width >= 768px) {
|
|
12226
|
+
display: flex;
|
|
12227
|
+
}
|
|
12228
|
+
}
|
|
12229
|
+
|
|
12230
|
+
.ProgressStepper-module_step__x0O0y {
|
|
12231
|
+
display: flex;
|
|
12232
|
+
flex-grow: 1;
|
|
12233
|
+
flex-basis: 100%;
|
|
12234
|
+
justify-content: center;
|
|
12235
|
+
max-width: var(--spacing-96);
|
|
12236
|
+
overflow-wrap: break-word;
|
|
12237
|
+
position: relative;
|
|
12238
|
+
container: step / inline-size;
|
|
12239
|
+
}
|
|
12240
|
+
|
|
12241
|
+
.ProgressStepper-module_stepContent__OuBES {
|
|
12242
|
+
display: flex;
|
|
12243
|
+
align-items: center;
|
|
12244
|
+
flex-direction: column;
|
|
12245
|
+
}
|
|
12246
|
+
|
|
12247
|
+
.ProgressStepper-module_stepIndicator__opcbs {
|
|
12248
|
+
width: var(--progress-stepper-indicator-size);
|
|
12249
|
+
height: var(--progress-stepper-indicator-size);
|
|
12250
|
+
position: relative;
|
|
12251
|
+
}
|
|
12252
|
+
|
|
12253
|
+
.ProgressStepper-module_stepName__QvpQ4 {
|
|
12254
|
+
display: none;
|
|
12255
|
+
text-align: center;
|
|
12256
|
+
margin-bottom: var(--spacing-12);
|
|
12257
|
+
font-family: var(--typography-paragraph-small-font-family);
|
|
12258
|
+
font-size: var(--typography-paragraph-small-font-size);
|
|
12259
|
+
line-height: var(--typography-paragraph-small-line-height);
|
|
12260
|
+
font-weight: var(--typography-paragraph-bold-font-weight);
|
|
12261
|
+
color: var(--color-gray-600);
|
|
12262
|
+
}
|
|
12263
|
+
|
|
12264
|
+
.ProgressStepper-module_stepName__QvpQ4.ProgressStepper-module_isCurrent__L8bL9 {
|
|
12265
|
+
color: var(--color-purple-800);
|
|
12266
|
+
}
|
|
12267
|
+
|
|
12268
|
+
.ProgressStepper-module_stepIcon__K-fVm {
|
|
12269
|
+
color: var(--color-purple-800);
|
|
12270
|
+
position: absolute;
|
|
12271
|
+
width: var(--progress-stepper-indicator-size);
|
|
12272
|
+
height: var(--progress-stepper-indicator-size);
|
|
12273
|
+
left: 50%;
|
|
12274
|
+
top: 50%;
|
|
12275
|
+
transform: translate(-50%, -50%);
|
|
12276
|
+
}
|
|
12277
|
+
|
|
12278
|
+
.ProgressStepper-module_stepIcon__K-fVm.ProgressStepper-module_isCompleted__l7HiL {
|
|
12279
|
+
color: var(--color-green-500);
|
|
12280
|
+
}
|
|
12281
|
+
|
|
12282
|
+
.ProgressStepper-module_stepDivider__1dq4c {
|
|
12283
|
+
height: 0;
|
|
12284
|
+
display: flex;
|
|
12285
|
+
position: absolute;
|
|
12286
|
+
flex-grow: 1;
|
|
12287
|
+
min-width: calc(100% - var(--spacing-24));
|
|
12288
|
+
border: solid var(--spacing-1) var(--color-gray-300);
|
|
12289
|
+
margin: 0;
|
|
12290
|
+
border-radius: var(--border-solid-border-radius);
|
|
12291
|
+
left: 100%;
|
|
12292
|
+
|
|
12293
|
+
/* sets fron the bottom to the centre of the dot */
|
|
12294
|
+
top: calc(100% - calc(var(--progress-stepper-indicator-size) / 2));
|
|
12295
|
+
transform: translateX(-50%);
|
|
12296
|
+
|
|
12297
|
+
[dir="rtl"] & {
|
|
12298
|
+
left: unset;
|
|
12299
|
+
right: 100%;
|
|
12300
|
+
transform: translateX(50%);
|
|
12301
|
+
}
|
|
12302
|
+
}
|
|
12303
|
+
|
|
12304
|
+
.ProgressStepper-module_stepperDescription__KplV3 {
|
|
12305
|
+
display: flex;
|
|
12306
|
+
justify-content: center;
|
|
12307
|
+
font-family: var(--typography-paragraph-small-font-family);
|
|
12308
|
+
font-weight: var(--typography-paragraph-small-font-weight);
|
|
12309
|
+
font-size: var(--typography-paragraph-small-font-size);
|
|
12310
|
+
line-height: var(--typography-paragraph-small-line-height);
|
|
12311
|
+
|
|
12312
|
+
@media (width >= 768px) {
|
|
12313
|
+
/* sr hidden styles */
|
|
12314
|
+
position: absolute;
|
|
12315
|
+
width: 0;
|
|
12316
|
+
height: 0;
|
|
12317
|
+
overflow: hidden;
|
|
12318
|
+
}
|
|
12319
|
+
}
|
|
12320
|
+
|
|
12321
|
+
/* Some defensive CSS for many steps on desktop screens */
|
|
12322
|
+
@container step (width >= 4.5rem) {
|
|
12323
|
+
.ProgressStepper-module_stepName__QvpQ4 {
|
|
12324
|
+
display: inline;
|
|
12325
|
+
}
|
|
12326
|
+
}
|
|
12327
|
+
|
|
12328
|
+
.FooterActions-module_footerAction__szvPs {
|
|
12329
|
+
display: flex;
|
|
12330
|
+
flex-grow: 1;
|
|
12331
|
+
flex-basis: auto;
|
|
12332
|
+
}
|
|
12333
|
+
|
|
12334
|
+
.FooterActions-module_footerActionPrevious__VJ6j1 {
|
|
12335
|
+
grid-area: "prev";
|
|
12336
|
+
justify-content: start;
|
|
12337
|
+
}
|
|
12338
|
+
|
|
12339
|
+
.FooterActions-module_footerActionNext__koFhj {
|
|
12340
|
+
grid-area: "next";
|
|
12341
|
+
justify-content: end;
|
|
12342
|
+
}
|
|
12343
|
+
|
|
12344
|
+
.Titles-module_titles__ENQ0C {
|
|
12345
|
+
grid-area: titles;
|
|
12346
|
+
display: flex;
|
|
12347
|
+
flex-direction: column;
|
|
12348
|
+
align-items: center;
|
|
12349
|
+
justify-content: center;
|
|
12350
|
+
flex-grow: 1;
|
|
12351
|
+
}
|
|
12352
|
+
|
|
12353
|
+
.Titles-module_pageTitle__ePjdw {
|
|
12354
|
+
display: flex;
|
|
12355
|
+
flex-direction: column;
|
|
12356
|
+
}
|
|
12357
|
+
|
|
12358
|
+
.Titles-module_prefix__FEtyY {
|
|
12359
|
+
margin-bottom: var(--spacing-4);
|
|
12360
|
+
}
|
|
12361
|
+
|
|
12362
|
+
.Titles-module_statusTag__hmyfK {
|
|
12363
|
+
margin-top: var(--spacing-8);
|
|
12364
|
+
}
|
|
12365
|
+
|
|
12366
|
+
.Actions-module_actions__JzCWB {
|
|
12367
|
+
grid-area: actions;
|
|
12368
|
+
display: flex;
|
|
12369
|
+
flex-direction: column;
|
|
12370
|
+
flex-grow: 1;
|
|
12371
|
+
justify-content: center;
|
|
12372
|
+
align-items: center;
|
|
12373
|
+
|
|
12374
|
+
@media (width >= 768px) {
|
|
12375
|
+
flex-direction: row;
|
|
12376
|
+
align-items: flex-start;
|
|
12377
|
+
justify-content: flex-end;
|
|
12378
|
+
margin-top: calc(-1 * var(--spacing-12));
|
|
12379
|
+
}
|
|
12380
|
+
}
|
|
12381
|
+
|
|
12382
|
+
.Branding-module_branding__g3OoE {
|
|
12383
|
+
justify-content: center;
|
|
12384
|
+
grid-area: branding;
|
|
12385
|
+
display: flex;
|
|
12386
|
+
flex-grow: 1;
|
|
12387
|
+
padding-top: var(--spacing-4);
|
|
12388
|
+
|
|
12389
|
+
@media (width >= 768px) {
|
|
12390
|
+
justify-content: unset;
|
|
12391
|
+
}
|
|
12392
|
+
}
|
|
12393
|
+
|
|
12394
|
+
.Branding-module_logo__yLHfs {
|
|
12395
|
+
flex-basis: 7.5rem;
|
|
12396
|
+
}
|
|
12397
|
+
|
|
12398
|
+
.Root-module_root__-1P72 {
|
|
12399
|
+
display: grid;
|
|
12400
|
+
background-color: var(--color-white);
|
|
12401
|
+
grid-template: "branding" min-content "titles" max-content "actions" min-content / 1fr;
|
|
12402
|
+
flex-grow: 1;
|
|
12403
|
+
justify-content: center;
|
|
12404
|
+
align-items: center;
|
|
12405
|
+
text-align: center;
|
|
12406
|
+
padding: var(--spacing-24);
|
|
12407
|
+
gap: var(--spacing-16);
|
|
12408
|
+
border-bottom: 2px solid rgb(var(--color-gray-600-rgb), 0.1);
|
|
12409
|
+
|
|
12410
|
+
@media (width >= 768px) {
|
|
12411
|
+
align-items: start;
|
|
12412
|
+
grid-template: "branding titles actions" min-content / 1fr max-content 1fr;
|
|
12413
|
+
position: sticky;
|
|
12414
|
+
top: 0;
|
|
12415
|
+
z-index: 1;
|
|
12416
|
+
}
|
|
12417
|
+
}
|
|
12418
|
+
|
|
12419
|
+
.Main-module_main__K9Z0C {
|
|
12420
|
+
/* This is set so children will sit beneath the header and footer when sticky */
|
|
12421
|
+
z-index: 0;
|
|
12422
|
+
}
|
|
12423
|
+
|
|
12424
|
+
.Wrapper-module_wrapper__-tWQy {
|
|
12425
|
+
display: grid;
|
|
12426
|
+
grid-template-rows: min-content 1fr min-content;
|
|
12427
|
+
position: relative;
|
|
12428
|
+
min-height: 100vh;
|
|
12429
|
+
background: var(--color-gray-100);
|
|
12430
|
+
}
|
|
12431
|
+
|
|
@@ -6,6 +6,9 @@ import { TooltipProps } from "../__overlays__/Tooltip/v1";
|
|
|
6
6
|
import { VariantType } from "./types";
|
|
7
7
|
export type ActionProps = ButtonProps & {
|
|
8
8
|
tooltip?: TooltipProps;
|
|
9
|
+
"aria-label"?: string;
|
|
10
|
+
"aria-labelledby"?: string;
|
|
11
|
+
"aria-describedby"?: string;
|
|
9
12
|
};
|
|
10
13
|
type LayoutType = "default" | "inline" | "stacked";
|
|
11
14
|
type IllustrationType = "spot" | "scene";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from "./ToggleSwitch";
|
|
|
57
57
|
export * from "./utils";
|
|
58
58
|
export * from "./VisuallyHidden";
|
|
59
59
|
export * from "./Well";
|
|
60
|
+
export * from "./Workflow";
|
|
60
61
|
export * from "./__overlays__/Tooltip/v1";
|
|
61
62
|
export * from "./__actions__/Menu/v1";
|
|
62
63
|
export * from "./__actions__/Button/v1";
|