@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.
@@ -2237,29 +2237,29 @@
2237
2237
  "lineHeight": "{typography.lineHeight.medium}"
2238
2238
  }
2239
2239
  },
2240
- "placeholder": {
2240
+ "paragraph": {
2241
2241
  "$type": "typography",
2242
2242
  "$value": {
2243
2243
  "fontFamily": "{typography.fontFamily.primary}",
2244
- "fontWeight": "Italic",
2245
- "fontSize": "{typography.fontSize.up.01}",
2244
+ "fontWeight": "{typography.fontWeight.regular}",
2245
+ "fontSize": "{typography.fontSize.default}",
2246
2246
  "lineHeight": "{typography.lineHeight.medium}"
2247
2247
  }
2248
2248
  },
2249
- "paragraph": {
2249
+ "input": {
2250
2250
  "$type": "typography",
2251
2251
  "$value": {
2252
2252
  "fontFamily": "{typography.fontFamily.primary}",
2253
- "fontWeight": "{typography.fontWeight.regular}",
2253
+ "fontWeight": "{typography.fontWeight.medium}",
2254
2254
  "fontSize": "{typography.fontSize.default}",
2255
2255
  "lineHeight": "{typography.lineHeight.medium}"
2256
2256
  }
2257
2257
  },
2258
- "input": {
2258
+ "placeholder": {
2259
2259
  "$type": "typography",
2260
2260
  "$value": {
2261
2261
  "fontFamily": "{typography.fontFamily.primary}",
2262
- "fontWeight": "{typography.fontWeight.medium}",
2262
+ "fontWeight": "Italic",
2263
2263
  "fontSize": "{typography.fontSize.default}",
2264
2264
  "lineHeight": "{typography.lineHeight.medium}"
2265
2265
  }
@@ -4010,15 +4010,15 @@
4010
4010
  "title": {
4011
4011
  "small": {
4012
4012
  "$type": "fontSizes",
4013
- "$value": "{typography.fontSize.default}"
4013
+ "$value": "{typography.fontSize.up.01}"
4014
4014
  },
4015
4015
  "medium": {
4016
4016
  "$type": "fontSizes",
4017
- "$value": "{typography.fontSize.up.01}"
4017
+ "$value": "{typography.fontSize.up.02}"
4018
4018
  },
4019
4019
  "large": {
4020
4020
  "$type": "fontSizes",
4021
- "$value": "{typography.fontSize.up.02}"
4021
+ "$value": "{typography.fontSize.up.03}"
4022
4022
  }
4023
4023
  }
4024
4024
  },
@@ -4613,140 +4613,271 @@
4613
4613
  }
4614
4614
  },
4615
4615
  "message": {
4616
- "neutral": {
4617
- "color": {
4618
- "surface": {
4616
+ "color": {
4617
+ "surface": {
4618
+ "base": {
4619
4619
  "$type": "color",
4620
- "$value": "{color.surface.main.alternative}"
4620
+ "$value": "{color.surface.main.base}"
4621
4621
  },
4622
- "read": {
4622
+ "alternative": {
4623
+ "$type": "color",
4624
+ "$value": "{color.surface.main.alternative}"
4625
+ }
4626
+ },
4627
+ "read": {
4628
+ "description": {
4623
4629
  "$type": "color",
4624
4630
  "$value": "{color.read.main.base}"
4625
4631
  }
4626
4632
  }
4627
4633
  },
4634
+ "rounder": {
4635
+ "global": {
4636
+ "$type": "borderRadius",
4637
+ "$value": "{surface.rounder.none}"
4638
+ },
4639
+ "contextual": {
4640
+ "$type": "borderRadius",
4641
+ "$value": "{surface.rounder.small}"
4642
+ }
4643
+ },
4628
4644
  "shadowStyle": {
4629
4645
  "global": {
4630
4646
  "$type": "boxShadow",
4631
4647
  "$value": "{elevation.shadowStyle.level.1}"
4632
4648
  },
4633
- "toast": {
4649
+ "contextual": {
4634
4650
  "$type": "boxShadow",
4635
- "$value": "{elevation.shadowStyle.level.4}"
4651
+ "$value": "{elevation.shadowStyle.level.0}"
4636
4652
  }
4637
4653
  },
4638
4654
  "fontStyle": {
4639
4655
  "description": {
4656
+ "$type": "typography",
4657
+ "$value": "{typography.fontStyle.paragraph}"
4658
+ }
4659
+ },
4660
+ "spacing": {
4661
+ "gap": {
4640
4662
  "global": {
4641
- "$type": "typography",
4642
- "$value": {
4643
- "fontFamily": "{typography.fontFamily.primary}",
4644
- "fontWeight": "{typography.fontWeight.regular}",
4645
- "fontSize": "{typography.fontSize.default}",
4646
- "lineHeight": "{typography.lineHeight.medium}"
4647
- }
4663
+ "$type": "spacing",
4664
+ "$value": "{spacing.layout.01}"
4648
4665
  },
4649
- "toast": {
4650
- "$type": "typography",
4651
- "$value": {
4652
- "fontFamily": "{typography.fontFamily.primary}",
4653
- "fontWeight": "{typography.fontWeight.regular}",
4654
- "fontSize": "{typography.fontSize.default}",
4655
- "lineHeight": "{typography.lineHeight.medium}"
4656
- }
4666
+ "contextual": {
4667
+ "$type": "spacing",
4668
+ "$value": "{spacing.adjust.01}"
4669
+ }
4670
+ },
4671
+ "padding": {
4672
+ "global": {
4673
+ "$type": "spacing",
4674
+ "$value": "{spacing.layout.02}"
4657
4675
  },
4658
4676
  "contextual": {
4659
- "$type": "typography",
4660
- "$value": {
4661
- "fontFamily": "{typography.fontFamily.primary}",
4662
- "fontWeight": "{typography.fontWeight.regular}",
4663
- "fontSize": "{typography.fontSize.down.01}",
4664
- "lineHeight": "{typography.lineHeight.medium}"
4665
- }
4677
+ "$type": "spacing",
4678
+ "$value": "{spacing.adjust.01}"
4666
4679
  }
4667
4680
  }
4668
4681
  },
4669
- "alert": {
4682
+ "hover": {
4670
4683
  "color": {
4671
- "surface": {
4684
+ "success": {
4672
4685
  "$type": "color",
4673
- "$value": "{state.alert.color.main}"
4686
+ "$value": "rgba({color.greenVivid.80}, {state.hover.opacity.bright})"
4674
4687
  },
4675
- "read": {
4688
+ "alert": {
4676
4689
  "$type": "color",
4677
- "$value": "{state.alert.color.read.main}"
4690
+ "$value": "rgba({color.yellowVivid.10}, {state.hover.opacity.dim})"
4691
+ },
4692
+ "error": {
4693
+ "$type": "color",
4694
+ "$value": "rgba({color.redVivid.80}, {state.hover.opacity.bright})"
4678
4695
  }
4679
4696
  }
4680
- },
4681
- "success": {
4682
- "color": {
4683
- "surface": {
4697
+ }
4698
+ },
4699
+ "input": {
4700
+ "color": {
4701
+ "read": {
4702
+ "placeholder": {
4684
4703
  "$type": "color",
4685
- "$value": "{state.success.color.main}"
4704
+ "$value": "{color.read.main.alternative}"
4686
4705
  },
4687
- "read": {
4706
+ "input": {
4688
4707
  "$type": "color",
4689
- "$value": "{state.success.color.read.main}"
4708
+ "$value": "{color.read.main.base}"
4709
+ }
4710
+ },
4711
+ "surface": {
4712
+ "base": {
4713
+ "$type": "color",
4714
+ "$value": "{color.surface.main.base}"
4715
+ },
4716
+ "alternative": {
4717
+ "$type": "color",
4718
+ "$value": "{color.surface.main.alternative}"
4690
4719
  }
4691
4720
  }
4692
4721
  },
4693
- "error": {
4722
+ "rounder": {
4723
+ "$type": "borderRadius",
4724
+ "$value": "{surface.rounder.small}"
4725
+ },
4726
+ "spacing": {
4727
+ "padding": {
4728
+ "$type": "spacing",
4729
+ "$value": "{spacing.layout.01}"
4730
+ },
4731
+ "gap": {
4732
+ "$type": "spacing",
4733
+ "$value": "{spacing.layout.01}"
4734
+ }
4735
+ },
4736
+ "borderStyle": {
4737
+ "$type": "border",
4738
+ "$value": {
4739
+ "color": "{color.border.base}",
4740
+ "width": "{surface.borderWidth.small}",
4741
+ "style": "solid"
4742
+ }
4743
+ },
4744
+ "fontStyle": {
4745
+ "placeholder": {
4746
+ "$type": "typography",
4747
+ "$value": "{typography.fontStyle.placeholder}"
4748
+ },
4749
+ "input": {
4750
+ "$type": "typography",
4751
+ "$value": "{typography.fontStyle.input}"
4752
+ }
4753
+ },
4754
+ "lineHeight": {
4755
+ "$type": "lineHeights",
4756
+ "$value": "{typography.lineHeight.xlarge}"
4757
+ },
4758
+ "density": {
4759
+ "compact": {
4760
+ "$type": "spacing",
4761
+ "$value": "{spacing.none}"
4762
+ },
4763
+ "regular": {
4764
+ "$type": "spacing",
4765
+ "$value": "{spacing.adjust.01}"
4766
+ },
4767
+ "spacious": {
4768
+ "$type": "spacing",
4769
+ "$value": "{spacing.layout.01}"
4770
+ }
4771
+ },
4772
+ "readonly": {
4694
4773
  "color": {
4695
- "surface": {
4696
- "$type": "color",
4697
- "$value": "{state.error.color.main}"
4698
- },
4699
4774
  "read": {
4775
+ "main": {
4776
+ "$type": "color",
4777
+ "$value": "{color.read.main.alternative}"
4778
+ },
4779
+ "contrast": {
4780
+ "$type": "color",
4781
+ "$value": "{color.read.contrast.alternative}"
4782
+ }
4783
+ },
4784
+ "surface": {
4700
4785
  "$type": "color",
4701
- "$value": "{state.error.color.read.main}"
4786
+ "$value": "transparent"
4702
4787
  }
4788
+ },
4789
+ "borderWidth": {
4790
+ "$type": "borderWidth",
4791
+ "$value": "{surface.borderWidth.none}"
4703
4792
  }
4704
4793
  },
4705
- "global": {
4706
- "gap": {
4707
- "spacing": {
4708
- "$type": "spacing",
4709
- "$value": "{spacing.layout.01}"
4794
+ "hover": {
4795
+ "color": {
4796
+ "$type": "color",
4797
+ "$value": "{state.hover.color.main.read}"
4798
+ },
4799
+ "easing": {
4800
+ "in": {
4801
+ "$type": "easing",
4802
+ "$value": "{state.hover.easing.in}"
4803
+ },
4804
+ "out": {
4805
+ "$type": "easing",
4806
+ "$value": "{state.hover.easing.out}"
4710
4807
  }
4711
4808
  },
4712
- "padding": {
4713
- "spacing": {
4714
- "$type": "spacing",
4715
- "$value": "{spacing.layout.02}"
4809
+ "duration": {
4810
+ "in": {
4811
+ "$type": "duration",
4812
+ "$value": "{state.hover.duration.in}"
4813
+ },
4814
+ "out": {
4815
+ "$type": "duration",
4816
+ "$value": "{state.hover.duration.out}"
4716
4817
  }
4717
4818
  }
4718
4819
  },
4719
- "rounder": {
4720
- "$type": "borderRadius",
4721
- "$value": "{surface.rounder.small}"
4722
- },
4723
- "contextual": {
4724
- "gap": {
4725
- "spacing": {
4726
- "$type": "spacing",
4727
- "$value": "{spacing.adjust.01}"
4820
+ "pressed": {
4821
+ "shadowStyle": {
4822
+ "$type": "boxShadow",
4823
+ "$value": "{state.pressed.shadowStyle}"
4824
+ },
4825
+ "easing": {
4826
+ "in": {
4827
+ "$type": "easing",
4828
+ "$value": "{state.pressed.easing.in}"
4829
+ },
4830
+ "out": {
4831
+ "$type": "easing",
4832
+ "$value": "{state.pressed.easing.out}"
4728
4833
  }
4729
4834
  },
4730
- "padding": {
4731
- "spacing": {
4732
- "$type": "spacing",
4733
- "$value": "{spacing.adjust.01}"
4835
+ "duration": {
4836
+ "in": {
4837
+ "$type": "duration",
4838
+ "$value": "{state.pressed.duration.in}"
4839
+ },
4840
+ "out": {
4841
+ "$type": "duration",
4842
+ "$value": "{state.pressed.duration.out}"
4734
4843
  }
4735
4844
  }
4736
4845
  },
4737
- "toast": {
4738
- "gap": {
4739
- "spacing": {
4740
- "$type": "spacing",
4741
- "$value": "{spacing.layout.01}"
4846
+ "focus": {
4847
+ "borderStyle": {
4848
+ "$type": "border",
4849
+ "$value": "{state.focus.borderStyle.low.main}"
4850
+ },
4851
+ "easing": {
4852
+ "in": {
4853
+ "$type": "easing",
4854
+ "$value": "{state.focus.easing.in}"
4855
+ },
4856
+ "out": {
4857
+ "$type": "easing",
4858
+ "$value": "{state.focus.easing.out}"
4742
4859
  }
4743
4860
  },
4744
- "padding": {
4745
- "spacing": {
4746
- "$type": "spacing",
4747
- "$value": "{spacing.layout.01}"
4861
+ "duration": {
4862
+ "in": {
4863
+ "$type": "duration",
4864
+ "$value": "{state.focus.duration.in}"
4865
+ },
4866
+ "out": {
4867
+ "$type": "duration",
4868
+ "$value": "{state.focus.duration.out}"
4748
4869
  }
4749
4870
  }
4871
+ },
4872
+ "disabled": {
4873
+ "color": {
4874
+ "$type": "color",
4875
+ "$value": "{state.disabled.color.main}"
4876
+ },
4877
+ "opacity": {
4878
+ "$type": "opacity",
4879
+ "$value": "{state.disabled.opacity}"
4880
+ }
4750
4881
  }
4751
4882
  }
4752
4883
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govbr-ds/tokens",
3
- "version": "4.0.0-next.14",
3
+ "version": "4.0.0-next.15",
4
4
  "type": "module",
5
5
  "description": "Tokens do Padrão Digital de Governo",
6
6
  "keywords": [
@@ -0,0 +1,24 @@
1
+ {
2
+ "divider": {
3
+ "spacing": {
4
+ "gap": {
5
+ "$type": "number",
6
+ "$value": "{spacing.layout.01}"
7
+ }
8
+ },
9
+ "density": {
10
+ "compact": {
11
+ "$type": "number",
12
+ "$value": "{spacing.layout.02}"
13
+ },
14
+ "regular": {
15
+ "$type": "number",
16
+ "$value": "{spacing.layout.05}"
17
+ },
18
+ "spacious": {
19
+ "$type": "number",
20
+ "$value": "{spacing.layout.07}"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,156 @@
1
+ {
2
+ "input": {
3
+ "color": {
4
+ "read": {
5
+ "placeholder": {
6
+ "$type": "color",
7
+ "$value": "{color.read.main.alternative}"
8
+ },
9
+ "input": {
10
+ "$type": "color",
11
+ "$value": "{color.read.main.base}"
12
+ }
13
+ },
14
+ "surface": {
15
+ "base": {
16
+ "$type": "color",
17
+ "$value": "{color.surface.main.base}"
18
+ },
19
+ "alternative": {
20
+ "$type": "color",
21
+ "$value": "{color.surface.main.alternative}"
22
+ }
23
+ }
24
+ },
25
+ "rounder": {
26
+ "$type": "number",
27
+ "$value": "{surface.rounder.small}"
28
+ },
29
+ "spacing": {
30
+ "padding": {
31
+ "$type": "number",
32
+ "$value": "{spacing.layout.01}"
33
+ },
34
+ "gap": {
35
+ "$type": "number",
36
+ "$value": "{spacing.layout.01}"
37
+ }
38
+ },
39
+ "density": {
40
+ "compact": {
41
+ "$type": "number",
42
+ "$value": "{spacing.none}"
43
+ },
44
+ "regular": {
45
+ "$type": "number",
46
+ "$value": "{spacing.adjust.01}"
47
+ },
48
+ "spacious": {
49
+ "$type": "number",
50
+ "$value": "{spacing.layout.01}"
51
+ }
52
+ },
53
+ "readonly": {
54
+ "color": {
55
+ "read": {
56
+ "main": {
57
+ "$type": "color",
58
+ "$value": "{color.read.main.alternative}"
59
+ },
60
+ "contrast": {
61
+ "$type": "color",
62
+ "$value": "{color.read.contrast.alternative}"
63
+ }
64
+ },
65
+ "surface": {
66
+ "$type": "color",
67
+ "$value": "transparent"
68
+ }
69
+ },
70
+ "borderWidth": {
71
+ "$type": "number",
72
+ "$value": "{surface.borderWidth.none}"
73
+ }
74
+ },
75
+ "hover": {
76
+ "color": {
77
+ "$type": "color",
78
+ "$value": "{state.hover.color.main.read}"
79
+ },
80
+ "easing": {
81
+ "in": {
82
+ "$type": "string",
83
+ "$value": "{state.hover.easing.in}"
84
+ },
85
+ "out": {
86
+ "$type": "string",
87
+ "$value": "{state.hover.easing.out}"
88
+ }
89
+ },
90
+ "duration": {
91
+ "in": {
92
+ "$type": "duration",
93
+ "$value": "{state.hover.duration.in}"
94
+ },
95
+ "out": {
96
+ "$type": "duration",
97
+ "$value": "{state.hover.duration.out}"
98
+ }
99
+ }
100
+ },
101
+ "pressed": {
102
+ "easing": {
103
+ "in": {
104
+ "$type": "string",
105
+ "$value": "{state.pressed.easing.in}"
106
+ },
107
+ "out": {
108
+ "$type": "string",
109
+ "$value": "{state.pressed.easing.out}"
110
+ }
111
+ },
112
+ "duration": {
113
+ "in": {
114
+ "$type": "duration",
115
+ "$value": "{state.pressed.duration.in}"
116
+ },
117
+ "out": {
118
+ "$type": "duration",
119
+ "$value": "{state.pressed.duration.out}"
120
+ }
121
+ }
122
+ },
123
+ "disabled": {
124
+ "color": {
125
+ "$type": "color",
126
+ "$value": "{state.disabled.color.main}"
127
+ },
128
+ "opacity": {
129
+ "$type": "number",
130
+ "$value": "{state.disabled.opacity}"
131
+ }
132
+ },
133
+ "focus": {
134
+ "easing": {
135
+ "in": {
136
+ "$type": "string",
137
+ "$value": "{state.focus.easing.in}"
138
+ },
139
+ "out": {
140
+ "$type": "string",
141
+ "$value": "{state.focus.easing.out}"
142
+ }
143
+ },
144
+ "duration": {
145
+ "in": {
146
+ "$type": "duration",
147
+ "$value": "{state.focus.duration.in}"
148
+ },
149
+ "out": {
150
+ "$type": "duration",
151
+ "$value": "{state.focus.duration.out}"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
@@ -7,13 +7,19 @@
7
7
  "text.json",
8
8
  "icon.json",
9
9
  "button.json",
10
- "formlabel.json"
10
+ "formlabel.json",
11
+ "divider.json",
12
+ "message.json",
13
+ "input.json"
11
14
  ],
12
15
  "Base14": [
13
16
  "text.json",
14
17
  "icon.json",
15
18
  "button.json",
16
19
  "formlabel.json",
20
+ "divider.json",
21
+ "message.json",
22
+ "input.json",
17
23
  "base14.json"
18
24
  ]
19
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
+ }