@esri/calcite-design-tokens 1.0.0 → 1.1.0-next.1

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 (111) hide show
  1. package/.eslintrc.cjs +85 -0
  2. package/.turbo/turbo-build.log +64 -0
  3. package/.turbo/turbo-test.log +14 -0
  4. package/CHANGELOG.md +17 -4
  5. package/CONTRIBUTING.md +41 -0
  6. package/LICENSE.md +13 -0
  7. package/README.md +9 -11
  8. package/dist/css/brand-light.css +1 -1
  9. package/dist/css/calcite-dark.css +1 -1
  10. package/dist/css/calcite-headless.css +2 -1
  11. package/dist/css/calcite-light.css +1 -1
  12. package/dist/scss/brand-light.scss +1 -1
  13. package/dist/scss/calcite-dark.scss +1 -1
  14. package/dist/scss/calcite-headless.scss +3 -1
  15. package/dist/scss/calcite-light.scss +1 -1
  16. package/jest.config.json +16 -0
  17. package/package.json +11 -72
  18. package/src/$metadata.json +76 -0
  19. package/src/$themes.json +2360 -0
  20. package/src/brand/dark.json +1 -0
  21. package/src/brand/global.json +1 -0
  22. package/src/brand/light.json +20 -0
  23. package/src/calcite/dark.json +2488 -0
  24. package/src/calcite/light.json +2508 -0
  25. package/src/component/accordion-item.json +172 -0
  26. package/src/component/accordion.json +192 -0
  27. package/src/component/action-bar-grid.json +66 -0
  28. package/src/component/action-bar.json +66 -0
  29. package/src/component/action-pad-grid.json +80 -0
  30. package/src/component/action-pad.json +80 -0
  31. package/src/component/action.json +156 -0
  32. package/src/component/alert.json +258 -0
  33. package/src/component/avatar.json +140 -0
  34. package/src/component/block-section.json +124 -0
  35. package/src/component/block.json +198 -0
  36. package/src/component/button.json +650 -0
  37. package/src/component/card.json +116 -0
  38. package/src/component/checkbox.json +110 -0
  39. package/src/component/chip.json +382 -0
  40. package/src/component/color-picker.json +148 -0
  41. package/src/component/combobox.json +152 -0
  42. package/src/component/date-picker.json +354 -0
  43. package/src/component/dropdown-item.json +384 -0
  44. package/src/component/dropdown.json +58 -0
  45. package/src/component/fab.json +490 -0
  46. package/src/component/filter.json +174 -0
  47. package/src/component/input-date-picker.json +224 -0
  48. package/src/component/input-datetime-local.json +230 -0
  49. package/src/component/input-email.json +244 -0
  50. package/src/component/input-file.json +244 -0
  51. package/src/component/input-message.json +72 -0
  52. package/src/component/input-month.json +244 -0
  53. package/src/component/input-number.json +244 -0
  54. package/src/component/input-password.json +244 -0
  55. package/src/component/input-search.json +244 -0
  56. package/src/component/input-telephone.json +244 -0
  57. package/src/component/input-text.json +244 -0
  58. package/src/component/input-time.json +1 -0
  59. package/src/component/input-week.json +244 -0
  60. package/src/component/label.json +26 -0
  61. package/src/component/link.json +44 -0
  62. package/src/component/loader.json +130 -0
  63. package/src/component/modal.json +278 -0
  64. package/src/component/notice.json +280 -0
  65. package/src/component/pagination.json +152 -0
  66. package/src/component/panel-header.json +88 -0
  67. package/src/component/popover.json +170 -0
  68. package/src/component/radio.json +124 -0
  69. package/src/component/rating.json +243 -0
  70. package/src/component/scrim.json +18 -0
  71. package/src/component/segmented-control.json +154 -0
  72. package/src/component/slider-histogram-range.json +284 -0
  73. package/src/component/slider-histogram.json +280 -0
  74. package/src/component/slider-range.json +226 -0
  75. package/src/component/slider.json +226 -0
  76. package/src/component/split-button.json +830 -0
  77. package/src/component/stepper-item.json +372 -0
  78. package/src/component/stepper.json +152 -0
  79. package/src/component/switch.json +178 -0
  80. package/src/component/tab-title.json +228 -0
  81. package/src/component/tabs.json +242 -0
  82. package/src/component/textarea.json +200 -0
  83. package/src/component/time-picker.json +138 -0
  84. package/src/component/tip-manager.json +118 -0
  85. package/src/component/tip.json +114 -0
  86. package/src/component/tooltip.json +66 -0
  87. package/src/component/tree-item.json +176 -0
  88. package/src/core.json +1709 -0
  89. package/src/semantic.json +1709 -0
  90. package/support/run.ts +16 -0
  91. package/support/token-transformer/format/scss.ts +81 -0
  92. package/support/token-transformer/getThemes.ts +41 -0
  93. package/support/token-transformer/parse/expandComposites.test.ts +144 -0
  94. package/support/token-transformer/parse/expandComposites.ts +72 -0
  95. package/support/token-transformer/sd-run.ts +147 -0
  96. package/support/token-transformer/transform/nameCamelCase.test.ts +36 -0
  97. package/support/token-transformer/transform/nameCamelCase.ts +15 -0
  98. package/support/token-transformer/transform/nameKebabCase.test.ts +36 -0
  99. package/support/token-transformer/transform/nameKebabCase.ts +26 -0
  100. package/support/token-transformer/utils/compositeTokens.test.ts +133 -0
  101. package/support/token-transformer/utils/compositeTokens.ts +103 -0
  102. package/support/token-transformer/utils/convertTokenToStyleDictionaryFormat.ts +20 -0
  103. package/support/token-transformer/utils/matchList.ts +11 -0
  104. package/support/token-transformer/utils/parseName.ts +18 -0
  105. package/support/token-transformer/utils/parseTokenPath.ts +19 -0
  106. package/support/token-transformer/utils/regex.ts +9 -0
  107. package/support/token-transformer/utils/sortAllTokens.ts +12 -0
  108. package/support/token-transformer/utils/transformOptions.ts +31 -0
  109. package/tsconfig-base.json +17 -0
  110. package/tsconfig-eslint.json +4 -0
  111. package/tsconfig.json +4 -0
