@atlaskit/tokens 1.5.2 → 1.7.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +3 -3
  3. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +12 -10
  5. package/dist/cjs/artifacts/token-names.js +12 -10
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +33 -33
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +33 -33
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +81 -37
  13. package/dist/cjs/constants.js +1 -1
  14. package/dist/cjs/get-token-value.js +1 -1
  15. package/dist/cjs/get-token.js +1 -1
  16. package/dist/cjs/palettes/shape-palette.js +2 -1
  17. package/dist/cjs/set-global-theme.js +38 -3
  18. package/dist/cjs/tokens/atlassian-shape/shape.js +7 -1
  19. package/dist/cjs/tokens/default/shape/shape.js +33 -17
  20. package/dist/cjs/utils/theme-state-transformer.js +2 -1
  21. package/dist/cjs/utils/token-order.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +3 -3
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +12 -10
  25. package/dist/es2019/artifacts/token-default-values.js +12 -10
  26. package/dist/es2019/artifacts/token-names.js +12 -10
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +33 -33
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +33 -33
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +81 -37
  34. package/dist/es2019/constants.js +1 -1
  35. package/dist/es2019/get-token-value.js +1 -1
  36. package/dist/es2019/get-token.js +1 -1
  37. package/dist/es2019/palettes/shape-palette.js +2 -1
  38. package/dist/es2019/set-global-theme.js +34 -2
  39. package/dist/es2019/tokens/atlassian-shape/shape.js +7 -1
  40. package/dist/es2019/tokens/default/shape/shape.js +33 -17
  41. package/dist/es2019/utils/theme-state-transformer.js +2 -1
  42. package/dist/es2019/utils/token-order.js +1 -1
  43. package/dist/es2019/version.json +1 -1
  44. package/dist/esm/artifacts/palettes-raw/shape-palette.js +3 -3
  45. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  46. package/dist/esm/artifacts/token-default-values.js +12 -10
  47. package/dist/esm/artifacts/token-names.js +12 -10
  48. package/dist/esm/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  49. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +33 -33
  50. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  51. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  52. package/dist/esm/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  53. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +33 -33
  54. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +81 -37
  55. package/dist/esm/constants.js +1 -1
  56. package/dist/esm/get-token-value.js +1 -1
  57. package/dist/esm/get-token.js +1 -1
  58. package/dist/esm/palettes/shape-palette.js +2 -1
  59. package/dist/esm/set-global-theme.js +38 -3
  60. package/dist/esm/tokens/atlassian-shape/shape.js +7 -1
  61. package/dist/esm/tokens/default/shape/shape.js +33 -17
  62. package/dist/esm/utils/theme-state-transformer.js +2 -1
  63. package/dist/esm/utils/token-order.js +1 -1
  64. package/dist/esm/version.json +1 -1
  65. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  66. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  67. package/dist/types/artifacts/token-default-values.d.ts +12 -10
  68. package/dist/types/artifacts/token-names.d.ts +23 -19
  69. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types/artifacts/types-internal.d.ts +2 -2
  71. package/dist/types/artifacts/types.d.ts +2 -2
  72. package/dist/types/index.d.ts +1 -1
  73. package/dist/types/palettes/shape-palette.d.ts +1 -1
  74. package/dist/types/set-global-theme.d.ts +10 -7
  75. package/dist/types/types.d.ts +3 -1
  76. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  77. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  78. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +12 -10
  79. package/dist/types-ts4.5/artifacts/token-names.d.ts +23 -19
  80. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +1 -1
  81. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  82. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  83. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  84. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +1 -1
  85. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  86. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  87. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  89. package/dist/types-ts4.5/index.d.ts +1 -1
  90. package/dist/types-ts4.5/palettes/shape-palette.d.ts +1 -1
  91. package/dist/types-ts4.5/set-global-theme.d.ts +10 -7
  92. package/dist/types-ts4.5/types.d.ts +3 -1
  93. package/figma/atlassian-dark.json +16 -16
  94. package/figma/atlassian-legacy-dark.json +16 -16
  95. package/figma/atlassian-legacy-light.json +16 -16
  96. package/figma/atlassian-light.json +16 -16
  97. package/figma/atlassian-shape.json +36 -18
  98. package/package.json +6 -4
  99. package/report.api.md +125 -22
  100. package/tmp/api-report-tmp.d.ts +107 -27
