@atlaskit/spotlight 0.9.0 → 0.9.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 (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/ui/card/caret/index.compiled.css +1 -1
  3. package/dist/cjs/ui/card/caret/index.js +1 -1
  4. package/dist/cjs/ui/card/index.compiled.css +1 -1
  5. package/dist/cjs/ui/card/index.js +1 -1
  6. package/dist/cjs/ui/dismiss-control/index.compiled.css +2 -2
  7. package/dist/cjs/ui/dismiss-control/index.js +1 -1
  8. package/dist/cjs/ui/popover-content/index.js +1 -1
  9. package/dist/cjs/ui/primary-action/index.compiled.css +4 -4
  10. package/dist/cjs/ui/primary-action/index.js +1 -1
  11. package/dist/cjs/ui/secondary-action/index.compiled.css +2 -2
  12. package/dist/cjs/ui/secondary-action/index.js +1 -1
  13. package/dist/cjs/ui/show-more-control/index.compiled.css +2 -2
  14. package/dist/cjs/ui/show-more-control/index.js +1 -1
  15. package/dist/es2019/ui/card/caret/index.compiled.css +1 -1
  16. package/dist/es2019/ui/card/caret/index.js +1 -1
  17. package/dist/es2019/ui/card/index.compiled.css +1 -1
  18. package/dist/es2019/ui/card/index.js +1 -1
  19. package/dist/es2019/ui/dismiss-control/index.compiled.css +2 -2
  20. package/dist/es2019/ui/dismiss-control/index.js +1 -1
  21. package/dist/es2019/ui/popover-content/index.js +2 -2
  22. package/dist/es2019/ui/primary-action/index.compiled.css +4 -4
  23. package/dist/es2019/ui/primary-action/index.js +1 -1
  24. package/dist/es2019/ui/secondary-action/index.compiled.css +2 -2
  25. package/dist/es2019/ui/secondary-action/index.js +1 -1
  26. package/dist/es2019/ui/show-more-control/index.compiled.css +2 -2
  27. package/dist/es2019/ui/show-more-control/index.js +1 -1
  28. package/dist/esm/ui/card/caret/index.compiled.css +1 -1
  29. package/dist/esm/ui/card/caret/index.js +1 -1
  30. package/dist/esm/ui/card/index.compiled.css +1 -1
  31. package/dist/esm/ui/card/index.js +1 -1
  32. package/dist/esm/ui/dismiss-control/index.compiled.css +2 -2
  33. package/dist/esm/ui/dismiss-control/index.js +1 -1
  34. package/dist/esm/ui/popover-content/index.js +2 -2
  35. package/dist/esm/ui/primary-action/index.compiled.css +4 -4
  36. package/dist/esm/ui/primary-action/index.js +1 -1
  37. package/dist/esm/ui/secondary-action/index.compiled.css +2 -2
  38. package/dist/esm/ui/secondary-action/index.js +1 -1
  39. package/dist/esm/ui/show-more-control/index.compiled.css +2 -2
  40. package/dist/esm/ui/show-more-control/index.js +1 -1
  41. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/spotlight
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`80f0a09eede30`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/80f0a09eede30) -
8
+ Fix bug where PopoverContent initially renders in the default position before updating to user
9
+ supplied position.
10
+
11
+ ## 0.9.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 0.9.0
4
18
 
5
19
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
  ._1pby1fw0{z-index:700}
3
3
  ._1yxnt94y{border-end-start-radius:1px}
4
4
  ._4t3io7ao{height:15px}
5
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
6
  ._kqswh2mm{position:relative}
7
7
  ._mkrzmhja{clip-path:polygon(0 0,100% 100%,0 100%)}
8
8
  ._t9ec1hke{transform:rotate(135deg)}
@@ -13,7 +13,7 @@ var _runtime = require("@compiled/react/runtime");
13
13
  var _context = require("../../../controllers/context");
14
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); }
15
15
  var styles = {
16
- root: "_bfhkcdhy _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
16
+ root: "_bfhk1aqn _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
17
17
  'top-start': "_t9ec71a3",
18
18
  'top-center': "_t9ec71a3",
19
19
  'top-end': "_t9ec71a3",
@@ -2,7 +2,7 @@
2
2
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._zulpu2gc{gap:var(--ds-space-100,8px)}._152t12x7{inset-block-start:var(--ds-space-075,6px)}
4
4
  ._152tmgjw{inset-block-start:var(--ds-space-negative-200,-1pc)}
5
- ._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
5
+ ._16qs1nax{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
6
6
  ._1bsbaq3k{width:295px}
7
7
  ._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
8
8
  ._1e021qz4{inset-inline-start:-140px}
@@ -17,7 +17,7 @@ var _caret = require("./caret");
17
17
  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); }
18
18
  var styles = {
19
19
  root: "_kqswh2mm",
20
- card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs9g9j"
20
+ card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs1nax"
21
21
  };
22
22
  var placementStyles = {
23
23
  'top-start': "_u7co12x7 _rjxpc7mi",
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -16,7 +16,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
16
16
  var _context = require("../../controllers/context");
17
17
  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); }
