@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9a5740d1ec3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a5740d1ec3) - [ux] The `pulse` prop now works correctly for `<SpotlightPulse />`. Previously, it was applying the pulse to the `SpotlightPulse` target regardless of the `pulse` value. Now it checks the value of `pulse` and applies the animation accordingly.
|
|
8
|
+
|
|
9
|
+
## 10.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3fced6aa641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fced6aa641) - Bumped `react-focus-lock` to version `^2.2.1`.
|
|
14
|
+
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 10.3.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [`50081f13de7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50081f13de7) - Instrumented `@atlaskit/onboarding` with the new theming package, `@atlaskit/tokens`.
|
|
22
|
+
|
|
23
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 10.2.6
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
|
|
34
|
+
|
|
3
35
|
## 10.2.5
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -41,10 +41,10 @@ Object.defineProperty(exports, "SpotlightTransition", {
|
|
|
41
41
|
return _spotlightTransition.default;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "modalButtonTheme", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function get() {
|
|
47
|
-
return
|
|
47
|
+
return _theme.modalButtonTheme;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "spotlightButtonTheme", {
|
|
@@ -53,10 +53,10 @@ Object.defineProperty(exports, "spotlightButtonTheme", {
|
|
|
53
53
|
return _theme.spotlightButtonTheme;
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
Object.defineProperty(exports, "
|
|
56
|
+
Object.defineProperty(exports, "useSpotlight", {
|
|
57
57
|
enumerable: true,
|
|
58
58
|
get: function get() {
|
|
59
|
-
return
|
|
59
|
+
return _useSpotlight.default;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
|
@@ -87,10 +87,10 @@ var SpotlightCard = /*#__PURE__*/function (_React$Component) {
|
|
|
87
87
|
return _theme(function () {
|
|
88
88
|
return _objectSpread(_objectSpread({}, others), {}, {
|
|
89
89
|
container: _objectSpread({
|
|
90
|
-
background: _colors.P300,
|
|
91
|
-
color: _colors.N0,
|
|
90
|
+
background: "var(--ds-background-boldDiscovery-resting, ".concat(_colors.P300, ")"),
|
|
91
|
+
color: "var(--ds-text-onBold, ".concat(_colors.N0, ")"),
|
|
92
92
|
width: "".concat(Math.min(Math.max(width, 160), 600), "px"),
|
|
93
|
-
boxShadow: isFlat ? undefined : "0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A)
|
|
93
|
+
boxShadow: isFlat ? undefined : "var(--ds-card, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")
|
|
94
94
|
}, container)
|
|
95
95
|
});
|
|
96
96
|
}, {});
|
|
@@ -52,7 +52,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
52
52
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
53
53
|
|
|
54
54
|
var packageName = "@atlaskit/onboarding";
|
|
55
|
-
var packageVersion = "10.2
|
|
55
|
+
var packageVersion = "10.3.2";
|
|
56
56
|
|
|
57
57
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
58
58
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.default = exports.
|
|
10
|
+
exports.default = exports.TargetConsumer = exports.SpotlightContext = exports.SpotlightConsumer = void 0;
|
|
11
11
|
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.spotlightButtonTheme = exports.modalButtonTheme = void 0;
|
|
11
11
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
|
|
@@ -28,234 +28,108 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
28
28
|
var spotlightTheme = {
|
|
29
29
|
default: {
|
|
30
30
|
background: {
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
dark: colors.P200
|
|
38
|
-
},
|
|
39
|
-
active: {
|
|
40
|
-
light: colors.P500,
|
|
41
|
-
dark: colors.P500
|
|
42
|
-
},
|
|
43
|
-
disabled: {
|
|
44
|
-
light: colors.P400,
|
|
45
|
-
dark: colors.P400
|
|
46
|
-
},
|
|
47
|
-
selected: {
|
|
48
|
-
light: colors.R500,
|
|
49
|
-
dark: colors.R500
|
|
50
|
-
},
|
|
51
|
-
focus: {
|
|
52
|
-
light: colors.P400,
|
|
53
|
-
dark: colors.P400
|
|
54
|
-
}
|
|
31
|
+
default: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")"),
|
|
32
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
33
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
34
|
+
disabled: "var(--ds-background-disabled, ".concat(colors.P400, ")"),
|
|
35
|
+
selected: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.R500, ")"),
|
|
36
|
+
focus: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")")
|
|
55
37
|
},
|
|
56
38
|
boxShadow: {
|
|
57
|
-
focus:
|
|
58
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
59
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
60
|
-
}
|
|
39
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
61
40
|
},
|
|
62
41
|
color: {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
hover: {
|
|
68
|
-
light: colors.N0,
|
|
69
|
-
dark: colors.N0
|
|
70
|
-
},
|
|
71
|
-
active: {
|
|
72
|
-
light: colors.N0,
|
|
73
|
-
dark: colors.N0
|
|
74
|
-
},
|
|
42
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
43
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
44
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
75
45
|
disabled: {
|
|
76
|
-
light: colors.N0,
|
|
77
|
-
dark: colors.DN30
|
|
78
|
-
},
|
|
79
|
-
selected: {
|
|
80
|
-
light: colors.N0,
|
|
81
|
-
dark: colors.N0
|
|
46
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
47
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
82
48
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
dark: colors.N0
|
|
86
|
-
}
|
|
49
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
50
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
87
51
|
},
|
|
88
52
|
outline: {
|
|
89
|
-
focus:
|
|
90
|
-
light: 'none',
|
|
91
|
-
dark: 'none'
|
|
92
|
-
}
|
|
53
|
+
focus: 'none'
|
|
93
54
|
}
|
|
94
55
|
},
|
|
95
56
|
subtle: {
|
|
96
57
|
background: {
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hover: {
|
|
102
|
-
light: colors.P200,
|
|
103
|
-
dark: colors.P200
|
|
104
|
-
},
|
|
105
|
-
active: {
|
|
106
|
-
light: colors.P500,
|
|
107
|
-
dark: colors.P500
|
|
108
|
-
},
|
|
109
|
-
disabled: {
|
|
110
|
-
light: 'none',
|
|
111
|
-
dark: 'none'
|
|
112
|
-
},
|
|
58
|
+
default: 'none',
|
|
59
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
60
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
61
|
+
disabled: 'none',
|
|
113
62
|
selected: {
|
|
114
|
-
light: colors.N700,
|
|
115
|
-
dark: colors.DN0
|
|
63
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
64
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
116
65
|
},
|
|
117
66
|
focusSelected: {
|
|
118
|
-
light: colors.N700,
|
|
119
|
-
dark: colors.DN0
|
|
67
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
68
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
120
69
|
}
|
|
121
70
|
},
|
|
122
71
|
boxShadow: {
|
|
123
|
-
focus:
|
|
124
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
125
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
126
|
-
}
|
|
72
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
127
73
|
},
|
|
128
74
|
color: {
|
|
129
|
-
default:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
dark: colors.N0
|
|
136
|
-
},
|
|
137
|
-
active: {
|
|
138
|
-
light: colors.N0,
|
|
139
|
-
dark: colors.N0
|
|
140
|
-
},
|
|
141
|
-
disabled: {
|
|
142
|
-
light: colors.N0,
|
|
143
|
-
dark: colors.N0
|
|
144
|
-
},
|
|
145
|
-
selected: {
|
|
146
|
-
light: colors.N0,
|
|
147
|
-
dark: colors.N0
|
|
148
|
-
},
|
|
149
|
-
focus: {
|
|
150
|
-
light: colors.N0,
|
|
151
|
-
dark: colors.N0
|
|
152
|
-
}
|
|
75
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
76
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
77
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
78
|
+
disabled: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
79
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
80
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
153
81
|
},
|
|
154
82
|
outline: {
|
|
155
|
-
focus:
|
|
156
|
-
light: 'none',
|
|
157
|
-
dark: 'none'
|
|
158
|
-
}
|
|
83
|
+
focus: 'none'
|
|
159
84
|
}
|
|
160
85
|
},
|
|
161
86
|
'subtle-link': {
|
|
162
87
|
textDecoration: {
|
|
163
|
-
hover:
|
|
164
|
-
light: "underline ".concat(colors.P75),
|
|
165
|
-
dark: "underline ".concat(colors.P75)
|
|
166
|
-
}
|
|
88
|
+
hover: "underline ".concat("var(--ds-text-discovery, ".concat(colors.P75, ")"))
|
|
167
89
|
},
|
|
168
90
|
textDecorationLine: {
|
|
169
|
-
active:
|
|
170
|
-
light: 'none',
|
|
171
|
-
dark: 'none'
|
|
172
|
-
}
|
|
91
|
+
active: 'none'
|
|
173
92
|
},
|
|
174
93
|
boxShadow: {
|
|
175
|
-
focus:
|
|
176
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
177
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
178
|
-
}
|
|
94
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
179
95
|
},
|
|
180
96
|
color: {
|
|
181
|
-
default:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
dark: colors.P75
|
|
188
|
-
},
|
|
189
|
-
active: {
|
|
190
|
-
light: colors.P100,
|
|
191
|
-
dark: colors.P100
|
|
192
|
-
},
|
|
193
|
-
disabled: {
|
|
194
|
-
light: colors.P500,
|
|
195
|
-
dark: colors.P500
|
|
196
|
-
},
|
|
197
|
-
selected: {
|
|
198
|
-
light: colors.N0,
|
|
199
|
-
dark: colors.N0
|
|
200
|
-
},
|
|
201
|
-
focus: {
|
|
202
|
-
light: colors.N0,
|
|
203
|
-
dark: colors.N0
|
|
204
|
-
}
|
|
97
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
98
|
+
hover: "var(--ds-text-onBold, ".concat(colors.P75, ")"),
|
|
99
|
+
active: "var(--ds-text-onBold, ".concat(colors.P100, ")"),
|
|
100
|
+
disabled: "var(--ds-text-discovery, ".concat(colors.P500, ")"),
|
|
101
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
102
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
205
103
|
}
|
|
206
104
|
}
|
|
207
105
|
};
|
|
208
106
|
var modalTheme = {
|
|
209
107
|
primary: {
|
|
210
108
|
background: {
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
hover: {
|
|
216
|
-
light: colors.P200,
|
|
217
|
-
dark: colors.P200
|
|
218
|
-
},
|
|
219
|
-
active: {
|
|
220
|
-
light: colors.P500,
|
|
221
|
-
dark: colors.P500
|
|
222
|
-
},
|
|
109
|
+
default: "var(--ds-background-boldDiscovery-resting, ".concat(colors.P400, ")"),
|
|
110
|
+
hover: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P200, ")"),
|
|
111
|
+
active: "var(--ds-background-boldDiscovery-pressed, ".concat(colors.P500, ")"),
|
|
223
112
|
disabled: {
|
|
224
|
-
light: colors.N30,
|
|
225
|
-
dark: colors.DN70
|
|
226
|
-
},
|
|
227
|
-
selected: {
|
|
228
|
-
light: colors.R500,
|
|
229
|
-
dark: colors.R500
|
|
113
|
+
light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
|
|
114
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
230
115
|
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
dark: colors.P400
|
|
234
|
-
}
|
|
116
|
+
selected: "var(--ds-background-selected-hover, ".concat(colors.R500, ")"),
|
|
117
|
+
focus: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P400, ")")
|
|
235
118
|
},
|
|
236
119
|
boxShadow: {
|
|
237
120
|
focus: {
|
|
238
|
-
light: "".concat(colors.P100, "
|
|
239
|
-
dark: "".concat(colors.P100, "
|
|
121
|
+
light: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")")),
|
|
122
|
+
dark: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
240
123
|
}
|
|
241
124
|
},
|
|
242
125
|
color: {
|
|
243
|
-
default:
|
|
244
|
-
light: colors.N0,
|
|
245
|
-
dark: colors.N0
|
|
246
|
-
},
|
|
126
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
247
127
|
disabled: {
|
|
248
|
-
light: colors.N0,
|
|
249
|
-
dark: colors.DN30
|
|
128
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
129
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
250
130
|
},
|
|
251
|
-
selected:
|
|
252
|
-
|
|
253
|
-
dark: colors.N0
|
|
254
|
-
},
|
|
255
|
-
focus: {
|
|
256
|
-
light: colors.N0,
|
|
257
|
-
dark: colors.N0
|
|
258
|
-
}
|
|
131
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
132
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
259
133
|
}
|
|
260
134
|
}
|
|
261
135
|
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "SpotlightManager", {
|
|
|
27
27
|
return _components.SpotlightManager;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "SpotlightPulse", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _target.Pulse;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
Object.defineProperty(exports, "SpotlightTarget", {
|
|
31
37
|
enumerable: true,
|
|
32
38
|
get: function get() {
|
|
@@ -57,12 +63,6 @@ Object.defineProperty(exports, "useSpotlight", {
|
|
|
57
63
|
return _components.useSpotlight;
|
|
58
64
|
}
|
|
59
65
|
});
|
|
60
|
-
Object.defineProperty(exports, "SpotlightPulse", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _target.Pulse;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
66
|
|
|
67
67
|
var _components = require("./components");
|
|
68
68
|
|
|
@@ -22,8 +22,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
22
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
23
23
|
|
|
24
24
|
var backgroundColor = (0, _components.themed)({
|
|
25
|
-
light: _colors.N100A,
|
|
26
|
-
dark: _colors.DN90A
|
|
25
|
+
light: "var(--ds-background-blanket, ".concat(_colors.N100A, ")"),
|
|
26
|
+
dark: "var(--ds-background-blanket, ".concat(_colors.DN90A, ")")
|
|
27
27
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
28
28
|
// to body instead of nearest stacking context (Portal in our case).
|
|
29
29
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.DialogImage = exports.DialogActionItemContainer = exports.DialogActionItem = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ModalImage = exports.ModalHeading = exports.ModalBody = exports.ModalActionItem = exports.ModalActionContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _core = require("@emotion/core");
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.pulseKeyframesName = exports.TargetOverlay = exports.TargetInner = exports.Pulse = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -25,7 +25,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
25
25
|
|
|
26
26
|
// NOTE:
|
|
27
27
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
28
|
-
var baseShadow = "0 0 0 2px ".concat(_colors.P300);
|
|
28
|
+
var baseShadow = "var(--ds-overlay, ".concat("0 0 0 2px ".concat(_colors.P300), ")");
|
|
29
29
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
30
30
|
var pulseKeyframes = (0, _core.keyframes)({
|
|
31
31
|
'0%, 33%': {
|
|
@@ -34,7 +34,10 @@ var pulseKeyframes = (0, _core.keyframes)({
|
|
|
34
34
|
'66%, 100%': {
|
|
35
35
|
boxShadow: "".concat(baseShadow, ", 0 0 0 10px rgba(101, 84, 192, 0.01)")
|
|
36
36
|
}
|
|
37
|
-
});
|
|
37
|
+
}); // This is needed for unit tests
|
|
38
|
+
|
|
39
|
+
var pulseKeyframesName = pulseKeyframes.name;
|
|
40
|
+
exports.pulseKeyframesName = pulseKeyframesName;
|
|
38
41
|
var animationStyles = (0, _core.css)({
|
|
39
42
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite")
|
|
40
43
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
@@ -49,9 +52,11 @@ var Base = function Base(_ref) {
|
|
|
49
52
|
bgColor = _ref.bgColor,
|
|
50
53
|
radius = _ref.radius,
|
|
51
54
|
style = _ref.style,
|
|
52
|
-
|
|
55
|
+
testId = _ref.testId,
|
|
56
|
+
props = (0, _objectWithoutProperties2.default)(_ref, ["children", "bgColor", "radius", "style", "testId"]);
|
|
53
57
|
return (0, _core.jsx)("div", (0, _extends2.default)({
|
|
54
58
|
css: baseStyles,
|
|
59
|
+
"data-testid": testId,
|
|
55
60
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
56
61
|
backgroundColor: bgColor,
|
|
57
62
|
borderRadius: radius ? "".concat(radius, "px") : undefined
|
|
@@ -114,9 +119,13 @@ exports.TargetOverlay = TargetOverlay;
|
|
|
114
119
|
|
|
115
120
|
var Pulse = function Pulse(_ref3) {
|
|
116
121
|
var children = _ref3.children,
|
|
117
|
-
|
|
122
|
+
_ref3$pulse = _ref3.pulse,
|
|
123
|
+
pulse = _ref3$pulse === void 0 ? true : _ref3$pulse,
|
|
124
|
+
testId = _ref3.testId,
|
|
125
|
+
props = (0, _objectWithoutProperties2.default)(_ref3, ["children", "pulse", "testId"]);
|
|
118
126
|
return (0, _core.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
119
|
-
css: animationStyles
|
|
127
|
+
css: [pulse && animationStyles],
|
|
128
|
+
testId: testId
|
|
120
129
|
}), children);
|
|
121
130
|
};
|
|
122
131
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.useElementBox = exports.ElementBox = void 0;
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -41,11 +41,10 @@ class SpotlightCard extends React.Component {
|
|
|
41
41
|
} = parent({});
|
|
42
42
|
return theme(() => ({ ...others,
|
|
43
43
|
container: {
|
|
44
|
-
background: P300
|
|
45
|
-
color: N0
|
|
44
|
+
background: `var(--ds-background-boldDiscovery-resting, ${P300})`,
|
|
45
|
+
color: `var(--ds-text-onBold, ${N0})`,
|
|
46
46
|
width: `${Math.min(Math.max(width, 160), 600)}px`,
|
|
47
|
-
boxShadow: isFlat ? undefined : `0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`,
|
|
48
|
-
// AK-5598
|
|
47
|
+
boxShadow: isFlat ? undefined : `var(--ds-card, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
49
48
|
...container
|
|
50
49
|
}
|
|
51
50
|
}), {});
|
|
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
7
7
|
import SpotlightCard from './spotlight-card';
|
|
8
8
|
import ValueChanged from './value-changed';
|
|
9
9
|
const packageName = "@atlaskit/onboarding";
|
|
10
|
-
const packageVersion = "10.2
|
|
10
|
+
const packageVersion = "10.3.2";
|
|
11
11
|
|
|
12
12
|
class SpotlightDialog extends Component {
|
|
13
13
|
constructor(...args) {
|