@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
@@ -1,3 +1,4 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
2
  /** @jsx jsx */
2
3
  import { forwardRef, memo } from 'react';
3
4
  import { css, jsx } from '@emotion/react';
@@ -37,56 +38,30 @@ var flexGrowMap = {
37
38
 
38
39
  /**
39
40
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
40
- * @codegen <<SignedSource::e0d436d3312290a98dbfd91d90dd6b9e>>
41
+ * @codegen <<SignedSource::0e30ffcc6aef7932f9d8ff2543327236>>
41
42
  * @codegenId spacing
42
43
  * @codegenCommand yarn codegen-styles
43
44
  * @codegenParams ["space"]
44
45
  * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::167d3b69b159ae33e74d4ea5ab7eade6>>
45
46
  */
46
- var spaceMap = {
47
- '0': css({
48
- gap: "var(--ds-space-0, 0px)"
49
- }),
50
- '025': css({
51
- gap: "var(--ds-space-025, 2px)"
52
- }),
53
- '050': css({
54
- gap: "var(--ds-space-050, 4px)"
55
- }),
56
- '075': css({
57
- gap: "var(--ds-space-075, 6px)"
58
- }),
59
- '100': css({
60
- gap: "var(--ds-space-100, 8px)"
61
- }),
62
- '1000': css({
63
- gap: "var(--ds-space-1000, 80px)"
64
- }),
65
- '150': css({
66
- gap: "var(--ds-space-150, 12px)"
67
- }),
68
- '200': css({
69
- gap: "var(--ds-space-200, 16px)"
70
- }),
71
- '250': css({
72
- gap: "var(--ds-space-250, 20px)"
73
- }),
74
- '300': css({
75
- gap: "var(--ds-space-300, 24px)"
76
- }),
77
- '400': css({
78
- gap: "var(--ds-space-400, 32px)"
79
- }),
80
- '500': css({
81
- gap: "var(--ds-space-500, 40px)"
82
- }),
83
- '600': css({
84
- gap: "var(--ds-space-600, 48px)"
85
- }),
86
- '800': css({
87
- gap: "var(--ds-space-800, 64px)"
88
- })
89
- };
47
+ var spaceMap = Object.fromEntries(['gap'].map(function (property) {
48
+ return [property, {
49
+ '0': css(_defineProperty({}, property, "var(--ds-space-0, 0px)")),
50
+ '025': css(_defineProperty({}, property, "var(--ds-space-025, 2px)")),
51
+ '050': css(_defineProperty({}, property, "var(--ds-space-050, 4px)")),
52
+ '075': css(_defineProperty({}, property, "var(--ds-space-075, 6px)")),
53
+ '100': css(_defineProperty({}, property, "var(--ds-space-100, 8px)")),
54
+ '150': css(_defineProperty({}, property, "var(--ds-space-150, 12px)")),
55
+ '200': css(_defineProperty({}, property, "var(--ds-space-200, 16px)")),
56
+ '250': css(_defineProperty({}, property, "var(--ds-space-250, 20px)")),
57
+ '300': css(_defineProperty({}, property, "var(--ds-space-300, 24px)")),
58
+ '400': css(_defineProperty({}, property, "var(--ds-space-400, 32px)")),
59
+ '500': css(_defineProperty({}, property, "var(--ds-space-500, 40px)")),
60
+ '600': css(_defineProperty({}, property, "var(--ds-space-600, 48px)")),
61
+ '800': css(_defineProperty({}, property, "var(--ds-space-800, 64px)")),
62
+ '1000': css(_defineProperty({}, property, "var(--ds-space-1000, 80px)"))
63
+ }];
64
+ }));
90
65
  /**
91
66
  * @codegenEnd
92
67
  */
@@ -121,7 +96,7 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
121
96
  testId = _ref.testId;
122
97
  var justifyContent = spread || alignBlock;
123
98
  return jsx("div", {
124
- css: [baseStyles, space && spaceMap[space], alignItems && alignItemsMap[alignItems], grow && flexGrowMap[grow], justifyContent && justifyContentMap[justifyContent]],
99
+ css: [baseStyles, space && spaceMap.gap[space], alignItems && alignItemsMap[alignItems], grow && flexGrowMap[grow], justifyContent && justifyContentMap[justifyContent]],
125
100
  "data-testid": testId,
126
101
  ref: ref
127
102
  }, children);
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { default as Stack } from './components/stack.partial';
2
1
  export { Box } from './components/box';
3
- export { default as Inline } from './components/inline.partial';
2
+ export { default as Inline } from './components/inline.partial';
3
+ export { default as Stack } from './components/stack.partial';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1,10 @@
1
- export { default as Box } from '@atlaskit/ds-explorations/box';
1
+ import { ElementType, FC, ReactElement } from 'react';
2
+ import { BaseBoxProps } from './internal/base-box.partial';
3
+ import { CustomStyles } from './types';
4
+ declare type BoxPropsBase = {
5
+ customStyles?: CustomStyles;
6
+ };
7
+ export declare type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className' | 'UNSAFE_style'> & BoxPropsBase;
8
+ declare type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
9
+ declare const Box: BoxComponent;
10
+ export { Box };
@@ -44,29 +44,31 @@ export declare type Spread = 'space-between';
44
44
  export declare type Grow = 'hug' | 'fill';
45
45
  /**
46
46
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
47
- * @codegen <<SignedSource::e0d436d3312290a98dbfd91d90dd6b9e>>
47
+ * @codegen <<SignedSource::0e30ffcc6aef7932f9d8ff2543327236>>
48
48
  * @codegenId spacing
49
49
  * @codegenCommand yarn codegen-styles
50
50
  * @codegenParams ["space"]
51
51
  * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::167d3b69b159ae33e74d4ea5ab7eade6>>
52
52
  */
53
53
  declare const spaceMap: {
54
- '0': import("@emotion/react").SerializedStyles;
55
- '025': import("@emotion/react").SerializedStyles;
56
- '050': import("@emotion/react").SerializedStyles;
57
- '075': import("@emotion/react").SerializedStyles;
58
- '100': import("@emotion/react").SerializedStyles;
59
- '1000': import("@emotion/react").SerializedStyles;
60
- '150': import("@emotion/react").SerializedStyles;
61
- '200': import("@emotion/react").SerializedStyles;
62
- '250': import("@emotion/react").SerializedStyles;
63
- '300': import("@emotion/react").SerializedStyles;
64
- '400': import("@emotion/react").SerializedStyles;
65
- '500': import("@emotion/react").SerializedStyles;
66
- '600': import("@emotion/react").SerializedStyles;
67
- '800': import("@emotion/react").SerializedStyles;
54
+ [k: string]: {
55
+ readonly '0': import("@emotion/react").SerializedStyles;
56
+ readonly '025': import("@emotion/react").SerializedStyles;
57
+ readonly '050': import("@emotion/react").SerializedStyles;
58
+ readonly '075': import("@emotion/react").SerializedStyles;
59
+ readonly '100': import("@emotion/react").SerializedStyles;
60
+ readonly '150': import("@emotion/react").SerializedStyles;
61
+ readonly '200': import("@emotion/react").SerializedStyles;
62
+ readonly '250': import("@emotion/react").SerializedStyles;
63
+ readonly '300': import("@emotion/react").SerializedStyles;
64
+ readonly '400': import("@emotion/react").SerializedStyles;
65
+ readonly '500': import("@emotion/react").SerializedStyles;
66
+ readonly '600': import("@emotion/react").SerializedStyles;
67
+ readonly '800': import("@emotion/react").SerializedStyles;
68
+ readonly '1000': import("@emotion/react").SerializedStyles;
69
+ };
68
70
  };
69
- export declare type Space = keyof typeof spaceMap;
71
+ export declare type Space = keyof typeof spaceMap.gap;
70
72
  /**
71
73
  * __Inline__
72
74
  *
@@ -0,0 +1,483 @@
1
+ /** @jsx jsx */
2
+ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, FC, ReactElement, ReactNode } from 'react';
3
+ import { Layer } from '../../constants';
4
+ import type { BasePrimitiveProps } from '../types';
5
+ export declare type BaseBoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BaseBoxPropsFoundation<T>;
6
+ declare type BaseBoxPropsFoundation<T extends ElementType> = {
7
+ /**
8
+ * The DOM element to render as the Box. Defaults to `div`.
9
+ */
10
+ as?: 'div' | 'span';
11
+ /**
12
+ * The HTML className attribute.
13
+ *
14
+ * Before using this prop please ensure:
15
+ * - The styles cannot otherwise be achieved through `Box` directly.
16
+ * - The use case needs custom styles that cannot be designed or implemented differently
17
+ *
18
+ * Ensure you're using the `@atlaskit/eslint-plugin-design-system` with this prop to prevent unbounded usage.
19
+ *
20
+ * @see `@atlaskit/eslint-plugin-design-system`
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Elements to be rendered inside the Box.
25
+ */
26
+ children?: ReactNode;
27
+ /**
28
+ * Token representing color with a fallback.
29
+ */
30
+ color?: TextColor;
31
+ /**
32
+ * Token representing background color with a fallback.
33
+ */
34
+ backgroundColor?: BackgroundColor;
35
+ /**
36
+ * Token representing shadow with a fallback
37
+ */
38
+ shadow?: Shadow;
39
+ /**
40
+ * Defines border style.
41
+ */
42
+ borderStyle?: BorderStyle;
43
+ /**
44
+ * Defines border width.
45
+ */
46
+ borderWidth?: BorderWidth;
47
+ /**
48
+ * Token representing border color with a fallback.
49
+ */
50
+ borderColor?: BorderColor;
51
+ /**
52
+ * Defines border radius.
53
+ */
54
+ borderRadius?: BorderRadius;
55
+ /**
56
+ * Used for providing a z-index.
57
+ */
58
+ layer?: Layer;
59
+ /**
60
+ * Shorthand `flex` property.
61
+ */
62
+ flex?: Flex;
63
+ /**
64
+ * Defines the flex grow factor -- how much remaining space should be taken up.
65
+ */
66
+ flexGrow?: FlexGrow;
67
+ /**
68
+ * Defines the flex shrink factor -- how the item will shrink relative to other flex items in the container.
69
+ */
70
+ flexShrink?: FlexShrink;
71
+ /**
72
+ * Overrides the `align-items` value.
73
+ */
74
+ alignSelf?: AlignSelf;
75
+ /**
76
+ * Defines what happens if content overflows the box.
77
+ * Shorthand for overflow-inline and overflow-block.
78
+ *
79
+ * @see overflowInline
80
+ * @see overflowBlock
81
+ */
82
+ overflow?: Overflow;
83
+ /**
84
+ * Defines what happens if content overflows the box in the horizontal direction (inline).
85
+ */
86
+ overflowInline?: OverflowInline;
87
+ /**
88
+ * Defines what happens if content overflows the box in the vertical direction (block).
89
+ */
90
+ overflowBlock?: OverflowBlock;
91
+ /**
92
+ * Shorthand for `paddingBlock` and `paddingInline` together.
93
+ *
94
+ * @see paddingBlock
95
+ * @see paddingInline
96
+ */
97
+ padding?: Padding;
98
+ /**
99
+ * Token representing CSS shorthand `paddingBlock`.
100
+ *
101
+ * @see paddingBlockStart
102
+ * @see paddingBlockEnd
103
+ */
104
+ paddingBlock?: PaddingBlock;
105
+ /**
106
+ * Token representing CSS `paddingBlockStart`.
107
+ */
108
+ paddingBlockStart?: PaddingBlockStart;
109
+ /**
110
+ * Token representing CSS `paddingBlockEnd`.
111
+ */
112
+ paddingBlockEnd?: PaddingBlockEnd;
113
+ /**
114
+ * Token representing CSS shorthand `paddingInline`.
115
+ *
116
+ * @see paddingInlineStart
117
+ * @see paddingInlineEnd
118
+ */
119
+ paddingInline?: PaddingInline;
120
+ /**
121
+ * Token representing CSS `paddingInlineStart`.
122
+ */
123
+ paddingInlineStart?: PaddingInlineStart;
124
+ /**
125
+ * Token representing CSS `paddingInlineEnd`.
126
+ */
127
+ paddingInlineEnd?: PaddingInlineEnd;
128
+ /**
129
+ * Token representing width.
130
+ * @experimental The existing tokens will be replaced to better reflect dimensions.
131
+ */
132
+ width?: Width;
133
+ /**
134
+ * Token representing height.
135
+ * @experimental The existing tokens will be replaced to better reflect dimensions.
136
+ */
137
+ height?: Height;
138
+ /**
139
+ * Defines display type and layout. Defaults to `flex`.
140
+ */
141
+ display?: Display;
142
+ /**
143
+ * CSS position property.
144
+ */
145
+ position?: Position;
146
+ ref?: ComponentPropsWithRef<T>['ref'];
147
+ };
148
+ export declare type BaseBoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BaseBoxProps<T>) => ReactElement | null) & FC<BaseBoxProps<T>>;
149
+ /**
150
+ * __Box__
151
+ *
152
+ * Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
153
+ * Renders a `div` by default.
154
+ *
155
+ * @internal
156
+ */
157
+ export declare const BaseBox: BaseBoxComponent;
158
+ export default BaseBox;
159
+ declare type BorderStyle = keyof typeof borderStyleMap;
160
+ declare const borderStyleMap: {
161
+ readonly none: import("@emotion/react").SerializedStyles;
162
+ readonly solid: import("@emotion/react").SerializedStyles;
163
+ };
164
+ declare type BorderWidth = keyof typeof borderWidthMap;
165
+ declare const borderWidthMap: {
166
+ readonly 'size.050': import("@emotion/react").SerializedStyles;
167
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
168
+ };
169
+ declare type BorderRadius = keyof typeof borderRadiusMap;
170
+ declare const borderRadiusMap: {
171
+ 'radius.100': import("@emotion/react").SerializedStyles;
172
+ 'radius.200': import("@emotion/react").SerializedStyles;
173
+ 'radius.round': import("@emotion/react").SerializedStyles;
174
+ 'radius.300': import("@emotion/react").SerializedStyles;
175
+ 'radius.400': import("@emotion/react").SerializedStyles;
176
+ };
177
+ declare type Flex = keyof typeof flexMap;
178
+ declare const flexMap: {
179
+ readonly '1': import("@emotion/react").SerializedStyles;
180
+ };
181
+ declare type FlexGrow = keyof typeof flexGrowMap;
182
+ declare const flexGrowMap: {
183
+ readonly '0': import("@emotion/react").SerializedStyles;
184
+ readonly '1': import("@emotion/react").SerializedStyles;
185
+ };
186
+ declare type FlexShrink = keyof typeof flexShrinkMap;
187
+ declare const flexShrinkMap: {
188
+ readonly '0': import("@emotion/react").SerializedStyles;
189
+ readonly '1': import("@emotion/react").SerializedStyles;
190
+ };
191
+ declare type AlignSelf = keyof typeof alignSelfMap;
192
+ declare const alignSelfMap: {
193
+ readonly center: import("@emotion/react").SerializedStyles;
194
+ readonly start: import("@emotion/react").SerializedStyles;
195
+ readonly stretch: import("@emotion/react").SerializedStyles;
196
+ readonly end: import("@emotion/react").SerializedStyles;
197
+ readonly baseline: import("@emotion/react").SerializedStyles;
198
+ };
199
+ declare type Display = keyof typeof displayMap;
200
+ declare const displayMap: {
201
+ readonly block: import("@emotion/react").SerializedStyles;
202
+ readonly inline: import("@emotion/react").SerializedStyles;
203
+ readonly flex: import("@emotion/react").SerializedStyles;
204
+ readonly 'inline-flex': import("@emotion/react").SerializedStyles;
205
+ readonly 'inline-block': import("@emotion/react").SerializedStyles;
206
+ };
207
+ declare type Position = keyof typeof positionMap;
208
+ declare const positionMap: {
209
+ readonly absolute: import("@emotion/react").SerializedStyles;
210
+ readonly fixed: import("@emotion/react").SerializedStyles;
211
+ readonly relative: import("@emotion/react").SerializedStyles;
212
+ readonly static: import("@emotion/react").SerializedStyles;
213
+ };
214
+ declare type Overflow = keyof typeof overflowMap;
215
+ declare const overflowMap: {
216
+ readonly auto: import("@emotion/react").SerializedStyles;
217
+ readonly hidden: import("@emotion/react").SerializedStyles;
218
+ };
219
+ declare type OverflowInline = keyof typeof overflowInlineMap;
220
+ declare const overflowInlineMap: {
221
+ readonly auto: import("@emotion/react").SerializedStyles;
222
+ readonly hidden: import("@emotion/react").SerializedStyles;
223
+ };
224
+ declare type OverflowBlock = keyof typeof overflowBlockMap;
225
+ declare const overflowBlockMap: {
226
+ readonly auto: import("@emotion/react").SerializedStyles;
227
+ readonly hidden: import("@emotion/react").SerializedStyles;
228
+ };
229
+ /**
230
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
231
+ * @codegen <<SignedSource::50178e05b73e6c8ed21bfbc8e6d87a13>>
232
+ * @codegenId dimensions
233
+ * @codegenCommand yarn codegen-styles
234
+ * @codegenParams ["width", "height", "minWidth", "maxWidth", "minHeight", "maxHeight"]
235
+ */
236
+ declare const widthMap: {
237
+ readonly '100%': import("@emotion/react").SerializedStyles;
238
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
239
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
240
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
241
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
242
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
243
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
244
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
245
+ };
246
+ export declare type Width = keyof typeof widthMap;
247
+ declare const heightMap: {
248
+ readonly '100%': import("@emotion/react").SerializedStyles;
249
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
250
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
251
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
252
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
253
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
254
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
255
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
256
+ };
257
+ export declare type Height = keyof typeof heightMap;
258
+ declare const minWidthMap: {
259
+ readonly '100%': import("@emotion/react").SerializedStyles;
260
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
261
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
262
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
263
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
264
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
265
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
266
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
267
+ };
268
+ export declare type MinWidth = keyof typeof minWidthMap;
269
+ declare const maxWidthMap: {
270
+ readonly '100%': import("@emotion/react").SerializedStyles;
271
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
272
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
273
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
274
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
275
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
276
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
277
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
278
+ };
279
+ export declare type MaxWidth = keyof typeof maxWidthMap;
280
+ declare const minHeightMap: {
281
+ readonly '100%': import("@emotion/react").SerializedStyles;
282
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
283
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
284
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
285
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
286
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
287
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
288
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
289
+ };
290
+ export declare type MinHeight = keyof typeof minHeightMap;
291
+ declare const maxHeightMap: {
292
+ readonly '100%': import("@emotion/react").SerializedStyles;
293
+ readonly 'size.100': import("@emotion/react").SerializedStyles;
294
+ readonly 'size.200': import("@emotion/react").SerializedStyles;
295
+ readonly 'size.300': import("@emotion/react").SerializedStyles;
296
+ readonly 'size.400': import("@emotion/react").SerializedStyles;
297
+ readonly 'size.500': import("@emotion/react").SerializedStyles;
298
+ readonly 'size.600': import("@emotion/react").SerializedStyles;
299
+ readonly 'size.1000': import("@emotion/react").SerializedStyles;
300
+ };
301
+ export declare type MaxHeight = keyof typeof maxHeightMap;
302
+ /**
303
+ * @codegenEnd
304
+ */
305
+ /**
306
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
307
+ * @codegen <<SignedSource::6da0ceaa2c227230e3a93bc724ff8648>>
308
+ * @codegenId spacing
309
+ * @codegenCommand yarn codegen-styles
310
+ * @codegenParams ["padding"]
311
+ * @codegenDependency ../../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::167d3b69b159ae33e74d4ea5ab7eade6>>
312
+ */
313
+ declare const paddingMap: {
314
+ [k: string]: {
315
+ readonly 'space.0': import("@emotion/react").SerializedStyles;
316
+ readonly 'space.025': import("@emotion/react").SerializedStyles;
317
+ readonly 'space.050': import("@emotion/react").SerializedStyles;
318
+ readonly 'space.075': import("@emotion/react").SerializedStyles;
319
+ readonly 'space.100': import("@emotion/react").SerializedStyles;
320
+ readonly 'space.150': import("@emotion/react").SerializedStyles;
321
+ readonly 'space.200': import("@emotion/react").SerializedStyles;
322
+ readonly 'space.250': import("@emotion/react").SerializedStyles;
323
+ readonly 'space.300': import("@emotion/react").SerializedStyles;
324
+ readonly 'space.400': import("@emotion/react").SerializedStyles;
325
+ readonly 'space.500': import("@emotion/react").SerializedStyles;
326
+ readonly 'space.600': import("@emotion/react").SerializedStyles;
327
+ readonly 'space.800': import("@emotion/react").SerializedStyles;
328
+ readonly 'space.1000': import("@emotion/react").SerializedStyles;
329
+ };
330
+ };
331
+ export declare type Padding = keyof typeof paddingMap.padding;
332
+ export declare type PaddingBlock = keyof typeof paddingMap.paddingBlock;
333
+ export declare type PaddingBlockStart = keyof typeof paddingMap.paddingBlockStart;
334
+ export declare type PaddingBlockEnd = keyof typeof paddingMap.paddingBlockEnd;
335
+ export declare type PaddingInline = keyof typeof paddingMap.paddingInline;
336
+ export declare type PaddingInlineStart = keyof typeof paddingMap.paddingInlineStart;
337
+ export declare type PaddingInlineEnd = keyof typeof paddingMap.paddingInlineEnd;
338
+ /**
339
+ * @codegenEnd
340
+ */
341
+ /**
342
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
343
+ * @codegen <<SignedSource::1e77e4e502cd4d951550637bdce2f3ca>>
344
+ * @codegenId colors
345
+ * @codegenCommand yarn codegen-styles
346
+ * @codegenParams ["border", "background", "shadow", "text"]
347
+ * @codegenDependency ../../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
348
+ */
349
+ declare const borderColorMap: {
350
+ readonly 'color.border': import("@emotion/react").SerializedStyles;
351
+ readonly 'accent.red': import("@emotion/react").SerializedStyles;
352
+ readonly 'accent.orange': import("@emotion/react").SerializedStyles;
353
+ readonly 'accent.yellow': import("@emotion/react").SerializedStyles;
354
+ readonly 'accent.green': import("@emotion/react").SerializedStyles;
355
+ readonly 'accent.teal': import("@emotion/react").SerializedStyles;
356
+ readonly 'accent.blue': import("@emotion/react").SerializedStyles;
357
+ readonly 'accent.purple': import("@emotion/react").SerializedStyles;
358
+ readonly 'accent.magenta': import("@emotion/react").SerializedStyles;
359
+ readonly 'accent.gray': import("@emotion/react").SerializedStyles;
360
+ readonly disabled: import("@emotion/react").SerializedStyles;
361
+ readonly focused: import("@emotion/react").SerializedStyles;
362
+ readonly input: import("@emotion/react").SerializedStyles;
363
+ readonly inverse: import("@emotion/react").SerializedStyles;
364
+ readonly selected: import("@emotion/react").SerializedStyles;
365
+ readonly brand: import("@emotion/react").SerializedStyles;
366
+ readonly danger: import("@emotion/react").SerializedStyles;
367
+ readonly warning: import("@emotion/react").SerializedStyles;
368
+ readonly success: import("@emotion/react").SerializedStyles;
369
+ readonly discovery: import("@emotion/react").SerializedStyles;
370
+ readonly information: import("@emotion/react").SerializedStyles;
371
+ readonly bold: import("@emotion/react").SerializedStyles;
372
+ };
373
+ export declare type BorderColor = keyof typeof borderColorMap;
374
+ declare const backgroundColorMap: {
375
+ readonly 'accent.red.subtlest': import("@emotion/react").SerializedStyles;
376
+ readonly 'accent.red.subtler': import("@emotion/react").SerializedStyles;
377
+ readonly 'accent.red.subtle': import("@emotion/react").SerializedStyles;
378
+ readonly 'accent.red.bolder': import("@emotion/react").SerializedStyles;
379
+ readonly 'accent.orange.subtlest': import("@emotion/react").SerializedStyles;
380
+ readonly 'accent.orange.subtler': import("@emotion/react").SerializedStyles;
381
+ readonly 'accent.orange.subtle': import("@emotion/react").SerializedStyles;
382
+ readonly 'accent.orange.bolder': import("@emotion/react").SerializedStyles;
383
+ readonly 'accent.yellow.subtlest': import("@emotion/react").SerializedStyles;
384
+ readonly 'accent.yellow.subtler': import("@emotion/react").SerializedStyles;
385
+ readonly 'accent.yellow.subtle': import("@emotion/react").SerializedStyles;
386
+ readonly 'accent.yellow.bolder': import("@emotion/react").SerializedStyles;
387
+ readonly 'accent.green.subtlest': import("@emotion/react").SerializedStyles;
388
+ readonly 'accent.green.subtler': import("@emotion/react").SerializedStyles;
389
+ readonly 'accent.green.subtle': import("@emotion/react").SerializedStyles;
390
+ readonly 'accent.green.bolder': import("@emotion/react").SerializedStyles;
391
+ readonly 'accent.teal.subtlest': import("@emotion/react").SerializedStyles;
392
+ readonly 'accent.teal.subtler': import("@emotion/react").SerializedStyles;
393
+ readonly 'accent.teal.subtle': import("@emotion/react").SerializedStyles;
394
+ readonly 'accent.teal.bolder': import("@emotion/react").SerializedStyles;
395
+ readonly 'accent.blue.subtlest': import("@emotion/react").SerializedStyles;
396
+ readonly 'accent.blue.subtler': import("@emotion/react").SerializedStyles;
397
+ readonly 'accent.blue.subtle': import("@emotion/react").SerializedStyles;
398
+ readonly 'accent.blue.bolder': import("@emotion/react").SerializedStyles;
399
+ readonly 'accent.purple.subtlest': import("@emotion/react").SerializedStyles;
400
+ readonly 'accent.purple.subtler': import("@emotion/react").SerializedStyles;
401
+ readonly 'accent.purple.subtle': import("@emotion/react").SerializedStyles;
402
+ readonly 'accent.purple.bolder': import("@emotion/react").SerializedStyles;
403
+ readonly 'accent.magenta.subtlest': import("@emotion/react").SerializedStyles;
404
+ readonly 'accent.magenta.subtler': import("@emotion/react").SerializedStyles;
405
+ readonly 'accent.magenta.subtle': import("@emotion/react").SerializedStyles;
406
+ readonly 'accent.magenta.bolder': import("@emotion/react").SerializedStyles;
407
+ readonly 'accent.gray.subtlest': import("@emotion/react").SerializedStyles;
408
+ readonly 'accent.gray.subtler': import("@emotion/react").SerializedStyles;
409
+ readonly 'accent.gray.subtle': import("@emotion/react").SerializedStyles;
410
+ readonly 'accent.gray.bolder': import("@emotion/react").SerializedStyles;
411
+ readonly disabled: import("@emotion/react").SerializedStyles;
412
+ readonly input: import("@emotion/react").SerializedStyles;
413
+ readonly 'inverse.subtle': import("@emotion/react").SerializedStyles;
414
+ readonly neutral: import("@emotion/react").SerializedStyles;
415
+ readonly 'neutral.subtle': import("@emotion/react").SerializedStyles;
416
+ readonly 'neutral.bold': import("@emotion/react").SerializedStyles;
417
+ readonly selected: import("@emotion/react").SerializedStyles;
418
+ readonly 'selected.bold': import("@emotion/react").SerializedStyles;
419
+ readonly 'brand.bold': import("@emotion/react").SerializedStyles;
420
+ readonly danger: import("@emotion/react").SerializedStyles;
421
+ readonly 'danger.bold': import("@emotion/react").SerializedStyles;
422
+ readonly warning: import("@emotion/react").SerializedStyles;
423
+ readonly 'warning.bold': import("@emotion/react").SerializedStyles;
424
+ readonly success: import("@emotion/react").SerializedStyles;
425
+ readonly 'success.bold': import("@emotion/react").SerializedStyles;
426
+ readonly discovery: import("@emotion/react").SerializedStyles;
427
+ readonly 'discovery.bold': import("@emotion/react").SerializedStyles;
428
+ readonly information: import("@emotion/react").SerializedStyles;
429
+ readonly 'information.bold': import("@emotion/react").SerializedStyles;
430
+ readonly 'color.blanket': import("@emotion/react").SerializedStyles;
431
+ readonly 'color.blanket.selected': import("@emotion/react").SerializedStyles;
432
+ readonly 'color.blanket.danger': import("@emotion/react").SerializedStyles;
433
+ readonly 'elevation.surface': import("@emotion/react").SerializedStyles;
434
+ readonly 'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
435
+ readonly 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
436
+ readonly 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
437
+ };
438
+ export declare type BackgroundColor = keyof typeof backgroundColorMap;
439
+ declare const shadowMap: {
440
+ readonly overflow: import("@emotion/react").SerializedStyles;
441
+ readonly 'overflow.perimeter': import("@emotion/react").SerializedStyles;
442
+ readonly 'overflow.spread': import("@emotion/react").SerializedStyles;
443
+ readonly overlay: import("@emotion/react").SerializedStyles;
444
+ readonly raised: import("@emotion/react").SerializedStyles;
445
+ };
446
+ export declare type Shadow = keyof typeof shadowMap;
447
+ declare const textColorMap: {
448
+ readonly 'color.text': import("@emotion/react").SerializedStyles;
449
+ readonly 'accent.red': import("@emotion/react").SerializedStyles;
450
+ readonly 'accent.red.bolder': import("@emotion/react").SerializedStyles;
451
+ readonly 'accent.orange': import("@emotion/react").SerializedStyles;
452
+ readonly 'accent.orange.bolder': import("@emotion/react").SerializedStyles;
453
+ readonly 'accent.yellow': import("@emotion/react").SerializedStyles;
454
+ readonly 'accent.yellow.bolder': import("@emotion/react").SerializedStyles;
455
+ readonly 'accent.green': import("@emotion/react").SerializedStyles;
456
+ readonly 'accent.green.bolder': import("@emotion/react").SerializedStyles;
457
+ readonly 'accent.teal': import("@emotion/react").SerializedStyles;
458
+ readonly 'accent.teal.bolder': import("@emotion/react").SerializedStyles;
459
+ readonly 'accent.blue': import("@emotion/react").SerializedStyles;
460
+ readonly 'accent.blue.bolder': import("@emotion/react").SerializedStyles;
461
+ readonly 'accent.purple': import("@emotion/react").SerializedStyles;
462
+ readonly 'accent.purple.bolder': import("@emotion/react").SerializedStyles;
463
+ readonly 'accent.magenta': import("@emotion/react").SerializedStyles;
464
+ readonly 'accent.magenta.bolder': import("@emotion/react").SerializedStyles;
465
+ readonly 'accent.gray': import("@emotion/react").SerializedStyles;
466
+ readonly 'accent.gray.bolder': import("@emotion/react").SerializedStyles;
467
+ readonly disabled: import("@emotion/react").SerializedStyles;
468
+ readonly inverse: import("@emotion/react").SerializedStyles;
469
+ readonly selected: import("@emotion/react").SerializedStyles;
470
+ readonly brand: import("@emotion/react").SerializedStyles;
471
+ readonly danger: import("@emotion/react").SerializedStyles;
472
+ readonly warning: import("@emotion/react").SerializedStyles;
473
+ readonly 'warning.inverse': import("@emotion/react").SerializedStyles;
474
+ readonly success: import("@emotion/react").SerializedStyles;
475
+ readonly discovery: import("@emotion/react").SerializedStyles;
476
+ readonly information: import("@emotion/react").SerializedStyles;
477
+ readonly subtlest: import("@emotion/react").SerializedStyles;
478
+ readonly subtle: import("@emotion/react").SerializedStyles;
479
+ };
480
+ export declare type TextColor = keyof typeof textColorMap;
481
+ /**
482
+ * @codegenEnd
483
+ */