@atlaskit/tokens 5.6.3 → 6.1.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.
- package/CHANGELOG.md +17 -0
- package/babel-plugin/package.json +1 -1
- package/codemods/theme-to-design-tokens/transform.tsx +1 -0
- package/css-type-schema/package.json +1 -1
- package/custom-themes/package.json +1 -1
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/cjs/artifacts/replacement-mapping.js +29 -2
- package/dist/cjs/artifacts/theme-import-map.js +13 -1
- package/dist/cjs/artifacts/themes/atlassian-shape-rounder.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-shape-roundest.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +21 -13
- package/dist/cjs/artifacts/token-names.js +21 -13
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +469 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +469 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/entry-points/token-metadata.codegen.js +96 -51
- package/dist/cjs/theme-config.js +19 -6
- package/dist/cjs/theme-state-transformer.js +3 -1
- package/dist/cjs/utils/token-order.js +6 -3
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/es2019/artifacts/replacement-mapping.js +29 -2
- package/dist/es2019/artifacts/theme-import-map.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-shape-rounder.js +28 -0
- package/dist/es2019/artifacts/themes/atlassian-shape-roundest.js +28 -0
- package/dist/es2019/artifacts/themes/atlassian-shape.js +11 -3
- package/dist/es2019/artifacts/token-default-values.js +21 -13
- package/dist/es2019/artifacts/token-names.js +21 -13
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +463 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +463 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/entry-points/token-metadata.codegen.js +96 -51
- package/dist/es2019/theme-config.js +19 -6
- package/dist/es2019/theme-state-transformer.js +3 -1
- package/dist/es2019/utils/token-order.js +6 -3
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/esm/artifacts/replacement-mapping.js +29 -2
- package/dist/esm/artifacts/theme-import-map.js +9 -1
- package/dist/esm/artifacts/themes/atlassian-shape-rounder.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-shape-roundest.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +21 -13
- package/dist/esm/artifacts/token-names.js +21 -13
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +463 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +463 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/esm/constants.js +1 -1
- package/dist/esm/entry-points/token-metadata.codegen.js +96 -51
- package/dist/esm/theme-config.js +19 -6
- package/dist/esm/theme-state-transformer.js +3 -1
- package/dist/esm/utils/token-order.js +6 -3
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-shape-rounder.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-shape-roundest.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +20 -12
- package/dist/types/artifacts/token-names.d.ts +39 -23
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +59 -0
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +59 -0
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +9 -5
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/enable-global-theme.d.ts +1 -1
- package/dist/types/entry-points/css-type-schema.codegen.d.ts +3 -3
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/get-ssr-auto-script.d.ts +1 -1
- package/dist/types/get-theme-styles.d.ts +1 -1
- package/dist/types/set-global-theme.d.ts +1 -1
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/types.d.ts +12 -2
- package/dist/types/utils/color-detection.d.ts +1 -1
- package/dist/types/utils/custom-theme-token-contrast-check.d.ts +2 -2
- package/dist/types/utils/generate-custom-color-ramp.d.ts +2 -8
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-rounder.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-roundest.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +20 -12
- package/dist/types-ts4.5/artifacts/token-names.d.ts +39 -23
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +59 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +59 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +9 -5
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/enable-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +3 -3
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/get-ssr-auto-script.d.ts +1 -1
- package/dist/types-ts4.5/get-theme-styles.d.ts +1 -1
- package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme-config.d.ts +6 -2
- package/dist/types-ts4.5/types.d.ts +12 -2
- package/dist/types-ts4.5/utils/color-detection.d.ts +1 -1
- package/dist/types-ts4.5/utils/custom-theme-token-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/utils/generate-custom-color-ramp.d.ts +2 -4
- package/figma/atlassian-shape-rounder.json +114 -0
- package/figma/atlassian-shape-roundest.json +114 -0
- package/figma/atlassian-shape.json +44 -46
- package/package.json +8 -9
- package/palettes-raw/package.json +1 -1
- package/rename-mapping/package.json +1 -1
- package/token-default-values/package.json +1 -1
- package/token-ids/package.json +1 -1
- package/token-metadata/package.json +1 -1
- package/token-names/package.json +1 -1
- package/token-order/package.json +1 -1
- package/tokens-raw/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f755c03a62ad1c3a129f21e10a2669d5>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
7
7
|
"attributes": {
|
|
8
8
|
"group": "shape",
|
|
9
9
|
"state": "active",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"suggest": ["2px"],
|
|
11
|
+
"introduced": "6.1.0",
|
|
12
|
+
"description": "Used for small containers such as badges."
|
|
12
13
|
},
|
|
13
14
|
"value": "2px",
|
|
14
15
|
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
@@ -17,20 +18,141 @@ var tokens = [{
|
|
|
17
18
|
"attributes": {
|
|
18
19
|
"group": "shape",
|
|
19
20
|
"state": "active",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
21
|
+
"suggest": ["2px"],
|
|
22
|
+
"introduced": "6.1.0",
|
|
23
|
+
"description": "Used for small containers such as badges."
|
|
22
24
|
},
|
|
23
|
-
"value": "
|
|
25
|
+
"value": "Radius02"
|
|
24
26
|
},
|
|
25
|
-
"name": "
|
|
26
|
-
"path": ["
|
|
27
|
-
"cleanName": "
|
|
27
|
+
"name": "radius.xsmall",
|
|
28
|
+
"path": ["radius", "xsmall"],
|
|
29
|
+
"cleanName": "radius.xsmall"
|
|
30
|
+
}, {
|
|
31
|
+
"attributes": {
|
|
32
|
+
"group": "shape",
|
|
33
|
+
"state": "active",
|
|
34
|
+
"suggest": ["4px"],
|
|
35
|
+
"introduced": "6.1.0",
|
|
36
|
+
"description": "Used for labels."
|
|
37
|
+
},
|
|
38
|
+
"value": "4px",
|
|
39
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
40
|
+
"isSource": true,
|
|
41
|
+
"original": {
|
|
42
|
+
"attributes": {
|
|
43
|
+
"group": "shape",
|
|
44
|
+
"state": "active",
|
|
45
|
+
"suggest": ["4px"],
|
|
46
|
+
"introduced": "6.1.0",
|
|
47
|
+
"description": "Used for labels."
|
|
48
|
+
},
|
|
49
|
+
"value": "Radius04"
|
|
50
|
+
},
|
|
51
|
+
"name": "radius.small",
|
|
52
|
+
"path": ["radius", "small"],
|
|
53
|
+
"cleanName": "radius.small"
|
|
54
|
+
}, {
|
|
55
|
+
"attributes": {
|
|
56
|
+
"group": "shape",
|
|
57
|
+
"state": "active",
|
|
58
|
+
"suggest": ["6px"],
|
|
59
|
+
"introduced": "6.1.0",
|
|
60
|
+
"description": "Used for buttons and inputs."
|
|
61
|
+
},
|
|
62
|
+
"value": "6px",
|
|
63
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
64
|
+
"isSource": true,
|
|
65
|
+
"original": {
|
|
66
|
+
"attributes": {
|
|
67
|
+
"group": "shape",
|
|
68
|
+
"state": "active",
|
|
69
|
+
"suggest": ["6px"],
|
|
70
|
+
"introduced": "6.1.0",
|
|
71
|
+
"description": "Used for buttons and inputs."
|
|
72
|
+
},
|
|
73
|
+
"value": "Radius06"
|
|
74
|
+
},
|
|
75
|
+
"name": "radius.medium",
|
|
76
|
+
"path": ["radius", "medium"],
|
|
77
|
+
"cleanName": "radius.medium"
|
|
28
78
|
}, {
|
|
29
79
|
"attributes": {
|
|
30
80
|
"group": "shape",
|
|
31
81
|
"state": "active",
|
|
32
|
-
"suggest": ["
|
|
82
|
+
"suggest": ["8px"],
|
|
83
|
+
"introduced": "6.1.0",
|
|
84
|
+
"description": "Used for cards and small containers."
|
|
85
|
+
},
|
|
86
|
+
"value": "8px",
|
|
87
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
88
|
+
"isSource": true,
|
|
89
|
+
"original": {
|
|
90
|
+
"attributes": {
|
|
91
|
+
"group": "shape",
|
|
92
|
+
"state": "active",
|
|
93
|
+
"suggest": ["8px"],
|
|
94
|
+
"introduced": "6.1.0",
|
|
95
|
+
"description": "Used for cards and small containers."
|
|
96
|
+
},
|
|
97
|
+
"value": "Radius08"
|
|
98
|
+
},
|
|
99
|
+
"name": "radius.large",
|
|
100
|
+
"path": ["radius", "large"],
|
|
101
|
+
"cleanName": "radius.large"
|
|
102
|
+
}, {
|
|
103
|
+
"attributes": {
|
|
104
|
+
"group": "shape",
|
|
105
|
+
"state": "active",
|
|
106
|
+
"suggest": ["12px"],
|
|
107
|
+
"introduced": "6.1.0",
|
|
108
|
+
"description": "Used for modals and large containers."
|
|
109
|
+
},
|
|
110
|
+
"value": "12px",
|
|
111
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
112
|
+
"isSource": true,
|
|
113
|
+
"original": {
|
|
114
|
+
"attributes": {
|
|
115
|
+
"group": "shape",
|
|
116
|
+
"state": "active",
|
|
117
|
+
"suggest": ["12px"],
|
|
118
|
+
"introduced": "6.1.0",
|
|
119
|
+
"description": "Used for modals and large containers."
|
|
120
|
+
},
|
|
121
|
+
"value": "Radius12"
|
|
122
|
+
},
|
|
123
|
+
"name": "radius.xlarge",
|
|
124
|
+
"path": ["radius", "xlarge"],
|
|
125
|
+
"cleanName": "radius.xlarge"
|
|
126
|
+
}, {
|
|
127
|
+
"attributes": {
|
|
128
|
+
"group": "shape",
|
|
129
|
+
"state": "active",
|
|
130
|
+
"suggest": ["50%"],
|
|
131
|
+
"introduced": "6.1.0",
|
|
132
|
+
"description": "Used for circular containers, like a rounded button."
|
|
133
|
+
},
|
|
134
|
+
"value": "9999px",
|
|
135
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
136
|
+
"isSource": true,
|
|
137
|
+
"original": {
|
|
138
|
+
"attributes": {
|
|
139
|
+
"group": "shape",
|
|
140
|
+
"state": "active",
|
|
141
|
+
"suggest": ["50%"],
|
|
142
|
+
"introduced": "6.1.0",
|
|
143
|
+
"description": "Used for circular containers, like a rounded button."
|
|
144
|
+
},
|
|
145
|
+
"value": "Radius99"
|
|
146
|
+
},
|
|
147
|
+
"name": "radius.full",
|
|
148
|
+
"path": ["radius", "full"],
|
|
149
|
+
"cleanName": "radius.full"
|
|
150
|
+
}, {
|
|
151
|
+
"attributes": {
|
|
152
|
+
"group": "shape",
|
|
153
|
+
"state": "deprecated",
|
|
33
154
|
"introduced": "1.5.2",
|
|
155
|
+
"deprecated": "6.1.0",
|
|
34
156
|
"description": "The default border radius."
|
|
35
157
|
},
|
|
36
158
|
"value": "4px",
|
|
@@ -39,12 +161,12 @@ var tokens = [{
|
|
|
39
161
|
"original": {
|
|
40
162
|
"attributes": {
|
|
41
163
|
"group": "shape",
|
|
42
|
-
"state": "
|
|
43
|
-
"suggest": ["3px", "4px"],
|
|
164
|
+
"state": "deprecated",
|
|
44
165
|
"introduced": "1.5.2",
|
|
166
|
+
"deprecated": "6.1.0",
|
|
45
167
|
"description": "The default border radius."
|
|
46
168
|
},
|
|
47
|
-
"value": "
|
|
169
|
+
"value": "Radius04"
|
|
48
170
|
},
|
|
49
171
|
"name": "border.radius.[default]",
|
|
50
172
|
"path": ["border", "radius", "[default]"],
|
|
@@ -52,8 +174,33 @@ var tokens = [{
|
|
|
52
174
|
}, {
|
|
53
175
|
"attributes": {
|
|
54
176
|
"group": "shape",
|
|
55
|
-
"state": "
|
|
177
|
+
"state": "deprecated",
|
|
178
|
+
"introduced": "1.1.0",
|
|
179
|
+
"deprecated": "6.1.0",
|
|
180
|
+
"description": "Used for selection indicators, like tabs."
|
|
181
|
+
},
|
|
182
|
+
"value": "2px",
|
|
183
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
184
|
+
"isSource": true,
|
|
185
|
+
"original": {
|
|
186
|
+
"attributes": {
|
|
187
|
+
"group": "shape",
|
|
188
|
+
"state": "deprecated",
|
|
189
|
+
"introduced": "1.1.0",
|
|
190
|
+
"deprecated": "6.1.0",
|
|
191
|
+
"description": "Used for selection indicators, like tabs."
|
|
192
|
+
},
|
|
193
|
+
"value": "Radius02"
|
|
194
|
+
},
|
|
195
|
+
"name": "border.radius.050",
|
|
196
|
+
"path": ["border", "radius", "050"],
|
|
197
|
+
"cleanName": "border.radius.050"
|
|
198
|
+
}, {
|
|
199
|
+
"attributes": {
|
|
200
|
+
"group": "shape",
|
|
201
|
+
"state": "deprecated",
|
|
56
202
|
"introduced": "1.1.0",
|
|
203
|
+
"deprecated": "6.1.0",
|
|
57
204
|
"description": "Used for buttons and inputs."
|
|
58
205
|
},
|
|
59
206
|
"value": "4px",
|
|
@@ -62,11 +209,12 @@ var tokens = [{
|
|
|
62
209
|
"original": {
|
|
63
210
|
"attributes": {
|
|
64
211
|
"group": "shape",
|
|
65
|
-
"state": "
|
|
212
|
+
"state": "deprecated",
|
|
66
213
|
"introduced": "1.1.0",
|
|
214
|
+
"deprecated": "6.1.0",
|
|
67
215
|
"description": "Used for buttons and inputs."
|
|
68
216
|
},
|
|
69
|
-
"value": "
|
|
217
|
+
"value": "Radius04"
|
|
70
218
|
},
|
|
71
219
|
"name": "border.radius.100",
|
|
72
220
|
"path": ["border", "radius", "100"],
|
|
@@ -74,8 +222,9 @@ var tokens = [{
|
|
|
74
222
|
}, {
|
|
75
223
|
"attributes": {
|
|
76
224
|
"group": "shape",
|
|
77
|
-
"state": "
|
|
225
|
+
"state": "deprecated",
|
|
78
226
|
"introduced": "1.1.0",
|
|
227
|
+
"deprecated": "6.1.0",
|
|
79
228
|
"description": "Used for smaller cards."
|
|
80
229
|
},
|
|
81
230
|
"value": "8px",
|
|
@@ -84,11 +233,12 @@ var tokens = [{
|
|
|
84
233
|
"original": {
|
|
85
234
|
"attributes": {
|
|
86
235
|
"group": "shape",
|
|
87
|
-
"state": "
|
|
236
|
+
"state": "deprecated",
|
|
88
237
|
"introduced": "1.1.0",
|
|
238
|
+
"deprecated": "6.1.0",
|
|
89
239
|
"description": "Used for smaller cards."
|
|
90
240
|
},
|
|
91
|
-
"value": "
|
|
241
|
+
"value": "Radius08"
|
|
92
242
|
},
|
|
93
243
|
"name": "border.radius.200",
|
|
94
244
|
"path": ["border", "radius", "200"],
|
|
@@ -96,8 +246,9 @@ var tokens = [{
|
|
|
96
246
|
}, {
|
|
97
247
|
"attributes": {
|
|
98
248
|
"group": "shape",
|
|
99
|
-
"state": "
|
|
249
|
+
"state": "deprecated",
|
|
100
250
|
"introduced": "1.1.0",
|
|
251
|
+
"deprecated": "6.1.0",
|
|
101
252
|
"description": "Used for cards and larger containers."
|
|
102
253
|
},
|
|
103
254
|
"value": "12px",
|
|
@@ -106,11 +257,12 @@ var tokens = [{
|
|
|
106
257
|
"original": {
|
|
107
258
|
"attributes": {
|
|
108
259
|
"group": "shape",
|
|
109
|
-
"state": "
|
|
260
|
+
"state": "deprecated",
|
|
110
261
|
"introduced": "1.1.0",
|
|
262
|
+
"deprecated": "6.1.0",
|
|
111
263
|
"description": "Used for cards and larger containers."
|
|
112
264
|
},
|
|
113
|
-
"value": "
|
|
265
|
+
"value": "Radius12"
|
|
114
266
|
},
|
|
115
267
|
"name": "border.radius.300",
|
|
116
268
|
"path": ["border", "radius", "300"],
|
|
@@ -118,8 +270,9 @@ var tokens = [{
|
|
|
118
270
|
}, {
|
|
119
271
|
"attributes": {
|
|
120
272
|
"group": "shape",
|
|
121
|
-
"state": "
|
|
273
|
+
"state": "deprecated",
|
|
122
274
|
"introduced": "1.1.0",
|
|
275
|
+
"deprecated": "6.1.0",
|
|
123
276
|
"description": "Used for modals."
|
|
124
277
|
},
|
|
125
278
|
"value": "16px",
|
|
@@ -128,11 +281,12 @@ var tokens = [{
|
|
|
128
281
|
"original": {
|
|
129
282
|
"attributes": {
|
|
130
283
|
"group": "shape",
|
|
131
|
-
"state": "
|
|
284
|
+
"state": "deprecated",
|
|
132
285
|
"introduced": "1.1.0",
|
|
286
|
+
"deprecated": "6.1.0",
|
|
133
287
|
"description": "Used for modals."
|
|
134
288
|
},
|
|
135
|
-
"value": "
|
|
289
|
+
"value": "Radius16"
|
|
136
290
|
},
|
|
137
291
|
"name": "border.radius.400",
|
|
138
292
|
"path": ["border", "radius", "400"],
|
|
@@ -140,23 +294,23 @@ var tokens = [{
|
|
|
140
294
|
}, {
|
|
141
295
|
"attributes": {
|
|
142
296
|
"group": "shape",
|
|
143
|
-
"state": "
|
|
144
|
-
"suggest": ["50%"],
|
|
297
|
+
"state": "deprecated",
|
|
145
298
|
"introduced": "1.1.0",
|
|
299
|
+
"deprecated": "6.1.0",
|
|
146
300
|
"description": "Used for circular containers, like a rounded button."
|
|
147
301
|
},
|
|
148
|
-
"value": "
|
|
302
|
+
"value": "9999px",
|
|
149
303
|
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
150
304
|
"isSource": true,
|
|
151
305
|
"original": {
|
|
152
306
|
"attributes": {
|
|
153
307
|
"group": "shape",
|
|
154
|
-
"state": "
|
|
155
|
-
"suggest": ["50%"],
|
|
308
|
+
"state": "deprecated",
|
|
156
309
|
"introduced": "1.1.0",
|
|
310
|
+
"deprecated": "6.1.0",
|
|
157
311
|
"description": "Used for circular containers, like a rounded button."
|
|
158
312
|
},
|
|
159
|
-
"value": "
|
|
313
|
+
"value": "Radius99"
|
|
160
314
|
},
|
|
161
315
|
"name": "border.radius.circle",
|
|
162
316
|
"path": ["border", "radius", "circle"],
|
|
@@ -165,7 +319,7 @@ var tokens = [{
|
|
|
165
319
|
"attributes": {
|
|
166
320
|
"group": "shape",
|
|
167
321
|
"state": "active",
|
|
168
|
-
"suggest": ["1px"
|
|
322
|
+
"suggest": ["1px"],
|
|
169
323
|
"introduced": "1.5.2",
|
|
170
324
|
"description": "The default border width. Used for all borders."
|
|
171
325
|
},
|
|
@@ -176,11 +330,11 @@ var tokens = [{
|
|
|
176
330
|
"attributes": {
|
|
177
331
|
"group": "shape",
|
|
178
332
|
"state": "active",
|
|
179
|
-
"suggest": ["1px"
|
|
333
|
+
"suggest": ["1px"],
|
|
180
334
|
"introduced": "1.5.2",
|
|
181
335
|
"description": "The default border width. Used for all borders."
|
|
182
336
|
},
|
|
183
|
-
"value": "
|
|
337
|
+
"value": "BorderWidth1"
|
|
184
338
|
},
|
|
185
339
|
"name": "border.width.[default]",
|
|
186
340
|
"path": ["border", "width", "[default]"],
|
|
@@ -188,8 +342,9 @@ var tokens = [{
|
|
|
188
342
|
}, {
|
|
189
343
|
"attributes": {
|
|
190
344
|
"group": "shape",
|
|
191
|
-
"state": "
|
|
345
|
+
"state": "deprecated",
|
|
192
346
|
"introduced": "1.2.1",
|
|
347
|
+
"deprecated": "6.1.0",
|
|
193
348
|
"description": "Used for zero width borders."
|
|
194
349
|
},
|
|
195
350
|
"value": "0px",
|
|
@@ -198,8 +353,9 @@ var tokens = [{
|
|
|
198
353
|
"original": {
|
|
199
354
|
"attributes": {
|
|
200
355
|
"group": "shape",
|
|
201
|
-
"state": "
|
|
356
|
+
"state": "deprecated",
|
|
202
357
|
"introduced": "1.2.1",
|
|
358
|
+
"deprecated": "6.1.0",
|
|
203
359
|
"description": "Used for zero width borders."
|
|
204
360
|
},
|
|
205
361
|
"value": "Size0"
|
|
@@ -210,8 +366,9 @@ var tokens = [{
|
|
|
210
366
|
}, {
|
|
211
367
|
"attributes": {
|
|
212
368
|
"group": "shape",
|
|
213
|
-
"state": "
|
|
369
|
+
"state": "deprecated",
|
|
214
370
|
"introduced": "1.5.2",
|
|
371
|
+
"deprecated": "6.1.0",
|
|
215
372
|
"description": "Used for indicators like tab and menu selected states."
|
|
216
373
|
},
|
|
217
374
|
"value": "3px",
|
|
@@ -220,8 +377,9 @@ var tokens = [{
|
|
|
220
377
|
"original": {
|
|
221
378
|
"attributes": {
|
|
222
379
|
"group": "shape",
|
|
223
|
-
"state": "
|
|
380
|
+
"state": "deprecated",
|
|
224
381
|
"introduced": "1.5.2",
|
|
382
|
+
"deprecated": "6.1.0",
|
|
225
383
|
"description": "Used for indicators like tab and menu selected states."
|
|
226
384
|
},
|
|
227
385
|
"value": "Size200"
|
|
@@ -232,8 +390,9 @@ var tokens = [{
|
|
|
232
390
|
}, {
|
|
233
391
|
"attributes": {
|
|
234
392
|
"group": "shape",
|
|
235
|
-
"state": "
|
|
393
|
+
"state": "deprecated",
|
|
236
394
|
"introduced": "1.5.2",
|
|
395
|
+
"deprecated": "6.1.0",
|
|
237
396
|
"description": "Used for focus, active or selected inputs."
|
|
238
397
|
},
|
|
239
398
|
"value": "2px",
|
|
@@ -242,14 +401,63 @@ var tokens = [{
|
|
|
242
401
|
"original": {
|
|
243
402
|
"attributes": {
|
|
244
403
|
"group": "shape",
|
|
245
|
-
"state": "
|
|
404
|
+
"state": "deprecated",
|
|
246
405
|
"introduced": "1.5.2",
|
|
406
|
+
"deprecated": "6.1.0",
|
|
247
407
|
"description": "Used for focus, active or selected inputs."
|
|
248
408
|
},
|
|
249
|
-
"value": "
|
|
409
|
+
"value": "BorderWidth2"
|
|
250
410
|
},
|
|
251
411
|
"name": "border.width.outline",
|
|
252
412
|
"path": ["border", "width", "outline"],
|
|
253
413
|
"cleanName": "border.width.outline"
|
|
414
|
+
}, {
|
|
415
|
+
"attributes": {
|
|
416
|
+
"group": "shape",
|
|
417
|
+
"state": "active",
|
|
418
|
+
"suggest": ["2px"],
|
|
419
|
+
"introduced": "6.1.0",
|
|
420
|
+
"description": "Use for selected states."
|
|
421
|
+
},
|
|
422
|
+
"value": "2px",
|
|
423
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
424
|
+
"isSource": true,
|
|
425
|
+
"original": {
|
|
426
|
+
"attributes": {
|
|
427
|
+
"group": "shape",
|
|
428
|
+
"state": "active",
|
|
429
|
+
"suggest": ["2px"],
|
|
430
|
+
"introduced": "6.1.0",
|
|
431
|
+
"description": "Use for selected states."
|
|
432
|
+
},
|
|
433
|
+
"value": "BorderWidth2"
|
|
434
|
+
},
|
|
435
|
+
"name": "border.width.selected",
|
|
436
|
+
"path": ["border", "width", "selected"],
|
|
437
|
+
"cleanName": "border.width.selected"
|
|
438
|
+
}, {
|
|
439
|
+
"attributes": {
|
|
440
|
+
"group": "shape",
|
|
441
|
+
"state": "active",
|
|
442
|
+
"suggest": ["2px"],
|
|
443
|
+
"introduced": "6.1.0",
|
|
444
|
+
"description": "Use for focused states."
|
|
445
|
+
},
|
|
446
|
+
"value": "2px",
|
|
447
|
+
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
448
|
+
"isSource": true,
|
|
449
|
+
"original": {
|
|
450
|
+
"attributes": {
|
|
451
|
+
"group": "shape",
|
|
452
|
+
"state": "active",
|
|
453
|
+
"suggest": ["2px"],
|
|
454
|
+
"introduced": "6.1.0",
|
|
455
|
+
"description": "Use for focused states."
|
|
456
|
+
},
|
|
457
|
+
"value": "BorderWidth2"
|
|
458
|
+
},
|
|
459
|
+
"name": "border.width.focused",
|
|
460
|
+
"path": ["border", "width", "focused"],
|
|
461
|
+
"cleanName": "border.width.focused"
|
|
254
462
|
}];
|
|
255
463
|
export default tokens;
|
package/dist/esm/constants.js
CHANGED
|
@@ -3,6 +3,6 @@ export var COLOR_MODE_ATTRIBUTE = 'data-color-mode';
|
|
|
3
3
|
export var CONTRAST_MODE_ATTRIBUTE = 'data-contrast-mode';
|
|
4
4
|
export var CUSTOM_THEME_ATTRIBUTE = 'data-custom-theme';
|
|
5
5
|
export var CSS_PREFIX = 'ds';
|
|
6
|
-
export var CSS_VAR_FULL = ['opacity', 'font', 'space', 'border'];
|
|
6
|
+
export var CSS_VAR_FULL = ['opacity', 'font', 'space', 'border', 'radius'];
|
|
7
7
|
export var TOKEN_NOT_FOUND_CSS_VAR = "--".concat(CSS_PREFIX, "-token-not-found");
|
|
8
8
|
export var CURRENT_SURFACE_CSS_VAR = "--".concat(CSS_PREFIX, "-elevation-surface-current");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Metadata for generation of of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2f0d0ffb7abcc77f7b99efa4241047a4>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -1962,56 +1962,6 @@ export var tokens = [{
|
|
|
1962
1962
|
path: ['utility', 'elevation', 'surface', 'current'],
|
|
1963
1963
|
description: "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value.",
|
|
1964
1964
|
exampleValue: '#FFFFFF'
|
|
1965
|
-
}, {
|
|
1966
|
-
name: 'border.radius.050',
|
|
1967
|
-
path: ['border', 'radius', '050'],
|
|
1968
|
-
description: 'Used for selection indicators, like tabs.',
|
|
1969
|
-
exampleValue: '0.125rem'
|
|
1970
|
-
}, {
|
|
1971
|
-
name: 'border.radius',
|
|
1972
|
-
path: ['border', 'radius', '[default]'],
|
|
1973
|
-
description: 'The default border radius.',
|
|
1974
|
-
exampleValue: '0.25rem'
|
|
1975
|
-
}, {
|
|
1976
|
-
name: 'border.radius.100',
|
|
1977
|
-
path: ['border', 'radius', '100'],
|
|
1978
|
-
description: 'Used for buttons and inputs.',
|
|
1979
|
-
exampleValue: '0.25rem'
|
|
1980
|
-
}, {
|
|
1981
|
-
name: 'border.radius.200',
|
|
1982
|
-
path: ['border', 'radius', '200'],
|
|
1983
|
-
description: 'Used for smaller cards.',
|
|
1984
|
-
exampleValue: '0.5rem'
|
|
1985
|
-
}, {
|
|
1986
|
-
name: 'border.radius.300',
|
|
1987
|
-
path: ['border', 'radius', '300'],
|
|
1988
|
-
description: 'Used for cards and larger containers.',
|
|
1989
|
-
exampleValue: '0.75rem'
|
|
1990
|
-
}, {
|
|
1991
|
-
name: 'border.radius.400',
|
|
1992
|
-
path: ['border', 'radius', '400'],
|
|
1993
|
-
description: 'Used for modals.',
|
|
1994
|
-
exampleValue: '1rem'
|
|
1995
|
-
}, {
|
|
1996
|
-
name: 'border.radius.circle',
|
|
1997
|
-
path: ['border', 'radius', 'circle'],
|
|
1998
|
-
description: 'Used for circular containers, like a rounded button.',
|
|
1999
|
-
exampleValue: '2002rem'
|
|
2000
|
-
}, {
|
|
2001
|
-
name: 'border.width',
|
|
2002
|
-
path: ['border', 'width', '[default]'],
|
|
2003
|
-
description: 'The default border width. Used for all borders.',
|
|
2004
|
-
exampleValue: '0.0625rem'
|
|
2005
|
-
}, {
|
|
2006
|
-
name: 'border.width.indicator',
|
|
2007
|
-
path: ['border', 'width', 'indicator'],
|
|
2008
|
-
description: 'Used for indicators like tab and menu selected states.',
|
|
2009
|
-
exampleValue: '0.1875rem'
|
|
2010
|
-
}, {
|
|
2011
|
-
name: 'border.width.outline',
|
|
2012
|
-
path: ['border', 'width', 'outline'],
|
|
2013
|
-
description: 'Used for focus, active or selected inputs.',
|
|
2014
|
-
exampleValue: '0.125rem'
|
|
2015
1965
|
}, {
|
|
2016
1966
|
name: 'space.0',
|
|
2017
1967
|
path: ['space', '0'],
|
|
@@ -2247,4 +2197,99 @@ export var tokens = [{
|
|
|
2247
2197
|
path: ['font', 'family', 'brand', 'body'],
|
|
2248
2198
|
description: 'For our brand body text. Uses Charlie Text.',
|
|
2249
2199
|
exampleValue: '"Charlie Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
|
|
2200
|
+
}, {
|
|
2201
|
+
name: 'radius.xsmall',
|
|
2202
|
+
path: ['radius', 'xsmall'],
|
|
2203
|
+
description: 'Used for small containers such as badges.',
|
|
2204
|
+
exampleValue: '0.125rem'
|
|
2205
|
+
}, {
|
|
2206
|
+
name: 'radius.small',
|
|
2207
|
+
path: ['radius', 'small'],
|
|
2208
|
+
description: 'Used for labels.',
|
|
2209
|
+
exampleValue: '0.25rem'
|
|
2210
|
+
}, {
|
|
2211
|
+
name: 'radius.medium',
|
|
2212
|
+
path: ['radius', 'medium'],
|
|
2213
|
+
description: 'Used for buttons and inputs.',
|
|
2214
|
+
exampleValue: '0.375rem'
|
|
2215
|
+
}, {
|
|
2216
|
+
name: 'radius.large',
|
|
2217
|
+
path: ['radius', 'large'],
|
|
2218
|
+
description: 'Used for cards and small containers.',
|
|
2219
|
+
exampleValue: '0.5rem'
|
|
2220
|
+
}, {
|
|
2221
|
+
name: 'radius.xlarge',
|
|
2222
|
+
path: ['radius', 'xlarge'],
|
|
2223
|
+
description: 'Used for modals and large containers.',
|
|
2224
|
+
exampleValue: '0.75rem'
|
|
2225
|
+
}, {
|
|
2226
|
+
name: 'radius.full',
|
|
2227
|
+
path: ['radius', 'full'],
|
|
2228
|
+
description: 'Used for circular containers, like a rounded button.',
|
|
2229
|
+
exampleValue: '624.9375rem'
|
|
2230
|
+
}, {
|
|
2231
|
+
name: 'border.radius',
|
|
2232
|
+
path: ['border', 'radius', '[default]'],
|
|
2233
|
+
description: 'The default border radius.',
|
|
2234
|
+
exampleValue: '0.25rem'
|
|
2235
|
+
}, {
|
|
2236
|
+
name: 'border.radius.050',
|
|
2237
|
+
path: ['border', 'radius', '050'],
|
|
2238
|
+
description: 'Used for selection indicators, like tabs.',
|
|
2239
|
+
exampleValue: '0.125rem'
|
|
2240
|
+
}, {
|
|
2241
|
+
name: 'border.radius.100',
|
|
2242
|
+
path: ['border', 'radius', '100'],
|
|
2243
|
+
description: 'Used for buttons and inputs.',
|
|
2244
|
+
exampleValue: '0.25rem'
|
|
2245
|
+
}, {
|
|
2246
|
+
name: 'border.radius.200',
|
|
2247
|
+
path: ['border', 'radius', '200'],
|
|
2248
|
+
description: 'Used for smaller cards.',
|
|
2249
|
+
exampleValue: '0.5rem'
|
|
2250
|
+
}, {
|
|
2251
|
+
name: 'border.radius.300',
|
|
2252
|
+
path: ['border', 'radius', '300'],
|
|
2253
|
+
description: 'Used for cards and larger containers.',
|
|
2254
|
+
exampleValue: '0.75rem'
|
|
2255
|
+
}, {
|
|
2256
|
+
name: 'border.radius.400',
|
|
2257
|
+
path: ['border', 'radius', '400'],
|
|
2258
|
+
description: 'Used for modals.',
|
|
2259
|
+
exampleValue: '1rem'
|
|
2260
|
+
}, {
|
|
2261
|
+
name: 'border.radius.circle',
|
|
2262
|
+
path: ['border', 'radius', 'circle'],
|
|
2263
|
+
description: 'Used for circular containers, like a rounded button.',
|
|
2264
|
+
exampleValue: '624.9375rem'
|
|
2265
|
+
}, {
|
|
2266
|
+
name: 'border.width',
|
|
2267
|
+
path: ['border', 'width', '[default]'],
|
|
2268
|
+
description: 'The default border width. Used for all borders.',
|
|
2269
|
+
exampleValue: '0.0625rem'
|
|
2270
|
+
}, {
|
|
2271
|
+
name: 'border.width.0',
|
|
2272
|
+
path: ['border', 'width', '0'],
|
|
2273
|
+
description: 'Used for zero width borders.',
|
|
2274
|
+
exampleValue: '0rem'
|
|
2275
|
+
}, {
|
|
2276
|
+
name: 'border.width.indicator',
|
|
2277
|
+
path: ['border', 'width', 'indicator'],
|
|
2278
|
+
description: 'Used for indicators like tab and menu selected states.',
|
|
2279
|
+
exampleValue: '0.1875rem'
|
|
2280
|
+
}, {
|
|
2281
|
+
name: 'border.width.outline',
|
|
2282
|
+
path: ['border', 'width', 'outline'],
|
|
2283
|
+
description: 'Used for focus, active or selected inputs.',
|
|
2284
|
+
exampleValue: '0.125rem'
|
|
2285
|
+
}, {
|
|
2286
|
+
name: 'border.width.selected',
|
|
2287
|
+
path: ['border', 'width', 'selected'],
|
|
2288
|
+
description: 'Use for selected states.',
|
|
2289
|
+
exampleValue: '0.125rem'
|
|
2290
|
+
}, {
|
|
2291
|
+
name: 'border.width.focused',
|
|
2292
|
+
path: ['border', 'width', 'focused'],
|
|
2293
|
+
description: 'Use for focused states.',
|
|
2294
|
+
exampleValue: '0.125rem'
|
|
2250
2295
|
}];
|