@govbr-ds/tokens 4.0.0-next.13 → 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.
Files changed (35) hide show
  1. package/dist/css/component/divider.css +12 -0
  2. package/dist/css/component/formlabel.css +6 -0
  3. package/dist/css/component/input.css +37 -0
  4. package/dist/css/component/message.css +17 -0
  5. package/dist/css/component/text.css +3 -3
  6. package/dist/css/tokens.css +2 -2
  7. package/dist/js/component/divider.js +10 -0
  8. package/dist/js/component/formlabel.js +4 -0
  9. package/dist/js/component/input.js +35 -0
  10. package/dist/js/component/message.js +17 -0
  11. package/dist/js/component/text.js +4 -4
  12. package/dist/js/tokens.js +1 -2
  13. package/dist/json/component/divider.json +302 -0
  14. package/dist/json/component/formlabel.json +117 -0
  15. package/dist/json/component/input.json +907 -0
  16. package/dist/json/component/message.json +441 -0
  17. package/dist/json/component/text.json +7 -7
  18. package/dist/json/tokens.json +22 -22
  19. package/dist/scss/component/divider.scss +10 -0
  20. package/dist/scss/component/formlabel.scss +4 -0
  21. package/dist/scss/component/input.scss +35 -0
  22. package/dist/scss/component/message.scss +15 -0
  23. package/dist/scss/component/text.scss +4 -4
  24. package/dist/scss/tokens.scss +2 -2
  25. package/dist/tokens-studio/tokens.json +389 -10
  26. package/package.json +1 -1
  27. package/src/figma/component/divider.json +24 -0
  28. package/src/figma/component/formlabel.json +24 -0
  29. package/src/figma/component/input.json +156 -0
  30. package/src/figma/component/manifest.json +9 -1
  31. package/src/figma/component/message.json +70 -0
  32. package/src/figma/component/text.json +3 -3
  33. package/src/temp/component.json +382 -3
  34. package/src/temp/core.json +7 -7
  35. package/src/tokens.json +389 -10
@@ -6,12 +6,20 @@
6
6
  "Base16": [
7
7
  "text.json",
8
8
  "icon.json",
9
- "button.json"
9
+ "button.json",
10
+ "formlabel.json",
11
+ "divider.json",
12
+ "message.json",
13
+ "input.json"
10
14
  ],
11
15
  "Base14": [
12
16
  "text.json",
13
17
  "icon.json",
14
18
  "button.json",
19
+ "formlabel.json",
20
+ "divider.json",
21
+ "message.json",
22
+ "input.json",
15
23
  "base14.json"
16
24
  ]
17
25
  }
@@ -0,0 +1,70 @@
1
+ {
2
+ "message": {
3
+ "color": {
4
+ "surface": {
5
+ "base": {
6
+ "$type": "color",
7
+ "$value": "{color.surface.main.base}"
8
+ },
9
+ "alternative": {
10
+ "$type": "color",
11
+ "$value": "{color.surface.main.alternative}"
12
+ }
13
+ },
14
+ "read": {
15
+ "description": {
16
+ "$type": "color",
17
+ "$value": "{color.read.main.base}"
18
+ }
19
+ }
20
+ },
21
+ "rounder": {
22
+ "global": {
23
+ "$type": "number",
24
+ "$value": "{surface.rounder.none}"
25
+ },
26
+ "contextual": {
27
+ "$type": "number",
28
+ "$value": "{surface.rounder.small}"
29
+ }
30
+ },
31
+ "spacing": {
32
+ "gap": {
33
+ "global": {
34
+ "$type": "number",
35
+ "$value": "{spacing.layout.01}"
36
+ },
37
+ "contextual": {
38
+ "$type": "number",
39
+ "$value": "{spacing.adjust.01}"
40
+ }
41
+ },
42
+ "padding": {
43
+ "global": {
44
+ "$type": "number",
45
+ "$value": "{spacing.layout.02}"
46
+ },
47
+ "contextual": {
48
+ "$type": "number",
49
+ "$value": "{spacing.adjust.01}"
50
+ }
51
+ }
52
+ },
53
+ "hover": {
54
+ "color": {
55
+ "success": {
56
+ "$type": "color",
57
+ "$value": "#24341380"
58
+ },
59
+ "alert": {
60
+ "$type": "color",
61
+ "$value": "#FEE68599"
62
+ },
63
+ "error": {
64
+ "$type": "color",
65
+ "$value": "#5C111180"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
@@ -39,15 +39,15 @@
39
39
  },
40
40
  "title": {
41
41
  "small": {
42
- "$value": "{typography.fontSize.default}",
42
+ "$value": "{typography.fontSize.up.01}",
43
43
  "$type": "number"
44
44
  },
45
45
  "medium": {
46
- "$value": "{typography.fontSize.up.01}",
46
+ "$value": "{typography.fontSize.up.02}",
47
47
  "$type": "number"
48
48
  },
49
49
  "large": {
50
- "$value": "{typography.fontSize.up.02}",
50
+ "$value": "{typography.fontSize.up.03}",
51
51
  "$type": "number"
52
52
  }
53
53
  }
@@ -60,15 +60,15 @@
60
60
  "title": {
61
61
  "small": {
62
62
  "$type": "fontSizes",
63
- "$value": "{typography.fontSize.default}"
63
+ "$value": "{typography.fontSize.up.01}"
64
64
  },
65
65
  "medium": {
66
66
  "$type": "fontSizes",
67
- "$value": "{typography.fontSize.up.01}"
67
+ "$value": "{typography.fontSize.up.02}"
68
68
  },
69
69
  "large": {
70
70
  "$type": "fontSizes",
71
- "$value": "{typography.fontSize.up.02}"
71
+ "$value": "{typography.fontSize.up.03}"
72
72
  }
73
73
  }
74
74
  },
@@ -550,5 +550,384 @@
550
550
  }
551
551
  }
552
552
  }
