@atlaskit/tokens 1.10.2 → 1.11.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +16 -1
  3. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +3 -3
  5. package/dist/cjs/artifacts/token-names.js +3 -3
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +27 -21
  7. package/dist/cjs/get-token-value.js +1 -1
  8. package/dist/cjs/get-token.js +1 -1
  9. package/dist/cjs/palettes/shape-palette.js +6 -0
  10. package/dist/cjs/set-global-theme.js +2 -5
  11. package/dist/cjs/tokens/atlassian-shape/shape.js +4 -4
  12. package/dist/cjs/tokens/default/shape/shape.js +11 -8
  13. package/dist/cjs/version.json +1 -1
  14. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +16 -1
  15. package/dist/es2019/artifacts/themes/atlassian-shape.js +3 -3
  16. package/dist/es2019/artifacts/token-default-values.js +3 -3
  17. package/dist/es2019/artifacts/token-names.js +3 -3
  18. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +27 -21
  19. package/dist/es2019/get-token-value.js +1 -1
  20. package/dist/es2019/get-token.js +1 -1
  21. package/dist/es2019/palettes/shape-palette.js +6 -0
  22. package/dist/es2019/set-global-theme.js +2 -5
  23. package/dist/es2019/tokens/atlassian-shape/shape.js +4 -4
  24. package/dist/es2019/tokens/default/shape/shape.js +11 -8
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/esm/artifacts/palettes-raw/shape-palette.js +16 -1
  27. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  28. package/dist/esm/artifacts/token-default-values.js +3 -3
  29. package/dist/esm/artifacts/token-names.js +3 -3
  30. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +27 -21
  31. package/dist/esm/get-token-value.js +1 -1
  32. package/dist/esm/get-token.js +1 -1
  33. package/dist/esm/palettes/shape-palette.js +6 -0
  34. package/dist/esm/set-global-theme.js +2 -5
  35. package/dist/esm/tokens/atlassian-shape/shape.js +4 -4
  36. package/dist/esm/tokens/default/shape/shape.js +11 -8
  37. package/dist/esm/version.json +1 -1
  38. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +1 -1
  39. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  40. package/dist/types/artifacts/token-default-values.d.ts +3 -3
  41. package/dist/types/artifacts/token-names.d.ts +5 -5
  42. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +29 -3
  43. package/dist/types/artifacts/types-internal.d.ts +2 -2
  44. package/dist/types/artifacts/types.d.ts +2 -2
  45. package/dist/types/palettes/shape-palette.d.ts +6 -0
  46. package/dist/types/types.d.ts +2 -2
  47. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +1 -1
  48. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  49. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +3 -3
  50. package/dist/types-ts4.5/artifacts/token-names.d.ts +5 -5
  51. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +29 -3
  52. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  53. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  54. package/dist/types-ts4.5/palettes/shape-palette.d.ts +6 -0
  55. package/dist/types-ts4.5/types.d.ts +2 -2
  56. package/figma/atlassian-shape.json +20 -9
  57. package/package.json +1 -1
  58. package/report.api.md +14 -8
  59. package/tmp/api-report-tmp.d.ts +12 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7053f18ecc5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7053f18ecc5) - Added suggest metadata to shape tokens to aid future migration suggestions.
