@atlaskit/primitives 0.0.2 → 0.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.
@@ -5,14 +5,109 @@
5
5
  ```ts
6
6
 
7
7
  import { default as Box } from '@atlaskit/ds-explorations/box';
8
- import { default as Inline } from '@atlaskit/ds-explorations/inline';
9
- import { default as Stack } from '@atlaskit/ds-explorations/stack';
8
+ import { ForwardRefExoticComponent } from 'react';
9
+ import { MemoExoticComponent } from 'react';
10
+ import { ReactNode } from 'react';
11
+ import { RefAttributes } from 'react';
12
+ import { SerializedStyles } from '@emotion/react';
13
+
14
+ // @public (undocumented)
15
+ type AlignBlock = 'center' | 'end' | 'start';
16
+
17
+ // @public (undocumented)
18
+ type AlignBlock_2 = 'baseline' | 'center' | 'end' | 'start';
19
+
20
+ // @public (undocumented)
21
+ type AlignInline = 'center' | 'end' | 'start';
22
+
23
+ // @public (undocumented)
24
+ type AlignInline_2 = 'center' | 'end' | 'start';
10
25
 
11
26
  export { Box }
12
27
 
13
- export { Inline }
28
+ // @public (undocumented)
29
+ type Grow = 'fill' | 'hug';
30
+
31
+ // @public (undocumented)
32
+ type Grow_2 = 'fill' | 'hug';
33
+
34
+ // @public
35
+ export const Inline: MemoExoticComponent<ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>>;
36
+
37
+ // @public (undocumented)
38
+ interface InlineProps {
39
+ alignBlock?: AlignBlock_2;
40
+ alignInline?: AlignInline_2;
41
+ children: ReactNode;
42
+ grow?: Grow_2;
43
+ separator?: string;
44
+ shouldWrap?: boolean;
45
+ space?: Space_2;
46
+ spread?: Spread_2;
47
+ testId?: string;
48
+ }
49
+
50
+ // @public (undocumented)
51
+ type Space = keyof typeof spaceMap;
52
+
53
+ // @public (undocumented)
54
+ type Space_2 = keyof typeof spaceMap_2;
55
+
56
+ // @public
57
+ const spaceMap: {
58
+ '0': SerializedStyles;
59
+ '025': SerializedStyles;
60
+ '050': SerializedStyles;
61
+ '075': SerializedStyles;
62
+ '100': SerializedStyles;
63
+ '1000': SerializedStyles;
64
+ '150': SerializedStyles;
65
+ '200': SerializedStyles;
66
+ '250': SerializedStyles;
67
+ '300': SerializedStyles;
68
+ '400': SerializedStyles;
69
+ '500': SerializedStyles;
70
+ '600': SerializedStyles;
71
+ '800': SerializedStyles;
72
+ };
73
+
74
+ // @public
75
+ const spaceMap_2: {
76
+ '0': SerializedStyles;
77
+ '025': SerializedStyles;
78
+ '050': SerializedStyles;
79
+ '075': SerializedStyles;
80
+ '100': SerializedStyles;
81
+ '1000': SerializedStyles;
82
+ '150': SerializedStyles;
83
+ '200': SerializedStyles;
84
+ '250': SerializedStyles;
85
+ '300': SerializedStyles;
86
+ '400': SerializedStyles;
87
+ '500': SerializedStyles;
88
+ '600': SerializedStyles;
89
+ '800': SerializedStyles;
90
+ };
91
+
92
+ // @public (undocumented)
93
+ type Spread = 'space-between';
94
+
95
+ // @public (undocumented)
96
+ type Spread_2 = 'space-between';
97
+
98
+ // @public
99
+ export const Stack: MemoExoticComponent<ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>>;
14
100
 
15
- export { Stack }
101
+ // @public (undocumented)
102
+ interface StackProps {
103
+ alignBlock?: AlignBlock;
104
+ alignInline?: AlignInline;
105
+ children: ReactNode;
106
+ grow?: Grow;
107
+ space?: Space;
108
+ spread?: Spread;
109
+ testId?: string;
110
+ }
16
111
 
17
112
  // (No @packageDocumentation comment for this package)
18
113