@atlaskit/ds-explorations 1.6.4 → 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.
- package/CHANGELOG.md +24 -0
- package/dist/cjs/components/box.partial.js +48 -45
- package/dist/cjs/components/inline.partial.js +15 -15
- package/dist/cjs/components/interaction-surface.partial.js +2 -2
- package/dist/cjs/components/stack.partial.js +15 -15
- package/dist/cjs/components/text.partial.js +88 -58
- package/dist/cjs/internal/color-map.js +2 -2
- package/dist/cjs/internal/spacing-scale.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +48 -45
- package/dist/es2019/components/inline.partial.js +15 -15
- package/dist/es2019/components/interaction-surface.partial.js +2 -2
- package/dist/es2019/components/stack.partial.js +15 -15
- package/dist/es2019/components/text.partial.js +87 -57
- package/dist/es2019/internal/color-map.js +2 -2
- package/dist/es2019/internal/spacing-scale.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +48 -45
- package/dist/esm/components/inline.partial.js +15 -15
- package/dist/esm/components/interaction-surface.partial.js +2 -2
- package/dist/esm/components/stack.partial.js +15 -15
- package/dist/esm/components/text.partial.js +87 -57
- package/dist/esm/internal/color-map.js +2 -2
- package/dist/esm/internal/spacing-scale.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +46 -45
- package/dist/types/components/inline.partial.d.ts +15 -15
- package/dist/types/components/stack.partial.d.ts +15 -15
- package/dist/types/components/text.partial.d.ts +45 -25
- package/dist/types/internal/color-map.d.ts +2 -2
- package/dist/types/internal/spacing-scale.d.ts +2 -2
- package/examples/00-basic.tsx +3 -3
- package/examples/01-box.tsx +18 -18
- package/examples/02-text-advanced.tsx +9 -9
- package/examples/02-text.tsx +36 -16
- package/examples/03-stack.tsx +26 -26
- package/examples/04-inline.tsx +26 -26
- package/examples/05-badge.tsx +2 -2
- package/examples/06-section-message.tsx +6 -6
- package/examples/07-comment.tsx +5 -5
- package/examples/08-lozenge.tsx +4 -4
- package/examples/99-interactions.tsx +16 -16
- package/package.json +1 -1
- package/report.api.md +90 -85
- package/scripts/codegen-styles.tsx +27 -0
- package/scripts/spacing-codegen-template.tsx +3 -4
- package/scripts/spacing-scale-template.tsx +3 -5
- package/scripts/typography-codegen-template.tsx +80 -0
- package/src/components/__tests__/unit/inline.test.tsx +3 -3
- package/src/components/__tests__/unit/stack.test.tsx +2 -2
- package/src/components/__tests__/unit/text.test.tsx +3 -3
- 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
- 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
- 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
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
- 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
- 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
- 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
- package/src/components/box.partial.tsx +46 -45
- package/src/components/inline.partial.tsx +15 -15
- package/src/components/interaction-surface.partial.tsx +2 -2
- package/src/components/stack.partial.tsx +15 -15
- package/src/components/text.partial.tsx +103 -34
- package/src/internal/color-map.tsx +2 -2
- package/src/internal/spacing-scale.tsx +15 -15
- package/tmp/api-report-tmp.d.ts +90 -85
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -173,20 +173,20 @@ type ColumnGap = keyof typeof columnGapMap;
|
|
|
173
173
|
|
|
174
174
|
// @public
|
|
175
175
|
const columnGapMap: {
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
176
|
+
'space.0': SerializedStyles;
|
|
177
|
+
'space.025': SerializedStyles;
|
|
178
|
+
'space.050': SerializedStyles;
|
|
179
|
+
'space.075': SerializedStyles;
|
|
180
|
+
'space.100': SerializedStyles;
|
|
181
|
+
'space.1000': SerializedStyles;
|
|
182
|
+
'space.150': SerializedStyles;
|
|
183
|
+
'space.200': SerializedStyles;
|
|
184
|
+
'space.250': SerializedStyles;
|
|
185
|
+
'space.300': SerializedStyles;
|
|
186
|
+
'space.400': SerializedStyles;
|
|
187
|
+
'space.500': SerializedStyles;
|
|
188
|
+
'space.600': SerializedStyles;
|
|
189
|
+
'space.800': SerializedStyles;
|
|
190
190
|
};
|
|
191
191
|
|
|
192
192
|
// @public (undocumented)
|
|
@@ -198,6 +198,7 @@ const displayMap: {
|
|
|
198
198
|
inline: SerializedStyles;
|
|
199
199
|
flex: SerializedStyles;
|
|
200
200
|
inlineFlex: SerializedStyles;
|
|
201
|
+
inlineBlock: SerializedStyles;
|
|
201
202
|
};
|
|
202
203
|
|
|
203
204
|
// @public
|
|
@@ -305,11 +306,16 @@ const flexWrapMap_2: {
|
|
|
305
306
|
// @public (undocumented)
|
|
306
307
|
type FontSize = keyof typeof fontSizeMap;
|
|
307
308
|
|
|
308
|
-
// @public
|
|
309
|
+
// @public
|
|
309
310
|
const fontSizeMap: {
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
311
|
+
'size.050': SerializedStyles;
|
|
312
|
+
'size.075': SerializedStyles;
|
|
313
|
+
'size.100': SerializedStyles;
|
|
314
|
+
'size.200': SerializedStyles;
|
|
315
|
+
'size.300': SerializedStyles;
|
|
316
|
+
'size.400': SerializedStyles;
|
|
317
|
+
'size.500': SerializedStyles;
|
|
318
|
+
'size.600': SerializedStyles;
|
|
313
319
|
};
|
|
314
320
|
|
|
315
321
|
// @public (undocumented)
|
|
@@ -317,10 +323,10 @@ type FontWeight = keyof typeof fontWeightMap;
|
|
|
317
323
|
|
|
318
324
|
// @public (undocumented)
|
|
319
325
|
const fontWeightMap: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
bold: SerializedStyles;
|
|
327
|
+
medium: SerializedStyles;
|
|
328
|
+
regular: SerializedStyles;
|
|
329
|
+
semibold: SerializedStyles;
|
|
324
330
|
};
|
|
325
331
|
|
|
326
332
|
// @public (undocumented)
|
|
@@ -370,13 +376,12 @@ type LineHeight = keyof typeof lineHeightMap;
|
|
|
370
376
|
|
|
371
377
|
// @public (undocumented)
|
|
372
378
|
const lineHeightMap: {
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
'40px': SerializedStyles;
|
|
379
|
+
'lineHeight.100': SerializedStyles;
|
|
380
|
+
'lineHeight.200': SerializedStyles;
|
|
381
|
+
'lineHeight.300': SerializedStyles;
|
|
382
|
+
'lineHeight.400': SerializedStyles;
|
|
383
|
+
'lineHeight.500': SerializedStyles;
|
|
384
|
+
'lineHeight.600': SerializedStyles;
|
|
380
385
|
};
|
|
381
386
|
|
|
382
387
|
// @public (undocumented)
|
|
@@ -396,20 +401,20 @@ type PaddingBlock = keyof typeof paddingBlockMap;
|
|
|
396
401
|
|
|
397
402
|
// @public (undocumented)
|
|
398
403
|
const paddingBlockMap: {
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
404
|
+
'space.0': SerializedStyles;
|
|
405
|
+
'space.025': SerializedStyles;
|
|
406
|
+
'space.050': SerializedStyles;
|
|
407
|
+
'space.075': SerializedStyles;
|
|
408
|
+
'space.100': SerializedStyles;
|
|
409
|
+
'space.1000': SerializedStyles;
|
|
410
|
+
'space.150': SerializedStyles;
|
|
411
|
+
'space.200': SerializedStyles;
|
|
412
|
+
'space.250': SerializedStyles;
|
|
413
|
+
'space.300': SerializedStyles;
|
|
414
|
+
'space.400': SerializedStyles;
|
|
415
|
+
'space.500': SerializedStyles;
|
|
416
|
+
'space.600': SerializedStyles;
|
|
417
|
+
'space.800': SerializedStyles;
|
|
413
418
|
};
|
|
414
419
|
|
|
415
420
|
// @public (undocumented)
|
|
@@ -417,38 +422,38 @@ type PaddingInline = keyof typeof paddingInlineMap;
|
|
|
417
422
|
|
|
418
423
|
// @public (undocumented)
|
|
419
424
|
const paddingInlineMap: {
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
425
|
+
'space.0': SerializedStyles;
|
|
426
|
+
'space.025': SerializedStyles;
|
|
427
|
+
'space.050': SerializedStyles;
|
|
428
|
+
'space.075': SerializedStyles;
|
|
429
|
+
'space.100': SerializedStyles;
|
|
430
|
+
'space.1000': SerializedStyles;
|
|
431
|
+
'space.150': SerializedStyles;
|
|
432
|
+
'space.200': SerializedStyles;
|
|
433
|
+
'space.250': SerializedStyles;
|
|
434
|
+
'space.300': SerializedStyles;
|
|
435
|
+
'space.400': SerializedStyles;
|
|
436
|
+
'space.500': SerializedStyles;
|
|
437
|
+
'space.600': SerializedStyles;
|
|
438
|
+
'space.800': SerializedStyles;
|
|
434
439
|
};
|
|
435
440
|
|
|
436
441
|
// @public
|
|
437
442
|
const paddingMap: {
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
449
|
-
'
|
|
450
|
-
'
|
|
451
|
-
'
|
|
443
|
+
'space.0': SerializedStyles;
|
|
444
|
+
'space.025': SerializedStyles;
|
|
445
|
+
'space.050': SerializedStyles;
|
|
446
|
+
'space.075': SerializedStyles;
|
|
447
|
+
'space.100': SerializedStyles;
|
|
448
|
+
'space.1000': SerializedStyles;
|
|
449
|
+
'space.150': SerializedStyles;
|
|
450
|
+
'space.200': SerializedStyles;
|
|
451
|
+
'space.250': SerializedStyles;
|
|
452
|
+
'space.300': SerializedStyles;
|
|
453
|
+
'space.400': SerializedStyles;
|
|
454
|
+
'space.500': SerializedStyles;
|
|
455
|
+
'space.600': SerializedStyles;
|
|
456
|
+
'space.800': SerializedStyles;
|
|
452
457
|
};
|
|
453
458
|
|
|
454
459
|
// @public (undocumented)
|
|
@@ -467,20 +472,20 @@ type RowGap = keyof typeof rowGapMap;
|
|
|
467
472
|
|
|
468
473
|
// @public
|
|
469
474
|
const rowGapMap: {
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
473
|
-
'
|
|
474
|
-
'
|
|
475
|
-
'
|
|
476
|
-
'
|
|
477
|
-
'
|
|
478
|
-
'
|
|
479
|
-
'
|
|
480
|
-
'
|
|
481
|
-
'
|
|
482
|
-
'
|
|
483
|
-
'
|
|
475
|
+
'space.0': SerializedStyles;
|
|
476
|
+
'space.025': SerializedStyles;
|
|
477
|
+
'space.050': SerializedStyles;
|
|
478
|
+
'space.075': SerializedStyles;
|
|
479
|
+
'space.100': SerializedStyles;
|
|
480
|
+
'space.1000': SerializedStyles;
|
|
481
|
+
'space.150': SerializedStyles;
|
|
482
|
+
'space.200': SerializedStyles;
|
|
483
|
+
'space.250': SerializedStyles;
|
|
484
|
+
'space.300': SerializedStyles;
|
|
485
|
+
'space.400': SerializedStyles;
|
|
486
|
+
'space.500': SerializedStyles;
|
|
487
|
+
'space.600': SerializedStyles;
|
|
488
|
+
'space.800': SerializedStyles;
|
|
484
489
|
};
|
|
485
490
|
|
|
486
491
|
// @public (undocumented)
|