@atlaskit/primitives 1.0.0 → 1.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/constellation/flex/code.mdx +7 -0
  3. package/constellation/flex/examples.mdx +34 -0
  4. package/constellation/grid/code.mdx +7 -0
  5. package/constellation/grid/examples.mdx +38 -0
  6. package/constellation/overview/index.mdx +20 -14
  7. package/dist/cjs/components/flex.js +119 -0
  8. package/dist/cjs/components/grid.js +127 -0
  9. package/dist/cjs/components/inline.js +16 -48
  10. package/dist/cjs/components/stack.js +19 -39
  11. package/dist/cjs/index.js +20 -0
  12. package/dist/cjs/responsive/media-helper.js +15 -0
  13. package/dist/cjs/version.json +1 -1
  14. package/dist/cjs/xcss/xcss.js +1 -1
  15. package/dist/es2019/components/flex.js +111 -0
  16. package/dist/es2019/components/grid.js +118 -0
  17. package/dist/es2019/components/inline.js +15 -49
  18. package/dist/es2019/components/stack.js +18 -40
  19. package/dist/es2019/index.js +3 -1
  20. package/dist/es2019/responsive/build-media-query-css.js +0 -1
  21. package/dist/es2019/responsive/media-helper.js +15 -0
  22. package/dist/es2019/version.json +1 -1
  23. package/dist/es2019/xcss/xcss.js +1 -1
  24. package/dist/esm/components/flex.js +111 -0
  25. package/dist/esm/components/grid.js +119 -0
  26. package/dist/esm/components/inline.js +16 -49
  27. package/dist/esm/components/stack.js +19 -40
  28. package/dist/esm/index.js +3 -1
  29. package/dist/esm/responsive/media-helper.js +15 -0
  30. package/dist/esm/version.json +1 -1
  31. package/dist/esm/xcss/xcss.js +1 -1
  32. package/dist/types/components/box.d.ts +1 -2
  33. package/dist/types/components/flex.d.ts +137 -0
  34. package/dist/types/components/grid.d.ts +154 -0
  35. package/dist/types/components/inline.d.ts +50 -12
  36. package/dist/types/components/stack.d.ts +38 -8
  37. package/dist/types/components/types.d.ts +2 -6
  38. package/dist/types/index.d.ts +4 -1
  39. package/dist/types/responsive/media-helper.d.ts +30 -0
  40. package/dist/types/xcss/xcss.d.ts +13 -16
  41. package/dist/types-ts4.5/components/box.d.ts +1 -2
  42. package/dist/types-ts4.5/components/flex.d.ts +137 -0
  43. package/dist/types-ts4.5/components/grid.d.ts +154 -0
  44. package/dist/types-ts4.5/components/inline.d.ts +50 -12
  45. package/dist/types-ts4.5/components/stack.d.ts +38 -8
  46. package/dist/types-ts4.5/components/types.d.ts +2 -6
  47. package/dist/types-ts4.5/index.d.ts +4 -1
  48. package/dist/types-ts4.5/responsive/media-helper.d.ts +30 -0
  49. package/dist/types-ts4.5/xcss/xcss.d.ts +13 -16
  50. package/extract-react-types/box-props.tsx +1 -9
  51. package/package.json +21 -5
  52. package/report.api.md +404 -75
  53. package/tmp/api-report-tmp.d.ts +200 -52
@@ -9,7 +9,7 @@
9
9
  import { ComponentPropsWithoutRef } from 'react';
10
10
  import type * as CSS_2 from 'csstype';
11
11
  import type { CSSProperties } from 'react';
12
- import { CSSPropertiesWithMultiValues } from '@emotion/serialize';
12
+ import type { CSSPropertiesWithMultiValues } from '@emotion/serialize';
13
13
  import { ElementType } from 'react';
14
14
  import { FC } from 'react';
15
15
  import { ForwardRefExoticComponent } from 'react';
@@ -18,7 +18,8 @@ import { MemoExoticComponent } from 'react';
18
18
  import { ReactElement } from 'react';
19
19
  import { ReactNode } from 'react';
20
20
  import { RefAttributes } from 'react';
21
- import { SerializedStyles } from '@emotion/serialize';
21
+ import type { SerializedStyles } from '@emotion/serialize';
22
+ import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
22
23
 
23
24
  // @public (undocumented)
24
25
  type AlignBlock = 'baseline' | 'center' | 'end' | 'start' | 'stretch';
