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

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 (40) hide show
  1. package/dist/css/component/avatar.css +37 -0
  2. package/dist/css/component/divider.css +3 -3
  3. package/dist/css/component/input.css +37 -0
  4. package/dist/css/component/list.css +54 -0
  5. package/dist/css/component/message.css +14 -19
  6. package/dist/css/component/text.css +3 -3
  7. package/dist/css/tokens.css +2 -2
  8. package/dist/js/component/avatar.js +36 -0
  9. package/dist/js/component/divider.js +3 -3
  10. package/dist/js/component/input.js +35 -0
  11. package/dist/js/component/list.js +52 -0
  12. package/dist/js/component/message.js +15 -21
  13. package/dist/js/component/text.js +4 -4
  14. package/dist/js/tokens.js +1 -2
  15. package/dist/json/component/avatar.json +907 -0
  16. package/dist/json/component/divider.json +6 -6
  17. package/dist/json/component/input.json +907 -0
  18. package/dist/json/component/list.json +1394 -0
  19. package/dist/json/component/message.json +213 -373
  20. package/dist/json/component/text.json +7 -7
  21. package/dist/json/tokens.json +22 -22
  22. package/dist/scss/component/avatar.scss +35 -0
  23. package/dist/scss/component/divider.scss +3 -3
  24. package/dist/scss/component/input.scss +35 -0
  25. package/dist/scss/component/list.scss +52 -0
  26. package/dist/scss/component/message.scss +14 -19
  27. package/dist/scss/component/text.scss +4 -4
  28. package/dist/scss/tokens.scss +2 -2
  29. package/dist/tokens-studio/tokens.json +682 -91
  30. package/package.json +1 -1
  31. package/src/figma/component/avatar.json +156 -0
  32. package/src/figma/component/base14.json +30 -0
  33. package/src/figma/component/divider.json +24 -0
  34. package/src/figma/component/input.json +156 -0
  35. package/src/figma/component/manifest.json +9 -1
  36. package/src/figma/component/message.json +70 -0
  37. package/src/figma/component/text.json +3 -3
  38. package/src/temp/component.json +673 -82
  39. package/src/temp/core.json +7 -7
  40. package/src/tokens.json +682 -91
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.16",
4
4
  "type": "module",
5
5
  "description": "Tokens do Padrão Digital de Governo",
6
6
  "keywords": [
@@ -0,0 +1,156 @@
1
+ {
2
+ "avatar": {
3
+ "rounder": {
4
+ "mask": {
5
+ "$type": "number",
6
+ "$value": "{surface.rounder.full}"
7
+ }
8
+ },
9
+ "spacing": {
10
+ "padding": {
11
+ "$type": "number",
12
+ "$value": "{spacing.adjust.01}"
13
+ }
14
+ },
15
+ "fontSize": {
16
+ "xmall": {
17
+ "$value": "{typography.fontSize.down.04}",
18
+ "$type": "number"
19
+ },
20
+ "small": {
21
+ "$value": "{typography.fontSize.default}",
22
+ "$type": "number"
23
+ },
24
+ "medium": {
25
+ "$value": "{typography.fontSize.up.04}",
26
+ "$type": "number"
27
+ },
28
+ "large": {
29
+ "$value": "{typography.fontSize.up.08}",
30
+ "$type": "number"
31
+ },
32
+ "xlarge": {
33
+ "$value": "65.76",
34
+ "$type": "number"
35
+ }
36
+ },
37
+ "size": {
38
+ "xmall": {
39
+ "$value": "19.97",
40
+ "$type": "dimension"
41
+ },
42
+ "small": {
43
+ "$value": "32",
44
+ "$type": "dimension"
45
+ },
46
+ "medium": {
47
+ "$value": "51.26",
48
+ "$type": "dimension"
49
+ },
50
+ "large": {
51
+ "$value": "82.11",
52
+ "$type": "dimension"
53
+ },
54
+ "xlarge": {
55
+ "$value": "131.52",
56
+ "$type": "dimension"
57
+ }
58
+ },
59
+ "color": {
60
+ "read": {
61
+ "bright": {
62
+ "$type": "color",
63
+ "$value": "{color.pure.0}"
64
+ },
65
+ "dim": {
66
+ "$type": "color",
67
+ "$value": "{color.pure.100}"
68
+ }
69
+ },
70
+ "surface": {
71
+ "$type": "color",
72
+ "$value": "{color.indigoWarmVivid.60}"
73
+ }
74
+ },
75
+ "hover": {
76
+ "color": {
77
+ "$type": "color",
78
+ "$value": "{state.hover.color.main.surface}"
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
+ "opacity": {
125
+ "$type": "number",
126
+ "$value": "{state.disabled.opacity}"
127
+ }
128
+ },
129
+ "focus": {
130
+ "spacing": {
131
+ "$type": "number",
132
+ "$value": "{state.focus.spacing}"
133
+ },
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
+ }
@@ -60,5 +60,35 @@
60
60
  }
61
61
  }
62
62
  }
63
+ },
64
+ "avatar": {
65
+ "fontSize": {
66
+ "xlarge": {
67
+ "$value": "57.54",
68
+ "$type": "number"
69
+ }
70
+ },
71
+ "size": {
72
+ "xmall": {
73
+ "$value": "17.47",
74
+ "$type": "dimension"
75
+ },
76
+ "small": {
77
+ "$value": "28",
78
+ "$type": "dimension"
79
+ },
80
+ "medium": {
81
+ "$value": "44.86",
82
+ "$type": "dimension"
83
+ },
84
+ "large": {
85
+ "$value": "71.85",
86
+ "$type": "dimension"
87
+ },
88
+ "xlarge": {
89
+ "$value": "115.08",
90
+ "$type": "dimension"
91
+ }
92
+ }
63
93
  }
64
94
  }
@@ -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,21 @@
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",
14
+ "avatar.json"
11
15
  ],
12
16
  "Base14": [
13
17
  "text.json",
14
18
  "icon.json",
15
19
  "button.json",
16
20
  "formlabel.json",
21
+ "divider.json",
22
+ "message.json",
23
+ "input.json",
24
+ "avatar.json",
17
25
  "base14.json"
18
26
  ]
19
27
  }
@@ -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
  }