@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/report.api.md
CHANGED
|
@@ -189,20 +189,20 @@ type ColumnGap = keyof typeof columnGapMap;
|
|
|
189
189
|
|
|
190
190
|
// @public
|
|
191
191
|
const columnGapMap: {
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
192
|
+
'space.0': SerializedStyles;
|
|
193
|
+
'space.025': SerializedStyles;
|
|
194
|
+
'space.050': SerializedStyles;
|
|
195
|
+
'space.075': SerializedStyles;
|
|
196
|
+
'space.100': SerializedStyles;
|
|
197
|
+
'space.1000': SerializedStyles;
|
|
198
|
+
'space.150': SerializedStyles;
|
|
199
|
+
'space.200': SerializedStyles;
|
|
200
|
+
'space.250': SerializedStyles;
|
|
201
|
+
'space.300': SerializedStyles;
|
|
202
|
+
'space.400': SerializedStyles;
|
|
203
|
+
'space.500': SerializedStyles;
|
|
204
|
+
'space.600': SerializedStyles;
|
|
205
|
+
'space.800': SerializedStyles;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
// @public (undocumented)
|
|
@@ -214,6 +214,7 @@ const displayMap: {
|
|
|
214
214
|
inline: SerializedStyles;
|
|
215
215
|
flex: SerializedStyles;
|
|
216
216
|
inlineFlex: SerializedStyles;
|
|
217
|
+
inlineBlock: SerializedStyles;
|
|
217
218
|
};
|
|
218
219
|
|
|
219
220
|
// @public
|
|
@@ -321,11 +322,16 @@ const flexWrapMap_2: {
|
|
|
321
322
|
// @public (undocumented)
|
|
322
323
|
type FontSize = keyof typeof fontSizeMap;
|
|
323
324
|
|
|
324
|
-
// @public
|
|
325
|
+
// @public
|
|
325
326
|
const fontSizeMap: {
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
327
|
+
'size.050': SerializedStyles;
|
|
328
|
+
'size.075': SerializedStyles;
|
|
329
|
+
'size.100': SerializedStyles;
|
|
330
|
+
'size.200': SerializedStyles;
|
|
331
|
+
'size.300': SerializedStyles;
|
|
332
|
+
'size.400': SerializedStyles;
|
|
333
|
+
'size.500': SerializedStyles;
|
|
334
|
+
'size.600': SerializedStyles;
|
|
329
335
|
};
|
|
330
336
|
|
|
331
337
|
// @public (undocumented)
|
|
@@ -333,10 +339,10 @@ type FontWeight = keyof typeof fontWeightMap;
|
|
|
333
339
|
|
|
334
340
|
// @public (undocumented)
|
|
335
341
|
const fontWeightMap: {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
342
|
+
bold: SerializedStyles;
|
|
343
|
+
medium: SerializedStyles;
|
|
344
|
+
regular: SerializedStyles;
|
|
345
|
+
semibold: SerializedStyles;
|
|
340
346
|
};
|
|
341
347
|
|
|
342
348
|
// @public (undocumented)
|
|
@@ -386,13 +392,12 @@ type LineHeight = keyof typeof lineHeightMap;
|
|
|
386
392
|
|
|
387
393
|
// @public (undocumented)
|
|
388
394
|
const lineHeightMap: {
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'40px': SerializedStyles;
|
|
395
|
+
'lineHeight.100': SerializedStyles;
|
|
396
|
+
'lineHeight.200': SerializedStyles;
|
|
397
|
+
'lineHeight.300': SerializedStyles;
|
|
398
|
+
'lineHeight.400': SerializedStyles;
|
|
399
|
+
'lineHeight.500': SerializedStyles;
|
|
400
|
+
'lineHeight.600': SerializedStyles;
|
|
396
401
|
};
|
|
397
402
|
|
|
398
403
|
// @public (undocumented)
|
|
@@ -412,20 +417,20 @@ type PaddingBlock = keyof typeof paddingBlockMap;
|
|
|
412
417
|
|
|
413
418
|
// @public (undocumented)
|
|
414
419
|
const paddingBlockMap: {
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
420
|
+
'space.0': SerializedStyles;
|
|
421
|
+
'space.025': SerializedStyles;
|
|
422
|
+
'space.050': SerializedStyles;
|
|
423
|
+
'space.075': SerializedStyles;
|
|
424
|
+
'space.100': SerializedStyles;
|
|
425
|
+
'space.1000': SerializedStyles;
|
|
426
|
+
'space.150': SerializedStyles;
|
|
427
|
+
'space.200': SerializedStyles;
|
|
428
|
+
'space.250': SerializedStyles;
|
|
429
|
+
'space.300': SerializedStyles;
|
|
430
|
+
'space.400': SerializedStyles;
|
|
431
|
+
'space.500': SerializedStyles;
|
|
432
|
+
'space.600': SerializedStyles;
|
|
433
|
+
'space.800': SerializedStyles;
|
|
429
434
|
};
|
|
430
435
|
|
|
431
436
|
// @public (undocumented)
|
|
@@ -433,38 +438,38 @@ type PaddingInline = keyof typeof paddingInlineMap;
|
|
|
433
438
|
|
|
434
439
|
// @public (undocumented)
|
|
435
440
|
const paddingInlineMap: {
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
449
|
-
'
|
|
441
|
+
'space.0': SerializedStyles;
|
|
442
|
+
'space.025': SerializedStyles;
|
|
443
|
+
'space.050': SerializedStyles;
|
|
444
|
+
'space.075': SerializedStyles;
|
|
445
|
+
'space.100': SerializedStyles;
|
|
446
|
+
'space.1000': SerializedStyles;
|
|
447
|
+
'space.150': SerializedStyles;
|
|
448
|
+
'space.200': SerializedStyles;
|
|
449
|
+
'space.250': SerializedStyles;
|
|
450
|
+
'space.300': SerializedStyles;
|
|
451
|
+
'space.400': SerializedStyles;
|
|
452
|
+
'space.500': SerializedStyles;
|
|
453
|
+
'space.600': SerializedStyles;
|
|
454
|
+
'space.800': SerializedStyles;
|
|
450
455
|
};
|
|
451
456
|
|
|
452
457
|
// @public
|
|
453
458
|
const paddingMap: {
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'
|
|
458
|
-
'
|
|
459
|
-
'
|
|
460
|
-
'
|
|
461
|
-
'
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
459
|
+
'space.0': SerializedStyles;
|
|
460
|
+
'space.025': SerializedStyles;
|
|
461
|
+
'space.050': SerializedStyles;
|
|
462
|
+
'space.075': SerializedStyles;
|
|
463
|
+
'space.100': SerializedStyles;
|
|
464
|
+
'space.1000': SerializedStyles;
|
|
465
|
+
'space.150': SerializedStyles;
|
|
466
|
+
'space.200': SerializedStyles;
|
|
467
|
+
'space.250': SerializedStyles;
|
|
468
|
+
'space.300': SerializedStyles;
|
|
469
|
+
'space.400': SerializedStyles;
|
|
470
|
+
'space.500': SerializedStyles;
|
|
471
|
+
'space.600': SerializedStyles;
|
|
472
|
+
'space.800': SerializedStyles;
|
|
468
473
|
};
|
|
469
474
|
|
|
470
475
|
// @public (undocumented)
|
|
@@ -483,20 +488,20 @@ type RowGap = keyof typeof rowGapMap;
|
|
|
483
488
|
|
|
484
489
|
// @public
|
|
485
490
|
const rowGapMap: {
|
|
486
|
-
'
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
493
|
-
'
|
|
494
|
-
'
|
|
495
|
-
'
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
491
|
+
'space.0': SerializedStyles;
|
|
492
|
+
'space.025': SerializedStyles;
|
|
493
|
+
'space.050': SerializedStyles;
|
|
494
|
+
'space.075': SerializedStyles;
|
|
495
|
+
'space.100': SerializedStyles;
|
|
496
|
+
'space.1000': SerializedStyles;
|
|
497
|
+
'space.150': SerializedStyles;
|
|
498
|
+
'space.200': SerializedStyles;
|
|
499
|
+
'space.250': SerializedStyles;
|
|
500
|
+
'space.300': SerializedStyles;
|
|
501
|
+
'space.400': SerializedStyles;
|
|
502
|
+
'space.500': SerializedStyles;
|
|
503
|
+
'space.600': SerializedStyles;
|
|
504
|
+
'space.800': SerializedStyles;
|
|
500
505
|
};
|
|
501
506
|
|
|
502
507
|
// @public (undocumented)
|
|
@@ -11,6 +11,7 @@ import { createInteractionStylesFromTemplate } from './interaction-codegen';
|
|
|
11
11
|
import { createStylesFromTemplate } from './misc-codegen-template';
|
|
12
12
|
import { createSpacingStylesFromTemplate } from './spacing-codegen-template';
|
|
13
13
|
import { createSpacingScaleTemplate } from './spacing-scale-template';
|
|
14
|
+
import { createTypographyStylesFromTemplate } from './typography-codegen-template';
|
|
14
15
|
|
|
15
16
|
const colorMapOutputFolder = join(__dirname, '../', 'src', 'internal');
|
|
16
17
|
const colorTokensDependencyPath = require.resolve(
|
|
@@ -19,6 +20,9 @@ const colorTokensDependencyPath = require.resolve(
|
|
|
19
20
|
const spacingTokensDependencyPath = require.resolve(
|
|
20
21
|
'../../tokens/src/artifacts/tokens-raw/atlassian-spacing',
|
|
21
22
|
);
|
|
23
|
+
const typographyTokensDependencyPath = require.resolve(
|
|
24
|
+
'../../tokens/src/artifacts/tokens-raw/atlassian-typography',
|
|
25
|
+
);
|
|
22
26
|
|
|
23
27
|
writeFile(
|
|
24
28
|
join(colorMapOutputFolder, 'color-map.tsx'),
|
|
@@ -87,6 +91,29 @@ Promise.all(
|
|
|
87
91
|
}),
|
|
88
92
|
);
|
|
89
93
|
})
|
|
94
|
+
.then(() => {
|
|
95
|
+
// generate typography values
|
|
96
|
+
return Promise.all(
|
|
97
|
+
[{ target: 'text.partial.tsx' }].map(({ target }) => {
|
|
98
|
+
const targetPath = join(__dirname, '../', 'src', 'components', target);
|
|
99
|
+
|
|
100
|
+
const source = createPartialSignedArtifact(
|
|
101
|
+
(options) =>
|
|
102
|
+
options.map(createTypographyStylesFromTemplate).join('\n'),
|
|
103
|
+
'yarn codegen-styles',
|
|
104
|
+
{
|
|
105
|
+
id: 'typography',
|
|
106
|
+
absoluteFilePath: targetPath,
|
|
107
|
+
dependencies: [typographyTokensDependencyPath],
|
|
108
|
+
},
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
return writeFile(targetPath, source).then(() =>
|
|
112
|
+
console.log(`${targetPath} written!`),
|
|
113
|
+
);
|
|
114
|
+
}),
|
|
115
|
+
);
|
|
116
|
+
})
|
|
90
117
|
.then(() => {
|
|
91
118
|
// generate other values
|
|
92
119
|
return Promise.all(
|
|
@@ -26,11 +26,11 @@ const spacingProperties = {
|
|
|
26
26
|
},
|
|
27
27
|
} as const;
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const onlySpaceTokens = tokens.filter((token) =>
|
|
30
30
|
token.name.startsWith('space.'),
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
-
const activeTokens =
|
|
33
|
+
const activeTokens = onlySpaceTokens.map((t) => ({
|
|
34
34
|
name: t.name,
|
|
35
35
|
fallback: t.attributes.pixelValue!,
|
|
36
36
|
}));
|
|
@@ -51,8 +51,7 @@ const ${spacingProperty}Map = {
|
|
|
51
51
|
${activeTokens
|
|
52
52
|
.sort((a, b) => (a.name < b.name ? -1 : 1))
|
|
53
53
|
.map((token) => {
|
|
54
|
-
|
|
55
|
-
const propName = token.name.replace('space.', 'scale.');
|
|
54
|
+
const propName = token.name;
|
|
56
55
|
return `'${propName}': ${tokenToStyle(
|
|
57
56
|
cssProperty,
|
|
58
57
|
token.name,
|
|
@@ -3,13 +3,11 @@ import parserTypeScript from 'prettier/parser-typescript';
|
|
|
3
3
|
|
|
4
4
|
import { spacing as tokens } from '@atlaskit/tokens/tokens-raw';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
token.name.startsWith('
|
|
6
|
+
const onlySpaceTokens = tokens.filter((token) =>
|
|
7
|
+
token.name.startsWith('space.'),
|
|
8
8
|
);
|
|
9
9
|
|
|
10
|
-
const activeTokens =
|
|
11
|
-
(t) => `'${t.name.replace('spacing.', '')}'`,
|
|
12
|
-
);
|
|
10
|
+
const activeTokens = onlySpaceTokens.map((t) => `'${t.name}'`);
|
|
13
11
|
|
|
14
12
|
export const createSpacingScaleTemplate = () => {
|
|
15
13
|
return prettier.format(
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import prettier from 'prettier';
|
|
2
|
+
import parserTypeScript from 'prettier/parser-typescript';
|
|
3
|
+
|
|
4
|
+
import { typography as tokens } from '@atlaskit/tokens/tokens-raw';
|
|
5
|
+
|
|
6
|
+
import { capitalize, tokenToStyle } from './utils';
|
|
7
|
+
|
|
8
|
+
type Token = {
|
|
9
|
+
name: string;
|
|
10
|
+
fallback: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const typographyProperties = {
|
|
14
|
+
fontSize: {
|
|
15
|
+
cssProperty: 'fontSize',
|
|
16
|
+
prefix: 'font.',
|
|
17
|
+
filterFn: <T extends Token>(t: T) => t.name.startsWith('font.size'),
|
|
18
|
+
},
|
|
19
|
+
fontWeight: {
|
|
20
|
+
cssProperty: 'fontWeight',
|
|
21
|
+
prefix: 'font.weight.',
|
|
22
|
+
filterFn: <T extends Token>(t: T) => t.name.startsWith('font.weight'),
|
|
23
|
+
},
|
|
24
|
+
fontFamily: {
|
|
25
|
+
cssProperty: 'fontFamily',
|
|
26
|
+
prefix: 'font.family.',
|
|
27
|
+
filterFn: <T extends Token>(t: T) => t.name.startsWith('font.family'),
|
|
28
|
+
},
|
|
29
|
+
lineHeight: {
|
|
30
|
+
cssProperty: 'lineHeight',
|
|
31
|
+
prefix: 'font.',
|
|
32
|
+
filterFn: <T extends Token>(t: T) => t.name.startsWith('font.lineHeight'),
|
|
33
|
+
},
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
const activeTokens: Token[] = tokens.map((t) => ({
|
|
37
|
+
name: t.name,
|
|
38
|
+
fallback: t.value,
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
export const createTypographyStylesFromTemplate = (
|
|
42
|
+
typographyProperty: keyof typeof typographyProperties,
|
|
43
|
+
) => {
|
|
44
|
+
if (!typographyProperties[typographyProperty]) {
|
|
45
|
+
throw new Error(`[codegen] Unknown option found "${typographyProperty}"`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const { cssProperty, prefix, filterFn } =
|
|
49
|
+
typographyProperties[typographyProperty];
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
prettier.format(
|
|
53
|
+
`
|
|
54
|
+
const ${typographyProperty}Map = {
|
|
55
|
+
${activeTokens
|
|
56
|
+
.filter(filterFn)
|
|
57
|
+
.sort((a, b) => (a.name < b.name ? -1 : 1))
|
|
58
|
+
.map((token) => {
|
|
59
|
+
const propName = token.name.replace(prefix, '');
|
|
60
|
+
|
|
61
|
+
return `'${propName}': ${tokenToStyle(
|
|
62
|
+
cssProperty,
|
|
63
|
+
token.name,
|
|
64
|
+
token.fallback,
|
|
65
|
+
)}`;
|
|
66
|
+
})
|
|
67
|
+
.join(',\n\t')}
|
|
68
|
+
};`,
|
|
69
|
+
{
|
|
70
|
+
singleQuote: true,
|
|
71
|
+
trailingComma: 'all',
|
|
72
|
+
parser: 'typescript',
|
|
73
|
+
plugins: [parserTypeScript],
|
|
74
|
+
},
|
|
75
|
+
) +
|
|
76
|
+
`\nexport type ${capitalize(
|
|
77
|
+
typographyProperty,
|
|
78
|
+
)} = keyof typeof ${typographyProperty}Map;\n`
|
|
79
|
+
);
|
|
80
|
+
};
|
|
@@ -9,7 +9,7 @@ describe('Inline component', () => {
|
|
|
9
9
|
|
|
10
10
|
it('should render inline', () => {
|
|
11
11
|
const { getByText } = render(
|
|
12
|
-
<Inline gap="
|
|
12
|
+
<Inline gap="space.050">
|
|
13
13
|
<Text>1</Text>
|
|
14
14
|
<Text>2</Text>
|
|
15
15
|
</Inline>,
|
|
@@ -20,7 +20,7 @@ describe('Inline component', () => {
|
|
|
20
20
|
|
|
21
21
|
it('should render inline with dividers', () => {
|
|
22
22
|
const { getByText } = render(
|
|
23
|
-
<Inline gap="
|
|
23
|
+
<Inline gap="space.050" divider="/">
|
|
24
24
|
<Text>1</Text>
|
|
25
25
|
<Text>2</Text>
|
|
26
26
|
</Inline>,
|
|
@@ -32,7 +32,7 @@ describe('Inline component', () => {
|
|
|
32
32
|
|
|
33
33
|
it('should render with a given test id', () => {
|
|
34
34
|
const { getByTestId } = render(
|
|
35
|
-
<Inline gap="
|
|
35
|
+
<Inline gap="space.050" testId={testId}>
|
|
36
36
|
<Text>1</Text>
|
|
37
37
|
<Text>2</Text>
|
|
38
38
|
</Inline>,
|
|
@@ -9,7 +9,7 @@ describe('Stack component', () => {
|
|
|
9
9
|
|
|
10
10
|
it('should render stack', () => {
|
|
11
11
|
const { getByText } = render(
|
|
12
|
-
<Stack gap="
|
|
12
|
+
<Stack gap="space.050">
|
|
13
13
|
<Text>1</Text>
|
|
14
14
|
<Text>2</Text>
|
|
15
15
|
</Stack>,
|
|
@@ -20,7 +20,7 @@ describe('Stack component', () => {
|
|
|
20
20
|
|
|
21
21
|
it('should render with a given test id', () => {
|
|
22
22
|
const { getByTestId } = render(
|
|
23
|
-
<Stack gap="
|
|
23
|
+
<Stack gap="space.050" testId={testId}>
|
|
24
24
|
<Text>1</Text>
|
|
25
25
|
<Text>2</Text>
|
|
26
26
|
</Stack>,
|
|
@@ -19,9 +19,9 @@ describe('Text component', () => {
|
|
|
19
19
|
expect(getByTestId('test')).toMatchInlineSnapshot(`
|
|
20
20
|
.emotion-0 {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
margin: 0px;
|
|
23
|
-
padding: 0px;
|
|
24
|
-
font-family: -apple-system,BlinkMacSystemFont,
|
|
22
|
+
margin: var(--ds-space-0, 0px);
|
|
23
|
+
padding: var(--ds-space-0, 0px);
|
|
24
|
+
font-family: var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
<span
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a518ea28041c6ff6d45730720fd9846e52e172e3d7ffba049b54c835f55976e8
|
|
3
|
+
size 12644
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:67d9691cd6a9d27e6c88f813838067fbbe3d34359abe735b7248983af671dab9
|
|
3
|
+
size 25854
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:79fb431bfe8f5bb4f4398c4f62bd2266cff4fc7573ba081fbb5fb7c28338f2a4
|
|
3
|
+
size 13054
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3ec919ee45580a3e93dca991e3c80a0523a142c3096ad364e622ad4b1fdfad76
|
|
3
|
+
size 37966
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7fc46772ba9b71f230f1bfe126adb00e478061bcc01315aeecb1d0634f0c7d85
|
|
3
|
+
size 13156
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7f58caf93b47b6d2f5061536f06d0a383c012beea2cc7cb350ed92883be1db42
|
|
3
|
+
size 29887
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:da814bbbb450c5b431a6511a37135d4854f7176854ee6d28b1031136b690d608
|
|
3
|
+
size 7636
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:06602fa880f4bc95e73b88298edce8993dc95680cb38367d32fb90f88b7c3a34
|
|
3
|
+
size 6445
|