@atlaskit/section-message 6.3.9 → 6.3.11
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/entry-points/section-message-action.js +0 -2
- package/dist/cjs/entry-points/section-message.js +0 -2
- package/dist/cjs/index.js +0 -3
- package/dist/cjs/internal/appearance-icon.js +0 -12
- package/dist/cjs/section-message-action.js +4 -11
- package/dist/cjs/section-message.js +20 -30
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/internal/appearance-icon.js +2 -1
- package/dist/es2019/section-message-action.js +0 -1
- package/dist/es2019/section-message.js +9 -7
- package/dist/es2019/version.json +1 -1
- package/dist/esm/internal/appearance-icon.js +0 -3
- package/dist/esm/section-message-action.js +4 -5
- package/dist/esm/section-message.js +18 -18
- package/dist/esm/version.json +1 -1
- package/package.json +9 -7
- package/report.api.md +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 6.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
8
|
+
|
|
9
|
+
## 6.3.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 6.3.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _sectionMessageAction.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _sectionMessageAction = _interopRequireDefault(require("../section-message-action"));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _sectionMessage.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _sectionMessage = _interopRequireDefault(require("../section-message"));
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -17,7 +16,5 @@ Object.defineProperty(exports, "default", {
|
|
|
17
16
|
return _sectionMessage.default;
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
|
-
|
|
21
19
|
var _sectionMessage = _interopRequireDefault(require("./section-message"));
|
|
22
|
-
|
|
23
20
|
var _sectionMessageAction = _interopRequireDefault(require("./section-message-action"));
|
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.appearanceIconSchema = void 0;
|
|
9
8
|
exports.getAppearanceIconStyles = getAppearanceIconStyles;
|
|
10
|
-
|
|
11
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
|
|
13
10
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
|
|
14
|
-
|
|
15
11
|
var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
|
|
16
|
-
|
|
17
12
|
var _info = _interopRequireDefault(require("@atlaskit/icon/glyph/info"));
|
|
18
|
-
|
|
19
13
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
20
|
-
|
|
21
14
|
var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
|
|
22
|
-
|
|
23
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
24
|
-
|
|
25
16
|
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; }
|
|
26
|
-
|
|
27
17
|
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; }
|
|
28
|
-
|
|
29
18
|
var appearanceIconSchema = {
|
|
30
19
|
information: {
|
|
31
20
|
backgroundColor: "var(--ds-background-information, ".concat(_colors.B50, ")"),
|
|
@@ -54,7 +43,6 @@ var appearanceIconSchema = {
|
|
|
54
43
|
}
|
|
55
44
|
};
|
|
56
45
|
exports.appearanceIconSchema = appearanceIconSchema;
|
|
57
|
-
|
|
58
46
|
function getAppearanceIconStyles(appearance, icon) {
|
|
59
47
|
var appearanceIconStyles = appearanceIconSchema[appearance] || appearanceIconSchema.information;
|
|
60
48
|
var Icon = icon || appearanceIconStyles.Icon;
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = void 0;
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
10
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
15
|
-
|
|
16
11
|
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); }
|
|
17
|
-
|
|
18
12
|
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; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* __Section message action__
|
|
22
15
|
*
|
|
@@ -28,10 +21,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
28
21
|
*/
|
|
29
22
|
var SectionMessageAction = /*#__PURE__*/(0, _react.memo)(function SectionMessageAction(_ref) {
|
|
30
23
|
var children = _ref.children,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
onClick = _ref.onClick,
|
|
25
|
+
href = _ref.href,
|
|
26
|
+
testId = _ref.testId,
|
|
27
|
+
linkComponent = _ref.linkComponent;
|
|
35
28
|
// FIXME: This path doesn't make sense
|
|
36
29
|
// If the intent of the design for this component is to use an action, not providing `href` or `onClick`
|
|
37
30
|
// makes the use case invalid. This should be addressed.
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = void 0;
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
10
|
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
15
|
-
|
|
16
11
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
17
|
-
|
|
12
|
+
var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
|
|
13
|
+
var _stack = _interopRequireDefault(require("@atlaskit/primitives/stack"));
|
|
18
14
|
var _appearanceIcon = require("./internal/appearance-icon");
|
|
19
|
-
|
|
20
15
|
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); }
|
|
21
|
-
|
|
22
16
|
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; }
|
|
23
|
-
|
|
24
17
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
25
18
|
|
|
26
19
|
/**
|
|
@@ -34,22 +27,18 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
34
27
|
*/
|
|
35
28
|
var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage(_ref, ref) {
|
|
36
29
|
var children = _ref.children,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
_ref$appearance = _ref.appearance,
|
|
31
|
+
appearance = _ref$appearance === void 0 ? 'information' : _ref$appearance,
|
|
32
|
+
actions = _ref.actions,
|
|
33
|
+
title = _ref.title,
|
|
34
|
+
icon = _ref.icon,
|
|
35
|
+
testId = _ref.testId;
|
|
44
36
|
var _getAppearanceIconSty = (0, _appearanceIcon.getAppearanceIconStyles)(appearance, icon),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
primaryColor = _getAppearanceIconSty.primaryIconColor,
|
|
38
|
+
secondaryColor = _getAppearanceIconSty.backgroundColor,
|
|
39
|
+
Icon = _getAppearanceIconSty.Icon;
|
|
49
40
|
var actionElements = actions && actions.type === _react.default.Fragment ? actions.props.children : actions;
|
|
50
|
-
|
|
51
41
|
var actionsArray = _react.default.Children.toArray(actionElements);
|
|
52
|
-
|
|
53
42
|
return /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Box, {
|
|
54
43
|
as: "section",
|
|
55
44
|
backgroundColor: appearanceMap[appearance],
|
|
@@ -60,8 +49,8 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
60
49
|
UNSAFE_style: {
|
|
61
50
|
wordBreak: 'break-word'
|
|
62
51
|
}
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
64
|
-
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_inline.default, {
|
|
53
|
+
space: "200"
|
|
65
54
|
}, /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Box, {
|
|
66
55
|
UNSAFE_style: {
|
|
67
56
|
margin: '-2px 0'
|
|
@@ -70,17 +59,18 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
70
59
|
size: "medium",
|
|
71
60
|
primaryColor: primaryColor,
|
|
72
61
|
secondaryColor: secondaryColor
|
|
73
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
74
|
-
|
|
62
|
+
})), /*#__PURE__*/_react.default.createElement(_stack.default, {
|
|
63
|
+
space: "100",
|
|
75
64
|
testId: testId && "".concat(testId, "--content")
|
|
76
65
|
}, !!title && /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
77
66
|
as: "h2",
|
|
78
67
|
level: "h500"
|
|
79
|
-
}, title), /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Text, null, children), actionsArray.length > 0 && /*#__PURE__*/_react.default.createElement(
|
|
80
|
-
|
|
68
|
+
}, title), /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Text, null, children), actionsArray.length > 0 && /*#__PURE__*/_react.default.createElement(_inline.default, {
|
|
69
|
+
shouldWrap: true,
|
|
81
70
|
testId: testId && "".concat(testId, "--actions"),
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
separator: "\xB7",
|
|
72
|
+
space: "100",
|
|
73
|
+
rowSpace: "0"
|
|
84
74
|
}, actionsArray))));
|
|
85
75
|
});
|
|
86
76
|
var appearanceMap = {
|
package/dist/cjs/version.json
CHANGED
|
@@ -34,7 +34,8 @@ export const appearanceIconSchema = {
|
|
|
34
34
|
export function getAppearanceIconStyles(appearance, icon) {
|
|
35
35
|
const appearanceIconStyles = appearanceIconSchema[appearance] || appearanceIconSchema.information;
|
|
36
36
|
const Icon = icon || appearanceIconStyles.Icon;
|
|
37
|
-
return {
|
|
37
|
+
return {
|
|
38
|
+
...appearanceIconStyles,
|
|
38
39
|
Icon
|
|
39
40
|
};
|
|
40
41
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { UNSAFE_Box as Box,
|
|
3
|
+
import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
4
|
import Heading from '@atlaskit/heading';
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
5
7
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
6
|
-
|
|
7
8
|
/**
|
|
8
9
|
* __Section message__
|
|
9
10
|
*
|
|
@@ -39,7 +40,7 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
39
40
|
wordBreak: 'break-word'
|
|
40
41
|
}
|
|
41
42
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
42
|
-
|
|
43
|
+
space: "200"
|
|
43
44
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
44
45
|
UNSAFE_style: {
|
|
45
46
|
margin: '-2px 0'
|
|
@@ -49,16 +50,17 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
49
50
|
primaryColor: primaryColor,
|
|
50
51
|
secondaryColor: secondaryColor
|
|
51
52
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
52
|
-
|
|
53
|
+
space: "100",
|
|
53
54
|
testId: testId && `${testId}--content`
|
|
54
55
|
}, !!title && /*#__PURE__*/React.createElement(Heading, {
|
|
55
56
|
as: "h2",
|
|
56
57
|
level: "h500"
|
|
57
58
|
}, title), /*#__PURE__*/React.createElement(Text, null, children), actionsArray.length > 0 && /*#__PURE__*/React.createElement(Inline, {
|
|
58
|
-
|
|
59
|
+
shouldWrap: true,
|
|
59
60
|
testId: testId && `${testId}--actions`,
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
separator: "\xB7",
|
|
62
|
+
space: "100",
|
|
63
|
+
rowSpace: "0"
|
|
62
64
|
}, actionsArray))));
|
|
63
65
|
});
|
|
64
66
|
const appearanceMap = {
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
2
|
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
|
-
|
|
5
3
|
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
|
-
|
|
7
4
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
8
5
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
9
6
|
import InfoIcon from '@atlaskit/icon/glyph/info';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import Button from '@atlaskit/button/standard-button';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* __Section message action__
|
|
6
5
|
*
|
|
@@ -12,10 +11,10 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
12
11
|
*/
|
|
13
12
|
var SectionMessageAction = /*#__PURE__*/memo(function SectionMessageAction(_ref) {
|
|
14
13
|
var children = _ref.children,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
onClick = _ref.onClick,
|
|
15
|
+
href = _ref.href,
|
|
16
|
+
testId = _ref.testId,
|
|
17
|
+
linkComponent = _ref.linkComponent;
|
|
19
18
|
// FIXME: This path doesn't make sense
|
|
20
19
|
// If the intent of the design for this component is to use an action, not providing `href` or `onClick`
|
|
21
20
|
// makes the use case invalid. This should be addressed.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { UNSAFE_Box as Box,
|
|
3
|
+
import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
4
|
import Heading from '@atlaskit/heading';
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
5
7
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
6
|
-
|
|
7
8
|
/**
|
|
8
9
|
* __Section message__
|
|
9
10
|
*
|
|
@@ -15,18 +16,16 @@ import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
|
15
16
|
*/
|
|
16
17
|
var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref) {
|
|
17
18
|
var children = _ref.children,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
_ref$appearance = _ref.appearance,
|
|
20
|
+
appearance = _ref$appearance === void 0 ? 'information' : _ref$appearance,
|
|
21
|
+
actions = _ref.actions,
|
|
22
|
+
title = _ref.title,
|
|
23
|
+
icon = _ref.icon,
|
|
24
|
+
testId = _ref.testId;
|
|
25
25
|
var _getAppearanceIconSty = getAppearanceIconStyles(appearance, icon),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
primaryColor = _getAppearanceIconSty.primaryIconColor,
|
|
27
|
+
secondaryColor = _getAppearanceIconSty.backgroundColor,
|
|
28
|
+
Icon = _getAppearanceIconSty.Icon;
|
|
30
29
|
var actionElements = actions && actions.type === React.Fragment ? actions.props.children : actions;
|
|
31
30
|
var actionsArray = React.Children.toArray(actionElements);
|
|
32
31
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -40,7 +39,7 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
40
39
|
wordBreak: 'break-word'
|
|
41
40
|
}
|
|
42
41
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
43
|
-
|
|
42
|
+
space: "200"
|
|
44
43
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
44
|
UNSAFE_style: {
|
|
46
45
|
margin: '-2px 0'
|
|
@@ -50,16 +49,17 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
50
49
|
primaryColor: primaryColor,
|
|
51
50
|
secondaryColor: secondaryColor
|
|
52
51
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
53
|
-
|
|
52
|
+
space: "100",
|
|
54
53
|
testId: testId && "".concat(testId, "--content")
|
|
55
54
|
}, !!title && /*#__PURE__*/React.createElement(Heading, {
|
|
56
55
|
as: "h2",
|
|
57
56
|
level: "h500"
|
|
58
57
|
}, title), /*#__PURE__*/React.createElement(Text, null, children), actionsArray.length > 0 && /*#__PURE__*/React.createElement(Inline, {
|
|
59
|
-
|
|
58
|
+
shouldWrap: true,
|
|
60
59
|
testId: testId && "".concat(testId, "--actions"),
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
separator: "\xB7",
|
|
61
|
+
space: "100",
|
|
62
|
+
rowSpace: "0"
|
|
63
63
|
}, actionsArray))));
|
|
64
64
|
});
|
|
65
65
|
var appearanceMap = {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.11",
|
|
4
4
|
"description": "A section message is used to alert users to a particular section of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
17
|
"atlassian": {
|
|
18
|
-
"disableProductCI": true,
|
|
19
18
|
"team": "Design System Team",
|
|
20
19
|
"releaseModel": "scheduled",
|
|
21
20
|
"website": {
|
|
@@ -35,16 +34,17 @@
|
|
|
35
34
|
"@atlaskit/ds-explorations": "^2.0.0",
|
|
36
35
|
"@atlaskit/heading": "^1.1.0",
|
|
37
36
|
"@atlaskit/icon": "^21.11.0",
|
|
37
|
+
"@atlaskit/primitives": "^0.3.0",
|
|
38
38
|
"@atlaskit/theme": "^12.2.0",
|
|
39
|
-
"@atlaskit/tokens": "^
|
|
39
|
+
"@atlaskit/tokens": "^1.2.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "^16.8.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@atlaskit/analytics-next": "^
|
|
47
|
-
"@atlaskit/code": "^14.
|
|
46
|
+
"@atlaskit/analytics-next": "^9.0.0",
|
|
47
|
+
"@atlaskit/code": "^14.5.0",
|
|
48
48
|
"@atlaskit/docs": "*",
|
|
49
49
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
50
50
|
"@atlaskit/range": "^7.0.0",
|
|
@@ -76,8 +76,10 @@
|
|
|
76
76
|
"styling": [
|
|
77
77
|
"emotion"
|
|
78
78
|
],
|
|
79
|
-
"design-tokens":
|
|
80
|
-
|
|
79
|
+
"design-tokens": [
|
|
80
|
+
"color",
|
|
81
|
+
"spacing"
|
|
82
|
+
],
|
|
81
83
|
"deprecation": "no-deprecated-imports"
|
|
82
84
|
}
|
|
83
85
|
},
|
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -61,3 +62,15 @@ export interface SectionMessageProps {
|
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
<!--SECTION END: Main Entry Types-->
|
|
65
|
+
|
|
66
|
+
### Peer Dependencies
|
|
67
|
+
|
|
68
|
+
<!--SECTION START: Peer Dependencies-->
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"react": "^16.8.0"
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
<!--SECTION END: Peer Dependencies-->
|