@dropi/ui 0.1.17 → 0.1.19
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/cjs/dropi-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert.cjs.entry.js +58 -0
- package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-card-section.cjs.entry.js +38 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +71 -0
- package/dist/cjs/dropi-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +58 -0
- package/dist/cjs/dropi-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +44 -0
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +62 -0
- package/dist/cjs/dropi-input.cjs.entry.js +5 -5
- package/dist/cjs/dropi-logo.cjs.entry.js +27 -0
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +92 -0
- package/dist/cjs/dropi-paginator.cjs.entry.js +5 -3
- package/dist/cjs/dropi-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +56 -0
- package/dist/cjs/dropi-read-more.cjs.entry.js +36 -0
- package/dist/cjs/dropi-search.cjs.entry.js +110 -0
- package/dist/cjs/dropi-select.cjs.entry.js +1 -1
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +51 -0
- package/dist/cjs/dropi-steps.cjs.entry.js +50 -0
- package/dist/cjs/dropi-switch.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tag.cjs.entry.js +1 -1
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-time-line.cjs.entry.js +34 -0
- package/dist/cjs/dropi-toast.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dropi-ui.cjs.js +1 -1
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +55 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +123 -0
- package/dist/collection/components/dropi-alert/dropi-alert.js +305 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.css +55 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +126 -0
- package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.js +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +42 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +178 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +44 -0
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +245 -0
- package/dist/collection/components/dropi-chips/dropi-chips.css +66 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +169 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +51 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +184 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +24 -0
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +78 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +45 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +150 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +82 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +155 -0
- package/dist/collection/components/dropi-input/dropi-input.css +11 -0
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- package/dist/collection/components/dropi-logo/dropi-logo.css +26 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +96 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +50 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +116 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +60 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +221 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +15 -12
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +24 -2
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +64 -0
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +209 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +28 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +110 -0
- package/dist/collection/components/dropi-search/dropi-search.css +112 -0
- package/dist/collection/components/dropi-search/dropi-search.js +392 -0
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +94 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +172 -0
- package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
- package/dist/collection/components/dropi-steps/dropi-steps.js +145 -0
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +108 -0
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +69 -0
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +95 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +167 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert.d.ts +11 -0
- package/dist/components/dropi-alert.js +1 -0
- package/dist/components/dropi-avatars.d.ts +11 -0
- package/dist/components/dropi-avatars.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-section.d.ts +11 -0
- package/dist/components/dropi-card-section.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.d.ts +11 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -0
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.d.ts +11 -0
- package/dist/components/dropi-chips.js +1 -0
- package/dist/components/dropi-dropdown.d.ts +11 -0
- package/dist/components/dropi-dropdown.js +1 -0
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.d.ts +11 -0
- package/dist/components/dropi-favorite-button.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-image-miniature.d.ts +11 -0
- package/dist/components/dropi-image-miniature.js +1 -0
- package/dist/components/dropi-image-overlay.d.ts +11 -0
- package/dist/components/dropi-image-overlay.js +1 -0
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-logo.d.ts +11 -0
- package/dist/components/dropi-logo.js +1 -0
- package/dist/components/dropi-lottie-loader.d.ts +11 -0
- package/dist/components/dropi-lottie-loader.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-otp-send-code.d.ts +11 -0
- package/dist/components/dropi-otp-send-code.js +1 -0
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.d.ts +11 -0
- package/dist/components/dropi-radio-selection-list.js +1 -0
- package/dist/components/dropi-read-more.d.ts +11 -0
- package/dist/components/dropi-read-more.js +1 -0
- package/dist/components/dropi-search.d.ts +11 -0
- package/dist/components/dropi-search.js +1 -0
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-simple-stepper.d.ts +11 -0
- package/dist/components/dropi-simple-stepper.js +1 -0
- package/dist/components/dropi-steps.d.ts +11 -0
- package/dist/components/dropi-steps.js +1 -0
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.d.ts +11 -0
- package/dist/components/dropi-time-line.js +1 -0
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.d.ts +11 -0
- package/dist/components/dropi-vertical-steps.js +1 -0
- package/dist/components/{p-ChOXWKmI.js → p-CPs3fHRc.js} +1 -1
- package/dist/components/p-DKXrREI4.js +1 -0
- package/dist/components/p-Ds74ZOlC.js +1 -0
- package/dist/components/{p-NCyvfOs2.js → p-WZTFyFH2.js} +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-061e1ad4.entry.js +1 -0
- package/dist/dropi-ui/{p-ecda6e19.entry.js → p-0c13dded.entry.js} +1 -1
- package/dist/dropi-ui/{p-79466fec.entry.js → p-121c8a09.entry.js} +1 -1
- package/dist/dropi-ui/p-291a1416.entry.js +1 -0
- package/dist/dropi-ui/p-2cee44f9.entry.js +1 -0
- package/dist/dropi-ui/{p-6031ac9d.entry.js → p-30fdd316.entry.js} +1 -1
- package/dist/dropi-ui/p-3537ee5a.entry.js +1 -0
- package/dist/dropi-ui/{p-26dbae0d.entry.js → p-3d859657.entry.js} +1 -1
- package/dist/dropi-ui/p-433d161d.entry.js +1 -0
- package/dist/dropi-ui/p-4bdfad16.entry.js +1 -0
- package/dist/dropi-ui/p-4ea7d3a7.entry.js +1 -0
- package/dist/dropi-ui/{p-09c38a49.entry.js → p-51c8ef68.entry.js} +1 -1
- package/dist/dropi-ui/{p-6d15d32f.entry.js → p-54780c90.entry.js} +1 -1
- package/dist/dropi-ui/{p-63e969da.entry.js → p-66deb85e.entry.js} +1 -1
- package/dist/dropi-ui/p-68f81080.entry.js +1 -0
- package/dist/dropi-ui/p-724a2aea.entry.js +1 -0
- package/dist/dropi-ui/p-74c37688.entry.js +1 -0
- package/dist/dropi-ui/p-7cec1cea.entry.js +1 -0
- package/dist/dropi-ui/{p-f0e1e0f6.entry.js → p-7daa2677.entry.js} +1 -1
- package/dist/dropi-ui/p-8906a68d.entry.js +1 -0
- package/dist/dropi-ui/{p-1739d20c.entry.js → p-a4204ece.entry.js} +1 -1
- package/dist/dropi-ui/p-a9116dbe.entry.js +1 -0
- package/dist/dropi-ui/p-b36b819f.entry.js +1 -0
- package/dist/dropi-ui/p-c10cbb8d.entry.js +1 -0
- package/dist/dropi-ui/{p-42179ae4.entry.js → p-c2316d4d.entry.js} +1 -1
- package/dist/dropi-ui/{p-e44242e2.entry.js → p-cb5fd7a9.entry.js} +1 -1
- package/dist/dropi-ui/p-d1e1b716.entry.js +1 -0
- package/dist/dropi-ui/p-d5ecc394.entry.js +1 -0
- package/dist/dropi-ui/p-db6c9828.entry.js +1 -0
- package/dist/dropi-ui/{p-4d582d58.entry.js → p-e721127d.entry.js} +1 -1
- package/dist/dropi-ui/p-e8557da0.entry.js +1 -0
- package/dist/dropi-ui/p-ebfd4665.entry.js +1 -0
- package/dist/dropi-ui/p-f3cef35a.entry.js +1 -0
- package/dist/dropi-ui/p-f6a69c4e.entry.js +1 -0
- package/dist/dropi-ui/{p-65fa8558.entry.js → p-ff45e7c8.entry.js} +1 -1
- package/dist/esm/dropi-accordion.entry.js +1 -1
- package/dist/esm/dropi-alert.entry.js +56 -0
- package/dist/esm/dropi-avatars.entry.js +29 -0
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-button.entry.js +2 -2
- package/dist/esm/dropi-card-section.entry.js +36 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +69 -0
- package/dist/esm/dropi-checkbox.entry.js +2 -2
- package/dist/esm/dropi-chips.entry.js +28 -0
- package/dist/esm/dropi-dropdown.entry.js +56 -0
- package/dist/esm/dropi-empty-state.entry.js +1 -1
- package/dist/esm/dropi-favorite-button.entry.js +25 -0
- package/dist/esm/dropi-icon.entry.js +1 -1
- package/dist/esm/dropi-image-miniature.entry.js +42 -0
- package/dist/esm/dropi-image-overlay.entry.js +60 -0
- package/dist/esm/dropi-input.entry.js +5 -5
- package/dist/esm/dropi-logo.entry.js +25 -0
- package/dist/esm/dropi-lottie-loader.entry.js +25 -0
- package/dist/esm/dropi-otp-send-code.entry.js +90 -0
- package/dist/esm/dropi-paginator.entry.js +5 -3
- package/dist/esm/dropi-radio-button.entry.js +1 -1
- package/dist/esm/dropi-radio-selection-list.entry.js +54 -0
- package/dist/esm/dropi-read-more.entry.js +34 -0
- package/dist/esm/dropi-search.entry.js +108 -0
- package/dist/esm/dropi-select.entry.js +1 -1
- package/dist/esm/dropi-simple-stepper.entry.js +49 -0
- package/dist/esm/dropi-steps.entry.js +48 -0
- package/dist/esm/dropi-switch.entry.js +1 -1
- package/dist/esm/dropi-tabs.entry.js +1 -1
- package/dist/esm/dropi-tag.entry.js +1 -1
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-time-line.entry.js +32 -0
- package/dist/esm/dropi-toast.entry.js +1 -1
- package/dist/esm/dropi-tooltip.entry.js +1 -1
- package/dist/esm/dropi-ui.js +1 -1
- package/dist/esm/dropi-vertical-steps.entry.js +53 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +35 -0
- package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +17 -0
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +22 -0
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +37 -0
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +23 -0
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +28 -0
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +14 -0
- package/dist/types/components/dropi-image-miniature/dropi-image-miniature.d.ts +23 -0
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +26 -0
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +14 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +15 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +33 -0
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +2 -0
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +34 -0
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +17 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +51 -0
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +20 -0
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +21 -0
- package/dist/types/components/dropi-time-line/dropi-time-line.d.ts +18 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +24 -0
- package/dist/types/components.d.ts +1830 -3
- package/package.json +1 -1
- package/readme.md +189 -2
- package/dist/dropi-ui/p-082b7039.entry.js +0 -1
- package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
- package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
7
|
+
|
|
8
|
+
.stepper {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* ── Each step ──────────────────────────────────────────── */
|
|
15
|
+
.stepper__step {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: center;
|
|
19
|
+
flex: 1;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* ── Circle row (circle + connecting line) ──────────────── */
|
|
24
|
+
.stepper__circle-wrap {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
width: 100%;
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.stepper__circle {
|
|
32
|
+
width: 28px;
|
|
33
|
+
height: 28px;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
font-size: var(--font-size-xs, 10px);
|
|
39
|
+
font-weight: var(--font-weight-bold, 700);
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
transition: background 0.2s, border-color 0.2s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.stepper__circle--pending {
|
|
46
|
+
background: var(--Neutral-White, #fff);
|
|
47
|
+
border: 2px solid var(--Gray-Gray-200, #c3c9d9);
|
|
48
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.stepper__circle--focus {
|
|
52
|
+
background: var(--Neutral-White, #fff);
|
|
53
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
54
|
+
color: var(--Primary-Primary-500, #f49a3d);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.stepper__circle--completed {
|
|
58
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
59
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
60
|
+
color: var(--Neutral-White, #fff);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ── Connecting line ────────────────────────────────────── */
|
|
64
|
+
.stepper__line {
|
|
65
|
+
flex: 1;
|
|
66
|
+
height: 2px;
|
|
67
|
+
background: var(--Gray-Gray-200, #c3c9d9);
|
|
68
|
+
transition: background 0.2s;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.stepper__line--done {
|
|
72
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ── Labels ─────────────────────────────────────────────── */
|
|
76
|
+
.stepper__label {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 2px;
|
|
81
|
+
margin-top: var(--Size-2, 8px);
|
|
82
|
+
text-align: center;
|
|
83
|
+
padding: 0 4px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.stepper__title {
|
|
87
|
+
font-size: var(--font-size-s, 12px);
|
|
88
|
+
font-weight: var(--font-weight-bold, 700);
|
|
89
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.stepper__desc {
|
|
93
|
+
font-size: var(--font-size-xs, 10px);
|
|
94
|
+
color: var(--Gray-Gray-500, #69738c);
|
|
95
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-steps
|
|
4
|
+
* Horizontal stepper showing step progress with number/title/description.
|
|
5
|
+
*/
|
|
6
|
+
export class DropiSteps {
|
|
7
|
+
/** Total number of steps */
|
|
8
|
+
stepsCount = 3;
|
|
9
|
+
/** Show step number inside the circle */
|
|
10
|
+
showNumberOfStep = true;
|
|
11
|
+
/** Active/current step index (1-based) */
|
|
12
|
+
currentStep = 1;
|
|
13
|
+
/** Labels for each step. Pass as JSON string or array */
|
|
14
|
+
stepLabels = [];
|
|
15
|
+
get parsedLabels() {
|
|
16
|
+
if (typeof this.stepLabels === 'string') {
|
|
17
|
+
try {
|
|
18
|
+
return JSON.parse(this.stepLabels);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return this.stepLabels || [];
|
|
25
|
+
}
|
|
26
|
+
stepState(index) {
|
|
27
|
+
if (index < this.currentStep)
|
|
28
|
+
return 'completed';
|
|
29
|
+
if (index === this.currentStep)
|
|
30
|
+
return 'focus';
|
|
31
|
+
return 'pending';
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const labels = this.parsedLabels;
|
|
35
|
+
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
36
|
+
return (h("div", { key: '446597aa40fdfd1c5e5274a89d3cc45a98003da9', class: "stepper" }, steps.map((step) => {
|
|
37
|
+
const state = this.stepState(step);
|
|
38
|
+
const label = labels[step - 1];
|
|
39
|
+
const isLast = step === this.stepsCount;
|
|
40
|
+
return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", width: "12px", height: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
static get is() { return "dropi-steps"; }
|
|
44
|
+
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get originalStyleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["dropi-steps.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get styleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["dropi-steps.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"stepsCount": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "number",
|
|
62
|
+
"resolved": "number",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "Total number of steps"
|
|
70
|
+
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
73
|
+
"reflect": false,
|
|
74
|
+
"attribute": "steps-count",
|
|
75
|
+
"defaultValue": "3"
|
|
76
|
+
},
|
|
77
|
+
"showNumberOfStep": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "boolean",
|
|
82
|
+
"resolved": "boolean",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Show step number inside the circle"
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "show-number-of-step",
|
|
95
|
+
"defaultValue": "true"
|
|
96
|
+
},
|
|
97
|
+
"currentStep": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "number",
|
|
102
|
+
"resolved": "number",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Active/current step index (1-based)"
|
|
110
|
+
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"attribute": "current-step",
|
|
115
|
+
"defaultValue": "1"
|
|
116
|
+
},
|
|
117
|
+
"stepLabels": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "StepLabel[] | string",
|
|
122
|
+
"resolved": "StepLabel[] | string",
|
|
123
|
+
"references": {
|
|
124
|
+
"StepLabel": {
|
|
125
|
+
"location": "local",
|
|
126
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-steps/dropi-steps.tsx",
|
|
127
|
+
"id": "src/components/dropi-steps/dropi-steps.tsx::StepLabel"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "Labels for each step. Pass as JSON string or array"
|
|
136
|
+
},
|
|
137
|
+
"getter": false,
|
|
138
|
+
"setter": false,
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"attribute": "step-labels",
|
|
141
|
+
"defaultValue": "[]"
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -16,7 +16,7 @@ export class DropiSwitch {
|
|
|
16
16
|
this.dropiChange.emit(this.isChecked);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("label", { key: '
|
|
19
|
+
return (h("label", { key: 'd756605f85a24fdbf8714824921b17e618bde921', class: "toggle-switch" }, h("input", { key: '8d774e122778bd286269552ebabac1c04aa894c4', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), h("span", { key: 'ff8d52dec5653e82fa965bca0ddd19ecb49cdad3', class: "slider" })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dropi-switch"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class DropiTabs {
|
|
|
32
32
|
this.dropiTabChange.emit(tab);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '73bb4c928411c00cd9c6cfa6c0ed591c4573bbb1', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
36
36
|
const isActive = tab.id === this.activeTab;
|
|
37
37
|
return (h("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, h("span", { class: "tab-label-row" }, h("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (h("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
38
38
|
? h("dropi-icon", { name: "Check-circle", width: "12px", height: "12px", color: "Success-Success-500" })
|
|
@@ -48,7 +48,7 @@ export class DropiTag {
|
|
|
48
48
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '65711113151698b330e945197d0b626130dc06ef', class: "container-chips" }, h("div", { key: 'c49964c1bcdfd96f538a1782a4b564a0e73fa87e', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (h("dropi-icon", { key: 'cb1ed97b3f33c8e4171899f78a84e3572a37e462', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && h("span", { key: '92d71bb6f51dd7fa362023c230f27f9fa59744c0' }, this.text))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "dropi-tag"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,12 +70,12 @@ export class DropiTextArea {
|
|
|
70
70
|
render() {
|
|
71
71
|
const showAsterisk = this.required && this.showAsterisk && !this.disabled;
|
|
72
72
|
const showHelper = this.helperText || this.isInvalid;
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: 'e61f93feb18b6ed2fd3a9e2b7a301b3383c59ef1', class: "textarea-wrapper" }, this.label && (h("label", { key: '3dce1ef5e6335f838778c09de911235115111623', htmlFor: this.resolvedId, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : 'var(--Gray-Gray-600)' } }, this.label, showAsterisk && h("span", { key: 'bdeb923cb358ea947bbf22cb0a76545aef5d7b80', class: "asterisk" }, " *"))), h("div", { key: '402aae3d238a559ac670e69aa3a003baa36fd2c2', class: "textarea-container" }, h("textarea", { key: 'afe5dae36cb27dbd461ab9d4f998f83a43babf90', id: this.resolvedId, class: {
|
|
74
74
|
'form-control': true,
|
|
75
75
|
'Body-M-Regular': true,
|
|
76
76
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
77
77
|
'form-control-invalid': this.isInvalid,
|
|
78
|
-
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxlength, minLength: this.minlength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxlength > 0 && (h("div", { key: '
|
|
78
|
+
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxlength, minLength: this.minlength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxlength > 0 && (h("div", { key: '0c9a7c6555594e7101f72b47c819838e2ffe5236', class: "char-counter" }, this.charCount, "/", this.maxlength))), showHelper && (h("div", { key: 'ad4d6435c21ec013a271b490c74f66839de4d6c2', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: '11e480a0cb3f59f1838915850d09a0758160b2fc', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" })), h("span", { key: '461e0f727feecb2fd6d5f21e51f39d017ff275b3', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.helperText)))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "dropi-text-area"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
6
|
+
|
|
7
|
+
.timeline {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tl-step {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
gap: var(--Size-3, 12px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* ── Left column: icon + line ───────────────────────────── */
|
|
19
|
+
.tl-step__marker {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tl-step__icon {
|
|
27
|
+
width: 32px;
|
|
28
|
+
height: 32px;
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
transition: background 0.2s, border-color 0.2s;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tl-step--pending .tl-step__icon {
|
|
37
|
+
background: var(--Gray-Gray-100, #e6eaf2);
|
|
38
|
+
border: 2px solid var(--Gray-Gray-200, #c3c9d9);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tl-step--active .tl-step__icon {
|
|
42
|
+
background: var(--Neutral-White, #fff);
|
|
43
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
44
|
+
box-shadow: 0 0 0 4px var(--Primary-Primary-100, #fde9d0);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tl-step--done .tl-step__icon {
|
|
48
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
49
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tl-step__dot {
|
|
53
|
+
width: 8px;
|
|
54
|
+
height: 8px;
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
display: block;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tl-step--pending .tl-step__dot {
|
|
60
|
+
background: var(--Gray-Gray-300, #a3abbf);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tl-step--active .tl-step__dot {
|
|
64
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tl-step--done .tl-step__dot {
|
|
68
|
+
background: var(--Neutral-White, #fff);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ── Vertical connector ─────────────────────────────────── */
|
|
72
|
+
.tl-step__line {
|
|
73
|
+
flex: 1;
|
|
74
|
+
width: 2px;
|
|
75
|
+
min-height: 24px;
|
|
76
|
+
margin: 4px 0;
|
|
77
|
+
background: var(--Gray-Gray-200, #c3c9d9);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tl-step--done + .tl-step .tl-step__line,
|
|
81
|
+
.tl-step--done .tl-step__line {
|
|
82
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ── Content ────────────────────────────────────────────── */
|
|
86
|
+
.tl-step__content {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
gap: 2px;
|
|
90
|
+
padding-top: 6px;
|
|
91
|
+
padding-bottom: var(--Size-4, 16px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tl-step__label {
|
|
95
|
+
font-size: var(--font-size-s, 12px);
|
|
96
|
+
font-weight: var(--font-weight-bold, 700);
|
|
97
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tl-step--pending .tl-step__label {
|
|
101
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
102
|
+
font-weight: var(--font-weight-regular, 400);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tl-step__subtitle {
|
|
106
|
+
font-size: var(--font-size-xs, 10px);
|
|
107
|
+
color: var(--Gray-Gray-500, #69738c);
|
|
108
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-time-line
|
|
4
|
+
* Vertical timeline showing ordered steps with status indicators.
|
|
5
|
+
*/
|
|
6
|
+
export class DropiTimeLine {
|
|
7
|
+
/** Array of timeline steps. Pass as JSON string or array */
|
|
8
|
+
steps = [];
|
|
9
|
+
get parsedSteps() {
|
|
10
|
+
if (typeof this.steps === 'string') {
|
|
11
|
+
try {
|
|
12
|
+
return JSON.parse(this.steps);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return this.steps || [];
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const steps = this.parsedSteps;
|
|
22
|
+
return (h("div", { key: '9391536f472117d8788456df24de433fc9f6ae1e', class: "timeline" }, steps.map((step, i) => {
|
|
23
|
+
const isLast = i === steps.length - 1;
|
|
24
|
+
return (h("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, h("div", { class: "tl-step__marker" }, h("div", { class: "tl-step__icon" }, step.icon ? (h("dropi-icon", { name: step.icon, width: "16px", height: "16px", color: step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400' })) : (h("span", { class: "tl-step__dot" }))), !isLast && h("div", { class: "tl-step__line" })), h("div", { class: "tl-step__content" }, h("span", { class: "tl-step__label" }, step.label), step.subtitle && h("span", { class: "tl-step__subtitle" }, step.subtitle))));
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "dropi-time-line"; }
|
|
28
|
+
static get encapsulation() { return "shadow"; }
|
|
29
|
+
static get originalStyleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["dropi-time-line.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get styleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["dropi-time-line.css"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get properties() {
|
|
40
|
+
return {
|
|
41
|
+
"steps": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "TimelineStep[] | string",
|
|
46
|
+
"resolved": "TimelineStep[] | string",
|
|
47
|
+
"references": {
|
|
48
|
+
"TimelineStep": {
|
|
49
|
+
"location": "local",
|
|
50
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-time-line/dropi-time-line.tsx",
|
|
51
|
+
"id": "src/components/dropi-time-line/dropi-time-line.tsx::TimelineStep"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Array of timeline steps. Pass as JSON string or array"
|
|
60
|
+
},
|
|
61
|
+
"getter": false,
|
|
62
|
+
"setter": false,
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"attribute": "steps",
|
|
65
|
+
"defaultValue": "[]"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -47,7 +47,7 @@ export class DropiToast {
|
|
|
47
47
|
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h("div", { key: '
|
|
50
|
+
return (h("div", { key: 'ee7e397e3ae32ac5a30b9a37777823315d2e653d', class: `toast-container toast-container--${this.position}` }, this.items.map(item => (h("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, h("div", { class: `toast toast--${item.msg.severity}` }, h("div", { class: "toast-content" }, h("div", { class: "lottie-img" }, h("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), h("div", { class: "info-container" }, h("p", { class: "title" }, item.msg.summary), item.msg.detail && h("p", { class: "description" }, item.msg.detail))), item.msg.closable && (h("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, h("dropi-icon", { name: "Close-small", width: "20px", height: "20px", color: "Gray-Gray-400" })))))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "dropi-toast"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,7 +35,7 @@ export class DropiTooltip {
|
|
|
35
35
|
this.visible = false;
|
|
36
36
|
};
|
|
37
37
|
render() {
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: 'fa52d7ff250fe76fefd529f2dab27338d0a8bd0a', class: "tooltip-wrapper", onMouseEnter: this.show, onMouseLeave: this.hide, onFocusin: this.show, onFocusout: this.hide }, h("slot", { key: 'e301fead7186cec3b817a9339a0878006b750cbf' }), this.text && (h("div", { key: 'e24cb85fd227d0f96935dfe6095804ad9fcbc140', class: { 'tooltip-bubble': true, [`tooltip-bubble--${this.position}`]: true, 'tooltip-bubble--visible': this.visible }, style: { maxWidth: this.maxWidth }, role: "tooltip" }, this.text, h("span", { key: 'a2dbe5693bfb2c0894d20bc2831d303b5634869e', class: `tooltip-arrow tooltip-arrow--${this.position}` })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "dropi-tooltip"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
6
|
+
|
|
7
|
+
.vertical-steps {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.v-step {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
gap: var(--Size-3, 12px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.v-step--clickable {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ── Left indicator column ──────────────────────────────── */
|
|
23
|
+
.v-step__indicator {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: center;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.v-step__circle {
|
|
31
|
+
width: 28px;
|
|
32
|
+
height: 28px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
transition: background 0.2s, border-color 0.2s;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.v-step__circle--pending {
|
|
42
|
+
background: var(--Neutral-White, #fff);
|
|
43
|
+
border: 2px solid var(--Gray-Gray-200, #c3c9d9);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.v-step__circle--current {
|
|
47
|
+
background: var(--Neutral-White, #fff);
|
|
48
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.v-step__circle--completed {
|
|
52
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
53
|
+
border: 2px solid var(--Primary-Primary-500, #f49a3d);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.v-step__number {
|
|
57
|
+
font-size: var(--font-size-xs, 10px);
|
|
58
|
+
font-weight: var(--font-weight-bold, 700);
|
|
59
|
+
color: var(--Gray-Gray-500, #69738c);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.v-step__circle--current .v-step__number {
|
|
63
|
+
color: var(--Primary-Primary-500, #f49a3d);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ── Vertical connecting line ───────────────────────────── */
|
|
67
|
+
.v-step__line {
|
|
68
|
+
flex: 1;
|
|
69
|
+
width: 2px;
|
|
70
|
+
min-height: 24px;
|
|
71
|
+
background: var(--Gray-Gray-200, #c3c9d9);
|
|
72
|
+
margin: 4px 0;
|
|
73
|
+
transition: background 0.2s;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.v-step__line--done {
|
|
77
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ── Label ──────────────────────────────────────────────── */
|
|
81
|
+
.v-step__label {
|
|
82
|
+
padding-top: 4px;
|
|
83
|
+
font-size: var(--font-size-s, 12px);
|
|
84
|
+
color: var(--Gray-Gray-600, #475066);
|
|
85
|
+
line-height: 1.4;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.v-step__label--current {
|
|
89
|
+
color: var(--Gray-Gray-800, #1a2033);
|
|
90
|
+
font-weight: var(--font-weight-bold, 700);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.v-step__label--completed {
|
|
94
|
+
color: var(--Gray-Gray-500, #69738c);
|
|
95
|
+
}
|