@atlaskit/spotlight 0.0.13 → 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.
- package/CHANGELOG.md +17 -0
- package/constellation/index/props.mdx +88 -0
- package/dist/cjs/ui/dismiss-control/index.compiled.css +6 -0
- package/dist/cjs/ui/dismiss-control/index.js +12 -7
- package/dist/cjs/ui/popover-content/index.js +11 -1
- package/dist/cjs/ui/primary-action/index.compiled.css +8 -0
- package/dist/cjs/ui/primary-action/index.js +12 -6
- package/dist/cjs/ui/secondary-action/index.compiled.css +5 -0
- package/dist/cjs/ui/secondary-action/index.js +8 -5
- package/dist/cjs/ui/show-more-control/index.compiled.css +6 -0
- package/dist/cjs/ui/show-more-control/index.js +12 -7
- package/dist/es2019/ui/dismiss-control/index.compiled.css +6 -0
- package/dist/es2019/ui/dismiss-control/index.js +12 -7
- package/dist/es2019/ui/popover-content/index.js +11 -1
- package/dist/es2019/ui/primary-action/index.compiled.css +8 -0
- package/dist/es2019/ui/primary-action/index.js +12 -5
- package/dist/es2019/ui/secondary-action/index.compiled.css +5 -0
- package/dist/es2019/ui/secondary-action/index.js +9 -5
- package/dist/es2019/ui/show-more-control/index.compiled.css +6 -0
- package/dist/es2019/ui/show-more-control/index.js +12 -7
- package/dist/esm/ui/dismiss-control/index.compiled.css +6 -0
- package/dist/esm/ui/dismiss-control/index.js +12 -7
- package/dist/esm/ui/popover-content/index.js +11 -1
- package/dist/esm/ui/primary-action/index.compiled.css +8 -0
- package/dist/esm/ui/primary-action/index.js +12 -5
- package/dist/esm/ui/secondary-action/index.compiled.css +5 -0
- package/dist/esm/ui/secondary-action/index.js +9 -5
- package/dist/esm/ui/show-more-control/index.compiled.css +6 -0
- package/dist/esm/ui/show-more-control/index.js +12 -7
- package/dist/types/ui/dismiss-control/index.d.ts +2 -2
- package/dist/types/ui/primary-action/index.d.ts +2 -2
- package/dist/types/ui/secondary-action/index.d.ts +2 -2
- package/dist/types/ui/show-more-control/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/primary-action/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/secondary-action/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/show-more-control/index.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
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
|
+
|
|
12
|
+
## 0.0.14
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`85a83a17c7d56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85a83a17c7d56) -
|
|
17
|
+
Tweak offset of caret positioning so as not to overlap the target component.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 0.0.13
|
|
4
21
|
|
|
5
22
|
### 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(
|
|
23
|
-
|
|
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
|
});
|
|
@@ -17,6 +17,16 @@ var styles = {
|
|
|
17
17
|
visible: "_lcxv1wug _3um0ewfl",
|
|
18
18
|
hidden: "_lcxvglyw _3um015vq"
|
|
19
19
|
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The `transform: rotate(45deg);` styles used to rotate the `Caret` component result in the corners of
|
|
23
|
+
* the caret extending beyond the bounding box (by roughly 2px). So, apply an offset to ensure
|
|
24
|
+
* the caret points to the very edge of the target element.
|
|
25
|
+
*
|
|
26
|
+
* Note: `@atlaskit/popper` maps the offset to to the placement, so we only need to define `[0, 2]` and
|
|
27
|
+
* the offset will get correctly rotated depending on the placement.
|
|
28
|
+
*/
|
|
29
|
+
var offset = [0, 2];
|
|
20
30
|
/**
|
|
21
31
|
* The Spotlight card can be positioned in many different configurations, but the caret should always point to
|
|
22
32
|
* the center of the target element. `@atlaskit/popper` uses `'top' | 'right' | 'bottom' | 'left'` values for
|
|
@@ -51,7 +61,7 @@ var PopoverContent = exports.PopoverContent = function PopoverContent(_ref) {
|
|
|
51
61
|
setPlacement(placement);
|
|
52
62
|
}, [placement, setPlacement]);
|
|
53
63
|
return /*#__PURE__*/React.createElement(_popper.Popper, {
|
|
54
|
-
offset:
|
|
64
|
+
offset: offset,
|
|
55
65
|
placement: popperPlacementMap[placement]
|
|
56
66
|
}, function (_ref2) {
|
|
57
67
|
var ref = _ref2.ref,
|
|
@@ -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
|
|
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(
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
24
29
|
ref: ref,
|
|
25
|
-
spacing: "compact",
|
|
26
30
|
testId: testId,
|
|
27
|
-
|
|
31
|
+
xcss: styles.root,
|
|
28
32
|
onClick: onClick
|
|
29
|
-
},
|
|
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(
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
25
29
|
ref: ref,
|
|
26
|
-
spacing: "compact",
|
|
27
30
|
testId: testId,
|
|
28
|
-
|
|
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(
|
|
23
|
-
|
|
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(
|
|
15
|
-
|
|
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
|
});
|
|
@@ -9,6 +9,16 @@ const styles = {
|
|
|
9
9
|
visible: "_lcxv1wug _3um0ewfl",
|
|
10
10
|
hidden: "_lcxvglyw _3um015vq"
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The `transform: rotate(45deg);` styles used to rotate the `Caret` component result in the corners of
|
|
15
|
+
* the caret extending beyond the bounding box (by roughly 2px). So, apply an offset to ensure
|
|
16
|
+
* the caret points to the very edge of the target element.
|
|
17
|
+
*
|
|
18
|
+
* Note: `@atlaskit/popper` maps the offset to to the placement, so we only need to define `[0, 2]` and
|
|
19
|
+
* the offset will get correctly rotated depending on the placement.
|
|
20
|
+
*/
|
|
21
|
+
const offset = [0, 2];
|
|
12
22
|
/**
|
|
13
23
|
* The Spotlight card can be positioned in many different configurations, but the caret should always point to
|
|
14
24
|
* the center of the target element. `@atlaskit/popper` uses `'top' | 'right' | 'bottom' | 'left'` values for
|
|
@@ -44,7 +54,7 @@ export const PopoverContent = ({
|
|
|
44
54
|
setPlacement(placement);
|
|
45
55
|
}, [placement, setPlacement]);
|
|
46
56
|
return /*#__PURE__*/React.createElement(Popper, {
|
|
47
|
-
offset:
|
|
57
|
+
offset: offset,
|
|
48
58
|
placement: popperPlacementMap[placement]
|
|
49
59
|
}, ({
|
|
50
60
|
ref,
|
|
@@ -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
|
|
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(
|
|
21
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
16
22
|
ref: ref,
|
|
17
|
-
spacing: "compact",
|
|
18
23
|
testId: testId,
|
|
19
|
-
|
|
24
|
+
xcss: styles.root,
|
|
20
25
|
onClick: onClick
|
|
21
|
-
},
|
|
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
|
|
3
|
-
|
|
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(
|
|
21
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
17
22
|
ref: ref,
|
|
18
|
-
spacing: "compact",
|
|
19
23
|
testId: testId,
|
|
20
|
-
|
|
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(
|
|
15
|
-
|
|
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(
|
|
14
|
-
|
|
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
|
});
|
|
@@ -9,6 +9,16 @@ var styles = {
|
|
|
9
9
|
visible: "_lcxv1wug _3um0ewfl",
|
|
10
10
|
hidden: "_lcxvglyw _3um015vq"
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The `transform: rotate(45deg);` styles used to rotate the `Caret` component result in the corners of
|
|
15
|
+
* the caret extending beyond the bounding box (by roughly 2px). So, apply an offset to ensure
|
|
16
|
+
* the caret points to the very edge of the target element.
|
|
17
|
+
*
|
|
18
|
+
* Note: `@atlaskit/popper` maps the offset to to the placement, so we only need to define `[0, 2]` and
|
|
19
|
+
* the offset will get correctly rotated depending on the placement.
|
|
20
|
+
*/
|
|
21
|
+
var offset = [0, 2];
|
|
12
22
|
/**
|
|
13
23
|
* The Spotlight card can be positioned in many different configurations, but the caret should always point to
|
|
14
24
|
* the center of the target element. `@atlaskit/popper` uses `'top' | 'right' | 'bottom' | 'left'` values for
|
|
@@ -43,7 +53,7 @@ export var PopoverContent = function PopoverContent(_ref) {
|
|
|
43
53
|
setPlacement(placement);
|
|
44
54
|
}, [placement, setPlacement]);
|
|
45
55
|
return /*#__PURE__*/React.createElement(Popper, {
|
|
46
|
-
offset:
|
|
56
|
+
offset: offset,
|
|
47
57
|
placement: popperPlacementMap[placement]
|
|
48
58
|
}, function (_ref2) {
|
|
49
59
|
var ref = _ref2.ref,
|
|
@@ -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
|
|
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(
|
|
20
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
15
21
|
ref: ref,
|
|
16
|
-
spacing: "compact",
|
|
17
22
|
testId: testId,
|
|
18
|
-
|
|
23
|
+
xcss: styles.root,
|
|
19
24
|
onClick: onClick
|
|
20
|
-
},
|
|
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
|
|
3
|
-
|
|
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(
|
|
20
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
16
21
|
ref: ref,
|
|
17
|
-
spacing: "compact",
|
|
18
22
|
testId: testId,
|
|
19
|
-
|
|
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(
|
|
14
|
-
|
|
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
|
|
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?:
|
|
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
|
|
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?:
|
|
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
|
|
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?:
|
|
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
|
|
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?:
|
|
13
|
+
onClick?: PressableProps['onClick'];
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* __SpotlightShowMoreControl__
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
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?:
|
|
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
|
|
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?:
|
|
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
|
|
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?:
|
|
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
|
|
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?:
|
|
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.
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
".": "./src/index.tsx"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/button": "^23.
|
|
32
|
+
"@atlaskit/button": "^23.4.0",
|
|
33
33
|
"@atlaskit/css": "^0.12.0",
|
|
34
34
|
"@atlaskit/heading": "^5.2.0",
|
|
35
35
|
"@atlaskit/icon": "^27.12.0",
|