@atlaskit/ds-explorations 1.1.0 → 1.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 (34) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/components/inline.partial.js +40 -17
  3. package/dist/cjs/components/stack.partial.js +2 -2
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/components/inline.partial.js +30 -7
  6. package/dist/es2019/components/stack.partial.js +3 -3
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/components/inline.partial.js +39 -15
  9. package/dist/esm/components/stack.partial.js +3 -3
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types/components/box.partial.d.ts +5 -5
  12. package/dist/types/components/inline.partial.d.ts +12 -3
  13. package/dist/types/components/stack.partial.d.ts +5 -4
  14. package/dist/types/components/types.d.ts +0 -1
  15. package/inline/package.json +15 -0
  16. package/package.json +4 -2
  17. package/report.api.md +8 -12
  18. package/src/components/box.partial.tsx +5 -4
  19. package/src/components/inline.partial.tsx +65 -44
  20. package/src/components/stack.partial.tsx +34 -32
  21. package/src/components/types.tsx +0 -2
  22. package/stack/package.json +15 -0
  23. package/tmp/api-report-tmp.d.ts +6 -10
  24. package/dist/types-ts4.0/components/box.partial.d.ts +0 -303
  25. package/dist/types-ts4.0/components/inline.partial.d.ts +0 -86
  26. package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +0 -49
  27. package/dist/types-ts4.0/components/stack.partial.d.ts +0 -80
  28. package/dist/types-ts4.0/components/surface-provider.d.ts +0 -15
  29. package/dist/types-ts4.0/components/text.partial.d.ts +0 -135
  30. package/dist/types-ts4.0/components/types.d.ts +0 -14
  31. package/dist/types-ts4.0/index.d.ts +0 -7
  32. package/dist/types-ts4.0/internal/color-map.d.ts +0 -36
  33. package/dist/types-ts4.0/internal/role-to-element.d.ts +0 -32
  34. package/dist/types-ts4.0/internal/spacing-scale.d.ts +0 -22
@@ -1,12 +1,11 @@
1
1
  /** @jsx jsx */
2
- import { Children, forwardRef, Fragment, ReactNode } from 'react';
2
+ import { Children, FC, forwardRef, Fragment, memo, ReactNode } from 'react';
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
5
 
6
6
  import { token } from '@atlaskit/tokens';
7
7
 
8
- import Text from './text.partial';
9
- import type { BasePrimitiveProps, NonTextChildren } from './types';
8
+ import type { BasePrimitiveProps } from './types';
10
9
 
11
10
  interface InlineProps extends BasePrimitiveProps {
12
11
  /**
@@ -33,7 +32,7 @@ interface InlineProps extends BasePrimitiveProps {
33
32
  /**
34
33
  * Elements to be rendered inside the Inline.
35
34
  */
36
- children: NonTextChildren;
35
+ children: ReactNode;
37
36
  }
38
37
 
39
38
  type FlexAlignItems = keyof typeof flexAlignItemsMap;
@@ -66,54 +65,76 @@ const baseStyles = css({
66
65
  flexDirection: 'row',
67
66
  });
68
67
 
68
+ const dividerStyles = css({
69
+ margin: '0 -2px',
70
+ color: token('color.text.subtle', '#42526E'),
71
+ pointerEvents: 'none',
72
+ });
73
+
74
+ const Divider: FC = ({ children }) => (
75
+ <span css={dividerStyles}>{children}</span>
76
+ );
77
+
69
78
  /**
70
79
  * __Inline__
71
80
  *
72
81
  * Inline is a primitive component based on flexbox that manages the horizontal layout of direct children.
73
82
  * Renders a `div` by default.
74
83
  *
84
+ * @example
85
+ * ```tsx
86
+ * const App = () => (
87
+ * <Inline gap="space.100">
88
+ * <Button />
89
+ * <Button />
90
+ * </Inline>
91
+ * )
92
+ * ```
75
93
  */
