@govbr-ds/tokens 4.0.0-next.14 → 4.0.0-next.15
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/css/component/input.css +37 -0
- package/dist/css/component/message.css +14 -19
- package/dist/css/component/text.css +3 -3
- package/dist/css/tokens.css +2 -2
- package/dist/js/component/input.js +35 -0
- package/dist/js/component/message.js +15 -21
- package/dist/js/component/text.js +4 -4
- package/dist/js/tokens.js +1 -2
- package/dist/json/component/input.json +907 -0
- package/dist/json/component/message.json +213 -373
- package/dist/json/component/text.json +7 -7
- package/dist/json/tokens.json +22 -22
- package/dist/scss/component/input.scss +35 -0
- package/dist/scss/component/message.scss +14 -19
- package/dist/scss/component/text.scss +4 -4
- package/dist/scss/tokens.scss +2 -2
- package/dist/tokens-studio/tokens.json +219 -88
- package/package.json +1 -1
- package/src/figma/component/divider.json +24 -0
- package/src/figma/component/input.json +156 -0
- package/src/figma/component/manifest.json +7 -1
- package/src/figma/component/message.json +70 -0
- package/src/figma/component/text.json +3 -3
- package/src/temp/component.json +212 -81
- package/src/temp/core.json +7 -7
- package/src/tokens.json +219 -88
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"title": {
|
|
41
41
|
"small": {
|
|
42
|
-
"$value": "{typography.fontSize.
|
|
42
|
+
"$value": "{typography.fontSize.up.01}",
|
|
43
43
|
"$type": "number"
|
|
44
44
|
},
|
|
45
45
|
"medium": {
|
|
46
|
-
"$value": "{typography.fontSize.up.
|
|
46
|
+
"$value": "{typography.fontSize.up.02}",
|
|
47
47
|
"$type": "number"
|
|
48
48
|
},
|
|
49
49
|
"large": {
|
|
50
|
-
"$value": "{typography.fontSize.up.
|
|
50
|
+
"$value": "{typography.fontSize.up.03}",
|
|
51
51
|
"$type": "number"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/src/temp/component.json
CHANGED
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"title": {
|
|
61
61
|
"small": {
|
|
62
62
|
"$type": "fontSizes",
|
|
63
|
-
"$value": "{typography.fontSize.
|
|
63
|
+
"$value": "{typography.fontSize.up.01}"
|
|
64
64
|
},
|
|
65
65
|
"medium": {
|
|
66
66
|
"$type": "fontSizes",
|
|
67
|
-
"$value": "{typography.fontSize.up.
|
|
67
|
+
"$value": "{typography.fontSize.up.02}"
|
|
68
68
|
},
|
|
69
69
|
"large": {
|
|
70
70
|
"$type": "fontSizes",
|
|
71
|
-
"$value": "{typography.fontSize.up.
|
|
71
|
+
"$value": "{typography.fontSize.up.03}"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
@@ -663,140 +663,271 @@
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
"message": {
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"
|
|
666
|
+
"color": {
|
|
667
|
+
"surface": {
|
|
668
|
+
"base": {
|
|
669
669
|
"$type": "color",
|
|
670
|
-
"$value": "{color.surface.main.
|
|
670
|
+
"$value": "{color.surface.main.base}"
|
|
671
671
|
},
|
|
672
|
-
"
|
|
672
|
+
"alternative": {
|
|
673
|
+
"$type": "color",
|
|
674
|
+
"$value": "{color.surface.main.alternative}"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"read": {
|
|
678
|
+
"description": {
|
|
673
679
|
"$type": "color",
|
|
674
680
|
"$value": "{color.read.main.base}"
|
|
675
681
|
}
|
|
676
682
|
}
|
|
677
683
|
},
|
|
684
|
+
"rounder": {
|
|
685
|
+
"global": {
|
|
686
|
+
"$type": "borderRadius",
|
|
687
|
+
"$value": "{surface.rounder.none}"
|
|
688
|
+
},
|
|
689
|
+
"contextual": {
|
|
690
|
+
"$type": "borderRadius",
|
|
691
|
+
"$value": "{surface.rounder.small}"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
678
694
|
"shadowStyle": {
|
|
679
695
|
"global": {
|
|
680
696
|
"$type": "boxShadow",
|
|
681
697
|
"$value": "{elevation.shadowStyle.level.1}"
|
|
682
698
|
},
|
|
683
|
-
"
|
|
699
|
+
"contextual": {
|
|
684
700
|
"$type": "boxShadow",
|
|
685
|
-
"$value": "{elevation.shadowStyle.level.
|
|
701
|
+
"$value": "{elevation.shadowStyle.level.0}"
|
|
686
702
|
}
|
|
687
703
|
},
|
|
688
704
|
"fontStyle": {
|
|
689
705
|
"description": {
|
|
706
|
+
"$type": "typography",
|
|
707
|
+
"$value": "{typography.fontStyle.paragraph}"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"spacing": {
|
|
711
|
+
"gap": {
|
|
690
712
|
"global": {
|
|
691
|
-
"$type": "
|
|
692
|
-
"$value": {
|
|
693
|
-
"fontFamily": "{typography.fontFamily.primary}",
|
|
694
|
-
"fontWeight": "{typography.fontWeight.regular}",
|
|
695
|
-
"fontSize": "{typography.fontSize.default}",
|
|
696
|
-
"lineHeight": "{typography.lineHeight.medium}"
|
|
697
|
-
}
|
|
713
|
+
"$type": "spacing",
|
|
714
|
+
"$value": "{spacing.layout.01}"
|
|
698
715
|
},
|
|
699
|
-
"
|
|
700
|
-
"$type": "
|
|
701
|
-
"$value": {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
716
|
+
"contextual": {
|
|
717
|
+
"$type": "spacing",
|
|
718
|
+
"$value": "{spacing.adjust.01}"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"padding": {
|
|
722
|
+
"global": {
|
|
723
|
+
"$type": "spacing",
|
|
724
|
+
"$value": "{spacing.layout.02}"
|
|
707
725
|
},
|
|
708
726
|
"contextual": {
|
|
709
|
-
"$type": "
|
|
710
|
-
"$value": {
|
|
711
|
-
"fontFamily": "{typography.fontFamily.primary}",
|
|
712
|
-
"fontWeight": "{typography.fontWeight.regular}",
|
|
713
|
-
"fontSize": "{typography.fontSize.down.01}",
|
|
714
|
-
"lineHeight": "{typography.lineHeight.medium}"
|
|
715
|
-
}
|
|
727
|
+
"$type": "spacing",
|
|
728
|
+
"$value": "{spacing.adjust.01}"
|
|
716
729
|
}
|
|
717
730
|
}
|
|
718
731
|
},
|
|
719
|
-
"
|
|
732
|
+
"hover": {
|
|
720
733
|
"color": {
|
|
721
|
-
"
|
|
734
|
+
"success": {
|
|
722
735
|
"$type": "color",
|
|
723
|
-
"$value": "{state.
|
|
736
|
+
"$value": "rgba({color.greenVivid.80}, {state.hover.opacity.bright})"
|
|
724
737
|
},
|
|
725
|
-
"
|
|
738
|
+
"alert": {
|
|
739
|
+
"$type": "color",
|
|
740
|
+
"$value": "rgba({color.yellowVivid.10}, {state.hover.opacity.dim})"
|
|
741
|
+
},
|
|
742
|
+
"error": {
|
|
726
743
|
"$type": "color",
|
|
727
|
-
"$value": "{state.
|
|
744
|
+
"$value": "rgba({color.redVivid.80}, {state.hover.opacity.bright})"
|
|
728
745
|
}
|
|
729
746
|
}
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"input": {
|
|
750
|
+
"color": {
|
|
751
|
+
"read": {
|
|
752
|
+
"placeholder": {
|
|
734
753
|
"$type": "color",
|
|
735
|
-
"$value": "{
|
|
754
|
+
"$value": "{color.read.main.alternative}"
|
|
736
755
|
},
|
|
737
|
-
"
|
|
756
|
+
"input": {
|
|
757
|
+
"$type": "color",
|
|
758
|
+
"$value": "{color.read.main.base}"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"surface": {
|
|
762
|
+
"base": {
|
|
738
763
|
"$type": "color",
|
|
739
|
-
"$value": "{
|
|
764
|
+
"$value": "{color.surface.main.base}"
|
|
765
|
+
},
|
|
766
|
+
"alternative": {
|
|
767
|
+
"$type": "color",
|
|
768
|
+
"$value": "{color.surface.main.alternative}"
|
|
740
769
|
}
|
|
741
770
|
}
|
|
742
771
|
},
|
|
743
|
-
"
|
|
772
|
+
"rounder": {
|
|
773
|
+
"$type": "borderRadius",
|
|
774
|
+
"$value": "{surface.rounder.small}"
|
|
775
|
+
},
|
|
776
|
+
"spacing": {
|
|
777
|
+
"padding": {
|
|
778
|
+
"$type": "spacing",
|
|
779
|
+
"$value": "{spacing.layout.01}"
|
|
780
|
+
},
|
|
781
|
+
"gap": {
|
|
782
|
+
"$type": "spacing",
|
|
783
|
+
"$value": "{spacing.layout.01}"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"borderStyle": {
|
|
787
|
+
"$type": "border",
|
|
788
|
+
"$value": {
|
|
789
|
+
"color": "{color.border.base}",
|
|
790
|
+
"width": "{surface.borderWidth.small}",
|
|
791
|
+
"style": "solid"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
"fontStyle": {
|
|
795
|
+
"placeholder": {
|
|
796
|
+
"$type": "typography",
|
|
797
|
+
"$value": "{typography.fontStyle.placeholder}"
|
|
798
|
+
},
|
|
799
|
+
"input": {
|
|
800
|
+
"$type": "typography",
|
|
801
|
+
"$value": "{typography.fontStyle.input}"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"lineHeight": {
|
|
805
|
+
"$type": "lineHeights",
|
|
806
|
+
"$value": "{typography.lineHeight.xlarge}"
|
|
807
|
+
},
|
|
808
|
+
"density": {
|
|
809
|
+
"compact": {
|
|
810
|
+
"$type": "spacing",
|
|
811
|
+
"$value": "{spacing.none}"
|
|
812
|
+
},
|
|
813
|
+
"regular": {
|
|
814
|
+
"$type": "spacing",
|
|
815
|
+
"$value": "{spacing.adjust.01}"
|
|
816
|
+
},
|
|
817
|
+
"spacious": {
|
|
818
|
+
"$type": "spacing",
|
|
819
|
+
"$value": "{spacing.layout.01}"
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
"readonly": {
|
|
744
823
|
"color": {
|
|
745
|
-
"surface": {
|
|
746
|
-
"$type": "color",
|
|
747
|
-
"$value": "{state.error.color.main}"
|
|
748
|
-
},
|
|
749
824
|
"read": {
|
|
825
|
+
"main": {
|
|
826
|
+
"$type": "color",
|
|
827
|
+
"$value": "{color.read.main.alternative}"
|
|
828
|
+
},
|
|
829
|
+
"contrast": {
|
|
830
|
+
"$type": "color",
|
|
831
|
+
"$value": "{color.read.contrast.alternative}"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"surface": {
|
|
750
835
|
"$type": "color",
|
|
751
|
-
"$value": "
|
|
836
|
+
"$value": "transparent"
|
|
752
837
|
}
|
|
838
|
+
},
|
|
839
|
+
"borderWidth": {
|
|
840
|
+
"$type": "borderWidth",
|
|
841
|
+
"$value": "{surface.borderWidth.none}"
|
|
753
842
|
}
|
|
754
843
|
},
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"
|
|
758
|
-
|
|
759
|
-
|
|
844
|
+
"hover": {
|
|
845
|
+
"color": {
|
|
846
|
+
"$type": "color",
|
|
847
|
+
"$value": "{state.hover.color.main.read}"
|
|
848
|
+
},
|
|
849
|
+
"easing": {
|
|
850
|
+
"in": {
|
|
851
|
+
"$type": "easing",
|
|
852
|
+
"$value": "{state.hover.easing.in}"
|
|
853
|
+
},
|
|
854
|
+
"out": {
|
|
855
|
+
"$type": "easing",
|
|
856
|
+
"$value": "{state.hover.easing.out}"
|
|
760
857
|
}
|
|
761
858
|
},
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"$type": "
|
|
765
|
-
"$value": "{
|
|
859
|
+
"duration": {
|
|
860
|
+
"in": {
|
|
861
|
+
"$type": "duration",
|
|
862
|
+
"$value": "{state.hover.duration.in}"
|
|
863
|
+
},
|
|
864
|
+
"out": {
|
|
865
|
+
"$type": "duration",
|
|
866
|
+
"$value": "{state.hover.duration.out}"
|
|
766
867
|
}
|
|
767
868
|
}
|
|
768
869
|
},
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"$type": "
|
|
777
|
-
"$value": "{
|
|
870
|
+
"pressed": {
|
|
871
|
+
"shadowStyle": {
|
|
872
|
+
"$type": "boxShadow",
|
|
873
|
+
"$value": "{state.pressed.shadowStyle}"
|
|
874
|
+
},
|
|
875
|
+
"easing": {
|
|
876
|
+
"in": {
|
|
877
|
+
"$type": "easing",
|
|
878
|
+
"$value": "{state.pressed.easing.in}"
|
|
879
|
+
},
|
|
880
|
+
"out": {
|
|
881
|
+
"$type": "easing",
|
|
882
|
+
"$value": "{state.pressed.easing.out}"
|
|
778
883
|
}
|
|
779
884
|
},
|
|
780
|
-
"
|
|
781
|
-
"
|
|
782
|
-
"$type": "
|
|
783
|
-
"$value": "{
|
|
885
|
+
"duration": {
|
|
886
|
+
"in": {
|
|
887
|
+
"$type": "duration",
|
|
888
|
+
"$value": "{state.pressed.duration.in}"
|
|
889
|
+
},
|
|
890
|
+
"out": {
|
|
891
|
+
"$type": "duration",
|
|
892
|
+
"$value": "{state.pressed.duration.out}"
|
|
784
893
|
}
|
|
785
894
|
}
|
|
786
895
|
},
|
|
787
|
-
"
|
|
788
|
-
"
|
|
789
|
-
"
|
|
790
|
-
|
|
791
|
-
|
|
896
|
+
"focus": {
|
|
897
|
+
"borderStyle": {
|
|
898
|
+
"$type": "border",
|
|
899
|
+
"$value": "{state.focus.borderStyle.low.main}"
|
|
900
|
+
},
|
|
901
|
+
"easing": {
|
|
902
|
+
"in": {
|
|
903
|
+
"$type": "easing",
|
|
904
|
+
"$value": "{state.focus.easing.in}"
|
|
905
|
+
},
|
|
906
|
+
"out": {
|
|
907
|
+
"$type": "easing",
|
|
908
|
+
"$value": "{state.focus.easing.out}"
|
|
792
909
|
}
|
|
793
910
|
},
|
|
794
|
-
"
|
|
795
|
-
"
|
|
796
|
-
"$type": "
|
|
797
|
-
"$value": "{
|
|
911
|
+
"duration": {
|
|
912
|
+
"in": {
|
|
913
|
+
"$type": "duration",
|
|
914
|
+
"$value": "{state.focus.duration.in}"
|
|
915
|
+
},
|
|
916
|
+
"out": {
|
|
917
|
+
"$type": "duration",
|
|
918
|
+
"$value": "{state.focus.duration.out}"
|
|
798
919
|
}
|
|
799
920
|
}
|
|
921
|
+
},
|
|
922
|
+
"disabled": {
|
|
923
|
+
"color": {
|
|
924
|
+
"$type": "color",
|
|
925
|
+
"$value": "{state.disabled.color.main}"
|
|
926
|
+
},
|
|
927
|
+
"opacity": {
|
|
928
|
+
"$type": "opacity",
|
|
929
|
+
"$value": "{state.disabled.opacity}"
|
|
930
|
+
}
|
|
800
931
|
}
|
|
801
932
|
}
|
|
802
933
|
}
|
package/src/temp/core.json
CHANGED
|
@@ -2236,29 +2236,29 @@
|
|
|
2236
2236
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2237
2237
|
}
|
|
2238
2238
|
},
|
|
2239
|
-
"
|
|
2239
|
+
"paragraph": {
|
|
2240
2240
|
"$type": "typography",
|
|
2241
2241
|
"$value": {
|
|
2242
2242
|
"fontFamily": "{typography.fontFamily.primary}",
|
|
2243
|
-
"fontWeight": "
|
|
2244
|
-
"fontSize": "{typography.fontSize.
|
|
2243
|
+
"fontWeight": "{typography.fontWeight.regular}",
|
|
2244
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2245
2245
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2246
2246
|
}
|
|
2247
2247
|
},
|
|
2248
|
-
"
|
|
2248
|
+
"input": {
|
|
2249
2249
|
"$type": "typography",
|
|
2250
2250
|
"$value": {
|
|
2251
2251
|
"fontFamily": "{typography.fontFamily.primary}",
|
|
2252
|
-
"fontWeight": "{typography.fontWeight.
|
|
2252
|
+
"fontWeight": "{typography.fontWeight.medium}",
|
|
2253
2253
|
"fontSize": "{typography.fontSize.default}",
|
|
2254
2254
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2255
2255
|
}
|
|
2256
2256
|
},
|
|
2257
|
-
"
|
|
2257
|
+
"placeholder": {
|
|
2258
2258
|
"$type": "typography",
|
|
2259
2259
|
"$value": {
|
|
2260
2260
|
"fontFamily": "{typography.fontFamily.primary}",
|
|
2261
|
-
"fontWeight": "
|
|
2261
|
+
"fontWeight": "Italic",
|
|
2262
2262
|
"fontSize": "{typography.fontSize.default}",
|
|
2263
2263
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2264
2264
|
}
|