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