@@ -32,6 +33,29 @@ type AlignInline = 'center' | 'end' | 'start';
32
33
  // @public (undocumented)
33
34
  type AlignInline_2 = 'center' | 'end' | 'start';
34
35
 
36
+ // @public (undocumented)
37
+ type AlignItems = keyof typeof alignItemsMap;
38
+
39
+ // @public (undocumented)
40
+ type AlignItems_2 = keyof typeof alignItemsMap_2;
41
+
42
+ // @public (undocumented)
43
+ const alignItemsMap: {
44
+ readonly start: SerializedStyles_2;
45
+ readonly center: SerializedStyles_2;
46
+ readonly baseline: SerializedStyles_2;
47
+ readonly end: SerializedStyles_2;
48
+ readonly stretch: SerializedStyles_2;
49
+ };
50
+
51
+ // @public (undocumented)
52
+ const alignItemsMap_2: {
53
+ readonly start: SerializedStyles_2;
54
+ readonly center: SerializedStyles_2;
55
+ readonly baseline: SerializedStyles_2;
56
+ readonly end: SerializedStyles_2;
57
+ };
58
+
35
59
  // @public (undocumented)
36
60
  type AllowedBoxStyles = keyof SafeCSSObject;
37
61
 
@@ -42,7 +66,10 @@ type As = 'article' | 'aside' | 'button' | 'dialog' | 'div' | 'footer' | 'header
42
66
  type AutoComplete<T extends string> = Omit<string, T> | T;
43
67
 
44
68
  // @public (undocumented)
45
- type BackgroundColor = keyof typeof backgroundColorMap;
69
+ type AutoFlow = keyof typeof gridAutoFlowMap;
70
+
71
+ // @public (undocumented)
72
+ export type BackgroundColor = keyof typeof backgroundColorMap;
46
73
 
47
74
  // @public (undocumented)
