@atlaskit/button 17.11.1 → 17.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,11 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 17.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#89657](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89657) [`aa76565f1f5b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aa76565f1f5b) - New buttons now accept render props for icon properties. This can be useful when setting props on icons directly.
8
+
3
9
  ## 17.11.0
4
10
 
5
11
  ### Minor Changes
@@ -117,7 +117,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "17.11.1",
120
+ packageVersion: "17.12.0",
121
121
  analyticsData: analyticsContext
122
122
  });
123
123
 
@@ -102,7 +102,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
102
102
  action: 'clicked',
103
103
  componentName: 'button',
104
104
  packageName: "@atlaskit/button",
105
- packageVersion: "17.11.1",
105
+ packageVersion: "17.12.0",
106
106
  analyticsData: analyticsContext
107
107
  });
108
108
 
@@ -108,7 +108,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
108
108
  action: 'clicked',
109
109
  componentName: 'button',
110
110
  packageName: "@atlaskit/button",
111
- packageVersion: "17.11.1",
111
+ packageVersion: "17.12.0",
112
112
  analyticsData: analyticsContext
113
113
  });
114
114
 
@@ -10,6 +10,8 @@ export type CommonDefaultButtonProps = {
10
10
  */
11
11
  iconAfter?: IconProp;
12
12
  /**
13
+ * @deprecated Prefer `iconAfter` render prop for icon customizations.
14
+ *
13
15
  * Set the size of the icon after. `medium` is default, so it does not need to be specified.
14
16
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
15
17
  */
@@ -19,6 +21,8 @@ export type CommonDefaultButtonProps = {
19
21
  */
20
22
  iconBefore?: IconProp;
21
23
  /**
24
+ * @deprecated Prefer `iconBefore` render prop for icon customizations.
25
+ *
22
26
  * Set the size of the icon before. `medium` is default, so it does not need to be specified.
23
27
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
24
28
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TooltipProps } from '@atlaskit/tooltip';
2
+ import { type TooltipProps } from '@atlaskit/tooltip';
3
3
  import { type IconButtonAppearance, type IconButtonSpacing, type IconProp, type IconSize } from '../types';
4
4
  export type CommonIconButtonProps = {
5
5
  'aria-label'?: never;
@@ -36,6 +36,8 @@ export type CommonIconButtonProps = {
36
36
  */
37
37
  tooltip?: Partial<Omit<TooltipProps, 'children'>>;
38
38
  /**
39
+ * @deprecated Prefer `icon` render prop for icon customizations.
40
+ *
39
41
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
40
42
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API.
41
43
  */
@@ -10,6 +10,8 @@ export type CommonDefaultButtonProps = {
10
10
  */
11
11
  iconAfter?: IconProp;
12
12
  /**
13
+ * @deprecated Prefer `iconAfter` render prop for icon customizations.
14
+ *
13
15
  * Set the size of the icon after. `medium` is default, so it does not need to be specified.
14
16
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
15
17
  */
@@ -19,6 +21,8 @@ export type CommonDefaultButtonProps = {
19
21
  */
20
22
  iconBefore?: IconProp;
21
23
  /**
24
+ * @deprecated Prefer `iconBefore` render prop for icon customizations.
25
+ *
22
26
  * Set the size of the icon before. `medium` is default, so it does not need to be specified.
23
27
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
24
28
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TooltipProps } from '@atlaskit/tooltip';
2
+ import { type TooltipProps } from '@atlaskit/tooltip';
3
3
  import { type IconButtonAppearance, type IconButtonSpacing, type IconProp, type IconSize } from '../types';
4
4
  export type CommonIconButtonProps = {
5
5
  'aria-label'?: never;
@@ -36,6 +36,8 @@ export type CommonIconButtonProps = {
36
36
  */
37
37
  tooltip?: Partial<Omit<TooltipProps, 'children'>>;
38
38
  /**
39
+ * @deprecated Prefer `icon` render prop for icon customizations.
40
+ *
39
41
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
40
42
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API.
41
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "17.11.1",
3
+ "version": "17.12.0",
4
4
  "description": "A button triggers an event or action. They let users know what will happen next.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -91,7 +91,7 @@
91
91
  "@atlaskit/spinner": "^16.0.0",
92
92
  "@atlaskit/theme": "^12.7.0",
93
93
  "@atlaskit/tokens": "^1.43.0",
94
- "@atlaskit/tooltip": "^18.1.3",
94
+ "@atlaskit/tooltip": "^18.2.0",
95
95
  "@atlaskit/visually-hidden": "^1.2.4",
96
96
  "@babel/runtime": "^7.0.0",
97
97
  "@emotion/react": "^11.7.1"