@atlaskit/tokens 8.2.0 → 8.4.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 +33 -0
- package/dist/cjs/artifacts/generated-pairs.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +21 -1
- package/dist/cjs/artifacts/token-names.js +21 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +449 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +449 -9
- package/dist/cjs/enable-global-theme.js +1 -1
- package/dist/cjs/entry-points/token-metadata.codegen.js +105 -5
- package/dist/cjs/get-theme-html-attrs.js +1 -1
- package/dist/cjs/get-theme-styles.js +1 -1
- package/dist/cjs/set-global-theme.js +3 -2
- package/dist/cjs/theme-config.js +6 -1
- package/dist/es2019/artifacts/generated-pairs.js +2 -2
- package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +21 -1
- package/dist/es2019/artifacts/themes/atlassian-dark.js +21 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +21 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +21 -1
- package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +21 -1
- package/dist/es2019/artifacts/themes/atlassian-light.js +21 -1
- package/dist/es2019/artifacts/token-default-values.js +21 -1
- package/dist/es2019/artifacts/token-names.js +21 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +449 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +449 -9
- package/dist/es2019/enable-global-theme.js +1 -1
- package/dist/es2019/entry-points/token-metadata.codegen.js +105 -5
- package/dist/es2019/get-theme-html-attrs.js +1 -1
- package/dist/es2019/get-theme-styles.js +1 -1
- package/dist/es2019/set-global-theme.js +2 -1
- package/dist/es2019/theme-config.js +6 -1
- package/dist/esm/artifacts/generated-pairs.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +21 -1
- package/dist/esm/artifacts/token-names.js +21 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +449 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +449 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +449 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +449 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +449 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +449 -9
- package/dist/esm/enable-global-theme.js +1 -1
- package/dist/esm/entry-points/token-metadata.codegen.js +105 -5
- package/dist/esm/get-theme-html-attrs.js +1 -1
- package/dist/esm/get-theme-styles.js +1 -1
- package/dist/esm/set-global-theme.js +3 -2
- package/dist/esm/theme-config.js +6 -1
- package/dist/types/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +21 -1
- package/dist/types/artifacts/token-names.d.ts +41 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.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/entry-points/css-type-schema.codegen.d.ts +5 -5
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/theme-config.d.ts +2 -1
- package/dist/types/types.d.ts +42 -4
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +21 -1
- package/dist/types-ts4.5/artifacts/token-names.d.ts +41 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.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-increased-contrast.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.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/entry-points/css-type-schema.codegen.d.ts +5 -5
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/theme-config.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +42 -4
- package/figma/atlassian-dark-increased-contrast.json +180 -0
- package/figma/atlassian-dark.json +180 -0
- package/figma/atlassian-legacy-dark.json +180 -0
- package/figma/atlassian-legacy-light.json +180 -0
- package/figma/atlassian-light-increased-contrast.json +180 -0
- package/figma/atlassian-light.json +180 -0
- package/package.json +6 -3
|
@@ -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::d2c7d478f4be0c1217d656e8c1c6ce83>>
|
|
13
13
|
* @codegenCommand yarn build tokens
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -140,9 +140,14 @@ var tokens = exports.tokens = [{
|
|
|
140
140
|
exampleValue: '#1868DB'
|
|
141
141
|
}, {
|
|
142
142
|
name: 'color.text.danger',
|
|
143
|
-
path: ['color', 'text', 'danger'],
|
|
143
|
+
path: ['color', 'text', 'danger', '[default]'],
|
|
144
144
|
description: 'Use for critical text, such as input field error messaging.',
|
|
145
145
|
exampleValue: '#AE2E24'
|
|
146
|
+
}, {
|
|
147
|
+
name: 'color.text.danger.bolder',
|
|
148
|
+
path: ['color', 'text', 'danger', 'bolder'],
|
|
149
|
+
description: 'Use for text on top of danger semantic labels to ensure accessibility and desired visual appearance.',
|
|
150
|
+
exampleValue: '#5D1F1A'
|
|
146
151
|
}, {
|
|
147
152
|
name: 'color.text.warning',
|
|
148
153
|
path: ['color', 'text', 'warning', '[default]'],
|
|
@@ -153,21 +158,41 @@ var tokens = exports.tokens = [{
|
|
|
153
158
|
path: ['color', 'text', 'warning', 'inverse'],
|
|
154
159
|
description: 'Use for text when on bold warning backgrounds.',
|
|
155
160
|
exampleValue: '#292A2E'
|
|
161
|
+
}, {
|
|
162
|
+
name: 'color.text.warning.bolder',
|
|
163
|
+
path: ['color', 'text', 'warning', 'bolder'],
|
|
164
|
+
description: 'Use for text on top of warning semantic labels to ensure accessibility and desired visual appearance.',
|
|
165
|
+
exampleValue: '#693200'
|
|
156
166
|
}, {
|
|
157
167
|
name: 'color.text.success',
|
|
158
|
-
path: ['color', 'text', 'success'],
|
|
168
|
+
path: ['color', 'text', 'success', '[default]'],
|
|
159
169
|
description: 'Use for text to communicate a favorable outcome, such as input field success messaging.',
|
|
160
170
|
exampleValue: '#4C6B1F'
|
|
171
|
+
}, {
|
|
172
|
+
name: 'color.text.success.bolder',
|
|
173
|
+
path: ['color', 'text', 'success', 'bolder'],
|
|
174
|
+
description: 'Use for text on top of success semantic labels to ensure accessibility and desired visual appearance.',
|
|
175
|
+
exampleValue: '#37471F'
|
|
161
176
|
}, {
|
|
162
177
|
name: 'color.text.discovery',
|
|
163
|
-
path: ['color', 'text', 'discovery'],
|
|
178
|
+
path: ['color', 'text', 'discovery', '[default]'],
|
|
164
179
|
description: 'Use for text to emphasize change or something new, such as in new lozenges.',
|
|
165
180
|
exampleValue: '#803FA5'
|
|
181
|
+
}, {
|
|
182
|
+
name: 'color.text.discovery.bolder',
|
|
183
|
+
path: ['color', 'text', 'discovery', 'bolder'],
|
|
184
|
+
description: 'Use for text on top of discovery semantic labels to ensure accessibility and desired visual appearance.',
|
|
185
|
+
exampleValue: '#48245D'
|
|
166
186
|
}, {
|
|
167
187
|
name: 'color.text.information',
|
|
168
|
-
path: ['color', 'text', 'information'],
|
|
188
|
+
path: ['color', 'text', 'information', '[default]'],
|
|
169
189
|
description: 'Use for informative text or to communicate something is in progress, such as in-progress lozenges.',
|
|
170
190
|
exampleValue: '#1558BC'
|
|
191
|
+
}, {
|
|
192
|
+
name: 'color.text.information.bolder',
|
|
193
|
+
path: ['color', 'text', 'information', 'bolder'],
|
|
194
|
+
description: 'Use for text on top of information semantic labels to ensure accessibility and desired visual appearance.',
|
|
195
|
+
exampleValue: '#123263'
|
|
171
196
|
}, {
|
|
172
197
|
name: 'color.text.subtlest',
|
|
173
198
|
path: ['color', 'text', 'subtlest'],
|
|
@@ -1198,6 +1223,21 @@ var tokens = exports.tokens = [{
|
|
|
1198
1223
|
path: ['color', 'background', 'danger', '[default]', 'pressed'],
|
|
1199
1224
|
description: 'Pressed state for color.background.danger',
|
|
1200
1225
|
exampleValue: '#FFB8B2'
|
|
1226
|
+
}, {
|
|
1227
|
+
name: 'color.background.danger.subtler',
|
|
1228
|
+
path: ['color', 'background', 'danger', 'subtler', '[default]'],
|
|
1229
|
+
description: 'Use for backgrounds of danger lozenges and badges to ensure accessibility and desired visual appearance.',
|
|
1230
|
+
exampleValue: '#FFD5D2'
|
|
1231
|
+
}, {
|
|
1232
|
+
name: 'color.background.danger.subtler.hovered',
|
|
1233
|
+
path: ['color', 'background', 'danger', 'subtler', 'hovered'],
|
|
1234
|
+
description: 'Hovered state of color.background.danger.subtler',
|
|
1235
|
+
exampleValue: '#FFB8B2'
|
|
1236
|
+
}, {
|
|
1237
|
+
name: 'color.background.danger.subtler.pressed',
|
|
1238
|
+
path: ['color', 'background', 'danger', 'subtler', 'pressed'],
|
|
1239
|
+
description: 'Pressed state of color.background.danger.subtler',
|
|
1240
|
+
exampleValue: '#FD9891'
|
|
1201
1241
|
}, {
|
|
1202
1242
|
name: 'color.background.danger.bold',
|
|
1203
1243
|
path: ['color', 'background', 'danger', 'bold', '[default]'],
|
|
@@ -1228,6 +1268,21 @@ var tokens = exports.tokens = [{
|
|
|
1228
1268
|
path: ['color', 'background', 'warning', '[default]', 'pressed'],
|
|
1229
1269
|
description: 'Pressed state for color.background.warning',
|
|
1230
1270
|
exampleValue: '#FBD779'
|
|
1271
|
+
}, {
|
|
1272
|
+
name: 'color.background.warning.subtler',
|
|
1273
|
+
path: ['color', 'background', 'warning', 'subtler', '[default]'],
|
|
1274
|
+
description: 'Use for backgrounds of warning lozenges and badges to ensure accessibility and desired visual appearance.',
|
|
1275
|
+
exampleValue: '#FCE4A6'
|
|
1276
|
+
}, {
|
|
1277
|
+
name: 'color.background.warning.subtler.hovered',
|
|
1278
|
+
path: ['color', 'background', 'warning', 'subtler', 'hovered'],
|
|
1279
|
+
description: 'Hovered state of color.background.warning.subtler',
|
|
1280
|
+
exampleValue: '#FBD779'
|
|
1281
|
+
}, {
|
|
1282
|
+
name: 'color.background.warning.subtler.pressed',
|
|
1283
|
+
path: ['color', 'background', 'warning', 'subtler', 'pressed'],
|
|
1284
|
+
description: 'Pressed state of color.background.warning.subtler',
|
|
1285
|
+
exampleValue: '#FBC828'
|
|
1231
1286
|
}, {
|
|
1232
1287
|
name: 'color.background.warning.bold',
|
|
1233
1288
|
path: ['color', 'background', 'warning', 'bold', '[default]'],
|
|
@@ -1258,6 +1313,21 @@ var tokens = exports.tokens = [{
|
|
|
1258
1313
|
path: ['color', 'background', 'success', '[default]', 'pressed'],
|
|
1259
1314
|
description: 'Pressed state for color.background.success',
|
|
1260
1315
|
exampleValue: '#BDE97C'
|
|
1316
|
+
}, {
|
|
1317
|
+
name: 'color.background.success.subtler',
|
|
1318
|
+
path: ['color', 'background', 'success', 'subtler', '[default]'],
|
|
1319
|
+
description: 'Use for backgrounds of success lozenges and badges to ensure accessibility and desired visual appearance.',
|
|
1320
|
+
exampleValue: '#D3F1A7'
|
|
1321
|
+
}, {
|
|
1322
|
+
name: 'color.background.success.subtler.hovered',
|
|
1323
|
+
path: ['color', 'background', 'success', 'subtler', 'hovered'],
|
|
1324
|
+
description: 'Hovered state of color.background.success.subtler',
|
|
1325
|
+
exampleValue: '#BDE97C'
|
|
1326
|
+
}, {
|
|
1327
|
+
name: 'color.background.success.subtler.pressed',
|
|
1328
|
+
path: ['color', 'background', 'success', 'subtler', 'pressed'],
|
|
1329
|
+
description: 'Pressed state of color.background.success.subtler',
|
|
1330
|
+
exampleValue: '#B3DF72'
|
|
1261
1331
|
}, {
|
|
1262
1332
|
name: 'color.background.success.bold',
|
|
1263
1333
|
path: ['color', 'background', 'success', 'bold', '[default]'],
|
|
@@ -1288,6 +1358,21 @@ var tokens = exports.tokens = [{
|
|
|
1288
1358
|
path: ['color', 'background', 'discovery', '[default]', 'pressed'],
|
|
1289
1359
|
description: 'Pressed state for color.background.discovery',
|
|
1290
1360
|
exampleValue: '#E3BDFA'
|
|
1361
|
+
}, {
|
|
1362
|
+
name: 'color.background.discovery.subtler',
|
|
1363
|
+
path: ['color', 'background', 'discovery', 'subtler', '[default]'],
|
|
1364
|
+
description: 'Use for backgrounds of discovery lozenges and badges to ensure accessibility and desired visual appearance.',
|
|
1365
|
+
exampleValue: '#EED7FC'
|
|
1366
|
+
}, {
|
|
1367
|
+
name: 'color.background.discovery.subtler.hovered',
|
|
1368
|
+
path: ['color', 'background', 'discovery', 'subtler', 'hovered'],
|
|
1369
|
+
description: 'Hovered state of color.background.discovery.subtler',
|
|
1370
|
+
exampleValue: '#E3BDFA'
|
|
1371
|
+
}, {
|
|
1372
|
+
name: 'color.background.discovery.subtler.pressed',
|
|
1373
|
+
path: ['color', 'background', 'discovery', 'subtler', 'pressed'],
|
|
1374
|
+
description: 'Pressed state of color.background.discovery.subtler',
|
|
1375
|
+
exampleValue: '#D8A0F7'
|
|
1291
1376
|
}, {
|
|
1292
1377
|
name: 'color.background.discovery.bold',
|
|
1293
1378
|
path: ['color', 'background', 'discovery', 'bold', '[default]'],
|
|
@@ -1318,6 +1403,21 @@ var tokens = exports.tokens = [{
|
|
|
1318
1403
|
path: ['color', 'background', 'information', '[default]', 'pressed'],
|
|
1319
1404
|
description: 'Pressed state of color.background.information',
|
|
1320
1405
|
exampleValue: '#ADCBFB'
|
|
1406
|
+
}, {
|
|
1407
|
+
name: 'color.background.information.subtler',
|
|
1408
|
+
path: ['color', 'background', 'information', 'subtler', '[default]'],
|
|
1409
|
+
description: 'Use for backgrounds of information lozenges and badges to ensure accessibility and desired visual appearance.',
|
|
1410
|
+
exampleValue: '#CFE1FD'
|
|
1411
|
+
}, {
|
|
1412
|
+
name: 'color.background.information.subtler.hovered',
|
|
1413
|
+
path: ['color', 'background', 'information', 'subtler', 'hovered'],
|
|
1414
|
+
description: 'Hovered state of color.background.information.subtler',
|
|
1415
|
+
exampleValue: '#ADCBFB'
|
|
1416
|
+
}, {
|
|
1417
|
+
name: 'color.background.information.subtler.pressed',
|
|
1418
|
+
path: ['color', 'background', 'information', 'subtler', 'pressed'],
|
|
1419
|
+
description: 'Pressed state of color.background.information.subtler',
|
|
1420
|
+
exampleValue: '#8FB8F6'
|
|
1321
1421
|
}, {
|
|
1322
1422
|
name: 'color.background.information.bold',
|
|
1323
1423
|
path: ['color', 'background', 'information', 'bold', '[default]'],
|
|
@@ -42,7 +42,7 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
42
42
|
_ref$contrastMode = _ref.contrastMode,
|
|
43
43
|
contrastMode = _ref$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref$contrastMode,
|
|
44
44
|
_ref$shape = _ref.shape,
|
|
45
|
-
shape = _ref$shape === void 0 ? _themeConfig.themeStateDefaults['shape'] : _ref$shape,
|
|
45
|
+
shape = _ref$shape === void 0 ? _themeConfig.themeStateDefaults['shape']() : _ref$shape,
|
|
46
46
|
_ref$spacing = _ref.spacing,
|
|
47
47
|
spacing = _ref$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref$spacing,
|
|
48
48
|
_ref$typography = _ref.typography,
|
|
@@ -53,7 +53,7 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
53
53
|
contrastMode: (preferences === null || preferences === void 0 ? void 0 : preferences.contrastMode) || _themeConfig.themeStateDefaults['contrastMode'],
|
|
54
54
|
dark: (preferences === null || preferences === void 0 ? void 0 : preferences.dark) || _themeConfig.themeStateDefaults['dark'],
|
|
55
55
|
light: (preferences === null || preferences === void 0 ? void 0 : preferences.light) || _themeConfig.themeStateDefaults['light'],
|
|
56
|
-
shape: (preferences === null || preferences === void 0 ? void 0 : preferences.shape) || _themeConfig.themeStateDefaults['shape'],
|
|
56
|
+
shape: (preferences === null || preferences === void 0 ? void 0 : preferences.shape) || _themeConfig.themeStateDefaults['shape'](),
|
|
57
57
|
spacing: (preferences === null || preferences === void 0 ? void 0 : preferences.spacing) || _themeConfig.themeStateDefaults['spacing'],
|
|
58
58
|
typography: (preferences === null || preferences === void 0 ? void 0 : preferences.typography) || _themeConfig.themeStateDefaults['typography']()
|
|
59
59
|
};
|
|
@@ -83,8 +83,9 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
83
83
|
nextThemeState = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
84
84
|
themeLoader = _args3.length > 1 ? _args3[1] : undefined;
|
|
85
85
|
_ref2 = typeof nextThemeState === 'function' ? nextThemeState(_objectSpread(_objectSpread({}, _themeConfig.themeStateDefaults), {}, {
|
|
86
|
-
typography: _themeConfig.themeStateDefaults['typography']()
|
|
87
|
-
|
|
86
|
+
typography: _themeConfig.themeStateDefaults['typography'](),
|
|
87
|
+
shape: _themeConfig.themeStateDefaults['shape']()
|
|
88
|
+
}, (0, _getGlobalTheme.default)())) : nextThemeState, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? _themeConfig.themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? _themeConfig.themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? _themeConfig.themeStateDefaults['shape']() : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? _themeConfig.themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt; // CLEANUP: Remove. This blocks application of increased contrast themes
|
|
88
89
|
// without the feature flag enabled.
|
|
89
90
|
if (!(0, _platformFeatureFlags.fg)('platform_increased-contrast-themes')) {
|
|
90
91
|
if (light === 'light-increased-contrast') {
|
package/dist/cjs/theme-config.js
CHANGED
|
@@ -220,7 +220,12 @@ var themeStateDefaults = exports.themeStateDefaults = {
|
|
|
220
220
|
contrastMode: 'auto',
|
|
221
221
|
dark: 'dark',
|
|
222
222
|
light: 'light',
|
|
223
|
-
shape:
|
|
223
|
+
shape: function shape() {
|
|
224
|
+
if ((0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default')) {
|
|
225
|
+
return 'shape';
|
|
226
|
+
}
|
|
227
|
+
return undefined;
|
|
228
|
+
},
|
|
224
229
|
spacing: 'spacing',
|
|
225
230
|
typography: function typography() {
|
|
226
231
|
if ((0, _platformFeatureFlags.fg)('platform-disable-default-typography')) {
|