@atlaskit/ds-explorations 2.2.15 → 2.3.1

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 (76) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/components/interaction-surface.partial.js +2 -2
  3. package/dist/cjs/components/text.partial.js +2 -2
  4. package/dist/cjs/index.js +0 -21
  5. package/dist/cjs/internal/color-map.js +2 -2
  6. package/dist/es2019/components/interaction-surface.partial.js +2 -2
  7. package/dist/es2019/components/text.partial.js +2 -2
  8. package/dist/es2019/index.js +0 -3
  9. package/dist/es2019/internal/color-map.js +2 -2
  10. package/dist/esm/components/interaction-surface.partial.js +2 -2
  11. package/dist/esm/components/text.partial.js +2 -2
  12. package/dist/esm/index.js +0 -3
  13. package/dist/esm/internal/color-map.js +2 -2
  14. package/dist/types/components/surface-provider.d.ts +2 -2
  15. package/dist/types/components/text.partial.d.ts +2 -2
  16. package/dist/types/index.d.ts +0 -6
  17. package/dist/types/internal/color-map.d.ts +2 -2
  18. package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
  19. package/dist/types-ts4.5/components/text.partial.d.ts +2 -2
  20. package/dist/types-ts4.5/index.d.ts +0 -6
  21. package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
  22. package/examples/02-text-advanced.tsx +11 -20
  23. package/examples/02-text.tsx +15 -10
  24. package/examples/05-badge.tsx +9 -5
  25. package/examples/06-section-message.tsx +2 -4
  26. package/examples/07-comment.tsx +1 -3
  27. package/examples/08-lozenge.tsx +8 -4
  28. package/examples/99-interactions.tsx +49 -33
  29. package/package.json +4 -6
  30. package/report.api.md +0 -465
  31. package/scripts/codegen-styles.tsx +16 -89
  32. package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
  33. package/src/components/interaction-surface.partial.tsx +2 -2
  34. package/src/components/surface-provider.tsx +1 -1
  35. package/src/components/text.partial.tsx +2 -2
  36. package/src/index.tsx +0 -6
  37. package/src/internal/color-map.tsx +2 -2
  38. package/tmp/api-report-tmp.d.ts +0 -451
  39. package/tsconfig.app.json +3 -0
  40. package/tsconfig.dev.json +0 -6
  41. package/box/package.json +0 -15
  42. package/dist/cjs/components/box.partial.js +0 -622
  43. package/dist/cjs/components/inline.partial.js +0 -183
  44. package/dist/cjs/components/stack.partial.js +0 -149
  45. package/dist/es2019/components/box.partial.js +0 -614
  46. package/dist/es2019/components/inline.partial.js +0 -177
  47. package/dist/es2019/components/stack.partial.js +0 -144
  48. package/dist/esm/components/box.partial.js +0 -617
  49. package/dist/esm/components/inline.partial.js +0 -177
  50. package/dist/esm/components/stack.partial.js +0 -143
  51. package/dist/types/components/box.partial.d.ts +0 -357
  52. package/dist/types/components/inline.partial.d.ts +0 -108
  53. package/dist/types/components/stack.partial.d.ts +0 -92
  54. package/dist/types-ts4.5/components/box.partial.d.ts +0 -357
  55. package/dist/types-ts4.5/components/inline.partial.d.ts +0 -108
  56. package/dist/types-ts4.5/components/stack.partial.d.ts +0 -92
  57. package/examples/00-basic.tsx +0 -22
  58. package/examples/01-box.tsx +0 -171
  59. package/examples/03-stack.tsx +0 -99
  60. package/examples/04-inline.tsx +0 -99
  61. package/inline/package.json +0 -15
  62. package/src/components/__tests__/unit/box.test.tsx +0 -55
  63. package/src/components/__tests__/unit/inline.test.tsx +0 -43
  64. package/src/components/__tests__/unit/stack.test.tsx +0 -31
  65. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +0 -3
  66. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +0 -3
  67. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +0 -3
  68. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +0 -3
  69. package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +0 -28
  70. package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +0 -28
  71. package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
  72. package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +0 -6
  73. package/src/components/box.partial.tsx +0 -706
  74. package/src/components/inline.partial.tsx +0 -218
  75. package/src/components/stack.partial.tsx +0 -174
  76. package/stack/package.json +0 -15
