@atlaskit/ds-explorations 2.0.0 → 2.0.2
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.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/components/box.partial.js +62 -71
- package/dist/cjs/components/inline.partial.js +12 -16
- package/dist/cjs/components/interaction-surface.partial.js +35 -40
- package/dist/cjs/components/stack.partial.js +11 -13
- package/dist/cjs/components/surface-provider.js +1 -5
- package/dist/cjs/components/text.partial.js +34 -47
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/internal/color-map.js +5 -6
- package/dist/cjs/internal/role-to-element.js +0 -1
- package/dist/cjs/internal/spacing-scale.js +0 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +40 -39
- package/dist/es2019/components/inline.partial.js +5 -6
- package/dist/es2019/components/interaction-surface.partial.js +33 -34
- package/dist/es2019/components/stack.partial.js +5 -4
- package/dist/es2019/components/surface-provider.js +1 -2
- package/dist/es2019/components/text.partial.js +21 -25
- package/dist/es2019/internal/color-map.js +5 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +65 -65
- package/dist/esm/components/inline.partial.js +12 -13
- package/dist/esm/components/interaction-surface.partial.js +35 -36
- package/dist/esm/components/stack.partial.js +11 -10
- package/dist/esm/components/surface-provider.js +1 -2
- package/dist/esm/components/text.partial.js +35 -41
- package/dist/esm/internal/color-map.js +5 -5
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +14 -14
- package/dist/types/components/inline.partial.d.ts +2 -2
- package/dist/types/components/interaction-surface.partial.d.ts +3 -3
- package/dist/types/components/stack.partial.d.ts +2 -2
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +7 -7
- package/dist/types/internal/color-map.d.ts +5 -5
- package/package.json +2 -2
- package/report.api.md +16 -16
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +49 -49
- package/src/components/box.partial.tsx +33 -33
- package/src/components/inline.partial.tsx +2 -2
- package/src/components/interaction-surface.partial.tsx +22 -22
- package/src/components/stack.partial.tsx +2 -2
- package/src/components/text.partial.tsx +13 -13
- package/src/internal/color-map.tsx +5 -5
- package/tmp/api-report-tmp.d.ts +16 -16
|
@@ -5,12 +5,12 @@ exports[`@atlaskit/design-system-explorations bg styles are generated correctly
|
|
|
5
5
|
disabled: css({
|
|
6
6
|
backgroundColor: token('color.background.disabled', '#091e4289'),
|
|
7
7
|
}),
|
|
8
|
-
'inverse.subtle': css({
|
|
9
|
-
backgroundColor: token('color.background.inverse.subtle', '#00000029'),
|
|
10
|
-
}),
|
|
11
8
|
input: css({
|
|
12
9
|
backgroundColor: token('color.background.input', '#FAFBFC'),
|
|
13
10
|
}),
|
|
11
|
+
'inverse.subtle': css({
|
|
12
|
+
backgroundColor: token('color.background.inverse.subtle', '#00000029'),
|
|
13
|
+
}),
|
|
14
14
|
neutral: css({
|
|
15
15
|
backgroundColor: token('color.background.neutral', '#DFE1E6'),
|
|
16
16
|
}),
|
|
@@ -20,15 +20,15 @@ exports[`@atlaskit/design-system-explorations bg styles are generated correctly
|
|
|
20
20
|
'neutral.bold': css({
|
|
21
21
|
backgroundColor: token('color.background.neutral.bold', '#42526E'),
|
|
22
22
|
}),
|
|
23
|
-
'brand.bold': css({
|
|
24
|
-
backgroundColor: token('color.background.brand.bold', '#0052CC'),
|
|
25
|
-
}),
|
|
26
23
|
selected: css({
|
|
27
24
|
backgroundColor: token('color.background.selected', '#DEEBFF'),
|
|
28
25
|
}),
|
|
29
26
|
'selected.bold': css({
|
|
30
27
|
backgroundColor: token('color.background.selected.bold', '#0052CC'),
|
|
31
28
|
}),
|
|
29
|
+
'brand.bold': css({
|
|
30
|
+
backgroundColor: token('color.background.brand.bold', '#0052CC'),
|
|
31
|
+
}),
|
|
32
32
|
danger: css({
|
|
33
33
|
backgroundColor: token('color.background.danger', '#FFEBE6'),
|
|
34
34
|
}),
|
|
@@ -71,14 +71,14 @@ exports[`@atlaskit/design-system-explorations bg styles are generated correctly
|
|
|
71
71
|
'elevation.surface': css({
|
|
72
72
|
backgroundColor: token('elevation.surface', '#FFFFFF'),
|
|
73
73
|
}),
|
|
74
|
-
'elevation.surface.
|
|
75
|
-
backgroundColor: token('elevation.surface.
|
|
74
|
+
'elevation.surface.overlay': css({
|
|
75
|
+
backgroundColor: token('elevation.surface.overlay', '#FFFFFF'),
|
|
76
76
|
}),
|
|
77
77
|
'elevation.surface.raised': css({
|
|
78
78
|
backgroundColor: token('elevation.surface.raised', '#FFFFFF'),
|
|
79
79
|
}),
|
|
80
|
-
'elevation.surface.
|
|
81
|
-
backgroundColor: token('elevation.surface.
|
|
80
|
+
'elevation.surface.sunken': css({
|
|
81
|
+
backgroundColor: token('elevation.surface.sunken', '#F4F5F7'),
|
|
82
82
|
}),
|
|
83
83
|
} as const;
|
|
84
84
|
|
|
@@ -91,11 +91,8 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
91
91
|
'color.border': css({
|
|
92
92
|
borderColor: token('color.border', '#091e4221'),
|
|
93
93
|
}),
|
|
94
|
-
|
|
95
|
-
borderColor: token('color.border.
|
|
96
|
-
}),
|
|
97
|
-
inverse: css({
|
|
98
|
-
borderColor: token('color.border.inverse', '#FFFFFF'),
|
|
94
|
+
disabled: css({
|
|
95
|
+
borderColor: token('color.border.disabled', '#FAFBFC'),
|
|
99
96
|
}),
|
|
100
97
|
focused: css({
|
|
101
98
|
borderColor: token('color.border.focused', '#4C9AFF'),
|
|
@@ -103,15 +100,15 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
103
100
|
input: css({
|
|
104
101
|
borderColor: token('color.border.input', '#FAFBFC'),
|
|
105
102
|
}),
|
|
106
|
-
|
|
107
|
-
borderColor: token('color.border.
|
|
108
|
-
}),
|
|
109
|
-
brand: css({
|
|
110
|
-
borderColor: token('color.border.brand', '#0052CC'),
|
|
103
|
+
inverse: css({
|
|
104
|
+
borderColor: token('color.border.inverse', '#FFFFFF'),
|
|
111
105
|
}),
|
|
112
106
|
selected: css({
|
|
113
107
|
borderColor: token('color.border.selected', '#0052CC'),
|
|
114
108
|
}),
|
|
109
|
+
brand: css({
|
|
110
|
+
borderColor: token('color.border.brand', '#0052CC'),
|
|
111
|
+
}),
|
|
115
112
|
danger: css({
|
|
116
113
|
borderColor: token('color.border.danger', '#FF5630'),
|
|
117
114
|
}),
|
|
@@ -127,6 +124,9 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
127
124
|
information: css({
|
|
128
125
|
borderColor: token('color.border.information', '#0065FF'),
|
|
129
126
|
}),
|
|
127
|
+
bold: css({
|
|
128
|
+
borderColor: token('color.border.bold', '#344563'),
|
|
129
|
+
}),
|
|
130
130
|
} as const;
|
|
131
131
|
|
|
132
132
|
export type BorderColor = keyof typeof borderColorMap;
|
|
@@ -135,14 +135,14 @@ export type BorderColor = keyof typeof borderColorMap;
|
|
|
135
135
|
|
|
136
136
|
exports[`@atlaskit/design-system-explorations border styles are generated correctly 2`] = `
|
|
137
137
|
"const backgroundActiveColorMap = {
|
|
138
|
+
input: css({
|
|
139
|
+
':active': { backgroundColor: token('color.background.input.pressed') },
|
|
140
|
+
}),
|
|
138
141
|
'inverse.subtle': css({
|
|
139
142
|
':active': {
|
|
140
143
|
backgroundColor: token('color.background.inverse.subtle.pressed'),
|
|
141
144
|
},
|
|
142
145
|
}),
|
|
143
|
-
input: css({
|
|
144
|
-
':active': { backgroundColor: token('color.background.input.pressed') },
|
|
145
|
-
}),
|
|
146
146
|
neutral: css({
|
|
147
147
|
':active': { backgroundColor: token('color.background.neutral.pressed') },
|
|
148
148
|
}),
|
|
@@ -156,11 +156,6 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
156
156
|
backgroundColor: token('color.background.neutral.bold.pressed'),
|
|
157
157
|
},
|
|
158
158
|
}),
|
|
159
|
-
'brand.bold': css({
|
|
160
|
-
':active': {
|
|
161
|
-
backgroundColor: token('color.background.brand.bold.pressed'),
|
|
162
|
-
},
|
|
163
|
-
}),
|
|
164
159
|
selected: css({
|
|
165
160
|
':active': { backgroundColor: token('color.background.selected.pressed') },
|
|
166
161
|
}),
|
|
@@ -169,6 +164,11 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
169
164
|
backgroundColor: token('color.background.selected.bold.pressed'),
|
|
170
165
|
},
|
|
171
166
|
}),
|
|
167
|
+
'brand.bold': css({
|
|
168
|
+
':active': {
|
|
169
|
+
backgroundColor: token('color.background.brand.bold.pressed'),
|
|
170
|
+
},
|
|
171
|
+
}),
|
|
172
172
|
danger: css({
|
|
173
173
|
':active': { backgroundColor: token('color.background.danger.pressed') },
|
|
174
174
|
}),
|
|
@@ -214,23 +214,23 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
|
|
|
214
214
|
'elevation.surface': css({
|
|
215
215
|
':active': { backgroundColor: token('elevation.surface.pressed') },
|
|
216
216
|
}),
|
|
217
|
-
'elevation.surface.raised': css({
|
|
218
|
-
':active': { backgroundColor: token('elevation.surface.raised.pressed') },
|
|
219
|
-
}),
|
|
220
217
|
'elevation.surface.overlay': css({
|
|
221
218
|
':active': { backgroundColor: token('elevation.surface.overlay.pressed') },
|
|
222
219
|
}),
|
|
220
|
+
'elevation.surface.raised': css({
|
|
221
|
+
':active': { backgroundColor: token('elevation.surface.raised.pressed') },
|
|
222
|
+
}),
|
|
223
223
|
};
|
|
224
224
|
|
|
225
225
|
const backgroundHoverColorMap = {
|
|
226
|
+
input: css({
|
|
227
|
+
':hover': { backgroundColor: token('color.background.input.hovered') },
|
|
228
|
+
}),
|
|
226
229
|
'inverse.subtle': css({
|
|
227
230
|
':hover': {
|
|
228
231
|
backgroundColor: token('color.background.inverse.subtle.hovered'),
|
|
229
232
|
},
|
|
230
233
|
}),
|
|
231
|
-
input: css({
|
|
232
|
-
':hover': { backgroundColor: token('color.background.input.hovered') },
|
|
233
|
-
}),
|
|
234
234
|
neutral: css({
|
|
235
235
|
':hover': { backgroundColor: token('color.background.neutral.hovered') },
|
|
236
236
|
}),
|
|
@@ -244,9 +244,6 @@ const backgroundHoverColorMap = {
|
|
|
244
244
|
backgroundColor: token('color.background.neutral.bold.hovered'),
|
|
245
245
|
},
|
|
246
246
|
}),
|
|
247
|
-
'brand.bold': css({
|
|
248
|
-
':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
|
|
249
|
-
}),
|
|
250
247
|
selected: css({
|
|
251
248
|
':hover': { backgroundColor: token('color.background.selected.hovered') },
|
|
252
249
|
}),
|
|
@@ -255,6 +252,9 @@ const backgroundHoverColorMap = {
|
|
|
255
252
|
backgroundColor: token('color.background.selected.bold.hovered'),
|
|
256
253
|
},
|
|
257
254
|
}),
|
|
255
|
+
'brand.bold': css({
|
|
256
|
+
':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
|
|
257
|
+
}),
|
|
258
258
|
danger: css({
|
|
259
259
|
':hover': { backgroundColor: token('color.background.danger.hovered') },
|
|
260
260
|
}),
|
|
@@ -300,12 +300,12 @@ const backgroundHoverColorMap = {
|
|
|
300
300
|
'elevation.surface': css({
|
|
301
301
|
':hover': { backgroundColor: token('elevation.surface.hovered') },
|
|
302
302
|
}),
|
|
303
|
-
'elevation.surface.raised': css({
|
|
304
|
-
':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
|
|
305
|
-
}),
|
|
306
303
|
'elevation.surface.overlay': css({
|
|
307
304
|
':hover': { backgroundColor: token('elevation.surface.overlay.hovered') },
|
|
308
305
|
}),
|
|
306
|
+
'elevation.surface.raised': css({
|
|
307
|
+
':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
|
|
308
|
+
}),
|
|
309
309
|
};
|
|
310
310
|
|
|
311
311
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
@@ -317,24 +317,18 @@ exports[`@atlaskit/design-system-explorations text styles are generated correctl
|
|
|
317
317
|
'color.text': css({
|
|
318
318
|
color: token('color.text', '#172B4D'),
|
|
319
319
|
}),
|
|
320
|
-
subtle: css({
|
|
321
|
-
color: token('color.text.subtle', '#42526E'),
|
|
322
|
-
}),
|
|
323
|
-
subtlest: css({
|
|
324
|
-
color: token('color.text.subtlest', '#7A869A'),
|
|
325
|
-
}),
|
|
326
320
|
disabled: css({
|
|
327
321
|
color: token('color.text.disabled', '#A5ADBA'),
|
|
328
322
|
}),
|
|
329
323
|
inverse: css({
|
|
330
324
|
color: token('color.text.inverse', '#FFFFFF'),
|
|
331
325
|
}),
|
|
332
|
-
brand: css({
|
|
333
|
-
color: token('color.text.brand', '#0065FF'),
|
|
334
|
-
}),
|
|
335
326
|
selected: css({
|
|
336
327
|
color: token('color.text.selected', '#0052CC'),
|
|
337
328
|
}),
|
|
329
|
+
brand: css({
|
|
330
|
+
color: token('color.text.brand', '#0065FF'),
|
|
331
|
+
}),
|
|
338
332
|
danger: css({
|
|
339
333
|
color: token('color.text.danger', '#DE350B'),
|
|
340
334
|
}),
|
|
@@ -353,6 +347,12 @@ exports[`@atlaskit/design-system-explorations text styles are generated correctl
|
|
|
353
347
|
information: css({
|
|
354
348
|
color: token('color.text.information', '#0052CC'),
|
|
355
349
|
}),
|
|
350
|
+
subtlest: css({
|
|
351
|
+
color: token('color.text.subtlest', '#7A869A'),
|
|
352
|
+
}),
|
|
353
|
+
subtle: css({
|
|
354
|
+
color: token('color.text.subtle', '#42526E'),
|
|
355
|
+
}),
|
|
356
356
|
} as const;
|
|
357
357
|
|
|
358
358
|
export type TextColor = keyof typeof textColorMap;
|
|
@@ -350,11 +350,11 @@ export type Height = keyof typeof heightMap;
|
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
352
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
353
|
-
* @codegen <<SignedSource::
|
|
353
|
+
* @codegen <<SignedSource::dd066079dac7b8cd6f947965a2f1a744>>
|
|
354
354
|
* @codegenId spacing
|
|
355
355
|
* @codegenCommand yarn codegen-styles
|
|
356
356
|
* @codegenParams ["padding", "paddingBlock", "paddingInline"]
|
|
357
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::
|
|
357
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
358
358
|
*/
|
|
359
359
|
const paddingMap = {
|
|
360
360
|
'space.0': css({
|
|
@@ -503,21 +503,18 @@ export type PaddingInline = keyof typeof paddingInlineMap;
|
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
506
|
-
* @codegen <<SignedSource::
|
|
506
|
+
* @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
|
|
507
507
|
* @codegenId colors
|
|
508
508
|
* @codegenCommand yarn codegen-styles
|
|
509
509
|
* @codegenParams ["border", "background", "shadow"]
|
|
510
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
510
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
511
511
|
*/
|
|
512
512
|
const borderColorMap = {
|
|
513
513
|
'color.border': css({
|
|
514
514
|
borderColor: token('color.border', '#091e4221'),
|
|
515
515
|
}),
|
|
516
|
-
|
|
517
|
-
borderColor: token('color.border.
|
|
518
|
-
}),
|
|
519
|
-
inverse: css({
|
|
520
|
-
borderColor: token('color.border.inverse', '#FFFFFF'),
|
|
516
|
+
disabled: css({
|
|
517
|
+
borderColor: token('color.border.disabled', '#FAFBFC'),
|
|
521
518
|
}),
|
|
522
519
|
focused: css({
|
|
523
520
|
borderColor: token('color.border.focused', '#4C9AFF'),
|
|
@@ -525,15 +522,15 @@ const borderColorMap = {
|
|
|
525
522
|
input: css({
|
|
526
523
|
borderColor: token('color.border.input', '#FAFBFC'),
|
|
527
524
|
}),
|
|
528
|
-
|
|
529
|
-
borderColor: token('color.border.
|
|
530
|
-
}),
|
|
531
|
-
brand: css({
|
|
532
|
-
borderColor: token('color.border.brand', '#0052CC'),
|
|
525
|
+
inverse: css({
|
|
526
|
+
borderColor: token('color.border.inverse', '#FFFFFF'),
|
|
533
527
|
}),
|
|
534
528
|
selected: css({
|
|
535
529
|
borderColor: token('color.border.selected', '#0052CC'),
|
|
536
530
|
}),
|
|
531
|
+
brand: css({
|
|
532
|
+
borderColor: token('color.border.brand', '#0052CC'),
|
|
533
|
+
}),
|
|
537
534
|
danger: css({
|
|
538
535
|
borderColor: token('color.border.danger', '#FF5630'),
|
|
539
536
|
}),
|
|
@@ -549,6 +546,9 @@ const borderColorMap = {
|
|
|
549
546
|
information: css({
|
|
550
547
|
borderColor: token('color.border.information', '#0065FF'),
|
|
551
548
|
}),
|
|
549
|
+
bold: css({
|
|
550
|
+
borderColor: token('color.border.bold', '#344563'),
|
|
551
|
+
}),
|
|
552
552
|
} as const;
|
|
553
553
|
|
|
554
554
|
export type BorderColor = keyof typeof borderColorMap;
|
|
@@ -557,12 +557,12 @@ const backgroundColorMap = {
|
|
|
557
557
|
disabled: css({
|
|
558
558
|
backgroundColor: token('color.background.disabled', '#091e4289'),
|
|
559
559
|
}),
|
|
560
|
-
'inverse.subtle': css({
|
|
561
|
-
backgroundColor: token('color.background.inverse.subtle', '#00000029'),
|
|
562
|
-
}),
|
|
563
560
|
input: css({
|
|
564
561
|
backgroundColor: token('color.background.input', '#FAFBFC'),
|
|
565
562
|
}),
|
|
563
|
+
'inverse.subtle': css({
|
|
564
|
+
backgroundColor: token('color.background.inverse.subtle', '#00000029'),
|
|
565
|
+
}),
|
|
566
566
|
neutral: css({
|
|
567
567
|
backgroundColor: token('color.background.neutral', '#DFE1E6'),
|
|
568
568
|
}),
|
|
@@ -572,15 +572,15 @@ const backgroundColorMap = {
|
|
|
572
572
|
'neutral.bold': css({
|
|
573
573
|
backgroundColor: token('color.background.neutral.bold', '#42526E'),
|
|
574
574
|
}),
|
|
575
|
-
'brand.bold': css({
|
|
576
|
-
backgroundColor: token('color.background.brand.bold', '#0052CC'),
|
|
577
|
-
}),
|
|
578
575
|
selected: css({
|
|
579
576
|
backgroundColor: token('color.background.selected', '#DEEBFF'),
|
|
580
577
|
}),
|
|
581
578
|
'selected.bold': css({
|
|
582
579
|
backgroundColor: token('color.background.selected.bold', '#0052CC'),
|
|
583
580
|
}),
|
|
581
|
+
'brand.bold': css({
|
|
582
|
+
backgroundColor: token('color.background.brand.bold', '#0052CC'),
|
|
583
|
+
}),
|
|
584
584
|
danger: css({
|
|
585
585
|
backgroundColor: token('color.background.danger', '#FFEBE6'),
|
|
586
586
|
}),
|
|
@@ -623,44 +623,44 @@ const backgroundColorMap = {
|
|
|
623
623
|
'elevation.surface': css({
|
|
624
624
|
backgroundColor: token('elevation.surface', '#FFFFFF'),
|
|
625
625
|
}),
|
|
626
|
-
'elevation.surface.
|
|
627
|
-
backgroundColor: token('elevation.surface.
|
|
626
|
+
'elevation.surface.overlay': css({
|
|
627
|
+
backgroundColor: token('elevation.surface.overlay', '#FFFFFF'),
|
|
628
628
|
}),
|
|
629
629
|
'elevation.surface.raised': css({
|
|
630
630
|
backgroundColor: token('elevation.surface.raised', '#FFFFFF'),
|
|
631
631
|
}),
|
|
632
|
-
'elevation.surface.
|
|
633
|
-
backgroundColor: token('elevation.surface.
|
|
632
|
+
'elevation.surface.sunken': css({
|
|
633
|
+
backgroundColor: token('elevation.surface.sunken', '#F4F5F7'),
|
|
634
634
|
}),
|
|
635
635
|
} as const;
|
|
636
636
|
|
|
637
637
|
export type BackgroundColor = keyof typeof backgroundColorMap;
|
|
638
638
|
|
|
639
639
|
const shadowMap = {
|
|
640
|
-
raised: css({
|
|
641
|
-
boxShadow: token(
|
|
642
|
-
'elevation.shadow.raised',
|
|
643
|
-
'0px 1px 1px #091e423f, 0px 0px 1px #091e4221',
|
|
644
|
-
),
|
|
645
|
-
}),
|
|
646
640
|
overflow: css({
|
|
647
641
|
boxShadow: token(
|
|
648
642
|
'elevation.shadow.overflow',
|
|
649
643
|
'0px 0px 8px #091e423f, 0px 0px 1px #091e424f',
|
|
650
644
|
),
|
|
651
645
|
}),
|
|
652
|
-
'overflow.spread': css({
|
|
653
|
-
boxShadow: token('elevation.shadow.overflow.spread', '#091e4229'),
|
|
654
|
-
}),
|
|
655
646
|
'overflow.perimeter': css({
|
|
656
647
|
boxShadow: token('elevation.shadow.overflow.perimeter', '#091e421f'),
|
|
657
648
|
}),
|
|
649
|
+
'overflow.spread': css({
|
|
650
|
+
boxShadow: token('elevation.shadow.overflow.spread', '#091e4229'),
|
|
651
|
+
}),
|
|
658
652
|
overlay: css({
|
|
659
653
|
boxShadow: token(
|
|
660
654
|
'elevation.shadow.overlay',
|
|
661
655
|
'0px 8px 12px #091e423f, 0px 0px 1px #091e424f',
|
|
662
656
|
),
|
|
663
657
|
}),
|
|
658
|
+
raised: css({
|
|
659
|
+
boxShadow: token(
|
|
660
|
+
'elevation.shadow.raised',
|
|
661
|
+
'0px 1px 1px #091e423f, 0px 0px 1px #091e4221',
|
|
662
|
+
),
|
|
663
|
+
}),
|
|
664
664
|
} as const;
|
|
665
665
|
|
|
666
666
|
export type Shadow = keyof typeof shadowMap;
|
|
@@ -151,11 +151,11 @@ export default Inline;
|
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
154
|
-
* @codegen <<SignedSource::
|
|
154
|
+
* @codegen <<SignedSource::e4218f7c850d1484a192d5b8b5dce136>>
|
|
155
155
|
* @codegenId spacing
|
|
156
156
|
* @codegenCommand yarn codegen-styles
|
|
157
157
|
* @codegenParams ["columnGap"]
|
|
158
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::
|
|
158
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
159
159
|
*/
|
|
160
160
|
const columnGapMap = {
|
|
161
161
|
'space.0': css({
|
|
@@ -70,21 +70,21 @@ export default InteractionSurface;
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
73
|
-
* @codegen <<SignedSource::
|
|
73
|
+
* @codegen <<SignedSource::4f6bde99739600abea2bbe6e62397bc4>>
|
|
74
74
|
* @codegenId interactions
|
|
75
75
|
* @codegenCommand yarn codegen-styles
|
|
76
76
|
* @codegenParams ["background"]
|
|
77
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
77
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
78
78
|
*/
|
|
79
79
|
const backgroundActiveColorMap = {
|
|
80
|
+
input: css({
|
|
81
|
+
':active': { backgroundColor: token('color.background.input.pressed') },
|
|
82
|
+
}),
|
|
80
83
|
'inverse.subtle': css({
|
|
81
84
|
':active': {
|
|
82
85
|
backgroundColor: token('color.background.inverse.subtle.pressed'),
|
|
83
86
|
},
|
|
84
87
|
}),
|
|
85
|
-
input: css({
|
|
86
|
-
':active': { backgroundColor: token('color.background.input.pressed') },
|
|
87
|
-
}),
|
|
88
88
|
neutral: css({
|
|
89
89
|
':active': { backgroundColor: token('color.background.neutral.pressed') },
|
|
90
90
|
}),
|
|
@@ -98,11 +98,6 @@ const backgroundActiveColorMap = {
|
|
|
98
98
|
backgroundColor: token('color.background.neutral.bold.pressed'),
|
|
99
99
|
},
|
|
100
100
|
}),
|
|
101
|
-
'brand.bold': css({
|
|
102
|
-
':active': {
|
|
103
|
-
backgroundColor: token('color.background.brand.bold.pressed'),
|
|
104
|
-
},
|
|
105
|
-
}),
|
|
106
101
|
selected: css({
|
|
107
102
|
':active': { backgroundColor: token('color.background.selected.pressed') },
|
|
108
103
|
}),
|
|
@@ -111,6 +106,11 @@ const backgroundActiveColorMap = {
|
|
|
111
106
|
backgroundColor: token('color.background.selected.bold.pressed'),
|
|
112
107
|
},
|
|
113
108
|
}),
|
|
109
|
+
'brand.bold': css({
|
|
110
|
+
':active': {
|
|
111
|
+
backgroundColor: token('color.background.brand.bold.pressed'),
|
|
112
|
+
},
|
|
113
|
+
}),
|
|
114
114
|
danger: css({
|
|
115
115
|
':active': { backgroundColor: token('color.background.danger.pressed') },
|
|
116
116
|
}),
|
|
@@ -156,23 +156,23 @@ const backgroundActiveColorMap = {
|
|
|
156
156
|
'elevation.surface': css({
|
|
157
157
|
':active': { backgroundColor: token('elevation.surface.pressed') },
|
|
158
158
|
}),
|
|
159
|
-
'elevation.surface.raised': css({
|
|
160
|
-
':active': { backgroundColor: token('elevation.surface.raised.pressed') },
|
|
161
|
-
}),
|
|
162
159
|
'elevation.surface.overlay': css({
|
|
163
160
|
':active': { backgroundColor: token('elevation.surface.overlay.pressed') },
|
|
164
161
|
}),
|
|
162
|
+
'elevation.surface.raised': css({
|
|
163
|
+
':active': { backgroundColor: token('elevation.surface.raised.pressed') },
|
|
164
|
+
}),
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
const backgroundHoverColorMap = {
|
|
168
|
+
input: css({
|
|
169
|
+
':hover': { backgroundColor: token('color.background.input.hovered') },
|
|
170
|
+
}),
|
|
168
171
|
'inverse.subtle': css({
|
|
169
172
|
':hover': {
|
|
170
173
|
backgroundColor: token('color.background.inverse.subtle.hovered'),
|
|
171
174
|
},
|
|
172
175
|
}),
|
|
173
|
-
input: css({
|
|
174
|
-
':hover': { backgroundColor: token('color.background.input.hovered') },
|
|
175
|
-
}),
|
|
176
176
|
neutral: css({
|
|
177
177
|
':hover': { backgroundColor: token('color.background.neutral.hovered') },
|
|
178
178
|
}),
|
|
@@ -186,9 +186,6 @@ const backgroundHoverColorMap = {
|
|
|
186
186
|
backgroundColor: token('color.background.neutral.bold.hovered'),
|
|
187
187
|
},
|
|
188
188
|
}),
|
|
189
|
-
'brand.bold': css({
|
|
190
|
-
':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
|
|
191
|
-
}),
|
|
192
189
|
selected: css({
|
|
193
190
|
':hover': { backgroundColor: token('color.background.selected.hovered') },
|
|
194
191
|
}),
|
|
@@ -197,6 +194,9 @@ const backgroundHoverColorMap = {
|
|
|
197
194
|
backgroundColor: token('color.background.selected.bold.hovered'),
|
|
198
195
|
},
|
|
199
196
|
}),
|
|
197
|
+
'brand.bold': css({
|
|
198
|
+
':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
|
|
199
|
+
}),
|
|
200
200
|
danger: css({
|
|
201
201
|
':hover': { backgroundColor: token('color.background.danger.hovered') },
|
|
202
202
|
}),
|
|
@@ -242,12 +242,12 @@ const backgroundHoverColorMap = {
|
|
|
242
242
|
'elevation.surface': css({
|
|
243
243
|
':hover': { backgroundColor: token('elevation.surface.hovered') },
|
|
244
244
|
}),
|
|
245
|
-
'elevation.surface.raised': css({
|
|
246
|
-
':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
|
|
247
|
-
}),
|
|
248
245
|
'elevation.surface.overlay': css({
|
|
249
246
|
':hover': { backgroundColor: token('elevation.surface.overlay.hovered') },
|
|
250
247
|
}),
|
|
248
|
+
'elevation.surface.raised': css({
|
|
249
|
+
':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
|
|
250
|
+
}),
|
|
251
251
|
};
|
|
252
252
|
|
|
253
253
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
@@ -107,11 +107,11 @@ export default Stack;
|
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
110
|
-
* @codegen <<SignedSource::
|
|
110
|
+
* @codegen <<SignedSource::91d26b1ace8b38363779ae85a7ddc51b>>
|
|
111
111
|
* @codegenId spacing
|
|
112
112
|
* @codegenCommand yarn codegen-styles
|
|
113
113
|
* @codegenParams ["rowGap"]
|
|
114
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::
|
|
114
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
115
115
|
*/
|
|
116
116
|
const rowGapMap = {
|
|
117
117
|
'space.0': css({
|
|
@@ -189,11 +189,11 @@ export default Text;
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
192
|
-
* @codegen <<SignedSource::
|
|
192
|
+
* @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
|
|
193
193
|
* @codegenId typography
|
|
194
194
|
* @codegenCommand yarn codegen-styles
|
|
195
195
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
196
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
196
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
|
|
197
197
|
*/
|
|
198
198
|
const fontSizeMap = {
|
|
199
199
|
'size.050': css({
|
|
@@ -287,34 +287,28 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
290
|
-
* @codegen <<SignedSource::
|
|
290
|
+
* @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
|
|
291
291
|
* @codegenId colors
|
|
292
292
|
* @codegenCommand yarn codegen-styles
|
|
293
293
|
* @codegenParams ["text"]
|
|
294
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
294
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
295
295
|
*/
|
|
296
296
|
const textColorMap = {
|
|
297
297
|
'color.text': css({
|
|
298
298
|
color: token('color.text', '#172B4D'),
|
|
299
299
|
}),
|
|
300
|
-
subtle: css({
|
|
301
|
-
color: token('color.text.subtle', '#42526E'),
|
|
302
|
-
}),
|
|
303
|
-
subtlest: css({
|
|
304
|
-
color: token('color.text.subtlest', '#7A869A'),
|
|
305
|
-
}),
|
|
306
300
|
disabled: css({
|
|
307
301
|
color: token('color.text.disabled', '#A5ADBA'),
|
|
308
302
|
}),
|
|
309
303
|
inverse: css({
|
|
310
304
|
color: token('color.text.inverse', '#FFFFFF'),
|
|
311
305
|
}),
|
|
312
|
-
brand: css({
|
|
313
|
-
color: token('color.text.brand', '#0065FF'),
|
|
314
|
-
}),
|
|
315
306
|
selected: css({
|
|
316
307
|
color: token('color.text.selected', '#0052CC'),
|
|
317
308
|
}),
|
|
309
|
+
brand: css({
|
|
310
|
+
color: token('color.text.brand', '#0065FF'),
|
|
311
|
+
}),
|
|
318
312
|
danger: css({
|
|
319
313
|
color: token('color.text.danger', '#DE350B'),
|
|
320
314
|
}),
|
|
@@ -333,6 +327,12 @@ const textColorMap = {
|
|
|
333
327
|
information: css({
|
|
334
328
|
color: token('color.text.information', '#0052CC'),
|
|
335
329
|
}),
|
|
330
|
+
subtlest: css({
|
|
331
|
+
color: token('color.text.subtlest', '#7A869A'),
|
|
332
|
+
}),
|
|
333
|
+
subtle: css({
|
|
334
|
+
color: token('color.text.subtle', '#42526E'),
|
|
335
|
+
}),
|
|
336
336
|
} as const;
|
|
337
337
|
|
|
338
338
|
export type TextColor = keyof typeof textColorMap;
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
12
12
|
'neutral.bold.hovered': 'inverse',
|
|
13
13
|
'neutral.bold.pressed': 'inverse',
|
|
14
|
-
'brand.bold': 'inverse',
|
|
15
|
-
'brand.bold.hovered': 'inverse',
|
|
16
|
-
'brand.bold.pressed': 'inverse',
|
|
17
14
|
'selected.bold': 'inverse',
|
|
18
15
|
'selected.bold.hovered': 'inverse',
|
|
19
16
|
'selected.bold.pressed': 'inverse',
|
|
17
|
+
'brand.bold': 'inverse',
|
|
18
|
+
'brand.bold.hovered': 'inverse',
|
|
19
|
+
'brand.bold.pressed': 'inverse',
|
|
20
20
|
'danger.bold': 'inverse',
|
|
21
21
|
'danger.bold.hovered': 'inverse',
|
|
22
22
|
'danger.bold.pressed': 'inverse',
|