@@ -0,0 +1,148 @@
1
+ {
2
+ "color-picker": {
3
+ "font": {
4
+ "label": {
5
+ "light": {
6
+ "value": "$semantic.ui.color.text.1.light",
7
+ "type": "color"
8
+ },
9
+ "dark": {
10
+ "value": "$semantic.ui.color.text.1.dark",
11
+ "type": "color"
12
+ }
13
+ }
14
+ },
15
+ "icon": {
16
+ "light": {
17
+ "value": "$semantic.ui.color.text.1.light",
18
+ "type": "color"
19
+ },
20
+ "dark": {
21
+ "value": "$semantic.ui.color.text.1.dark",
22
+ "type": "color"
23
+ }
24
+ },
25
+ "border": {
26
+ "light": {
27
+ "value": "$semantic.ui.color.border.1.light",
28
+ "type": "color"
29
+ },
30
+ "dark": {
31
+ "value": "$semantic.ui.color.border.1.dark",
32
+ "type": "color"
33
+ }
34
+ },
35
+ "background": {
36
+ "default": {
37
+ "light": {
38
+ "value": "$semantic.ui.color.foreground.1.light",
39
+ "type": "color"
40
+ },
41
+ "dark": {
42
+ "value": "$semantic.ui.color.foreground.1.dark",
43
+ "type": "color"
44
+ }
45
+ }
46
+ },
47
+ "border-radius": {
48
+ "sm": {
49
+ "value": "$core.border.border-radius.none",
50
+ "type": "borderRadius"
51
+ },
52
+ "md": {
53
+ "value": "$core.border.border-radius.none",
54
+ "type": "borderRadius"
55
+ },
56
+ "lg": {
57
+ "value": "$core.border.border-radius.none",
58
+ "type": "borderRadius"
59
+ }
60
+ },
61
+ "border-width": {
62
+ "sm": {
63
+ "value": "$core.border.border-width.0",
64
+ "type": "borderWidth"
65
+ },
66
+ "md": {
67
+ "value": "$core.border.border-width.0",
68
+ "type": "borderWidth"
69
+ },
70
+ "lg": {
71
+ "value": "$core.border.border-width.0",
72
+ "type": "borderWidth"
73
+ }
74
+ },
75
+ "saved-size": {
76
+ "sm": {
77
+ "value": "$core.sizing.8",
78
+ "type": "sizing"
79
+ },
80
+ "md": {
81
+ "value": "$core.sizing.9",
82
+ "type": "sizing"
83
+ },
84
+ "lg": {
85
+ "value": "$core.sizing.11",
86
+ "type": "sizing"
87
+ }
88
+ },
89
+ "swatch-size": {
90
+ "sm": {
91
+ "value": "$core.sizing.8",
92
+ "type": "sizing"
93
+ },
94
+ "md": {
95
+ "value": "$core.sizing.8",
96
+ "type": "sizing"
97
+ },
98
+ "lg": {
99
+ "value": "$core.sizing.9",
100
+ "type": "sizing"
101
+ }
102
+ },
103
+ "channels": {
104
+ "space-between": {
105
+ "sm": {
106
+ "value": "$core.spacing.1",
107
+ "type": "spacing"
108
+ },
109
+ "md": {
110
+ "value": "auto",
111
+ "type": "spacing"
112
+ },
113
+ "lg": {
114
+ "value": "auto",
115
+ "type": "spacing"
116
+ }
117
+ }
118
+ },
119
+ "space-between": {
120
+ "sm": {
121
+ "value": "$core.spacing.none",
122
+ "type": "spacing"
123
+ },
124
+ "md": {
125
+ "value": "$core.spacing.none",
126
+ "type": "spacing"
127
+ },
128
+ "lg": {
129
+ "value": "$core.spacing.none",
130
+ "type": "spacing"
131
+ }
132
+ },
133
+ "space-around": {
134
+ "sm": {
135
+ "value": "$core.spacing.5",
136
+ "type": "spacing"
137
+ },
138
+ "md": {
139
+ "value": "$core.spacing.5",
140
+ "type": "spacing"
141
+ },
142
+ "lg": {
143
+ "value": "$core.spacing.7",
144
+ "type": "spacing"
145
+ }
146
+ }
147
+ }
148
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "combobox": {
3
+ "font": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.text.3.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.text.3.dark",
10
+ "type": "color"
11
+ },
12
+ "sm": {
13
+ "value": "$semantic.font.default.bold.-3h",
14
+ "type": "typography"
15
+ },
16
+ "md": {
17
+ "value": "$semantic.font.default.bold.-1h",
18
+ "type": "typography"
19
+ },
20
+ "lg": {
21
+ "value": "$semantic.font.default.bold.0h",
22
+ "type": "typography"
23
+ }
24
+ },
25
+ "icon": {
26
+ "light": {
27
+ "value": "$semantic.ui.color.text.3.light",
28
+ "type": "color"
29
+ },
30
+ "dark": {
31
+ "value": "$semantic.ui.color.text.3.dark",
32
+ "type": "color"
33
+ }
34
+ },
35
+ "border": {
36
+ "light": {
37
+ "value": "$semantic.ui.color.border.1.light",
38
+ "type": "color"
39
+ },
40
+ "dark": {
41
+ "value": "$semantic.ui.color.border.1.dark",
42
+ "type": "color"
43
+ }
44
+ },
45
+ "background": {
46
+ "default": {
47
+ "light": {
48
+ "value": "$semantic.ui.color.background.light",
49
+ "type": "color"
50
+ },
51
+ "dark": {
52
+ "value": "$semantic.ui.color.background.dark",
53
+ "type": "color"
54
+ }
55
+ }
56
+ },
57
+ "foreground": {
58
+ "light": {
59
+ "value": "$semantic.ui.color.foreground.2.light",
60
+ "type": "color"
61
+ },
62
+ "dark": {
63
+ "value": "$semantic.ui.color.foreground.2.dark",
64
+ "type": "color"
65
+ }
66
+ },
67
+ "border-radius": {
68
+ "sm": {
69
+ "value": "$core.border.border-radius.4",
70
+ "type": "borderRadius"
71
+ },
72
+ "md": {
73
+ "value": "$core.border.border-radius.5",
74
+ "type": "borderRadius"
75
+ },
76
+ "lg": {
77
+ "value": "$core.border.border-radius.6",
78
+ "type": "borderRadius"
79
+ }
80
+ },
81
+ "border-width": {
82
+ "sm": {
83
+ "value": "$core.border.border-width.1",
84
+ "type": "borderWidth"
85
+ },
86
+ "md": {
87
+ "value": "$core.border.border-width.2",
88
+ "type": "borderWidth"
89
+ },
90
+ "lg": {
91
+ "value": "$core.border.border-width.4",
92
+ "type": "borderWidth"
93
+ }
94
+ },
95
+ "comp-size": {
96
+ "sm": {
97
+ "value": "$core.sizing.9",
98
+ "type": "sizing"
99
+ },
100
+ "md": {
101
+ "value": "$core.sizing.11",
102
+ "type": "sizing"
103
+ },
104
+ "lg": {
105
+ "value": "$core.sizing.14",
106
+ "type": "sizing"
107
+ }
108
+ },
109
+ "icon-size": {
110
+ "sm": {
111
+ "value": "$core.sizing.7",
112
+ "type": "sizing"
113
+ },
114
+ "md": {
115
+ "value": "$core.sizing.9",
116
+ "type": "sizing"
117
+ },
118
+ "lg": {
119
+ "value": "$core.sizing.11",
120
+ "type": "sizing"
121
+ }
122
+ },
123
+ "space-between": {
124
+ "sm": {
125
+ "value": "$core.spacing.9",
126
+ "type": "spacing"
127
+ },
128
+ "md": {
129
+ "value": "$core.spacing.11",
130
+ "type": "spacing"
131
+ },
132
+ "lg": {
133
+ "value": "$core.spacing.14",
134
+ "type": "spacing"
135
+ }
136
+ },
137
+ "space-around": {
138
+ "sm": {
139
+ "value": "$core.spacing.7",
140
+ "type": "spacing"
141
+ },
142
+ "md": {
143
+ "value": "$core.spacing.9",
144
+ "type": "spacing"
145
+ },
146
+ "lg": {
147
+ "value": "$core.spacing.11",
148
+ "type": "spacing"
149
+ }
150
+ }
151
+ }
152
+ }
@@ -0,0 +1,354 @@
1
+ {
2
+ "date-picker": {
3
+ "font": {
4
+ "date": {
5
+ "light": {
6
+ "value": "$semantic.ui.color.text.3.light",
7
+ "type": "color"
8
+ },
9
+ "dark": {
10
+ "value": "$semantic.ui.color.text.3.dark",
11
+ "type": "color"
12
+ },
13
+ "sm": {
14
+ "value": "$semantic.font.default.regular.-2h",
15
+ "type": "typography"
16
+ },
17
+ "md": {
18
+ "value": "$semantic.font.default.regular.-1h",
19
+ "type": "typography"
20
+ },
21
+ "lg": {
22
+ "value": "$semantic.font.default.regular.0h",
23
+ "type": "typography"
24
+ }
25
+ },
26
+ "day": {
27
+ "light": {
28
+ "value": "$semantic.ui.color.text.3.light",
29
+ "type": "color"
30
+ },
31
+ "dark": {
32
+ "value": "$semantic.ui.color.text.3.dark",
33
+ "type": "color"
34
+ },
35
+ "sm": {
36
+ "value": "$semantic.font.default.bold.-2h",
37
+ "type": "typography"
38
+ },
39
+ "md": {
40
+ "value": "$semantic.font.default.bold.-2h",
41
+ "type": "typography"
42
+ },
43
+ "lg": {
44
+ "value": "$semantic.font.default.bold.-1h",
45
+ "type": "typography"
46
+ }
47
+ },
48
+ "month": {
49
+ "light": {
50
+ "value": "$semantic.ui.color.text.1.light",
51
+ "type": "color"
52
+ },
53
+ "dark": {
54
+ "value": "$semantic.ui.color.text.1.dark",
55
+ "type": "color"
56
+ },
57
+ "sm": {
58
+ "value": "$semantic.font.default.medium.-1h",
59
+ "type": "typography"
60
+ },
61
+ "md": {
62
+ "value": "$semantic.font.default.medium.0h",
63
+ "type": "typography"
64
+ },
65
+ "lg": {
66
+ "value": "$semantic.font.default.medium.1h",
67
+ "type": "typography"
68
+ }
69
+ },
70
+ "range": {
71
+ "date": {
72
+ "light": {
73
+ "value": "$semantic.ui.color.text.1.light",
74
+ "type": "color"
75
+ },
76
+ "dark": {
77
+ "value": "$semantic.ui.color.text.1.dark",
78
+ "type": "color"
79
+ }
80
+ }
81
+ },
82
+ "selected": {
83
+ "date": {
84
+ "light": {
85
+ "value": "$semantic.ui.color.text.1.dark",
86
+ "type": "color"
87
+ },
88
+ "dark": {
89
+ "value": "$semantic.ui.color.text.1.light",
90
+ "type": "color"
91
+ }
92
+ }
93
+ },
94
+ "active": {
95
+ "date": {
96
+ "light": {
97
+ "value": "$semantic.ui.color.text.1.dark",
98
+ "type": "color"
99
+ },
100
+ "dark": {
101
+ "value": "$semantic.ui.color.text.1.dark",
102
+ "type": "color"
103
+ }
104
+ }
105
+ }
106
+ },
107
+ "icon": {
108
+ "light": {
109
+ "value": "$semantic.ui.color.text.3.light",
110
+ "type": "color"
111
+ },
112
+ "dark": {
113
+ "value": "$semantic.ui.color.text.3.dark",
114
+ "type": "color"
115
+ }
116
+ },
117
+ "border": {
118
+ "light": {
119
+ "value": "$semantic.ui.color.border.1.light",
120
+ "type": "color"
121
+ },
122
+ "dark": {
123
+ "value": "$semantic.ui.color.border.1.dark",
124
+ "type": "color"
125
+ }
126
+ },
127
+ "background": {
128
+ "default": {
129
+ "light": {
130
+ "value": "$semantic.ui.color.foreground.1.light",
131
+ "type": "color"
132
+ },
133
+ "dark": {
134
+ "value": "$semantic.ui.color.foreground.1.dark",
135
+ "type": "color"
136
+ }
137
+ },
138
+ "date": {
139
+ "active": {
140
+ "light": {
141
+ "value": "$semantic.ui.color.brand.default.light",
142
+ "type": "color"
143
+ },
144
+ "dark": {
145
+ "value": "$semantic.ui.color.brand.default.dark",
146
+ "type": "color"
147
+ }
148
+ },
149
+ "range": {
150
+ "light": {
151
+ "value": "$semantic.ui.color.foreground.current.light",
152
+ "type": "color"
153
+ },
154
+ "dark": {
155
+ "value": "$semantic.ui.color.foreground.current.dark",
156
+ "type": "color"
157
+ }
158
+ }
159
+ }
160
+ },
161
+ "border-radius": {
162
+ "sm": {
163
+ "value": "$core.border.border-radius.none",
164
+ "type": "borderRadius"
165
+ },
166
+ "md": {
167
+ "value": "$core.border.border-radius.none",
168
+ "type": "borderRadius"
169
+ },
170
+ "lg": {
171
+ "value": "$core.border.border-radius.none",
172
+ "type": "borderRadius"
173
+ }
174
+ },
175
+ "border-width": {
176
+ "sm": {
177
+ "value": "$core.border.border-width.0",
178
+ "type": "borderWidth"
179
+ },
180
+ "md": {
181
+ "value": "$core.border.border-width.0",
182
+ "type": "borderWidth"
183
+ },
184
+ "lg": {
185
+ "value": "$core.border.border-width.0",
186
+ "type": "borderWidth"
187
+ }
188
+ },
189
+ "icon-size": {
190
+ "sm": {
191
+ "value": "$core.sizing.7",
192
+ "type": "sizing"
193
+ },
194
+ "md": {
195
+ "value": "$core.sizing.7",
196
+ "type": "sizing"
197
+ },
198
+ "lg": {
199
+ "value": "$core.sizing.9",
200
+ "type": "sizing"
201
+ }
202
+ },
203
+ "date-row": {
204
+ "space-between": {
205
+ "sm": {
206
+ "value": "$core.spacing.none",
207
+ "type": "spacing"
208
+ },
209
+ "md": {
210
+ "value": "$core.spacing.none",
211
+ "type": "spacing"
212
+ },
213
+ "lg": {
214
+ "value": "$core.spacing.none",
215
+ "type": "spacing"
216
+ }
217
+ },
218
+ "space-around": {
219
+ "left-right": {
220
+ "sm": {
221
+ "value": "$core.spacing.2",
222
+ "type": "spacing"
223
+ },
224
+ "md": {
225
+ "value": "$core.spacing.2",
226
+ "type": "spacing"
227
+ },
228
+ "lg": {
229
+ "value": "$core.spacing.2",
230
+ "type": "spacing"
231
+ }
232
+ },
233
+ "top-bottom": {
234
+ "sm": {
235
+ "value": "$core.spacing.0",
236
+ "type": "spacing"
237
+ },
238
+ "md": {
239
+ "value": "$core.spacing.none",
240
+ "type": "spacing"
241
+ },
242
+ "lg": {
243
+ "value": "$core.spacing.none",
244
+ "type": "spacing"
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "date": {
250
+ "active": {
251
+ "border": {
252
+ "light": {
253
+ "value": "$semantic.ui.color.foreground.1.light",
254
+ "type": "color"
255
+ },
256
+ "dark": {
257
+ "value": "$semantic.ui.color.foreground.1.dark",
258
+ "type": "color"
259
+ }
260
+ }
261
+ },
262
+ "space-around": {
263
+ "left-right": {
264
+ "sm": {
265
+ "value": "$core.spacing.0",
266
+ "type": "spacing"
267
+ },
268
+ "md": {
269
+ "value": "$core.spacing.0",
270
+ "type": "spacing"
271
+ },
272
+ "lg": {
273
+ "value": "$core.spacing.1",
274
+ "type": "spacing"
275
+ }
276
+ },
277
+ "top-bottom": {
278
+ "sm": {
279
+ "value": "$core.spacing.none",
280
+ "type": "spacing"
281
+ },
282
+ "md": {
283
+ "value": "$core.spacing.1",
284
+ "type": "spacing"
285
+ },
286
+ "lg": {
287
+ "value": "$core.spacing.1",
288
+ "type": "spacing"
289
+ }
290
+ }
291
+ }
292
+ },
293
+ "day": {
294
+ "space-between": {
295
+ "sm": {
296
+ "value": "$core.spacing.none",
297
+ "type": "spacing"
298
+ },
299
+ "md": {
300
+ "value": "$core.spacing.none",
301
+ "type": "spacing"
302
+ },
303
+ "lg": {
304
+ "value": "$core.spacing.none",
305
+ "type": "spacing"
306
+ }
307
+ },
308
+ "space-around": {
309
+ "sm": {
310
+ "value": "$core.spacing.1",
311
+ "type": "spacing"
312
+ },
313
+ "md": {
314
+ "value": "$core.spacing.1",
315
+ "type": "spacing"
316
+ },
317
+ "lg": {
318
+ "value": "$core.spacing.1",
319
+ "type": "spacing"
320
+ }
321
+ }
322
+ },
323
+ "month": {
324
+ "space-between": {
325
+ "sm": {
326
+ "value": "$core.spacing.none",
327
+ "type": "spacing"
328
+ },
329
+ "md": {
330
+ "value": "$core.spacing.none",
331
+ "type": "spacing"
332
+ },
333
+ "lg": {
334
+ "value": "$core.spacing.none",
335
+ "type": "spacing"
336
+ }
337
+ },
338
+ "space-around": {
339
+ "sm": {
340
+ "value": "$core.spacing.3",
341
+ "type": "spacing"
342
+ },
343
+ "md": {
344
+ "value": "$core.spacing.4",
345
+ "type": "spacing"
346
+ },
347
+ "lg": {
348
+ "value": "$core.spacing.4",
349
+ "type": "spacing"
350
+ }
351
+ }
352
+ }
353
+ }
354
+ }