@atlaskit/section-message 8.0.2 → 8.1.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#122958](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122958)
|
|
8
|
+
[`e46a10ea5b483`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e46a10ea5b483) -
|
|
9
|
+
Updated to use new icons. This change is behind a feature flag and will be available in a later
|
|
10
|
+
release.
|
|
11
|
+
|
|
3
12
|
## 8.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -7,18 +7,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getAppearanceIconStyles = getAppearanceIconStyles;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var _warning = _interopRequireDefault(require("@atlaskit/icon/
|
|
10
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
11
|
+
var _informationInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/information--info"));
|
|
12
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
13
|
+
var _successCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--check-circle"));
|
|
14
|
+
var _warning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning"));
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
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; }
|
|
17
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; }
|
|
18
18
|
var appearanceIconSchema = {
|
|
19
19
|
information: {
|
|
20
20
|
backgroundColor: "var(--ds-background-information, ".concat(_colors.B50, ")"),
|
|
21
|
-
Icon:
|
|
21
|
+
Icon: _informationInfo.default,
|
|
22
22
|
primaryIconColor: "var(--ds-icon-information, ".concat(_colors.B500, ")")
|
|
23
23
|
},
|
|
24
24
|
warning: {
|
|
@@ -33,7 +33,7 @@ var appearanceIconSchema = {
|
|
|
33
33
|
},
|
|
34
34
|
success: {
|
|
35
35
|
backgroundColor: "var(--ds-background-success, ".concat(_colors.G50, ")"),
|
|
36
|
-
Icon:
|
|
36
|
+
Icon: _successCheckCircle.default,
|
|
37
37
|
primaryIconColor: "var(--ds-icon-success, ".concat(_colors.G500, ")")
|
|
38
38
|
},
|
|
39
39
|
discovery: {
|
|
@@ -49,9 +49,11 @@ function getAppearanceIconStyles(appearance, icon) {
|
|
|
49
49
|
primaryColor = _ref.primaryColor,
|
|
50
50
|
secondaryColor = _ref.secondaryColor;
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement(appearanceIconStyles.Icon, {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
LEGACY_size: size,
|
|
53
|
+
color: primaryColor,
|
|
54
|
+
spacing: "spacious",
|
|
55
|
+
LEGACY_primaryColor: primaryColor,
|
|
56
|
+
LEGACY_secondaryColor: secondaryColor,
|
|
55
57
|
label: appearance
|
|
56
58
|
});
|
|
57
59
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import WarningIcon from '@atlaskit/icon/
|
|
2
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
3
|
+
import InfoIcon from '@atlaskit/icon/core/migration/information--info';
|
|
4
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
5
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
6
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
7
7
|
import { B50, B500, G50, G500, P50, P500, R50, R500, Y50, Y500 } from '@atlaskit/theme/colors';
|
|
8
8
|
const appearanceIconSchema = {
|
|
9
9
|
information: {
|
|
@@ -23,7 +23,7 @@ const appearanceIconSchema = {
|
|
|
23
23
|
},
|
|
24
24
|
success: {
|
|
25
25
|
backgroundColor: `var(--ds-background-success, ${G50})`,
|
|
26
|
-
Icon:
|
|
26
|
+
Icon: SuccessIcon,
|
|
27
27
|
primaryIconColor: `var(--ds-icon-success, ${G500})`
|
|
28
28
|
},
|
|
29
29
|
discovery: {
|
|
@@ -39,9 +39,11 @@ export function getAppearanceIconStyles(appearance, icon) {
|
|
|
39
39
|
primaryColor,
|
|
40
40
|
secondaryColor
|
|
41
41
|
}) => /*#__PURE__*/React.createElement(appearanceIconStyles.Icon, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
LEGACY_size: size,
|
|
43
|
+
color: primaryColor,
|
|
44
|
+
spacing: "spacious",
|
|
45
|
+
LEGACY_primaryColor: primaryColor,
|
|
46
|
+
LEGACY_secondaryColor: secondaryColor,
|
|
45
47
|
label: appearance
|
|
46
48
|
});
|
|
47
49
|
const Icon = icon || AppearanceIcon;
|
|
@@ -2,11 +2,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import WarningIcon from '@atlaskit/icon/
|
|
5
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
6
|
+
import InfoIcon from '@atlaskit/icon/core/migration/information--info';
|
|
7
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
8
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
9
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
10
10
|
import { B50, B500, G50, G500, P50, P500, R50, R500, Y50, Y500 } from '@atlaskit/theme/colors';
|
|
11
11
|
var appearanceIconSchema = {
|
|
12
12
|
information: {
|
|
@@ -26,7 +26,7 @@ var appearanceIconSchema = {
|
|
|
26
26
|
},
|
|
27
27
|
success: {
|
|
28
28
|
backgroundColor: "var(--ds-background-success, ".concat(G50, ")"),
|
|
29
|
-
Icon:
|
|
29
|
+
Icon: SuccessIcon,
|
|
30
30
|
primaryIconColor: "var(--ds-icon-success, ".concat(G500, ")")
|
|
31
31
|
},
|
|
32
32
|
discovery: {
|
|
@@ -42,9 +42,11 @@ export function getAppearanceIconStyles(appearance, icon) {
|
|
|
42
42
|
primaryColor = _ref.primaryColor,
|
|
43
43
|
secondaryColor = _ref.secondaryColor;
|
|
44
44
|
return /*#__PURE__*/React.createElement(appearanceIconStyles.Icon, {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
LEGACY_size: size,
|
|
46
|
+
color: primaryColor,
|
|
47
|
+
spacing: "spacious",
|
|
48
|
+
LEGACY_primaryColor: primaryColor,
|
|
49
|
+
LEGACY_secondaryColor: secondaryColor,
|
|
48
50
|
label: appearance
|
|
49
51
|
});
|
|
50
52
|
};
|
package/package.json
CHANGED