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