@dragunio/fe-libs 0.1.1 → 0.1.2
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/README.md +36 -2
- package/dist/index.d.mts +170 -2
- package/dist/index.d.ts +170 -2
- package/dist/index.js +435 -39
- package/dist/index.mjs +432 -39
- package/dist/styles.css +778 -5
- package/package.json +36 -9
package/dist/styles.css
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
.fe-button--32 {
|
|
43
43
|
min-height: 32px;
|
|
44
44
|
padding: 6px 14px;
|
|
45
|
-
border-radius:
|
|
45
|
+
border-radius: 999px;
|
|
46
46
|
font-size: 14px;
|
|
47
47
|
}
|
|
48
48
|
.fe-button--40 {
|
|
@@ -182,16 +182,18 @@
|
|
|
182
182
|
color: #a36200;
|
|
183
183
|
}
|
|
184
184
|
.fe-button--icon-only {
|
|
185
|
-
width: 24px;
|
|
186
|
-
min-
|
|
185
|
+
min-width: 24px;
|
|
186
|
+
min-height: 24px;
|
|
187
187
|
padding: 4px;
|
|
188
188
|
}
|
|
189
189
|
.fe-button--icon-only.fe-button--32 {
|
|
190
|
-
width: 32px;
|
|
190
|
+
min-width: 32px;
|
|
191
|
+
min-height: 32px;
|
|
191
192
|
padding: 6px;
|
|
192
193
|
}
|
|
193
194
|
.fe-button--icon-only.fe-button--40 {
|
|
194
|
-
width: 40px;
|
|
195
|
+
min-width: 40px;
|
|
196
|
+
min-height: 40px;
|
|
195
197
|
padding: 10px;
|
|
196
198
|
}
|
|
197
199
|
.fe-button--align-center {
|
|
@@ -296,4 +298,775 @@ table[data-fe-table] tbody tr:hover {
|
|
|
296
298
|
box-shadow: 0 0 0 2px var(--fe-table-focus-ring, #2563eb);
|
|
297
299
|
}
|
|
298
300
|
|
|
301
|
+
/* packages/toggle/src/styles.css */
|
|
302
|
+
.fe-toggle {
|
|
303
|
+
--fe-toggle-color: #16a34a;
|
|
304
|
+
--fe-toggle-off: #98a2b3;
|
|
305
|
+
position: relative;
|
|
306
|
+
display: inline-flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: 8px;
|
|
309
|
+
color: #20242c;
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
font: inherit;
|
|
312
|
+
line-height: 1.25;
|
|
313
|
+
}
|
|
314
|
+
.fe-toggle__input {
|
|
315
|
+
position: absolute;
|
|
316
|
+
width: 1px;
|
|
317
|
+
height: 1px;
|
|
318
|
+
margin: -1px;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
clip: rect(0 0 0 0);
|
|
321
|
+
white-space: nowrap;
|
|
322
|
+
border: 0;
|
|
323
|
+
}
|
|
324
|
+
.fe-toggle__control {
|
|
325
|
+
display: inline-flex;
|
|
326
|
+
width: 40px;
|
|
327
|
+
height: 24px;
|
|
328
|
+
flex: 0 0 auto;
|
|
329
|
+
align-items: center;
|
|
330
|
+
padding: 3px;
|
|
331
|
+
border-radius: 999px;
|
|
332
|
+
background: var(--fe-toggle-off);
|
|
333
|
+
box-shadow: inset 0 0 0 1px rgb(16 24 40 / 8%);
|
|
334
|
+
transition: background-color .18s ease;
|
|
335
|
+
}
|
|
336
|
+
.fe-toggle__control::after {
|
|
337
|
+
width: 18px;
|
|
338
|
+
height: 18px;
|
|
339
|
+
border-radius: 50%;
|
|
340
|
+
background: #fff;
|
|
341
|
+
box-shadow: 0 1px 2px rgb(16 24 40 / 22%);
|
|
342
|
+
content: "";
|
|
343
|
+
transition: transform .18s ease;
|
|
344
|
+
}
|
|
345
|
+
.fe-toggle__input:checked + .fe-toggle__control {
|
|
346
|
+
background: var(--fe-toggle-color);
|
|
347
|
+
}
|
|
348
|
+
.fe-toggle__input:checked + .fe-toggle__control::after {
|
|
349
|
+
transform: translateX(16px);
|
|
350
|
+
}
|
|
351
|
+
.fe-toggle__input:focus-visible + .fe-toggle__control {
|
|
352
|
+
outline: 3px solid color-mix(in srgb, var(--fe-toggle-color), transparent 65%);
|
|
353
|
+
outline-offset: 2px;
|
|
354
|
+
}
|
|
355
|
+
.fe-toggle__input:disabled + .fe-toggle__control {
|
|
356
|
+
opacity: .52;
|
|
357
|
+
}
|
|
358
|
+
.fe-toggle:has(.fe-toggle__input:disabled) {
|
|
359
|
+
cursor: not-allowed;
|
|
360
|
+
}
|
|
361
|
+
.fe-toggle__label {
|
|
362
|
+
user-select: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* packages/drawer/src/styles.css */
|
|
366
|
+
.fe-drawer-backdrop {
|
|
367
|
+
position: fixed;
|
|
368
|
+
z-index: 1000;
|
|
369
|
+
inset: 0;
|
|
370
|
+
display: flex;
|
|
371
|
+
background: rgba(15, 18, 25, 0.45);
|
|
372
|
+
animation: fe-drawer-fade 0.18s ease;
|
|
373
|
+
}
|
|
374
|
+
.fe-drawer {
|
|
375
|
+
display: flex;
|
|
376
|
+
flex-direction: column;
|
|
377
|
+
height: 100vh;
|
|
378
|
+
max-width: calc(100vw - 32px);
|
|
379
|
+
overflow: hidden;
|
|
380
|
+
background: #fff;
|
|
381
|
+
color: #20242c;
|
|
382
|
+
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
|
|
383
|
+
}
|
|
384
|
+
.fe-drawer--right {
|
|
385
|
+
width: min(420px, 100%);
|
|
386
|
+
height: 100%;
|
|
387
|
+
margin-left: auto;
|
|
388
|
+
animation: fe-drawer-in-right 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
389
|
+
}
|
|
390
|
+
.fe-drawer--left {
|
|
391
|
+
width: min(420px, 100%);
|
|
392
|
+
height: 100%;
|
|
393
|
+
animation: fe-drawer-in-left 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
394
|
+
}
|
|
395
|
+
.fe-drawer--top {
|
|
396
|
+
width: 100%;
|
|
397
|
+
animation: fe-drawer-in-top 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
398
|
+
}
|
|
399
|
+
.fe-drawer--bottom {
|
|
400
|
+
width: 100%;
|
|
401
|
+
margin-top: auto;
|
|
402
|
+
animation: fe-drawer-in-bottom 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
403
|
+
}
|
|
404
|
+
.fe-drawer--full-screen {
|
|
405
|
+
width: 100vw;
|
|
406
|
+
height: 100vh;
|
|
407
|
+
max-width: none;
|
|
408
|
+
max-height: none;
|
|
409
|
+
margin: 0;
|
|
410
|
+
border-radius: 0;
|
|
411
|
+
}
|
|
412
|
+
.fe-drawer__header,
|
|
413
|
+
.fe-drawer__footer {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex: 0 0 auto;
|
|
416
|
+
align-items: center;
|
|
417
|
+
justify-content: space-between;
|
|
418
|
+
gap: 12px;
|
|
419
|
+
min-height: 62px;
|
|
420
|
+
padding: 0 24px;
|
|
421
|
+
}
|
|
422
|
+
.fe-drawer__header {
|
|
423
|
+
border-bottom: 1px solid #e8eaee;
|
|
424
|
+
}
|
|
425
|
+
.fe-drawer__footer {
|
|
426
|
+
min-height: 72px;
|
|
427
|
+
border-top: 1px solid #e8eaee;
|
|
428
|
+
}
|
|
429
|
+
.fe-drawer__header h2 {
|
|
430
|
+
margin: 0;
|
|
431
|
+
font-size: 18px;
|
|
432
|
+
}
|
|
433
|
+
.fe-drawer__header button {
|
|
434
|
+
width: 32px;
|
|
435
|
+
height: 32px;
|
|
436
|
+
border: 0;
|
|
437
|
+
border-radius: 50%;
|
|
438
|
+
background: transparent;
|
|
439
|
+
color: #535b6a;
|
|
440
|
+
font-size: 26px;
|
|
441
|
+
line-height: 1;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
}
|
|
444
|
+
.fe-drawer__header button:hover {
|
|
445
|
+
background: #f1f3f6;
|
|
446
|
+
}
|
|
447
|
+
.fe-drawer__body {
|
|
448
|
+
flex: 1 1 auto;
|
|
449
|
+
min-height: 0;
|
|
450
|
+
overflow: auto;
|
|
451
|
+
padding: 24px;
|
|
452
|
+
}
|
|
453
|
+
@keyframes fe-drawer-fade {
|
|
454
|
+
from {
|
|
455
|
+
opacity: 0;
|
|
456
|
+
}
|
|
457
|
+
to {
|
|
458
|
+
opacity: 1;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
@keyframes fe-drawer-in-right {
|
|
462
|
+
from {
|
|
463
|
+
transform: translateX(100%);
|
|
464
|
+
}
|
|
465
|
+
to {
|
|
466
|
+
transform: translateX(0);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
@keyframes fe-drawer-in-left {
|
|
470
|
+
from {
|
|
471
|
+
transform: translateX(-100%);
|
|
472
|
+
}
|
|
473
|
+
to {
|
|
474
|
+
transform: translateX(0);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
@keyframes fe-drawer-in-top {
|
|
478
|
+
from {
|
|
479
|
+
transform: translateY(-100%);
|
|
480
|
+
}
|
|
481
|
+
to {
|
|
482
|
+
transform: translateY(0);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
@keyframes fe-drawer-in-bottom {
|
|
486
|
+
from {
|
|
487
|
+
transform: translateY(100%);
|
|
488
|
+
}
|
|
489
|
+
to {
|
|
490
|
+
transform: translateY(0);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* packages/form-controls/src/styles.css */
|
|
495
|
+
.fe-selection,
|
|
496
|
+
.fe-number-input,
|
|
497
|
+
.fe-datetime-picker {
|
|
498
|
+
display: grid;
|
|
499
|
+
min-width: 0;
|
|
500
|
+
gap: 6px;
|
|
501
|
+
font: inherit;
|
|
502
|
+
color: #20242c;
|
|
503
|
+
}
|
|
504
|
+
.fe-selection__label,
|
|
505
|
+
.fe-number-input__label,
|
|
506
|
+
.fe-datetime-picker__label {
|
|
507
|
+
font-size: 13px;
|
|
508
|
+
font-weight: 600;
|
|
509
|
+
}
|
|
510
|
+
.fe-selection__control {
|
|
511
|
+
position: relative;
|
|
512
|
+
width: 100%;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
}
|
|
515
|
+
.fe-selection__trigger,
|
|
516
|
+
.fe-number-input input {
|
|
517
|
+
width: 100%;
|
|
518
|
+
min-height: 42px;
|
|
519
|
+
padding: 0 13px;
|
|
520
|
+
border: 1px solid #d4d8e0;
|
|
521
|
+
border-radius: 12px;
|
|
522
|
+
background: #fff;
|
|
523
|
+
color: #20242c;
|
|
524
|
+
font: inherit;
|
|
525
|
+
outline: 0;
|
|
526
|
+
transition:
|
|
527
|
+
border-color 0.15s,
|
|
528
|
+
box-shadow 0.15s,
|
|
529
|
+
background 0.15s;
|
|
530
|
+
}
|
|
531
|
+
.fe-selection__trigger {
|
|
532
|
+
display: flex;
|
|
533
|
+
align-items: center;
|
|
534
|
+
text-align: left;
|
|
535
|
+
cursor: pointer;
|
|
536
|
+
}
|
|
537
|
+
.fe-selection--clearable .fe-selection__trigger {
|
|
538
|
+
padding-right: 64px;
|
|
539
|
+
}
|
|
540
|
+
.fe-selection--small .fe-selection__trigger {
|
|
541
|
+
min-height: 34px;
|
|
542
|
+
border-radius: 10px;
|
|
543
|
+
font-size: 13px;
|
|
544
|
+
}
|
|
545
|
+
.fe-selection__trigger:hover {
|
|
546
|
+
border-color: #aab0bb;
|
|
547
|
+
background: #fcfdff;
|
|
548
|
+
}
|
|
549
|
+
.fe-selection__trigger:focus-visible,
|
|
550
|
+
.fe-number-input input:focus,
|
|
551
|
+
.fe-datetime-picker__trigger:focus-visible {
|
|
552
|
+
border-color: #2878f0;
|
|
553
|
+
box-shadow: 0 0 0 3px rgba(40, 120, 240, 0.16);
|
|
554
|
+
}
|
|
555
|
+
.fe-selection--open .fe-selection__trigger {
|
|
556
|
+
border-color: #2878f0;
|
|
557
|
+
box-shadow: 0 0 0 3px rgba(40, 120, 240, 0.12);
|
|
558
|
+
}
|
|
559
|
+
.fe-selection__value {
|
|
560
|
+
display: flex;
|
|
561
|
+
width: 100%;
|
|
562
|
+
min-width: 0;
|
|
563
|
+
flex: 1 1 auto;
|
|
564
|
+
align-items: center;
|
|
565
|
+
overflow: hidden;
|
|
566
|
+
text-overflow: ellipsis;
|
|
567
|
+
white-space: nowrap;
|
|
568
|
+
}
|
|
569
|
+
.fe-selection__value.is-placeholder {
|
|
570
|
+
color: #8b94a4;
|
|
571
|
+
}
|
|
572
|
+
.fe-selection__value.is-tags {
|
|
573
|
+
flex-wrap: wrap;
|
|
574
|
+
align-content: center;
|
|
575
|
+
gap: 5px;
|
|
576
|
+
white-space: normal;
|
|
577
|
+
}
|
|
578
|
+
.fe-selection__tag {
|
|
579
|
+
display: inline-flex;
|
|
580
|
+
min-width: 0;
|
|
581
|
+
flex: 0 1 auto;
|
|
582
|
+
align-items: center;
|
|
583
|
+
gap: 4px;
|
|
584
|
+
max-width: 100%;
|
|
585
|
+
padding: 3px 7px;
|
|
586
|
+
border-radius: 7px;
|
|
587
|
+
background: #e7f1ff;
|
|
588
|
+
color: #1e60cc;
|
|
589
|
+
font-size: 12px;
|
|
590
|
+
font-weight: 600;
|
|
591
|
+
overflow: hidden;
|
|
592
|
+
text-overflow: ellipsis;
|
|
593
|
+
white-space: nowrap;
|
|
594
|
+
}
|
|
595
|
+
.fe-selection__tag span {
|
|
596
|
+
font-size: 15px;
|
|
597
|
+
line-height: 0.7;
|
|
598
|
+
}
|
|
599
|
+
.fe-selection__actions {
|
|
600
|
+
position: absolute;
|
|
601
|
+
top: 50%;
|
|
602
|
+
right: 14px;
|
|
603
|
+
width: 16px;
|
|
604
|
+
height: 16px;
|
|
605
|
+
transform: translateY(-50%);
|
|
606
|
+
pointer-events: none;
|
|
607
|
+
}
|
|
608
|
+
.fe-selection__clear {
|
|
609
|
+
position: absolute;
|
|
610
|
+
z-index: 1;
|
|
611
|
+
top: 50%;
|
|
612
|
+
right: 40px;
|
|
613
|
+
display: grid;
|
|
614
|
+
place-items: center;
|
|
615
|
+
width: 16px;
|
|
616
|
+
height: 16px;
|
|
617
|
+
margin: 0;
|
|
618
|
+
padding: 0;
|
|
619
|
+
border: 0;
|
|
620
|
+
border-radius: 50%;
|
|
621
|
+
background: transparent;
|
|
622
|
+
color: #697386;
|
|
623
|
+
cursor: pointer;
|
|
624
|
+
transform: translateY(-50%);
|
|
625
|
+
}
|
|
626
|
+
.fe-selection__clear::before,
|
|
627
|
+
.fe-selection__clear::after {
|
|
628
|
+
position: absolute;
|
|
629
|
+
top: 7px;
|
|
630
|
+
left: 2px;
|
|
631
|
+
width: 12px;
|
|
632
|
+
height: 2px;
|
|
633
|
+
border-radius: 999px;
|
|
634
|
+
background: currentColor;
|
|
635
|
+
content: "";
|
|
636
|
+
}
|
|
637
|
+
.fe-selection__clear::before {
|
|
638
|
+
transform: rotate(45deg);
|
|
639
|
+
}
|
|
640
|
+
.fe-selection__clear::after {
|
|
641
|
+
transform: rotate(-45deg);
|
|
642
|
+
}
|
|
643
|
+
.fe-selection__clear:hover {
|
|
644
|
+
background: #e8eaee;
|
|
645
|
+
color: #20242c;
|
|
646
|
+
}
|
|
647
|
+
.fe-selection__clear:focus-visible {
|
|
648
|
+
outline: 2px solid #2878f0;
|
|
649
|
+
outline-offset: 1px;
|
|
650
|
+
}
|
|
651
|
+
.fe-selection__chevron {
|
|
652
|
+
position: absolute;
|
|
653
|
+
top: 2px;
|
|
654
|
+
left: 3px;
|
|
655
|
+
width: 10px;
|
|
656
|
+
height: 10px;
|
|
657
|
+
border-right: 2px solid #303640;
|
|
658
|
+
border-bottom: 2px solid #303640;
|
|
659
|
+
transform: rotate(45deg);
|
|
660
|
+
transform-origin: center;
|
|
661
|
+
transition: transform 0.16s;
|
|
662
|
+
}
|
|
663
|
+
.fe-selection--open .fe-selection__chevron {
|
|
664
|
+
transform: rotate(225deg);
|
|
665
|
+
}
|
|
666
|
+
.fe-selection__menu {
|
|
667
|
+
position: absolute;
|
|
668
|
+
z-index: 40;
|
|
669
|
+
top: calc(100% + 7px);
|
|
670
|
+
left: 0;
|
|
671
|
+
width: 100%;
|
|
672
|
+
min-width: 220px;
|
|
673
|
+
overflow: hidden;
|
|
674
|
+
border: 1px solid #dce1e9;
|
|
675
|
+
border-radius: 12px;
|
|
676
|
+
background: #fff;
|
|
677
|
+
box-shadow: 0 12px 30px rgba(30, 42, 62, 0.17);
|
|
678
|
+
animation: fe-selection-in 0.14s ease;
|
|
679
|
+
}
|
|
680
|
+
.fe-selection__search {
|
|
681
|
+
display: flex;
|
|
682
|
+
align-items: center;
|
|
683
|
+
gap: 7px;
|
|
684
|
+
margin: 9px 9px 5px;
|
|
685
|
+
padding: 0 9px;
|
|
686
|
+
border: 1px solid #dce1e9;
|
|
687
|
+
border-radius: 8px;
|
|
688
|
+
color: #7a8393;
|
|
689
|
+
}
|
|
690
|
+
.fe-selection__search:focus-within {
|
|
691
|
+
border-color: #5b9cff;
|
|
692
|
+
box-shadow: 0 0 0 2px rgba(40, 120, 240, 0.11);
|
|
693
|
+
}
|
|
694
|
+
.fe-selection__search input {
|
|
695
|
+
width: 100%;
|
|
696
|
+
height: 32px;
|
|
697
|
+
border: 0;
|
|
698
|
+
outline: 0;
|
|
699
|
+
font: inherit;
|
|
700
|
+
font-size: 13px;
|
|
701
|
+
}
|
|
702
|
+
.fe-selection__options {
|
|
703
|
+
max-height: 232px;
|
|
704
|
+
overflow: auto;
|
|
705
|
+
padding: 5px;
|
|
706
|
+
}
|
|
707
|
+
.fe-selection__options button {
|
|
708
|
+
display: flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
justify-content: space-between;
|
|
711
|
+
width: 100%;
|
|
712
|
+
min-height: 37px;
|
|
713
|
+
padding: 8px 10px;
|
|
714
|
+
border: 0;
|
|
715
|
+
border-radius: 8px;
|
|
716
|
+
background: transparent;
|
|
717
|
+
color: #303640;
|
|
718
|
+
font: inherit;
|
|
719
|
+
font-size: 13px;
|
|
720
|
+
text-align: left;
|
|
721
|
+
cursor: pointer;
|
|
722
|
+
}
|
|
723
|
+
.fe-selection__options button:hover,
|
|
724
|
+
.fe-selection__options button.is-active {
|
|
725
|
+
background: #f2f6fc;
|
|
726
|
+
}
|
|
727
|
+
.fe-selection__options button.is-selected {
|
|
728
|
+
background: #e7f1ff;
|
|
729
|
+
color: #1e60cc;
|
|
730
|
+
font-weight: 600;
|
|
731
|
+
}
|
|
732
|
+
.fe-selection__options button:disabled {
|
|
733
|
+
opacity: 0.45;
|
|
734
|
+
cursor: not-allowed;
|
|
735
|
+
}
|
|
736
|
+
.fe-selection__check {
|
|
737
|
+
font-weight: 800;
|
|
738
|
+
}
|
|
739
|
+
.fe-selection__empty {
|
|
740
|
+
margin: 0;
|
|
741
|
+
padding: 18px 10px;
|
|
742
|
+
color: #8b94a4;
|
|
743
|
+
font-size: 13px;
|
|
744
|
+
text-align: center;
|
|
745
|
+
}
|
|
746
|
+
.fe-selection__helper,
|
|
747
|
+
.fe-number-input__helper {
|
|
748
|
+
color: #687183;
|
|
749
|
+
font-size: 12px;
|
|
750
|
+
}
|
|
751
|
+
.fe-selection--error .fe-selection__trigger,
|
|
752
|
+
.fe-number-input--error input {
|
|
753
|
+
border-color: #d83d55;
|
|
754
|
+
}
|
|
755
|
+
.fe-selection--error .fe-selection__helper,
|
|
756
|
+
.fe-number-input--error .fe-number-input__helper {
|
|
757
|
+
color: #b92c43;
|
|
758
|
+
}
|
|
759
|
+
.fe-selection--disabled {
|
|
760
|
+
opacity: 0.58;
|
|
761
|
+
}
|
|
762
|
+
.fe-selection--disabled .fe-selection__trigger {
|
|
763
|
+
cursor: not-allowed;
|
|
764
|
+
}
|
|
765
|
+
.fe-number-input input {
|
|
766
|
+
padding-right: 13px;
|
|
767
|
+
}
|
|
768
|
+
.fe-currency-input {
|
|
769
|
+
position: relative;
|
|
770
|
+
display: flex;
|
|
771
|
+
align-items: end;
|
|
772
|
+
}
|
|
773
|
+
.fe-currency-input__number {
|
|
774
|
+
width: 100%;
|
|
775
|
+
}
|
|
776
|
+
.fe-currency-input__number input {
|
|
777
|
+
padding-right: 78px;
|
|
778
|
+
}
|
|
779
|
+
.fe-currency-input__suffix,
|
|
780
|
+
.fe-currency-input__currency {
|
|
781
|
+
position: absolute;
|
|
782
|
+
right: 11px;
|
|
783
|
+
bottom: 8px;
|
|
784
|
+
color: #535b6a;
|
|
785
|
+
font: inherit;
|
|
786
|
+
font-size: 13px;
|
|
787
|
+
font-weight: 700;
|
|
788
|
+
}
|
|
789
|
+
.fe-currency-input__currency {
|
|
790
|
+
bottom: 7px;
|
|
791
|
+
max-width: 90px;
|
|
792
|
+
border: 0;
|
|
793
|
+
border-left: 1px solid #d4d8e0;
|
|
794
|
+
background: #fff;
|
|
795
|
+
padding: 4px 0 4px 8px;
|
|
796
|
+
outline: 0;
|
|
797
|
+
}
|
|
798
|
+
.fe-datetime-picker {
|
|
799
|
+
position: relative;
|
|
800
|
+
}
|
|
801
|
+
.fe-datetime-picker__trigger {
|
|
802
|
+
display: flex;
|
|
803
|
+
align-items: center;
|
|
804
|
+
gap: 9px;
|
|
805
|
+
width: 100%;
|
|
806
|
+
height: 40px;
|
|
807
|
+
padding: 0 13px;
|
|
808
|
+
border: 1px solid #b8bec9;
|
|
809
|
+
border-radius: 12px;
|
|
810
|
+
background: #fff;
|
|
811
|
+
color: #20242c;
|
|
812
|
+
font: inherit;
|
|
813
|
+
text-align: left;
|
|
814
|
+
cursor: pointer;
|
|
815
|
+
}
|
|
816
|
+
.fe-datetime-picker__trigger:disabled {
|
|
817
|
+
opacity: 0.55;
|
|
818
|
+
cursor: not-allowed;
|
|
819
|
+
}
|
|
820
|
+
.fe-datetime-picker__popper {
|
|
821
|
+
position: absolute;
|
|
822
|
+
z-index: 30;
|
|
823
|
+
top: calc(100% + 8px);
|
|
824
|
+
width: 300px;
|
|
825
|
+
padding: 14px;
|
|
826
|
+
border: 1px solid #d4d8e0;
|
|
827
|
+
border-radius: 14px;
|
|
828
|
+
background: #fff;
|
|
829
|
+
box-shadow: 0 14px 34px rgba(22, 29, 42, 0.18);
|
|
830
|
+
}
|
|
831
|
+
.fe-datetime-picker__month {
|
|
832
|
+
display: flex;
|
|
833
|
+
align-items: center;
|
|
834
|
+
justify-content: space-between;
|
|
835
|
+
margin-bottom: 12px;
|
|
836
|
+
}
|
|
837
|
+
.fe-datetime-picker__month button,
|
|
838
|
+
.fe-datetime-picker__days button,
|
|
839
|
+
.fe-datetime-picker__range-tabs button {
|
|
840
|
+
border: 0;
|
|
841
|
+
background: transparent;
|
|
842
|
+
color: #252a33;
|
|
843
|
+
font: inherit;
|
|
844
|
+
cursor: pointer;
|
|
845
|
+
}
|
|
846
|
+
.fe-datetime-picker__month button {
|
|
847
|
+
width: 28px;
|
|
848
|
+
height: 28px;
|
|
849
|
+
border-radius: 8px;
|
|
850
|
+
font-size: 23px;
|
|
851
|
+
line-height: 1;
|
|
852
|
+
}
|
|
853
|
+
.fe-datetime-picker__month button:hover,
|
|
854
|
+
.fe-datetime-picker__range-tabs button:hover {
|
|
855
|
+
background: #f0f5ff;
|
|
856
|
+
}
|
|
857
|
+
.fe-datetime-picker__weekdays,
|
|
858
|
+
.fe-datetime-picker__days {
|
|
859
|
+
display: grid;
|
|
860
|
+
grid-template-columns: repeat(7, 1fr);
|
|
861
|
+
gap: 3px;
|
|
862
|
+
text-align: center;
|
|
863
|
+
}
|
|
864
|
+
.fe-datetime-picker__weekdays {
|
|
865
|
+
margin-bottom: 4px;
|
|
866
|
+
color: #7a8393;
|
|
867
|
+
font-size: 11px;
|
|
868
|
+
font-weight: 700;
|
|
869
|
+
}
|
|
870
|
+
.fe-datetime-picker__days button {
|
|
871
|
+
height: 32px;
|
|
872
|
+
border-radius: 50%;
|
|
873
|
+
font-size: 13px;
|
|
874
|
+
}
|
|
875
|
+
.fe-datetime-picker__days button:hover,
|
|
876
|
+
.fe-datetime-picker__days button.is-in-range {
|
|
877
|
+
background: #e7f1ff;
|
|
878
|
+
}
|
|
879
|
+
.fe-datetime-picker__days button.is-selected {
|
|
880
|
+
background: #2878f0;
|
|
881
|
+
color: #fff;
|
|
882
|
+
}
|
|
883
|
+
.fe-datetime-picker__days button.is-other-month {
|
|
884
|
+
color: #aab0bb;
|
|
885
|
+
}
|
|
886
|
+
.fe-datetime-picker__range-tabs {
|
|
887
|
+
display: flex;
|
|
888
|
+
gap: 4px;
|
|
889
|
+
margin-top: 12px;
|
|
890
|
+
padding: 3px;
|
|
891
|
+
border-radius: 9px;
|
|
892
|
+
background: #f5f6f8;
|
|
893
|
+
}
|
|
894
|
+
.fe-datetime-picker__range-tabs button {
|
|
895
|
+
flex: 1;
|
|
896
|
+
padding: 6px;
|
|
897
|
+
border-radius: 7px;
|
|
898
|
+
font-size: 12px;
|
|
899
|
+
font-weight: 700;
|
|
900
|
+
}
|
|
901
|
+
.fe-datetime-picker__range-tabs button.is-active {
|
|
902
|
+
background: #fff;
|
|
903
|
+
color: #1e60cc;
|
|
904
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
905
|
+
}
|
|
906
|
+
.fe-datetime-picker__time {
|
|
907
|
+
display: flex;
|
|
908
|
+
align-items: center;
|
|
909
|
+
justify-content: space-between;
|
|
910
|
+
margin-top: 12px;
|
|
911
|
+
padding-top: 12px;
|
|
912
|
+
border-top: 1px solid #e8eaee;
|
|
913
|
+
font-size: 13px;
|
|
914
|
+
font-weight: 600;
|
|
915
|
+
}
|
|
916
|
+
.fe-datetime-picker__time input {
|
|
917
|
+
border: 1px solid #d4d8e0;
|
|
918
|
+
border-radius: 8px;
|
|
919
|
+
padding: 5px;
|
|
920
|
+
font: inherit;
|
|
921
|
+
}
|
|
922
|
+
@keyframes fe-selection-in {
|
|
923
|
+
from {
|
|
924
|
+
opacity: 0;
|
|
925
|
+
transform: translateY(-4px);
|
|
926
|
+
}
|
|
927
|
+
to {
|
|
928
|
+
opacity: 1;
|
|
929
|
+
transform: translateY(0);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/* packages/tooltip/src/styles.css */
|
|
934
|
+
.fe-tooltip {
|
|
935
|
+
position: relative;
|
|
936
|
+
display: inline-flex;
|
|
937
|
+
}
|
|
938
|
+
.fe-tooltip__content {
|
|
939
|
+
position: absolute;
|
|
940
|
+
z-index: 50;
|
|
941
|
+
min-width: max-content;
|
|
942
|
+
max-width: 260px;
|
|
943
|
+
padding: 7px 9px;
|
|
944
|
+
border-radius: 7px;
|
|
945
|
+
background: #20242c;
|
|
946
|
+
color: #fff;
|
|
947
|
+
font:
|
|
948
|
+
500 12px/1.35 Inter,
|
|
949
|
+
ui-sans-serif,
|
|
950
|
+
system-ui,
|
|
951
|
+
sans-serif;
|
|
952
|
+
box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
|
|
953
|
+
pointer-events: none;
|
|
954
|
+
}
|
|
955
|
+
.fe-tooltip--top .fe-tooltip__content {
|
|
956
|
+
bottom: calc(100% + 8px);
|
|
957
|
+
left: 50%;
|
|
958
|
+
transform: translateX(-50%);
|
|
959
|
+
}
|
|
960
|
+
.fe-tooltip--bottom .fe-tooltip__content {
|
|
961
|
+
top: calc(100% + 8px);
|
|
962
|
+
left: 50%;
|
|
963
|
+
transform: translateX(-50%);
|
|
964
|
+
}
|
|
965
|
+
.fe-tooltip--left .fe-tooltip__content {
|
|
966
|
+
right: calc(100% + 8px);
|
|
967
|
+
top: 50%;
|
|
968
|
+
transform: translateY(-50%);
|
|
969
|
+
}
|
|
970
|
+
.fe-tooltip--right .fe-tooltip__content {
|
|
971
|
+
left: calc(100% + 8px);
|
|
972
|
+
top: 50%;
|
|
973
|
+
transform: translateY(-50%);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/* packages/expandable-section/src/styles.css */
|
|
977
|
+
.fe-expandable-section {
|
|
978
|
+
overflow: hidden;
|
|
979
|
+
border: 1px solid #d4d8e0;
|
|
980
|
+
border-radius: 14px;
|
|
981
|
+
background: #fff;
|
|
982
|
+
color: #20242c;
|
|
983
|
+
}
|
|
984
|
+
.fe-expandable-section__trigger {
|
|
985
|
+
display: flex;
|
|
986
|
+
align-items: center;
|
|
987
|
+
justify-content: space-between;
|
|
988
|
+
width: 100%;
|
|
989
|
+
min-height: 48px;
|
|
990
|
+
padding: 12px 15px;
|
|
991
|
+
border: 0;
|
|
992
|
+
background: transparent;
|
|
993
|
+
color: inherit;
|
|
994
|
+
font:
|
|
995
|
+
600 14px/1.4 Inter,
|
|
996
|
+
ui-sans-serif,
|
|
997
|
+
system-ui,
|
|
998
|
+
sans-serif;
|
|
999
|
+
text-align: left;
|
|
1000
|
+
cursor: pointer;
|
|
1001
|
+
}
|
|
1002
|
+
.fe-expandable-section__trigger:hover {
|
|
1003
|
+
background: #f7f9fc;
|
|
1004
|
+
}
|
|
1005
|
+
.fe-expandable-section__trigger:focus-visible {
|
|
1006
|
+
outline: 3px solid rgba(40, 120, 240, 0.25);
|
|
1007
|
+
outline-offset: -3px;
|
|
1008
|
+
}
|
|
1009
|
+
.fe-expandable-section__chevron {
|
|
1010
|
+
position: relative;
|
|
1011
|
+
display: block;
|
|
1012
|
+
width: 16px;
|
|
1013
|
+
height: 16px;
|
|
1014
|
+
flex: 0 0 16px;
|
|
1015
|
+
}
|
|
1016
|
+
.fe-expandable-section__chevron::after {
|
|
1017
|
+
position: absolute;
|
|
1018
|
+
top: 2px;
|
|
1019
|
+
left: 3px;
|
|
1020
|
+
width: 10px;
|
|
1021
|
+
height: 10px;
|
|
1022
|
+
border-right: 2px solid currentColor;
|
|
1023
|
+
border-bottom: 2px solid currentColor;
|
|
1024
|
+
content: "";
|
|
1025
|
+
transform: rotate(45deg);
|
|
1026
|
+
transform-origin: center;
|
|
1027
|
+
transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
1028
|
+
}
|
|
1029
|
+
.fe-expandable-section--expanded .fe-expandable-section__chevron::after {
|
|
1030
|
+
transform: rotate(225deg);
|
|
1031
|
+
}
|
|
1032
|
+
.fe-expandable-section__content {
|
|
1033
|
+
display: grid;
|
|
1034
|
+
grid-template-rows: 0fr;
|
|
1035
|
+
visibility: hidden;
|
|
1036
|
+
border-top: 1px solid transparent;
|
|
1037
|
+
line-height: 1.55;
|
|
1038
|
+
transition:
|
|
1039
|
+
grid-template-rows 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
|
|
1040
|
+
border-color 0.2s ease,
|
|
1041
|
+
visibility 0s linear 0.22s;
|
|
1042
|
+
}
|
|
1043
|
+
.fe-expandable-section__content-inner {
|
|
1044
|
+
min-height: 0;
|
|
1045
|
+
overflow: hidden;
|
|
1046
|
+
padding: 0 15px;
|
|
1047
|
+
opacity: 0;
|
|
1048
|
+
transform: translateY(-5px);
|
|
1049
|
+
transition:
|
|
1050
|
+
padding 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
|
|
1051
|
+
opacity 0.16s ease,
|
|
1052
|
+
transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
1053
|
+
}
|
|
1054
|
+
.fe-expandable-section--expanded .fe-expandable-section__content {
|
|
1055
|
+
grid-template-rows: 1fr;
|
|
1056
|
+
visibility: visible;
|
|
1057
|
+
border-top-color: #e8eaee;
|
|
1058
|
+
transition-delay: 0s;
|
|
1059
|
+
}
|
|
1060
|
+
.fe-expandable-section--expanded .fe-expandable-section__content-inner {
|
|
1061
|
+
padding: 0 15px 16px;
|
|
1062
|
+
opacity: 1;
|
|
1063
|
+
transform: translateY(0);
|
|
1064
|
+
}
|
|
1065
|
+
.fe-expandable-section--disabled {
|
|
1066
|
+
opacity: 0.55;
|
|
1067
|
+
}
|
|
1068
|
+
.fe-expandable-section--disabled .fe-expandable-section__trigger {
|
|
1069
|
+
cursor: not-allowed;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
299
1072
|
/* src/styles.css */
|