@atlaskit/inline-message 12.1.1 → 12.1.3
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 +576 -563
- package/dist/cjs/components/inline-message/index.js +8 -2
- package/dist/cjs/components/message-icon/index.js +3 -1
- package/dist/es2019/components/inline-message/index.js +8 -2
- package/dist/es2019/components/message-icon/index.js +3 -1
- package/dist/esm/components/inline-message/index.js +8 -2
- package/dist/esm/components/message-icon/index.js +3 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +17 -8
|
@@ -10,6 +10,8 @@ var _react = require("react");
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
12
|
var _inlineDialog = _interopRequireDefault(require("@atlaskit/inline-dialog"));
|
|
13
|
+
var _layering = require("@atlaskit/layering");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
15
|
var _primitives = require("@atlaskit/primitives");
|
|
14
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
17
|
var _messageIcon = _interopRequireDefault(require("../message-icon"));
|
|
@@ -99,11 +101,15 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
99
101
|
appearance = type;
|
|
100
102
|
}
|
|
101
103
|
return (0, _react2.jsx)("div", {
|
|
102
|
-
css: rootStyles
|
|
104
|
+
css: rootStyles
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
106
|
+
,
|
|
103
107
|
style: {
|
|
104
108
|
'--icon-accent-color': iconColor(appearance)
|
|
105
109
|
},
|
|
106
110
|
"data-testid": testId
|
|
111
|
+
}, (0, _react2.jsx)(_layering.UNSAFE_LAYERING, {
|
|
112
|
+
isDisabled: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.inline-message-layering_wfp1p') ? !isOpen : true
|
|
107
113
|
}, (0, _react2.jsx)(_inlineDialog.default, {
|
|
108
114
|
onClose: onCloseDialog,
|
|
109
115
|
content: children,
|
|
@@ -134,6 +140,6 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
134
140
|
color: "color.text.subtlest",
|
|
135
141
|
maxLines: 1,
|
|
136
142
|
testId: testId && "".concat(testId, "--text")
|
|
137
|
-
}, secondaryText))))));
|
|
143
|
+
}, secondaryText)))))));
|
|
138
144
|
};
|
|
139
145
|
var _default = exports.default = InlineMessage;
|
|
@@ -47,7 +47,9 @@ var SelectedIcon = function SelectedIcon(_ref) {
|
|
|
47
47
|
Icon = _typesMapping$appeara.icon,
|
|
48
48
|
defaultLabel = _typesMapping$appeara.defaultLabel;
|
|
49
49
|
return (0, _react.jsx)("span", {
|
|
50
|
-
"data-ds--inline-message--icon": true
|
|
50
|
+
"data-ds--inline-message--icon": true
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
51
53
|
style: {
|
|
52
54
|
'--icon-color': iconColor(appearance)
|
|
53
55
|
},
|
|
@@ -3,6 +3,8 @@ import { useCallback, useState } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import InlineDialog from '@atlaskit/inline-dialog';
|
|
6
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
7
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
8
|
import { Inline, Text } from '@atlaskit/primitives';
|
|
7
9
|
import { B300, G200, P200, R300, Y200 } from '@atlaskit/theme/colors';
|
|
8
10
|
import MessageIcon from '../message-icon';
|
|
@@ -80,11 +82,15 @@ const InlineMessage = ({
|
|
|
80
82
|
appearance = type;
|
|
81
83
|
}
|
|
82
84
|
return jsx("div", {
|
|
83
|
-
css: rootStyles
|
|
85
|
+
css: rootStyles
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
87
|
+
,
|
|
84
88
|
style: {
|
|
85
89
|
'--icon-accent-color': iconColor(appearance)
|
|
86
90
|
},
|
|
87
91
|
"data-testid": testId
|
|
92
|
+
}, jsx(UNSAFE_LAYERING, {
|
|
93
|
+
isDisabled: getBooleanFF('platform.design-system-team.inline-message-layering_wfp1p') ? !isOpen : true
|
|
88
94
|
}, jsx(InlineDialog, {
|
|
89
95
|
onClose: onCloseDialog,
|
|
90
96
|
content: children,
|
|
@@ -115,6 +121,6 @@ const InlineMessage = ({
|
|
|
115
121
|
color: "color.text.subtlest",
|
|
116
122
|
maxLines: 1,
|
|
117
123
|
testId: testId && `${testId}--text`
|
|
118
|
-
}, secondaryText))))));
|
|
124
|
+
}, secondaryText)))))));
|
|
119
125
|
};
|
|
120
126
|
export default InlineMessage;
|
|
@@ -45,7 +45,9 @@ const SelectedIcon = ({
|
|
|
45
45
|
}
|
|
46
46
|
} = typesMapping;
|
|
47
47
|
return jsx("span", {
|
|
48
|
-
"data-ds--inline-message--icon": true
|
|
48
|
+
"data-ds--inline-message--icon": true
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
49
51
|
style: {
|
|
50
52
|
'--icon-color': iconColor(appearance)
|
|
51
53
|
},
|
|
@@ -4,6 +4,8 @@ import { useCallback, useState } from 'react';
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import InlineDialog from '@atlaskit/inline-dialog';
|
|
7
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
8
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Inline, Text } from '@atlaskit/primitives';
|
|
8
10
|
import { B300, G200, P200, R300, Y200 } from '@atlaskit/theme/colors';
|
|
9
11
|
import MessageIcon from '../message-icon';
|
|
@@ -91,11 +93,15 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
91
93
|
appearance = type;
|
|
92
94
|
}
|
|
93
95
|
return jsx("div", {
|
|
94
|
-
css: rootStyles
|
|
96
|
+
css: rootStyles
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
98
|
+
,
|
|
95
99
|
style: {
|
|
96
100
|
'--icon-accent-color': iconColor(appearance)
|
|
97
101
|
},
|
|
98
102
|
"data-testid": testId
|
|
103
|
+
}, jsx(UNSAFE_LAYERING, {
|
|
104
|
+
isDisabled: getBooleanFF('platform.design-system-team.inline-message-layering_wfp1p') ? !isOpen : true
|
|
99
105
|
}, jsx(InlineDialog, {
|
|
100
106
|
onClose: onCloseDialog,
|
|
101
107
|
content: children,
|
|
@@ -126,6 +132,6 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
126
132
|
color: "color.text.subtlest",
|
|
127
133
|
maxLines: 1,
|
|
128
134
|
testId: testId && "".concat(testId, "--text")
|
|
129
|
-
}, secondaryText))))));
|
|
135
|
+
}, secondaryText)))))));
|
|
130
136
|
};
|
|
131
137
|
export default InlineMessage;
|
|
@@ -41,7 +41,9 @@ var SelectedIcon = function SelectedIcon(_ref) {
|
|
|
41
41
|
Icon = _typesMapping$appeara.icon,
|
|
42
42
|
defaultLabel = _typesMapping$appeara.defaultLabel;
|
|
43
43
|
return jsx("span", {
|
|
44
|
-
"data-ds--inline-message--icon": true
|
|
44
|
+
"data-ds--inline-message--icon": true
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
46
|
+
,
|
|
45
47
|
style: {
|
|
46
48
|
'--icon-color': iconColor(appearance)
|
|
47
49
|
},
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-message",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.3",
|
|
4
4
|
"description": "An inline message lets users know when important information is available or when an action is required.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,11 +32,13 @@
|
|
|
32
32
|
"runReact18": true
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/button": "^17.
|
|
35
|
+
"@atlaskit/button": "^17.17.0",
|
|
36
36
|
"@atlaskit/icon": "^22.3.0",
|
|
37
|
-
"@atlaskit/inline-dialog": "^14.
|
|
38
|
-
"@atlaskit/
|
|
39
|
-
"@atlaskit/
|
|
37
|
+
"@atlaskit/inline-dialog": "^14.1.0",
|
|
38
|
+
"@atlaskit/layering": "^0.3.0",
|
|
39
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
40
|
+
"@atlaskit/primitives": "^7.0.0",
|
|
41
|
+
"@atlaskit/theme": "^12.9.0",
|
|
40
42
|
"@atlaskit/tokens": "^1.49.0",
|
|
41
43
|
"@babel/runtime": "^7.0.0",
|
|
42
44
|
"@emotion/react": "^11.7.1"
|
|
@@ -51,7 +53,6 @@
|
|
|
51
53
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
52
54
|
"@atlaskit/ssr": "*",
|
|
53
55
|
"@atlaskit/visual-regression": "*",
|
|
54
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
55
56
|
"@emotion/jest": "^11.8.0",
|
|
56
57
|
"@testing-library/react": "^12.1.5",
|
|
57
58
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -91,6 +92,14 @@
|
|
|
91
92
|
]
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
|
-
"
|
|
95
|
-
|
|
95
|
+
"platform-feature-flags": {
|
|
96
|
+
"platform.design-system-team.layering_qmiw3": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"referenceOnly": true
|
|
99
|
+
},
|
|
100
|
+
"platform.design-system-team.inline-message-layering_wfp1p": {
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"homepage": "https://atlassian.design/components/inline-message/"
|
|
96
105
|
}
|