@elliemae/ds-wizard 2.2.0 → 2.3.0-alpha.3
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/cjs/WizardStep.js +76 -63
- package/cjs/WizardStep.js.map +7 -0
- package/cjs/WizardSteps.js +58 -56
- package/cjs/WizardSteps.js.map +7 -0
- package/cjs/blockNames.js +39 -11
- package/cjs/blockNames.js.map +7 -0
- package/cjs/index.js +41 -15
- package/cjs/index.js.map +7 -0
- package/cjs/stories/steps.js +57 -36
- package/cjs/stories/steps.js.map +7 -0
- package/cjs/useWizard.js +48 -24
- package/cjs/useWizard.js.map +7 -0
- package/esm/WizardStep.js +47 -54
- package/esm/WizardStep.js.map +7 -0
- package/esm/WizardSteps.js +26 -42
- package/esm/WizardSteps.js.map +7 -0
- package/esm/blockNames.js +10 -5
- package/esm/blockNames.js.map +7 -0
- package/esm/index.js +12 -3
- package/esm/index.js.map +7 -0
- package/esm/stories/steps.js +28 -28
- package/esm/stories/steps.js.map +7 -0
- package/esm/useWizard.js +16 -19
- package/esm/useWizard.js.map +7 -0
- package/package.json +6 -6
- package/cjs/DSWizard.stories.js +0 -18
- package/cjs/stories/wizzard-overview.stories.js +0 -61
- package/esm/DSWizard.stories.js +0 -13
- package/esm/stories/wizzard-overview.stories.js +0 -52
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'react';
|
|
3
|
-
import { useWizard, WizardStepsIndicator } from '@elliemae/ds-wizard';
|
|
4
|
-
import DSButton from '@elliemae/ds-button';
|
|
5
|
-
import { steps } from './steps.js';
|
|
6
|
-
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
const Overview = () => {
|
|
9
|
-
const {
|
|
10
|
-
WizardCurrentContent,
|
|
11
|
-
current,
|
|
12
|
-
next,
|
|
13
|
-
previous,
|
|
14
|
-
canNext,
|
|
15
|
-
canPrevious
|
|
16
|
-
} = useWizard({
|
|
17
|
-
steps
|
|
18
|
-
});
|
|
19
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
20
|
-
children: [/*#__PURE__*/_jsx(WizardStepsIndicator, {
|
|
21
|
-
current: current,
|
|
22
|
-
steps: steps
|
|
23
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
24
|
-
style: {
|
|
25
|
-
margin: '10px 0',
|
|
26
|
-
padding: 10,
|
|
27
|
-
border: '1px solid #ddd'
|
|
28
|
-
}
|
|
29
|
-
}, void 0, /*#__PURE__*/_jsx(WizardCurrentContent, {
|
|
30
|
-
data: {
|
|
31
|
-
someExtraData: 'step information'
|
|
32
|
-
}
|
|
33
|
-
})), /*#__PURE__*/_jsx("div", {
|
|
34
|
-
style: {
|
|
35
|
-
display: 'flex',
|
|
36
|
-
width: 180,
|
|
37
|
-
justifyContent: 'space-between'
|
|
38
|
-
}
|
|
39
|
-
}, void 0, /*#__PURE__*/_jsx(DSButton, {
|
|
40
|
-
buttonType: "secondary",
|
|
41
|
-
disabled: !canPrevious,
|
|
42
|
-
labelText: "Previous",
|
|
43
|
-
onClick: previous
|
|
44
|
-
}), /*#__PURE__*/_jsx(DSButton, {
|
|
45
|
-
disabled: !canNext,
|
|
46
|
-
labelText: "Next",
|
|
47
|
-
onClick: next
|
|
48
|
-
}))]
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { Overview };
|