@atlaskit/spotlight 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -1
- package/constellation/index/examples.mdx +1 -19
- package/dist/cjs/ui/body/index.compiled.css +2 -1
- package/dist/cjs/ui/body/index.js +1 -1
- package/dist/cjs/ui/card/caret/index.compiled.css +6 -4
- package/dist/cjs/ui/card/caret/index.js +9 -9
- package/dist/es2019/ui/body/index.compiled.css +2 -1
- package/dist/es2019/ui/body/index.js +1 -1
- package/dist/es2019/ui/card/caret/index.compiled.css +6 -4
- package/dist/es2019/ui/card/caret/index.js +9 -9
- package/dist/esm/ui/body/index.compiled.css +2 -1
- package/dist/esm/ui/body/index.js +1 -1
- package/dist/esm/ui/card/caret/index.compiled.css +6 -4
- package/dist/esm/ui/card/caret/index.js +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/spotlight
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7e3c08df816e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7e3c08df816e2) - -
|
|
8
|
+
Apply `z-index: 700` to caret to fix a bug with box-shadow in dark mode.
|
|
9
|
+
- Apply `color: var(--ds-color-text-inverse)` to `SpotlightCard` so consumers get inverse color
|
|
10
|
+
styles without needing to use `Text`.
|
|
11
|
+
- Remove `SpotlightShowMoreControl` references in examples and documentation. Functionality
|
|
12
|
+
remains unchanged.
|
|
13
|
+
|
|
3
14
|
## 0.2.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -61,7 +72,7 @@
|
|
|
61
72
|
### Patch Changes
|
|
62
73
|
|
|
63
74
|
- [`6fa400e1910b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fa400e1910b7) -
|
|
64
|
-
Styling update to `PopoverContent` to set `z-index:
|
|
75
|
+
Styling update to `PopoverContent` to set `z-index: 700` to ensure `Spotlight` displays correctly
|
|
65
76
|
on top of Atlassian layering elements.
|
|
66
77
|
- Updated dependencies
|
|
67
78
|
|
|
@@ -53,22 +53,4 @@ Media can be an image, video, animation, or any other visual aid to communicate
|
|
|
53
53
|
## Controls
|
|
54
54
|
|
|
55
55
|
`SpotlightDismissControl` is required for all `SpotlightCard` components. It **must** be the first
|
|
56
|
-
focusable element on the `SpotlightCard` card
|
|
57
|
-
`SpotlightDismissControl` should appear first in the DOM order:
|
|
58
|
-
|
|
59
|
-
```tsx
|
|
60
|
-
<SpotlighControls>
|
|
61
|
-
<SpotlightDismissControl />
|
|
62
|
-
<SpotlightShowMoreControl />
|
|
63
|
-
</SpotlighControls>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Internally, `SpotlighControls` applies `flex-direction: row-reverse;` so that
|
|
67
|
-
`SpotlightDismissControl` visually displays after `SpotlightShowMoreControl` while maintaining
|
|
68
|
-
correct tabbing order.
|
|
69
|
-
|
|
70
|
-
`SpotlightShowMoreControl` is optional for `SpotlightCard` components. It should be used to allow
|
|
71
|
-
users to opt out of a spotlight experience, or understand why they are seeing the spotlight
|
|
72
|
-
experience.
|
|
73
|
-
|
|
74
|
-
<Example Component={ControlsExample} packageName="@atlaskit/spinner" />
|
|
56
|
+
focusable element on the `SpotlightCard` card to provide an accessible experience.
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
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
14
|
var styles = {
|
|
15
|
-
root: "_18zrpxbi _1q51u2gc"
|
|
15
|
+
root: "_18zrpxbi _syaz15cr _1q51u2gc"
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* __SpotlightBody__
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
._13lit94y{border-top-left-radius:1px}
|
|
2
1
|
._1bsbo7ao{width:15px}
|
|
3
|
-
.
|
|
2
|
+
._1eint94y{border-end-end-radius:1px}
|
|
3
|
+
._1pby1fw0{z-index:700}
|
|
4
|
+
._1s1gt94y{border-start-start-radius:1px}
|
|
5
|
+
._1yxnt94y{border-end-start-radius:1px}
|
|
4
6
|
._4t3io7ao{height:15px}
|
|
7
|
+
._5fbct94y{border-start-end-radius:1px}
|
|
5
8
|
._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
|
|
6
|
-
.
|
|
7
|
-
._qrwqt94y{border-top-right-radius:1px}
|
|
9
|
+
._kqswh2mm{position:relative}
|
|
8
10
|
._t9ecjyd4{transform:rotate(45deg)}
|
|
@@ -13,15 +13,15 @@ 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: "_1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
17
|
-
'top-start': "
|
|
18
|
-
'top-end': "
|
|
19
|
-
'bottom-start': "
|
|
20
|
-
'bottom-end': "
|
|
21
|
-
'right-start': "
|
|
22
|
-
'right-end': "
|
|
23
|
-
'left-start': "
|
|
24
|
-
'left-end': "
|
|
16
|
+
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
17
|
+
'top-start': "_1eint94y",
|
|
18
|
+
'top-end': "_1eint94y",
|
|
19
|
+
'bottom-start': "_1s1gt94y",
|
|
20
|
+
'bottom-end': "_1s1gt94y",
|
|
21
|
+
'right-start': "_1yxnt94y",
|
|
22
|
+
'right-end': "_1yxnt94y",
|
|
23
|
+
'left-start': "_5fbct94y",
|
|
24
|
+
'left-end': "_5fbct94y"
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* __Caret__
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
6
|
const styles = {
|
|
7
|
-
root: "_18zrpxbi _1q51u2gc"
|
|
7
|
+
root: "_18zrpxbi _syaz15cr _1q51u2gc"
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* __SpotlightBody__
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
._13lit94y{border-top-left-radius:1px}
|
|
2
1
|
._1bsbo7ao{width:15px}
|
|
3
|
-
.
|
|
2
|
+
._1eint94y{border-end-end-radius:1px}
|
|
3
|
+
._1pby1fw0{z-index:700}
|
|
4
|
+
._1s1gt94y{border-start-start-radius:1px}
|
|
5
|
+
._1yxnt94y{border-end-start-radius:1px}
|
|
4
6
|
._4t3io7ao{height:15px}
|
|
7
|
+
._5fbct94y{border-start-end-radius:1px}
|
|
5
8
|
._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
|
|
6
|
-
.
|
|
7
|
-
._qrwqt94y{border-top-right-radius:1px}
|
|
9
|
+
._kqswh2mm{position:relative}
|
|
8
10
|
._t9ecjyd4{transform:rotate(45deg)}
|
|
@@ -5,15 +5,15 @@ 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: "_1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
|
-
'top-start': "
|
|
10
|
-
'top-end': "
|
|
11
|
-
'bottom-start': "
|
|
12
|
-
'bottom-end': "
|
|
13
|
-
'right-start': "
|
|
14
|
-
'right-end': "
|
|
15
|
-
'left-start': "
|
|
16
|
-
'left-end': "
|
|
8
|
+
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
|
+
'top-start': "_1eint94y",
|
|
10
|
+
'top-end': "_1eint94y",
|
|
11
|
+
'bottom-start': "_1s1gt94y",
|
|
12
|
+
'bottom-end': "_1s1gt94y",
|
|
13
|
+
'right-start': "_1yxnt94y",
|
|
14
|
+
'right-end': "_1yxnt94y",
|
|
15
|
+
'left-start': "_5fbct94y",
|
|
16
|
+
'left-end': "_5fbct94y"
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* __Caret__
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
6
|
var styles = {
|
|
7
|
-
root: "_18zrpxbi _1q51u2gc"
|
|
7
|
+
root: "_18zrpxbi _syaz15cr _1q51u2gc"
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* __SpotlightBody__
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
._13lit94y{border-top-left-radius:1px}
|
|
2
1
|
._1bsbo7ao{width:15px}
|
|
3
|
-
.
|
|
2
|
+
._1eint94y{border-end-end-radius:1px}
|
|
3
|
+
._1pby1fw0{z-index:700}
|
|
4
|
+
._1s1gt94y{border-start-start-radius:1px}
|
|
5
|
+
._1yxnt94y{border-end-start-radius:1px}
|
|
4
6
|
._4t3io7ao{height:15px}
|
|
7
|
+
._5fbct94y{border-start-end-radius:1px}
|
|
5
8
|
._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
|
|
6
|
-
.
|
|
7
|
-
._qrwqt94y{border-top-right-radius:1px}
|
|
9
|
+
._kqswh2mm{position:relative}
|
|
8
10
|
._t9ecjyd4{transform:rotate(45deg)}
|
|
@@ -5,15 +5,15 @@ 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: "_1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
|
-
'top-start': "
|
|
10
|
-
'top-end': "
|
|
11
|
-
'bottom-start': "
|
|
12
|
-
'bottom-end': "
|
|
13
|
-
'right-start': "
|
|
14
|
-
'right-end': "
|
|
15
|
-
'left-start': "
|
|
16
|
-
'left-end': "
|
|
8
|
+
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
|
+
'top-start': "_1eint94y",
|
|
10
|
+
'top-end': "_1eint94y",
|
|
11
|
+
'bottom-start': "_1s1gt94y",
|
|
12
|
+
'bottom-end': "_1s1gt94y",
|
|
13
|
+
'right-start': "_1yxnt94y",
|
|
14
|
+
'right-end': "_1yxnt94y",
|
|
15
|
+
'left-start': "_5fbct94y",
|
|
16
|
+
'left-end': "_5fbct94y"
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* __Caret__
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/spotlight",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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",
|