@@ -1,622 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.Box = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = require("react");
11
- var _react2 = require("@emotion/react");
12
- var _constants = require("../constants");
13
- var _surfaceProvider = require("./surface-provider");
14
- var _excluded = ["children", "as", "className", "display", "flexDirection", "alignItems", "justifyContent", "backgroundColor", "borderColor", "borderStyle", "borderWidth", "borderRadius", "shadow", "layer", "padding", "paddingBlock", "paddingInline", "position", "height", "overflow", "width", "UNSAFE_style", "testId"];
15
- /** @jsx jsx */
16
- /**
17
- * @private
18
- * @deprecated DSP-8009: This type is scheduled for deletion.
19
- * Please use `Box` from `@atlaskit/primitives` instead.
20
- */
21
-
22
- // Without this type annotation on Box we don't get autocomplete for props due to forwardRef types
23
-
24
- /**
25
- * __Box__
26
- *
27
- * Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
28
- * Renders a `div` by default.
29
- *
30
- * @private
31
- * @deprecated DSP-8009: This primitive is scheduled for deletion.
32
- * Please use `Box` from `@atlaskit/primitives` instead.
33
- */
34
- var Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
35
- var children = _ref.children,
36
- as = _ref.as,
37
- className = _ref.className,
38
- _ref$display = _ref.display,
39
- display = _ref$display === void 0 ? 'flex' : _ref$display,
40
- flexDirection = _ref.flexDirection,
41
- alignItems = _ref.alignItems,
42
- justifyContent = _ref.justifyContent,
43
- backgroundColor = _ref.backgroundColor,
44
- borderColor = _ref.borderColor,
45
- borderStyle = _ref.borderStyle,
46
- borderWidth = _ref.borderWidth,
47
- borderRadius = _ref.borderRadius,
48
- shadow = _ref.shadow,
49
- layer = _ref.layer,
50
- padding = _ref.padding,
51
- paddingBlock = _ref.paddingBlock,
52
- paddingInline = _ref.paddingInline,
53
- _ref$position = _ref.position,
54
- position = _ref$position === void 0 ? 'relative' : _ref$position,
55
- height = _ref.height,
56
- overflow = _ref.overflow,
57
- width = _ref.width,
58
- UNSAFE_style = _ref.UNSAFE_style,
59
- testId = _ref.testId,
60
- htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
61
- var Component = as || 'div';
62
- var node = (0, _react2.jsx)(Component, (0, _extends2.default)({
63
- style: UNSAFE_style,
64
- ref: ref
65
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
66
- }, htmlAttributes, {
67
- className: className,
68
- css: [baseStyles, display && displayMap[display], padding && paddingMap[padding], position && positionMap[position], paddingBlock && paddingBlockMap[paddingBlock], paddingInline && paddingInlineMap[paddingInline], alignItems && flexAlignItemsMap[alignItems], justifyContent && flexJustifyContentMap[justifyContent], backgroundColor && backgroundColorMap[backgroundColor], borderColor && borderColorMap[borderColor], borderStyle && borderStyleMap[borderStyle], borderWidth && borderWidthMap[borderWidth], borderRadius && borderRadiusMap[borderRadius], shadow && shadowMap[shadow], layer && layerMap[layer], flexDirection && flexDirectionMap[flexDirection], overflow && overflowMap[overflow], width && widthMap[width], height && heightMap[height]],
69
- "data-testid": testId
70
- }), children);
71
- return backgroundColor ? (0, _react2.jsx)(_surfaceProvider.SurfaceContext.Provider, {
72
- value: backgroundColor
73
- }, node) : node;
74
- });
75
- exports.Box = Box;
76
- Box.displayName = 'Box';
77
- var _default = Box; // <<< STYLES GO HERE >>>
78
- exports.default = _default;
79
- var borderStyleMap = {
80
- none: (0, _react2.css)({
81
- borderStyle: 'none'
82
- }),
83
- solid: (0, _react2.css)({
84
- borderStyle: 'solid'
85
- }),
86
- dashed: (0, _react2.css)({
87
- borderStyle: 'dashed'
88
- }),
89
- dotted: (0, _react2.css)({
90
- borderStyle: 'dotted'
91
- })
92
- };
93
- var borderWidthMap = {
94
- '0px': (0, _react2.css)({
95
- borderWidth: '0px'
96
- }),
97
- '1px': (0, _react2.css)({
98
- borderWidth: '1px'
99
- }),
100
- '2px': (0, _react2.css)({
101
- borderWidth: '2px'
102
- }),
103
- '3px': (0, _react2.css)({
104
- borderWidth: '3px'
105
- })
106
- };
107
- var borderRadiusMap = {
108
- normal: (0, _react2.css)({
109
- borderRadius: '3px'
110
- }),
111
- rounded: (0, _react2.css)({
112
- borderRadius: '50%'
113
- }),
114
- badge: (0, _react2.css)({
115
- borderRadius: '8px'
116
- })
117
- };
118
-
119
- /**
120
- * @experimental - this is likely to be removed
121
- */
122
-
123
- var flexDirectionMap = {
124
- column: (0, _react2.css)({
125
- flexDirection: 'column'
126
- }),
127
- row: (0, _react2.css)({
128
- flexDirection: 'row'
129
- })
130
- };
131
-
132
- /**
133
- * @experimental - this is likely to be removed
134
- */
135
-
136
- var flexAlignItemsMap = {
137
- center: (0, _react2.css)({
138
- alignItems: 'center'
139
- }),
140
- baseline: (0, _react2.css)({
141
- alignItems: 'baseline'
142
- }),
143
- flexStart: (0, _react2.css)({
144
- alignItems: 'flex-start'
145
- }),
146
- flexEnd: (0, _react2.css)({
147
- alignItems: 'flex-end'
148
- }),
149
- start: (0, _react2.css)({
150
- alignItems: 'start'
151
- }),
152
- end: (0, _react2.css)({
153
- alignItems: 'end'
154
- })
155
- };
156
-
157
- /**
158
- * @experimental - this is likely to be removed
159
- */
160
-
161
- var flexJustifyContentMap = {
162
- center: (0, _react2.css)({
163
- justifyContent: 'center'
164
- }),
165
- flexStart: (0, _react2.css)({
166
- justifyContent: 'flex-start'
167
- }),
168
- flexEnd: (0, _react2.css)({
169
- justifyContent: 'flex-end'
170
- }),
171
- start: (0, _react2.css)({
172
- justifyContent: 'start'
173
- }),
174
- end: (0, _react2.css)({
175
- justifyContent: 'end'
176
- })
177
- };
178
- var displayMap = {
179
- block: (0, _react2.css)({
180
- display: 'block'
181
- }),
182
- inline: (0, _react2.css)({
183
- display: 'inline'
184
- }),
185
- flex: (0, _react2.css)({
186
- display: 'flex'
187
- }),
188
- inlineFlex: (0, _react2.css)({
189
- display: 'inline-flex'
190
- }),
191
- inlineBlock: (0, _react2.css)({
192
- display: 'inline-block'
193
- })
194
- };
195
- var positionMap = {
196
- absolute: (0, _react2.css)({
197
- position: 'absolute'
198
- }),
199
- fixed: (0, _react2.css)({
200
- position: 'fixed'
201
- }),
202
- relative: (0, _react2.css)({
203
- position: 'relative'
204
- }),
205
- static: (0, _react2.css)({
206
- position: 'static'
207
- })
208
- };
209
- var overflowMap = {
210
- auto: (0, _react2.css)({
211
- overflow: 'auto'
212
- }),
213
- hidden: (0, _react2.css)({
214
- overflow: 'hidden'
215
- })
216
- };
217
- var baseStyles = (0, _react2.css)({
218
- boxSizing: 'border-box',
219
- appearance: 'none',
220
- border: 'none'
221
- });
222
-
223
- /**
224
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
225
- * @codegen <<SignedSource::327e769aaa3da9422a919a0ca9490070>>
226
- * @codegenId dimensions
227
- * @codegenCommand yarn codegen-styles
228
- * @codegenParams ["width", "height"]
229
- */
230
- var widthMap = {
231
- '100%': (0, _react2.css)({
232
- width: '100%'
233
- }),
234
- 'size.100': (0, _react2.css)({
235
- width: '16px'
236
- }),
237
- 'size.1000': (0, _react2.css)({
238
- width: '192px'
239
- }),
240
- 'size.200': (0, _react2.css)({
241
- width: '24px'
242
- }),
243
- 'size.300': (0, _react2.css)({
244
- width: '32px'
245
- }),
246
- 'size.400': (0, _react2.css)({
247
- width: '40px'
248
- }),
249
- 'size.500': (0, _react2.css)({
250
- width: '48px'
251
- }),
252
- 'size.600': (0, _react2.css)({
253
- width: '96px'
254
- })
255
- };
256
- var heightMap = {
257
- '100%': (0, _react2.css)({
258
- height: '100%'
259
- }),
260
- 'size.100': (0, _react2.css)({
261
- height: '16px'
262
- }),
263
- 'size.1000': (0, _react2.css)({
264
- height: '192px'
265
- }),
266
- 'size.200': (0, _react2.css)({
267
- height: '24px'
268
- }),
269
- 'size.300': (0, _react2.css)({
270
- height: '32px'
271
- }),
272
- 'size.400': (0, _react2.css)({
273
- height: '40px'
274
- }),
275
- 'size.500': (0, _react2.css)({
276
- height: '48px'
277
- }),
278
- 'size.600': (0, _react2.css)({
279
- height: '96px'
280
- })
281
- };
282
- /**
283
- * @codegenEnd
284
- */
285
- /**
286
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
287
- * @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
288
- * @codegenId spacing
289
- * @codegenCommand yarn codegen-styles
290
- * @codegenParams ["padding", "paddingBlock", "paddingInline"]
291
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
292
- */
293
- var paddingMap = {
294
- 'space.0': (0, _react2.css)({
295
- padding: "var(--ds-space-0, 0px)"
296
- }),
297
- 'space.025': (0, _react2.css)({
298
- padding: "var(--ds-space-025, 2px)"
299
- }),
300
- 'space.050': (0, _react2.css)({
301
- padding: "var(--ds-space-050, 4px)"
302
- }),
303
- 'space.075': (0, _react2.css)({
304
- padding: "var(--ds-space-075, 6px)"
305
- }),
306
- 'space.100': (0, _react2.css)({
307
- padding: "var(--ds-space-100, 8px)"
308
- }),
309
- 'space.1000': (0, _react2.css)({
310
- padding: "var(--ds-space-1000, 80px)"
311
- }),
312
- 'space.150': (0, _react2.css)({
313
- padding: "var(--ds-space-150, 12px)"
314
- }),
315
- 'space.200': (0, _react2.css)({
316
- padding: "var(--ds-space-200, 16px)"
317
- }),
318
- 'space.250': (0, _react2.css)({
319
- padding: "var(--ds-space-250, 20px)"
320
- }),
321
- 'space.300': (0, _react2.css)({
322
- padding: "var(--ds-space-300, 24px)"
323
- }),
324
- 'space.400': (0, _react2.css)({
325
- padding: "var(--ds-space-400, 32px)"
326
- }),
327
- 'space.500': (0, _react2.css)({
328
- padding: "var(--ds-space-500, 40px)"
329
- }),
330
- 'space.600': (0, _react2.css)({
331
- padding: "var(--ds-space-600, 48px)"
332
- }),
333
- 'space.800': (0, _react2.css)({
334
- padding: "var(--ds-space-800, 64px)"
335
- })
336
- };
337
- var paddingBlockMap = {
338
- 'space.0': (0, _react2.css)({
339
- paddingBlock: "var(--ds-space-0, 0px)"
340
- }),
341
- 'space.025': (0, _react2.css)({
342
- paddingBlock: "var(--ds-space-025, 2px)"
343
- }),
344
- 'space.050': (0, _react2.css)({
345
- paddingBlock: "var(--ds-space-050, 4px)"
346
- }),
347
- 'space.075': (0, _react2.css)({
348
- paddingBlock: "var(--ds-space-075, 6px)"
349
- }),
350
- 'space.100': (0, _react2.css)({
351
- paddingBlock: "var(--ds-space-100, 8px)"
352
- }),
353
- 'space.1000': (0, _react2.css)({
354
- paddingBlock: "var(--ds-space-1000, 80px)"
355
- }),
356
- 'space.150': (0, _react2.css)({
357
- paddingBlock: "var(--ds-space-150, 12px)"
358
- }),
359
- 'space.200': (0, _react2.css)({
360
- paddingBlock: "var(--ds-space-200, 16px)"
361
- }),
362
- 'space.250': (0, _react2.css)({
363
- paddingBlock: "var(--ds-space-250, 20px)"
364
- }),
365
- 'space.300': (0, _react2.css)({
366
- paddingBlock: "var(--ds-space-300, 24px)"
367
- }),
368
- 'space.400': (0, _react2.css)({
369
- paddingBlock: "var(--ds-space-400, 32px)"
370
- }),
371
- 'space.500': (0, _react2.css)({
372
- paddingBlock: "var(--ds-space-500, 40px)"
373
- }),
374
- 'space.600': (0, _react2.css)({
375
- paddingBlock: "var(--ds-space-600, 48px)"
376
- }),
377
- 'space.800': (0, _react2.css)({
378
- paddingBlock: "var(--ds-space-800, 64px)"
379
- })
380
- };
381
- var paddingInlineMap = {
382
- 'space.0': (0, _react2.css)({
383
- paddingInline: "var(--ds-space-0, 0px)"
384
- }),
385
- 'space.025': (0, _react2.css)({
386
- paddingInline: "var(--ds-space-025, 2px)"
387
- }),
388
- 'space.050': (0, _react2.css)({
389
- paddingInline: "var(--ds-space-050, 4px)"
390
- }),
391
- 'space.075': (0, _react2.css)({
392
- paddingInline: "var(--ds-space-075, 6px)"
393
- }),
394
- 'space.100': (0, _react2.css)({
395
- paddingInline: "var(--ds-space-100, 8px)"
396
- }),
397
- 'space.1000': (0, _react2.css)({
398
- paddingInline: "var(--ds-space-1000, 80px)"
399
- }),
400
- 'space.150': (0, _react2.css)({
401
- paddingInline: "var(--ds-space-150, 12px)"
402
- }),
403
- 'space.200': (0, _react2.css)({
404
- paddingInline: "var(--ds-space-200, 16px)"
405
- }),
406
- 'space.250': (0, _react2.css)({
407
- paddingInline: "var(--ds-space-250, 20px)"
408
- }),
409
- 'space.300': (0, _react2.css)({
410
- paddingInline: "var(--ds-space-300, 24px)"
411
- }),
412
- 'space.400': (0, _react2.css)({
413
- paddingInline: "var(--ds-space-400, 32px)"
414
- }),
415
- 'space.500': (0, _react2.css)({
416
- paddingInline: "var(--ds-space-500, 40px)"
417
- }),
418
- 'space.600': (0, _react2.css)({
419
- paddingInline: "var(--ds-space-600, 48px)"
420
- }),
421
- 'space.800': (0, _react2.css)({
422
- paddingInline: "var(--ds-space-800, 64px)"
423
- })
424
- };
425
- /**
426
- * @codegenEnd
427
- */
428
- /**
429
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
430
- * @codegen <<SignedSource::fe1f557b04d44d23dfae5c9494ccddcc>>
431
- * @codegenId colors
432
- * @codegenCommand yarn codegen-styles
433
- * @codegenParams ["border", "background", "shadow"]
434
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::815ddd719715ae06521cad06e1921e40>>
435
- */
436
- var borderColorMap = {
437
- 'color.border': (0, _react2.css)({
438
- borderColor: "var(--ds-border, #091e4221)"
439
- }),
440
- disabled: (0, _react2.css)({
441
- borderColor: "var(--ds-border-disabled, #FAFBFC)"
442
- }),
443
- focused: (0, _react2.css)({
444
- borderColor: "var(--ds-border-focused, #2684FF)"
445
- }),
446
- input: (0, _react2.css)({
447
- borderColor: "var(--ds-border-input, #FAFBFC)"
448
- }),
449
- inverse: (0, _react2.css)({
450
- borderColor: "var(--ds-border-inverse, #FFFFFF)"
451
- }),
452
- selected: (0, _react2.css)({
453
- borderColor: "var(--ds-border-selected, #0052CC)"
454
- }),
455
- brand: (0, _react2.css)({
456
- borderColor: "var(--ds-border-brand, #0052CC)"
457
- }),
458
- danger: (0, _react2.css)({
459
- borderColor: "var(--ds-border-danger, #FF5630)"
460
- }),
461
- warning: (0, _react2.css)({
462
- borderColor: "var(--ds-border-warning, #FFC400)"
463
- }),
464
- success: (0, _react2.css)({
465
- borderColor: "var(--ds-border-success, #00875A)"
466
- }),
467
- discovery: (0, _react2.css)({
468
- borderColor: "var(--ds-border-discovery, #998DD9)"
469
- }),
470
- information: (0, _react2.css)({
471
- borderColor: "var(--ds-border-information, #0065FF)"
472
- }),
473
- bold: (0, _react2.css)({
474
- borderColor: "var(--ds-border-bold, #344563)"
475
- })
476
- };
477
- var backgroundColorMap = {
478
- disabled: (0, _react2.css)({
479
- backgroundColor: "var(--ds-background-disabled, #091e4289)"
480
- }),
481
- input: (0, _react2.css)({
482
- backgroundColor: "var(--ds-background-input, #FAFBFC)"
483
- }),
484
- 'inverse.subtle': (0, _react2.css)({
485
- backgroundColor: "var(--ds-background-inverse-subtle, #00000029)"
486
- }),
487
- neutral: (0, _react2.css)({
488
- backgroundColor: "var(--ds-background-neutral, #DFE1E6)"
489
- }),
490
- 'neutral.subtle': (0, _react2.css)({
491
- backgroundColor: "var(--ds-background-neutral-subtle, transparent)"
492
- }),
493
- 'neutral.bold': (0, _react2.css)({
494
- backgroundColor: "var(--ds-background-neutral-bold, #42526E)"
495
- }),
496
- selected: (0, _react2.css)({
497
- backgroundColor: "var(--ds-background-selected, #DEEBFF)"
498
- }),
499
- 'selected.bold': (0, _react2.css)({
500
- backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
501
- }),
502
- 'brand.subtlest': (0, _react2.css)({
503
- backgroundColor: "var(--ds-background-brand-subtlest, #B3D4FF)"
504
- }),
505
- 'brand.bold': (0, _react2.css)({
506
- backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
507
- }),
508
- 'brand.boldest': (0, _react2.css)({
509
- backgroundColor: "var(--ds-background-brand-boldest, #0747A6)"
510
- }),
511
- danger: (0, _react2.css)({
512
- backgroundColor: "var(--ds-background-danger, #FFEBE6)"
513
- }),
514
- 'danger.bold': (0, _react2.css)({
515
- backgroundColor: "var(--ds-background-danger-bold, #DE350B)"
516
- }),
517
- warning: (0, _react2.css)({
518
- backgroundColor: "var(--ds-background-warning, #FFFAE6)"
519
- }),
520
- 'warning.bold': (0, _react2.css)({
521
- backgroundColor: "var(--ds-background-warning-bold, #FFAB00)"
522
- }),
523
- success: (0, _react2.css)({
524
- backgroundColor: "var(--ds-background-success, #E3FCEF)"
525
- }),
526
- 'success.bold': (0, _react2.css)({
527
- backgroundColor: "var(--ds-background-success-bold, #00875A)"
528
- }),
529
- discovery: (0, _react2.css)({
530
- backgroundColor: "var(--ds-background-discovery, #EAE6FF)"
531
- }),
532
- 'discovery.bold': (0, _react2.css)({
533
- backgroundColor: "var(--ds-background-discovery-bold, #5243AA)"
534
- }),
535
- information: (0, _react2.css)({
536
- backgroundColor: "var(--ds-background-information, #DEEBFF)"
537
- }),
538
- 'information.bold': (0, _react2.css)({
539
- backgroundColor: "var(--ds-background-information-bold, #0052CC)"
540
- }),
541
- 'color.blanket': (0, _react2.css)({
542
- backgroundColor: "var(--ds-blanket, #091e4289)"
543
- }),
544
- 'color.blanket.selected': (0, _react2.css)({
545
- backgroundColor: "var(--ds-blanket-selected, #388BFF14)"
546
- }),
547
- 'color.blanket.danger': (0, _react2.css)({
548
- backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
549
- }),
550
- 'elevation.surface': (0, _react2.css)({
551
- backgroundColor: "var(--ds-surface, #FFFFFF)"
552
- }),
553
- 'elevation.surface.overlay': (0, _react2.css)({
554
- backgroundColor: "var(--ds-surface-overlay, #FFFFFF)"
555
- }),
556
- 'elevation.surface.raised': (0, _react2.css)({
557
- backgroundColor: "var(--ds-surface-raised, #FFFFFF)"
558
- }),
559
- 'elevation.surface.sunken': (0, _react2.css)({
560
- backgroundColor: "var(--ds-surface-sunken, #F4F5F7)"
561
- })
562
- };
563
- var shadowMap = {
564
- overflow: (0, _react2.css)({
565
- boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091e423f, 0px 0px 1px #091e424f)"
566
- }),
567
- 'overflow.perimeter': (0, _react2.css)({
568
- boxShadow: "var(--ds-shadow-overflow-perimeter, #091e421f)"
569
- }),
570
- 'overflow.spread': (0, _react2.css)({
571
- boxShadow: "var(--ds-shadow-overflow-spread, #091e4229)"
572
- }),
573
- overlay: (0, _react2.css)({
574
- boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091e423f, 0px 0px 1px #091e424f)"
575
- }),
576
- raised: (0, _react2.css)({
577
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091e423f, 0px 0px 1px #091e4221)"
578
- })
579
- };
580
- /**
581
- * @codegenEnd
582
- */
583
- /**
584
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
585
- * @codegen <<SignedSource::bacbea271b30ec7d2f61306c9a8a9e63>>
586
- * @codegenId misc
587
- * @codegenCommand yarn codegen-styles
588
- * @codegenParams ["layer"]
589
- */
590
- var layerMap = {
591
- card: (0, _react2.css)({
592
- zIndex: _constants.LAYERS['card']
593
- }),
594
- navigation: (0, _react2.css)({
595
- zIndex: _constants.LAYERS['navigation']
596
- }),
597
- dialog: (0, _react2.css)({
598
- zIndex: _constants.LAYERS['dialog']
599
- }),
600
- layer: (0, _react2.css)({
601
- zIndex: _constants.LAYERS['layer']
602
- }),
603
- blanket: (0, _react2.css)({
604
- zIndex: _constants.LAYERS['blanket']
605
- }),
606
- modal: (0, _react2.css)({
607
- zIndex: _constants.LAYERS['modal']
608
- }),
609
- flag: (0, _react2.css)({
610
- zIndex: _constants.LAYERS['flag']
611
- }),
612
- spotlight: (0, _react2.css)({
613
- zIndex: _constants.LAYERS['spotlight']
614
- }),
615
- tooltip: (0, _react2.css)({
616
- zIndex: _constants.LAYERS['tooltip']
617
- })
618
- };
619
-
620
- /**
621
- * @codegenEnd
622
- */