@atlaskit/primitives 0.1.0 → 0.2.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/components/box.js +80 -6
  3. package/dist/cjs/components/inline.partial.js +22 -46
  4. package/dist/cjs/components/internal/base-box.partial.js +822 -0
  5. package/dist/cjs/components/stack.partial.js +22 -46
  6. package/dist/cjs/index.js +2 -2
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/es2019/components/box.js +75 -1
  9. package/dist/es2019/components/inline.partial.js +20 -20
  10. package/dist/es2019/components/internal/base-box.partial.js +839 -0
  11. package/dist/es2019/components/stack.partial.js +20 -20
  12. package/dist/es2019/index.js +2 -2
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/esm/components/box.js +77 -1
  15. package/dist/esm/components/inline.partial.js +21 -46
  16. package/dist/esm/components/internal/base-box.partial.js +817 -0
  17. package/dist/esm/components/stack.partial.js +21 -46
  18. package/dist/esm/index.js +2 -2
  19. package/dist/esm/version.json +1 -1
  20. package/dist/types/components/box.d.ts +10 -1
  21. package/dist/types/components/inline.partial.d.ts +18 -16
  22. package/dist/types/components/internal/base-box.partial.d.ts +483 -0
  23. package/dist/types/components/stack.partial.d.ts +18 -16
  24. package/dist/types/components/types.d.ts +8 -1
  25. package/dist/types/index.d.ts +3 -3
  26. package/package.json +2 -3
  27. package/report.api.md +505 -46
  28. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +204 -0
  29. package/scripts/codegen-styles.tsx +31 -16
  30. package/scripts/color-codegen-template.tsx +10 -7
  31. package/scripts/dimension-codegen-template.tsx +14 -2
  32. package/scripts/misc-codegen-template.tsx +1 -1
  33. package/scripts/spacing-codegen-template.tsx +37 -33
  34. package/tmp/api-report-tmp.d.ts +466 -46
  35. package/dist/cjs/components/internal/box.partial.js +0 -605
  36. package/dist/es2019/components/internal/box.partial.js +0 -597
  37. package/dist/esm/components/internal/box.partial.js +0 -600
  38. package/dist/types/components/internal/box.partial.d.ts +0 -348
package/report.api.md CHANGED
@@ -15,18 +15,23 @@
15
15
  <!--SECTION START: Main Entry Types-->
16
16
 
