@atlaskit/ds-explorations 2.3.2 → 2.4.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 (60) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/box/package.json +15 -0
  3. package/dist/cjs/components/box.partial.js +620 -0
  4. package/dist/cjs/components/inline.partial.js +182 -0
  5. package/dist/cjs/components/stack.partial.js +148 -0
  6. package/dist/cjs/index.js +21 -0
  7. package/dist/es2019/components/box.partial.js +614 -0
  8. package/dist/es2019/components/inline.partial.js +177 -0
  9. package/dist/es2019/components/stack.partial.js +144 -0
  10. package/dist/es2019/index.js +3 -0
  11. package/dist/esm/components/box.partial.js +617 -0
  12. package/dist/esm/components/inline.partial.js +177 -0
  13. package/dist/esm/components/stack.partial.js +143 -0
  14. package/dist/esm/index.js +3 -0
  15. package/dist/types/components/box.partial.d.ts +357 -0
  16. package/dist/types/components/inline.partial.d.ts +108 -0
  17. package/dist/types/components/stack.partial.d.ts +92 -0
  18. package/dist/types/components/surface-provider.d.ts +2 -2
  19. package/dist/types/index.d.ts +6 -0
  20. package/dist/types-ts4.5/components/box.partial.d.ts +357 -0
  21. package/dist/types-ts4.5/components/inline.partial.d.ts +108 -0
  22. package/dist/types-ts4.5/components/stack.partial.d.ts +92 -0
  23. package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
  24. package/dist/types-ts4.5/index.d.ts +6 -0
  25. package/examples/00-basic.tsx +22 -0
  26. package/examples/01-box.tsx +171 -0
  27. package/examples/02-text-advanced.tsx +20 -11
  28. package/examples/02-text.tsx +10 -15
  29. package/examples/03-stack.tsx +99 -0
  30. package/examples/04-inline.tsx +99 -0
  31. package/examples/05-badge.tsx +5 -9
  32. package/examples/06-section-message.tsx +4 -2
  33. package/examples/07-comment.tsx +3 -1
  34. package/examples/08-lozenge.tsx +4 -8
  35. package/examples/99-interactions.tsx +33 -49
  36. package/inline/package.json +15 -0
  37. package/package.json +5 -3
  38. package/report.api.md +465 -0
  39. package/scripts/codegen-styles.tsx +89 -16
  40. package/src/components/__tests__/unit/box.test.tsx +55 -0
  41. package/src/components/__tests__/unit/inline.test.tsx +43 -0
  42. package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
  43. package/src/components/__tests__/unit/stack.test.tsx +31 -0
  44. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +3 -0
  45. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +3 -0
  46. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +3 -0
  47. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +3 -0
  48. package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +28 -0
  49. package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +28 -0
  50. package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
  51. package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +6 -0
  52. package/src/components/box.partial.tsx +706 -0
  53. package/src/components/inline.partial.tsx +218 -0
  54. package/src/components/stack.partial.tsx +174 -0
  55. package/src/components/surface-provider.tsx +1 -1
  56. package/src/index.tsx +6 -0
  57. package/stack/package.json +15 -0
  58. package/tmp/api-report-tmp.d.ts +451 -0
  59. package/tsconfig.app.json +0 -3
  60. package/tsconfig.dev.json +6 -0
