@elliemae/ds-wizard 2.3.0-alpha.8 → 2.3.0-alpha.9
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/types/DSWizard.stories.d.ts +9 -0
- package/dist/types/WizardStep.d.ts +55 -0
- package/dist/types/WizardSteps.d.ts +31 -0
- package/dist/types/blockNames.d.ts +3 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/stories/steps.d.ts +5 -0
- package/dist/types/stories/wizzard-overview.stories.d.ts +1 -0
- package/dist/types/useWizard.d.ts +14 -0
- package/package.json +6 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const title: string;
|
|
3
|
+
export { WizardStepsIndicator as component };
|
|
4
|
+
export namespace parameters {
|
|
5
|
+
export { WizzardWithSchema as propsSchemas };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export * from "./stories/wizzard-overview.stories";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function WizardStep({ label, icon, iconCompleted, iconActive, active, completed, index, }: {
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
icon?: null | undefined;
|
|
6
|
+
iconCompleted?: JSX.Element | undefined;
|
|
7
|
+
iconActive?: null | undefined;
|
|
8
|
+
active?: boolean | undefined;
|
|
9
|
+
completed?: boolean | undefined;
|
|
10
|
+
index?: number | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
declare namespace WizardStep {
|
|
13
|
+
var propTypes: {
|
|
14
|
+
label: {
|
|
15
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
19
|
+
};
|
|
20
|
+
icon: {
|
|
21
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
25
|
+
};
|
|
26
|
+
iconCompleted: {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
iconActive: {
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
active: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
completed: {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
index: {
|
|
42
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
declare const WizzardStepWithSchema: {
|
|
50
|
+
(props?: unknown): JSX.Element;
|
|
51
|
+
propTypes: unknown;
|
|
52
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
53
|
+
};
|
|
54
|
+
export { WizzardStepWithSchema };
|
|
55
|
+
export default WizardStep;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import WizardStep from './WizardStep';
|
|
4
|
+
declare function WizardSteps({ current, steps, children, ...otherProps }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
current?: number | undefined;
|
|
7
|
+
steps: any;
|
|
8
|
+
children: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
declare namespace WizardSteps {
|
|
11
|
+
var Item: typeof WizardStep;
|
|
12
|
+
var propTypes: {
|
|
13
|
+
current: {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
steps: any;
|
|
17
|
+
children: {
|
|
18
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
declare const WizzardWithSchema: {
|
|
26
|
+
(props?: unknown): JSX.Element;
|
|
27
|
+
propTypes: unknown;
|
|
28
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
29
|
+
};
|
|
30
|
+
export { WizzardWithSchema };
|
|
31
|
+
export default WizardSteps;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import WizardStepsIndicator, { WizzardWithSchema } from './WizardSteps';
|
|
2
|
+
import WizardStep, { WizzardStepWithSchema } from './WizardStep';
|
|
3
|
+
import useWizard from './useWizard';
|
|
4
|
+
export { useWizard, WizardStepsIndicator, WizardStep, WizzardWithSchema, WizzardStepWithSchema, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Overview(): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default function useWizard({ steps: wizardSteps, current, onNext, onPrevious, initial, }: {
|
|
2
|
+
steps: any;
|
|
3
|
+
current: any;
|
|
4
|
+
onNext?: (() => null) | undefined;
|
|
5
|
+
onPrevious?: (() => null) | undefined;
|
|
6
|
+
initial?: number | undefined;
|
|
7
|
+
}): {
|
|
8
|
+
current: any;
|
|
9
|
+
next: () => void;
|
|
10
|
+
previous: () => void;
|
|
11
|
+
canNext: boolean;
|
|
12
|
+
canPrevious: boolean;
|
|
13
|
+
WizardCurrentContent: any;
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-wizard",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Wizard",
|
|
6
6
|
"files": [
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
},
|
|
50
50
|
"author": "ICE MT",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
53
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
54
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
55
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
56
|
-
"@elliemae/ds-wizard": "2.3.0-alpha.
|
|
52
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
53
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.9",
|
|
54
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
55
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.9",
|
|
56
|
+
"@elliemae/ds-wizard": "2.3.0-alpha.9",
|
|
57
57
|
"prop-types": "~15.7.2",
|
|
58
58
|
"react-desc": "~4.1.3"
|
|
59
59
|
},
|