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