@@ -0,0 +1,177 @@
1
+ /** @jsx jsx */
2
+ import { Children, forwardRef, Fragment, memo } from 'react';
3
+ import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Inline` from `@atlaskit/primitives` instead.
9
+ */
10
+
11
+ var flexAlignItemsMap = {
12
+ center: css({
13
+ alignItems: 'center'
14
+ }),
15
+ baseline: css({
16
+ alignItems: 'baseline'
17
+ }),
18
+ flexStart: css({
19
+ alignItems: 'flex-start'
20
+ }),
21
+ flexEnd: css({
22
+ alignItems: 'flex-end'
23
+ }),
24
+ start: css({
25
+ alignItems: 'start'
26
+ }),
27
+ end: css({
28
+ alignItems: 'end'
29
+ })
30
+ };
31
+ var flexJustifyContentMap = {
32
+ center: css({
33
+ justifyContent: 'center'
34
+ }),
35
+ flexStart: css({
36
+ justifyContent: 'flex-start'
37
+ }),
38
+ 'space-between': css({
39
+ justifyContent: 'space-between'
40
+ }),
41
+ flexEnd: css({
42
+ justifyContent: 'flex-end'
43
+ }),
44
+ start: css({
45
+ justifyContent: 'start'
46
+ }),
47
+ end: css({
48
+ justifyContent: 'end'
49
+ }),
50
+ spaceBetween: css({
51
+ justifyContent: 'space-between'
52
+ })
53
+ };
54
+ var flexWrapMap = {
55
+ wrap: css({
56
+ flexWrap: 'wrap'
57
+ })
58
+ };
59
+ var baseStyles = css({
60
+ display: 'flex',
61
+ boxSizing: 'border-box',
62
+ flexDirection: 'row'
63
+ });
64
+ var dividerStyles = css({
65
+ margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
66
+ color: "var(--ds-text-subtle, #42526E)",
67
+ pointerEvents: 'none',
68
+ userSelect: 'none'
69
+ });
70
+ var Divider = function Divider(_ref) {
71
+ var children = _ref.children;
72
+ return jsx("span", {
73
+ css: dividerStyles
74
+ }, children);
75
+ };
76
+
77
+ /**
78
+ * __Inline__
79
+ *
80
+ * Inline is a primitive component based on flexbox that manages the horizontal layout of direct children.
81
+ * Renders a `div` by default.
82
+ *
83
+ * @private
84
+ * @deprecated DSP-8009: This primitive is scheduled for deletion.
85
+ * Please use `Inline` from `@atlaskit/primitives` instead.
86
+ *
87
+ * @example
88
+ * ```tsx
89
+ * const App = () => (
90
+ * <Inline gap="space.100">
91
+ * <Button />
92
+ * <Button />
93
+ * </Inline>
94
+ * )
95
+ * ```
96
+ */
97
+ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
98
+ var gap = _ref2.gap,
99
+ alignItems = _ref2.alignItems,
100
+ justifyContent = _ref2.justifyContent,
101
+ flexWrap = _ref2.flexWrap,
102
+ divider = _ref2.divider,
103
+ UNSAFE_style = _ref2.UNSAFE_style,
104
+ rawChildren = _ref2.children,
105
+ testId = _ref2.testId;
106
+ var dividerComponent = typeof divider === 'string' ? jsx(Divider, null, divider) : divider;
107
+ var children = divider ? Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
108
+ return jsx(Fragment, {
109
+ key: index
110
+ }, divider && index > 0 ? dividerComponent : null, child);
111
+ }) : rawChildren;
112
+ return jsx("div", {
113
+ style: UNSAFE_style,
114
+ css: [baseStyles, gap && columnGapMap[gap], alignItems && flexAlignItemsMap[alignItems], justifyContent && flexJustifyContentMap[justifyContent], flexWrap && flexWrapMap[flexWrap]],
115
+ "data-testid": testId,
116
+ ref: ref
117
+ }, children);
118
+ }));
119
+ Inline.displayName = 'Inline';
120
+ export default Inline;
121
+
122
+ /**
123
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
124
+ * @codegen <<SignedSource::63747c8b92ba373ad2259fa1fff3f434>>
125
+ * @codegenId spacing
126
+ * @codegenCommand yarn codegen-styles
127
+ * @codegenParams ["columnGap"]
128
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
129
+ */
130
+ var columnGapMap = {
131
+ 'space.0': css({
132
+ columnGap: "var(--ds-space-0, 0px)"
133
+ }),
134
+ 'space.025': css({
135
+ columnGap: "var(--ds-space-025, 2px)"
136
+ }),
137
+ 'space.050': css({
138
+ columnGap: "var(--ds-space-050, 4px)"
139
+ }),
140
+ 'space.075': css({
141
+ columnGap: "var(--ds-space-075, 6px)"
142
+ }),
143
+ 'space.100': css({
144
+ columnGap: "var(--ds-space-100, 8px)"
145
+ }),
146
+ 'space.1000': css({
147
+ columnGap: "var(--ds-space-1000, 80px)"
148
+ }),
149
+ 'space.150': css({
150
+ columnGap: "var(--ds-space-150, 12px)"
151
+ }),
152
+ 'space.200': css({
153
+ columnGap: "var(--ds-space-200, 16px)"
154
+ }),
155
+ 'space.250': css({
156
+ columnGap: "var(--ds-space-250, 20px)"
157
+ }),
158
+ 'space.300': css({
159
+ columnGap: "var(--ds-space-300, 24px)"
160
+ }),
161
+ 'space.400': css({
162
+ columnGap: "var(--ds-space-400, 32px)"
163
+ }),
164
+ 'space.500': css({
165
+ columnGap: "var(--ds-space-500, 40px)"
166
+ }),
167
+ 'space.600': css({
168
+ columnGap: "var(--ds-space-600, 48px)"
169
+ }),
170
+ 'space.800': css({
171
+ columnGap: "var(--ds-space-800, 64px)"
172
+ })
173
+ };
174
+
175
+ /**
176
+ * @codegenEnd
177
+ */
@@ -0,0 +1,143 @@
1
+ /** @jsx jsx */
2
+ import { forwardRef, memo } from 'react';
3
+ import { css, jsx } from '@emotion/react';
4
+
5
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Stack` from `@atlaskit/primitives` instead.
9
+ */
10
+
11
+ var flexAlignItemsMap = {
12
+ center: css({
13
+ alignItems: 'center'
14
+ }),
15
+ baseline: css({
16
+ alignItems: 'baseline'
17
+ }),
18
+ flexStart: css({
19
+ alignItems: 'flex-start'
20
+ }),
21
+ flexEnd: css({
22
+ alignItems: 'flex-end'
23
+ }),
24
+ start: css({
25
+ alignItems: 'start'
26
+ }),
27
+ end: css({
28
+ alignItems: 'end'
29
+ })
30
+ };
31
+ var flexJustifyContentMap = {
32
+ center: css({
33
+ justifyContent: 'center'
34
+ }),
35
+ flexStart: css({
36
+ justifyContent: 'flex-start'
37
+ }),
38
+ flexEnd: css({
39
+ justifyContent: 'flex-end'
40
+ }),
41
+ start: css({
42
+ justifyContent: 'start'
43
+ }),
44
+ end: css({
45
+ justifyContent: 'end'
46
+ })
47
+ };
48
+ var flexWrapMap = {
49
+ wrap: css({
50
+ flexWrap: 'wrap'
51
+ })
52
+ };
53
+ var baseStyles = css({
54
+ display: 'flex',
55
+ boxSizing: 'border-box',
56
+ flexDirection: 'column'
57
+ });
58
+
59
+ /**
60
+ * __Stack__
61
+ *
62
+ * Stack is a primitive component based on flexbox that manages the vertical layout of direct children.
63
+ * Renders a `div` by default.
64
+ *
65
+ * @private
66
+ * @deprecated DSP-8009: This primitive is scheduled for deletion.
67
+ * Please use `Stack` from `@atlaskit/primitives` instead.
68
+ *
69
+ */
70
+ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
71
+ var gap = _ref.gap,
72
+ alignItems = _ref.alignItems,
73
+ justifyContent = _ref.justifyContent,
74
+ flexWrap = _ref.flexWrap,
75
+ children = _ref.children,
76
+ UNSAFE_style = _ref.UNSAFE_style,
77
+ testId = _ref.testId;
78
+ return jsx("div", {
79
+ style: UNSAFE_style,
80
+ css: [baseStyles, gap && rowGapMap[gap], alignItems && flexAlignItemsMap[alignItems], justifyContent && flexJustifyContentMap[justifyContent], flexWrap && flexWrapMap[flexWrap]],
81
+ "data-testid": testId,
82
+ ref: ref
83
+ }, children);
84
+ }));
85
+ Stack.displayName = 'Stack';
86
+ export default Stack;
87
+
88
+ /**
89
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
90
+ * @codegen <<SignedSource::02ffa7c4ee52871441d288f44a054685>>
91
+ * @codegenId spacing
92
+ * @codegenCommand yarn codegen-styles
93
+ * @codegenParams ["rowGap"]
94
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
95
+ */
96
+ var rowGapMap = {
97
+ 'space.0': css({
98
+ rowGap: "var(--ds-space-0, 0px)"
99
+ }),
100
+ 'space.025': css({
101
+ rowGap: "var(--ds-space-025, 2px)"
102
+ }),
103
+ 'space.050': css({
104
+ rowGap: "var(--ds-space-050, 4px)"
105
+ }),
106
+ 'space.075': css({
107
+ rowGap: "var(--ds-space-075, 6px)"
108
+ }),
109
+ 'space.100': css({
110
+ rowGap: "var(--ds-space-100, 8px)"
111
+ }),
112
+ 'space.1000': css({
113
+ rowGap: "var(--ds-space-1000, 80px)"
114
+ }),
115
+ 'space.150': css({
116
+ rowGap: "var(--ds-space-150, 12px)"
117
+ }),
118
+ 'space.200': css({
119
+ rowGap: "var(--ds-space-200, 16px)"
120
+ }),
121
+ 'space.250': css({
122
+ rowGap: "var(--ds-space-250, 20px)"
123
+ }),
124
+ 'space.300': css({
125
+ rowGap: "var(--ds-space-300, 24px)"
126
+ }),
127
+ 'space.400': css({
128
+ rowGap: "var(--ds-space-400, 32px)"
129
+ }),
130
+ 'space.500': css({
131
+ rowGap: "var(--ds-space-500, 40px)"
132
+ }),
133
+ 'space.600': css({
134
+ rowGap: "var(--ds-space-600, 48px)"
135
+ }),
136
+ 'space.800': css({
137
+ rowGap: "var(--ds-space-800, 64px)"
138
+ })
139
+ };
140
+
141
+ /**
142
+ * @codegenEnd
143
+ */
package/dist/esm/index.js CHANGED
@@ -1,2 +1,5 @@
1
+ export { default as UNSAFE_Box } from './components/box.partial';
1
2
  export { default as UNSAFE_Text } from './components/text.partial';
