ui-soxo-bootstrap-core 2.4.25 → 2.4.26
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/core/lib/hooks/index.js +2 -12
- package/core/lib/hooks/use-otp-timer.js +80 -0
- package/core/lib/pages/login/login.js +255 -139
- package/core/lib/pages/login/login.scss +144 -32
- package/core/models/menus/components/menu-add/menu-add.js +230 -268
- package/core/models/menus/menus.js +1 -1
- package/package.json +1 -1
|
@@ -5,17 +5,29 @@ body {
|
|
|
5
5
|
.user-authentication-section {
|
|
6
6
|
min-height: 90vh;
|
|
7
7
|
display: flex;
|
|
8
|
-
margin: 0px 15%;
|
|
8
|
+
// margin: 0px 15%;
|
|
9
9
|
justify-content: center;
|
|
10
|
+
padding: 0px 15%;
|
|
10
11
|
// align-items: center;
|
|
11
12
|
|
|
13
|
+
@media (max-width: 1200px) {
|
|
14
|
+
margin: 0 5%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (max-width: 768px) {
|
|
18
|
+
margin: 0 10px;
|
|
19
|
+
padding-top: 20px;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
.page-background {
|
|
13
|
-
|
|
25
|
+
position: absolute;
|
|
14
26
|
left: 0px;
|
|
15
27
|
top: 0px;
|
|
16
|
-
height:40vh;
|
|
28
|
+
height: 40vh;
|
|
17
29
|
width: 100%;
|
|
18
|
-
|
|
30
|
+
|
|
19
31
|
// background-image:url("./../../../assets/images/vector.png"); /* Set Image */ ;
|
|
20
32
|
// background: url("./../../../assets/images/vector.png"),
|
|
21
33
|
// linear-gradient(to right, #D5F1FB, #24AEB8);
|
|
@@ -121,7 +133,7 @@ body {
|
|
|
121
133
|
border: 1px solid #b7b7b7;
|
|
122
134
|
text-align: center;
|
|
123
135
|
border-radius: 2px;
|
|
124
|
-
margin:
|
|
136
|
+
margin: 22px 0px;
|
|
125
137
|
padding: 4px;
|
|
126
138
|
|
|
127
139
|
img {
|
|
@@ -144,21 +156,22 @@ body {
|
|
|
144
156
|
// box-shadow: 0 2px 4px rgba(104, 97, 97, 0.5);
|
|
145
157
|
// display: flex;
|
|
146
158
|
// align-items: center;
|
|
147
|
-
border-radius:
|
|
159
|
+
border-radius: 16px;
|
|
148
160
|
background-color: white;
|
|
149
161
|
overflow: hidden;
|
|
150
162
|
border: 1px solid #e8e8e8;
|
|
151
163
|
|
|
152
|
-
width:
|
|
164
|
+
width: 42%;
|
|
153
165
|
|
|
154
166
|
@media only screen and (max-width: 768px) {
|
|
155
|
-
width:
|
|
167
|
+
width: 100%;
|
|
168
|
+
padding: 0 16px;
|
|
156
169
|
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-direction: column;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
text-align: center;
|
|
161
|
-
align-items: center;
|
|
170
|
+
// display: flex;
|
|
171
|
+
// flex-direction: column;
|
|
172
|
+
// justify-content: center;
|
|
173
|
+
// text-align: center;
|
|
174
|
+
// align-items: center;
|
|
162
175
|
}
|
|
163
176
|
|
|
164
177
|
.login-form-container {
|
|
@@ -166,20 +179,24 @@ body {
|
|
|
166
179
|
flex-basis: 50%;
|
|
167
180
|
// border: none !important;
|
|
168
181
|
// box-shadow: none !important;
|
|
169
|
-
padding: 20px 30px;
|
|
182
|
+
// padding: 20px 30px;
|
|
183
|
+
padding: 20px;
|
|
184
|
+
padding-top: 2px;
|
|
170
185
|
|
|
171
186
|
@media only screen and (max-width: 768px) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
align
|
|
187
|
+
padding: 16px;
|
|
188
|
+
// display: flex;
|
|
189
|
+
// flex-direction: column;
|
|
190
|
+
// justify-content: center;
|
|
191
|
+
// text-align: center;
|
|
192
|
+
// align-items: center;
|
|
177
193
|
}
|
|
178
194
|
|
|
179
195
|
.branch-switcher {
|
|
180
196
|
.branches {
|
|
181
197
|
.ant-select {
|
|
182
|
-
min-width:
|
|
198
|
+
min-width: auto !important;
|
|
199
|
+
width: 100%;
|
|
183
200
|
}
|
|
184
201
|
}
|
|
185
202
|
}
|
|
@@ -217,7 +234,7 @@ body {
|
|
|
217
234
|
.ant-form {
|
|
218
235
|
// height: 100%;
|
|
219
236
|
.ant-form-item {
|
|
220
|
-
margin:
|
|
237
|
+
margin: 20px 0px;
|
|
221
238
|
.ant-form-item-label {
|
|
222
239
|
margin: 0 0 8px 0;
|
|
223
240
|
line-height: 0;
|
|
@@ -249,9 +266,13 @@ body {
|
|
|
249
266
|
width: 100%;
|
|
250
267
|
}
|
|
251
268
|
}
|
|
269
|
+
.otp-container {
|
|
270
|
+
display: flex;
|
|
271
|
+
}
|
|
252
272
|
|
|
253
273
|
.otp-input-container p {
|
|
254
|
-
margin:
|
|
274
|
+
margin: 12px 0 0 0;
|
|
275
|
+
font-size: 12px;
|
|
255
276
|
}
|
|
256
277
|
|
|
257
278
|
.otp-input-container .otp-title {
|
|
@@ -259,13 +280,17 @@ body {
|
|
|
259
280
|
text-align: left;
|
|
260
281
|
}
|
|
261
282
|
}
|
|
283
|
+
.ant-divider-horizontal {
|
|
284
|
+
margin-bottom: 16px;
|
|
285
|
+
margin-top: 2px;
|
|
286
|
+
}
|
|
262
287
|
|
|
263
288
|
.otp-input-container .resend-otp-link {
|
|
264
289
|
display: flex;
|
|
265
290
|
justify-content: center;
|
|
266
291
|
align-items: center;
|
|
267
292
|
text-align: center;
|
|
268
|
-
margin-top: -10px;
|
|
293
|
+
// margin-top: -10px;
|
|
269
294
|
color: #0c66e4;
|
|
270
295
|
margin-bottom: 10px;
|
|
271
296
|
}
|
|
@@ -292,7 +317,62 @@ body {
|
|
|
292
317
|
.otp-input-container {
|
|
293
318
|
display: flex;
|
|
294
319
|
flex-direction: column;
|
|
295
|
-
gap:
|
|
320
|
+
gap: 2px;
|
|
321
|
+
}
|
|
322
|
+
.otp-actions {
|
|
323
|
+
background-color: #f5f5f5; // light gray
|
|
324
|
+
padding: 12px 16px;
|
|
325
|
+
display: flex;
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
gap: 6px;
|
|
328
|
+
// margin-top: 6px;
|
|
329
|
+
}
|
|
330
|
+
.resend-action {
|
|
331
|
+
margin-bottom: 8px;
|
|
332
|
+
display: flex;
|
|
333
|
+
gap: 6px;
|
|
334
|
+
}
|
|
335
|
+
.otp-method-section {
|
|
336
|
+
// margin-top: 10px;
|
|
337
|
+
|
|
338
|
+
display: flex;
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
gap: 6px;
|
|
341
|
+
|
|
342
|
+
.otp-method-title {
|
|
343
|
+
font-size: 16px;
|
|
344
|
+
font-weight: 600;
|
|
345
|
+
margin-bottom: 8px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.otp-method-group {
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
margin-bottom: 10px;
|
|
352
|
+
gap: 30px;
|
|
353
|
+
font-size: 12px;
|
|
354
|
+
}
|
|
355
|
+
.otp-icon {
|
|
356
|
+
position: relative;
|
|
357
|
+
top: 2px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ant-radio-wrapper {
|
|
361
|
+
display: flex;
|
|
362
|
+
// align-items: center;
|
|
363
|
+
gap: 6px;
|
|
364
|
+
|
|
365
|
+
svg {
|
|
366
|
+
font-size: 18px;
|
|
367
|
+
opacity: 0.8;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.otp-mode-error {
|
|
372
|
+
margin: 5px;
|
|
373
|
+
font-size: 13px;
|
|
374
|
+
color: red;
|
|
375
|
+
}
|
|
296
376
|
}
|
|
297
377
|
|
|
298
378
|
.otp-mode-text {
|
|
@@ -308,25 +388,25 @@ input {
|
|
|
308
388
|
input:focus {
|
|
309
389
|
border-color: #fff !important;
|
|
310
390
|
}
|
|
311
|
-
.otp-container{
|
|
391
|
+
.otp-container {
|
|
312
392
|
display: flex;
|
|
313
|
-
flex-direction:
|
|
393
|
+
flex-direction: column;
|
|
314
394
|
gap: 7px;
|
|
315
395
|
}
|
|
316
396
|
|
|
317
|
-
.otp-container input[type=
|
|
397
|
+
.otp-container input[type='text']:focus {
|
|
318
398
|
border-color: #fff !important;
|
|
319
399
|
}
|
|
320
400
|
|
|
321
401
|
.full-page {
|
|
322
402
|
height: 100vh;
|
|
323
|
-
background-color:
|
|
403
|
+
background-color: 'cover'; // Ensures full coverage
|
|
324
404
|
background-position: 'bottom center'; // Aligns image at the bottom
|
|
325
|
-
background-size: '100% auto'
|
|
326
|
-
background-repeat:no-repeat
|
|
327
|
-
|
|
405
|
+
background-size: '100% auto'; // image spans full width
|
|
406
|
+
background-repeat: no-repeat;
|
|
407
|
+
|
|
328
408
|
min-height: 100vh; // Ensures full height
|
|
329
|
-
width: 100
|
|
409
|
+
width: 100%; // Covers the full width
|
|
330
410
|
}
|
|
331
411
|
.ant-input {
|
|
332
412
|
background-color: transparent !important;
|
|
@@ -344,3 +424,35 @@ input:focus {
|
|
|
344
424
|
// background-color: var(--custom-input-bg-color);
|
|
345
425
|
// color: var(--custom-input-color);
|
|
346
426
|
// }
|
|
427
|
+
/* Mobile: stack OTP radio options in separate rows */
|
|
428
|
+
/* Mobile phones (iPhone) – stack in one column */
|
|
429
|
+
@media only screen and (max-width: 600px) {
|
|
430
|
+
.otp-method-group {
|
|
431
|
+
flex-direction: column !important;
|
|
432
|
+
align-items: flex-start !important;
|
|
433
|
+
gap: 12px !important;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* iPad Mini + Tablets (600px to 1024px) – show in row */
|
|
438
|
+
@media only screen and (min-width: 601px) and (max-width: 1024px) {
|
|
439
|
+
.otp-method-group {
|
|
440
|
+
flex-direction: row !important;
|
|
441
|
+
align-items: center !important;
|
|
442
|
+
justify-content: space-between !important;
|
|
443
|
+
gap: 20px !important;
|
|
444
|
+
width: 100%;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.otp-method-group .ant-radio-wrapper {
|
|
448
|
+
flex: 1; /* evenly spaced columns */
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Desktop – normal layout */
|
|
453
|
+
@media only screen and (min-width: 1025px) {
|
|
454
|
+
.otp-method-group {
|
|
455
|
+
flex-direction: row;
|
|
456
|
+
gap: 30px;
|
|
457
|
+
}
|
|
458
|
+
}
|