@@ -27,6 +27,7 @@ var themeStateDefaults = {
27
27
  colorMode: 'auto',
28
28
  dark: 'dark',
29
29
  light: 'light',
30
+ shape: undefined,
30
31
  spacing: undefined,
31
32
  typography: undefined
32
33
  };
@@ -44,10 +45,11 @@ var getThemePreferences = function getThemePreferences(themeState) {
44
45
  var colorMode = themeState.colorMode,
45
46
  dark = themeState.dark,
46
47
  light = themeState.light,
48
+ shape = themeState.shape,
47
49
  spacing = themeState.spacing,
48
50
  typography = themeState.typography;
49
51
  var themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
50
- [spacing, typography].forEach(function (themeId) {
52
+ [shape, spacing, typography].forEach(function (themeId) {
51
53
  if (themeId) {
52
54
  themePreferences.push(themeId);
53
55
  }
@@ -55,6 +57,16 @@ var getThemePreferences = function getThemePreferences(themeState) {
55
57
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1')) {
56
58
  themePreferences.push("".concat(themePreferences.includes('dark') ? 'dark' : 'light', "-new-input-border"));
57
59
  }
60
+
61
+ // Load shape and spacing by default, currently behind a feature flag
62
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
63
+ if (!themePreferences.includes('shape')) {
64
+ themePreferences.push('shape');
65
+ }
66
+ if (!themePreferences.includes('spacing')) {
67
+ themePreferences.push('spacing');
68
+ }
69
+ }
58
70
  return (0, _toConsumableArray2.default)(new Set(themePreferences));
59
71
  };
60
72
 
@@ -65,6 +77,7 @@ var getThemePreferences = function getThemePreferences(themeState) {
65
77
  * @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
66
78
  * @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
67
79
  * @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
80
+ * @param {string} themeState.shape The shape theme to be applied.
68
81
  * @param {string} themeState.spacing The spacing theme to be applied.
69
82
  * @param {string} themeState.typography The typography theme to be applied.
70
83
  *
@@ -84,6 +97,8 @@ var setGlobalTheme = /*#__PURE__*/function () {
84
97
  dark,
85
98
  _ref2$light,
86
99
  light,
100
+ _ref2$shape,
101
+ shape,
87
102
  _ref2$spacing,
88
103
  spacing,
89
104
  _ref2$typography,
@@ -94,11 +109,12 @@ var setGlobalTheme = /*#__PURE__*/function () {
94
109
  return _regenerator.default.wrap(function _callee2$(_context2) {
95
110
  while (1) switch (_context2.prev = _context2.next) {
96
111
  case 0:
97
- _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;
112
+ _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;
98
113
  themePreferences = getThemePreferences({
99
114
  colorMode: colorMode,
100
115
  dark: dark,
101
116
  light: light,
117
+ shape: shape,
102
118
  spacing: spacing,
103
119
  typography: typography
104
120
  });
@@ -161,6 +177,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
161
177
  colorMode: colorMode,
162
178
  dark: dark,
163
179
  light: light,
180
+ shape: shape,
164
181
  spacing: spacing,
165
182
  typography: typography
166
183
  });
@@ -189,6 +206,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
189
206
  * @param {string} themeState.colorMode Determines which color theme is applied. If set to `auto`, the theme applied will be determined by the OS setting.
190
207
  * @param {string} themeState.dark The color theme to be applied when the color mode resolves to 'dark'.
191
208
  * @param {string} themeState.light The color theme to be applied when the color mode resolves to 'light'.
209
+ * @param {string} themeState.shape The shape theme to be applied.
192
210
  * @param {string} themeState.spacing The spacing theme to be applied.
193
211
  * @param {string} themeState.typography The typography theme to be applied.
194
212
  *
@@ -204,6 +222,8 @@ var getThemeStyles = /*#__PURE__*/function () {
204
222
  dark,
205
223
  _ref7$light,
206
224
  light,
225
+ _ref7$shape,
226
+ shape,
207
227
  _ref7$spacing,
208
228
  spacing,
209
229
  _ref7$typography,
@@ -214,11 +234,12 @@ var getThemeStyles = /*#__PURE__*/function () {
214
234
  return _regenerator.default.wrap(function _callee4$(_context4) {
215
235
  while (1) switch (_context4.prev = _context4.next) {
216
236
  case 0:
217
- _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;
237
+ _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$shape = _ref7.shape, shape = _ref7$shape === void 0 ? themeStateDefaults['shape'] : _ref7$shape, _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
238
  themePreferences = getThemePreferences({
219
239
  colorMode: colorMode,
220
240
  dark: dark,
221
241
  light: light,
242
+ shape: shape,
222
243
  spacing: spacing,
223
244
  typography: typography
224
245
  });
@@ -303,6 +324,8 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
303
324
  dark = _ref9$dark === void 0 ? themeStateDefaults['dark'] : _ref9$dark,
304
325
  _ref9$light = _ref9.light,
305
326
  light = _ref9$light === void 0 ? themeStateDefaults['light'] : _ref9$light,
327
+ _ref9$shape = _ref9.shape,
328
+ shape = _ref9$shape === void 0 ? themeStateDefaults['shape'] : _ref9$shape,
306
329
  _ref9$spacing = _ref9.spacing,
307
330
  spacing = _ref9$spacing === void 0 ? themeStateDefaults['spacing'] : _ref9$spacing,
308
331
  _ref9$typography = _ref9.typography,
@@ -310,9 +333,21 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
310
333
  var themePreferences = {
311
334
  dark: dark,
312
335
  light: light,
336
+ shape: shape,
313
337
  spacing: spacing,
314
338
  typography: typography
315
339
  };
340
+
341
+ // Load shape and spacing by default, currently behind a feature flag
342
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
343
+ themePreferences = {
344
+ dark: dark,
345
+ light: light,
346
+ shape: 'shape',
347
+ spacing: 'spacing',
348
+ typography: typography
349
+ };
350
+ }
316
351
  var themeAttribute = (0, _themeStateTransformer.themeObjectToString)(themePreferences);
317
352
  return _ref10 = {}, (0, _defineProperty2.default)(_ref10, _constants.THEME_DATA_ATTRIBUTE, themeAttribute), (0, _defineProperty2.default)(_ref10, _constants.COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode), _ref10;
318
353
  };
@@ -11,6 +11,9 @@ exports.default = void 0;
11
11
  var shape = {
12
12
  border: {
13
13
  width: {
14
+ '[default]': {
15
+ value: 'Size050'
16
+ },
14
17
  '0': {
15
18
  value: 'Size0'
16
19
  },
@@ -22,6 +25,9 @@ var shape = {
22
25
  }
23
26
  },
24
27
  radius: {
28
+ '[default]': {
29
+ value: 'Radius100'
30
+ },
25
31
  '050': {
26
32
  value: 'Radius050'
27
33
  },
@@ -37,7 +43,7 @@ var shape = {
37
43
  '400': {
38
44
  value: 'Radius400'
39
45
  },
40
- round: {
46
+ circle: {
41
47
  value: 'RadiusCircle'
42
48
  }
43
49
  }
@@ -7,6 +7,14 @@ exports.default = void 0;
7
7
  var shape = {
8
8
  border: {
9
9
  width: {
10
+ '[default]': {
11
+ attributes: {
12
+ group: 'shape',
13
+ state: 'active',
14
+ introduced: '1.5.2',
15
+ description: 'The default border width.'
16
+ }
17
+ },
10
18
  '0': {
11
19
  attributes: {
12
20
  group: 'shape',
@@ -18,67 +26,75 @@ var shape = {
18
26
  '050': {
19
27
  attributes: {
20
28
  group: 'shape',
21
- state: 'experimental',
29
+ state: 'active',
22
30
  introduced: '1.1.0',
23
- description: 'Experimental, description needs to be amended'
31
+ description: 'Used for all borders and dividers.'
24
32
  }
25
33
  },
26
34
  '100': {
27
35
  attributes: {
28
36
  group: 'shape',
29
- state: 'experimental',
37
+ state: 'active',
30
38
  introduced: '1.1.0',
31
- description: 'Experimental, description needs to be amended'
39
+ description: 'Used for bolder dividers and interaction states.'
32
40
  }
33
41
  }
34
42
  },
35
43
  radius: {
44
+ '[default]': {
45
+ attributes: {
46
+ group: 'shape',
47
+ state: 'active',
48
+ introduced: '1.5.2',
49
+ description: 'The default border radius.'
50
+ }
51
+ },
36
52
  '050': {
37
53
  attributes: {
38
54
  group: 'shape',
39
- state: 'experimental',
55
+ state: 'active',
40
56
  introduced: '1.1.0',
41
- description: 'Experimental, description needs to be amended'
57
+ description: 'Used for selection indicators, like tabs.'
42
58
  }
43
59
  },
44
60
  '100': {
45
61
  attributes: {
46
62
  group: 'shape',
47
- state: 'experimental',
63
+ state: 'active',
48
64
  introduced: '1.1.0',
49
- description: 'Experimental, description needs to be amended'
65
+ description: 'Used for buttons and inputs.'
50
66
  }
51
67
  },
52
68
  '200': {
53
69
  attributes: {
54
70
  group: 'shape',
55
- state: 'experimental',
71
+ state: 'active',
56
72
  introduced: '1.1.0',
57
- description: 'Experimental, description needs to be amended'
73
+ description: 'Used for smaller cards.'
58
74
  }
59
75
  },
60
76
  '300': {
61
77
  attributes: {
62
78
  group: 'shape',
63
- state: 'experimental',
79
+ state: 'active',
64
80
  introduced: '1.1.0',
65
- description: 'Experimental, description needs to be amended'
81
+ description: 'Used for cards and larger containers.'
66
82
  }
67
83
  },
68
84
  '400': {
69
85
  attributes: {
70
86
  group: 'shape',
71
- state: 'experimental',
87
+ state: 'active',
72
88
  introduced: '1.1.0',
73
- description: 'Experimental, description needs to be amended'
89
+ description: 'Used for modals.'
74
90
  }
75
91
  },
76
- round: {
92
+ circle: {
77
93
  attributes: {
78
94
  group: 'shape',
79
- state: 'experimental',
95
+ state: 'active',
80
96
  introduced: '1.1.0',
81
- description: 'Experimental, description needs to be amended'
97
+ description: 'Used for circular containers, like a rounded button.'
82
98
  }
83
99
  }
84
100
  }
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.themeStringToObject = exports.themeObjectToString = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _themeConfig = require("../theme-config");
10
- var themeKinds = ['light', 'dark', 'spacing', 'typography'];
10
+ var themeKinds = ['light', 'dark', 'spacing', 'typography', 'shape'];
11
11
  var isThemeKind = function isThemeKind(themeKind) {
12
12
  return themeKinds.find(function (kind) {
13
13
  return kind === themeKind;
@@ -44,6 +44,7 @@ var themeStringToObject = function themeStringToObject(themeState) {
44
44
  themeObject[kind] = id;
45
45
  }
46
46
  if (isThemeKind(kind) && isThemeIds(id)) {
47
+ // @ts-expect-error FIXME - this is a valid ts error
47
48
  themeObject[kind] = id;
48
49
  }
49
50
  return themeObject;
@@ -27,7 +27,7 @@ var tokenOrder = [{
27
27
  path: 'utility',
28
28
  subpaths: []
29
29
  }, {
30
- path: 'shape',
30
+ path: 'border',
31
31
  subpaths: ['radius', 'width']
32
32
  }, {
33
33
  path: 'space',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.5.2",
3
+ "version": "1.7.0",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -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::a2e59b8e1421ca4ad026a5b2161824b2>>
3
+ * @codegen <<SignedSource::ba57ec0a6991ab386479b6c9006397ba>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -79,14 +79,14 @@ const tokens = [{
79
79
  "name": "border.radius.Radius400",
80
80
  "path": ["border", "radius", "Radius400"]
81
81
  }, {
82
- "value": "50%",
82
+ "value": "32032px",
83
83
  "attributes": {
84
84
  "group": "shape"
85
85
  },
86
86
  "filePath": "src/palettes/shape-palette.tsx",
87
87
  "isSource": true,
88
88
  "original": {
89
- "value": "50%",
89
+ "value": 32032,
90
90
  "attributes": {
91
91
  "group": "shape"
92
92
  }
@@ -1,18 +1,20 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::01d88a41c27f9a921fe1a40fec0a7ba0>>
3
+ * @codegen <<SignedSource::861a4448ac467155c8290f2b211e99c5>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
7
7
  html[data-theme~="shape:shape"] {
8
- --ds-radius-050: 0.125rem;
9
- --ds-radius-100: 0.25rem;
10
- --ds-radius-200: 0.5rem;
11
- --ds-radius-300: 0.75rem;
12
- --ds-radius-400: 1rem;
13
- --ds-radius-round: 50%;
14
- --ds-width-0: 0rem;
15
- --ds-width-050: 0.0625rem;
16
- --ds-width-100: 0.125rem;
8
+ --ds-border-radius-050: 0.125rem;
9
+ --ds-border-radius: 0.25rem;
10
+ --ds-border-radius-100: 0.25rem;
11
+ --ds-border-radius-200: 0.5rem;
12
+ --ds-border-radius-300: 0.75rem;
13
+ --ds-border-radius-400: 1rem;
14
+ --ds-border-radius-circle: 2002rem;
15
+ --ds-border-width: 0.0625rem;
16
+ --ds-border-width-0: 0rem;
17
+ --ds-border-width-050: 0.0625rem;
18
+ --ds-border-width-100: 0.125rem;
17
19
  }
18
20
  `;
@@ -4,19 +4,10 @@
4
4
  * Token names mapped to their value in the default Atlassian themes ('light').
5
5
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
6
  *
7
- * @codegen <<SignedSource::856ff062171d44deb03158a6fa7d7bd1>>
7
+ * @codegen <<SignedSource::cc9231cd2b7a9797c51b4b8b742bab92>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  const defaultTokenValues = {
11
- 'border.radius.050': '0.125rem',
12
- 'border.radius.100': '0.25rem',
13
- 'border.radius.200': '0.5rem',
14
- 'border.radius.300': '0.75rem',
15
- 'border.radius.400': '1rem',
16
- 'border.radius.round': '50%',
17
- 'border.width.0': '0rem',
18
- 'border.width.050': '0.0625rem',
19
- 'border.width.100': '0.125rem',
20
11
  'color.text': '#172B4D',
21
12
  'color.text.accent.red': '#AE2A19',
22
13
  'color.text.accent.red.bolder': '#601E16',
@@ -303,6 +294,17 @@ const defaultTokenValues = {
303
294
  'opacity.disabled': '0.4',
304
295
  'opacity.loading': '0.2',
305
296
  'utility.UNSAFE.transparent': 'transparent',
297
+ 'border.radius.050': '0.125rem',
298
+ 'border.radius': '0.25rem',
299
+ 'border.radius.100': '0.25rem',
300
+ 'border.radius.200': '0.5rem',
301
+ 'border.radius.300': '0.75rem',
302
+ 'border.radius.400': '1rem',
303
+ 'border.radius.circle': '2002rem',
304
+ 'border.width': '0.0625rem',
305
+ 'border.width.0': '0rem',
306
+ 'border.width.050': '0.0625rem',
307
+ 'border.width.100': '0.125rem',
306
308
  'space.0': '0rem',
307
309
  'space.025': '0.125rem',
308
310
  'space.050': '0.25rem',
@@ -1,18 +1,9 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::462a85d7e15b8fb4e0c4225b94e89903>>
3
+ * @codegen <<SignedSource::488b6f348c638f30edc95365a3de0725>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = {
7
- 'border.radius.050': '--ds-radius-050',
8
- 'border.radius.100': '--ds-radius-100',
9
- 'border.radius.200': '--ds-radius-200',
10
- 'border.radius.300': '--ds-radius-300',
11
- 'border.radius.400': '--ds-radius-400',
12
- 'border.radius.round': '--ds-radius-round',
13
- 'border.width.0': '--ds-width-0',
14
- 'border.width.050': '--ds-width-050',
15
- 'border.width.100': '--ds-width-100',
16
7
  'color.text': '--ds-text',
17
8
  'color.text.accent.red': '--ds-text-accent-red',
18
9
  'color.text.accent.red.bolder': '--ds-text-accent-red-bolder',
@@ -299,6 +290,17 @@ const tokens = {
299
290
  'opacity.disabled': '--ds-opacity-disabled',
300
291
  'opacity.loading': '--ds-opacity-loading',
301
292
  'utility.UNSAFE.transparent': '--ds-UNSAFE-transparent',
293
+ 'border.radius.050': '--ds-border-radius-050',
294
+ 'border.radius': '--ds-border-radius',
295
+ 'border.radius.100': '--ds-border-radius-100',
296
+ 'border.radius.200': '--ds-border-radius-200',
297
+ 'border.radius.300': '--ds-border-radius-300',
298
+ 'border.radius.400': '--ds-border-radius-400',
299
+ 'border.radius.circle': '--ds-border-radius-circle',
300
+ 'border.width': '--ds-border-width',
301
+ 'border.width.0': '--ds-border-width-0',
302
+ 'border.width.050': '--ds-border-width-050',
303
+ 'border.width.100': '--ds-border-width-100',
302
304
  'space.0': '--ds-space-0',
303
305
  'space.025': '--ds-space-025',
304
306
  'space.050': '--ds-space-050',