@atlaskit/onboarding 13.0.4 → 14.0.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 +26 -0
- package/dist/cjs/components/modal.js +10 -14
- package/dist/cjs/components/node-resolver-spotlight-target.compiled.css +1 -0
- package/dist/cjs/components/node-resolver-spotlight-target.js +12 -13
- package/dist/cjs/components/spotlight-card.compiled.css +20 -0
- package/dist/cjs/components/spotlight-card.js +34 -55
- package/dist/cjs/components/spotlight-dialog.js +2 -2
- package/dist/cjs/components/spotlight-inner.js +1 -2
- package/dist/cjs/components/spotlight-manager.js +1 -2
- package/dist/cjs/components/theme.js +44 -48
- package/dist/cjs/styled/blanket.compiled.css +4 -0
- package/dist/cjs/styled/blanket.js +13 -17
- package/dist/cjs/styled/dialog.compiled.css +10 -0
- package/dist/cjs/styled/dialog.js +24 -30
- package/dist/cjs/styled/modal.compiled.css +26 -0
- package/dist/cjs/styled/modal.js +29 -54
- package/dist/cjs/styled/target.compiled.css +8 -0
- package/dist/cjs/styled/target.js +34 -57
- package/dist/es2019/components/modal.js +9 -14
- package/dist/es2019/components/node-resolver-spotlight-target.compiled.css +1 -0
- package/dist/es2019/components/node-resolver-spotlight-target.js +8 -11
- package/dist/es2019/components/spotlight-card.compiled.css +20 -0
- package/dist/es2019/components/spotlight-card.js +33 -54
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/spotlight-inner.js +1 -2
- package/dist/es2019/components/spotlight-manager.js +1 -2
- package/dist/es2019/components/theme.js +44 -45
- package/dist/es2019/styled/blanket.compiled.css +4 -0
- package/dist/es2019/styled/blanket.js +9 -17
- package/dist/es2019/styled/dialog.compiled.css +10 -0
- package/dist/es2019/styled/dialog.js +20 -29
- package/dist/es2019/styled/modal.compiled.css +26 -0
- package/dist/es2019/styled/modal.js +26 -54
- package/dist/es2019/styled/target.compiled.css +9 -0
- package/dist/es2019/styled/target.js +21 -49
- package/dist/esm/components/modal.js +9 -14
- package/dist/esm/components/node-resolver-spotlight-target.compiled.css +1 -0
- package/dist/esm/components/node-resolver-spotlight-target.js +8 -11
- package/dist/esm/components/spotlight-card.compiled.css +20 -0
- package/dist/esm/components/spotlight-card.js +33 -54
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/spotlight-inner.js +1 -2
- package/dist/esm/components/spotlight-manager.js +1 -2
- package/dist/esm/components/theme.js +44 -45
- package/dist/esm/styled/blanket.compiled.css +4 -0
- package/dist/esm/styled/blanket.js +9 -17
- package/dist/esm/styled/dialog.compiled.css +10 -0
- package/dist/esm/styled/dialog.js +21 -31
- package/dist/esm/styled/modal.compiled.css +26 -0
- package/dist/esm/styled/modal.js +26 -54
- package/dist/esm/styled/target.compiled.css +8 -0
- package/dist/esm/styled/target.js +30 -57
- package/dist/types/components/modal.d.ts +8 -9
- package/dist/types/components/node-resolver-spotlight-target.d.ts +1 -2
- package/dist/types/styled/blanket.d.ts +1 -6
- package/dist/types/styled/dialog.d.ts +3 -4
- package/dist/types/styled/modal.d.ts +5 -6
- package/dist/types/styled/target.d.ts +3 -5
- package/dist/types-ts4.5/components/modal.d.ts +8 -9
- package/dist/types-ts4.5/components/node-resolver-spotlight-target.d.ts +1 -2
- package/dist/types-ts4.5/styled/blanket.d.ts +1 -6
- package/dist/types-ts4.5/styled/dialog.d.ts +3 -4
- package/dist/types-ts4.5/styled/modal.d.ts +5 -6
- package/dist/types-ts4.5/styled/target.d.ts +3 -5
- package/package.json +6 -5
|
@@ -1,26 +1,18 @@
|
|
|
1
|
+
/* dialog.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["alt"];
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
display: 'flex',
|
|
16
|
-
margin: "var(--ds-space-0, 0px)".concat(" -4px"),
|
|
17
|
-
/* When there is more than one action, place primary action visually on the
|
|
18
|
-
right, but keep it's position as the first focusable element in the DOM */
|
|
19
|
-
flexDirection: 'row-reverse'
|
|
20
|
-
});
|
|
21
|
-
var actionItemStyles = css({
|
|
22
|
-
margin: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
23
|
-
});
|
|
5
|
+
import "./dialog.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
+
var imageStyles = null;
|
|
10
|
+
var actionItemContainerStyles = {
|
|
11
|
+
root: "_1e0c1txw _2lx21sbv _6rthze3t _1pfhze3t _12l2r5cr _ahbqr5cr"
|
|
12
|
+
};
|
|
13
|
+
var actionItemStyles = {
|
|
14
|
+
root: "_6rthze3t _1pfhze3t _12l21b66 _ahbq1b66"
|
|
15
|
+
};
|
|
24
16
|
|
|
25
17
|
/**
|
|
26
18
|
* __Dialog image__
|
|
@@ -32,13 +24,11 @@ var actionItemStyles = css({
|
|
|
32
24
|
export var DialogImage = function DialogImage(_ref) {
|
|
33
25
|
var alt = _ref.alt,
|
|
34
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, props))
|
|
41
|
-
);
|
|
27
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
28
|
+
alt: alt
|
|
29
|
+
}, props, {
|
|
30
|
+
className: ax(["_p12f1osq _4t3i1wug"])
|
|
31
|
+
}));
|
|
42
32
|
};
|
|
43
33
|
|
|
44
34
|
/**
|
|
@@ -50,8 +40,8 @@ export var DialogImage = function DialogImage(_ref) {
|
|
|
50
40
|
*/
|
|
51
41
|
export var DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
|
|
52
42
|
var children = _ref2.children;
|
|
53
|
-
return
|
|
54
|
-
|
|
43
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
44
|
+
xcss: actionItemContainerStyles.root
|
|
55
45
|
}, children);
|
|
56
46
|
};
|
|
57
47
|
|
|
@@ -64,7 +54,7 @@ export var DialogActionItemContainer = function DialogActionItemContainer(_ref2)
|
|
|
64
54
|
*/
|
|
65
55
|
export var DialogActionItem = function DialogActionItem(_ref3) {
|
|
66
56
|
var children = _ref3.children;
|
|
67
|
-
return
|
|
68
|
-
|
|
57
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
58
|
+
xcss: actionItemStyles.root
|
|
69
59
|
}, children);
|
|
70
60
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
|
|
3
|
+
._1bah1h6o{justify-content:center}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._1n261g80{flex-wrap:wrap}
|
|
7
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
8
|
+
._1q511jfw{padding-block-start:var(--ds-space-500,40px)}
|
|
9
|
+
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
10
|
+
._1s1g1sit{border-start-start-radius:var(--ds-border-radius,3px)}
|
|
11
|
+
._2lx21sbv{flex-direction:row-reverse}
|
|
12
|
+
._2lx2vrvc{flex-direction:row}
|
|
13
|
+
._4t3i1wug{height:auto}
|
|
14
|
+
._5fbc1sit{border-start-end-radius:var(--ds-border-radius,3px)}
|
|
15
|
+
._6rth1b66{margin-block-end:var(--ds-space-050,4px)}
|
|
16
|
+
._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
|
|
17
|
+
._85i514no{padding-block-end:36px}
|
|
18
|
+
._85i51jfw{padding-block-end:var(--ds-space-500,40px)}
|
|
19
|
+
._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
|
|
20
|
+
._bozg1jfw{padding-inline-start:var(--ds-space-500,40px)}
|
|
21
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
22
|
+
._syaz1kw7{color:inherit}
|
|
23
|
+
._y3gn1h6o{text-align:center}
|
|
24
|
+
._y4ti1jfw{padding-inline-end:var(--ds-space-500,40px)}
|
|
25
|
+
._y4tipxbi{padding-inline-end:var(--ds-space-200,1pc)}
|
|
26
|
+
@media (min-width:320px) and (max-width:480px){._j722idpf{border-radius:0}}
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -1,43 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var modalBodyStyles = css({
|
|
8
|
-
padding: "var(--ds-space-500, 40px)".concat(" ", "var(--ds-space-200, 16px)"),
|
|
9
|
-
textAlign: 'center'
|
|
10
|
-
});
|
|
1
|
+
/* modal.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./modal.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
var modalBodyStyles = null;
|
|
11
7
|
|
|
12
8
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
13
|
-
var modalHeadingStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
height: 'auto',
|
|
21
|
-
borderStartEndRadius: "var(--ds-border-radius, 3px)",
|
|
22
|
-
borderStartStartRadius: "var(--ds-border-radius, 3px)",
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
|
-
'@media (min-width: 320px) and (max-width: 480px)': {
|
|
25
|
-
borderRadius: 0
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var modalActionContainerStyles = css({
|
|
29
|
-
display: 'flex',
|
|
30
|
-
padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-500, 40px)", " 36px"),
|
|
31
|
-
justifyContent: 'center',
|
|
32
|
-
flexDirection: 'row',
|
|
33
|
-
flexFlow: 'wrap'
|
|
34
|
-
});
|
|
35
|
-
var modalActionContainerReversedStyles = css({
|
|
36
|
-
flexDirection: 'row-reverse'
|
|
37
|
-
});
|
|
38
|
-
var modalActionItemStyles = css({
|
|
39
|
-
margin: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)")
|
|
40
|
-
});
|
|
9
|
+
var modalHeadingStyles = null;
|
|
10
|
+
var modalImageStyles = null;
|
|
11
|
+
var modalActionContainerStyles = null;
|
|
12
|
+
var modalActionContainerReversedStyles = null;
|
|
13
|
+
var modalActionItemStyles = {
|
|
14
|
+
root: "_6rth1b66 _1pfhze3t _12l21b66 _ahbq1b66"
|
|
15
|
+
};
|
|
41
16
|
|
|
42
17
|
/**
|
|
43
18
|
* __Modal body__
|
|
@@ -46,8 +21,8 @@ var modalActionItemStyles = css({
|
|
|
46
21
|
*/
|
|
47
22
|
export var ModalBody = function ModalBody(_ref) {
|
|
48
23
|
var children = _ref.children;
|
|
49
|
-
return
|
|
50
|
-
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: ax(["_85i51jfw _1q511jfw _y4tipxbi _bozgpxbi _y3gn1h6o"])
|
|
51
26
|
}, children);
|
|
52
27
|
};
|
|
53
28
|
|
|
@@ -59,13 +34,10 @@ export var ModalBody = function ModalBody(_ref) {
|
|
|
59
34
|
export var ModalHeading = function ModalHeading(_ref2) {
|
|
60
35
|
var children = _ref2.children,
|
|
61
36
|
id = _ref2.id;
|
|
62
|
-
return (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
id: id
|
|
67
|
-
}, children)
|
|
68
|
-
);
|
|
37
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
38
|
+
id: id,
|
|
39
|
+
className: ax(["_11c8lodh _syaz1kw7 _6rthu2gc"])
|
|
40
|
+
}, children);
|
|
69
41
|
};
|
|
70
42
|
|
|
71
43
|
/**
|
|
@@ -76,10 +48,10 @@ export var ModalHeading = function ModalHeading(_ref2) {
|
|
|
76
48
|
export var ModalImage = function ModalImage(_ref3) {
|
|
77
49
|
var alt = _ref3.alt,
|
|
78
50
|
src = _ref3.src;
|
|
79
|
-
return
|
|
80
|
-
css: modalImageStyles,
|
|
51
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
81
52
|
alt: alt,
|
|
82
|
-
src: src
|
|
53
|
+
src: src,
|
|
54
|
+
className: ax(["_1bsb1osq _4t3i1wug _5fbc1sit _1s1g1sit _j722idpf"])
|
|
83
55
|
});
|
|
84
56
|
};
|
|
85
57
|
|
|
@@ -91,8 +63,8 @@ export var ModalImage = function ModalImage(_ref3) {
|
|
|
91
63
|
export var ModalActionContainer = function ModalActionContainer(_ref4) {
|
|
92
64
|
var children = _ref4.children,
|
|
93
65
|
shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
|
|
94
|
-
return
|
|
95
|
-
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: ax(["_2lx2vrvc _1n261g80 _1e0c1txw _1bah1h6o _85i514no _1q51ze3t _y4ti1jfw _bozg1jfw", shouldReverseButtonOrder && "_2lx21sbv"])
|
|
96
68
|
}, children);
|
|
97
69
|
};
|
|
98
70
|
|
|
@@ -103,7 +75,7 @@ export var ModalActionContainer = function ModalActionContainer(_ref4) {
|
|
|
103
75
|
*/
|
|
104
76
|
export var ModalActionItem = function ModalActionItem(_ref5) {
|
|
105
77
|
var children = _ref5.children;
|
|
106
|
-
return
|
|
107
|
-
|
|
78
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
79
|
+
xcss: modalActionItemStyles.root
|
|
108
80
|
}, children);
|
|
109
81
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._y44v1rys{animation:var(--_mb5lf8)}._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._16qs1wx8{box-shadow:0 0 0 2px var(--ds-border-discovery,#8270db)}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
6
|
+
._4t3i1osq{height:100%}
|
|
7
|
+
._kqswstnw{position:absolute}
|
|
8
|
+
@media (prefers-reduced-motion:reduce){._1bumglyw{animation:none}._sedtglyw{transition:none}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* target.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -5,37 +6,18 @@ var _excluded = ["bgColor", "children", "className", "radius", "testId", "style"
|
|
|
5
6
|
_excluded2 = ["bgColor", "children", "className", "pulse", "radius", "testId"],
|
|
6
7
|
_excluded3 = ["onClick"],
|
|
7
8
|
_excluded4 = ["bgColor", "children", "className", "radius", "pulse", "testId"];
|
|
9
|
+
import "./target.compiled.css";
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
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; }
|
|
9
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) { _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; }
|
|
10
|
-
|
|
11
|
-
* @jsxRuntime classic
|
|
12
|
-
* @jsx jsx
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { css, jsx, keyframes } from '@emotion/react';
|
|
16
|
-
import { reduceMotionAsPerUserPreference } from '@atlaskit/motion';
|
|
17
|
-
import { P300 } from '@atlaskit/theme/colors';
|
|
14
|
+
var reduceMotionAsPerUserPreference = null;
|
|
18
15
|
// NOTE:
|
|
19
16
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
20
|
-
var baseShadow = "0 0 0 2px ".concat("var(--ds-border-discovery,
|
|
17
|
+
var baseShadow = "0 0 0 2px ".concat("var(--ds-border-discovery, #8270DB)");
|
|
21
18
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
22
|
-
var pulseKeyframes =
|
|
23
|
-
|
|
24
|
-
boxShadow: "".concat(baseShadow, ", 0 0 0 ", "var(--ds-border-discovery, rgba(101, 84, 192, 1))")
|
|
25
|
-
},
|
|
26
|
-
'66%, 100%': {
|
|
27
|
-
boxShadow: "".concat(baseShadow, ", 0 0 0 10px rgba(101, 84, 192, 0.01)")
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
// This is needed for unit tests
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
|
-
export var pulseKeyframesName = pulseKeyframes.name;
|
|
33
|
-
var animationStyles = css({
|
|
34
|
-
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite"),
|
|
35
|
-
// Keep a purple boxshadow on the Pulse component if `prefers-reduced-motion`
|
|
36
|
-
// is applied so we still have a functioning semantic affordance.
|
|
37
|
-
boxShadow: baseShadow
|
|
38
|
-
});
|
|
19
|
+
var pulseKeyframes = null;
|
|
20
|
+
var animationStyles = null;
|
|
39
21
|
var Base = function Base(_ref) {
|
|
40
22
|
var bgColor = _ref.bgColor,
|
|
41
23
|
children = _ref.children,
|
|
@@ -44,7 +26,7 @@ var Base = function Base(_ref) {
|
|
|
44
26
|
testId = _ref.testId,
|
|
45
27
|
style = _ref.style,
|
|
46
28
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
48
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
49
31
|
className: className,
|
|
50
32
|
"data-testid": testId,
|
|
@@ -71,26 +53,21 @@ export var TargetInner = function TargetInner(_ref2) {
|
|
|
71
53
|
radius = _ref2.radius,
|
|
72
54
|
testId = _ref2.testId,
|
|
73
55
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
74
|
-
return
|
|
56
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
75
57
|
bgColor: bgColor
|
|
76
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
77
59
|
,
|
|
78
|
-
className: className,
|
|
60
|
+
className: ax([pulse && "_y44v1rys _16qs1wx8", "_1bumglyw _sedtglyw", className]),
|
|
79
61
|
radius: radius,
|
|
80
62
|
testId: testId
|
|
81
63
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
82
64
|
}, props, {
|
|
83
|
-
|
|
84
|
-
|
|
65
|
+
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
66
|
+
"--_mb5lf8": ix("".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite"))
|
|
67
|
+
})
|
|
85
68
|
}), children);
|
|
86
69
|
};
|
|
87
|
-
var targetOverlayStyles =
|
|
88
|
-
width: '100%',
|
|
89
|
-
height: '100%',
|
|
90
|
-
position: 'absolute',
|
|
91
|
-
insetBlockStart: "var(--ds-space-0, 0)",
|
|
92
|
-
insetInlineStart: "var(--ds-space-0, 0)"
|
|
93
|
-
});
|
|
70
|
+
var targetOverlayStyles = null;
|
|
94
71
|
|
|
95
72
|
/**
|
|
96
73
|
* __Target overlay__
|
|
@@ -103,20 +80,16 @@ var targetOverlayStyles = css({
|
|
|
103
80
|
export var TargetOverlay = function TargetOverlay(_ref3) {
|
|
104
81
|
var onClick = _ref3.onClick,
|
|
105
82
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
106
|
-
return (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
cursor: onClick ? 'pointer' : 'auto'
|
|
117
|
-
}
|
|
118
|
-
}))
|
|
119
|
-
);
|
|
83
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
84
|
+
onClick: onClick
|
|
85
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
86
|
+
}, props, {
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
88
|
+
style: {
|
|
89
|
+
cursor: onClick ? 'pointer' : 'auto'
|
|
90
|
+
},
|
|
91
|
+
className: ax(["_1bsb1osq _4t3i1osq _kqswstnw _152tze3t _1e02ze3t"])
|
|
92
|
+
}));
|
|
120
93
|
};
|
|
121
94
|
|
|
122
95
|
/**
|
|
@@ -137,17 +110,17 @@ export var Pulse = function Pulse(_ref4) {
|
|
|
137
110
|
pulse = _ref4$pulse === void 0 ? true : _ref4$pulse,
|
|
138
111
|
testId = _ref4.testId,
|
|
139
112
|
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
140
|
-
return
|
|
113
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
141
114
|
bgColor: bgColor
|
|
142
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
143
116
|
,
|
|
144
|
-
className: className,
|
|
117
|
+
className: ax([pulse && "_y44v1rys _16qs1wx8", "_1bumglyw _sedtglyw", className]),
|
|
145
118
|
radius: radius,
|
|
146
119
|
testId: testId
|
|
147
120
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
148
121
|
}, props, {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
122
|
+
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
123
|
+
"--_mb5lf8": ix("".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite"))
|
|
124
|
+
})
|
|
152
125
|
}), children);
|
|
153
126
|
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { Component, type ElementType, type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { Component, type ElementType, type ReactNode } from 'react';
|
|
7
2
|
import { type ModalFooterProps as FooterComponentProps, type ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
8
3
|
import { type Actions } from '../types';
|
|
9
4
|
type ModalProps = {
|
|
@@ -35,6 +30,10 @@ type ModalProps = {
|
|
|
35
30
|
* Boolean prop to confirm if primary button in the footer should be shown on the right.
|
|
36
31
|
*/
|
|
37
32
|
experimental_shouldShowPrimaryButtonOnRight?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
*/
|
|
36
|
+
testId?: string;
|
|
38
37
|
};
|
|
39
38
|
/**
|
|
40
39
|
* __Benefits modal__
|
|
@@ -46,8 +45,8 @@ type ModalProps = {
|
|
|
46
45
|
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
47
46
|
*/
|
|
48
47
|
export default class BenefitsModal extends Component<ModalProps> {
|
|
49
|
-
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() =>
|
|
50
|
-
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() =>
|
|
51
|
-
render():
|
|
48
|
+
headerComponent: (props: ModalProps) => React.ElementType<HeaderComponentProps> | (() => React.JSX.Element);
|
|
49
|
+
footerComponent: (props: ModalProps) => React.ElementType<FooterComponentProps> | (() => React.JSX.Element | null);
|
|
50
|
+
render(): React.JSX.Element;
|
|
52
51
|
}
|
|
53
52
|
export {};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactElement } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
interface NodeResolverSpotlightTargetProps {
|
|
8
7
|
hasNodeResolver: boolean;
|
|
9
8
|
children: ReactElement;
|
|
@@ -21,5 +20,5 @@ interface NodeResolverSpotlightTargetProps {
|
|
|
21
20
|
* @param {ReactElement} props.getTargetRef - Setting up Target Node in Spotlight Manager.
|
|
22
21
|
* @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, wrape the children in a div setting innerRef with ref to the div.
|
|
23
22
|
*/
|
|
24
|
-
declare const NodeResolverSpotlightTarget: ({ hasNodeResolver, children, getTargetRef, name, }: NodeResolverSpotlightTargetProps) =>
|
|
23
|
+
declare const NodeResolverSpotlightTarget: ({ hasNodeResolver, children, getTargetRef, name, }: NodeResolverSpotlightTargetProps) => JSX.Element;
|
|
25
24
|
export default NodeResolverSpotlightTarget;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
type BlanketProps = {
|
|
8
3
|
isTinted?: boolean;
|
|
9
4
|
style?: React.CSSProperties;
|
|
@@ -20,5 +15,5 @@ type BlanketProps = {
|
|
|
20
15
|
*
|
|
21
16
|
* @internal
|
|
22
17
|
*/
|
|
23
|
-
declare const Blanket: ({ isTinted, onBlanketClicked, style }: BlanketProps) =>
|
|
18
|
+
declare const Blanket: ({ isTinted, onBlanketClicked, style }: BlanketProps) => JSX.Element;
|
|
24
19
|
export default Blanket;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ImgHTMLAttributes, type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
/**
|
|
8
7
|
* __Dialog image__
|
|
9
8
|
*
|
|
@@ -11,7 +10,7 @@ import { jsx } from '@emotion/react';
|
|
|
11
10
|
*
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
|
-
export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>) =>
|
|
13
|
+
export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>) => JSX.Element;
|
|
15
14
|
/**
|
|
16
15
|
* __Dialog action item container__
|
|
17
16
|
*
|
|
@@ -21,7 +20,7 @@ export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImag
|
|
|
21
20
|
*/
|
|
22
21
|
export declare const DialogActionItemContainer: ({ children }: {
|
|
23
22
|
children: ReactNode;
|
|
24
|
-
}) =>
|
|
23
|
+
}) => JSX.Element;
|
|
25
24
|
/**
|
|
26
25
|
* __Dialog action item__
|
|
27
26
|
*
|
|
@@ -31,4 +30,4 @@ export declare const DialogActionItemContainer: ({ children }: {
|
|
|
31
30
|
*/
|
|
32
31
|
export declare const DialogActionItem: ({ children }: {
|
|
33
32
|
children: ReactNode;
|
|
34
|
-
}) =>
|
|
33
|
+
}) => JSX.Element;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
type ModalImageProps = {
|
|
8
7
|
alt: string;
|
|
9
8
|
src?: string;
|
|
@@ -19,7 +18,7 @@ type ModalActionContainerProps = {
|
|
|
19
18
|
*/
|
|
20
19
|
export declare const ModalBody: ({ children }: {
|
|
21
20
|
children: ReactNode;
|
|
22
|
-
}) =>
|
|
21
|
+
}) => JSX.Element;
|
|
23
22
|
/**
|
|
24
23
|
* __Modal heading__
|
|
25
24
|
*
|
|
@@ -28,19 +27,19 @@ export declare const ModalBody: ({ children }: {
|
|
|
28
27
|
export declare const ModalHeading: ({ children, id }: {
|
|
29
28
|
children: ReactNode;
|
|
30
29
|
id: string;
|
|
31
|
-
}) =>
|
|
30
|
+
}) => JSX.Element;
|
|
32
31
|
/**
|
|
33
32
|
* __Modal image__
|
|
34
33
|
*
|
|
35
34
|
* @internal
|
|
36
35
|
*/
|
|
37
|
-
export declare const ModalImage: ({ alt, src }: ModalImageProps) =>
|
|
36
|
+
export declare const ModalImage: ({ alt, src }: ModalImageProps) => JSX.Element;
|
|
38
37
|
/**
|
|
39
38
|
* __Modal action container__
|
|
40
39
|
*
|
|
41
40
|
* @internal
|
|
42
41
|
*/
|
|
43
|
-
export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder, }: ModalActionContainerProps) =>
|
|
42
|
+
export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder, }: ModalActionContainerProps) => JSX.Element;
|
|
44
43
|
/**
|
|
45
44
|
* __Modal action item__
|
|
46
45
|
*
|
|
@@ -48,5 +47,5 @@ export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder
|
|
|
48
47
|
*/
|
|
49
48
|
export declare const ModalActionItem: ({ children }: {
|
|
50
49
|
children: ReactNode;
|
|
51
|
-
}) =>
|
|
50
|
+
}) => JSX.Element;
|
|
52
51
|
export {};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
8
7
|
bgColor?: string;
|
|
9
8
|
children?: ReactNode;
|
|
@@ -14,7 +13,6 @@ type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
14
13
|
type TargetProps = Omit<BaseProps, 'css'> & {
|
|
15
14
|
pulse?: boolean;
|
|
16
15
|
};
|
|
17
|
-
export declare const pulseKeyframesName: string;
|
|
18
16
|
/**
|
|
19
17
|
* __Target inner__
|
|
20
18
|
*
|
|
@@ -22,7 +20,7 @@ export declare const pulseKeyframesName: string;
|
|
|
22
20
|
*
|
|
23
21
|
* @internal
|
|
24
22
|
*/
|
|
25
|
-
export declare const TargetInner: ({ bgColor, children, className, pulse, radius, testId, ...props }: TargetProps) =>
|
|
23
|
+
export declare const TargetInner: ({ bgColor, children, className, pulse, radius, testId, ...props }: TargetProps) => JSX.Element;
|
|
26
24
|
/**
|
|
27
25
|
* __Target overlay__
|
|
28
26
|
*
|
|
@@ -31,7 +29,7 @@ export declare const TargetInner: ({ bgColor, children, className, pulse, radius
|
|
|
31
29
|
*
|
|
32
30
|
* @internal
|
|
33
31
|
*/
|
|
34
|
-
export declare const TargetOverlay: ({ onClick, ...props }: HTMLAttributes<HTMLDivElement>) =>
|
|
32
|
+
export declare const TargetOverlay: ({ onClick, ...props }: HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
35
33
|
/**
|
|
36
34
|
* __Spotlight pulse__
|
|
37
35
|
*
|
|
@@ -41,5 +39,5 @@ export declare const TargetOverlay: ({ onClick, ...props }: HTMLAttributes<HTMLD
|
|
|
41
39
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
42
40
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
43
41
|
*/
|
|
44
|
-
export declare const Pulse: ({ bgColor, children, className, radius, pulse, testId, ...props }: TargetProps) =>
|
|
42
|
+
export declare const Pulse: ({ bgColor, children, className, radius, pulse, testId, ...props }: TargetProps) => JSX.Element;
|
|
45
43
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { Component, type ElementType, type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { Component, type ElementType, type ReactNode } from 'react';
|
|
7
2
|
import { type ModalFooterProps as FooterComponentProps, type ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
8
3
|
import { type Actions } from '../types';
|
|
9
4
|
type ModalProps = {
|
|
@@ -35,6 +30,10 @@ type ModalProps = {
|
|
|
35
30
|
* Boolean prop to confirm if primary button in the footer should be shown on the right.
|
|
36
31
|
*/
|
|
37
32
|
experimental_shouldShowPrimaryButtonOnRight?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
*/
|
|
36
|
+
testId?: string;
|
|
38
37
|
};
|
|
39
38
|
/**
|
|
40
39
|
* __Benefits modal__
|
|
@@ -46,8 +45,8 @@ type ModalProps = {
|
|
|
46
45
|
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
47
46
|
*/
|
|
48
47
|
export default class BenefitsModal extends Component<ModalProps> {
|
|
49
|
-
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() =>
|
|
50
|
-
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() =>
|
|
51
|
-
render():
|
|
48
|
+
headerComponent: (props: ModalProps) => React.ElementType<HeaderComponentProps> | (() => React.JSX.Element);
|
|
49
|
+
footerComponent: (props: ModalProps) => React.ElementType<FooterComponentProps> | (() => React.JSX.Element | null);
|
|
50
|
+
render(): React.JSX.Element;
|
|
52
51
|
}
|
|
53
52
|
export {};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactElement } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
interface NodeResolverSpotlightTargetProps {
|
|
8
7
|
hasNodeResolver: boolean;
|
|
9
8
|
children: ReactElement;
|
|
@@ -21,5 +20,5 @@ interface NodeResolverSpotlightTargetProps {
|
|
|
21
20
|
* @param {ReactElement} props.getTargetRef - Setting up Target Node in Spotlight Manager.
|
|
22
21
|
* @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, wrape the children in a div setting innerRef with ref to the div.
|
|
23
22
|
*/
|
|
24
|
-
declare const NodeResolverSpotlightTarget: ({ hasNodeResolver, children, getTargetRef, name, }: NodeResolverSpotlightTargetProps) =>
|
|
23
|
+
declare const NodeResolverSpotlightTarget: ({ hasNodeResolver, children, getTargetRef, name, }: NodeResolverSpotlightTargetProps) => JSX.Element;
|
|
25
24
|
export default NodeResolverSpotlightTarget;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
type BlanketProps = {
|
|
8
3
|
isTinted?: boolean;
|
|
9
4
|
style?: React.CSSProperties;
|
|
@@ -20,5 +15,5 @@ type BlanketProps = {
|
|
|
20
15
|
*
|
|
21
16
|
* @internal
|
|
22
17
|
*/
|
|
23
|
-
declare const Blanket: ({ isTinted, onBlanketClicked, style }: BlanketProps) =>
|
|
18
|
+
declare const Blanket: ({ isTinted, onBlanketClicked, style }: BlanketProps) => JSX.Element;
|
|
24
19
|
export default Blanket;
|