@atlaskit/ds-explorations 2.3.2 → 2.4.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 +6 -0
- package/box/package.json +15 -0
- package/dist/cjs/components/box.partial.js +620 -0
- package/dist/cjs/components/inline.partial.js +182 -0
- package/dist/cjs/components/stack.partial.js +148 -0
- package/dist/cjs/index.js +21 -0
- package/dist/es2019/components/box.partial.js +614 -0
- package/dist/es2019/components/inline.partial.js +177 -0
- package/dist/es2019/components/stack.partial.js +144 -0
- package/dist/es2019/index.js +3 -0
- package/dist/esm/components/box.partial.js +617 -0
- package/dist/esm/components/inline.partial.js +177 -0
- package/dist/esm/components/stack.partial.js +143 -0
- package/dist/esm/index.js +3 -0
- package/dist/types/components/box.partial.d.ts +357 -0
- package/dist/types/components/inline.partial.d.ts +108 -0
- package/dist/types/components/stack.partial.d.ts +92 -0
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types-ts4.5/components/box.partial.d.ts +357 -0
- package/dist/types-ts4.5/components/inline.partial.d.ts +108 -0
- package/dist/types-ts4.5/components/stack.partial.d.ts +92 -0
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +6 -0
- package/examples/00-basic.tsx +22 -0
- package/examples/01-box.tsx +171 -0
- package/examples/02-text-advanced.tsx +20 -11
- package/examples/02-text.tsx +10 -15
- package/examples/03-stack.tsx +99 -0
- package/examples/04-inline.tsx +99 -0
- package/examples/05-badge.tsx +5 -9
- package/examples/06-section-message.tsx +4 -2
- package/examples/07-comment.tsx +3 -1
- package/examples/08-lozenge.tsx +4 -8
- package/examples/99-interactions.tsx +33 -49
- package/inline/package.json +15 -0
- package/package.json +5 -3
- package/report.api.md +465 -0
- package/scripts/codegen-styles.tsx +89 -16
- package/src/components/__tests__/unit/box.test.tsx +55 -0
- package/src/components/__tests__/unit/inline.test.tsx +43 -0
- package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
- package/src/components/__tests__/unit/stack.test.tsx +31 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +28 -0
- package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +28 -0
- package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
- package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +6 -0
- package/src/components/box.partial.tsx +706 -0
- package/src/components/inline.partial.tsx +218 -0
- package/src/components/stack.partial.tsx +174 -0
- package/src/components/surface-provider.tsx +1 -1
- package/src/index.tsx +6 -0
- package/stack/package.json +15 -0
- package/tmp/api-report-tmp.d.ts +451 -0
- package/tsconfig.app.json +0 -3
- package/tsconfig.dev.json +6 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import Heading from '@atlaskit/heading';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
UNSAFE_Box as Box,
|
|
7
|
+
UNSAFE_Inline as Inline,
|
|
8
|
+
UNSAFE_Stack as Stack,
|
|
9
|
+
} from '../src';
|
|
10
|
+
import { spacingScale } from '../src/internal/spacing-scale';
|
|
11
|
+
|
|
12
|
+
const flexAlignItems = ['center', 'baseline', 'flexStart', 'flexEnd'];
|
|
13
|
+
const flexJustifyContent = ['center', 'flexStart', 'flexEnd'];
|
|
14
|
+
const flexWrap = ['wrap'];
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Stack permutations
|
|
18
|
+
*/
|
|
19
|
+
export default () => {
|
|
20
|
+
return (
|
|
21
|
+
<Stack gap="space.300">
|
|
22
|
+
<Stack gap="space.300" testId="stack-spacing">
|
|
23
|
+
<Heading level="h700">Spacing</Heading>
|
|
24
|
+
<Inline gap="space.400">
|
|
25
|
+
{spacingScale.map((space) => (
|
|
26
|
+
<Stack key={space} gap="space.300">
|
|
27
|
+
<Heading level="h500">{space}</Heading>
|
|
28
|
+
|
|
29
|
+
<Box backgroundColor="neutral">
|
|
30
|
+
<Stack gap={space} alignItems="center">
|
|
31
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
32
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
33
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
34
|
+
</Stack>
|
|
35
|
+
</Box>
|
|
36
|
+
</Stack>
|
|
37
|
+
))}
|
|
38
|
+
</Inline>
|
|
39
|
+
</Stack>
|
|
40
|
+
<Stack gap="space.300" testId="stack-alignment">
|
|
41
|
+
<Heading level="h700">Alignment</Heading>
|
|
42
|
+
<Heading level="h600">alignItems</Heading>
|
|
43
|
+
<Inline gap="space.400">
|
|
44
|
+
{flexAlignItems.map((alignItemsValue) => (
|
|
45
|
+
<Stack key={alignItemsValue} gap="space.300">
|
|
46
|
+
<Heading level="h500">{alignItemsValue}</Heading>
|
|
47
|
+
|
|
48
|
+
<Box backgroundColor="neutral" display="block">
|
|
49
|
+
<Stack gap="space.200" alignItems={alignItemsValue as any}>
|
|
50
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
51
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
52
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
53
|
+
</Stack>
|
|
54
|
+
</Box>
|
|
55
|
+
</Stack>
|
|
56
|
+
))}
|
|
57
|
+
</Inline>
|
|
58
|
+
|
|
59
|
+
<Heading level="h600">justifyContent</Heading>
|
|
60
|
+
<Inline gap="space.400">
|
|
61
|
+
{flexJustifyContent.map((justifyContentValue) => (
|
|
62
|
+
<Stack key={justifyContentValue} gap="space.300">
|
|
63
|
+
<Heading level="h500">{justifyContentValue}</Heading>
|
|
64
|
+
|
|
65
|
+
<Box backgroundColor="neutral" UNSAFE_style={{ height: '200px' }}>
|
|
66
|
+
<Stack
|
|
67
|
+
gap="space.200"
|
|
68
|
+
justifyContent={justifyContentValue as any}
|
|
69
|
+
>
|
|
70
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
71
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
72
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
73
|
+
</Stack>
|
|
74
|
+
</Box>
|
|
75
|
+
</Stack>
|
|
76
|
+
))}
|
|
77
|
+
</Inline>
|
|
78
|
+
|
|
79
|
+
<Heading level="h700">Overflow</Heading>
|
|
80
|
+
<Heading level="h600">flexWrap</Heading>
|
|
81
|
+
<Inline gap="space.400">
|
|
82
|
+
{flexWrap.map((flexWrapValue) => (
|
|
83
|
+
<Stack key={flexWrapValue} gap="space.300">
|
|
84
|
+
<Heading level="h500">{flexWrapValue}</Heading>
|
|
85
|
+
|
|
86
|
+
<Box backgroundColor="neutral" UNSAFE_style={{ height: '50px' }}>
|
|
87
|
+
<Stack gap="space.200" flexWrap={flexWrapValue as any}>
|
|
88
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
89
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
90
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
91
|
+
</Stack>
|
|
92
|
+
</Box>
|
|
93
|
+
</Stack>
|
|
94
|
+
))}
|
|
95
|
+
</Inline>
|
|
96
|
+
</Stack>
|
|
97
|
+
</Stack>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import Heading from '@atlaskit/heading';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
UNSAFE_Box as Box,
|
|
7
|
+
UNSAFE_Inline as Inline,
|
|
8
|
+
UNSAFE_Stack as Stack,
|
|
9
|
+
} from '../src';
|
|
10
|
+
import { spacingScale } from '../src/internal/spacing-scale';
|
|
11
|
+
|
|
12
|
+
const flexAlignItems = ['center', 'baseline', 'flexStart', 'flexEnd'] as const;
|
|
13
|
+
const flexJustifyContent = ['center', 'flexStart', 'flexEnd'] as const;
|
|
14
|
+
const flexWrap = ['wrap'] as const;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Inline permutations
|
|
18
|
+
*/
|
|
19
|
+
export default () => {
|
|
20
|
+
return (
|
|
21
|
+
<Stack gap="space.300">
|
|
22
|
+
<Stack gap="space.300" testId="inline-spacing">
|
|
23
|
+
<Heading level="h700">Spacing</Heading>
|
|
24
|
+
<Stack gap="space.400">
|
|
25
|
+
{spacingScale.map((space) => (
|
|
26
|
+
<Inline key={space} gap="space.300">
|
|
27
|
+
<Box UNSAFE_style={{ width: 140 }}>
|
|
28
|
+
<Heading level="h500">{space}</Heading>
|
|
29
|
+
</Box>
|
|
30
|
+
|
|
31
|
+
<Box backgroundColor="neutral">
|
|
32
|
+
<Inline gap={space} alignItems="center">
|
|
33
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
34
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
35
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
36
|
+
</Inline>
|
|
37
|
+
</Box>
|
|
38
|
+
</Inline>
|
|
39
|
+
))}
|
|
40
|
+
</Stack>
|
|
41
|
+
</Stack>
|
|
42
|
+
<Stack gap="space.300" testId="inline-alignment">
|
|
43
|
+
<Heading level="h700">Alignment</Heading>
|
|
44
|
+
<Heading level="h600">alignItems</Heading>
|
|
45
|
+
<Inline gap="space.400">
|
|
46
|
+
{flexAlignItems.map((alignItemsValue) => (
|
|
47
|
+
<Stack key={alignItemsValue} gap="space.300">
|
|
48
|
+
<Heading level="h500">{alignItemsValue}</Heading>
|
|
49
|
+
<Box backgroundColor="neutral" UNSAFE_style={{ height: '100px' }}>
|
|
50
|
+
<Inline gap="space.200" alignItems={alignItemsValue}>
|
|
51
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
52
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
53
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
54
|
+
</Inline>
|
|
55
|
+
</Box>
|
|
56
|
+
</Stack>
|
|
57
|
+
))}
|
|
58
|
+
</Inline>
|
|
59
|
+
<Heading level="h600">justifyContent</Heading>
|
|
60
|
+
<Inline gap="space.400">
|
|
61
|
+
{flexJustifyContent.map((justifyContentValue) => (
|
|
62
|
+
<Stack key={justifyContentValue} gap="space.300">
|
|
63
|
+
<Heading level="h500">{justifyContentValue}</Heading>
|
|
64
|
+
|
|
65
|
+
<Box
|
|
66
|
+
display="block"
|
|
67
|
+
backgroundColor="neutral"
|
|
68
|
+
UNSAFE_style={{ width: '140px' }}
|
|
69
|
+
>
|
|
70
|
+
<Inline gap="space.200" justifyContent={justifyContentValue}>
|
|
71
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
72
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
73
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
74
|
+
</Inline>
|
|
75
|
+
</Box>
|
|
76
|
+
</Stack>
|
|
77
|
+
))}
|
|
78
|
+
</Inline>
|
|
79
|
+
|
|
80
|
+
<Heading level="h700">Overflow</Heading>
|
|
81
|
+
<Heading level="h600">flexWrap</Heading>
|
|
82
|
+
<Inline gap="space.400">
|
|
83
|
+
{flexWrap.map((flexWrapValue) => (
|
|
84
|
+
<Stack key={flexWrapValue} gap="space.300">
|
|
85
|
+
<Heading level="h500">{flexWrapValue}</Heading>
|
|
86
|
+
<Box backgroundColor="neutral" UNSAFE_style={{ width: '50px' }}>
|
|
87
|
+
<Inline gap="space.200" flexWrap={flexWrapValue as any}>
|
|
88
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
89
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
90
|
+
<Box padding="space.100" backgroundColor="success.bold" />
|
|
91
|
+
</Inline>
|
|
92
|
+
</Box>
|
|
93
|
+
</Stack>
|
|
94
|
+
))}
|
|
95
|
+
</Inline>
|
|
96
|
+
</Stack>
|
|
97
|
+
</Stack>
|
|
98
|
+
);
|
|
99
|
+
};
|
package/examples/05-badge.tsx
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import Badge from '@atlaskit/badge';
|
|
4
|
-
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
4
|
|
|
5
|
+
import { UNSAFE_Box as Box } from '../src';
|
|
6
6
|
import Text from '../src/components/text.partial';
|
|
7
7
|
|
|
8
|
-
const containerStyles = xcss({
|
|
9
|
-
borderRadius: 'border.radius.200',
|
|
10
|
-
display: 'inlineFlex',
|
|
11
|
-
lineHeight: '16px',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
8
|
export default () => {
|
|
15
9
|
return (
|
|
16
10
|
<>
|
|
17
11
|
<Badge>{8}</Badge>
|
|
18
12
|
<Box
|
|
19
|
-
|
|
20
|
-
backgroundColor="
|
|
13
|
+
borderRadius="badge"
|
|
14
|
+
backgroundColor="neutral"
|
|
15
|
+
display="inlineFlex"
|
|
21
16
|
paddingInline="space.075"
|
|
17
|
+
UNSAFE_style={{ lineHeight: '16px' }}
|
|
22
18
|
>
|
|
23
19
|
<Text fontSize="size.075">8</Text>
|
|
24
20
|
</Box>
|
|
@@ -6,12 +6,14 @@ import Button from '@atlaskit/button';
|
|
|
6
6
|
import __noop from '@atlaskit/ds-lib/noop';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
8
|
import InfoIcon from '@atlaskit/icon/glyph/info';
|
|
9
|
-
import
|
|
9
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
10
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
10
11
|
import SectionMessage, {
|
|
11
12
|
SectionMessageAction,
|
|
12
13
|
} from '@atlaskit/section-message';
|
|
13
14
|
import { token } from '@atlaskit/tokens';
|
|
14
15
|
|
|
16
|
+
import { UNSAFE_Box as Box } from '../src';
|
|
15
17
|
import Text from '../src/components/text.partial';
|
|
16
18
|
|
|
17
19
|
export default () => {
|
|
@@ -20,7 +22,7 @@ export default () => {
|
|
|
20
22
|
<Box
|
|
21
23
|
paddingBlock="space.200"
|
|
22
24
|
paddingInline="space.200"
|
|
23
|
-
backgroundColor="
|
|
25
|
+
backgroundColor="information"
|
|
24
26
|
>
|
|
25
27
|
<Inline space="space.200">
|
|
26
28
|
<InfoIcon
|
package/examples/07-comment.tsx
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
|
|
4
4
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
-
import
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
6
7
|
|
|
8
|
+
import { UNSAFE_Box as Box } from '../src';
|
|
7
9
|
import Text from '../src/components/text.partial';
|
|
8
10
|
|
|
9
11
|
const Author = ({ children }: any) => {
|
package/examples/08-lozenge.tsx
CHANGED
|
@@ -2,22 +2,18 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
|
|
4
4
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
-
import
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
6
|
|
|
7
|
-
import { UNSAFE_Text as Text } from '../src';
|
|
8
|
-
|
|
9
|
-
const boxStyles = xcss({
|
|
10
|
-
borderRadius: 'border.radius',
|
|
11
|
-
});
|
|
7
|
+
import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '../src';
|
|
12
8
|
|
|
13
9
|
export default () => {
|
|
14
10
|
return (
|
|
15
11
|
<Inline space="space.200">
|
|
16
12
|
<Lozenge>Default</Lozenge>
|
|
17
13
|
<Box
|
|
14
|
+
backgroundColor="neutral"
|
|
15
|
+
borderRadius="normal"
|
|
18
16
|
as="span"
|
|
19
|
-
xcss={boxStyles}
|
|
20
|
-
backgroundColor="color.background.neutral"
|
|
21
17
|
paddingInline="space.050"
|
|
22
18
|
>
|
|
23
19
|
<Text
|
|
@@ -1,55 +1,42 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
|
|
6
6
|
import Button from '@atlaskit/button';
|
|
7
7
|
import { Code } from '@atlaskit/code';
|
|
8
8
|
import FocusRing from '@atlaskit/focus-ring';
|
|
9
9
|
import Heading from '@atlaskit/heading';
|
|
10
10
|
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
11
|
-
import
|
|
11
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
12
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
12
13
|
import Textfield from '@atlaskit/textfield';
|
|
14
|
+
import { B200 } from '@atlaskit/theme/colors';
|
|
13
15
|
import { token } from '@atlaskit/tokens';
|
|
14
16
|
|
|
15
17
|
import {
|
|
18
|
+
UNSAFE_Box as Box,
|
|
16
19
|
UNSAFE_InteractionSurface as InteractionSurface,
|
|
17
20
|
UNSAFE_Text as Text,
|
|
18
21
|
} from '../src';
|
|
19
22
|
|
|
20
|
-
const
|
|
21
|
-
width: 'size.500',
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const fieldsetStyles = xcss({
|
|
23
|
+
const fieldsetStyles = css({
|
|
25
24
|
flex: '1 1 100%',
|
|
26
|
-
borderStyle: 'solid',
|
|
27
|
-
borderWidth: 'border.width',
|
|
28
|
-
borderColor: 'color.border',
|
|
29
25
|
':hover': {
|
|
30
|
-
backgroundColor: 'color.background.input.hovered',
|
|
26
|
+
backgroundColor: token('color.background.input.hovered', '#bbb'),
|
|
31
27
|
},
|
|
32
28
|
':invalid': {
|
|
33
|
-
borderColor: 'color.border.danger',
|
|
34
|
-
},
|
|
35
|
-
':focus': {
|
|
36
|
-
backgroundColor: 'color.background.input',
|
|
37
|
-
borderColor: 'color.border.focused',
|
|
29
|
+
borderColor: token('color.border.danger', 'red'),
|
|
38
30
|
},
|
|
39
|
-
':focus-within': {
|
|
40
|
-
backgroundColor: 'color.background.input',
|
|
41
|
-
borderColor: 'color.border.focused',
|
|
31
|
+
':focus, :focus-within': {
|
|
32
|
+
backgroundColor: token('color.background.input', '#FAFBFC'),
|
|
33
|
+
borderColor: token('color.border.focused', B200),
|
|
42
34
|
},
|
|
43
35
|
});
|
|
44
36
|
|
|
45
|
-
const focusRingBoxStyles = xcss({
|
|
46
|
-
borderRadius: 'border.radius',
|
|
47
|
-
position: 'relative',
|
|
48
|
-
});
|
|
49
|
-
|
|
50
37
|
export default () => {
|
|
51
38
|
return (
|
|
52
|
-
<Box
|
|
39
|
+
<Box width="size.500" padding="space.100" testId="all">
|
|
53
40
|
<Stack space="space.200">
|
|
54
41
|
<Heading level="h400">Current ADS Buttons</Heading>
|
|
55
42
|
<Inline space="space.200">
|
|
@@ -61,18 +48,13 @@ export default () => {
|
|
|
61
48
|
Buttons with <Code>InteractionSurface</Code>
|
|
62
49
|
</Heading>
|
|
63
50
|
<Inline space="space.200" testId="buttons">
|
|
64
|
-
{(
|
|
65
|
-
[
|
|
66
|
-
'color.background.brand.bold',
|
|
67
|
-
'color.background.neutral',
|
|
68
|
-
'color.background.warning.bold',
|
|
69
|
-
] as const
|
|
70
|
-
).map((app) => (
|
|
51
|
+
{(['brand.bold', 'neutral', 'warning.bold'] as const).map((app) => (
|
|
71
52
|
<FocusRing key={app}>
|
|
72
53
|
<Box
|
|
73
54
|
as="button"
|
|
74
55
|
onClick={() => console.log('hello')}
|
|
75
|
-
|
|
56
|
+
borderRadius="normal"
|
|
57
|
+
position="relative"
|
|
76
58
|
paddingInline="space.150"
|
|
77
59
|
backgroundColor={app}
|
|
78
60
|
>
|
|
@@ -97,10 +79,11 @@ export default () => {
|
|
|
97
79
|
<FocusRing>
|
|
98
80
|
<Box
|
|
99
81
|
as="button"
|
|
100
|
-
backgroundColor="
|
|
82
|
+
backgroundColor="brand.bold"
|
|
101
83
|
onClick={() => console.log('hello')}
|
|
84
|
+
borderRadius="normal"
|
|
85
|
+
position="relative"
|
|
102
86
|
padding="space.050"
|
|
103
|
-
xcss={focusRingBoxStyles}
|
|
104
87
|
>
|
|
105
88
|
<InteractionSurface>
|
|
106
89
|
<WarningIcon
|
|
@@ -114,9 +97,10 @@ export default () => {
|
|
|
114
97
|
<FocusRing>
|
|
115
98
|
<Box
|
|
116
99
|
as="button"
|
|
117
|
-
backgroundColor="
|
|
100
|
+
backgroundColor="neutral"
|
|
118
101
|
onClick={() => console.log('hello')}
|
|
119
|
-
|
|
102
|
+
borderRadius="normal"
|
|
103
|
+
position="relative"
|
|
120
104
|
padding="space.050"
|
|
121
105
|
>
|
|
122
106
|
<InteractionSurface>
|
|
@@ -127,9 +111,10 @@ export default () => {
|
|
|
127
111
|
<FocusRing>
|
|
128
112
|
<Box
|
|
129
113
|
as="button"
|
|
130
|
-
backgroundColor="
|
|
114
|
+
backgroundColor="warning.bold"
|
|
131
115
|
onClick={() => console.log('hello')}
|
|
132
|
-
|
|
116
|
+
borderRadius="normal"
|
|
117
|
+
position="relative"
|
|
133
118
|
padding="space.050"
|
|
134
119
|
>
|
|
135
120
|
<InteractionSurface>
|
|
@@ -146,20 +131,15 @@ export default () => {
|
|
|
146
131
|
Progress Indicator with <Code>InteractionSurface</Code>
|
|
147
132
|
</Heading>
|
|
148
133
|
<Inline space="space.200" testId="progress-indicators">
|
|
149
|
-
{(
|
|
150
|
-
[
|
|
151
|
-
'color.background.brand.bold',
|
|
152
|
-
'color.background.neutral',
|
|
153
|
-
'color.background.warning.bold',
|
|
154
|
-
] as const
|
|
155
|
-
).map((app) => (
|
|
134
|
+
{(['brand.bold', 'neutral', 'warning.bold'] as const).map((app) => (
|
|
156
135
|
<FocusRing>
|
|
157
136
|
<Box
|
|
158
137
|
key={app}
|
|
159
138
|
as="button"
|
|
160
139
|
backgroundColor={app}
|
|
161
140
|
onClick={() => console.log('hello')}
|
|
162
|
-
|
|
141
|
+
borderRadius="rounded"
|
|
142
|
+
position="relative"
|
|
163
143
|
padding="space.050"
|
|
164
144
|
>
|
|
165
145
|
<InteractionSurface>
|
|
@@ -174,10 +154,14 @@ export default () => {
|
|
|
174
154
|
<Textfield />
|
|
175
155
|
<Box
|
|
176
156
|
as="fieldset"
|
|
157
|
+
borderRadius="normal"
|
|
158
|
+
borderStyle="solid"
|
|
159
|
+
borderWidth="2px"
|
|
177
160
|
padding="space.100"
|
|
178
161
|
tabIndex={-1}
|
|
179
|
-
|
|
180
|
-
|
|
162
|
+
borderColor="color.border"
|
|
163
|
+
backgroundColor="input"
|
|
164
|
+
css={fieldsetStyles}
|
|
181
165
|
>
|
|
182
166
|
<input
|
|
183
167
|
id="textfield"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/ds-explorations/inline",
|
|
3
|
+
"main": "../dist/cjs/components/inline.partial.js",
|
|
4
|
+
"module": "../dist/esm/components/inline.partial.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/inline.partial.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/components/inline.partial.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/components/inline.partial.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ds-explorations",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "An experimental package for exploration and validation of spacing / typography foundations.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"prepare": "yarn ak-postbuild"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/primitives": "^1.6.0",
|
|
29
28
|
"@atlaskit/tokens": "^1.25.0",
|
|
30
29
|
"@babel/runtime": "^7.0.0",
|
|
31
30
|
"@emotion/react": "^11.7.1",
|
|
@@ -74,7 +73,10 @@
|
|
|
74
73
|
},
|
|
75
74
|
"af:exports": {
|
|
76
75
|
".": "./src/index.tsx",
|
|
77
|
-
"./
|
|
76
|
+
"./box": "./src/components/box.partial.tsx",
|
|
77
|
+
"./text": "./src/components/text.partial.tsx",
|
|
78
|
+
"./stack": "./src/components/stack.partial.tsx",
|
|
79
|
+
"./inline": "./src/components/inline.partial.tsx"
|
|
78
80
|
},
|
|
79
81
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
80
82
|
"homepage": "https://atlaskit.atlassian.com"
|