@atlaskit/onboarding 10.5.3 → 10.6.0
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 +17 -0
- package/dist/cjs/components/clone.js +1 -0
- package/dist/cjs/components/modal.js +8 -8
- package/dist/cjs/components/spotlight-card.js +18 -18
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/blanket.js +3 -3
- package/dist/cjs/styled/dialog.js +7 -7
- package/dist/cjs/styled/modal.js +14 -14
- package/dist/cjs/styled/target.js +9 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/clone.js +1 -0
- package/dist/es2019/components/modal.js +1 -1
- package/dist/es2019/components/spotlight-card.js +1 -1
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/blanket.js +1 -1
- package/dist/es2019/styled/dialog.js +1 -1
- package/dist/es2019/styled/modal.js +1 -1
- package/dist/es2019/styled/target.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/clone.js +1 -0
- package/dist/esm/components/modal.js +1 -1
- package/dist/esm/components/spotlight-card.js +1 -1
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/blanket.js +1 -1
- package/dist/esm/styled/dialog.js +1 -1
- package/dist/esm/styled/modal.js +1 -1
- package/dist/esm/styled/target.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/modal.d.ts +4 -3
- package/dist/types/components/spotlight-dialog.d.ts +1 -1
- package/dist/types-ts4.0/components/animation.d.ts +15 -0
- package/dist/types-ts4.0/components/clone.d.ts +50 -0
- package/dist/types-ts4.0/components/index.d.ts +9 -0
- package/dist/types-ts4.0/components/modal.d.ts +50 -0
- package/dist/types-ts4.0/components/spotlight-card.d.ts +81 -0
- package/dist/types-ts4.0/components/spotlight-dialog.d.ts +61 -0
- package/dist/types-ts4.0/components/spotlight-inner.d.ts +54 -0
- package/dist/types-ts4.0/components/spotlight-manager.d.ts +66 -0
- package/dist/types-ts4.0/components/spotlight-target.d.ts +22 -0
- package/dist/types-ts4.0/components/spotlight-transition.d.ts +43 -0
- package/dist/types-ts4.0/components/spotlight.d.ts +96 -0
- package/dist/types-ts4.0/components/theme.d.ts +10 -0
- package/dist/types-ts4.0/components/use-spotlight.d.ts +6 -0
- package/dist/types-ts4.0/components/value-changed.d.ts +11 -0
- package/dist/types-ts4.0/index.d.ts +14 -0
- package/dist/types-ts4.0/styled/blanket.d.ts +18 -0
- package/dist/types-ts4.0/styled/dialog.d.ts +25 -0
- package/dist/types-ts4.0/styled/modal.d.ts +36 -0
- package/dist/types-ts4.0/styled/target.d.ts +40 -0
- package/dist/types-ts4.0/types.d.ts +8 -0
- package/dist/types-ts4.0/utils/use-element-box.d.ts +23 -0
- package/package.json +14 -7
- package/report.api.md +68 -34
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e0015d4e201`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0015d4e201) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [`05efb20bca8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05efb20bca8) - Fixes an issue with the Spotlight target element height when this is determined by a parent element.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 10.5.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
19
|
+
|
|
3
20
|
## 10.5.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
29
29
|
|
|
30
30
|
var _react = require("react");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
34
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
35
35
|
|
|
@@ -79,7 +79,7 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
79
79
|
src = props.image;
|
|
80
80
|
|
|
81
81
|
var ImageElement = function ImageElement() {
|
|
82
|
-
return (0,
|
|
82
|
+
return (0, _react2.jsx)(_modal.ModalImage, {
|
|
83
83
|
src: src,
|
|
84
84
|
alt: ""
|
|
85
85
|
});
|
|
@@ -94,18 +94,18 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
94
94
|
experimental_shouldShowPrimaryButtonOnRight = _props$experimental_s === void 0 ? false : _props$experimental_s;
|
|
95
95
|
|
|
96
96
|
var ActionsElement = function ActionsElement() {
|
|
97
|
-
return actionList ? (0,
|
|
97
|
+
return actionList ? (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
|
|
98
98
|
value: _theme.modalButtonTheme
|
|
99
|
-
}, (0,
|
|
99
|
+
}, (0, _react2.jsx)(_modal.ModalActionContainer, {
|
|
100
100
|
shouldReverseButtonOrder: experimental_shouldShowPrimaryButtonOnRight
|
|
101
101
|
}, actionList.map(function (_ref, idx) {
|
|
102
102
|
var text = _ref.text,
|
|
103
103
|
key = _ref.key,
|
|
104
104
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
105
105
|
var variant = idx ? 'subtle-link' : 'primary';
|
|
106
|
-
return (0,
|
|
106
|
+
return (0, _react2.jsx)(_modal.ModalActionItem, {
|
|
107
107
|
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
108
|
-
}, (0,
|
|
108
|
+
}, (0, _react2.jsx)(_customThemeButton.default, (0, _extends2.default)({
|
|
109
109
|
appearance: variant,
|
|
110
110
|
autoFocus: !idx
|
|
111
111
|
}, rest), text));
|
|
@@ -127,12 +127,12 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
127
127
|
props = (0, _objectWithoutProperties2.default)(_this$props, _excluded2);
|
|
128
128
|
var Header = this.headerComponent(this.props);
|
|
129
129
|
var Footer = this.footerComponent(this.props);
|
|
130
|
-
return (0,
|
|
130
|
+
return (0, _react2.jsx)(_modalDialog.default, (0, _extends2.default)({
|
|
131
131
|
autoFocus: true,
|
|
132
132
|
shouldScrollInViewport: true,
|
|
133
133
|
shouldCloseOnOverlayClick: false,
|
|
134
134
|
shouldCloseOnEscapePress: false
|
|
135
|
-
}, props), (0,
|
|
135
|
+
}, props), (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(_modal.ModalBody, null, heading && (0, _react2.jsx)(_modal.ModalHeading, null, heading), children)), (0, _react2.jsx)(Footer, null));
|
|
136
136
|
}
|
|
137
137
|
}]);
|
|
138
138
|
return BenefitsModal;
|
|
@@ -13,7 +13,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
19
19
|
|
|
@@ -36,12 +36,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
38
|
var gridSize = (0, _constants.gridSize)();
|
|
39
|
-
var bodyStyles = (0,
|
|
39
|
+
var bodyStyles = (0, _react2.css)({
|
|
40
40
|
display: 'flex',
|
|
41
41
|
padding: "".concat(gridSize * 2, "px ").concat(gridSize * 2.5, "px"),
|
|
42
42
|
flexDirection: 'column'
|
|
43
43
|
});
|
|
44
|
-
var defaultHeaderStyles = (0,
|
|
44
|
+
var defaultHeaderStyles = (0, _react2.css)({
|
|
45
45
|
display: 'flex',
|
|
46
46
|
paddingBottom: "".concat(gridSize, "px"),
|
|
47
47
|
alignItems: 'baseline',
|
|
@@ -50,12 +50,12 @@ var defaultHeaderStyles = (0, _core.css)({
|
|
|
50
50
|
|
|
51
51
|
var DefaultHeader = function DefaultHeader(_ref) {
|
|
52
52
|
var children = _ref.children;
|
|
53
|
-
return (0,
|
|
53
|
+
return (0, _react2.jsx)("div", {
|
|
54
54
|
css: defaultHeaderStyles
|
|
55
55
|
}, children);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
var defaultFooterStyles = (0,
|
|
58
|
+
var defaultFooterStyles = (0, _react2.css)({
|
|
59
59
|
display: 'flex',
|
|
60
60
|
paddingTop: "".concat(gridSize, "px"),
|
|
61
61
|
alignItems: 'center',
|
|
@@ -64,12 +64,12 @@ var defaultFooterStyles = (0, _core.css)({
|
|
|
64
64
|
|
|
65
65
|
var DefaultFooter = function DefaultFooter(_ref2) {
|
|
66
66
|
var children = _ref2.children;
|
|
67
|
-
return (0,
|
|
67
|
+
return (0, _react2.jsx)("div", {
|
|
68
68
|
css: defaultFooterStyles
|
|
69
69
|
}, children);
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var containerStyles = (0,
|
|
72
|
+
var containerStyles = (0, _react2.css)({
|
|
73
73
|
height: 'fit-content',
|
|
74
74
|
zIndex: _constants.layers.spotlight() + 1,
|
|
75
75
|
background: "var(--ds-background-discovery-bold, ".concat(_colors.P300, ")"),
|
|
@@ -77,7 +77,7 @@ var containerStyles = (0, _core.css)({
|
|
|
77
77
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
78
78
|
overflow: 'auto'
|
|
79
79
|
});
|
|
80
|
-
var containerShadowStyles = (0,
|
|
80
|
+
var containerShadowStyles = (0, _react2.css)({
|
|
81
81
|
boxShadow: "var(--ds-shadow-raised, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")
|
|
82
82
|
});
|
|
83
83
|
/**
|
|
@@ -122,13 +122,13 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
122
122
|
Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
|
|
123
123
|
_components$Footer = components.Footer,
|
|
124
124
|
Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
|
|
125
|
-
return (0,
|
|
125
|
+
return (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
|
|
126
126
|
value: _theme.spotlightButtonTheme
|
|
127
|
-
}, (0,
|
|
127
|
+
}, (0, _react2.jsx)(Theme.Provider, {
|
|
128
128
|
value: theme
|
|
129
|
-
}, (0,
|
|
129
|
+
}, (0, _react2.jsx)(Theme.Consumer, null, function (_ref3) {
|
|
130
130
|
var container = _ref3.container;
|
|
131
|
-
return (0,
|
|
131
|
+
return (0, _react2.jsx)("div", {
|
|
132
132
|
css: [containerStyles, !isFlat && containerShadowStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
133
133
|
container],
|
|
134
134
|
style: {
|
|
@@ -136,22 +136,22 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
136
136
|
},
|
|
137
137
|
ref: ref || innerRef,
|
|
138
138
|
"data-testid": testId
|
|
139
|
-
}, typeof image === 'string' ? (0,
|
|
139
|
+
}, typeof image === 'string' ? (0, _react2.jsx)("img", {
|
|
140
140
|
src: image,
|
|
141
141
|
alt: ""
|
|
142
|
-
}) : image, (0,
|
|
142
|
+
}) : image, (0, _react2.jsx)("div", {
|
|
143
143
|
css: bodyStyles
|
|
144
|
-
}, heading || headingAfterElement ? (0,
|
|
144
|
+
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
|
|
145
145
|
color: "inverse",
|
|
146
146
|
level: "h600",
|
|
147
147
|
as: "h4"
|
|
148
|
-
}, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? (0,
|
|
148
|
+
}, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? (0, _react2.jsx)(Footer, null, actionsBeforeElement || (0, _react2.jsx)("span", null), (0, _react2.jsx)(_dialog.DialogActionItemContainer, null, actions.map(function (_ref4, idx) {
|
|
149
149
|
var text = _ref4.text,
|
|
150
150
|
key = _ref4.key,
|
|
151
151
|
rest = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
152
|
-
return (0,
|
|
152
|
+
return (0, _react2.jsx)(_dialog.DialogActionItem, {
|
|
153
153
|
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
154
|
-
}, (0,
|
|
154
|
+
}, (0, _react2.jsx)(_customThemeButton.default, rest, text));
|
|
155
155
|
}))) : null));
|
|
156
156
|
})));
|
|
157
157
|
});
|
|
@@ -50,7 +50,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
50
50
|
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; } }
|
|
51
51
|
|
|
52
52
|
var packageName = "@atlaskit/onboarding";
|
|
53
|
-
var packageVersion = "10.
|
|
53
|
+
var packageVersion = "10.6.0";
|
|
54
54
|
|
|
55
55
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
56
56
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ var backgroundColor = (0, _components.themed)({
|
|
|
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
|
|
|
30
|
-
var blanketStyles = (0,
|
|
30
|
+
var blanketStyles = (0, _react.css)({
|
|
31
31
|
position: 'fixed',
|
|
32
32
|
zIndex: _constants.layers.spotlight(),
|
|
33
33
|
top: 0,
|
|
@@ -50,7 +50,7 @@ var blanketStyles = (0, _core.css)({
|
|
|
50
50
|
*/
|
|
51
51
|
var Blanket = function Blanket(props) {
|
|
52
52
|
var theme = (0, _components.useGlobalTheme)();
|
|
53
|
-
return (0,
|
|
53
|
+
return (0, _react.jsx)("div", {
|
|
54
54
|
css: blanketStyles,
|
|
55
55
|
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
56
56
|
backgroundColor: props.isTinted ? backgroundColor({
|
|
@@ -11,17 +11,17 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
18
18
|
var _excluded = ["alt"];
|
|
19
19
|
var gridSize = (0, _constants.gridSize)();
|
|
20
|
-
var imageStyles = (0,
|
|
20
|
+
var imageStyles = (0, _react.css)({
|
|
21
21
|
maxWidth: '100%',
|
|
22
22
|
height: 'auto'
|
|
23
23
|
});
|
|
24
|
-
var actionItemContainerStyles = (0,
|
|
24
|
+
var actionItemContainerStyles = (0, _react.css)({
|
|
25
25
|
display: 'flex',
|
|
26
26
|
margin: "0 -".concat(gridSize / 2, "px"),
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@ var actionItemContainerStyles = (0, _core.css)({
|
|
|
29
29
|
right, but keep it's position as the first focusable element in the DOM */
|
|
30
30
|
flexDirection: 'row-reverse'
|
|
31
31
|
});
|
|
32
|
-
var actionItemStyles = (0,
|
|
32
|
+
var actionItemStyles = (0, _react.css)({
|
|
33
33
|
margin: "0 ".concat(gridSize / 2, "px")
|
|
34
34
|
});
|
|
35
35
|
/**
|
|
@@ -43,7 +43,7 @@ var actionItemStyles = (0, _core.css)({
|
|
|
43
43
|
var DialogImage = function DialogImage(_ref) {
|
|
44
44
|
var alt = _ref.alt,
|
|
45
45
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
46
|
-
return (0,
|
|
46
|
+
return (0, _react.jsx)("img", (0, _extends2.default)({
|
|
47
47
|
css: imageStyles,
|
|
48
48
|
alt: alt
|
|
49
49
|
}, props));
|
|
@@ -61,7 +61,7 @@ exports.DialogImage = DialogImage;
|
|
|
61
61
|
|
|
62
62
|
var DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
|
|
63
63
|
var children = _ref2.children;
|
|
64
|
-
return (0,
|
|
64
|
+
return (0, _react.jsx)("div", {
|
|
65
65
|
css: actionItemContainerStyles
|
|
66
66
|
}, children);
|
|
67
67
|
};
|
|
@@ -78,7 +78,7 @@ exports.DialogActionItemContainer = DialogActionItemContainer;
|
|
|
78
78
|
|
|
79
79
|
var DialogActionItem = function DialogActionItem(_ref3) {
|
|
80
80
|
var children = _ref3.children;
|
|
81
|
-
return (0,
|
|
81
|
+
return (0, _react.jsx)("div", {
|
|
82
82
|
css: actionItemStyles
|
|
83
83
|
}, children);
|
|
84
84
|
};
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ModalImage = exports.ModalHeading = exports.ModalBody = exports.ModalActionItem = exports.ModalActionContainer = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _components = require("@atlaskit/theme/components");
|
|
11
11
|
|
|
@@ -18,27 +18,27 @@ var gridSize = (0, _constants.gridSize)();
|
|
|
18
18
|
var borderRadius = (0, _constants.borderRadius)();
|
|
19
19
|
var actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
20
20
|
|
|
21
|
-
var lightH600Styles = (0,
|
|
21
|
+
var lightH600Styles = (0, _react.css)((0, _typography.h600)({
|
|
22
22
|
theme: {
|
|
23
23
|
mode: 'light'
|
|
24
24
|
}
|
|
25
25
|
})); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
26
26
|
|
|
27
|
-
var darkH600Styles = (0,
|
|
27
|
+
var darkH600Styles = (0, _react.css)((0, _typography.h600)({
|
|
28
28
|
theme: {
|
|
29
29
|
mode: 'dark'
|
|
30
30
|
}
|
|
31
31
|
}));
|
|
32
|
-
var modalBodyStyles = (0,
|
|
32
|
+
var modalBodyStyles = (0, _react.css)({
|
|
33
33
|
padding: '40px 20px',
|
|
34
34
|
textAlign: 'center'
|
|
35
35
|
}); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
36
36
|
|
|
37
|
-
var modalHeadingStyles = (0,
|
|
37
|
+
var modalHeadingStyles = (0, _react.css)({
|
|
38
38
|
marginBottom: "".concat(gridSize, "px"),
|
|
39
39
|
color: 'inherit'
|
|
40
40
|
});
|
|
41
|
-
var modalImageStyles = (0,
|
|
41
|
+
var modalImageStyles = (0, _react.css)({
|
|
42
42
|
width: '100%',
|
|
43
43
|
height: 'auto',
|
|
44
44
|
borderTopLeftRadius: "".concat(borderRadius, "px"),
|
|
@@ -47,17 +47,17 @@ var modalImageStyles = (0, _core.css)({
|
|
|
47
47
|
borderRadius: 0
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
var modalActionContainerStyles = (0,
|
|
50
|
+
var modalActionContainerStyles = (0, _react.css)({
|
|
51
51
|
display: 'flex',
|
|
52
52
|
padding: "0 40px ".concat(40 - actionItemBottomMargin, "px"),
|
|
53
53
|
justifyContent: 'center',
|
|
54
54
|
flexDirection: 'row',
|
|
55
55
|
flexFlow: 'wrap'
|
|
56
56
|
});
|
|
57
|
-
var modalActionContainerReversedStyles = (0,
|
|
57
|
+
var modalActionContainerReversedStyles = (0, _react.css)({
|
|
58
58
|
flexDirection: 'row-reverse'
|
|
59
59
|
});
|
|
60
|
-
var modalActionItemStyles = (0,
|
|
60
|
+
var modalActionItemStyles = (0, _react.css)({
|
|
61
61
|
margin: "0 ".concat(gridSize / 2, "px ").concat(actionItemBottomMargin, "px")
|
|
62
62
|
});
|
|
63
63
|
/**
|
|
@@ -68,7 +68,7 @@ var modalActionItemStyles = (0, _core.css)({
|
|
|
68
68
|
|
|
69
69
|
var ModalBody = function ModalBody(_ref) {
|
|
70
70
|
var children = _ref.children;
|
|
71
|
-
return (0,
|
|
71
|
+
return (0, _react.jsx)("div", {
|
|
72
72
|
css: modalBodyStyles
|
|
73
73
|
}, children);
|
|
74
74
|
};
|
|
@@ -87,7 +87,7 @@ var ModalHeading = function ModalHeading(_ref2) {
|
|
|
87
87
|
var _useGlobalTheme = (0, _components.useGlobalTheme)(),
|
|
88
88
|
mode = _useGlobalTheme.mode;
|
|
89
89
|
|
|
90
|
-
return (0,
|
|
90
|
+
return (0, _react.jsx)("h4", {
|
|
91
91
|
css: [mode === 'light' ? lightH600Styles : darkH600Styles, modalHeadingStyles]
|
|
92
92
|
}, children);
|
|
93
93
|
};
|
|
@@ -103,7 +103,7 @@ exports.ModalHeading = ModalHeading;
|
|
|
103
103
|
var ModalImage = function ModalImage(_ref3) {
|
|
104
104
|
var alt = _ref3.alt,
|
|
105
105
|
src = _ref3.src;
|
|
106
|
-
return (0,
|
|
106
|
+
return (0, _react.jsx)("img", {
|
|
107
107
|
css: modalImageStyles,
|
|
108
108
|
alt: alt,
|
|
109
109
|
src: src
|
|
@@ -121,7 +121,7 @@ exports.ModalImage = ModalImage;
|
|
|
121
121
|
var ModalActionContainer = function ModalActionContainer(_ref4) {
|
|
122
122
|
var children = _ref4.children,
|
|
123
123
|
shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
|
|
124
|
-
return (0,
|
|
124
|
+
return (0, _react.jsx)("div", {
|
|
125
125
|
css: [modalActionContainerStyles, shouldReverseButtonOrder && modalActionContainerReversedStyles]
|
|
126
126
|
}, children);
|
|
127
127
|
};
|
|
@@ -136,7 +136,7 @@ exports.ModalActionContainer = ModalActionContainer;
|
|
|
136
136
|
|
|
137
137
|
var ModalActionItem = function ModalActionItem(_ref5) {
|
|
138
138
|
var children = _ref5.children;
|
|
139
|
-
return (0,
|
|
139
|
+
return (0, _react.jsx)("div", {
|
|
140
140
|
css: modalActionItemStyles
|
|
141
141
|
}, children);
|
|
142
142
|
};
|
|
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
31
31
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
32
32
|
var baseShadow = "0 0 0 2px ".concat("var(--ds-border-discovery, ".concat(_colors.P300, ")"));
|
|
33
33
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
34
|
-
var pulseKeyframes = (0,
|
|
34
|
+
var pulseKeyframes = (0, _react.keyframes)({
|
|
35
35
|
'0%, 33%': {
|
|
36
36
|
boxShadow: "".concat(baseShadow, ", 0 0 0 ", "var(--ds-border-discovery, rgba(101, 84, 192, 1))")
|
|
37
37
|
},
|
|
@@ -42,12 +42,12 @@ var pulseKeyframes = (0, _core.keyframes)({
|
|
|
42
42
|
|
|
43
43
|
var pulseKeyframesName = pulseKeyframes.name;
|
|
44
44
|
exports.pulseKeyframesName = pulseKeyframesName;
|
|
45
|
-
var animationStyles = (0,
|
|
45
|
+
var animationStyles = (0, _react.css)({
|
|
46
46
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite")
|
|
47
47
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
48
48
|
// to body instead of nearest stacking context (Portal in our case).
|
|
49
49
|
|
|
50
|
-
var baseStyles = (0,
|
|
50
|
+
var baseStyles = (0, _react.css)({
|
|
51
51
|
zIndex: _constants.layers.spotlight() + 1
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -58,7 +58,7 @@ var Base = function Base(_ref) {
|
|
|
58
58
|
style = _ref.style,
|
|
59
59
|
testId = _ref.testId,
|
|
60
60
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
61
|
-
return (0,
|
|
61
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
62
62
|
css: baseStyles,
|
|
63
63
|
"data-testid": testId,
|
|
64
64
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
@@ -82,14 +82,14 @@ var TargetInner = function TargetInner(_ref2) {
|
|
|
82
82
|
pulse = _ref2.pulse,
|
|
83
83
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
84
84
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
85
|
-
(0,
|
|
85
|
+
(0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
86
86
|
css: [pulse && animationStyles]
|
|
87
87
|
}), children)
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
exports.TargetInner = TargetInner;
|
|
92
|
-
var targetOverlayStyles = (0,
|
|
92
|
+
var targetOverlayStyles = (0, _react.css)({
|
|
93
93
|
width: '100%',
|
|
94
94
|
height: '100%',
|
|
95
95
|
position: 'absolute',
|
|
@@ -106,7 +106,7 @@ var targetOverlayStyles = (0, _core.css)({
|
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
108
|
var TargetOverlay = function TargetOverlay(props) {
|
|
109
|
-
return (0,
|
|
109
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
|
|
110
110
|
css: targetOverlayStyles,
|
|
111
111
|
style: {
|
|
112
112
|
cursor: props.onClick ? 'pointer' : 'auto'
|
|
@@ -133,7 +133,7 @@ var Pulse = function Pulse(_ref3) {
|
|
|
133
133
|
testId = _ref3.testId,
|
|
134
134
|
props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
|
|
135
135
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
136
|
-
(0,
|
|
136
|
+
(0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
137
137
|
css: [pulse && animationStyles],
|
|
138
138
|
testId: testId
|
|
139
139
|
}), children)
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Component } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import Modal, { ModalBody } from '@atlaskit/modal-dialog';
|
|
9
9
|
import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
6
|
import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
|
|
@@ -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.
|
|
10
|
+
const packageVersion = "10.6.0";
|
|
11
11
|
|
|
12
12
|
class SpotlightDialog extends Component {
|
|
13
13
|
constructor(...args) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
4
4
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
5
5
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
const gridSize = getGridSize();
|
|
7
7
|
const imageStyles = css({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
4
4
|
import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
5
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx, keyframes } from '@emotion/
|
|
4
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
5
5
|
import { P300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
7
|
// NOTE:
|
package/dist/es2019/version.json
CHANGED
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
16
16
|
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
import { Component } from 'react';
|
|
19
|
-
import { jsx } from '@emotion/
|
|
19
|
+
import { jsx } from '@emotion/react';
|
|
20
20
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
21
21
|
import Modal, { ModalBody } from '@atlaskit/modal-dialog';
|
|
22
22
|
import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
|
|
@@ -3,7 +3,7 @@ var _excluded = ["text", "key"];
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import Heading from '@atlaskit/heading';
|
|
9
9
|
import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
|
|
@@ -22,7 +22,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
22
22
|
import SpotlightCard from './spotlight-card';
|
|
23
23
|
import ValueChanged from './value-changed';
|
|
24
24
|
var packageName = "@atlaskit/onboarding";
|
|
25
|
-
var packageVersion = "10.
|
|
25
|
+
var packageVersion = "10.6.0";
|
|
26
26
|
|
|
27
27
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
28
28
|
_inherits(SpotlightDialog, _Component);
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
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
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
10
10
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["alt"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
var gridSize = getGridSize();
|
|
9
9
|
var imageStyles = css({
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
4
4
|
import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
5
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
@@ -10,7 +10,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
10
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; }
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
import { css, jsx, keyframes } from '@emotion/
|
|
13
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
14
14
|
import { P300 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
16
16
|
// NOTE:
|