@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.
Files changed (86) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/controllers/context.js +5 -2
  3. package/dist/cjs/ui/actions/index.js +3 -2
  4. package/dist/cjs/ui/body/index.js +3 -2
  5. package/dist/cjs/ui/card/caret/index.js +2 -0
  6. package/dist/cjs/ui/card/index.compiled.css +1 -0
  7. package/dist/cjs/ui/card/index.js +2 -0
  8. package/dist/cjs/ui/dismiss-control/index.js +4 -3
  9. package/dist/cjs/ui/footer/index.js +3 -2
  10. package/dist/cjs/ui/header/index.js +3 -2
  11. package/dist/cjs/ui/headline/index.js +4 -1
  12. package/dist/cjs/ui/media/index.js +3 -2
  13. package/dist/cjs/ui/popover-content/index.js +2 -0
  14. package/dist/cjs/ui/popover-provider/index.js +6 -3
  15. package/dist/cjs/ui/primary-action/index.js +4 -3
  16. package/dist/cjs/ui/secondary-action/index.js +4 -3
  17. package/dist/cjs/ui/show-more-control/index.js +4 -3
  18. package/dist/cjs/ui/step-count/index.js +4 -3
  19. package/dist/es2019/controllers/context.js +4 -1
  20. package/dist/es2019/ui/actions/index.js +2 -1
  21. package/dist/es2019/ui/body/index.js +2 -1
  22. package/dist/es2019/ui/card/caret/index.js +2 -0
  23. package/dist/es2019/ui/card/index.compiled.css +1 -0
  24. package/dist/es2019/ui/card/index.js +2 -0
  25. package/dist/es2019/ui/dismiss-control/index.js +2 -1
  26. package/dist/es2019/ui/footer/index.js +2 -1
  27. package/dist/es2019/ui/header/index.js +2 -1
  28. package/dist/es2019/ui/headline/index.js +4 -1
  29. package/dist/es2019/ui/media/index.js +2 -1
  30. package/dist/es2019/ui/popover-content/index.js +2 -0
  31. package/dist/es2019/ui/popover-provider/index.js +3 -1
  32. package/dist/es2019/ui/primary-action/index.js +2 -1
  33. package/dist/es2019/ui/secondary-action/index.js +2 -1
  34. package/dist/es2019/ui/show-more-control/index.js +2 -1
  35. package/dist/es2019/ui/step-count/index.js +2 -1
  36. package/dist/esm/controllers/context.js +4 -1
  37. package/dist/esm/ui/actions/index.js +2 -1
  38. package/dist/esm/ui/body/index.js +2 -1
  39. package/dist/esm/ui/card/caret/index.js +2 -0
  40. package/dist/esm/ui/card/index.compiled.css +1 -0
  41. package/dist/esm/ui/card/index.js +2 -0
  42. package/dist/esm/ui/dismiss-control/index.js +2 -1
  43. package/dist/esm/ui/footer/index.js +2 -1
  44. package/dist/esm/ui/header/index.js +2 -1
  45. package/dist/esm/ui/headline/index.js +4 -1
  46. package/dist/esm/ui/media/index.js +2 -1
  47. package/dist/esm/ui/popover-content/index.js +2 -0
  48. package/dist/esm/ui/popover-provider/index.js +3 -1
  49. package/dist/esm/ui/primary-action/index.js +2 -1
  50. package/dist/esm/ui/secondary-action/index.js +2 -1
  51. package/dist/esm/ui/show-more-control/index.js +2 -1
  52. package/dist/esm/ui/step-count/index.js +2 -1
  53. package/dist/types/controllers/context.d.ts +7 -3
  54. package/dist/types/index.d.ts +1 -0
  55. package/dist/types/types.d.ts +1 -1
  56. package/dist/types/ui/actions/index.d.ts +6 -2
  57. package/dist/types/ui/body/index.d.ts +6 -2
  58. package/dist/types/ui/card/caret/index.d.ts +0 -4
  59. package/dist/types/ui/dismiss-control/index.d.ts +1 -2
  60. package/dist/types/ui/footer/index.d.ts +6 -2
  61. package/dist/types/ui/header/index.d.ts +6 -2
  62. package/dist/types/ui/headline/index.d.ts +6 -2
  63. package/dist/types/ui/media/index.d.ts +6 -2
  64. package/dist/types/ui/popover-provider/index.d.ts +6 -2
  65. package/dist/types/ui/primary-action/index.d.ts +6 -2
  66. package/dist/types/ui/secondary-action/index.d.ts +6 -2
  67. package/dist/types/ui/show-more-control/index.d.ts +1 -2
  68. package/dist/types/ui/step-count/index.d.ts +6 -2
  69. package/dist/types-ts4.5/controllers/context.d.ts +7 -3
  70. package/dist/types-ts4.5/index.d.ts +1 -0
  71. package/dist/types-ts4.5/types.d.ts +1 -1
  72. package/dist/types-ts4.5/ui/actions/index.d.ts +6 -2
  73. package/dist/types-ts4.5/ui/body/index.d.ts +6 -2
  74. package/dist/types-ts4.5/ui/card/caret/index.d.ts +0 -4
  75. package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +1 -2
  76. package/dist/types-ts4.5/ui/footer/index.d.ts +6 -2
  77. package/dist/types-ts4.5/ui/header/index.d.ts +6 -2
  78. package/dist/types-ts4.5/ui/headline/index.d.ts +6 -2
  79. package/dist/types-ts4.5/ui/media/index.d.ts +6 -2
  80. package/dist/types-ts4.5/ui/popover-provider/index.d.ts +6 -2
  81. package/dist/types-ts4.5/ui/primary-action/index.d.ts +6 -2
  82. package/dist/types-ts4.5/ui/secondary-action/index.d.ts +6 -2
  83. package/dist/types-ts4.5/ui/show-more-control/index.d.ts +1 -2
  84. package/dist/types-ts4.5/ui/step-count/index.d.ts +6 -2
  85. package/offerings.json +33 -0
  86. 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 React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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
