@atlaskit/primitives 19.0.1 → 19.0.2
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/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/box.compiled.css +1 -1
- package/dist/cjs/compiled/components/box.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/compiled/components/text.js +2 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/box.js +2 -0
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/responsive/constants.js +2 -0
- package/dist/cjs/utils/has-text-ancestor-context.js +1 -0
- package/dist/cjs/xcss/style-maps.partial.js +27 -7
- package/dist/cjs/xcss/xcss.js +2 -0
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/box.compiled.css +1 -1
- package/dist/es2019/compiled/components/box.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/text.js +2 -0
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/box.js +2 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/responsive/constants.js +2 -0
- package/dist/es2019/utils/has-text-ancestor-context.js +1 -0
- package/dist/es2019/xcss/style-maps.partial.js +27 -7
- package/dist/es2019/xcss/xcss.js +2 -0
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/box.compiled.css +1 -1
- package/dist/esm/compiled/components/box.js +1 -1
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/compiled/components/text.js +2 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/box.js +2 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/responsive/constants.js +2 -0
- package/dist/esm/utils/has-text-ancestor-context.js +1 -0
- package/dist/esm/xcss/style-maps.partial.js +27 -7
- package/dist/esm/xcss/xcss.js +2 -0
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/xcss/style-maps.partial.d.ts +26 -6
- package/dist/types-ts4.5/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +26 -6
- package/package.json +12 -36
- package/primitives.docs.tsx +359 -356
package/primitives.docs.tsx
CHANGED
|
@@ -1,393 +1,396 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
4
4
|
|
|
5
|
-
const documentation:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: 'A primitive Anchor component for navigation links with compiled styling support.',
|
|
9
|
-
status: 'general-availability',
|
|
10
|
-
import: {
|
|
5
|
+
const documentation: StructuredContentSource = {
|
|
6
|
+
components: [
|
|
7
|
+
{
|
|
11
8
|
name: 'Anchor',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
usageGuidelines: [
|
|
18
|
-
'Use for navigation links to other pages or sections',
|
|
19
|
-
'Leverage compiled styling for performance',
|
|
20
|
-
'Use appropriate link styling and states',
|
|
21
|
-
'Consider link behavior and target attributes',
|
|
22
|
-
],
|
|
23
|
-
contentGuidelines: [
|
|
24
|
-
'Use clear, descriptive link text',
|
|
25
|
-
'Maintain consistent link styling',
|
|
26
|
-
'Consider link context and destination',
|
|
27
|
-
],
|
|
28
|
-
accessibilityGuidelines: [
|
|
29
|
-
'Provide clear link text that describes the destination',
|
|
30
|
-
'Use appropriate ARIA attributes for links',
|
|
31
|
-
'Ensure keyboard navigation support',
|
|
32
|
-
'Provide clear visual indicators for link state',
|
|
33
|
-
'Use descriptive link text for screen readers',
|
|
34
|
-
],
|
|
35
|
-
examples: [
|
|
36
|
-
{
|
|
9
|
+
description:
|
|
10
|
+
'A primitive Anchor component for navigation links with compiled styling support.',
|
|
11
|
+
status: 'general-availability',
|
|
12
|
+
import: {
|
|
37
13
|
name: 'Anchor',
|
|
38
|
-
|
|
39
|
-
|
|
14
|
+
package: '@atlaskit/primitives/compiled',
|
|
15
|
+
type: 'named',
|
|
16
|
+
packagePath: path.resolve(__dirname),
|
|
17
|
+
packageJson: require('./package.json'),
|
|
40
18
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
19
|
+
usageGuidelines: [
|
|
20
|
+
'Use for navigation links to other pages or sections',
|
|
21
|
+
'Leverage compiled styling for performance',
|
|
22
|
+
'Use appropriate link styling and states',
|
|
23
|
+
'Consider link behavior and target attributes',
|
|
24
|
+
],
|
|
25
|
+
contentGuidelines: [
|
|
26
|
+
'Use clear, descriptive link text',
|
|
27
|
+
'Maintain consistent link styling',
|
|
28
|
+
'Consider link context and destination',
|
|
29
|
+
],
|
|
30
|
+
accessibilityGuidelines: [
|
|
31
|
+
'Provide clear link text that describes the destination',
|
|
32
|
+
'Use appropriate ARIA attributes for links',
|
|
33
|
+
'Ensure keyboard navigation support',
|
|
34
|
+
'Provide clear visual indicators for link state',
|
|
35
|
+
'Use descriptive link text for screen readers',
|
|
36
|
+
],
|
|
37
|
+
examples: [
|
|
38
|
+
{
|
|
39
|
+
name: 'Anchor',
|
|
40
|
+
description: 'Anchor example',
|
|
41
|
+
source: path.resolve(__dirname, './examples/ai/anchor.tsx'),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
keywords: ['anchor', 'link', 'navigation', 'href', 'url', 'primitive', 'compiled'],
|
|
45
|
+
categories: ['primitive'],
|
|
56
46
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
contentGuidelines: [
|
|
64
|
-
'Use for appropriate layout bleeding',
|
|
65
|
-
'Maintain consistent bleeding patterns',
|
|
66
|
-
'Consider content hierarchy and visual flow',
|
|
67
|
-
],
|
|
68
|
-
examples: [
|
|
69
|
-
{
|
|
47
|
+
{
|
|
48
|
+
name: 'Bleed',
|
|
49
|
+
description:
|
|
50
|
+
'A primitive Bleed component for extending content beyond container boundaries with compiled styling support.',
|
|
51
|
+
status: 'general-availability',
|
|
52
|
+
import: {
|
|
70
53
|
name: 'Bleed',
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
package: '@atlaskit/primitives/compiled',
|
|
55
|
+
type: 'named',
|
|
56
|
+
packagePath: path.resolve(__dirname),
|
|
57
|
+
packageJson: require('./package.json'),
|
|
73
58
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
usageGuidelines: [
|
|
60
|
+
'Use for extending content beyond container margins',
|
|
61
|
+
'Leverage compiled styling for performance',
|
|
62
|
+
'Use appropriate bleed directions and amounts',
|
|
63
|
+
'Consider responsive behavior and container constraints',
|
|
64
|
+
],
|
|
65
|
+
contentGuidelines: [
|
|
66
|
+
'Use for appropriate layout bleeding',
|
|
67
|
+
'Maintain consistent bleeding patterns',
|
|
68
|
+
'Consider content hierarchy and visual flow',
|
|
69
|
+
],
|
|
70
|
+
examples: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Bleed',
|
|
73
|
+
description: 'Bleed example',
|
|
74
|
+
source: path.resolve(__dirname, './examples/ai/bleed.tsx'),
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
keywords: ['bleed', 'layout', 'margin', 'spacing', 'edge', 'primitive', 'compiled'],
|
|
78
|
+
categories: ['primitive'],
|
|
89
79
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
contentGuidelines: [
|
|
97
|
-
'Use for appropriate layout purposes',
|
|
98
|
-
'Maintain consistent spacing and layout patterns',
|
|
99
|
-
'Consider accessibility and semantic structure',
|
|
100
|
-
],
|
|
101
|
-
examples: [
|
|
102
|
-
{
|
|
80
|
+
{
|
|
81
|
+
name: 'Box',
|
|
82
|
+
description:
|
|
83
|
+
'A primitive Box component for layout and container purposes with compiled styling support.',
|
|
84
|
+
status: 'general-availability',
|
|
85
|
+
import: {
|
|
103
86
|
name: 'Box',
|
|
104
|
-
|
|
105
|
-
|
|
87
|
+
package: '@atlaskit/primitives/compiled',
|
|
88
|
+
type: 'named',
|
|
89
|
+
packagePath: path.resolve(__dirname),
|
|
90
|
+
packageJson: require('./package.json'),
|
|
106
91
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
92
|
+
usageGuidelines: [
|
|
93
|
+
'Use for basic layout and container needs',
|
|
94
|
+
'Leverage compiled styling for performance',
|
|
95
|
+
'Use appropriate spacing and layout props',
|
|
96
|
+
'Consider semantic HTML when possible',
|
|
97
|
+
],
|
|
98
|
+
contentGuidelines: [
|
|
99
|
+
'Use for appropriate layout purposes',
|
|
100
|
+
'Maintain consistent spacing and layout patterns',
|
|
101
|
+
'Consider accessibility and semantic structure',
|
|
102
|
+
],
|
|
103
|
+
examples: [
|
|
104
|
+
{
|
|
105
|
+
name: 'Box',
|
|
106
|
+
description: 'Box example',
|
|
107
|
+
source: path.resolve(__dirname, './examples/ai/box.tsx'),
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
keywords: ['box', 'container', 'div', 'layout', 'primitive', 'compiled'],
|
|
111
|
+
categories: ['primitive'],
|
|
121
112
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
'
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
],
|
|
128
|
-
contentGuidelines: [
|
|
129
|
-
'Use for appropriate flex layout',
|
|
130
|
-
'Maintain consistent flex patterns',
|
|
131
|
-
'Consider content alignment and distribution',
|
|
132
|
-
],
|
|
133
|
-
examples: [
|
|
134
|
-
{
|
|
113
|
+
{
|
|
114
|
+
name: 'Flex',
|
|
115
|
+
description: 'A primitive Flex component for flexbox layout with compiled styling support.',
|
|
116
|
+
status: 'open-beta',
|
|
117
|
+
import: {
|
|
135
118
|
name: 'Flex',
|
|
136
|
-
|
|
137
|
-
|
|
119
|
+
package: '@atlaskit/primitives/compiled',
|
|
120
|
+
type: 'named',
|
|
121
|
+
packagePath: path.resolve(__dirname),
|
|
122
|
+
packageJson: require('./package.json'),
|
|
138
123
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
124
|
+
usageGuidelines: [
|
|
125
|
+
'Use for flexbox layout needs',
|
|
126
|
+
'Leverage compiled styling for performance',
|
|
127
|
+
'Use appropriate flex properties and alignment',
|
|
128
|
+
'Consider responsive behavior',
|
|
129
|
+
],
|
|
130
|
+
contentGuidelines: [
|
|
131
|
+
'Use for appropriate flex layout',
|
|
132
|
+
'Maintain consistent flex patterns',
|
|
133
|
+
'Consider content alignment and distribution',
|
|
134
|
+
],
|
|
135
|
+
examples: [
|
|
136
|
+
{
|
|
137
|
+
name: 'Flex',
|
|
138
|
+
description: 'Flex example',
|
|
139
|
+
source: path.resolve(__dirname, './examples/ai/flex.tsx'),
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
keywords: ['flex', 'layout', 'flexbox', 'alignment', 'primitive', 'compiled'],
|
|
143
|
+
categories: ['primitive'],
|
|
154
144
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
contentGuidelines: [
|
|
162
|
-
'Use for appropriate focusable content',
|
|
163
|
-
'Maintain consistent focus patterns',
|
|
164
|
-
'Consider keyboard navigation flow',
|
|
165
|
-
],
|
|
166
|
-
accessibilityGuidelines: [
|
|
167
|
-
'Provide clear focus indicators',
|
|
168
|
-
'Use appropriate tab order and navigation',
|
|
169
|
-
'Ensure keyboard accessibility',
|
|
170
|
-
'Provide clear visual feedback for focus state',
|
|
171
|
-
'Use appropriate ARIA attributes',
|
|
172
|
-
],
|
|
173
|
-
examples: [
|
|
174
|
-
{
|
|
145
|
+
{
|
|
146
|
+
name: 'Focusable',
|
|
147
|
+
description:
|
|
148
|
+
'A primitive Focusable component for keyboard navigation and focus management with compiled styling support.',
|
|
149
|
+
status: 'general-availability',
|
|
150
|
+
import: {
|
|
175
151
|
name: 'Focusable',
|
|
176
|
-
|
|
177
|
-
|
|
152
|
+
package: '@atlaskit/primitives/compiled',
|
|
153
|
+
type: 'named',
|
|
154
|
+
packagePath: path.resolve(__dirname),
|
|
155
|
+
packageJson: require('./package.json'),
|
|
178
156
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
157
|
+
usageGuidelines: [
|
|
158
|
+
'Use for elements that need keyboard focus',
|
|
159
|
+
'Leverage compiled styling for performance',
|
|
160
|
+
'Use appropriate focus management',
|
|
161
|
+
'Consider keyboard navigation patterns',
|
|
162
|
+
],
|
|
163
|
+
contentGuidelines: [
|
|
164
|
+
'Use for appropriate focusable content',
|
|
165
|
+
'Maintain consistent focus patterns',
|
|
166
|
+
'Consider keyboard navigation flow',
|
|
167
|
+
],
|
|
168
|
+
accessibilityGuidelines: [
|
|
169
|
+
'Provide clear focus indicators',
|
|
170
|
+
'Use appropriate tab order and navigation',
|
|
171
|
+
'Ensure keyboard accessibility',
|
|
172
|
+
'Provide clear visual feedback for focus state',
|
|
173
|
+
'Use appropriate ARIA attributes',
|
|
174
|
+
],
|
|
175
|
+
examples: [
|
|
176
|
+
{
|
|
177
|
+
name: 'Focusable',
|
|
178
|
+
description: 'Focusable example',
|
|
179
|
+
source: path.resolve(__dirname, './examples/ai/focusable.tsx'),
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
keywords: [
|
|
183
|
+
'focusable',
|
|
184
|
+
'focus',
|
|
185
|
+
'keyboard',
|
|
186
|
+
'navigation',
|
|
187
|
+
'accessibility',
|
|
188
|
+
'primitive',
|
|
189
|
+
'compiled',
|
|
190
|
+
],
|
|
191
|
+
categories: ['primitive'],
|
|
201
192
|
},
|
|
202
|
-
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
],
|
|
208
|
-
contentGuidelines: [
|
|
209
|
-
'Use for appropriate grid layout',
|
|
210
|
-
'Maintain consistent grid patterns',
|
|
211
|
-
'Consider content alignment and distribution',
|
|
212
|
-
],
|
|
213
|
-
examples: [
|
|
214
|
-
{
|
|
193
|
+
{
|
|
194
|
+
name: 'Grid',
|
|
195
|
+
description: 'A primitive Grid component for CSS Grid layout with compiled styling support.',
|
|
196
|
+
status: 'open-beta',
|
|
197
|
+
import: {
|
|
215
198
|
name: 'Grid',
|
|
216
|
-
|
|
217
|
-
|
|
199
|
+
package: '@atlaskit/primitives/compiled',
|
|
200
|
+
type: 'named',
|
|
201
|
+
packagePath: path.resolve(__dirname),
|
|
202
|
+
packageJson: require('./package.json'),
|
|
218
203
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
204
|
+
usageGuidelines: [
|
|
205
|
+
'Use for CSS Grid layout needs',
|
|
206
|
+
'Leverage compiled styling for performance',
|
|
207
|
+
'Use appropriate grid properties and alignment',
|
|
208
|
+
'Consider responsive behavior',
|
|
209
|
+
],
|
|
210
|
+
contentGuidelines: [
|
|
211
|
+
'Use for appropriate grid layout',
|
|
212
|
+
'Maintain consistent grid patterns',
|
|
213
|
+
'Consider content alignment and distribution',
|
|
214
|
+
],
|
|
215
|
+
examples: [
|
|
216
|
+
{
|
|
217
|
+
name: 'Grid',
|
|
218
|
+
description: 'Grid example',
|
|
219
|
+
source: path.resolve(__dirname, './examples/ai/grid.tsx'),
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
keywords: ['grid', 'layout', 'css-grid', 'alignment', 'primitive', 'compiled'],
|
|
223
|
+
categories: ['primitive'],
|
|
233
224
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
'
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
],
|
|
240
|
-
contentGuidelines: [
|
|
241
|
-
'Use for appropriate horizontal grouping',
|
|
242
|
-
'Maintain consistent spacing patterns',
|
|
243
|
-
'Consider content flow and readability',
|
|
244
|
-
],
|
|
245
|
-
examples: [
|
|
246
|
-
{
|
|
225
|
+
{
|
|
226
|
+
name: 'Inline',
|
|
227
|
+
description: 'A primitive Inline component for horizontal layout with consistent spacing.',
|
|
228
|
+
status: 'general-availability',
|
|
229
|
+
import: {
|
|
247
230
|
name: 'Inline',
|
|
248
|
-
|
|
249
|
-
|
|
231
|
+
package: '@atlaskit/primitives/compiled',
|
|
232
|
+
type: 'named',
|
|
233
|
+
packagePath: path.resolve(__dirname),
|
|
234
|
+
packageJson: require('./package.json'),
|
|
250
235
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
236
|
+
usageGuidelines: [
|
|
237
|
+
'Use for horizontal layout needs',
|
|
238
|
+
'Leverage compiled styling for performance',
|
|
239
|
+
'Use appropriate spacing and alignment props',
|
|
240
|
+
'Consider wrapping behavior',
|
|
241
|
+
],
|
|
242
|
+
contentGuidelines: [
|
|
243
|
+
'Use for appropriate horizontal grouping',
|
|
244
|
+
'Maintain consistent spacing patterns',
|
|
245
|
+
'Consider content flow and readability',
|
|
246
|
+
],
|
|
247
|
+
examples: [
|
|
248
|
+
{
|
|
249
|
+
name: 'Inline',
|
|
250
|
+
description: 'Inline example',
|
|
251
|
+
source: path.resolve(__dirname, './examples/ai/inline.tsx'),
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
keywords: ['inline', 'layout', 'horizontal', 'spacing', 'primitive', 'compiled'],
|
|
255
|
+
categories: ['primitive'],
|
|
265
256
|
},
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
'
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
],
|
|
277
|
-
examples: [
|
|
278
|
-
{
|
|
279
|
-
name: 'Metric Text',
|
|
280
|
-
description: 'Metric Text example',
|
|
281
|
-
source: path.resolve(__dirname, './examples/ai/metric-text.tsx'),
|
|
257
|
+
{
|
|
258
|
+
name: 'MetricText',
|
|
259
|
+
description: 'A primitive Text component for typography with compiled styling support.',
|
|
260
|
+
status: 'general-availability',
|
|
261
|
+
import: {
|
|
262
|
+
name: 'MetricText',
|
|
263
|
+
package: '@atlaskit/primitives/compiled',
|
|
264
|
+
type: 'named',
|
|
265
|
+
packagePath: path.resolve(__dirname),
|
|
266
|
+
packageJson: require('./package.json'),
|
|
282
267
|
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
268
|
+
usageGuidelines: [
|
|
269
|
+
'Use for text content with consistent typography',
|
|
270
|
+
'Leverage compiled styling for performance',
|
|
271
|
+
'Use appropriate font size and weight props',
|
|
272
|
+
'Consider semantic HTML elements',
|
|
273
|
+
],
|
|
274
|
+
contentGuidelines: [
|
|
275
|
+
'Use for appropriate text content',
|
|
276
|
+
'Maintain consistent typography patterns',
|
|
277
|
+
'Consider readability and hierarchy',
|
|
278
|
+
],
|
|
279
|
+
examples: [
|
|
280
|
+
{
|
|
281
|
+
name: 'Metric Text',
|
|
282
|
+
description: 'Metric Text example',
|
|
283
|
+
source: path.resolve(__dirname, './examples/ai/metric-text.tsx'),
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
keywords: ['text', 'typography', 'font', 'primitive', 'compiled'],
|
|
287
|
+
categories: ['primitive'],
|
|
298
288
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
contentGuidelines: [
|
|
306
|
-
'Use for appropriate interactive content',
|
|
307
|
-
'Maintain consistent press patterns',
|
|
308
|
-
'Consider user interaction expectations',
|
|
309
|
-
],
|
|
310
|
-
accessibilityGuidelines: [
|
|
311
|
-
'Provide clear visual feedback for press states',
|
|
312
|
-
'Ensure appropriate touch target sizes',
|
|
313
|
-
'Use appropriate ARIA attributes for interactive elements',
|
|
314
|
-
'Provide keyboard navigation support',
|
|
315
|
-
],
|
|
316
|
-
examples: [
|
|
317
|
-
{
|
|
289
|
+
{
|
|
290
|
+
name: 'Pressable',
|
|
291
|
+
description:
|
|
292
|
+
'A primitive Pressable component for handling touch and click interactions with compiled styling support.',
|
|
293
|
+
status: 'general-availability',
|
|
294
|
+
import: {
|
|
318
295
|
name: 'Pressable',
|
|
319
|
-
|
|
320
|
-
|
|
296
|
+
package: '@atlaskit/primitives/compiled',
|
|
297
|
+
type: 'named',
|
|
298
|
+
packagePath: path.resolve(__dirname),
|
|
299
|
+
packageJson: require('./package.json'),
|
|
321
300
|
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
301
|
+
usageGuidelines: [
|
|
302
|
+
'Use for interactive elements that need press feedback',
|
|
303
|
+
'Leverage compiled styling for performance',
|
|
304
|
+
'Use appropriate press states and feedback',
|
|
305
|
+
'Consider touch target accessibility',
|
|
306
|
+
],
|
|
307
|
+
contentGuidelines: [
|
|
308
|
+
'Use for appropriate interactive content',
|
|
309
|
+
'Maintain consistent press patterns',
|
|
310
|
+
'Consider user interaction expectations',
|
|
311
|
+
],
|
|
312
|
+
accessibilityGuidelines: [
|
|
313
|
+
'Provide clear visual feedback for press states',
|
|
314
|
+
'Ensure appropriate touch target sizes',
|
|
315
|
+
'Use appropriate ARIA attributes for interactive elements',
|
|
316
|
+
'Provide keyboard navigation support',
|
|
317
|
+
],
|
|
318
|
+
examples: [
|
|
319
|
+
{
|
|
320
|
+
name: 'Pressable',
|
|
321
|
+
description: 'Pressable example',
|
|
322
|
+
source: path.resolve(__dirname, './examples/ai/pressable.tsx'),
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
keywords: ['pressable', 'interaction', 'touch', 'click', 'primitive', 'compiled'],
|
|
326
|
+
categories: ['primitive'],
|
|
337
327
|
},
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
contentGuidelines: [
|
|
345
|
-
'Use for appropriate layout grouping',
|
|
346
|
-
'Maintain consistent spacing patterns',
|
|
347
|
-
'Consider content hierarchy and flow',
|
|
348
|
-
],
|
|
349
|
-
examples: [
|
|
350
|
-
{
|
|
328
|
+
{
|
|
329
|
+
name: 'Stack',
|
|
330
|
+
description:
|
|
331
|
+
'A primitive Stack component for vertical and horizontal layout with consistent spacing.',
|
|
332
|
+
status: 'general-availability',
|
|
333
|
+
import: {
|
|
351
334
|
name: 'Stack',
|
|
352
|
-
|
|
353
|
-
|
|
335
|
+
package: '@atlaskit/primitives/compiled',
|
|
336
|
+
type: 'named',
|
|
337
|
+
packagePath: path.resolve(__dirname),
|
|
338
|
+
packageJson: require('./package.json'),
|
|
354
339
|
},
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
340
|
+
usageGuidelines: [
|
|
341
|
+
'Use for consistent vertical or horizontal layouts',
|
|
342
|
+
'Leverage compiled styling for performance',
|
|
343
|
+
'Use appropriate spacing and alignment props',
|
|
344
|
+
'Consider responsive behavior',
|
|
345
|
+
],
|
|
346
|
+
contentGuidelines: [
|
|
347
|
+
'Use for appropriate layout grouping',
|
|
348
|
+
'Maintain consistent spacing patterns',
|
|
349
|
+
'Consider content hierarchy and flow',
|
|
350
|
+
],
|
|
351
|
+
examples: [
|
|
352
|
+
{
|
|
353
|
+
name: 'Stack',
|
|
354
|
+
description: 'Stack example',
|
|
355
|
+
source: path.resolve(__dirname, './examples/ai/stack.tsx'),
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
keywords: ['stack', 'layout', 'vertical', 'horizontal', 'spacing', 'primitive', 'compiled'],
|
|
359
|
+
categories: ['primitive'],
|
|
369
360
|
},
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
'
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
],
|
|
376
|
-
contentGuidelines: [
|
|
377
|
-
'Use for appropriate text content',
|
|
378
|
-
'Maintain consistent typography patterns',
|
|
379
|
-
'Consider readability and hierarchy',
|
|
380
|
-
],
|
|
381
|
-
examples: [
|
|
382
|
-
{
|
|
361
|
+
{
|
|
362
|
+
name: 'Text',
|
|
363
|
+
description: 'A primitive Text component for typography with compiled styling support.',
|
|
364
|
+
status: 'general-availability',
|
|
365
|
+
import: {
|
|
383
366
|
name: 'Text',
|
|
384
|
-
|
|
385
|
-
|
|
367
|
+
package: '@atlaskit/primitives/compiled',
|
|
368
|
+
type: 'named',
|
|
369
|
+
packagePath: path.resolve(__dirname),
|
|
370
|
+
packageJson: require('./package.json'),
|
|
386
371
|
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
372
|
+
usageGuidelines: [
|
|
373
|
+
'Use for text content with consistent typography',
|
|
374
|
+
'Leverage compiled styling for performance',
|
|
375
|
+
'Use appropriate font size and weight props',
|
|
376
|
+
'Consider semantic HTML elements',
|
|
377
|
+
],
|
|
378
|
+
contentGuidelines: [
|
|
379
|
+
'Use for appropriate text content',
|
|
380
|
+
'Maintain consistent typography patterns',
|
|
381
|
+
'Consider readability and hierarchy',
|
|
382
|
+
],
|
|
383
|
+
examples: [
|
|
384
|
+
{
|
|
385
|
+
name: 'Text',
|
|
386
|
+
description: 'Text example',
|
|
387
|
+
source: path.resolve(__dirname, './examples/ai/text.tsx'),
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
keywords: ['text', 'typography', 'font', 'primitive', 'compiled'],
|
|
391
|
+
categories: ['primitive'],
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
};
|
|
392
395
|
|
|
393
396
|
export default documentation;
|