@atlaskit/button 16.17.10 → 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 +12 -0
- package/dist/cjs/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/cjs/old-button/shared/button-base.js +1 -1
- package/dist/es2019/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/es2019/old-button/shared/button-base.js +1 -1
- package/dist/esm/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/esm/old-button/shared/button-base.js +1 -1
- package/dist/types/new-button/variants/default/types.d.ts +5 -8
- package/dist/types/new-button/variants/icon/types.d.ts +2 -2
- package/dist/types/new-button/variants/types.d.ts +1 -0
- package/dist/types-ts4.5/new-button/variants/default/types.d.ts +5 -8
- package/dist/types-ts4.5/new-button/variants/icon/types.d.ts +2 -2
- package/dist/types-ts4.5/new-button/variants/types.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 16.17.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
14
|
+
|
|
3
15
|
## 16.17.10
|
|
4
16
|
|
|
5
17
|
### 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.
|
|
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.
|
|
121
|
+
packageVersion: "16.17.12",
|
|
122
122
|
analyticsData: analyticsContext
|
|
123
123
|
});
|
|
124
124
|
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
112
|
+
packageVersion: "16.17.12",
|
|
113
113
|
analyticsData: analyticsContext
|
|
114
114
|
});
|
|
115
115
|
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { type
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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