@atlaskit/button 16.17.11 → 16.17.12

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
+ ## 16.17.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#59085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59085) [`67c05dbef826`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67c05dbef826) - Exclude medium from UNSAFE_iconBefore_size and UNSAFE_iconAfter_size types.
8
+
3
9
  ## 16.17.11
4
10
 
5
11
  ### Patch Changes
@@ -117,7 +117,7 @@ var useButtonBase = function useButtonBase(_ref) {
117
117
  action: 'clicked',
118
118
  componentName: 'button',
119
119
  packageName: "@atlaskit/button",
120
- packageVersion: "16.17.11",
120
+ packageVersion: "16.17.12",
121
121
  analyticsData: analyticsContext,
122
122
  actionSubject: buttonType
123
123
  });
@@ -118,7 +118,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
118
118
  action: 'clicked',
119
119
  componentName: 'button',
120
120
  packageName: "@atlaskit/button",
121
- packageVersion: "16.17.11",
121
+ packageVersion: "16.17.12",
122
122
  analyticsData: analyticsContext
123
123
  });
124
124
 
@@ -98,7 +98,7 @@ const useButtonBase = ({
98
98
  action: 'clicked',
99
99
  componentName: 'button',
100
100
  packageName: "@atlaskit/button",
101
- packageVersion: "16.17.11",
101
+ packageVersion: "16.17.12",
102
102
  analyticsData: analyticsContext,
103
103
  actionSubject: buttonType
104
104
  });
@@ -103,7 +103,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
103
103
  action: 'clicked',
104
104
  componentName: 'button',
105
105
  packageName: "@atlaskit/button",
106
- packageVersion: "16.17.11",
106
+ packageVersion: "16.17.12",
107
107
  analyticsData: analyticsContext
108
108
  });
109
109
 
@@ -109,7 +109,7 @@ var useButtonBase = function useButtonBase(_ref) {
109
109
  action: 'clicked',
110
110
  componentName: 'button',
111
111
  packageName: "@atlaskit/button",
112
- packageVersion: "16.17.11",
112
+ packageVersion: "16.17.12",
113
113
  analyticsData: analyticsContext,
114
114
  actionSubject: buttonType
115
115
  });
@@ -109,7 +109,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
109
109
  action: 'clicked',
110
110
  componentName: 'button',
111
111
  packageName: "@atlaskit/button",
112
- packageVersion: "16.17.11",
112
+ packageVersion: "16.17.12",
113
113
  analyticsData: analyticsContext
114
114
  });
115
115
 
@@ -1,26 +1,23 @@
1
- import { type Size } from '@atlaskit/icon/types';
2
- import { type IconProp } from '../types';
1
+ import { type IconProp, type IconSize } from '../types';
3
2
  export type CommonDefaultButtonProps = {
4
3
  /**
5
4
  * Places an icon within the button, after the button's text
6
5
  */
7
6
  iconAfter?: IconProp;
8
7
  /**
9
- * Set the size of the icon after.
10
- *
8
+ * Set the size of the icon after. `medium` is default, so it does not need to be specified.
11
9
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
12
10
  */
13
- UNSAFE_iconAfter_size?: Size;
11
+ UNSAFE_iconAfter_size?: IconSize;
14
12
  /**
15
13
  * Places an icon within the button, before the button's text
16
14
  */
17
15
  iconBefore?: IconProp;
18
16
  /**
19
- * Set the size of the icon before.
20
- *
17
+ * Set the size of the icon before. `medium` is default, so it does not need to be specified.
21
18
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
19
  */
23
- UNSAFE_iconBefore_size?: Size;
20
+ UNSAFE_iconBefore_size?: IconSize;
24
21
  /**
25
22
  * Option to fit button width to its parent width
26
23
  */
@@ -1,4 +1,4 @@
1
- import { type IconButtonAppearance, type IconProp } from '../types';
1
+ import { type IconButtonAppearance, type IconProp, type IconSize } from '../types';
2
2
  export type CommonIconButtonProps = {
3
3
  /**
4
4
  * The button style variation
@@ -20,5 +20,5 @@ export type CommonIconButtonProps = {
20
20
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
21
21
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
22
  */
23
- UNSAFE_size?: 'small' | 'large' | 'xlarge';
23
+ UNSAFE_size?: IconSize;
24
24
  };
@@ -7,6 +7,7 @@ export type IconButtonAppearance = 'default' | 'primary' | 'subtle';
7
7
  export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonAppearance;
8
8
  export type Spacing = 'compact' | 'default' | 'none';
9
9
  export type IconProp = React.ComponentType<IconProps>;
10
+ export type IconSize = 'small' | 'large' | 'xlarge';
10
11
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
11
12
  export type CommonButtonProps<TagName extends HTMLElement> = {
12
13
  /**
@@ -1,26 +1,23 @@
1
- import { type Size } from '@atlaskit/icon/types';
2
- import { type IconProp } from '../types';
1
+ import { type IconProp, type IconSize } from '../types';
3
2
  export type CommonDefaultButtonProps = {
4
3
  /**
5
4
  * Places an icon within the button, after the button's text
6
5
  */
7
6
  iconAfter?: IconProp;
8
7
  /**
9
- * Set the size of the icon after.
10
- *
8
+ * Set the size of the icon after. `medium` is default, so it does not need to be specified.
11
9
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
12
10
  */
13
- UNSAFE_iconAfter_size?: Size;
11
+ UNSAFE_iconAfter_size?: IconSize;
14
12
  /**
15
13
  * Places an icon within the button, before the button's text
16
14
  */
17
15
  iconBefore?: IconProp;
18
16
  /**
19
- * Set the size of the icon before.
20
- *
17
+ * Set the size of the icon before. `medium` is default, so it does not need to be specified.
21
18
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
19
  */
23
- UNSAFE_iconBefore_size?: Size;
20
+ UNSAFE_iconBefore_size?: IconSize;
24
21
  /**
25
22
  * Option to fit button width to its parent width
26
23
  */
@@ -1,4 +1,4 @@
1
- import { type IconButtonAppearance, type IconProp } from '../types';
1
+ import { type IconButtonAppearance, type IconProp, type IconSize } from '../types';
2
2
  export type CommonIconButtonProps = {
3
3
  /**
4
4
  * The button style variation
@@ -20,5 +20,5 @@ export type CommonIconButtonProps = {
20
20
  * Set the size of the icon. `medium` is default, so it does not need to be specified.
21
21
  * This is UNSAFE as it will be removed in future in favor of a 100% bounded API
22
22
  */
23
- UNSAFE_size?: 'small' | 'large' | 'xlarge';
23
+ UNSAFE_size?: IconSize;
24
24
  };
@@ -7,6 +7,7 @@ export type IconButtonAppearance = 'default' | 'primary' | 'subtle';
7
7
  export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonAppearance;
8
8
  export type Spacing = 'compact' | 'default' | 'none';
9
9
  export type IconProp = React.ComponentType<IconProps>;
10
+ export type IconSize = 'small' | 'large' | 'xlarge';
10
11
  type Combine<First, Second> = Omit<First, keyof Second> & Second;
11
12
  export type CommonButtonProps<TagName extends HTMLElement> = {
12
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.17.11",
3
+ "version": "16.17.12",
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/"