@atlaskit/ds-explorations 2.2.6 → 2.2.7
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 +7 -0
- package/dist/cjs/components/box.partial.js +8 -2
- package/dist/cjs/components/interaction-surface.partial.js +22 -2
- package/dist/cjs/components/text.partial.js +2 -2
- package/dist/cjs/internal/color-map.js +5 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +8 -2
- package/dist/es2019/components/interaction-surface.partial.js +22 -2
- package/dist/es2019/components/text.partial.js +2 -2
- package/dist/es2019/internal/color-map.js +5 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +8 -2
- package/dist/esm/components/interaction-surface.partial.js +22 -2
- package/dist/esm/components/text.partial.js +2 -2
- package/dist/esm/internal/color-map.js +5 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +4 -2
- package/dist/types/components/interaction-surface.partial.d.ts +2 -0
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +2 -2
- package/dist/types/internal/color-map.d.ts +5 -2
- package/dist/types-ts4.5/components/box.partial.d.ts +4 -2
- package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +2 -0
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/components/text.partial.d.ts +2 -2
- package/dist/types-ts4.5/internal/color-map.d.ts +5 -2
- package/examples/01-box.tsx +2 -0
- package/package.json +29 -27
- package/report.api.md +4 -0
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +26 -0
- package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
- package/src/components/__tests__/vr-tests/__snapshots__/text--default.png +0 -0
- package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +5 -0
- package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +5 -0
- package/src/components/box.partial.tsx +8 -2
- package/src/components/interaction-surface.partial.tsx +22 -2
- package/src/components/text.partial.tsx +2 -2
- package/src/internal/color-map.tsx +5 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-basic-example-should-match-production-example-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-alignment-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-color-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-color-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-layer-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-shadow-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-sizes-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-weights-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/box-snapshot-test.tsx +0 -35
- package/src/components/__tests__/visual-regression/text-snapshot-test.tsx +0 -31
- package/tmp/api-report-tmp.d.ts +0 -622
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 2.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`298df94426c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/298df94426c) - Regenerates codegen'd artifacts as a result of introducting new brand background design tokens.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 2.2.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -427,11 +427,11 @@ var paddingInlineMap = {
|
|
|
427
427
|
*/
|
|
428
428
|
/**
|
|
429
429
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
430
|
-
* @codegen <<SignedSource::
|
|
430
|
+
* @codegen <<SignedSource::641490362f94761dab3c48a98b999b7a>>
|
|
431
431
|
* @codegenId colors
|
|
432
432
|
* @codegenCommand yarn codegen-styles
|
|
433
433
|
* @codegenParams ["border", "background", "shadow"]
|
|
434
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
434
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
435
435
|
*/
|
|
436
436
|
var borderColorMap = {
|
|
437
437
|
'color.border': (0, _react2.css)({
|
|
@@ -499,9 +499,15 @@ var backgroundColorMap = {
|
|
|
499
499
|
'selected.bold': (0, _react2.css)({
|
|
500
500
|
backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
|
|
501
501
|
}),
|
|
502
|
+
'brand.subtlest': (0, _react2.css)({
|
|
503
|
+
backgroundColor: "var(--ds-background-brand-subtlest, #B3D4FF)"
|
|
504
|
+
}),
|
|
502
505
|
'brand.bold': (0, _react2.css)({
|
|
503
506
|
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
504
507
|
}),
|
|
508
|
+
'brand.boldest': (0, _react2.css)({
|
|
509
|
+
backgroundColor: "var(--ds-background-brand-boldest, #0747A6)"
|
|
510
|
+
}),
|
|
505
511
|
danger: (0, _react2.css)({
|
|
506
512
|
backgroundColor: "var(--ds-background-danger, #FFEBE6)"
|
|
507
513
|
}),
|
|
@@ -53,11 +53,11 @@ var InteractionSurface = function InteractionSurface(_ref) {
|
|
|
53
53
|
var _default = InteractionSurface;
|
|
54
54
|
/**
|
|
55
55
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
56
|
-
* @codegen <<SignedSource::
|
|
56
|
+
* @codegen <<SignedSource::6705bcce4bc1f3f6b944ca61e2f7afcf>>
|
|
57
57
|
* @codegenId interactions
|
|
58
58
|
* @codegenCommand yarn codegen-styles
|
|
59
59
|
* @codegenParams ["background"]
|
|
60
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
60
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
61
61
|
*/
|
|
62
62
|
exports.default = _default;
|
|
63
63
|
var backgroundActiveColorMap = {
|
|
@@ -96,11 +96,21 @@ var backgroundActiveColorMap = {
|
|
|
96
96
|
backgroundColor: "var(--ds-background-selected-bold-pressed, #09326C)"
|
|
97
97
|
}
|
|
98
98
|
}),
|
|
99
|
+
'brand.subtlest': (0, _react2.css)({
|
|
100
|
+
':active': {
|
|
101
|
+
backgroundColor: "var(--ds-background-brand-subtlest-pressed, #85B8FF)"
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
99
104
|
'brand.bold': (0, _react2.css)({
|
|
100
105
|
':active': {
|
|
101
106
|
backgroundColor: "var(--ds-background-brand-bold-pressed, #09326C)"
|
|
102
107
|
}
|
|
103
108
|
}),
|
|
109
|
+
'brand.boldest': (0, _react2.css)({
|
|
110
|
+
':active': {
|
|
111
|
+
backgroundColor: "var(--ds-background-brand-boldest-pressed, #0055CC)"
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
104
114
|
danger: (0, _react2.css)({
|
|
105
115
|
':active': {
|
|
106
116
|
backgroundColor: "var(--ds-background-danger-pressed, #FF9C8F)"
|
|
@@ -203,11 +213,21 @@ var backgroundHoverColorMap = {
|
|
|
203
213
|
backgroundColor: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
204
214
|
}
|
|
205
215
|
}),
|
|
216
|
+
'brand.subtlest': (0, _react2.css)({
|
|
217
|
+
':hover': {
|
|
218
|
+
backgroundColor: "var(--ds-background-brand-subtlest-hovered, #CCE0FF)"
|
|
219
|
+
}
|
|
220
|
+
}),
|
|
206
221
|
'brand.bold': (0, _react2.css)({
|
|
207
222
|
':hover': {
|
|
208
223
|
backgroundColor: "var(--ds-background-brand-bold-hovered, #0055CC)"
|
|
209
224
|
}
|
|
210
225
|
}),
|
|
226
|
+
'brand.boldest': (0, _react2.css)({
|
|
227
|
+
':hover': {
|
|
228
|
+
backgroundColor: "var(--ds-background-brand-boldest-hovered, #09326C)"
|
|
229
|
+
}
|
|
230
|
+
}),
|
|
211
231
|
danger: (0, _react2.css)({
|
|
212
232
|
':hover': {
|
|
213
233
|
backgroundColor: "var(--ds-background-danger-hovered, #FFD2CC)"
|
|
@@ -209,11 +209,11 @@ var lineHeightMap = {
|
|
|
209
209
|
*/
|
|
210
210
|
/**
|
|
211
211
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
212
|
-
* @codegen <<SignedSource::
|
|
212
|
+
* @codegen <<SignedSource::039c7b7400ed2152388a9501fcdea070>>
|
|
213
213
|
* @codegenId colors
|
|
214
214
|
* @codegenCommand yarn codegen-styles
|
|
215
215
|
* @codegenParams ["text"]
|
|
216
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
216
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
217
217
|
*/
|
|
218
218
|
var textColorMap = {
|
|
219
219
|
'color.text': (0, _react2.css)({
|
|
@@ -9,9 +9,9 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::43134d6abeba44006053eb83fc827e9b>>
|
|
13
13
|
* @codegenCommand yarn codegen-styles
|
|
14
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
14
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
15
15
|
*/
|
|
16
16
|
var _default = {
|
|
17
17
|
'neutral.bold': 'inverse',
|
|
@@ -23,6 +23,9 @@ var _default = {
|
|
|
23
23
|
'brand.bold': 'inverse',
|
|
24
24
|
'brand.bold.hovered': 'inverse',
|
|
25
25
|
'brand.bold.pressed': 'inverse',
|
|
26
|
+
'brand.boldest': 'inverse',
|
|
27
|
+
'brand.boldest.hovered': 'inverse',
|
|
28
|
+
'brand.boldest.pressed': 'inverse',
|
|
26
29
|
'danger.bold': 'inverse',
|
|
27
30
|
'danger.bold.hovered': 'inverse',
|
|
28
31
|
'danger.bold.pressed': 'inverse',
|
package/dist/cjs/version.json
CHANGED
|
@@ -419,11 +419,11 @@ const paddingInlineMap = {
|
|
|
419
419
|
*/
|
|
420
420
|
/**
|
|
421
421
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
422
|
-
* @codegen <<SignedSource::
|
|
422
|
+
* @codegen <<SignedSource::641490362f94761dab3c48a98b999b7a>>
|
|
423
423
|
* @codegenId colors
|
|
424
424
|
* @codegenCommand yarn codegen-styles
|
|
425
425
|
* @codegenParams ["border", "background", "shadow"]
|
|
426
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
426
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
427
427
|
*/
|
|
428
428
|
const borderColorMap = {
|
|
429
429
|
'color.border': css({
|
|
@@ -491,9 +491,15 @@ const backgroundColorMap = {
|
|
|
491
491
|
'selected.bold': css({
|
|
492
492
|
backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
|
|
493
493
|
}),
|
|
494
|
+
'brand.subtlest': css({
|
|
495
|
+
backgroundColor: "var(--ds-background-brand-subtlest, #B3D4FF)"
|
|
496
|
+
}),
|
|
494
497
|
'brand.bold': css({
|
|
495
498
|
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
496
499
|
}),
|
|
500
|
+
'brand.boldest': css({
|
|
501
|
+
backgroundColor: "var(--ds-background-brand-boldest, #0747A6)"
|
|
502
|
+
}),
|
|
497
503
|
danger: css({
|
|
498
504
|
backgroundColor: "var(--ds-background-danger, #FFEBE6)"
|
|
499
505
|
}),
|
|
@@ -48,11 +48,11 @@ export default InteractionSurface;
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
51
|
-
* @codegen <<SignedSource::
|
|
51
|
+
* @codegen <<SignedSource::6705bcce4bc1f3f6b944ca61e2f7afcf>>
|
|
52
52
|
* @codegenId interactions
|
|
53
53
|
* @codegenCommand yarn codegen-styles
|
|
54
54
|
* @codegenParams ["background"]
|
|
55
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
56
56
|
*/
|
|
57
57
|
const backgroundActiveColorMap = {
|
|
58
58
|
input: css({
|
|
@@ -90,11 +90,21 @@ const backgroundActiveColorMap = {
|
|
|
90
90
|
backgroundColor: "var(--ds-background-selected-bold-pressed, #09326C)"
|
|
91
91
|
}
|
|
92
92
|
}),
|
|
93
|
+
'brand.subtlest': css({
|
|
94
|
+
':active': {
|
|
95
|
+
backgroundColor: "var(--ds-background-brand-subtlest-pressed, #85B8FF)"
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
93
98
|
'brand.bold': css({
|
|
94
99
|
':active': {
|
|
95
100
|
backgroundColor: "var(--ds-background-brand-bold-pressed, #09326C)"
|
|
96
101
|
}
|
|
97
102
|
}),
|
|
103
|
+
'brand.boldest': css({
|
|
104
|
+
':active': {
|
|
105
|
+
backgroundColor: "var(--ds-background-brand-boldest-pressed, #0055CC)"
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
98
108
|
danger: css({
|
|
99
109
|
':active': {
|
|
100
110
|
backgroundColor: "var(--ds-background-danger-pressed, #FF9C8F)"
|
|
@@ -197,11 +207,21 @@ const backgroundHoverColorMap = {
|
|
|
197
207
|
backgroundColor: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
198
208
|
}
|
|
199
209
|
}),
|
|
210
|
+
'brand.subtlest': css({
|
|
211
|
+
':hover': {
|
|
212
|
+
backgroundColor: "var(--ds-background-brand-subtlest-hovered, #CCE0FF)"
|
|
213
|
+
}
|
|
214
|
+
}),
|
|
200
215
|
'brand.bold': css({
|
|
201
216
|
':hover': {
|
|
202
217
|
backgroundColor: "var(--ds-background-brand-bold-hovered, #0055CC)"
|
|
203
218
|
}
|
|
204
219
|
}),
|
|
220
|
+
'brand.boldest': css({
|
|
221
|
+
':hover': {
|
|
222
|
+
backgroundColor: "var(--ds-background-brand-boldest-hovered, #09326C)"
|
|
223
|
+
}
|
|
224
|
+
}),
|
|
205
225
|
danger: css({
|
|
206
226
|
':hover': {
|
|
207
227
|
backgroundColor: "var(--ds-background-danger-hovered, #FFD2CC)"
|
|
@@ -199,11 +199,11 @@ const lineHeightMap = {
|
|
|
199
199
|
*/
|
|
200
200
|
/**
|
|
201
201
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
202
|
-
* @codegen <<SignedSource::
|
|
202
|
+
* @codegen <<SignedSource::039c7b7400ed2152388a9501fcdea070>>
|
|
203
203
|
* @codegenId colors
|
|
204
204
|
* @codegenCommand yarn codegen-styles
|
|
205
205
|
* @codegenParams ["text"]
|
|
206
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
206
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
207
207
|
*/
|
|
208
208
|
const textColorMap = {
|
|
209
209
|
'color.text': css({
|
|
@@ -3,9 +3,9 @@
|
|
|
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::43134d6abeba44006053eb83fc827e9b>>
|
|
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::d09e7cd13e24113267155813747b3bd4>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -17,6 +17,9 @@ export default {
|
|
|
17
17
|
'brand.bold': 'inverse',
|
|
18
18
|
'brand.bold.hovered': 'inverse',
|
|
19
19
|
'brand.bold.pressed': 'inverse',
|
|
20
|
+
'brand.boldest': 'inverse',
|
|
21
|
+
'brand.boldest.hovered': 'inverse',
|
|
22
|
+
'brand.boldest.pressed': 'inverse',
|
|
20
23
|
'danger.bold': 'inverse',
|
|
21
24
|
'danger.bold.hovered': 'inverse',
|
|
22
25
|
'danger.bold.pressed': 'inverse',
|
package/dist/es2019/version.json
CHANGED
|
@@ -422,11 +422,11 @@ var paddingInlineMap = {
|
|
|
422
422
|
*/
|
|
423
423
|
/**
|
|
424
424
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
425
|
-
* @codegen <<SignedSource::
|
|
425
|
+
* @codegen <<SignedSource::641490362f94761dab3c48a98b999b7a>>
|
|
426
426
|
* @codegenId colors
|
|
427
427
|
* @codegenCommand yarn codegen-styles
|
|
428
428
|
* @codegenParams ["border", "background", "shadow"]
|
|
429
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
429
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
430
430
|
*/
|
|
431
431
|
var borderColorMap = {
|
|
432
432
|
'color.border': css({
|
|
@@ -494,9 +494,15 @@ var backgroundColorMap = {
|
|
|
494
494
|
'selected.bold': css({
|
|
495
495
|
backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
|
|
496
496
|
}),
|
|
497
|
+
'brand.subtlest': css({
|
|
498
|
+
backgroundColor: "var(--ds-background-brand-subtlest, #B3D4FF)"
|
|
499
|
+
}),
|
|
497
500
|
'brand.bold': css({
|
|
498
501
|
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
499
502
|
}),
|
|
503
|
+
'brand.boldest': css({
|
|
504
|
+
backgroundColor: "var(--ds-background-brand-boldest, #0747A6)"
|
|
505
|
+
}),
|
|
500
506
|
danger: css({
|
|
501
507
|
backgroundColor: "var(--ds-background-danger, #FFEBE6)"
|
|
502
508
|
}),
|
|
@@ -47,11 +47,11 @@ export default InteractionSurface;
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
50
|
-
* @codegen <<SignedSource::
|
|
50
|
+
* @codegen <<SignedSource::6705bcce4bc1f3f6b944ca61e2f7afcf>>
|
|
51
51
|
* @codegenId interactions
|
|
52
52
|
* @codegenCommand yarn codegen-styles
|
|
53
53
|
* @codegenParams ["background"]
|
|
54
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
54
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
55
55
|
*/
|
|
56
56
|
var backgroundActiveColorMap = {
|
|
57
57
|
input: css({
|
|
@@ -89,11 +89,21 @@ var backgroundActiveColorMap = {
|
|
|
89
89
|
backgroundColor: "var(--ds-background-selected-bold-pressed, #09326C)"
|
|
90
90
|
}
|
|
91
91
|
}),
|
|
92
|
+
'brand.subtlest': css({
|
|
93
|
+
':active': {
|
|
94
|
+
backgroundColor: "var(--ds-background-brand-subtlest-pressed, #85B8FF)"
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
92
97
|
'brand.bold': css({
|
|
93
98
|
':active': {
|
|
94
99
|
backgroundColor: "var(--ds-background-brand-bold-pressed, #09326C)"
|
|
95
100
|
}
|
|
96
101
|
}),
|
|
102
|
+
'brand.boldest': css({
|
|
103
|
+
':active': {
|
|
104
|
+
backgroundColor: "var(--ds-background-brand-boldest-pressed, #0055CC)"
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
97
107
|
danger: css({
|
|
98
108
|
':active': {
|
|
99
109
|
backgroundColor: "var(--ds-background-danger-pressed, #FF9C8F)"
|
|
@@ -196,11 +206,21 @@ var backgroundHoverColorMap = {
|
|
|
196
206
|
backgroundColor: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
197
207
|
}
|
|
198
208
|
}),
|
|
209
|
+
'brand.subtlest': css({
|
|
210
|
+
':hover': {
|
|
211
|
+
backgroundColor: "var(--ds-background-brand-subtlest-hovered, #CCE0FF)"
|
|
212
|
+
}
|
|
213
|
+
}),
|
|
199
214
|
'brand.bold': css({
|
|
200
215
|
':hover': {
|
|
201
216
|
backgroundColor: "var(--ds-background-brand-bold-hovered, #0055CC)"
|
|
202
217
|
}
|
|
203
218
|
}),
|
|
219
|
+
'brand.boldest': css({
|
|
220
|
+
':hover': {
|
|
221
|
+
backgroundColor: "var(--ds-background-brand-boldest-hovered, #09326C)"
|
|
222
|
+
}
|
|
223
|
+
}),
|
|
204
224
|
danger: css({
|
|
205
225
|
':hover': {
|
|
206
226
|
backgroundColor: "var(--ds-background-danger-hovered, #FFD2CC)"
|
|
@@ -202,11 +202,11 @@ var lineHeightMap = {
|
|
|
202
202
|
*/
|
|
203
203
|
/**
|
|
204
204
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
205
|
-
* @codegen <<SignedSource::
|
|
205
|
+
* @codegen <<SignedSource::039c7b7400ed2152388a9501fcdea070>>
|
|
206
206
|
* @codegenId colors
|
|
207
207
|
* @codegenCommand yarn codegen-styles
|
|
208
208
|
* @codegenParams ["text"]
|
|
209
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
209
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
210
210
|
*/
|
|
211
211
|
var textColorMap = {
|
|
212
212
|
'color.text': css({
|
|
@@ -3,9 +3,9 @@
|
|
|
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::43134d6abeba44006053eb83fc827e9b>>
|
|
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::d09e7cd13e24113267155813747b3bd4>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -17,6 +17,9 @@ export default {
|
|
|
17
17
|
'brand.bold': 'inverse',
|
|
18
18
|
'brand.bold.hovered': 'inverse',
|
|
19
19
|
'brand.bold.pressed': 'inverse',
|
|
20
|
+
'brand.boldest': 'inverse',
|
|
21
|
+
'brand.boldest.hovered': 'inverse',
|
|
22
|
+
'brand.boldest.pressed': 'inverse',
|
|
20
23
|
'danger.bold': 'inverse',
|
|
21
24
|
'danger.bold.hovered': 'inverse',
|
|
22
25
|
'danger.bold.pressed': 'inverse',
|
package/dist/esm/version.json
CHANGED
|
@@ -291,11 +291,11 @@ export type PaddingInline = keyof typeof paddingInlineMap;
|
|
|
291
291
|
*/
|
|
292
292
|
/**
|
|
293
293
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
294
|
-
* @codegen <<SignedSource::
|
|
294
|
+
* @codegen <<SignedSource::641490362f94761dab3c48a98b999b7a>>
|
|
295
295
|
* @codegenId colors
|
|
296
296
|
* @codegenCommand yarn codegen-styles
|
|
297
297
|
* @codegenParams ["border", "background", "shadow"]
|
|
298
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
298
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
299
299
|
*/
|
|
300
300
|
declare const borderColorMap: {
|
|
301
301
|
readonly 'color.border': import("@emotion/react").SerializedStyles;
|
|
@@ -322,7 +322,9 @@ declare const backgroundColorMap: {
|
|
|
322
322
|
readonly 'neutral.bold': import("@emotion/react").SerializedStyles;
|
|
323
323
|
readonly selected: import("@emotion/react").SerializedStyles;
|
|
324
324
|
readonly 'selected.bold': import("@emotion/react").SerializedStyles;
|
|
325
|
+
readonly 'brand.subtlest': import("@emotion/react").SerializedStyles;
|
|
325
326
|
readonly 'brand.bold': import("@emotion/react").SerializedStyles;
|
|
327
|
+
readonly 'brand.boldest': import("@emotion/react").SerializedStyles;
|
|
326
328
|
readonly danger: import("@emotion/react").SerializedStyles;
|
|
327
329
|
readonly 'danger.bold': import("@emotion/react").SerializedStyles;
|
|
328
330
|
readonly warning: import("@emotion/react").SerializedStyles;
|
|
@@ -28,7 +28,9 @@ declare const backgroundHoverColorMap: {
|
|
|
28
28
|
'neutral.bold': import("@emotion/react").SerializedStyles;
|
|
29
29
|
selected: import("@emotion/react").SerializedStyles;
|
|
30
30
|
'selected.bold': import("@emotion/react").SerializedStyles;
|
|
31
|
+
'brand.subtlest': import("@emotion/react").SerializedStyles;
|
|
31
32
|
'brand.bold': import("@emotion/react").SerializedStyles;
|
|
33
|
+
'brand.boldest': import("@emotion/react").SerializedStyles;
|
|
32
34
|
danger: import("@emotion/react").SerializedStyles;
|
|
33
35
|
'danger.bold': import("@emotion/react").SerializedStyles;
|
|
34
36
|
warning: import("@emotion/react").SerializedStyles;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* A surface context provides context information on the current background (if set).
|
|
6
6
|
*/
|
|
7
|
-
export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
|
|
7
|
+
export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.subtlest" | "brand.bold" | "brand.boldest" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
|
|
8
8
|
/**
|
|
9
9
|
* __useSurface__
|
|
10
10
|
*
|
|
@@ -12,4 +12,4 @@ export declare const SurfaceContext: import("react").Context<"color.blanket" | "
|
|
|
12
12
|
*
|
|
13
13
|
* @see SurfaceContext
|
|
14
14
|
*/
|
|
15
|
-
export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
|
|
15
|
+
export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.subtlest" | "brand.bold" | "brand.boldest" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
|
|
@@ -124,11 +124,11 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
124
124
|
*/
|
|
125
125
|
/**
|
|
126
126
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
127
|
-
* @codegen <<SignedSource::
|
|
127
|
+
* @codegen <<SignedSource::039c7b7400ed2152388a9501fcdea070>>
|
|
128
128
|
* @codegenId colors
|
|
129
129
|
* @codegenCommand yarn codegen-styles
|
|
130
130
|
* @codegenParams ["text"]
|
|
131
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
131
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
132
132
|
*/
|
|
133
133
|
declare const textColorMap: {
|
|
134
134
|
readonly 'color.text': import("@emotion/react").SerializedStyles;
|
|
@@ -3,9 +3,9 @@
|
|
|
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::43134d6abeba44006053eb83fc827e9b>>
|
|
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::d09e7cd13e24113267155813747b3bd4>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
|
@@ -17,6 +17,9 @@ declare const _default: {
|
|
|
17
17
|
readonly 'brand.bold': "inverse";
|
|
18
18
|
readonly 'brand.bold.hovered': "inverse";
|
|
19
19
|
readonly 'brand.bold.pressed': "inverse";
|
|
20
|
+
readonly 'brand.boldest': "inverse";
|
|
21
|
+
readonly 'brand.boldest.hovered': "inverse";
|
|
22
|
+
readonly 'brand.boldest.pressed': "inverse";
|
|
20
23
|
readonly 'danger.bold': "inverse";
|
|
21
24
|
readonly 'danger.bold.hovered': "inverse";
|
|
22
25
|
readonly 'danger.bold.pressed': "inverse";
|
|
@@ -291,11 +291,11 @@ export type PaddingInline = keyof typeof paddingInlineMap;
|
|
|
291
291
|
*/
|
|
292
292
|
/**
|
|
293
293
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
294
|
-
* @codegen <<SignedSource::
|
|
294
|
+
* @codegen <<SignedSource::641490362f94761dab3c48a98b999b7a>>
|
|
295
295
|
* @codegenId colors
|
|
296
296
|
* @codegenCommand yarn codegen-styles
|
|
297
297
|
* @codegenParams ["border", "background", "shadow"]
|
|
298
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
298
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
299
299
|
*/
|
|
300
300
|
declare const borderColorMap: {
|
|
301
301
|
readonly 'color.border': import("@emotion/react").SerializedStyles;
|
|
@@ -322,7 +322,9 @@ declare const backgroundColorMap: {
|
|
|
322
322
|
readonly 'neutral.bold': import("@emotion/react").SerializedStyles;
|
|
323
323
|
readonly selected: import("@emotion/react").SerializedStyles;
|
|
324
324
|
readonly 'selected.bold': import("@emotion/react").SerializedStyles;
|
|
325
|
+
readonly 'brand.subtlest': import("@emotion/react").SerializedStyles;
|
|
325
326
|
readonly 'brand.bold': import("@emotion/react").SerializedStyles;
|
|
327
|
+
readonly 'brand.boldest': import("@emotion/react").SerializedStyles;
|
|
326
328
|
readonly danger: import("@emotion/react").SerializedStyles;
|
|
327
329
|
readonly 'danger.bold': import("@emotion/react").SerializedStyles;
|
|
328
330
|
readonly warning: import("@emotion/react").SerializedStyles;
|
|
@@ -28,7 +28,9 @@ declare const backgroundHoverColorMap: {
|
|
|
28
28
|
'neutral.bold': import("@emotion/react").SerializedStyles;
|
|
29
29
|
selected: import("@emotion/react").SerializedStyles;
|
|
30
30
|
'selected.bold': import("@emotion/react").SerializedStyles;
|
|
31
|
+
'brand.subtlest': import("@emotion/react").SerializedStyles;
|
|
31
32
|
'brand.bold': import("@emotion/react").SerializedStyles;
|
|
33
|
+
'brand.boldest': import("@emotion/react").SerializedStyles;
|
|
32
34
|
danger: import("@emotion/react").SerializedStyles;
|
|
33
35
|
'danger.bold': import("@emotion/react").SerializedStyles;
|
|
34
36
|
warning: import("@emotion/react").SerializedStyles;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* A surface context provides context information on the current background (if set).
|
|
6
6
|
*/
|
|
7
|
-
export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
|
|
7
|
+
export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.subtlest" | "brand.bold" | "brand.boldest" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
|
|
8
8
|
/**
|
|
9
9
|
* __useSurface__
|
|
10
10
|
*
|
|
@@ -12,4 +12,4 @@ export declare const SurfaceContext: import("react").Context<"color.blanket" | "
|
|
|
12
12
|
*
|
|
13
13
|
* @see SurfaceContext
|
|
14
14
|
*/
|
|
15
|
-
export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
|
|
15
|
+
export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.subtlest" | "brand.bold" | "brand.boldest" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
|
|
@@ -129,11 +129,11 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
129
129
|
*/
|
|
130
130
|
/**
|
|
131
131
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
132
|
-
* @codegen <<SignedSource::
|
|
132
|
+
* @codegen <<SignedSource::039c7b7400ed2152388a9501fcdea070>>
|
|
133
133
|
* @codegenId colors
|
|
134
134
|
* @codegenCommand yarn codegen-styles
|
|
135
135
|
* @codegenParams ["text"]
|
|
136
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
136
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::d09e7cd13e24113267155813747b3bd4>>
|
|
137
137
|
*/
|
|
138
138
|
declare const textColorMap: {
|
|
139
139
|
readonly 'color.text': import("@emotion/react").SerializedStyles;
|
|
@@ -3,9 +3,9 @@
|
|
|
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::43134d6abeba44006053eb83fc827e9b>>
|
|
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::d09e7cd13e24113267155813747b3bd4>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
|
@@ -17,6 +17,9 @@ declare const _default: {
|
|
|
17
17
|
readonly 'brand.bold': "inverse";
|
|
18
18
|
readonly 'brand.bold.hovered': "inverse";
|
|
19
19
|
readonly 'brand.bold.pressed': "inverse";
|
|
20
|
+
readonly 'brand.boldest': "inverse";
|
|
21
|
+
readonly 'brand.boldest.hovered': "inverse";
|
|
22
|
+
readonly 'brand.boldest.pressed': "inverse";
|
|
20
23
|
readonly 'danger.bold': "inverse";
|
|
21
24
|
readonly 'danger.bold.hovered': "inverse";
|
|
22
25
|
readonly 'danger.bold.pressed': "inverse";
|
package/examples/01-box.tsx
CHANGED
|
@@ -153,7 +153,9 @@ export default () => {
|
|
|
153
153
|
padding="space.400"
|
|
154
154
|
position="absolute"
|
|
155
155
|
UNSAFE_style={{
|
|
156
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
156
157
|
top: index * 64,
|
|
158
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
157
159
|
left: index * 64,
|
|
158
160
|
}}
|
|
159
161
|
>
|