analytica-frontend-lib 1.0.16 → 1.0.18
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/index.css +211 -0
- package/dist/index.d.mts +108 -2
- package/dist/index.d.ts +108 -2
- package/dist/index.js +337 -47
- package/dist/index.mjs +328 -39
- package/package.json +5 -2
package/dist/index.css
CHANGED
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
--color-primary-950: #080808;
|
|
69
69
|
--color-text: #fefeff;
|
|
70
70
|
--color-text-400: #a3a3a3;
|
|
71
|
+
--color-text-500: #8c8c8c;
|
|
71
72
|
--color-text-600: #737373;
|
|
72
73
|
--color-text-700: #525252;
|
|
73
74
|
--color-text-800: #404040;
|
|
@@ -77,20 +78,32 @@
|
|
|
77
78
|
--color-background-50: #f6f6f6;
|
|
78
79
|
--color-background-100: #f2f1f1;
|
|
79
80
|
--color-background-200: #dcdbdb;
|
|
81
|
+
--color-background-500: #8e8e8e;
|
|
80
82
|
--color-background-muted: #f7f8f7;
|
|
81
83
|
--color-border-50: #f3f3f3;
|
|
82
84
|
--color-border-100: #e6e6e6;
|
|
83
85
|
--color-border-200: #dddcdb;
|
|
86
|
+
--color-border-400: #a5a3a3;
|
|
87
|
+
--color-border-500: #8c8d8d;
|
|
88
|
+
--color-success: #e4fff4;
|
|
89
|
+
--color-success-200: #84d3a2;
|
|
84
90
|
--color-success-300: #66b584;
|
|
85
91
|
--color-success-400: #489766;
|
|
86
92
|
--color-success-500: #348352;
|
|
87
93
|
--color-success-600: #2a7948;
|
|
88
94
|
--color-success-700: #206f3e;
|
|
95
|
+
--color-success-800: #166534;
|
|
89
96
|
--color-error-300: #f87171;
|
|
90
97
|
--color-error-400: #ef4444;
|
|
91
98
|
--color-error-500: #e63535;
|
|
92
99
|
--color-error-600: #dc2626;
|
|
93
100
|
--color-error-700: #b91c1c;
|
|
101
|
+
--color-warning: #fff9f5;
|
|
102
|
+
--color-warning-200: #fecdaa;
|
|
103
|
+
--color-warning-800: #824417;
|
|
104
|
+
--color-info: #ecf8fe;
|
|
105
|
+
--color-info-200: #7ccff8;
|
|
106
|
+
--color-info-800: #075a83;
|
|
94
107
|
--color-indicator-primary: #373737;
|
|
95
108
|
--color-indicator-info: #5399ec;
|
|
96
109
|
--color-indicator-error: #b91c1c;
|
|
@@ -321,12 +334,21 @@
|
|
|
321
334
|
.relative {
|
|
322
335
|
position: relative;
|
|
323
336
|
}
|
|
337
|
+
.top-4 {
|
|
338
|
+
top: calc(var(--spacing) * 4);
|
|
339
|
+
}
|
|
324
340
|
.top-full {
|
|
325
341
|
top: 100%;
|
|
326
342
|
}
|
|
327
343
|
.right-0 {
|
|
328
344
|
right: calc(var(--spacing) * 0);
|
|
329
345
|
}
|
|
346
|
+
.right-4 {
|
|
347
|
+
right: calc(var(--spacing) * 4);
|
|
348
|
+
}
|
|
349
|
+
.bottom-4 {
|
|
350
|
+
bottom: calc(var(--spacing) * 4);
|
|
351
|
+
}
|
|
330
352
|
.bottom-full {
|
|
331
353
|
bottom: 100%;
|
|
332
354
|
}
|
|
@@ -336,6 +358,9 @@
|
|
|
336
358
|
.left-1\/2 {
|
|
337
359
|
left: calc(1/2 * 100%);
|
|
338
360
|
}
|
|
361
|
+
.left-4 {
|
|
362
|
+
left: calc(var(--spacing) * 4);
|
|
363
|
+
}
|
|
339
364
|
.z-50 {
|
|
340
365
|
z-index: 50;
|
|
341
366
|
}
|
|
@@ -366,6 +391,12 @@
|
|
|
366
391
|
.my-4 {
|
|
367
392
|
margin-block: calc(var(--spacing) * 4);
|
|
368
393
|
}
|
|
394
|
+
.mt-1 {
|
|
395
|
+
margin-top: calc(var(--spacing) * 1);
|
|
396
|
+
}
|
|
397
|
+
.mt-1\.5 {
|
|
398
|
+
margin-top: calc(var(--spacing) * 1.5);
|
|
399
|
+
}
|
|
369
400
|
.mt-2 {
|
|
370
401
|
margin-top: calc(var(--spacing) * 2);
|
|
371
402
|
}
|
|
@@ -384,18 +415,30 @@
|
|
|
384
415
|
.mb-4 {
|
|
385
416
|
margin-bottom: calc(var(--spacing) * 4);
|
|
386
417
|
}
|
|
418
|
+
.mb-6 {
|
|
419
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
420
|
+
}
|
|
421
|
+
.mb-8 {
|
|
422
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
423
|
+
}
|
|
387
424
|
.ml-2 {
|
|
388
425
|
margin-left: calc(var(--spacing) * 2);
|
|
389
426
|
}
|
|
390
427
|
.flex {
|
|
391
428
|
display: flex;
|
|
392
429
|
}
|
|
430
|
+
.grid {
|
|
431
|
+
display: grid;
|
|
432
|
+
}
|
|
393
433
|
.inline-flex {
|
|
394
434
|
display: inline-flex;
|
|
395
435
|
}
|
|
396
436
|
.table {
|
|
397
437
|
display: table;
|
|
398
438
|
}
|
|
439
|
+
.h-4 {
|
|
440
|
+
height: calc(var(--spacing) * 4);
|
|
441
|
+
}
|
|
399
442
|
.h-5 {
|
|
400
443
|
height: calc(var(--spacing) * 5);
|
|
401
444
|
}
|
|
@@ -408,9 +451,18 @@
|
|
|
408
451
|
.h-10 {
|
|
409
452
|
height: calc(var(--spacing) * 10);
|
|
410
453
|
}
|
|
454
|
+
.h-\[21px\] {
|
|
455
|
+
height: 21px;
|
|
456
|
+
}
|
|
457
|
+
.h-\[27px\] {
|
|
458
|
+
height: 27px;
|
|
459
|
+
}
|
|
411
460
|
.h-px {
|
|
412
461
|
height: 1px;
|
|
413
462
|
}
|
|
463
|
+
.w-4 {
|
|
464
|
+
width: calc(var(--spacing) * 4);
|
|
465
|
+
}
|
|
414
466
|
.w-5 {
|
|
415
467
|
width: calc(var(--spacing) * 5);
|
|
416
468
|
}
|
|
@@ -426,6 +478,9 @@
|
|
|
426
478
|
.w-full {
|
|
427
479
|
width: 100%;
|
|
428
480
|
}
|
|
481
|
+
.max-w-\[390px\] {
|
|
482
|
+
max-width: 390px;
|
|
483
|
+
}
|
|
429
484
|
.min-w-\[210px\] {
|
|
430
485
|
min-width: 210px;
|
|
431
486
|
}
|
|
@@ -445,6 +500,9 @@
|
|
|
445
500
|
.cursor-pointer {
|
|
446
501
|
cursor: pointer;
|
|
447
502
|
}
|
|
503
|
+
.grid-cols-2 {
|
|
504
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
505
|
+
}
|
|
448
506
|
.flex-col {
|
|
449
507
|
flex-direction: column;
|
|
450
508
|
}
|
|
@@ -457,6 +515,15 @@
|
|
|
457
515
|
.items-center {
|
|
458
516
|
align-items: center;
|
|
459
517
|
}
|
|
518
|
+
.items-end {
|
|
519
|
+
align-items: flex-end;
|
|
520
|
+
}
|
|
521
|
+
.items-start {
|
|
522
|
+
align-items: flex-start;
|
|
523
|
+
}
|
|
524
|
+
.justify-between {
|
|
525
|
+
justify-content: space-between;
|
|
526
|
+
}
|
|
460
527
|
.justify-center {
|
|
461
528
|
justify-content: center;
|
|
462
529
|
}
|
|
@@ -466,6 +533,9 @@
|
|
|
466
533
|
.gap-0\.5 {
|
|
467
534
|
gap: calc(var(--spacing) * 0.5);
|
|
468
535
|
}
|
|
536
|
+
.gap-1\.5 {
|
|
537
|
+
gap: calc(var(--spacing) * 1.5);
|
|
538
|
+
}
|
|
469
539
|
.gap-2 {
|
|
470
540
|
gap: calc(var(--spacing) * 2);
|
|
471
541
|
}
|
|
@@ -484,6 +554,9 @@
|
|
|
484
554
|
.overflow-hidden {
|
|
485
555
|
overflow: hidden;
|
|
486
556
|
}
|
|
557
|
+
.rounded {
|
|
558
|
+
border-radius: 0.25rem;
|
|
559
|
+
}
|
|
487
560
|
.rounded-full {
|
|
488
561
|
border-radius: calc(infinity * 1px);
|
|
489
562
|
}
|
|
@@ -503,6 +576,14 @@
|
|
|
503
576
|
border-style: var(--tw-border-style);
|
|
504
577
|
border-width: 1px;
|
|
505
578
|
}
|
|
579
|
+
.border-2 {
|
|
580
|
+
border-style: var(--tw-border-style);
|
|
581
|
+
border-width: 2px;
|
|
582
|
+
}
|
|
583
|
+
.border-\[3px\] {
|
|
584
|
+
border-style: var(--tw-border-style);
|
|
585
|
+
border-width: 3px;
|
|
586
|
+
}
|
|
506
587
|
.border-t {
|
|
507
588
|
border-top-style: var(--tw-border-style);
|
|
508
589
|
border-top-width: 1px;
|
|
@@ -515,6 +596,10 @@
|
|
|
515
596
|
border-bottom-style: var(--tw-border-style);
|
|
516
597
|
border-bottom-width: 2px;
|
|
517
598
|
}
|
|
599
|
+
.border-none {
|
|
600
|
+
--tw-border-style: none;
|
|
601
|
+
border-style: none;
|
|
602
|
+
}
|
|
518
603
|
.border-background-200 {
|
|
519
604
|
border-color: var(--color-background-200);
|
|
520
605
|
}
|
|
@@ -527,27 +612,54 @@
|
|
|
527
612
|
.border-border-200 {
|
|
528
613
|
border-color: var(--color-border-200);
|
|
529
614
|
}
|
|
615
|
+
.border-border-400 {
|
|
616
|
+
border-color: var(--color-border-400);
|
|
617
|
+
}
|
|
618
|
+
.border-border-500 {
|
|
619
|
+
border-color: var(--color-border-500);
|
|
620
|
+
}
|
|
530
621
|
.border-error-300 {
|
|
531
622
|
border-color: var(--color-error-300);
|
|
532
623
|
}
|
|
533
624
|
.border-error-500 {
|
|
534
625
|
border-color: var(--color-error-500);
|
|
535
626
|
}
|
|
627
|
+
.border-error-700 {
|
|
628
|
+
border-color: var(--color-error-700);
|
|
629
|
+
}
|
|
536
630
|
.border-indicator-error {
|
|
537
631
|
border-color: var(--color-indicator-error);
|
|
538
632
|
}
|
|
633
|
+
.border-indicator-info {
|
|
634
|
+
border-color: var(--color-indicator-info);
|
|
635
|
+
}
|
|
539
636
|
.border-indicator-primary {
|
|
540
637
|
border-color: var(--color-indicator-primary);
|
|
541
638
|
}
|
|
639
|
+
.border-info-200 {
|
|
640
|
+
border-color: var(--color-info-200);
|
|
641
|
+
}
|
|
642
|
+
.border-primary-600 {
|
|
643
|
+
border-color: var(--color-primary-600);
|
|
644
|
+
}
|
|
645
|
+
.border-primary-800 {
|
|
646
|
+
border-color: var(--color-primary-800);
|
|
647
|
+
}
|
|
542
648
|
.border-primary-950 {
|
|
543
649
|
border-color: var(--color-primary-950);
|
|
544
650
|
}
|
|
651
|
+
.border-success-200 {
|
|
652
|
+
border-color: var(--color-success-200);
|
|
653
|
+
}
|
|
545
654
|
.border-success-300 {
|
|
546
655
|
border-color: var(--color-success-300);
|
|
547
656
|
}
|
|
548
657
|
.border-success-500 {
|
|
549
658
|
border-color: var(--color-success-500);
|
|
550
659
|
}
|
|
660
|
+
.border-warning-200 {
|
|
661
|
+
border-color: var(--color-warning-200);
|
|
662
|
+
}
|
|
551
663
|
.\!bg-primary-50 {
|
|
552
664
|
background-color: var(--color-primary-50) !important;
|
|
553
665
|
}
|
|
@@ -566,18 +678,33 @@
|
|
|
566
678
|
.bg-error-500 {
|
|
567
679
|
background-color: var(--color-error-500);
|
|
568
680
|
}
|
|
681
|
+
.bg-info {
|
|
682
|
+
background-color: var(--color-info);
|
|
683
|
+
}
|
|
569
684
|
.bg-primary-50 {
|
|
570
685
|
background-color: var(--color-primary-50);
|
|
571
686
|
}
|
|
687
|
+
.bg-primary-600 {
|
|
688
|
+
background-color: var(--color-primary-600);
|
|
689
|
+
}
|
|
690
|
+
.bg-primary-800 {
|
|
691
|
+
background-color: var(--color-primary-800);
|
|
692
|
+
}
|
|
572
693
|
.bg-primary-950 {
|
|
573
694
|
background-color: var(--color-primary-950);
|
|
574
695
|
}
|
|
696
|
+
.bg-success {
|
|
697
|
+
background-color: var(--color-success);
|
|
698
|
+
}
|
|
575
699
|
.bg-success-500 {
|
|
576
700
|
background-color: var(--color-success-500);
|
|
577
701
|
}
|
|
578
702
|
.bg-transparent {
|
|
579
703
|
background-color: transparent;
|
|
580
704
|
}
|
|
705
|
+
.bg-warning {
|
|
706
|
+
background-color: var(--color-warning);
|
|
707
|
+
}
|
|
581
708
|
.p-1 {
|
|
582
709
|
padding: calc(var(--spacing) * 1);
|
|
583
710
|
}
|
|
@@ -590,6 +717,9 @@
|
|
|
590
717
|
.p-4 {
|
|
591
718
|
padding: calc(var(--spacing) * 4);
|
|
592
719
|
}
|
|
720
|
+
.p-6 {
|
|
721
|
+
padding: calc(var(--spacing) * 6);
|
|
722
|
+
}
|
|
593
723
|
.p-8 {
|
|
594
724
|
padding: calc(var(--spacing) * 8);
|
|
595
725
|
}
|
|
@@ -686,6 +816,10 @@
|
|
|
686
816
|
font-size: var(--text-xs);
|
|
687
817
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
688
818
|
}
|
|
819
|
+
.leading-\[150\%\] {
|
|
820
|
+
--tw-leading: 150%;
|
|
821
|
+
line-height: 150%;
|
|
822
|
+
}
|
|
689
823
|
.font-black {
|
|
690
824
|
--tw-font-weight: var(--font-weight-black);
|
|
691
825
|
font-weight: var(--font-weight-black);
|
|
@@ -724,21 +858,36 @@
|
|
|
724
858
|
.\!text-primary-950 {
|
|
725
859
|
color: var(--color-primary-950) !important;
|
|
726
860
|
}
|
|
861
|
+
.text-background-500 {
|
|
862
|
+
color: var(--color-background-500);
|
|
863
|
+
}
|
|
727
864
|
.text-error-500 {
|
|
728
865
|
color: var(--color-error-500);
|
|
729
866
|
}
|
|
867
|
+
.text-error-600 {
|
|
868
|
+
color: var(--color-error-600);
|
|
869
|
+
}
|
|
870
|
+
.text-info-800 {
|
|
871
|
+
color: var(--color-info-800);
|
|
872
|
+
}
|
|
730
873
|
.text-primary-950 {
|
|
731
874
|
color: var(--color-primary-950);
|
|
732
875
|
}
|
|
733
876
|
.text-success-500 {
|
|
734
877
|
color: var(--color-success-500);
|
|
735
878
|
}
|
|
879
|
+
.text-success-800 {
|
|
880
|
+
color: var(--color-success-800);
|
|
881
|
+
}
|
|
736
882
|
.text-text {
|
|
737
883
|
color: var(--color-text);
|
|
738
884
|
}
|
|
739
885
|
.text-text-400 {
|
|
740
886
|
color: var(--color-text-400);
|
|
741
887
|
}
|
|
888
|
+
.text-text-500 {
|
|
889
|
+
color: var(--color-text-500);
|
|
890
|
+
}
|
|
742
891
|
.text-text-600 {
|
|
743
892
|
color: var(--color-text-600);
|
|
744
893
|
}
|
|
@@ -754,15 +903,33 @@
|
|
|
754
903
|
.text-text-950 {
|
|
755
904
|
color: var(--color-text-950);
|
|
756
905
|
}
|
|
906
|
+
.text-warning-800 {
|
|
907
|
+
color: var(--color-warning-800);
|
|
908
|
+
}
|
|
757
909
|
.capitalize {
|
|
758
910
|
text-transform: capitalize;
|
|
759
911
|
}
|
|
760
912
|
.italic {
|
|
761
913
|
font-style: italic;
|
|
762
914
|
}
|
|
915
|
+
.opacity-0 {
|
|
916
|
+
opacity: 0%;
|
|
917
|
+
}
|
|
918
|
+
.opacity-40 {
|
|
919
|
+
opacity: 40%;
|
|
920
|
+
}
|
|
763
921
|
.opacity-50 {
|
|
764
922
|
opacity: 50%;
|
|
765
923
|
}
|
|
924
|
+
.shadow-lg {
|
|
925
|
+
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
926
|
+
box-shadow:
|
|
927
|
+
var(--tw-inset-shadow),
|
|
928
|
+
var(--tw-inset-ring-shadow),
|
|
929
|
+
var(--tw-ring-offset-shadow),
|
|
930
|
+
var(--tw-ring-shadow),
|
|
931
|
+
var(--tw-shadow);
|
|
932
|
+
}
|
|
766
933
|
.shadow-md {
|
|
767
934
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
768
935
|
box-shadow:
|
|
@@ -799,6 +966,12 @@
|
|
|
799
966
|
var(--tw-ring-shadow),
|
|
800
967
|
var(--tw-shadow);
|
|
801
968
|
}
|
|
969
|
+
.ring-indicator-info\/20 {
|
|
970
|
+
--tw-ring-color: color-mix(in srgb, #5399ec 20%, transparent);
|
|
971
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
972
|
+
--tw-ring-color: color-mix(in oklab, var(--color-indicator-info) 20%, transparent);
|
|
973
|
+
}
|
|
974
|
+
}
|
|
802
975
|
.ring-primary-950 {
|
|
803
976
|
--tw-ring-color: var(--color-primary-950);
|
|
804
977
|
}
|
|
@@ -810,6 +983,11 @@
|
|
|
810
983
|
outline-style: var(--tw-outline-style);
|
|
811
984
|
outline-width: 1px;
|
|
812
985
|
}
|
|
986
|
+
.transition-all {
|
|
987
|
+
transition-property: all;
|
|
988
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
989
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
990
|
+
}
|
|
813
991
|
.transition-colors {
|
|
814
992
|
transition-property:
|
|
815
993
|
color,
|
|
@@ -825,6 +1003,15 @@
|
|
|
825
1003
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
826
1004
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
827
1005
|
}
|
|
1006
|
+
.transition-opacity {
|
|
1007
|
+
transition-property: opacity;
|
|
1008
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1009
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1010
|
+
}
|
|
1011
|
+
.duration-200 {
|
|
1012
|
+
--tw-duration: 200ms;
|
|
1013
|
+
transition-duration: 200ms;
|
|
1014
|
+
}
|
|
828
1015
|
.outline-none {
|
|
829
1016
|
--tw-outline-style: none;
|
|
830
1017
|
outline-style: none;
|
|
@@ -834,6 +1021,20 @@
|
|
|
834
1021
|
-moz-user-select: none;
|
|
835
1022
|
user-select: none;
|
|
836
1023
|
}
|
|
1024
|
+
.group-hover\:opacity-100 {
|
|
1025
|
+
&:is(:where(.group):hover *) {
|
|
1026
|
+
@media (hover: hover) {
|
|
1027
|
+
opacity: 100%;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
.hover\:border-border-500 {
|
|
1032
|
+
&:hover {
|
|
1033
|
+
@media (hover: hover) {
|
|
1034
|
+
border-color: var(--color-border-500);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
837
1038
|
.hover\:border-error-400 {
|
|
838
1039
|
&:hover {
|
|
839
1040
|
@media (hover: hover) {
|
|
@@ -973,6 +1174,12 @@
|
|
|
973
1174
|
}
|
|
974
1175
|
}
|
|
975
1176
|
}
|
|
1177
|
+
.focus\:outline-none {
|
|
1178
|
+
&:focus {
|
|
1179
|
+
--tw-outline-style: none;
|
|
1180
|
+
outline-style: none;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
976
1183
|
.focus-visible\:border-0 {
|
|
977
1184
|
&:focus-visible {
|
|
978
1185
|
border-style: var(--tw-border-style);
|
|
@@ -1559,6 +1766,7 @@
|
|
|
1559
1766
|
@property --tw-skew-x { syntax: "*"; inherits: false; }
|
|
1560
1767
|
@property --tw-skew-y { syntax: "*"; inherits: false; }
|
|
1561
1768
|
@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
1769
|
+
@property --tw-leading { syntax: "*"; inherits: false; }
|
|
1562
1770
|
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
1563
1771
|
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
1564
1772
|
@property --tw-shadow-color { syntax: "*"; inherits: false; }
|
|
@@ -1575,6 +1783,7 @@
|
|
|
1575
1783
|
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
|
|
1576
1784
|
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
1577
1785
|
@property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
1786
|
+
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
1578
1787
|
@layer properties {
|
|
1579
1788
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
1580
1789
|
*,
|
|
@@ -1590,6 +1799,7 @@
|
|
|
1590
1799
|
--tw-skew-x: initial;
|
|
1591
1800
|
--tw-skew-y: initial;
|
|
1592
1801
|
--tw-border-style: solid;
|
|
1802
|
+
--tw-leading: initial;
|
|
1593
1803
|
--tw-font-weight: initial;
|
|
1594
1804
|
--tw-shadow: 0 0 #0000;
|
|
1595
1805
|
--tw-shadow-color: initial;
|
|
@@ -1606,6 +1816,7 @@
|
|
|
1606
1816
|
--tw-ring-offset-color: #fff;
|
|
1607
1817
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1608
1818
|
--tw-outline-style: solid;
|
|
1819
|
+
--tw-duration: initial;
|
|
1609
1820
|
}
|
|
1610
1821
|
}
|
|
1611
1822
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, ButtonHTMLAttributes, ElementType, ComponentPropsWithoutRef, HTMLAttributes, TdHTMLAttributes } from 'react';
|
|
3
|
+
import { ReactNode, ButtonHTMLAttributes, ElementType, ComponentPropsWithoutRef, HTMLAttributes, InputHTMLAttributes, TdHTMLAttributes } from 'react';
|
|
4
|
+
import * as zustand from 'zustand';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Button component props interface
|
|
@@ -184,6 +185,111 @@ type TextProps<T extends ElementType = 'p'> = BaseTextProps & {
|
|
|
184
185
|
*/
|
|
185
186
|
declare const Text: <T extends ElementType = "p">({ children, size, weight, color, as, className, ...props }: TextProps<T>) => react_jsx_runtime.JSX.Element;
|
|
186
187
|
|
|
188
|
+
type ToastPosition$1 = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
|
|
189
|
+
type ToastProps = {
|
|
190
|
+
title: string;
|
|
191
|
+
description?: string;
|
|
192
|
+
onClose: () => void;
|
|
193
|
+
/** Visual variant of the badge */
|
|
194
|
+
variant?: 'solid' | 'outlined';
|
|
195
|
+
/** Action type of the badge */
|
|
196
|
+
action?: 'warning' | 'success' | 'info';
|
|
197
|
+
position?: ToastPosition$1;
|
|
198
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
199
|
+
declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
200
|
+
|
|
201
|
+
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
|
|
202
|
+
type ToastData = {
|
|
203
|
+
id: string;
|
|
204
|
+
title: string;
|
|
205
|
+
description?: string;
|
|
206
|
+
variant?: 'solid' | 'outlined';
|
|
207
|
+
action?: 'warning' | 'success' | 'info';
|
|
208
|
+
position?: ToastPosition;
|
|
209
|
+
};
|
|
210
|
+
type ToastStore = {
|
|
211
|
+
toasts: ToastData[];
|
|
212
|
+
addToast: (toast: Omit<ToastData, 'id'>) => void;
|
|
213
|
+
removeToast: (id: string) => void;
|
|
214
|
+
};
|
|
215
|
+
declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
|
|
216
|
+
|
|
217
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare const useToast: () => {
|
|
219
|
+
addToast: (toast: Omit<ToastData, "id">) => void;
|
|
220
|
+
removeToast: (id: string) => void;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* CheckBox size variants
|
|
225
|
+
*/
|
|
226
|
+
type CheckBoxSize = 'small' | 'medium' | 'large';
|
|
227
|
+
/**
|
|
228
|
+
* CheckBox visual state
|
|
229
|
+
*/
|
|
230
|
+
type CheckBoxState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
|
|
231
|
+
/**
|
|
232
|
+
* CheckBox component props interface
|
|
233
|
+
*/
|
|
234
|
+
type CheckBoxProps = {
|
|
235
|
+
/** Label text to display next to the checkbox */
|
|
236
|
+
label?: ReactNode;
|
|
237
|
+
/** Size variant of the checkbox */
|
|
238
|
+
size?: CheckBoxSize;
|
|
239
|
+
/** Visual state of the checkbox */
|
|
240
|
+
state?: CheckBoxState;
|
|
241
|
+
/** Indeterminate state for partial selections */
|
|
242
|
+
indeterminate?: boolean;
|
|
243
|
+
/** Error message to display */
|
|
244
|
+
errorMessage?: string;
|
|
245
|
+
/** Helper text to display */
|
|
246
|
+
helperText?: string;
|
|
247
|
+
/** Additional CSS classes */
|
|
248
|
+
className?: string;
|
|
249
|
+
/** Label CSS classes */
|
|
250
|
+
labelClassName?: string;
|
|
251
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>;
|
|
252
|
+
/**
|
|
253
|
+
* CheckBox component for Analytica Ensino platforms
|
|
254
|
+
*
|
|
255
|
+
* A checkbox component with essential states, sizes and themes.
|
|
256
|
+
* Uses the Analytica Ensino Design System colors from styles.css with automatic
|
|
257
|
+
* light/dark mode support. Includes Text component integration for consistent typography.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* ```tsx
|
|
261
|
+
* // Basic checkbox
|
|
262
|
+
* <CheckBox label="Option" />
|
|
263
|
+
*
|
|
264
|
+
* // Small size
|
|
265
|
+
* <CheckBox size="small" label="Small option" />
|
|
266
|
+
*
|
|
267
|
+
* // Invalid state
|
|
268
|
+
* <CheckBox state="invalid" label="Required field" />
|
|
269
|
+
*
|
|
270
|
+
* // Disabled state
|
|
271
|
+
* <CheckBox disabled label="Disabled option" />
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
declare const CheckBox: react.ForwardRefExoticComponent<{
|
|
275
|
+
/** Label text to display next to the checkbox */
|
|
276
|
+
label?: ReactNode;
|
|
277
|
+
/** Size variant of the checkbox */
|
|
278
|
+
size?: CheckBoxSize;
|
|
279
|
+
/** Visual state of the checkbox */
|
|
280
|
+
state?: CheckBoxState;
|
|
281
|
+
/** Indeterminate state for partial selections */
|
|
282
|
+
indeterminate?: boolean;
|
|
283
|
+
/** Error message to display */
|
|
284
|
+
errorMessage?: string;
|
|
285
|
+
/** Helper text to display */
|
|
286
|
+
helperText?: string;
|
|
287
|
+
/** Additional CSS classes */
|
|
288
|
+
className?: string;
|
|
289
|
+
/** Label CSS classes */
|
|
290
|
+
labelClassName?: string;
|
|
291
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
292
|
+
|
|
187
293
|
type TableRowState = 'default' | 'selected' | 'invalid' | 'disabled';
|
|
188
294
|
interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
189
295
|
state?: TableRowState;
|
|
@@ -348,4 +454,4 @@ declare const IconButton: react.ForwardRefExoticComponent<{
|
|
|
348
454
|
className?: string;
|
|
349
455
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
350
456
|
|
|
351
|
-
export { Button, DropdownMenu, DropdownMenuTrigger, IconButton, type IconButtonProps, IconRoundedButton, MenuContent, MenuItem, MenuLabel, MenuSeparator, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text };
|
|
457
|
+
export { Button, CheckBox, type CheckBoxProps, DropdownMenu, DropdownMenuTrigger, IconButton, type IconButtonProps, IconRoundedButton, MenuContent, MenuItem, MenuLabel, MenuSeparator, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, Toast, type ToastData, Toaster, useToast, useToastStore };
|