8
+ - [`ba43427b3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba43427b3e8) - Internal changes to account for introduction of shape/radius tokens.
9
+
10
+ ## 1.11.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`c96e003db64`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c96e003db64) - Following on from 1.7.0, shape tokens are no longer being enabled behind a feature flag. Only space tokens will be enabled by default when the feature flag is active.
15
+
3
16
  ## 1.10.2
4
17
 
5
18
  ### Patch Changes
@@ -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::ba57ec0a6991ab386479b6c9006397ba>>
9
+ * @codegen <<SignedSource::b929a0286651ecabd7f635e23b71f002>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = [{
@@ -144,6 +144,21 @@ var tokens = [{
144
144
  },
145
145
  "name": "border.width.Size100",
146
146
  "path": ["border", "width", "Size100"]
147
+ }, {
148
+ "value": "3px",
149
+ "attributes": {
150
+ "group": "shape"
151
+ },
152
+ "filePath": "src/palettes/shape-palette.tsx",
153
+ "isSource": true,
154
+ "original": {
155
+ "value": 3,
156
+ "attributes": {
157
+ "group": "shape"
158
+ }
159
+ },
160
+ "name": "border.width.Size200",
161
+ "path": ["border", "width", "Size200"]
147
162
  }];
148
163
  var _default = tokens;
149
164
  exports.default = _default;
@@ -6,8 +6,8 @@ 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::861a4448ac467155c8290f2b211e99c5>>
9
+ * @codegen <<SignedSource::57c7e229053412965e492af01b042778>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
- var _default = "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-050: 0.0625rem;\n --ds-border-width-100: 0.125rem;\n}\n";
12
+ var _default = "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-indicator: 0.1875rem;\n --ds-border-width-outline: 0.125rem;\n}\n";
13
13
  exports.default = _default;
@@ -10,7 +10,7 @@ exports.default = void 0;
10
10
  * Token names mapped to their value in the default Atlassian themes ('light').
11
11
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
12
12
  *
13
- * @codegen <<SignedSource::5d1a0a49014fb279849c19fdd2909317>>
13
+ * @codegen <<SignedSource::a2442c19bc018ff0c9f4f96c2bfa54ab>>
14
14
  * @codegenCommand yarn build tokens
15
15
  */
16
16
  var defaultTokenValues = {
@@ -323,8 +323,8 @@ var defaultTokenValues = {
323
323
  'border.radius.circle': '2002rem',
324
324
  'border.width': '0.0625rem',
325
325
  'border.width.0': '0rem',
326
- 'border.width.050': '0.0625rem',
327
- 'border.width.100': '0.125rem',
326
+ 'border.width.indicator': '0.1875rem',
327
+ 'border.width.outline': '0.125rem',
328
328
  'space.0': '0rem',
329
329
  'space.025': '0.125rem',
330
330
  'space.050': '0.25rem',
@@ -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::87bc2dd9f7bab2c43fbdcafbd9e9e3ac>>
9
+ * @codegen <<SignedSource::0c77b46d428791fb0288b991d64320bc>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = {
@@ -319,8 +319,8 @@ var tokens = {
319
319
  'border.radius.circle': '--ds-border-radius-circle',
320
320
  'border.width': '--ds-border-width',
321
321
  'border.width.0': '--ds-border-width-0',
322
- 'border.width.050': '--ds-border-width-050',
323
- 'border.width.100': '--ds-border-width-100',
322
+ 'border.width.indicator': '--ds-border-width-indicator',
323
+ 'border.width.outline': '--ds-border-width-outline',
324
324
  'space.0': '--ds-space-0',
325
325
  'space.025': '--ds-space-025',
326
326
  'space.050': '--ds-space-050',
@@ -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::8b50feb722f3a686c5a45c85ec5545b2>>
9
+ * @codegen <<SignedSource::475f699859423669fdb3de04f32b3560>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = [{
@@ -35,6 +35,7 @@ var tokens = [{
35
35
  "attributes": {
36
36
  "group": "shape",
37
37
  "state": "active",
38
+ "suggest": ["3px", "4px"],
38
39
  "introduced": "1.5.2",
39
40
  "description": "The default border radius."
40
41
  },
@@ -45,6 +46,7 @@ var tokens = [{
45
46
  "attributes": {
46
47
  "group": "shape",
47
48
  "state": "active",
49
+ "suggest": ["3px", "4px"],
48
50
  "introduced": "1.5.2",
49
51
  "description": "The default border radius."
50
52
  },
@@ -145,6 +147,7 @@ var tokens = [{
145
147
  "attributes": {
146
148
  "group": "shape",
147
149
  "state": "active",
150
+ "suggest": ["50%"],
148
151
  "introduced": "1.1.0",
149
152
  "description": "Used for circular containers, like a rounded button."
150
153
  },
@@ -155,6 +158,7 @@ var tokens = [{
155
158
  "attributes": {
156
159
  "group": "shape",
157
160
  "state": "active",
161
+ "suggest": ["50%"],
158
162
  "introduced": "1.1.0",
159
163
  "description": "Used for circular containers, like a rounded button."
160
164
  },
@@ -167,8 +171,9 @@ var tokens = [{
167
171
  "attributes": {
168
172
  "group": "shape",
169
173
  "state": "active",
174
+ "suggest": ["1px", "2px"],
170
175
  "introduced": "1.5.2",
171
- "description": "The default border width."
176
+ "description": "The default border width. Used for all borders."
172
177
  },
173
178
  "value": "1px",
174
179
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -177,8 +182,9 @@ var tokens = [{
177
182
  "attributes": {
178
183
  "group": "shape",
179
184
  "state": "active",
185
+ "suggest": ["1px", "2px"],
180
186
  "introduced": "1.5.2",
181
- "description": "The default border width."
187
+ "description": "The default border width. Used for all borders."
182
188
  },
183
189
  "value": "Size050"
184
190
  },
@@ -190,7 +196,7 @@ var tokens = [{
190
196
  "group": "shape",
191
197
  "state": "experimental",
192
198
  "introduced": "1.2.1",
193
- "description": "Experimental, description needs to be amended"
199
+ "description": "Used for zero width borders."
194
200
  },
195
201
  "value": "0px",
196
202
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -200,7 +206,7 @@ var tokens = [{
200
206
  "group": "shape",
201
207
  "state": "experimental",
202
208
  "introduced": "1.2.1",
203
- "description": "Experimental, description needs to be amended"
209
+ "description": "Used for zero width borders."
204
210
  },
205
211
  "value": "Size0"
206
212
  },
@@ -211,30 +217,30 @@ var tokens = [{
211
217
  "attributes": {
212
218
  "group": "shape",
213
219
  "state": "active",
214
- "introduced": "1.1.0",
215
- "description": "Used for all borders and dividers."
220
+ "introduced": "1.5.2",
221
+ "description": "Used for indicators like tab and menu selected states."
216
222
  },
217
- "value": "1px",
223
+ "value": "3px",
218
224
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
219
225
  "isSource": true,
220
226
  "original": {
221
227
  "attributes": {
222
228
  "group": "shape",
223
229
  "state": "active",
224
- "introduced": "1.1.0",
225
- "description": "Used for all borders and dividers."
230
+ "introduced": "1.5.2",
231
+ "description": "Used for indicators like tab and menu selected states."
226
232
  },
227
- "value": "Size050"
233
+ "value": "Size200"
228
234
  },
229
- "name": "border.width.050",
230
- "path": ["border", "width", "050"],
231
- "cleanName": "border.width.050"
235
+ "name": "border.width.indicator",
236
+ "path": ["border", "width", "indicator"],
237
+ "cleanName": "border.width.indicator"
232
238
  }, {
233
239
  "attributes": {
234
240
  "group": "shape",
235
241
  "state": "active",
236
- "introduced": "1.1.0",
237
- "description": "Used for bolder dividers and interaction states."
242
+ "introduced": "1.5.2",
243
+ "description": "Used for focus, active or selected inputs."
238
244
  },
239
245
  "value": "2px",
240
246
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -243,14 +249,14 @@ var tokens = [{
243
249
  "attributes": {
244
250
  "group": "shape",
245
251
  "state": "active",
246
- "introduced": "1.1.0",
247
- "description": "Used for bolder dividers and interaction states."
252
+ "introduced": "1.5.2",
253
+ "description": "Used for focus, active or selected inputs."
248
254
  },
249
255
  "value": "Size100"
250
256
  },
251
- "name": "border.width.100",
252
- "path": ["border", "width", "100"],
253
- "cleanName": "border.width.100"
257
+ "name": "border.width.outline",
258
+ "path": ["border", "width", "outline"],
259
+ "cleanName": "border.width.outline"
254
260
  }];
255
261
  var _default = tokens;
256
262
  exports.default = _default;
@@ -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.10.2";
11
+ var version = "1.11.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.
@@ -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.10.2";
12
+ var version = "1.11.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.
@@ -26,6 +26,12 @@ var baseSizeTokens = {
26
26
  attributes: {
27
27
  group: 'shape'
28
28
  }
29
+ },
30
+ Size200: {
31
+ value: 3,
32
+ attributes: {
33
+ group: 'shape'
34
+ }
29
35
  }
30
36
  };
31
37
  var baseRadiusTokens = {
@@ -61,9 +61,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
61
61
 
62
62
  // Load shape and spacing by default, currently behind a feature flag
63
63
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
64
- if (!themePreferences.includes('shape')) {
65
- themePreferences.push('shape');
66
- }
67
64
  if (!themePreferences.includes('spacing')) {
68
65
  themePreferences.push('spacing');
69
66
  }
@@ -300,12 +297,12 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
300
297
  typography: typography
301
298
  };
302
299
 
303
- // Load shape and spacing by default, currently behind a feature flag
300
+ // Load spacing by default, currently behind a feature flag
304
301
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
305
302
  themePreferences = {
306
303
  dark: dark,
307
304
  light: light,
308
- shape: 'shape',
305
+ shape: shape,
309
306
  spacing: 'spacing',
310
307
  typography: typography
311
308
  };
@@ -17,11 +17,11 @@ var shape = {
17
17
  '0': {
18
18
  value: 'Size0'
19
19
  },
20
- '050': {
21
- value: 'Size050'
22
- },
23
- '100': {
20
+ outline: {
24
21
  value: 'Size100'
22
+ },
23
+ indicator: {
24
+ value: 'Size200'
25
25
  }
26
26
  },
27
27
  radius: {
@@ -11,8 +11,9 @@ var shape = {
11
11
  attributes: {
12
12
  group: 'shape',
13
13
  state: 'active',
14
+ suggest: ['1px', '2px'],
14
15
  introduced: '1.5.2',
15
- description: 'The default border width.'
16
+ description: 'The default border width. Used for all borders.'
16
17
  }
17
18
  },
18
19
  '0': {
@@ -20,23 +21,23 @@ var shape = {
20
21
  group: 'shape',
21
22
  state: 'experimental',
22
23
  introduced: '1.2.1',
23
- description: 'Experimental, description needs to be amended'
24
+ description: 'Used for zero width borders.'
24
25
  }
25
26
  },
26
- '050': {
27
+ outline: {
27
28
  attributes: {
28
29
  group: 'shape',
29
30
  state: 'active',
30
- introduced: '1.1.0',
31
- description: 'Used for all borders and dividers.'
31
+ introduced: '1.5.2',
32
+ description: 'Used for focus, active or selected inputs.'
32
33
  }
33
34
  },
34
- '100': {
35
+ indicator: {
35
36
  attributes: {
36
37
  group: 'shape',
37
38
  state: 'active',
38
- introduced: '1.1.0',
39
- description: 'Used for bolder dividers and interaction states.'
39
+ introduced: '1.5.2',
40
+ description: 'Used for indicators like tab and menu selected states.'
40
41
  }
41
42
  }
42
43
  },
@@ -45,6 +46,7 @@ var shape = {
45
46
  attributes: {
46
47
  group: 'shape',
47
48
  state: 'active',
49
+ suggest: ['3px', '4px'],
48
50
  introduced: '1.5.2',
49
51
  description: 'The default border radius.'
50
52
  }
@@ -93,6 +95,7 @@ var shape = {
93
95
  attributes: {
94
96
  group: 'shape',
95
97
  state: 'active',
98
+ suggest: ['50%'],
96
99
  introduced: '1.1.0',
97
100
  description: 'Used for circular containers, like a rounded button.'
98
101
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.10.2",
3
+ "version": "1.11.1",
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::ba57ec0a6991ab386479b6c9006397ba>>
3
+ * @codegen <<SignedSource::b929a0286651ecabd7f635e23b71f002>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -138,5 +138,20 @@ const tokens = [{
138
138
  },
139
139
  "name": "border.width.Size100",
140
140
  "path": ["border", "width", "Size100"]
141
+ }, {
142
+ "value": "3px",
143
+ "attributes": {
144
+ "group": "shape"
145
+ },
146
+ "filePath": "src/palettes/shape-palette.tsx",
147
+ "isSource": true,
148
+ "original": {
149
+ "value": 3,
150
+ "attributes": {
151
+ "group": "shape"
152
+ }
153
+ },
154
+ "name": "border.width.Size200",
155
+ "path": ["border", "width", "Size200"]
141
156
  }];
142
157
  export default tokens;
@@ -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::861a4448ac467155c8290f2b211e99c5>>
3
+ * @codegen <<SignedSource::57c7e229053412965e492af01b042778>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -14,7 +14,7 @@ html[data-theme~="shape:shape"] {
14
14
  --ds-border-radius-circle: 2002rem;
15
15
  --ds-border-width: 0.0625rem;
16
16
  --ds-border-width-0: 0rem;
17
- --ds-border-width-050: 0.0625rem;
18
- --ds-border-width-100: 0.125rem;
17
+ --ds-border-width-indicator: 0.1875rem;
18
+ --ds-border-width-outline: 0.125rem;
19
19
  }
20
20
  `;
@@ -4,7 +4,7 @@
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::5d1a0a49014fb279849c19fdd2909317>>
7
+ * @codegen <<SignedSource::a2442c19bc018ff0c9f4f96c2bfa54ab>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  const defaultTokenValues = {
@@ -317,8 +317,8 @@ const defaultTokenValues = {
317
317
  'border.radius.circle': '2002rem',
318
318
  'border.width': '0.0625rem',
319
319
  'border.width.0': '0rem',
320
- 'border.width.050': '0.0625rem',
321
- 'border.width.100': '0.125rem',
320
+ 'border.width.indicator': '0.1875rem',
321
+ 'border.width.outline': '0.125rem',
322
322
  'space.0': '0rem',
323
323
  'space.025': '0.125rem',
324
324
  'space.050': '0.25rem',
@@ -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::87bc2dd9f7bab2c43fbdcafbd9e9e3ac>>
3
+ * @codegen <<SignedSource::0c77b46d428791fb0288b991d64320bc>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = {
@@ -313,8 +313,8 @@ const tokens = {
313
313
  'border.radius.circle': '--ds-border-radius-circle',
314
314
  'border.width': '--ds-border-width',
315
315
  'border.width.0': '--ds-border-width-0',
316
- 'border.width.050': '--ds-border-width-050',
317
- 'border.width.100': '--ds-border-width-100',
316
+ 'border.width.indicator': '--ds-border-width-indicator',
317
+ 'border.width.outline': '--ds-border-width-outline',
318
318
  'space.0': '--ds-space-0',
319
319
  'space.025': '--ds-space-025',
320
320
  'space.050': '--ds-space-050',
@@ -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::8b50feb722f3a686c5a45c85ec5545b2>>
3
+ * @codegen <<SignedSource::475f699859423669fdb3de04f32b3560>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -29,6 +29,7 @@ const tokens = [{
29
29
  "attributes": {
30
30
  "group": "shape",
31
31
  "state": "active",
32
+ "suggest": ["3px", "4px"],
32
33
  "introduced": "1.5.2",
33
34
  "description": "The default border radius."
34
35
  },
@@ -39,6 +40,7 @@ const tokens = [{
39
40
  "attributes": {
40
41
  "group": "shape",
41
42
  "state": "active",
43
+ "suggest": ["3px", "4px"],
42
44
  "introduced": "1.5.2",
43
45
  "description": "The default border radius."
44
46
  },
@@ -139,6 +141,7 @@ const tokens = [{
139
141
  "attributes": {
140
142
  "group": "shape",
141
143
  "state": "active",
144
+ "suggest": ["50%"],
142
145
  "introduced": "1.1.0",
143
146
  "description": "Used for circular containers, like a rounded button."
144
147
  },
@@ -149,6 +152,7 @@ const tokens = [{
149
152
  "attributes": {
150
153
  "group": "shape",
151
154
  "state": "active",
155
+ "suggest": ["50%"],
152
156
  "introduced": "1.1.0",
153
157
  "description": "Used for circular containers, like a rounded button."
154
158
  },
@@ -161,8 +165,9 @@ const tokens = [{
161
165
  "attributes": {
162
166
  "group": "shape",
163
167
  "state": "active",
168
+ "suggest": ["1px", "2px"],
164
169
  "introduced": "1.5.2",
165
- "description": "The default border width."
170
+ "description": "The default border width. Used for all borders."
166
171
  },
167
172
  "value": "1px",
168
173
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -171,8 +176,9 @@ const tokens = [{
171
176
  "attributes": {
172
177
  "group": "shape",
173
178
  "state": "active",
179
+ "suggest": ["1px", "2px"],
174
180
  "introduced": "1.5.2",
175
- "description": "The default border width."
181
+ "description": "The default border width. Used for all borders."
176
182
  },
177
183
  "value": "Size050"
178
184
  },
@@ -184,7 +190,7 @@ const tokens = [{
184
190
  "group": "shape",
185
191
  "state": "experimental",
186
192
  "introduced": "1.2.1",
187
- "description": "Experimental, description needs to be amended"
193
+ "description": "Used for zero width borders."
188
194
  },
189
195
  "value": "0px",
190
196
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -194,7 +200,7 @@ const tokens = [{
194
200
  "group": "shape",
195
201
  "state": "experimental",
196
202
  "introduced": "1.2.1",
197
- "description": "Experimental, description needs to be amended"
203
+ "description": "Used for zero width borders."
198
204
  },
199
205
  "value": "Size0"
200
206
  },
@@ -205,30 +211,30 @@ const tokens = [{
205
211
  "attributes": {
206
212
  "group": "shape",
207
213
  "state": "active",
208
- "introduced": "1.1.0",
209
- "description": "Used for all borders and dividers."
214
+ "introduced": "1.5.2",
215
+ "description": "Used for indicators like tab and menu selected states."
210
216
  },
211
- "value": "1px",
217
+ "value": "3px",
212
218
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
213
219
  "isSource": true,
214
220
  "original": {
215
221
  "attributes": {
216
222
  "group": "shape",
217
223
  "state": "active",
218
- "introduced": "1.1.0",
219
- "description": "Used for all borders and dividers."
224
+ "introduced": "1.5.2",
225
+ "description": "Used for indicators like tab and menu selected states."
220
226
  },
221
- "value": "Size050"
227
+ "value": "Size200"
222
228
  },
223
- "name": "border.width.050",
224
- "path": ["border", "width", "050"],
225
- "cleanName": "border.width.050"
229
+ "name": "border.width.indicator",
230
+ "path": ["border", "width", "indicator"],
231
+ "cleanName": "border.width.indicator"
226
232
  }, {
227
233
  "attributes": {
228
234
  "group": "shape",
229
235
  "state": "active",
230
- "introduced": "1.1.0",
231
- "description": "Used for bolder dividers and interaction states."
236
+ "introduced": "1.5.2",
237
+ "description": "Used for focus, active or selected inputs."
232
238
  },
233
239
  "value": "2px",
234
240
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -237,13 +243,13 @@ const tokens = [{
237
243
  "attributes": {
238
244
  "group": "shape",
239
245
  "state": "active",
240
- "introduced": "1.1.0",
241
- "description": "Used for bolder dividers and interaction states."
246
+ "introduced": "1.5.2",
247
+ "description": "Used for focus, active or selected inputs."
242
248
  },
243
249
  "value": "Size100"
244
250
  },
245
- "name": "border.width.100",
246
- "path": ["border", "width", "100"],
247
- "cleanName": "border.width.100"
251
+ "name": "border.width.outline",
252
+ "path": ["border", "width", "outline"],
253
+ "cleanName": "border.width.outline"
248
254
  }];
249
255
  export default tokens;
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.10.2";
4
+ const version = "1.11.1";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "1.10.2";
5
+ const version = "1.11.1";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -20,6 +20,12 @@ const baseSizeTokens = {
20
20
  attributes: {
21
21
  group: 'shape'
22
22
  }
23
+ },
24
+ Size200: {
25
+ value: 3,
26
+ attributes: {
27
+ group: 'shape'
28
+ }
23
29
  }
24
30
  };
25
31
  const baseRadiusTokens = {