@hitachivantara/uikit-react-lab 4.0.1-next.2 → 4.0.1-next.5
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/StepNavigation/DefaultNavigation/DefaultNavigation.d.ts +3 -1
- package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js +2 -9
- package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/Step/Step.d.ts +2 -2
- package/dist/StepNavigation/DefaultNavigation/Step/Step.js +2 -2
- package/dist/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/utils.js +3 -2
- package/dist/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js +2 -5
- package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.d.ts +3 -1
- package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js +2 -11
- package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/utils.js +10 -8
- package/dist/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/StepNavigation/StepNavigation.js +5 -5
- package/dist/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/Wizard/Wizard.d.ts +63 -0
- package/dist/Wizard/Wizard.js +262 -0
- package/dist/Wizard/Wizard.js.map +1 -0
- package/dist/Wizard/WizardActions/WizardActions.d.ts +61 -0
- package/dist/Wizard/WizardActions/WizardActions.js +270 -0
- package/dist/Wizard/WizardActions/WizardActions.js.map +1 -0
- package/dist/Wizard/WizardActions/index.d.ts +2 -0
- package/dist/Wizard/WizardActions/index.js +16 -0
- package/dist/Wizard/WizardActions/index.js.map +1 -0
- package/dist/Wizard/WizardActions/styles.js +30 -0
- package/dist/Wizard/WizardActions/styles.js.map +1 -0
- package/dist/Wizard/WizardContainer/WizardContainer.d.ts +28 -0
- package/dist/Wizard/WizardContainer/WizardContainer.js +116 -0
- package/dist/Wizard/WizardContainer/WizardContainer.js.map +1 -0
- package/dist/Wizard/WizardContainer/index.d.ts +2 -0
- package/dist/Wizard/WizardContainer/index.js +16 -0
- package/dist/Wizard/WizardContainer/index.js.map +1 -0
- package/dist/Wizard/WizardContainer/styles.js +23 -0
- package/dist/Wizard/WizardContainer/styles.js.map +1 -0
- package/dist/Wizard/WizardContent/LoadingContainer.js +101 -0
- package/dist/Wizard/WizardContent/LoadingContainer.js.map +1 -0
- package/dist/Wizard/WizardContent/WizardContent.d.ts +28 -0
- package/dist/Wizard/WizardContent/WizardContent.js +167 -0
- package/dist/Wizard/WizardContent/WizardContent.js.map +1 -0
- package/dist/Wizard/WizardContent/index.d.ts +2 -0
- package/dist/Wizard/WizardContent/index.js +16 -0
- package/dist/Wizard/WizardContent/index.js.map +1 -0
- package/dist/Wizard/WizardContent/styles.js +24 -0
- package/dist/Wizard/WizardContent/styles.js.map +1 -0
- package/dist/Wizard/WizardContext/WizardContext.js +21 -0
- package/dist/Wizard/WizardContext/WizardContext.js.map +1 -0
- package/dist/Wizard/WizardContext/index.js +16 -0
- package/dist/Wizard/WizardContext/index.js.map +1 -0
- package/dist/Wizard/WizardTitle/WizardTitle.d.ts +42 -0
- package/dist/Wizard/WizardTitle/WizardTitle.js +227 -0
- package/dist/Wizard/WizardTitle/WizardTitle.js.map +1 -0
- package/dist/Wizard/WizardTitle/index.d.ts +2 -0
- package/dist/Wizard/WizardTitle/index.js +16 -0
- package/dist/Wizard/WizardTitle/index.js.map +1 -0
- package/dist/Wizard/WizardTitle/styles.js +41 -0
- package/dist/Wizard/WizardTitle/styles.js.map +1 -0
- package/dist/Wizard/index.d.ts +2 -0
- package/dist/Wizard/index.js +56 -0
- package/dist/Wizard/index.js.map +1 -0
- package/dist/Wizard/styles.js +16 -0
- package/dist/Wizard/styles.js.map +1 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.d.ts +3 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js +2 -8
- package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.d.ts +2 -2
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js +2 -2
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/utils.js +3 -2
- package/dist/legacy/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js +4 -7
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.d.ts +3 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js +2 -9
- package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/utils.js +9 -5
- package/dist/legacy/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/legacy/StepNavigation/StepNavigation.js +5 -5
- package/dist/legacy/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/legacy/Wizard/Wizard.d.ts +63 -0
- package/dist/legacy/Wizard/Wizard.js +229 -0
- package/dist/legacy/Wizard/Wizard.js.map +1 -0
- package/dist/legacy/Wizard/WizardActions/WizardActions.d.ts +61 -0
- package/dist/legacy/Wizard/WizardActions/WizardActions.js +237 -0
- package/dist/legacy/Wizard/WizardActions/WizardActions.js.map +1 -0
- package/dist/legacy/Wizard/WizardActions/index.d.ts +2 -0
- package/dist/legacy/Wizard/WizardActions/index.js +2 -0
- package/dist/legacy/Wizard/WizardActions/index.js.map +1 -0
- package/dist/legacy/Wizard/WizardActions/styles.js +22 -0
- package/dist/legacy/Wizard/WizardActions/styles.js.map +1 -0
- package/dist/legacy/Wizard/WizardContainer/WizardContainer.d.ts +28 -0
- package/dist/legacy/Wizard/WizardContainer/WizardContainer.js +90 -0
- package/dist/legacy/Wizard/WizardContainer/WizardContainer.js.map +1 -0
- package/dist/legacy/Wizard/WizardContainer/index.d.ts +2 -0
- package/dist/legacy/Wizard/WizardContainer/index.js +2 -0
- package/dist/legacy/Wizard/WizardContainer/index.js.map +1 -0
- package/dist/legacy/Wizard/WizardContainer/styles.js +15 -0
- package/dist/legacy/Wizard/WizardContainer/styles.js.map +1 -0
- package/dist/legacy/Wizard/WizardContent/LoadingContainer.js +78 -0
- package/dist/legacy/Wizard/WizardContent/LoadingContainer.js.map +1 -0
- package/dist/legacy/Wizard/WizardContent/WizardContent.d.ts +28 -0
- package/dist/legacy/Wizard/WizardContent/WizardContent.js +132 -0
- package/dist/legacy/Wizard/WizardContent/WizardContent.js.map +1 -0
- package/dist/legacy/Wizard/WizardContent/index.d.ts +2 -0
- package/dist/legacy/Wizard/WizardContent/index.js +2 -0
- package/dist/legacy/Wizard/WizardContent/index.js.map +1 -0
- package/dist/legacy/Wizard/WizardContent/styles.js +16 -0
- package/dist/legacy/Wizard/WizardContent/styles.js.map +1 -0
- package/dist/legacy/Wizard/WizardContext/WizardContext.js +12 -0
- package/dist/legacy/Wizard/WizardContext/WizardContext.js.map +1 -0
- package/dist/legacy/Wizard/WizardContext/index.js +2 -0
- package/dist/legacy/Wizard/WizardContext/index.js.map +1 -0
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.d.ts +42 -0
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.js +204 -0
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.js.map +1 -0
- package/dist/legacy/Wizard/WizardTitle/index.d.ts +2 -0
- package/dist/legacy/Wizard/WizardTitle/index.js +2 -0
- package/dist/legacy/Wizard/WizardTitle/index.js.map +1 -0
- package/dist/legacy/Wizard/WizardTitle/styles.js +33 -0
- package/dist/legacy/Wizard/WizardTitle/styles.js.map +1 -0
- package/dist/legacy/Wizard/index.d.ts +2 -0
- package/dist/legacy/Wizard/index.js +7 -0
- package/dist/legacy/Wizard/index.js.map +1 -0
- package/dist/legacy/Wizard/styles.js +8 -0
- package/dist/legacy/Wizard/styles.js.map +1 -0
- package/dist/legacy/index.d.ts +8 -5
- package/dist/legacy/index.js +3 -2
- package/dist/legacy/index.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.d.ts +3 -1
- package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js +2 -6
- package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.d.ts +2 -2
- package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js +2 -2
- package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/utils.js +3 -2
- package/dist/modern/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js +4 -5
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.d.ts +3 -1
- package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js +2 -6
- package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/utils.js +7 -5
- package/dist/modern/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/modern/StepNavigation/StepNavigation.js +5 -5
- package/dist/modern/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/modern/Wizard/Wizard.d.ts +63 -0
- package/dist/modern/Wizard/Wizard.js +209 -0
- package/dist/modern/Wizard/Wizard.js.map +1 -0
- package/dist/modern/Wizard/WizardActions/WizardActions.d.ts +61 -0
- package/dist/modern/Wizard/WizardActions/WizardActions.js +197 -0
- package/dist/modern/Wizard/WizardActions/WizardActions.js.map +1 -0
- package/dist/modern/Wizard/WizardActions/index.d.ts +2 -0
- package/dist/modern/Wizard/WizardActions/index.js +2 -0
- package/dist/modern/Wizard/WizardActions/index.js.map +1 -0
- package/dist/modern/Wizard/WizardActions/styles.js +20 -0
- package/dist/modern/Wizard/WizardActions/styles.js.map +1 -0
- package/dist/modern/Wizard/WizardContainer/WizardContainer.d.ts +28 -0
- package/dist/modern/Wizard/WizardContainer/WizardContainer.js +85 -0
- package/dist/modern/Wizard/WizardContainer/WizardContainer.js.map +1 -0
- package/dist/modern/Wizard/WizardContainer/index.d.ts +2 -0
- package/dist/modern/Wizard/WizardContainer/index.js +2 -0
- package/dist/modern/Wizard/WizardContainer/index.js.map +1 -0
- package/dist/modern/Wizard/WizardContainer/styles.js +13 -0
- package/dist/modern/Wizard/WizardContainer/styles.js.map +1 -0
- package/dist/modern/Wizard/WizardContent/LoadingContainer.js +71 -0
- package/dist/modern/Wizard/WizardContent/LoadingContainer.js.map +1 -0
- package/dist/modern/Wizard/WizardContent/WizardContent.d.ts +28 -0
- package/dist/modern/Wizard/WizardContent/WizardContent.js +122 -0
- package/dist/modern/Wizard/WizardContent/WizardContent.js.map +1 -0
- package/dist/modern/Wizard/WizardContent/index.d.ts +2 -0
- package/dist/modern/Wizard/WizardContent/index.js +2 -0
- package/dist/modern/Wizard/WizardContent/index.js.map +1 -0
- package/dist/modern/Wizard/WizardContent/styles.js +14 -0
- package/dist/modern/Wizard/WizardContent/styles.js.map +1 -0
- package/dist/modern/Wizard/WizardContext/WizardContext.js +12 -0
- package/dist/modern/Wizard/WizardContext/WizardContext.js.map +1 -0
- package/dist/modern/Wizard/WizardContext/index.js +2 -0
- package/dist/modern/Wizard/WizardContext/index.js.map +1 -0
- package/dist/modern/Wizard/WizardTitle/WizardTitle.d.ts +42 -0
- package/dist/modern/Wizard/WizardTitle/WizardTitle.js +188 -0
- package/dist/modern/Wizard/WizardTitle/WizardTitle.js.map +1 -0
- package/dist/modern/Wizard/WizardTitle/index.d.ts +2 -0
- package/dist/modern/Wizard/WizardTitle/index.js +2 -0
- package/dist/modern/Wizard/WizardTitle/index.js.map +1 -0
- package/dist/modern/Wizard/WizardTitle/styles.js +31 -0
- package/dist/modern/Wizard/WizardTitle/styles.js.map +1 -0
- package/dist/modern/Wizard/index.d.ts +2 -0
- package/dist/modern/Wizard/index.js +7 -0
- package/dist/modern/Wizard/index.js.map +1 -0
- package/dist/modern/Wizard/styles.js +6 -0
- package/dist/modern/Wizard/styles.js.map +1 -0
- package/dist/modern/index.d.ts +8 -5
- package/dist/modern/index.js +3 -2
- package/dist/modern/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
3
|
+
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
|
|
8
|
+
import React from "react";
|
|
9
|
+
import PropTypes from "prop-types";
|
|
10
|
+
import { withStyles } from "@mui/styles";
|
|
11
|
+
import clsx from "clsx";
|
|
12
|
+
import { HvDialogContent } from "@hitachivantara/uikit-react-core";
|
|
13
|
+
import { HvWizardContext } from "..";
|
|
14
|
+
import LoadingContainer from "./LoadingContainer";
|
|
15
|
+
import styles from "./styles";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
|
|
18
|
+
const HvWizardContent = ({
|
|
19
|
+
classes,
|
|
20
|
+
fixedHeight = false,
|
|
21
|
+
loading = false,
|
|
22
|
+
children,
|
|
23
|
+
tab
|
|
24
|
+
}) => {
|
|
25
|
+
const arrayChildren = React.Children.toArray(children);
|
|
26
|
+
const initialContext = arrayChildren.reduce((acc, child, index) => {
|
|
27
|
+
const invalid = child.props.mustValidate === true ? false : null;
|
|
28
|
+
const valid = invalid !== null && invalid !== void 0 ? invalid : index === 0 || null;
|
|
29
|
+
return _objectSpread(_objectSpread({}, acc), {}, {
|
|
30
|
+
[index]: _objectSpread(_objectSpread({}, child.props), {}, {
|
|
31
|
+
form: {},
|
|
32
|
+
valid,
|
|
33
|
+
touched: index === 0
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}, {});
|
|
37
|
+
const {
|
|
38
|
+
context,
|
|
39
|
+
setContext
|
|
40
|
+
} = React.useContext(HvWizardContext);
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
setContext(initialContext);
|
|
43
|
+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
44
|
+
|
|
45
|
+
React.useEffect(() => {
|
|
46
|
+
var _context$tab;
|
|
47
|
+
|
|
48
|
+
if (tab && !((_context$tab = context[tab]) !== null && _context$tab !== void 0 && _context$tab.touched)) {
|
|
49
|
+
const updatedContext = Object.entries(context).reduce((acc, [key, childState]) => {
|
|
50
|
+
var _childState$valid;
|
|
51
|
+
|
|
52
|
+
return _objectSpread(_objectSpread({}, acc), +key <= tab ? {
|
|
53
|
+
[key]: _objectSpread(_objectSpread({}, childState), {}, {
|
|
54
|
+
touched: true,
|
|
55
|
+
valid: (_childState$valid = childState.valid) !== null && _childState$valid !== void 0 ? _childState$valid : true
|
|
56
|
+
})
|
|
57
|
+
} : {
|
|
58
|
+
[key]: childState
|
|
59
|
+
});
|
|
60
|
+
}, {});
|
|
61
|
+
setContext(updatedContext);
|
|
62
|
+
}
|
|
63
|
+
}, [tab]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
64
|
+
|
|
65
|
+
return /*#__PURE__*/_jsx(HvDialogContent, {
|
|
66
|
+
className: clsx(classes.contentContainer, fixedHeight && classes.fixedHeight),
|
|
67
|
+
indentContent: true,
|
|
68
|
+
children: /*#__PURE__*/_jsx(LoadingContainer, {
|
|
69
|
+
hidden: !loading,
|
|
70
|
+
children: React.Children.map(arrayChildren, (child, index) => {
|
|
71
|
+
if (index === tab) {
|
|
72
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
73
|
+
tab
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return null;
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
process.env.NODE_ENV !== "production" ? HvWizardContent.propTypes = {
|
|
84
|
+
/**
|
|
85
|
+
* Current tab to show.
|
|
86
|
+
*/
|
|
87
|
+
tab: PropTypes.number.isRequired,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Tabs to show on the Wizard.
|
|
91
|
+
*/
|
|
92
|
+
children: PropTypes.node.isRequired,
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A Jss Object used to override or extend the styles applied.
|
|
96
|
+
*/
|
|
97
|
+
classes: PropTypes.shape({
|
|
98
|
+
/**
|
|
99
|
+
* Style applied to the Wizard content container
|
|
100
|
+
*/
|
|
101
|
+
contentContainer: PropTypes.string,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Style applied to the Wizard to fix its height.
|
|
105
|
+
*/
|
|
106
|
+
fixedHeight: PropTypes.string
|
|
107
|
+
}).isRequired,
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Forces minimum height to the component.
|
|
111
|
+
*/
|
|
112
|
+
fixedHeight: PropTypes.bool,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Whether the loading animation is shown.
|
|
116
|
+
*/
|
|
117
|
+
loading: PropTypes.bool
|
|
118
|
+
} : void 0;
|
|
119
|
+
export default withStyles(styles, {
|
|
120
|
+
name: "HvWizardContent"
|
|
121
|
+
})(HvWizardContent);
|
|
122
|
+
//# sourceMappingURL=WizardContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardContent.js","names":["React","PropTypes","withStyles","clsx","HvDialogContent","HvWizardContext","LoadingContainer","styles","HvWizardContent","classes","fixedHeight","loading","children","tab","arrayChildren","Children","toArray","initialContext","reduce","acc","child","index","invalid","props","mustValidate","valid","form","touched","context","setContext","useContext","useEffect","updatedContext","Object","entries","key","childState","contentContainer","map","cloneElement","propTypes","number","isRequired","node","shape","string","bool","name"],"sources":["../../../../src/Wizard/WizardContent/WizardContent.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport clsx from \"clsx\";\nimport { HvDialogContent } from \"@hitachivantara/uikit-react-core\";\nimport { HvWizardContext } from \"..\";\nimport LoadingContainer from \"./LoadingContainer\";\n\nimport styles from \"./styles\";\n\nconst HvWizardContent = ({ classes, fixedHeight = false, loading = false, children, tab }) => {\n const arrayChildren = React.Children.toArray(children);\n const initialContext = arrayChildren.reduce((acc, child, index) => {\n const invalid = child.props.mustValidate === true ? false : null;\n const valid = invalid ?? (index === 0 || null);\n return {\n ...acc,\n [index]: { ...child.props, form: {}, valid, touched: index === 0 },\n };\n }, {});\n\n const { context, setContext } = React.useContext(HvWizardContext);\n\n React.useEffect(() => {\n setContext(initialContext);\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n React.useEffect(() => {\n if (tab && !context[tab]?.touched) {\n const updatedContext = Object.entries(context).reduce(\n (acc, [key, childState]) => ({\n ...acc,\n ...(+key <= tab\n ? { [key]: { ...childState, touched: true, valid: childState.valid ?? true } }\n : { [key]: childState }),\n }),\n {}\n );\n\n setContext(updatedContext);\n }\n }, [tab]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <HvDialogContent\n className={clsx(classes.contentContainer, {\n [classes.fixedHeight]: fixedHeight,\n })}\n indentContent\n >\n <LoadingContainer hidden={!loading}>\n {React.Children.map(arrayChildren, (child, index) => {\n if (index === tab) {\n return React.cloneElement(child, { tab });\n }\n return null;\n })}\n </LoadingContainer>\n </HvDialogContent>\n );\n};\n\nHvWizardContent.propTypes = {\n /**\n * Current tab to show.\n */\n tab: PropTypes.number.isRequired,\n /**\n * Tabs to show on the Wizard.\n */\n children: PropTypes.node.isRequired,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the Wizard content container\n */\n contentContainer: PropTypes.string,\n /**\n * Style applied to the Wizard to fix its height.\n */\n fixedHeight: PropTypes.string,\n }).isRequired,\n /**\n * Forces minimum height to the component.\n */\n fixedHeight: PropTypes.bool,\n /**\n * Whether the loading animation is shown.\n */\n loading: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvWizardContent\" })(HvWizardContent);\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,SAASC,eAAT,QAAgC,kCAAhC;AACA,SAASC,eAAT,QAAgC,IAAhC;AACA,OAAOC,gBAAP,MAA6B,oBAA7B;AAEA,OAAOC,MAAP,MAAmB,UAAnB;;;AAEA,MAAMC,eAAe,GAAG,CAAC;EAAEC,OAAF;EAAWC,WAAW,GAAG,KAAzB;EAAgCC,OAAO,GAAG,KAA1C;EAAiDC,QAAjD;EAA2DC;AAA3D,CAAD,KAAsE;EAC5F,MAAMC,aAAa,GAAGd,KAAK,CAACe,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 -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Wizard/WizardContent/index.js"],"sourcesContent":["export { default } from \"./WizardContent\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,iBAAxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const styles = () => ({
|
|
2
|
+
contentContainer: {
|
|
3
|
+
position: "relative",
|
|
4
|
+
padding: 20,
|
|
5
|
+
marginLeft: 0,
|
|
6
|
+
minHeight: 400
|
|
7
|
+
},
|
|
8
|
+
fixedHeight: {
|
|
9
|
+
minHeight: "calc(100vh - 387px)"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export default styles;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","contentContainer","position","padding","marginLeft","minHeight","fixedHeight"],"sources":["../../../../src/Wizard/WizardContent/styles.js"],"sourcesContent":["const styles = () => ({\n contentContainer: {\n position: \"relative\",\n padding: 20,\n marginLeft: 0,\n minHeight: 400,\n },\n fixedHeight: {\n minHeight: \"calc(100vh - 387px)\",\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,OAAO;EACpBC,gBAAgB,EAAE;IAChBC,QAAQ,EAAE,UADM;IAEhBC,OAAO,EAAE,EAFO;IAGhBC,UAAU,EAAE,CAHI;IAIhBC,SAAS,EAAE;EAJK,CADE;EAOpBC,WAAW,EAAE;IACXD,SAAS,EAAE;EADA;AAPO,CAAP,CAAf;;AAYA,eAAeL,MAAf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
const WizardContext = /*#__PURE__*/createContext({
|
|
3
|
+
context: {},
|
|
4
|
+
setContext: () => {}
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
if (process.env.NODE_ENV !== "production") {
|
|
8
|
+
WizardContext.displayName = "WizardContext";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default WizardContext;
|
|
12
|
+
//# sourceMappingURL=WizardContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardContext.js","names":["createContext","WizardContext","context","setContext","process","env","NODE_ENV","displayName"],"sources":["../../../../src/Wizard/WizardContext/WizardContext.js"],"sourcesContent":["import { createContext } from \"react\";\n\nconst WizardContext = createContext({\n context: {},\n setContext: () => {},\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n WizardContext.displayName = \"WizardContext\";\n}\n\nexport default WizardContext;\n"],"mappings":"AAAA,SAASA,aAAT,QAA8B,OAA9B;AAEA,MAAMC,aAAa,gBAAGD,aAAa,CAAC;EAClCE,OAAO,EAAE,EADyB;EAElCC,UAAU,EAAE,MAAM,CAAE;AAFc,CAAD,CAAnC;;AAKA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;EACzCL,aAAa,CAACM,WAAd,GAA4B,eAA5B;AACD;;AAED,eAAeN,aAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Wizard/WizardContext/index.js"],"sourcesContent":["export { default } from \"./WizardContext\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,iBAAxB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@mui/material";
|
|
3
|
+
import { HvStepNavigationProps } from "../../StepNavigation";
|
|
4
|
+
|
|
5
|
+
export type HvWizardTitleClassKey = "root";
|
|
6
|
+
|
|
7
|
+
export type HvWizardTitleProps = StandardProps<
|
|
8
|
+
React.HTMLAttributes<HTMLDivElement>,
|
|
9
|
+
HvWizardTitleClassKey
|
|
10
|
+
> & {
|
|
11
|
+
/**
|
|
12
|
+
* Title for the wizard.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* Shows the summary button.
|
|
17
|
+
*/
|
|
18
|
+
hasSummary: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* An object containing all the labels for the wizard header.
|
|
21
|
+
*/
|
|
22
|
+
labels: {
|
|
23
|
+
/**
|
|
24
|
+
* Summary button label.
|
|
25
|
+
*/
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Current tab to check if it's last page or first to disable previous button and swap between next and submit button.
|
|
30
|
+
*/
|
|
31
|
+
tab: number;
|
|
32
|
+
/**
|
|
33
|
+
* Function to change the tab when pressing previous and next buttons.
|
|
34
|
+
*/
|
|
35
|
+
changeTab: any;
|
|
36
|
+
/**
|
|
37
|
+
* Custom object to define type, size and width of the StepNavigation component
|
|
38
|
+
*/
|
|
39
|
+
customStep?: Pick<HvStepNavigationProps, "type" | "stepSize" | "width">
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default function HvWizardTitle(props: HvWizardTitleProps): JSX.Element | null;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
var _Report;
|
|
2
|
+
|
|
3
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import PropTypes from "prop-types";
|
|
6
|
+
import { withStyles } from "@mui/styles";
|
|
7
|
+
import { HvButton, HvDialogTitle, HvGrid, HvTypography } from "@hitachivantara/uikit-react-core";
|
|
8
|
+
import { Report } from "@hitachivantara/uikit-react-icons";
|
|
9
|
+
import { HvStepNavigation } from "@hitachivantara/uikit-react-lab";
|
|
10
|
+
import { HvWizardContext } from "..";
|
|
11
|
+
import styles from "./styles";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
|
|
15
|
+
const switchTabState = (state, currentTab, index) => {
|
|
16
|
+
if (index === currentTab) return "Current";
|
|
17
|
+
if (state.valid) return "Completed";
|
|
18
|
+
if (state.valid === null) return "Enabled";
|
|
19
|
+
if (state.touched && state.valid === false) return "Failed"; // "Disabled"
|
|
20
|
+
// "Pending"
|
|
21
|
+
|
|
22
|
+
return "Enabled";
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const HvWizardTitle = ({
|
|
26
|
+
title,
|
|
27
|
+
hasSummary = false,
|
|
28
|
+
labels = {},
|
|
29
|
+
tab,
|
|
30
|
+
classes,
|
|
31
|
+
changeTab,
|
|
32
|
+
customStep = {}
|
|
33
|
+
}) => {
|
|
34
|
+
var _customStep$type, _customStep$stepSize, _customStep$width, _labels$summary;
|
|
35
|
+
|
|
36
|
+
const {
|
|
37
|
+
context
|
|
38
|
+
} = React.useContext(HvWizardContext);
|
|
39
|
+
const [steps, setSteps] = React.useState([]);
|
|
40
|
+
React.useEffect(() => {
|
|
41
|
+
const contextArray = Object.entries(context);
|
|
42
|
+
|
|
43
|
+
if (contextArray.length) {
|
|
44
|
+
const updatedSteps = contextArray.map(([, childState], index) => {
|
|
45
|
+
var _childState$name;
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
title: (_childState$name = childState.name) !== null && _childState$name !== void 0 ? _childState$name : `${index + 1}`,
|
|
49
|
+
state: switchTabState(childState, tab, index),
|
|
50
|
+
onClick: () => changeTab(index)
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
setSteps(updatedSteps);
|
|
54
|
+
}
|
|
55
|
+
}, [context, tab, changeTab]);
|
|
56
|
+
return /*#__PURE__*/_jsx(HvDialogTitle, {
|
|
57
|
+
className: classes.headerContainer,
|
|
58
|
+
classes: {
|
|
59
|
+
messageContainer: classes.messageContainer
|
|
60
|
+
},
|
|
61
|
+
children: /*#__PURE__*/_jsxs(HvGrid, {
|
|
62
|
+
container: true,
|
|
63
|
+
justifyContent: "space-between",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
className: classes.titleContainer,
|
|
66
|
+
children: [title && /*#__PURE__*/_jsx(HvTypography, {
|
|
67
|
+
variant: "xsTitle",
|
|
68
|
+
component: "h3",
|
|
69
|
+
children: title
|
|
70
|
+
}), !!steps.length && /*#__PURE__*/_jsx(HvStepNavigation, {
|
|
71
|
+
className: classes.stepContainer,
|
|
72
|
+
steps: steps,
|
|
73
|
+
type: (_customStep$type = customStep === null || customStep === void 0 ? void 0 : customStep.type) !== null && _customStep$type !== void 0 ? _customStep$type : "Default",
|
|
74
|
+
stepSize: (_customStep$stepSize = customStep === null || customStep === void 0 ? void 0 : customStep.stepSize) !== null && _customStep$stepSize !== void 0 ? _customStep$stepSize : "XS",
|
|
75
|
+
width: (_customStep$width = customStep === null || customStep === void 0 ? void 0 : customStep.width) !== null && _customStep$width !== void 0 ? _customStep$width : {
|
|
76
|
+
xs: 200,
|
|
77
|
+
sm: 350,
|
|
78
|
+
md: 600,
|
|
79
|
+
lg: 800
|
|
80
|
+
}
|
|
81
|
+
}), hasSummary && /*#__PURE__*/_jsxs(HvButton, {
|
|
82
|
+
category: "secondary",
|
|
83
|
+
className: classes.buttonWidth,
|
|
84
|
+
classes: {
|
|
85
|
+
root: classes.rootSummaryButton
|
|
86
|
+
},
|
|
87
|
+
children: [_Report || (_Report = /*#__PURE__*/_jsx(Report, {})), " ", `${(_labels$summary = labels.summary) !== null && _labels$summary !== void 0 ? _labels$summary : "Summary"}`]
|
|
88
|
+
})]
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
process.env.NODE_ENV !== "production" ? HvWizardTitle.propTypes = {
|
|
94
|
+
/**
|
|
95
|
+
* A Jss Object used to override or extend the styles applied.
|
|
96
|
+
*/
|
|
97
|
+
classes: PropTypes.shape({
|
|
98
|
+
/**
|
|
99
|
+
* Styles applied to the header container.
|
|
100
|
+
*/
|
|
101
|
+
headerContainer: PropTypes.string,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Styles applied to override the Dialog Title styles.
|
|
105
|
+
*/
|
|
106
|
+
messageContainer: PropTypes.string,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Styles applied to the header content container.
|
|
110
|
+
*/
|
|
111
|
+
titleContainer: PropTypes.string,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Styles applied to the Button component to override its width.
|
|
115
|
+
*/
|
|
116
|
+
buttonWidth: PropTypes.string,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Styles applied to the Button component to override its right padding.
|
|
120
|
+
*/
|
|
121
|
+
rootSummaryButton: PropTypes.string,
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
stepContainer: PropTypes.string
|
|
127
|
+
}),
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Title for the wizard.
|
|
131
|
+
*/
|
|
132
|
+
title: PropTypes.string,
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Shows the summary button.
|
|
136
|
+
*/
|
|
137
|
+
hasSummary: PropTypes.bool,
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* An object containing all the labels for the wizard header.
|
|
141
|
+
*/
|
|
142
|
+
labels: PropTypes.shape({
|
|
143
|
+
/**
|
|
144
|
+
* Summary button label.
|
|
145
|
+
*/
|
|
146
|
+
summary: PropTypes.string
|
|
147
|
+
}),
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Current tab to check if it's last page or first to disable previous button and swap between next and submit button.
|
|
151
|
+
*/
|
|
152
|
+
tab: PropTypes.number.isRequired,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Function to change the tab when pressing previous and next buttons.
|
|
156
|
+
*/
|
|
157
|
+
changeTab: PropTypes.func.isRequired,
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Custom object to define type, size and width of the StepNavigation component
|
|
161
|
+
*/
|
|
162
|
+
customStep: PropTypes.shape({
|
|
163
|
+
/**
|
|
164
|
+
* Type of step navigation. Values = {"Simple", "Default"}.
|
|
165
|
+
*/
|
|
166
|
+
type: PropTypes.oneOf(["Simple", "Default"]),
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Sets one of the standard sizes of the steps. Values = {"XS", "SM", "MD", "LG", "XL"}
|
|
170
|
+
*/
|
|
171
|
+
stepSize: PropTypes.oneOf(["XS", "SM", "MD", "LG", "XL"]),
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Width of the component element on each breakpoint screen resolution.
|
|
175
|
+
*/
|
|
176
|
+
width: PropTypes.shape({
|
|
177
|
+
xs: PropTypes.number,
|
|
178
|
+
sm: PropTypes.number,
|
|
179
|
+
md: PropTypes.number,
|
|
180
|
+
lg: PropTypes.number,
|
|
181
|
+
xl: PropTypes.number
|
|
182
|
+
})
|
|
183
|
+
})
|
|
184
|
+
} : void 0;
|
|
185
|
+
export default withStyles(styles, {
|
|
186
|
+
name: "HvWizardTitle"
|
|
187
|
+
})(HvWizardTitle);
|
|
188
|
+
//# sourceMappingURL=WizardTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardTitle.js","names":["React","PropTypes","withStyles","HvButton","HvDialogTitle","HvGrid","HvTypography","Report","HvStepNavigation","HvWizardContext","styles","switchTabState","state","currentTab","index","valid","touched","HvWizardTitle","title","hasSummary","labels","tab","classes","changeTab","customStep","context","useContext","steps","setSteps","useState","useEffect","contextArray","Object","entries","length","updatedSteps","map","childState","name","onClick","headerContainer","messageContainer","titleContainer","stepContainer","type","stepSize","width","xs","sm","md","lg","buttonWidth","root","rootSummaryButton","summary","propTypes","shape","string","bool","number","isRequired","func","oneOf","xl"],"sources":["../../../../src/Wizard/WizardTitle/WizardTitle.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport { HvButton, HvDialogTitle, HvGrid, HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport { Report } from \"@hitachivantara/uikit-react-icons\";\nimport { HvStepNavigation } from \"@hitachivantara/uikit-react-lab\";\nimport { HvWizardContext } from \"..\";\n\nimport styles from \"./styles\";\n\nconst switchTabState = (state, currentTab, index) => {\n if (index === currentTab) return \"Current\";\n if (state.valid) return \"Completed\";\n if (state.valid === null) return \"Enabled\";\n if (state.touched && state.valid === false) return \"Failed\";\n // \"Disabled\"\n // \"Pending\"\n return \"Enabled\";\n};\n\nconst HvWizardTitle = ({\n title,\n hasSummary = false,\n labels = {},\n tab,\n classes,\n changeTab,\n customStep = {},\n}) => {\n const { context } = React.useContext(HvWizardContext);\n const [steps, setSteps] = React.useState([]);\n\n React.useEffect(() => {\n const contextArray = Object.entries(context);\n if (contextArray.length) {\n const updatedSteps = contextArray.map(([, childState], index) => ({\n title: childState.name ?? `${index + 1}`,\n state: switchTabState(childState, tab, index),\n onClick: () => changeTab(index),\n }));\n\n setSteps(updatedSteps);\n }\n }, [context, tab, changeTab]);\n\n return (\n <HvDialogTitle\n className={classes.headerContainer}\n classes={{ messageContainer: classes.messageContainer }}\n >\n <HvGrid\n container\n justifyContent=\"space-between\"\n alignItems=\"center\"\n className={classes.titleContainer}\n >\n {title && (\n <HvTypography variant=\"xsTitle\" component=\"h3\">\n {title}\n </HvTypography>\n )}\n {!!steps.length && (\n <HvStepNavigation\n className={classes.stepContainer}\n steps={steps}\n type={customStep?.type ?? \"Default\"}\n stepSize={customStep?.stepSize ?? \"XS\"}\n width={customStep?.width ?? { xs: 200, sm: 350, md: 600, lg: 800 }}\n />\n )}\n {hasSummary && (\n <HvButton\n category=\"secondary\"\n className={classes.buttonWidth}\n classes={{ root: classes.rootSummaryButton }}\n >\n <Report /> {`${labels.summary ?? \"Summary\"}`}\n </HvButton>\n )}\n </HvGrid>\n </HvDialogTitle>\n );\n};\n\nHvWizardTitle.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the header container.\n */\n headerContainer: PropTypes.string,\n /**\n * Styles applied to override the Dialog Title styles.\n */\n messageContainer: PropTypes.string,\n /**\n * Styles applied to the header content container.\n */\n titleContainer: PropTypes.string,\n /**\n * Styles applied to the Button component to override its width.\n */\n buttonWidth: PropTypes.string,\n /**\n * Styles applied to the Button component to override its right padding.\n */\n rootSummaryButton: PropTypes.string,\n /**\n *\n */\n stepContainer: PropTypes.string,\n }),\n /**\n * Title for the wizard.\n */\n title: PropTypes.string,\n /**\n * Shows the summary button.\n */\n hasSummary: PropTypes.bool,\n /**\n * An object containing all the labels for the wizard header.\n */\n labels: PropTypes.shape({\n /**\n * Summary button label.\n */\n summary: PropTypes.string,\n }),\n /**\n * Current tab to check if it's last page or first to disable previous button and swap between next and submit button.\n */\n tab: PropTypes.number.isRequired,\n /**\n * Function to change the tab when pressing previous and next buttons.\n */\n changeTab: PropTypes.func.isRequired,\n /**\n * Custom object to define type, size and width of the StepNavigation component\n */\n customStep: PropTypes.shape({\n /**\n * Type of step navigation. Values = {\"Simple\", \"Default\"}.\n */\n type: PropTypes.oneOf([\"Simple\", \"Default\"]),\n /**\n * Sets one of the standard sizes of the steps. Values = {\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"}\n */\n stepSize: PropTypes.oneOf([\"XS\", \"SM\", \"MD\", \"LG\", \"XL\"]),\n /**\n * Width of the component element on each breakpoint screen resolution.\n */\n width: PropTypes.shape({\n xs: PropTypes.number,\n sm: PropTypes.number,\n md: PropTypes.number,\n lg: PropTypes.number,\n xl: PropTypes.number,\n }),\n }),\n};\n\nexport default withStyles(styles, { name: \"HvWizardTitle\" })(HvWizardTitle);\n"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,SAASC,QAAT,EAAmBC,aAAnB,EAAkCC,MAAlC,EAA0CC,YAA1C,QAA8D,kCAA9D;AACA,SAASC,MAAT,QAAuB,mCAAvB;AACA,SAASC,gBAAT,QAAiC,iCAAjC;AACA,SAASC,eAAT,QAAgC,IAAhC;AAEA,OAAOC,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AnB,EAAyB,IAAzB,CAAhB,CARgB;;IAS1B;AACJ;AACA;IACIhB,KAAK,EAAE7C,SAAS,CAACuD,KAAV,CAAgB;MACrBT,EAAE,EAAE9C,SAAS,CAAC0D,MADO;MAErBX,EAAE,EAAE/C,SAAS,CAAC0D,MAFO;MAGrBV,EAAE,EAAEhD,SAAS,CAAC0D,MAHO;MAIrBT,EAAE,EAAEjD,SAAS,CAAC0D,MAJO;MAKrBI,EAAE,EAAE9D,SAAS,CAAC0D;IALO,CAAhB;EAZmB,CAAhB;AA1DY,CAA1B;AAgFA,eAAezD,UAAU,CAACQ,MAAD,EAAS;EAAE4B,IAAI,EAAE;AAAR,CAAT,CAAV,CAA8CrB,aAA9C,CAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Wizard/WizardTitle/index.js"],"sourcesContent":["export { default } from \"./WizardTitle\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,eAAxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const styles = theme => ({
|
|
2
|
+
messageContainer: {
|
|
3
|
+
"& > div": {
|
|
4
|
+
width: "100%"
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
titleContainer: {
|
|
8
|
+
margin: 0,
|
|
9
|
+
width: "100%"
|
|
10
|
+
},
|
|
11
|
+
buttonWidth: {
|
|
12
|
+
width: 120
|
|
13
|
+
},
|
|
14
|
+
rootSummaryButton: {
|
|
15
|
+
paddingRight: 18
|
|
16
|
+
},
|
|
17
|
+
headerContainer: {
|
|
18
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo2,
|
|
19
|
+
"& h6": {
|
|
20
|
+
fontSize: "16px",
|
|
21
|
+
fontWeight: "bold",
|
|
22
|
+
letterSpacing: 0
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
stepContainer: {
|
|
26
|
+
margin: "auto"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export default styles;
|
|
31
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","messageContainer","width","titleContainer","margin","buttonWidth","rootSummaryButton","paddingRight","headerContainer","backgroundColor","hv","palette","atmosphere","atmo2","fontSize","fontWeight","letterSpacing","stepContainer"],"sources":["../../../../src/Wizard/WizardTitle/styles.js"],"sourcesContent":["const styles = (theme) => ({\n messageContainer: {\n \"& > div\": {\n width: \"100%\",\n },\n },\n titleContainer: {\n margin: 0,\n width: \"100%\",\n },\n buttonWidth: {\n width: 120,\n },\n rootSummaryButton: {\n paddingRight: 18,\n },\n headerContainer: {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n \"& h6\": {\n fontSize: \"16px\",\n fontWeight: \"bold\",\n letterSpacing: 0,\n },\n },\n stepContainer: {\n margin: \"auto\",\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAIC,KAAD,KAAY;EACzBC,gBAAgB,EAAE;IAChB,WAAW;MACTC,KAAK,EAAE;IADE;EADK,CADO;EAMzBC,cAAc,EAAE;IACdC,MAAM,EAAE,CADM;IAEdF,KAAK,EAAE;EAFO,CANS;EAUzBG,WAAW,EAAE;IACXH,KAAK,EAAE;EADI,CAVY;EAazBI,iBAAiB,EAAE;IACjBC,YAAY,EAAE;EADG,CAbM;EAgBzBC,eAAe,EAAE;IACfC,eAAe,EAAET,KAAK,CAACU,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAD9B;IAEf,QAAQ;MACNC,QAAQ,EAAE,MADJ;MAENC,UAAU,EAAE,MAFN;MAGNC,aAAa,EAAE;IAHT;EAFO,CAhBQ;EAwBzBC,aAAa,EAAE;IACbb,MAAM,EAAE;EADK;AAxBU,CAAZ,CAAf;;AA6BA,eAAeL,MAAf"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default } from "./Wizard";
|
|
2
|
+
export { default as HvWizardContainer } from "./WizardContainer";
|
|
3
|
+
export { default as HvWizardTitle } from "./WizardTitle";
|
|
4
|
+
export { default as HvWizardContent } from "./WizardContent";
|
|
5
|
+
export { default as HvWizardActions } from "./WizardActions";
|
|
6
|
+
export { default as HvWizardContext } from "./WizardContext";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","HvWizardContainer","HvWizardTitle","HvWizardContent","HvWizardActions","HvWizardContext"],"sources":["../../../src/Wizard/index.js"],"sourcesContent":["export { default } from \"./Wizard\";\nexport { default as HvWizardContainer } from \"./WizardContainer\";\nexport { default as HvWizardTitle } from \"./WizardTitle\";\nexport { default as HvWizardContent } from \"./WizardContent\";\nexport { default as HvWizardActions } from \"./WizardActions\";\nexport { default as HvWizardContext } from \"./WizardContext\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB;AACA,SAASA,OAAO,IAAIC,iBAApB,QAA6C,mBAA7C;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,eAAzC;AACA,SAASF,OAAO,IAAIG,eAApB,QAA2C,iBAA3C;AACA,SAASH,OAAO,IAAII,eAApB,QAA2C,iBAA3C;AACA,SAASJ,OAAO,IAAIK,eAApB,QAA2C,iBAA3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","root"],"sources":["../../../src/Wizard/styles.js"],"sourcesContent":["const styles = () => ({\n root: {},\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,OAAO;EACpBC,IAAI,EAAE;AADc,CAAP,CAAf;;AAIA,eAAeD,MAAf"}
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export * from "./ColorPicker";
|
|
|
4
4
|
export { default as HvDrawer } from "./Drawer";
|
|
5
5
|
export * from "./Drawer";
|
|
6
6
|
|
|
7
|
+
export { default as HvImageCarousel } from "./ImageCarousel";
|
|
8
|
+
export * from "./ImageCarousel";
|
|
9
|
+
|
|
7
10
|
export { default as HvInlineEditor } from "./InlineEditor";
|
|
8
11
|
export * from "./InlineEditor";
|
|
9
12
|
|
|
@@ -13,11 +16,11 @@ export * from "./NavigationAnchors";
|
|
|
13
16
|
export { default as HvNotificationPanel } from "./NotificationPanel";
|
|
14
17
|
export * from "./NotificationPanel";
|
|
15
18
|
|
|
19
|
+
export { default as HvStepNavigation } from "./StepNavigation";
|
|
20
|
+
export * from "./StepNavigation";
|
|
21
|
+
|
|
16
22
|
export { default as HvTimeAgo } from "./TimeAgo";
|
|
17
23
|
export * from "./TimeAgo";
|
|
18
24
|
|
|
19
|
-
export { default as
|
|
20
|
-
export * from "./
|
|
21
|
-
|
|
22
|
-
export { default as HvStepNavigation } from "./StepNavigation";
|
|
23
|
-
export * from "./StepNavigation";
|
|
25
|
+
export { default as HvWizard } from "./Wizard";
|
|
26
|
+
export * from "./Wizard";
|
package/dist/modern/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { default as HvColorPicker } from "./ColorPicker";
|
|
2
2
|
export { default as HvDrawer } from "./Drawer";
|
|
3
|
+
export { default as HvImageCarousel } from "./ImageCarousel";
|
|
3
4
|
export { default as HvInlineEditor } from "./InlineEditor";
|
|
4
5
|
export { default as HvNavigationAnchors } from "./NavigationAnchors";
|
|
5
6
|
export { default as HvNotificationPanel } from "./NotificationPanel";
|
|
7
|
+
export { default as HvStepNavigation } from "./StepNavigation";
|
|
6
8
|
export { default as HvTimeAgo } from "./TimeAgo";
|
|
7
9
|
export * from "./TimeAgo";
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as HvStepNavigation } from "./StepNavigation";
|
|
10
|
+
export { default as HvWizard } from "./Wizard";
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
package/dist/modern/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","HvColorPicker","HvDrawer","HvInlineEditor","HvNavigationAnchors","HvNotificationPanel","
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","HvColorPicker","HvDrawer","HvImageCarousel","HvInlineEditor","HvNavigationAnchors","HvNotificationPanel","HvStepNavigation","HvTimeAgo","HvWizard"],"sources":["../../src/index.js"],"sourcesContent":["export { default as HvColorPicker } from \"./ColorPicker\";\nexport { default as HvDrawer } from \"./Drawer\";\nexport { default as HvImageCarousel } from \"./ImageCarousel\";\nexport { default as HvInlineEditor } from \"./InlineEditor\";\nexport { default as HvNavigationAnchors } from \"./NavigationAnchors\";\nexport { default as HvNotificationPanel } from \"./NotificationPanel\";\nexport { default as HvStepNavigation } from \"./StepNavigation\";\nexport { default as HvTimeAgo } from \"./TimeAgo\";\nexport * from \"./TimeAgo\";\nexport { default as HvWizard } from \"./Wizard\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,aAApB,QAAyC,eAAzC;AACA,SAASD,OAAO,IAAIE,QAApB,QAAoC,UAApC;AACA,SAASF,OAAO,IAAIG,eAApB,QAA2C,iBAA3C;AACA,SAASH,OAAO,IAAII,cAApB,QAA0C,gBAA1C;AACA,SAASJ,OAAO,IAAIK,mBAApB,QAA+C,qBAA/C;AACA,SAASL,OAAO,IAAIM,mBAApB,QAA+C,qBAA/C;AACA,SAASN,OAAO,IAAIO,gBAApB,QAA4C,kBAA5C;AACA,SAASP,OAAO,IAAIQ,SAApB,QAAqC,WAArC;AACA,cAAc,WAAd;AACA,SAASR,OAAO,IAAIS,QAApB,QAAoC,UAApC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-lab",
|
|
3
|
-
"version": "4.0.1-next.
|
|
3
|
+
"version": "4.0.1-next.5",
|
|
4
4
|
"description": "A collection of contributed React components for the Hitachi Vantara's Design System.",
|
|
5
5
|
"homepage": "https://github.com/lumada-design/hv-uikit-react",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-dom": "^16.13.1 || ^17.0.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@hitachivantara/uikit-react-core": "^4.0.1-next.
|
|
47
|
+
"@hitachivantara/uikit-react-core": "^4.0.1-next.5",
|
|
48
48
|
"@hitachivantara/uikit-react-icons": "^4.0.1-next.1",
|
|
49
49
|
"clsx": "^1.2.1",
|
|
50
50
|
"dayjs": "^1.11.4",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "fe888b15f863a60ee54f0ba4084568a3a44feed2"
|
|
66
66
|
}
|