@atlaskit/onboarding 10.3.1 → 10.3.5
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 +26 -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 +47 -44
- 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 +33 -15
- 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 -3
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/theme.js +39 -39
- package/dist/es2019/styled/blanket.js +2 -2
- package/dist/es2019/styled/target.js +16 -6
- 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 +45 -43
- package/dist/esm/styled/blanket.js +4 -4
- package/dist/esm/styled/dialog.js +2 -1
- package/dist/esm/styled/target.js +30 -14
- 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 +5 -7
|
@@ -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
|
|
|
@@ -19,13 +19,17 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
19
19
|
|
|
20
20
|
var _constants = require("@atlaskit/theme/constants");
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
var _excluded = ["children", "bgColor", "radius", "style", "testId"],
|
|
23
|
+
_excluded2 = ["children", "pulse"],
|
|
24
|
+
_excluded3 = ["children", "pulse", "testId"];
|
|
23
25
|
|
|
24
|
-
function
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
25
29
|
|
|
26
30
|
// NOTE:
|
|
27
31
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
28
|
-
var baseShadow = "var(--ds-overlay, ".concat("0 0 0 2px ".concat(_colors.P300), ")");
|
|
32
|
+
var baseShadow = "var(--ds-shadow-overlay, ".concat("0 0 0 2px ".concat(_colors.P300), ")");
|
|
29
33
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
30
34
|
var pulseKeyframes = (0, _core.keyframes)({
|
|
31
35
|
'0%, 33%': {
|
|
@@ -34,7 +38,10 @@ var pulseKeyframes = (0, _core.keyframes)({
|
|
|
34
38
|
'66%, 100%': {
|
|
35
39
|
boxShadow: "".concat(baseShadow, ", 0 0 0 10px rgba(101, 84, 192, 0.01)")
|
|
36
40
|
}
|
|
37
|
-
});
|
|
41
|
+
}); // This is needed for unit tests
|
|
42
|
+
|
|
43
|
+
var pulseKeyframesName = pulseKeyframes.name;
|
|
44
|
+
exports.pulseKeyframesName = pulseKeyframesName;
|
|
38
45
|
var animationStyles = (0, _core.css)({
|
|
39
46
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite")
|
|
40
47
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
@@ -49,13 +56,16 @@ var Base = function Base(_ref) {
|
|
|
49
56
|
bgColor = _ref.bgColor,
|
|
50
57
|
radius = _ref.radius,
|
|
51
58
|
style = _ref.style,
|
|
52
|
-
|
|
59
|
+
testId = _ref.testId,
|
|
60
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
53
61
|
return (0, _core.jsx)("div", (0, _extends2.default)({
|
|
54
62
|
css: baseStyles,
|
|
63
|
+
"data-testid": testId,
|
|
55
64
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
56
65
|
backgroundColor: bgColor,
|
|
57
66
|
borderRadius: radius ? "".concat(radius, "px") : undefined
|
|
58
|
-
})
|
|
67
|
+
}) // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
68
|
+
|
|
59
69
|
}, props), children);
|
|
60
70
|
};
|
|
61
71
|
/**
|
|
@@ -70,10 +80,12 @@ var Base = function Base(_ref) {
|
|
|
70
80
|
var TargetInner = function TargetInner(_ref2) {
|
|
71
81
|
var children = _ref2.children,
|
|
72
82
|
pulse = _ref2.pulse,
|
|
73
|
-
props = (0, _objectWithoutProperties2.default)(_ref2,
|
|
74
|
-
return (
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
84
|
+
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
85
|
+
(0, _core.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
86
|
+
css: [pulse && animationStyles]
|
|
87
|
+
}), children)
|
|
88
|
+
);
|
|
77
89
|
};
|
|
78
90
|
|
|
79
91
|
exports.TargetInner = TargetInner;
|
|
@@ -114,10 +126,16 @@ exports.TargetOverlay = TargetOverlay;
|
|
|
114
126
|
|
|
115
127
|
var Pulse = function Pulse(_ref3) {
|
|
116
128
|
var children = _ref3.children,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
129
|
+
_ref3$pulse = _ref3.pulse,
|
|
130
|
+
pulse = _ref3$pulse === void 0 ? true : _ref3$pulse,
|
|
131
|
+
testId = _ref3.testId,
|
|
132
|
+
props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
|
|
133
|
+
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
134
|
+
(0, _core.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
135
|
+
css: [pulse && animationStyles],
|
|
136
|
+
testId: testId
|
|
137
|
+
}), children)
|
|
138
|
+
);
|
|
121
139
|
};
|
|
122
140
|
|
|
123
141
|
exports.Pulse = Pulse;
|
|
@@ -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,10 +41,10 @@ class SpotlightCard extends React.Component {
|
|
|
41
41
|
} = parent({});
|
|
42
42
|
return theme(() => ({ ...others,
|
|
43
43
|
container: {
|
|
44
|
-
background: `var(--ds-background-
|
|
45
|
-
color: `var(--ds-text-
|
|
44
|
+
background: `var(--ds-background-discovery-bold, ${P300})`,
|
|
45
|
+
color: `var(--ds-text-inverse, ${N0})`,
|
|
46
46
|
width: `${Math.min(Math.max(width, 160), 600)}px`,
|
|
47
|
-
boxShadow: isFlat ? undefined : `var(--ds-
|
|
47
|
+
boxShadow: isFlat ? undefined : `var(--ds-shadow-raised, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
48
48
|
...container
|
|
49
49
|
}
|
|
50
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.3.
|
|
10
|
+
const packageVersion = "10.3.5";
|
|
11
11
|
|
|
12
12
|
class SpotlightDialog extends Component {
|
|
13
13
|
constructor(...args) {
|
|
@@ -2,26 +2,26 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
2
2
|
const spotlightTheme = {
|
|
3
3
|
default: {
|
|
4
4
|
background: {
|
|
5
|
-
default: `var(--ds-background-
|
|
6
|
-
hover: `var(--ds-background-
|
|
7
|
-
active: `var(--ds-background-
|
|
5
|
+
default: `var(--ds-background-neutral, ${colors.P400})`,
|
|
6
|
+
hover: `var(--ds-background-neutral-hovered, ${colors.P200})`,
|
|
7
|
+
active: `var(--ds-background-neutral-pressed, ${colors.P500})`,
|
|
8
8
|
disabled: `var(--ds-background-disabled, ${colors.P400})`,
|
|
9
|
-
selected: `var(--ds-background-
|
|
10
|
-
focus: `var(--ds-background-
|
|
9
|
+
selected: `var(--ds-background-neutral-pressed, ${colors.R500})`,
|
|
10
|
+
focus: `var(--ds-background-neutral, ${colors.P400})`
|
|
11
11
|
},
|
|
12
12
|
boxShadow: {
|
|
13
|
-
focus: `0 0 0 2px ${`var(--ds-
|
|
13
|
+
focus: `0 0 0 2px ${`var(--ds-icon-discovery, ${colors.P100})`}`
|
|
14
14
|
},
|
|
15
15
|
color: {
|
|
16
|
-
default: `var(--ds-text-
|
|
17
|
-
hover: `var(--ds-text-
|
|
18
|
-
active: `var(--ds-text-
|
|
16
|
+
default: `var(--ds-text-inverse, ${colors.N0})`,
|
|
17
|
+
hover: `var(--ds-text-inverse, ${colors.N0})`,
|
|
18
|
+
active: `var(--ds-text-inverse, ${colors.N0})`,
|
|
19
19
|
disabled: {
|
|
20
20
|
light: `var(--ds-text-disabled, ${colors.N0})`,
|
|
21
21
|
dark: `var(--ds-text-disabled, ${colors.DN30})`
|
|
22
22
|
},
|
|
23
|
-
selected: `var(--ds-text-
|
|
24
|
-
focus: `var(--ds-text-
|
|
23
|
+
selected: `var(--ds-text-inverse, ${colors.N0})`,
|
|
24
|
+
focus: `var(--ds-text-inverse, ${colors.N0})`
|
|
25
25
|
},
|
|
26
26
|
outline: {
|
|
27
27
|
focus: 'none'
|
|
@@ -30,28 +30,28 @@ const spotlightTheme = {
|
|
|
30
30
|
subtle: {
|
|
31
31
|
background: {
|
|
32
32
|
default: 'none',
|
|
33
|
-
hover: `var(--ds-background-
|
|
34
|
-
active: `var(--ds-background-
|
|
33
|
+
hover: `var(--ds-background-neutral-hovered, ${colors.P200})`,
|
|
34
|
+
active: `var(--ds-background-neutral-pressed, ${colors.P500})`,
|
|
35
35
|
disabled: 'none',
|
|
36
36
|
selected: {
|
|
37
|
-
light: `var(--ds-background-
|
|
38
|
-
dark: `var(--ds-background-
|
|
37
|
+
light: `var(--ds-background-brand-hovered, ${colors.N700})`,
|
|
38
|
+
dark: `var(--ds-background-brand-hovered, ${colors.DN0})`
|
|
39
39
|
},
|
|
40
40
|
focusSelected: {
|
|
41
|
-
light: `var(--ds-background-
|
|
42
|
-
dark: `var(--ds-background-
|
|
41
|
+
light: `var(--ds-background-brand-hovered, ${colors.N700})`,
|
|
42
|
+
dark: `var(--ds-background-brand-hovered, ${colors.DN0})`
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
boxShadow: {
|
|
46
|
-
focus: `0 0 0 2px ${`var(--ds-
|
|
46
|
+
focus: `0 0 0 2px ${`var(--ds-icon-discovery, ${colors.P100})`}`
|
|
47
47
|
},
|
|
48
48
|
color: {
|
|
49
|
-
default: `var(--ds-text-
|
|
50
|
-
hover: `var(--ds-text-
|
|
51
|
-
active: `var(--ds-text-
|
|
49
|
+
default: `var(--ds-text-inverse, ${colors.N0})`,
|
|
50
|
+
hover: `var(--ds-text-inverse, ${colors.N0})`,
|
|
51
|
+
active: `var(--ds-text-inverse, ${colors.N0})`,
|
|
52
52
|
disabled: `var(--ds-text-disabled, ${colors.N0})`,
|
|
53
|
-
selected: `var(--ds-text-
|
|
54
|
-
focus: `var(--ds-text-
|
|
53
|
+
selected: `var(--ds-text-inverse, ${colors.N0})`,
|
|
54
|
+
focus: `var(--ds-text-inverse, ${colors.N0})`
|
|
55
55
|
},
|
|
56
56
|
outline: {
|
|
57
57
|
focus: 'none'
|
|
@@ -65,45 +65,45 @@ const spotlightTheme = {
|
|
|
65
65
|
active: 'none'
|
|
66
66
|
},
|
|
67
67
|
boxShadow: {
|
|
68
|
-
focus: `0 0 0 2px ${`var(--ds-
|
|
68
|
+
focus: `0 0 0 2px ${`var(--ds-icon-discovery, ${colors.P100})`}`
|
|
69
69
|
},
|
|
70
70
|
color: {
|
|
71
|
-
default: `var(--ds-text-
|
|
72
|
-
hover: `var(--ds-text-
|
|
73
|
-
active: `var(--ds-text-
|
|
71
|
+
default: `var(--ds-text-inverse, ${colors.N0})`,
|
|
72
|
+
hover: `var(--ds-text-inverse, ${colors.P75})`,
|
|
73
|
+
active: `var(--ds-text-inverse, ${colors.P100})`,
|
|
74
74
|
disabled: `var(--ds-text-discovery, ${colors.P500})`,
|
|
75
|
-
selected: `var(--ds-text-
|
|
76
|
-
focus: `var(--ds-text-
|
|
75
|
+
selected: `var(--ds-text-brand, ${colors.N0})`,
|
|
76
|
+
focus: `var(--ds-text-inverse, ${colors.N0})`
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
const modalTheme = {
|
|
81
81
|
primary: {
|
|
82
82
|
background: {
|
|
83
|
-
default: `var(--ds-background-
|
|
84
|
-
hover: `var(--ds-background-
|
|
85
|
-
active: `var(--ds-background-
|
|
83
|
+
default: `var(--ds-background-discovery-bold, ${colors.P400})`,
|
|
84
|
+
hover: `var(--ds-background-discovery-bold-hovered, ${colors.P200})`,
|
|
85
|
+
active: `var(--ds-background-discovery-bold-pressed, ${colors.P500})`,
|
|
86
86
|
disabled: {
|
|
87
87
|
light: `var(--ds-background-disabled, ${colors.N30})`,
|
|
88
88
|
dark: `var(--ds-background-disabled, ${colors.DN70})`
|
|
89
89
|
},
|
|
90
|
-
selected: `var(--ds-background-
|
|
91
|
-
focus: `var(--ds-background-
|
|
90
|
+
selected: `var(--ds-background-brand-hovered, ${colors.R500})`,
|
|
91
|
+
focus: `var(--ds-background-discovery-bold-hovered, ${colors.P400})`
|
|
92
92
|
},
|
|
93
93
|
boxShadow: {
|
|
94
94
|
focus: {
|
|
95
|
-
light: `0 0 0 2px ${`var(--ds-
|
|
96
|
-
dark: `0 0 0 2px ${`var(--ds-
|
|
95
|
+
light: `0 0 0 2px ${`var(--ds-icon-discovery, ${colors.P100})`}`,
|
|
96
|
+
dark: `0 0 0 2px ${`var(--ds-icon-discovery, ${colors.P100})`}`
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
color: {
|
|
100
|
-
default: `var(--ds-text-
|
|
100
|
+
default: `var(--ds-text-inverse, ${colors.N0})`,
|
|
101
101
|
disabled: {
|
|
102
102
|
light: `var(--ds-text-disabled, ${colors.N0})`,
|
|
103
103
|
dark: `var(--ds-text-disabled, ${colors.DN30})`
|
|
104
104
|
},
|
|
105
|
-
selected: `var(--ds-text-
|
|
106
|
-
focus: `var(--ds-text-
|
|
105
|
+
selected: `var(--ds-text-brand, ${colors.N0})`,
|
|
106
|
+
focus: `var(--ds-text-inverse, ${colors.N0})`
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
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: `var(--ds-
|
|
8
|
-
dark: `var(--ds-
|
|
7
|
+
light: `var(--ds-blanket, ${N100A})`,
|
|
8
|
+
dark: `var(--ds-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 = `var(--ds-overlay, ${`0 0 0 2px ${P300}`})`;
|
|
9
|
+
const baseShadow = `var(--ds-shadow-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,13 +32,16 @@ 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
|
|
39
|
-
}
|
|
43
|
+
} // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
44
|
+
|
|
40
45
|
}, props), children);
|
|
41
46
|
/**
|
|
42
47
|
* __Target inner__
|
|
@@ -51,7 +56,8 @@ export const TargetInner = ({
|
|
|
51
56
|
children,
|
|
52
57
|
pulse,
|
|
53
58
|
...props
|
|
54
|
-
}) =>
|
|
59
|
+
}) => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
60
|
+
jsx(Base, _extends({}, props, {
|
|
55
61
|
css: [pulse && animationStyles]
|
|
56
62
|
}), children);
|
|
57
63
|
const targetOverlayStyles = css({
|
|
@@ -86,7 +92,11 @@ export const TargetOverlay = props => jsx("div", _extends({}, props, {
|
|
|
86
92
|
|
|
87
93
|
export const Pulse = ({
|
|
88
94
|
children,
|
|
95
|
+
pulse = true,
|
|
96
|
+
testId,
|
|
89
97
|
...props
|
|
90
|
-
}) =>
|
|
91
|
-
|
|
98
|
+
}) => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
99
|
+
jsx(Base, _extends({}, props, {
|
|
100
|
+
css: [pulse && animationStyles],
|
|
101
|
+
testId: testId
|
|
92
102
|
}), children);
|
package/dist/es2019/version.json
CHANGED
|
@@ -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
|
import React from 'react';
|
|
8
8
|
import { Transition } from 'react-transition-group';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children", "theme"],
|
|
4
|
+
_excluded2 = ["text", "key"];
|
|
3
5
|
|
|
4
6
|
/** @jsx jsx */
|
|
5
7
|
import React from 'react';
|
|
@@ -25,7 +27,7 @@ var darkH600Styles = css(h600({
|
|
|
25
27
|
var Container = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26
28
|
var children = _ref.children,
|
|
27
29
|
theme = _ref.theme,
|
|
28
|
-
props = _objectWithoutProperties(_ref,
|
|
30
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
|
|
30
32
|
return (// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
31
33
|
jsx("div", _extends({
|
|
@@ -128,7 +130,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
128
130
|
}, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(function (_ref6, idx) {
|
|
129
131
|
var text = _ref6.text,
|
|
130
132
|
key = _ref6.key,
|
|
131
|
-
rest = _objectWithoutProperties(_ref6,
|
|
133
|
+
rest = _objectWithoutProperties(_ref6, _excluded2);
|
|
132
134
|
|
|
133
135
|
return jsx(DialogActionItem, {
|
|
134
136
|
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
@@ -7,6 +7,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
var _excluded = ["text", "key"],
|
|
11
|
+
_excluded2 = ["actions", "children", "heading"];
|
|
10
12
|
|
|
11
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); }; }
|
|
12
14
|
|
|
@@ -75,7 +77,7 @@ var OnboardingModal = /*#__PURE__*/function (_Component) {
|
|
|
75
77
|
}, actionList.map(function (_ref, idx) {
|
|
76
78
|
var text = _ref.text,
|
|
77
79
|
key = _ref.key,
|
|
78
|
-
rest = _objectWithoutProperties(_ref,
|
|
80
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
79
81
|
|
|
80
82
|
var variant = idx ? 'subtle-link' : 'primary';
|
|
81
83
|
return jsx(ModalActionItem, {
|
|
@@ -100,7 +102,7 @@ var OnboardingModal = /*#__PURE__*/function (_Component) {
|
|
|
100
102
|
actions = _this$props.actions,
|
|
101
103
|
children = _this$props.children,
|
|
102
104
|
heading = _this$props.heading,
|
|
103
|
-
props = _objectWithoutProperties(_this$props,
|
|
105
|
+
props = _objectWithoutProperties(_this$props, _excluded2);
|
|
104
106
|
|
|
105
107
|
var Header = this.headerComponent(this.props);
|
|
106
108
|
var Footer = this.footerComponent(this.props);
|
|
@@ -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
|
|
|
@@ -63,15 +64,15 @@ var SpotlightCard = /*#__PURE__*/function (_React$Component) {
|
|
|
63
64
|
theme: function theme(parent) {
|
|
64
65
|
var _parent = parent({}),
|
|
65
66
|
container = _parent.container,
|
|
66
|
-
others = _objectWithoutProperties(_parent,
|
|
67
|
+
others = _objectWithoutProperties(_parent, _excluded);
|
|
67
68
|
|
|
68
69
|
return _theme(function () {
|
|
69
70
|
return _objectSpread(_objectSpread({}, others), {}, {
|
|
70
71
|
container: _objectSpread({
|
|
71
|
-
background: "var(--ds-background-
|
|
72
|
-
color: "var(--ds-text-
|
|
72
|
+
background: "var(--ds-background-discovery-bold, ".concat(P300, ")"),
|
|
73
|
+
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
73
74
|
width: "".concat(Math.min(Math.max(width, 160), 600), "px"),
|
|
74
|
-
boxShadow: isFlat ? undefined : "var(--ds-
|
|
75
|
+
boxShadow: isFlat ? undefined : "var(--ds-shadow-raised, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")
|
|
75
76
|
}, container)
|
|
76
77
|
});
|
|
77
78
|
}, {});
|
|
@@ -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.3.
|
|
27
|
+
var packageVersion = "10.3.5";
|
|
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,
|