@atlaskit/tokens 1.21.1 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +17 -15
- package/dist/cjs/artifacts/token-names.js +4 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +64 -42
- package/dist/cjs/get-theme-html-attrs.js +3 -5
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/theme-config.js +1 -1
- package/dist/cjs/tokens/atlassian-typography/font-family.js +4 -1
- package/dist/cjs/tokens/atlassian-typography/theme.js +13 -13
- package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +4 -1
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +25 -14
- package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +4 -1
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +25 -14
- package/dist/cjs/tokens/default/typography/font-family.js +9 -1
- package/dist/cjs/tokens/default/utility/utility.js +8 -0
- package/dist/cjs/utils/get-theme-preferences.js +0 -5
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +17 -15
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +17 -15
- package/dist/es2019/artifacts/themes/atlassian-typography.js +16 -15
- package/dist/es2019/artifacts/token-default-values.js +17 -15
- package/dist/es2019/artifacts/token-names.js +4 -2
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +64 -42
- package/dist/es2019/get-theme-html-attrs.js +3 -5
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/theme-config.js +1 -1
- package/dist/es2019/tokens/atlassian-typography/font-family.js +4 -1
- package/dist/es2019/tokens/atlassian-typography/theme.js +13 -13
- package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +4 -1
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +25 -14
- package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +4 -1
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +25 -14
- package/dist/es2019/tokens/default/typography/font-family.js +9 -1
- package/dist/es2019/tokens/default/utility/utility.js +8 -0
- package/dist/es2019/utils/get-theme-preferences.js +0 -5
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +17 -15
- package/dist/esm/artifacts/token-names.js +4 -2
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +64 -42
- package/dist/esm/get-theme-html-attrs.js +3 -5
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/theme-config.js +1 -1
- package/dist/esm/tokens/atlassian-typography/font-family.js +4 -1
- package/dist/esm/tokens/atlassian-typography/theme.js +13 -13
- package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +4 -1
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +25 -14
- package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +4 -1
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +25 -14
- package/dist/esm/tokens/default/typography/font-family.js +9 -1
- package/dist/esm/tokens/default/utility/utility.js +8 -0
- package/dist/esm/utils/get-theme-preferences.js +0 -5
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +17 -15
- package/dist/types/artifacts/token-names.d.ts +7 -3
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
- package/dist/types/artifacts/tokens-raw/atlassian-typography.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/theme-config.d.ts +1 -1
- package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
- package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
- package/dist/types/types.d.ts +16 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -15
- package/dist/types-ts4.5/artifacts/token-names.d.ts +7 -3
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.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/theme-config.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
- package/dist/types-ts4.5/types.d.ts +16 -2
- package/figma/atlassian-typography-adg3.json +15 -6
- package/figma/atlassian-typography-minor3.json +15 -6
- package/figma/atlassian-typography.json +15 -6
- package/package.json +1 -1
- package/report.api.md +42 -4
- package/tmp/api-report-tmp.d.ts +35 -6
|
@@ -6,7 +6,7 @@ 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::2dbe284320c4a652bc8420a1e9457c66>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -16,7 +16,7 @@ var tokens = [{
|
|
|
16
16
|
"introduced": "1.14.0",
|
|
17
17
|
"description": "The default body font."
|
|
18
18
|
},
|
|
19
|
-
"value": "normal 400 14px/20px
|
|
19
|
+
"value": "normal 400 14px/20px var(--ds-font-family-body)",
|
|
20
20
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
21
21
|
"isSource": true,
|
|
22
22
|
"original": {
|
|
@@ -30,7 +30,7 @@ var tokens = [{
|
|
|
30
30
|
"fontWeight": "FontWeight400",
|
|
31
31
|
"fontSize": "FontSize14",
|
|
32
32
|
"lineHeight": "LineHeight200",
|
|
33
|
-
"fontFamily": "
|
|
33
|
+
"fontFamily": "font.family.body",
|
|
34
34
|
"fontStyle": "normal",
|
|
35
35
|
"letterSpacing": "LetterSpacing0"
|
|
36
36
|
}
|
|
@@ -45,7 +45,7 @@ var tokens = [{
|
|
|
45
45
|
"introduced": "1.14.0",
|
|
46
46
|
"description": "Larger body font or default body font for text rich experiences."
|
|
47
47
|
},
|
|
48
|
-
"value": "normal 400 16px/24px
|
|
48
|
+
"value": "normal 400 16px/24px var(--ds-font-family-body)",
|
|
49
49
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
50
50
|
"isSource": true,
|
|
51
51
|
"original": {
|
|
@@ -59,7 +59,7 @@ var tokens = [{
|
|
|
59
59
|
"fontWeight": "FontWeight400",
|
|
60
60
|
"fontSize": "FontSize16",
|
|
61
61
|
"lineHeight": "LineHeight300",
|
|
62
|
-
"fontFamily": "
|
|
62
|
+
"fontFamily": "font.family.body",
|
|
63
63
|
"fontStyle": "normal",
|
|
64
64
|
"letterSpacing": "LetterSpacing0"
|
|
65
65
|
}
|
|
@@ -74,7 +74,7 @@ var tokens = [{
|
|
|
74
74
|
"introduced": "1.14.0",
|
|
75
75
|
"description": "Smaller body font."
|
|
76
76
|
},
|
|
77
|
-
"value": "normal 400 12px/20px
|
|
77
|
+
"value": "normal 400 12px/20px var(--ds-font-family-body)",
|
|
78
78
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
79
79
|
"isSource": true,
|
|
80
80
|
"original": {
|
|
@@ -88,7 +88,7 @@ var tokens = [{
|
|
|
88
88
|
"fontWeight": "FontWeight400",
|
|
89
89
|
"fontSize": "FontSize12",
|
|
90
90
|
"lineHeight": "LineHeight200",
|
|
91
|
-
"fontFamily": "
|
|
91
|
+
"fontFamily": "font.family.body",
|
|
92
92
|
"fontStyle": "normal",
|
|
93
93
|
"letterSpacing": "LetterSpacing0"
|
|
94
94
|
}
|
|
@@ -103,7 +103,7 @@ var tokens = [{
|
|
|
103
103
|
"introduced": "1.14.0",
|
|
104
104
|
"description": "Used for monospace and code."
|
|
105
105
|
},
|
|
106
|
-
"value": "normal 400 0.875em/1
|
|
106
|
+
"value": "normal 400 0.875em/1 var(--ds-font-family-code)",
|
|
107
107
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
108
108
|
"isSource": true,
|
|
109
109
|
"original": {
|
|
@@ -117,7 +117,7 @@ var tokens = [{
|
|
|
117
117
|
"fontWeight": "FontWeight400",
|
|
118
118
|
"fontSize": "FontSizeCode",
|
|
119
119
|
"lineHeight": "LineHeight1",
|
|
120
|
-
"fontFamily": "
|
|
120
|
+
"fontFamily": "font.family.code",
|
|
121
121
|
"fontStyle": "normal",
|
|
122
122
|
"letterSpacing": "LetterSpacing0"
|
|
123
123
|
}
|
|
@@ -132,7 +132,7 @@ var tokens = [{
|
|
|
132
132
|
"introduced": "1.14.0",
|
|
133
133
|
"description": "TBD"
|
|
134
134
|
},
|
|
135
|
-
"value": "normal 700 24px/28px
|
|
135
|
+
"value": "normal 700 24px/28px var(--ds-font-family-heading)",
|
|
136
136
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
137
137
|
"isSource": true,
|
|
138
138
|
"original": {
|
|
@@ -146,7 +146,7 @@ var tokens = [{
|
|
|
146
146
|
"fontWeight": "FontWeight700",
|
|
147
147
|
"fontSize": "FontSize24",
|
|
148
148
|
"lineHeight": "LineHeight400",
|
|
149
|
-
"fontFamily": "
|
|
149
|
+
"fontFamily": "font.family.heading",
|
|
150
150
|
"fontStyle": "normal",
|
|
151
151
|
"letterSpacing": "LetterSpacing0"
|
|
152
152
|
}
|
|
@@ -161,7 +161,7 @@ var tokens = [{
|
|
|
161
161
|
"introduced": "1.14.0",
|
|
162
162
|
"description": "TBD"
|
|
163
163
|
},
|
|
164
|
-
"value": "normal 700 20px/24px
|
|
164
|
+
"value": "normal 700 20px/24px var(--ds-font-family-heading)",
|
|
165
165
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
166
166
|
"isSource": true,
|
|
167
167
|
"original": {
|
|
@@ -175,7 +175,7 @@ var tokens = [{
|
|
|
175
175
|
"fontWeight": "FontWeight700",
|
|
176
176
|
"fontSize": "FontSize20",
|
|
177
177
|
"lineHeight": "LineHeight300",
|
|
178
|
-
"fontFamily": "
|
|
178
|
+
"fontFamily": "font.family.heading",
|
|
179
179
|
"fontStyle": "normal",
|
|
180
180
|
"letterSpacing": "LetterSpacing0"
|
|
181
181
|
}
|
|
@@ -190,7 +190,7 @@ var tokens = [{
|
|
|
190
190
|
"introduced": "1.14.0",
|
|
191
191
|
"description": "TBD"
|
|
192
192
|
},
|
|
193
|
-
"value": "normal 700 16px/20px
|
|
193
|
+
"value": "normal 700 16px/20px var(--ds-font-family-heading)",
|
|
194
194
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
195
195
|
"isSource": true,
|
|
196
196
|
"original": {
|
|
@@ -204,7 +204,7 @@ var tokens = [{
|
|
|
204
204
|
"fontWeight": "FontWeight700",
|
|
205
205
|
"fontSize": "FontSize16",
|
|
206
206
|
"lineHeight": "LineHeight200",
|
|
207
|
-
"fontFamily": "
|
|
207
|
+
"fontFamily": "font.family.heading",
|
|
208
208
|
"fontStyle": "normal",
|
|
209
209
|
"letterSpacing": "LetterSpacing0"
|
|
210
210
|
}
|
|
@@ -219,7 +219,7 @@ var tokens = [{
|
|
|
219
219
|
"introduced": "1.14.0",
|
|
220
220
|
"description": "TBD"
|
|
221
221
|
},
|
|
222
|
-
"value": "normal 700 28px/32px
|
|
222
|
+
"value": "normal 700 28px/32px var(--ds-font-family-heading)",
|
|
223
223
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
224
224
|
"isSource": true,
|
|
225
225
|
"original": {
|
|
@@ -233,7 +233,7 @@ var tokens = [{
|
|
|
233
233
|
"fontWeight": "FontWeight700",
|
|
234
234
|
"fontSize": "FontSize28",
|
|
235
235
|
"lineHeight": "LineHeight500",
|
|
236
|
-
"fontFamily": "
|
|
236
|
+
"fontFamily": "font.family.heading",
|
|
237
237
|
"fontStyle": "normal",
|
|
238
238
|
"letterSpacing": "LetterSpacing0"
|
|
239
239
|
}
|
|
@@ -248,7 +248,7 @@ var tokens = [{
|
|
|
248
248
|
"introduced": "1.14.0",
|
|
249
249
|
"description": "TBD"
|
|
250
250
|
},
|
|
251
|
-
"value": "normal 700 14px/16px
|
|
251
|
+
"value": "normal 700 14px/16px var(--ds-font-family-heading)",
|
|
252
252
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
253
253
|
"isSource": true,
|
|
254
254
|
"original": {
|
|
@@ -262,7 +262,7 @@ var tokens = [{
|
|
|
262
262
|
"fontWeight": "FontWeight700",
|
|
263
263
|
"fontSize": "FontSize14",
|
|
264
264
|
"lineHeight": "LineHeight100",
|
|
265
|
-
"fontFamily": "
|
|
265
|
+
"fontFamily": "font.family.heading",
|
|
266
266
|
"fontStyle": "normal",
|
|
267
267
|
"letterSpacing": "LetterSpacing0"
|
|
268
268
|
}
|
|
@@ -277,7 +277,7 @@ var tokens = [{
|
|
|
277
277
|
"introduced": "1.14.0",
|
|
278
278
|
"description": "TBD"
|
|
279
279
|
},
|
|
280
|
-
"value": "normal 700 36px/40px
|
|
280
|
+
"value": "normal 700 36px/40px var(--ds-font-family-heading)",
|
|
281
281
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
282
282
|
"isSource": true,
|
|
283
283
|
"original": {
|
|
@@ -291,7 +291,7 @@ var tokens = [{
|
|
|
291
291
|
"fontWeight": "FontWeight700",
|
|
292
292
|
"fontSize": "FontSize36",
|
|
293
293
|
"lineHeight": "LineHeight700",
|
|
294
|
-
"fontFamily": "
|
|
294
|
+
"fontFamily": "font.family.heading",
|
|
295
295
|
"fontStyle": "normal",
|
|
296
296
|
"letterSpacing": "LetterSpacing0"
|
|
297
297
|
}
|
|
@@ -306,7 +306,7 @@ var tokens = [{
|
|
|
306
306
|
"introduced": "1.14.0",
|
|
307
307
|
"description": "TBD"
|
|
308
308
|
},
|
|
309
|
-
"value": "normal 700 12px/16px
|
|
309
|
+
"value": "normal 700 12px/16px var(--ds-font-family-heading)",
|
|
310
310
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
311
311
|
"isSource": true,
|
|
312
312
|
"original": {
|
|
@@ -320,7 +320,7 @@ var tokens = [{
|
|
|
320
320
|
"fontWeight": "FontWeight700",
|
|
321
321
|
"fontSize": "FontSize12",
|
|
322
322
|
"lineHeight": "LineHeight100",
|
|
323
|
-
"fontFamily": "
|
|
323
|
+
"fontFamily": "font.family.heading",
|
|
324
324
|
"fontStyle": "normal",
|
|
325
325
|
"letterSpacing": "LetterSpacing0"
|
|
326
326
|
}
|
|
@@ -445,7 +445,7 @@ var tokens = [{
|
|
|
445
445
|
"introduced": "1.14.0",
|
|
446
446
|
"description": "Single-line non-wrapping text like that in a button."
|
|
447
447
|
},
|
|
448
|
-
"value": "normal 400 14px/1
|
|
448
|
+
"value": "normal 400 14px/1 var(--ds-font-family-body)",
|
|
449
449
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
450
450
|
"isSource": true,
|
|
451
451
|
"original": {
|
|
@@ -459,7 +459,7 @@ var tokens = [{
|
|
|
459
459
|
"fontWeight": "FontWeight400",
|
|
460
460
|
"fontSize": "FontSize14",
|
|
461
461
|
"lineHeight": "LineHeight1",
|
|
462
|
-
"fontFamily": "
|
|
462
|
+
"fontFamily": "font.family.body",
|
|
463
463
|
"fontStyle": "normal",
|
|
464
464
|
"letterSpacing": "LetterSpacing0"
|
|
465
465
|
}
|
|
@@ -474,7 +474,7 @@ var tokens = [{
|
|
|
474
474
|
"introduced": "1.14.0",
|
|
475
475
|
"description": "Single-line non-wrapping supporting text like that in a smaller label."
|
|
476
476
|
},
|
|
477
|
-
"value": "normal 400 12px/1
|
|
477
|
+
"value": "normal 400 12px/1 var(--ds-font-family-body)",
|
|
478
478
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
479
479
|
"isSource": true,
|
|
480
480
|
"original": {
|
|
@@ -488,7 +488,7 @@ var tokens = [{
|
|
|
488
488
|
"fontWeight": "FontWeight400",
|
|
489
489
|
"fontSize": "FontSize12",
|
|
490
490
|
"lineHeight": "LineHeight1",
|
|
491
|
-
"fontFamily": "
|
|
491
|
+
"fontFamily": "font.family.body",
|
|
492
492
|
"fontStyle": "normal",
|
|
493
493
|
"letterSpacing": "LetterSpacing0"
|
|
494
494
|
}
|
|
@@ -503,7 +503,7 @@ var tokens = [{
|
|
|
503
503
|
"introduced": "1.14.0",
|
|
504
504
|
"description": "Helpful guidance goes here"
|
|
505
505
|
},
|
|
506
|
-
"value": "ui-
|
|
506
|
+
"value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
507
507
|
"filePath": "src/tokens/atlassian-typography/font-family.tsx",
|
|
508
508
|
"isSource": true,
|
|
509
509
|
"original": {
|
|
@@ -513,16 +513,16 @@ var tokens = [{
|
|
|
513
513
|
"introduced": "1.14.0",
|
|
514
514
|
"description": "Helpful guidance goes here"
|
|
515
515
|
},
|
|
516
|
-
"value": "
|
|
516
|
+
"value": "FontFamilyWebSans"
|
|
517
517
|
},
|
|
518
|
-
"name": "font.family.
|
|
519
|
-
"path": ["font", "family", "
|
|
520
|
-
"cleanName": "font.family.
|
|
518
|
+
"name": "font.family.body",
|
|
519
|
+
"path": ["font", "family", "body"],
|
|
520
|
+
"cleanName": "font.family.body"
|
|
521
521
|
}, {
|
|
522
522
|
"attributes": {
|
|
523
523
|
"group": "fontFamily",
|
|
524
|
-
"state": "
|
|
525
|
-
"introduced": "
|
|
524
|
+
"state": "experimental",
|
|
525
|
+
"introduced": "1.14.0",
|
|
526
526
|
"description": "Helpful guidance goes here"
|
|
527
527
|
},
|
|
528
528
|
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
@@ -531,15 +531,15 @@ var tokens = [{
|
|
|
531
531
|
"original": {
|
|
532
532
|
"attributes": {
|
|
533
533
|
"group": "fontFamily",
|
|
534
|
-
"state": "
|
|
535
|
-
"introduced": "
|
|
534
|
+
"state": "experimental",
|
|
535
|
+
"introduced": "1.14.0",
|
|
536
536
|
"description": "Helpful guidance goes here"
|
|
537
537
|
},
|
|
538
538
|
"value": "FontFamilyWebMono"
|
|
539
539
|
},
|
|
540
|
-
"name": "font.family.
|
|
541
|
-
"path": ["font", "family", "
|
|
542
|
-
"cleanName": "font.family.
|
|
540
|
+
"name": "font.family.code",
|
|
541
|
+
"path": ["font", "family", "code"],
|
|
542
|
+
"cleanName": "font.family.code"
|
|
543
543
|
}, {
|
|
544
544
|
"attributes": {
|
|
545
545
|
"group": "fontFamily",
|
|
@@ -559,9 +559,31 @@ var tokens = [{
|
|
|
559
559
|
},
|
|
560
560
|
"value": "FontFamilyWebSans"
|
|
561
561
|
},
|
|
562
|
-
"name": "font.family.
|
|
563
|
-
"path": ["font", "family", "
|
|
564
|
-
"cleanName": "font.family.
|
|
562
|
+
"name": "font.family.heading",
|
|
563
|
+
"path": ["font", "family", "heading"],
|
|
564
|
+
"cleanName": "font.family.heading"
|
|
565
|
+
}, {
|
|
566
|
+
"attributes": {
|
|
567
|
+
"group": "fontFamily",
|
|
568
|
+
"state": "active",
|
|
569
|
+
"introduced": "0.10.33",
|
|
570
|
+
"description": "Helpful guidance goes here"
|
|
571
|
+
},
|
|
572
|
+
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
573
|
+
"filePath": "src/tokens/atlassian-typography/font-family.tsx",
|
|
574
|
+
"isSource": true,
|
|
575
|
+
"original": {
|
|
576
|
+
"attributes": {
|
|
577
|
+
"group": "fontFamily",
|
|
578
|
+
"state": "active",
|
|
579
|
+
"introduced": "0.10.33",
|
|
580
|
+
"description": "Helpful guidance goes here"
|
|
581
|
+
},
|
|
582
|
+
"value": "FontFamilyWebMono"
|
|
583
|
+
},
|
|
584
|
+
"name": "font.family.monospace",
|
|
585
|
+
"path": ["font", "family", "monospace"],
|
|
586
|
+
"cleanName": "font.family.monospace"
|
|
565
587
|
}, {
|
|
566
588
|
"attributes": {
|
|
567
589
|
"group": "fontFamily",
|
|
@@ -44,15 +44,13 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
44
44
|
typography = _ref$typography === void 0 ? _themeConfig.themeStateDefaults['typography'] : _ref$typography,
|
|
45
45
|
_ref$UNSAFE_themeOpti = _ref.UNSAFE_themeOptions,
|
|
46
46
|
UNSAFE_themeOptions = _ref$UNSAFE_themeOpti === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref$UNSAFE_themeOpti;
|
|
47
|
-
var
|
|
47
|
+
var themeAttribute = (0, _themeStateTransformer.themeObjectToString)({
|
|
48
48
|
dark: dark,
|
|
49
49
|
light: light,
|
|
50
50
|
shape: shape,
|
|
51
|
-
|
|
52
|
-
spacing: spacing || 'spacing',
|
|
51
|
+
spacing: spacing,
|
|
53
52
|
typography: typography
|
|
54
|
-
};
|
|
55
|
-
var themeAttribute = (0, _themeStateTransformer.themeObjectToString)(themePreferences);
|
|
53
|
+
});
|
|
56
54
|
var result = (_result = {}, (0, _defineProperty2.default)(_result, _constants.THEME_DATA_ATTRIBUTE, themeAttribute), (0, _defineProperty2.default)(_result, _constants.COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode), _result);
|
|
57
55
|
if (UNSAFE_themeOptions && (0, _colorUtils.isValidBrandHex)(UNSAFE_themeOptions.brandColor)) {
|
|
58
56
|
var optionString = JSON.stringify(UNSAFE_themeOptions);
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.
|
|
11
|
+
var version = "1.22.1";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.
|
|
12
|
+
var version = "1.22.1";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
package/dist/cjs/theme-config.js
CHANGED
|
@@ -12,7 +12,7 @@ var typography = {
|
|
|
12
12
|
fontWeight: 'FontWeight700',
|
|
13
13
|
fontSize: 'FontSize36',
|
|
14
14
|
lineHeight: 'LineHeight700',
|
|
15
|
-
fontFamily: '
|
|
15
|
+
fontFamily: 'font.family.heading',
|
|
16
16
|
fontStyle: 'normal',
|
|
17
17
|
letterSpacing: 'LetterSpacing0'
|
|
18
18
|
}
|
|
@@ -22,7 +22,7 @@ var typography = {
|
|
|
22
22
|
fontWeight: 'FontWeight700',
|
|
23
23
|
fontSize: 'FontSize28',
|
|
24
24
|
lineHeight: 'LineHeight500',
|
|
25
|
-
fontFamily: '
|
|
25
|
+
fontFamily: 'font.family.heading',
|
|
26
26
|
fontStyle: 'normal',
|
|
27
27
|
letterSpacing: 'LetterSpacing0'
|
|
28
28
|
}
|
|
@@ -32,7 +32,7 @@ var typography = {
|
|
|
32
32
|
fontWeight: 'FontWeight700',
|
|
33
33
|
fontSize: 'FontSize24',
|
|
34
34
|
lineHeight: 'LineHeight400',
|
|
35
|
-
fontFamily: '
|
|
35
|
+
fontFamily: 'font.family.heading',
|
|
36
36
|
fontStyle: 'normal',
|
|
37
37
|
letterSpacing: 'LetterSpacing0'
|
|
38
38
|
}
|
|
@@ -42,7 +42,7 @@ var typography = {
|
|
|
42
42
|
fontWeight: 'FontWeight700',
|
|
43
43
|
fontSize: 'FontSize20',
|
|
44
44
|
lineHeight: 'LineHeight300',
|
|
45
|
-
fontFamily: '
|
|
45
|
+
fontFamily: 'font.family.heading',
|
|
46
46
|
fontStyle: 'normal',
|
|
47
47
|
letterSpacing: 'LetterSpacing0'
|
|
48
48
|
}
|
|
@@ -52,7 +52,7 @@ var typography = {
|
|
|
52
52
|
fontWeight: 'FontWeight700',
|
|
53
53
|
fontSize: 'FontSize16',
|
|
54
54
|
lineHeight: 'LineHeight200',
|
|
55
|
-
fontFamily: '
|
|
55
|
+
fontFamily: 'font.family.heading',
|
|
56
56
|
fontStyle: 'normal',
|
|
57
57
|
letterSpacing: 'LetterSpacing0'
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ var typography = {
|
|
|
62
62
|
fontWeight: 'FontWeight700',
|
|
63
63
|
fontSize: 'FontSize14',
|
|
64
64
|
lineHeight: 'LineHeight100',
|
|
65
|
-
fontFamily: '
|
|
65
|
+
fontFamily: 'font.family.heading',
|
|
66
66
|
fontStyle: 'normal',
|
|
67
67
|
letterSpacing: 'LetterSpacing0'
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ var typography = {
|
|
|
72
72
|
fontWeight: 'FontWeight700',
|
|
73
73
|
fontSize: 'FontSize12',
|
|
74
74
|
lineHeight: 'LineHeight100',
|
|
75
|
-
fontFamily: '
|
|
75
|
+
fontFamily: 'font.family.heading',
|
|
76
76
|
fontStyle: 'normal',
|
|
77
77
|
letterSpacing: 'LetterSpacing0'
|
|
78
78
|
}
|
|
@@ -84,7 +84,7 @@ var typography = {
|
|
|
84
84
|
fontWeight: 'FontWeight400',
|
|
85
85
|
fontSize: 'FontSizeCode',
|
|
86
86
|
lineHeight: 'LineHeight1',
|
|
87
|
-
fontFamily: '
|
|
87
|
+
fontFamily: 'font.family.code',
|
|
88
88
|
fontStyle: 'normal',
|
|
89
89
|
letterSpacing: 'LetterSpacing0'
|
|
90
90
|
}
|
|
@@ -96,7 +96,7 @@ var typography = {
|
|
|
96
96
|
fontWeight: 'FontWeight400',
|
|
97
97
|
fontSize: 'FontSize14',
|
|
98
98
|
lineHeight: 'LineHeight200',
|
|
99
|
-
fontFamily: '
|
|
99
|
+
fontFamily: 'font.family.body',
|
|
100
100
|
fontStyle: 'normal',
|
|
101
101
|
letterSpacing: 'LetterSpacing0'
|
|
102
102
|
}
|
|
@@ -106,7 +106,7 @@ var typography = {
|
|
|
106
106
|
fontWeight: 'FontWeight400',
|
|
107
107
|
fontSize: 'FontSize12',
|
|
108
108
|
lineHeight: 'LineHeight200',
|
|
109
|
-
fontFamily: '
|
|
109
|
+
fontFamily: 'font.family.body',
|
|
110
110
|
fontStyle: 'normal',
|
|
111
111
|
letterSpacing: 'LetterSpacing0'
|
|
112
112
|
}
|
|
@@ -116,7 +116,7 @@ var typography = {
|
|
|
116
116
|
fontWeight: 'FontWeight400',
|
|
117
117
|
fontSize: 'FontSize16',
|
|
118
118
|
lineHeight: 'LineHeight300',
|
|
119
|
-
fontFamily: '
|
|
119
|
+
fontFamily: 'font.family.body',
|
|
120
120
|
fontStyle: 'normal',
|
|
121
121
|
letterSpacing: 'LetterSpacing0'
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ var typography = {
|
|
|
128
128
|
fontWeight: 'FontWeight400',
|
|
129
129
|
fontSize: 'FontSize14',
|
|
130
130
|
lineHeight: 'LineHeight1',
|
|
131
|
-
fontFamily: '
|
|
131
|
+
fontFamily: 'font.family.body',
|
|
132
132
|
fontStyle: 'normal',
|
|
133
133
|
letterSpacing: 'LetterSpacing0'
|
|
134
134
|
}
|
|
@@ -138,7 +138,7 @@ var typography = {
|
|
|
138
138
|
fontWeight: 'FontWeight400',
|
|
139
139
|
fontSize: 'FontSize12',
|
|
140
140
|
lineHeight: 'LineHeight1',
|
|
141
|
-
fontFamily: '
|
|
141
|
+
fontFamily: 'font.family.body',
|
|
142
142
|
fontStyle: 'normal',
|
|
143
143
|
letterSpacing: 'LetterSpacing0'
|
|
144
144
|
}
|
|
@@ -4,6 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var utility = {
|
|
8
|
+
// @ts-expect-error in complete utility theme
|
|
9
|
+
UNSAFE: {
|
|
10
|
+
textTransformUppercase: {
|
|
11
|
+
value: 'uppercase'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
7
15
|
var typography = {
|
|
8
16
|
font: {
|
|
9
17
|
heading: {
|
|
@@ -12,7 +20,7 @@ var typography = {
|
|
|
12
20
|
fontWeight: 'FontWeight500',
|
|
13
21
|
fontSize: 'LegacyFontSize35',
|
|
14
22
|
lineHeight: 'LineHeight700',
|
|
15
|
-
fontFamily: '
|
|
23
|
+
fontFamily: 'font.family.heading',
|
|
16
24
|
fontStyle: 'normal',
|
|
17
25
|
letterSpacing: 'LetterSpacing400'
|
|
18
26
|
}
|
|
@@ -22,7 +30,7 @@ var typography = {
|
|
|
22
30
|
fontWeight: 'FontWeight600',
|
|
23
31
|
fontSize: 'LegacyFontSize29',
|
|
24
32
|
lineHeight: 'LineHeight500',
|
|
25
|
-
fontFamily: '
|
|
33
|
+
fontFamily: 'font.family.heading',
|
|
26
34
|
fontStyle: 'normal',
|
|
27
35
|
letterSpacing: 'LetterSpacing400'
|
|
28
36
|
}
|
|
@@ -32,7 +40,7 @@ var typography = {
|
|
|
32
40
|
fontWeight: 'FontWeight500',
|
|
33
41
|
fontSize: 'FontSize24',
|
|
34
42
|
lineHeight: 'LineHeight400',
|
|
35
|
-
fontFamily: '
|
|
43
|
+
fontFamily: 'font.family.heading',
|
|
36
44
|
fontStyle: 'normal',
|
|
37
45
|
letterSpacing: 'LetterSpacing400'
|
|
38
46
|
}
|
|
@@ -42,7 +50,7 @@ var typography = {
|
|
|
42
50
|
fontWeight: 'FontWeight500',
|
|
43
51
|
fontSize: 'FontSize20',
|
|
44
52
|
lineHeight: 'LineHeight300',
|
|
45
|
-
fontFamily: '
|
|
53
|
+
fontFamily: 'font.family.heading',
|
|
46
54
|
fontStyle: 'normal',
|
|
47
55
|
letterSpacing: 'LetterSpacing300'
|
|
48
56
|
}
|
|
@@ -52,7 +60,7 @@ var typography = {
|
|
|
52
60
|
fontWeight: 'FontWeight600',
|
|
53
61
|
fontSize: 'FontSize16',
|
|
54
62
|
lineHeight: 'LineHeight200',
|
|
55
|
-
fontFamily: '
|
|
63
|
+
fontFamily: 'font.family.heading',
|
|
56
64
|
fontStyle: 'normal',
|
|
57
65
|
letterSpacing: 'LetterSpacing200'
|
|
58
66
|
}
|
|
@@ -62,7 +70,7 @@ var typography = {
|
|
|
62
70
|
fontWeight: 'FontWeight600',
|
|
63
71
|
fontSize: 'FontSize14',
|
|
64
72
|
lineHeight: 'LineHeight100',
|
|
65
|
-
fontFamily: '
|
|
73
|
+
fontFamily: 'font.family.heading',
|
|
66
74
|
fontStyle: 'normal',
|
|
67
75
|
letterSpacing: 'LetterSpacing100'
|
|
68
76
|
}
|
|
@@ -72,7 +80,7 @@ var typography = {
|
|
|
72
80
|
fontWeight: 'FontWeight600',
|
|
73
81
|
fontSize: 'FontSize12',
|
|
74
82
|
lineHeight: 'LineHeight100',
|
|
75
|
-
fontFamily: '
|
|
83
|
+
fontFamily: 'font.family.heading',
|
|
76
84
|
fontStyle: 'normal',
|
|
77
85
|
letterSpacing: 'LetterSpacing0'
|
|
78
86
|
}
|
|
@@ -84,7 +92,7 @@ var typography = {
|
|
|
84
92
|
fontWeight: 'FontWeight400',
|
|
85
93
|
fontSize: 'FontSizeCode',
|
|
86
94
|
lineHeight: 'LineHeight1',
|
|
87
|
-
fontFamily: '
|
|
95
|
+
fontFamily: 'font.family.code',
|
|
88
96
|
fontStyle: 'normal',
|
|
89
97
|
letterSpacing: 'LetterSpacing0'
|
|
90
98
|
}
|
|
@@ -96,7 +104,7 @@ var typography = {
|
|
|
96
104
|
fontWeight: 'FontWeight400',
|
|
97
105
|
fontSize: 'FontSize14',
|
|
98
106
|
lineHeight: 'LineHeight200',
|
|
99
|
-
fontFamily: '
|
|
107
|
+
fontFamily: 'font.family.body',
|
|
100
108
|
fontStyle: 'normal',
|
|
101
109
|
letterSpacing: 'LetterSpacing0'
|
|
102
110
|
}
|
|
@@ -106,7 +114,7 @@ var typography = {
|
|
|
106
114
|
fontWeight: 'FontWeight400',
|
|
107
115
|
fontSize: 'FontSize16',
|
|
108
116
|
lineHeight: 'LineHeight300',
|
|
109
|
-
fontFamily: '
|
|
117
|
+
fontFamily: 'font.family.body',
|
|
110
118
|
fontStyle: 'normal',
|
|
111
119
|
letterSpacing: 'LetterSpacing0'
|
|
112
120
|
}
|
|
@@ -116,7 +124,7 @@ var typography = {
|
|
|
116
124
|
fontWeight: 'FontWeight400',
|
|
117
125
|
fontSize: 'LegacyFontSize11',
|
|
118
126
|
lineHeight: 'LineHeight200',
|
|
119
|
-
fontFamily: '
|
|
127
|
+
fontFamily: 'font.family.body',
|
|
120
128
|
fontStyle: 'normal',
|
|
121
129
|
letterSpacing: 'LetterSpacing0'
|
|
122
130
|
}
|
|
@@ -128,7 +136,7 @@ var typography = {
|
|
|
128
136
|
fontWeight: 'FontWeight400',
|
|
129
137
|
fontSize: 'FontSize14',
|
|
130
138
|
lineHeight: 'LineHeight1',
|
|
131
|
-
fontFamily: '
|
|
139
|
+
fontFamily: 'font.family.body',
|
|
132
140
|
fontStyle: 'normal',
|
|
133
141
|
letterSpacing: 'LetterSpacing0'
|
|
134
142
|
}
|
|
@@ -138,7 +146,7 @@ var typography = {
|
|
|
138
146
|
fontWeight: 'FontWeight400',
|
|
139
147
|
fontSize: 'LegacyFontSize11',
|
|
140
148
|
lineHeight: 'LineHeight1',
|
|
141
|
-
fontFamily: '
|
|
149
|
+
fontFamily: 'font.family.body',
|
|
142
150
|
fontStyle: 'normal',
|
|
143
151
|
letterSpacing: 'LetterSpacing0'
|
|
144
152
|
}
|
|
@@ -146,5 +154,8 @@ var typography = {
|
|
|
146
154
|
}
|
|
147
155
|
}
|
|
148
156
|
};
|
|
149
|
-
var _default =
|
|
157
|
+
var _default = {
|
|
158
|
+
font: typography.font,
|
|
159
|
+
utility: utility
|
|
160
|
+
};
|
|
150
161
|
exports.default = _default;
|