@atlaskit/spotlight 0.3.0 → 0.3.2
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 +15 -0
- package/dist/cjs/controllers/context.js +5 -2
- package/dist/cjs/ui/actions/index.js +3 -2
- package/dist/cjs/ui/body/index.js +3 -2
- package/dist/cjs/ui/card/caret/index.js +2 -0
- package/dist/cjs/ui/card/index.compiled.css +1 -0
- package/dist/cjs/ui/card/index.js +2 -0
- package/dist/cjs/ui/dismiss-control/index.js +4 -3
- package/dist/cjs/ui/footer/index.js +3 -2
- package/dist/cjs/ui/header/index.js +3 -2
- package/dist/cjs/ui/headline/index.js +4 -1
- package/dist/cjs/ui/media/index.js +3 -2
- package/dist/cjs/ui/popover-content/index.js +2 -0
- package/dist/cjs/ui/popover-provider/index.js +6 -3
- package/dist/cjs/ui/primary-action/index.js +4 -3
- package/dist/cjs/ui/secondary-action/index.js +4 -3
- package/dist/cjs/ui/show-more-control/index.js +4 -3
- package/dist/cjs/ui/step-count/index.js +4 -3
- package/dist/es2019/controllers/context.js +4 -1
- package/dist/es2019/ui/actions/index.js +2 -1
- package/dist/es2019/ui/body/index.js +2 -1
- package/dist/es2019/ui/card/caret/index.js +2 -0
- package/dist/es2019/ui/card/index.compiled.css +1 -0
- package/dist/es2019/ui/card/index.js +2 -0
- package/dist/es2019/ui/dismiss-control/index.js +2 -1
- package/dist/es2019/ui/footer/index.js +2 -1
- package/dist/es2019/ui/header/index.js +2 -1
- package/dist/es2019/ui/headline/index.js +4 -1
- package/dist/es2019/ui/media/index.js +2 -1
- package/dist/es2019/ui/popover-content/index.js +2 -0
- package/dist/es2019/ui/popover-provider/index.js +3 -1
- package/dist/es2019/ui/primary-action/index.js +2 -1
- package/dist/es2019/ui/secondary-action/index.js +2 -1
- package/dist/es2019/ui/show-more-control/index.js +2 -1
- package/dist/es2019/ui/step-count/index.js +2 -1
- package/dist/esm/controllers/context.js +4 -1
- package/dist/esm/ui/actions/index.js +2 -1
- package/dist/esm/ui/body/index.js +2 -1
- package/dist/esm/ui/card/caret/index.js +2 -0
- package/dist/esm/ui/card/index.compiled.css +1 -0
- package/dist/esm/ui/card/index.js +2 -0
- package/dist/esm/ui/dismiss-control/index.js +2 -1
- package/dist/esm/ui/footer/index.js +2 -1
- package/dist/esm/ui/header/index.js +2 -1
- package/dist/esm/ui/headline/index.js +4 -1
- package/dist/esm/ui/media/index.js +2 -1
- package/dist/esm/ui/popover-content/index.js +2 -0
- package/dist/esm/ui/popover-provider/index.js +3 -1
- package/dist/esm/ui/primary-action/index.js +2 -1
- package/dist/esm/ui/secondary-action/index.js +2 -1
- package/dist/esm/ui/show-more-control/index.js +2 -1
- package/dist/esm/ui/step-count/index.js +2 -1
- package/dist/types/controllers/context.d.ts +7 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +1 -1
- package/dist/types/ui/actions/index.d.ts +6 -2
- package/dist/types/ui/body/index.d.ts +6 -2
- package/dist/types/ui/card/caret/index.d.ts +0 -4
- package/dist/types/ui/dismiss-control/index.d.ts +1 -2
- package/dist/types/ui/footer/index.d.ts +6 -2
- package/dist/types/ui/header/index.d.ts +6 -2
- package/dist/types/ui/headline/index.d.ts +6 -2
- package/dist/types/ui/media/index.d.ts +6 -2
- package/dist/types/ui/popover-provider/index.d.ts +6 -2
- package/dist/types/ui/primary-action/index.d.ts +6 -2
- package/dist/types/ui/secondary-action/index.d.ts +6 -2
- package/dist/types/ui/show-more-control/index.d.ts +1 -2
- package/dist/types/ui/step-count/index.d.ts +6 -2
- package/dist/types-ts4.5/controllers/context.d.ts +7 -3
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/actions/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/body/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/card/caret/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/footer/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/header/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/headline/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/media/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/popover-provider/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/primary-action/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/secondary-action/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/show-more-control/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/step-count/index.d.ts +6 -2
- package/offerings.json +33 -0
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
|
|
6
6
|
._1bsbaq3k{width:295px}
|
|
7
7
|
._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
|
|
8
|
+
._1e021qz4{inset-inline-start:-140px}
|
|
8
9
|
._1e02c7mi{inset-inline-start:var(--ds-space-negative-250,-20px)}
|
|
9
10
|
._1e0c1txw{display:flex}
|
|
10
11
|
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
@@ -13,10 +13,12 @@ var styles = {
|
|
|
13
13
|
};
|
|
14
14
|
var placementStyles = {
|
|
15
15
|
'top-start': "_u7co12x7 _rjxpc7mi",
|
|
16
|
+
'top-center': "_u7co12x7 _1e021qz4",
|
|
16
17
|
'top-end': "_u7co12x7 _1e02c7mi",
|
|
17
18
|
'right-start': "_1e0212x7 _u7comgjw",
|
|
18
19
|
'right-end': "_1e0212x7 _152tmgjw",
|
|
19
20
|
'bottom-start': "_152t12x7 _rjxpc7mi",
|
|
21
|
+
'bottom-center': "_152t12x7 _1e021qz4",
|
|
20
22
|
'bottom-end': "_152t12x7 _1e02c7mi",
|
|
21
23
|
'left-start': "_rjxp12x7 _u7comgjw",
|
|
22
24
|
'left-end': "_rjxp12x7 _152tmgjw"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
6
7
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
7
8
|
var styles = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_bozgpxbi _y4tiutpp _1bsb1osq"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_bozgpxbi _y4tiutpp"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import { forwardRef } from 'react';
|
|
2
5
|
import Heading from '@atlaskit/heading';
|
|
3
6
|
/**
|
|
4
7
|
* __SpotlightHeadline__
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_1bsbaq3k _4t3ihcro"
|
|
@@ -30,8 +30,10 @@ var offset = [0, 2];
|
|
|
30
30
|
*/
|
|
31
31
|
var popperPlacementMap = {
|
|
32
32
|
'top-start': 'top',
|
|
33
|
+
'top-center': 'top',
|
|
33
34
|
'top-end': 'top',
|
|
34
35
|
'bottom-start': 'bottom',
|
|
36
|
+
'bottom-center': 'bottom',
|
|
35
37
|
'bottom-end': 'bottom',
|
|
36
38
|
'right-start': 'right',
|
|
37
39
|
'right-end': 'right',
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
4
|
import { Manager } from '@atlaskit/popper';
|
|
3
5
|
import { SpotlightContextProvider } from '../../controllers/context';
|
|
4
6
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_2rko12b0 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
6
7
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
7
8
|
var styles = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import
|
|
5
|
+
import { forwardRef } from 'react';
|
|
5
6
|
import { Flex, Text } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
root: "_1ul91ris"
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
|
|
2
6
|
import type { Placement } from '../types';
|
|
3
7
|
interface SpotlightContextType {
|
|
4
8
|
placement: Placement;
|
|
5
9
|
setPlacement: Dispatch<SetStateAction<Placement>>;
|
|
6
10
|
}
|
|
7
|
-
export declare const SpotlightContext:
|
|
11
|
+
export declare const SpotlightContext: import("react").Context<SpotlightContextType>;
|
|
8
12
|
export declare const SpotlightContextProvider: ({ children }: {
|
|
9
13
|
children: ReactNode;
|
|
10
|
-
}) =>
|
|
14
|
+
}) => JSX.Element;
|
|
11
15
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
15
|
export { PopoverContent } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
|
+
export { type Placement } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Placement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
1
|
+
export type Placement = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightActionsProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightActionsProps {
|
|
|
17
21
|
* `SpotlightActions` groups `SpotlightAction` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightActions:
|
|
24
|
+
export declare const SpotlightActions: import("react").ForwardRefExoticComponent<SpotlightActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightBodyProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightBodyProps {
|
|
|
18
22
|
* `SpotlightBody` is required in a `Spotlight`. The content should be brief and direct to elaborate on the intent.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightBody:
|
|
25
|
+
export declare const SpotlightBody: import("react").ForwardRefExoticComponent<SpotlightBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
2
|
export interface SpotlightDismissControlProps {
|
|
4
3
|
/**
|
|
@@ -18,4 +17,4 @@ export interface SpotlightDismissControlProps {
|
|
|
18
17
|
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
export declare const SpotlightDismissControl:
|
|
20
|
+
export declare const SpotlightDismissControl: import("react").ForwardRefExoticComponent<SpotlightDismissControlProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightFooterProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightFooterProps {
|
|
|
17
21
|
* `SpotlightFooter` is intended to display the `SpotlightActions` and `SpotLightStepCount` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightFooter:
|
|
24
|
+
export declare const SpotlightFooter: import("react").ForwardRefExoticComponent<SpotlightFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightHeaderProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightHeaderProps {
|
|
|
18
22
|
* intended to show the `SpotlightHeadline` component, as well as `SpotLightControls`.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightHeader:
|
|
25
|
+
export declare const SpotlightHeader: import("react").ForwardRefExoticComponent<SpotlightHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightHeadlineProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightHeadlineProps {
|
|
|
17
21
|
* `SpotlightHeadline` is required in a `Spotlight`. The content should be brief and direct to quickly hook the user on the intent.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightHeadline:
|
|
24
|
+
export declare const SpotlightHeadline: import("react").ForwardRefExoticComponent<SpotlightHeadlineProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightMediaProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightMediaProps {
|
|
|
18
22
|
* `SpotlightMedia` is optional in a `Spotlight`.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightMedia:
|
|
25
|
+
export declare const SpotlightMedia: import("react").ForwardRefExoticComponent<SpotlightMediaProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
/**
|
|
3
7
|
* __Popover provider__
|
|
4
8
|
*
|
|
@@ -7,4 +11,4 @@ import React, { type ReactNode } from 'react';
|
|
|
7
11
|
*/
|
|
8
12
|
export declare const PopoverProvider: ({ children }: {
|
|
9
13
|
children: ReactNode;
|
|
10
|
-
}) =>
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
7
|
export interface SpotlightPrimaryActionProps {
|
|
4
8
|
/**
|
|
@@ -23,4 +27,4 @@ export interface SpotlightPrimaryActionProps {
|
|
|
23
27
|
* for single step spotlights, or to show the next step on multi step spotlight tours.
|
|
24
28
|
*
|
|
25
29
|
*/
|
|
26
|
-
export declare const SpotlightPrimaryAction:
|
|
30
|
+
export declare const SpotlightPrimaryAction: import("react").ForwardRefExoticComponent<SpotlightPrimaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
7
|
export interface SpotlightSecondaryActionProps {
|
|
4
8
|
/**
|
|
@@ -23,4 +27,4 @@ export interface SpotlightSecondaryActionProps {
|
|
|
23
27
|
* It is intended to be used to go back to the previous step in multi step spotlight tours, or other similar actions.
|
|
24
28
|
*
|
|
25
29
|
*/
|
|
26
|
-
export declare const SpotlightSecondaryAction:
|
|
30
|
+
export declare const SpotlightSecondaryAction: import("react").ForwardRefExoticComponent<SpotlightSecondaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
2
|
export interface SpotlightShowMoreControlProps {
|
|
4
3
|
/**
|
|
@@ -18,4 +17,4 @@ export interface SpotlightShowMoreControlProps {
|
|
|
18
17
|
* SpotlightShowMoreControl allows the user to close the `Spotlight`.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
export declare const SpotlightShowMoreControl:
|
|
20
|
+
export declare const SpotlightShowMoreControl: import("react").ForwardRefExoticComponent<SpotlightShowMoreControlProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightStepCountProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightStepCountProps {
|
|
|
17
21
|
* `SpotlightStepCount` groups `SpotlightAction` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightStepCount:
|
|
24
|
+
export declare const SpotlightStepCount: import("react").ForwardRefExoticComponent<SpotlightStepCountProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
|
|
2
6
|
import type { Placement } from '../types';
|
|
3
7
|
interface SpotlightContextType {
|
|
4
8
|
placement: Placement;
|
|
5
9
|
setPlacement: Dispatch<SetStateAction<Placement>>;
|
|
6
10
|
}
|
|
7
|
-
export declare const SpotlightContext:
|
|
11
|
+
export declare const SpotlightContext: import("react").Context<SpotlightContextType>;
|
|
8
12
|
export declare const SpotlightContextProvider: ({ children }: {
|
|
9
13
|
children: ReactNode;
|
|
10
|
-
}) =>
|
|
14
|
+
}) => JSX.Element;
|
|
11
15
|
export {};
|
|
@@ -14,3 +14,4 @@ export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
15
|
export { PopoverContent } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
|
+
export { type Placement } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Placement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
1
|
+
export type Placement = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightActionsProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightActionsProps {
|
|
|
17
21
|
* `SpotlightActions` groups `SpotlightAction` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightActions:
|
|
24
|
+
export declare const SpotlightActions: import("react").ForwardRefExoticComponent<SpotlightActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightBodyProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightBodyProps {
|
|
|
18
22
|
* `SpotlightBody` is required in a `Spotlight`. The content should be brief and direct to elaborate on the intent.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightBody:
|
|
25
|
+
export declare const SpotlightBody: import("react").ForwardRefExoticComponent<SpotlightBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
2
|
export interface SpotlightDismissControlProps {
|
|
4
3
|
/**
|
|
@@ -18,4 +17,4 @@ export interface SpotlightDismissControlProps {
|
|
|
18
17
|
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
export declare const SpotlightDismissControl:
|
|
20
|
+
export declare const SpotlightDismissControl: import("react").ForwardRefExoticComponent<SpotlightDismissControlProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightFooterProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightFooterProps {
|
|
|
17
21
|
* `SpotlightFooter` is intended to display the `SpotlightActions` and `SpotLightStepCount` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightFooter:
|
|
24
|
+
export declare const SpotlightFooter: import("react").ForwardRefExoticComponent<SpotlightFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightHeaderProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightHeaderProps {
|
|
|
18
22
|
* intended to show the `SpotlightHeadline` component, as well as `SpotLightControls`.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightHeader:
|
|
25
|
+
export declare const SpotlightHeader: import("react").ForwardRefExoticComponent<SpotlightHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightHeadlineProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightHeadlineProps {
|
|
|
17
21
|
* `SpotlightHeadline` is required in a `Spotlight`. The content should be brief and direct to quickly hook the user on the intent.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightHeadline:
|
|
24
|
+
export declare const SpotlightHeadline: import("react").ForwardRefExoticComponent<SpotlightHeadlineProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightMediaProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -18,4 +22,4 @@ export interface SpotlightMediaProps {
|
|
|
18
22
|
* `SpotlightMedia` is optional in a `Spotlight`.
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare const SpotlightMedia:
|
|
25
|
+
export declare const SpotlightMedia: import("react").ForwardRefExoticComponent<SpotlightMediaProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
/**
|
|
3
7
|
* __Popover provider__
|
|
4
8
|
*
|
|
@@ -7,4 +11,4 @@ import React, { type ReactNode } from 'react';
|
|
|
7
11
|
*/
|
|
8
12
|
export declare const PopoverProvider: ({ children }: {
|
|
9
13
|
children: ReactNode;
|
|
10
|
-
}) =>
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
7
|
export interface SpotlightPrimaryActionProps {
|
|
4
8
|
/**
|
|
@@ -23,4 +27,4 @@ export interface SpotlightPrimaryActionProps {
|
|
|
23
27
|
* for single step spotlights, or to show the next step on multi step spotlight tours.
|
|
24
28
|
*
|
|
25
29
|
*/
|
|
26
|
-
export declare const SpotlightPrimaryAction:
|
|
30
|
+
export declare const SpotlightPrimaryAction: import("react").ForwardRefExoticComponent<SpotlightPrimaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
7
|
export interface SpotlightSecondaryActionProps {
|
|
4
8
|
/**
|
|
@@ -23,4 +27,4 @@ export interface SpotlightSecondaryActionProps {
|
|
|
23
27
|
* It is intended to be used to go back to the previous step in multi step spotlight tours, or other similar actions.
|
|
24
28
|
*
|
|
25
29
|
*/
|
|
26
|
-
export declare const SpotlightSecondaryAction:
|
|
30
|
+
export declare const SpotlightSecondaryAction: import("react").ForwardRefExoticComponent<SpotlightSecondaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
3
2
|
export interface SpotlightShowMoreControlProps {
|
|
4
3
|
/**
|
|
@@ -18,4 +17,4 @@ export interface SpotlightShowMoreControlProps {
|
|
|
18
17
|
* SpotlightShowMoreControl allows the user to close the `Spotlight`.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
export declare const SpotlightShowMoreControl:
|
|
20
|
+
export declare const SpotlightShowMoreControl: import("react").ForwardRefExoticComponent<SpotlightShowMoreControlProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
export interface SpotlightStepCountProps {
|
|
3
7
|
/**
|
|
4
8
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
@@ -17,4 +21,4 @@ export interface SpotlightStepCountProps {
|
|
|
17
21
|
* `SpotlightStepCount` groups `SpotlightAction` components.
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
|
-
export declare const SpotlightStepCount:
|
|
24
|
+
export declare const SpotlightStepCount: import("react").ForwardRefExoticComponent<SpotlightStepCountProps & import("react").RefAttributes<HTMLSpanElement>>;
|