@atlaskit/onboarding 10.8.2 → 10.8.3
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 +6 -0
- package/dist/cjs/components/spotlight-card.js +1 -1
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/dialog.js +7 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/spotlight-card.js +1 -1
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/dialog.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/spotlight-card.js +1 -1
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/dialog.js +7 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/components/spotlight-card.d.ts +2 -2
- package/dist/types/components/spotlight-target.d.ts +2 -2
- package/dist/types/components/spotlight.d.ts +2 -2
- package/dist/types/styled/blanket.d.ts +3 -1
- package/dist/types/styled/dialog.d.ts +7 -6
- package/dist/types/styled/modal.d.ts +19 -15
- package/dist/types/styled/target.d.ts +5 -4
- package/dist/types-ts4.5/components/spotlight-card.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight-target.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight.d.ts +2 -2
- package/dist/types-ts4.5/styled/blanket.d.ts +3 -1
- package/dist/types-ts4.5/styled/dialog.d.ts +7 -6
- package/dist/types-ts4.5/styled/modal.d.ts +19 -15
- package/dist/types-ts4.5/styled/target.d.ts +5 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
8
|
+
|
|
3
9
|
## 10.8.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
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 = "10.8.
|
|
30
|
+
var packageVersion = "10.8.3";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -35,10 +35,13 @@ var actionItemStyles = (0, _react.css)({
|
|
|
35
35
|
var DialogImage = function DialogImage(_ref) {
|
|
36
36
|
var alt = _ref.alt,
|
|
37
37
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
return (
|
|
39
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
40
|
+
(0, _react.jsx)("img", (0, _extends2.default)({
|
|
41
|
+
css: imageStyles,
|
|
42
|
+
alt: alt
|
|
43
|
+
}, props))
|
|
44
|
+
);
|
|
42
45
|
};
|
|
43
46
|
|
|
44
47
|
/**
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
7
7
|
import SpotlightCard from './spotlight-card';
|
|
8
8
|
import ValueChanged from './value-changed';
|
|
9
9
|
const packageName = "@atlaskit/onboarding";
|
|
10
|
-
const packageVersion = "10.8.
|
|
10
|
+
const packageVersion = "10.8.3";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -27,7 +27,9 @@ const actionItemStyles = css({
|
|
|
27
27
|
export const DialogImage = ({
|
|
28
28
|
alt,
|
|
29
29
|
...props
|
|
30
|
-
}) =>
|
|
30
|
+
}) =>
|
|
31
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
32
|
+
jsx("img", _extends({
|
|
31
33
|
css: imageStyles,
|
|
32
34
|
alt: alt
|
|
33
35
|
}, props));
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["text", "key"];
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
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 = "10.8.
|
|
20
|
+
var packageVersion = "10.8.3";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -29,10 +29,13 @@ var actionItemStyles = css({
|
|
|
29
29
|
export var DialogImage = function DialogImage(_ref) {
|
|
30
30
|
var alt = _ref.alt,
|
|
31
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
return (
|
|
33
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
34
|
+
jsx("img", _extends({
|
|
35
|
+
css: imageStyles,
|
|
36
|
+
alt: alt
|
|
37
|
+
}, props))
|
|
38
|
+
);
|
|
36
39
|
};
|
|
37
40
|
|
|
38
41
|
/**
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { ComponentType, ReactNode, Ref } from 'react';
|
|
3
3
|
import { ThemeProp } from '@atlaskit/theme/components';
|
|
4
4
|
import { Actions } from '../types';
|
|
5
5
|
/**
|
|
@@ -77,5 +77,5 @@ interface SpotlightCardProps {
|
|
|
77
77
|
* - [Code](https://atlassian.design/components/onboarding/spotlight-card/code)
|
|
78
78
|
* - [Usage](https://atlassian.design/components/onboarding/spotlight-card/usage)
|
|
79
79
|
*/
|
|
80
|
-
declare const SpotlightCard:
|
|
80
|
+
declare const SpotlightCard: import("react").ForwardRefExoticComponent<SpotlightCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
81
81
|
export default SpotlightCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
interface SpotlightTargetProps {
|
|
3
3
|
/**
|
|
4
4
|
* A single child
|
|
@@ -18,5 +18,5 @@ interface SpotlightTargetProps {
|
|
|
18
18
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
19
19
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
20
20
|
*/
|
|
21
|
-
declare const SpotlightTarget:
|
|
21
|
+
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => JSX.Element;
|
|
22
22
|
export default SpotlightTarget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { Actions } from '../types';
|
|
3
3
|
export interface SpotlightProps {
|
|
4
4
|
/**
|
|
@@ -92,5 +92,5 @@ export interface SpotlightProps {
|
|
|
92
92
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
93
93
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
94
94
|
*/
|
|
95
|
-
declare const Spotlight:
|
|
95
|
+
declare const Spotlight: ({ dialogWidth, pulse, testId, targetNode, target, ...rest }: SpotlightProps) => JSX.Element;
|
|
96
96
|
export default Spotlight;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
type BlanketProps = {
|
|
3
5
|
isTinted?: boolean;
|
|
4
6
|
style?: React.CSSProperties;
|
|
@@ -14,5 +16,5 @@ type BlanketProps = {
|
|
|
14
16
|
*
|
|
15
17
|
* @internal
|
|
16
18
|
*/
|
|
17
|
-
declare const Blanket:
|
|
19
|
+
declare const Blanket: (props: BlanketProps) => jsx.JSX.Element;
|
|
18
20
|
export default Blanket;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ImgHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
/**
|
|
4
5
|
* __Dialog image__
|
|
5
6
|
*
|
|
@@ -7,7 +8,7 @@ import { ReactNode } from 'react';
|
|
|
7
8
|
*
|
|
8
9
|
* @internal
|
|
9
10
|
*/
|
|
10
|
-
export declare const DialogImage:
|
|
11
|
+
export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>) => jsx.JSX.Element;
|
|
11
12
|
/**
|
|
12
13
|
* __Dialog action item container__
|
|
13
14
|
*
|
|
@@ -15,9 +16,9 @@ export declare const DialogImage: React.FC<React.ImgHTMLAttributes<HTMLImageElem
|
|
|
15
16
|
*
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
|
-
export declare const DialogActionItemContainer:
|
|
19
|
+
export declare const DialogActionItemContainer: ({ children, }: {
|
|
19
20
|
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
21
22
|
/**
|
|
22
23
|
* __Dialog action item__
|
|
23
24
|
*
|
|
@@ -25,6 +26,6 @@ export declare const DialogActionItemContainer: React.FC<{
|
|
|
25
26
|
*
|
|
26
27
|
* @internal
|
|
27
28
|
*/
|
|
28
|
-
export declare const DialogActionItem:
|
|
29
|
+
export declare const DialogActionItem: ({ children }: {
|
|
29
30
|
children: ReactNode;
|
|
30
|
-
}
|
|
31
|
+
}) => jsx.JSX.Element;
|
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type ModalImageProps = {
|
|
5
|
+
alt: string;
|
|
6
|
+
src?: string;
|
|
7
|
+
};
|
|
8
|
+
type ModalActionContainerProps = {
|
|
9
|
+
shouldReverseButtonOrder: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* __Modal body__
|
|
5
14
|
*
|
|
6
15
|
* @internal
|
|
7
16
|
*/
|
|
8
|
-
export declare const ModalBody:
|
|
17
|
+
export declare const ModalBody: ({ children }: {
|
|
9
18
|
children: ReactNode;
|
|
10
|
-
}
|
|
19
|
+
}) => jsx.JSX.Element;
|
|
11
20
|
/**
|
|
12
21
|
* __Modal heading__
|
|
13
22
|
*
|
|
14
23
|
* @internal
|
|
15
24
|
*/
|
|
16
|
-
export declare const ModalHeading:
|
|
17
|
-
children:
|
|
18
|
-
}
|
|
25
|
+
export declare const ModalHeading: ({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}) => jsx.JSX.Element;
|
|
19
28
|
/**
|
|
20
29
|
* __Modal image__
|
|
21
30
|
*
|
|
22
31
|
* @internal
|
|
23
32
|
*/
|
|
24
|
-
export declare const ModalImage:
|
|
25
|
-
alt: string;
|
|
26
|
-
src?: string;
|
|
27
|
-
}>;
|
|
33
|
+
export declare const ModalImage: ({ alt, src }: ModalImageProps) => jsx.JSX.Element;
|
|
28
34
|
/**
|
|
29
35
|
* __Modal action container__
|
|
30
36
|
*
|
|
31
37
|
* @internal
|
|
32
38
|
*/
|
|
33
|
-
export declare const ModalActionContainer:
|
|
34
|
-
shouldReverseButtonOrder: boolean;
|
|
35
|
-
children: ReactNode;
|
|
36
|
-
}>;
|
|
39
|
+
export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder, }: ModalActionContainerProps) => jsx.JSX.Element;
|
|
37
40
|
/**
|
|
38
41
|
* __Modal action item__
|
|
39
42
|
*
|
|
40
43
|
* @internal
|
|
41
44
|
*/
|
|
42
|
-
export declare const ModalActionItem:
|
|
45
|
+
export declare const ModalActionItem: ({ children }: {
|
|
43
46
|
children: ReactNode;
|
|
44
|
-
}
|
|
47
|
+
}) => jsx.JSX.Element;
|
|
48
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
5
|
bgColor?: string;
|
|
5
6
|
radius?: number;
|
|
@@ -19,7 +20,7 @@ export declare const pulseKeyframesName: string;
|
|
|
19
20
|
*
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
|
-
export declare const TargetInner:
|
|
23
|
+
export declare const TargetInner: ({ children, pulse, ...props }: TargetProps) => jsx.JSX.Element;
|
|
23
24
|
/**
|
|
24
25
|
* __Target overlay__
|
|
25
26
|
*
|
|
@@ -28,7 +29,7 @@ export declare const TargetInner: React.FC<TargetProps>;
|
|
|
28
29
|
*
|
|
29
30
|
* @internal
|
|
30
31
|
*/
|
|
31
|
-
export declare const TargetOverlay:
|
|
32
|
+
export declare const TargetOverlay: (props: HTMLAttributes<HTMLDivElement>) => jsx.JSX.Element;
|
|
32
33
|
/**
|
|
33
34
|
* __Spotlight pulse__
|
|
34
35
|
*
|
|
@@ -38,5 +39,5 @@ export declare const TargetOverlay: React.FC<React.HTMLAttributes<HTMLDivElement
|
|
|
38
39
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
39
40
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
40
41
|
*/
|
|
41
|
-
export declare const Pulse:
|
|
42
|
+
export declare const Pulse: ({ children, pulse, testId, ...props }: TargetProps) => jsx.JSX.Element;
|
|
42
43
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { ComponentType, ReactNode, Ref } from 'react';
|
|
3
3
|
import { ThemeProp } from '@atlaskit/theme/components';
|
|
4
4
|
import { Actions } from '../types';
|
|
5
5
|
/**
|
|
@@ -77,5 +77,5 @@ interface SpotlightCardProps {
|
|
|
77
77
|
* - [Code](https://atlassian.design/components/onboarding/spotlight-card/code)
|
|
78
78
|
* - [Usage](https://atlassian.design/components/onboarding/spotlight-card/usage)
|
|
79
79
|
*/
|
|
80
|
-
declare const SpotlightCard:
|
|
80
|
+
declare const SpotlightCard: import("react").ForwardRefExoticComponent<SpotlightCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
81
81
|
export default SpotlightCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
interface SpotlightTargetProps {
|
|
3
3
|
/**
|
|
4
4
|
* A single child
|
|
@@ -18,5 +18,5 @@ interface SpotlightTargetProps {
|
|
|
18
18
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
19
19
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
20
20
|
*/
|
|
21
|
-
declare const SpotlightTarget:
|
|
21
|
+
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => JSX.Element;
|
|
22
22
|
export default SpotlightTarget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { Actions } from '../types';
|
|
3
3
|
export interface SpotlightProps {
|
|
4
4
|
/**
|
|
@@ -92,5 +92,5 @@ export interface SpotlightProps {
|
|
|
92
92
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
93
93
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
94
94
|
*/
|
|
95
|
-
declare const Spotlight:
|
|
95
|
+
declare const Spotlight: ({ dialogWidth, pulse, testId, targetNode, target, ...rest }: SpotlightProps) => JSX.Element;
|
|
96
96
|
export default Spotlight;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
type BlanketProps = {
|
|
3
5
|
isTinted?: boolean;
|
|
4
6
|
style?: React.CSSProperties;
|
|
@@ -14,5 +16,5 @@ type BlanketProps = {
|
|
|
14
16
|
*
|
|
15
17
|
* @internal
|
|
16
18
|
*/
|
|
17
|
-
declare const Blanket:
|
|
19
|
+
declare const Blanket: (props: BlanketProps) => jsx.JSX.Element;
|
|
18
20
|
export default Blanket;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ImgHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
/**
|
|
4
5
|
* __Dialog image__
|
|
5
6
|
*
|
|
@@ -7,7 +8,7 @@ import { ReactNode } from 'react';
|
|
|
7
8
|
*
|
|
8
9
|
* @internal
|
|
9
10
|
*/
|
|
10
|
-
export declare const DialogImage:
|
|
11
|
+
export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>) => jsx.JSX.Element;
|
|
11
12
|
/**
|
|
12
13
|
* __Dialog action item container__
|
|
13
14
|
*
|
|
@@ -15,9 +16,9 @@ export declare const DialogImage: React.FC<React.ImgHTMLAttributes<HTMLImageElem
|
|
|
15
16
|
*
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
|
-
export declare const DialogActionItemContainer:
|
|
19
|
+
export declare const DialogActionItemContainer: ({ children, }: {
|
|
19
20
|
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
21
22
|
/**
|
|
22
23
|
* __Dialog action item__
|
|
23
24
|
*
|
|
@@ -25,6 +26,6 @@ export declare const DialogActionItemContainer: React.FC<{
|
|
|
25
26
|
*
|
|
26
27
|
* @internal
|
|
27
28
|
*/
|
|
28
|
-
export declare const DialogActionItem:
|
|
29
|
+
export declare const DialogActionItem: ({ children }: {
|
|
29
30
|
children: ReactNode;
|
|
30
|
-
}
|
|
31
|
+
}) => jsx.JSX.Element;
|
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type ModalImageProps = {
|
|
5
|
+
alt: string;
|
|
6
|
+
src?: string;
|
|
7
|
+
};
|
|
8
|
+
type ModalActionContainerProps = {
|
|
9
|
+
shouldReverseButtonOrder: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* __Modal body__
|
|
5
14
|
*
|
|
6
15
|
* @internal
|
|
7
16
|
*/
|
|
8
|
-
export declare const ModalBody:
|
|
17
|
+
export declare const ModalBody: ({ children }: {
|
|
9
18
|
children: ReactNode;
|
|
10
|
-
}
|
|
19
|
+
}) => jsx.JSX.Element;
|
|
11
20
|
/**
|
|
12
21
|
* __Modal heading__
|
|
13
22
|
*
|
|
14
23
|
* @internal
|
|
15
24
|
*/
|
|
16
|
-
export declare const ModalHeading:
|
|
17
|
-
children:
|
|
18
|
-
}
|
|
25
|
+
export declare const ModalHeading: ({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}) => jsx.JSX.Element;
|
|
19
28
|
/**
|
|
20
29
|
* __Modal image__
|
|
21
30
|
*
|
|
22
31
|
* @internal
|
|
23
32
|
*/
|
|
24
|
-
export declare const ModalImage:
|
|
25
|
-
alt: string;
|
|
26
|
-
src?: string;
|
|
27
|
-
}>;
|
|
33
|
+
export declare const ModalImage: ({ alt, src }: ModalImageProps) => jsx.JSX.Element;
|
|
28
34
|
/**
|
|
29
35
|
* __Modal action container__
|
|
30
36
|
*
|
|
31
37
|
* @internal
|
|
32
38
|
*/
|
|
33
|
-
export declare const ModalActionContainer:
|
|
34
|
-
shouldReverseButtonOrder: boolean;
|
|
35
|
-
children: ReactNode;
|
|
36
|
-
}>;
|
|
39
|
+
export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder, }: ModalActionContainerProps) => jsx.JSX.Element;
|
|
37
40
|
/**
|
|
38
41
|
* __Modal action item__
|
|
39
42
|
*
|
|
40
43
|
* @internal
|
|
41
44
|
*/
|
|
42
|
-
export declare const ModalActionItem:
|
|
45
|
+
export declare const ModalActionItem: ({ children }: {
|
|
43
46
|
children: ReactNode;
|
|
44
|
-
}
|
|
47
|
+
}) => jsx.JSX.Element;
|
|
48
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
5
|
bgColor?: string;
|
|
5
6
|
radius?: number;
|
|
@@ -19,7 +20,7 @@ export declare const pulseKeyframesName: string;
|
|
|
19
20
|
*
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
|
-
export declare const TargetInner:
|
|
23
|
+
export declare const TargetInner: ({ children, pulse, ...props }: TargetProps) => jsx.JSX.Element;
|
|
23
24
|
/**
|
|
24
25
|
* __Target overlay__
|
|
25
26
|
*
|
|
@@ -28,7 +29,7 @@ export declare const TargetInner: React.FC<TargetProps>;
|
|
|
28
29
|
*
|
|
29
30
|
* @internal
|
|
30
31
|
*/
|
|
31
|
-
export declare const TargetOverlay:
|
|
32
|
+
export declare const TargetOverlay: (props: HTMLAttributes<HTMLDivElement>) => jsx.JSX.Element;
|
|
32
33
|
/**
|
|
33
34
|
* __Spotlight pulse__
|
|
34
35
|
*
|
|
@@ -38,5 +39,5 @@ export declare const TargetOverlay: React.FC<React.HTMLAttributes<HTMLDivElement
|
|
|
38
39
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
39
40
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
40
41
|
*/
|
|
41
|
-
export declare const Pulse:
|
|
42
|
+
export declare const Pulse: ({ children, pulse, testId, ...props }: TargetProps) => jsx.JSX.Element;
|
|
42
43
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.3",
|
|
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/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/popper": "^5.5.0",
|
|
42
42
|
"@atlaskit/portal": "^4.3.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.5.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"bind-event-listener": "^2.1.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/docs": "*",
|
|
63
63
|
"@atlaskit/icon": "^21.12.0",
|
|
64
64
|
"@atlaskit/progress-indicator": "^9.5.0",
|
|
65
|
-
"@atlaskit/select": "^16.
|
|
65
|
+
"@atlaskit/select": "^16.5.0",
|
|
66
66
|
"@atlaskit/ssr": "*",
|
|
67
67
|
"@atlaskit/visual-regression": "*",
|
|
68
68
|
"@atlaskit/webdriver-runner": "*",
|