@govbr-ds/tokens 4.0.0-next.12 → 4.0.0-next.14

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 (51) hide show
  1. package/dist/css/component/button.css +57 -0
  2. package/dist/css/component/divider.css +12 -0
  3. package/dist/css/component/formlabel.css +6 -0
  4. package/dist/css/component/icon.css +35 -0
  5. package/dist/css/component/message.css +22 -0
  6. package/dist/css/component/text.css +17 -0
  7. package/dist/css/themes/dark.css +10 -10
  8. package/dist/css/themes/light.css +10 -10
  9. package/dist/css/tokens.css +101 -96
  10. package/dist/js/component/button.js +56 -0
  11. package/dist/js/component/divider.js +10 -0
  12. package/dist/js/component/formlabel.js +4 -0
  13. package/dist/js/component/icon.js +33 -0
  14. package/dist/js/component/message.js +23 -0
  15. package/dist/js/component/text.js +15 -0
  16. package/dist/js/themes/dark.js +10 -10
  17. package/dist/js/themes/light.js +10 -10
  18. package/dist/js/tokens.js +101 -96
  19. package/dist/json/component/button.json +1447 -0
  20. package/dist/json/component/divider.json +302 -0
  21. package/dist/json/component/formlabel.json +117 -0
  22. package/dist/json/component/icon.json +911 -0
  23. package/dist/json/component/message.json +601 -0
  24. package/dist/json/component/text.json +455 -0
  25. package/dist/json/themes/dark.json +170 -170
  26. package/dist/json/themes/light.json +168 -168
  27. package/dist/json/tokens.json +782 -625
  28. package/dist/scss/component/button.scss +55 -0
  29. package/dist/scss/component/divider.scss +10 -0
  30. package/dist/scss/component/formlabel.scss +4 -0
  31. package/dist/scss/component/icon.scss +33 -0
  32. package/dist/scss/component/message.scss +20 -0
  33. package/dist/scss/component/text.scss +15 -0
  34. package/dist/scss/themes/dark.scss +10 -10
  35. package/dist/scss/themes/light.scss +10 -10
  36. package/dist/scss/tokens.scss +101 -96
  37. package/dist/tokens-studio/tokens.json +648 -224
  38. package/package.json +1 -1
  39. package/src/figma/component/button.json +266 -0
  40. package/src/figma/component/formlabel.json +24 -0
  41. package/src/figma/component/icon.json +50 -110
  42. package/src/figma/component/manifest.json +5 -1
  43. package/src/figma/dark.json +2 -2
  44. package/src/figma/iconography.json +68 -68
  45. package/src/figma/light.json +2 -2
  46. package/src/figma/state.json +30 -2
  47. package/src/temp/component.json +541 -145
  48. package/src/temp/core.json +105 -77
  49. package/src/temp/dark.json +1 -1
  50. package/src/temp/light.json +1 -1
  51. package/src/tokens.json +648 -224
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govbr-ds/tokens",
3
- "version": "4.0.0-next.12",
3
+ "version": "4.0.0-next.14",
4
4
  "type": "module",
5
5
  "description": "Tokens do Padrão Digital de Governo",