18
18
  var styles = {
19
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
19
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
20
20
  };
21
21
  /**
22
22
  * __SpotlightDismissControl__
@@ -116,7 +116,7 @@ var PopoverContent = exports.PopoverContent = function PopoverContent(props) {
116
116
  }
117
117
  secondaryAction.setAction(back);
118
118
  }, [back, secondaryAction]);
119
- (0, _react.useEffect)(function () {
119
+ (0, _react.useLayoutEffect)(function () {
120
120
  card.setPlacement(placement);
121
121
  }, [placement, card]);
122
122
  (0, _react.useEffect)(function () {
@@ -1,8 +1,8 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
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)}
4
+ ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
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)}
7
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}
8
+ ._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -14,7 +14,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _context = require("../../controllers/context");
15
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
16
  var styles = {
17
- root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
17
+ root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6d8yml _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
18
18
  };
19
19
  /**
20
20
  * __Spotlight primary action__
@@ -1,5 +1,5 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
3
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
4
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)}
5
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -14,7 +14,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _context = require("../../controllers/context");
15
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
16
  var styles = {
17
- root: "_2rko12b0 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
17
+ root: "_2rko12b0 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
18
18
  };
19
19
  /**
20
20
  * __Spotlight secondary action__
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -15,7 +15,7 @@ var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/sh
15
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
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); }
17
17
  var styles = {
18
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
18
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
19
19
  };
20
20
  /**
21
21
  * __SpotlightShowMoreControl__
@@ -2,7 +2,7 @@
2
2
  ._1pby1fw0{z-index:700}
3
3
  ._1yxnt94y{border-end-start-radius:1px}
4
4
  ._4t3io7ao{height:15px}
5
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
6
  ._kqswh2mm{position:relative}
7
7
  ._mkrzmhja{clip-path:polygon(0 0,100% 100%,0 100%)}
8
8
  ._t9ec1hke{transform:rotate(135deg)}
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, useContext } from 'react';
6
6
  import { SpotlightContext } from '../../../controllers/context';
7
7
  const styles = {
8
- root: "_bfhkcdhy _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
8
+ root: "_bfhk1aqn _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
9
9
  'top-start': "_t9ec71a3",
10
10
  'top-center': "_t9ec71a3",
11
11
  'top-end': "_t9ec71a3",
@@ -2,7 +2,7 @@
2
2
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._zulpu2gc{gap:var(--ds-space-100,8px)}._152t12x7{inset-block-start:var(--ds-space-075,6px)}
4
4
  ._152tmgjw{inset-block-start:var(--ds-space-negative-200,-1pc)}
5
- ._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
5
+ ._16qs1nax{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
6
6
  ._1bsbaq3k{width:295px}
7
7
  ._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
8
8
  ._1e021qz4{inset-inline-start:-140px}
@@ -9,7 +9,7 @@ import { SpotlightContext } from '../../controllers/context';
9
9
  import { Caret } from './caret';
10
10
  const styles = {
11
11
  root: "_kqswh2mm",
12
- card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs9g9j"
12
+ card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs1nax"
13
13
  };
14
14
  const placementStyles = {
15
15
  'top-start': "_u7co12x7 _rjxpc7mi",
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -7,7 +7,7 @@ import CrossIcon from '@atlaskit/icon/core/cross';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import { SpotlightContext } from '../../controllers/context';
9
9
  const styles = {
10
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
10
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
11
11
  };
12
12
  /**
13
13
  * __SpotlightDismissControl__
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useContext, useEffect, useRef } from 'react';
5
+ import { useContext, useEffect, useLayoutEffect, useRef } from 'react';
6
6
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
7
7
  import { Popper } from '@atlaskit/popper';
8
8
  import { SpotlightContext } from '../../controllers/context';
@@ -103,7 +103,7 @@ export const PopoverContent = props => {
103
103
  }
104
104
  secondaryAction.setAction(back);
105
105
  }, [back, secondaryAction]);
106
- useEffect(() => {
106
+ useLayoutEffect(() => {
107
107
  card.setPlacement(placement);
108
108
  }, [placement, card]);
109
109
  useEffect(() => {
@@ -1,8 +1,8 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
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)}
4
+ ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
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)}
7
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}
8
+ ._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef, useContext } from 'react';
6
6
  import { Pressable, Text } from '@atlaskit/primitives/compiled';
7
7
  import { SpotlightContext } from '../../controllers/context';
8
8
  const styles = {
9
- root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6d8yml _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __Spotlight primary action__
@@ -1,5 +1,5 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
3
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
4
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)}
5
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef, useContext } from 'react';
6
6
  import { Pressable, Text } from '@atlaskit/primitives/compiled';
7
7
  import { SpotlightContext } from '../../controllers/context';
8
8
  const styles = {
9
- root: "_2rko12b0 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __Spotlight secondary action__
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef } from 'react';
6
6
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  const styles = {
9
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __SpotlightShowMoreControl__
@@ -2,7 +2,7 @@
2
2
  ._1pby1fw0{z-index:700}
3
3
  ._1yxnt94y{border-end-start-radius:1px}
4
4
  ._4t3io7ao{height:15px}
5
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
6
  ._kqswh2mm{position:relative}
7
7
  ._mkrzmhja{clip-path:polygon(0 0,100% 100%,0 100%)}
8
8
  ._t9ec1hke{transform:rotate(135deg)}
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, useContext } from 'react';
6
6
  import { SpotlightContext } from '../../../controllers/context';
7
7
  var styles = {
8
- root: "_bfhkcdhy _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
8
+ root: "_bfhk1aqn _1yxnt94y _mkrzmhja _4t3io7ao _kqswh2mm _1bsbo7ao _1pby1fw0",
9
9
  'top-start': "_t9ec71a3",
10
10
  'top-center': "_t9ec71a3",
11
11
  'top-end': "_t9ec71a3",
@@ -2,7 +2,7 @@
2
2
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
3
  ._zulpu2gc{gap:var(--ds-space-100,8px)}._152t12x7{inset-block-start:var(--ds-space-075,6px)}
4
4
  ._152tmgjw{inset-block-start:var(--ds-space-negative-200,-1pc)}
5
- ._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
5
+ ._16qs1nax{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
6
6
  ._1bsbaq3k{width:295px}
7
7
  ._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
8
8
  ._1e021qz4{inset-inline-start:-140px}
@@ -9,7 +9,7 @@ import { SpotlightContext } from '../../controllers/context';
9
9
  import { Caret } from './caret';
10
10
  var styles = {
11
11
  root: "_kqswh2mm",
12
- card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs9g9j"
12
+ card: "_2rko1mok _zulpu2gc _kqswstnw _1bsbaq3k _1q51u2gc _85i5utpp _1e0c1txw _2lx21bp4 _16qs1nax"
13
13
  };
14
14
  var placementStyles = {
15
15
  'top-start': "_u7co12x7 _rjxpc7mi",
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -7,7 +7,7 @@ import CrossIcon from '@atlaskit/icon/core/cross';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import { SpotlightContext } from '../../controllers/context';
9
9
  var styles = {
10
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
10
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
11
11
  };
12
12
  /**
13
13
  * __SpotlightDismissControl__
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useContext, useEffect, useRef } from 'react';
5
+ import { useContext, useEffect, useLayoutEffect, useRef } from 'react';
6
6
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
7
7
  import { Popper } from '@atlaskit/popper';
8
8
  import { SpotlightContext } from '../../controllers/context';
@@ -107,7 +107,7 @@ export var PopoverContent = function PopoverContent(props) {
107
107
  }
108
108
  secondaryAction.setAction(back);
109
109
  }, [back, secondaryAction]);
110
- useEffect(function () {
110
+ useLayoutEffect(function () {
111
111
  card.setPlacement(placement);
112
112
  }, [placement, card]);
113
113
  useEffect(function () {
@@ -1,8 +1,8 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
3
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)}
4
+ ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
5
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
6
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)}
7
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}
8
+ ._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef, useContext } from 'react';
6
6
  import { Pressable, Text } from '@atlaskit/primitives/compiled';
7
7
  import { SpotlightContext } from '../../controllers/context';
8
8
  var styles = {
9
- root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6dz9xs _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _1dqonqa1 _189ee4h9 _1h6d8yml _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __Spotlight primary action__
@@ -1,5 +1,5 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
3
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
4
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)}
5
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef, useContext } from 'react';
6
6
  import { Pressable, Text } from '@atlaskit/primitives/compiled';
7
7
  import { SpotlightContext } from '../../controllers/context';
8
8
  var styles = {
9
- root: "_2rko12b0 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __Spotlight secondary action__
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
4
- ._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
4
+ ._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
5
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)}
6
+ ._irr31ibz:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}._1di6of27:active{background-color:var(--ds-background-neutral-bold-pressed,#505258)}
@@ -6,7 +6,7 @@ import { forwardRef } from 'react';
6
6
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  var styles = {
9
- root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhkcdhy _irr31bsc _1di61b6k"
9
+ root: "_2rko12b0 _1rjc12x7 _syaz15cr _bfhk1aqn _irr31ibz _1di6of27"
10
10
  };
11
11
  /**
12
12
  * __SpotlightShowMoreControl__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/spotlight",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "A spotlight introduces users to points of interest, from focused messages to multi-step tours.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "atlaskit:src": "src/index.tsx",
34
34
  "dependencies": {
35
35
  "@atlaskit/browser-apis": "^0.0.1",
36
- "@atlaskit/button": "^23.5.0",
36
+ "@atlaskit/button": "^23.6.0",
37
37
  "@atlaskit/css": "^0.15.0",
38
38
  "@atlaskit/ds-lib": "^5.2.0",
39
39
  "@atlaskit/heading": "^5.2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/image": "^3.0.0",
42
42
  "@atlaskit/popper": "^7.1.0",
43
43
  "@atlaskit/primitives": "^16.1.0",
44
- "@atlaskit/tokens": "^7.1.0",
44
+ "@atlaskit/tokens": "^8.0.0",
45
45
  "@atlaskit/visually-hidden": "^3.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@compiled/react": "^0.18.6",