@atlaskit/tokens 1.5.2 → 1.6.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 +10 -0
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +12 -10
- package/dist/cjs/artifacts/token-names.js +12 -10
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/shape-palette.js +2 -1
- package/dist/cjs/set-global-theme.js +14 -3
- package/dist/cjs/tokens/atlassian-shape/shape.js +7 -1
- package/dist/cjs/tokens/default/shape/shape.js +33 -17
- package/dist/cjs/utils/theme-state-transformer.js +2 -1
- package/dist/cjs/utils/token-order.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/es2019/artifacts/themes/atlassian-shape.js +12 -10
- package/dist/es2019/artifacts/token-default-values.js +12 -10
- package/dist/es2019/artifacts/token-names.js +12 -10
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/shape-palette.js +2 -1
- package/dist/es2019/set-global-theme.js +10 -2
- package/dist/es2019/tokens/atlassian-shape/shape.js +7 -1
- package/dist/es2019/tokens/default/shape/shape.js +33 -17
- package/dist/es2019/utils/theme-state-transformer.js +2 -1
- package/dist/es2019/utils/token-order.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +12 -10
- package/dist/esm/artifacts/token-names.js +12 -10
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/esm/constants.js +1 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/shape-palette.js +2 -1
- package/dist/esm/set-global-theme.js +14 -3
- package/dist/esm/tokens/atlassian-shape/shape.js +7 -1
- package/dist/esm/tokens/default/shape/shape.js +33 -17
- package/dist/esm/utils/theme-state-transformer.js +2 -1
- package/dist/esm/utils/token-order.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +3 -18
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +12 -10
- package/dist/types/artifacts/token-names.d.ts +23 -19
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/palettes/shape-palette.d.ts +1 -1
- package/dist/types/set-global-theme.d.ts +8 -7
- package/dist/types/types.d.ts +3 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +3 -18
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +12 -10
- package/dist/types-ts4.5/artifacts/token-names.d.ts +23 -19
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- 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/index.d.ts +1 -1
- package/dist/types-ts4.5/palettes/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/set-global-theme.d.ts +8 -7
- package/dist/types-ts4.5/types.d.ts +3 -1
- package/figma/atlassian-dark.json +16 -16
- package/figma/atlassian-legacy-dark.json +16 -16
- package/figma/atlassian-legacy-light.json +16 -16
- package/figma/atlassian-light.json +16 -16
- package/figma/atlassian-shape.json +36 -18
- package/package.json +3 -4
- package/report.api.md +125 -22
- package/tmp/api-report-tmp.d.ts +107 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::2246b2d7c94a1fe562f7860f3b40764b>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -30,7 +30,7 @@ var tokens = [{
|
|
|
30
30
|
"group": "paint",
|
|
31
31
|
"state": "active",
|
|
32
32
|
"introduced": "0.6.0",
|
|
33
|
-
"description": "Use for red text on
|
|
33
|
+
"description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
|
|
34
34
|
},
|
|
35
35
|
"value": "#AE2A19",
|
|
36
36
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -40,7 +40,7 @@ var tokens = [{
|
|
|
40
40
|
"group": "paint",
|
|
41
41
|
"state": "active",
|
|
42
42
|
"introduced": "0.6.0",
|
|
43
|
-
"description": "Use for red text on
|
|
43
|
+
"description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
|
|
44
44
|
},
|
|
45
45
|
"value": "Red800"
|
|
46
46
|
},
|
|
@@ -52,7 +52,7 @@ var tokens = [{
|
|
|
52
52
|
"group": "paint",
|
|
53
53
|
"state": "active",
|
|
54
54
|
"introduced": "0.7.0",
|
|
55
|
-
"description": "Use on
|
|
55
|
+
"description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
|
|
56
56
|
},
|
|
57
57
|
"value": "#601E16",
|
|
58
58
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -62,7 +62,7 @@ var tokens = [{
|
|
|
62
62
|
"group": "paint",
|
|
63
63
|
"state": "active",
|
|
64
64
|
"introduced": "0.7.0",
|
|
65
|
-
"description": "Use on
|
|
65
|
+
"description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
|
|
66
66
|
},
|
|
67
67
|
"value": "Red900"
|
|
68
68
|
},
|
|
@@ -74,7 +74,7 @@ var tokens = [{
|
|
|
74
74
|
"group": "paint",
|
|
75
75
|
"state": "active",
|
|
76
76
|
"introduced": "0.6.0",
|
|
77
|
-
"description": "Use for orange text on
|
|
77
|
+
"description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
|
|
78
78
|
},
|
|
79
79
|
"value": "#974F0C",
|
|
80
80
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -84,7 +84,7 @@ var tokens = [{
|
|
|
84
84
|
"group": "paint",
|
|
85
85
|
"state": "active",
|
|
86
86
|
"introduced": "0.6.0",
|
|
87
|
-
"description": "Use for orange text on
|
|
87
|
+
"description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
|
|
88
88
|
},
|
|
89
89
|
"value": "Orange800"
|
|
90
90
|
},
|
|
@@ -96,7 +96,7 @@ var tokens = [{
|
|
|
96
96
|
"group": "paint",
|
|
97
97
|
"state": "active",
|
|
98
98
|
"introduced": "0.7.0",
|
|
99
|
-
"description": "Use on
|
|
99
|
+
"description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
|
|
100
100
|
},
|
|
101
101
|
"value": "#5F3811",
|
|
102
102
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -106,7 +106,7 @@ var tokens = [{
|
|
|
106
106
|
"group": "paint",
|
|
107
107
|
"state": "active",
|
|
108
108
|
"introduced": "0.7.0",
|
|
109
|
-
"description": "Use on
|
|
109
|
+
"description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
|
|
110
110
|
},
|
|
111
111
|
"value": "Orange900"
|
|
112
112
|
},
|
|
@@ -118,7 +118,7 @@ var tokens = [{
|
|
|
118
118
|
"group": "paint",
|
|
119
119
|
"state": "active",
|
|
120
120
|
"introduced": "0.6.0",
|
|
121
|
-
"description": "Use for yellow text on
|
|
121
|
+
"description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
|
|
122
122
|
},
|
|
123
123
|
"value": "#7F5F01",
|
|
124
124
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -128,7 +128,7 @@ var tokens = [{
|
|
|
128
128
|
"group": "paint",
|
|
129
129
|
"state": "active",
|
|
130
130
|
"introduced": "0.6.0",
|
|
131
|
-
"description": "Use for yellow text on
|
|
131
|
+
"description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
|
|
132
132
|
},
|
|
133
133
|
"value": "Yellow800"
|
|
134
134
|
},
|
|
@@ -140,7 +140,7 @@ var tokens = [{
|
|
|
140
140
|
"group": "paint",
|
|
141
141
|
"state": "active",
|
|
142
142
|
"introduced": "0.7.0",
|
|
143
|
-
"description": "Use on
|
|
143
|
+
"description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
|
|
144
144
|
},
|
|
145
145
|
"value": "#533F04",
|
|
146
146
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -150,7 +150,7 @@ var tokens = [{
|
|
|
150
150
|
"group": "paint",
|
|
151
151
|
"state": "active",
|
|
152
152
|
"introduced": "0.7.0",
|
|
153
|
-
"description": "Use on
|
|
153
|
+
"description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
|
|
154
154
|
},
|
|
155
155
|
"value": "Yellow900"
|
|
156
156
|
},
|
|
@@ -162,7 +162,7 @@ var tokens = [{
|
|
|
162
162
|
"group": "paint",
|
|
163
163
|
"state": "active",
|
|
164
164
|
"introduced": "0.6.0",
|
|
165
|
-
"description": "Use for green text on
|
|
165
|
+
"description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
|
|
166
166
|
},
|
|
167
167
|
"value": "#216E4E",
|
|
168
168
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -172,7 +172,7 @@ var tokens = [{
|
|
|
172
172
|
"group": "paint",
|
|
173
173
|
"state": "active",
|
|
174
174
|
"introduced": "0.6.0",
|
|
175
|
-
"description": "Use for green text on
|
|
175
|
+
"description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
|
|
176
176
|
},
|
|
177
177
|
"value": "Green800"
|
|
178
178
|
},
|
|
@@ -184,7 +184,7 @@ var tokens = [{
|
|
|
184
184
|
"group": "paint",
|
|
185
185
|
"state": "active",
|
|
186
186
|
"introduced": "0.7.0",
|
|
187
|
-
"description": "Use on
|
|
187
|
+
"description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
|
|
188
188
|
},
|
|
189
189
|
"value": "#164B35",
|
|
190
190
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -194,7 +194,7 @@ var tokens = [{
|
|
|
194
194
|
"group": "paint",
|
|
195
195
|
"state": "active",
|
|
196
196
|
"introduced": "0.7.0",
|
|
197
|
-
"description": "Use on
|
|
197
|
+
"description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
|
|
198
198
|
},
|
|
199
199
|
"value": "Green900"
|
|
200
200
|
},
|
|
@@ -206,7 +206,7 @@ var tokens = [{
|
|
|
206
206
|
"group": "paint",
|
|
207
207
|
"state": "active",
|
|
208
208
|
"introduced": "0.6.0",
|
|
209
|
-
"description": "Use for teal text on
|
|
209
|
+
"description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
|
|
210
210
|
},
|
|
211
211
|
"value": "#206B74",
|
|
212
212
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -216,7 +216,7 @@ var tokens = [{
|
|
|
216
216
|
"group": "paint",
|
|
217
217
|
"state": "active",
|
|
218
218
|
"introduced": "0.6.0",
|
|
219
|
-
"description": "Use for teal text on
|
|
219
|
+
"description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
|
|
220
220
|
},
|
|
221
221
|
"value": "Teal800"
|
|
222
222
|
},
|
|
@@ -228,7 +228,7 @@ var tokens = [{
|
|
|
228
228
|
"group": "paint",
|
|
229
229
|
"state": "active",
|
|
230
230
|
"introduced": "0.7.0",
|
|
231
|
-
"description": "Use on
|
|
231
|
+
"description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
|
|
232
232
|
},
|
|
233
233
|
"value": "#1D474C",
|
|
234
234
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -238,7 +238,7 @@ var tokens = [{
|
|
|
238
238
|
"group": "paint",
|
|
239
239
|
"state": "active",
|
|
240
240
|
"introduced": "0.7.0",
|
|
241
|
-
"description": "Use on
|
|
241
|
+
"description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
|
|
242
242
|
},
|
|
243
243
|
"value": "Teal900"
|
|
244
244
|
},
|
|
@@ -250,7 +250,7 @@ var tokens = [{
|
|
|
250
250
|
"group": "paint",
|
|
251
251
|
"state": "active",
|
|
252
252
|
"introduced": "0.6.0",
|
|
253
|
-
"description": "Use for blue text on
|
|
253
|
+
"description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
|
|
254
254
|
},
|
|
255
255
|
"value": "#0055CC",
|
|
256
256
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -260,7 +260,7 @@ var tokens = [{
|
|
|
260
260
|
"group": "paint",
|
|
261
261
|
"state": "active",
|
|
262
262
|
"introduced": "0.6.0",
|
|
263
|
-
"description": "Use for blue text on
|
|
263
|
+
"description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
|
|
264
264
|
},
|
|
265
265
|
"value": "Blue800"
|
|
266
266
|
},
|
|
@@ -272,7 +272,7 @@ var tokens = [{
|
|
|
272
272
|
"group": "paint",
|
|
273
273
|
"state": "active",
|
|
274
274
|
"introduced": "0.7.0",
|
|
275
|
-
"description": "Use on
|
|
275
|
+
"description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
|
|
276
276
|
},
|
|
277
277
|
"value": "#09326C",
|
|
278
278
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -282,7 +282,7 @@ var tokens = [{
|
|
|
282
282
|
"group": "paint",
|
|
283
283
|
"state": "active",
|
|
284
284
|
"introduced": "0.7.0",
|
|
285
|
-
"description": "Use on
|
|
285
|
+
"description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
|
|
286
286
|
},
|
|
287
287
|
"value": "Blue900"
|
|
288
288
|
},
|
|
@@ -294,7 +294,7 @@ var tokens = [{
|
|
|
294
294
|
"group": "paint",
|
|
295
295
|
"state": "active",
|
|
296
296
|
"introduced": "0.6.0",
|
|
297
|
-
"description": "Use for purple text on
|
|
297
|
+
"description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
|
|
298
298
|
},
|
|
299
299
|
"value": "#5E4DB2",
|
|
300
300
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -304,7 +304,7 @@ var tokens = [{
|
|
|
304
304
|
"group": "paint",
|
|
305
305
|
"state": "active",
|
|
306
306
|
"introduced": "0.6.0",
|
|
307
|
-
"description": "Use for purple text on
|
|
307
|
+
"description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
|
|
308
308
|
},
|
|
309
309
|
"value": "Purple800"
|
|
310
310
|
},
|
|
@@ -316,7 +316,7 @@ var tokens = [{
|
|
|
316
316
|
"group": "paint",
|
|
317
317
|
"state": "active",
|
|
318
318
|
"introduced": "0.7.0",
|
|
319
|
-
"description": "Use on
|
|
319
|
+
"description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
|
|
320
320
|
},
|
|
321
321
|
"value": "#352C63",
|
|
322
322
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -326,7 +326,7 @@ var tokens = [{
|
|
|
326
326
|
"group": "paint",
|
|
327
327
|
"state": "active",
|
|
328
328
|
"introduced": "0.7.0",
|
|
329
|
-
"description": "Use on
|
|
329
|
+
"description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
|
|
330
330
|
},
|
|
331
331
|
"value": "Purple900"
|
|
332
332
|
},
|
|
@@ -338,7 +338,7 @@ var tokens = [{
|
|
|
338
338
|
"group": "paint",
|
|
339
339
|
"state": "active",
|
|
340
340
|
"introduced": "0.6.0",
|
|
341
|
-
"description": "Use for magenta text on
|
|
341
|
+
"description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
|
|
342
342
|
},
|
|
343
343
|
"value": "#943D73",
|
|
344
344
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -348,7 +348,7 @@ var tokens = [{
|
|
|
348
348
|
"group": "paint",
|
|
349
349
|
"state": "active",
|
|
350
350
|
"introduced": "0.6.0",
|
|
351
|
-
"description": "Use for magenta text on
|
|
351
|
+
"description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
|
|
352
352
|
},
|
|
353
353
|
"value": "Magenta800"
|
|
354
354
|
},
|
|
@@ -360,7 +360,7 @@ var tokens = [{
|
|
|
360
360
|
"group": "paint",
|
|
361
361
|
"state": "active",
|
|
362
362
|
"introduced": "0.7.0",
|
|
363
|
-
"description": "Use on
|
|
363
|
+
"description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
|
|
364
364
|
},
|
|
365
365
|
"value": "#50253F",
|
|
366
366
|
"filePath": "src/tokens/atlassian-light/color/accent.tsx",
|
|
@@ -370,7 +370,7 @@ var tokens = [{
|
|
|
370
370
|
"group": "paint",
|
|
371
371
|
"state": "active",
|
|
372
372
|
"introduced": "0.7.0",
|
|
373
|
-
"description": "Use on
|
|
373
|
+
"description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
|
|
374
374
|
},
|
|
375
375
|
"value": "Magenta900"
|
|
376
376
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8b50feb722f3a686c5a45c85ec5545b2>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
7
7
|
"attributes": {
|
|
8
8
|
"group": "shape",
|
|
9
|
-
"state": "
|
|
9
|
+
"state": "active",
|
|
10
10
|
"introduced": "1.1.0",
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Used for selection indicators, like tabs."
|
|
12
12
|
},
|
|
13
13
|
"value": "2px",
|
|
14
14
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -16,9 +16,9 @@ var tokens = [{
|
|
|
16
16
|
"original": {
|
|
17
17
|
"attributes": {
|
|
18
18
|
"group": "shape",
|
|
19
|
-
"state": "
|
|
19
|
+
"state": "active",
|
|
20
20
|
"introduced": "1.1.0",
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "Used for selection indicators, like tabs."
|
|
22
22
|
},
|
|
23
23
|
"value": "Radius050"
|
|
24
24
|
},
|
|
@@ -28,9 +28,31 @@ var tokens = [{
|
|
|
28
28
|
}, {
|
|
29
29
|
"attributes": {
|
|
30
30
|
"group": "shape",
|
|
31
|
-
"state": "
|
|
31
|
+
"state": "active",
|
|
32
|
+
"introduced": "1.5.2",
|
|
33
|
+
"description": "The default border radius."
|
|
34
|
+
},
|
|
35
|
+
"value": "4px",
|
|
36
|
+
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
37
|
+
"isSource": true,
|
|
38
|
+
"original": {
|
|
39
|
+
"attributes": {
|
|
40
|
+
"group": "shape",
|
|
41
|
+
"state": "active",
|
|
42
|
+
"introduced": "1.5.2",
|
|
43
|
+
"description": "The default border radius."
|
|
44
|
+
},
|
|
45
|
+
"value": "Radius100"
|
|
46
|
+
},
|
|
47
|
+
"name": "border.radius.[default]",
|
|
48
|
+
"path": ["border", "radius", "[default]"],
|
|
49
|
+
"cleanName": "border.radius"
|
|
50
|
+
}, {
|
|
51
|
+
"attributes": {
|
|
52
|
+
"group": "shape",
|
|
53
|
+
"state": "active",
|
|
32
54
|
"introduced": "1.1.0",
|
|
33
|
-
"description": "
|
|
55
|
+
"description": "Used for buttons and inputs."
|
|
34
56
|
},
|
|
35
57
|
"value": "4px",
|
|
36
58
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -38,9 +60,9 @@ var tokens = [{
|
|
|
38
60
|
"original": {
|
|
39
61
|
"attributes": {
|
|
40
62
|
"group": "shape",
|
|
41
|
-
"state": "
|
|
63
|
+
"state": "active",
|
|
42
64
|
"introduced": "1.1.0",
|
|
43
|
-
"description": "
|
|
65
|
+
"description": "Used for buttons and inputs."
|
|
44
66
|
},
|
|
45
67
|
"value": "Radius100"
|
|
46
68
|
},
|
|
@@ -50,9 +72,9 @@ var tokens = [{
|
|
|
50
72
|
}, {
|
|
51
73
|
"attributes": {
|
|
52
74
|
"group": "shape",
|
|
53
|
-
"state": "
|
|
75
|
+
"state": "active",
|
|
54
76
|
"introduced": "1.1.0",
|
|
55
|
-
"description": "
|
|
77
|
+
"description": "Used for smaller cards."
|
|
56
78
|
},
|
|
57
79
|
"value": "8px",
|
|
58
80
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -60,9 +82,9 @@ var tokens = [{
|
|
|
60
82
|
"original": {
|
|
61
83
|
"attributes": {
|
|
62
84
|
"group": "shape",
|
|
63
|
-
"state": "
|
|
85
|
+
"state": "active",
|
|
64
86
|
"introduced": "1.1.0",
|
|
65
|
-
"description": "
|
|
87
|
+
"description": "Used for smaller cards."
|
|
66
88
|
},
|
|
67
89
|
"value": "Radius200"
|
|
68
90
|
},
|
|
@@ -72,9 +94,9 @@ var tokens = [{
|
|
|
72
94
|
}, {
|
|
73
95
|
"attributes": {
|
|
74
96
|
"group": "shape",
|
|
75
|
-
"state": "
|
|
97
|
+
"state": "active",
|
|
76
98
|
"introduced": "1.1.0",
|
|
77
|
-
"description": "
|
|
99
|
+
"description": "Used for cards and larger containers."
|
|
78
100
|
},
|
|
79
101
|
"value": "12px",
|
|
80
102
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -82,9 +104,9 @@ var tokens = [{
|
|
|
82
104
|
"original": {
|
|
83
105
|
"attributes": {
|
|
84
106
|
"group": "shape",
|
|
85
|
-
"state": "
|
|
107
|
+
"state": "active",
|
|
86
108
|
"introduced": "1.1.0",
|
|
87
|
-
"description": "
|
|
109
|
+
"description": "Used for cards and larger containers."
|
|
88
110
|
},
|
|
89
111
|
"value": "Radius300"
|
|
90
112
|
},
|
|
@@ -94,9 +116,9 @@ var tokens = [{
|
|
|
94
116
|
}, {
|
|
95
117
|
"attributes": {
|
|
96
118
|
"group": "shape",
|
|
97
|
-
"state": "
|
|
119
|
+
"state": "active",
|
|
98
120
|
"introduced": "1.1.0",
|
|
99
|
-
"description": "
|
|
121
|
+
"description": "Used for modals."
|
|
100
122
|
},
|
|
101
123
|
"value": "16px",
|
|
102
124
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -104,9 +126,9 @@ var tokens = [{
|
|
|
104
126
|
"original": {
|
|
105
127
|
"attributes": {
|
|
106
128
|
"group": "shape",
|
|
107
|
-
"state": "
|
|
129
|
+
"state": "active",
|
|
108
130
|
"introduced": "1.1.0",
|
|
109
|
-
"description": "
|
|
131
|
+
"description": "Used for modals."
|
|
110
132
|
},
|
|
111
133
|
"value": "Radius400"
|
|
112
134
|
},
|
|
@@ -116,25 +138,47 @@ var tokens = [{
|
|
|
116
138
|
}, {
|
|
117
139
|
"attributes": {
|
|
118
140
|
"group": "shape",
|
|
119
|
-
"state": "
|
|
141
|
+
"state": "active",
|
|
120
142
|
"introduced": "1.1.0",
|
|
121
|
-
"description": "
|
|
143
|
+
"description": "Used for circular containers, like a rounded button."
|
|
122
144
|
},
|
|
123
|
-
"value": "
|
|
145
|
+
"value": "32032px",
|
|
124
146
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
125
147
|
"isSource": true,
|
|
126
148
|
"original": {
|
|
127
149
|
"attributes": {
|
|
128
150
|
"group": "shape",
|
|
129
|
-
"state": "
|
|
151
|
+
"state": "active",
|
|
130
152
|
"introduced": "1.1.0",
|
|
131
|
-
"description": "
|
|
153
|
+
"description": "Used for circular containers, like a rounded button."
|
|
132
154
|
},
|
|
133
155
|
"value": "RadiusCircle"
|
|
134
156
|
},
|
|
135
|
-
"name": "border.radius.
|
|
136
|
-
"path": ["border", "radius", "
|
|
137
|
-
"cleanName": "border.radius.
|
|
157
|
+
"name": "border.radius.circle",
|
|
158
|
+
"path": ["border", "radius", "circle"],
|
|
159
|
+
"cleanName": "border.radius.circle"
|
|
160
|
+
}, {
|
|
161
|
+
"attributes": {
|
|
162
|
+
"group": "shape",
|
|
163
|
+
"state": "active",
|
|
164
|
+
"introduced": "1.5.2",
|
|
165
|
+
"description": "The default border width."
|
|
166
|
+
},
|
|
167
|
+
"value": "1px",
|
|
168
|
+
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
169
|
+
"isSource": true,
|
|
170
|
+
"original": {
|
|
171
|
+
"attributes": {
|
|
172
|
+
"group": "shape",
|
|
173
|
+
"state": "active",
|
|
174
|
+
"introduced": "1.5.2",
|
|
175
|
+
"description": "The default border width."
|
|
176
|
+
},
|
|
177
|
+
"value": "Size050"
|
|
178
|
+
},
|
|
179
|
+
"name": "border.width.[default]",
|
|
180
|
+
"path": ["border", "width", "[default]"],
|
|
181
|
+
"cleanName": "border.width"
|
|
138
182
|
}, {
|
|
139
183
|
"attributes": {
|
|
140
184
|
"group": "shape",
|
|
@@ -160,9 +204,9 @@ var tokens = [{
|
|
|
160
204
|
}, {
|
|
161
205
|
"attributes": {
|
|
162
206
|
"group": "shape",
|
|
163
|
-
"state": "
|
|
207
|
+
"state": "active",
|
|
164
208
|
"introduced": "1.1.0",
|
|
165
|
-
"description": "
|
|
209
|
+
"description": "Used for all borders and dividers."
|
|
166
210
|
},
|
|
167
211
|
"value": "1px",
|
|
168
212
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -170,9 +214,9 @@ var tokens = [{
|
|
|
170
214
|
"original": {
|
|
171
215
|
"attributes": {
|
|
172
216
|
"group": "shape",
|
|
173
|
-
"state": "
|
|
217
|
+
"state": "active",
|
|
174
218
|
"introduced": "1.1.0",
|
|
175
|
-
"description": "
|
|
219
|
+
"description": "Used for all borders and dividers."
|
|
176
220
|
},
|
|
177
221
|
"value": "Size050"
|
|
178
222
|
},
|
|
@@ -182,9 +226,9 @@ var tokens = [{
|
|
|
182
226
|
}, {
|
|
183
227
|
"attributes": {
|
|
184
228
|
"group": "shape",
|
|
185
|
-
"state": "
|
|
229
|
+
"state": "active",
|
|
186
230
|
"introduced": "1.1.0",
|
|
187
|
-
"description": "
|
|
231
|
+
"description": "Used for bolder dividers and interaction states."
|
|
188
232
|
},
|
|
189
233
|
"value": "2px",
|
|
190
234
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -192,9 +236,9 @@ var tokens = [{
|
|
|
192
236
|
"original": {
|
|
193
237
|
"attributes": {
|
|
194
238
|
"group": "shape",
|
|
195
|
-
"state": "
|
|
239
|
+
"state": "active",
|
|
196
240
|
"introduced": "1.1.0",
|
|
197
|
-
"description": "
|
|
241
|
+
"description": "Used for bolder dividers and interaction states."
|
|
198
242
|
},
|
|
199
243
|
"value": "Size100"
|
|
200
244
|
},
|
package/dist/esm/constants.js
CHANGED
|
@@ -2,5 +2,5 @@ export var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
|
2
2
|
export var COLOR_MODE_ATTRIBUTE = 'data-color-mode';
|
|
3
3
|
export var DEFAULT_THEME = 'light';
|
|
4
4
|
export var CSS_PREFIX = 'ds';
|
|
5
|
-
export var CSS_VAR_FULL = ['opacity', 'font', 'space'];
|
|
5
|
+
export var CSS_VAR_FULL = ['opacity', 'font', 'space', 'border'];
|
|
6
6
|
export var TOKEN_NOT_FOUND_CSS_VAR = "--".concat(CSS_PREFIX, "-token-not-found");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
var name = "@atlaskit/tokens";
|
|
4
|
-
var version = "1.
|
|
4
|
+
var version = "1.6.0";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "1.
|
|
5
|
+
var version = "1.6.0";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -21,6 +21,7 @@ var themeStateDefaults = {
|
|
|
21
21
|
colorMode: 'auto',
|
|
22
22
|
dark: 'dark',
|
|
23
23
|
light: 'light',
|
|
24
|
+
shape: undefined,
|
|
24
25
|
spacing: undefined,
|
|
25
26
|
typography: undefined
|
|
26
27
|
};
|
|
@@ -78,6 +79,8 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
78
79
|
dark,
|
|
79
80
|
_ref2$light,
|
|
80
81
|
light,
|
|
82
|
+
_ref2$shape,
|
|
83
|
+
shape,
|
|
81
84
|
_ref2$spacing,
|
|
82
85
|
spacing,
|
|
83
86
|
_ref2$typography,
|
|
@@ -88,11 +91,12 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
88
91
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
89
92
|
while (1) switch (_context2.prev = _context2.next) {
|
|
90
93
|
case 0:
|
|
91
|
-
_ref2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? themeStateDefaults['light'] : _ref2$light, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? themeStateDefaults['typography'] : _ref2$typography;
|
|
94
|
+
_ref2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? themeStateDefaults['shape'] : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? themeStateDefaults['typography'] : _ref2$typography;
|
|
92
95
|
themePreferences = getThemePreferences({
|
|
93
96
|
colorMode: colorMode,
|
|
94
97
|
dark: dark,
|
|
95
98
|
light: light,
|
|
99
|
+
shape: shape,
|
|
96
100
|
spacing: spacing,
|
|
97
101
|
typography: typography
|
|
98
102
|
});
|
|
@@ -155,6 +159,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
155
159
|
colorMode: colorMode,
|
|
156
160
|
dark: dark,
|
|
157
161
|
light: light,
|
|
162
|
+
shape: shape,
|
|
158
163
|
spacing: spacing,
|
|
159
164
|
typography: typography
|
|
160
165
|
});
|
|
@@ -202,17 +207,20 @@ export var getThemeStyles = /*#__PURE__*/function () {
|
|
|
202
207
|
spacing,
|
|
203
208
|
_ref7$typography,
|
|
204
209
|
typography,
|
|
210
|
+
_ref7$shape,
|
|
211
|
+
shape,
|
|
205
212
|
themePreferences,
|
|
206
213
|
results,
|
|
207
214
|
_args4 = arguments;
|
|
208
215
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
209
216
|
while (1) switch (_context4.prev = _context4.next) {
|
|
210
217
|
case 0:
|
|
211
|
-
_ref7 = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}, _ref7$colorMode = _ref7.colorMode, colorMode = _ref7$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref7$colorMode, _ref7$dark = _ref7.dark, dark = _ref7$dark === void 0 ? themeStateDefaults['dark'] : _ref7$dark, _ref7$light = _ref7.light, light = _ref7$light === void 0 ? themeStateDefaults['light'] : _ref7$light, _ref7$spacing = _ref7.spacing, spacing = _ref7$spacing === void 0 ? themeStateDefaults['spacing'] : _ref7$spacing, _ref7$typography = _ref7.typography, typography = _ref7$typography === void 0 ? themeStateDefaults['typography'] : _ref7$typography;
|
|
218
|
+
_ref7 = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}, _ref7$colorMode = _ref7.colorMode, colorMode = _ref7$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref7$colorMode, _ref7$dark = _ref7.dark, dark = _ref7$dark === void 0 ? themeStateDefaults['dark'] : _ref7$dark, _ref7$light = _ref7.light, light = _ref7$light === void 0 ? themeStateDefaults['light'] : _ref7$light, _ref7$spacing = _ref7.spacing, spacing = _ref7$spacing === void 0 ? themeStateDefaults['spacing'] : _ref7$spacing, _ref7$typography = _ref7.typography, typography = _ref7$typography === void 0 ? themeStateDefaults['typography'] : _ref7$typography, _ref7$shape = _ref7.shape, shape = _ref7$shape === void 0 ? themeStateDefaults['shape'] : _ref7$shape;
|
|
212
219
|
themePreferences = getThemePreferences({
|
|
213
220
|
colorMode: colorMode,
|
|
214
221
|
dark: dark,
|
|
215
222
|
light: light,
|
|
223
|
+
shape: shape,
|
|
216
224
|
spacing: spacing,
|
|
217
225
|
typography: typography
|
|
218
226
|
});
|
|
@@ -296,6 +304,8 @@ export var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
296
304
|
dark = _ref9$dark === void 0 ? themeStateDefaults['dark'] : _ref9$dark,
|
|
297
305
|
_ref9$light = _ref9.light,
|
|
298
306
|
light = _ref9$light === void 0 ? themeStateDefaults['light'] : _ref9$light,
|
|
307
|
+
_ref9$shape = _ref9.shape,
|
|
308
|
+
shape = _ref9$shape === void 0 ? themeStateDefaults['shape'] : _ref9$shape,
|
|
299
309
|
_ref9$spacing = _ref9.spacing,
|
|
300
310
|
spacing = _ref9$spacing === void 0 ? themeStateDefaults['spacing'] : _ref9$spacing,
|
|
301
311
|
_ref9$typography = _ref9.typography,
|
|
@@ -304,7 +314,8 @@ export var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
304
314
|
dark: dark,
|
|
305
315
|
light: light,
|
|
306
316
|
spacing: spacing,
|
|
307
|
-
typography: typography
|
|
317
|
+
typography: typography,
|
|
318
|
+
shape: shape
|
|
308
319
|
};
|
|
309
320
|
var themeAttribute = themeObjectToString(themePreferences);
|
|
310
321
|
return _ref10 = {}, _defineProperty(_ref10, THEME_DATA_ATTRIBUTE, themeAttribute), _defineProperty(_ref10, COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode), _ref10;
|