@atlaskit/spotlight 0.0.17 → 0.0.18
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 +9 -0
- package/dist/cjs/ui/popover-target/index.compiled.css +1 -0
- package/dist/cjs/ui/popover-target/index.js +14 -5
- package/dist/es2019/ui/popover-target/index.compiled.css +1 -0
- package/dist/es2019/ui/popover-target/index.js +9 -2
- package/dist/esm/ui/popover-target/index.compiled.css +1 -0
- package/dist/esm/ui/popover-target/index.js +9 -2
- package/dist/types/ui/popover-target/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/popover-target/index.d.ts +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/spotlight
|
|
2
2
|
|
|
3
|
+
## 0.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`24f083242a2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24f083242a2df) -
|
|
8
|
+
Styling update to `PopoverTarget` to set `width: fit-content` to ensure `PopoverContent` displays
|
|
9
|
+
correctly in relation to target element.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 0.0.17
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
|
-
var
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.PopoverTarget = void 0;
|
|
8
|
-
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
12
|
var _popper = require("@atlaskit/popper");
|
|
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: "_1bsb1ns9"
|
|
16
|
+
};
|
|
17
|
+
|
|
10
18
|
/**
|
|
11
19
|
* __Target__
|
|
12
20
|
*
|
|
@@ -14,10 +22,11 @@ var _popper = require("@atlaskit/popper");
|
|
|
14
22
|
*/
|
|
15
23
|
var PopoverTarget = exports.PopoverTarget = function PopoverTarget(_ref) {
|
|
16
24
|
var children = _ref.children;
|
|
17
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement(_popper.Reference, null, function (_ref2) {
|
|
18
26
|
var ref = _ref2.ref;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
-
ref: ref
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
ref: ref,
|
|
29
|
+
className: (0, _runtime.ax)([styles.root])
|
|
21
30
|
}, children);
|
|
22
31
|
});
|
|
23
32
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { Reference } from '@atlaskit/popper';
|
|
6
|
+
const styles = {
|
|
7
|
+
root: "_1bsb1ns9"
|
|
8
|
+
};
|
|
3
9
|
|
|
4
10
|
/**
|
|
5
11
|
* __Target__
|
|
@@ -12,6 +18,7 @@ export const PopoverTarget = ({
|
|
|
12
18
|
return /*#__PURE__*/React.createElement(Reference, null, ({
|
|
13
19
|
ref
|
|
14
20
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
ref: ref
|
|
21
|
+
ref: ref,
|
|
22
|
+
className: ax([styles.root])
|
|
16
23
|
}, children));
|
|
17
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { Reference } from '@atlaskit/popper';
|
|
6
|
+
var styles = {
|
|
7
|
+
root: "_1bsb1ns9"
|
|
8
|
+
};
|
|
3
9
|
|
|
4
10
|
/**
|
|
5
11
|
* __Target__
|
|
@@ -11,7 +17,8 @@ export var PopoverTarget = function PopoverTarget(_ref) {
|
|
|
11
17
|
return /*#__PURE__*/React.createElement(Reference, null, function (_ref2) {
|
|
12
18
|
var ref = _ref2.ref;
|
|
13
19
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
ref: ref
|
|
20
|
+
ref: ref,
|
|
21
|
+
className: ax([styles.root])
|
|
15
22
|
}, children);
|
|
16
23
|
});
|
|
17
24
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
/**
|
|
3
7
|
* __Target__
|
|
4
8
|
*
|
|
@@ -6,4 +10,4 @@ import React, { type ReactNode } from 'react';
|
|
|
6
10
|
*/
|
|
7
11
|
export declare const PopoverTarget: ({ children }: {
|
|
8
12
|
children: ReactNode;
|
|
9
|
-
}) =>
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
2
6
|
/**
|
|
3
7
|
* __Target__
|
|
4
8
|
*
|
|
@@ -6,4 +10,4 @@ import React, { type ReactNode } from 'react';
|
|
|
6
10
|
*/
|
|
7
11
|
export declare const PopoverTarget: ({ children }: {
|
|
8
12
|
children: ReactNode;
|
|
9
|
-
}) =>
|
|
13
|
+
}) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/spotlight",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
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",
|