@atlaskit/spotlight 0.0.14 → 0.0.15

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 (35) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/constellation/index/props.mdx +88 -0
  3. package/dist/cjs/ui/dismiss-control/index.compiled.css +6 -0
  4. package/dist/cjs/ui/dismiss-control/index.js +12 -7
  5. package/dist/cjs/ui/primary-action/index.compiled.css +8 -0
  6. package/dist/cjs/ui/primary-action/index.js +12 -6
  7. package/dist/cjs/ui/secondary-action/index.compiled.css +5 -0
  8. package/dist/cjs/ui/secondary-action/index.js +8 -5
  9. package/dist/cjs/ui/show-more-control/index.compiled.css +6 -0
  10. package/dist/cjs/ui/show-more-control/index.js +12 -7
  11. package/dist/es2019/ui/dismiss-control/index.compiled.css +6 -0
  12. package/dist/es2019/ui/dismiss-control/index.js +12 -7
  13. package/dist/es2019/ui/primary-action/index.compiled.css +8 -0
  14. package/dist/es2019/ui/primary-action/index.js +12 -5
  15. package/dist/es2019/ui/secondary-action/index.compiled.css +5 -0
  16. package/dist/es2019/ui/secondary-action/index.js +9 -5
  17. package/dist/es2019/ui/show-more-control/index.compiled.css +6 -0
  18. package/dist/es2019/ui/show-more-control/index.js +12 -7
  19. package/dist/esm/ui/dismiss-control/index.compiled.css +6 -0
  20. package/dist/esm/ui/dismiss-control/index.js +12 -7
  21. package/dist/esm/ui/primary-action/index.compiled.css +8 -0
  22. package/dist/esm/ui/primary-action/index.js +12 -5
  23. package/dist/esm/ui/secondary-action/index.compiled.css +5 -0
  24. package/dist/esm/ui/secondary-action/index.js +9 -5
  25. package/dist/esm/ui/show-more-control/index.compiled.css +6 -0
  26. package/dist/esm/ui/show-more-control/index.js +12 -7
  27. package/dist/types/ui/dismiss-control/index.d.ts +2 -2
  28. package/dist/types/ui/primary-action/index.d.ts +2 -2
  29. package/dist/types/ui/secondary-action/index.d.ts +2 -2
  30. package/dist/types/ui/show-more-control/index.d.ts +2 -2
  31. package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +2 -2
  32. package/dist/types-ts4.5/ui/primary-action/index.d.ts +2 -2
  33. package/dist/types-ts4.5/ui/secondary-action/index.d.ts +2 -2
  34. package/dist/types-ts4.5/ui/show-more-control/index.d.ts +2 -2
  35. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/spotlight
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5d9897e6c4558`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d9897e6c4558) -
8
+ Temporary styling update to SpotlightPrimaryAction, SpotlightSecondaryAction,
9
+ SpotlightDismissControl, SpotlightShowMoreControl to more closely match design ahead of visually
10
+ refreshed tokens.
11
+
3
12
  ## 0.0.14
4
13
 
5
14
  ### Patch Changes
@@ -0,0 +1,88 @@
1
+ ---
2
+ title: Spotlight
3
+ order: 1
4
+ description: A spotlight focuses attention on a specific part of the UI, like a button or an icon.
5
+ props:
6
+ packageName: '@atlaskit/spotlight'
7
+ exports:
8
+ - Spotlight
9
+ - SpotlightActions
10
+ - SpotlightBody
11
+ - SpotlightControls
12
+ - SpotlightDismissControl
13
+ - SpotlightFooter
14
+ - SpotlightHeader
15
+ - SpotlightHeadline
16
+ - SpotlightMedia
17
+ - SpotlightPrimaryAction
18
+ - SpotlightSecondaryAction
19
+ - SpotlightShowMoreControl
20
+ - SpotlightStepCount
21
+ - PopoverContent
22
+ - PopoverProvider
23
+ - PopoverTarget
24
+ ---
25
+
26
+ ## Spotlight props
27
+
28
+ <TSMorphProps exportName="Spotlight" packageName="@atlaskit/spotlight" />
29
+
30
+ ## SpotlightActions props
31
+
32
+ <TSMorphProps exportName="SpotlightActions" packageName="@atlaskit/spotlight" />
33
+
34
+ ## SpotlightBody props
35
+
36
+ <TSMorphProps exportName="SpotlightBody" packageName="@atlaskit/spotlight" />
37
+
38
+ ## SpotlightControls props
39
+
40
+ <TSMorphProps exportName="SpotlightControls" packageName="@atlaskit/spotlight" />
41
+
42
+ ## SpotlightDismissControl props
43
+
44
+ <TSMorphProps exportName="SpotlightDismissControl" packageName="@atlaskit/spotlight" />
45
+
46
+ ## SpotlightFooter props
47
+
48
+ <TSMorphProps exportName="SpotlightFooter" packageName="@atlaskit/spotlight" />
49
+
50
+ ## SpotlightHeader props
51
+
52
+ <TSMorphProps exportName="SpotlightHeader" packageName="@atlaskit/spotlight" />
53
+
54
+ ## SpotlightHeadline props
55
+
56
+ <TSMorphProps exportName="SpotlightHeadline" packageName="@atlaskit/spotlight" />
57
+
58
+ ## SpotlightMedia props
59
+
60
+ <TSMorphProps exportName="SpotlightMedia" packageName="@atlaskit/spotlight" />
61
+
62
+ ## SpotlightPrimaryAction props
63
+
64
+ <TSMorphProps exportName="SpotlightPrimaryAction" packageName="@atlaskit/spotlight" />
65
+
66
+ ## SpotlightSecondaryAction props
67
+
68
+ <TSMorphProps exportName="SpotlightSecondaryAction" packageName="@atlaskit/spotlight" />
69
+
70
+ ## SpotlightShowMoreControl props
71
+
72
+ <TSMorphProps exportName="SpotlightShowMoreControl" packageName="@atlaskit/spotlight" />
73
+
74
+ ## SpotlightStepCount props
75
+
76
+ <TSMorphProps exportName="SpotlightStepCount" packageName="@atlaskit/spotlight" />
77
+
78
+ ## PopoverContent props
79
+
80
+ <TSMorphProps exportName="PopoverContent" packageName="@atlaskit/spotlight" />
81
+
82
+ ## PopoverProvider props
83
+
84
+ <TSMorphProps exportName="PopoverProvider" packageName="@atlaskit/spotlight" />
85
+
86
+ ## PopoverTarget props
87
+
88
+ <TSMorphProps exportName="PopoverTarget" packageName="@atlaskit/spotlight" />
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -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");
@@ -6,10 +7,15 @@ Object.defineProperty(exports, "__esModule", {
6
7
  value: true
7
8
  });
8
9
  exports.SpotlightDismissControl = void 0;
10
+ require("./index.compiled.css");
11
+ var _runtime = require("@compiled/react/runtime");
9
12
  var _react = _interopRequireWildcard(require("react"));
10
- var _new = require("@atlaskit/button/new");
11
13
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
14
+ var _compiled = require("@atlaskit/primitives/compiled");
12
15
  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); }
16
+ var styles = {
17
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
18
+ };
13
19
  /**
14
20
  * __SpotlightDismissControl__
15
21
  *
@@ -19,13 +25,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
19
25
  var SpotlightDismissControl = exports.SpotlightDismissControl = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
20
26
  var onClick = _ref.onClick,
21
27
  testId = _ref.testId;
22
- return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
23
- appearance: "default",
24
- icon: _cross.default,
25
- label: "Close",
28
+ return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ xcss: styles.root,
26
30
  onClick: onClick,
27
31
  ref: ref,
28
- spacing: "compact",
29
32
  testId: testId
30
- });
33
+ }, /*#__PURE__*/_react.default.createElement(_cross.default, {
34
+ label: "Close"
35
+ }));
31
36
  });
@@ -0,0 +1,8 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
+ ._1dqonqa1{border-style:solid}
4
+ ._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
5
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
6
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
7
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}
8
+ ._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,14 +1,19 @@
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
4
  var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.SpotlightPrimaryAction = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
9
11
  var _react = _interopRequireWildcard(require("react"));
10
- var _new = _interopRequireDefault(require("@atlaskit/button/new"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
11
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); }
14
+ var styles = {
15
+ root: "_2rkoiti9 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
16
+ };
12
17
  /**
13
18
  * __Spotlight primary action__
14
19
  *
@@ -20,11 +25,12 @@ var SpotlightPrimaryAction = exports.SpotlightPrimaryAction = /*#__PURE__*/(0, _
20
25
  var onClick = _ref.onClick,
21
26
  children = _ref.children,
22
27
  testId = _ref.testId;
23
- return /*#__PURE__*/_react.default.createElement(_new.default, {
28
+ return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
24
29
  ref: ref,
25
- spacing: "compact",
26
30
  testId: testId,
27
- appearance: "primary",
31
+ xcss: styles.root,
28
32
  onClick: onClick
29
- }, children);
33
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
34
+ as: "span"
35
+ }, children));
30
36
  });
@@ -0,0 +1,5 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
5
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,15 +1,19 @@
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
4
  var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.SpotlightSecondaryAction = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
9
11
  var _react = _interopRequireWildcard(require("react"));
10
- var _new = _interopRequireDefault(require("@atlaskit/button/new"));
11
12
  var _compiled = require("@atlaskit/primitives/compiled");
12
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); }
14
+ var styles = {
15
+ root: "_2rkoiti9 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
16
+ };
13
17
  /**
14
18
  * __Spotlight secondary action__
15
19
  *
@@ -21,11 +25,10 @@ var SpotlightSecondaryAction = exports.SpotlightSecondaryAction = /*#__PURE__*/(
21
25
  var onClick = _ref.onClick,
22
26
  children = _ref.children,
23
27
  testId = _ref.testId;
24
- return /*#__PURE__*/_react.default.createElement(_new.default, {
28
+ return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
25
29
  ref: ref,
26
- spacing: "compact",
27
30
  testId: testId,
28
- appearance: "subtle",
31
+ xcss: styles.root,
29
32
  onClick: onClick
30
33
  }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
31
34
  as: "span"
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -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");
@@ -6,10 +7,15 @@ Object.defineProperty(exports, "__esModule", {
6
7
  value: true
7
8
  });
8
9
  exports.SpotlightShowMoreControl = void 0;
10
+ require("./index.compiled.css");
11
+ var _runtime = require("@compiled/react/runtime");
9
12
  var _react = _interopRequireWildcard(require("react"));
10
- var _new = require("@atlaskit/button/new");
11
13
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
14
+ var _compiled = require("@atlaskit/primitives/compiled");
12
15
  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); }
16
+ var styles = {
17
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
18
+ };
13
19
  /**
14
20
  * __SpotlightShowMoreControl__
15
21
  *
@@ -19,13 +25,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
19
25
  var SpotlightShowMoreControl = exports.SpotlightShowMoreControl = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
20
26
  var onClick = _ref.onClick,
21
27
  testId = _ref.testId;
22
- return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
23
- appearance: "default",
24
- icon: _showMoreHorizontal.default,
25
- label: "Close",
28
+ return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
29
+ xcss: styles.root,
26
30
  onClick: onClick,
27
31
  ref: ref,
28
- spacing: "compact",
29
32
  testId: testId
30
- });
33
+ }, /*#__PURE__*/_react.default.createElement(_showMoreHorizontal.default, {
34
+ label: "Show more"
35
+ }));
31
36
  });
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,12 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import { IconButton } from '@atlaskit/button/new';
3
5
  import CrossIcon from '@atlaskit/icon/core/cross';
6
+ import { Pressable } from '@atlaskit/primitives/compiled';
7
+ const styles = {
8
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ };
4
10
  /**
5
11
  * __SpotlightDismissControl__
6
12
  *
@@ -11,13 +17,12 @@ export const SpotlightDismissControl = /*#__PURE__*/forwardRef(({
11
17
  onClick,
12
18
  testId
13
19
  }, ref) => {
14
- return /*#__PURE__*/React.createElement(IconButton, {
15
- appearance: "default",
16
- icon: CrossIcon,
17
- label: "Close",
20
+ return /*#__PURE__*/React.createElement(Pressable, {
21
+ xcss: styles.root,
18
22
  onClick: onClick,
19
23
  ref: ref,
20
- spacing: "compact",
21
24
  testId: testId
22
- });
25
+ }, /*#__PURE__*/React.createElement(CrossIcon, {
26
+ label: "Close"
27
+ }));
23
28
  });
@@ -0,0 +1,8 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
+ ._1dqonqa1{border-style:solid}
4
+ ._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
5
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
6
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
7
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}
8
+ ._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,5 +1,11 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import Button from '@atlaskit/button/new';
5
+ import { Pressable, Text } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ root: "_2rkoiti9 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
8
+ };
3
9
  /**
4
10
  * __Spotlight primary action__
5
11
  *
@@ -12,11 +18,12 @@ export const SpotlightPrimaryAction = /*#__PURE__*/forwardRef(({
12
18
  children,
13
19
  testId
14
20
  }, ref) => {
15
- return /*#__PURE__*/React.createElement(Button, {
21
+ return /*#__PURE__*/React.createElement(Pressable, {
16
22
  ref: ref,
17
- spacing: "compact",
18
23
  testId: testId,
19
- appearance: "primary",
24
+ xcss: styles.root,
20
25
  onClick: onClick
21
- }, children);
26
+ }, /*#__PURE__*/React.createElement(Text, {
27
+ as: "span"
28
+ }, children));
22
29
  });
@@ -0,0 +1,5 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
5
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,11 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import Button from '@atlaskit/button/new';
3
- import { Text } from '@atlaskit/primitives/compiled';
5
+ import { Pressable, Text } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ root: "_2rkoiti9 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
8
+ };
4
9
  /**
5
10
  * __Spotlight secondary action__
6
11
  *
@@ -13,11 +18,10 @@ export const SpotlightSecondaryAction = /*#__PURE__*/forwardRef(({
13
18
  children,
14
19
  testId
15
20
  }, ref) => {
16
- return /*#__PURE__*/React.createElement(Button, {
21
+ return /*#__PURE__*/React.createElement(Pressable, {
17
22
  ref: ref,
18
- spacing: "compact",
19
23
  testId: testId,
20
- appearance: "subtle",
24
+ xcss: styles.root,
21
25
  onClick: onClick
22
26
  }, /*#__PURE__*/React.createElement(Text, {
23
27
  as: "span"
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,12 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import { IconButton } from '@atlaskit/button/new';
3
5
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
6
+ import { Pressable } from '@atlaskit/primitives/compiled';
7
+ const styles = {
8
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ };
4
10
  /**
5
11
  * __SpotlightShowMoreControl__
6
12
  *
@@ -11,13 +17,12 @@ export const SpotlightShowMoreControl = /*#__PURE__*/forwardRef(({
11
17
  onClick,
12
18
  testId
13
19
  }, ref) => {
14
- return /*#__PURE__*/React.createElement(IconButton, {
15
- appearance: "default",
16
- icon: ShowMoreHorizontalIcon,
17
- label: "Close",
20
+ return /*#__PURE__*/React.createElement(Pressable, {
21
+ xcss: styles.root,
18
22
  onClick: onClick,
19
23
  ref: ref,
20
- spacing: "compact",
21
24
  testId: testId
22
- });
25
+ }, /*#__PURE__*/React.createElement(ShowMoreHorizontalIcon, {
26
+ label: "Show more"
27
+ }));
23
28
  });
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,12 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import { IconButton } from '@atlaskit/button/new';
3
5
  import CrossIcon from '@atlaskit/icon/core/cross';
6
+ import { Pressable } from '@atlaskit/primitives/compiled';
7
+ var styles = {
8
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ };
4
10
  /**
5
11
  * __SpotlightDismissControl__
6
12
  *
@@ -10,13 +16,12 @@ import CrossIcon from '@atlaskit/icon/core/cross';
10
16
  export var SpotlightDismissControl = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
17
  var onClick = _ref.onClick,
12
18
  testId = _ref.testId;
13
- return /*#__PURE__*/React.createElement(IconButton, {
14
- appearance: "default",
15
- icon: CrossIcon,
16
- label: "Close",
19
+ return /*#__PURE__*/React.createElement(Pressable, {
20
+ xcss: styles.root,
17
21
  onClick: onClick,
18
22
  ref: ref,
19
- spacing: "compact",
20
23
  testId: testId
21
- });
24
+ }, /*#__PURE__*/React.createElement(CrossIcon, {
25
+ label: "Close"
26
+ }));
22
27
  });
@@ -0,0 +1,8 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
+ ._1dqonqa1{border-style:solid}
4
+ ._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
5
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
6
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
7
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}
8
+ ._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,5 +1,11 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import Button from '@atlaskit/button/new';
5
+ import { Pressable, Text } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ root: "_2rkoiti9 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
8
+ };
3
9
  /**
4
10
  * __Spotlight primary action__
5
11
  *
@@ -11,11 +17,12 @@ export var SpotlightPrimaryAction = /*#__PURE__*/forwardRef(function (_ref, ref)
11
17
  var onClick = _ref.onClick,
12
18
  children = _ref.children,
13
19
  testId = _ref.testId;
14
- return /*#__PURE__*/React.createElement(Button, {
20
+ return /*#__PURE__*/React.createElement(Pressable, {
15
21
  ref: ref,
16
- spacing: "compact",
17
22
  testId: testId,
18
- appearance: "primary",
23
+ xcss: styles.root,
19
24
  onClick: onClick
20
- }, children);
25
+ }, /*#__PURE__*/React.createElement(Text, {
26
+ as: "span"
27
+ }, children));
21
28
  });
@@ -0,0 +1,5 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
5
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,11 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import Button from '@atlaskit/button/new';
3
- import { Text } from '@atlaskit/primitives/compiled';
5
+ import { Pressable, Text } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ root: "_2rkoiti9 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
8
+ };
4
9
  /**
5
10
  * __Spotlight secondary action__
6
11
  *
@@ -12,11 +17,10 @@ export var SpotlightSecondaryAction = /*#__PURE__*/forwardRef(function (_ref, re
12
17
  var onClick = _ref.onClick,
13
18
  children = _ref.children,
14
19
  testId = _ref.testId;
15
- return /*#__PURE__*/React.createElement(Button, {
20
+ return /*#__PURE__*/React.createElement(Pressable, {
16
21
  ref: ref,
17
- spacing: "compact",
18
22
  testId: testId,
19
- appearance: "subtle",
23
+ xcss: styles.root,
20
24
  onClick: onClick
21
25
  }, /*#__PURE__*/React.createElement(Text, {
22
26
  as: "span"
@@ -0,0 +1,6 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
3
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
+ ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._syaz15cr{color:var(--ds-text-inverse,#fff)}
6
+ ._irr31bsc:hover{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}._1di61b6k:active{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
@@ -1,6 +1,12 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
1
4
  import React, { forwardRef } from 'react';
2
- import { IconButton } from '@atlaskit/button/new';
3
5
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
6
+ import { Pressable } from '@atlaskit/primitives/compiled';
7
+ var styles = {
8
+ root: "_2rkoiti9 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ };
4
10
  /**
5
11
  * __SpotlightShowMoreControl__
6
12
  *
@@ -10,13 +16,12 @@ import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
10
16
  export var SpotlightShowMoreControl = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
17
  var onClick = _ref.onClick,
12
18
  testId = _ref.testId;
13
- return /*#__PURE__*/React.createElement(IconButton, {
14
- appearance: "default",
15
- icon: ShowMoreHorizontalIcon,
16
- label: "Close",
19
+ return /*#__PURE__*/React.createElement(Pressable, {
20
+ xcss: styles.root,
17
21
  onClick: onClick,
18
22
  ref: ref,
19
- spacing: "compact",
20
23
  testId: testId
21
- });
24
+ }, /*#__PURE__*/React.createElement(ShowMoreHorizontalIcon, {
25
+ label: "Show more"
26
+ }));
22
27
  });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IconButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightDismissControlProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -10,7 +10,7 @@ export interface SpotlightDismissControlProps {
10
10
  /**
11
11
  * The action to take when the button is clicked.
12
12
  */
13
- onClick?: IconButtonProps['onClick'];
13
+ onClick?: PressableProps['onClick'];
14
14
  }
15
15
  /**
16
16
  * __SpotlightDismissControl__
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type ButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightPrimaryActionProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -14,7 +14,7 @@ export interface SpotlightPrimaryActionProps {
14
14
  /**
15
15
  * The action to take when the button is clicked.
16
16
  */
17
- onClick?: ButtonProps['onClick'];
17
+ onClick?: PressableProps['onClick'];
18
18
  }
19
19
  /**
20
20
  * __Spotlight primary action__
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type ButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightSecondaryActionProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -14,7 +14,7 @@ export interface SpotlightSecondaryActionProps {
14
14
  /**
15
15
  * The action to take when the button is clicked.
16
16
  */
17
- onClick?: ButtonProps['onClick'];
17
+ onClick?: PressableProps['onClick'];
18
18
  }
19
19
  /**
20
20
  * __Spotlight secondary action__
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IconButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightShowMoreControlProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -10,7 +10,7 @@ export interface SpotlightShowMoreControlProps {
10
10
  /**
11
11
  * The action to take when the button is clicked.
12
12
  */
13
- onClick?: IconButtonProps['onClick'];
13
+ onClick?: PressableProps['onClick'];
14
14
  }
15
15
  /**
16
16
  * __SpotlightShowMoreControl__
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IconButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightDismissControlProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -10,7 +10,7 @@ export interface SpotlightDismissControlProps {
10
10
  /**
11
11
  * The action to take when the button is clicked.
12
12
  */
13
- onClick?: IconButtonProps['onClick'];
13
+ onClick?: PressableProps['onClick'];
14
14
  }
15
15
  /**
16
16
  * __SpotlightDismissControl__
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type ButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightPrimaryActionProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -14,7 +14,7 @@ export interface SpotlightPrimaryActionProps {
14
14
  /**
15
15
  * The action to take when the button is clicked.
16
16
  */
17
- onClick?: ButtonProps['onClick'];
17
+ onClick?: PressableProps['onClick'];
18
18
  }
19
19
  /**
20
20
  * __Spotlight primary action__
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type ButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightSecondaryActionProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -14,7 +14,7 @@ export interface SpotlightSecondaryActionProps {
14
14
  /**
15
15
  * The action to take when the button is clicked.
16
16
  */
17
- onClick?: ButtonProps['onClick'];
17
+ onClick?: PressableProps['onClick'];
18
18
  }
19
19
  /**
20
20
  * __Spotlight secondary action__
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IconButtonProps } from '@atlaskit/button/new';
2
+ import { type PressableProps } from '@atlaskit/primitives/compiled';
3
3
  export interface SpotlightShowMoreControlProps {
4
4
  /**
5
5
  * A `testId` prop is provided for specified elements, which is a unique
@@ -10,7 +10,7 @@ export interface SpotlightShowMoreControlProps {
10
10
  /**
11
11
  * The action to take when the button is clicked.
12
12
  */
13
- onClick?: IconButtonProps['onClick'];
13
+ onClick?: PressableProps['onClick'];
14
14
  }
15
15
  /**
16
16
  * __SpotlightShowMoreControl__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/spotlight",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
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",