@atlaskit/ds-explorations 1.7.0 → 2.0.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 (58) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/components/box.partial.js +43 -43
  3. package/dist/cjs/components/inline.partial.js +15 -15
  4. package/dist/cjs/components/stack.partial.js +15 -15
  5. package/dist/cjs/components/text.partial.js +86 -56
  6. package/dist/cjs/internal/spacing-scale.js +2 -2
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/es2019/components/box.partial.js +43 -43
  9. package/dist/es2019/components/inline.partial.js +15 -15
  10. package/dist/es2019/components/stack.partial.js +15 -15
  11. package/dist/es2019/components/text.partial.js +85 -55
  12. package/dist/es2019/internal/spacing-scale.js +2 -2
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/esm/components/box.partial.js +43 -43
  15. package/dist/esm/components/inline.partial.js +15 -15
  16. package/dist/esm/components/stack.partial.js +15 -15
  17. package/dist/esm/components/text.partial.js +85 -55
  18. package/dist/esm/internal/spacing-scale.js +2 -2
  19. package/dist/esm/version.json +1 -1
  20. package/dist/types/components/box.partial.d.ts +43 -43
  21. package/dist/types/components/inline.partial.d.ts +15 -15
  22. package/dist/types/components/stack.partial.d.ts +15 -15
  23. package/dist/types/components/text.partial.d.ts +43 -23
  24. package/dist/types/internal/spacing-scale.d.ts +2 -2
  25. package/examples/00-basic.tsx +3 -3
  26. package/examples/01-box.tsx +18 -18
  27. package/examples/02-text-advanced.tsx +9 -9
  28. package/examples/02-text.tsx +36 -16
  29. package/examples/03-stack.tsx +26 -26
  30. package/examples/04-inline.tsx +26 -26
  31. package/examples/05-badge.tsx +2 -2
  32. package/examples/06-section-message.tsx +6 -6
  33. package/examples/07-comment.tsx +5 -5
  34. package/examples/08-lozenge.tsx +4 -4
  35. package/examples/99-interactions.tsx +16 -16
  36. package/package.json +1 -1
  37. package/report.api.md +89 -85
  38. package/scripts/codegen-styles.tsx +27 -0
  39. package/scripts/spacing-codegen-template.tsx +3 -4
  40. package/scripts/spacing-scale-template.tsx +3 -5
  41. package/scripts/typography-codegen-template.tsx +80 -0
  42. package/src/components/__tests__/unit/inline.test.tsx +3 -3
  43. package/src/components/__tests__/unit/stack.test.tsx +2 -2
  44. package/src/components/__tests__/unit/text.test.tsx +3 -3
  45. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +2 -2
  46. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +2 -2
  47. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +2 -2
  48. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
  49. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
  50. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-sizes-should-match-snapshot-1-snap.png +2 -2
  51. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-weights-should-match-snapshot-1-snap.png +2 -2
  52. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +2 -2
  53. package/src/components/box.partial.tsx +43 -43
  54. package/src/components/inline.partial.tsx +15 -15
  55. package/src/components/stack.partial.tsx +15 -15
  56. package/src/components/text.partial.tsx +101 -32
  57. package/src/internal/spacing-scale.tsx +15 -15
  58. package/tmp/api-report-tmp.d.ts +89 -85
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`544c409d79f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/544c409d79f) - **Breaking Change**
8
+
9
+ ### `Text`
10
+
11
+ fontSize, fontWeight, and lineHeight APIs have changed due to typography tokens being introduced. The new values for fontSize and lineHeight follow a scale whereas fontWeight accepts keyword values.
12
+
13
+ ### `Box`
14
+
15
+ `padding`, `paddingBlock`, and `paddingInline` prop values now follow the pattern `space.x` instead of `scale.x` to align with spacing tokens.
16
+
17
+ ### `Inline` and `Stack`
18
+
19
+ `gap` prop values now follow the pattern `space.x` instead of `scale.x` to align with spacing tokens.
20
+
3
21
  ## 1.7.0
4
22
 
5
23
  ### Minor Changes
@@ -282,141 +282,141 @@ var heightMap = {
282
282
 
283
283
  /**
284
284
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
285
- * @codegen <<SignedSource::cbecbcc7b02d1d58fdd794542eb54d50>>
285
+ * @codegen <<SignedSource::99c5403dd8b57b15bf1240cc456b6b16>>
286
286
  * @codegenId spacing
287
287
  * @codegenCommand yarn codegen-styles
288
288
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
289
289
  * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::a2b43f8447798dfdd9c6223bd22b78c7>>
290
290
  */
291
291
  var paddingMap = {
292
- 'scale.0': (0, _react2.css)({
292
+ 'space.0': (0, _react2.css)({
293
293
  padding: "var(--ds-space-0, 0px)"
294
294
  }),
295
- 'scale.025': (0, _react2.css)({
295
+ 'space.025': (0, _react2.css)({
296
296
  padding: "var(--ds-space-025, 2px)"
297
297
  }),
298
- 'scale.050': (0, _react2.css)({
298
+ 'space.050': (0, _react2.css)({
299
299
  padding: "var(--ds-space-050, 4px)"
300
300
  }),
301
- 'scale.075': (0, _react2.css)({
301
+ 'space.075': (0, _react2.css)({
302
302
  padding: "var(--ds-space-075, 6px)"
303
303
  }),
304
- 'scale.100': (0, _react2.css)({
304
+ 'space.100': (0, _react2.css)({
305
305
  padding: "var(--ds-space-100, 8px)"
306
306
  }),
307
- 'scale.1000': (0, _react2.css)({
307
+ 'space.1000': (0, _react2.css)({
308
308
  padding: "var(--ds-space-1000, 80px)"
309
309
  }),
310
- 'scale.150': (0, _react2.css)({
310
+ 'space.150': (0, _react2.css)({
311
311
  padding: "var(--ds-space-150, 12px)"
312
312
  }),
313
- 'scale.200': (0, _react2.css)({
313
+ 'space.200': (0, _react2.css)({
314
314
  padding: "var(--ds-space-200, 16px)"
315
315
  }),
316
- 'scale.250': (0, _react2.css)({
316
+ 'space.250': (0, _react2.css)({
317
317
  padding: "var(--ds-space-250, 20px)"
318
318
  }),
319
- 'scale.300': (0, _react2.css)({
319
+ 'space.300': (0, _react2.css)({
320
320
  padding: "var(--ds-space-300, 24px)"
321
321
  }),
322
- 'scale.400': (0, _react2.css)({
322
+ 'space.400': (0, _react2.css)({
323
323
  padding: "var(--ds-space-400, 32px)"
324
324
  }),
325
- 'scale.500': (0, _react2.css)({
325
+ 'space.500': (0, _react2.css)({
326
326
  padding: "var(--ds-space-500, 40px)"
327
327
  }),
328
- 'scale.600': (0, _react2.css)({
328
+ 'space.600': (0, _react2.css)({
329
329
  padding: "var(--ds-space-600, 48px)"
330
330
  }),
331
- 'scale.800': (0, _react2.css)({
331
+ 'space.800': (0, _react2.css)({
332
332
  padding: "var(--ds-space-800, 64px)"
333
333
  })
334
334
  };
335
335
  var paddingBlockMap = {
336
- 'scale.0': (0, _react2.css)({
336
+ 'space.0': (0, _react2.css)({
337
337
  paddingBlock: "var(--ds-space-0, 0px)"
338
338
  }),
339
- 'scale.025': (0, _react2.css)({
339
+ 'space.025': (0, _react2.css)({
340
340
  paddingBlock: "var(--ds-space-025, 2px)"
341
341
  }),
342
- 'scale.050': (0, _react2.css)({
342
+ 'space.050': (0, _react2.css)({
343
343
  paddingBlock: "var(--ds-space-050, 4px)"
344
344
  }),
345
- 'scale.075': (0, _react2.css)({
345
+ 'space.075': (0, _react2.css)({
346
346
  paddingBlock: "var(--ds-space-075, 6px)"
347
347
  }),
348
- 'scale.100': (0, _react2.css)({
348
+ 'space.100': (0, _react2.css)({
349
349
  paddingBlock: "var(--ds-space-100, 8px)"
350
350
  }),
351
- 'scale.1000': (0, _react2.css)({
351
+ 'space.1000': (0, _react2.css)({
352
352
  paddingBlock: "var(--ds-space-1000, 80px)"
353
353
  }),
354
- 'scale.150': (0, _react2.css)({
354
+ 'space.150': (0, _react2.css)({
355
355
  paddingBlock: "var(--ds-space-150, 12px)"
356
356
  }),
357
- 'scale.200': (0, _react2.css)({
357
+ 'space.200': (0, _react2.css)({
358
358
  paddingBlock: "var(--ds-space-200, 16px)"
359
359
  }),
360
- 'scale.250': (0, _react2.css)({
360
+ 'space.250': (0, _react2.css)({
361
361
  paddingBlock: "var(--ds-space-250, 20px)"
362
362
  }),
363
- 'scale.300': (0, _react2.css)({
363
+ 'space.300': (0, _react2.css)({
364
364
  paddingBlock: "var(--ds-space-300, 24px)"
365
365
  }),
366
- 'scale.400': (0, _react2.css)({
366
+ 'space.400': (0, _react2.css)({
367
367
  paddingBlock: "var(--ds-space-400, 32px)"
368
368
  }),
369
- 'scale.500': (0, _react2.css)({
369
+ 'space.500': (0, _react2.css)({
370
370
  paddingBlock: "var(--ds-space-500, 40px)"
371
371
  }),
372
- 'scale.600': (0, _react2.css)({
372
+ 'space.600': (0, _react2.css)({
373
373
  paddingBlock: "var(--ds-space-600, 48px)"
374
374
  }),
375
- 'scale.800': (0, _react2.css)({
375
+ 'space.800': (0, _react2.css)({
376
376
  paddingBlock: "var(--ds-space-800, 64px)"
377
377
  })
378
378
  };
379
379
  var paddingInlineMap = {
380
- 'scale.0': (0, _react2.css)({
380
+ 'space.0': (0, _react2.css)({
381
381
  paddingInline: "var(--ds-space-0, 0px)"
382
382
  }),
383
- 'scale.025': (0, _react2.css)({
383
+ 'space.025': (0, _react2.css)({
384
384
  paddingInline: "var(--ds-space-025, 2px)"
385
385
  }),
386
- 'scale.050': (0, _react2.css)({
386
+ 'space.050': (0, _react2.css)({
387
387
  paddingInline: "var(--ds-space-050, 4px)"
388
388
  }),
389
- 'scale.075': (0, _react2.css)({
389
+ 'space.075': (0, _react2.css)({
390
390
  paddingInline: "var(--ds-space-075, 6px)"
391
391
  }),
392
- 'scale.100': (0, _react2.css)({
392
+ 'space.100': (0, _react2.css)({
393
393
  paddingInline: "var(--ds-space-100, 8px)"
394
394
  }),
395
- 'scale.1000': (0, _react2.css)({
395
+ 'space.1000': (0, _react2.css)({
396
396
  paddingInline: "var(--ds-space-1000, 80px)"
397
397
  }),
398
- 'scale.150': (0, _react2.css)({
398
+ 'space.150': (0, _react2.css)({
399
399
  paddingInline: "var(--ds-space-150, 12px)"
400
400
  }),
401
- 'scale.200': (0, _react2.css)({
401
+ 'space.200': (0, _react2.css)({
402
402
  paddingInline: "var(--ds-space-200, 16px)"
403
403
  }),
404
- 'scale.250': (0, _react2.css)({
404
+ 'space.250': (0, _react2.css)({
405
405
  paddingInline: "var(--ds-space-250, 20px)"
406
406
  }),
407
- 'scale.300': (0, _react2.css)({
407
+ 'space.300': (0, _react2.css)({
408
408
  paddingInline: "var(--ds-space-300, 24px)"
409
409
  }),
410
- 'scale.400': (0, _react2.css)({
410
+ 'space.400': (0, _react2.css)({
411
411
  paddingInline: "var(--ds-space-400, 32px)"
412
412
  }),
413
- 'scale.500': (0, _react2.css)({
413
+ 'space.500': (0, _react2.css)({
414
414
  paddingInline: "var(--ds-space-500, 40px)"
415
415
  }),
416
- 'scale.600': (0, _react2.css)({
416
+ 'space.600': (0, _react2.css)({
417
417
  paddingInline: "var(--ds-space-600, 48px)"
418
418
  }),
419
- 'scale.800': (0, _react2.css)({
419
+ 'space.800': (0, _react2.css)({
420
420
  paddingInline: "var(--ds-space-800, 64px)"
421
421
  })
422
422
  };
@@ -120,7 +120,7 @@ Inline.displayName = 'Inline';
120
120
  var _default = Inline;
121
121
  /**
122
122
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
123
- * @codegen <<SignedSource::3bb74c0e18d35310a98408ecd49c1526>>
123
+ * @codegen <<SignedSource::0a2a4380b534d14cdad759ff2d33a6c8>>
124
124
  * @codegenId spacing
125
125
  * @codegenCommand yarn codegen-styles
126
126
  * @codegenParams ["columnGap"]
@@ -129,46 +129,46 @@ var _default = Inline;
129
129
 
130
130
  exports.default = _default;
131
131
  var columnGapMap = {
132
- 'scale.0': (0, _react2.css)({
132
+ 'space.0': (0, _react2.css)({
133
133
  columnGap: "var(--ds-space-0, 0px)"
134
134
  }),
135
- 'scale.025': (0, _react2.css)({
135
+ 'space.025': (0, _react2.css)({
136
136
  columnGap: "var(--ds-space-025, 2px)"
137
137
  }),
138
- 'scale.050': (0, _react2.css)({
138
+ 'space.050': (0, _react2.css)({
139
139
  columnGap: "var(--ds-space-050, 4px)"
140
140
  }),
141
- 'scale.075': (0, _react2.css)({
141
+ 'space.075': (0, _react2.css)({
142
142
  columnGap: "var(--ds-space-075, 6px)"
143
143
  }),
144
- 'scale.100': (0, _react2.css)({
144
+ 'space.100': (0, _react2.css)({
145
145
  columnGap: "var(--ds-space-100, 8px)"
146
146
  }),
147
- 'scale.1000': (0, _react2.css)({
147
+ 'space.1000': (0, _react2.css)({
148
148
  columnGap: "var(--ds-space-1000, 80px)"
149
149
  }),
150
- 'scale.150': (0, _react2.css)({
150
+ 'space.150': (0, _react2.css)({
151
151
  columnGap: "var(--ds-space-150, 12px)"
152
152
  }),
153
- 'scale.200': (0, _react2.css)({
153
+ 'space.200': (0, _react2.css)({
154
154
  columnGap: "var(--ds-space-200, 16px)"
155
155
  }),
156
- 'scale.250': (0, _react2.css)({
156
+ 'space.250': (0, _react2.css)({
157
157
  columnGap: "var(--ds-space-250, 20px)"
158
158
  }),
159
- 'scale.300': (0, _react2.css)({
159
+ 'space.300': (0, _react2.css)({
160
160
  columnGap: "var(--ds-space-300, 24px)"
161
161
  }),
162
- 'scale.400': (0, _react2.css)({
162
+ 'space.400': (0, _react2.css)({
163
163
  columnGap: "var(--ds-space-400, 32px)"
164
164
  }),
165
- 'scale.500': (0, _react2.css)({
165
+ 'space.500': (0, _react2.css)({
166
166
  columnGap: "var(--ds-space-500, 40px)"
167
167
  }),
168
- 'scale.600': (0, _react2.css)({
168
+ 'space.600': (0, _react2.css)({
169
169
  columnGap: "var(--ds-space-600, 48px)"
170
170
  }),
171
- 'scale.800': (0, _react2.css)({
171
+ 'space.800': (0, _react2.css)({
172
172
  columnGap: "var(--ds-space-800, 64px)"
173
173
  })
174
174
  };
@@ -84,7 +84,7 @@ Stack.displayName = 'Stack';
84
84
  var _default = Stack;
85
85
  /**
86
86
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
87
- * @codegen <<SignedSource::e574cf3d5b059f96c6158508fae4a064>>
87
+ * @codegen <<SignedSource::ac9028ae231558f3eedd10f0db04a8fe>>
88
88
  * @codegenId spacing
89
89
  * @codegenCommand yarn codegen-styles
90
90
  * @codegenParams ["rowGap"]
@@ -93,46 +93,46 @@ var _default = Stack;
93
93
 
94
94
  exports.default = _default;
95
95
  var rowGapMap = {
96
- 'scale.0': (0, _react2.css)({
96
+ 'space.0': (0, _react2.css)({
97
97
  rowGap: "var(--ds-space-0, 0px)"
98
98
  }),
99
- 'scale.025': (0, _react2.css)({
99
+ 'space.025': (0, _react2.css)({
100
100
  rowGap: "var(--ds-space-025, 2px)"
101
101
  }),
102
- 'scale.050': (0, _react2.css)({
102
+ 'space.050': (0, _react2.css)({
103
103
  rowGap: "var(--ds-space-050, 4px)"
104
104
  }),
105
- 'scale.075': (0, _react2.css)({
105
+ 'space.075': (0, _react2.css)({
106
106
  rowGap: "var(--ds-space-075, 6px)"
107
107
  }),
108
- 'scale.100': (0, _react2.css)({
108
+ 'space.100': (0, _react2.css)({
109
109
  rowGap: "var(--ds-space-100, 8px)"
110
110
  }),
111
- 'scale.1000': (0, _react2.css)({
111
+ 'space.1000': (0, _react2.css)({
112
112
  rowGap: "var(--ds-space-1000, 80px)"
113
113
  }),
114
- 'scale.150': (0, _react2.css)({
114
+ 'space.150': (0, _react2.css)({
115
115
  rowGap: "var(--ds-space-150, 12px)"
116
116
  }),
117
- 'scale.200': (0, _react2.css)({
117
+ 'space.200': (0, _react2.css)({
118
118
  rowGap: "var(--ds-space-200, 16px)"
119
119
  }),
120
- 'scale.250': (0, _react2.css)({
120
+ 'space.250': (0, _react2.css)({
121
121
  rowGap: "var(--ds-space-250, 20px)"
122
122
  }),
123
- 'scale.300': (0, _react2.css)({
123
+ 'space.300': (0, _react2.css)({
124
124
  rowGap: "var(--ds-space-300, 24px)"
125
125
  }),
126
- 'scale.400': (0, _react2.css)({
126
+ 'space.400': (0, _react2.css)({
127
127
  rowGap: "var(--ds-space-400, 32px)"
128
128
  }),
129
- 'scale.500': (0, _react2.css)({
129
+ 'space.500': (0, _react2.css)({
130
130
  rowGap: "var(--ds-space-500, 40px)"
131
131
  }),
132
- 'scale.600': (0, _react2.css)({
132
+ 'space.600': (0, _react2.css)({
133
133
  rowGap: "var(--ds-space-600, 48px)"
134
134
  }),
135
- 'scale.800': (0, _react2.css)({
135
+ 'space.800': (0, _react2.css)({
136
136
  rowGap: "var(--ds-space-800, 64px)"
137
137
  })
138
138
  };
@@ -21,56 +21,6 @@ var _surfaceProvider = require("./surface-provider");
21
21
 
22
22
  var _excluded = ["children"];
23
23
  var asAllowlist = ['span', 'div', 'p', 'strong'];
24
- var fontFamily = "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif";
25
- var fontSizeMap = {
26
- '11px': (0, _react2.css)({
27
- fontSize: '11px'
28
- }),
29
- '12px': (0, _react2.css)({
30
- fontSize: '12px'
31
- }),
32
- '14px': (0, _react2.css)({
33
- fontSize: '14px'
34
- })
35
- };
36
- // NOTE: can't use numbers as keys or Constellation won't build. Weird one.
37
- var fontWeightMap = {
38
- '400': (0, _react2.css)({
39
- fontWeight: 400
40
- }),
41
- '500': (0, _react2.css)({
42
- fontWeight: 500
43
- }),
44
- '600': (0, _react2.css)({
45
- fontWeight: 600
46
- }),
47
- '700': (0, _react2.css)({
48
- fontWeight: 700
49
- })
50
- };
51
- var lineHeightMap = {
52
- '12px': (0, _react2.css)({
53
- lineHeight: '12px'
54
- }),
55
- '16px': (0, _react2.css)({
56
- lineHeight: '16px'
57
- }),
58
- '20px': (0, _react2.css)({
59
- lineHeight: '20px'
60
- }),
61
- '24px': (0, _react2.css)({
62
- lineHeight: '24px'
63
- }),
64
- '28px': (0, _react2.css)({
65
- lineHeight: '28px'
66
- }),
67
- '32px': (0, _react2.css)({
68
- lineHeight: '32px'
69
- }),
70
- '40px': (0, _react2.css)({
71
- lineHeight: '40px'
72
- })
73
- };
74
24
  var textAlignMap = {
75
25
  center: (0, _react2.css)({
76
26
  textAlign: 'center'
@@ -106,9 +56,8 @@ var verticalAlignMap = {
106
56
  };
107
57
  var baseStyles = (0, _react2.css)({
108
58
  boxSizing: 'border-box',
109
- margin: '0px',
110
- padding: '0px',
111
- fontFamily: fontFamily
59
+ margin: "var(--ds-space-0, 0px)",
60
+ padding: "var(--ds-space-0, 0px)"
112
61
  });
113
62
  var truncateStyles = (0, _react2.css)({
114
63
  overflow: 'hidden',
@@ -178,7 +127,7 @@ var Text = function Text(_ref) {
178
127
 
179
128
  var component = (0, _react2.jsx)(Component, {
180
129
  style: UNSAFE_style,
181
- css: [baseStyles, color && textColorMap[color], fontSize && fontSizeMap[fontSize], fontWeight && fontWeightMap[fontWeight], lineHeight && lineHeightMap[lineHeight], shouldTruncate && truncateStyles, textAlign && textAlignMap[textAlign], textTransform && textTransformMap[textTransform], verticalAlign && verticalAlignMap[verticalAlign]],
130
+ css: [baseStyles, fontFamilyMap.sans, color && textColorMap[color], fontSize && fontSizeMap[fontSize], fontWeight && fontWeightMap[fontWeight], lineHeight && lineHeightMap[lineHeight], shouldTruncate && truncateStyles, textAlign && textAlignMap[textAlign], textTransform && textTransformMap[textTransform], verticalAlign && verticalAlignMap[verticalAlign]],
182
131
  "data-testid": testId,
183
132
  id: id
184
133
  }, children);
@@ -189,6 +138,89 @@ var Text = function Text(_ref) {
189
138
  };
190
139
 
191
140
  var _default = Text;
141
+ /**
142
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
143
+ * @codegen <<SignedSource::bd36caff8bedb3bdc89b6f2311c6160a>>
144
+ * @codegenId typography
145
+ * @codegenCommand yarn codegen-styles
146
+ * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
147
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::39bc8db0f376f5635a25be0137792642>>
148
+ */
149
+
150
+ exports.default = _default;
151
+ var fontSizeMap = {
152
+ 'size.050': (0, _react2.css)({
153
+ fontSize: "var(--ds-font-size-050, 11px)"
154
+ }),
155
+ 'size.075': (0, _react2.css)({
156
+ fontSize: "var(--ds-font-size-075, 12px)"
157
+ }),
158
+ 'size.100': (0, _react2.css)({
159
+ fontSize: "var(--ds-font-size-100, 14px)"
160
+ }),
161
+ 'size.200': (0, _react2.css)({
162
+ fontSize: "var(--ds-font-size-200, 16px)"
163
+ }),
164
+ 'size.300': (0, _react2.css)({
165
+ fontSize: "var(--ds-font-size-300, 20px)"
166
+ }),
167
+ 'size.400': (0, _react2.css)({
168
+ fontSize: "var(--ds-font-size-400, 24px)"
169
+ }),
170
+ 'size.500': (0, _react2.css)({
171
+ fontSize: "var(--ds-font-size-500, 29px)"
172
+ }),
173
+ 'size.600': (0, _react2.css)({
174
+ fontSize: "var(--ds-font-size-600, 35px)"
175
+ })
176
+ };
177
+ var fontWeightMap = {
178
+ bold: (0, _react2.css)({
179
+ fontWeight: "var(--ds-font-weight-bold, 700)"
180
+ }),
181
+ medium: (0, _react2.css)({
182
+ fontWeight: "var(--ds-font-weight-medium, 500)"
183
+ }),
184
+ regular: (0, _react2.css)({
185
+ fontWeight: "var(--ds-font-weight-regular, 400)"
186
+ }),
187
+ semibold: (0, _react2.css)({
188
+ fontWeight: "var(--ds-font-weight-semibold, 600)"
189
+ })
190
+ };
191
+ var fontFamilyMap = {
192
+ monospace: (0, _react2.css)({
193
+ fontFamily: "var(--ds-font-family-monospace, \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace)"
194
+ }),
195
+ sans: (0, _react2.css)({
196
+ fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
197
+ })
198
+ };
199
+ var lineHeightMap = {
200
+ 'lineHeight.100': (0, _react2.css)({
201
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)"
202
+ }),
203
+ 'lineHeight.200': (0, _react2.css)({
204
+ lineHeight: "var(--ds-font-lineHeight-200, 20px)"
205
+ }),
206
+ 'lineHeight.300': (0, _react2.css)({
207
+ lineHeight: "var(--ds-font-lineHeight-300, 24px)"
208
+ }),
209
+ 'lineHeight.400': (0, _react2.css)({
210
+ lineHeight: "var(--ds-font-lineHeight-400, 28px)"
211
+ }),
212
+ 'lineHeight.500': (0, _react2.css)({
213
+ lineHeight: "var(--ds-font-lineHeight-500, 32px)"
214
+ }),
215
+ 'lineHeight.600': (0, _react2.css)({
216
+ lineHeight: "var(--ds-font-lineHeight-600, 40px)"
217
+ })
218
+ };
219
+
220
+ /**
221
+ * @codegenEnd
222
+ */
223
+
192
224
  /**
193
225
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
194
226
  * @codegen <<SignedSource::d88a2527302fee634bec7ae405e9217b>>
@@ -197,8 +229,6 @@ var _default = Text;
197
229
  * @codegenParams ["text"]
198
230
  * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
199
231
  */
200
-
201
- exports.default = _default;
202
232
  var textColorMap = {
203
233
  'color.text': (0, _react2.css)({
204
234
  color: "var(--ds-text, #172B4D)"
@@ -10,8 +10,8 @@ exports.spacingScale = void 0;
10
10
  *
11
11
  * Internal codegen of the spacing scale values. Only used for internal examples.
12
12
  *
13
- * @codegen <<SignedSource::d351e41acd06f256fb46554409694f31>>
13
+ * @codegen <<SignedSource::885d6c601dfa9fccaf33a7bd461ef59d>>
14
14
  * @codegenCommand yarn codegen-styles
15
15
  */
16
- var spacingScale = ['scale.0', 'scale.025', 'scale.050', 'scale.075', 'scale.100', 'scale.150', 'scale.200', 'scale.250', 'scale.300', 'scale.400', 'scale.500', 'scale.600', 'scale.800', 'scale.1000'];
16
+ var spacingScale = ['space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000'];
17
17
  exports.spacingScale = spacingScale;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "1.7.0",
3
+ "version": "2.0.0",
4
4
  "sideEffects": false
5
5
  }