@atlaskit/spotlight 0.0.5 → 0.0.7
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 +15 -0
- package/dist/cjs/index.js +36 -1
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/ui/controls/index.js +25 -0
- package/dist/cjs/ui/dismiss-control/index.js +29 -0
- package/dist/cjs/ui/footer/index.compiled.css +3 -2
- package/dist/cjs/ui/footer/index.js +1 -1
- package/dist/cjs/ui/popover-content/index.js +32 -0
- package/dist/cjs/ui/popover-provider/index.js +19 -0
- package/dist/cjs/ui/popover-target/index.js +23 -0
- package/dist/es2019/index.js +6 -1
- package/dist/es2019/types.js +1 -0
- package/dist/es2019/ui/actions/index.js +2 -2
- package/dist/es2019/ui/controls/index.js +18 -0
- package/dist/es2019/ui/dismiss-control/index.js +21 -0
- package/dist/es2019/ui/footer/index.compiled.css +3 -2
- package/dist/es2019/ui/footer/index.js +3 -3
- package/dist/es2019/ui/popover-content/index.js +24 -0
- package/dist/es2019/ui/popover-provider/index.js +14 -0
- package/dist/es2019/ui/popover-target/index.js +17 -0
- package/dist/es2019/ui/primary-action/index.js +1 -1
- package/dist/es2019/ui/secondary-action/index.js +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/types.js +1 -0
- package/dist/esm/ui/actions/index.js +2 -2
- package/dist/esm/ui/controls/index.js +17 -0
- package/dist/esm/ui/dismiss-control/index.js +20 -0
- package/dist/esm/ui/footer/index.compiled.css +3 -2
- package/dist/esm/ui/footer/index.js +3 -3
- package/dist/esm/ui/popover-content/index.js +25 -0
- package/dist/esm/ui/popover-provider/index.js +13 -0
- package/dist/esm/ui/popover-target/index.js +17 -0
- package/dist/esm/ui/primary-action/index.js +1 -1
- package/dist/esm/ui/secondary-action/index.js +1 -1
- package/dist/types/index.d.ts +10 -5
- package/dist/types/types.d.ts +2 -0
- package/dist/types/ui/actions/index.d.ts +3 -3
- package/dist/types/ui/controls/index.d.ts +19 -0
- package/dist/types/ui/dismiss-control/index.d.ts +16 -0
- package/dist/types/ui/footer/index.d.ts +1 -1
- package/dist/types/ui/popover-content/index.d.ts +11 -0
- package/dist/types/ui/popover-provider/index.d.ts +10 -0
- package/dist/types/ui/popover-target/index.d.ts +9 -0
- package/dist/types/ui/primary-action/index.d.ts +3 -3
- package/dist/types/ui/secondary-action/index.d.ts +3 -3
- package/dist/types-ts4.5/index.d.ts +10 -5
- package/dist/types-ts4.5/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/actions/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/controls/index.d.ts +19 -0
- package/dist/types-ts4.5/ui/dismiss-control/index.d.ts +16 -0
- package/dist/types-ts4.5/ui/footer/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/popover-content/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/popover-provider/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/popover-target/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/primary-action/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/secondary-action/index.d.ts +3 -3
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/spotlight
|
|
2
2
|
|
|
3
|
+
## 0.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#197821](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/197821)
|
|
8
|
+
[`f9dbe2c16f7e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9dbe2c16f7e0) -
|
|
9
|
+
Create PopoverProvider, PopoverTarget, PopoverContent components.
|
|
10
|
+
|
|
11
|
+
## 0.0.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`11c7c29e7cff4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11c7c29e7cff4) -
|
|
16
|
+
Create Controls, and DismissControl components.
|
|
17
|
+
|
|
3
18
|
## 0.0.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "PopoverContent", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _popoverContent.PopoverContent;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "PopoverProvider", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _popoverProvider.PopoverProvider;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "PopoverTarget", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _popoverTarget.PopoverTarget;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
6
24
|
Object.defineProperty(exports, "Spotlight", {
|
|
7
25
|
enumerable: true,
|
|
8
26
|
get: function get() {
|
|
@@ -15,6 +33,18 @@ Object.defineProperty(exports, "SpotlightActions", {
|
|
|
15
33
|
return _actions.SpotlightActions;
|
|
16
34
|
}
|
|
17
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "SpotlightControls", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _controls.SpotlightControls;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "SpotlightDismissControl", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _dismissControl.SpotlightDismissControl;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
18
48
|
Object.defineProperty(exports, "SpotlightFooter", {
|
|
19
49
|
enumerable: true,
|
|
20
50
|
get: function get() {
|
|
@@ -51,4 +81,9 @@ var _headline = require("./ui/headline");
|
|
|
51
81
|
var _footer = require("./ui/footer");
|
|
52
82
|
var _actions = require("./ui/actions");
|
|
53
83
|
var _primaryAction = require("./ui/primary-action");
|
|
54
|
-
var _secondaryAction = require("./ui/secondary-action");
|
|
84
|
+
var _secondaryAction = require("./ui/secondary-action");
|
|
85
|
+
var _controls = require("./ui/controls");
|
|
86
|
+
var _dismissControl = require("./ui/dismiss-control");
|
|
87
|
+
var _popoverProvider = require("./ui/popover-provider");
|
|
88
|
+
var _popoverContent = require("./ui/popover-content");
|
|
89
|
+
var _popoverTarget = require("./ui/popover-target");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SpotlightControls = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
10
|
+
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); }
|
|
11
|
+
/**
|
|
12
|
+
* __Spotlight controls__
|
|
13
|
+
*
|
|
14
|
+
* `SpotlightControls` groups spotlight control components.
|
|
15
|
+
*/
|
|
16
|
+
var SpotlightControls = exports.SpotlightControls = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
17
|
+
var testId = _ref.testId,
|
|
18
|
+
children = _ref.children;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
20
|
+
testId: testId,
|
|
21
|
+
ref: ref,
|
|
22
|
+
gap: "space.100",
|
|
23
|
+
role: "group"
|
|
24
|
+
}, children);
|
|
25
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SpotlightDismissControl = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _new = require("@atlaskit/button/new");
|
|
11
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
12
|
+
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); }
|
|
13
|
+
/**
|
|
14
|
+
* __SpotlightDismissControl__
|
|
15
|
+
*
|
|
16
|
+
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
var SpotlightDismissControl = exports.SpotlightDismissControl = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
20
|
+
var testId = _ref.testId;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
22
|
+
testId: testId,
|
|
23
|
+
ref: ref,
|
|
24
|
+
appearance: "default",
|
|
25
|
+
spacing: "compact",
|
|
26
|
+
icon: _cross.default,
|
|
27
|
+
label: "Close"
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
2
1
|
._1bsb1osq{width:100%}
|
|
3
|
-
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
2
|
+
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
3
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
4
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
@@ -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: "
|
|
15
|
+
root: "_bozgpxbi _y4tiutpp _85i5utpp _1bsb1osq"
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* __SpotlightFooter__
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PopoverContent = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _popper = require("@atlaskit/popper");
|
|
10
|
+
/**
|
|
11
|
+
* __PopoverContent__
|
|
12
|
+
*
|
|
13
|
+
* A `PopoverContent` is the element that is shown as a popover.
|
|
14
|
+
*/
|
|
15
|
+
var PopoverContent = exports.PopoverContent = function PopoverContent(_ref) {
|
|
16
|
+
var children = _ref.children,
|
|
17
|
+
placement = _ref.placement;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_popper.Popper, {
|
|
19
|
+
placement: placement
|
|
20
|
+
}, function (_ref2) {
|
|
21
|
+
var ref = _ref2.ref,
|
|
22
|
+
style = _ref2.style;
|
|
23
|
+
return (
|
|
24
|
+
/*#__PURE__*/
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
26
|
+
_react.default.createElement("div", {
|
|
27
|
+
ref: ref,
|
|
28
|
+
style: style
|
|
29
|
+
}, children)
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PopoverProvider = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _popper = require("@atlaskit/popper");
|
|
10
|
+
/**
|
|
11
|
+
* __Popover provider__
|
|
12
|
+
*
|
|
13
|
+
* A popover provider provides necesary context for the `PopoverContent` and `PopoverTarget` components.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
var PopoverProvider = exports.PopoverProvider = function PopoverProvider(_ref) {
|
|
17
|
+
var children = _ref.children;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_popper.Manager, null, children);
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PopoverTarget = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _popper = require("@atlaskit/popper");
|
|
10
|
+
/**
|
|
11
|
+
* __Target__
|
|
12
|
+
*
|
|
13
|
+
* A target is the element that the popover content will be positioned in relation to.
|
|
14
|
+
*/
|
|
15
|
+
var PopoverTarget = exports.PopoverTarget = function PopoverTarget(_ref) {
|
|
16
|
+
var children = _ref.children;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_popper.Reference, null, function (_ref2) {
|
|
18
|
+
var ref = _ref2.ref;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
|
+
ref: ref
|
|
21
|
+
}, children);
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/es2019/index.js
CHANGED
|
@@ -4,4 +4,9 @@ export { SpotlightHeadline } from './ui/headline';
|
|
|
4
4
|
export { SpotlightFooter } from './ui/footer';
|
|
5
5
|
export { SpotlightActions } from './ui/actions';
|
|
6
6
|
export { SpotlightPrimaryAction } from './ui/primary-action';
|
|
7
|
-
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
7
|
+
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
8
|
+
export { SpotlightControls } from './ui/controls';
|
|
9
|
+
export { SpotlightDismissControl } from './ui/dismiss-control';
|
|
10
|
+
export { PopoverProvider } from './ui/popover-provider';
|
|
11
|
+
export { PopoverContent } from './ui/popover-content';
|
|
12
|
+
export { PopoverTarget } from './ui/popover-target';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React, { forwardRef } from
|
|
5
|
-
import { Flex } from
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
6
|
const styles = {
|
|
7
7
|
root: "_1bsb1osq"
|
|
8
8
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
3
|
+
/**
|
|
4
|
+
* __Spotlight controls__
|
|
5
|
+
*
|
|
6
|
+
* `SpotlightControls` groups spotlight control components.
|
|
7
|
+
*/
|
|
8
|
+
export const SpotlightControls = /*#__PURE__*/forwardRef(({
|
|
9
|
+
testId,
|
|
10
|
+
children
|
|
11
|
+
}, ref) => {
|
|
12
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
13
|
+
testId: testId,
|
|
14
|
+
ref: ref,
|
|
15
|
+
gap: "space.100",
|
|
16
|
+
role: "group"
|
|
17
|
+
}, children);
|
|
18
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
3
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
4
|
+
/**
|
|
5
|
+
* __SpotlightDismissControl__
|
|
6
|
+
*
|
|
7
|
+
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export const SpotlightDismissControl = /*#__PURE__*/forwardRef(({
|
|
11
|
+
testId
|
|
12
|
+
}, ref) => {
|
|
13
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
14
|
+
testId: testId,
|
|
15
|
+
ref: ref,
|
|
16
|
+
appearance: "default",
|
|
17
|
+
spacing: "compact",
|
|
18
|
+
icon: CrossIcon,
|
|
19
|
+
label: "Close"
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
2
1
|
._1bsb1osq{width:100%}
|
|
3
|
-
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
2
|
+
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
3
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
4
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React, { forwardRef } from
|
|
5
|
-
import { Flex } from
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
6
|
const styles = {
|
|
7
|
-
root: "
|
|
7
|
+
root: "_bozgpxbi _y4tiutpp _85i5utpp _1bsb1osq"
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* __SpotlightFooter__
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Popper } from "@atlaskit/popper";
|
|
3
|
+
/**
|
|
4
|
+
* __PopoverContent__
|
|
5
|
+
*
|
|
6
|
+
* A `PopoverContent` is the element that is shown as a popover.
|
|
7
|
+
*/
|
|
8
|
+
export const PopoverContent = ({
|
|
9
|
+
children,
|
|
10
|
+
placement
|
|
11
|
+
}) => {
|
|
12
|
+
return /*#__PURE__*/React.createElement(Popper, {
|
|
13
|
+
placement: placement
|
|
14
|
+
}, ({
|
|
15
|
+
ref,
|
|
16
|
+
style
|
|
17
|
+
}) =>
|
|
18
|
+
/*#__PURE__*/
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
20
|
+
React.createElement("div", {
|
|
21
|
+
ref: ref,
|
|
22
|
+
style: style
|
|
23
|
+
}, children));
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Manager } from "@atlaskit/popper";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* __Popover provider__
|
|
6
|
+
*
|
|
7
|
+
* A popover provider provides necesary context for the `PopoverContent` and `PopoverTarget` components.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export const PopoverProvider = ({
|
|
11
|
+
children
|
|
12
|
+
}) => {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Manager, null, children);
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Reference } from "@atlaskit/popper";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* __Target__
|
|
6
|
+
*
|
|
7
|
+
* A target is the element that the popover content will be positioned in relation to.
|
|
8
|
+
*/
|
|
9
|
+
export const PopoverTarget = ({
|
|
10
|
+
children
|
|
11
|
+
}) => {
|
|
12
|
+
return /*#__PURE__*/React.createElement(Reference, null, ({
|
|
13
|
+
ref
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
ref: ref
|
|
16
|
+
}, children));
|
|
17
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -4,4 +4,9 @@ export { SpotlightHeadline } from './ui/headline';
|
|
|
4
4
|
export { SpotlightFooter } from './ui/footer';
|
|
5
5
|
export { SpotlightActions } from './ui/actions';
|
|
6
6
|
export { SpotlightPrimaryAction } from './ui/primary-action';
|
|
7
|
-
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
7
|
+
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
8
|
+
export { SpotlightControls } from './ui/controls';
|
|
9
|
+
export { SpotlightDismissControl } from './ui/dismiss-control';
|
|
10
|
+
export { PopoverProvider } from './ui/popover-provider';
|
|
11
|
+
export { PopoverContent } from './ui/popover-content';
|
|
12
|
+
export { PopoverTarget } from './ui/popover-target';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React, { forwardRef } from
|
|
5
|
-
import { Flex } from
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
6
|
var styles = {
|
|
7
7
|
root: "_1bsb1osq"
|
|
8
8
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
3
|
+
/**
|
|
4
|
+
* __Spotlight controls__
|
|
5
|
+
*
|
|
6
|
+
* `SpotlightControls` groups spotlight control components.
|
|
7
|
+
*/
|
|
8
|
+
export var SpotlightControls = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var testId = _ref.testId,
|
|
10
|
+
children = _ref.children;
|
|
11
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
12
|
+
testId: testId,
|
|
13
|
+
ref: ref,
|
|
14
|
+
gap: "space.100",
|
|
15
|
+
role: "group"
|
|
16
|
+
}, children);
|
|
17
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
3
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
4
|
+
/**
|
|
5
|
+
* __SpotlightDismissControl__
|
|
6
|
+
*
|
|
7
|
+
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export var SpotlightDismissControl = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var testId = _ref.testId;
|
|
12
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
13
|
+
testId: testId,
|
|
14
|
+
ref: ref,
|
|
15
|
+
appearance: "default",
|
|
16
|
+
spacing: "compact",
|
|
17
|
+
icon: CrossIcon,
|
|
18
|
+
label: "Close"
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
2
1
|
._1bsb1osq{width:100%}
|
|
3
|
-
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
2
|
+
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
3
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
4
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React, { forwardRef } from
|
|
5
|
-
import { Flex } from
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { Flex } from '@atlaskit/primitives/compiled';
|
|
6
6
|
var styles = {
|
|
7
|
-
root: "
|
|
7
|
+
root: "_bozgpxbi _y4tiutpp _85i5utpp _1bsb1osq"
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* __SpotlightFooter__
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Popper } from "@atlaskit/popper";
|
|
3
|
+
/**
|
|
4
|
+
* __PopoverContent__
|
|
5
|
+
*
|
|
6
|
+
* A `PopoverContent` is the element that is shown as a popover.
|
|
7
|
+
*/
|
|
8
|
+
export var PopoverContent = function PopoverContent(_ref) {
|
|
9
|
+
var children = _ref.children,
|
|
10
|
+
placement = _ref.placement;
|
|
11
|
+
return /*#__PURE__*/React.createElement(Popper, {
|
|
12
|
+
placement: placement
|
|
13
|
+
}, function (_ref2) {
|
|
14
|
+
var ref = _ref2.ref,
|
|
15
|
+
style = _ref2.style;
|
|
16
|
+
return (
|
|
17
|
+
/*#__PURE__*/
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
19
|
+
React.createElement("div", {
|
|
20
|
+
ref: ref,
|
|
21
|
+
style: style
|
|
22
|
+
}, children)
|
|
23
|
+
);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Manager } from "@atlaskit/popper";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* __Popover provider__
|
|
6
|
+
*
|
|
7
|
+
* A popover provider provides necesary context for the `PopoverContent` and `PopoverTarget` components.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export var PopoverProvider = function PopoverProvider(_ref) {
|
|
11
|
+
var children = _ref.children;
|
|
12
|
+
return /*#__PURE__*/React.createElement(Manager, null, children);
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Reference } from "@atlaskit/popper";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* __Target__
|
|
6
|
+
*
|
|
7
|
+
* A target is the element that the popover content will be positioned in relation to.
|
|
8
|
+
*/
|
|
9
|
+
export var PopoverTarget = function PopoverTarget(_ref) {
|
|
10
|
+
var children = _ref.children;
|
|
11
|
+
return /*#__PURE__*/React.createElement(Reference, null, function (_ref2) {
|
|
12
|
+
var ref = _ref2.ref;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
ref: ref
|
|
15
|
+
}, children);
|
|
16
|
+
});
|
|
17
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export { Spotlight, type SpotlightProps } from './ui/spotlight';
|
|
2
2
|
export { SpotlightHeader, type SpotlightHeaderProps } from './ui/header';
|
|
3
|
-
export { SpotlightHeadline } from './ui/headline';
|
|
4
|
-
export { SpotlightFooter } from './ui/footer';
|
|
5
|
-
export { SpotlightActions } from './ui/actions';
|
|
6
|
-
export { SpotlightPrimaryAction } from './ui/primary-action';
|
|
7
|
-
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
3
|
+
export { SpotlightHeadline, type SpotlightHeadlineProps } from './ui/headline';
|
|
4
|
+
export { SpotlightFooter, type SpotlightFooterProps } from './ui/footer';
|
|
5
|
+
export { SpotlightActions, type SpotlightActionsProps } from './ui/actions';
|
|
6
|
+
export { SpotlightPrimaryAction, type SpotlightPrimaryActionProps } from './ui/primary-action';
|
|
7
|
+
export { SpotlightSecondaryAction, type SpotlightSecondaryActionProps, } from './ui/secondary-action';
|
|
8
|
+
export { SpotlightControls, type SpotlightControlsProps } from './ui/controls';
|
|
9
|
+
export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui/dismiss-control';
|
|
10
|
+
export { PopoverProvider } from './ui/popover-provider';
|
|
11
|
+
export { PopoverContent } from './ui/popover-content';
|
|
12
|
+
export { PopoverTarget } from './ui/popover-target';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
2
|
-
export interface
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface SpotlightActionsProps {
|
|
3
3
|
/**
|
|
4
4
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
5
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -17,4 +17,4 @@ export interface SpotlighActionsProps {
|
|
|
17
17
|
* `SpotlightActions` groups `SpotlightAction` components.
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export declare const SpotlightActions: React.ForwardRefExoticComponent<
|
|
20
|
+
export declare const SpotlightActions: React.ForwardRefExoticComponent<SpotlightActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface SpotlightControlsProps {
|
|
3
|
+
/**
|
|
4
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
6
|
+
* serving as a hook for automated tests
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Elements to be rendered inside the `SpotlightFooter`.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* __Spotlight controls__
|
|
16
|
+
*
|
|
17
|
+
* `SpotlightControls` groups spotlight control components.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SpotlightControls: React.ForwardRefExoticComponent<SpotlightControlsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SpotlightDismissControlProps {
|
|
3
|
+
/**
|
|
4
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
6
|
+
* serving as a hook for automated tests
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* __SpotlightDismissControl__
|
|
12
|
+
*
|
|
13
|
+
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const SpotlightDismissControl: React.ForwardRefExoticComponent<SpotlightDismissControlProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import type { Placement } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* __PopoverContent__
|
|
5
|
+
*
|
|
6
|
+
* A `PopoverContent` is the element that is shown as a popover.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PopoverContent: ({ children, placement }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
placement: Placement;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* __Popover provider__
|
|
4
|
+
*
|
|
5
|
+
* A popover provider provides necesary context for the `PopoverContent` and `PopoverTarget` components.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const PopoverProvider: ({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* __Target__
|
|
4
|
+
*
|
|
5
|
+
* A target is the element that the popover content will be positioned in relation to.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PopoverTarget: ({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/new';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SpotlightPrimaryActionProps {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
6
6
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -23,4 +23,4 @@ export interface PrimaryActionProps {
|
|
|
23
23
|
* for single step spotlights, or to show the next step on multi step spotlight tours.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare const SpotlightPrimaryAction: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const SpotlightPrimaryAction: React.ForwardRefExoticComponent<SpotlightPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/new';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SpotlightSecondaryActionProps {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
6
6
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -23,4 +23,4 @@ export interface SecondaryActionProps {
|
|
|
23
23
|
* It is intended to be used to go back to the previous step in multi step spotlight tours, or other similar actions.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare const SpotlightSecondaryAction: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const SpotlightSecondaryAction: React.ForwardRefExoticComponent<SpotlightSecondaryActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export { Spotlight, type SpotlightProps } from './ui/spotlight';
|
|
2
2
|
export { SpotlightHeader, type SpotlightHeaderProps } from './ui/header';
|
|
3
|
-
export { SpotlightHeadline } from './ui/headline';
|
|
4
|
-
export { SpotlightFooter } from './ui/footer';
|
|
5
|
-
export { SpotlightActions } from './ui/actions';
|
|
6
|
-
export { SpotlightPrimaryAction } from './ui/primary-action';
|
|
7
|
-
export { SpotlightSecondaryAction } from './ui/secondary-action';
|
|
3
|
+
export { SpotlightHeadline, type SpotlightHeadlineProps } from './ui/headline';
|
|
4
|
+
export { SpotlightFooter, type SpotlightFooterProps } from './ui/footer';
|
|
5
|
+
export { SpotlightActions, type SpotlightActionsProps } from './ui/actions';
|
|
6
|
+
export { SpotlightPrimaryAction, type SpotlightPrimaryActionProps } from './ui/primary-action';
|
|
7
|
+
export { SpotlightSecondaryAction, type SpotlightSecondaryActionProps, } from './ui/secondary-action';
|
|
8
|
+
export { SpotlightControls, type SpotlightControlsProps } from './ui/controls';
|
|
9
|
+
export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui/dismiss-control';
|
|
10
|
+
export { PopoverProvider } from './ui/popover-provider';
|
|
11
|
+
export { PopoverContent } from './ui/popover-content';
|
|
12
|
+
export { PopoverTarget } from './ui/popover-target';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
2
|
-
export interface
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface SpotlightActionsProps {
|
|
3
3
|
/**
|
|
4
4
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
5
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -17,4 +17,4 @@ export interface SpotlighActionsProps {
|
|
|
17
17
|
* `SpotlightActions` groups `SpotlightAction` components.
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export declare const SpotlightActions: React.ForwardRefExoticComponent<
|
|
20
|
+
export declare const SpotlightActions: React.ForwardRefExoticComponent<SpotlightActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface SpotlightControlsProps {
|
|
3
|
+
/**
|
|
4
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
6
|
+
* serving as a hook for automated tests
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Elements to be rendered inside the `SpotlightFooter`.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* __Spotlight controls__
|
|
16
|
+
*
|
|
17
|
+
* `SpotlightControls` groups spotlight control components.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SpotlightControls: React.ForwardRefExoticComponent<SpotlightControlsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SpotlightDismissControlProps {
|
|
3
|
+
/**
|
|
4
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
5
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
6
|
+
* serving as a hook for automated tests
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* __SpotlightDismissControl__
|
|
12
|
+
*
|
|
13
|
+
* SpotlightDismissControl allows the user to close the `Spotlight`.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const SpotlightDismissControl: React.ForwardRefExoticComponent<SpotlightDismissControlProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import type { Placement } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* __PopoverContent__
|
|
5
|
+
*
|
|
6
|
+
* A `PopoverContent` is the element that is shown as a popover.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PopoverContent: ({ children, placement }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
placement: Placement;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* __Popover provider__
|
|
4
|
+
*
|
|
5
|
+
* A popover provider provides necesary context for the `PopoverContent` and `PopoverTarget` components.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const PopoverProvider: ({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* __Target__
|
|
4
|
+
*
|
|
5
|
+
* A target is the element that the popover content will be positioned in relation to.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PopoverTarget: ({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/new';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SpotlightPrimaryActionProps {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
6
6
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -23,4 +23,4 @@ export interface PrimaryActionProps {
|
|
|
23
23
|
* for single step spotlights, or to show the next step on multi step spotlight tours.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare const SpotlightPrimaryAction: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const SpotlightPrimaryAction: React.ForwardRefExoticComponent<SpotlightPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type ReactNode } from
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/new';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SpotlightSecondaryActionProps {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
6
6
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -23,4 +23,4 @@ export interface SecondaryActionProps {
|
|
|
23
23
|
* It is intended to be used to go back to the previous step in multi step spotlight tours, or other similar actions.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare const SpotlightSecondaryAction: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const SpotlightSecondaryAction: React.ForwardRefExoticComponent<SpotlightSecondaryActionProps & React.RefAttributes<HTMLButtonElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/spotlight",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
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",
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"@atlaskit/button": "^23.3.0",
|
|
33
33
|
"@atlaskit/css": "^0.12.0",
|
|
34
34
|
"@atlaskit/heading": "^5.2.0",
|
|
35
|
+
"@atlaskit/icon": "^27.10.0",
|
|
36
|
+
"@atlaskit/popper": "^7.1.0",
|
|
35
37
|
"@atlaskit/primitives": "^14.11.0",
|
|
36
38
|
"@atlaskit/tokens": "^6.0.0",
|
|
37
39
|
"@babel/runtime": "^7.0.0",
|
|
@@ -46,8 +48,7 @@
|
|
|
46
48
|
"@atlaskit/ssr": "workspace:^",
|
|
47
49
|
"@atlaskit/visual-regression": "workspace:^",
|
|
48
50
|
"@testing-library/react": "^13.4.0",
|
|
49
|
-
"react-dom": "^18.2.0"
|
|
50
|
-
"typescript": "~5.4.2"
|
|
51
|
+
"react-dom": "^18.2.0"
|
|
51
52
|
},
|
|
52
53
|
"platform-feature-flags": {
|
|
53
54
|
"platform-component-visual-refresh": {
|