@atlaskit/spotlight 0.3.0 → 0.3.1

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 (69) hide show
  1. package/CHANGELOG.md +7 -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/dismiss-control/index.js +4 -3
  6. package/dist/cjs/ui/footer/index.js +3 -2
  7. package/dist/cjs/ui/header/index.js +3 -2
  8. package/dist/cjs/ui/headline/index.js +4 -1
  9. package/dist/cjs/ui/media/index.js +3 -2
  10. package/dist/cjs/ui/popover-provider/index.js +6 -3
  11. package/dist/cjs/ui/primary-action/index.js +4 -3
  12. package/dist/cjs/ui/secondary-action/index.js +4 -3
  13. package/dist/cjs/ui/show-more-control/index.js +4 -3
  14. package/dist/cjs/ui/step-count/index.js +4 -3
  15. package/dist/es2019/controllers/context.js +4 -1
  16. package/dist/es2019/ui/actions/index.js +2 -1
  17. package/dist/es2019/ui/body/index.js +2 -1
  18. package/dist/es2019/ui/dismiss-control/index.js +2 -1
  19. package/dist/es2019/ui/footer/index.js +2 -1
  20. package/dist/es2019/ui/header/index.js +2 -1
  21. package/dist/es2019/ui/headline/index.js +4 -1
  22. package/dist/es2019/ui/media/index.js +2 -1
  23. package/dist/es2019/ui/popover-provider/index.js +3 -1
  24. package/dist/es2019/ui/primary-action/index.js +2 -1
  25. package/dist/es2019/ui/secondary-action/index.js +2 -1
  26. package/dist/es2019/ui/show-more-control/index.js +2 -1
  27. package/dist/es2019/ui/step-count/index.js +2 -1
  28. package/dist/esm/controllers/context.js +4 -1
  29. package/dist/esm/ui/actions/index.js +2 -1
  30. package/dist/esm/ui/body/index.js +2 -1
  31. package/dist/esm/ui/dismiss-control/index.js +2 -1
  32. package/dist/esm/ui/footer/index.js +2 -1
  33. package/dist/esm/ui/header/index.js +2 -1
  34. package/dist/esm/ui/headline/index.js +4 -1
  35. package/dist/esm/ui/media/index.js +2 -1
  36. package/dist/esm/ui/popover-provider/index.js +3 -1
  37. package/dist/esm/ui/primary-action/index.js +2 -1
  38. package/dist/esm/ui/secondary-action/index.js +2 -1
  39. package/dist/esm/ui/show-more-control/index.js +2 -1
  40. package/dist/esm/ui/step-count/index.js +2 -1
  41. package/dist/types/controllers/context.d.ts +7 -3
  42. package/dist/types/ui/actions/index.d.ts +6 -2
  43. package/dist/types/ui/body/index.d.ts +6 -2
  44. package/dist/types/ui/card/caret/index.d.ts +0 -4
  45. package/dist/types/ui/dismiss-control/index.d.ts +1 -2
  46. package/dist/types/ui/footer/index.d.ts +6 -2
  47. package/dist/types/ui/header/index.d.ts +6 -2
  48. package/dist/types/ui/headline/index.d.ts +6 -2
  49. package/dist/types/ui/media/index.d.ts +6 -2
  50. package/dist/types/ui/popover-provider/index.d.ts +6 -2
  51. package/dist/types/ui/primary-action/index.d.ts +6 -2
  52. package/dist/types/ui/secondary-action/index.d.ts +6 -2
  53. package/dist/types/ui/show-more-control/index.d.ts +1 -2
  54. package/dist/types/ui/step-count/index.d.ts +6 -2
  55. package/dist/types-ts4.5/controllers/context.d.ts +7 -3
  56. package/dist/types-ts4.5/ui/actions/index.d.ts +6 -2
  57. package/dist/types-ts4.5/ui/body/index.d.ts +6 -2
  58. package/dist/types-ts4.5/ui/card/caret/index.d.ts +0 -4
  59. package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +1 -2
  60. package/dist/types-ts4.5/ui/footer/index.d.ts +6 -2
  61. package/dist/types-ts4.5/ui/header/index.d.ts +6 -2
  62. package/dist/types-ts4.5/ui/headline/index.d.ts +6 -2
  63. package/dist/types-ts4.5/ui/media/index.d.ts +6 -2
  64. package/dist/types-ts4.5/ui/popover-provider/index.d.ts +6 -2
  65. package/dist/types-ts4.5/ui/primary-action/index.d.ts +6 -2
  66. package/dist/types-ts4.5/ui/secondary-action/index.d.ts +6 -2
  67. package/dist/types-ts4.5/ui/show-more-control/index.d.ts +1 -2
  68. package/dist/types-ts4.5/ui/step-count/index.d.ts +6 -2
  69. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/spotlight
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`89687a02d7e6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89687a02d7e6b) -
8
+ Internal changes to support @compiled/react.
9
+
3
10
  ## 0.3.0
4
11
 
5
12
  ### Minor Changes
@@ -1,3 +1,4 @@
1
+ /* context.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -6,8 +7,10 @@ Object.defineProperty(exports, "__esModule", {
6
7
  value: true
7
8
  });
8
9
  exports.SpotlightContextProvider = exports.SpotlightContext = void 0;
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
15
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
13
16
 
@@ -26,7 +29,7 @@ var SpotlightContextProvider = exports.SpotlightContextProvider = function Spotl
26
29
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
27
30
  placement = _useState2[0],
28
31
  setPlacement = _useState2[1];
29
- return /*#__PURE__*/_react.default.createElement(SpotlightContext.Provider, {
32
+ return /*#__PURE__*/React.createElement(SpotlightContext.Provider, {
30
33
  value: {
31
34
  placement: placement,
32
35
  setPlacement: setPlacement
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightActions = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -23,7 +24,7 @@ var styles = {
23
24
  var SpotlightActions = exports.SpotlightActions = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
25
  var children = _ref.children,
25
26
  testId = _ref.testId;
26
- return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
27
+ return /*#__PURE__*/React.createElement(_compiled.Flex, {
27
28
  ref: ref,
28
29
  testId: testId,
29
30
  xcss: styles.root,
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightBody = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -23,7 +24,7 @@ var styles = {
23
24
  var SpotlightBody = exports.SpotlightBody = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
25
  var children = _ref.children,
25
26
  testId = _ref.testId;
26
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
27
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
27
28
  ref: ref,
28
29
  xcss: styles.root,
29
30
  testId: testId
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  });
9
9
  exports.SpotlightDismissControl = void 0;
10
10
  require("./index.compiled.css");
11
- var _runtime = require("@compiled/react/runtime");
12
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var React = _react;
13
+ var _runtime = require("@compiled/react/runtime");
13
14
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
14
15
  var _compiled = require("@atlaskit/primitives/compiled");
15
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -25,12 +26,12 @@ var styles = {
25
26
  var SpotlightDismissControl = exports.SpotlightDismissControl = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
26
27
  var onClick = _ref.onClick,
27
28
  testId = _ref.testId;
28
- return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ return /*#__PURE__*/React.createElement(_compiled.Pressable, {
29
30
  xcss: styles.root,
30
31
  onClick: onClick,
31
32
  ref: ref,
32
33
  testId: testId
33
- }, /*#__PURE__*/_react.default.createElement(_cross.default, {
34
+ }, /*#__PURE__*/React.createElement(_cross.default, {
34
35
  label: "Close"
35
36
  }));
36
37
  });
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightFooter = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -23,7 +24,7 @@ var styles = {
23
24
  var SpotlightFooter = exports.SpotlightFooter = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
25
  var children = _ref.children,
25
26
  testId = _ref.testId;
26
- return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
27
+ return /*#__PURE__*/React.createElement(_compiled.Flex, {
27
28
  ref: ref,
28
29
  testId: testId,
29
30
  xcss: styles.root,
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightHeader = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -24,7 +25,7 @@ var styles = {
24
25
  var SpotlightHeader = exports.SpotlightHeader = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
25
26
  var children = _ref.children,
26
27
  testId = _ref.testId;
27
- return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
28
+ return /*#__PURE__*/React.createElement(_compiled.Flex, {
28
29
  ref: ref,
29
30
  testId: testId,
30
31
  xcss: styles.root,
@@ -1,3 +1,4 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -7,6 +8,8 @@ Object.defineProperty(exports, "__esModule", {
7
8
  });
8
9
  exports.SpotlightHeadline = void 0;
9
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
10
13
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
11
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
15
  /**
@@ -18,7 +21,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
18
21
  var SpotlightHeadline = exports.SpotlightHeadline = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
19
22
  var children = _ref.children,
20
23
  testId = _ref.testId;
21
- return /*#__PURE__*/_react.default.createElement(_heading.default, {
24
+ return /*#__PURE__*/React.createElement(_heading.default, {
22
25
  ref: ref,
23
26
  testId: testId,
24
27
  size: "xsmall"
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightMedia = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -23,7 +24,7 @@ var styles = {
23
24
  var SpotlightMedia = exports.SpotlightMedia = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
25
  var children = _ref.children,
25
26
  testId = _ref.testId;
26
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
27
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
27
28
  ref: ref,
28
29
  xcss: styles.root,
29
30
  testId: testId
@@ -1,13 +1,16 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.PopoverProvider = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _runtime = require("@compiled/react/runtime");
9
11
  var _popper = require("@atlaskit/popper");
10
12
  var _context = require("../../controllers/context");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
14
  /**
12
15
  * __Popover provider__
13
16
  *
@@ -16,5 +19,5 @@ var _context = require("../../controllers/context");
16
19
  */
17
20
  var PopoverProvider = exports.PopoverProvider = function PopoverProvider(_ref) {
18
21
  var children = _ref.children;
19
- return /*#__PURE__*/_react.default.createElement(_context.SpotlightContextProvider, null, /*#__PURE__*/_react.default.createElement(_popper.Manager, null, children));
22
+ return /*#__PURE__*/React.createElement(_context.SpotlightContextProvider, null, /*#__PURE__*/React.createElement(_popper.Manager, null, children));
20
23
  };
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightPrimaryAction = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -25,12 +26,12 @@ var SpotlightPrimaryAction = exports.SpotlightPrimaryAction = /*#__PURE__*/(0, _
25
26
  var onClick = _ref.onClick,
26
27
  children = _ref.children,
27
28
  testId = _ref.testId;
28
- return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ return /*#__PURE__*/React.createElement(_compiled.Pressable, {
29
30
  ref: ref,
30
31
  testId: testId,
31
32
  xcss: styles.root,
32
33
  onClick: onClick
33
- }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
34
+ }, /*#__PURE__*/React.createElement(_compiled.Text, {
34
35
  as: "span"
35
36
  }, children));
36
37
  });
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightSecondaryAction = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -25,12 +26,12 @@ var SpotlightSecondaryAction = exports.SpotlightSecondaryAction = /*#__PURE__*/(
25
26
  var onClick = _ref.onClick,
26
27
  children = _ref.children,
27
28
  testId = _ref.testId;
28
- return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ return /*#__PURE__*/React.createElement(_compiled.Pressable, {
29
30
  ref: ref,
30
31
  testId: testId,
31
32
  xcss: styles.root,
32
33
  onClick: onClick
33
- }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
34
+ }, /*#__PURE__*/React.createElement(_compiled.Text, {
34
35
  as: "span"
35
36
  }, children));
36
37
  });
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  });
9
9
  exports.SpotlightShowMoreControl = void 0;
10
10
  require("./index.compiled.css");
11
- var _runtime = require("@compiled/react/runtime");
12
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var React = _react;
13
+ var _runtime = require("@compiled/react/runtime");
13
14
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
14
15
  var _compiled = require("@atlaskit/primitives/compiled");
15
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -25,12 +26,12 @@ var styles = {
25
26
  var SpotlightShowMoreControl = exports.SpotlightShowMoreControl = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
26
27
  var onClick = _ref.onClick,
27
28
  testId = _ref.testId;
28
- return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ return /*#__PURE__*/React.createElement(_compiled.Pressable, {
29
30
  xcss: styles.root,
30
31
  onClick: onClick,
31
32
  ref: ref,
32
33
  testId: testId
33
- }, /*#__PURE__*/_react.default.createElement(_showMoreHorizontal.default, {
34
+ }, /*#__PURE__*/React.createElement(_showMoreHorizontal.default, {
34
35
  label: "Show more"
35
36
  }));
36
37
  });
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SpotlightStepCount = void 0;
9
9
  require("./index.compiled.css");
10
- var _runtime = require("@compiled/react/runtime");
11
10
  var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
12
13
  var _compiled = require("@atlaskit/primitives/compiled");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = {
@@ -23,9 +24,9 @@ var styles = {
23
24
  var SpotlightStepCount = exports.SpotlightStepCount = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
25
  var children = _ref.children,
25
26
  testId = _ref.testId;
26
- return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
27
+ return /*#__PURE__*/React.createElement(_compiled.Flex, {
27
28
  xcss: styles.root
28
- }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
29
+ }, /*#__PURE__*/React.createElement(_compiled.Text, {
29
30
  ref: ref,
30
31
  testId: testId
31
32
  }, children));
@@ -1,4 +1,7 @@
1
- import React, { createContext, useState } from 'react';
1
+ /* context.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 { createContext, useState } from 'react';
2
5
 
3
6
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
4
7
 
@@ -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
  const styles = {
7
8
  root: "_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 { Box } from '@atlaskit/primitives/compiled';
6
7
  const styles = {
7
8
  root: "_18zrpxbi _syaz15cr _1q51u2gc"
@@ -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
  const 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
  const 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
  const 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
  const styles = {
7
8
  root: "_1bsbaq3k _4t3ihcro"
@@ -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
  const 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
  const 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
  const 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
  const styles = {
7
8
  root: "_1ul91ris"
@@ -1,5 +1,8 @@
1
+ /* context.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { createContext, useState } from 'react';
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { createContext, useState } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
5
8
 
@@ -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: "_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 { Box } from '@atlaskit/primitives/compiled';
6
7
  var styles = {
7
8
  root: "_18zrpxbi _syaz15cr _1q51u2gc"
@@ -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"
@@ -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 {};
@@ -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 {};
@@ -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>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/spotlight",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A spotlight introduces users to various points of interest across Atlassian through focused messages or multi-step tours.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/button": "^23.4.0",
30
30
  "@atlaskit/css": "^0.14.0",
31
31
  "@atlaskit/heading": "^5.2.0",
32
- "@atlaskit/icon": "^28.1.0",
32
+ "@atlaskit/icon": "^28.2.0",
33
33
  "@atlaskit/image": "^3.0.0",
34
34
  "@atlaskit/popper": "^7.1.0",
35
35
  "@atlaskit/primitives": "^14.14.0",