76
- const Inline = forwardRef<HTMLDivElement, InlineProps>(
77
- (
78
- {
79
- gap,
80
- alignItems,
81
- justifyContent,
82
- flexWrap,
83
- divider,
84
- UNSAFE_style,
85
- children,
86
- testId,
94
+ const Inline = memo(
95
+ forwardRef<HTMLDivElement, InlineProps>(
96
+ (
97
+ {
98
+ gap,
99
+ alignItems,
100
+ justifyContent,
101
+ flexWrap,
102
+ divider,
103
+ UNSAFE_style,
104
+ children,
105
+ testId,
106
+ },
107
+ ref,
108
+ ) => {
109
+ const dividerComponent =
110
+ typeof divider === 'string' ? <Divider>{divider}</Divider> : divider;
111
+ const childrenArray = Children.toArray(children).filter(Boolean);
112
+
113
+ return (
114
+ <div
115
+ style={UNSAFE_style}
116
+ css={[
117
+ baseStyles,
118
+ gap && columnGapMap[gap],
119
+ alignItems && flexAlignItemsMap[alignItems],
120
+ justifyContent && flexJustifyContentMap[justifyContent],
121
+ flexWrap && flexWrapMap[flexWrap],
122
+ ]}
123
+ data-testid={testId}
124
+ ref={ref}
125
+ >
126
+ {childrenArray.map((child, index) => {
127
+ return (
128
+ <Fragment key={index}>
129
+ {divider && index > 0 ? dividerComponent : null}
130
+ {child}
131
+ </Fragment>
132
+ );
133
+ })}
134
+ </div>
135
+ );
87
136
  },
88
- ref,
89
- ) => {
90
- const dividerComponent =
91
- typeof divider === 'string' ? <Text>{divider}</Text> : divider;
92
-
93
- return (
94
- <div
95
- style={UNSAFE_style}
96
- css={[
97
- baseStyles,
98
- gap && columnGapMap[gap],
99
- alignItems && flexAlignItemsMap[alignItems],
100
- justifyContent && flexJustifyContentMap[justifyContent],
101
- flexWrap && flexWrapMap[flexWrap],
102
- ]}
103
- data-testid={testId}
104
- ref={ref}
105
- >
106
- {Children.map(children, (child, index) => {
107
- return (
108
- <Fragment>
109
- {divider && index > 0 ? dividerComponent : null}
110
- {child}
111
- </Fragment>
112
- );
113
- })}
114
- </div>
115
- );
116
- },
137
+ ),
117
138
  );
118
139
 
119
140
  Inline.displayName = 'Inline';
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
- import { forwardRef } from 'react';
2
+ import { forwardRef, memo, ReactNode } from 'react';
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
5
 
6
6
  import { token } from '@atlaskit/tokens';
7
7
 
8
- import { BasePrimitiveProps, NonTextChildren } from './types';
8
+ import { BasePrimitiveProps } from './types';
9
9
 
10
10
  interface StackProps extends BasePrimitiveProps {
11
11
  /**
@@ -27,7 +27,7 @@ interface StackProps extends BasePrimitiveProps {
27
27
  /**
28
28
  * Elements to be rendered inside the Stack.
29
29
  */
30
- children: NonTextChildren;
30
+ children: ReactNode;
31
31
  }
32
32
 
33
33
  type FlexAlignItems = keyof typeof flexAlignItemsMap;
@@ -67,36 +67,38 @@ const baseStyles = css({
67
67
  * Renders a `div` by default.
68
68
  *
69
69
  */
70
- const Stack = forwardRef<HTMLDivElement, StackProps>(
71
- (
72
- {
73
- gap,
74
- alignItems,
75
- justifyContent,
76
- flexWrap,
77
- children,
78
- UNSAFE_style,
79
- testId,
70
+ const Stack = memo(
71
+ forwardRef<HTMLDivElement, StackProps>(
72
+ (
73
+ {
74
+ gap,
75
+ alignItems,
76
+ justifyContent,
77
+ flexWrap,
78
+ children,
79
+ UNSAFE_style,
80
+ testId,
81
+ },
82
+ ref,
83
+ ) => {
84
+ return (
85
+ <div
86
+ style={UNSAFE_style}
87
+ css={[
88
+ baseStyles,
89
+ gap && rowGapMap[gap],
90
+ alignItems && flexAlignItemsMap[alignItems],
91
+ justifyContent && flexJustifyContentMap[justifyContent],
92
+ flexWrap && flexWrapMap[flexWrap],
93
+ ]}
94
+ data-testid={testId}
95
+ ref={ref}
96
+ >
97
+ {children}
98
+ </div>
99
+ );
80
100
  },
81
- ref,
82
- ) => {
83
- return (
84
- <div
85
- style={UNSAFE_style}
86
- css={[
87
- baseStyles,
88
- gap && rowGapMap[gap],
89
- alignItems && flexAlignItemsMap[alignItems],
90
- justifyContent && flexJustifyContentMap[justifyContent],
91
- flexWrap && flexWrapMap[flexWrap],
92
- ]}
93
- data-testid={testId}
94
- ref={ref}
95
- >
96
- {children}
97
- </div>
98
- );
99
- },
101
+ ),
100
102
  );
101
103
 
102
104
  Stack.displayName = 'Stack';
@@ -13,5 +13,3 @@ export interface BasePrimitiveProps {
13
13
  */
14
14
  UNSAFE_style?: CSSProperties;
15
15
  }
16
-
17
- export type NonTextChildren = JSX.Element | (JSX.Element | null | false)[];
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/ds-explorations/stack",
3
+ "main": "../dist/cjs/components/stack.partial.js",
4
+ "module": "../dist/esm/components/stack.partial.js",
5
+ "module:es2019": "../dist/es2019/components/stack.partial.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/components/stack.partial.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/components/stack.partial.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -4,8 +4,6 @@
4
4
 
5
5
  ```ts
6
6
 
7
- /// <reference types="react" />
8
-
9
7
  import { ComponentPropsWithoutRef } from 'react';
10
8
  import { ComponentPropsWithRef } from 'react';
11
9
  import type { CSSProperties } from 'react';
@@ -13,6 +11,7 @@ import { ElementType } from 'react';
13
11
  import { FC } from 'react';
14
12
  import { ForwardRefExoticComponent } from 'react';
15
13
  import { jsx } from '@emotion/react';
14
+ import { MemoExoticComponent } from 'react';
16
15
  import { ReactElement } from 'react';
17
16
  import { ReactNode } from 'react';
18
17
  import { RefAttributes } from 'react';
@@ -146,7 +145,7 @@ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'di
146
145
  // @public (undocumented)
147
146
  type BoxPropsBase<T extends ElementType> = {
148
147
  as?: T;
149
- children?: NonTextChildren | boolean | null;
148
+ children?: ReactNode;
150
149
  className?: string;
151
150
  backgroundColor?: BackgroundColor;
152
151
  borderStyle?: BorderStyle;
@@ -336,7 +335,7 @@ const heightMap: {
336
335
  // @public (undocumented)
337
336
  interface InlineProps extends BasePrimitiveProps {
338
337
  alignItems?: FlexAlignItems_2;
339
- children: NonTextChildren;
338
+ children: ReactNode;
340
339
  divider?: ReactNode;
341
340
  flexWrap?: FlexWrap;
342
341
  gap: ColumnGap;
@@ -368,9 +367,6 @@ const lineHeightMap: {
368
367
  '40px': SerializedStyles;
369
368
  };
370
369
 
371
- // @public (undocumented)
372
- type NonTextChildren = (JSX.Element | false | null)[] | JSX.Element;
373
-
374
370
  // @public (undocumented)
375
371
  type Overflow = keyof typeof overflowMap;
376
372
 
@@ -471,7 +467,7 @@ const rowGapMap: {
471
467
  // @public (undocumented)
472
468
  interface StackProps extends BasePrimitiveProps {
473
469
  alignItems?: FlexAlignItems_3;
474
- children: NonTextChildren;
470
+ children: ReactNode;
475
471
  flexWrap?: FlexWrap_2;
476
472
  gap: RowGap;
477
473
  justifyContent?: FlexJustifyContent_3;
@@ -524,13 +520,13 @@ export const UNSAFE_Box: BoxComponent;
524
520
  export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
525
521
 
526
522
  // @public
527
- export const UNSAFE_Inline: ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>;
523
+ export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>>;
528
524
 
529
525
  // @public (undocumented)
530
526
  export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
531
527
 
532
528
  // @public
533
- export const UNSAFE_Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
529
+ export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>>;
534
530
 
535
531
  // @internal
536
532
  export const UNSAFE_Text: FC<UNSAFE_TextProps>;
@@ -1,303 +0,0 @@
1
- /** @jsx jsx */
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, FC, ReactElement } from 'react';
3
- import type { BasePrimitiveProps, NonTextChildren } from './types';
4
- declare type PropsToOmit = 'as' | 'className' | 'style';
5
- export declare type BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
6
- declare type BoxPropsBase<T extends ElementType> = {
7
- /**
8
- * The DOM element to render as the Box. Defaults to `div`.
9
- */
10
- as?: T;
11
- /**
12
- * Elements to be rendered inside the Box.
13
- */
14
- children?: NonTextChildren | boolean | null;
15
- /**
16
- * The HTML className attribute.
17
- *
18
- * Before using this prop please ensure:
19
- * - The styles cannot otherwise be achieved through `Box` directly.
20
- * - The use case needs custom styles that cannot be designed or implemented differently
21
- *
22
- * Ensure you're using the `@atlaskit/eslint-plugin-design-system` with this prop to prevent unbounded usage.
23
- *
24
- * @see `@atlaskit/eslint-plugin-design-system`
25
- */
26
- className?: string;
27
- /**
28
- * Token representing background color with a fallback.
29
- */
30
- backgroundColor?: BackgroundColor;
31
- /**
32
- * Defines border style.
33
- */
34
- borderStyle?: BorderStyle;
35
- /**
36
- * Defines border width.
37
- */
38
- borderWidth?: BorderWidth;
39
- /**
40
- * Token representing border color with a fallback.
41
- */
42
- borderColor?: BorderColor;
43
- /**
44
- * Defines border radius.
45
- */
46
- borderRadius?: BorderRadius;
47
- /**
48
- * Defines the main axis direction.
49
- */
50
- flexDirection?: FlexDirection;
51
- /**
52
- * Used to align children along the cross axis.
53
- */
54
- alignItems?: FlexAlignItems;
55
- /**
56
- * Used to align children along the main axis.
57
- */
58
- justifyContent?: FlexJustifyContent;
59
- /**
60
- * Defines what happens if content overflows the box.
61
- */
62
- overflow?: Overflow;
63
- /**
64
- * Shorthand for `paddingBlock` and `paddingInline` together.
65
- *
66
- * @see paddingBlock
67
- * @see paddingInline
68
- */
69
- padding?: Padding;
70
- /**
71
- * Token representing CSS `padding-block`.
72
- */
73
- paddingBlock?: PaddingBlock;
74
- /**
75
- * Token representing CSS `padding-inline`.
76
- */
77
- paddingInline?: PaddingInline;
78
- /**
79
- * Token representing width.
80
- */
81
- width?: Width;
82
- /**
83
- * Token representing height.
84
- */
85
- height?: Height;
86
- /**
87
- * Defines display type and layout. Defaults to `flex`.
88
- */
89
- display?: Display;
90
- /**
91
- * CSS position property.
92
- */
93
- position?: Position;
94
- ref?: ComponentPropsWithRef<T>['ref'];
95
- };
96
- declare type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
97
- /**
98
- * __Box__
99
- *
100
- * Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
101
- * Renders a `div` by default.
102
- *
103
- * @internal
104
- */
105
- export declare const Box: BoxComponent;
106
- export default Box;
107
- declare type BorderStyle = keyof typeof borderStyleMap;
108
- declare const borderStyleMap: {
109
- none: import("@emotion/react").SerializedStyles;
110
- solid: import("@emotion/react").SerializedStyles;
111
- dashed: import("@emotion/react").SerializedStyles;
112
- dotted: import("@emotion/react").SerializedStyles;
113
- };
114
- declare type BorderWidth = keyof typeof borderWidthMap;
115
- declare const borderWidthMap: {
116
- '0px': import("@emotion/react").SerializedStyles;
117
- '1px': import("@emotion/react").SerializedStyles;
118
- '2px': import("@emotion/react").SerializedStyles;
119
- '3px': import("@emotion/react").SerializedStyles;
120
- };
121
- declare type BorderRadius = keyof typeof borderRadiusMap;
122
- declare const borderRadiusMap: {
123
- normal: import("@emotion/react").SerializedStyles;
124
- rounded: import("@emotion/react").SerializedStyles;
125
- badge: import("@emotion/react").SerializedStyles;
126
- };
127
- declare type FlexDirection = keyof typeof flexDirectionMap;
128
- declare const flexDirectionMap: {
129
- column: import("@emotion/react").SerializedStyles;
130
- row: import("@emotion/react").SerializedStyles;
131
- };
132
- declare type FlexAlignItems = keyof typeof flexAlignItemsMap;
133
- declare const flexAlignItemsMap: {
134
- center: import("@emotion/react").SerializedStyles;
135
- baseline: import("@emotion/react").SerializedStyles;
136
- flexStart: import("@emotion/react").SerializedStyles;
137
- flexEnd: import("@emotion/react").SerializedStyles;
138
- };
139
- declare type FlexJustifyContent = keyof typeof flexJustifyContentMap;
140
- declare const flexJustifyContentMap: {
141
- center: import("@emotion/react").SerializedStyles;
142
- flexStart: import("@emotion/react").SerializedStyles;
143
- flexEnd: import("@emotion/react").SerializedStyles;
144
- };
145
- declare type Display = keyof typeof displayMap;
146
- declare const displayMap: {
147
- block: import("@emotion/react").SerializedStyles;
148
- inline: import("@emotion/react").SerializedStyles;
149
- flex: import("@emotion/react").SerializedStyles;
150
- inlineFlex: import("@emotion/react").SerializedStyles;
151
- };
152
- declare type Position = keyof typeof positionMap;
153
- declare const positionMap: {
154
- absolute: import("@emotion/react").SerializedStyles;
155
- relative: import("@emotion/react").SerializedStyles;
156
- static: import("@emotion/react").SerializedStyles;
157
- };
158
- declare type Overflow = keyof typeof overflowMap;
159
- declare const overflowMap: {
160
- auto: import("@emotion/react").SerializedStyles;
161
- };
162
- /**
163
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
164
- * @codegen <<SignedSource::2d25a493458fa1cefdafcd559404f2ec>>
165
- * @codegenId spacing
166
- * @codegenCommand yarn codegen-styles
167
- * @codegenParams ["padding", "paddingBlock", "paddingInline", "width", "height"]
168
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::07ef29d58a2b23af8b098515466d7e22>>
169
- */
170
- declare const paddingMap: {
171
- 'scale.0': import("@emotion/react").SerializedStyles;
172
- 'scale.025': import("@emotion/react").SerializedStyles;
173
- 'scale.050': import("@emotion/react").SerializedStyles;
174
- 'scale.075': import("@emotion/react").SerializedStyles;
175
- 'scale.100': import("@emotion/react").SerializedStyles;
176
- 'scale.150': import("@emotion/react").SerializedStyles;
177
- 'scale.200': import("@emotion/react").SerializedStyles;
178
- 'scale.250': import("@emotion/react").SerializedStyles;
179
- 'scale.300': import("@emotion/react").SerializedStyles;
180
- 'scale.400': import("@emotion/react").SerializedStyles;
181
- 'scale.500': import("@emotion/react").SerializedStyles;
182
- 'scale.600': import("@emotion/react").SerializedStyles;
183
- };
184
- export declare type Padding = keyof typeof paddingMap;
185
- declare const paddingBlockMap: {
186
- 'scale.0': import("@emotion/react").SerializedStyles;
187
- 'scale.025': import("@emotion/react").SerializedStyles;
188
- 'scale.050': import("@emotion/react").SerializedStyles;
189
- 'scale.075': import("@emotion/react").SerializedStyles;
190
- 'scale.100': import("@emotion/react").SerializedStyles;
191
- 'scale.150': import("@emotion/react").SerializedStyles;
192
- 'scale.200': import("@emotion/react").SerializedStyles;
193
- 'scale.250': import("@emotion/react").SerializedStyles;
194
- 'scale.300': import("@emotion/react").SerializedStyles;
195
- 'scale.400': import("@emotion/react").SerializedStyles;
196
- 'scale.500': import("@emotion/react").SerializedStyles;
197
- 'scale.600': import("@emotion/react").SerializedStyles;
198
- };
199
- export declare type PaddingBlock = keyof typeof paddingBlockMap;
200
- declare const paddingInlineMap: {
201
- 'scale.0': import("@emotion/react").SerializedStyles;
202
- 'scale.025': import("@emotion/react").SerializedStyles;
203
- 'scale.050': import("@emotion/react").SerializedStyles;
204
- 'scale.075': import("@emotion/react").SerializedStyles;
205
- 'scale.100': import("@emotion/react").SerializedStyles;
206
- 'scale.150': import("@emotion/react").SerializedStyles;
207
- 'scale.200': import("@emotion/react").SerializedStyles;
208
- 'scale.250': import("@emotion/react").SerializedStyles;
209
- 'scale.300': import("@emotion/react").SerializedStyles;
210
- 'scale.400': import("@emotion/react").SerializedStyles;
211
- 'scale.500': import("@emotion/react").SerializedStyles;
212
- 'scale.600': import("@emotion/react").SerializedStyles;
213
- };
214
- export declare type PaddingInline = keyof typeof paddingInlineMap;
215
- declare const widthMap: {
216
- 'scale.0': import("@emotion/react").SerializedStyles;
217
- 'scale.025': import("@emotion/react").SerializedStyles;
218
- 'scale.050': import("@emotion/react").SerializedStyles;
219
- 'scale.075': import("@emotion/react").SerializedStyles;
220
- 'scale.100': import("@emotion/react").SerializedStyles;
221
- 'scale.150': import("@emotion/react").SerializedStyles;
222
- 'scale.200': import("@emotion/react").SerializedStyles;
223
- 'scale.250': import("@emotion/react").SerializedStyles;
224
- 'scale.300': import("@emotion/react").SerializedStyles;
225
- 'scale.400': import("@emotion/react").SerializedStyles;
226
- 'scale.500': import("@emotion/react").SerializedStyles;
227
- 'scale.600': import("@emotion/react").SerializedStyles;
228
- };
229
- export declare type Width = keyof typeof widthMap;
230
- declare const heightMap: {
231
- 'scale.0': import("@emotion/react").SerializedStyles;
232
- 'scale.025': import("@emotion/react").SerializedStyles;
233
- 'scale.050': import("@emotion/react").SerializedStyles;
234
- 'scale.075': import("@emotion/react").SerializedStyles;
235
- 'scale.100': import("@emotion/react").SerializedStyles;
236
- 'scale.150': import("@emotion/react").SerializedStyles;
237
- 'scale.200': import("@emotion/react").SerializedStyles;
238
- 'scale.250': import("@emotion/react").SerializedStyles;
239
- 'scale.300': import("@emotion/react").SerializedStyles;
240
- 'scale.400': import("@emotion/react").SerializedStyles;
241
- 'scale.500': import("@emotion/react").SerializedStyles;
242
- 'scale.600': import("@emotion/react").SerializedStyles;
243
- };
244
- export declare type Height = keyof typeof heightMap;
245
- /**
246
- * @codegenEnd
247
- */
248
- /**
249
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
250
- * @codegen <<SignedSource::781636715c2bee941d6836a5a90fed5b>>
251
- * @codegenId colors
252
- * @codegenCommand yarn codegen-styles
253
- * @codegenParams ["border", "background"]
254
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::07ef29d58a2b23af8b098515466d7e22>>
255
- */
256
- declare const borderColorMap: {
257
- 'color.border': import("@emotion/react").SerializedStyles;
258
- bold: import("@emotion/react").SerializedStyles;
259
- inverse: import("@emotion/react").SerializedStyles;
260
- focused: import("@emotion/react").SerializedStyles;
261
- input: import("@emotion/react").SerializedStyles;
262
- disabled: import("@emotion/react").SerializedStyles;
263
- brand: import("@emotion/react").SerializedStyles;
264
- selected: import("@emotion/react").SerializedStyles;
265
- danger: import("@emotion/react").SerializedStyles;
266
- warning: import("@emotion/react").SerializedStyles;
267
- success: import("@emotion/react").SerializedStyles;
268
- discovery: import("@emotion/react").SerializedStyles;
269
- information: import("@emotion/react").SerializedStyles;
270
- };
271
- export declare type BorderColor = keyof typeof borderColorMap;
272
- declare const backgroundColorMap: {
273
- disabled: import("@emotion/react").SerializedStyles;
274
- 'inverse.subtle': import("@emotion/react").SerializedStyles;
275
- input: import("@emotion/react").SerializedStyles;
276
- neutral: import("@emotion/react").SerializedStyles;
277
- 'neutral.subtle': import("@emotion/react").SerializedStyles;
278
- 'neutral.bold': import("@emotion/react").SerializedStyles;
279
- 'brand.bold': import("@emotion/react").SerializedStyles;
280
- selected: import("@emotion/react").SerializedStyles;
281
- 'selected.bold': import("@emotion/react").SerializedStyles;
282
- danger: import("@emotion/react").SerializedStyles;
283
- 'danger.bold': import("@emotion/react").SerializedStyles;
284
- warning: import("@emotion/react").SerializedStyles;
285
- 'warning.bold': import("@emotion/react").SerializedStyles;
286
- success: import("@emotion/react").SerializedStyles;
287
- 'success.bold': import("@emotion/react").SerializedStyles;
288
- discovery: import("@emotion/react").SerializedStyles;
289
- 'discovery.bold': import("@emotion/react").SerializedStyles;
290
- information: import("@emotion/react").SerializedStyles;
291
- 'information.bold': import("@emotion/react").SerializedStyles;
292
- 'color.blanket': import("@emotion/react").SerializedStyles;
293
- 'color.blanket.selected': import("@emotion/react").SerializedStyles;
294
- 'color.blanket.danger': import("@emotion/react").SerializedStyles;
295
- 'elevation.surface': import("@emotion/react").SerializedStyles;
296
- 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
297
- 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
298
- 'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
299
- };
300
- export declare type BackgroundColor = keyof typeof backgroundColorMap;
301
- /**
302
- * @codegenEnd
303
- */