@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,142 @@
1
+ {
2
+ "icon": {
3
+ "color": {
4
+ "main": {
5
+ "base": {
6
+ "$type": "color",
7
+ "$value": "{color.read.main.base}"
8
+ },
9
+ "alternative": {
10
+ "$type": "color",
11
+ "$value": "{color.read.main.alternative}"
12
+ }
13
+ },
14
+ "contrast": {
15
+ "base": {
16
+ "$type": "color",
17
+ "$value": "{color.read.contrast.base}"
18
+ },
19
+ "alternative": {
20
+ "$type": "color",
21
+ "$value": "{color.read.contrast.alternative}"
22
+ }
23
+ }
24
+ },
25
+ "fontSize": {
26
+ "default": {
27
+ "$type": "number",
28
+ "$value": "{typography.fontSize.default}"
29
+ },
30
+ "up": {
31
+ "01": {
32
+ "$type": "number",
33
+ "$value": "{typography.fontSize.up.01}"
34
+ },
35
+ "02": {
36
+ "$type": "number",
37
+ "$value": "{typography.fontSize.up.02}"
38
+ },
39
+ "03": {
40
+ "$type": "number",
41
+ "$value": "{typography.fontSize.up.03}"
42
+ },
43
+ "04": {
44
+ "$type": "number",
45
+ "$value": "{typography.fontSize.up.04}"
46
+ },
47
+ "05": {
48
+ "$type": "number",
49
+ "$value": "{typography.fontSize.up.05}"
50
+ },
51
+ "06": {
52
+ "$type": "number",
53
+ "$value": "{typography.fontSize.up.06}"
54
+ },
55
+ "07": {
56
+ "$type": "number",
57
+ "$value": "{typography.fontSize.up.07}"
58
+ },
59
+ "08": {
60
+ "$type": "number",
61
+ "$value": "{typography.fontSize.up.08}"
62
+ }
63
+ },
64
+ "down": {
65
+ "01": {
66
+ "$type": "number",
67
+ "$value": "{typography.fontSize.down.01}"
68
+ },
69
+ "02": {
70
+ "$type": "number",
71
+ "$value": "{typography.fontSize.down.02}"
72
+ },
73
+ "03": {
74
+ "$type": "number",
75
+ "$value": "{typography.fontSize.down.03}"
76
+ },
77
+ "04": {
78
+ "$type": "number",
79
+ "$value": "{typography.fontSize.down.04}"
80
+ }
81
+ }
82
+ },
83
+ "size": {
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": {
110
+ "$type": "dimension",
111
+ "$value": "40.54"
112
+ },
113
+ "07": {
114
+ "$type": "dimension",
115
+ "$value": "45.62"
116
+ },
117
+ "08": {
118
+ "$type": "dimension",
119
+ "$value": "51.32"
120
+ }
121
+ },
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": {
136
+ "$type": "dimension",
137
+ "$value": "12.48"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
@@ -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
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Component": {
5
+ "modes": {
6
+ "Base16": [
7
+ "text.json",
8
+ "icon.json",
9
+ "button.json",
10
+ "formlabel.json",
11
+ "divider.json",
12
+ "message.json",
13
+ "input.json",
14
+ "avatar.json"
15
+ ],
16
+ "Base14": [
17
+ "text.json",
18
+ "icon.json",
19
+ "button.json",
20
+ "formlabel.json",
21
+ "divider.json",
22
+ "message.json",
23
+ "input.json",
24
+ "avatar.json",
25
+ "base14.json"
26
+ ]
27
+ }
28
+ }
29
+ }
30
+ }
@@ -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
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "text": {
3
+ "color": {
4
+ "main": {
5
+ "base": {
6
+ "$type": "color",
7
+ "$value": "{color.read.main.base}"
8
+ },
9
+ "alternative": {
10
+ "$type": "color",
11
+ "$value": "{color.read.main.alternative}"
12
+ }
13
+ },
14
+ "contrast": {
15
+ "base": {
16
+ "$type": "color",
17
+ "$value": "{color.read.contrast.base}"
18
+ },
19
+ "alternative": {
20
+ "$type": "color",
21
+ "$value": "{color.read.contrast.alternative}"
22
+ }
23
+ }
24
+ },
25
+ "fontSize": {
26
+ "label": {
27
+ "small": {
28
+ "$value": "{typography.fontSize.down.02}",
29
+ "$type": "number"
30
+ },
31
+ "medium": {
32
+ "$value": "{typography.fontSize.down.01}",
33
+ "$type": "number"
34
+ },
35
+ "large": {
36
+ "$value": "{typography.fontSize.default}",
37
+ "$type": "number"
38
+ }
39
+ },
40
+ "title": {
41
+ "small": {
42
+ "$value": "{typography.fontSize.up.01}",
43
+ "$type": "number"
44
+ },
45
+ "medium": {
46
+ "$value": "{typography.fontSize.up.02}",
47
+ "$type": "number"
48
+ },
49
+ "large": {
50
+ "$value": "{typography.fontSize.up.03}",
51
+ "$type": "number"
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }