@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.
@@ -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 };