@octavius2929-personal/design-system 0.23.2 → 0.25.0
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.cjs +1052 -885
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +114 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +615 -2
- package/dist/index.d.ts +615 -2
- package/dist/index.js +911 -745
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -630,6 +630,600 @@ declare const schemas: {
|
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
632
|
};
|
|
633
|
+
readonly docslingo: {
|
|
634
|
+
light: {
|
|
635
|
+
color: {
|
|
636
|
+
bg1: string;
|
|
637
|
+
bg2: string;
|
|
638
|
+
bg3: string;
|
|
639
|
+
bgInset: string;
|
|
640
|
+
fg1: string;
|
|
641
|
+
fg2: string;
|
|
642
|
+
fg3: string;
|
|
643
|
+
fgOnAccent: string;
|
|
644
|
+
border1: string;
|
|
645
|
+
border2: string;
|
|
646
|
+
borderStrong: string;
|
|
647
|
+
accent: string;
|
|
648
|
+
accentHover: string;
|
|
649
|
+
accentSoft: string;
|
|
650
|
+
accentText: string;
|
|
651
|
+
ok: string;
|
|
652
|
+
warn: string;
|
|
653
|
+
danger: string;
|
|
654
|
+
dangerHover: string;
|
|
655
|
+
dangerSoft: string;
|
|
656
|
+
dangerText: string;
|
|
657
|
+
info: string;
|
|
658
|
+
focus: string;
|
|
659
|
+
scrim: string;
|
|
660
|
+
};
|
|
661
|
+
font: {
|
|
662
|
+
readonly display: "'DM Serif Display', 'Times New Roman', serif";
|
|
663
|
+
readonly text: "'Newsreader', Georgia, serif";
|
|
664
|
+
readonly mono: "'IBM Plex Mono', 'SFMono-Regular', monospace";
|
|
665
|
+
readonly black: "'UnifrakturMaguntia', 'Grenze Gotisch', serif";
|
|
666
|
+
};
|
|
667
|
+
text: {
|
|
668
|
+
readonly eyebrow: {
|
|
669
|
+
readonly size: "0.694rem";
|
|
670
|
+
readonly lineHeight: "1.2";
|
|
671
|
+
readonly weight: "500";
|
|
672
|
+
readonly letterSpacing: "0.14em";
|
|
673
|
+
};
|
|
674
|
+
readonly display: {
|
|
675
|
+
readonly size: "clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem)";
|
|
676
|
+
readonly lineHeight: "1.05";
|
|
677
|
+
readonly weight: "600";
|
|
678
|
+
readonly letterSpacing: "-0.01em";
|
|
679
|
+
};
|
|
680
|
+
readonly h1: {
|
|
681
|
+
readonly size: "2.9rem";
|
|
682
|
+
readonly lineHeight: "1.05";
|
|
683
|
+
readonly weight: "600";
|
|
684
|
+
readonly letterSpacing: "-0.01em";
|
|
685
|
+
};
|
|
686
|
+
readonly h2: {
|
|
687
|
+
readonly size: "2.1rem";
|
|
688
|
+
readonly lineHeight: "1.2";
|
|
689
|
+
readonly weight: "600";
|
|
690
|
+
readonly letterSpacing: "0";
|
|
691
|
+
};
|
|
692
|
+
readonly h3: {
|
|
693
|
+
readonly size: "1.563rem";
|
|
694
|
+
readonly lineHeight: "1.2";
|
|
695
|
+
readonly weight: "500";
|
|
696
|
+
readonly letterSpacing: "0";
|
|
697
|
+
};
|
|
698
|
+
readonly h4: {
|
|
699
|
+
readonly size: "1.25rem";
|
|
700
|
+
readonly lineHeight: "1.2";
|
|
701
|
+
readonly weight: "600";
|
|
702
|
+
readonly letterSpacing: "0";
|
|
703
|
+
};
|
|
704
|
+
readonly body: {
|
|
705
|
+
readonly size: "1rem";
|
|
706
|
+
readonly lineHeight: "1.7";
|
|
707
|
+
readonly weight: "400";
|
|
708
|
+
readonly letterSpacing: "0";
|
|
709
|
+
};
|
|
710
|
+
readonly lead: {
|
|
711
|
+
readonly size: "1.25rem";
|
|
712
|
+
readonly lineHeight: "1.7";
|
|
713
|
+
readonly weight: "400";
|
|
714
|
+
readonly letterSpacing: "0";
|
|
715
|
+
};
|
|
716
|
+
readonly small: {
|
|
717
|
+
readonly size: "0.95rem";
|
|
718
|
+
readonly lineHeight: "1.5";
|
|
719
|
+
readonly weight: "400";
|
|
720
|
+
readonly letterSpacing: "0";
|
|
721
|
+
};
|
|
722
|
+
readonly caption: {
|
|
723
|
+
readonly size: "0.833rem";
|
|
724
|
+
readonly lineHeight: "1.5";
|
|
725
|
+
readonly weight: "400";
|
|
726
|
+
readonly letterSpacing: "0.04em";
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
space: {
|
|
730
|
+
readonly s0: "0";
|
|
731
|
+
readonly s1: "0.25rem";
|
|
732
|
+
readonly s2: "0.5rem";
|
|
733
|
+
readonly s3: "0.75rem";
|
|
734
|
+
readonly s4: "1rem";
|
|
735
|
+
readonly s5: "1.5rem";
|
|
736
|
+
readonly s6: "2rem";
|
|
737
|
+
readonly s7: "3rem";
|
|
738
|
+
readonly s8: "4rem";
|
|
739
|
+
readonly s9: "6rem";
|
|
740
|
+
};
|
|
741
|
+
radius: {
|
|
742
|
+
readonly none: "0px";
|
|
743
|
+
readonly sm: "3px";
|
|
744
|
+
readonly md: "5px";
|
|
745
|
+
readonly lg: "8px";
|
|
746
|
+
readonly base: "4px";
|
|
747
|
+
readonly full: "999px";
|
|
748
|
+
};
|
|
749
|
+
border: {
|
|
750
|
+
readonly hair: "1px";
|
|
751
|
+
readonly rule: "1.5px";
|
|
752
|
+
readonly heavy: "2px";
|
|
753
|
+
};
|
|
754
|
+
tracking: {
|
|
755
|
+
readonly tight: "-0.01em";
|
|
756
|
+
readonly normal: "0";
|
|
757
|
+
readonly wide: "0.04em";
|
|
758
|
+
readonly wider: "0.1em";
|
|
759
|
+
readonly widest: "0.14em";
|
|
760
|
+
};
|
|
761
|
+
weight: {
|
|
762
|
+
readonly light: "300";
|
|
763
|
+
readonly regular: "400";
|
|
764
|
+
readonly medium: "500";
|
|
765
|
+
readonly semibold: "600";
|
|
766
|
+
readonly bold: "700";
|
|
767
|
+
};
|
|
768
|
+
dur: {
|
|
769
|
+
readonly fast: "120ms";
|
|
770
|
+
readonly base: "200ms";
|
|
771
|
+
readonly slow: "360ms";
|
|
772
|
+
};
|
|
773
|
+
ease: {
|
|
774
|
+
readonly ink: "cubic-bezier(0.2, 0, 0, 1)";
|
|
775
|
+
};
|
|
776
|
+
shadow: {
|
|
777
|
+
readonly sm: "0 1px 0 rgba(20,17,14,0.06)";
|
|
778
|
+
readonly md: "0 2px 10px -4px rgba(20,17,14,0.22)";
|
|
779
|
+
readonly lg: "0 12px 32px -10px rgba(20,17,14,0.34)";
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
dark: {
|
|
783
|
+
color: {
|
|
784
|
+
bg1: string;
|
|
785
|
+
bg2: string;
|
|
786
|
+
bg3: string;
|
|
787
|
+
bgInset: string;
|
|
788
|
+
fg1: string;
|
|
789
|
+
fg2: string;
|
|
790
|
+
fg3: string;
|
|
791
|
+
fgOnAccent: string;
|
|
792
|
+
border1: string;
|
|
793
|
+
border2: string;
|
|
794
|
+
borderStrong: string;
|
|
795
|
+
accent: string;
|
|
796
|
+
accentHover: string;
|
|
797
|
+
accentSoft: string;
|
|
798
|
+
accentText: string;
|
|
799
|
+
ok: string;
|
|
800
|
+
warn: string;
|
|
801
|
+
danger: string;
|
|
802
|
+
dangerHover: string;
|
|
803
|
+
dangerSoft: string;
|
|
804
|
+
dangerText: string;
|
|
805
|
+
info: string;
|
|
806
|
+
focus: string;
|
|
807
|
+
scrim: string;
|
|
808
|
+
};
|
|
809
|
+
font: {
|
|
810
|
+
readonly display: "'DM Serif Display', 'Times New Roman', serif";
|
|
811
|
+
readonly text: "'Newsreader', Georgia, serif";
|
|
812
|
+
readonly mono: "'IBM Plex Mono', 'SFMono-Regular', monospace";
|
|
813
|
+
readonly black: "'UnifrakturMaguntia', 'Grenze Gotisch', serif";
|
|
814
|
+
};
|
|
815
|
+
text: {
|
|
816
|
+
readonly eyebrow: {
|
|
817
|
+
readonly size: "0.694rem";
|
|
818
|
+
readonly lineHeight: "1.2";
|
|
819
|
+
readonly weight: "500";
|
|
820
|
+
readonly letterSpacing: "0.14em";
|
|
821
|
+
};
|
|
822
|
+
readonly display: {
|
|
823
|
+
readonly size: "clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem)";
|
|
824
|
+
readonly lineHeight: "1.05";
|
|
825
|
+
readonly weight: "600";
|
|
826
|
+
readonly letterSpacing: "-0.01em";
|
|
827
|
+
};
|
|
828
|
+
readonly h1: {
|
|
829
|
+
readonly size: "2.9rem";
|
|
830
|
+
readonly lineHeight: "1.05";
|
|
831
|
+
readonly weight: "600";
|
|
832
|
+
readonly letterSpacing: "-0.01em";
|
|
833
|
+
};
|
|
834
|
+
readonly h2: {
|
|
835
|
+
readonly size: "2.1rem";
|
|
836
|
+
readonly lineHeight: "1.2";
|
|
837
|
+
readonly weight: "600";
|
|
838
|
+
readonly letterSpacing: "0";
|
|
839
|
+
};
|
|
840
|
+
readonly h3: {
|
|
841
|
+
readonly size: "1.563rem";
|
|
842
|
+
readonly lineHeight: "1.2";
|
|
843
|
+
readonly weight: "500";
|
|
844
|
+
readonly letterSpacing: "0";
|
|
845
|
+
};
|
|
846
|
+
readonly h4: {
|
|
847
|
+
readonly size: "1.25rem";
|
|
848
|
+
readonly lineHeight: "1.2";
|
|
849
|
+
readonly weight: "600";
|
|
850
|
+
readonly letterSpacing: "0";
|
|
851
|
+
};
|
|
852
|
+
readonly body: {
|
|
853
|
+
readonly size: "1rem";
|
|
854
|
+
readonly lineHeight: "1.7";
|
|
855
|
+
readonly weight: "400";
|
|
856
|
+
readonly letterSpacing: "0";
|
|
857
|
+
};
|
|
858
|
+
readonly lead: {
|
|
859
|
+
readonly size: "1.25rem";
|
|
860
|
+
readonly lineHeight: "1.7";
|
|
861
|
+
readonly weight: "400";
|
|
862
|
+
readonly letterSpacing: "0";
|
|
863
|
+
};
|
|
864
|
+
readonly small: {
|
|
865
|
+
readonly size: "0.95rem";
|
|
866
|
+
readonly lineHeight: "1.5";
|
|
867
|
+
readonly weight: "400";
|
|
868
|
+
readonly letterSpacing: "0";
|
|
869
|
+
};
|
|
870
|
+
readonly caption: {
|
|
871
|
+
readonly size: "0.833rem";
|
|
872
|
+
readonly lineHeight: "1.5";
|
|
873
|
+
readonly weight: "400";
|
|
874
|
+
readonly letterSpacing: "0.04em";
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
space: {
|
|
878
|
+
readonly s0: "0";
|
|
879
|
+
readonly s1: "0.25rem";
|
|
880
|
+
readonly s2: "0.5rem";
|
|
881
|
+
readonly s3: "0.75rem";
|
|
882
|
+
readonly s4: "1rem";
|
|
883
|
+
readonly s5: "1.5rem";
|
|
884
|
+
readonly s6: "2rem";
|
|
885
|
+
readonly s7: "3rem";
|
|
886
|
+
readonly s8: "4rem";
|
|
887
|
+
readonly s9: "6rem";
|
|
888
|
+
};
|
|
889
|
+
radius: {
|
|
890
|
+
readonly none: "0px";
|
|
891
|
+
readonly sm: "3px";
|
|
892
|
+
readonly md: "5px";
|
|
893
|
+
readonly lg: "8px";
|
|
894
|
+
readonly base: "4px";
|
|
895
|
+
readonly full: "999px";
|
|
896
|
+
};
|
|
897
|
+
border: {
|
|
898
|
+
readonly hair: "1px";
|
|
899
|
+
readonly rule: "1.5px";
|
|
900
|
+
readonly heavy: "2px";
|
|
901
|
+
};
|
|
902
|
+
tracking: {
|
|
903
|
+
readonly tight: "-0.01em";
|
|
904
|
+
readonly normal: "0";
|
|
905
|
+
readonly wide: "0.04em";
|
|
906
|
+
readonly wider: "0.1em";
|
|
907
|
+
readonly widest: "0.14em";
|
|
908
|
+
};
|
|
909
|
+
weight: {
|
|
910
|
+
readonly light: "300";
|
|
911
|
+
readonly regular: "400";
|
|
912
|
+
readonly medium: "500";
|
|
913
|
+
readonly semibold: "600";
|
|
914
|
+
readonly bold: "700";
|
|
915
|
+
};
|
|
916
|
+
dur: {
|
|
917
|
+
readonly fast: "120ms";
|
|
918
|
+
readonly base: "200ms";
|
|
919
|
+
readonly slow: "360ms";
|
|
920
|
+
};
|
|
921
|
+
ease: {
|
|
922
|
+
readonly ink: "cubic-bezier(0.2, 0, 0, 1)";
|
|
923
|
+
};
|
|
924
|
+
shadow: {
|
|
925
|
+
readonly sm: "0 1px 0 rgba(20,17,14,0.06)";
|
|
926
|
+
readonly md: "0 2px 10px -4px rgba(20,17,14,0.22)";
|
|
927
|
+
readonly lg: "0 12px 32px -10px rgba(20,17,14,0.34)";
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
sepia: {
|
|
931
|
+
color: {
|
|
932
|
+
bg1: string;
|
|
933
|
+
bg2: string;
|
|
934
|
+
bg3: string;
|
|
935
|
+
bgInset: string;
|
|
936
|
+
fg1: string;
|
|
937
|
+
fg2: string;
|
|
938
|
+
fg3: string;
|
|
939
|
+
fgOnAccent: string;
|
|
940
|
+
border1: string;
|
|
941
|
+
border2: string;
|
|
942
|
+
borderStrong: string;
|
|
943
|
+
accent: string;
|
|
944
|
+
accentHover: string;
|
|
945
|
+
accentSoft: string;
|
|
946
|
+
accentText: string;
|
|
947
|
+
ok: string;
|
|
948
|
+
warn: string;
|
|
949
|
+
danger: string;
|
|
950
|
+
dangerHover: string;
|
|
951
|
+
dangerSoft: string;
|
|
952
|
+
dangerText: string;
|
|
953
|
+
info: string;
|
|
954
|
+
focus: string;
|
|
955
|
+
scrim: string;
|
|
956
|
+
};
|
|
957
|
+
font: {
|
|
958
|
+
readonly display: "'DM Serif Display', 'Times New Roman', serif";
|
|
959
|
+
readonly text: "'Newsreader', Georgia, serif";
|
|
960
|
+
readonly mono: "'IBM Plex Mono', 'SFMono-Regular', monospace";
|
|
961
|
+
readonly black: "'UnifrakturMaguntia', 'Grenze Gotisch', serif";
|
|
962
|
+
};
|
|
963
|
+
text: {
|
|
964
|
+
readonly eyebrow: {
|
|
965
|
+
readonly size: "0.694rem";
|
|
966
|
+
readonly lineHeight: "1.2";
|
|
967
|
+
readonly weight: "500";
|
|
968
|
+
readonly letterSpacing: "0.14em";
|
|
969
|
+
};
|
|
970
|
+
readonly display: {
|
|
971
|
+
readonly size: "clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem)";
|
|
972
|
+
readonly lineHeight: "1.05";
|
|
973
|
+
readonly weight: "600";
|
|
974
|
+
readonly letterSpacing: "-0.01em";
|
|
975
|
+
};
|
|
976
|
+
readonly h1: {
|
|
977
|
+
readonly size: "2.9rem";
|
|
978
|
+
readonly lineHeight: "1.05";
|
|
979
|
+
readonly weight: "600";
|
|
980
|
+
readonly letterSpacing: "-0.01em";
|
|
981
|
+
};
|
|
982
|
+
readonly h2: {
|
|
983
|
+
readonly size: "2.1rem";
|
|
984
|
+
readonly lineHeight: "1.2";
|
|
985
|
+
readonly weight: "600";
|
|
986
|
+
readonly letterSpacing: "0";
|
|
987
|
+
};
|
|
988
|
+
readonly h3: {
|
|
989
|
+
readonly size: "1.563rem";
|
|
990
|
+
readonly lineHeight: "1.2";
|
|
991
|
+
readonly weight: "500";
|
|
992
|
+
readonly letterSpacing: "0";
|
|
993
|
+
};
|
|
994
|
+
readonly h4: {
|
|
995
|
+
readonly size: "1.25rem";
|
|
996
|
+
readonly lineHeight: "1.2";
|
|
997
|
+
readonly weight: "600";
|
|
998
|
+
readonly letterSpacing: "0";
|
|
999
|
+
};
|
|
1000
|
+
readonly body: {
|
|
1001
|
+
readonly size: "1rem";
|
|
1002
|
+
readonly lineHeight: "1.7";
|
|
1003
|
+
readonly weight: "400";
|
|
1004
|
+
readonly letterSpacing: "0";
|
|
1005
|
+
};
|
|
1006
|
+
readonly lead: {
|
|
1007
|
+
readonly size: "1.25rem";
|
|
1008
|
+
readonly lineHeight: "1.7";
|
|
1009
|
+
readonly weight: "400";
|
|
1010
|
+
readonly letterSpacing: "0";
|
|
1011
|
+
};
|
|
1012
|
+
readonly small: {
|
|
1013
|
+
readonly size: "0.95rem";
|
|
1014
|
+
readonly lineHeight: "1.5";
|
|
1015
|
+
readonly weight: "400";
|
|
1016
|
+
readonly letterSpacing: "0";
|
|
1017
|
+
};
|
|
1018
|
+
readonly caption: {
|
|
1019
|
+
readonly size: "0.833rem";
|
|
1020
|
+
readonly lineHeight: "1.5";
|
|
1021
|
+
readonly weight: "400";
|
|
1022
|
+
readonly letterSpacing: "0.04em";
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
space: {
|
|
1026
|
+
readonly s0: "0";
|
|
1027
|
+
readonly s1: "0.25rem";
|
|
1028
|
+
readonly s2: "0.5rem";
|
|
1029
|
+
readonly s3: "0.75rem";
|
|
1030
|
+
readonly s4: "1rem";
|
|
1031
|
+
readonly s5: "1.5rem";
|
|
1032
|
+
readonly s6: "2rem";
|
|
1033
|
+
readonly s7: "3rem";
|
|
1034
|
+
readonly s8: "4rem";
|
|
1035
|
+
readonly s9: "6rem";
|
|
1036
|
+
};
|
|
1037
|
+
radius: {
|
|
1038
|
+
readonly none: "0px";
|
|
1039
|
+
readonly sm: "3px";
|
|
1040
|
+
readonly md: "5px";
|
|
1041
|
+
readonly lg: "8px";
|
|
1042
|
+
readonly base: "4px";
|
|
1043
|
+
readonly full: "999px";
|
|
1044
|
+
};
|
|
1045
|
+
border: {
|
|
1046
|
+
readonly hair: "1px";
|
|
1047
|
+
readonly rule: "1.5px";
|
|
1048
|
+
readonly heavy: "2px";
|
|
1049
|
+
};
|
|
1050
|
+
tracking: {
|
|
1051
|
+
readonly tight: "-0.01em";
|
|
1052
|
+
readonly normal: "0";
|
|
1053
|
+
readonly wide: "0.04em";
|
|
1054
|
+
readonly wider: "0.1em";
|
|
1055
|
+
readonly widest: "0.14em";
|
|
1056
|
+
};
|
|
1057
|
+
weight: {
|
|
1058
|
+
readonly light: "300";
|
|
1059
|
+
readonly regular: "400";
|
|
1060
|
+
readonly medium: "500";
|
|
1061
|
+
readonly semibold: "600";
|
|
1062
|
+
readonly bold: "700";
|
|
1063
|
+
};
|
|
1064
|
+
dur: {
|
|
1065
|
+
readonly fast: "120ms";
|
|
1066
|
+
readonly base: "200ms";
|
|
1067
|
+
readonly slow: "360ms";
|
|
1068
|
+
};
|
|
1069
|
+
ease: {
|
|
1070
|
+
readonly ink: "cubic-bezier(0.2, 0, 0, 1)";
|
|
1071
|
+
};
|
|
1072
|
+
shadow: {
|
|
1073
|
+
readonly sm: "0 1px 0 rgba(20,17,14,0.06)";
|
|
1074
|
+
readonly md: "0 2px 10px -4px rgba(20,17,14,0.22)";
|
|
1075
|
+
readonly lg: "0 12px 32px -10px rgba(20,17,14,0.34)";
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
contrast: {
|
|
1079
|
+
color: {
|
|
1080
|
+
bg1: string;
|
|
1081
|
+
bg2: string;
|
|
1082
|
+
bg3: string;
|
|
1083
|
+
bgInset: string;
|
|
1084
|
+
fg1: string;
|
|
1085
|
+
fg2: string;
|
|
1086
|
+
fg3: string;
|
|
1087
|
+
fgOnAccent: string;
|
|
1088
|
+
border1: string;
|
|
1089
|
+
border2: string;
|
|
1090
|
+
borderStrong: string;
|
|
1091
|
+
accent: string;
|
|
1092
|
+
accentHover: string;
|
|
1093
|
+
accentSoft: string;
|
|
1094
|
+
accentText: string;
|
|
1095
|
+
ok: string;
|
|
1096
|
+
warn: string;
|
|
1097
|
+
danger: string;
|
|
1098
|
+
dangerHover: string;
|
|
1099
|
+
dangerSoft: string;
|
|
1100
|
+
dangerText: string;
|
|
1101
|
+
info: string;
|
|
1102
|
+
focus: string;
|
|
1103
|
+
scrim: string;
|
|
1104
|
+
};
|
|
1105
|
+
font: {
|
|
1106
|
+
readonly display: "'DM Serif Display', 'Times New Roman', serif";
|
|
1107
|
+
readonly text: "'Newsreader', Georgia, serif";
|
|
1108
|
+
readonly mono: "'IBM Plex Mono', 'SFMono-Regular', monospace";
|
|
1109
|
+
readonly black: "'UnifrakturMaguntia', 'Grenze Gotisch', serif";
|
|
1110
|
+
};
|
|
1111
|
+
text: {
|
|
1112
|
+
readonly eyebrow: {
|
|
1113
|
+
readonly size: "0.694rem";
|
|
1114
|
+
readonly lineHeight: "1.2";
|
|
1115
|
+
readonly weight: "500";
|
|
1116
|
+
readonly letterSpacing: "0.14em";
|
|
1117
|
+
};
|
|
1118
|
+
readonly display: {
|
|
1119
|
+
readonly size: "clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem)";
|
|
1120
|
+
readonly lineHeight: "1.05";
|
|
1121
|
+
readonly weight: "600";
|
|
1122
|
+
readonly letterSpacing: "-0.01em";
|
|
1123
|
+
};
|
|
1124
|
+
readonly h1: {
|
|
1125
|
+
readonly size: "2.9rem";
|
|
1126
|
+
readonly lineHeight: "1.05";
|
|
1127
|
+
readonly weight: "600";
|
|
1128
|
+
readonly letterSpacing: "-0.01em";
|
|
1129
|
+
};
|
|
1130
|
+
readonly h2: {
|
|
1131
|
+
readonly size: "2.1rem";
|
|
1132
|
+
readonly lineHeight: "1.2";
|
|
1133
|
+
readonly weight: "600";
|
|
1134
|
+
readonly letterSpacing: "0";
|
|
1135
|
+
};
|
|
1136
|
+
readonly h3: {
|
|
1137
|
+
readonly size: "1.563rem";
|
|
1138
|
+
readonly lineHeight: "1.2";
|
|
1139
|
+
readonly weight: "500";
|
|
1140
|
+
readonly letterSpacing: "0";
|
|
1141
|
+
};
|
|
1142
|
+
readonly h4: {
|
|
1143
|
+
readonly size: "1.25rem";
|
|
1144
|
+
readonly lineHeight: "1.2";
|
|
1145
|
+
readonly weight: "600";
|
|
1146
|
+
readonly letterSpacing: "0";
|
|
1147
|
+
};
|
|
1148
|
+
readonly body: {
|
|
1149
|
+
readonly size: "1rem";
|
|
1150
|
+
readonly lineHeight: "1.7";
|
|
1151
|
+
readonly weight: "400";
|
|
1152
|
+
readonly letterSpacing: "0";
|
|
1153
|
+
};
|
|
1154
|
+
readonly lead: {
|
|
1155
|
+
readonly size: "1.25rem";
|
|
1156
|
+
readonly lineHeight: "1.7";
|
|
1157
|
+
readonly weight: "400";
|
|
1158
|
+
readonly letterSpacing: "0";
|
|
1159
|
+
};
|
|
1160
|
+
readonly small: {
|
|
1161
|
+
readonly size: "0.95rem";
|
|
1162
|
+
readonly lineHeight: "1.5";
|
|
1163
|
+
readonly weight: "400";
|
|
1164
|
+
readonly letterSpacing: "0";
|
|
1165
|
+
};
|
|
1166
|
+
readonly caption: {
|
|
1167
|
+
readonly size: "0.833rem";
|
|
1168
|
+
readonly lineHeight: "1.5";
|
|
1169
|
+
readonly weight: "400";
|
|
1170
|
+
readonly letterSpacing: "0.04em";
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
space: {
|
|
1174
|
+
readonly s0: "0";
|
|
1175
|
+
readonly s1: "0.25rem";
|
|
1176
|
+
readonly s2: "0.5rem";
|
|
1177
|
+
readonly s3: "0.75rem";
|
|
1178
|
+
readonly s4: "1rem";
|
|
1179
|
+
readonly s5: "1.5rem";
|
|
1180
|
+
readonly s6: "2rem";
|
|
1181
|
+
readonly s7: "3rem";
|
|
1182
|
+
readonly s8: "4rem";
|
|
1183
|
+
readonly s9: "6rem";
|
|
1184
|
+
};
|
|
1185
|
+
radius: {
|
|
1186
|
+
readonly none: "0px";
|
|
1187
|
+
readonly sm: "3px";
|
|
1188
|
+
readonly md: "5px";
|
|
1189
|
+
readonly lg: "8px";
|
|
1190
|
+
readonly base: "4px";
|
|
1191
|
+
readonly full: "999px";
|
|
1192
|
+
};
|
|
1193
|
+
border: {
|
|
1194
|
+
readonly hair: "1px";
|
|
1195
|
+
readonly rule: "1.5px";
|
|
1196
|
+
readonly heavy: "2px";
|
|
1197
|
+
};
|
|
1198
|
+
tracking: {
|
|
1199
|
+
readonly tight: "-0.01em";
|
|
1200
|
+
readonly normal: "0";
|
|
1201
|
+
readonly wide: "0.04em";
|
|
1202
|
+
readonly wider: "0.1em";
|
|
1203
|
+
readonly widest: "0.14em";
|
|
1204
|
+
};
|
|
1205
|
+
weight: {
|
|
1206
|
+
readonly light: "300";
|
|
1207
|
+
readonly regular: "400";
|
|
1208
|
+
readonly medium: "500";
|
|
1209
|
+
readonly semibold: "600";
|
|
1210
|
+
readonly bold: "700";
|
|
1211
|
+
};
|
|
1212
|
+
dur: {
|
|
1213
|
+
readonly fast: "120ms";
|
|
1214
|
+
readonly base: "200ms";
|
|
1215
|
+
readonly slow: "360ms";
|
|
1216
|
+
};
|
|
1217
|
+
ease: {
|
|
1218
|
+
readonly ink: "cubic-bezier(0.2, 0, 0, 1)";
|
|
1219
|
+
};
|
|
1220
|
+
shadow: {
|
|
1221
|
+
readonly sm: "0 1px 0 rgba(20,17,14,0.06)";
|
|
1222
|
+
readonly md: "0 2px 10px -4px rgba(20,17,14,0.22)";
|
|
1223
|
+
readonly lg: "0 12px 32px -10px rgba(20,17,14,0.34)";
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
633
1227
|
};
|
|
634
1228
|
type SchemaName = keyof typeof schemas;
|
|
635
1229
|
declare const schemaNames: SchemaName[];
|
|
@@ -885,6 +1479,20 @@ declare const Container: <E extends ElementType = "div">(props: ContainerProps<E
|
|
|
885
1479
|
ref?: Ref<Element>;
|
|
886
1480
|
}) => ReturnType<typeof ContainerImpl>;
|
|
887
1481
|
|
|
1482
|
+
type SurfaceOwnProps<E extends ElementType> = {
|
|
1483
|
+
as?: E;
|
|
1484
|
+
/** Rellena el alto del viewport (min-height: 100dvh). Útil para el canvas de página. */
|
|
1485
|
+
fill?: boolean;
|
|
1486
|
+
/** Segmento de contexto para el data-testid. */
|
|
1487
|
+
testId?: string;
|
|
1488
|
+
};
|
|
1489
|
+
type SurfaceProps<E extends ElementType = "div"> = SurfaceOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, "className" | "style" | keyof SurfaceOwnProps<E>>;
|
|
1490
|
+
|
|
1491
|
+
declare function SurfaceInner<E extends ElementType = "div">({ as, fill, testId, ...rest }: SurfaceProps<E>, ref: Ref<HTMLElement>): react.JSX.Element;
|
|
1492
|
+
declare const Surface: <E extends ElementType = "div">(props: SurfaceProps<E> & {
|
|
1493
|
+
ref?: Ref<HTMLElement>;
|
|
1494
|
+
}) => ReturnType<typeof SurfaceInner>;
|
|
1495
|
+
|
|
888
1496
|
type TypographyVariant = "display" | "h1" | "h2" | "h3" | "h4" | "body" | "lead" | "small" | "caption" | "eyebrow" | "code" | "blackletter";
|
|
889
1497
|
type TypographyColor = "fg1" | "fg2" | "fg3" | "accent" | "danger" | "ok" | "warn" | "info";
|
|
890
1498
|
type TypographyAlign = "left" | "center" | "right";
|
|
@@ -1527,8 +2135,13 @@ interface ThemeProviderProps {
|
|
|
1527
2135
|
storageKey?: string;
|
|
1528
2136
|
/** Si es false, no persiste ni rehidrata (útil para previews/tests). */
|
|
1529
2137
|
persist?: boolean;
|
|
2138
|
+
/**
|
|
2139
|
+
* Si es true, el provider pinta el canvas de página en el tema activo: envuelve en
|
|
2140
|
+
* <Surface fill> y pinta el <body> (cubre overscroll). Default false: sin wrapper.
|
|
2141
|
+
*/
|
|
2142
|
+
paintRoot?: boolean;
|
|
1530
2143
|
}
|
|
1531
|
-
declare function ThemeProvider({ children, defaultSchema, defaultMode, storageKey, persist, }: ThemeProviderProps): react.JSX.Element;
|
|
2144
|
+
declare function ThemeProvider({ children, defaultSchema, defaultMode, storageKey, persist, paintRoot, }: ThemeProviderProps): react.JSX.Element;
|
|
1532
2145
|
declare function useTheme(): ThemeContextValue;
|
|
1533
2146
|
|
|
1534
2147
|
interface TestIdProviderProps {
|
|
@@ -1546,4 +2159,4 @@ interface TestIdHandle {
|
|
|
1546
2159
|
}
|
|
1547
2160
|
declare function useTestId(type: string, ownTestId?: string): TestIdHandle;
|
|
1548
2161
|
|
|
1549
|
-
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeTone, BellIcon, BellOffIcon, BookmarkIcon, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTone, type ButtonVariant, CalendarIcon, CameraIcon, Card, type CardProps, type CardSectionProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, Chip, type ChipProps, type ChipTone, CircleCheckIcon, CircleXIcon, ClipboardIcon, ClockIcon, CloudIcon, type ColorTokens, Container, type ContainerProps, CopyIcon, CornerDownRightIcon, CreditCardIcon, type Crumb, Dialog, type DialogProps, Divider, type DividerProps, DollarSignIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FileTextIcon, FilterIcon, FingerprintIcon, FolderIcon, FolderOpenIcon, GiftIcon, GlobeIcon, GridIcon, HeartIcon, HelpCircleIcon, HomeIcon, type Icon, IconButton, type IconButtonProps, type IconButtonTone, type IconProps, ImageIcon, InboxIcon, InfoIcon, KeyIcon, LayoutIcon, LinkIcon, ListIcon, ListItem, type ListItemProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, Menu, MenuIcon, type MenuItemDef, type MenuProps, MessageCircleIcon, MessageSquareIcon, MicIcon, MinimizeIcon, MinusIcon, type Mode, type ModePreference, MoneyField, type MoneyFieldProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, PackageIcon, Pagination, type PaginationProps, PaperclipIcon, PasswordField, type PasswordFieldProps, PauseIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, PrinterIcon, Progress, type ProgressProps, type ProgressVariant, Radio, type RadioProps, RedoIcon, RefreshCwIcon, SaveIcon, type SchemaName, SearchIcon, Select, type SelectOption, type SelectProps, SendIcon, SettingsIcon, ShareIcon, ShieldCheckIcon, ShieldIcon, ShoppingBagIcon, ShoppingCartIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, Slider, type SliderProps, SlidersIcon, SmileIcon, Snackbar, type SnackbarProps, StarIcon, type Step, Stepper, type StepperProps, SunIcon, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, TagIcon, type TestIdHandle, TestIdProvider, type TestIdProviderProps, TextField, type TextFieldProps, ThemeProvider, type ThemeProviderProps, ThumbsDownIcon, ThumbsUpIcon, Tooltip, type TooltipPlacement, type TooltipProps, TrashIcon, TriangleAlertIcon, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, UndoIcon, UnlockIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlusIcon, UsersIcon, Volume2Icon, VolumeXIcon, WifiIcon, XIcon, ZapIcon, colorVars, iconCatalog, modeNames, schemaNames, vars as theme, themes, usePrevious, useTestId, useTheme, useToggle };
|
|
2162
|
+
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeTone, BellIcon, BellOffIcon, BookmarkIcon, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTone, type ButtonVariant, CalendarIcon, CameraIcon, Card, type CardProps, type CardSectionProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, Chip, type ChipProps, type ChipTone, CircleCheckIcon, CircleXIcon, ClipboardIcon, ClockIcon, CloudIcon, type ColorTokens, Container, type ContainerProps, CopyIcon, CornerDownRightIcon, CreditCardIcon, type Crumb, Dialog, type DialogProps, Divider, type DividerProps, DollarSignIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FileTextIcon, FilterIcon, FingerprintIcon, FolderIcon, FolderOpenIcon, GiftIcon, GlobeIcon, GridIcon, HeartIcon, HelpCircleIcon, HomeIcon, type Icon, IconButton, type IconButtonProps, type IconButtonTone, type IconProps, ImageIcon, InboxIcon, InfoIcon, KeyIcon, LayoutIcon, LinkIcon, ListIcon, ListItem, type ListItemProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, Menu, MenuIcon, type MenuItemDef, type MenuProps, MessageCircleIcon, MessageSquareIcon, MicIcon, MinimizeIcon, MinusIcon, type Mode, type ModePreference, MoneyField, type MoneyFieldProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, PackageIcon, Pagination, type PaginationProps, PaperclipIcon, PasswordField, type PasswordFieldProps, PauseIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, PrinterIcon, Progress, type ProgressProps, type ProgressVariant, Radio, type RadioProps, RedoIcon, RefreshCwIcon, SaveIcon, type SchemaName, SearchIcon, Select, type SelectOption, type SelectProps, SendIcon, SettingsIcon, ShareIcon, ShieldCheckIcon, ShieldIcon, ShoppingBagIcon, ShoppingCartIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, Slider, type SliderProps, SlidersIcon, SmileIcon, Snackbar, type SnackbarProps, StarIcon, type Step, Stepper, type StepperProps, SunIcon, Surface, type SurfaceProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, TagIcon, type TestIdHandle, TestIdProvider, type TestIdProviderProps, TextField, type TextFieldProps, ThemeProvider, type ThemeProviderProps, ThumbsDownIcon, ThumbsUpIcon, Tooltip, type TooltipPlacement, type TooltipProps, TrashIcon, TriangleAlertIcon, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, UndoIcon, UnlockIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlusIcon, UsersIcon, Volume2Icon, VolumeXIcon, WifiIcon, XIcon, ZapIcon, colorVars, iconCatalog, modeNames, schemaNames, vars as theme, themes, usePrevious, useTestId, useTheme, useToggle };
|