@atlaskit/section-message 6.1.15 → 6.2.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,15 @@
1
1
  # @atlaskit/section-message
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`24ff3516c8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24ff3516c8d) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 6.1.15
4
14
 
5
15
  ### Patch Changes
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
12
- var _core = require("@emotion/core");
12
+ var _react2 = require("@emotion/react");
13
13
 
14
14
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
15
15
 
@@ -19,7 +19,7 @@ var _constants = require("@atlaskit/theme/constants");
19
19
 
20
20
  /** @jsx jsx */
21
21
  var actionsSeparatorWidth = (0, _constants.gridSize)() * 2;
22
- var actionStyles = (0, _core.css)({
22
+ var actionStyles = (0, _react2.css)({
23
23
  display: 'flex',
24
24
  margin: 0,
25
25
  alignItems: 'center',
@@ -49,10 +49,10 @@ var SectionMessageAction = /*#__PURE__*/(0, _react.memo)(function SectionMessage
49
49
  href = _ref.href,
50
50
  testId = _ref.testId,
51
51
  linkComponent = _ref.linkComponent;
52
- return (0, _core.jsx)("li", {
52
+ return (0, _react2.jsx)("li", {
53
53
  css: actionStyles,
54
54
  "data-testid": testId
55
- }, onClick || href ? (0, _core.jsx)(_standardButton.default, {
55
+ }, onClick || href ? (0, _react2.jsx)(_standardButton.default, {
56
56
  appearance: "link",
57
57
  spacing: "none",
58
58
  onClick: onClick,
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
 
@@ -39,16 +39,16 @@ var titleColor = {
39
39
  light: "var(--ds-text, ".concat(_colors.N800, ")"),
40
40
  dark: "var(--ds-text, ".concat(_colors.DN600, ")")
41
41
  };
42
- var containerStyles = (0, _core.css)({
42
+ var containerStyles = (0, _react2.css)({
43
43
  display: 'flex',
44
44
  padding: "".concat(containerPadding, "px"),
45
45
  borderRadius: "".concat((0, _constants.borderRadius)(), "px")
46
46
  });
47
- var contentContainerStyles = (0, _core.css)({
47
+ var contentContainerStyles = (0, _react2.css)({
48
48
  flexGrow: 1,
49
49
  wordBreak: 'break-word'
50
50
  });
51
- var titleStyles = (0, _core.css)({
51
+ var titleStyles = (0, _react2.css)({
52
52
  margin: "0 0 ".concat(titleMarginBottom, "px"),
53
53
  fontSize: "".concat(_typography.headingSizes.h500.size / (0, _constants.fontSize)(), "em"),
54
54
  fontStyle: 'inherit',
@@ -56,7 +56,7 @@ var titleStyles = (0, _core.css)({
56
56
  letterSpacing: '-0.006em',
57
57
  lineHeight: "".concat(_typography.headingSizes.h500.lineHeight / _typography.headingSizes.h500.size)
58
58
  });
59
- var actionsStyles = (0, _core.css)({
59
+ var actionsStyles = (0, _react2.css)({
60
60
  display: 'flex',
61
61
  marginTop: "".concat(actionMarginTop, "px"),
62
62
  paddingLeft: 0,
@@ -67,7 +67,7 @@ var actionsStyles = (0, _core.css)({
67
67
  // Since the icons will have a consistent size, we can treat them as pre-calculated
68
68
  // space.
69
69
 
70
- var iconWrapperStyles = (0, _core.css)({
70
+ var iconWrapperStyles = (0, _react2.css)({
71
71
  display: 'flex',
72
72
  margin: '-2px 0',
73
73
  flex: "0 0 ".concat(iconWrapperWidth, "px")
@@ -100,23 +100,23 @@ var SectionMessageWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Sectio
100
100
 
101
101
  var actionsArray = _react.default.Children.toArray(actions);
102
102
 
103
- return (0, _core.jsx)("section", {
103
+ return (0, _react2.jsx)("section", {
104
104
  css: containerStyles,
105
105
  style: containerStyleWithBackground,
106
106
  "data-testid": testId,
107
107
  ref: ref
108
- }, (0, _core.jsx)("div", {
108
+ }, (0, _react2.jsx)("div", {
109
109
  css: iconWrapperStyles
110
- }, (0, _core.jsx)(Icon, {
110
+ }, (0, _react2.jsx)(Icon, {
111
111
  primaryColor: primaryIconColor,
112
112
  secondaryColor: backgroundColor
113
- })), (0, _core.jsx)("div", {
113
+ })), (0, _react2.jsx)("div", {
114
114
  css: contentContainerStyles,
115
115
  "data-testid": testId && "".concat(testId, "--content")
116
- }, title ? (0, _core.jsx)("h1", {
116
+ }, title ? (0, _react2.jsx)("h1", {
117
117
  css: titleStyles,
118
118
  style: memoizedTitleColor
119
- }, title) : null, (0, _core.jsx)("div", null, children), actionsArray.length > 0 ? (0, _core.jsx)("ul", {
119
+ }, title) : null, (0, _react2.jsx)("div", null, children), actionsArray.length > 0 ? (0, _react2.jsx)("ul", {
120
120
  css: actionsStyles,
121
121
  "data-testid": testId && "".concat(testId, "--actions")
122
122
  }, actionsArray) : null));
@@ -132,9 +132,9 @@ var SectionMessageWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Sectio
132
132
  */
133
133
 
134
134
  var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage(props, ref) {
135
- return (0, _core.jsx)(_components.default.Consumer, null, function (_ref2) {
135
+ return (0, _react2.jsx)(_components.default.Consumer, null, function (_ref2) {
136
136
  var mode = _ref2.mode;
137
- return (0, _core.jsx)(SectionMessageWithMode, (0, _extends2.default)({}, props, {
137
+ return (0, _react2.jsx)(SectionMessageWithMode, (0, _extends2.default)({}, props, {
138
138
  mode: mode,
139
139
  ref: ref
140
140
  }));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.15",
3
+ "version": "6.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { memo } from 'react';
3
- import { css, jsx } from '@emotion/core';
3
+ import { css, jsx } from '@emotion/react';
4
4
  import Button from '@atlaskit/button/standard-button';
5
5
  import { N500 } from '@atlaskit/theme/colors';
6
6
  import { gridSize } from '@atlaskit/theme/constants';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import React, { forwardRef, useMemo } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { DN600, N800 } from '@atlaskit/theme/colors';
7
7
  import GlobalTheme from '@atlaskit/theme/components';
8
8
  import { borderRadius, fontSize, gridSize } from '@atlaskit/theme/constants';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.15",
3
+ "version": "6.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { memo } from 'react';
3
- import { css, jsx } from '@emotion/core';
3
+ import { css, jsx } from '@emotion/react';
4
4
  import Button from '@atlaskit/button/standard-button';
5
5
  import { N500 } from '@atlaskit/theme/colors';
6
6
  import { gridSize } from '@atlaskit/theme/constants';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import React, { forwardRef, useMemo } from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import { DN600, N800 } from '@atlaskit/theme/colors';
7
7
  import GlobalTheme from '@atlaskit/theme/components';
8
8
  import { borderRadius, fontSize, gridSize } from '@atlaskit/theme/constants';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.15",
3
+ "version": "6.2.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.15",
3
+ "version": "6.2.0",
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/"
@@ -32,10 +32,10 @@
32
32
  "@atlaskit/button": "^16.3.0",
33
33
  "@atlaskit/codemod-utils": "^4.1.0",
34
34
  "@atlaskit/icon": "^21.10.0",
35
- "@atlaskit/theme": "^12.1.0",
35
+ "@atlaskit/theme": "^12.2.0",
36
36
  "@atlaskit/tokens": "^0.10.0",
37
37
  "@babel/runtime": "^7.0.0",
38
- "@emotion/core": "^10.0.9"
38
+ "@emotion/react": "^11.7.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "^16.8.0"