@atlaskit/onboarding 10.2.6 → 10.3.3
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/animation.js +2 -2
- package/dist/cjs/components/card.js +4 -3
- package/dist/cjs/components/index.js +4 -4
- package/dist/cjs/components/modal.js +5 -2
- package/dist/cjs/components/spotlight-card.js +8 -6
- package/dist/cjs/components/spotlight-dialog.js +6 -4
- package/dist/cjs/components/spotlight-inner.js +2 -2
- package/dist/cjs/components/spotlight-manager.js +3 -3
- package/dist/cjs/components/spotlight.js +3 -1
- package/dist/cjs/components/theme.js +62 -185
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/styled/blanket.js +4 -4
- package/dist/cjs/styled/dialog.js +3 -3
- package/dist/cjs/styled/modal.js +1 -1
- package/dist/cjs/styled/target.js +22 -9
- 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/animation.js +2 -2
- package/dist/esm/components/card.js +4 -2
- package/dist/esm/components/modal.js +4 -2
- package/dist/esm/components/spotlight-card.js +7 -6
- package/dist/esm/components/spotlight-dialog.js +5 -4
- package/dist/esm/components/spotlight-inner.js +2 -2
- package/dist/esm/components/spotlight-manager.js +2 -2
- package/dist/esm/components/spotlight.js +2 -1
- package/dist/esm/components/theme.js +60 -184
- package/dist/esm/styled/blanket.js +4 -4
- package/dist/esm/styled/dialog.js +2 -1
- package/dist/esm/styled/target.js +19 -8
- package/dist/esm/version.json +1 -1
- package/dist/types/components/modal.d.ts +2 -2
- package/dist/types/styled/target.d.ts +3 -0
- package/package.json +11 -9
|
@@ -6,10 +6,11 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
+
var _excluded = ["container"];
|
|
9
10
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
12
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
14
|
|
|
14
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
16
|
|
|
@@ -23,7 +24,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
23
24
|
import SpotlightCard from './spotlight-card';
|
|
24
25
|
import ValueChanged from './value-changed';
|
|
25
26
|
var packageName = "@atlaskit/onboarding";
|
|
26
|
-
var packageVersion = "10.
|
|
27
|
+
var packageVersion = "10.3.3";
|
|
27
28
|
|
|
28
29
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
29
30
|
_inherits(SpotlightDialog, _Component);
|
|
@@ -132,7 +133,7 @@ var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
|
132
133
|
theme: function theme(parent) {
|
|
133
134
|
var _parent = parent({}),
|
|
134
135
|
container = _parent.container,
|
|
135
|
-
others = _objectWithoutProperties(_parent,
|
|
136
|
+
others = _objectWithoutProperties(_parent, _excluded);
|
|
136
137
|
|
|
137
138
|
return _objectSpread(_objectSpread({}, others), {}, {
|
|
138
139
|
container: _objectSpread(_objectSpread(_objectSpread({}, container), style), animationStyles)
|
|
@@ -7,9 +7,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
|
|
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
|
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
11
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
|
|
13
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
14
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["dialogWidth", "pulse", "testId", "targetNode", "target"];
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import SpotlightInner from './spotlight-inner';
|
|
5
6
|
import { SpotlightConsumer } from './spotlight-manager';
|
|
@@ -22,7 +23,7 @@ var Spotlight = function Spotlight(_ref) {
|
|
|
22
23
|
testId = _ref$testId === void 0 ? 'spotlight' : _ref$testId,
|
|
23
24
|
targetNode = _ref.targetNode,
|
|
24
25
|
target = _ref.target,
|
|
25
|
-
rest = _objectWithoutProperties(_ref,
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
27
|
|
|
27
28
|
return /*#__PURE__*/React.createElement(SpotlightConsumer, null, function (_ref2) {
|
|
28
29
|
var opened = _ref2.opened,
|
|
@@ -1,243 +1,119 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
|
+
var _excluded = ["buttonStyles"],
|
|
5
|
+
_excluded2 = ["buttonStyles"];
|
|
4
6
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
8
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
10
|
|
|
9
11
|
import * as colors from '@atlaskit/theme/colors';
|
|
10
12
|
var spotlightTheme = {
|
|
11
13
|
default: {
|
|
12
14
|
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
|
-
}
|
|
15
|
+
default: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")"),
|
|
16
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
17
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
18
|
+
disabled: "var(--ds-background-disabled, ".concat(colors.P400, ")"),
|
|
19
|
+
selected: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.R500, ")"),
|
|
20
|
+
focus: "var(--ds-background-subtleNeutral-resting, ".concat(colors.P400, ")")
|
|
37
21
|
},
|
|
38
22
|
boxShadow: {
|
|
39
|
-
focus:
|
|
40
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
41
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
42
|
-
}
|
|
23
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
43
24
|
},
|
|
44
25
|
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
|
-
},
|
|
26
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
27
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
28
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
57
29
|
disabled: {
|
|
58
|
-
light: colors.N0,
|
|
59
|
-
dark: colors.DN30
|
|
60
|
-
},
|
|
61
|
-
selected: {
|
|
62
|
-
light: colors.N0,
|
|
63
|
-
dark: colors.N0
|
|
30
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
31
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
64
32
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
dark: colors.N0
|
|
68
|
-
}
|
|
33
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
34
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
69
35
|
},
|
|
70
36
|
outline: {
|
|
71
|
-
focus:
|
|
72
|
-
light: 'none',
|
|
73
|
-
dark: 'none'
|
|
74
|
-
}
|
|
37
|
+
focus: 'none'
|
|
75
38
|
}
|
|
76
39
|
},
|
|
77
40
|
subtle: {
|
|
78
41
|
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
|
-
},
|
|
42
|
+
default: 'none',
|
|
43
|
+
hover: "var(--ds-background-subtleNeutral-hover, ".concat(colors.P200, ")"),
|
|
44
|
+
active: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.P500, ")"),
|
|
45
|
+
disabled: 'none',
|
|
95
46
|
selected: {
|
|
96
|
-
light: colors.N700,
|
|
97
|
-
dark: colors.DN0
|
|
47
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
48
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
98
49
|
},
|
|
99
50
|
focusSelected: {
|
|
100
|
-
light: colors.N700,
|
|
101
|
-
dark: colors.DN0
|
|
51
|
+
light: "var(--ds-background-selected-hover, ".concat(colors.N700, ")"),
|
|
52
|
+
dark: "var(--ds-background-selected-hover, ".concat(colors.DN0, ")")
|
|
102
53
|
}
|
|
103
54
|
},
|
|
104
55
|
boxShadow: {
|
|
105
|
-
focus:
|
|
106
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
107
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
108
|
-
}
|
|
56
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
109
57
|
},
|
|
110
58
|
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
|
-
}
|
|
59
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
60
|
+
hover: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
61
|
+
active: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
62
|
+
disabled: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
63
|
+
selected: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
64
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
135
65
|
},
|
|
136
66
|
outline: {
|
|
137
|
-
focus:
|
|
138
|
-
light: 'none',
|
|
139
|
-
dark: 'none'
|
|
140
|
-
}
|
|
67
|
+
focus: 'none'
|
|
141
68
|
}
|
|
142
69
|
},
|
|
143
70
|
'subtle-link': {
|
|
144
71
|
textDecoration: {
|
|
145
|
-
hover:
|
|
146
|
-
light: "underline ".concat(colors.P75),
|
|
147
|
-
dark: "underline ".concat(colors.P75)
|
|
148
|
-
}
|
|
72
|
+
hover: "underline ".concat("var(--ds-text-discovery, ".concat(colors.P75, ")"))
|
|
149
73
|
},
|
|
150
74
|
textDecorationLine: {
|
|
151
|
-
active:
|
|
152
|
-
light: 'none',
|
|
153
|
-
dark: 'none'
|
|
154
|
-
}
|
|
75
|
+
active: 'none'
|
|
155
76
|
},
|
|
156
77
|
boxShadow: {
|
|
157
|
-
focus:
|
|
158
|
-
light: "".concat(colors.P100, " 0 0 0 2px"),
|
|
159
|
-
dark: "".concat(colors.P100, " 0 0 0 2px")
|
|
160
|
-
}
|
|
78
|
+
focus: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
161
79
|
},
|
|
162
80
|
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
|
-
}
|
|
81
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
82
|
+
hover: "var(--ds-text-onBold, ".concat(colors.P75, ")"),
|
|
83
|
+
active: "var(--ds-text-onBold, ".concat(colors.P100, ")"),
|
|
84
|
+
disabled: "var(--ds-text-discovery, ".concat(colors.P500, ")"),
|
|
85
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
86
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
187
87
|
}
|
|
188
88
|
}
|
|
189
89
|
};
|
|
190
90
|
var modalTheme = {
|
|
191
91
|
primary: {
|
|
192
92
|
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
|
-
},
|
|
93
|
+
default: "var(--ds-background-boldDiscovery-resting, ".concat(colors.P400, ")"),
|
|
94
|
+
hover: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P200, ")"),
|
|
95
|
+
active: "var(--ds-background-boldDiscovery-pressed, ".concat(colors.P500, ")"),
|
|
205
96
|
disabled: {
|
|
206
|
-
light: colors.N30,
|
|
207
|
-
dark: colors.DN70
|
|
208
|
-
},
|
|
209
|
-
selected: {
|
|
210
|
-
light: colors.R500,
|
|
211
|
-
dark: colors.R500
|
|
97
|
+
light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
|
|
98
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
212
99
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
dark: colors.P400
|
|
216
|
-
}
|
|
100
|
+
selected: "var(--ds-background-selected-hover, ".concat(colors.R500, ")"),
|
|
101
|
+
focus: "var(--ds-background-boldDiscovery-hover, ".concat(colors.P400, ")")
|
|
217
102
|
},
|
|
218
103
|
boxShadow: {
|
|
219
104
|
focus: {
|
|
220
|
-
light: "".concat(colors.P100, "
|
|
221
|
-
dark: "".concat(colors.P100, "
|
|
105
|
+
light: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")")),
|
|
106
|
+
dark: "0 0 0 2px ".concat("var(--ds-iconBorder-discovery, ".concat(colors.P100, ")"))
|
|
222
107
|
}
|
|
223
108
|
},
|
|
224
109
|
color: {
|
|
225
|
-
default:
|
|
226
|
-
light: colors.N0,
|
|
227
|
-
dark: colors.N0
|
|
228
|
-
},
|
|
110
|
+
default: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
229
111
|
disabled: {
|
|
230
|
-
light: colors.N0,
|
|
231
|
-
dark: colors.DN30
|
|
112
|
+
light: "var(--ds-text-disabled, ".concat(colors.N0, ")"),
|
|
113
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
232
114
|
},
|
|
233
|
-
selected:
|
|
234
|
-
|
|
235
|
-
dark: colors.N0
|
|
236
|
-
},
|
|
237
|
-
focus: {
|
|
238
|
-
light: colors.N0,
|
|
239
|
-
dark: colors.N0
|
|
240
|
-
}
|
|
115
|
+
selected: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
116
|
+
focus: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
241
117
|
}
|
|
242
118
|
}
|
|
243
119
|
};
|
|
@@ -274,7 +150,7 @@ function extract(newTheme, _ref) {
|
|
|
274
150
|
export var spotlightButtonTheme = function spotlightButtonTheme(current, themeProps) {
|
|
275
151
|
var _current = current(themeProps),
|
|
276
152
|
buttonStyles = _current.buttonStyles,
|
|
277
|
-
rest = _objectWithoutProperties(_current,
|
|
153
|
+
rest = _objectWithoutProperties(_current, _excluded);
|
|
278
154
|
|
|
279
155
|
return _objectSpread({
|
|
280
156
|
buttonStyles: _objectSpread(_objectSpread({}, buttonStyles), extract(spotlightTheme, themeProps))
|
|
@@ -283,7 +159,7 @@ export var spotlightButtonTheme = function spotlightButtonTheme(current, themePr
|
|
|
283
159
|
export var modalButtonTheme = function modalButtonTheme(current, themeProps) {
|
|
284
160
|
var _current2 = current(themeProps),
|
|
285
161
|
buttonStyles = _current2.buttonStyles,
|
|
286
|
-
rest = _objectWithoutProperties(_current2,
|
|
162
|
+
rest = _objectWithoutProperties(_current2, _excluded2);
|
|
287
163
|
|
|
288
164
|
return _objectSpread({
|
|
289
165
|
buttonStyles: _objectSpread(_objectSpread({}, buttonStyles), extract(modalTheme, themeProps))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { css, jsx } from '@emotion/core';
|
|
@@ -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
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["alt"];
|
|
3
4
|
|
|
4
5
|
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/core';
|
|
@@ -30,7 +31,7 @@ var actionItemStyles = css({
|
|
|
30
31
|
|
|
31
32
|
export var DialogImage = function DialogImage(_ref) {
|
|
32
33
|
var alt = _ref.alt,
|
|
33
|
-
props = _objectWithoutProperties(_ref,
|
|
34
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
35
|
|
|
35
36
|
return jsx("img", _extends({
|
|
36
37
|
css: imageStyles,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children", "bgColor", "radius", "style", "testId"],
|
|
5
|
+
_excluded2 = ["children", "pulse"],
|
|
6
|
+
_excluded3 = ["children", "pulse", "testId"];
|
|
4
7
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
9
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
11
|
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
import { css, jsx, keyframes } from '@emotion/core';
|
|
@@ -12,7 +15,7 @@ import { P300 } from '@atlaskit/theme/colors';
|
|
|
12
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
16
|
// NOTE:
|
|
14
17
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
15
|
-
var baseShadow = "0 0 0 2px ".concat(P300);
|
|
18
|
+
var baseShadow = "var(--ds-overlay, ".concat("0 0 0 2px ".concat(P300), ")");
|
|
16
19
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
17
20
|
var pulseKeyframes = keyframes({
|
|
18
21
|
'0%, 33%': {
|
|
@@ -21,7 +24,9 @@ var pulseKeyframes = keyframes({
|
|
|
21
24
|
'66%, 100%': {
|
|
22
25
|
boxShadow: "".concat(baseShadow, ", 0 0 0 10px rgba(101, 84, 192, 0.01)")
|
|
23
26
|
}
|
|
24
|
-
});
|
|
27
|
+
}); // This is needed for unit tests
|
|
28
|
+
|
|
29
|
+
export var pulseKeyframesName = pulseKeyframes.name;
|
|
25
30
|
var animationStyles = css({
|
|
26
31
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite")
|
|
27
32
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
@@ -36,10 +41,12 @@ var Base = function Base(_ref) {
|
|
|
36
41
|
bgColor = _ref.bgColor,
|
|
37
42
|
radius = _ref.radius,
|
|
38
43
|
style = _ref.style,
|
|
39
|
-
|
|
44
|
+
testId = _ref.testId,
|
|
45
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
40
46
|
|
|
41
47
|
return jsx("div", _extends({
|
|
42
48
|
css: baseStyles,
|
|
49
|
+
"data-testid": testId,
|
|
43
50
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
44
51
|
backgroundColor: bgColor,
|
|
45
52
|
borderRadius: radius ? "".concat(radius, "px") : undefined
|
|
@@ -58,7 +65,7 @@ var Base = function Base(_ref) {
|
|
|
58
65
|
export var TargetInner = function TargetInner(_ref2) {
|
|
59
66
|
var children = _ref2.children,
|
|
60
67
|
pulse = _ref2.pulse,
|
|
61
|
-
props = _objectWithoutProperties(_ref2,
|
|
68
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
62
69
|
|
|
63
70
|
return jsx(Base, _extends({}, props, {
|
|
64
71
|
css: [pulse && animationStyles]
|
|
@@ -98,9 +105,13 @@ export var TargetOverlay = function TargetOverlay(props) {
|
|
|
98
105
|
|
|
99
106
|
export var Pulse = function Pulse(_ref3) {
|
|
100
107
|
var children = _ref3.children,
|
|
101
|
-
|
|
108
|
+
_ref3$pulse = _ref3.pulse,
|
|
109
|
+
pulse = _ref3$pulse === void 0 ? true : _ref3$pulse,
|
|
110
|
+
testId = _ref3.testId,
|
|
111
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
102
112
|
|
|
103
113
|
return jsx(Base, _extends({}, props, {
|
|
104
|
-
css: animationStyles
|
|
114
|
+
css: [pulse && animationStyles],
|
|
115
|
+
testId: testId
|
|
105
116
|
}), children);
|
|
106
117
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -41,8 +41,8 @@ declare type ModalProps = {
|
|
|
41
41
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/onboarding)
|
|
42
42
|
*/
|
|
43
43
|
export default class OnboardingModal extends Component<ModalProps> {
|
|
44
|
-
headerComponent: (props: ModalProps) => "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "small" | "ruby" | "table" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" |
|
|
45
|
-
footerComponent: (props: ModalProps) => "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "small" | "ruby" | "table" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" |
|
|
44
|
+
headerComponent: (props: ModalProps) => "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "small" | "ruby" | "table" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<HeaderComponentProps, any> | import("react").FunctionComponent<HeaderComponentProps> | (() => JSX.Element);
|
|
45
|
+
footerComponent: (props: ModalProps) => "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "small" | "ruby" | "table" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<FooterComponentProps, any> | import("react").FunctionComponent<FooterComponentProps> | (() => JSX.Element | null);
|
|
46
46
|
render(): JSX.Element;
|
|
47
47
|
}
|
|
48
48
|
export {};
|
|
@@ -3,10 +3,13 @@ declare type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3
3
|
bgColor?: string;
|
|
4
4
|
radius?: number;
|
|
5
5
|
className?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
};
|
|
7
8
|
declare type TargetProps = Omit<BaseProps, 'css'> & {
|
|
8
9
|
pulse?: boolean;
|
|
10
|
+
testId?: string;
|
|
9
11
|
};
|
|
12
|
+
export declare const pulseKeyframesName: string;
|
|
10
13
|
/**
|
|
11
14
|
* __Target inner__
|
|
12
15
|
*
|