17
17
  ```ts
18
- import { default as Box } from '@atlaskit/ds-explorations/box';
18
+ import { ComponentPropsWithoutRef } from 'react';
19
+ import { ComponentPropsWithRef } from 'react';
20
+ import type { CSSProperties } from 'react';
21
+ import { ElementType } from 'react';
22
+ import { FC } from 'react';
19
23
  import { ForwardRefExoticComponent } from 'react';
20
24
  import { MemoExoticComponent } from 'react';
25
+ import { ReactElement } from 'react';
21
26
  import { ReactNode } from 'react';
22
27
  import { RefAttributes } from 'react';
23
28
  import { SerializedStyles } from '@emotion/react';
24
29
 
25
30
  // @public (undocumented)
26
- type AlignBlock = 'center' | 'end' | 'start';
31
+ type AlignBlock = 'baseline' | 'center' | 'end' | 'start';
27
32
 
28
33
  // @public (undocumented)
29
- type AlignBlock_2 = 'baseline' | 'center' | 'end' | 'start';
34
+ type AlignBlock_2 = 'center' | 'end' | 'start';
30
35
 
31
36
  // @public (undocumented)
32
37
  type AlignInline = 'center' | 'end' | 'start';
@@ -34,7 +39,282 @@ type AlignInline = 'center' | 'end' | 'start';
34
39
  // @public (undocumented)
35
40
  type AlignInline_2 = 'center' | 'end' | 'start';
36
41
 
37
- export { Box };
42
+ // @public (undocumented)
43
+ type AlignSelf = keyof typeof alignSelfMap;
44
+
45
+ // @public (undocumented)
46
+ const alignSelfMap: {
47
+ readonly center: SerializedStyles;
48
+ readonly start: SerializedStyles;
49
+ readonly stretch: SerializedStyles;
50
+ readonly end: SerializedStyles;
51
+ readonly baseline: SerializedStyles;
52
+ };
53
+
54
+ // @public (undocumented)
55
+ type BackgroundColor = keyof typeof backgroundColorMap;
56
+
57
+ // @public (undocumented)
58
+ const backgroundColorMap: {
59
+ readonly 'accent.red.subtlest': SerializedStyles;
60
+ readonly 'accent.red.subtler': SerializedStyles;
61
+ readonly 'accent.red.subtle': SerializedStyles;
62
+ readonly 'accent.red.bolder': SerializedStyles;
63
+ readonly 'accent.orange.subtlest': SerializedStyles;
64
+ readonly 'accent.orange.subtler': SerializedStyles;
65
+ readonly 'accent.orange.subtle': SerializedStyles;
66
+ readonly 'accent.orange.bolder': SerializedStyles;
67
+ readonly 'accent.yellow.subtlest': SerializedStyles;
68
+ readonly 'accent.yellow.subtler': SerializedStyles;
69
+ readonly 'accent.yellow.subtle': SerializedStyles;
70
+ readonly 'accent.yellow.bolder': SerializedStyles;
71
+ readonly 'accent.green.subtlest': SerializedStyles;
72
+ readonly 'accent.green.subtler': SerializedStyles;
73
+ readonly 'accent.green.subtle': SerializedStyles;
74
+ readonly 'accent.green.bolder': SerializedStyles;
75
+ readonly 'accent.teal.subtlest': SerializedStyles;
76
+ readonly 'accent.teal.subtler': SerializedStyles;
77
+ readonly 'accent.teal.subtle': SerializedStyles;
78
+ readonly 'accent.teal.bolder': SerializedStyles;
79
+ readonly 'accent.blue.subtlest': SerializedStyles;
80
+ readonly 'accent.blue.subtler': SerializedStyles;
81
+ readonly 'accent.blue.subtle': SerializedStyles;
82
+ readonly 'accent.blue.bolder': SerializedStyles;
83
+ readonly 'accent.purple.subtlest': SerializedStyles;
84
+ readonly 'accent.purple.subtler': SerializedStyles;
85
+ readonly 'accent.purple.subtle': SerializedStyles;
86
+ readonly 'accent.purple.bolder': SerializedStyles;
87
+ readonly 'accent.magenta.subtlest': SerializedStyles;
88
+ readonly 'accent.magenta.subtler': SerializedStyles;
89
+ readonly 'accent.magenta.subtle': SerializedStyles;
90
+ readonly 'accent.magenta.bolder': SerializedStyles;
91
+ readonly 'accent.gray.subtlest': SerializedStyles;
92
+ readonly 'accent.gray.subtler': SerializedStyles;
93
+ readonly 'accent.gray.subtle': SerializedStyles;
94
+ readonly 'accent.gray.bolder': SerializedStyles;
95
+ readonly disabled: SerializedStyles;
96
+ readonly input: SerializedStyles;
97
+ readonly 'inverse.subtle': SerializedStyles;
98
+ readonly neutral: SerializedStyles;
99
+ readonly 'neutral.subtle': SerializedStyles;
100
+ readonly 'neutral.bold': SerializedStyles;
101
+ readonly selected: SerializedStyles;
102
+ readonly 'selected.bold': SerializedStyles;
103
+ readonly 'brand.bold': SerializedStyles;
104
+ readonly danger: SerializedStyles;
105
+ readonly 'danger.bold': SerializedStyles;
106
+ readonly warning: SerializedStyles;
107
+ readonly 'warning.bold': SerializedStyles;
108
+ readonly success: SerializedStyles;
109
+ readonly 'success.bold': SerializedStyles;
110
+ readonly discovery: SerializedStyles;
111
+ readonly 'discovery.bold': SerializedStyles;
112
+ readonly information: SerializedStyles;
113
+ readonly 'information.bold': SerializedStyles;
114
+ readonly 'color.blanket': SerializedStyles;
115
+ readonly 'color.blanket.selected': SerializedStyles;
116
+ readonly 'color.blanket.danger': SerializedStyles;
117
+ readonly 'elevation.surface': SerializedStyles;
118
+ readonly 'elevation.surface.overlay': SerializedStyles;
119
+ readonly 'elevation.surface.raised': SerializedStyles;
120
+ readonly 'elevation.surface.sunken': SerializedStyles;
121
+ };
122
+
123
+ // @public (undocumented)
124
+ type BaseBoxProps<T extends ElementType = 'div'> = Omit<
125
+ ComponentPropsWithoutRef<T>,
126
+ 'as' | 'className' | 'style'
127
+ > &
128
+ BasePrimitiveProps &
129
+ BaseBoxPropsFoundation<T>;
130
+
131
+ // @public (undocumented)
132
+ type BaseBoxPropsFoundation<T extends ElementType> = {
133
+ as?: 'div' | 'span';
134
+ className?: string;
135
+ children?: ReactNode;
136
+ color?: TextColor;
137
+ backgroundColor?: BackgroundColor;
138
+ shadow?: Shadow;
139
+ borderStyle?: BorderStyle;
140
+ borderWidth?: BorderWidth;
141
+ borderColor?: BorderColor;
142
+ borderRadius?: BorderRadius;
143
+ layer?: Layer;
144
+ flex?: Flex;
145
+ flexGrow?: FlexGrow;
146
+ flexShrink?: FlexShrink;
147
+ alignSelf?: AlignSelf;
148
+ overflow?: Overflow;
149
+ overflowInline?: OverflowInline;
150
+ overflowBlock?: OverflowBlock;
151
+ padding?: Padding;
152
+ paddingBlock?: PaddingBlock;
153
+ paddingBlockStart?: PaddingBlockStart;
154
+ paddingBlockEnd?: PaddingBlockEnd;
155
+ paddingInline?: PaddingInline;
156
+ paddingInlineStart?: PaddingInlineStart;
157
+ paddingInlineEnd?: PaddingInlineEnd;
158
+ width?: Width;
159
+ height?: Height;
160
+ display?: Display;
161
+ position?: Position;
162
+ ref?: ComponentPropsWithRef<T>['ref'];
163
+ };
164
+
165
+ // @public (undocumented)
166
+ interface BasePrimitiveProps {
167
+ testId?: string;
168
+ UNSAFE_style?: CSSProperties;
169
+ }
170
+
171
+ // @public (undocumented)
172
+ type BorderColor = keyof typeof borderColorMap;
173
+
174
+ // @public
175
+ const borderColorMap: {
176
+ readonly 'color.border': SerializedStyles;
177
+ readonly 'accent.red': SerializedStyles;
178
+ readonly 'accent.orange': SerializedStyles;
179
+ readonly 'accent.yellow': SerializedStyles;
180
+ readonly 'accent.green': SerializedStyles;
181
+ readonly 'accent.teal': SerializedStyles;
182
+ readonly 'accent.blue': SerializedStyles;
183
+ readonly 'accent.purple': SerializedStyles;
184
+ readonly 'accent.magenta': SerializedStyles;
185
+ readonly 'accent.gray': SerializedStyles;
186
+ readonly disabled: SerializedStyles;
187
+ readonly focused: SerializedStyles;
188
+ readonly input: SerializedStyles;
189
+ readonly inverse: SerializedStyles;
190
+ readonly selected: SerializedStyles;
191
+ readonly brand: SerializedStyles;
192
+ readonly danger: SerializedStyles;
193
+ readonly warning: SerializedStyles;
194
+ readonly success: SerializedStyles;
195
+ readonly discovery: SerializedStyles;
196
+ readonly information: SerializedStyles;
197
+ readonly bold: SerializedStyles;
198
+ };
199
+
200
+ // @public (undocumented)
201
+ type BorderRadius = keyof typeof borderRadiusMap;
202
+
203
+ // @public (undocumented)
204
+ const borderRadiusMap: {
205
+ 'radius.100': SerializedStyles;
206
+ 'radius.200': SerializedStyles;
207
+ 'radius.round': SerializedStyles;
208
+ 'radius.300': SerializedStyles;
209
+ 'radius.400': SerializedStyles;
210
+ };
211
+
212
+ // @public (undocumented)
213
+ type BorderStyle = keyof typeof borderStyleMap;
214
+
215
+ // @public (undocumented)
216
+ const borderStyleMap: {
217
+ readonly none: SerializedStyles;
218
+ readonly solid: SerializedStyles;
219
+ };
220
+
221
+ // @public (undocumented)
222
+ type BorderWidth = keyof typeof borderWidthMap;
223
+
224
+ // @public (undocumented)
225
+ const borderWidthMap: {
226
+ readonly 'size.050': SerializedStyles;
227
+ readonly 'size.100': SerializedStyles;
228
+ };
229
+
230
+ // @public (undocumented)
231
+ export const Box: BoxComponent;
232
+
233
+ // @public (undocumented)
234
+ type BoxComponent<T extends ElementType = 'div'> = (<
235
+ T extends ElementType = 'div',
236
+ >(
237
+ props: BoxProps<T>,
238
+ ) => ReactElement | null) &
239
+ FC<BoxProps<T>>;
240
+
241
+ // @public (undocumented)
242
+ export type BoxProps<T extends ElementType = 'div'> = Omit<
243
+ BaseBoxProps<T>,
244
+ 'UNSAFE_style' | 'className'
245
+ > &
246
+ BoxPropsBase;
247
+
248
+ // @public (undocumented)
249
+ type BoxPropsBase = {
250
+ customStyles?: CustomStyles;
251
+ };
252
+
253
+ // @public
254
+ type CustomStyles = Pick<
255
+ CSSProperties,
256
+ | 'flex'
257
+ | 'flexBasis'
258
+ | 'float'
259
+ | 'height'
260
+ | 'insetBlockStart'
261
+ | 'insetInlineEnd'
262
+ | 'insetInlineStart'
263
+ | 'margin'
264
+ | 'marginBlock'
265
+ | 'marginBlockEnd'
266
+ | 'marginBlockStart'
267
+ | 'marginInline'
268
+ | 'marginInlineEnd'
269
+ | 'marginInlineStart'
270
+ | 'maxHeight'
271
+ | 'maxWidth'
272
+ | 'minHeight'
273
+ | 'minWidth'
274
+ | 'paddingBottom'
275
+ | 'paddingLeft'
276
+ | 'paddingRight'
277
+ | 'paddingTop'
278
+ | 'width'
279
+ >;
280
+
281
+ // @public (undocumented)
282
+ type Display = keyof typeof displayMap;
283
+
284
+ // @public (undocumented)
285
+ const displayMap: {
286
+ readonly block: SerializedStyles;
287
+ readonly inline: SerializedStyles;
288
+ readonly flex: SerializedStyles;
289
+ readonly 'inline-flex': SerializedStyles;
290
+ readonly 'inline-block': SerializedStyles;
291
+ };
292
+
293
+ // @public (undocumented)
294
+ type Flex = keyof typeof flexMap;
295
+
296
+ // @public (undocumented)
297
+ type FlexGrow = keyof typeof flexGrowMap;
298
+
299
+ // @public (undocumented)
300
+ const flexGrowMap: {
301
+ readonly '0': SerializedStyles;
302
+ readonly '1': SerializedStyles;
303
+ };
304
+
305
+ // @public (undocumented)
306
+ const flexMap: {
307
+ readonly '1': SerializedStyles;
308
+ };
309
+
310
+ // @public (undocumented)
311
+ type FlexShrink = keyof typeof flexShrinkMap;
312
+
313
+ // @public (undocumented)
314
+ const flexShrinkMap: {
315
+ readonly '0': SerializedStyles;
316
+ readonly '1': SerializedStyles;
317
+ };
38
318
 
39
319
  // @public (undocumented)
40
320
  type Grow = 'fill' | 'hug';
@@ -42,64 +322,190 @@ type Grow = 'fill' | 'hug';
42
322
  // @public (undocumented)
43
323
  type Grow_2 = 'fill' | 'hug';
44
324
 
325
+ // @public (undocumented)
326
+ type Height = keyof typeof heightMap;
327
+
328
+ // @public (undocumented)
329
+ const heightMap: {
330
+ readonly '100%': SerializedStyles;
331
+ readonly 'size.100': SerializedStyles;
332
+ readonly 'size.200': SerializedStyles;
333
+ readonly 'size.300': SerializedStyles;
334
+ readonly 'size.400': SerializedStyles;
335
+ readonly 'size.500': SerializedStyles;
336
+ readonly 'size.600': SerializedStyles;
337
+ readonly 'size.1000': SerializedStyles;
338
+ };
339
+
45
340
  // @public
46
341
  export const Inline: MemoExoticComponent<
47
342
  ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>
48
343
  >;
49
344
 
50
345
  // @public (undocumented)
51
- interface InlineProps {
52
- alignBlock?: AlignBlock_2;
53
- alignInline?: AlignInline_2;
346
+ export interface InlineProps {
347
+ alignBlock?: AlignBlock;
348
+ alignInline?: AlignInline;
54
349
  children: ReactNode;
55
- grow?: Grow_2;
350
+ grow?: Grow;
56
351
  separator?: string;
57
352
  shouldWrap?: boolean;
58
- space?: Space_2;
59
- spread?: Spread_2;
353
+ space?: Space;
354
+ spread?: Spread;
60
355
  testId?: string;
61
356
  }
62
357
 
63
358
  // @public (undocumented)
64
- type Space = keyof typeof spaceMap;
359
+ type Layer = keyof typeof LAYERS;
360
+
361
+ // @public (undocumented)
362
+ const LAYERS: {
363
+ readonly card: 100;
364
+ readonly navigation: 200;
365
+ readonly dialog: 300;
366
+ readonly layer: 400;
367
+ readonly blanket: 500;
368
+ readonly modal: 510;
369
+ readonly flag: 600;
370
+ readonly spotlight: 700;
371
+ readonly tooltip: 800;
372
+ };
373
+
374
+ // @public (undocumented)
375
+ type Overflow = keyof typeof overflowMap;
376
+
377
+ // @public (undocumented)
378
+ type OverflowBlock = keyof typeof overflowBlockMap;
379
+
380
+ // @public (undocumented)
381
+ const overflowBlockMap: {
382
+ readonly auto: SerializedStyles;
383
+ readonly hidden: SerializedStyles;
384
+ };
385
+
386
+ // @public (undocumented)
387
+ type OverflowInline = keyof typeof overflowInlineMap;
388
+
389
+ // @public (undocumented)
390
+ const overflowInlineMap: {
391
+ readonly auto: SerializedStyles;
392
+ readonly hidden: SerializedStyles;
393
+ };
394
+
395
+ // @public (undocumented)
396
+ const overflowMap: {
397
+ readonly auto: SerializedStyles;
398
+ readonly hidden: SerializedStyles;
399
+ };
400
+
401
+ // @public (undocumented)
402
+ type Padding = keyof typeof paddingMap.padding;
403
+
404
+ // @public (undocumented)
405
+ type PaddingBlock = keyof typeof paddingMap.paddingBlock;
406
+
407
+ // @public (undocumented)
408
+ type PaddingBlockEnd = keyof typeof paddingMap.paddingBlockEnd;
409
+
410
+ // @public (undocumented)
411
+ type PaddingBlockStart = keyof typeof paddingMap.paddingBlockStart;
412
+
413
+ // @public (undocumented)
414
+ type PaddingInline = keyof typeof paddingMap.paddingInline;
415
+
416
+ // @public (undocumented)
417
+ type PaddingInlineEnd = keyof typeof paddingMap.paddingInlineEnd;
65
418
 
66
419
  // @public (undocumented)
67
- type Space_2 = keyof typeof spaceMap_2;
420
+ type PaddingInlineStart = keyof typeof paddingMap.paddingInlineStart;
421
+
422
+ // @public
423
+ const paddingMap: {
424
+ [k: string]: {
425
+ readonly 'space.0': SerializedStyles;
426
+ readonly 'space.025': SerializedStyles;
427
+ readonly 'space.050': SerializedStyles;
428
+ readonly 'space.075': SerializedStyles;
429
+ readonly 'space.100': SerializedStyles;
430
+ readonly 'space.150': SerializedStyles;
431
+ readonly 'space.200': SerializedStyles;
432
+ readonly 'space.250': SerializedStyles;
433
+ readonly 'space.300': SerializedStyles;
434
+ readonly 'space.400': SerializedStyles;
435
+ readonly 'space.500': SerializedStyles;
436
+ readonly 'space.600': SerializedStyles;
437
+ readonly 'space.800': SerializedStyles;
438
+ readonly 'space.1000': SerializedStyles;
439
+ };
440
+ };
441
+
442
+ // @public (undocumented)
443
+ type Position = keyof typeof positionMap;
444
+
445
+ // @public (undocumented)
446
+ const positionMap: {
447
+ readonly absolute: SerializedStyles;
448
+ readonly fixed: SerializedStyles;
449
+ readonly relative: SerializedStyles;
450
+ readonly static: SerializedStyles;
451
+ };
452
+
453
+ // @public (undocumented)
454
+ type Shadow = keyof typeof shadowMap;
455
+
456
+ // @public (undocumented)
457
+ const shadowMap: {
458
+ readonly overflow: SerializedStyles;
459
+ readonly 'overflow.perimeter': SerializedStyles;
460
+ readonly 'overflow.spread': SerializedStyles;
461
+ readonly overlay: SerializedStyles;
462
+ readonly raised: SerializedStyles;
463
+ };
464
+
465
+ // @public (undocumented)
466
+ type Space = keyof typeof spaceMap.gap;
467
+
468
+ // @public (undocumented)
469
+ type Space_2 = keyof typeof spaceMap_2.gap;
68
470
 
69
471
  // @public
70
472
  const spaceMap: {
71
- '0': SerializedStyles;
72
- '025': SerializedStyles;
73
- '050': SerializedStyles;
74
- '075': SerializedStyles;
75
- '100': SerializedStyles;
76
- '1000': SerializedStyles;
77
- '150': SerializedStyles;
78
- '200': SerializedStyles;
79
- '250': SerializedStyles;
80
- '300': SerializedStyles;
81
- '400': SerializedStyles;
82
- '500': SerializedStyles;
83
- '600': SerializedStyles;
84
- '800': SerializedStyles;
473
+ [k: string]: {
474
+ readonly '0': SerializedStyles;
475
+ readonly '025': SerializedStyles;
476
+ readonly '050': SerializedStyles;
477
+ readonly '075': SerializedStyles;
478
+ readonly '100': SerializedStyles;
479
+ readonly '150': SerializedStyles;
480
+ readonly '200': SerializedStyles;
481
+ readonly '250': SerializedStyles;
482
+ readonly '300': SerializedStyles;
483
+ readonly '400': SerializedStyles;
484
+ readonly '500': SerializedStyles;
485
+ readonly '600': SerializedStyles;
486
+ readonly '800': SerializedStyles;
487
+ readonly '1000': SerializedStyles;
488
+ };
85
489
  };
86
490
 
87
491
  // @public
88
492
  const spaceMap_2: {
89
- '0': SerializedStyles;
90
- '025': SerializedStyles;
91
- '050': SerializedStyles;
92
- '075': SerializedStyles;
93
- '100': SerializedStyles;
94
- '1000': SerializedStyles;
95
- '150': SerializedStyles;
96
- '200': SerializedStyles;
97
- '250': SerializedStyles;
98
- '300': SerializedStyles;
99
- '400': SerializedStyles;
100
- '500': SerializedStyles;
101
- '600': SerializedStyles;
102
- '800': SerializedStyles;
493
+ [k: string]: {
494
+ readonly '0': SerializedStyles;
495
+ readonly '025': SerializedStyles;
496
+ readonly '050': SerializedStyles;
497
+ readonly '075': SerializedStyles;
498
+ readonly '100': SerializedStyles;
499
+ readonly '150': SerializedStyles;
500
+ readonly '200': SerializedStyles;
501
+ readonly '250': SerializedStyles;
502
+ readonly '300': SerializedStyles;
503
+ readonly '400': SerializedStyles;
504
+ readonly '500': SerializedStyles;
505
+ readonly '600': SerializedStyles;
506
+ readonly '800': SerializedStyles;
507
+ readonly '1000': SerializedStyles;
508
+ };
103
509
  };
104
510
 
105
511
  // @public (undocumented)
@@ -114,16 +520,69 @@ export const Stack: MemoExoticComponent<
114
520
  >;
115
521
 
116
522
  // @public (undocumented)
117
- interface StackProps {
118
- alignBlock?: AlignBlock;
119
- alignInline?: AlignInline;
523
+ export interface StackProps {
524
+ alignBlock?: AlignBlock_2;
525
+ alignInline?: AlignInline_2;
120
526
  children: ReactNode;
121
- grow?: Grow;
122
- space?: Space;
123
- spread?: Spread;
527
+ grow?: Grow_2;
528
+ space?: Space_2;
529
+ spread?: Spread_2;
124
530
  testId?: string;
125
531
  }
126
532
 
533
+ // @public (undocumented)
534
+ type TextColor = keyof typeof textColorMap;
535
+
536
+ // @public (undocumented)
537
+ const textColorMap: {
538
+ readonly 'color.text': SerializedStyles;
539
+ readonly 'accent.red': SerializedStyles;
540
+ readonly 'accent.red.bolder': SerializedStyles;
541
+ readonly 'accent.orange': SerializedStyles;
542
+ readonly 'accent.orange.bolder': SerializedStyles;
543
+ readonly 'accent.yellow': SerializedStyles;
544
+ readonly 'accent.yellow.bolder': SerializedStyles;
545
+ readonly 'accent.green': SerializedStyles;
546
+ readonly 'accent.green.bolder': SerializedStyles;
547
+ readonly 'accent.teal': SerializedStyles;
548
+ readonly 'accent.teal.bolder': SerializedStyles;
549
+ readonly 'accent.blue': SerializedStyles;
550
+ readonly 'accent.blue.bolder': SerializedStyles;
551
+ readonly 'accent.purple': SerializedStyles;
552
+ readonly 'accent.purple.bolder': SerializedStyles;
553
+ readonly 'accent.magenta': SerializedStyles;
554
+ readonly 'accent.magenta.bolder': SerializedStyles;
555
+ readonly 'accent.gray': SerializedStyles;
556
+ readonly 'accent.gray.bolder': SerializedStyles;
557
+ readonly disabled: SerializedStyles;
558
+ readonly inverse: SerializedStyles;
559
+ readonly selected: SerializedStyles;
560
+ readonly brand: SerializedStyles;
561
+ readonly danger: SerializedStyles;
562
+ readonly warning: SerializedStyles;
563
+ readonly 'warning.inverse': SerializedStyles;
564
+ readonly success: SerializedStyles;
565
+ readonly discovery: SerializedStyles;
566
+ readonly information: SerializedStyles;
567
+ readonly subtlest: SerializedStyles;
568
+ readonly subtle: SerializedStyles;
569
+ };
570
+
571
+ // @public (undocumented)
572
+ type Width = keyof typeof widthMap;
573
+
574
+ // @public
575
+ const widthMap: {
576
+ readonly '100%': SerializedStyles;
577
+ readonly 'size.100': SerializedStyles;
578
+ readonly 'size.200': SerializedStyles;
579
+ readonly 'size.300': SerializedStyles;
580
+ readonly 'size.400': SerializedStyles;
581
+ readonly 'size.500': SerializedStyles;
582
+ readonly 'size.600': SerializedStyles;
583
+ readonly 'size.1000': SerializedStyles;
584
+ };
585
+
127
586
  // (No @packageDocumentation comment for this package)
128
587
  ```
129
588