- import React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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
- import React from 'react';
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 React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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 React, { forwardRef } from 'react';
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
- import React, { type Dispatch, type ReactNode, type SetStateAction } from 'react';
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: React.Context<SpotlightContextType>;
11
+ export declare const SpotlightContext: import("react").Context<SpotlightContextType>;
8
12
  export declare const SpotlightContextProvider: ({ children }: {
9
13
  children: ReactNode;
10
- }) => React.JSX.Element;
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
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightActionsProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const SpotlightActions: import("react").ForwardRefExoticComponent<SpotlightActionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightBodyProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightBody: import("react").ForwardRefExoticComponent<SpotlightBodyProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,3 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  export interface CaretProps {
6
2
  /**
7
3
  * A `testId` prop is provided for specified elements, which is a unique
@@ -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: React.ForwardRefExoticComponent<SpotlightDismissControlProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export declare const SpotlightDismissControl: import("react").ForwardRefExoticComponent<SpotlightDismissControlProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightFooterProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const SpotlightFooter: import("react").ForwardRefExoticComponent<SpotlightFooterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightHeaderProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightHeader: import("react").ForwardRefExoticComponent<SpotlightHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightHeadlineProps & React.RefAttributes<HTMLHeadingElement>>;
24
+ export declare const SpotlightHeadline: import("react").ForwardRefExoticComponent<SpotlightHeadlineProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightMediaProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightMedia: import("react").ForwardRefExoticComponent<SpotlightMediaProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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
- }) => React.JSX.Element;
14
+ }) => JSX.Element;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
30
+ export declare const SpotlightPrimaryAction: import("react").ForwardRefExoticComponent<SpotlightPrimaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightSecondaryActionProps & React.RefAttributes<HTMLButtonElement>>;
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: React.ForwardRefExoticComponent<SpotlightShowMoreControlProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export declare const SpotlightShowMoreControl: import("react").ForwardRefExoticComponent<SpotlightShowMoreControlProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightStepCountProps & React.RefAttributes<HTMLSpanElement>>;
24
+ export declare const SpotlightStepCount: import("react").ForwardRefExoticComponent<SpotlightStepCountProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,11 +1,15 @@
1
- import React, { type Dispatch, type ReactNode, type SetStateAction } from 'react';
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: React.Context<SpotlightContextType>;
11
+ export declare const SpotlightContext: import("react").Context<SpotlightContextType>;
8
12
  export declare const SpotlightContextProvider: ({ children }: {
9
13
  children: ReactNode;
10
- }) => React.JSX.Element;
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
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightActionsProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const SpotlightActions: import("react").ForwardRefExoticComponent<SpotlightActionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightBodyProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightBody: import("react").ForwardRefExoticComponent<SpotlightBodyProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,3 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  export interface CaretProps {
6
2
  /**
7
3
  * A `testId` prop is provided for specified elements, which is a unique
@@ -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: React.ForwardRefExoticComponent<SpotlightDismissControlProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export declare const SpotlightDismissControl: import("react").ForwardRefExoticComponent<SpotlightDismissControlProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightFooterProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const SpotlightFooter: import("react").ForwardRefExoticComponent<SpotlightFooterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightHeaderProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightHeader: import("react").ForwardRefExoticComponent<SpotlightHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightHeadlineProps & React.RefAttributes<HTMLHeadingElement>>;
24
+ export declare const SpotlightHeadline: import("react").ForwardRefExoticComponent<SpotlightHeadlineProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightMediaProps & React.RefAttributes<HTMLDivElement>>;
25
+ export declare const SpotlightMedia: import("react").ForwardRefExoticComponent<SpotlightMediaProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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
- }) => React.JSX.Element;
14
+ }) => JSX.Element;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
30
+ export declare const SpotlightPrimaryAction: import("react").ForwardRefExoticComponent<SpotlightPrimaryActionProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightSecondaryActionProps & React.RefAttributes<HTMLButtonElement>>;
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: React.ForwardRefExoticComponent<SpotlightShowMoreControlProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export declare const SpotlightShowMoreControl: import("react").ForwardRefExoticComponent<SpotlightShowMoreControlProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,8 @@
1
- import React, { type ReactNode } from 'react';
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: React.ForwardRefExoticComponent<SpotlightStepCountProps & React.RefAttributes<HTMLSpanElement>>;
24
+ export declare const SpotlightStepCount: import("react").ForwardRefExoticComponent<SpotlightStepCountProps & import("react").RefAttributes<HTMLSpanElement>>;