@e1011/es-kit 1.2.0 → 1.2.1
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/hooks/esm/index.css +303 -303
- package/dist/hooks/esm/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/hooks/esm/src/core/utils/helpers/ui.js +1 -1
- package/dist/hooks/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/hooks/index.css +303 -303
- package/dist/hooks/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/hooks/src/core/utils/helpers/ui.js +1 -1
- package/dist/hooks/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/cjs/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/ui.js +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/esm/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/lib/esm/src/core/utils/helpers/ui.js +1 -1
- package/dist/lib/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/hooks/useThemePreference.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/ui.d.ts +11 -6
- package/dist/types/src/core/utils/helpers/ui.d.ts.map +1 -1
- package/dist/ui/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/ui/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/utils/esm/index.css +303 -303
- package/dist/utils/esm/src/core/utils/helpers/ui.js +1 -1
- package/dist/utils/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/utils/index.css +303 -303
- package/dist/utils/src/core/utils/helpers/ui.js +1 -1
- package/dist/utils/src/core/utils/helpers/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/hooks/esm/index.css
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
-
background: #EFEFEF;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
-
margin-right: 10px;
|
|
9
|
-
}
|
|
10
1
|
.icon-module_icon-base-parent__nOMvW {
|
|
11
2
|
line-height: 1px !important;
|
|
12
3
|
}
|
|
@@ -37,6 +28,34 @@
|
|
|
37
28
|
width: var(--height);
|
|
38
29
|
height: var(--width);
|
|
39
30
|
}
|
|
31
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
32
|
+
background: #EFEFEF;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
38
|
+
margin-right: 10px;
|
|
39
|
+
}
|
|
40
|
+
.divider-module_divider-line__6CesR {
|
|
41
|
+
position: relative;
|
|
42
|
+
display: block;
|
|
43
|
+
transition: opacity, width, height 250ms ease-in-out;
|
|
44
|
+
background-color: var(--color);
|
|
45
|
+
opacity: var(--opacity);
|
|
46
|
+
}
|
|
47
|
+
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
48
|
+
height: var(--length);
|
|
49
|
+
left: var(--left);
|
|
50
|
+
width: var(--width);
|
|
51
|
+
margin: var(--margin);
|
|
52
|
+
}
|
|
53
|
+
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
54
|
+
width: var(--length);
|
|
55
|
+
left: var(--left);
|
|
56
|
+
height: var(--height);
|
|
57
|
+
margin: var(--margin);
|
|
58
|
+
}
|
|
40
59
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
41
60
|
transform-origin: 0% 0%;
|
|
42
61
|
opacity: 0;
|
|
@@ -70,25 +89,6 @@
|
|
|
70
89
|
max-width: var(--prop-value);
|
|
71
90
|
opacity: 1;
|
|
72
91
|
}
|
|
73
|
-
.divider-module_divider-line__6CesR {
|
|
74
|
-
position: relative;
|
|
75
|
-
display: block;
|
|
76
|
-
transition: opacity, width, height 250ms ease-in-out;
|
|
77
|
-
background-color: var(--color);
|
|
78
|
-
opacity: var(--opacity);
|
|
79
|
-
}
|
|
80
|
-
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
81
|
-
height: var(--length);
|
|
82
|
-
left: var(--left);
|
|
83
|
-
width: var(--width);
|
|
84
|
-
margin: var(--margin);
|
|
85
|
-
}
|
|
86
|
-
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
87
|
-
width: var(--length);
|
|
88
|
-
left: var(--left);
|
|
89
|
-
height: var(--height);
|
|
90
|
-
margin: var(--margin);
|
|
91
|
-
}
|
|
92
92
|
.field-module_field__UfKm3 {
|
|
93
93
|
opacity: 1;
|
|
94
94
|
pointer-events: auto;
|
|
@@ -243,125 +243,6 @@
|
|
|
243
243
|
width: 100%;
|
|
244
244
|
min-width: 0;
|
|
245
245
|
}
|
|
246
|
-
.popup-overlay-module_popup-modal-overlay__dlJqM {
|
|
247
|
-
z-index: 1;
|
|
248
|
-
position: fixed;
|
|
249
|
-
width: 100%;
|
|
250
|
-
height: 100%;
|
|
251
|
-
top: 0;
|
|
252
|
-
left: 0;
|
|
253
|
-
background: rgba(40, 80, 120, 0.8) !important;
|
|
254
|
-
pointer-events: all;
|
|
255
|
-
user-select: none;
|
|
256
|
-
will-change: opacity;
|
|
257
|
-
transition: opacity 450ms ease-in-out;
|
|
258
|
-
opacity: 0;
|
|
259
|
-
visibility: hidden;
|
|
260
|
-
}
|
|
261
|
-
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show] {
|
|
262
|
-
opacity: 1;
|
|
263
|
-
visibility: visible;
|
|
264
|
-
}
|
|
265
|
-
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show=false] {
|
|
266
|
-
opacity: 0;
|
|
267
|
-
visibility: hidden;
|
|
268
|
-
}
|
|
269
|
-
:root {
|
|
270
|
-
--divider-line: #4a4b4b;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.popup-module_overflow-hidden__uimg4, .popup-module_text-truncate__y-5c1 {
|
|
274
|
-
overflow: hidden !important;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.popup-module_text-nowrap__eDCv3, .popup-module_text-truncate__y-5c1 {
|
|
278
|
-
white-space: nowrap !important;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.popup-module_text-ellipsis__yu8nx, .popup-module_text-truncate__y-5c1 {
|
|
282
|
-
text-overflow: ellipsis !important;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.popup-module_popup-container__PJ0oQ {
|
|
286
|
-
--popup-width: 60vw;
|
|
287
|
-
--popup-height: 50vh;
|
|
288
|
-
position: fixed;
|
|
289
|
-
width: var(--popup-width);
|
|
290
|
-
height: var(--popup-height);
|
|
291
|
-
--slideXFrom: 0;
|
|
292
|
-
--slideYFrom: 0;
|
|
293
|
-
will-change: opacity;
|
|
294
|
-
transition: opacity 300ms ease-in-out;
|
|
295
|
-
opacity: 0;
|
|
296
|
-
visibility: hidden;
|
|
297
|
-
pointer-events: none;
|
|
298
|
-
}
|
|
299
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz {
|
|
300
|
-
position: relative;
|
|
301
|
-
flex-direction: column;
|
|
302
|
-
align-items: start;
|
|
303
|
-
width: 100%;
|
|
304
|
-
height: 100%;
|
|
305
|
-
overflow-x: clip;
|
|
306
|
-
background-color: #090A0A;
|
|
307
|
-
border-radius: 4px;
|
|
308
|
-
box-shadow: 0px 10px 20px 4px rgba(0, 0, 0, 0.15);
|
|
309
|
-
transition: transform 350ms ease-out;
|
|
310
|
-
will-change: transform;
|
|
311
|
-
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
312
|
-
}
|
|
313
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz button {
|
|
314
|
-
margin-bottom: 0;
|
|
315
|
-
}
|
|
316
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx {
|
|
317
|
-
cursor: pointer;
|
|
318
|
-
line-height: 1px;
|
|
319
|
-
background-color: rgba(255, 255, 255, 0);
|
|
320
|
-
}
|
|
321
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx .icon-base {
|
|
322
|
-
background-color: #FDDA0D;
|
|
323
|
-
width: 9px !important;
|
|
324
|
-
height: 9px !important;
|
|
325
|
-
line-height: 1px !important;
|
|
326
|
-
}
|
|
327
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx:hover .icon-base {
|
|
328
|
-
background-color: #FFEA00;
|
|
329
|
-
}
|
|
330
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm {
|
|
331
|
-
width: 100%;
|
|
332
|
-
height: 100%;
|
|
333
|
-
padding: 24px;
|
|
334
|
-
overflow-y: auto;
|
|
335
|
-
display: flex;
|
|
336
|
-
}
|
|
337
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm > * {
|
|
338
|
-
overflow-y: auto;
|
|
339
|
-
}
|
|
340
|
-
.popup-module_popup-container__PJ0oQ[data-show] {
|
|
341
|
-
opacity: 1;
|
|
342
|
-
visibility: visible;
|
|
343
|
-
pointer-events: all;
|
|
344
|
-
}
|
|
345
|
-
.popup-module_popup-container__PJ0oQ[data-show] .popup-module_popup-container-inner__n83Cz {
|
|
346
|
-
transform: translateX(0) translateY(0);
|
|
347
|
-
}
|
|
348
|
-
.popup-module_popup-container__PJ0oQ[data-show=false] {
|
|
349
|
-
opacity: 0;
|
|
350
|
-
visibility: hidden;
|
|
351
|
-
pointer-events: none;
|
|
352
|
-
}
|
|
353
|
-
.popup-module_popup-container__PJ0oQ[data-show=false] .popup-module_popup-container-inner__n83Cz {
|
|
354
|
-
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.cui-theme-dark .popup-module_popup-container-inner__n83Cz {
|
|
358
|
-
background-color: #090A0A;
|
|
359
|
-
color: #F4F4F4;
|
|
360
|
-
}
|
|
361
|
-
.cui-theme-light .popup-module_popup-container-inner__n83Cz {
|
|
362
|
-
background-color: #090A0A;
|
|
363
|
-
color: #F4F4F4;
|
|
364
|
-
}
|
|
365
246
|
:root {
|
|
366
247
|
--divider-line: #4a4b4b;
|
|
367
248
|
}
|
|
@@ -480,67 +361,125 @@
|
|
|
480
361
|
--divider-line: #4a4b4b;
|
|
481
362
|
}
|
|
482
363
|
|
|
483
|
-
.
|
|
364
|
+
.popup-module_overflow-hidden__uimg4, .popup-module_text-truncate__y-5c1 {
|
|
484
365
|
overflow: hidden !important;
|
|
485
366
|
}
|
|
486
367
|
|
|
487
|
-
.
|
|
368
|
+
.popup-module_text-nowrap__eDCv3, .popup-module_text-truncate__y-5c1 {
|
|
488
369
|
white-space: nowrap !important;
|
|
489
370
|
}
|
|
490
371
|
|
|
491
|
-
.
|
|
372
|
+
.popup-module_text-ellipsis__yu8nx, .popup-module_text-truncate__y-5c1 {
|
|
492
373
|
text-overflow: ellipsis !important;
|
|
493
374
|
}
|
|
494
375
|
|
|
495
|
-
.
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
376
|
+
.popup-module_popup-container__PJ0oQ {
|
|
377
|
+
--popup-width: 60vw;
|
|
378
|
+
--popup-height: 50vh;
|
|
379
|
+
position: fixed;
|
|
380
|
+
width: var(--popup-width);
|
|
381
|
+
height: var(--popup-height);
|
|
382
|
+
--slideXFrom: 0;
|
|
383
|
+
--slideYFrom: 0;
|
|
384
|
+
will-change: opacity;
|
|
385
|
+
transition: opacity 300ms ease-in-out;
|
|
386
|
+
opacity: 0;
|
|
387
|
+
visibility: hidden;
|
|
388
|
+
pointer-events: none;
|
|
503
389
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
390
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz {
|
|
391
|
+
position: relative;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
align-items: start;
|
|
394
|
+
width: 100%;
|
|
395
|
+
height: 100%;
|
|
396
|
+
overflow-x: clip;
|
|
397
|
+
background-color: #090A0A;
|
|
398
|
+
border-radius: 4px;
|
|
399
|
+
box-shadow: 0px 10px 20px 4px rgba(0, 0, 0, 0.15);
|
|
400
|
+
transition: transform 350ms ease-out;
|
|
401
|
+
will-change: transform;
|
|
402
|
+
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
508
403
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
font-size: 14px;
|
|
512
|
-
line-height: 18px;
|
|
513
|
-
font-weight: 300;
|
|
404
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz button {
|
|
405
|
+
margin-bottom: 0;
|
|
514
406
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
407
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx {
|
|
408
|
+
cursor: pointer;
|
|
409
|
+
line-height: 1px;
|
|
410
|
+
background-color: rgba(255, 255, 255, 0);
|
|
518
411
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
412
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx .icon-base {
|
|
413
|
+
background-color: #FDDA0D;
|
|
414
|
+
width: 9px !important;
|
|
415
|
+
height: 9px !important;
|
|
416
|
+
line-height: 1px !important;
|
|
522
417
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
overflow: hidden !important;
|
|
526
|
-
white-space: nowrap !important;
|
|
527
|
-
text-overflow: ellipsis !important;
|
|
528
|
-
text-decoration: none;
|
|
529
|
-
color: #65C5F6;
|
|
530
|
-
display: inline;
|
|
531
|
-
gap: 4px;
|
|
532
|
-
flex-grow: 0;
|
|
533
|
-
max-width: 400px;
|
|
534
|
-
position: relative;
|
|
535
|
-
vertical-align: center;
|
|
418
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx:hover .icon-base {
|
|
419
|
+
background-color: #FFEA00;
|
|
536
420
|
}
|
|
537
|
-
.
|
|
538
|
-
|
|
539
|
-
|
|
421
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm {
|
|
422
|
+
width: 100%;
|
|
423
|
+
height: 100%;
|
|
424
|
+
padding: 24px;
|
|
425
|
+
overflow-y: auto;
|
|
426
|
+
display: flex;
|
|
540
427
|
}
|
|
541
|
-
.
|
|
428
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm > * {
|
|
429
|
+
overflow-y: auto;
|
|
430
|
+
}
|
|
431
|
+
.popup-module_popup-container__PJ0oQ[data-show] {
|
|
432
|
+
opacity: 1;
|
|
433
|
+
visibility: visible;
|
|
434
|
+
pointer-events: all;
|
|
435
|
+
}
|
|
436
|
+
.popup-module_popup-container__PJ0oQ[data-show] .popup-module_popup-container-inner__n83Cz {
|
|
437
|
+
transform: translateX(0) translateY(0);
|
|
438
|
+
}
|
|
439
|
+
.popup-module_popup-container__PJ0oQ[data-show=false] {
|
|
440
|
+
opacity: 0;
|
|
441
|
+
visibility: hidden;
|
|
542
442
|
pointer-events: none;
|
|
543
|
-
|
|
443
|
+
}
|
|
444
|
+
.popup-module_popup-container__PJ0oQ[data-show=false] .popup-module_popup-container-inner__n83Cz {
|
|
445
|
+
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.cui-theme-dark .popup-module_popup-container-inner__n83Cz {
|
|
449
|
+
background-color: #090A0A;
|
|
450
|
+
color: #F4F4F4;
|
|
451
|
+
}
|
|
452
|
+
.cui-theme-light .popup-module_popup-container-inner__n83Cz {
|
|
453
|
+
background-color: #090A0A;
|
|
454
|
+
color: #F4F4F4;
|
|
455
|
+
}
|
|
456
|
+
.textAndContent-module_textAndContent__X5P1n {
|
|
457
|
+
align-items: baseline;
|
|
458
|
+
flex-shrink: 1;
|
|
459
|
+
gap: 8px;
|
|
460
|
+
}
|
|
461
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM {
|
|
462
|
+
z-index: 1;
|
|
463
|
+
position: fixed;
|
|
464
|
+
width: 100%;
|
|
465
|
+
height: 100%;
|
|
466
|
+
top: 0;
|
|
467
|
+
left: 0;
|
|
468
|
+
background: rgba(40, 80, 120, 0.8) !important;
|
|
469
|
+
pointer-events: all;
|
|
470
|
+
user-select: none;
|
|
471
|
+
will-change: opacity;
|
|
472
|
+
transition: opacity 450ms ease-in-out;
|
|
473
|
+
opacity: 0;
|
|
474
|
+
visibility: hidden;
|
|
475
|
+
}
|
|
476
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show] {
|
|
477
|
+
opacity: 1;
|
|
478
|
+
visibility: visible;
|
|
479
|
+
}
|
|
480
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show=false] {
|
|
481
|
+
opacity: 0;
|
|
482
|
+
visibility: hidden;
|
|
544
483
|
}
|
|
545
484
|
:root {
|
|
546
485
|
--divider-line: #4a4b4b;
|
|
@@ -672,118 +611,6 @@
|
|
|
672
611
|
.cui-theme-light .button-module_button__NDMQS {
|
|
673
612
|
color: #090A0A;
|
|
674
613
|
}
|
|
675
|
-
.textAndContent-module_textAndContent__X5P1n {
|
|
676
|
-
align-items: baseline;
|
|
677
|
-
flex-shrink: 1;
|
|
678
|
-
gap: 8px;
|
|
679
|
-
}
|
|
680
|
-
:root {
|
|
681
|
-
--divider-line: #4a4b4b;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.toggle-module_overflow-hidden__NxfFx, .toggle-module_text-truncate__Wg-Jx {
|
|
685
|
-
overflow: hidden !important;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
.toggle-module_text-nowrap__F9ld6, .toggle-module_text-truncate__Wg-Jx {
|
|
689
|
-
white-space: nowrap !important;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.toggle-module_text-ellipsis__ftYlg, .toggle-module_text-truncate__Wg-Jx {
|
|
693
|
-
text-overflow: ellipsis !important;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.toggle-module_toggle__p1Ep4 {
|
|
697
|
-
display: inline-block;
|
|
698
|
-
position: relative;
|
|
699
|
-
max-width: 48px;
|
|
700
|
-
max-height: 24px;
|
|
701
|
-
width: 48px;
|
|
702
|
-
height: 24px;
|
|
703
|
-
border-radius: 16px !important;
|
|
704
|
-
}
|
|
705
|
-
.toggle-module_toggle__p1Ep4 input {
|
|
706
|
-
opacity: 0;
|
|
707
|
-
width: 0;
|
|
708
|
-
height: 0;
|
|
709
|
-
}
|
|
710
|
-
.toggle-module_toggle__p1Ep4 .toggle-module_slider__2IVaG {
|
|
711
|
-
box-sizing: border-box;
|
|
712
|
-
position: absolute;
|
|
713
|
-
cursor: pointer;
|
|
714
|
-
width: 48px;
|
|
715
|
-
height: 24px;
|
|
716
|
-
top: 0;
|
|
717
|
-
left: 0;
|
|
718
|
-
right: 0;
|
|
719
|
-
bottom: 0;
|
|
720
|
-
background-color: transparent;
|
|
721
|
-
border: 1px solid #F4F4F4;
|
|
722
|
-
transition: transform, background-color 0.4s ease;
|
|
723
|
-
border-radius: 16px;
|
|
724
|
-
}
|
|
725
|
-
.toggle-module_toggle__p1Ep4 .toggle-module_slider__2IVaG:before {
|
|
726
|
-
position: absolute;
|
|
727
|
-
content: "";
|
|
728
|
-
height: 20px;
|
|
729
|
-
width: 20px;
|
|
730
|
-
left: 1px;
|
|
731
|
-
bottom: 1px;
|
|
732
|
-
background-color: #F4F4F4;
|
|
733
|
-
transition: transform 0.4s ease;
|
|
734
|
-
border-radius: 50%;
|
|
735
|
-
}
|
|
736
|
-
.toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG {
|
|
737
|
-
background-color: #282A2A;
|
|
738
|
-
border-color: #282A2A;
|
|
739
|
-
}
|
|
740
|
-
.toggle-module_toggle__p1Ep4 input:focus + .toggle-module_slider__2IVaG {
|
|
741
|
-
box-shadow: 0 0 1px 1px #282A2A;
|
|
742
|
-
}
|
|
743
|
-
.toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:before {
|
|
744
|
-
transform: translateX(24px);
|
|
745
|
-
}
|
|
746
|
-
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH {
|
|
747
|
-
opacity: 0.65;
|
|
748
|
-
}
|
|
749
|
-
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH input {
|
|
750
|
-
pointer-events: none;
|
|
751
|
-
}
|
|
752
|
-
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH .toggle-module_slider__2IVaG {
|
|
753
|
-
cursor: not-allowed;
|
|
754
|
-
}
|
|
755
|
-
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH .toggle-module_slider__2IVaG:after {
|
|
756
|
-
content: " ";
|
|
757
|
-
z-index: -1;
|
|
758
|
-
display: block;
|
|
759
|
-
position: absolute;
|
|
760
|
-
height: 100%;
|
|
761
|
-
top: 0;
|
|
762
|
-
left: 0;
|
|
763
|
-
right: 0;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
.cui-theme-dark .toggle-module_toggle__p1Ep4 input:enabled + .toggle-module_slider__2IVaG:hover {
|
|
767
|
-
background-color: #003A4C;
|
|
768
|
-
}
|
|
769
|
-
.cui-theme-dark .toggle-module_toggle__p1Ep4 input:checked:enabled + .toggle-module_slider__2IVaG:hover {
|
|
770
|
-
background-color: rgb(38.0475, 39.8525, 39.8525);
|
|
771
|
-
}
|
|
772
|
-
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG {
|
|
773
|
-
border-color: rgb(32.4, 41.4, 41.4);
|
|
774
|
-
}
|
|
775
|
-
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG:hover {
|
|
776
|
-
background-color: rgba(40, 42, 42, 0.05);
|
|
777
|
-
}
|
|
778
|
-
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG:before {
|
|
779
|
-
background-color: #282A2A;
|
|
780
|
-
}
|
|
781
|
-
.cui-theme-light .toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:before {
|
|
782
|
-
background-color: #F4F4F4;
|
|
783
|
-
}
|
|
784
|
-
.cui-theme-light .toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:hover {
|
|
785
|
-
background-color: rgb(54.7902439024, 70.0097560976, 70.0097560976);
|
|
786
|
-
}
|
|
787
614
|
:root {
|
|
788
615
|
--divider-line: #4a4b4b;
|
|
789
616
|
}
|
|
@@ -952,6 +779,179 @@
|
|
|
952
779
|
--divider-line: #4a4b4b;
|
|
953
780
|
}
|
|
954
781
|
|
|
782
|
+
.typography-module_overflow-hidden__UmQ-v, .typography-module_text-truncate__8MgV9 {
|
|
783
|
+
overflow: hidden !important;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.typography-module_text-nowrap__dt3uu, .typography-module_text-truncate__8MgV9 {
|
|
787
|
+
white-space: nowrap !important;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.typography-module_text-ellipsis__iyHeZ, .typography-module_text-truncate__8MgV9 {
|
|
791
|
+
text-overflow: ellipsis !important;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.typography-module_headline__b0XlP {
|
|
795
|
+
font-size: 28px;
|
|
796
|
+
line-height: 32px;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.typography-module_headlineSecondary__IDnhT {
|
|
800
|
+
font-size: 24px;
|
|
801
|
+
line-height: 28px;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.typography-module_headlineTertiary__mlG-v {
|
|
805
|
+
font-size: 18px;
|
|
806
|
+
line-height: 24x;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.typography-module_paragraph__tgBAx, .typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY, .typography-module_paragraphSmall__vTMiI {
|
|
810
|
+
font-size: 14px;
|
|
811
|
+
line-height: 18px;
|
|
812
|
+
font-weight: 300;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.typography-module_paragraphSmall__vTMiI, .typography-module_paragraphBoldSmall__qExmY {
|
|
816
|
+
font-size: 12px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY {
|
|
820
|
+
font-weight: 600;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.typography-module_link__DWurf {
|
|
824
|
+
overflow: hidden !important;
|
|
825
|
+
white-space: nowrap !important;
|
|
826
|
+
text-overflow: ellipsis !important;
|
|
827
|
+
text-decoration: none;
|
|
828
|
+
color: #65C5F6;
|
|
829
|
+
display: inline;
|
|
830
|
+
gap: 4px;
|
|
831
|
+
flex-grow: 0;
|
|
832
|
+
max-width: 400px;
|
|
833
|
+
position: relative;
|
|
834
|
+
vertical-align: center;
|
|
835
|
+
}
|
|
836
|
+
.typography-module_link__DWurf:hover:not(.typography-module_disabled__hjK8C) {
|
|
837
|
+
text-decoration: underline;
|
|
838
|
+
color: #65C5F6;
|
|
839
|
+
}
|
|
840
|
+
.typography-module_link__DWurf.typography-module_disabled__hjK8C {
|
|
841
|
+
pointer-events: none;
|
|
842
|
+
opacity: 0.6;
|
|
843
|
+
}
|
|
844
|
+
:root {
|
|
845
|
+
--divider-line: #4a4b4b;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.toggle-module_overflow-hidden__NxfFx, .toggle-module_text-truncate__Wg-Jx {
|
|
849
|
+
overflow: hidden !important;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.toggle-module_text-nowrap__F9ld6, .toggle-module_text-truncate__Wg-Jx {
|
|
853
|
+
white-space: nowrap !important;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.toggle-module_text-ellipsis__ftYlg, .toggle-module_text-truncate__Wg-Jx {
|
|
857
|
+
text-overflow: ellipsis !important;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.toggle-module_toggle__p1Ep4 {
|
|
861
|
+
display: inline-block;
|
|
862
|
+
position: relative;
|
|
863
|
+
max-width: 48px;
|
|
864
|
+
max-height: 24px;
|
|
865
|
+
width: 48px;
|
|
866
|
+
height: 24px;
|
|
867
|
+
border-radius: 16px !important;
|
|
868
|
+
}
|
|
869
|
+
.toggle-module_toggle__p1Ep4 input {
|
|
870
|
+
opacity: 0;
|
|
871
|
+
width: 0;
|
|
872
|
+
height: 0;
|
|
873
|
+
}
|
|
874
|
+
.toggle-module_toggle__p1Ep4 .toggle-module_slider__2IVaG {
|
|
875
|
+
box-sizing: border-box;
|
|
876
|
+
position: absolute;
|
|
877
|
+
cursor: pointer;
|
|
878
|
+
width: 48px;
|
|
879
|
+
height: 24px;
|
|
880
|
+
top: 0;
|
|
881
|
+
left: 0;
|
|
882
|
+
right: 0;
|
|
883
|
+
bottom: 0;
|
|
884
|
+
background-color: transparent;
|
|
885
|
+
border: 1px solid #F4F4F4;
|
|
886
|
+
transition: transform, background-color 0.4s ease;
|
|
887
|
+
border-radius: 16px;
|
|
888
|
+
}
|
|
889
|
+
.toggle-module_toggle__p1Ep4 .toggle-module_slider__2IVaG:before {
|
|
890
|
+
position: absolute;
|
|
891
|
+
content: "";
|
|
892
|
+
height: 20px;
|
|
893
|
+
width: 20px;
|
|
894
|
+
left: 1px;
|
|
895
|
+
bottom: 1px;
|
|
896
|
+
background-color: #F4F4F4;
|
|
897
|
+
transition: transform 0.4s ease;
|
|
898
|
+
border-radius: 50%;
|
|
899
|
+
}
|
|
900
|
+
.toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG {
|
|
901
|
+
background-color: #282A2A;
|
|
902
|
+
border-color: #282A2A;
|
|
903
|
+
}
|
|
904
|
+
.toggle-module_toggle__p1Ep4 input:focus + .toggle-module_slider__2IVaG {
|
|
905
|
+
box-shadow: 0 0 1px 1px #282A2A;
|
|
906
|
+
}
|
|
907
|
+
.toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:before {
|
|
908
|
+
transform: translateX(24px);
|
|
909
|
+
}
|
|
910
|
+
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH {
|
|
911
|
+
opacity: 0.65;
|
|
912
|
+
}
|
|
913
|
+
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH input {
|
|
914
|
+
pointer-events: none;
|
|
915
|
+
}
|
|
916
|
+
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH .toggle-module_slider__2IVaG {
|
|
917
|
+
cursor: not-allowed;
|
|
918
|
+
}
|
|
919
|
+
.toggle-module_toggle__p1Ep4.toggle-module_disabled__0nElH .toggle-module_slider__2IVaG:after {
|
|
920
|
+
content: " ";
|
|
921
|
+
z-index: -1;
|
|
922
|
+
display: block;
|
|
923
|
+
position: absolute;
|
|
924
|
+
height: 100%;
|
|
925
|
+
top: 0;
|
|
926
|
+
left: 0;
|
|
927
|
+
right: 0;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.cui-theme-dark .toggle-module_toggle__p1Ep4 input:enabled + .toggle-module_slider__2IVaG:hover {
|
|
931
|
+
background-color: #003A4C;
|
|
932
|
+
}
|
|
933
|
+
.cui-theme-dark .toggle-module_toggle__p1Ep4 input:checked:enabled + .toggle-module_slider__2IVaG:hover {
|
|
934
|
+
background-color: rgb(38.0475, 39.8525, 39.8525);
|
|
935
|
+
}
|
|
936
|
+
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG {
|
|
937
|
+
border-color: rgb(32.4, 41.4, 41.4);
|
|
938
|
+
}
|
|
939
|
+
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG:hover {
|
|
940
|
+
background-color: rgba(40, 42, 42, 0.05);
|
|
941
|
+
}
|
|
942
|
+
.cui-theme-light .toggle-module_toggle__p1Ep4 input + .toggle-module_slider__2IVaG:before {
|
|
943
|
+
background-color: #282A2A;
|
|
944
|
+
}
|
|
945
|
+
.cui-theme-light .toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:before {
|
|
946
|
+
background-color: #F4F4F4;
|
|
947
|
+
}
|
|
948
|
+
.cui-theme-light .toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:hover {
|
|
949
|
+
background-color: rgb(54.7902439024, 70.0097560976, 70.0097560976);
|
|
950
|
+
}
|
|
951
|
+
:root {
|
|
952
|
+
--divider-line: #4a4b4b;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
955
|
.anchorLink-module_overflow-hidden__-MElA, .anchorLink-module_text-truncate__62t8P {
|
|
956
956
|
overflow: hidden !important;
|
|
957
957
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemePreference.js","sources":["../../../../../../src/core/hooks/useThemePreference.ts"],"sourcesContent":["import { useEffect } from 'react'\n\nimport { observeThemePreference } from '../utils/helpers/ui'\n\n/**\n * Custom hook to use theme preference in a React component.\n * @param {() => HTMLElement} [getHtmlElement] - Function to get the HTML element to which the theme will be applied.\n * @param {(isDark: boolean) => void} [switchCallback] - Callback function to execute when the theme changes.\n */\nexport const useThemePreference = (\n getHtmlElement: () => HTMLElement = (): HTMLElement => document.body,\n switchCallback: (isDark: boolean) => void = (isDark: boolean): boolean => isDark,\n): void => {\n useEffect(() => observeThemePreference(getHtmlElement, switchCallback)
|
|
1
|
+
{"version":3,"file":"useThemePreference.js","sources":["../../../../../../src/core/hooks/useThemePreference.ts"],"sourcesContent":["import { useEffect } from 'react'\n\nimport { observeThemePreference } from '../utils/helpers/ui'\n\n/**\n * Custom hook to use theme preference in a React component.\n * @param {() => HTMLElement} [getHtmlElement] - Function to get the HTML element to which the theme will be applied.\n * @param {(isDark: boolean) => void} [switchCallback] - Callback function to execute when the theme changes.\n */\nexport const useThemePreference = (\n getHtmlElement: () => HTMLElement = (): HTMLElement => document.body,\n switchCallback: (isDark: boolean) => void = (isDark: boolean): boolean => isDark,\n): void => {\n useEffect(\n () => observeThemePreference(getHtmlElement, switchCallback),\n [getHtmlElement, switchCallback],\n )\n}\n"],"names":["useThemePreference","getHtmlElement","arguments","length","undefined","document","body","switchCallback","isDark","useEffect","observeThemePreference"],"mappings":"kGASaA,MAAAA,EAAqB,WAGvB,IAFTC,EAAiCC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAA,GAAG,IAAmBG,SAASC,KAChEC,EAAyCL,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAIM,GAAAA,GAA6BA,EAE1EC,GACE,IAAMC,EAAuBT,EAAgBM,IAC7C,CAACN,EAAgBM,GAErB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../../node_modules/core-js/modules/web.dom-collections.iterator.js";const e=function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return o.filter((e=>"string"==typeof e&&null!=e)).filter(Boolean).join(" ")},o=e=>{const o={},t={};return Object.entries(e).forEach((e=>{let[r,s]=e;"data-"===r.substr(0,5)||"data"===r.substr(0,4)?o[r]=s:t[r]=s})),{dataProps:o,restProps:t}}
|
|
1
|
+
import"../../../../node_modules/core-js/modules/web.dom-collections.iterator.js";const e=function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return o.filter((e=>"string"==typeof e&&null!=e)).filter(Boolean).join(" ")},o=e=>{const o={},t={};return Object.entries(e).forEach((e=>{let[r,s]=e;"data-"===r.substr(0,5)||"data"===r.substr(0,4)?o[r]=s:t[r]=s})),{dataProps:o,restProps:t}},t={dark:"theme-dark",light:"theme-light"},r=e=>{var o;return null!==(o=(null!=e?e:document.body).__eskit_themes__)&&void 0!==o?o:t},s=function(e,o){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=r(o),c=e?s.light:s.dark,l=e?s.dark:s.light;o&&(o.classList.remove(c),o.classList.remove(l),o.classList.add(l)),"undefined"!=typeof document&&(document.querySelectorAll(".".concat(c)).forEach((e=>{e.classList.add(".".concat(l)),e.classList.remove(".".concat(c))})),t&&(document.querySelectorAll(".shadow-div").forEach((e=>{var o,t;null===(o=e.shadowRoot)||void 0===o||null===(o=o.querySelector(".".concat(c)))||void 0===o||o.classList.add(l),null===(t=e.shadowRoot)||void 0===t||null===(t=t.querySelector(".".concat(c)))||void 0===t||t.classList.remove(c)})),document.querySelectorAll("esmf-wrapper").forEach((e=>{var o,t,r;null===(o=e.shadowRoot)||void 0===o||null===(o=o.querySelector(".".concat(c)))||void 0===o||o.classList.add(l),null===(t=e.shadowRoot)||void 0===t||null===(t=t.querySelector(".".concat(c)))||void 0===t||t.classList.remove(c);const s=null===(r=e.shadowRoot)||void 0===r?void 0:r.childNodes[0];s&&(s.classList.add(l),s.classList.remove(c))}))))},c="change",l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>document.body,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;const t=t=>{const r=e();null==s||s(t,r),null==o||o(t)},r=e=>{t(e.matches)},l=e=>{t(!e.matches)},d=window.matchMedia("(prefers-color-scheme: dark)");try{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener(c,r),window.matchMedia("(prefers-color-scheme: light)").removeEventListener(c,l)}catch(e){}return t(null==d?void 0:d.matches),window.matchMedia("(prefers-color-scheme: dark)").addEventListener(c,r),window.matchMedia("(prefers-color-scheme: light)").addEventListener(c,l),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener(c,r),window.matchMedia("(prefers-color-scheme: light)").removeEventListener(c,l)}};export{e as classNames,r as getBaseThemes,l as observeThemePreference,o as parseProps,s as switchColorTheme};
|
|
2
2
|
//# sourceMappingURL=ui.js.map
|