@atlaskit/ds-explorations 4.0.0 → 4.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 +374 -361
- package/README.md +4 -3
- package/afm-jira/tsconfig.json +24 -0
- package/dist/cjs/components/interaction-surface.partial.js +128 -128
- package/dist/cjs/internal/color-map.js +1 -1
- package/dist/es2019/components/interaction-surface.partial.js +128 -128
- package/dist/es2019/internal/color-map.js +1 -1
- package/dist/esm/components/interaction-surface.partial.js +128 -128
- package/dist/esm/internal/color-map.js +1 -1
- package/dist/types/components/interaction-surface.partial.d.ts +1 -1
- package/dist/types/internal/color-map.d.ts +1 -1
- package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +1 -1
- package/dist/types-ts4.5/internal/color-map.d.ts +1 -1
- package/docs/01-basic.tsx +11 -13
- package/examples/99-interactions.tsx +173 -172
- package/package.json +72 -80
- package/report.api.md +127 -126
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +540 -540
- package/scripts/__tests__/codegen.test.tsx +15 -17
- package/scripts/codegen-styles.tsx +22 -27
- package/scripts/color-codegen-template.tsx +69 -82
- package/scripts/color-map-template.tsx +24 -29
- package/scripts/dimension-codegen-template.tsx +32 -35
- package/scripts/interaction-codegen.tsx +61 -74
- package/scripts/misc-codegen-template.tsx +23 -25
- package/scripts/utils.tsx +30 -34
- package/src/components/__tests__/unit/interaction-suface.test.tsx +60 -60
- package/src/components/interaction-surface.partial.tsx +412 -416
- package/src/components/surface-provider.tsx +1 -1
- package/src/components/types.tsx +10 -10
- package/src/constants.tsx +9 -9
- package/src/internal/color-map.tsx +28 -28
- package/src/internal/role-to-element.tsx +21 -21
- package/tsconfig.app.json +44 -44
- package/tsconfig.dev.json +71 -71
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7d0040ba6b7bc80f7ebca42192d566ab>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
8
|
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
@@ -18,7 +18,7 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
|
18
18
|
* </Box>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
declare const InteractionSurface: ({ appearance, children, testId
|
|
21
|
+
declare const InteractionSurface: ({ appearance, children, testId }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
22
22
|
export default InteractionSurface;
|
|
23
23
|
declare const backgroundHoverColorMap: {
|
|
24
24
|
'accent.lime.subtlest': import("@emotion/react").SerializedStyles;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7d0040ba6b7bc80f7ebca42192d566ab>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
8
|
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
|
@@ -18,7 +18,7 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
|
18
18
|
* </Box>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
declare const InteractionSurface: ({ appearance, children, testId
|
|
21
|
+
declare const InteractionSurface: ({ appearance, children, testId }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
22
22
|
export default InteractionSurface;
|
|
23
23
|
declare const backgroundHoverColorMap: {
|
|
24
24
|
'accent.lime.subtlest': import("@emotion/react").SerializedStyles;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7d0040ba6b7bc80f7ebca42192d566ab>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
8
|
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
|
|
9
9
|
*/
|
package/docs/01-basic.tsx
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
AtlassianInternalWarning,
|
|
5
|
-
DevPreviewWarning,
|
|
6
|
-
md,
|
|
7
|
-
} from '@atlaskit/docs';
|
|
3
|
+
import { AtlassianInternalWarning, DevPreviewWarning, md } from '@atlaskit/docs';
|
|
8
4
|
import { token } from '@atlaskit/tokens';
|
|
9
5
|
|
|
10
6
|
export default md`
|
|
11
7
|
${(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
<>
|
|
9
|
+
{/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */}
|
|
10
|
+
<div style={{ marginBottom: token('space.100', '8px') }}>
|
|
11
|
+
<AtlassianInternalWarning />
|
|
12
|
+
</div>
|
|
13
|
+
{/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */}
|
|
14
|
+
<div style={{ marginTop: token('space.100', '8px') }}>
|
|
15
|
+
<DevPreviewWarning />
|
|
16
|
+
</div>
|
|
17
|
+
</>
|
|
20
18
|
)}`;
|
|
@@ -12,184 +12,185 @@ import { Box, Inline, Stack, Text, xcss } from '@atlaskit/primitives';
|
|
|
12
12
|
import Textfield from '@atlaskit/textfield';
|
|
13
13
|
import { token } from '@atlaskit/tokens';
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
UNSAFE_InteractionSurface as InteractionSurface,
|
|
17
|
-
} from '../src';
|
|
15
|
+
import { UNSAFE_InteractionSurface as InteractionSurface } from '../src';
|
|
18
16
|
|
|
19
17
|
const fieldsetStyles = xcss({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
flex: '1 1 100%',
|
|
19
|
+
borderStyle: 'solid',
|
|
20
|
+
borderWidth: 'border.width',
|
|
21
|
+
borderColor: 'color.border',
|
|
22
|
+
':hover': {
|
|
23
|
+
backgroundColor: 'color.background.input.hovered',
|
|
24
|
+
},
|
|
25
|
+
':invalid': {
|
|
26
|
+
borderColor: 'color.border.danger',
|
|
27
|
+
},
|
|
28
|
+
':focus': {
|
|
29
|
+
backgroundColor: 'color.background.input',
|
|
30
|
+
borderColor: 'color.border.focused',
|
|
31
|
+
},
|
|
32
|
+
':focus-within': {
|
|
33
|
+
backgroundColor: 'color.background.input',
|
|
34
|
+
borderColor: 'color.border.focused',
|
|
35
|
+
},
|
|
38
36
|
});
|
|
39
37
|
|
|
40
38
|
const focusRingBoxStyles = xcss({
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
borderRadius: 'border.radius',
|
|
40
|
+
position: 'relative',
|
|
43
41
|
});
|
|
44
42
|
|
|
45
43
|
export default () => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
44
|
+
return (
|
|
45
|
+
<Box padding="space.100" testId="all">
|
|
46
|
+
<Stack space="space.200">
|
|
47
|
+
<Heading level="h400">Current ADS Buttons</Heading>
|
|
48
|
+
<Inline space="space.200">
|
|
49
|
+
<Button appearance="primary">brand.bold</Button>
|
|
50
|
+
<Button appearance="default">neutral</Button>
|
|
51
|
+
<Button appearance="warning">warning.bold</Button>
|
|
52
|
+
</Inline>
|
|
53
|
+
<Heading level="h400">
|
|
54
|
+
Buttons with <Code>InteractionSurface</Code>
|
|
55
|
+
</Heading>
|
|
56
|
+
<Inline space="space.200" testId="buttons">
|
|
57
|
+
{(
|
|
58
|
+
[
|
|
59
|
+
'color.background.brand.bold',
|
|
60
|
+
'color.background.neutral',
|
|
61
|
+
'color.background.warning.bold',
|
|
62
|
+
] as const
|
|
63
|
+
).map((app) => (
|
|
64
|
+
<FocusRing key={app}>
|
|
65
|
+
<Box
|
|
66
|
+
as="button"
|
|
67
|
+
onClick={() => console.log('hello')}
|
|
68
|
+
xcss={focusRingBoxStyles}
|
|
69
|
+
paddingInline="space.150"
|
|
70
|
+
backgroundColor={app}
|
|
71
|
+
>
|
|
72
|
+
<InteractionSurface>
|
|
73
|
+
<Text align="center" weight="medium">
|
|
74
|
+
{app}
|
|
75
|
+
</Text>
|
|
76
|
+
</InteractionSurface>
|
|
77
|
+
</Box>
|
|
78
|
+
</FocusRing>
|
|
79
|
+
))}
|
|
80
|
+
</Inline>
|
|
81
|
+
<Heading level="h400">
|
|
82
|
+
Icon Buttons with <Code>InteractionSurface</Code>
|
|
83
|
+
</Heading>
|
|
84
|
+
<Inline space="space.200" testId="icon-buttons">
|
|
85
|
+
<FocusRing>
|
|
86
|
+
<Box
|
|
87
|
+
as="button"
|
|
88
|
+
backgroundColor="color.background.brand.bold"
|
|
89
|
+
onClick={() => console.log('hello')}
|
|
90
|
+
padding="space.050"
|
|
91
|
+
xcss={focusRingBoxStyles}
|
|
92
|
+
>
|
|
93
|
+
<InteractionSurface>
|
|
94
|
+
<WarningIcon
|
|
95
|
+
label="icon button"
|
|
96
|
+
primaryColor={token('color.icon.inverse')}
|
|
97
|
+
secondaryColor={token('color.background.brand.bold')}
|
|
98
|
+
/>
|
|
99
|
+
</InteractionSurface>
|
|
100
|
+
</Box>
|
|
101
|
+
</FocusRing>
|
|
102
|
+
<FocusRing>
|
|
103
|
+
<Box
|
|
104
|
+
as="button"
|
|
105
|
+
backgroundColor="color.background.neutral"
|
|
106
|
+
onClick={() => console.log('hello')}
|
|
107
|
+
xcss={focusRingBoxStyles}
|
|
108
|
+
padding="space.050"
|
|
109
|
+
>
|
|
110
|
+
<InteractionSurface>
|
|
111
|
+
<WarningIcon label="icon button" />
|
|
112
|
+
</InteractionSurface>
|
|
113
|
+
</Box>
|
|
114
|
+
</FocusRing>
|
|
115
|
+
<FocusRing>
|
|
116
|
+
<Box
|
|
117
|
+
as="button"
|
|
118
|
+
backgroundColor="color.background.warning.bold"
|
|
119
|
+
onClick={() => console.log('hello')}
|
|
120
|
+
xcss={focusRingBoxStyles}
|
|
121
|
+
padding="space.050"
|
|
122
|
+
>
|
|
123
|
+
<InteractionSurface>
|
|
124
|
+
<WarningIcon
|
|
125
|
+
label="icon button"
|
|
126
|
+
primaryColor={token('color.icon.warning.inverse')}
|
|
127
|
+
secondaryColor={token('color.background.warning.bold')}
|
|
128
|
+
/>
|
|
129
|
+
</InteractionSurface>
|
|
130
|
+
</Box>
|
|
131
|
+
</FocusRing>
|
|
132
|
+
</Inline>
|
|
133
|
+
<Heading level="h400">
|
|
134
|
+
Progress Indicator with <Code>InteractionSurface</Code>
|
|
135
|
+
</Heading>
|
|
136
|
+
<Inline space="space.200" testId="progress-indicators">
|
|
137
|
+
{(
|
|
138
|
+
[
|
|
139
|
+
'color.background.brand.bold',
|
|
140
|
+
'color.background.neutral',
|
|
141
|
+
'color.background.warning.bold',
|
|
142
|
+
] as const
|
|
143
|
+
).map((app) => (
|
|
144
|
+
<FocusRing>
|
|
145
|
+
<Box
|
|
146
|
+
key={app}
|
|
147
|
+
as="button"
|
|
148
|
+
backgroundColor={app}
|
|
149
|
+
onClick={() => console.log('hello')}
|
|
150
|
+
xcss={focusRingBoxStyles}
|
|
151
|
+
padding="space.050"
|
|
152
|
+
aria-label="progress indicator"
|
|
153
|
+
>
|
|
154
|
+
<InteractionSurface>
|
|
155
|
+
<Fragment />
|
|
156
|
+
</InteractionSurface>
|
|
157
|
+
</Box>
|
|
158
|
+
</FocusRing>
|
|
159
|
+
))}
|
|
160
|
+
</Inline>
|
|
161
|
+
<Heading level="h400">Textfield / input spikes</Heading>
|
|
162
|
+
<Stack space="space.200">
|
|
163
|
+
<label htmlFor="textfield">Textfield</label>
|
|
164
|
+
<Textfield id="textfield" />
|
|
165
|
+
<label htmlFor="input">Input</label>
|
|
166
|
+
<Box
|
|
167
|
+
as="fieldset"
|
|
168
|
+
padding="space.100"
|
|
169
|
+
tabIndex={-1}
|
|
170
|
+
backgroundColor="color.background.input"
|
|
171
|
+
xcss={fieldsetStyles}
|
|
172
|
+
>
|
|
173
|
+
<input
|
|
174
|
+
id="input"
|
|
175
|
+
pattern="\d+"
|
|
176
|
+
style={{
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
178
|
+
padding: 0,
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
180
|
+
border: 'none',
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
182
|
+
fontSize: 14,
|
|
183
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
184
|
+
background: 'transparent',
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
186
|
+
appearance: 'none',
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
188
|
+
outline: 'none',
|
|
189
|
+
}}
|
|
190
|
+
/>
|
|
191
|
+
</Box>
|
|
192
|
+
</Stack>
|
|
193
|
+
</Stack>
|
|
194
|
+
</Box>
|
|
195
|
+
);
|
|
195
196
|
};
|
package/package.json
CHANGED
|
@@ -1,81 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"af:exports": {
|
|
77
|
-
".": "./src/index.tsx"
|
|
78
|
-
},
|
|
79
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
80
|
-
"homepage": "https://atlaskit.atlassian.com"
|
|
81
|
-
}
|
|
2
|
+
"name": "@atlaskit/ds-explorations",
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "DEPRECATED. Use @atlaskit/primitives. An experimental package for exploration and validation of spacing / typography foundations.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Design System Team",
|
|
19
|
+
"inPublicMirror": false,
|
|
20
|
+
"releaseModel": "continuous",
|
|
21
|
+
"runReact18": true
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"ak-postbuild": "cd ../../../ && yarn build @atlassian/codegen -d cjs,esm,es2019 && yarn build @atlaskit/tokens && cd packages/design-system/ds-explorations && yarn codegen-styles",
|
|
25
|
+
"codegen-styles": "ts-node --project ../../../tsconfig.node.json ./scripts/codegen-styles",
|
|
26
|
+
"prepare": "yarn ak-postbuild"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@atlaskit/tokens": "^1.50.0",
|
|
30
|
+
"@babel/runtime": "^7.0.0",
|
|
31
|
+
"@emotion/react": "^11.7.1"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@af/formatting": "*",
|
|
38
|
+
"@atlaskit/ds-lib": "*",
|
|
39
|
+
"@atlaskit/primitives": "^7.2.0",
|
|
40
|
+
"@atlaskit/textfield": "^6.3.0",
|
|
41
|
+
"@atlaskit/visual-regression": "*",
|
|
42
|
+
"@atlassian/codegen": "^0.1.0",
|
|
43
|
+
"@testing-library/react": "^12.1.5",
|
|
44
|
+
"fs-extra": "^4.0.2",
|
|
45
|
+
"react-dom": "^16.8.0",
|
|
46
|
+
"ts-node": "^10.9.1",
|
|
47
|
+
"typescript": "~5.4.2",
|
|
48
|
+
"wait-for-expect": "^1.2.0"
|
|
49
|
+
},
|
|
50
|
+
"techstack": {
|
|
51
|
+
"@atlassian/frontend": {
|
|
52
|
+
"import-structure": "atlassian-conventions",
|
|
53
|
+
"circular-dependencies": "file-and-folder-level"
|
|
54
|
+
},
|
|
55
|
+
"@repo/internal": {
|
|
56
|
+
"dom-events": "use-bind-event-listener",
|
|
57
|
+
"design-system": "v1",
|
|
58
|
+
"styling": ["static", "emotion"],
|
|
59
|
+
"ui-components": "lite-mode",
|
|
60
|
+
"analytics": "analytics-next",
|
|
61
|
+
"deprecation": "no-deprecated-imports"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"typesVersions": {
|
|
65
|
+
">=4.5 <4.9": {
|
|
66
|
+
"*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"af:exports": {
|
|
70
|
+
".": "./src/index.tsx"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://atlaskit.atlassian.com"
|
|
73
|
+
}
|