48
75
  const backgroundColorMap: {
@@ -179,10 +206,11 @@ type BaseBoxPropsFoundation<T extends ElementType = 'div'> = {
179
206
  type BasePrimitiveProps = {
180
207
  testId?: string;
181
208
  style?: CSSProperties;
209
+ xcss?: BoxXCSS | BoxXCSS[];
182
210
  };
183
211
 
184
212
  // @public (undocumented)
185
- type BorderColor = keyof typeof borderColorMap;
213
+ export type BorderColor = keyof typeof borderColorMap;
186
214
 
187
215
  // @public
188
216
  const borderColorMap: {
@@ -212,7 +240,7 @@ const borderColorMap: {
212
240
  };
213
241
 
214
242
  // @public (undocumented)
215
- type BorderRadius = keyof typeof borderRadiusMap;
243
+ export type BorderRadius = keyof typeof borderRadiusMap;
216
244
 
217
245
  // @public (undocumented)
218
246
  const borderRadiusMap: {
@@ -226,7 +254,7 @@ const borderRadiusMap: {
226
254
  };
227
255
 
228
256
  // @public (undocumented)
229
- type BorderWidth = keyof typeof borderWidthMap;
257
+ export type BorderWidth = keyof typeof borderWidthMap;
230
258
 
231
259
  // @public
232
260
  const borderWidthMap: {
@@ -243,7 +271,7 @@ export const Box: BoxComponent;
243
271
  type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
244
272
 
245
273
  // @public (undocumented)
246
- export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className'> & PublicBoxPropsBase;
274
+ export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className'>;
247
275
 
248
276
  // @public (undocumented)
249
277
  type BoxStyles = SerializedStyles & {
@@ -254,13 +282,10 @@ type BoxStyles = SerializedStyles & {
254
282
  const boxTag: unique symbol;
255
283
 
256
284
  // @public (undocumented)
257
- type BoxXCSS = {
285
+ type BoxXCSS = false | undefined | {
258
286
  readonly [uniqueSymbol]: BoxStyles;
259
287
  };
260
288
 
261
- // @public (undocumented)
262
- type BoxXCSSArray = Array<BoxXCSS | BoxXCSSArray | false | undefined>;
263
-
264
289
  // @public
265
290
  export type Breakpoint = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs';
266
291
 
@@ -275,7 +300,7 @@ type CSSPseudos = {
275
300
  };
276
301
 
277
302
  // @public (undocumented)
278
- type Dimension = keyof typeof dimensionMap;
303
+ export type Dimension = keyof typeof dimensionMap;
279
304
 
280
305
  // @public
281
306
  const dimensionMap: {
@@ -290,46 +315,155 @@ const dimensionMap: {
290
315
  };
291
316
 
292
317
  // @public (undocumented)
293
- type Grow = 'fill' | 'hug';
318
+ type Direction = keyof typeof flexDirectionMap;
319
+
320
+ // @public
321
+ export const Flex: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
322
+ as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
323
+ justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
324
+ alignItems?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
325
+ columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
326
+ gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
327
+ rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
328
+ direction?: "column" | "row" | undefined;
329
+ wrap?: "nowrap" | "wrap" | undefined;
330
+ children: ReactNode;
331
+ ref?: any;
332
+ } & BasePrimitiveProps, "alignItems" | "as" | "children" | "columnGap" | "direction" | "gap" | "justifyContent" | "rowGap" | "wrap" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
333
+
334
+ // @public (undocumented)
335
+ const flexDirectionMap: {
336
+ readonly column: SerializedStyles_2;
337
+ readonly row: SerializedStyles_2;
338
+ };
294
339
 
295
340
  // @public (undocumented)
296
- type Grow_2 = 'fill' | 'hug';
341
+ export type FlexProps<T extends ElementType = 'div'> = {
342
+ as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
343
+ justifyContent?: JustifyContent;
344
+ alignItems?: AlignItems;
345
+ columnGap?: Space;
346
+ gap?: Space;
347
+ rowGap?: Space;
348
+ direction?: Direction;
349
+ wrap?: Wrap;
350
+ children: ReactNode;
351
+ ref?: React.ComponentPropsWithRef<T>['ref'];
352
+ } & BasePrimitiveProps;
353
+
354
+ // @public (undocumented)
355
+ const flexWrapMap: {
356
+ readonly wrap: SerializedStyles_2;
357
+ readonly nowrap: SerializedStyles_2;
358
+ };
297
359
 
298
360
  // @public
299
- export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<InlineProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | "testId" | "xcss"> & RefAttributes<any>>>;
361
+ export const Grid: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
362
+ as?: "div" | "ol" | "span" | "ul" | undefined;
363
+ justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
364
+ alignItems?: "baseline" | "center" | "end" | "start" | undefined;
365
+ columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
366
+ gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
367
+ rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
368
+ autoFlow?: "column dense" | "column" | "dense" | "row dense" | "row" | undefined;
369
+ templateRows?: string | undefined;
370
+ templateColumns?: string | undefined;
371
+ templateAreas?: string[] | undefined;
372
+ children: ReactNode;
373
+ ref?: any;
374
+ } & BasePrimitiveProps, "alignItems" | "as" | "autoFlow" | "children" | "columnGap" | "gap" | "justifyContent" | "rowGap" | "templateAreas" | "templateColumns" | "templateRows" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
375
+
376
+ // @public (undocumented)
377
+ const gridAutoFlowMap: {
378
+ readonly row: SerializedStyles_2;
379
+ readonly column: SerializedStyles_2;
380
+ readonly dense: SerializedStyles_2;
381
+ readonly 'row dense': SerializedStyles_2;
382
+ readonly 'column dense': SerializedStyles_2;
383
+ };
384
+
385
+ // @public (undocumented)
386
+ export type GridProps<T extends ElementType = 'div'> = {
387
+ as?: 'div' | 'ol' | 'span' | 'ul';
388
+ justifyContent?: JustifyContent_2;
389
+ alignItems?: AlignItems_2;
390
+ columnGap?: Space;
391
+ gap?: Space;
392
+ rowGap?: Space;
393
+ autoFlow?: AutoFlow;
394
+ templateRows?: string;
395
+ templateColumns?: string;
396
+ templateAreas?: string[];
397
+ children: ReactNode;
398
+ ref?: React.ComponentPropsWithRef<T>['ref'];
399
+ } & BasePrimitiveProps;
300
400
 
301
401
  // @public (undocumented)
302
- export interface InlineProps<T extends ElementType = 'div'> {
402
+ type Grow = 'fill' | 'hug';
403
+
404
+ // @public (undocumented)
405
+ type Grow_2 = 'fill' | 'hug';
406
+
407
+ // @public
408
+ export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
409
+ as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
410
+ alignBlock?: AlignBlock | undefined;
411
+ alignInline?: AlignInline | undefined;
412
+ shouldWrap?: boolean | undefined;
413
+ spread?: "space-between" | undefined;
414
+ grow?: Grow | undefined;
415
+ space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
416
+ rowSpace?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
417
+ separator?: string | undefined;
418
+ children: ReactNode;
419
+ ref?: any;
420
+ } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
421
+
422
+ // @public (undocumented)
423
+ export type InlineProps<T extends ElementType = 'div'> = {
424
+ as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
303
425
  alignBlock?: AlignBlock;
304
426
  alignInline?: AlignInline;
305
- as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
306
- children: ReactNode;
427
+ shouldWrap?: boolean;
428
+ spread?: Spread;
307
429
  grow?: Grow;
308
- ref?: React.ComponentPropsWithRef<T>['ref'];
430
+ space?: Space;
309
431
  rowSpace?: Space;
310
432
  separator?: string;
311
- shouldWrap?: boolean;
312
- space?: Space;
313
- spread?: Spread;
314
- testId?: string;
315
- xcss?: Array<InlineXCSS | false | undefined> | InlineXCSS;
316
- }
433
+ children: ReactNode;
434
+ ref?: React.ComponentPropsWithRef<T>['ref'];
435
+ } & BasePrimitiveProps;
317
436
 
318
437
  // @public (undocumented)
319
- type InlineStyles = SerializedStyles & {
320
- [inlineTag]: true;
321
- };
438
+ type JustifyContent = keyof typeof justifyContentMap;
322
439
 
323
440
  // @public (undocumented)
324
- const inlineTag: unique symbol;
441
+ type JustifyContent_2 = keyof typeof justifyContentMap_2;
325
442
 
326
443
  // @public (undocumented)
327
- type InlineXCSS = {
328
- readonly [uniqueSymbol]: InlineStyles;
444
+ const justifyContentMap: {
445
+ readonly start: SerializedStyles_2;
446
+ readonly center: SerializedStyles_2;
447
+ readonly end: SerializedStyles_2;
448
+ readonly 'space-between': SerializedStyles_2;
449
+ readonly 'space-around': SerializedStyles_2;
450
+ readonly 'space-evenly': SerializedStyles_2;
451
+ readonly stretch: SerializedStyles_2;
329
452
  };
330
453
 
331
454
  // @public (undocumented)
332
- type Layer = keyof typeof layerMap;
455
+ const justifyContentMap_2: {
456
+ readonly start: SerializedStyles_2;
457
+ readonly center: SerializedStyles_2;
458
+ readonly end: SerializedStyles_2;
459
+ readonly 'space-between': SerializedStyles_2;
460
+ readonly 'space-around': SerializedStyles_2;
461
+ readonly 'space-evenly': SerializedStyles_2;
462
+ readonly stretch: SerializedStyles_2;
463
+ };
464
+
465
+ // @public (undocumented)
466
+ export type Layer = keyof typeof layerMap;
333
467
 
334
468
  // @public
335
469
  const layerMap: {
@@ -345,7 +479,7 @@ const layerMap: {
345
479
  };
346
480
 
347
481
  // @public
348
- const media: {
482
+ export const media: {
349
483
  readonly above: {
350
484
  readonly xxs: "@media all";
351
485
  readonly xs: "@media (min-width: 30rem)";
@@ -371,11 +505,6 @@ export type PressableProps = Omit<BaseBoxProps<'button'>, 'as' | 'children' | 'd
371
505
  isDisabled?: boolean;
372
506
  };
373
507
 
374
- // @public (undocumented)
375
- type PublicBoxPropsBase = {
376
- xcss?: BoxXCSS | BoxXCSSArray;
377
- };
378
-
379
508
  // @public (undocumented)
380
509
  type SafeCSSObject = CSSPseudos & TokenisedProps & CSSMediaQueries & Omit<CSSPropertiesWithMultiValues, keyof TokenisedProps>;
381
510
 
@@ -383,7 +512,7 @@ type SafeCSSObject = CSSPseudos & TokenisedProps & CSSMediaQueries & Omit<CSSPro
383
512
  type ScopedSafeCSSObject<T extends keyof SafeCSSObject> = Pick<SafeCSSObject, T>;
384
513
 
385
514
  // @public (undocumented)
386
- type Shadow = keyof typeof shadowMap;
515
+ export type Shadow = keyof typeof shadowMap;
387
516
 
388
517
  // @public (undocumented)
389
518
  const shadowMap: {
@@ -395,7 +524,7 @@ const shadowMap: {
395
524
  };
396
525
 
397
526
  // @public (undocumented)
398
- type Space = keyof typeof spaceMap;
527
+ export type Space = keyof typeof spaceMap;
399
528
 
400
529
  // @public
401
530
  const spaceMap: {
@@ -415,6 +544,14 @@ const spaceMap: {
415
544
  'space.1000': "var(--ds-space-1000)";
416
545
  };
417
546
 
547
+ // @public (undocumented)
548
+ type SpaceStyles = SerializedStyles & {
549
+ [spaceTag]: true;
550
+ };
551
+
552
+ // @public (undocumented)
553
+ const spaceTag: unique symbol;
554
+
418
555
  // @public (undocumented)
419
556
  type Spacing = 'columnGap' | 'gap' | 'inset' | 'insetBlock' | 'insetBlockEnd' | 'insetBlockStart' | 'insetInline' | 'insetInlineEnd' | 'insetInlineStart' | 'margin' | 'marginBlock' | 'marginBlockEnd' | 'marginBlockStart' | 'marginInline' | 'marginInlineEnd' | 'marginInlineStart' | 'outlineOffset' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingBottom' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'rowGap';
420
557
 
@@ -425,20 +562,28 @@ type Spread = 'space-between';
425
562
  type Spread_2 = 'space-between';
426
563
 
427
564
  // @public
428
- export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<StackProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "space" | "spread" | "testId"> & RefAttributes<any>>>;
429
-
430
- // @public (undocumented)
431
- export interface StackProps<T extends ElementType = 'div'> {
565
+ export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
566
+ as?: "div" | "ol" | "span" | "ul" | undefined;
567
+ alignBlock?: AlignBlock_2 | undefined;
568
+ alignInline?: AlignInline_2 | undefined;
569
+ spread?: "space-between" | undefined;
570
+ grow?: Grow_2 | undefined;
571
+ space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
572
+ children: ReactNode;
573
+ ref?: any;
574
+ } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
575
+
576
+ // @public (undocumented)
577
+ export type StackProps<T extends ElementType = 'div'> = {
578
+ as?: 'div' | 'ol' | 'span' | 'ul';
432
579
  alignBlock?: AlignBlock_2;
433
580
  alignInline?: AlignInline_2;
434
- as?: 'div' | 'ol' | 'span' | 'ul';
435
- children: ReactNode;
581
+ spread?: Spread_2;
436
582
  grow?: Grow_2;
437
- ref?: React.ComponentPropsWithRef<T>['ref'];
438
583
  space?: Space;
439
- spread?: Spread_2;
440
- testId?: string;
441
- }
584
+ children: ReactNode;
585
+ ref?: React.ComponentPropsWithRef<T>['ref'];
586
+ } & BasePrimitiveProps;
442
587
 
443
588
  // @public (undocumented)
444
589
  type TextColor = keyof typeof textColorMap;
@@ -597,9 +742,12 @@ export const UNSAFE_media: {
597
742
  };
598
743
  };
599
744
 
745
+ // @public (undocumented)
746
+ type Wrap = keyof typeof flexWrapMap;
747
+
600
748
  // @public
601
- export function xcss<Primitive extends typeof Box | typeof Inline = typeof Box>(style: Primitive extends typeof Box ? ScopedSafeCSSObject<AllowedBoxStyles> | ScopedSafeCSSObject<AllowedBoxStyles>[] : Primitive extends typeof Inline ? ScopedSafeCSSObject<Spacing> | ScopedSafeCSSObject<Spacing>[] : never): {
602
- readonly [uniqueSymbol]: Primitive extends (<T extends ElementType<any> = "div">(props: BoxProps<T>) => ReactElement<any, JSXElementConstructor<any>| string> | null) & FC<BoxProps<"div">> ? BoxStyles : Primitive extends MemoExoticComponent<ForwardRefExoticComponent<Pick<InlineProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | "testId" | "xcss"> & RefAttributes<any>>> ? InlineStyles : never;
749
+ export function xcss<Primitive extends typeof Box | void = typeof Box>(style: Primitive extends typeof Box ? ScopedSafeCSSObject<AllowedBoxStyles> | ScopedSafeCSSObject<AllowedBoxStyles>[] : Primitive extends void ? ScopedSafeCSSObject<Spacing> | ScopedSafeCSSObject<Spacing>[] : never): {
750
+ readonly [uniqueSymbol]: Primitive extends (<T extends ElementType<any> = "div">(props: BoxProps<T>) => ReactElement<any, JSXElementConstructor<any>| string> | null) & FC<BoxProps<"div">> ? BoxStyles : Primitive extends void ? SpaceStyles : never;
603
751
  };
604
752
 
605
753
  // (No @packageDocumentation comment for this package)