@esri/calcite-design-tokens 1.0.0-beta.2 → 1.1.0-next.0

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 +13 -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,172 @@
1
+ {
2
+ "accordion-item": {
3
+ "font": {
4
+ "heading": {
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
+ "sm": {
14
+ "value": "$semantic.font.default.medium.-2h",
15
+ "type": "typography"
16
+ },
17
+ "md": {
18
+ "value": "$semantic.font.default.medium.-1h",
19
+ "type": "typography"
20
+ },
21
+ "lg": {
22
+ "value": "$semantic.font.default.medium.0h",
23
+ "type": "typography"
24
+ }
25
+ },
26
+ "description": {
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.regular.-2h",
37
+ "type": "typography"
38
+ },
39
+ "md": {
40
+ "value": "$semantic.font.default.regular.-1h",
41
+ "type": "typography"
42
+ },
43
+ "lg": {
44
+ "value": "$semantic.font.default.regular.0h",
45
+ "type": "typography"
46
+ }
47
+ }
48
+ },
49
+ "icon": {
50
+ "light": {
51
+ "value": "$semantic.ui.color.text.3.light",
52
+ "type": "color"
53
+ },
54
+ "dark": {
55
+ "value": "$semantic.ui.color.text.3.dark",
56
+ "type": "color"
57
+ },
58
+ "expanded": {
59
+ "light": {
60
+ "value": "$semantic.ui.color.text.1.light",
61
+ "type": "color"
62
+ },
63
+ "dark": {
64
+ "value": "$semantic.ui.color.text.1.dark",
65
+ "type": "color"
66
+ }
67
+ }
68
+ },
69
+ "background": {
70
+ "default": {
71
+ "light": {
72
+ "value": "$semantic.ui.color.foreground.1.light",
73
+ "type": "color"
74
+ },
75
+ "dark": {
76
+ "value": "$semantic.ui.color.foreground.1.dark",
77
+ "type": "color"
78
+ }
79
+ }
80
+ },
81
+ "icon-size": {
82
+ "sm": {
83
+ "value": "$core.sizing.7",
84
+ "type": "sizing"
85
+ },
86
+ "md": {
87
+ "value": "$core.sizing.7",
88
+ "type": "sizing"
89
+ },
90
+ "lg": {
91
+ "value": "$core.sizing.9",
92
+ "type": "sizing"
93
+ }
94
+ },
95
+ "default": {
96
+ "space-between": {
97
+ "sm": {
98
+ "value": "{core.spacing.3}",
99
+ "type": "spacing"
100
+ },
101
+ "md": {
102
+ "value": "{core.spacing.5}",
103
+ "type": "spacing"
104
+ },
105
+ "lg": {
106
+ "value": "{core.spacing.7}",
107
+ "type": "spacing"
108
+ }
109
+ },
110
+ "text": {
111
+ "space-between": {
112
+ "sm": {
113
+ "value": "{core.spacing.1}",
114
+ "type": "spacing"
115
+ },
116
+ "md": {
117
+ "value": "{core.spacing.1}",
118
+ "type": "spacing"
119
+ },
120
+ "lg": {
121
+ "value": "{core.spacing.1}",
122
+ "type": "spacing"
123
+ }
124
+ }
125
+ },
126
+ "space-around": {
127
+ "top-bottom": {
128
+ "sm": {
129
+ "value": "{core.spacing.1}",
130
+ "type": "spacing"
131
+ },
132
+ "md": {
133
+ "value": "{core.spacing.3}",
134
+ "type": "spacing"
135
+ },
136
+ "lg": {
137
+ "value": "{core.spacing.5}",
138
+ "type": "spacing"
139
+ }
140
+ },
141
+ "left-right": {
142
+ "sm": {
143
+ "value": "{core.spacing.3}",
144
+ "type": "spacing"
145
+ },
146
+ "md": {
147
+ "value": "{core.spacing.5}",
148
+ "type": "spacing"
149
+ },
150
+ "lg": {
151
+ "value": "{core.spacing.7}",
152
+ "type": "spacing"
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "border-width": {
158
+ "value": "{core.border.border-width.0}",
159
+ "type": "borderWidth"
160
+ },
161
+ "border": {
162
+ "light": {
163
+ "value": "$semantic.ui.color.border.2.light",
164
+ "type": "color"
165
+ },
166
+ "dark": {
167
+ "value": "$semantic.ui.color.border.2.dark",
168
+ "type": "color"
169
+ }
170
+ }
171
+ }
172
+ }
@@ -0,0 +1,192 @@
1
+ {
2
+ "accordion": {
3
+ "heading": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.text.1.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.text.1.dark",
10
+ "type": "color"
11
+ }
12
+ },
13
+ "description": {
14
+ "light": {
15
+ "value": "$semantic.ui.color.text.3.light",
16
+ "type": "color"
17
+ },
18
+ "dark": {
19
+ "value": "$semantic.ui.color.text.3.dark",
20
+ "type": "color"
21
+ }
22
+ },
23
+ "icon": {
24
+ "default": {
25
+ "light": {
26
+ "value": "$semantic.ui.color.text.3.light",
27
+ "type": "color"
28
+ },
29
+ "dark": {
30
+ "value": "$semantic.ui.color.text.3.dark",
31
+ "type": "color"
32
+ }
33
+ },
34
+ "expanded": {
35
+ "light": {
36
+ "value": "$semantic.ui.color.text.1.light",
37
+ "type": "color"
38
+ },
39
+ "dark": {
40
+ "value": "$semantic.ui.color.text.1.dark",
41
+ "type": "color"
42
+ }
43
+ }
44
+ },
45
+ "background": {
46
+ "default": {
47
+ "light": {
48
+ "value": "$semantic.ui.color.foreground.1.light",
49
+ "type": "color"
50
+ },
51
+ "dark": {
52
+ "value": "$semantic.ui.color.foreground.1.dark",
53
+ "type": "color"
54
+ }
55
+ }
56
+ },
57
+ "default": {
58
+ "space-between": {
59
+ "sm": {
60
+ "value": "{core.spacing.3}",
61
+ "type": "spacing"
62
+ },
63
+ "md": {
64
+ "value": "{core.spacing.5}",
65
+ "type": "spacing"
66
+ },
67
+ "lg": {
68
+ "value": "{core.spacing.7}",
69
+ "type": "spacing"
70
+ }
71
+ },
72
+ "text": {
73
+ "space-between": {
74
+ "sm": {
75
+ "value": "{core.spacing.1}",
76
+ "type": "spacing"
77
+ },
78
+ "md": {
79
+ "value": "{core.spacing.1}",
80
+ "type": "spacing"
81
+ },
82
+ "lg": {
83
+ "value": "{core.spacing.1}",
84
+ "type": "spacing"
85
+ }
86
+ }
87
+ },
88
+ "space-around": {
89
+ "top-bottom": {
90
+ "sm": {
91
+ "value": "{core.spacing.1}",
92
+ "type": "spacing"
93
+ },
94
+ "md": {
95
+ "value": "{core.spacing.3}",
96
+ "type": "spacing"
97
+ },
98
+ "lg": {
99
+ "value": "{core.spacing.5}",
100
+ "type": "spacing"
101
+ }
102
+ },
103
+ "left-right": {
104
+ "sm": {
105
+ "value": "{core.spacing.3}",
106
+ "type": "spacing"
107
+ },
108
+ "md": {
109
+ "value": "{core.spacing.5}",
110
+ "type": "spacing"
111
+ },
112
+ "lg": {
113
+ "value": "{core.spacing.7}",
114
+ "type": "spacing"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "minimal": {
120
+ "space-between": {
121
+ "sm": {
122
+ "value": "{core.spacing.3}",
123
+ "type": "spacing"
124
+ },
125
+ "md": {
126
+ "value": "{core.spacing.5}",
127
+ "type": "spacing"
128
+ },
129
+ "lg": {
130
+ "value": "{core.spacing.7}",
131
+ "type": "spacing"
132
+ }
133
+ },
134
+ "text": {
135
+ "space-between": {
136
+ "sm": {
137
+ "value": "{core.spacing.1}",
138
+ "type": "spacing"
139
+ },
140
+ "md": {
141
+ "value": "{core.spacing.1}",
142
+ "type": "spacing"
143
+ },
144
+ "lg": {
145
+ "value": "{core.spacing.1}",
146
+ "type": "spacing"
147
+ }
148
+ }
149
+ },
150
+ "space-around": {
151
+ "top-bottom": {
152
+ "sm": {
153
+ "value": "{core.spacing.1}",
154
+ "type": "spacing"
155
+ },
156
+ "md": {
157
+ "value": "{core.spacing.3}",
158
+ "type": "spacing"
159
+ },
160
+ "lg": {
161
+ "value": "{core.spacing.5}",
162
+ "type": "spacing"
163
+ }
164
+ },
165
+ "left-right": {
166
+ "sm": {
167
+ "value": "{core.spacing.none}",
168
+ "type": "spacing"
169
+ },
170
+ "md": {
171
+ "value": "{core.spacing.none}",
172
+ "type": "spacing"
173
+ },
174
+ "lg": {
175
+ "value": "{core.spacing.none}",
176
+ "type": "spacing"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "border": {
182
+ "light": {
183
+ "value": "$semantic.ui.color.border.2.light",
184
+ "type": "color"
185
+ },
186
+ "dark": {
187
+ "value": "$semantic.ui.color.border.2.dark",
188
+ "type": "color"
189
+ }
190
+ }
191
+ }
192
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "action-bar-grid": {
3
+ "border": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.border.1.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.border.1.dark",
10
+ "type": "color"
11
+ }
12
+ },
13
+ "background": {
14
+ "light": {
15
+ "value": "$semantic.ui.color.foreground.1.light",
16
+ "type": "color"
17
+ },
18
+ "dark": {
19
+ "value": "$semantic.ui.color.foreground.1.dark",
20
+ "type": "color"
21
+ }
22
+ },
23
+ "border-radius": {
24
+ "sm": {
25
+ "value": "$core.border.border-radius.none",
26
+ "type": "borderRadius"
27
+ },
28
+ "md": {
29
+ "value": "$core.border.border-radius.none",
30
+ "type": "borderRadius"
31
+ },
32
+ "lg": {
33
+ "value": "$core.border.border-radius.none",
34
+ "type": "borderRadius"
35
+ }
36
+ },
37
+ "space-between": {
38
+ "sm": {
39
+ "value": "$core.spacing.none",
40
+ "type": "spacing"
41
+ },
42
+ "md": {
43
+ "value": "$core.spacing.none",
44
+ "type": "spacing"
45
+ },
46
+ "lg": {
47
+ "value": "$core.spacing.none",
48
+ "type": "spacing"
49
+ }
50
+ },
51
+ "space-around": {
52
+ "sm": {
53
+ "value": "$core.spacing.none",
54
+ "type": "spacing"
55
+ },
56
+ "md": {
57
+ "value": "$core.spacing.none",
58
+ "type": "spacing"
59
+ },
60
+ "lg": {
61
+ "value": "$core.spacing.none",
62
+ "type": "spacing"
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "action-bar": {
3
+ "border": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.border.1.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.border.1.dark",
10
+ "type": "color"
11
+ }
12
+ },
13
+ "background": {
14
+ "light": {
15
+ "value": "$semantic.ui.color.foreground.1.light",
16
+ "type": "color"
17
+ },
18
+ "dark": {
19
+ "value": "$semantic.ui.color.foreground.1.dark",
20
+ "type": "color"
21
+ }
22
+ },
23
+ "border-radius": {
24
+ "sm": {
25
+ "value": "$core.border.border-radius.none",
26
+ "type": "borderRadius"
27
+ },
28
+ "md": {
29
+ "value": "$core.border.border-radius.none",
30
+ "type": "borderRadius"
31
+ },
32
+ "lg": {
33
+ "value": "$core.border.border-radius.none",
34
+ "type": "borderRadius"
35
+ }
36
+ },
37
+ "space-between": {
38
+ "sm": {
39
+ "value": "$core.spacing.none",
40
+ "type": "spacing"
41
+ },
42
+ "md": {
43
+ "value": "$core.spacing.none",
44
+ "type": "spacing"
45
+ },
46
+ "lg": {
47
+ "value": "$core.spacing.none",
48
+ "type": "spacing"
49
+ }
50
+ },
51
+ "space-around": {
52
+ "sm": {
53
+ "value": "$core.spacing.none",
54
+ "type": "spacing"
55
+ },
56
+ "md": {
57
+ "value": "$core.spacing.none",
58
+ "type": "spacing"
59
+ },
60
+ "lg": {
61
+ "value": "$core.spacing.none",
62
+ "type": "spacing"
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "action-pad-grid": {
3
+ "border": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.border.1.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.border.1.dark",
10
+ "type": "color"
11
+ }
12
+ },
13
+ "background": {
14
+ "light": {
15
+ "value": "$semantic.ui.color.foreground.1.light",
16
+ "type": "color"
17
+ },
18
+ "dark": {
19
+ "value": "$semantic.ui.color.foreground.1.dark",
20
+ "type": "color"
21
+ }
22
+ },
23
+ "border-radius": {
24
+ "sm": {
25
+ "value": "$core.border.border-radius.1",
26
+ "type": "borderRadius"
27
+ },
28
+ "md": {
29
+ "value": "$core.border.border-radius.1",
30
+ "type": "borderRadius"
31
+ },
32
+ "lg": {
33
+ "value": "$core.border.border-radius.1",
34
+ "type": "borderRadius"
35
+ }
36
+ },
37
+ "space-between": {
38
+ "sm": {
39
+ "value": "$core.spacing.none",
40
+ "type": "spacing"
41
+ },
42
+ "md": {
43
+ "value": "$core.spacing.none",
44
+ "type": "spacing"
45
+ },
46
+ "lg": {
47
+ "value": "$core.spacing.none",
48
+ "type": "spacing"
49
+ }
50
+ },
51
+ "space-around": {
52
+ "sm": {
53
+ "value": "$core.spacing.none",
54
+ "type": "spacing"
55
+ },
56
+ "md": {
57
+ "value": "$core.spacing.none",
58
+ "type": "spacing"
59
+ },
60
+ "lg": {
61
+ "value": "$core.spacing.none",
62
+ "type": "spacing"
63
+ }
64
+ },
65
+ "shadow": {
66
+ "sm": {
67
+ "value": "{core.box-shadow.1}",
68
+ "type": "boxShadow"
69
+ },
70
+ "md": {
71
+ "value": "{core.box-shadow.1}",
72
+ "type": "boxShadow"
73
+ },
74
+ "lg": {
75
+ "value": "{core.box-shadow.1}",
76
+ "type": "boxShadow"
77
+ }
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "action-pad": {
3
+ "border": {
4
+ "light": {
5
+ "value": "$semantic.ui.color.border.1.light",
6
+ "type": "color"
7
+ },
8
+ "dark": {
9
+ "value": "$semantic.ui.color.border.1.dark",
10
+ "type": "color"
11
+ }
12
+ },
13
+ "background": {
14
+ "light": {
15
+ "value": "$semantic.ui.color.foreground.1.light",
16
+ "type": "color"
17
+ },
18
+ "dark": {
19
+ "value": "$semantic.ui.color.foreground.1.dark",
20
+ "type": "color"
21
+ }
22
+ },
23
+ "border-radius": {
24
+ "sm": {
25
+ "value": "$core.border.border-radius.1",
26
+ "type": "borderRadius"
27
+ },
28
+ "md": {
29
+ "value": "$core.border.border-radius.1",
30
+ "type": "borderRadius"
31
+ },
32
+ "lg": {
33
+ "value": "$core.border.border-radius.1",
34
+ "type": "borderRadius"
35
+ }
36
+ },
37
+ "space-between": {
38
+ "sm": {
39
+ "value": "$core.spacing.none",
40
+ "type": "spacing"
41
+ },
42
+ "md": {
43
+ "value": "$core.spacing.none",
44
+ "type": "spacing"
45
+ },
46
+ "lg": {
47
+ "value": "$core.spacing.none",
48
+ "type": "spacing"
49
+ }
50
+ },
51
+ "space-around": {
52
+ "sm": {
53
+ "value": "$core.spacing.none",
54
+ "type": "spacing"
55
+ },
56
+ "md": {
57
+ "value": "$core.spacing.none",
58
+ "type": "spacing"
59
+ },
60
+ "lg": {
61
+ "value": "$core.spacing.none",
62
+ "type": "spacing"
63
+ }
64
+ },
65
+ "shadow": {
66
+ "sm": {
67
+ "value": "{core.box-shadow.1}",
68
+ "type": "boxShadow"
69
+ },
70
+ "md": {
71
+ "value": "{core.box-shadow.1}",
72
+ "type": "boxShadow"
73
+ },
74
+ "lg": {
75
+ "value": "{core.box-shadow.1}",
76
+ "type": "boxShadow"
77
+ }
78
+ }
79
+ }
80
+ }