@atlaskit/onboarding 11.6.0 → 11.7.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 +19 -0
- package/README.md +2 -1
- package/__perf__/default.tsx +1 -3
- package/dist/cjs/components/modal.js +3 -1
- package/dist/cjs/components/spotlight-card.js +4 -0
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/blanket.js +3 -1
- package/dist/cjs/styled/dialog.js +5 -1
- package/dist/cjs/styled/modal.js +8 -1
- package/dist/cjs/styled/target.js +7 -2
- package/dist/es2019/components/modal.js +5 -0
- package/dist/es2019/components/spotlight-card.js +5 -0
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/blanket.js +4 -0
- package/dist/es2019/styled/dialog.js +5 -1
- package/dist/es2019/styled/modal.js +7 -1
- package/dist/es2019/styled/target.js +7 -2
- package/dist/esm/components/modal.js +5 -0
- package/dist/esm/components/spotlight-card.js +5 -0
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/blanket.js +4 -0
- package/dist/esm/styled/dialog.js +5 -1
- package/dist/esm/styled/modal.js +7 -1
- package/dist/esm/styled/target.js +7 -2
- package/dist/types/components/modal.d.ts +3 -0
- package/dist/types/components/spotlight-card.d.ts +3 -0
- package/dist/types/components/spotlight.d.ts +8 -8
- package/dist/types/styled/blanket.d.ts +3 -0
- package/dist/types/styled/dialog.d.ts +4 -1
- package/dist/types/styled/modal.d.ts +4 -1
- package/dist/types/styled/target.d.ts +3 -0
- package/dist/types-ts4.5/components/modal.d.ts +3 -0
- package/dist/types-ts4.5/components/spotlight-card.d.ts +3 -0
- package/dist/types-ts4.5/components/spotlight.d.ts +8 -8
- package/dist/types-ts4.5/styled/blanket.d.ts +3 -0
- package/dist/types-ts4.5/styled/dialog.d.ts +4 -1
- package/dist/types-ts4.5/styled/modal.d.ts +4 -1
- package/dist/types-ts4.5/styled/target.d.ts +3 -0
- package/package.json +103 -103
- package/report.api.md +157 -173
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#110670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110670)
|
|
14
|
+
[`c733254a2dd6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c733254a2dd6e) -
|
|
15
|
+
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
|
|
16
|
+
is implicitly set to automatic.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 11.6.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -10,4 +10,5 @@ yarn add @atlaskit/onboarding
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlaskit.atlassian.com/packages/core/onboarding).
|
package/__perf__/default.tsx
CHANGED
|
@@ -26,7 +26,9 @@ var _excluded = ["text", "key"],
|
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
28
|
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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
29
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
30
|
+
* @jsxRuntime classic
|
|
31
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
32
|
// TODO: DSP-1250 - use a composable API consistent with normal modal dialog
|
|
31
33
|
/**
|
|
32
34
|
* __Benefits modal__
|
|
@@ -15,7 +15,11 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
15
15
|
var _dialog = require("../styled/dialog");
|
|
16
16
|
var _theme = require("./theme");
|
|
17
17
|
var _excluded = ["text", "key"];
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
25
|
var bodyStyles = (0, _react2.css)({
|
|
@@ -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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
29
|
var packageName = "@atlaskit/onboarding";
|
|
30
|
-
var packageVersion = "11.
|
|
30
|
+
var packageVersion = "11.7.1";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -10,7 +10,9 @@ 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; } /**
|
|
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
|
+
* @jsxRuntime classic
|
|
15
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
16
|
// IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
15
17
|
// to body instead of nearest stacking context (Portal in our case).
|
|
16
18
|
var blanketStyles = (0, _react.css)({
|
|
@@ -9,7 +9,11 @@ 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
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/
|
|
12
15
|
/** @jsx jsx */
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
17
|
var imageStyles = (0, _react.css)({
|
|
14
18
|
maxWidth: '100%',
|
|
15
19
|
height: 'auto'
|
|
@@ -18,7 +22,7 @@ var actionItemContainerStyles = (0, _react.css)({
|
|
|
18
22
|
display: 'flex',
|
|
19
23
|
margin: "var(--ds-space-0, 0px)".concat(" -4px"),
|
|
20
24
|
/* When there is more than one action, place primary action visually on the
|
|
21
|
-
|
|
25
|
+
right, but keep it's position as the first focusable element in the DOM */
|
|
22
26
|
flexDirection: 'row-reverse'
|
|
23
27
|
});
|
|
24
28
|
var actionItemStyles = (0, _react.css)({
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -7,15 +7,22 @@ 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
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
*/
|
|
10
13
|
/** @jsx jsx */
|
|
11
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
12
17
|
var modalBodyStyles = (0, _react.css)({
|
|
13
18
|
padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-200, 16px)"),
|
|
14
19
|
textAlign: 'center'
|
|
15
20
|
});
|
|
16
21
|
|
|
17
22
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
18
|
-
var modalHeadingStyles = (0, _react.css)([
|
|
23
|
+
var modalHeadingStyles = (0, _react.css)([
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
(0, _react.css)((0, _typography.h600)({
|
|
19
26
|
theme: {
|
|
20
27
|
mode: 'light'
|
|
21
28
|
}
|
|
@@ -14,7 +14,11 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _excluded = ["children", "bgColor", "radius", "style", "testId"],
|
|
15
15
|
_excluded2 = ["children", "pulse"],
|
|
16
16
|
_excluded3 = ["children", "pulse", "testId"];
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
22
|
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
23
|
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
24
|
// NOTE:
|
|
@@ -30,6 +34,7 @@ var pulseKeyframes = (0, _react.keyframes)({
|
|
|
30
34
|
}
|
|
31
35
|
});
|
|
32
36
|
// This is needed for unit tests
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-exported-keyframes, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
38
|
var pulseKeyframesName = exports.pulseKeyframesName = pulseKeyframes.name;
|
|
34
39
|
var animationStyles = (0, _react.css)({
|
|
35
40
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite"),
|
|
@@ -70,7 +75,7 @@ var TargetInner = exports.TargetInner = function TargetInner(_ref2) {
|
|
|
70
75
|
return (0, _react.jsx)(Base
|
|
71
76
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
72
77
|
, (0, _extends2.default)({}, props, {
|
|
73
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
74
79
|
css: [pulse && animationStyles, _motion.reduceMotionAsPerUserPreference]
|
|
75
80
|
}), children);
|
|
76
81
|
};
|
|
@@ -122,7 +127,7 @@ var Pulse = exports.Pulse = function Pulse(_ref3) {
|
|
|
122
127
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
123
128
|
, (0, _extends2.default)({}, props, {
|
|
124
129
|
css: [pulse && animationStyles,
|
|
125
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
130
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
126
131
|
_motion.reduceMotionAsPerUserPreference],
|
|
127
132
|
testId: testId
|
|
128
133
|
}), children);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { Component } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { jsx } from '@emotion/react';
|
|
6
11
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
7
12
|
import Modal, { ModalBody, useModal } from '@atlaskit/modal-dialog';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { forwardRef } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { css, jsx } from '@emotion/react';
|
|
4
9
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
5
10
|
import Heading from '@atlaskit/heading';
|
|
@@ -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.
|
|
10
|
+
const packageVersion = "11.7.1";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { N100A } from '@atlaskit/theme/colors';
|
|
4
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
const imageStyles = css({
|
|
6
10
|
maxWidth: '100%',
|
|
@@ -10,7 +14,7 @@ const actionItemContainerStyles = css({
|
|
|
10
14
|
display: 'flex',
|
|
11
15
|
margin: `${"var(--ds-space-0, 0px)"} -4px`,
|
|
12
16
|
/* When there is more than one action, place primary action visually on the
|
|
13
|
-
|
|
17
|
+
right, but keep it's position as the first focusable element in the DOM */
|
|
14
18
|
flexDirection: 'row-reverse'
|
|
15
19
|
});
|
|
16
20
|
const actionItemStyles = css({
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
import { h600 } from '@atlaskit/theme/typography';
|
|
6
10
|
const modalBodyStyles = css({
|
|
@@ -9,7 +13,9 @@ const modalBodyStyles = css({
|
|
|
9
13
|
});
|
|
10
14
|
|
|
11
15
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
12
|
-
const modalHeadingStyles = css([
|
|
16
|
+
const modalHeadingStyles = css([
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
css(h600({
|
|
13
19
|
theme: {
|
|
14
20
|
mode: 'light'
|
|
15
21
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
5
9
|
import { reduceMotionAsPerUserPreference } from '@atlaskit/motion';
|
|
6
10
|
import { P300 } from '@atlaskit/theme/colors';
|
|
@@ -17,6 +21,7 @@ const pulseKeyframes = keyframes({
|
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
23
|
// This is needed for unit tests
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/no-exported-keyframes, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
25
|
export const pulseKeyframesName = pulseKeyframes.name;
|
|
21
26
|
const animationStyles = css({
|
|
22
27
|
animation: `${pulseKeyframes} 3000ms ${easing} infinite`,
|
|
@@ -57,7 +62,7 @@ export const TargetInner = ({
|
|
|
57
62
|
}) => jsx(Base
|
|
58
63
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
59
64
|
, _extends({}, props, {
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
66
|
css: [pulse && animationStyles, reduceMotionAsPerUserPreference]
|
|
62
67
|
}), children);
|
|
63
68
|
const targetOverlayStyles = css({
|
|
@@ -105,7 +110,7 @@ export const Pulse = ({
|
|
|
105
110
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
106
111
|
, _extends({}, props, {
|
|
107
112
|
css: [pulse && animationStyles,
|
|
108
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
113
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
109
114
|
reduceMotionAsPerUserPreference],
|
|
110
115
|
testId: testId
|
|
111
116
|
}), children);
|
|
@@ -11,8 +11,13 @@ 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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
import { Component } from 'react';
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
21
|
import { jsx } from '@emotion/react';
|
|
17
22
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
18
23
|
import Modal, { ModalBody, useModal } from '@atlaskit/modal-dialog';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["text", "key"];
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { forwardRef } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { css, jsx } from '@emotion/react';
|
|
6
11
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
7
12
|
import Heading from '@atlaskit/heading';
|
|
@@ -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.
|
|
20
|
+
var packageVersion = "11.7.1";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
9
|
import { css, jsx } from '@emotion/react';
|
|
6
10
|
import { N100A } from '@atlaskit/theme/colors';
|
|
7
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["alt"];
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
5
8
|
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
10
|
import { css, jsx } from '@emotion/react';
|
|
7
11
|
var imageStyles = css({
|
|
8
12
|
maxWidth: '100%',
|
|
@@ -12,7 +16,7 @@ var actionItemContainerStyles = css({
|
|
|
12
16
|
display: 'flex',
|
|
13
17
|
margin: "var(--ds-space-0, 0px)".concat(" -4px"),
|
|
14
18
|
/* When there is more than one action, place primary action visually on the
|
|
15
|
-
|
|
19
|
+
right, but keep it's position as the first focusable element in the DOM */
|
|
16
20
|
flexDirection: 'row-reverse'
|
|
17
21
|
});
|
|
18
22
|
var actionItemStyles = css({
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
import { h600 } from '@atlaskit/theme/typography';
|
|
6
10
|
var modalBodyStyles = css({
|
|
@@ -9,7 +13,9 @@ var modalBodyStyles = css({
|
|
|
9
13
|
});
|
|
10
14
|
|
|
11
15
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
12
|
-
var modalHeadingStyles = css([
|
|
16
|
+
var modalHeadingStyles = css([
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
css(h600({
|
|
13
19
|
theme: {
|
|
14
20
|
mode: 'light'
|
|
15
21
|
}
|
|
@@ -6,8 +6,12 @@ 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
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
15
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
12
16
|
import { reduceMotionAsPerUserPreference } from '@atlaskit/motion';
|
|
13
17
|
import { P300 } from '@atlaskit/theme/colors';
|
|
@@ -24,6 +28,7 @@ var pulseKeyframes = keyframes({
|
|
|
24
28
|
}
|
|
25
29
|
});
|
|
26
30
|
// This is needed for unit tests
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-exported-keyframes, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
32
|
export var pulseKeyframesName = pulseKeyframes.name;
|
|
28
33
|
var animationStyles = css({
|
|
29
34
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite"),
|
|
@@ -64,7 +69,7 @@ export var TargetInner = function TargetInner(_ref2) {
|
|
|
64
69
|
return jsx(Base
|
|
65
70
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
66
71
|
, _extends({}, props, {
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
73
|
css: [pulse && animationStyles, reduceMotionAsPerUserPreference]
|
|
69
74
|
}), children);
|
|
70
75
|
};
|
|
@@ -116,7 +121,7 @@ export var Pulse = function Pulse(_ref3) {
|
|
|
116
121
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
117
122
|
, _extends({}, props, {
|
|
118
123
|
css: [pulse && animationStyles,
|
|
119
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
124
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
120
125
|
reduceMotionAsPerUserPreference],
|
|
121
126
|
testId: testId
|
|
122
127
|
}), children);
|
|
@@ -73,14 +73,14 @@ export interface SpotlightProps {
|
|
|
73
73
|
*/
|
|
74
74
|
targetReplacement?: ComponentType<any>;
|
|
75
75
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
This prop is a unique string that appears as an attribute `data-testid` in the rendered HTML output serving as a hook for automated tests.
|
|
77
|
+
As this component is composed of multiple components we use this `testId` as a prefix:
|
|
78
|
+
|
|
79
|
+
- `"${testId}--dialog"` to identify the spotlight dialog
|
|
80
|
+
- `"${testId}--target"` to identify the spotlight target clone
|
|
81
|
+
|
|
82
|
+
Defaults to `"spotlight"`.
|
|
83
|
+
*/
|
|
84
84
|
testId?: string;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { type ImgHTMLAttributes, type ReactNode } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
@@ -17,7 +20,7 @@ export declare const DialogImage: ({ alt, ...props }: DialogImageProps) => jsx.J
|
|
|
17
20
|
*
|
|
18
21
|
* @internal
|
|
19
22
|
*/
|
|
20
|
-
export declare const DialogActionItemContainer: ({ children
|
|
23
|
+
export declare const DialogActionItemContainer: ({ children }: {
|
|
21
24
|
children: ReactNode;
|
|
22
25
|
}) => jsx.JSX.Element;
|
|
23
26
|
/**
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { type ReactNode } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
@@ -22,7 +25,7 @@ export declare const ModalBody: ({ children }: {
|
|
|
22
25
|
*
|
|
23
26
|
* @internal
|
|
24
27
|
*/
|
|
25
|
-
export declare const ModalHeading: ({ children, id
|
|
28
|
+
export declare const ModalHeading: ({ children, id }: {
|
|
26
29
|
children: ReactNode;
|
|
27
30
|
id: string;
|
|
28
31
|
}) => jsx.JSX.Element;
|
|
@@ -73,14 +73,14 @@ export interface SpotlightProps {
|
|
|
73
73
|
*/
|
|
74
74
|
targetReplacement?: ComponentType<any>;
|
|
75
75
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
This prop is a unique string that appears as an attribute `data-testid` in the rendered HTML output serving as a hook for automated tests.
|
|
77
|
+
As this component is composed of multiple components we use this `testId` as a prefix:
|
|
78
|
+
|
|
79
|
+
- `"${testId}--dialog"` to identify the spotlight dialog
|
|
80
|
+
- `"${testId}--target"` to identify the spotlight target clone
|
|
81
|
+
|
|
82
|
+
Defaults to `"spotlight"`.
|
|
83
|
+
*/
|
|
84
84
|
testId?: string;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { type ImgHTMLAttributes, type ReactNode } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
@@ -17,7 +20,7 @@ export declare const DialogImage: ({ alt, ...props }: DialogImageProps) => jsx.J
|
|
|
17
20
|
*
|
|
18
21
|
* @internal
|
|
19
22
|
*/
|
|
20
|
-
export declare const DialogActionItemContainer: ({ children
|
|
23
|
+
export declare const DialogActionItemContainer: ({ children }: {
|
|
21
24
|
children: ReactNode;
|
|
22
25
|
}) => jsx.JSX.Element;
|
|
23
26
|
/**
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { type ReactNode } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
@@ -22,7 +25,7 @@ export declare const ModalBody: ({ children }: {
|
|
|
22
25
|
*
|
|
23
26
|
* @internal
|
|
24
27
|
*/
|
|
25
|
-
export declare const ModalHeading: ({ children, id
|
|
28
|
+
export declare const ModalHeading: ({ children, id }: {
|
|
26
29
|
children: ReactNode;
|
|
27
30
|
id: string;
|
|
28
31
|
}) => jsx.JSX.Element;
|