3
+ export { default as UNSAFE_Inline } from './components/inline.partial';
4
+ export { default as UNSAFE_Stack } from './components/stack.partial';
2
5
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -0,0 +1,357 @@
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
+ /**
6
+ * @private
7
+ * @deprecated DSP-8009: This type is scheduled for deletion.
8
+ * Please use `Box` from `@atlaskit/primitives` instead.
9
+ */
10
+ export type BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
11
+ type BoxPropsBase<T extends ElementType> = {
12
+ /**
13
+ * The DOM element to render as the Box. Defaults to `div`.
14
+ */
15
+ as?: T;
16
+ /**
17
+ * Elements to be rendered inside the Box.
18
+ */
19
+ children?: ReactNode;
20
+ /**
21
+ * The HTML className attribute.
22
+ *
23
+ * Before using this prop please ensure:
24
+ * - The styles cannot otherwise be achieved through `Box` directly.
25
+ * - The use case needs custom styles that cannot be designed or implemented differently
26
+ *
27
+ * Ensure you're using the `@atlaskit/eslint-plugin-design-system` with this prop to prevent unbounded usage.
28
+ *
29
+ * @see `@atlaskit/eslint-plugin-design-system`
30
+ */
31
+ className?: string;
32
+ /**
33
+ * Token representing background color with a fallback.
34
+ */
35
+ backgroundColor?: BackgroundColor;
36
+ /**
37
+ * Token representing shadow with a fallback
38
+ */
39
+ shadow?: Shadow;
40
+ /**
41
+ * Defines border style.
42
+ */
43
+ borderStyle?: BorderStyle;
44
+ /**
45
+ * Defines border width.
46
+ */
47
+ borderWidth?: BorderWidth;
48
+ /**
49
+ * Token representing border color with a fallback.
50
+ */
51
+ borderColor?: BorderColor;
52
+ /**
53
+ * Defines border radius.
54
+ */
55
+ borderRadius?: BorderRadius;
56
+ /**
57
+ * Used for providing a z-index.
58
+ */
59
+ layer?: Layer;
60
+ /**
61
+ * Defines the main axis direction.
62
+ * @deprecated
63
+ */
64
+ flexDirection?: FlexDirection;
65
+ /**
66
+ * Used to align children along the cross axis.
67
+ * @deprecated
68
+ */
69
+ alignItems?: FlexAlignItems;
70
+ /**
71
+ * Used to align children along the main axis.
72
+ * @deprecated
73
+ */
74
+ justifyContent?: FlexJustifyContent;
75
+ /**
76
+ * Defines what happens if content overflows the box.
77
+ */
78
+ overflow?: Overflow;
79
+ /**
80
+ * Shorthand for `paddingBlock` and `paddingInline` together.
81
+ *
82
+ * @see paddingBlock
83
+ * @see paddingInline
84
+ */
85
+ padding?: Padding;
86
+ /**
87
+ * Token representing CSS `paddingBlock`.
88
+ */
89
+ paddingBlock?: PaddingBlock;
90
+ /**
91
+ * Token representing CSS `paddingInline`.
92
+ */
93
+ paddingInline?: PaddingInline;
94
+ /**
95
+ * Token representing width.
96
+ * @experimental The existing tokens will be replaced to better reflect dimensions.
97
+ */
98
+ width?: Width;
99
+ /**
100
+ * Token representing height.
101
+ * @experimental The existing tokens will be replaced to better reflect dimensions.
102
+ */
103
+ height?: Height;
104
+ /**
105
+ * Defines display type and layout. Defaults to `flex`.
106
+ */
107
+ display?: Display;
108
+ /**
109
+ * CSS position property.
110
+ */
111
+ position?: Position;
112
+ ref?: ComponentPropsWithRef<T>['ref'];
113
+ };
114
+ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
115
+ /**
116
+ * __Box__
117
+ *
118
+ * Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
119
+ * Renders a `div` by default.
120
+ *
121
+ * @private
122
+ * @deprecated DSP-8009: This primitive is scheduled for deletion.
123
+ * Please use `Box` from `@atlaskit/primitives` instead.
124
+ */
125
+ export declare const Box: BoxComponent;
126
+ export default Box;
127
+ type BorderStyle = keyof typeof borderStyleMap;
128
+ declare const borderStyleMap: {
129
+ none: import("@emotion/react").SerializedStyles;
130
+ solid: import("@emotion/react").SerializedStyles;
131
+ dashed: import("@emotion/react").SerializedStyles;
132
+ dotted: import("@emotion/react").SerializedStyles;
133
+ };
134
+ type BorderWidth = keyof typeof borderWidthMap;
135
+ declare const borderWidthMap: {
136
+ '0px': import("@emotion/react").SerializedStyles;
137
+ '1px': import("@emotion/react").SerializedStyles;
138
+ '2px': import("@emotion/react").SerializedStyles;
139
+ '3px': import("@emotion/react").SerializedStyles;
140
+ };
141
+ type BorderRadius = keyof typeof borderRadiusMap;
142
+ declare const borderRadiusMap: {
143
+ normal: import("@emotion/react").SerializedStyles;
144
+ rounded: import("@emotion/react").SerializedStyles;
145
+ badge: import("@emotion/react").SerializedStyles;
146
+ };
147
+ /**
148
+ * @experimental - this is likely to be removed
149
+ */
150
+ type FlexDirection = keyof typeof flexDirectionMap;
151
+ declare const flexDirectionMap: {
152
+ column: import("@emotion/react").SerializedStyles;
153
+ row: import("@emotion/react").SerializedStyles;
154
+ };
155
+ /**
156
+ * @experimental - this is likely to be removed
157
+ */
158
+ type FlexAlignItems = keyof typeof flexAlignItemsMap;
159
+ declare const flexAlignItemsMap: {
160
+ center: import("@emotion/react").SerializedStyles;
161
+ baseline: import("@emotion/react").SerializedStyles;
162
+ flexStart: import("@emotion/react").SerializedStyles;
163
+ flexEnd: import("@emotion/react").SerializedStyles;
164
+ start: import("@emotion/react").SerializedStyles;
165
+ end: import("@emotion/react").SerializedStyles;
166
+ };
167
+ /**
168
+ * @experimental - this is likely to be removed
169
+ */
170
+ type FlexJustifyContent = keyof typeof flexJustifyContentMap;
171
+ declare const flexJustifyContentMap: {
172
+ center: import("@emotion/react").SerializedStyles;
173
+ flexStart: import("@emotion/react").SerializedStyles;
174
+ flexEnd: import("@emotion/react").SerializedStyles;
175
+ start: import("@emotion/react").SerializedStyles;
176
+ end: import("@emotion/react").SerializedStyles;
177
+ };
178
+ type Display = keyof typeof displayMap;
179
+ declare const displayMap: {
180
+ block: import("@emotion/react").SerializedStyles;
181
+ inline: import("@emotion/react").SerializedStyles;
182
+ flex: import("@emotion/react").SerializedStyles;
183
+ inlineFlex: import("@emotion/react").SerializedStyles;
184
+ inlineBlock: import("@emotion/react").SerializedStyles;
185
+ };
186
+ type Position = keyof typeof positionMap;
187
+ declare const positionMap: {
188
+ absolute: import("@emotion/react").SerializedStyles;
189
+ fixed: import("@emotion/react").SerializedStyles;
190
+ relative: import("@emotion/react").SerializedStyles;
191
+ static: import("@emotion/react").SerializedStyles;
192
+ };
193
+ type Overflow = keyof typeof overflowMap;
194
+ declare const overflowMap: {
195
+ auto: import("@emotion/react").SerializedStyles;
196
+ hidden: import("@emotion/react").SerializedStyles;
197
+ };
198
+ /**
199
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
200
+ * @codegen <<SignedSource::327e769aaa3da9422a919a0ca9490070>>
201
+ * @codegenId dimensions
202
+ * @codegenCommand yarn codegen-styles
203
+ * @codegenParams ["width", "height"]
204
+ */
205
+ declare const widthMap: {
206
+ '100%': import("@emotion/react").SerializedStyles;
207
+ 'size.100': import("@emotion/react").SerializedStyles;
208
+ 'size.1000': import("@emotion/react").SerializedStyles;
209
+ 'size.200': import("@emotion/react").SerializedStyles;
210
+ 'size.300': import("@emotion/react").SerializedStyles;
211
+ 'size.400': import("@emotion/react").SerializedStyles;
212
+ 'size.500': import("@emotion/react").SerializedStyles;
213
+ 'size.600': import("@emotion/react").SerializedStyles;
214
+ };
215
+ export type Width = keyof typeof widthMap;
216
+ declare const heightMap: {
217
+ '100%': import("@emotion/react").SerializedStyles;
218
+ 'size.100': import("@emotion/react").SerializedStyles;
219
+ 'size.1000': import("@emotion/react").SerializedStyles;
220
+ 'size.200': import("@emotion/react").SerializedStyles;
221
+ 'size.300': import("@emotion/react").SerializedStyles;
222
+ 'size.400': import("@emotion/react").SerializedStyles;
223
+ 'size.500': import("@emotion/react").SerializedStyles;
224
+ 'size.600': import("@emotion/react").SerializedStyles;
225
+ };
226
+ export type Height = keyof typeof heightMap;
227
+ /**
228
+ * @codegenEnd
229
+ */
230
+ /**
231
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
232
+ * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
233
+ * @codegenId spacing
234
+ * @codegenCommand yarn codegen-styles
235
+ * @codegenParams ["padding", "paddingBlock", "paddingInline"]
236
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
237
+ */
238
+ declare const paddingMap: {
239
+ 'space.0': import("@emotion/react").SerializedStyles;
240
+ 'space.025': import("@emotion/react").SerializedStyles;
241
+ 'space.050': import("@emotion/react").SerializedStyles;
242
+ 'space.075': import("@emotion/react").SerializedStyles;
243
+ 'space.100': import("@emotion/react").SerializedStyles;
244
+ 'space.1000': import("@emotion/react").SerializedStyles;
245
+ 'space.150': import("@emotion/react").SerializedStyles;
246
+ 'space.200': import("@emotion/react").SerializedStyles;
247
+ 'space.250': import("@emotion/react").SerializedStyles;
248
+ 'space.300': import("@emotion/react").SerializedStyles;
249
+ 'space.400': import("@emotion/react").SerializedStyles;
250
+ 'space.500': import("@emotion/react").SerializedStyles;
251
+ 'space.600': import("@emotion/react").SerializedStyles;
252
+ 'space.800': import("@emotion/react").SerializedStyles;
253
+ };
254
+ export type Padding = keyof typeof paddingMap;
255
+ declare const paddingBlockMap: {
256
+ 'space.0': import("@emotion/react").SerializedStyles;
257
+ 'space.025': import("@emotion/react").SerializedStyles;
258
+ 'space.050': import("@emotion/react").SerializedStyles;
259
+ 'space.075': import("@emotion/react").SerializedStyles;
260
+ 'space.100': import("@emotion/react").SerializedStyles;
261
+ 'space.1000': import("@emotion/react").SerializedStyles;
262
+ 'space.150': import("@emotion/react").SerializedStyles;
263
+ 'space.200': import("@emotion/react").SerializedStyles;
264
+ 'space.250': import("@emotion/react").SerializedStyles;
265
+ 'space.300': import("@emotion/react").SerializedStyles;
266
+ 'space.400': import("@emotion/react").SerializedStyles;
267
+ 'space.500': import("@emotion/react").SerializedStyles;
268
+ 'space.600': import("@emotion/react").SerializedStyles;
269
+ 'space.800': import("@emotion/react").SerializedStyles;
270
+ };
271
+ export type PaddingBlock = keyof typeof paddingBlockMap;
272
+ declare const paddingInlineMap: {
273
+ 'space.0': import("@emotion/react").SerializedStyles;
274
+ 'space.025': import("@emotion/react").SerializedStyles;
275
+ 'space.050': import("@emotion/react").SerializedStyles;
276
+ 'space.075': import("@emotion/react").SerializedStyles;
277
+ 'space.100': import("@emotion/react").SerializedStyles;
278
+ 'space.1000': import("@emotion/react").SerializedStyles;
279
+ 'space.150': import("@emotion/react").SerializedStyles;
280
+ 'space.200': import("@emotion/react").SerializedStyles;
281
+ 'space.250': import("@emotion/react").SerializedStyles;
282
+ 'space.300': import("@emotion/react").SerializedStyles;
283
+ 'space.400': import("@emotion/react").SerializedStyles;
284
+ 'space.500': import("@emotion/react").SerializedStyles;
285
+ 'space.600': import("@emotion/react").SerializedStyles;
286
+ 'space.800': import("@emotion/react").SerializedStyles;
287
+ };
288
+ export type PaddingInline = keyof typeof paddingInlineMap;
289
+ /**
290
+ * @codegenEnd
291
+ */
292
+ /**
293
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
294
+ * @codegen <<SignedSource::1c951d1c65e5ffddea3f0a92075d4614>>
295
+ * @codegenId colors
296
+ * @codegenCommand yarn codegen-styles
297
+ * @codegenParams ["border", "background", "shadow"]
298
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f6a616f7ea03ec40c148fc83050d073b>>
299
+ */
300
+ declare const borderColorMap: {
301
+ readonly 'color.border': import("@emotion/react").SerializedStyles;
302
+ readonly disabled: import("@emotion/react").SerializedStyles;
303
+ readonly focused: import("@emotion/react").SerializedStyles;
304
+ readonly input: import("@emotion/react").SerializedStyles;
305
+ readonly inverse: import("@emotion/react").SerializedStyles;
306
+ readonly selected: import("@emotion/react").SerializedStyles;
307
+ readonly brand: import("@emotion/react").SerializedStyles;
308
+ readonly danger: import("@emotion/react").SerializedStyles;
309
+ readonly warning: import("@emotion/react").SerializedStyles;
310
+ readonly success: import("@emotion/react").SerializedStyles;
311
+ readonly discovery: import("@emotion/react").SerializedStyles;
312
+ readonly information: import("@emotion/react").SerializedStyles;
313
+ readonly bold: import("@emotion/react").SerializedStyles;
314
+ };
315
+ export type BorderColor = keyof typeof borderColorMap;
316
+ declare const backgroundColorMap: {
317
+ readonly disabled: import("@emotion/react").SerializedStyles;
318
+ readonly input: import("@emotion/react").SerializedStyles;
319
+ readonly 'inverse.subtle': import("@emotion/react").SerializedStyles;
320
+ readonly neutral: import("@emotion/react").SerializedStyles;
321
+ readonly 'neutral.subtle': import("@emotion/react").SerializedStyles;
322
+ readonly 'neutral.bold': import("@emotion/react").SerializedStyles;
323
+ readonly selected: import("@emotion/react").SerializedStyles;
324
+ readonly 'selected.bold': import("@emotion/react").SerializedStyles;
325
+ readonly 'brand.subtlest': import("@emotion/react").SerializedStyles;
326
+ readonly 'brand.bold': import("@emotion/react").SerializedStyles;
327
+ readonly 'brand.boldest': import("@emotion/react").SerializedStyles;
328
+ readonly danger: import("@emotion/react").SerializedStyles;
329
+ readonly 'danger.bold': import("@emotion/react").SerializedStyles;
330
+ readonly warning: import("@emotion/react").SerializedStyles;
331
+ readonly 'warning.bold': import("@emotion/react").SerializedStyles;
332
+ readonly success: import("@emotion/react").SerializedStyles;
333
+ readonly 'success.bold': import("@emotion/react").SerializedStyles;
334
+ readonly discovery: import("@emotion/react").SerializedStyles;
335
+ readonly 'discovery.bold': import("@emotion/react").SerializedStyles;
336
+ readonly information: import("@emotion/react").SerializedStyles;
337
+ readonly 'information.bold': import("@emotion/react").SerializedStyles;
338
+ readonly 'color.blanket': import("@emotion/react").SerializedStyles;
339
+ readonly 'color.blanket.selected': import("@emotion/react").SerializedStyles;
340
+ readonly 'color.blanket.danger': import("@emotion/react").SerializedStyles;
341
+ readonly 'elevation.surface': import("@emotion/react").SerializedStyles;
342
+ readonly 'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
343
+ readonly 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
344
+ readonly 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
345
+ };
346
+ export type BackgroundColor = keyof typeof backgroundColorMap;
347
+ declare const shadowMap: {
348
+ readonly overflow: import("@emotion/react").SerializedStyles;
349
+ readonly 'overflow.perimeter': import("@emotion/react").SerializedStyles;
350
+ readonly 'overflow.spread': import("@emotion/react").SerializedStyles;
351
+ readonly overlay: import("@emotion/react").SerializedStyles;
352
+ readonly raised: import("@emotion/react").SerializedStyles;
353
+ };
354
+ export type Shadow = keyof typeof shadowMap;
355
+ /**
356
+ * @codegenEnd
357
+ */