@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,260 @@
1
+ {
2
+ "state": {
3
+ "target": {
4
+ "minimum": {
5
+ "$value": "24",
6
+ "$type": "number"
7
+ },
8
+ "enhanced": {
9
+ "$value": "44",
10
+ "$type": "number"
11
+ }
12
+ },
13
+ "disabled": {
14
+ "opacity": {
15
+ "$value": "{surface.opacity.30}",
16
+ "$type": "number"
17
+ }
18
+ },
19
+ "hover": {
20
+ "opacity": {
21
+ "bright": {
22
+ "$value": "{surface.opacity.50}",
23
+ "$type": "number"
24
+ },
25
+ "dim": {
26
+ "$value": "{surface.opacity.60}",
27
+ "$type": "number"
28
+ }
29
+ },
30
+ "highlight": {
31
+ "size": {
32
+ "$value": "5%",
33
+ "$type": "dimension"
34
+ },
35
+ "easing": {
36
+ "$value": "{motion.easing.elasticOut}",
37
+ "$type": "string"
38
+ },
39
+ "duration": {
40
+ "$value": "{motion.duration.fast.04}",
41
+ "$type": "duration"
42
+ }
43
+ },
44
+ "easing": {
45
+ "in": {
46
+ "$value": "{motion.easing.easeIn}",
47
+ "$type": "string"
48
+ },
49
+ "out": {
50
+ "$value": "{motion.easing.easeIn}",
51
+ "$type": "string"
52
+ }
53
+ },
54
+ "duration": {
55
+ "in": {
56
+ "$value": "{motion.duration.fast.04}",
57
+ "$type": "duration"
58
+ },
59
+ "out": {
60
+ "$value": "{motion.duration.fast.02}",
61
+ "$type": "duration"
62
+ }
63
+ }
64
+ },
65
+ "pressed": {
66
+ "shadow": {
67
+ "offset": {
68
+ "$value": "{elevation.offset.xsmall}",
69
+ "$type": "number"
70
+ },
71
+ "blur": {
72
+ "$value": "{elevation.blur.medium}",
73
+ "$type": "dimension"
74
+ },
75
+ "opacity": {
76
+ "$value": "{surface.opacity.50}",
77
+ "$type": "number"
78
+ }
79
+ },
80
+ "easing": {
81
+ "in": {
82
+ "$value": "{motion.easing.easeInOut}",
83
+ "$type": "string"
84
+ },
85
+ "out": {
86
+ "$value": "{motion.easing.easeOut}",
87
+ "$type": "string"
88
+ }
89
+ },
90
+ "duration": {
91
+ "in": {
92
+ "$value": "{motion.duration.fast.02}",
93
+ "$type": "duration"
94
+ },
95
+ "out": {
96
+ "$value": "{motion.duration.fast.01}",
97
+ "$type": "duration"
98
+ }
99
+ }
100
+ },
101
+ "focus": {
102
+ "spacing": {
103
+ "$value": "{spacing.adjust.01}",
104
+ "$type": "number"
105
+ },
106
+ "borderWidth": {
107
+ "high": {
108
+ "$value": "{surface.borderWidth.large}",
109
+ "$type": "number"
110
+ },
111
+ "low": {
112
+ "$value": "{surface.borderWidth.medium}",
113
+ "$type": "number"
114
+ }
115
+ },
116
+ "easing": {
117
+ "in": {
118
+ "$value": "{motion.easing.elasticOut}",
119
+ "$type": "string"
120
+ },
121
+ "out": {
122
+ "$value": "{motion.easing.easeOut}",
123
+ "$type": "string"
124
+ }
125
+ },
126
+ "duration": {
127
+ "in": {
128
+ "$value": "{motion.duration.fast.04}",
129
+ "$type": "duration"
130
+ },
131
+ "out": {
132
+ "$value": "{motion.duration.fast.02}",
133
+ "$type": "duration"
134
+ }
135
+ }
136
+ },
137
+ "active": {
138
+ "borderWidth": {
139
+ "$value": "{surface.borderWidth.large}",
140
+ "$type": "number"
141
+ },
142
+ "easing": {
143
+ "in": {
144
+ "$value": "{motion.easing.easeOut}",
145
+ "$type": "string"
146
+ },
147
+ "out": {
148
+ "$value": "{motion.easing.easeIn}",
149
+ "$type": "string"
150
+ }
151
+ },
152
+ "duration": {
153
+ "in": {
154
+ "$value": "{motion.duration.fast.03}",
155
+ "$type": "duration"
156
+ },
157
+ "out": {
158
+ "$value": "{motion.duration.fast.02}",
159
+ "$type": "duration"
160
+ }
161
+ }
162
+ },
163
+ "selected": {
164
+ "easing": {
165
+ "in": {
166
+ "$value": "{motion.easing.easeOut}",
167
+ "$type": "string"
168
+ },
169
+ "out": {
170
+ "$value": "{motion.easing.easeIn}",
171
+ "$type": "string"
172
+ }
173
+ },
174
+ "duration": {
175
+ "in": {
176
+ "$value": "{motion.duration.fast.03}",
177
+ "$type": "duration"
178
+ },
179
+ "out": {
180
+ "$value": "{motion.duration.fast.02}",
181
+ "$type": "duration"
182
+ }
183
+ },
184
+ "iconName": {
185
+ "$type": "string",
186
+ "$value": "{iconography.iconName.feedback.selected}"
187
+ }
188
+ },
189
+ "dragging": {
190
+ "borderWidth": {
191
+ "$value": "{surface.borderWidth.medium}",
192
+ "$type": "number"
193
+ },
194
+ "rotation": {
195
+ "$value": "5",
196
+ "$type": "number"
197
+ },
198
+ "opacity": {
199
+ "$value": "{surface.opacity.70}",
200
+ "$type": "number"
201
+ }
202
+ },
203
+ "drag": {
204
+ "iconName": {
205
+ "$type": "string",
206
+ "$value": "{iconography.iconName.feedback.drag}"
207
+ }
208
+ },
209
+ "dropzone": {
210
+ "borderWidth": {
211
+ "$value": "{surface.borderWidth.small}",
212
+ "$type": "number"
213
+ }
214
+ },
215
+ "dropzoneActive": {
216
+ "opacity": {
217
+ "$value": "{surface.opacity.30}",
218
+ "$type": "number"
219
+ }
220
+ },
221
+ "on": {
222
+ "easing": {
223
+ "$value": "{motion.easing.bounceOut}",
224
+ "$type": "string"
225
+ },
226
+ "duration": {
227
+ "$value": "{motion.duration.fast.04}",
228
+ "$type": "duration"
229
+ }
230
+ },
231
+ "off": {
232
+ "easing": {
233
+ "$value": "{motion.easing.bounceOut}",
234
+ "$type": "string"
235
+ },
236
+ "duration": {
237
+ "$value": "{motion.duration.fast.04}",
238
+ "$type": "duration"
239
+ }
240
+ },
241
+ "error": {
242
+ "iconName": {
243
+ "$type": "string",
244
+ "$value": "{iconography.iconName.feedback.error}"
245
+ }
246
+ },
247
+ "alert": {
248
+ "iconName": {
249
+ "$type": "string",
250
+ "$value": "{iconography.iconName.feedback.alert}"
251
+ }
252
+ },
253
+ "success": {
254
+ "iconName": {
255
+ "$type": "string",
256
+ "$value": "{iconography.iconName.feedback.success}"
257
+ }
258
+ }
259
+ }
260
+ }
@@ -5,19 +5,15 @@
5
5
  "$value": "0",
