@progressive-development/pd-wizard 0.0.13 → 0.0.14
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/package.json +2 -2
- package/stories/steps.stories.js +32 -0
- package/stories/wizard.stories.js +34 -0
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"order",
|
|
15
15
|
"steps"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.0.
|
|
17
|
+
"version": "0.0.14",
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"module": "index.js",
|
|
20
20
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"lit": "^2.0.2",
|
|
32
|
-
"@progressive-development/pd-forms": "0.0.
|
|
32
|
+
"@progressive-development/pd-forms": "0.0.17"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import '../src/PdSteps.js';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Squi-Components/UI/Steps',
|
|
6
|
+
component: 'squi-steps',
|
|
7
|
+
argTypes: {
|
|
8
|
+
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function StepsTemplate({ steps, currentStepNr, styleTyp }) {
|
|
13
|
+
return html`
|
|
14
|
+
<squi-steps currentStepNr="${currentStepNr}" .steps="${steps}" styleTyp=${styleTyp}>
|
|
15
|
+
</squi-steps>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const CircleNumber = StepsTemplate.bind({});
|
|
20
|
+
CircleNumber.args = {
|
|
21
|
+
steps: [{name: 'Step 1'}, {name: 'Step 2'}, {name: 'Step 3'}, {name: 'Step 4'}],
|
|
22
|
+
currentStepNr: 2,
|
|
23
|
+
styleTyp: 'circle'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const TabStyle = StepsTemplate.bind({});
|
|
27
|
+
TabStyle.args = {
|
|
28
|
+
steps: [{name: 'Repair'}, {name: 'Billing'}],
|
|
29
|
+
currentStepNr: 1,
|
|
30
|
+
styleTyp: 'tab'
|
|
31
|
+
};
|
|
32
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import '../pd-wizard.js';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'PdWizard/Wizard',
|
|
6
|
+
component: 'pd-wizard',
|
|
7
|
+
argTypes: {},
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function WizardTemplate({ wizardSteps, currentNumber }) {
|
|
11
|
+
return html`
|
|
12
|
+
<pd-wizard
|
|
13
|
+
id="wizardId"
|
|
14
|
+
.wizardSteps="${wizardSteps}"
|
|
15
|
+
currentNumber="${currentNumber}"
|
|
16
|
+
>
|
|
17
|
+
<div slot="step-1">Test 1</div>
|
|
18
|
+
<div slot="step-2">Test 2</div>
|
|
19
|
+
<div slot="step-3">Test 3</div>
|
|
20
|
+
<div slot="step-4">Test 4</div>
|
|
21
|
+
</pd-wizard>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const Wizard = WizardTemplate.bind({});
|
|
26
|
+
Wizard.args = {
|
|
27
|
+
wizardSteps: [
|
|
28
|
+
{ title: 'Step 1', name: 'Step 1' },
|
|
29
|
+
{ title: 'Maintenance Bronze', name: 'Step 2' },
|
|
30
|
+
{ title: 'Step 3', name: 'Step 3' },
|
|
31
|
+
{ title: 'Step 4', name: 'Step 4' },
|
|
32
|
+
],
|
|
33
|
+
currentNumber: 2,
|
|
34
|
+
};
|