@atlaskit/section-message 8.11.3 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 8.11.3
4
11
 
5
12
  ### 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 size = _ref.size,
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
  };
@@ -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
- size,
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;
@@ -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 size = _ref.size,
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
  };
@@ -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> | (({ size, primaryColor, secondaryColor, }: {
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> | (({ size, primaryColor, secondaryColor, }: {
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.11.3",
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,7 +35,7 @@
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.3.0",
38
+ "@atlaskit/icon": "^29.4.0",
39
39
  "@atlaskit/link": "^3.3.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/primitives": "^17.0.0",
@@ -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.2.0",
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",