6
6
  "keywords": [
@@ -0,0 +1,266 @@
1
+ {
2
+ "button": {
3
+ "rounder": {
4
+ "$type": "number",
5
+ "$value": "{surface.rounder.full}"
6
+ },
7
+ "spacing": {
8
+ "gap": {
9
+ "$type": "number",
10
+ "$value": "{spacing.layout.01}"
11
+ },
12
+ "padding": {
13
+ "$type": "number",
14
+ "$value": "{spacing.layout.02}"
15
+ }
16
+ },
17
+ "density": {
18
+ "regular": {
19
+ "$type": "number",
20
+ "$value": "{spacing.layout.01}"
21
+ },
22
+ "compact": {
23
+ "$type": "number",
24
+ "$value": "{spacing.adjust.01}"
25
+ },
26
+ "spacious": {
27
+ "$type": "number",
28
+ "$value": "{spacing.adjust.02}"
29
+ }
30
+ },
31
+ "color": {
32
+ "read": {
33
+ "main": {
34
+ "primary": {
35
+ "$type": "color",
36
+ "$value": "{state.interactive.color.read.main}"
37
+ },
38
+ "secondary": {
39
+ "$type": "color",
40
+ "$value": "{state.interactive.color.main}"
41
+ },
42
+ "tertiary": {
43
+ "$type": "color",
44
+ "$value": "{state.interactive.color.main}"
45
+ }
46
+ },
47
+ "contrast": {
48
+ "primary": {
49
+ "$type": "color",
50
+ "$value": "{state.interactive.color.read.contrast}"
51
+ },
52
+ "secondary": {
53
+ "$type": "color",
54
+ "$value": "{state.interactive.color.contrast}"
55
+ },
56
+ "tertiary": {
57
+ "$type": "color",
58
+ "$value": "{state.interactive.color.contrast}"
59
+ }
60
+ }
61
+ },
62
+ "surface": {
63
+ "main": {
64
+ "primary": {
65
+ "$type": "color",
66
+ "$value": "{state.interactive.color.main}"
67
+ },
68
+ "secondary": {
69
+ "$type": "color",
70
+ "$value": "transparent"
71
+ },
72
+ "tertiary": {
73
+ "$type": "color",
74
+ "$value": "transparent"
75
+ }
76
+ },
77
+ "contrast": {
78
+ "primary": {
79
+ "$type": "color",
80
+ "$value": "{state.interactive.color.contrast}"
81
+ },
82
+ "secondary": {
83
+ "$type": "color",
84
+ "$value": "transparent"
85
+ },
86
+ "tertiary": {
87
+ "$type": "color",
88
+ "$value": "transparent"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "hover": {
94
+ "color": {
95
+ "main": {
96
+ "surface": {
97
+ "$type": "color",
98
+ "$value": "{state.hover.color.main.surface}"
99
+ },
100
+ "read": {
101
+ "$type": "color",
102
+ "$value": "{state.hover.color.main.read}"
103
+ }
104
+ },
105
+ "contrast": {
106
+ "surface": {
107
+ "$type": "color",
108
+ "$value": "{state.hover.color.contrast.surface}"
109
+ },
110
+ "read": {
111
+ "$type": "color",
112
+ "$value": "{state.hover.color.contrast.read}"
113
+ }
114
+ }
115
+ },
116
+ "easing": {
117
+ "in": {
118
+ "$type": "string",
119
+ "$value": "{state.hover.easing.in}"
120
+ },
121
+ "out": {
122
+ "$type": "string",
123
+ "$value": "{state.hover.easing.out}"
124
+ }
125
+ },
126
+ "duration": {
127
+ "in": {
128
+ "$type": "duration",
129
+ "$value": "{state.hover.duration.in}"
130
+ },
131
+ "out": {
132
+ "$type": "duration",
133
+ "$value": "{state.hover.duration.out}"
134
+ }
135
+ }
136
+ },
137
+ "pressed": {
138
+ "easing": {
139
+ "in": {
140
+ "$type": "string",
141
+ "$value": "{state.pressed.easing.in}"
142
+ },
143
+ "out": {
144
+ "$type": "string",
145
+ "$value": "{state.pressed.easing.out}"
146
+ }
147
+ },
148
+ "duration": {
149
+ "in": {
150
+ "$type": "duration",
151
+ "$value": "{state.pressed.duration.in}"
152
+ },
153
+ "out": {
154
+ "$type": "duration",
155
+ "$value": "{state.pressed.duration.out}"
156
+ }
157
+ }
158
+ },
159
+ "disabled": {
160
+ "color": {
161
+ "main": {
162
+ "$type": "color",
163
+ "$value": "{state.disabled.color.main}"
164
+ },
165
+ "contrast": {
166
+ "$type": "color",
167
+ "$value": "{state.disabled.color.contrast}"
168
+ }
169
+ },
170
+ "opacity": {
171
+ "$type": "number",
172
+ "$value": "{state.disabled.opacity}"
173
+ }
174
+ },
175
+ "active": {
176
+ "color": {
177
+ "main": {
178
+ "$type": "color",
179
+ "$value": "{state.active.color.main}"
180
+ },
181
+ "contrast": {
182
+ "$type": "color",
183
+ "$value": "{state.active.color.contrast}"
184
+ },
185
+ "read": {
186
+ "main": {
187
+ "$type": "color",
188
+ "$value": "{state.active.color.read.main}"
189
+ },
190
+ "contrast": {
191
+ "$type": "color",
192
+ "$value": "{state.active.color.read.contrast}"
193
+ }
194
+ }
195
+ },
196
+ "easing": {
197
+ "in": {
198
+ "$type": "string",
199
+ "$value": "{state.active.easing.in}"
200
+ },
201
+ "out": {
202
+ "$type": "string",
203
+ "$value": "{state.active.easing.out}"
204
+ }
205
+ },
206
+ "duration": {
207
+ "in": {
208
+ "$type": "duration",
209
+ "$value": "{state.active.duration.in}"
210
+ },
211
+ "out": {
212
+ "$type": "duration",
213
+ "$value": "{state.active.duration.out}"
214
+ }
215
+ }
216
+ },
217
+ "cta": {
218
+ "color": {
219
+ "main": {
220
+ "$type": "color",
221
+ "$value": "{state.cta.color.main}"
222
+ },
223
+ "contrast": {
224
+ "$type": "color",
225
+ "$value": "{state.cta.color.contrast}"
226
+ },
227
+ "read": {
228
+ "main": {
229
+ "$type": "color",
230
+ "$value": "{state.cta.color.read.main}"
231
+ },
232
+ "contrast": {
233
+ "$type": "color",
234
+ "$value": "{state.cta.color.read.contrast}"
235
+ }
236
+ }
237
+ }
238
+ },
239
+ "focus": {
240
+ "spacing": {
241
+ "$type": "number",
242
+ "$value": "{state.focus.spacing}"
243
+ },
244
+ "easing": {
245
+ "in": {
246
+ "$type": "string",
247
+ "$value": "{state.focus.easing.in}"
248
+ },
249
+ "out": {
250
+ "$type": "string",
251
+ "$value": "{state.focus.easing.out}"
252
+ }
253
+ },
254
+ "duration": {
255
+ "in": {
256
+ "$type": "duration",
257
+ "$value": "{state.focus.duration.in}"
258
+ },
259
+ "out": {
260
+ "$type": "duration",
261
+ "$value": "{state.focus.duration.out}"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "formlabel": {
3
+ "spacing": {
4
+ "gap": {
5
+ "$type": "number",
6
+ "$value": "{spacing.layout.01}"
7
+ }
8
+ },
9
+ "color": {
10
+ "main": {
11
+ "helpertext": {
12
+ "$type": "color",
13
+ "$value": "{color.read.main.alternative}"
14
+ }
15
+ },
16
+ "contrast": {
17
+ "helpertext": {
18
+ "$type": "color",
19
+ "$value": "{color.read.contrast.alternative}"
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -81,120 +81,60 @@
81
81
  }
82
82
  },
83
83
  "size": {
84
- "min": {
85
- "default": {
84
+ "default": {
85
+ "$type": "dimension",
86
+ "$value": "20"
87
+ },
88
+ "up": {
89
+ "01": {
90
+ "$type": "dimension",
91
+ "$value": "22.5"
92
+ },
93
+ "02": {
94
+ "$type": "dimension",
95
+ "$value": "25.32"
96
+ },
97
+ "03": {
98
+ "$type": "dimension",
99
+ "$value": "28.48"
100
+ },
101
+ "04": {
102
+ "$type": "dimension",
103
+ "$value": "32.04"
104
+ },
105
+ "05": {
106
+ "$type": "dimension",
107
+ "$value": "36.04"
108
+ },
109
+ "06": {
86
110
  "$type": "dimension",
87
- "$value": "{icon.fontSize.default}"
88
- },
89
- "up": {
90
- "01": {
91
- "$type": "dimension",
92
- "$value": "{icon.fontSize.up.01}"
93
- },
94
- "02": {
95
- "$type": "dimension",
96
- "$value": "{icon.fontSize.up.02}"
97
- },
98
- "03": {
99
- "$type": "dimension",
100
- "$value": "{icon.fontSize.up.03}"
101
- },
102
- "04": {
103
- "$type": "dimension",
104
- "$value": "{icon.fontSize.up.04}"
105
- },
106
- "05": {
107
- "$type": "dimension",
108
- "$value": "{icon.fontSize.up.05}"
109
- },
110
- "06": {
111
- "$type": "dimension",
112
- "$value": "{icon.fontSize.up.06}"
113
- },
114
- "07": {
115
- "$type": "dimension",
116
- "$value": "{icon.fontSize.up.07}"
117
- },
118
- "08": {
119
- "$type": "dimension",
120
- "$value": "{icon.fontSize.up.08}"
121
- }
122
- },
123
- "down": {
124
- "01": {
125
- "$type": "dimension",
126
- "$value": "{icon.fontSize.down.01}"
127
- },
128
- "02": {
129
- "$type": "dimension",
130
- "$value": "{icon.fontSize.down.02}"
131
- },
132
- "03": {
133
- "$type": "dimension",
134
- "$value": "{icon.fontSize.down.03}"
135
- },
136
- "04": {
137
- "$type": "dimension",
138
- "$value": "{icon.fontSize.down.04}"
139
- }
111
+ "$value": "40.54"
112
+ },
113
+ "07": {
114
+ "$type": "dimension",
115
+ "$value": "45.62"
116
+ },
117
+ "08": {
118
+ "$type": "dimension",
119
+ "$value": "51.32"
140
120
  }
141
121
  },
142
- "max": {
143
- "default": {
122
+ "down": {
123
+ "01": {
124
+ "$type": "dimension",
125
+ "$value": "17.78"
126
+ },
127
+ "02": {
128
+ "$type": "dimension",
129
+ "$value": "15.8"
130
+ },
131
+ "03": {
132
+ "$type": "dimension",
133
+ "$value": "14.04"
134
+ },
135
+ "04": {
144
136
  "$type": "dimension",
145
- "$value": "20"
146
- },
147
- "up": {
148
- "01": {
149
- "$type": "dimension",
150
- "$value": "22.5"
151
- },
152
- "02": {
153
- "$type": "dimension",
154
- "$value": "25.32"
155
- },
156
- "03": {
157
- "$type": "dimension",
158
- "$value": "28.48"
159
- },
160
- "04": {
161
- "$type": "dimension",
162
- "$value": "32.04"
163
- },
164
- "05": {
165
- "$type": "dimension",
166
- "$value": "36.04"
167
- },
168
- "06": {
169
- "$type": "dimension",
170
- "$value": "40.54"
171
- },
172
- "07": {
173
- "$type": "dimension",
174
- "$value": "45.62"
175
- },
176
- "08": {
177
- "$type": "dimension",
178
- "$value": "51.32"
179
- }
180
- },
181
- "down": {
182
- "01": {
183
- "$type": "dimension",
184
- "$value": "17.78"
185
- },
186
- "02": {
187
- "$type": "dimension",
188
- "$value": "15.8"
189
- },
190
- "03": {
191
- "$type": "dimension",
192
- "$value": "14.04"
193
- },
194
- "04": {
195
- "$type": "dimension",
196
- "$value": "12.48"
197
- }
137
+ "$value": "12.48"
198
138
  }
199
139
  }
200
140
  }
@@ -5,11 +5,15 @@
5
5
  "modes": {
6
6
  "Base16": [
7
7
  "text.json",
8
- "icon.json"
8
+ "icon.json",
9
+ "button.json",
10
+ "formlabel.json"
9
11
  ],
10
12
  "Base14": [
11
13
  "text.json",
12
14
  "icon.json",
15
+ "button.json",
16
+ "formlabel.json",
13
17
  "base14.json"
14
18
  ]
15
19
  }
@@ -226,7 +226,7 @@
226
226
  }
227
227
  }
228
228
  },
229
- "grabbing": {
229
+ "dragging": {
230
230
  "color": {
231
231
  "main": {
232
232
  "$value": "{state.interactive.color.main}",
@@ -349,4 +349,4 @@
349
349
  }
350
350
  }
351
351
  }
352
- }
352
+ }