@atlaskit/ds-explorations 0.1.5 → 1.1.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 +28 -0
- package/box/package.json +15 -0
- package/dist/cjs/components/box.partial.js +182 -205
- package/dist/cjs/components/inline.partial.js +28 -34
- package/dist/cjs/components/interaction-surface.partial.js +32 -1
- package/dist/cjs/components/stack.partial.js +28 -36
- package/dist/cjs/components/text.partial.js +117 -86
- package/dist/cjs/index.js +1 -9
- package/dist/cjs/internal/color-map.js +6 -5
- package/dist/cjs/internal/spacing-scale.js +17 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +181 -189
- package/dist/es2019/components/inline.partial.js +27 -28
- package/dist/es2019/components/interaction-surface.partial.js +32 -1
- package/dist/es2019/components/stack.partial.js +27 -28
- package/dist/es2019/components/text.partial.js +74 -36
- package/dist/es2019/index.js +1 -2
- package/dist/es2019/internal/color-map.js +4 -3
- package/dist/es2019/internal/spacing-scale.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +181 -201
- package/dist/esm/components/inline.partial.js +27 -33
- package/dist/esm/components/interaction-surface.partial.js +32 -1
- package/dist/esm/components/stack.partial.js +27 -33
- package/dist/esm/components/text.partial.js +79 -47
- package/dist/esm/index.js +1 -2
- package/dist/esm/internal/color-map.js +4 -3
- package/dist/esm/internal/spacing-scale.js +9 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +109 -21
- package/dist/types/components/inline.partial.d.ts +25 -3
- package/dist/types/components/interaction-surface.partial.d.ts +3 -0
- package/dist/types/components/stack.partial.d.ts +24 -2
- package/dist/types/components/text.partial.d.ts +9 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/types/internal/color-map.d.ts +11 -9
- package/dist/types/internal/spacing-scale.d.ts +9 -0
- package/dist/types-ts4.0/components/box.partial.d.ts +109 -27
- package/dist/types-ts4.0/components/inline.partial.d.ts +25 -3
- package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +3 -0
- package/dist/types-ts4.0/components/stack.partial.d.ts +24 -2
- package/dist/types-ts4.0/components/text.partial.d.ts +9 -6
- package/dist/types-ts4.0/index.d.ts +0 -1
- package/dist/types-ts4.0/internal/color-map.d.ts +11 -9
- package/dist/types-ts4.0/internal/spacing-scale.d.ts +22 -0
- package/examples/00-basic.tsx +4 -4
- package/examples/01-box.tsx +29 -46
- package/examples/02-text-advanced.tsx +38 -0
- package/examples/02-text.tsx +73 -62
- package/examples/03-stack.tsx +36 -75
- package/examples/04-inline.tsx +34 -76
- package/examples/05-badge.tsx +2 -2
- package/examples/06-section-message.tsx +7 -7
- package/examples/07-comment.tsx +4 -6
- package/examples/08-lozenge.tsx +9 -5
- package/examples/99-interactions.tsx +20 -20
- package/examples/config.jsonc +11 -0
- package/package.json +5 -2
- package/report.api.md +188 -48
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +52 -64
- package/scripts/codegen-styles.tsx +34 -6
- package/scripts/color-codegen-template.tsx +10 -15
- package/scripts/color-map-template.tsx +1 -1
- package/scripts/spacing-codegen-template.tsx +42 -12
- package/scripts/spacing-scale-template.tsx +40 -0
- package/scripts/utils.tsx +1 -3
- package/src/components/__tests__/unit/box.test.tsx +8 -11
- package/src/components/__tests__/unit/inline.test.tsx +3 -3
- package/src/components/__tests__/unit/interaction-suface.test.tsx +1 -1
- package/src/components/__tests__/unit/stack.test.tsx +2 -2
- package/src/components/__tests__/unit/text.test.tsx +32 -1
- 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__/box-snapshot-test-tsx-box-example-with-background-color-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-color-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-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-alignment-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-line-heights-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +2 -2
- package/src/components/box.partial.tsx +293 -160
- package/src/components/inline.partial.tsx +44 -17
- package/src/components/interaction-surface.partial.tsx +2 -1
- package/src/components/stack.partial.tsx +43 -16
- package/src/components/text.partial.tsx +82 -41
- package/src/index.tsx +0 -1
- package/src/internal/color-map.tsx +4 -3
- package/src/internal/spacing-scale.tsx +22 -0
- package/text/package.json +15 -0
- package/tmp/api-report-tmp.d.ts +177 -43
- package/dist/cjs/constants.js +0 -21
- package/dist/es2019/constants.js +0 -14
- package/dist/esm/constants.js +0 -14
- package/dist/types/constants.d.ts +0 -15
- package/dist/types-ts4.0/constants.d.ts +0 -15
- package/src/constants.tsx +0 -16
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import prettier from 'prettier';
|
|
2
2
|
import parserTypeScript from 'prettier/parser-typescript';
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
import legacyTokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-legacy-light';
|
|
4
6
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
7
|
import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-light';
|
|
6
8
|
|
|
@@ -25,13 +27,11 @@ const colors = {
|
|
|
25
27
|
text: {
|
|
26
28
|
prefix: 'color.text.',
|
|
27
29
|
cssProperty: 'color',
|
|
28
|
-
legacyFallbackCSSProperty: '--ds-co-fb',
|
|
29
30
|
filterFn: <T extends Token>(t: T) => t.token.startsWith(colors.text.prefix),
|
|
30
31
|
},
|
|
31
32
|
background: {
|
|
32
33
|
prefix: 'color.background.',
|
|
33
34
|
cssProperty: 'backgroundColor',
|
|
34
|
-
legacyFallbackCSSProperty: '--ds-bg-fb',
|
|
35
35
|
filterFn: <T extends Token>(t: T) =>
|
|
36
36
|
t.token.startsWith(colors.background.prefix) ||
|
|
37
37
|
t.token.startsWith('elevation.surface') ||
|
|
@@ -40,21 +40,22 @@ const colors = {
|
|
|
40
40
|
border: {
|
|
41
41
|
prefix: 'color.border.',
|
|
42
42
|
cssProperty: 'borderColor',
|
|
43
|
-
legacyFallbackCSSProperty: '--ds-bo-fb',
|
|
44
43
|
filterFn: <T extends Token>(t: T) =>
|
|
45
44
|
t.token.startsWith(colors.border.prefix),
|
|
46
45
|
},
|
|
47
46
|
} as const;
|
|
48
47
|
|
|
49
|
-
const
|
|
48
|
+
const bothTokens = tokens.map((t, i) => [t, legacyTokens[i]]);
|
|
49
|
+
|
|
50
|
+
const activeTokens = bothTokens
|
|
50
51
|
.filter(
|
|
51
|
-
(t) =>
|
|
52
|
+
([t]) =>
|
|
52
53
|
t.attributes.state !== 'deleted' && t.attributes.state !== 'deprecated',
|
|
53
54
|
)
|
|
54
55
|
.map(
|
|
55
|
-
(t): Token => ({
|
|
56
|
+
([t, legacy]): Token => ({
|
|
56
57
|
token: t.name,
|
|
57
|
-
fallback:
|
|
58
|
+
fallback: legacy.value as string,
|
|
58
59
|
}),
|
|
59
60
|
)
|
|
60
61
|
.filter(compose(pick('token'), not(isAccent)))
|
|
@@ -68,9 +69,7 @@ export const createColorStylesFromTemplate = (
|
|
|
68
69
|
throw new Error(`[codegen] Unknown option found "${colorProperty}"`);
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
const { prefix, cssProperty, filterFn
|
|
72
|
-
colorProperty
|
|
73
|
-
];
|
|
72
|
+
const { prefix, cssProperty, filterFn } = colors[colorProperty];
|
|
74
73
|
|
|
75
74
|
return (
|
|
76
75
|
prettier.format(
|
|
@@ -83,11 +82,7 @@ const ${colorProperty}ColorMap = {
|
|
|
83
82
|
.map((t) => {
|
|
84
83
|
// handle the default case eg color.border or color.text
|
|
85
84
|
const propName = t.token.replace(prefix, '');
|
|
86
|
-
return `'${propName}': ${tokenToStyle(
|
|
87
|
-
cssProperty,
|
|
88
|
-
t.token,
|
|
89
|
-
`"var(${legacyFallbackCSSProperty})"`,
|
|
90
|
-
)}`;
|
|
85
|
+
return `'${propName}': ${tokenToStyle(cssProperty, t.token, t.fallback)}`;
|
|
91
86
|
})
|
|
92
87
|
.join(',\n\t')}
|
|
93
88
|
};`,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import prettier from 'prettier';
|
|
2
2
|
import parserTypeScript from 'prettier/parser-typescript';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-spacing';
|
|
6
|
+
|
|
7
|
+
import { capitalize, tokenToStyle } from './utils';
|
|
5
8
|
|
|
6
9
|
const spacingProperties = {
|
|
7
10
|
width: {
|
|
@@ -30,6 +33,22 @@ const spacingProperties = {
|
|
|
30
33
|
},
|
|
31
34
|
} as const;
|
|
32
35
|
|
|
36
|
+
type Token = {
|
|
37
|
+
name: string;
|
|
38
|
+
fallback: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const onlyScaleTokens = tokens.filter((token) =>
|
|
42
|
+
token.name.startsWith('spacing.scale.'),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const activeTokens = onlyScaleTokens.map(
|
|
46
|
+
(t): Token => ({
|
|
47
|
+
name: t.name,
|
|
48
|
+
fallback: t.value,
|
|
49
|
+
}),
|
|
50
|
+
);
|
|
51
|
+
|
|
33
52
|
export const createSpacingStylesFromTemplate = (
|
|
34
53
|
spacingProperty: keyof typeof spacingProperties,
|
|
35
54
|
) => {
|
|
@@ -39,20 +58,31 @@ export const createSpacingStylesFromTemplate = (
|
|
|
39
58
|
|
|
40
59
|
const { cssProperty } = spacingProperties[spacingProperty];
|
|
41
60
|
|
|
42
|
-
return
|
|
43
|
-
|
|
61
|
+
return (
|
|
62
|
+
prettier.format(
|
|
63
|
+
`
|
|
44
64
|
const ${spacingProperty}Map = {
|
|
45
|
-
${
|
|
46
|
-
.
|
|
47
|
-
|
|
65
|
+
${activeTokens
|
|
66
|
+
.sort((a, b) => (a.name < b.name ? -1 : 1))
|
|
67
|
+
.map((token) => {
|
|
68
|
+
const propName = token.name.replace('spacing.', '');
|
|
69
|
+
return `'${propName}': ${tokenToStyle(
|
|
70
|
+
cssProperty,
|
|
71
|
+
token.name,
|
|
72
|
+
token.fallback,
|
|
73
|
+
)}`;
|
|
48
74
|
})
|
|
49
75
|
.join(',\n\t')}
|
|
50
76
|
};`,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
77
|
+
{
|
|
78
|
+
singleQuote: true,
|
|
79
|
+
trailingComma: 'all',
|
|
80
|
+
parser: 'typescript',
|
|
81
|
+
plugins: [parserTypeScript],
|
|
82
|
+
},
|
|
83
|
+
) +
|
|
84
|
+
`\nexport type ${capitalize(
|
|
85
|
+
spacingProperty,
|
|
86
|
+
)} = keyof typeof ${spacingProperty}Map;\n`
|
|
57
87
|
);
|
|
58
88
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import prettier from 'prettier';
|
|
2
|
+
import parserTypeScript from 'prettier/parser-typescript';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-spacing';
|
|
6
|
+
|
|
7
|
+
const onlyScaleTokens = tokens.filter((token) =>
|
|
8
|
+
token.name.startsWith('spacing.scale.'),
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
type Token = {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const activeTokens = onlyScaleTokens.map(
|
|
16
|
+
(t): Token => ({
|
|
17
|
+
name: t.name,
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const createSpacingScaleTemplate = () => {
|
|
22
|
+
return prettier.format(
|
|
23
|
+
`
|
|
24
|
+
export const spacingScale = [
|
|
25
|
+
${activeTokens
|
|
26
|
+
.sort((a, b) => (a.name < b.name ? -1 : 1))
|
|
27
|
+
.map((token) => {
|
|
28
|
+
const propName = token.name.replace('spacing.', '');
|
|
29
|
+
return `'${propName}'`;
|
|
30
|
+
})
|
|
31
|
+
.join(',\n\t')}
|
|
32
|
+
] as const;`,
|
|
33
|
+
{
|
|
34
|
+
singleQuote: true,
|
|
35
|
+
parser: 'typescript',
|
|
36
|
+
trailingComma: 'all',
|
|
37
|
+
plugins: [parserTypeScript],
|
|
38
|
+
},
|
|
39
|
+
);
|
|
40
|
+
};
|
package/scripts/utils.tsx
CHANGED
|
@@ -5,9 +5,7 @@ export const tokenToStyle = (
|
|
|
5
5
|
token: string,
|
|
6
6
|
fallback: string,
|
|
7
7
|
) => {
|
|
8
|
-
return `css({\n\t${prop}: token('${token}', ${
|
|
9
|
-
fallback.startsWith('#') ? `'${fallback}'` : fallback
|
|
10
|
-
})\n})`;
|
|
8
|
+
return `css({\n\t${prop}: token('${token}', '${fallback}')\n})`;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
type BooleanCallback<T> = (args: T) => boolean;
|
|
@@ -19,29 +19,26 @@ describe('Box component', () => {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
describe('with SurfaceContext', () => {
|
|
22
|
-
it('should
|
|
22
|
+
it('should respect text color when text sets its own color and bg is non-bold', () => {
|
|
23
23
|
const { getByText } = render(
|
|
24
|
-
<Box backgroundColor=
|
|
25
|
-
<Text>Text</Text>
|
|
24
|
+
<Box backgroundColor="information">
|
|
25
|
+
<Text color="color.text">Text</Text>
|
|
26
26
|
</Box>,
|
|
27
27
|
);
|
|
28
28
|
const element = getByText('Text');
|
|
29
|
-
expect(element).toHaveStyleDeclaration(
|
|
30
|
-
'color',
|
|
31
|
-
token('color.text.inverse', 'var(--ds-co-fb)'),
|
|
32
|
-
);
|
|
29
|
+
expect(element).toHaveStyleDeclaration('color', token('color.text'));
|
|
33
30
|
});
|
|
34
31
|
|
|
35
|
-
it(
|
|
32
|
+
it("should override text color when background won't meet contrast", () => {
|
|
36
33
|
const { getByText } = render(
|
|
37
|
-
<Box backgroundColor=
|
|
38
|
-
<Text color=
|
|
34
|
+
<Box backgroundColor="brand.bold">
|
|
35
|
+
<Text color="disabled">Text</Text>
|
|
39
36
|
</Box>,
|
|
40
37
|
);
|
|
41
38
|
const element = getByText('Text');
|
|
42
39
|
expect(element).toHaveStyleDeclaration(
|
|
43
40
|
'color',
|
|
44
|
-
token('color.text.
|
|
41
|
+
token('color.text.inverse', '#FFFFFF'),
|
|
45
42
|
);
|
|
46
43
|
});
|
|
47
44
|
});
|
|
@@ -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="scale.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="scale.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="scale.050" testId={testId}>
|
|
36
36
|
<Text>1</Text>
|
|
37
37
|
<Text>2</Text>
|
|
38
38
|
</Inline>,
|
|
@@ -57,7 +57,7 @@ describe('InteractionSurface component', () => {
|
|
|
57
57
|
|
|
58
58
|
it('should render an inherited hover state if a Box context is present', () => {
|
|
59
59
|
const { getByTestId } = render(
|
|
60
|
-
<Box backgroundColor=
|
|
60
|
+
<Box backgroundColor="brand.bold">
|
|
61
61
|
<InteractionSurface testId="surface">
|
|
62
62
|
<Text>hello</Text>
|
|
63
63
|
</InteractionSurface>
|
|
@@ -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="scale.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="scale.050" testId={testId}>
|
|
24
24
|
<Text>1</Text>
|
|
25
25
|
<Text>2</Text>
|
|
26
26
|
</Stack>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { render } from '@testing-library/react';
|
|
3
|
+
import { queryByAttribute, render } from '@testing-library/react';
|
|
4
4
|
|
|
5
5
|
import { UNSAFE_Text as Text } from '../../../index';
|
|
6
6
|
|
|
@@ -10,11 +10,42 @@ describe('Text component', () => {
|
|
|
10
10
|
expect(getByText('Text')).toBeInTheDocument();
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
+
it('should not render redundant DOM nodes', () => {
|
|
14
|
+
const { getByTestId } = render(
|
|
15
|
+
<Text testId="test">
|
|
16
|
+
<Text>Text</Text>
|
|
17
|
+
</Text>,
|
|
18
|
+
);
|
|
19
|
+
expect(getByTestId('test')).toMatchInlineSnapshot(`
|
|
20
|
+
.emotion-0 {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
margin: 0px;
|
|
23
|
+
padding: 0px;
|
|
24
|
+
font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Fira Sans','Droid Sans','Helvetica Neue',sans-serif;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
<span
|
|
28
|
+
class="emotion-0"
|
|
29
|
+
data-testid="test"
|
|
30
|
+
>
|
|
31
|
+
Text
|
|
32
|
+
</span>
|
|
33
|
+
`);
|
|
34
|
+
});
|
|
35
|
+
|
|
13
36
|
it('should render with given test id', () => {
|
|
14
37
|
const { getByTestId } = render(<Text testId="test">Text</Text>);
|
|
15
38
|
expect(getByTestId('test')).toBeInTheDocument();
|
|
16
39
|
});
|
|
17
40
|
|
|
41
|
+
it('should render with id attribute', () => {
|
|
42
|
+
const id = 'some-id';
|
|
43
|
+
const { container } = render(<Text id={id}>Text</Text>);
|
|
44
|
+
const queryById = queryByAttribute.bind(null, 'id');
|
|
45
|
+
const component = queryById(container, id);
|
|
46
|
+
expect(component).toBeDefined();
|
|
47
|
+
});
|
|
48
|
+
|
|
18
49
|
describe('"as" prop behaviour', () => {
|
|
19
50
|
it('renders without errors when a valid "as" value is given', () => {
|
|
20
51
|
const { getByText } = render(<Text as="div">Text</Text>);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e3938c3eead13468b7dc2cacb8d06e3ebbf75b0f23b3b18f58d0aa97551d68c6
|
|
3
|
+
size 9791
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:033f4d148e97f471a60577958670488c656b924542aecd6bc0ae05d64b31505e
|
|
3
|
+
size 10406
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:188a241edc2128e4c9e4cd60257a291527f299594bf3abfe630444733358c1cb
|
|
3
|
+
size 9554
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2d41b835d2bc00a4cd0c42639fce87eb989c1c35b421bde3b69f730a8549fd50
|
|
3
|
+
size 13652
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:fb05088335cb9120b7b2146accef095b67237e1c4f0705f3851faf9c21cf4375
|
|
3
|
+
size 8871
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:98a9a1b3f8173c6ed0520cc3da4493d6963527bb8699be3b26729392e25e0539
|
|
3
|
+
size 24062
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6fe1a7a68e8903aca9f0ea6aad8ac74da225d76784fb4cb041f80fde57a553cc
|
|
3
|
+
size 30391
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3d5a9d4369d39aea2c98b9b329881f1769e29e2931321b85a000d81c88c1f0ab
|
|
3
|
+
size 26736
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:75afc824514d0d9bc9514d73c019fcc37d8188250ccf2e6e81735b397e70ee2f
|
|
3
|
+
size 12243
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:82d6c565306b9c2ca2a101d805d01c90c431d910527ab8777b4bc5b9a8210d26
|
|
3
|
+
size 6473
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4dce10f0a13ba616748b8d8b91b73c6f47e55b794388800a27977e89cf2b0eff
|
|
3
|
+
size 11931
|