@iankibetsh/shframework 5.7.4 → 5.7.6
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/dist/library.mjs.css +283 -16
- package/dist/library.js +2241 -1650
- package/dist/library.mjs +2242 -1650
- package/package.json +2 -2
|
@@ -1,4 +1,265 @@
|
|
|
1
1
|
|
|
2
|
+
/* Step Container */
|
|
3
|
+
.sh-form-steps-container {
|
|
4
|
+
margin-bottom: 2.5rem;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Steps Wrapper */
|
|
9
|
+
.sh-form-steps-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
position: relative;
|
|
14
|
+
margin-bottom: 1.5rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Individual Step */
|
|
18
|
+
.sh-form-step {
|
|
19
|
+
flex: 1;
|
|
20
|
+
position: relative;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Step Connector Line */
|
|
28
|
+
.sh-step-connector {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 18px;
|
|
31
|
+
right: 50%;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 2px;
|
|
34
|
+
background: #e5e7eb;
|
|
35
|
+
z-index: 0;
|
|
36
|
+
transition: background 0.3s ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sh-form-step.completed .sh-step-connector {
|
|
40
|
+
background: #10b981;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sh-form-step.active .sh-step-connector {
|
|
44
|
+
background: linear-gradient(to right, #10b981 50%, #e5e7eb 50%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Step Indicator */
|
|
48
|
+
.sh-step-indicator {
|
|
49
|
+
position: relative;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 0.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Step Number Circle */
|
|
58
|
+
.sh-step-number {
|
|
59
|
+
width: 36px;
|
|
60
|
+
height: 36px;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
background-color: white;
|
|
68
|
+
border: 2px solid #d1d5db;
|
|
69
|
+
color: #9ca3af;
|
|
70
|
+
transition: all 0.25s ease;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sh-form-step.active .sh-step-number {
|
|
74
|
+
border-color: #3b82f6;
|
|
75
|
+
color: #3b82f6;
|
|
76
|
+
transform: scale(1.05);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sh-form-step.completed .sh-step-number {
|
|
80
|
+
background: #10b981 !important;
|
|
81
|
+
border-color: #10b981;
|
|
82
|
+
color: white;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sh-step-check {
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
font-weight: bold;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Step Content */
|
|
91
|
+
.sh-step-content {
|
|
92
|
+
max-width: 120px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sh-step-title {
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
color: #9ca3af;
|
|
99
|
+
transition: color 0.25s ease;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sh-form-step.active .sh-step-title {
|
|
103
|
+
color: #3b82f6;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sh-form-step.completed .sh-step-title {
|
|
108
|
+
color: #10b981;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.sh-step-description {
|
|
112
|
+
font-size: 11px;
|
|
113
|
+
color: #d1d5db;
|
|
114
|
+
margin-top: 0.25rem;
|
|
115
|
+
line-height: 1.3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Current Step Info */
|
|
119
|
+
.sh-current-step-info {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: space-between;
|
|
122
|
+
align-items: center;
|
|
123
|
+
padding: 0.875rem 0;
|
|
124
|
+
border-bottom: 1px solid #f3f4f6;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.sh-step-counter {
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
font-weight: 600;
|
|
130
|
+
color: #6b7280;
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
letter-spacing: 0.05em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.sh-step-name {
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
color: #374151;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Step Fields Container */
|
|
142
|
+
.sh-step-fields {
|
|
143
|
+
animation: fadeInSlide 0.25s ease;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@keyframes fadeInSlide {
|
|
147
|
+
from {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
transform: translateY(8px);
|
|
150
|
+
}
|
|
151
|
+
to {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
transform: translateY(0);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Navigation Buttons */
|
|
158
|
+
.sh-form-navigation {
|
|
159
|
+
gap: 0.75rem;
|
|
160
|
+
margin-top: 2rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.sh-btn-icon {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
transition: transform 0.2s ease;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sh-btn-previous:hover .sh-btn-icon {
|
|
169
|
+
transform: translateX(-2px);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.sh-btn-next:hover .sh-btn-icon {
|
|
173
|
+
transform: translateX(2px);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.sh-btn-next,
|
|
177
|
+
.sh-btn-submit {
|
|
178
|
+
min-width: 120px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Responsive Design */
|
|
182
|
+
@media (max-width: 768px) {
|
|
183
|
+
.sh-form-steps-wrapper {
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 1rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.sh-step-connector {
|
|
189
|
+
display: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.sh-form-step {
|
|
193
|
+
flex-direction: row;
|
|
194
|
+
justify-content: flex-start;
|
|
195
|
+
text-align: left;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.sh-step-indicator {
|
|
199
|
+
flex-direction: row;
|
|
200
|
+
gap: 0.75rem;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.sh-step-content {
|
|
204
|
+
max-width: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.sh-current-step-info {
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
gap: 0.5rem;
|
|
210
|
+
align-items: flex-start;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Dark mode support */
|
|
215
|
+
@media (prefers-color-scheme: dark) {
|
|
216
|
+
.sh-step-connector {
|
|
217
|
+
background-color: #374151;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.sh-form-step.completed .sh-step-connector {
|
|
221
|
+
background: #10b981;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.sh-form-step.active .sh-step-connector {
|
|
225
|
+
background: linear-gradient(to right, #10b981 50%, #374151 50%);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.sh-current-step-info {
|
|
229
|
+
border-bottom-color: #374151;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.sh-step-number {
|
|
233
|
+
border-color: #4b5563;
|
|
234
|
+
color: #6b7280;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.sh-form-step.active .sh-step-number {
|
|
238
|
+
border-color: #60a5fa;
|
|
239
|
+
color: #60a5fa;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.sh-step-title {
|
|
243
|
+
color: #6b7280;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.sh-form-step.active .sh-step-title {
|
|
247
|
+
color: #60a5fa;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.sh-step-description {
|
|
251
|
+
color: #4b5563;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.sh-step-counter {
|
|
255
|
+
color: #9ca3af;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sh-step-name {
|
|
259
|
+
color: #d1d5db;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
2
263
|
.colored-toast.swal2-icon-success {
|
|
3
264
|
background-color: #a5dc86 !important;
|
|
4
265
|
}
|
|
@@ -63,22 +324,6 @@
|
|
|
63
324
|
opacity: 0.5;
|
|
64
325
|
}
|
|
65
326
|
|
|
66
|
-
.sh-selected-item{
|
|
67
|
-
line-height: unset!important;
|
|
68
|
-
}
|
|
69
|
-
.sh-suggestion-input{
|
|
70
|
-
padding: 0.375rem 0.75rem;
|
|
71
|
-
}
|
|
72
|
-
.sh-suggest{
|
|
73
|
-
margin-bottom: 1rem;
|
|
74
|
-
padding: 0rem 0rem;
|
|
75
|
-
}
|
|
76
|
-
.sh-suggest-control::after{
|
|
77
|
-
margin-top: auto;
|
|
78
|
-
margin-bottom: auto;
|
|
79
|
-
margin-right: 0.255em;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
327
|
.permissions-main {
|
|
83
328
|
background: #edeff2;
|
|
84
329
|
}
|
|
@@ -111,6 +356,22 @@
|
|
|
111
356
|
flex-grow: 1;
|
|
112
357
|
}
|
|
113
358
|
|
|
359
|
+
.sh-selected-item{
|
|
360
|
+
line-height: unset!important;
|
|
361
|
+
}
|
|
362
|
+
.sh-suggestion-input{
|
|
363
|
+
padding: 0.375rem 0.75rem;
|
|
364
|
+
}
|
|
365
|
+
.sh-suggest{
|
|
366
|
+
margin-bottom: 1rem;
|
|
367
|
+
padding: 0rem 0rem;
|
|
368
|
+
}
|
|
369
|
+
.sh-suggest-control::after{
|
|
370
|
+
margin-top: auto;
|
|
371
|
+
margin-bottom: auto;
|
|
372
|
+
margin-right: 0.255em;
|
|
373
|
+
}
|
|
374
|
+
|
|
114
375
|
.callout{
|
|
115
376
|
--bs-link-color-rgb: 110,168,254;
|
|
116
377
|
--bs-code-color: #e685b5;
|
|
@@ -130,3 +391,9 @@
|
|
|
130
391
|
.sh-forgot-link, .sh-register-link{
|
|
131
392
|
cursor: pointer;
|
|
132
393
|
}
|
|
394
|
+
|
|
395
|
+
.sh-dropdown-action{
|
|
396
|
+
cursor: pointer;
|
|
397
|
+
|
|
398
|
+
}
|
|
399
|
+
|