@atlaskit/onboarding 10.2.5 → 10.3.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 +32 -0
- package/dist/cjs/components/index.js +4 -4
- package/dist/cjs/components/spotlight-card.js +3 -3
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/components/spotlight-manager.js +1 -1
- package/dist/cjs/components/theme.js +55 -181
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/styled/blanket.js +2 -2
- package/dist/cjs/styled/dialog.js +1 -1
- package/dist/cjs/styled/modal.js +1 -1
- package/dist/cjs/styled/target.js +15 -6
- package/dist/cjs/utils/use-element-box.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/spotlight-card.js +3 -4
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/theme.js +54 -180
- package/dist/es2019/styled/blanket.js +2 -2
- package/dist/es2019/styled/target.js +10 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/spotlight-card.js +3 -3
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/theme.js +54 -180
- package/dist/esm/styled/blanket.js +2 -2
- package/dist/esm/styled/target.js +13 -5
- package/dist/esm/version.json +1 -1
- package/dist/types/components/modal.d.ts +2 -2
- package/dist/types/components/spotlight-manager.d.ts +2 -2
- package/dist/types/styled/target.d.ts +3 -0
- package/package.json +10 -7
|
@@ -2,234 +2,108 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
2
2
|
const spotlightTheme = {
|
|
3
3
|
default: {
|
|
4
4
|
background: {
|
|
5
|
-
default: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
dark: colors.P200
|
|
12
|
-
},
|
|
13
|
-
active: {
|
|
14
|
-
light: colors.P500,
|
|
15
|
-
dark: colors.P500
|
|
16
|
-
},
|
|
17
|
-
disabled: {
|
|
18
|
-
light: colors.P400,
|
|
19
|
-
dark: colors.P400
|
|
20
|
-
},
|
|
21
|
-
selected: {
|
|
22
|
-
light: colors.R500,
|
|
23
|
-
dark: colors.R500
|
|
24
|
-
},
|
|
25
|
-
focus: {
|
|
26
|
-
light: colors.P400,
|
|
27
|
-
dark: colors.P400
|
|
28
|
-
}
|
|
5
|
+
default: `var(--ds-background-subtleNeutral-resting, ${colors.P400})`,
|
|
6
|
+
hover: `var(--ds-background-subtleNeutral-hover, ${colors.P200})`,
|
|
7
|
+
active: `var(--ds-background-subtleNeutral-pressed, ${colors.P500})`,
|
|
8
|
+
disabled: `var(--ds-background-disabled, ${colors.P400})`,
|
|
9
|
+
selected: `var(--ds-background-subtleNeutral-pressed, ${colors.R500})`,
|
|
10
|
+
focus: `var(--ds-background-subtleNeutral-resting, ${colors.P400})`
|
|
29
11
|
},
|
|
30
12
|
boxShadow: {
|
|
31
|
-
focus: {
|
|
32
|
-
light: `${colors.P100} 0 0 0 2px`,
|
|
33
|
-
dark: `${colors.P100} 0 0 0 2px`
|
|
34
|
-
}
|
|
13
|
+
focus: `0 0 0 2px ${`var(--ds-iconBorder-discovery, ${colors.P100})`}`
|
|
35
14
|
},
|
|
36
15
|
color: {
|
|
37
|
-
default: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
hover: {
|
|
42
|
-
light: colors.N0,
|
|
43
|
-
dark: colors.N0
|
|
44
|
-
},
|
|
45
|
-
active: {
|
|
46
|
-
light: colors.N0,
|
|
47
|
-
dark: colors.N0
|
|
48
|
-
},
|
|
16
|
+
default: `var(--ds-text-onBold, ${colors.N0})`,
|
|
17
|
+
hover: `var(--ds-text-onBold, ${colors.N0})`,
|
|
18
|
+
active: `var(--ds-text-onBold, ${colors.N0})`,
|
|
49
19
|
disabled: {
|
|
50
|
-
light: colors.N0
|
|
51
|
-
dark: colors.DN30
|
|
52
|
-
},
|
|
53
|
-
selected: {
|
|
54
|
-
light: colors.N0,
|
|
55
|
-
dark: colors.N0
|
|
20
|
+
light: `var(--ds-text-disabled, ${colors.N0})`,
|
|
21
|
+
dark: `var(--ds-text-disabled, ${colors.DN30})`
|
|
56
22
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
dark: colors.N0
|
|
60
|
-
}
|
|
23
|
+
selected: `var(--ds-text-onBold, ${colors.N0})`,
|
|
24
|
+
focus: `var(--ds-text-onBold, ${colors.N0})`
|
|
61
25
|
},
|
|
62
26
|
outline: {
|
|
63
|
-
focus:
|
|
64
|
-
light: 'none',
|
|
65
|
-
dark: 'none'
|
|
66
|
-
}
|
|
27
|
+
focus: 'none'
|
|
67
28
|
}
|
|
68
29
|
},
|
|
69
30
|
subtle: {
|
|
70
31
|
background: {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
hover: {
|
|
76
|
-
light: colors.P200,
|
|
77
|
-
dark: colors.P200
|
|
78
|
-
},
|
|
79
|
-
active: {
|
|
80
|
-
light: colors.P500,
|
|
81
|
-
dark: colors.P500
|
|
82
|
-
},
|
|
83
|
-
disabled: {
|
|
84
|
-
light: 'none',
|
|
85
|
-
dark: 'none'
|
|
86
|
-
},
|
|
32
|
+
default: 'none',
|
|
33
|
+
hover: `var(--ds-background-subtleNeutral-hover, ${colors.P200})`,
|
|
34
|
+
active: `var(--ds-background-subtleNeutral-pressed, ${colors.P500})`,
|
|
35
|
+
disabled: 'none',
|
|
87
36
|
selected: {
|
|
88
|
-
light: colors.N700
|
|
89
|
-
dark: colors.DN0
|
|
37
|
+
light: `var(--ds-background-selected-hover, ${colors.N700})`,
|
|
38
|
+
dark: `var(--ds-background-selected-hover, ${colors.DN0})`
|
|
90
39
|
},
|
|
91
40
|
focusSelected: {
|
|
92
|
-
light: colors.N700
|
|
93
|
-
dark: colors.DN0
|
|
41
|
+
light: `var(--ds-background-selected-hover, ${colors.N700})`,
|
|
42
|
+
dark: `var(--ds-background-selected-hover, ${colors.DN0})`
|
|
94
43
|
}
|
|
95
44
|
},
|
|
96
45
|
boxShadow: {
|
|
97
|
-
focus: {
|
|
98
|
-
light: `${colors.P100} 0 0 0 2px`,
|
|
99
|
-
dark: `${colors.P100} 0 0 0 2px`
|
|
100
|
-
}
|
|
46
|
+
focus: `0 0 0 2px ${`var(--ds-iconBorder-discovery, ${colors.P100})`}`
|
|
101
47
|
},
|
|
102
48
|
color: {
|
|
103
|
-
default: {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
dark: colors.N0
|
|
110
|
-
},
|
|
111
|
-
active: {
|
|
112
|
-
light: colors.N0,
|
|
113
|
-
dark: colors.N0
|
|
114
|
-
},
|
|
115
|
-
disabled: {
|
|
116
|
-
light: colors.N0,
|
|
117
|
-
dark: colors.N0
|
|
118
|
-
},
|
|
119
|
-
selected: {
|
|
120
|
-
light: colors.N0,
|
|
121
|
-
dark: colors.N0
|
|
122
|
-
},
|
|
123
|
-
focus: {
|
|
124
|
-
light: colors.N0,
|
|
125
|
-
dark: colors.N0
|
|
126
|
-
}
|
|
49
|
+
default: `var(--ds-text-onBold, ${colors.N0})`,
|
|
50
|
+
hover: `var(--ds-text-onBold, ${colors.N0})`,
|
|
51
|
+
active: `var(--ds-text-onBold, ${colors.N0})`,
|
|
52
|
+
disabled: `var(--ds-text-disabled, ${colors.N0})`,
|
|
53
|
+
selected: `var(--ds-text-onBold, ${colors.N0})`,
|
|
54
|
+
focus: `var(--ds-text-onBold, ${colors.N0})`
|
|
127
55
|
},
|
|
128
56
|
outline: {
|
|
129
|
-
focus:
|
|
130
|
-
light: 'none',
|
|
131
|
-
dark: 'none'
|
|
132
|
-
}
|
|
57
|
+
focus: 'none'
|
|
133
58
|
}
|
|
134
59
|
},
|
|
135
60
|
'subtle-link': {
|
|
136
61
|
textDecoration: {
|
|
137
|
-
hover: {
|
|
138
|
-
light: `underline ${colors.P75}`,
|
|
139
|
-
dark: `underline ${colors.P75}`
|
|
140
|
-
}
|
|
62
|
+
hover: `underline ${`var(--ds-text-discovery, ${colors.P75})`}`
|
|
141
63
|
},
|
|
142
64
|
textDecorationLine: {
|
|
143
|
-
active:
|
|
144
|
-
light: 'none',
|
|
145
|
-
dark: 'none'
|
|
146
|
-
}
|
|
65
|
+
active: 'none'
|
|
147
66
|
},
|
|
148
67
|
boxShadow: {
|
|
149
|
-
focus: {
|
|
150
|
-
light: `${colors.P100} 0 0 0 2px`,
|
|
151
|
-
dark: `${colors.P100} 0 0 0 2px`
|
|
152
|
-
}
|
|
68
|
+
focus: `0 0 0 2px ${`var(--ds-iconBorder-discovery, ${colors.P100})`}`
|
|
153
69
|
},
|
|
154
70
|
color: {
|
|
155
|
-
default: {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
dark: colors.P75
|
|
162
|
-
},
|
|
163
|
-
active: {
|
|
164
|
-
light: colors.P100,
|
|
165
|
-
dark: colors.P100
|
|
166
|
-
},
|
|
167
|
-
disabled: {
|
|
168
|
-
light: colors.P500,
|
|
169
|
-
dark: colors.P500
|
|
170
|
-
},
|
|
171
|
-
selected: {
|
|
172
|
-
light: colors.N0,
|
|
173
|
-
dark: colors.N0
|
|
174
|
-
},
|
|
175
|
-
focus: {
|
|
176
|
-
light: colors.N0,
|
|
177
|
-
dark: colors.N0
|
|
178
|
-
}
|
|
71
|
+
default: `var(--ds-text-onBold, ${colors.N0})`,
|
|
72
|
+
hover: `var(--ds-text-onBold, ${colors.P75})`,
|
|
73
|
+
active: `var(--ds-text-onBold, ${colors.P100})`,
|
|
74
|
+
disabled: `var(--ds-text-discovery, ${colors.P500})`,
|
|
75
|
+
selected: `var(--ds-text-selected, ${colors.N0})`,
|
|
76
|
+
focus: `var(--ds-text-onBold, ${colors.N0})`
|
|
179
77
|
}
|
|
180
78
|
}
|
|
181
79
|
};
|
|
182
80
|
const modalTheme = {
|
|
183
81
|
primary: {
|
|
184
82
|
background: {
|
|
185
|
-
default: {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
hover: {
|
|
190
|
-
light: colors.P200,
|
|
191
|
-
dark: colors.P200
|
|
192
|
-
},
|
|
193
|
-
active: {
|
|
194
|
-
light: colors.P500,
|
|
195
|
-
dark: colors.P500
|
|
196
|
-
},
|
|
83
|
+
default: `var(--ds-background-boldDiscovery-resting, ${colors.P400})`,
|
|
84
|
+
hover: `var(--ds-background-boldDiscovery-hover, ${colors.P200})`,
|
|
85
|
+
active: `var(--ds-background-boldDiscovery-pressed, ${colors.P500})`,
|
|
197
86
|
disabled: {
|
|
198
|
-
light: colors.N30
|
|
199
|
-
dark: colors.DN70
|
|
200
|
-
},
|
|
201
|
-
selected: {
|
|
202
|
-
light: colors.R500,
|
|
203
|
-
dark: colors.R500
|
|
87
|
+
light: `var(--ds-background-disabled, ${colors.N30})`,
|
|
88
|
+
dark: `var(--ds-background-disabled, ${colors.DN70})`
|
|
204
89
|
},
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
dark: colors.P400
|
|
208
|
-
}
|
|
90
|
+
selected: `var(--ds-background-selected-hover, ${colors.R500})`,
|
|
91
|
+
focus: `var(--ds-background-boldDiscovery-hover, ${colors.P400})`
|
|
209
92
|
},
|
|
210
93
|
boxShadow: {
|
|
211
94
|
focus: {
|
|
212
|
-
light:
|
|
213
|
-
dark:
|
|
95
|
+
light: `0 0 0 2px ${`var(--ds-iconBorder-discovery, ${colors.P100})`}`,
|
|
96
|
+
dark: `0 0 0 2px ${`var(--ds-iconBorder-discovery, ${colors.P100})`}`
|
|
214
97
|
}
|
|
215
98
|
},
|
|
216
99
|
color: {
|
|
217
|
-
default: {
|
|
218
|
-
light: colors.N0,
|
|
219
|
-
dark: colors.N0
|
|
220
|
-
},
|
|
100
|
+
default: `var(--ds-text-onBold, ${colors.N0})`,
|
|
221
101
|
disabled: {
|
|
222
|
-
light: colors.N0
|
|
223
|
-
dark: colors.DN30
|
|
102
|
+
light: `var(--ds-text-disabled, ${colors.N0})`,
|
|
103
|
+
dark: `var(--ds-text-disabled, ${colors.DN30})`
|
|
224
104
|
},
|
|
225
|
-
selected: {
|
|
226
|
-
|
|
227
|
-
dark: colors.N0
|
|
228
|
-
},
|
|
229
|
-
focus: {
|
|
230
|
-
light: colors.N0,
|
|
231
|
-
dark: colors.N0
|
|
232
|
-
}
|
|
105
|
+
selected: `var(--ds-text-selected, ${colors.N0})`,
|
|
106
|
+
focus: `var(--ds-text-onBold, ${colors.N0})`
|
|
233
107
|
}
|
|
234
108
|
}
|
|
235
109
|
};
|
|
@@ -4,8 +4,8 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
|
4
4
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
5
5
|
import { layers } from '@atlaskit/theme/constants';
|
|
6
6
|
const backgroundColor = themed({
|
|
7
|
-
light: N100A
|
|
8
|
-
dark: DN90A
|
|
7
|
+
light: `var(--ds-background-blanket, ${N100A})`,
|
|
8
|
+
dark: `var(--ds-background-blanket, ${DN90A})`
|
|
9
9
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
10
10
|
// to body instead of nearest stacking context (Portal in our case).
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@ import { P300 } from '@atlaskit/theme/colors';
|
|
|
6
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
7
|
// NOTE:
|
|
8
8
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
9
|
-
const baseShadow = `0 0 0 2px ${P300}`;
|
|
9
|
+
const baseShadow = `var(--ds-overlay, ${`0 0 0 2px ${P300}`})`;
|
|
10
10
|
const easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
11
11
|
const pulseKeyframes = keyframes({
|
|
12
12
|
'0%, 33%': {
|
|
@@ -15,7 +15,9 @@ const pulseKeyframes = keyframes({
|
|
|
15
15
|
'66%, 100%': {
|
|
16
16
|
boxShadow: `${baseShadow}, 0 0 0 10px rgba(101, 84, 192, 0.01)`
|
|
17
17
|
}
|
|
18
|
-
});
|
|
18
|
+
}); // This is needed for unit tests
|
|
19
|
+
|
|
20
|
+
export const pulseKeyframesName = pulseKeyframes.name;
|
|
19
21
|
const animationStyles = css({
|
|
20
22
|
animation: `${pulseKeyframes} 3000ms ${easing} infinite`
|
|
21
23
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
@@ -30,9 +32,11 @@ const Base = ({
|
|
|
30
32
|
bgColor,
|
|
31
33
|
radius,
|
|
32
34
|
style,
|
|
35
|
+
testId,
|
|
33
36
|
...props
|
|
34
37
|
}) => jsx("div", _extends({
|
|
35
38
|
css: baseStyles,
|
|
39
|
+
"data-testid": testId,
|
|
36
40
|
style: { ...style,
|
|
37
41
|
backgroundColor: bgColor,
|
|
38
42
|
borderRadius: radius ? `${radius}px` : undefined
|
|
@@ -86,7 +90,10 @@ export const TargetOverlay = props => jsx("div", _extends({}, props, {
|
|
|
86
90
|
|
|
87
91
|
export const Pulse = ({
|
|
88
92
|
children,
|
|
93
|
+
pulse = true,
|
|
94
|
+
testId,
|
|
89
95
|
...props
|
|
90
96
|
}) => jsx(Base, _extends({}, props, {
|
|
91
|
-
css: animationStyles
|
|
97
|
+
css: [pulse && animationStyles],
|
|
98
|
+
testId: testId
|
|
92
99
|
}), children);
|
package/dist/es2019/version.json
CHANGED
|
@@ -68,10 +68,10 @@ var SpotlightCard = /*#__PURE__*/function (_React$Component) {
|
|
|
68
68
|
return _theme(function () {
|
|
69
69
|
return _objectSpread(_objectSpread({}, others), {}, {
|
|
70
70
|
container: _objectSpread({
|
|
71
|
-
background: P300,
|
|
72
|
-
color: N0,
|
|
71
|
+
background: "var(--ds-background-boldDiscovery-resting, ".concat(P300, ")"),
|
|
72
|
+
color: "var(--ds-text-onBold, ".concat(N0, ")"),
|
|
73
73
|
width: "".concat(Math.min(Math.max(width, 160), 600), "px"),
|
|
74
|
-
boxShadow: isFlat ? undefined : "0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A)
|
|
74
|
+
boxShadow: isFlat ? undefined : "var(--ds-card, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")
|
|
75
75
|
}, container)
|
|
76
76
|
});
|
|
77
77
|
}, {});
|
|
@@ -23,7 +23,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
23
23
|
import SpotlightCard from './spotlight-card';
|
|
24
24
|
import ValueChanged from './value-changed';
|
|
25
25
|
var packageName = "@atlaskit/onboarding";
|
|
26
|
-
var packageVersion = "10.2
|
|
26
|
+
var packageVersion = "10.3.2";
|
|
27
27
|
|
|
28
28
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
29
29
|
_inherits(SpotlightDialog, _Component);
|
|
@@ -10,234 +10,108 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
10
10
|
var spotlightTheme = {
|
|
11
11
|
default: {
|
|
12
12
|
background: {
|
|
13
|
-
default:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
dark: colors.P200
|
|
20
|
-
},
|
|
21
|
-
active: {
|
|
22
|
-
light: colors.P500,
|
|
23
|
-
dark: colors.P500
|
|
24
|
-
},
|
|
25
|
-
disabled: {
|
|
26
|
-
light: colors.P400,
|
|
27
|
-
dark: colors.P400
|
|
28
|
-
},
|
|
29
|
-
selected: {
|
|
30
|
-
light: colors.R500,
|
|
31
|
-
dark: colors.R500
|
|
32
|
-
},
|
|
33
|
-
focus: {
|
|
34
|
-
light: colors.P400,
|
|
35
|
-
dark: colors.P400
|
|
36
|
-
}
|
|
13
|
+
default: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")"),
|
|
14
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
15
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
16
|
+
disabled: "var(--ds-background-disabled, ".concat(colors.P400, ")"),
|
|
17
|
+
selected: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.R500, ")"),
|
|
18
|
+
focus: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")")
|
|
37
19
|
},
|
|
38
20
|
boxShadow: {
|
|
39
|
-
focus:
|
|
40
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
41
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
42
|
-
}
|
|
21
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
43
22
|
},
|
|
44
23
|
color: {
|
|
45
|
-
default:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
hover: {
|
|
50
|
-
light: colors.N0,
|
|
51
|
-
dark: colors.N0
|
|
52
|
-
},
|
|
53
|
-
active: {
|
|
54
|
-
light: colors.N0,
|
|
55
|
-
dark: colors.N0
|
|
56
|
-
},
|
|
24
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
25
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
26
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
57
27
|
disabled: {
|
|
58
|
-
light: colors.N0,
|
|
59
|
-
dark: colors.DN30
|
|
60
|
-
},
|
|
61
|
-
selected: {
|
|
62
|
-
light: colors.N0,
|
|
63
|
-
dark: colors.N0
|
|
28
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
29
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
64
30
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
dark: colors.N0
|
|
68
|
-
}
|
|
31
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
32
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
69
33
|
},
|
|
70
34
|
outline: {
|
|
71
|
-
focus:
|
|
72
|
-
light: 'none',
|
|
73
|
-
dark: 'none'
|
|
74
|
-
}
|
|
35
|
+
focus: 'none'
|
|
75
36
|
}
|
|
76
37
|
},
|
|
77
38
|
subtle: {
|
|
78
39
|
background: {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hover: {
|
|
84
|
-
light: colors.P200,
|
|
85
|
-
dark: colors.P200
|
|
86
|
-
},
|
|
87
|
-
active: {
|
|
88
|
-
light: colors.P500,
|
|
89
|
-
dark: colors.P500
|
|
90
|
-
},
|
|
91
|
-
disabled: {
|
|
92
|
-
light: 'none',
|
|
93
|
-
dark: 'none'
|
|
94
|
-
},
|
|
40
|
+
default: 'none',
|
|
41
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
42
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
43
|
+
disabled: 'none',
|
|
95
44
|
selected: {
|
|
96
|
-
light: colors.N700,
|
|
97
|
-
dark: colors.DN0
|
|
45
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
46
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
98
47
|
},
|
|
99
48
|
focusSelected: {
|
|
100
|
-
light: colors.N700,
|
|
101
|
-
dark: colors.DN0
|
|
49
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
50
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
102
51
|
}
|
|
103
52
|
},
|
|
104
53
|
boxShadow: {
|
|
105
|
-
focus:
|
|
106
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
107
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
108
|
-
}
|
|
54
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
109
55
|
},
|
|
110
56
|
color: {
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
dark: colors.N0
|
|
118
|
-
},
|
|
119
|
-
active: {
|
|
120
|
-
light: colors.N0,
|
|
121
|
-
dark: colors.N0
|
|
122
|
-
},
|
|
123
|
-
disabled: {
|
|
124
|
-
light: colors.N0,
|
|
125
|
-
dark: colors.N0
|
|
126
|
-
},
|
|
127
|
-
selected: {
|
|
128
|
-
light: colors.N0,
|
|
129
|
-
dark: colors.N0
|
|
130
|
-
},
|
|
131
|
-
focus: {
|
|
132
|
-
light: colors.N0,
|
|
133
|
-
dark: colors.N0
|
|
134
|
-
}
|
|
57
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
58
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
59
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
60
|
+
disabled: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
61
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
62
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
135
63
|
},
|
|
136
64
|
outline: {
|
|
137
|
-
focus:
|
|
138
|
-
light: 'none',
|
|
139
|
-
dark: 'none'
|
|
140
|
-
}
|
|
65
|
+
focus: 'none'
|
|
141
66
|
}
|
|
142
67
|
},
|
|
143
68
|
'subtle-link': {
|
|
144
69
|
textDecoration: {
|
|
145
|
-
hover:
|
|
146
|
-
light: "underline ".concat(colors.P75),
|
|
147
|
-
dark: "underline ".concat(colors.P75)
|
|
148
|
-
}
|
|
70
|
+
hover: "underline ".concat("var(--ds-text-discovery, ".concat(colors.P75, ")"))
|
|
149
71
|
},
|
|
150
72
|
textDecorationLine: {
|
|
151
|
-
active:
|
|
152
|
-
light: 'none',
|
|
153
|
-
dark: 'none'
|
|
154
|
-
}
|
|
73
|
+
active: 'none'
|
|
155
74
|
},
|
|
156
75
|
boxShadow: {
|
|
157
|
-
focus:
|
|
158
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
159
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
160
|
-
}
|
|
76
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
161
77
|
},
|
|
162
78
|
color: {
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
dark: colors.P75
|
|
170
|
-
},
|
|
171
|
-
active: {
|
|
172
|
-
light: colors.P100,
|
|
173
|
-
dark: colors.P100
|
|
174
|
-
},
|
|
175
|
-
disabled: {
|
|
176
|
-
light: colors.P500,
|
|
177
|
-
dark: colors.P500
|
|
178
|
-
},
|
|
179
|
-
selected: {
|
|
180
|
-
light: colors.N0,
|
|
181
|
-
dark: colors.N0
|
|
182
|
-
},
|
|
183
|
-
focus: {
|
|
184
|
-
light: colors.N0,
|
|
185
|
-
dark: colors.N0
|
|
186
|
-
}
|
|
79
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
80
|
+
hover: "var(--ds-text-onBold, ".concat(colors.P75, ")"),
|
|
81
|
+
active: "var(--ds-text-onBold, ".concat(colors.P100, ")"),
|
|
82
|
+
disabled: "var(--ds-text-discovery, ".concat(colors.P500, ")"),
|
|
83
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
84
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
187
85
|
}
|
|
188
86
|
}
|
|
189
87
|
};
|
|
190
88
|
var modalTheme = {
|
|
191
89
|
primary: {
|
|
192
90
|
background: {
|
|
193
|
-
default:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
hover: {
|
|
198
|
-
light: colors.P200,
|
|
199
|
-
dark: colors.P200
|
|
200
|
-
},
|
|
201
|
-
active: {
|
|
202
|
-
light: colors.P500,
|
|
203
|
-
dark: colors.P500
|
|
204
|
-
},
|
|
91
|
+
default: "var(--ds-background-boldDiscovery-resting, ".concat(colors.P400, ")"),
|
|
92
|
+
hover: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P200, ")"),
|
|
93
|
+
active: "var(--ds-background-boldDiscovery-pressed, ".concat(colors.P500, ")"),
|
|
205
94
|
disabled: {
|
|
206
|
-
light: colors.N30,
|
|
207
|
-
dark: colors.DN70
|
|
208
|
-
},
|
|
209
|
-
selected: {
|
|
210
|
-
light: colors.R500,
|
|
211
|
-
dark: colors.R500
|
|
95
|
+
light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
|
|
96
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
212
97
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
dark: colors.P400
|
|
216
|
-
}
|
|
98
|
+
selected: "var(--ds-background-selected-hover, ".concat(colors.R500, ")"),
|
|
99
|
+
focus: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P400, ")")
|
|
217
100
|
},
|
|
218
101
|
boxShadow: {
|
|
219
102
|
focus: {
|
|
220
|
-
light: "".concat(colors.P100, "
|
|
221
|
-
dark: "".concat(colors.P100, "
|
|
103
|
+
light: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")")),
|
|
104
|
+
dark: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
222
105
|
}
|
|
223
106
|
},
|
|
224
107
|
color: {
|
|
225
|
-
default:
|
|
226
|
-
light: colors.N0,
|
|
227
|
-
dark: colors.N0
|
|
228
|
-
},
|
|
108
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
229
109
|
disabled: {
|
|
230
|
-
light: colors.N0,
|
|
231
|
-
dark: colors.DN30
|
|
110
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
111
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
232
112
|
},
|
|
233
|
-
selected:
|
|
234
|
-
|
|
235
|
-
dark: colors.N0
|
|
236
|
-
},
|
|
237
|
-
focus: {
|
|
238
|
-
light: colors.N0,
|
|
239
|
-
dark: colors.N0
|
|
240
|
-
}
|
|
113
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
114
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
241
115
|
}
|
|
242
116
|
}
|
|
243
117
|
};
|
|
@@ -10,8 +10,8 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
12
|
var backgroundColor = themed({
|
|
13
|
-
light: N100A,
|
|
14
|
-
dark: DN90A
|
|
13
|
+
light: "var(--ds-background-blanket, ".concat(N100A, ")"),
|
|
14
|
+
dark: "var(--ds-background-blanket, ".concat(DN90A, ")")
|
|
15
15
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
16
16
|
// to body instead of nearest stacking context (Portal in our case).
|
|
17
17
|
|