@atlaskit/spotlight 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/ui/card/caret/index.js +2 -0
- package/dist/cjs/ui/card/index.compiled.css +1 -0
- package/dist/cjs/ui/card/index.js +2 -0
- package/dist/cjs/ui/popover-content/index.js +2 -0
- package/dist/es2019/ui/card/caret/index.js +2 -0
- package/dist/es2019/ui/card/index.compiled.css +1 -0
- package/dist/es2019/ui/card/index.js +2 -0
- package/dist/es2019/ui/popover-content/index.js +2 -0
- package/dist/esm/ui/card/caret/index.js +2 -0
- package/dist/esm/ui/card/index.compiled.css +1 -0
- package/dist/esm/ui/card/index.js +2 -0
- package/dist/esm/ui/popover-content/index.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/offerings.json +33 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/spotlight
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ec2250eef3ec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec2250eef3ec9) -
|
|
8
|
+
Spotlight now accepts `top-center` and `bottom-center` placements to ensure SpotlightCard content
|
|
9
|
+
can be seen on small viewports.
|
|
10
|
+
|
|
3
11
|
## 0.3.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,8 +15,10 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
15
15
|
var styles = {
|
|
16
16
|
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
17
17
|
'top-start': "_1eint94y",
|
|
18
|
+
'top-center': "_1eint94y",
|
|
18
19
|
'top-end': "_1eint94y",
|
|
19
20
|
'bottom-start': "_1s1gt94y",
|
|
21
|
+
'bottom-center': "_1s1gt94y",
|
|
20
22
|
'bottom-end': "_1s1gt94y",
|
|
21
23
|
'right-start': "_1yxnt94y",
|
|
22
24
|
'right-end': "_1yxnt94y",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
|
|
6
6
|
._1bsbaq3k{width:295px}
|
|
7
7
|
._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
|
|
8
|
+
._1e021qz4{inset-inline-start:-140px}
|
|
8
9
|
._1e02c7mi{inset-inline-start:var(--ds-space-negative-250,-20px)}
|
|
9
10
|
._1e0c1txw{display:flex}
|
|
10
11
|
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
@@ -21,10 +21,12 @@ var styles = {
|
|
|
21
21
|
};
|
|
22
22
|
var placementStyles = {
|
|
23
23
|
'top-start': "_u7co12x7 _rjxpc7mi",
|
|
24
|
+
'top-center': "_u7co12x7 _1e021qz4",
|
|
24
25
|
'top-end': "_u7co12x7 _1e02c7mi",
|
|
25
26
|
'right-start': "_1e0212x7 _u7comgjw",
|
|
26
27
|
'right-end': "_1e0212x7 _152tmgjw",
|
|
27
28
|
'bottom-start': "_152t12x7 _rjxpc7mi",
|
|
29
|
+
'bottom-center': "_152t12x7 _1e021qz4",
|
|
28
30
|
'bottom-end': "_152t12x7 _1e02c7mi",
|
|
29
31
|
'left-start': "_rjxp12x7 _u7comgjw",
|
|
30
32
|
'left-end': "_rjxp12x7 _152tmgjw"
|
|
@@ -38,8 +38,10 @@ var offset = [0, 2];
|
|
|
38
38
|
*/
|
|
39
39
|
var popperPlacementMap = {
|
|
40
40
|
'top-start': 'top',
|
|
41
|
+
'top-center': 'top',
|
|
41
42
|
'top-end': 'top',
|
|
42
43
|
'bottom-start': 'bottom',
|
|
44
|
+
'bottom-center': 'bottom',
|
|
43
45
|
'bottom-end': 'bottom',
|
|
44
46
|
'right-start': 'right',
|
|
45
47
|
'right-end': 'right',
|
|
@@ -7,8 +7,10 @@ import { SpotlightContext } from '../../../controllers/context';
|
|
|
7
7
|
const styles = {
|
|
8
8
|
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
9
|
'top-start': "_1eint94y",
|
|
10
|
+
'top-center': "_1eint94y",
|
|
10
11
|
'top-end': "_1eint94y",
|
|
11
12
|
'bottom-start': "_1s1gt94y",
|
|
13
|
+
'bottom-center': "_1s1gt94y",
|
|
12
14
|
'bottom-end': "_1s1gt94y",
|
|
13
15
|
'right-start': "_1yxnt94y",
|
|
14
16
|
'right-end': "_1yxnt94y",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
|
|
6
6
|
._1bsbaq3k{width:295px}
|
|
7
7
|
._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
|
|
8
|
+
._1e021qz4{inset-inline-start:-140px}
|
|
8
9
|
._1e02c7mi{inset-inline-start:var(--ds-space-negative-250,-20px)}
|
|
9
10
|
._1e0c1txw{display:flex}
|
|
10
11
|
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
@@ -13,10 +13,12 @@ const styles = {
|
|
|
13
13
|
};
|
|
14
14
|
const placementStyles = {
|
|
15
15
|
'top-start': "_u7co12x7 _rjxpc7mi",
|
|
16
|
+
'top-center': "_u7co12x7 _1e021qz4",
|
|
16
17
|
'top-end': "_u7co12x7 _1e02c7mi",
|
|
17
18
|
'right-start': "_1e0212x7 _u7comgjw",
|
|
18
19
|
'right-end': "_1e0212x7 _152tmgjw",
|
|
19
20
|
'bottom-start': "_152t12x7 _rjxpc7mi",
|
|
21
|
+
'bottom-center': "_152t12x7 _1e021qz4",
|
|
20
22
|
'bottom-end': "_152t12x7 _1e02c7mi",
|
|
21
23
|
'left-start': "_rjxp12x7 _u7comgjw",
|
|
22
24
|
'left-end': "_rjxp12x7 _152tmgjw"
|
|
@@ -30,8 +30,10 @@ const offset = [0, 2];
|
|
|
30
30
|
*/
|
|
31
31
|
const popperPlacementMap = {
|
|
32
32
|
'top-start': 'top',
|
|
33
|
+
'top-center': 'top',
|
|
33
34
|
'top-end': 'top',
|
|
34
35
|
'bottom-start': 'bottom',
|
|
36
|
+
'bottom-center': 'bottom',
|
|
35
37
|
'bottom-end': 'bottom',
|
|
36
38
|
'right-start': 'right',
|
|
37
39
|
'right-end': 'right',
|
|
@@ -7,8 +7,10 @@ import { SpotlightContext } from '../../../controllers/context';
|
|
|
7
7
|
var styles = {
|
|
8
8
|
root: "_kqswh2mm _1pby1fw0 _1bsbo7ao _4t3io7ao _t9ecjyd4 _bfhkcdhy",
|
|
9
9
|
'top-start': "_1eint94y",
|
|
10
|
+
'top-center': "_1eint94y",
|
|
10
11
|
'top-end': "_1eint94y",
|
|
11
12
|
'bottom-start': "_1s1gt94y",
|
|
13
|
+
'bottom-center': "_1s1gt94y",
|
|
12
14
|
'bottom-end': "_1s1gt94y",
|
|
13
15
|
'right-start': "_1yxnt94y",
|
|
14
16
|
'right-end': "_1yxnt94y",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
._16qs9g9j{box-shadow:var(--ds-shadow-overflow,0 0 8px #091e4228,0 0 1px #091e421e)}
|
|
6
6
|
._1bsbaq3k{width:295px}
|
|
7
7
|
._1e0212x7{inset-inline-start:var(--ds-space-075,6px)}
|
|
8
|
+
._1e021qz4{inset-inline-start:-140px}
|
|
8
9
|
._1e02c7mi{inset-inline-start:var(--ds-space-negative-250,-20px)}
|
|
9
10
|
._1e0c1txw{display:flex}
|
|
10
11
|
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
@@ -13,10 +13,12 @@ var styles = {
|
|
|
13
13
|
};
|
|
14
14
|
var placementStyles = {
|
|
15
15
|
'top-start': "_u7co12x7 _rjxpc7mi",
|
|
16
|
+
'top-center': "_u7co12x7 _1e021qz4",
|
|
16
17
|
'top-end': "_u7co12x7 _1e02c7mi",
|
|
17
18
|
'right-start': "_1e0212x7 _u7comgjw",
|
|
18
19
|
'right-end': "_1e0212x7 _152tmgjw",
|
|
19
20
|
'bottom-start': "_152t12x7 _rjxpc7mi",
|
|
21
|
+
'bottom-center': "_152t12x7 _1e021qz4",
|
|
20
22
|
'bottom-end': "_152t12x7 _1e02c7mi",
|
|
21
23
|
'left-start': "_rjxp12x7 _u7comgjw",
|
|
22
24
|
'left-end': "_rjxp12x7 _152tmgjw"
|
|
@@ -30,8 +30,10 @@ var offset = [0, 2];
|
|
|
30
30
|
*/
|
|
31
31
|
var popperPlacementMap = {
|
|
32
32
|
'top-start': 'top',
|
|
33
|
+
'top-center': 'top',
|
|
33
34
|
'top-end': 'top',
|
|
34
35
|
'bottom-start': 'bottom',
|
|
36
|
+
'bottom-center': 'bottom',
|
|
35
37
|
'bottom-end': 'bottom',
|
|
36
38
|
'right-start': 'right',
|
|
37
39
|
'right-end': 'right',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
15
|
export { PopoverContent } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
|
+
export { type Placement } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Placement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
1
|
+
export type Placement = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
@@ -14,3 +14,4 @@ export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
15
|
export { PopoverContent } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
|
+
export { type Placement } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Placement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
1
|
+
export type Placement = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
package/offerings.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Spotlight",
|
|
4
|
+
"package": "@atlaskit/spotlight",
|
|
5
|
+
"import": {
|
|
6
|
+
"name": "Spotlight",
|
|
7
|
+
"package": "@atlaskit/spotlight",
|
|
8
|
+
"type": "named"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["spotlight", "search", "command", "palette", "quick"],
|
|
11
|
+
"categories": ["navigation"],
|
|
12
|
+
"shortDescription": "A component for quick search and command execution.",
|
|
13
|
+
"status": "general-availability",
|
|
14
|
+
"accessibilityGuidelines": [
|
|
15
|
+
"Ensure proper keyboard navigation",
|
|
16
|
+
"Provide clear search functionality",
|
|
17
|
+
"Use appropriate ARIA attributes",
|
|
18
|
+
"Consider screen reader announcements"
|
|
19
|
+
],
|
|
20
|
+
"usageGuidelines": [
|
|
21
|
+
"Use for quick search and commands",
|
|
22
|
+
"Provide clear search functionality",
|
|
23
|
+
"Consider keyboard shortcuts",
|
|
24
|
+
"Handle search results appropriately"
|
|
25
|
+
],
|
|
26
|
+
"contentGuidelines": [
|
|
27
|
+
"Use clear, descriptive search labels",
|
|
28
|
+
"Provide helpful search suggestions",
|
|
29
|
+
"Use consistent command naming",
|
|
30
|
+
"Keep search results relevant"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/spotlight",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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",
|