@govbr-ds/tokens 4.0.0-next.2 → 4.0.0-next.20

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 (112) hide show
  1. package/README.md +69 -106
  2. package/dist/css/component/avatar.css +37 -0
  3. package/dist/css/component/button.css +57 -0
  4. package/dist/css/component/checkbox.css +46 -0
  5. package/dist/css/component/checkboxGroup.css +7 -0
  6. package/dist/css/component/divider.css +12 -0
  7. package/dist/css/component/formlabel.css +6 -0
  8. package/dist/css/component/icon.css +35 -0
  9. package/dist/css/component/input.css +37 -0
  10. package/dist/css/component/list.css +54 -0
  11. package/dist/css/component/message.css +17 -0
  12. package/dist/css/component/radioGroup.css +39 -0
  13. package/dist/css/component/select.css +9 -0
  14. package/dist/css/component/text.css +17 -0
  15. package/dist/css/themes/dark.css +69 -52
  16. package/dist/css/themes/light.css +69 -52
  17. package/dist/css/tokens.css +676 -516
  18. package/dist/js/component/avatar.js +36 -0
  19. package/dist/js/component/button.js +56 -0
  20. package/dist/js/component/checkbox.js +45 -0
  21. package/dist/js/component/checkboxGroup.js +5 -0
  22. package/dist/js/component/divider.js +10 -0
  23. package/dist/js/component/formlabel.js +4 -0
  24. package/dist/js/component/icon.js +33 -0
  25. package/dist/js/component/input.js +35 -0
  26. package/dist/js/component/list.js +52 -0
  27. package/dist/js/component/message.js +17 -0
  28. package/dist/js/component/radioGroup.js +38 -0
  29. package/dist/js/component/select.js +8 -0
  30. package/dist/js/component/text.js +15 -0
  31. package/dist/js/themes/dark.js +77 -52
  32. package/dist/js/themes/light.js +77 -52
  33. package/dist/js/tokens.js +700 -531
  34. package/dist/json/component/avatar.json +907 -0
  35. package/dist/json/component/button.json +1447 -0
  36. package/dist/json/component/checkbox.json +1132 -0
  37. package/dist/json/component/checkboxGroup.json +169 -0
  38. package/dist/json/component/divider.json +302 -0
  39. package/dist/json/component/formlabel.json +117 -0
  40. package/dist/json/component/icon.json +911 -0
  41. package/dist/json/component/input.json +907 -0
  42. package/dist/json/component/list.json +1394 -0
  43. package/dist/json/component/message.json +441 -0
  44. package/dist/json/component/radioGroup.json +963 -0
  45. package/dist/json/component/select.json +207 -0
  46. package/dist/json/component/text.json +455 -0
  47. package/dist/json/themes/dark.json +1597 -856
  48. package/dist/json/themes/light.json +1597 -856
  49. package/dist/json/tokens.json +13699 -5459
  50. package/dist/scss/component/avatar.scss +35 -0
  51. package/dist/scss/component/button.scss +55 -0
  52. package/dist/scss/component/checkbox.scss +44 -0
  53. package/dist/scss/component/checkboxGroup.scss +5 -0
  54. package/dist/scss/component/divider.scss +10 -0
  55. package/dist/scss/component/formlabel.scss +4 -0
  56. package/dist/scss/component/icon.scss +33 -0
  57. package/dist/scss/component/input.scss +35 -0
  58. package/dist/scss/component/list.scss +52 -0
  59. package/dist/scss/component/message.scss +15 -0
  60. package/dist/scss/component/radioGroup.scss +37 -0
  61. package/dist/scss/component/select.scss +7 -0
  62. package/dist/scss/component/text.scss +15 -0
  63. package/dist/scss/themes/dark.scss +69 -0
  64. package/dist/scss/themes/light.scss +69 -0
  65. package/dist/scss/tokens.scss +817 -0
  66. package/dist/tokens-studio/tokens.json +6554 -0
  67. package/package.json +15 -12
  68. package/src/figma/base14.json +62 -0
  69. package/src/figma/{variables/color.json → color.json} +1 -1
  70. package/src/figma/component/avatar.json +156 -0
  71. package/src/figma/component/base14.json +94 -0
  72. package/src/figma/component/button.json +266 -0
  73. package/src/figma/component/divider.json +24 -0
  74. package/src/figma/component/formlabel.json +24 -0
  75. package/src/figma/component/icon.json +142 -0
  76. package/src/figma/component/input.json +156 -0
  77. package/src/figma/component/manifest.json +30 -0
  78. package/src/figma/component/message.json +70 -0
  79. package/src/figma/component/text.json +56 -0
  80. package/src/figma/dark.json +352 -0
  81. package/src/figma/elevation.json +234 -0
  82. package/src/figma/{variables/grid.json → grid.json} +29 -29
  83. package/src/figma/guideline/componente.json +24 -0
  84. package/src/figma/guideline/fundamento.json +24 -0
  85. package/src/figma/guideline/geral.json +20 -0
  86. package/src/figma/guideline/manifest.json +12 -0
  87. package/src/figma/guideline/padrao.json +24 -0
  88. package/src/figma/iconography.json +352 -0
  89. package/src/figma/light.json +352 -0
  90. package/src/figma/manifest.json +42 -0
  91. package/src/figma/motion.json +112 -0
  92. package/src/figma/pattern/form.json +16 -0
  93. package/src/figma/pattern/manifest.json +10 -0
  94. package/src/figma/pattern/skeleton.json +52 -0
  95. package/src/figma/{variables/spacing.json → spacing.json} +20 -0
  96. package/src/figma/state.json +260 -0
  97. package/src/figma/{variables/surface.json → surface.json} +34 -38
  98. package/src/figma/{variables/typography.json → typography.json} +10 -46
  99. package/src/temp/component.json +1895 -0
  100. package/src/temp/core.json +3883 -0
  101. package/src/temp/dark.json +352 -0
  102. package/src/temp/light.json +352 -0
  103. package/src/temp/pattern.json +70 -0
  104. package/src/tokens.json +6554 -0
  105. package/dist/scss/_tokens.scss +0 -662
  106. package/dist/scss/themes/_dark.scss +0 -55
  107. package/dist/scss/themes/_light.scss +0 -55
  108. package/src/figma/tokens.json +0 -3513
  109. package/src/figma/variables/manifest.json +0 -26
  110. package/src/style-dictionary/themes/dark.json +0 -3239
  111. package/src/style-dictionary/themes/light.json +0 -3239
  112. package/src/style-dictionary/tokens.json +0 -2971
