@atlaskit/modal-dialog 12.8.0 → 12.8.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 +12 -0
- package/dist/cjs/modal-title.js +10 -18
- package/dist/cjs/modal-wrapper.js +1 -1
- package/dist/es2019/modal-title.js +10 -18
- package/dist/es2019/modal-wrapper.js +1 -1
- package/dist/esm/modal-title.js +10 -18
- package/dist/esm/modal-wrapper.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 12.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40650) [`07aa588c8a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07aa588c8a4) - Reverts the fix to text descender cut-off, due to incompatibilities with Firefox and Safari.
|
|
8
|
+
|
|
9
|
+
## 12.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#40647](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40647) [`0de92f17021`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0de92f17021) - Bump react-focus-lock to latest version
|
|
14
|
+
|
|
3
15
|
## 12.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/modal-title.js
CHANGED
|
@@ -50,27 +50,19 @@ var iconStyles = (0, _react.css)({
|
|
|
50
50
|
*/
|
|
51
51
|
var lineHeightOffset = fontSize - fontSize * adjustedLineHeight;
|
|
52
52
|
var truncatedTextStyles = (0, _react.css)({
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
54
|
+
marginTop: "".concat(lineHeightOffset / 2, "px"),
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
56
|
+
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
57
|
+
lineHeight: adjustedLineHeight,
|
|
58
|
+
overflow: 'hidden',
|
|
53
59
|
textOverflow: 'ellipsis',
|
|
54
|
-
whiteSpace: 'nowrap'
|
|
55
|
-
// Use "clip" overflow to allow ellipses on x-axis without clipping descenders
|
|
56
|
-
'@supports (overflow-x: clip)': {
|
|
57
|
-
overflowX: 'clip'
|
|
58
|
-
},
|
|
59
|
-
'@supports not (overflow-x: clip)': {
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
61
|
-
marginTop: "".concat(lineHeightOffset / 2, "px"),
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
63
|
-
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
64
|
-
lineHeight: adjustedLineHeight,
|
|
65
|
-
overflow: 'hidden'
|
|
66
|
-
}
|
|
60
|
+
whiteSpace: 'nowrap'
|
|
67
61
|
});
|
|
68
62
|
var truncatedTextIconStyles = (0, _react.css)({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
lineHeight: 1.2
|
|
73
|
-
}
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
64
|
+
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
65
|
+
lineHeight: 1.2
|
|
74
66
|
});
|
|
75
67
|
var TitleIcon = function TitleIcon(_ref) {
|
|
76
68
|
var appearance = _ref.appearance,
|
|
@@ -86,7 +86,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
86
86
|
action: 'closed',
|
|
87
87
|
componentName: 'modalDialog',
|
|
88
88
|
packageName: "@atlaskit/modal-dialog",
|
|
89
|
-
packageVersion: "12.8.
|
|
89
|
+
packageVersion: "12.8.2"
|
|
90
90
|
});
|
|
91
91
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
92
92
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -43,27 +43,19 @@ const iconStyles = css({
|
|
|
43
43
|
*/
|
|
44
44
|
const lineHeightOffset = fontSize - fontSize * adjustedLineHeight;
|
|
45
45
|
const truncatedTextStyles = css({
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
47
|
+
marginTop: `${lineHeightOffset / 2}px`,
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
49
|
+
marginBottom: `${lineHeightOffset / 2}px`,
|
|
50
|
+
lineHeight: adjustedLineHeight,
|
|
51
|
+
overflow: 'hidden',
|
|
46
52
|
textOverflow: 'ellipsis',
|
|
47
|
-
whiteSpace: 'nowrap'
|
|
48
|
-
// Use "clip" overflow to allow ellipses on x-axis without clipping descenders
|
|
49
|
-
'@supports (overflow-x: clip)': {
|
|
50
|
-
overflowX: 'clip'
|
|
51
|
-
},
|
|
52
|
-
'@supports not (overflow-x: clip)': {
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
54
|
-
marginTop: `${lineHeightOffset / 2}px`,
|
|
55
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
56
|
-
marginBottom: `${lineHeightOffset / 2}px`,
|
|
57
|
-
lineHeight: adjustedLineHeight,
|
|
58
|
-
overflow: 'hidden'
|
|
59
|
-
}
|
|
53
|
+
whiteSpace: 'nowrap'
|
|
60
54
|
});
|
|
61
55
|
const truncatedTextIconStyles = css({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
lineHeight: 1.2
|
|
66
|
-
}
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
57
|
+
marginBottom: `${lineHeightOffset / 2}px`,
|
|
58
|
+
lineHeight: 1.2
|
|
67
59
|
});
|
|
68
60
|
const TitleIcon = ({
|
|
69
61
|
appearance,
|
|
@@ -71,7 +71,7 @@ const ModalWrapper = props => {
|
|
|
71
71
|
action: 'closed',
|
|
72
72
|
componentName: 'modalDialog',
|
|
73
73
|
packageName: "@atlaskit/modal-dialog",
|
|
74
|
-
packageVersion: "12.8.
|
|
74
|
+
packageVersion: "12.8.2"
|
|
75
75
|
});
|
|
76
76
|
const onBlanketClicked = useCallback(e => {
|
|
77
77
|
if (shouldCloseOnOverlayClick) {
|
package/dist/esm/modal-title.js
CHANGED
|
@@ -43,27 +43,19 @@ var iconStyles = css({
|
|
|
43
43
|
*/
|
|
44
44
|
var lineHeightOffset = fontSize - fontSize * adjustedLineHeight;
|
|
45
45
|
var truncatedTextStyles = css({
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
47
|
+
marginTop: "".concat(lineHeightOffset / 2, "px"),
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
49
|
+
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
50
|
+
lineHeight: adjustedLineHeight,
|
|
51
|
+
overflow: 'hidden',
|
|
46
52
|
textOverflow: 'ellipsis',
|
|
47
|
-
whiteSpace: 'nowrap'
|
|
48
|
-
// Use "clip" overflow to allow ellipses on x-axis without clipping descenders
|
|
49
|
-
'@supports (overflow-x: clip)': {
|
|
50
|
-
overflowX: 'clip'
|
|
51
|
-
},
|
|
52
|
-
'@supports not (overflow-x: clip)': {
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
54
|
-
marginTop: "".concat(lineHeightOffset / 2, "px"),
|
|
55
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
56
|
-
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
57
|
-
lineHeight: adjustedLineHeight,
|
|
58
|
-
overflow: 'hidden'
|
|
59
|
-
}
|
|
53
|
+
whiteSpace: 'nowrap'
|
|
60
54
|
});
|
|
61
55
|
var truncatedTextIconStyles = css({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
lineHeight: 1.2
|
|
66
|
-
}
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
|
|
57
|
+
marginBottom: "".concat(lineHeightOffset / 2, "px"),
|
|
58
|
+
lineHeight: 1.2
|
|
67
59
|
});
|
|
68
60
|
var TitleIcon = function TitleIcon(_ref) {
|
|
69
61
|
var appearance = _ref.appearance,
|
|
@@ -76,7 +76,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
76
76
|
action: 'closed',
|
|
77
77
|
componentName: 'modalDialog',
|
|
78
78
|
packageName: "@atlaskit/modal-dialog",
|
|
79
|
-
packageVersion: "12.8.
|
|
79
|
+
packageVersion: "12.8.2"
|
|
80
80
|
});
|
|
81
81
|
var onBlanketClicked = useCallback(function (e) {
|
|
82
82
|
if (shouldCloseOnOverlayClick) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.2",
|
|
4
4
|
"description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@atlaskit/portal": "^4.3.0",
|
|
38
38
|
"@atlaskit/primitives": "^1.6.0",
|
|
39
39
|
"@atlaskit/theme": "^12.6.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.26.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"bind-event-listener": "^2.1.1",
|
|
44
44
|
"raf-schd": "^4.0.3",
|
|
45
|
-
"react-focus-lock": "^2.5
|
|
45
|
+
"react-focus-lock": "^2.9.5",
|
|
46
46
|
"react-scrolllock": "^5.0.1",
|
|
47
47
|
"react-uid": "^2.2.0"
|
|
48
48
|
},
|