@atlaskit/inline-dialog 13.1.8 → 13.2.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 +26 -0
- package/dist/cjs/InlineDialog/index.js +23 -35
- package/dist/cjs/InlineDialog/styled/container.js +8 -10
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +21 -33
- package/dist/es2019/InlineDialog/styled/container.js +6 -7
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +23 -35
- package/dist/esm/InlineDialog/styled/container.js +8 -9
- package/dist/esm/version.json +1 -1
- package/extract-react-types/inline-dialog-props.tsx +5 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 13.2.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 13.2.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`2fe0d03807f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2fe0d03807f) - This removes the preventDefault functionality (reverts it back to the previous version of inline dialog where event listeners were added in the capture phase). It also refactors handleClickOutside so that it is now triggered by a ref.
|
|
21
|
+
|
|
22
|
+
## 13.1.9
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 13.1.8
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
31
31
|
|
|
32
32
|
/** @jsx jsx */
|
|
33
33
|
var packageName = "@atlaskit/inline-dialog";
|
|
34
|
-
var packageVersion = "13.
|
|
34
|
+
var packageVersion = "13.2.2";
|
|
35
35
|
|
|
36
36
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
37
37
|
if (!node) {
|
|
@@ -58,12 +58,13 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
58
58
|
content = _ref.content,
|
|
59
59
|
children = _ref.children;
|
|
60
60
|
var containerRef = (0, _react.useRef)(null);
|
|
61
|
-
var triggerRef = (0, _react.useRef)(null);
|
|
62
|
-
var handleClickOutside = (0, _react.useCallback)(function (event) {
|
|
63
|
-
if (event.defaultPrevented) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
61
|
+
var triggerRef = (0, _react.useRef)(null); // we put this into a ref to avoid handleClickOutside having this as a dependency
|
|
66
62
|
|
|
63
|
+
var onCloseRef = (0, _react.useRef)(onClose);
|
|
64
|
+
(0, _react.useEffect)(function () {
|
|
65
|
+
onCloseRef.current = onClose;
|
|
66
|
+
});
|
|
67
|
+
var handleClickOutside = (0, _react.useCallback)(function (event) {
|
|
67
68
|
var target = event.target; // checks for when target is not HTMLElement
|
|
68
69
|
|
|
69
70
|
if (!(target instanceof HTMLElement)) {
|
|
@@ -89,43 +90,31 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
89
90
|
|
|
90
91
|
|
|
91
92
|
if (containerRef.current && !containerRef.current.contains(target)) {
|
|
92
|
-
|
|
93
|
+
var _onCloseRef$current;
|
|
94
|
+
|
|
95
|
+
(_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 ? void 0 : _onCloseRef$current.call(onCloseRef, {
|
|
93
96
|
isOpen: false,
|
|
94
97
|
event: event
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
|
-
}, [
|
|
100
|
+
}, []);
|
|
98
101
|
(0, _react.useEffect)(function () {
|
|
99
102
|
if (!isOpen) {
|
|
100
103
|
return;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
|
-
var unbind;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
unbind = (0, _bindEventListener.bind)(window, {
|
|
113
|
-
type: 'click',
|
|
114
|
-
listener: function listener(event) {
|
|
115
|
-
return handleClickOutside(event);
|
|
116
|
-
},
|
|
117
|
-
options: {
|
|
118
|
-
capture: false
|
|
119
|
-
}
|
|
120
|
-
});
|
|
106
|
+
var unbind;
|
|
107
|
+
unbind = (0, _bindEventListener.bind)(window, {
|
|
108
|
+
type: 'click',
|
|
109
|
+
listener: function listener(e) {
|
|
110
|
+
return handleClickOutside(e);
|
|
111
|
+
},
|
|
112
|
+
options: {
|
|
113
|
+
capture: true
|
|
114
|
+
}
|
|
121
115
|
});
|
|
122
|
-
return
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
window.clearTimeout(timeoutId);
|
|
126
|
-
(_unbind = unbind) === null || _unbind === void 0 ? void 0 : _unbind();
|
|
127
|
-
};
|
|
128
|
-
}, [handleClickOutside, isOpen]);
|
|
116
|
+
return unbind;
|
|
117
|
+
}, [isOpen, handleClickOutside]);
|
|
129
118
|
var popper = isOpen ? (0, _core.jsx)(_popper.Popper, {
|
|
130
119
|
placement: placement
|
|
131
120
|
}, function (_ref2) {
|
|
@@ -164,8 +153,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
164
153
|
}
|
|
165
154
|
}, children);
|
|
166
155
|
}), popper);
|
|
167
|
-
});
|
|
168
|
-
|
|
156
|
+
});
|
|
169
157
|
exports.InlineDialogWithoutAnalytics = InlineDialog;
|
|
170
158
|
InlineDialog.displayName = 'InlineDialog';
|
|
171
159
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
@@ -21,27 +21,25 @@ var _components = require("@atlaskit/theme/components");
|
|
|
21
21
|
|
|
22
22
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
23
|
|
|
24
|
-
var _tokens = require("@atlaskit/tokens");
|
|
25
|
-
|
|
26
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
25
|
|
|
28
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
27
|
|
|
30
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
29
|
|
|
32
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
31
|
|
|
34
32
|
var themedBackground = (0, _components.themed)({
|
|
35
|
-
light: (
|
|
36
|
-
dark: (
|
|
33
|
+
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
34
|
+
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
37
35
|
});
|
|
38
36
|
var themedColor = (0, _components.themed)({
|
|
39
|
-
light: (
|
|
40
|
-
dark: (
|
|
37
|
+
light: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
38
|
+
dark: "var(--ds-text, ".concat(_colors.DN600, ")")
|
|
41
39
|
});
|
|
42
40
|
var themedBoxShadow = (0, _components.themed)({
|
|
43
|
-
light: (
|
|
44
|
-
dark: (
|
|
41
|
+
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
42
|
+
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")")
|
|
45
43
|
});
|
|
46
44
|
var borderRadius = (0, _constants.borderRadius)();
|
|
47
45
|
var gridSize = (0, _constants.gridSize)();
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
const packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
const packageVersion = "13.
|
|
11
|
+
const packageVersion = "13.2.2";
|
|
12
12
|
|
|
13
13
|
const checkIsChildOfPortal = node => {
|
|
14
14
|
if (!node) {
|
|
@@ -30,12 +30,13 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
30
30
|
children
|
|
31
31
|
}) {
|
|
32
32
|
const containerRef = useRef(null);
|
|
33
|
-
const triggerRef = useRef(null);
|
|
34
|
-
const handleClickOutside = useCallback(event => {
|
|
35
|
-
if (event.defaultPrevented) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
33
|
+
const triggerRef = useRef(null); // we put this into a ref to avoid handleClickOutside having this as a dependency
|
|
38
34
|
|
|
35
|
+
const onCloseRef = useRef(onClose);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
onCloseRef.current = onClose;
|
|
38
|
+
});
|
|
39
|
+
const handleClickOutside = useCallback(event => {
|
|
39
40
|
const {
|
|
40
41
|
target
|
|
41
42
|
} = event; // checks for when target is not HTMLElement
|
|
@@ -63,41 +64,29 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
if (containerRef.current && !containerRef.current.contains(target)) {
|
|
66
|
-
|
|
67
|
+
var _onCloseRef$current;
|
|
68
|
+
|
|
69
|
+
(_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 ? void 0 : _onCloseRef$current.call(onCloseRef, {
|
|
67
70
|
isOpen: false,
|
|
68
71
|
event: event
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
|
-
}, [
|
|
74
|
+
}, []);
|
|
72
75
|
useEffect(() => {
|
|
73
76
|
if (!isOpen) {
|
|
74
77
|
return;
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
let unbind;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const timeoutId = setTimeout(() => {
|
|
86
|
-
unbind = bind(window, {
|
|
87
|
-
type: 'click',
|
|
88
|
-
listener: event => handleClickOutside(event),
|
|
89
|
-
options: {
|
|
90
|
-
capture: false
|
|
91
|
-
}
|
|
92
|
-
});
|
|
80
|
+
let unbind;
|
|
81
|
+
unbind = bind(window, {
|
|
82
|
+
type: 'click',
|
|
83
|
+
listener: e => handleClickOutside(e),
|
|
84
|
+
options: {
|
|
85
|
+
capture: true
|
|
86
|
+
}
|
|
93
87
|
});
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
window.clearTimeout(timeoutId);
|
|
98
|
-
(_unbind = unbind) === null || _unbind === void 0 ? void 0 : _unbind();
|
|
99
|
-
};
|
|
100
|
-
}, [handleClickOutside, isOpen]);
|
|
88
|
+
return unbind;
|
|
89
|
+
}, [isOpen, handleClickOutside]);
|
|
101
90
|
const popper = isOpen ? jsx(Popper, {
|
|
102
91
|
placement: placement
|
|
103
92
|
}, ({
|
|
@@ -134,8 +123,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
134
123
|
}
|
|
135
124
|
}
|
|
136
125
|
}, children)), popper);
|
|
137
|
-
});
|
|
138
|
-
|
|
126
|
+
});
|
|
139
127
|
InlineDialog.displayName = 'InlineDialog';
|
|
140
128
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
141
129
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
@@ -8,18 +8,17 @@ import { css, jsx } from '@emotion/core';
|
|
|
8
8
|
import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
10
10
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
|
11
|
-
import { token } from '@atlaskit/tokens';
|
|
12
11
|
const themedBackground = themed({
|
|
13
|
-
light:
|
|
14
|
-
dark:
|
|
12
|
+
light: `var(--ds-surface-overlay, ${N0})`,
|
|
13
|
+
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
15
14
|
});
|
|
16
15
|
const themedColor = themed({
|
|
17
|
-
light:
|
|
18
|
-
dark:
|
|
16
|
+
light: `var(--ds-text, ${N900})`,
|
|
17
|
+
dark: `var(--ds-text, ${DN600})`
|
|
19
18
|
});
|
|
20
19
|
const themedBoxShadow = themed({
|
|
21
|
-
light:
|
|
22
|
-
dark:
|
|
20
|
+
light: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
21
|
+
dark: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`
|
|
23
22
|
});
|
|
24
23
|
const borderRadius = getBorderRadius();
|
|
25
24
|
const gridSize = getGridSize();
|
package/dist/es2019/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
var packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
var packageVersion = "13.
|
|
11
|
+
var packageVersion = "13.2.2";
|
|
12
12
|
|
|
13
13
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
14
14
|
if (!node) {
|
|
@@ -35,12 +35,13 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
35
35
|
content = _ref.content,
|
|
36
36
|
children = _ref.children;
|
|
37
37
|
var containerRef = useRef(null);
|
|
38
|
-
var triggerRef = useRef(null);
|
|
39
|
-
var handleClickOutside = useCallback(function (event) {
|
|
40
|
-
if (event.defaultPrevented) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
38
|
+
var triggerRef = useRef(null); // we put this into a ref to avoid handleClickOutside having this as a dependency
|
|
43
39
|
|
|
40
|
+
var onCloseRef = useRef(onClose);
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
onCloseRef.current = onClose;
|
|
43
|
+
});
|
|
44
|
+
var handleClickOutside = useCallback(function (event) {
|
|
44
45
|
var target = event.target; // checks for when target is not HTMLElement
|
|
45
46
|
|
|
46
47
|
if (!(target instanceof HTMLElement)) {
|
|
@@ -66,43 +67,31 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
if (containerRef.current && !containerRef.current.contains(target)) {
|
|
69
|
-
|
|
70
|
+
var _onCloseRef$current;
|
|
71
|
+
|
|
72
|
+
(_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 ? void 0 : _onCloseRef$current.call(onCloseRef, {
|
|
70
73
|
isOpen: false,
|
|
71
74
|
event: event
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
|
-
}, [
|
|
77
|
+
}, []);
|
|
75
78
|
useEffect(function () {
|
|
76
79
|
if (!isOpen) {
|
|
77
80
|
return;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
|
-
var unbind;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
unbind = bind(window, {
|
|
90
|
-
type: 'click',
|
|
91
|
-
listener: function listener(event) {
|
|
92
|
-
return handleClickOutside(event);
|
|
93
|
-
},
|
|
94
|
-
options: {
|
|
95
|
-
capture: false
|
|
96
|
-
}
|
|
97
|
-
});
|
|
83
|
+
var unbind;
|
|
84
|
+
unbind = bind(window, {
|
|
85
|
+
type: 'click',
|
|
86
|
+
listener: function listener(e) {
|
|
87
|
+
return handleClickOutside(e);
|
|
88
|
+
},
|
|
89
|
+
options: {
|
|
90
|
+
capture: true
|
|
91
|
+
}
|
|
98
92
|
});
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
window.clearTimeout(timeoutId);
|
|
103
|
-
(_unbind = unbind) === null || _unbind === void 0 ? void 0 : _unbind();
|
|
104
|
-
};
|
|
105
|
-
}, [handleClickOutside, isOpen]);
|
|
93
|
+
return unbind;
|
|
94
|
+
}, [isOpen, handleClickOutside]);
|
|
106
95
|
var popper = isOpen ? jsx(Popper, {
|
|
107
96
|
placement: placement
|
|
108
97
|
}, function (_ref2) {
|
|
@@ -141,8 +130,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
141
130
|
}
|
|
142
131
|
}, children);
|
|
143
132
|
}), popper);
|
|
144
|
-
});
|
|
145
|
-
|
|
133
|
+
});
|
|
146
134
|
InlineDialog.displayName = 'InlineDialog';
|
|
147
135
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
148
136
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
8
8
|
|
|
@@ -14,18 +14,17 @@ import { css, jsx } from '@emotion/core';
|
|
|
14
14
|
import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
16
16
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
|
17
|
-
import { token } from '@atlaskit/tokens';
|
|
18
17
|
var themedBackground = themed({
|
|
19
|
-
light:
|
|
20
|
-
dark:
|
|
18
|
+
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
19
|
+
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
21
20
|
});
|
|
22
21
|
var themedColor = themed({
|
|
23
|
-
light:
|
|
24
|
-
dark:
|
|
22
|
+
light: "var(--ds-text, ".concat(N900, ")"),
|
|
23
|
+
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
25
24
|
});
|
|
26
25
|
var themedBoxShadow = themed({
|
|
27
|
-
light:
|
|
28
|
-
dark:
|
|
26
|
+
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
|
|
27
|
+
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")")
|
|
29
28
|
});
|
|
30
29
|
var borderRadius = getBorderRadius();
|
|
31
30
|
var gridSize = getGridSize();
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.2",
|
|
4
4
|
"description": "An inline dialog is a pop-up container for small amounts of information. It can also contain controls.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
19
|
"deprecatedAutoEntryPoints": true,
|
|
20
|
-
"inPublicMirror": true,
|
|
21
20
|
"releaseModel": "scheduled",
|
|
22
21
|
"website": {
|
|
23
22
|
"name": "Inline dialog"
|
|
@@ -27,8 +26,8 @@
|
|
|
27
26
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
28
27
|
"@atlaskit/ds-lib": "^1.3.0",
|
|
29
28
|
"@atlaskit/popper": "^5.0.0",
|
|
30
|
-
"@atlaskit/theme": "^12.
|
|
31
|
-
"@atlaskit/tokens": "^0.
|
|
29
|
+
"@atlaskit/theme": "^12.1.0",
|
|
30
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
32
31
|
"@babel/runtime": "^7.0.0",
|
|
33
32
|
"@emotion/core": "^10.0.9",
|
|
34
33
|
"bind-event-listener": "^1.0.2",
|
|
@@ -38,12 +37,11 @@
|
|
|
38
37
|
"react": "^16.8.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
|
-
"@atlaskit/build-utils": "*",
|
|
42
40
|
"@atlaskit/button": "^16.1.0",
|
|
43
41
|
"@atlaskit/datetime-picker": "^11.1.0",
|
|
44
42
|
"@atlaskit/docs": "*",
|
|
45
|
-
"@atlaskit/icon": "^21.
|
|
46
|
-
"@atlaskit/modal-dialog": "^12.
|
|
43
|
+
"@atlaskit/icon": "^21.10.0",
|
|
44
|
+
"@atlaskit/modal-dialog": "^12.2.0",
|
|
47
45
|
"@atlaskit/section-message": "^6.1.0",
|
|
48
46
|
"@atlaskit/select": "^15.0.0",
|
|
49
47
|
"@atlaskit/ssr": "*",
|
|
@@ -51,7 +49,6 @@
|
|
|
51
49
|
"@atlaskit/webdriver-runner": "*",
|
|
52
50
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
53
51
|
"@testing-library/react": "^8.0.1",
|
|
54
|
-
"enzyme": "^3.10.0",
|
|
55
52
|
"react-dom": "^16.8.0",
|
|
56
53
|
"react-lorem-component": "^0.13.0",
|
|
57
54
|
"typescript": "3.9.6",
|
|
@@ -72,7 +69,10 @@
|
|
|
72
69
|
"react-context",
|
|
73
70
|
"tokens"
|
|
74
71
|
],
|
|
75
|
-
"styling":
|
|
72
|
+
"styling": [
|
|
73
|
+
"static",
|
|
74
|
+
"emotion"
|
|
75
|
+
],
|
|
76
76
|
"design-system": "v1",
|
|
77
77
|
"deprecation": "no-deprecated-imports"
|
|
78
78
|
}
|