6
6
  "$type": "number"
7
7
  },
8
- "01": {
8
+ "small": {
9
9
  "$value": "1",
10
10
  "$type": "number"
11
11
  },
12
- "02": {
12
+ "medium": {
13
13
  "$value": "2",
14
14
  "$type": "number"
15
15
  },
16
- "03": {
17
- "$value": "3",
18
- "$type": "number"
19
- },
20
- "04": {
16
+ "large": {
21
17
  "$value": "4",
22
18
  "$type": "number"
23
19
  }
@@ -27,21 +23,21 @@
27
23
  "$value": "0",
28
24
  "$type": "number"
29
25
  },
30
- "01": {
26
+ "full": {
27
+ "$value": "999999",
28
+ "$type": "number"
29
+ },
30
+ "small": {
31
31
  "$value": "4",
32
32
  "$type": "number"
33
33
  },
34
- "02": {
34
+ "medium": {
35
35
  "$value": "8",
36
36
  "$type": "number"
37
37
  },
38
- "03": {
38
+ "large": {
39
39
  "$value": "12",
40
40
  "$type": "number"
41
- },
42
- "full": {
43
- "$value": "999999",
44
- "$type": "number"
45
41
  }
46
42
  },
47
43
  "opacity": {
@@ -49,56 +45,56 @@
49
45
  "$value": "0",
50
46
  "$type": "number"
51
47
  },
52
- "01": {
53
- "$value": "0.1",
48
+ "10": {
49
+ "$value": "10",
54
50
  "$type": "number"
55
51
  },
56
- "02": {
57
- "$value": "0.2",
52
+ "20": {
53
+ "$value": "20",
58
54
  "$type": "number"
59
55
  },
60
- "03": {
61
- "$value": "0.3",
56
+ "30": {
57
+ "$value": "30",
62
58
  "$type": "number"
63
59
  },
64
- "04": {
65
- "$value": "0.4",
60
+ "40": {
61
+ "$value": "40",
66
62
  "$type": "number"
67
63
  },
68
- "05": {
69
- "$value": "0.5",
64
+ "50": {
65
+ "$value": "50",
70
66
  "$type": "number"
71
67
  },
72
- "06": {
73
- "$value": "0.6",
68
+ "60": {
69
+ "$value": "60",
74
70
  "$type": "number"
75
71
  },
76
- "07": {
77
- "$value": "0.7",
72
+ "70": {
73
+ "$value": "70",
78
74
  "$type": "number"
79
75
  },
80
- "08": {
81
- "$value": "0.8",
76
+ "80": {
77
+ "$value": "80",
82
78
  "$type": "number"
83
79
  },
84
- "09": {
85
- "$value": "0.9",
80
+ "90": {
81
+ "$value": "90",
86
82
  "$type": "number"
87
83
  },
88
84
  "full": {
89
- "$value": "1",
85
+ "$value": "100",
90
86
  "$type": "number"
91
87
  }
92
88
  },
93
89
  "overlay": {
94
- "focus": {
95
- "$value": "rgba({elevation.color},{surface.opacity.04})",
90
+ "solid": {
91
+ "$value": "#00000099",
96
92
  "$type": "color"
97
93
  },
98
- "readability": {
99
- "$value": "linear-gradient (0deg, {elevation.color} 0%, rgba({elevation.color},{surface.opacity.04}) 100%)",
94
+ "read": {
95
+ "$value": "{color.pure.0}",
100
96
  "$type": "color"
101
97
  }
102
98
  }
103
99
  }
104
- }
100
+ }
@@ -1,35 +1,17 @@
1
1
  {
2
2
  "typography": {
3
3
  "fontFamily": {
4
- "noto": {
5
- "sans": {
6
- "$value": "Noto Sans",
7
- "$type": "string"
8
- },
9
- "serif": {
10
- "$value": "Noto Serif",
11
- "$type": "string"
12
- },
13
- "mono": {
14
- "$value": "Noto Sans Mono",
15
- "$type": "string"
16
- }
4
+ "primary": {
5
+ "$value": "Noto Sans",
6
+ "$type": "string"
17
7
  },
18
- "rawline": {
19
- "sans": {
20
- "$value": "Rawline",
21
- "$type": "string"
22
- }
8
+ "secondary": {
9
+ "$value": "Noto Sans Mono",
10
+ "$type": "string"
23
11
  },
24
- "fontAwesome": {
25
- "free": {
26
- "$value": "Font Awesome 6 Free",
27
- "$type": "string"
28
- },
29
- "brands": {
30
- "$value": "Font Awesome 6 Brands",
31
- "$type": "string"
32
- }
12
+ "tertiary": {
13
+ "$value": "Noto Serif",
14
+ "$type": "string"
33
15
  }
34
16
  },
35
17
  "fontWeight": {
@@ -75,10 +57,6 @@
75
57
  "$value": "16",
76
58
  "$type": "number"
77
59
  },
78
- "mobile": {
79
- "$value": "14",
80
- "$type": "number"
81
- },
82
60
  "up": {
83
61
  "01": {
84
62
  "$value": "18",
@@ -131,20 +109,6 @@
131
109
  "$type": "number"
132
110
  }
133
111
  }
134
- },
135
- "lineHeight": {
136
- "low": {
137
- "$value": "120%",
138
- "$type": "number"
139
- },
140
- "medium": {
141
- "$value": "150%",
142
- "$type": "number"
143
- },
144
- "high": {
145
- "$value": "180%",
146
- "$type": "number"
147
- }
148
112
  }
149
113
  }
150
- }
114
+ }