@atlaskit/onboarding 14.6.1 → 15.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 +32 -0
- package/dist/cjs/components/spotlight-manager.js +4 -1
- package/dist/cjs/components/spotlight-transition.js +1 -0
- package/dist/cjs/components/theme.js +4 -3
- package/dist/cjs/entry-points/modal-transition.js +13 -0
- package/dist/cjs/entry-points/modal.js +13 -0
- package/dist/cjs/entry-points/spotlight-card.js +13 -0
- package/dist/cjs/entry-points/spotlight-manager.js +32 -0
- package/dist/cjs/entry-points/spotlight-target.js +13 -0
- package/dist/cjs/entry-points/spotlight-transition.js +20 -0
- package/dist/cjs/entry-points/spotlight.js +13 -0
- package/dist/cjs/entry-points/target.js +24 -0
- package/dist/cjs/entry-points/theme.js +18 -0
- package/dist/cjs/entry-points/types.js +1 -0
- package/dist/cjs/entry-points/use-spotlight.js +13 -0
- package/dist/cjs/styled/dialog.js +2 -0
- package/dist/cjs/styled/modal.js +4 -0
- package/dist/cjs/styled/target.compiled.css +1 -1
- package/dist/cjs/styled/target.js +4 -2
- package/dist/es2019/components/index.js +15 -1
- package/dist/es2019/components/spotlight-manager.js +3 -1
- package/dist/es2019/components/spotlight-transition.js +1 -0
- package/dist/es2019/components/theme.js +4 -3
- package/dist/es2019/entry-points/modal-transition.js +1 -0
- package/dist/es2019/entry-points/modal.js +1 -0
- package/dist/es2019/entry-points/spotlight-card.js +1 -0
- package/dist/es2019/entry-points/spotlight-manager.js +2 -0
- package/dist/es2019/entry-points/spotlight-target.js +1 -0
- package/dist/es2019/entry-points/spotlight-transition.js +2 -0
- package/dist/es2019/entry-points/spotlight.js +1 -0
- package/dist/es2019/entry-points/target.js +1 -0
- package/dist/es2019/entry-points/theme.js +1 -0
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/es2019/entry-points/use-spotlight.js +1 -0
- package/dist/es2019/styled/dialog.js +2 -0
- package/dist/es2019/styled/modal.js +4 -0
- package/dist/es2019/styled/target.compiled.css +1 -1
- package/dist/es2019/styled/target.js +4 -2
- package/dist/esm/components/index.js +15 -1
- package/dist/esm/components/spotlight-manager.js +3 -1
- package/dist/esm/components/spotlight-transition.js +1 -0
- package/dist/esm/components/theme.js +4 -3
- package/dist/esm/entry-points/modal-transition.js +1 -0
- package/dist/esm/entry-points/modal.js +1 -0
- package/dist/esm/entry-points/spotlight-card.js +1 -0
- package/dist/esm/entry-points/spotlight-manager.js +2 -0
- package/dist/esm/entry-points/spotlight-target.js +1 -0
- package/dist/esm/entry-points/spotlight-transition.js +2 -0
- package/dist/esm/entry-points/spotlight.js +1 -0
- package/dist/esm/entry-points/target.js +1 -0
- package/dist/esm/entry-points/theme.js +1 -0
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/esm/entry-points/use-spotlight.js +1 -0
- package/dist/esm/styled/dialog.js +2 -0
- package/dist/esm/styled/modal.js +4 -0
- package/dist/esm/styled/target.compiled.css +1 -1
- package/dist/esm/styled/target.js +4 -2
- package/dist/types/entry-points/modal-transition.d.ts +1 -0
- package/dist/types/entry-points/modal.d.ts +1 -0
- package/dist/types/entry-points/spotlight-card.d.ts +1 -0
- package/dist/types/entry-points/spotlight-manager.d.ts +3 -0
- package/dist/types/entry-points/spotlight-target.d.ts +1 -0
- package/dist/types/entry-points/spotlight-transition.d.ts +2 -0
- package/dist/types/entry-points/spotlight.d.ts +1 -0
- package/dist/types/entry-points/target.d.ts +1 -0
- package/dist/types/entry-points/theme.d.ts +1 -0
- package/dist/types/entry-points/types.d.ts +1 -0
- package/dist/types/entry-points/use-spotlight.d.ts +1 -0
- package/modal/package.json +10 -0
- package/modal-transition/package.json +10 -0
- package/package.json +16 -42
- package/spotlight/package.json +10 -0
- package/spotlight-card/package.json +10 -0
- package/spotlight-manager/package.json +10 -0
- package/spotlight-target/package.json +10 -0
- package/spotlight-transition/package.json +10 -0
- package/target/package.json +10 -0
- package/theme/package.json +10 -0
- package/types/package.json +4 -11
- package/use-spotlight/package.json +10 -0
- package/dist/types-ts4.5/components/clone.d.ts +0 -54
- package/dist/types-ts4.5/components/index.d.ts +0 -10
- package/dist/types-ts4.5/components/modal-transition.d.ts +0 -17
- package/dist/types-ts4.5/components/modal.d.ts +0 -54
- package/dist/types-ts4.5/components/node-resolver-spotlight-inner.d.ts +0 -18
- package/dist/types-ts4.5/components/node-resolver-spotlight-target.d.ts +0 -27
- package/dist/types-ts4.5/components/spotlight-card.d.ts +0 -14
- package/dist/types-ts4.5/components/spotlight-dialog.d.ts +0 -86
- package/dist/types-ts4.5/components/spotlight-inner.d.ts +0 -58
- package/dist/types-ts4.5/components/spotlight-manager.d.ts +0 -83
- package/dist/types-ts4.5/components/spotlight-target.d.ts +0 -50
- package/dist/types-ts4.5/components/spotlight-transition.d.ts +0 -45
- package/dist/types-ts4.5/components/spotlight.d.ts +0 -15
- package/dist/types-ts4.5/components/theme.d.ts +0 -10
- package/dist/types-ts4.5/components/use-spotlight.d.ts +0 -9
- package/dist/types-ts4.5/components/value-changed.d.ts +0 -11
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/styled/blanket.d.ts +0 -19
- package/dist/types-ts4.5/styled/dialog.d.ts +0 -33
- package/dist/types-ts4.5/styled/modal.d.ts +0 -51
- package/dist/types-ts4.5/styled/target.d.ts +0 -45
- package/dist/types-ts4.5/types.d.ts +0 -173
- package/dist/types-ts4.5/utils/use-element-box.d.ts +0 -20
- package/dist/types-ts4.5/utils/use-element-observer.d.ts +0 -16
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import React, { Component, type ComponentType, type ReactNode } from 'react';
|
|
2
|
-
import { type Actions } from '../types';
|
|
3
|
-
interface SpotlightDialogProps {
|
|
4
|
-
/**
|
|
5
|
-
* Buttons to render in the footer.
|
|
6
|
-
*/
|
|
7
|
-
actions?: Actions;
|
|
8
|
-
/**
|
|
9
|
-
* An optional element rendered beside the footer actions.
|
|
10
|
-
*/
|
|
11
|
-
actionsBeforeElement?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* The elements rendered in the modal.
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Where the dialog should appear, relative to the contents of the children.
|
|
18
|
-
*/
|
|
19
|
-
dialogPlacement?: 'top left' | 'top center' | 'top right' | 'right top' | 'right middle' | 'right bottom' | 'bottom left' | 'bottom center' | 'bottom right' | 'left top' | 'left middle' | 'left bottom';
|
|
20
|
-
/**
|
|
21
|
-
* The width of the dialog in pixels. The minimum possible width is 160px and the maximum width is 600px.
|
|
22
|
-
*/
|
|
23
|
-
dialogWidth: number;
|
|
24
|
-
/**
|
|
25
|
-
* Optional element rendered below the body.
|
|
26
|
-
*/
|
|
27
|
-
footer?: ComponentType<any>;
|
|
28
|
-
/**
|
|
29
|
-
* Optional element rendered above the body.
|
|
30
|
-
*/
|
|
31
|
-
header?: ComponentType<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Heading text rendered above the body.
|
|
34
|
-
*/
|
|
35
|
-
heading?: string;
|
|
36
|
-
/**
|
|
37
|
-
* An optional element rendered to the right of the heading.
|
|
38
|
-
*/
|
|
39
|
-
headingAfterElement?: ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Path to the image.
|
|
42
|
-
*/
|
|
43
|
-
image?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The spotlight target node.
|
|
46
|
-
*/
|
|
47
|
-
targetNode: HTMLElement;
|
|
48
|
-
/**
|
|
49
|
-
* A `testId` prop is provided for specified elements,
|
|
50
|
-
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
51
|
-
* serving as a hook for automated tests.
|
|
52
|
-
*/
|
|
53
|
-
testId?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Refers to an `aria-label` attribute. Sets an accessible name for the spotlight dialog wrapper to announce it to users of assistive technology.
|
|
56
|
-
* Usage of either this, or the `titleId` prop is strongly recommended to improve accessibility.
|
|
57
|
-
*/
|
|
58
|
-
label?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Refers to a value of an `aria-labelledby` attribute. References an element to define accessible name for the spotlight dialog.
|
|
61
|
-
* Usage of either this, or the `label` prop is strongly recommended to improve accessibility.
|
|
62
|
-
*/
|
|
63
|
-
titleId?: string;
|
|
64
|
-
}
|
|
65
|
-
interface State {
|
|
66
|
-
focusLockDisabled: boolean;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* __Spotlight dialog__
|
|
70
|
-
*
|
|
71
|
-
* An onboarding spotlight introduces new features to users through focused messages or multi-step tours.
|
|
72
|
-
*
|
|
73
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
74
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
75
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
76
|
-
*/
|
|
77
|
-
declare class SpotlightDialogComponent extends Component<SpotlightDialogProps, State> {
|
|
78
|
-
state: {
|
|
79
|
-
focusLockDisabled: boolean;
|
|
80
|
-
};
|
|
81
|
-
private focusLockTimeoutId;
|
|
82
|
-
componentDidMount(): void;
|
|
83
|
-
componentWillUnmount(): void;
|
|
84
|
-
render(): React.JSX.Element;
|
|
85
|
-
}
|
|
86
|
-
export default SpotlightDialogComponent;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ScrollLogicalPosition, type SpotlightProps } from '../types';
|
|
3
|
-
import { type ElementBoundingBox } from '../utils/use-element-box';
|
|
4
|
-
interface SpotlightInnerProps extends SpotlightProps {
|
|
5
|
-
/**
|
|
6
|
-
* The spotlight target DOM element.
|
|
7
|
-
*/
|
|
8
|
-
targetNode: HTMLElement;
|
|
9
|
-
/**
|
|
10
|
-
* Called when the component has been mounted.
|
|
11
|
-
*/
|
|
12
|
-
onOpened: () => any;
|
|
13
|
-
/**
|
|
14
|
-
* Called when the component has been unmounted.
|
|
15
|
-
*/
|
|
16
|
-
onClosed: () => any;
|
|
17
|
-
/**
|
|
18
|
-
* Whether to display a pulse animation around the spotlighted element.
|
|
19
|
-
*
|
|
20
|
-
* Same as `SpotlightProps` but required instead of optional.
|
|
21
|
-
*/
|
|
22
|
-
pulse: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The width of the dialog in pixels. The minimum possible width is 160px and the maximum width is 600px.
|
|
25
|
-
*
|
|
26
|
-
* Same as `SpotlightProps` but required instead of optional.
|
|
27
|
-
*/
|
|
28
|
-
dialogWidth: number;
|
|
29
|
-
/**
|
|
30
|
-
* passed to scrollIntoView as the block option, which determines the vertical alignment of the target node in the closest scrollable ancestor.
|
|
31
|
-
*/
|
|
32
|
-
scrollPositionBlock?: ScrollLogicalPosition;
|
|
33
|
-
}
|
|
34
|
-
interface State {
|
|
35
|
-
replacementElement: HTMLElement | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* __Spotlight inner__
|
|
39
|
-
*
|
|
40
|
-
* Renders the spotlight target clone and dialog.
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
declare class SpotlightInner extends React.Component<SpotlightInnerProps, State> {
|
|
45
|
-
static defaultProps: {
|
|
46
|
-
dialogWidth: number;
|
|
47
|
-
pulse: boolean;
|
|
48
|
-
};
|
|
49
|
-
state: {
|
|
50
|
-
replacementElement: null;
|
|
51
|
-
};
|
|
52
|
-
componentDidUpdate(prevProps: SpotlightInnerProps): void;
|
|
53
|
-
componentDidMount(): void;
|
|
54
|
-
componentWillUnmount(): void;
|
|
55
|
-
getTargetNodeStyle: (box: ElementBoundingBox) => {};
|
|
56
|
-
render(): React.JSX.Element;
|
|
57
|
-
}
|
|
58
|
-
export default SpotlightInner;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React, { type ElementType, PureComponent, type ReactNode } from 'react';
|
|
2
|
-
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
-
export type TargetRef = (element: HTMLElement | null | undefined) => void;
|
|
4
|
-
export type GetTargetRef = (
|
|
5
|
-
/**
|
|
6
|
-
* The `name` prop passed to the corresponding `SpotlightTarget`
|
|
7
|
-
*
|
|
8
|
-
* This is used as a key into the `targets` map owned by `SpotlightManager`
|
|
9
|
-
* because the `SpotlightManager` stores the target nodes for
|
|
10
|
-
* descendant `SpotlightTarget` instances.
|
|
11
|
-
*/
|
|
12
|
-
name: string) => TargetRef;
|
|
13
|
-
declare const TargetConsumer: React.Consumer<GetTargetRef | undefined>;
|
|
14
|
-
declare const SpotlightContext: React.Context<{
|
|
15
|
-
opened: () => void;
|
|
16
|
-
closed: () => void;
|
|
17
|
-
targets: {
|
|
18
|
-
[key: string]: HTMLElement | undefined;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
declare const SpotlightStateConsumer: React.Consumer<{
|
|
22
|
-
opened: () => void;
|
|
23
|
-
closed: () => void;
|
|
24
|
-
targets: {
|
|
25
|
-
[key: string]: HTMLElement | undefined;
|
|
26
|
-
};
|
|
27
|
-
}>;
|
|
28
|
-
export { TargetConsumer };
|
|
29
|
-
export { SpotlightContext, SpotlightStateConsumer as SpotlightConsumer };
|
|
30
|
-
interface SpotlightManagerProps {
|
|
31
|
-
/**
|
|
32
|
-
* Boolean prop for toggling blanket transparency.
|
|
33
|
-
*/
|
|
34
|
-
blanketIsTinted?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Typically the app, or a section of the app.
|
|
37
|
-
*/
|
|
38
|
-
children: ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated
|
|
41
|
-
* Component is deprecated and will be removed in the future.
|
|
42
|
-
*/
|
|
43
|
-
component?: ElementType;
|
|
44
|
-
/**
|
|
45
|
-
* Handler function to be called when the blanket is clicked.
|
|
46
|
-
*/
|
|
47
|
-
onBlanketClicked?: () => void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* __Spotlight manager__
|
|
51
|
-
*
|
|
52
|
-
* A spotlight manager manages the visibility of spotlights used to introduce new features to users through focused messages or multi-step tours.
|
|
53
|
-
*
|
|
54
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
55
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
56
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
57
|
-
*
|
|
58
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
59
|
-
*/
|
|
60
|
-
export default class SpotlightManager extends PureComponent<SpotlightManagerProps, {
|
|
61
|
-
spotlightCount: number;
|
|
62
|
-
targets: {
|
|
63
|
-
[key: string]: HTMLElement | void;
|
|
64
|
-
};
|
|
65
|
-
}> {
|
|
66
|
-
static defaultProps: {
|
|
67
|
-
blanketIsTinted: boolean;
|
|
68
|
-
};
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
state: {
|
|
71
|
-
spotlightCount: number;
|
|
72
|
-
targets: {};
|
|
73
|
-
};
|
|
74
|
-
getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
|
|
75
|
-
spotlightOpen: () => void;
|
|
76
|
-
spotlightClose: () => void;
|
|
77
|
-
getStateProviderValue: MemoizedFn<(this: any, targets: any) => {
|
|
78
|
-
opened: () => void;
|
|
79
|
-
closed: () => void;
|
|
80
|
-
targets: any;
|
|
81
|
-
}>;
|
|
82
|
-
render(): React.JSX.Element;
|
|
83
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { type TargetRef } from './spotlight-manager';
|
|
3
|
-
type RenderChildrenFunction = (props: {
|
|
4
|
-
/**
|
|
5
|
-
* Pass this as the `ref` of the element that should be cloned.
|
|
6
|
-
*
|
|
7
|
-
* This is useful if:
|
|
8
|
-
*
|
|
9
|
-
* - you don't want a wrapping `<div>`
|
|
10
|
-
* - a component exposes specific children through ref props
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <SpotlightTarget>
|
|
15
|
-
* {({ targetRef }) => (
|
|
16
|
-
* <OpaqueComponent
|
|
17
|
-
* headingRef={targetRef}
|
|
18
|
-
* />
|
|
19
|
-
* )}
|
|
20
|
-
* </SpotlightTarget>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
targetRef?: TargetRef;
|
|
24
|
-
}) => ReactNode;
|
|
25
|
-
interface SpotlightTargetProps {
|
|
26
|
-
/**
|
|
27
|
-
* A single child.
|
|
28
|
-
*/
|
|
29
|
-
children: ReactNode | RenderChildrenFunction;
|
|
30
|
-
/**
|
|
31
|
-
* The name to reference from Spotlight.
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* __Spotlight target__
|
|
37
|
-
*
|
|
38
|
-
* A spotlight target marks a component to be used for introducing new features to users through focused messages or multi-step tours.
|
|
39
|
-
*
|
|
40
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
41
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
42
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
43
|
-
*
|
|
44
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
45
|
-
*/
|
|
46
|
-
declare const SpotlightTarget: {
|
|
47
|
-
({ children, name }: SpotlightTargetProps): React.JSX.Element;
|
|
48
|
-
displayName: string;
|
|
49
|
-
};
|
|
50
|
-
export default SpotlightTarget;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
interface SpotlightTransitionProps {
|
|
3
|
-
/**
|
|
4
|
-
* Children that are conditionally rendered. The transition happens based
|
|
5
|
-
* on the existence or non-existence of children.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
interface State {
|
|
10
|
-
currentChildren: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
interface SpotlightTransitionContextModel {
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onExited: () => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* __Spotlight transition__
|
|
18
|
-
*
|
|
19
|
-
* A spotlight transition holds onto spotlights so they can fade out when exiting the viewport.
|
|
20
|
-
*
|
|
21
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
22
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
23
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
26
|
-
*/
|
|
27
|
-
declare class SpotlightTransition extends React.Component<SpotlightTransitionProps, State> {
|
|
28
|
-
static getDerivedStateFromProps(props: SpotlightTransitionProps, state: State): {
|
|
29
|
-
currentChildren: React.ReactNode;
|
|
30
|
-
};
|
|
31
|
-
state: {
|
|
32
|
-
currentChildren: undefined;
|
|
33
|
-
};
|
|
34
|
-
onExited: () => void;
|
|
35
|
-
render(): React.JSX.Element;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* __Spotlight transition consumer__
|
|
39
|
-
*
|
|
40
|
-
* Used to consume the spotlight transition context through render props.
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare const SpotlightTransitionConsumer: React.Consumer<SpotlightTransitionContextModel>;
|
|
45
|
-
export default SpotlightTransition;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type SpotlightProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* __Spotlight__
|
|
5
|
-
*
|
|
6
|
-
* An onboarding spotlight introduces new features to users through focused messages or multi-step tours.
|
|
7
|
-
*
|
|
8
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
9
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
10
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
11
|
-
*
|
|
12
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
13
|
-
*/
|
|
14
|
-
declare const Spotlight: ({ actions, actionsBeforeElement, children, dialogPlacement, dialogWidth, footer, header, heading, headingAfterElement, image, label, pulse, scrollPositionBlock, shouldWatchTarget, target, targetBgColor, targetNode, targetOnClick, targetRadius, targetReplacement, testId, titleId, ...rest }: SpotlightProps) => React.JSX.Element;
|
|
15
|
-
export default Spotlight;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated
|
|
3
|
-
* Custom button themes are deprecated and will be removed in the future.
|
|
4
|
-
*/
|
|
5
|
-
export declare const spotlightButtonTheme: (current: any, themeProps: Record<string, any>) => any;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
* Custom button themes are deprecated and will be removed in the future.
|
|
9
|
-
*/
|
|
10
|
-
export declare const modalButtonTheme: (current: any, themeProps: Record<string, any>) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use spotlight hook returns information about available spotlight targets.
|
|
3
|
-
*
|
|
4
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
5
|
-
*/
|
|
6
|
-
export default function useSpotlight(): {
|
|
7
|
-
isTargetRendered: (target: string) => boolean;
|
|
8
|
-
checkVisibility: (target: string) => (options?: CheckVisibilityOptions) => boolean;
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
interface ValueChangedProps {
|
|
3
|
-
value: any;
|
|
4
|
-
onChange: Function;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export default class ValueChanged extends React.Component<ValueChangedProps> {
|
|
8
|
-
componentDidUpdate(prevProps: ValueChangedProps): void;
|
|
9
|
-
render(): React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type BlanketProps = {
|
|
2
|
-
isTinted?: boolean;
|
|
3
|
-
style?: React.CSSProperties;
|
|
4
|
-
onBlanketClicked?: () => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* __Blanket__
|
|
9
|
-
*
|
|
10
|
-
* A replacement for `@atlaskit/blanket`.
|
|
11
|
-
*
|
|
12
|
-
* We use this for spotlights instead of `@atlaskit/blanket`
|
|
13
|
-
* because spotlights must sit on top of other layered elements,
|
|
14
|
-
* such as modals, which have their own blankets.
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
declare const Blanket: React.ForwardRefExoticComponent<React.PropsWithoutRef<BlanketProps> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export default Blanket;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ImgHTMLAttributes, type ReactNode } from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* __Dialog image__
|
|
8
|
-
*
|
|
9
|
-
* An optional header image in spotlight dialogs.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare const DialogImage: ({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>) => JSX.Element;
|
|
14
|
-
/**
|
|
15
|
-
* __Dialog action item container__
|
|
16
|
-
*
|
|
17
|
-
* Flex wrapper around dialog action items.
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
export declare const DialogActionItemContainer: ({ children }: {
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
}) => JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* __Dialog action item__
|
|
26
|
-
*
|
|
27
|
-
* Action items shown inside of the dialog.
|
|
28
|
-
*
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export declare const DialogActionItem: ({ children }: {
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
}) => JSX.Element;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
type ModalImageProps = {
|
|
7
|
-
alt: string;
|
|
8
|
-
src?: string;
|
|
9
|
-
};
|
|
10
|
-
type ModalActionContainerProps = {
|
|
11
|
-
shouldReverseButtonOrder: boolean;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* __Modal body__
|
|
16
|
-
*
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare const ModalBody: ({ children }: {
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}) => JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* __Modal heading__
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
export declare const ModalHeading: ({ children, id, }: {
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
id: string;
|
|
30
|
-
}) => JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* __Modal image__
|
|
33
|
-
*
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
export declare const ModalImage: ({ alt, src }: ModalImageProps) => JSX.Element;
|
|
37
|
-
/**
|
|
38
|
-
* __Modal action container__
|
|
39
|
-
*
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
export declare const ModalActionContainer: ({ children, shouldReverseButtonOrder, }: ModalActionContainerProps) => JSX.Element;
|
|
43
|
-
/**
|
|
44
|
-
* __Modal action item__
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
export declare const ModalActionItem: ({ children }: {
|
|
49
|
-
children: ReactNode;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
6
|
-
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
bgColor?: string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
radius?: number | string;
|
|
11
|
-
testId?: string;
|
|
12
|
-
};
|
|
13
|
-
type TargetProps = Omit<BaseProps, 'css'> & {
|
|
14
|
-
pulse?: boolean;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* __Target inner__
|
|
18
|
-
*
|
|
19
|
-
* Used to apply spotlight border and pulse to spotlight targets.
|
|
20
|
-
*
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export declare const TargetInner: ({ bgColor, children, className, pulse, radius, testId, ...props }: TargetProps) => JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* __Target overlay__
|
|
26
|
-
*
|
|
27
|
-
* Overlays a spotlight target, allowing for custom click events that are intended
|
|
28
|
-
* only for onboarding.
|
|
29
|
-
*
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
export declare const TargetOverlay: ({ onClick, ...props }: HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* __Spotlight pulse__
|
|
35
|
-
*
|
|
36
|
-
* A spotlight pulse draws attention to a new feature.
|
|
37
|
-
*
|
|
38
|
-
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
39
|
-
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
40
|
-
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare const Pulse: ({ bgColor, children, className, radius, pulse, testId, ...props }: TargetProps) => JSX.Element;
|
|
45
|
-
export {};
|