@atlaskit/onboarding 11.0.0 → 11.1.1

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 11.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58458) [`536478cdcf0b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/536478cdcf0b) - Tweaked ModalBody left and right padding to better align to the spacing scale.
8
+
9
+ ## 11.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#58176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58176) [`32032c9c1289`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32032c9c1289) - [ux] Fix spotlight padding and font style issues on tabs.
14
+
3
15
  ## 11.0.0
4
16
 
5
17
  ### Major Changes
@@ -7,9 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _target = require("../styled/target");
10
+ var computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
10
11
  function cloneAndOverrideStyles(node) {
11
12
  var shouldCloneChildren = true;
12
13
  var clonedNode = node.cloneNode(shouldCloneChildren);
14
+ var computedStyles = getComputedStyle(node);
15
+ computedStyleAttributesToClone.forEach(function (attribute) {
16
+ clonedNode.style[attribute] = computedStyles[attribute];
17
+ });
13
18
  clonedNode.style.margin = '0';
14
19
  clonedNode.style.position = 'static';
15
20
  // The target may have other transforms applied. Avoid unintended side effects
@@ -16,7 +16,6 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
16
16
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _react = require("react");
19
- var _react2 = require("@emotion/react");
20
19
  var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
21
20
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
22
21
  var _modal = require("../styled/modal");
@@ -26,7 +25,7 @@ var _excluded = ["text", "key"],
26
25
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
26
  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; }
28
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
29
- 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; } } /** @jsx jsx */
28
+ 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; } }
30
29
  // TODO: DSP-1250 - use a composable API consistent with normal modal dialog
31
30
  /**
32
31
  * __Benefits modal__
@@ -51,7 +50,7 @@ var BenefitsModal = exports.default = /*#__PURE__*/function (_Component) {
51
50
  var HeaderElement = props.header,
52
51
  src = props.image;
53
52
  var ImageElement = function ImageElement() {
54
- return (0, _react2.jsx)(_modal.ModalImage, {
53
+ return /*#__PURE__*/React.createElement(_modal.ModalImage, {
55
54
  src: src,
56
55
  alt: ""
57
56
  });
@@ -64,18 +63,18 @@ var BenefitsModal = exports.default = /*#__PURE__*/function (_Component) {
64
63
  _props$experimental_s = props.experimental_shouldShowPrimaryButtonOnRight,
65
64
  experimental_shouldShowPrimaryButtonOnRight = _props$experimental_s === void 0 ? false : _props$experimental_s;
66
65
  var ActionsElement = function ActionsElement() {
67
- return actionList ? (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
66
+ return actionList ? /*#__PURE__*/React.createElement(_customThemeButton.Theme.Provider, {
68
67
  value: _theme.modalButtonTheme
69
- }, (0, _react2.jsx)(_modal.ModalActionContainer, {
68
+ }, /*#__PURE__*/React.createElement(_modal.ModalActionContainer, {
70
69
  shouldReverseButtonOrder: experimental_shouldShowPrimaryButtonOnRight
71
70
  }, actionList.map(function (_ref, idx) {
72
71
  var text = _ref.text,
73
72
  key = _ref.key,
74
73
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
75
74
  var variant = idx ? 'subtle-link' : 'primary';
76
- return (0, _react2.jsx)(_modal.ModalActionItem, {
75
+ return /*#__PURE__*/React.createElement(_modal.ModalActionItem, {
77
76
  key: key || (typeof text === 'string' ? text : "".concat(idx))
78
- }, (0, _react2.jsx)(_customThemeButton.default, (0, _extends2.default)({
77
+ }, /*#__PURE__*/React.createElement(_customThemeButton.default, (0, _extends2.default)({
79
78
  appearance: variant,
80
79
  autoFocus: !idx
81
80
  }, rest), text));
@@ -95,12 +94,12 @@ var BenefitsModal = exports.default = /*#__PURE__*/function (_Component) {
95
94
  props = (0, _objectWithoutProperties2.default)(_this$props, _excluded2);
96
95
  var Header = this.headerComponent(this.props);
97
96
  var Footer = this.footerComponent(this.props);
98
- return (0, _react2.jsx)(_modalDialog.default, (0, _extends2.default)({
97
+ return /*#__PURE__*/React.createElement(_modalDialog.default, (0, _extends2.default)({
99
98
  autoFocus: true,
100
99
  shouldScrollInViewport: true,
101
100
  shouldCloseOnOverlayClick: false,
102
101
  shouldCloseOnEscapePress: false
103
- }, 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));
102
+ }, props), /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/React.createElement(_modal.ModalBody, null, heading && /*#__PURE__*/React.createElement(_modal.ModalHeading, null, heading), children)), /*#__PURE__*/React.createElement(Footer, null));
104
103
  }
105
104
  }]);
106
105
  return BenefitsModal;
@@ -16,7 +16,6 @@ var _constants = require("@atlaskit/theme/constants");
16
16
  var _dialog = require("../styled/dialog");
17
17
  var _theme = require("./theme");
18
18
  var _excluded = ["text", "key"];
19
- /** @jsx jsx */
20
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
20
  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; }
22
21
  var bodyStyles = (0, _react2.css)({
@@ -35,7 +34,7 @@ var defaultHeaderStyles = (0, _react2.css)({
35
34
  });
36
35
  var DefaultHeader = function DefaultHeader(_ref) {
37
36
  var children = _ref.children;
38
- return (0, _react2.jsx)("div", {
37
+ return /*#__PURE__*/React.createElement("div", {
39
38
  css: defaultHeaderStyles
40
39
  }, children);
41
40
  };
@@ -47,7 +46,7 @@ var defaultFooterStyles = (0, _react2.css)({
47
46
  });
48
47
  var DefaultFooter = function DefaultFooter(_ref2) {
49
48
  var children = _ref2.children;
50
- return (0, _react2.jsx)("div", {
49
+ return /*#__PURE__*/React.createElement("div", {
51
50
  css: defaultFooterStyles
52
51
  }, children);
53
52
  };
@@ -91,9 +90,9 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
91
90
  Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
92
91
  _components$Footer = components.Footer,
93
92
  Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
94
- return (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
93
+ return /*#__PURE__*/React.createElement(_customThemeButton.Theme.Provider, {
95
94
  value: _theme.spotlightButtonTheme
96
- }, (0, _react2.jsx)("div", {
95
+ }, /*#__PURE__*/React.createElement("div", {
97
96
  css: [containerStyles, !isFlat && containerShadowStyles],
98
97
  style: {
99
98
  minWidth: '160px',
@@ -102,24 +101,24 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
102
101
  },
103
102
  ref: ref || innerRef,
104
103
  "data-testid": testId
105
- }, typeof image === 'string' ? (0, _react2.jsx)("img", {
104
+ }, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
106
105
  css: imageStyles,
107
106
  src: image,
108
107
  alt: ""
109
- }) : image, (0, _react2.jsx)("div", {
108
+ }) : image, /*#__PURE__*/React.createElement("div", {
110
109
  css: bodyStyles
111
- }, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
110
+ }, heading || headingAfterElement ? /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(_heading.default, {
112
111
  id: headingId,
113
112
  color: "inverse",
114
113
  level: "h600",
115
114
  as: "h4"
116
- }, 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 (_ref3, idx) {
115
+ }, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? /*#__PURE__*/React.createElement(Footer, null, actionsBeforeElement || /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement(_dialog.DialogActionItemContainer, null, actions.map(function (_ref3, idx) {
117
116
  var text = _ref3.text,
118
117
  key = _ref3.key,
119
118
  rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
120
- return (0, _react2.jsx)(_dialog.DialogActionItem, {
119
+ return /*#__PURE__*/React.createElement(_dialog.DialogActionItem, {
121
120
  key: key || (typeof text === 'string' ? text : "".concat(idx))
122
- }, (0, _react2.jsx)(_customThemeButton.default, rest, text));
121
+ }, /*#__PURE__*/React.createElement(_customThemeButton.default, rest, text));
123
122
  }))) : null)));
124
123
  });
125
124
  SpotlightCard.displayName = 'SpotlightCard';
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
28
  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; } }
29
29
  var packageName = "@atlaskit/onboarding";
30
- var packageVersion = "11.0.0";
30
+ var packageVersion = "11.1.1";
31
31
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
32
32
  (0, _inherits2.default)(SpotlightDialog, _Component);
33
33
  var _super = _createSuper(SpotlightDialog);
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
11
  var _constants = require("@atlaskit/theme/constants");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  // IE11 and Edge: z-index needed because fixed position calculates z-index relative
15
15
  // to body instead of nearest stacking context (Portal in our case).
16
16
  var blanketStyles = (0, _react.css)({
@@ -31,7 +31,7 @@ var blanketStyles = (0, _react.css)({
31
31
  * @internal
32
32
  */
33
33
  var Blanket = function Blanket(props) {
34
- return (0, _react.jsx)("div", {
34
+ return /*#__PURE__*/React.createElement("div", {
35
35
  css: blanketStyles,
36
36
  style: _objectSpread(_objectSpread({}, props.style), {}, {
37
37
  backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(_colors.N100A, ")") : 'transparent'
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = require("@emotion/react");
11
11
  var _excluded = ["alt"];
12
- /** @jsx jsx */
13
12
  var imageStyles = (0, _react.css)({
14
13
  maxWidth: '100%',
15
14
  height: 'auto'
@@ -35,8 +34,9 @@ var DialogImage = exports.DialogImage = function DialogImage(_ref) {
35
34
  var alt = _ref.alt,
36
35
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
37
36
  return (
37
+ /*#__PURE__*/
38
38
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
39
- (0, _react.jsx)("img", (0, _extends2.default)({
39
+ React.createElement("img", (0, _extends2.default)({
40
40
  css: imageStyles,
41
41
  alt: alt
42
42
  }, props))
@@ -52,7 +52,7 @@ var DialogImage = exports.DialogImage = function DialogImage(_ref) {
52
52
  */
53
53
  var DialogActionItemContainer = exports.DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
54
54
  var children = _ref2.children;
55
- return (0, _react.jsx)("div", {
55
+ return /*#__PURE__*/React.createElement("div", {
56
56
  css: actionItemContainerStyles
57
57
  }, children);
58
58
  };
@@ -66,7 +66,7 @@ var DialogActionItemContainer = exports.DialogActionItemContainer = function Dia
66
66
  */
67
67
  var DialogActionItem = exports.DialogActionItem = function DialogActionItem(_ref3) {
68
68
  var children = _ref3.children;
69
- return (0, _react.jsx)("div", {
69
+ return /*#__PURE__*/React.createElement("div", {
70
70
  css: actionItemStyles
71
71
  }, children);
72
72
  };
@@ -7,10 +7,9 @@ exports.ModalImage = exports.ModalHeading = exports.ModalBody = exports.ModalAct
7
7
  var _react = require("@emotion/react");
8
8
  var _typography = require("@atlaskit/theme/typography");
9
9
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
10
- /** @jsx jsx */
11
10
 
12
11
  var modalBodyStyles = (0, _react.css)({
13
- padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-250, 20px)"),
12
+ padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-200, 16px)"),
14
13
  textAlign: 'center'
15
14
  });
16
15
 
@@ -53,7 +52,7 @@ var modalActionItemStyles = (0, _react.css)({
53
52
  */
54
53
  var ModalBody = exports.ModalBody = function ModalBody(_ref) {
55
54
  var children = _ref.children;
56
- return (0, _react.jsx)("div", {
55
+ return /*#__PURE__*/React.createElement("div", {
57
56
  css: modalBodyStyles
58
57
  }, children);
59
58
  };
@@ -65,7 +64,7 @@ var ModalBody = exports.ModalBody = function ModalBody(_ref) {
65
64
  */
66
65
  var ModalHeading = exports.ModalHeading = function ModalHeading(_ref2) {
67
66
  var children = _ref2.children;
68
- return (0, _react.jsx)("h4", {
67
+ return /*#__PURE__*/React.createElement("h4", {
69
68
  css: modalHeadingStyles
70
69
  }, children);
71
70
  };
@@ -78,7 +77,7 @@ var ModalHeading = exports.ModalHeading = function ModalHeading(_ref2) {
78
77
  var ModalImage = exports.ModalImage = function ModalImage(_ref3) {
79
78
  var alt = _ref3.alt,
80
79
  src = _ref3.src;
81
- return (0, _react.jsx)("img", {
80
+ return /*#__PURE__*/React.createElement("img", {
82
81
  css: modalImageStyles,
83
82
  alt: alt,
84
83
  src: src
@@ -93,7 +92,7 @@ var ModalImage = exports.ModalImage = function ModalImage(_ref3) {
93
92
  var ModalActionContainer = exports.ModalActionContainer = function ModalActionContainer(_ref4) {
94
93
  var children = _ref4.children,
95
94
  shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
96
- return (0, _react.jsx)("div", {
95
+ return /*#__PURE__*/React.createElement("div", {
97
96
  css: [modalActionContainerStyles, shouldReverseButtonOrder && modalActionContainerReversedStyles]
98
97
  }, children);
99
98
  };
@@ -105,7 +104,7 @@ var ModalActionContainer = exports.ModalActionContainer = function ModalActionCo
105
104
  */
106
105
  var ModalActionItem = exports.ModalActionItem = function ModalActionItem(_ref5) {
107
106
  var children = _ref5.children;
108
- return (0, _react.jsx)("div", {
107
+ return /*#__PURE__*/React.createElement("div", {
109
108
  css: modalActionItemStyles
110
109
  }, children);
111
110
  };
@@ -14,7 +14,6 @@ var _constants = require("@atlaskit/theme/constants");
14
14
  var _excluded = ["children", "bgColor", "radius", "style", "testId"],
15
15
  _excluded2 = ["children", "pulse"],
16
16
  _excluded3 = ["children", "pulse", "testId"];
17
- /** @jsx jsx */
18
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
19
  // NOTE:
@@ -47,7 +46,7 @@ var Base = function Base(_ref) {
47
46
  style = _ref.style,
48
47
  testId = _ref.testId,
49
48
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
50
- return (0, _react.jsx)("div", (0, _extends2.default)({
49
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
51
50
  css: baseStyles,
52
51
  "data-testid": testId,
53
52
  style: _objectSpread(_objectSpread({}, style), {}, {
@@ -70,8 +69,9 @@ var TargetInner = exports.TargetInner = function TargetInner(_ref2) {
70
69
  pulse = _ref2.pulse,
71
70
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
72
71
  return (
72
+ /*#__PURE__*/
73
73
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
74
- (0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
74
+ React.createElement(Base, (0, _extends2.default)({}, props, {
75
75
  css: [pulse && animationStyles]
76
76
  }), children)
77
77
  );
@@ -95,7 +95,7 @@ var targetOverlayStyles = (0, _react.css)({
95
95
  * @internal
96
96
  */
97
97
  var TargetOverlay = exports.TargetOverlay = function TargetOverlay(props) {
98
- return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
98
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, props, {
99
99
  css: targetOverlayStyles,
100
100
  style: {
101
101
  cursor: props.onClick ? 'pointer' : 'auto'
@@ -119,8 +119,9 @@ var Pulse = exports.Pulse = function Pulse(_ref3) {
119
119
  testId = _ref3.testId,
120
120
  props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
121
121
  return (
122
+ /*#__PURE__*/
122
123
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
123
- (0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
124
+ React.createElement(Base, (0, _extends2.default)({}, props, {
124
125
  css: [pulse && animationStyles],
125
126
  testId: testId
126
127
  }), children)
@@ -1,8 +1,13 @@
1
1
  import React from 'react';
2
2
  import { TargetInner, TargetOverlay } from '../styled/target';
3
+ const computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
3
4
  function cloneAndOverrideStyles(node) {
4
5
  const shouldCloneChildren = true;
5
6
  const clonedNode = node.cloneNode(shouldCloneChildren);
7
+ const computedStyles = getComputedStyle(node);
8
+ computedStyleAttributesToClone.forEach(attribute => {
9
+ clonedNode.style[attribute] = computedStyles[attribute];
10
+ });
6
11
  clonedNode.style.margin = '0';
7
12
  clonedNode.style.position = 'static';
8
13
  // The target may have other transforms applied. Avoid unintended side effects
@@ -1,8 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- /** @jsx jsx */
4
3
  import { Component } from 'react';
5
- import { jsx } from '@emotion/react';
6
4
  import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
7
5
  import Modal, { ModalBody } from '@atlaskit/modal-dialog';
8
6
  import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
@@ -27,7 +25,7 @@ export default class BenefitsModal extends Component {
27
25
  header: HeaderElement,
28
26
  image: src
29
27
  } = props;
30
- const ImageElement = () => jsx(ModalImage, {
28
+ const ImageElement = () => /*#__PURE__*/React.createElement(ModalImage, {
31
29
  src: src,
32
30
  alt: ""
33
31
  });
@@ -39,9 +37,9 @@ export default class BenefitsModal extends Component {
39
37
  actions: actionList,
40
38
  experimental_shouldShowPrimaryButtonOnRight = false
41
39
  } = props;
42
- const ActionsElement = () => actionList ? jsx(ButtonTheme.Provider, {
40
+ const ActionsElement = () => actionList ? /*#__PURE__*/React.createElement(ButtonTheme.Provider, {
43
41
  value: modalButtonTheme
44
- }, jsx(ModalActionContainer, {
42
+ }, /*#__PURE__*/React.createElement(ModalActionContainer, {
45
43
  shouldReverseButtonOrder: experimental_shouldShowPrimaryButtonOnRight
46
44
  }, actionList.map(({
47
45
  text,
@@ -49,9 +47,9 @@ export default class BenefitsModal extends Component {
49
47
  ...rest
50
48
  }, idx) => {
51
49
  const variant = idx ? 'subtle-link' : 'primary';
52
- return jsx(ModalActionItem, {
50
+ return /*#__PURE__*/React.createElement(ModalActionItem, {
53
51
  key: key || (typeof text === 'string' ? text : `${idx}`)
54
- }, jsx(Button, _extends({
52
+ }, /*#__PURE__*/React.createElement(Button, _extends({
55
53
  appearance: variant,
56
54
  autoFocus: !idx
57
55
  }, rest), text));
@@ -68,11 +66,11 @@ export default class BenefitsModal extends Component {
68
66
  } = this.props;
69
67
  const Header = this.headerComponent(this.props);
70
68
  const Footer = this.footerComponent(this.props);
71
- return jsx(Modal, _extends({
69
+ return /*#__PURE__*/React.createElement(Modal, _extends({
72
70
  autoFocus: true,
73
71
  shouldScrollInViewport: true,
74
72
  shouldCloseOnOverlayClick: false,
75
73
  shouldCloseOnEscapePress: false
76
- }, props), jsx(Header, null), jsx(ModalBody, null, jsx(Body, null, heading && jsx(Heading, null, heading), children)), jsx(Footer, null));
74
+ }, props), /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Body, null, heading && /*#__PURE__*/React.createElement(Heading, null, heading), children)), /*#__PURE__*/React.createElement(Footer, null));
77
75
  }
78
76
  }
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import { forwardRef } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
5
4
  import Heading from '@atlaskit/heading';
6
5
  import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
@@ -23,7 +22,7 @@ const defaultHeaderStyles = css({
23
22
  });
24
23
  const DefaultHeader = ({
25
24
  children
26
- }) => jsx("div", {
25
+ }) => /*#__PURE__*/React.createElement("div", {
27
26
  css: defaultHeaderStyles
28
27
  }, children);
29
28
  const defaultFooterStyles = css({
@@ -34,7 +33,7 @@ const defaultFooterStyles = css({
34
33
  });
35
34
  const DefaultFooter = ({
36
35
  children
37
- }) => jsx("div", {
36
+ }) => /*#__PURE__*/React.createElement("div", {
38
37
  css: defaultFooterStyles
39
38
  }, children);
40
39
  const containerStyles = css({
@@ -76,9 +75,9 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
76
75
  Header = DefaultHeader,
77
76
  Footer = DefaultFooter
78
77
  } = components;
79
- return jsx(ButtonTheme.Provider, {
78
+ return /*#__PURE__*/React.createElement(ButtonTheme.Provider, {
80
79
  value: spotlightButtonTheme
81
- }, jsx("div", {
80
+ }, /*#__PURE__*/React.createElement("div", {
82
81
  css: [containerStyles, !isFlat && containerShadowStyles],
83
82
  style: {
84
83
  minWidth: '160px',
@@ -87,25 +86,25 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
87
86
  },
88
87
  ref: ref || innerRef,
89
88
  "data-testid": testId
90
- }, typeof image === 'string' ? jsx("img", {
89
+ }, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
91
90
  css: imageStyles,
92
91
  src: image,
93
92
  alt: ""
94
- }) : image, jsx("div", {
93
+ }) : image, /*#__PURE__*/React.createElement("div", {
95
94
  css: bodyStyles
96
- }, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
95
+ }, heading || headingAfterElement ? /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(Heading, {
97
96
  id: headingId,
98
97
  color: "inverse",
99
98
  level: "h600",
100
99
  as: "h4"
101
- }, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(({
100
+ }, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? /*#__PURE__*/React.createElement(Footer, null, actionsBeforeElement || /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement(DialogActionItemContainer, null, actions.map(({
102
101
  text,
103
102
  key,
104
103
  ...rest
105
104
  }, idx) => {
106
- return jsx(DialogActionItem, {
105
+ return /*#__PURE__*/React.createElement(DialogActionItem, {
107
106
  key: key || (typeof text === 'string' ? text : `${idx}`)
108
- }, jsx(Button, rest, text));
107
+ }, /*#__PURE__*/React.createElement(Button, rest, text));
109
108
  }))) : null)));
110
109
  });
111
110
  SpotlightCard.displayName = 'SpotlightCard';
@@ -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 = "11.0.0";
10
+ const packageVersion = "11.1.1";
11
11
  class SpotlightDialog extends Component {
12
12
  constructor(...args) {
13
13
  super(...args);
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { css, jsx } from '@emotion/react';
1
+ import { css } from '@emotion/react';
3
2
  import { N100A } from '@atlaskit/theme/colors';
4
3
  import { layers } from '@atlaskit/theme/constants';
5
4
  // IE11 and Edge: z-index needed because fixed position calculates z-index relative
@@ -22,7 +21,7 @@ const blanketStyles = css({
22
21
  * @internal
23
22
  */
24
23
  const Blanket = props => {
25
- return jsx("div", {
24
+ return /*#__PURE__*/React.createElement("div", {
26
25
  css: blanketStyles,
27
26
  style: {
28
27
  ...props.style,
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
5
3
  const imageStyles = css({
6
4
  maxWidth: '100%',
7
5
  height: 'auto'
@@ -27,8 +25,9 @@ export const DialogImage = ({
27
25
  alt,
28
26
  ...props
29
27
  }) =>
28
+ /*#__PURE__*/
30
29
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
31
- jsx("img", _extends({
30
+ React.createElement("img", _extends({
32
31
  css: imageStyles,
33
32
  alt: alt
34
33
  }, props));
@@ -42,7 +41,7 @@ jsx("img", _extends({
42
41
  */
43
42
  export const DialogActionItemContainer = ({
44
43
  children
45
- }) => jsx("div", {
44
+ }) => /*#__PURE__*/React.createElement("div", {
46
45
  css: actionItemContainerStyles
47
46
  }, children);
48
47
 
@@ -55,6 +54,6 @@ export const DialogActionItemContainer = ({
55
54
  */
56
55
  export const DialogActionItem = ({
57
56
  children
58
- }) => jsx("div", {
57
+ }) => /*#__PURE__*/React.createElement("div", {
59
58
  css: actionItemStyles
60
59
  }, children);
@@ -1,10 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
2
- /** @jsx jsx */
3
2
 
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { h600 } from '@atlaskit/theme/typography';
6
5
  const modalBodyStyles = css({
7
- padding: `${"var(--ds-space-500, 40px)"} ${"var(--ds-space-250, 20px)"}`,
6
+ padding: `${"var(--ds-space-500, 40px)"} ${"var(--ds-space-200, 16px)"}`,
8
7
  textAlign: 'center'
9
8
  });
10
9
 
@@ -47,7 +46,7 @@ const modalActionItemStyles = css({
47
46
  */
48
47
  export const ModalBody = ({
49
48
  children
50
- }) => jsx("div", {
49
+ }) => /*#__PURE__*/React.createElement("div", {
51
50
  css: modalBodyStyles
52
51
  }, children);
53
52
 
@@ -59,7 +58,7 @@ export const ModalBody = ({
59
58
  export const ModalHeading = ({
60
59
  children
61
60
  }) => {
62
- return jsx("h4", {
61
+ return /*#__PURE__*/React.createElement("h4", {
63
62
  css: modalHeadingStyles
64
63
  }, children);
65
64
  };
@@ -72,7 +71,7 @@ export const ModalHeading = ({
72
71
  export const ModalImage = ({
73
72
  alt,
74
73
  src
75
- }) => jsx("img", {
74
+ }) => /*#__PURE__*/React.createElement("img", {
76
75
  css: modalImageStyles,
77
76
  alt: alt,
78
77
  src: src
@@ -86,7 +85,7 @@ export const ModalImage = ({
86
85
  export const ModalActionContainer = ({
87
86
  children,
88
87
  shouldReverseButtonOrder
89
- }) => jsx("div", {
88
+ }) => /*#__PURE__*/React.createElement("div", {
90
89
  css: [modalActionContainerStyles, shouldReverseButtonOrder && modalActionContainerReversedStyles]
91
90
  }, children);
92
91
 
@@ -97,6 +96,6 @@ export const ModalActionContainer = ({
97
96
  */
98
97
  export const ModalActionItem = ({
99
98
  children
100
- }) => jsx("div", {
99
+ }) => /*#__PURE__*/React.createElement("div", {
101
100
  css: modalActionItemStyles
102
101
  }, children);
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
- import { css, jsx, keyframes } from '@emotion/react';
2
+ import { css, keyframes } from '@emotion/react';
5
3
  import { P300 } from '@atlaskit/theme/colors';
6
4
  import { layers } from '@atlaskit/theme/constants';
7
5
  // NOTE:
@@ -34,7 +32,7 @@ const Base = ({
34
32
  style,
35
33
  testId,
36
34
  ...props
37
- }) => jsx("div", _extends({
35
+ }) => /*#__PURE__*/React.createElement("div", _extends({
38
36
  css: baseStyles,
39
37
  "data-testid": testId,
40
38
  style: {
@@ -57,8 +55,9 @@ export const TargetInner = ({
57
55
  pulse,
58
56
  ...props
59
57
  }) =>
58
+ /*#__PURE__*/
60
59
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
61
- jsx(Base, _extends({}, props, {
60
+ React.createElement(Base, _extends({}, props, {
62
61
  css: [pulse && animationStyles]
63
62
  }), children);
64
63
  const targetOverlayStyles = css({
@@ -79,7 +78,7 @@ const targetOverlayStyles = css({
79
78
  *
80
79
  * @internal
81
80
  */
82
- export const TargetOverlay = props => jsx("div", _extends({}, props, {
81
+ export const TargetOverlay = props => /*#__PURE__*/React.createElement("div", _extends({}, props, {
83
82
  css: targetOverlayStyles,
84
83
  style: {
85
84
  cursor: props.onClick ? 'pointer' : 'auto'
@@ -101,8 +100,9 @@ export const Pulse = ({
101
100
  testId,
102
101
  ...props
103
102
  }) =>
103
+ /*#__PURE__*/
104
104
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
105
- jsx(Base, _extends({}, props, {
105
+ React.createElement(Base, _extends({}, props, {
106
106
  css: [pulse && animationStyles],
107
107
  testId: testId
108
108
  }), children);
@@ -1,8 +1,13 @@
1
1
  import React from 'react';
2
2
  import { TargetInner, TargetOverlay } from '../styled/target';
3
+ var computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
3
4
  function cloneAndOverrideStyles(node) {
4
5
  var shouldCloneChildren = true;
5
6
  var clonedNode = node.cloneNode(shouldCloneChildren);
7
+ var computedStyles = getComputedStyle(node);
8
+ computedStyleAttributesToClone.forEach(function (attribute) {
9
+ clonedNode.style[attribute] = computedStyles[attribute];
10
+ });
6
11
  clonedNode.style.margin = '0';
7
12
  clonedNode.style.position = 'static';
8
13
  // The target may have other transforms applied. Avoid unintended side effects
@@ -11,9 +11,7 @@ var _excluded = ["text", "key"],
11
11
  _excluded2 = ["actions", "children", "heading"];
12
12
  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); }; }
13
13
  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; } }
14
- /** @jsx jsx */
15
14
  import { Component } from 'react';
16
- import { jsx } from '@emotion/react';
17
15
  import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
18
16
  import Modal, { ModalBody } from '@atlaskit/modal-dialog';
19
17
  import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
@@ -43,7 +41,7 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
43
41
  var HeaderElement = props.header,
44
42
  src = props.image;
45
43
  var ImageElement = function ImageElement() {
46
- return jsx(ModalImage, {
44
+ return /*#__PURE__*/React.createElement(ModalImage, {
47
45
  src: src,
48
46
  alt: ""
49
47
  });
@@ -56,18 +54,18 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
56
54
  _props$experimental_s = props.experimental_shouldShowPrimaryButtonOnRight,
57
55
  experimental_shouldShowPrimaryButtonOnRight = _props$experimental_s === void 0 ? false : _props$experimental_s;
58
56
  var ActionsElement = function ActionsElement() {
59
- return actionList ? jsx(ButtonTheme.Provider, {
57
+ return actionList ? /*#__PURE__*/React.createElement(ButtonTheme.Provider, {
60
58
  value: modalButtonTheme
61
- }, jsx(ModalActionContainer, {
59
+ }, /*#__PURE__*/React.createElement(ModalActionContainer, {
62
60
  shouldReverseButtonOrder: experimental_shouldShowPrimaryButtonOnRight
63
61
  }, actionList.map(function (_ref, idx) {
64
62
  var text = _ref.text,
65
63
  key = _ref.key,
66
64
  rest = _objectWithoutProperties(_ref, _excluded);
67
65
  var variant = idx ? 'subtle-link' : 'primary';
68
- return jsx(ModalActionItem, {
66
+ return /*#__PURE__*/React.createElement(ModalActionItem, {
69
67
  key: key || (typeof text === 'string' ? text : "".concat(idx))
70
- }, jsx(Button, _extends({
68
+ }, /*#__PURE__*/React.createElement(Button, _extends({
71
69
  appearance: variant,
72
70
  autoFocus: !idx
73
71
  }, rest), text));
@@ -87,12 +85,12 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
87
85
  props = _objectWithoutProperties(_this$props, _excluded2);
88
86
  var Header = this.headerComponent(this.props);
89
87
  var Footer = this.footerComponent(this.props);
90
- return jsx(Modal, _extends({
88
+ return /*#__PURE__*/React.createElement(Modal, _extends({
91
89
  autoFocus: true,
92
90
  shouldScrollInViewport: true,
93
91
  shouldCloseOnOverlayClick: false,
94
92
  shouldCloseOnEscapePress: false
95
- }, props), jsx(Header, null), jsx(ModalBody, null, jsx(Body, null, heading && jsx(Heading, null, heading), children)), jsx(Footer, null));
93
+ }, props), /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Body, null, heading && /*#__PURE__*/React.createElement(Heading, null, heading), children)), /*#__PURE__*/React.createElement(Footer, null));
96
94
  }
97
95
  }]);
98
96
  return BenefitsModal;
@@ -1,8 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["text", "key"];
3
- /** @jsx jsx */
4
3
  import { forwardRef } from 'react';
5
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
6
5
  import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
7
6
  import Heading from '@atlaskit/heading';
8
7
  import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
@@ -25,7 +24,7 @@ var defaultHeaderStyles = css({
25
24
  });
26
25
  var DefaultHeader = function DefaultHeader(_ref) {
27
26
  var children = _ref.children;
28
- return jsx("div", {
27
+ return /*#__PURE__*/React.createElement("div", {
29
28
  css: defaultHeaderStyles
30
29
  }, children);
31
30
  };
@@ -37,7 +36,7 @@ var defaultFooterStyles = css({
37
36
  });
38
37
  var DefaultFooter = function DefaultFooter(_ref2) {
39
38
  var children = _ref2.children;
40
- return jsx("div", {
39
+ return /*#__PURE__*/React.createElement("div", {
41
40
  css: defaultFooterStyles
42
41
  }, children);
43
42
  };
@@ -81,9 +80,9 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
81
80
  Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
82
81
  _components$Footer = components.Footer,
83
82
  Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
84
- return jsx(ButtonTheme.Provider, {
83
+ return /*#__PURE__*/React.createElement(ButtonTheme.Provider, {
85
84
  value: spotlightButtonTheme
86
- }, jsx("div", {
85
+ }, /*#__PURE__*/React.createElement("div", {
87
86
  css: [containerStyles, !isFlat && containerShadowStyles],
88
87
  style: {
89
88
  minWidth: '160px',
@@ -92,24 +91,24 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
92
91
  },
93
92
  ref: ref || innerRef,
94
93
  "data-testid": testId
95
- }, typeof image === 'string' ? jsx("img", {
94
+ }, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
96
95
  css: imageStyles,
97
96
  src: image,
98
97
  alt: ""
99
- }) : image, jsx("div", {
98
+ }) : image, /*#__PURE__*/React.createElement("div", {
100
99
  css: bodyStyles
101
- }, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
100
+ }, heading || headingAfterElement ? /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(Heading, {
102
101
  id: headingId,
103
102
  color: "inverse",
104
103
  level: "h600",
105
104
  as: "h4"
106
- }, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(function (_ref3, idx) {
105
+ }, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? /*#__PURE__*/React.createElement(Footer, null, actionsBeforeElement || /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement(DialogActionItemContainer, null, actions.map(function (_ref3, idx) {
107
106
  var text = _ref3.text,
108
107
  key = _ref3.key,
109
108
  rest = _objectWithoutProperties(_ref3, _excluded);
110
- return jsx(DialogActionItem, {
109
+ return /*#__PURE__*/React.createElement(DialogActionItem, {
111
110
  key: key || (typeof text === 'string' ? text : "".concat(idx))
112
- }, jsx(Button, rest, text));
111
+ }, /*#__PURE__*/React.createElement(Button, rest, text));
113
112
  }))) : null)));
114
113
  });
115
114
  SpotlightCard.displayName = 'SpotlightCard';
@@ -17,7 +17,7 @@ import { DialogImage } from '../styled/dialog';
17
17
  import SpotlightCard from './spotlight-card';
18
18
  import ValueChanged from './value-changed';
19
19
  var packageName = "@atlaskit/onboarding";
20
- var packageVersion = "11.0.0";
20
+ var packageVersion = "11.1.1";
21
21
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
22
22
  _inherits(SpotlightDialog, _Component);
23
23
  var _super = _createSuper(SpotlightDialog);
@@ -1,8 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- /** @jsx jsx */
5
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
6
5
  import { N100A } from '@atlaskit/theme/colors';
7
6
  import { layers } from '@atlaskit/theme/constants';
8
7
  // IE11 and Edge: z-index needed because fixed position calculates z-index relative
@@ -25,7 +24,7 @@ var blanketStyles = css({
25
24
  * @internal
26
25
  */
27
26
  var Blanket = function Blanket(props) {
28
- return jsx("div", {
27
+ return /*#__PURE__*/React.createElement("div", {
29
28
  css: blanketStyles,
30
29
  style: _objectSpread(_objectSpread({}, props.style), {}, {
31
30
  backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(N100A, ")") : 'transparent'
@@ -1,9 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["alt"];
4
- /** @jsx jsx */
5
-
6
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
7
5
  var imageStyles = css({
8
6
  maxWidth: '100%',
9
7
  height: 'auto'
@@ -29,8 +27,9 @@ export var DialogImage = function DialogImage(_ref) {
29
27
  var alt = _ref.alt,
30
28
  props = _objectWithoutProperties(_ref, _excluded);
31
29
  return (
30
+ /*#__PURE__*/
32
31
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
33
- jsx("img", _extends({
32
+ React.createElement("img", _extends({
34
33
  css: imageStyles,
35
34
  alt: alt
36
35
  }, props))
@@ -46,7 +45,7 @@ export var DialogImage = function DialogImage(_ref) {
46
45
  */
47
46
  export var DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
48
47
  var children = _ref2.children;
49
- return jsx("div", {
48
+ return /*#__PURE__*/React.createElement("div", {
50
49
  css: actionItemContainerStyles
51
50
  }, children);
52
51
  };
@@ -60,7 +59,7 @@ export var DialogActionItemContainer = function DialogActionItemContainer(_ref2)
60
59
  */
61
60
  export var DialogActionItem = function DialogActionItem(_ref3) {
62
61
  var children = _ref3.children;
63
- return jsx("div", {
62
+ return /*#__PURE__*/React.createElement("div", {
64
63
  css: actionItemStyles
65
64
  }, children);
66
65
  };
@@ -1,10 +1,9 @@
1
1
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
2
- /** @jsx jsx */
3
2
 
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { h600 } from '@atlaskit/theme/typography';
6
5
  var modalBodyStyles = css({
7
- padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-250, 20px)"),
6
+ padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-200, 16px)"),
8
7
  textAlign: 'center'
9
8
  });
10
9
 
@@ -47,7 +46,7 @@ var modalActionItemStyles = css({
47
46
  */
48
47
  export var ModalBody = function ModalBody(_ref) {
49
48
  var children = _ref.children;
50
- return jsx("div", {
49
+ return /*#__PURE__*/React.createElement("div", {
51
50
  css: modalBodyStyles
52
51
  }, children);
53
52
  };
@@ -59,7 +58,7 @@ export var ModalBody = function ModalBody(_ref) {
59
58
  */
60
59
  export var ModalHeading = function ModalHeading(_ref2) {
61
60
  var children = _ref2.children;
62
- return jsx("h4", {
61
+ return /*#__PURE__*/React.createElement("h4", {
63
62
  css: modalHeadingStyles
64
63
  }, children);
65
64
  };
@@ -72,7 +71,7 @@ export var ModalHeading = function ModalHeading(_ref2) {
72
71
  export var ModalImage = function ModalImage(_ref3) {
73
72
  var alt = _ref3.alt,
74
73
  src = _ref3.src;
75
- return jsx("img", {
74
+ return /*#__PURE__*/React.createElement("img", {
76
75
  css: modalImageStyles,
77
76
  alt: alt,
78
77
  src: src
@@ -87,7 +86,7 @@ export var ModalImage = function ModalImage(_ref3) {
87
86
  export var ModalActionContainer = function ModalActionContainer(_ref4) {
88
87
  var children = _ref4.children,
89
88
  shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
90
- return jsx("div", {
89
+ return /*#__PURE__*/React.createElement("div", {
91
90
  css: [modalActionContainerStyles, shouldReverseButtonOrder && modalActionContainerReversedStyles]
92
91
  }, children);
93
92
  };
@@ -99,7 +98,7 @@ export var ModalActionContainer = function ModalActionContainer(_ref4) {
99
98
  */
100
99
  export var ModalActionItem = function ModalActionItem(_ref5) {
101
100
  var children = _ref5.children;
102
- return jsx("div", {
101
+ return /*#__PURE__*/React.createElement("div", {
103
102
  css: modalActionItemStyles
104
103
  }, children);
105
104
  };
@@ -6,9 +6,7 @@ var _excluded = ["children", "bgColor", "radius", "style", "testId"],
6
6
  _excluded3 = ["children", "pulse", "testId"];
7
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
- /** @jsx jsx */
10
-
11
- import { css, jsx, keyframes } from '@emotion/react';
9
+ import { css, keyframes } from '@emotion/react';
12
10
  import { P300 } from '@atlaskit/theme/colors';
13
11
  import { layers } from '@atlaskit/theme/constants';
14
12
  // NOTE:
@@ -41,7 +39,7 @@ var Base = function Base(_ref) {
41
39
  style = _ref.style,
42
40
  testId = _ref.testId,
43
41
  props = _objectWithoutProperties(_ref, _excluded);
44
- return jsx("div", _extends({
42
+ return /*#__PURE__*/React.createElement("div", _extends({
45
43
  css: baseStyles,
46
44
  "data-testid": testId,
47
45
  style: _objectSpread(_objectSpread({}, style), {}, {
@@ -64,8 +62,9 @@ export var TargetInner = function TargetInner(_ref2) {
64
62
  pulse = _ref2.pulse,
65
63
  props = _objectWithoutProperties(_ref2, _excluded2);
66
64
  return (
65
+ /*#__PURE__*/
67
66
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
68
- jsx(Base, _extends({}, props, {
67
+ React.createElement(Base, _extends({}, props, {
69
68
  css: [pulse && animationStyles]
70
69
  }), children)
71
70
  );
@@ -89,7 +88,7 @@ var targetOverlayStyles = css({
89
88
  * @internal
90
89
  */
91
90
  export var TargetOverlay = function TargetOverlay(props) {
92
- return jsx("div", _extends({}, props, {
91
+ return /*#__PURE__*/React.createElement("div", _extends({}, props, {
93
92
  css: targetOverlayStyles,
94
93
  style: {
95
94
  cursor: props.onClick ? 'pointer' : 'auto'
@@ -113,8 +112,9 @@ export var Pulse = function Pulse(_ref3) {
113
112
  testId = _ref3.testId,
114
113
  props = _objectWithoutProperties(_ref3, _excluded3);
115
114
  return (
115
+ /*#__PURE__*/
116
116
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
117
- jsx(Base, _extends({}, props, {
117
+ React.createElement(Base, _extends({}, props, {
118
118
  css: [pulse && animationStyles],
119
119
  testId: testId
120
120
  }), children)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "11.0.0",
3
+ "version": "11.1.1",
4
4
  "description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/button": "^16.17.0",
38
38
  "@atlaskit/ds-lib": "^2.2.0",
39
39
  "@atlaskit/heading": "^1.4.0",
40
- "@atlaskit/modal-dialog": "^12.9.0",
40
+ "@atlaskit/modal-dialog": "^12.10.0",
41
41
  "@atlaskit/popper": "^5.5.0",
42
42
  "@atlaskit/portal": "^4.4.0",
43
43
  "@atlaskit/theme": "^12.6.0",
@@ -59,6 +59,8 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@af/accessibility-testing": "*",
62
+ "@af/integration-testing": "*",
63
+ "@af/visual-regression": "*",
62
64
  "@atlaskit/ssr": "*",
63
65
  "@atlaskit/visual-regression": "*",
64
66
  "@atlaskit/webdriver-runner": "*",