@@ -0,0 +1,352 @@
1
+ {
2
+ "elevation": {
3
+ "opacity": {
4
+ "shadow": {
5
+ "$value": "{elevation.opacity.dim}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "color": {
10
+ "shadow": {
11
+ "$value": "#00000099",
12
+ "$type": "color"
13
+ }
14
+ }
15
+ },
16
+ "color": {
17
+ "read": {
18
+ "main": {
19
+ "base": {
20
+ "$value": "{color.gray.1}",
21
+ "$type": "color"
22
+ },
23
+ "alternative": {
24
+ "$value": "{color.gray.20}",
25
+ "$type": "color"
26
+ }
27
+ },
28
+ "contrast": {
29
+ "base": {
30
+ "$value": "{color.read.main.base}",
31
+ "$type": "color"
32
+ },
33
+ "alternative": {
34
+ "$value": "{color.read.main.alternative}",
35
+ "$type": "color"
36
+ }
37
+ }
38
+ },
39
+ "surface": {
40
+ "main": {
41
+ "base": {
42
+ "$value": "{color.grayCool.80}",
43
+ "$type": "color"
44
+ },
45
+ "alternative": {
46
+ "$value": "{color.grayCool.90}",
47
+ "$type": "color"
48
+ }
49
+ },
50
+ "contrast": {
51
+ "base": {
52
+ "$value": "{color.surface.main.base}",
53
+ "$type": "color"
54
+ },
55
+ "alternative": {
56
+ "$value": "{color.surface.main.alternative}",
57
+ "$type": "color"
58
+ }
59
+ }
60
+ },
61
+ "border": {
62
+ "base": {
63
+ "$value": "{color.gray.70}",
64
+ "$type": "color"
65
+ },
66
+ "alternative": {
67
+ "$value": "{color.gray.50}",
68
+ "$type": "color"
69
+ }
70
+ }
71
+ },
72
+ "state": {
73
+ "interactive": {
74
+ "color": {
75
+ "main": {
76
+ "$value": "{color.blueWarmVivid.30}",
77
+ "$type": "color"
78
+ },
79
+ "contrast": {
80
+ "$value": "{state.interactive.color.main}",
81
+ "$type": "color"
82
+ },
83
+ "read": {
84
+ "main": {
85
+ "$value": "{color.pure.100}",
86
+ "$type": "color"
87
+ },
88
+ "contrast": {
89
+ "$value": "{state.interactive.color.read.main}",
90
+ "$type": "color"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "cta": {
96
+ "color": {
97
+ "main": {
98
+ "$value": "{color.greenCoolVivid.30}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{state.cta.color.main}",
103
+ "$type": "color"
104
+ },
105
+ "read": {
106
+ "main": {
107
+ "$value": "{color.pure.100}",
108
+ "$type": "color"
109
+ },
110
+ "contrast": {
111
+ "$value": "{state.cta.color.read.main}",
112
+ "$type": "color"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "disabled": {
118
+ "color": {
119
+ "main": {
120
+ "$value": "{color.grayCool.30}",
121
+ "$type": "color"
122
+ },
123
+ "contrast": {
124
+ "$value": "{state.disabled.color.main}",
125
+ "$type": "color"
126
+ }
127
+ }
128
+ },
129
+ "visited": {
130
+ "color": {
131
+ "main": {
132
+ "$value": "{color.blueWarm.30}",
133
+ "$type": "color"
134
+ },
135
+ "contrast": {
136
+ "$value": "{state.visited.color.main}",
137
+ "$type": "color"
138
+ }
139
+ }
140
+ },
141
+ "hover": {
142
+ "color": {
143
+ "bright": {
144
+ "$value": "#D4E5FF80",
145
+ "$type": "color"
146
+ },
147
+ "dim": {
148
+ "$value": "#0C326F99",
149
+ "$type": "color"
150
+ },
151
+ "main": {
152
+ "read": {
153
+ "$value": "{state.hover.color.dim}",
154
+ "$type": "color"
155
+ },
156
+ "surface": {
157
+ "$value": "{state.hover.color.bright}",
158
+ "$type": "color"
159
+ }
160
+ },
161
+ "contrast": {
162
+ "read": {
163
+ "$value": "{state.hover.color.main.read}",
164
+ "$type": "color"
165
+ },
166
+ "surface": {
167
+ "$value": "{state.hover.color.main.surface}",
168
+ "$type": "color"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "focus": {
174
+ "color": {
175
+ "main": {
176
+ "$value": "{color.orangeVivid.30}",
177
+ "$type": "color"
178
+ },
179
+ "contrast": {
180
+ "$value": "{state.focus.color.main}",
181
+ "$type": "color"
182
+ }
183
+ }
184
+ },
185
+ "active": {
186
+ "color": {
187
+ "main": {
188
+ "$value": "{color.blueWarmVivid.40}",
189
+ "$type": "color"
190
+ },
191
+ "contrast": {
192
+ "$value": "{state.active.color.main}",
193
+ "$type": "color"
194
+ },
195
+ "read": {
196
+ "main": {
197
+ "$value": "{color.pure.100}",
198
+ "$type": "color"
199
+ },
200
+ "contrast": {
201
+ "$value": "{state.active.color.read.main}",
202
+ "$type": "color"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "selected": {
208
+ "color": {
209
+ "main": {
210
+ "$value": "{color.blueWarmVivid.20}",
211
+ "$type": "color"
212
+ },
213
+ "contrast": {
214
+ "$value": "{state.selected.color.main}",
215
+ "$type": "color"
216
+ },
217
+ "read": {
218
+ "main": {
219
+ "$value": "{color.pure.100}",
220
+ "$type": "color"
221
+ },
222
+ "contrast": {
223
+ "$value": "{state.selected.color.read.main}",
224
+ "$type": "color"
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "dragging": {
230
+ "color": {
231
+ "main": {
232
+ "$value": "{state.interactive.color.main}",
233
+ "$type": "color"
234
+ },
235
+ "contrast": {
236
+ "$value": "{state.interactive.color.contrast}",
237
+ "$type": "color"
238
+ }
239
+ }
240
+ },
241
+ "dropzone": {
242
+ "color": {
243
+ "main": {
244
+ "$value": "{state.interactive.color.main}",
245
+ "$type": "color"
246
+ },
247
+ "contrast": {
248
+ "$value": "{state.interactive.color.contrast}",
249
+ "$type": "color"
250
+ }
251
+ }
252
+ },
253
+ "dropzoneActive": {
254
+ "color": {
255
+ "main": {
256
+ "$value": "{state.interactive.color.main}",
257
+ "$type": "color"
258
+ },
259
+ "contrast": {
260
+ "$value": "{state.interactive.color.contrast}",
261
+ "$type": "color"
262
+ }
263
+ }
264
+ },
265
+ "on": {
266
+ "color": {
267
+ "main": {
268
+ "$value": "{color.blueWarmVivid.60}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{state.on.color.main}",
273
+ "$type": "color"
274
+ },
275
+ "read": {
276
+ "main": {
277
+ "$value": "{color.pure.0}",
278
+ "$type": "color"
279
+ },
280
+ "contrast": {
281
+ "$value": "{state.on.color.read.main}",
282
+ "$type": "color"
283
+ }
284
+ }
285
+ }
286
+ },
287
+ "off": {
288
+ "color": {
289
+ "main": {
290
+ "$value": "{color.gray.60}",
291
+ "$type": "color"
292
+ },
293
+ "contrast": {
294
+ "$value": "{state.off.color.main}",
295
+ "$type": "color"
296
+ },
297
+ "read": {
298
+ "main": {
299
+ "$value": "{color.pure.0}",
300
+ "$type": "color"
301
+ },
302
+ "contrast": {
303
+ "$value": "{state.off.color.read.main}",
304
+ "$type": "color"
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "success": {
310
+ "color": {
311
+ "main": {
312
+ "$value": "{color.greenVivid.50}",
313
+ "$type": "color"
314
+ },
315
+ "read": {
316
+ "main": {
317
+ "$value": "{color.pure.0}",
318
+ "$type": "color"
319
+ }
320
+ }
321
+ }
322
+ },
323
+ "alert": {
324
+ "color": {
325
+ "main": {
326
+ "$value": "{color.yellowVivid.20}",
327
+ "$type": "color"
328
+ },
329
+ "read": {
330
+ "main": {
331
+ "$value": "{color.pure.100}",
332
+ "$type": "color"
333
+ }
334
+ }
335
+ }
336
+ },
337
+ "error": {
338
+ "color": {
339
+ "main": {
340
+ "$value": "{color.redVivid.50}",
341
+ "$type": "color"
342
+ },
343
+ "read": {
344
+ "main": {
345
+ "$value": "{color.pure.0}",
346
+ "$type": "color"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
@@ -0,0 +1,234 @@
1
+ {
2
+ "elevation": {
3
+ "color": {
4
+ "default": {
5
+ "$value": "{color.pure.100}",
6
+ "$type": "color"
7
+ }
8
+ },
9
+ "opacity": {
10
+ "bright": {
11
+ "$value": "{surface.opacity.20}",
12
+ "$type": "number"
13
+ },
14
+ "dim": {
15
+ "$value": "{surface.opacity.60}",
16
+ "$type": "number"
17
+ }
18
+ },
19
+ "offset": {
20
+ "none": {
21
+ "$value": "0",
22
+ "$type": "number"
23
+ },
24
+ "xsmall": {
25
+ "$value": "1",
26
+ "$type": "number"
27
+ },
28
+ "small": {
29
+ "$value": "4",
30
+ "$type": "number"
31
+ },
32
+ "medium": {
33
+ "$value": "8",
34
+ "$type": "number"
35
+ },
36
+ "large": {
37
+ "$value": "12",
38
+ "$type": "number"
39
+ },
40
+ "xlarge": {
41
+ "$value": "16",
42
+ "$type": "number"
43
+ }
44
+ },
45
+ "blur": {
46
+ "none": {
47
+ "$value": "0",
48
+ "$type": "dimension"
49
+ },
50
+ "xsmall": {
51
+ "$value": "1",
52
+ "$type": "dimension"
53
+ },
54
+ "small": {
55
+ "$value": "4",
56
+ "$type": "dimension"
57
+ },
58
+ "medium": {
59
+ "$value": "8",
60
+ "$type": "dimension"
61
+ },
62
+ "large": {
63
+ "$value": "12",
64
+ "$type": "dimension"
65
+ },
66
+ "xlarge": {
67
+ "$value": "16",
68
+ "$type": "dimension"
69
+ }
70
+ },
71
+ "level": {
72
+ "0": {
73
+ "offsetX": {
74
+ "cast": {
75
+ "$value": "{elevation.offset.none}",
76
+ "$type": "number"
77
+ },
78
+ "occlusion": {
79
+ "$value": "{elevation.offset.none}",
80
+ "$type": "number"
81
+ }
82
+ },
83
+ "offsetY": {
84
+ "cast": {
85
+ "$value": "{elevation.offset.none}",
86
+ "$type": "number"
87
+ },
88
+ "occlusion": {
89
+ "$value": "{elevation.offset.none}",
90
+ "$type": "number"
91
+ }
92
+ },
93
+ "blur": {
94
+ "cast": {
95
+ "$value": "{elevation.blur.none}",
96
+ "$type": "dimension"
97
+ },
98
+ "occlusion": {
99
+ "$value": "{elevation.blur.none}",
100
+ "$type": "dimension"
101
+ }
102
+ }
103
+ },
104
+ "1": {
105
+ "offsetX": {
106
+ "cast": {
107
+ "$value": "{elevation.offset.none}",
108
+ "$type": "number"
109
+ },
110
+ "occlusion": {
111
+ "$value": "{elevation.offset.none}",
112
+ "$type": "number"
113
+ }
114
+ },
115
+ "offsetY": {
116
+ "cast": {
117
+ "$value": "{elevation.offset.xsmall}",
118
+ "$type": "number"
119
+ },
120
+ "occlusion": {
121
+ "$value": "{elevation.offset.none}",
122
+ "$type": "number"
123
+ }
124
+ },
125
+ "blur": {
126
+ "cast": {
127
+ "$value": "{elevation.blur.xsmall}",
128
+ "$type": "dimension"
129
+ },
130
+ "occlusion": {
131
+ "$value": "{elevation.blur.small}",
132
+ "$type": "dimension"
133
+ }
134
+ }
135
+ },
136
+ "2": {
137
+ "offsetX": {
138
+ "cast": {
139
+ "$value": "{elevation.offset.none}",
140
+ "$type": "number"
141
+ },
142
+ "occlusion": {
143
+ "$value": "{elevation.offset.none}",
144
+ "$type": "number"
145
+ }
146
+ },
147
+ "offsetY": {
148
+ "cast": {
149
+ "$value": "{elevation.offset.small}",
150
+ "$type": "number"
151
+ },
152
+ "occlusion": {
153
+ "$value": "{elevation.offset.none}",
154
+ "$type": "number"
155
+ }
156
+ },
157
+ "blur": {
158
+ "cast": {
159
+ "$value": "{elevation.blur.small}",
160
+ "$type": "dimension"
161
+ },
162
+ "occlusion": {
163
+ "$value": "{elevation.blur.medium}",
164
+ "$type": "dimension"
165
+ }
166
+ }
167
+ },
168
+ "3": {
169
+ "offsetX": {
170
+ "cast": {
171
+ "$value": "{elevation.offset.none}",
172
+ "$type": "number"
173
+ },
174
+ "occlusion": {
175
+ "$value": "{elevation.offset.none}",
176
+ "$type": "number"
177
+ }
178
+ },
179
+ "offsetY": {
180
+ "cast": {
181
+ "$value": "{elevation.offset.medium}",
182
+ "$type": "number"
183
+ },
184
+ "occlusion": {
185
+ "$value": "{elevation.offset.none}",
186
+ "$type": "number"
187
+ }
188
+ },
189
+ "blur": {
190
+ "cast": {
191
+ "$value": "{elevation.blur.medium}",
192
+ "$type": "dimension"
193
+ },
194
+ "occlusion": {
195
+ "$value": "{elevation.blur.large}",
196
+ "$type": "dimension"
197
+ }
198
+ }
199
+ },
200
+ "4": {
201
+ "offsetX": {
202
+ "cast": {
203
+ "$value": "{elevation.offset.none}",
204
+ "$type": "number"
205
+ },
206
+ "occlusion": {
207
+ "$value": "{elevation.offset.none}",
208
+ "$type": "number"
209
+ }
210
+ },
211
+ "offsetY": {
212
+ "cast": {
213
+ "$value": "{elevation.offset.large}",
214
+ "$type": "number"
215
+ },
216
+ "occlusion": {
217
+ "$value": "{elevation.offset.none}",
218
+ "$type": "number"
219
+ }
220
+ },
221
+ "blur": {
222
+ "cast": {
223
+ "$value": "{elevation.blur.large}",
224
+ "$type": "dimension"
225
+ },
226
+ "occlusion": {
227
+ "$value": "{elevation.blur.xlarge}",
228
+ "$type": "dimension"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }