@atlaskit/section-message 8.11.2 → 8.12.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 +15 -0
- package/dist/cjs/internal/appearance-icon.js +1 -6
- package/dist/cjs/section-message.js +1 -1
- package/dist/es2019/internal/appearance-icon.js +1 -6
- package/dist/es2019/section-message.js +1 -1
- package/dist/esm/internal/appearance-icon.js +1 -6
- package/dist/esm/section-message.js +1 -1
- package/dist/types/internal/appearance-icon.d.ts +1 -3
- package/dist/types-ts4.5/internal/appearance-icon.d.ts +1 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 8.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
8
|
+
Removed usages of LEGACY icon props
|
|
9
|
+
|
|
10
|
+
## 8.11.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`036c3ee917e3c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/036c3ee917e3c) -
|
|
15
|
+
Icon migration entry point update
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 8.11.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -45,15 +45,10 @@ var appearanceIconSchema = {
|
|
|
45
45
|
function getAppearanceIconStyles(appearance, icon) {
|
|
46
46
|
var appearanceIconStyles = appearanceIconSchema[appearance] || appearanceIconSchema.information;
|
|
47
47
|
var AppearanceIcon = function AppearanceIcon(_ref) {
|
|
48
|
-
var
|
|
49
|
-
primaryColor = _ref.primaryColor,
|
|
50
|
-
secondaryColor = _ref.secondaryColor;
|
|
48
|
+
var primaryColor = _ref.primaryColor;
|
|
51
49
|
return /*#__PURE__*/_react.default.createElement(appearanceIconStyles.Icon, {
|
|
52
|
-
LEGACY_size: size,
|
|
53
50
|
color: primaryColor,
|
|
54
51
|
spacing: "spacious",
|
|
55
|
-
LEGACY_primaryColor: primaryColor,
|
|
56
|
-
LEGACY_secondaryColor: secondaryColor,
|
|
57
52
|
label: appearance
|
|
58
53
|
});
|
|
59
54
|
};
|
|
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _new = require("@atlaskit/button/new");
|
|
16
16
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
17
|
-
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
17
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
20
|
var _appearanceIcon = require("./internal/appearance-icon");
|
|
@@ -35,15 +35,10 @@ const appearanceIconSchema = {
|
|
|
35
35
|
export function getAppearanceIconStyles(appearance, icon) {
|
|
36
36
|
const appearanceIconStyles = appearanceIconSchema[appearance] || appearanceIconSchema.information;
|
|
37
37
|
const AppearanceIcon = ({
|
|
38
|
-
|
|
39
|
-
primaryColor,
|
|
40
|
-
secondaryColor
|
|
38
|
+
primaryColor
|
|
41
39
|
}) => /*#__PURE__*/React.createElement(appearanceIconStyles.Icon, {
|
|
42
|
-
LEGACY_size: size,
|
|
43
40
|
color: primaryColor,
|
|
44
41
|
spacing: "spacious",
|
|
45
|
-
LEGACY_primaryColor: primaryColor,
|
|
46
|
-
LEGACY_secondaryColor: secondaryColor,
|
|
47
42
|
label: appearance
|
|
48
43
|
});
|
|
49
44
|
const Icon = icon || AppearanceIcon;
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
|
|
6
6
|
import { IconButton } from '@atlaskit/button/new';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
8
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
@@ -38,15 +38,10 @@ var appearanceIconSchema = {
|
|
|
38
38
|
export function getAppearanceIconStyles(appearance, icon) {
|
|
39
39
|
var appearanceIconStyles = appearanceIconSchema[appearance] || appearanceIconSchema.information;
|
|
40
40
|
var AppearanceIcon = function AppearanceIcon(_ref) {
|
|
41
|
-
var
|
|
42
|
-
primaryColor = _ref.primaryColor,
|
|
43
|
-
secondaryColor = _ref.secondaryColor;
|
|
41
|
+
var primaryColor = _ref.primaryColor;
|
|
44
42
|
return /*#__PURE__*/React.createElement(appearanceIconStyles.Icon, {
|
|
45
|
-
LEGACY_size: size,
|
|
46
43
|
color: primaryColor,
|
|
47
44
|
spacing: "spacious",
|
|
48
|
-
LEGACY_primaryColor: primaryColor,
|
|
49
|
-
LEGACY_secondaryColor: secondaryColor,
|
|
50
45
|
label: appearance
|
|
51
46
|
});
|
|
52
47
|
};
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
|
|
7
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import Heading from '@atlaskit/heading';
|
|
9
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
9
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React, { type ComponentType } from 'react';
|
|
2
2
|
import type { Appearance, SectionMessageProps } from '../types';
|
|
3
3
|
export declare function getAppearanceIconStyles(appearance: Appearance, icon: SectionMessageProps['icon']): {
|
|
4
|
-
Icon: React.ElementType<any, keyof React.JSX.IntrinsicElements> | (({
|
|
5
|
-
size: string;
|
|
4
|
+
Icon: React.ElementType<any, keyof React.JSX.IntrinsicElements> | (({ primaryColor, }: {
|
|
6
5
|
primaryColor: string;
|
|
7
|
-
secondaryColor: string;
|
|
8
6
|
}) => React.JSX.Element);
|
|
9
7
|
backgroundColor: string;
|
|
10
8
|
primaryIconColor: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React, { type ComponentType } from 'react';
|
|
2
2
|
import type { Appearance, SectionMessageProps } from '../types';
|
|
3
3
|
export declare function getAppearanceIconStyles(appearance: Appearance, icon: SectionMessageProps['icon']): {
|
|
4
|
-
Icon: React.ElementType<any, keyof React.JSX.IntrinsicElements> | (({
|
|
5
|
-
size: string;
|
|
4
|
+
Icon: React.ElementType<any, keyof React.JSX.IntrinsicElements> | (({ primaryColor, }: {
|
|
6
5
|
primaryColor: string;
|
|
7
|
-
secondaryColor: string;
|
|
8
6
|
}) => React.JSX.Element);
|
|
9
7
|
backgroundColor: string;
|
|
10
8
|
primaryIconColor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.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/"
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@atlaskit/button": "^23.9.0",
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/heading": "^5.2.0",
|
|
38
|
-
"@atlaskit/icon": "^29.
|
|
39
|
-
"@atlaskit/link": "^3.
|
|
38
|
+
"@atlaskit/icon": "^29.4.0",
|
|
39
|
+
"@atlaskit/link": "^3.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/primitives": "^17.0.0",
|
|
42
42
|
"@atlaskit/theme": "^21.0.0",
|
|
43
|
-
"@atlaskit/tokens": "^9.
|
|
43
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/code": "^17.4.0",
|
|
55
55
|
"@atlaskit/docs": "^11.2.0",
|
|
56
56
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
57
|
-
"@atlaskit/form": "^15.
|
|
57
|
+
"@atlaskit/form": "^15.3.0",
|
|
58
58
|
"@atlaskit/range": "^9.3.0",
|
|
59
59
|
"@atlassian/ssr-tests": "workspace:^",
|
|
60
60
|
"@testing-library/react": "^13.4.0",
|