@atlaskit/inline-dialog 13.6.7 → 14.0.0
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 +12 -0
- package/dist/cjs/InlineDialog/index.js +2 -2
- package/dist/cjs/InlineDialog/styled/container.js +1 -15
- package/dist/es2019/InlineDialog/index.js +2 -2
- package/dist/es2019/InlineDialog/styled/container.js +4 -18
- package/dist/esm/InlineDialog/index.js +2 -2
- package/dist/esm/InlineDialog/styled/container.js +2 -16
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#41791](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41791) [`ec7c2a38247`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec7c2a38247) - Removed all remaining legacy theming logic from the Calendar, Form, InlineDialog, InlineEdit and InlineMessage components.
|
|
8
|
+
|
|
9
|
+
## 13.6.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41990](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41990) [`7a88114cef7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a88114cef7) - added type dependency for @types/react-node-resolver
|
|
14
|
+
|
|
3
15
|
## 13.6.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
|
|
21
21
|
var packageName = "@atlaskit/inline-dialog";
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "14.0.0";
|
|
23
23
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
24
24
|
if (!node) {
|
|
25
25
|
return false;
|
|
@@ -153,7 +153,7 @@ var InlineDialog = exports.InlineDialogWithoutAnalytics = /*#__PURE__*/(0, _reac
|
|
|
153
153
|
ref.current = node;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
}, children);
|
|
156
|
+
}, (0, _react2.jsx)(_react.default.Fragment, null, children));
|
|
157
157
|
}), popper);
|
|
158
158
|
});
|
|
159
159
|
InlineDialog.displayName = 'InlineDialog';
|
|
@@ -10,24 +10,11 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
-
var _components = require("@atlaskit/theme/components");
|
|
14
13
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
14
|
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); }
|
|
16
15
|
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; }
|
|
17
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ /** @jsx jsx */
|
|
19
|
-
var themedBackground = (0, _components.themed)({
|
|
20
|
-
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
21
|
-
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
22
|
-
});
|
|
23
|
-
var themedColor = (0, _components.themed)({
|
|
24
|
-
light: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
25
|
-
dark: "var(--ds-text, ".concat(_colors.DN600, ")")
|
|
26
|
-
});
|
|
27
|
-
var themedBoxShadow = (0, _components.themed)({
|
|
28
|
-
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
29
|
-
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")")
|
|
30
|
-
});
|
|
31
18
|
var CSS_THEME_BACKGROUND = '--theme-background';
|
|
32
19
|
var CSS_THEME_COLOR = '--theme-color';
|
|
33
20
|
var CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
|
|
@@ -60,7 +47,6 @@ var Container = exports.Container = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
60
47
|
onFocus = _ref.onFocus,
|
|
61
48
|
style = _ref.style,
|
|
62
49
|
testId = _ref.testId;
|
|
63
|
-
var theme = (0, _components.useGlobalTheme)();
|
|
64
50
|
return (0, _react2.jsx)("div", {
|
|
65
51
|
css: containerStyles,
|
|
66
52
|
"data-testid": testId,
|
|
@@ -68,6 +54,6 @@ var Container = exports.Container = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
68
54
|
onClick: onClick,
|
|
69
55
|
onFocus: onFocus,
|
|
70
56
|
ref: ref,
|
|
71
|
-
style: _objectSpread((_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, CSS_THEME_BACKGROUND,
|
|
57
|
+
style: _objectSpread((_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, CSS_THEME_BACKGROUND, "var(--ds-surface-overlay, ".concat(_colors.N0, ")")), (0, _defineProperty2.default)(_objectSpread2, CSS_THEME_COLOR, "var(--ds-text, ".concat(_colors.N900, ")")), (0, _defineProperty2.default)(_objectSpread2, CSS_THEME_BOX_SHADOW, "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")), _objectSpread2), style)
|
|
72
58
|
}, children);
|
|
73
59
|
});
|
|
@@ -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 = "
|
|
11
|
+
const packageVersion = "14.0.0";
|
|
12
12
|
const checkIsChildOfPortal = node => {
|
|
13
13
|
if (!node) {
|
|
14
14
|
return false;
|
|
@@ -137,7 +137,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
137
137
|
ref.current = node;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
}, children)), popper);
|
|
140
|
+
}, jsx(React.Fragment, null, children))), popper);
|
|
141
141
|
});
|
|
142
142
|
InlineDialog.displayName = 'InlineDialog';
|
|
143
143
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
@@ -3,21 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
-
import {
|
|
7
|
-
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
6
|
+
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
|
-
const themedBackground = themed({
|
|
10
|
-
light: `var(--ds-surface-overlay, ${N0})`,
|
|
11
|
-
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
12
|
-
});
|
|
13
|
-
const themedColor = themed({
|
|
14
|
-
light: `var(--ds-text, ${N900})`,
|
|
15
|
-
dark: `var(--ds-text, ${DN600})`
|
|
16
|
-
});
|
|
17
|
-
const themedBoxShadow = themed({
|
|
18
|
-
light: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
19
|
-
dark: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`
|
|
20
|
-
});
|
|
21
8
|
const CSS_THEME_BACKGROUND = '--theme-background';
|
|
22
9
|
const CSS_THEME_COLOR = '--theme-color';
|
|
23
10
|
const CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
|
|
@@ -50,7 +37,6 @@ export const Container = /*#__PURE__*/forwardRef(({
|
|
|
50
37
|
style,
|
|
51
38
|
testId
|
|
52
39
|
}, ref) => {
|
|
53
|
-
const theme = useGlobalTheme();
|
|
54
40
|
return jsx("div", {
|
|
55
41
|
css: containerStyles,
|
|
56
42
|
"data-testid": testId,
|
|
@@ -59,9 +45,9 @@ export const Container = /*#__PURE__*/forwardRef(({
|
|
|
59
45
|
onFocus: onFocus,
|
|
60
46
|
ref: ref,
|
|
61
47
|
style: {
|
|
62
|
-
[CSS_THEME_BACKGROUND]:
|
|
63
|
-
[CSS_THEME_COLOR]:
|
|
64
|
-
[CSS_THEME_BOX_SHADOW]:
|
|
48
|
+
[CSS_THEME_BACKGROUND]: `var(--ds-surface-overlay, ${N0})`,
|
|
49
|
+
[CSS_THEME_COLOR]: `var(--ds-text, ${N900})`,
|
|
50
|
+
[CSS_THEME_BOX_SHADOW]: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
65
51
|
...style
|
|
66
52
|
}
|
|
67
53
|
}, children);
|
|
@@ -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 = "
|
|
11
|
+
var packageVersion = "14.0.0";
|
|
12
12
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
13
13
|
if (!node) {
|
|
14
14
|
return false;
|
|
@@ -142,7 +142,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
142
142
|
ref.current = node;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
}, children);
|
|
145
|
+
}, jsx(React.Fragment, null, children));
|
|
146
146
|
}), popper);
|
|
147
147
|
});
|
|
148
148
|
InlineDialog.displayName = 'InlineDialog';
|
|
@@ -6,21 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import React, { forwardRef } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import {
|
|
10
|
-
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
9
|
+
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
11
10
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
|
-
var themedBackground = themed({
|
|
13
|
-
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
14
|
-
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
15
|
-
});
|
|
16
|
-
var themedColor = themed({
|
|
17
|
-
light: "var(--ds-text, ".concat(N900, ")"),
|
|
18
|
-
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
19
|
-
});
|
|
20
|
-
var themedBoxShadow = themed({
|
|
21
|
-
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
|
|
22
|
-
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")")
|
|
23
|
-
});
|
|
24
11
|
var CSS_THEME_BACKGROUND = '--theme-background';
|
|
25
12
|
var CSS_THEME_COLOR = '--theme-color';
|
|
26
13
|
var CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
|
|
@@ -53,7 +40,6 @@ export var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
53
40
|
onFocus = _ref.onFocus,
|
|
54
41
|
style = _ref.style,
|
|
55
42
|
testId = _ref.testId;
|
|
56
|
-
var theme = useGlobalTheme();
|
|
57
43
|
return jsx("div", {
|
|
58
44
|
css: containerStyles,
|
|
59
45
|
"data-testid": testId,
|
|
@@ -61,6 +47,6 @@ export var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
61
47
|
onClick: onClick,
|
|
62
48
|
onFocus: onFocus,
|
|
63
49
|
ref: ref,
|
|
64
|
-
style: _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, CSS_THEME_BACKGROUND,
|
|
50
|
+
style: _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, CSS_THEME_BACKGROUND, "var(--ds-surface-overlay, ".concat(N0, ")")), _defineProperty(_objectSpread2, CSS_THEME_COLOR, "var(--ds-text, ".concat(N900, ")")), _defineProperty(_objectSpread2, CSS_THEME_BOX_SHADOW, "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")), _objectSpread2), style)
|
|
65
51
|
}, children);
|
|
66
52
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
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/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
42
42
|
"@atlaskit/popper": "^5.5.0",
|
|
43
43
|
"@atlaskit/theme": "^12.6.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"bind-event-listener": "^2.1.1",
|
|
@@ -52,8 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@af/accessibility-testing": "*",
|
|
55
|
+
"@af/integration-testing": "*",
|
|
55
56
|
"@af/visual-regression": "*",
|
|
56
|
-
"@atlaskit/button": "^16.
|
|
57
|
+
"@atlaskit/button": "^16.13.0",
|
|
57
58
|
"@atlaskit/datetime-picker": "^12.10.0",
|
|
58
59
|
"@atlaskit/docs": "*",
|
|
59
60
|
"@atlaskit/modal-dialog": "^12.8.0",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"@atlaskit/webdriver-runner": "*",
|
|
65
66
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
66
67
|
"@testing-library/react": "^12.1.5",
|
|
68
|
+
"@types/react-node-resolver": "^2.0.0",
|
|
67
69
|
"react-dom": "^16.8.0",
|
|
68
70
|
"react-lorem-component": "^0.13.0",
|
|
69
71
|
"typescript": "~4.9.5",
|