553
+ },
554
+ "formlabel": {
555
+ "spacing": {
556
+ "gap": {
557
+ "$type": "spacing",
558
+ "$value": "{spacing.layout.01}"
559
+ }
560
+ },
561
+ "color": {
562
+ "main": {
563
+ "helpertext": {
564
+ "$type": "color",
565
+ "$value": "{color.read.main.alternative}"
566
+ }
567
+ },
568
+ "contrast": {
569
+ "helpertext": {
570
+ "$type": "color",
571
+ "$value": "{color.read.contrast.alternative}"
572
+ }
573
+ }
574
+ },
575
+ "fontStyle": {
576
+ "helpertext": {
577
+ "$type": "typography",
578
+ "$value": {
579
+ "fontFamily": "{typography.fontFamily.primary}",
580
+ "fontWeight": "{typography.fontWeight.regular}",
581
+ "fontSize": "{typography.fontSize.down.02}",
582
+ "lineHeight": "{typography.lineHeight.small}"
583
+ }
584
+ }
585
+ }
586
+ },
587
+ "divider": {
588
+ "borderStyle": {
589
+ "small": {
590
+ "solid": {
591
+ "$type": "border",
592
+ "$value": {
593
+ "color": "{color.border.base}",
594
+ "width": "{surface.borderWidth.small}",
595
+ "style": "solid"
596
+ }
597
+ },
598
+ "dashed": {
599
+ "$type": "border",
600
+ "$value": {
601
+ "color": "{color.border.base}",
602
+ "width": "{surface.borderWidth.small}",
603
+ "style": "dashed"
604
+ }
605
+ }
606
+ },
607
+ "medium": {
608
+ "solid": {
609
+ "$type": "border",
610
+ "$value": {
611
+ "color": "{color.border.base}",
612
+ "width": "{surface.borderWidth.medium}",
613
+ "style": "solid"
614
+ }
615
+ },
616
+ "dashed": {
617
+ "$type": "border",
618
+ "$value": {
619
+ "color": "{color.border.base}",
620
+ "width": "{surface.borderWidth.medium}",
621
+ "style": "dashed"
622
+ }
623
+ }
624
+ },
625
+ "large": {
626
+ "solid": {
627
+ "$type": "border",
628
+ "$value": {
629
+ "color": "{color.border.base}",
630
+ "width": "{surface.borderWidth.large}",
631
+ "style": "solid"
632
+ }
633
+ },
634
+ "dashed": {
635
+ "$type": "border",
636
+ "$value": {
637
+ "color": "{color.border.base}",
638
+ "width": "{surface.borderWidth.large}",
639
+ "style": "dashed"
640
+ }
641
+ }
642
+ }
643
+ },
644
+ "spacing": {
645
+ "gap": {
646
+ "$value": "{spacing.layout.01}",
647
+ "$type": "spacing"
648
+ }
649
+ },
650
+ "density": {
651
+ "compact": {
652
+ "$value": "{spacing.layout.02}",
653
+ "$type": "spacing"
654
+ },
655
+ "regular": {
656
+ "$value": "{spacing.layout.05}",
657
+ "$type": "spacing"
658
+ },
659
+ "spacious": {
660
+ "$value": "{spacing.layout.07}",
661
+ "$type": "spacing"
662
+ }
663
+ }
664
+ },
665
+ "message": {
666
+ "color": {
667
+ "surface": {
668
+ "base": {
669
+ "$type": "color",
670
+ "$value": "{color.surface.main.base}"
671
+ },
672
+ "alternative": {
673
+ "$type": "color",
674
+ "$value": "{color.surface.main.alternative}"
675
+ }
676
+ },
677
+ "read": {
678
+ "description": {
679
+ "$type": "color",
680
+ "$value": "{color.read.main.base}"
681
+ }
682
+ }
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
+ },
694
+ "shadowStyle": {
695
+ "global": {
696
+ "$type": "boxShadow",
697
+ "$value": "{elevation.shadowStyle.level.1}"
698
+ },
699
+ "contextual": {
700
+ "$type": "boxShadow",
701
+ "$value": "{elevation.shadowStyle.level.0}"
702
+ }
703
+ },
704
+ "fontStyle": {
705
+ "description": {
706
+ "$type": "typography",
707
+ "$value": "{typography.fontStyle.paragraph}"
708
+ }
709
+ },
710
+ "spacing": {
711
+ "gap": {
712
+ "global": {
713
+ "$type": "spacing",
714
+ "$value": "{spacing.layout.01}"
715
+ },
716
+ "contextual": {
717
+ "$type": "spacing",
718
+ "$value": "{spacing.adjust.01}"
719
+ }
720
+ },
721
+ "padding": {
722
+ "global": {
723
+ "$type": "spacing",
724
+ "$value": "{spacing.layout.02}"
725
+ },
726
+ "contextual": {
727
+ "$type": "spacing",
728
+ "$value": "{spacing.adjust.01}"
729
+ }
730
+ }
731
+ },
732
+ "hover": {
733
+ "color": {
734
+ "success": {
735
+ "$type": "color",
736
+ "$value": "rgba({color.greenVivid.80}, {state.hover.opacity.bright})"
737
+ },
738
+ "alert": {
739
+ "$type": "color",
740
+ "$value": "rgba({color.yellowVivid.10}, {state.hover.opacity.dim})"
741
+ },
742
+ "error": {
743
+ "$type": "color",
744
+ "$value": "rgba({color.redVivid.80}, {state.hover.opacity.bright})"
745
+ }
746
+ }
747
+ }
748
+ },
749
+ "input": {
750
+ "color": {
751
+ "read": {
752
+ "placeholder": {
753
+ "$type": "color",
754
+ "$value": "{color.read.main.alternative}"
755
+ },
756
+ "input": {
757
+ "$type": "color",
758
+ "$value": "{color.read.main.base}"
759
+ }
760
+ },
761
+ "surface": {
762
+ "base": {
763
+ "$type": "color",
764
+ "$value": "{color.surface.main.base}"
765
+ },
766
+ "alternative": {
767
+ "$type": "color",
768
+ "$value": "{color.surface.main.alternative}"
769
+ }
770
+ }
771
+ },
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": {
823
+ "color": {
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": {
835
+ "$type": "color",
836
+ "$value": "transparent"
837
+ }
838
+ },
839
+ "borderWidth": {
840
+ "$type": "borderWidth",
841
+ "$value": "{surface.borderWidth.none}"
842
+ }
843
+ },
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}"
857
+ }
858
+ },
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}"
867
+ }
868
+ }
869
+ },
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}"
883
+ }
884
+ },
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}"
893
+ }
894
+ }
895
+ },
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}"
909
+ }
910
+ },
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}"
919
+ }
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
+ }
931
+ }
553
932
  }
554
933
  }
@@ -2236,29 +2236,29 @@
2236
2236
  "lineHeight": "{typography.lineHeight.medium}"
2237
2237
  }
2238
2238
  },
2239
- "placeholder": {
2239
+ "paragraph": {
2240
2240
  "$type": "typography",
2241
2241
  "$value": {
2242
2242
  "fontFamily": "{typography.fontFamily.primary}",
2243
- "fontWeight": "Italic",
2244
- "fontSize": "{typography.fontSize.up.01}",
2243
+ "fontWeight": "{typography.fontWeight.regular}",
2244
+ "fontSize": "{typography.fontSize.default}",
2245
2245
  "lineHeight": "{typography.lineHeight.medium}"
2246
2246
  }
2247
2247
  },
2248
- "paragraph": {
2248
+ "input": {
2249
2249
  "$type": "typography",
2250
2250
  "$value": {
2251
2251
  "fontFamily": "{typography.fontFamily.primary}",
2252
- "fontWeight": "{typography.fontWeight.regular}",
2252
+ "fontWeight": "{typography.fontWeight.medium}",
2253
2253
  "fontSize": "{typography.fontSize.default}",
2254
2254
  "lineHeight": "{typography.lineHeight.medium}"
2255
2255
  }
2256
2256
  },
2257
- "input": {
2257
+ "placeholder": {
2258
2258
  "$type": "typography",
2259
2259
  "$value": {
2260
2260
  "fontFamily": "{typography.fontFamily.primary}",
2261
- "fontWeight": "{typography.fontWeight.medium}",
2261
+ "fontWeight": "Italic",
2262
2262
  "fontSize": "{typography.fontSize.default}",
2263
2263
  "lineHeight": "{typography.lineHeight.medium}"
2264
2264
  }