@atlaskit/button 17.14.3 → 17.16.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 +17 -0
- package/dist/cjs/old-button/shared/button-base.js +1 -1
- package/dist/es2019/old-button/shared/button-base.js +1 -1
- package/dist/esm/old-button/shared/button-base.js +1 -1
- package/dist/types/new-button/variants/icon/button.d.ts +2 -2
- package/dist/types/new-button/variants/icon/types.d.ts +0 -4
- package/dist/types/utils/variants.d.ts +2 -2
- package/dist/types-ts4.5/new-button/variants/icon/button.d.ts +2 -2
- package/dist/types-ts4.5/new-button/variants/icon/types.d.ts +0 -4
- package/dist/types-ts4.5/utils/variants.d.ts +2 -2
- package/package.json +13 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 17.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#101387](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101387)
|
|
8
|
+
[`bd83d4aea949`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bd83d4aea949) -
|
|
9
|
+
Icon and link icon button types no longer support the `isLoading` prop. Internally `isLoading`
|
|
10
|
+
was already being ignored. This change only affects types.
|
|
11
|
+
|
|
12
|
+
## 17.15.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#99861](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99861)
|
|
17
|
+
[`452b917ff365`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/452b917ff365) -
|
|
18
|
+
Add support for React 18.
|
|
19
|
+
|
|
3
20
|
## 17.14.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -129,7 +129,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
129
129
|
action: 'clicked',
|
|
130
130
|
componentName: 'button',
|
|
131
131
|
packageName: "@atlaskit/button",
|
|
132
|
-
packageVersion: "17.
|
|
132
|
+
packageVersion: "17.16.0",
|
|
133
133
|
analyticsData: analyticsContext
|
|
134
134
|
});
|
|
135
135
|
|
|
@@ -114,7 +114,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
114
114
|
action: 'clicked',
|
|
115
115
|
componentName: 'button',
|
|
116
116
|
packageName: "@atlaskit/button",
|
|
117
|
-
packageVersion: "17.
|
|
117
|
+
packageVersion: "17.16.0",
|
|
118
118
|
analyticsData: analyticsContext
|
|
119
119
|
});
|
|
120
120
|
|
|
@@ -120,7 +120,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
120
120
|
action: 'clicked',
|
|
121
121
|
componentName: 'button',
|
|
122
122
|
packageName: "@atlaskit/button",
|
|
123
|
-
packageVersion: "17.
|
|
123
|
+
packageVersion: "17.16.0",
|
|
124
124
|
analyticsData: analyticsContext
|
|
125
125
|
});
|
|
126
126
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CommonButtonVariantProps } from '../types';
|
|
3
3
|
import { type CommonIconButtonProps } from './types';
|
|
4
|
-
export type IconButtonProps =
|
|
4
|
+
export type IconButtonProps = CommonIconButtonProps & CommonButtonVariantProps;
|
|
5
5
|
/**
|
|
6
6
|
* __Icon Button__
|
|
7
7
|
*
|
|
@@ -11,5 +11,5 @@ export type IconButtonProps = CommonButtonVariantProps & CommonIconButtonProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("../types").AdditionalButtonVariantProps & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLButtonElement> &
|
|
14
|
+
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>;
|
|
15
15
|
export default IconButton;
|
|
@@ -11,10 +11,6 @@ export type CommonIconButtonProps = {
|
|
|
11
11
|
* Places an icon within the button.
|
|
12
12
|
*/
|
|
13
13
|
icon: IconProp;
|
|
14
|
-
/**
|
|
15
|
-
* Conditionally show a spinner over the top of a button.
|
|
16
|
-
*/
|
|
17
|
-
isLoading?: boolean;
|
|
18
14
|
/**
|
|
19
15
|
* Prevent a tooltip from showing. Use sparingly.
|
|
20
16
|
*/
|
|
@@ -41,12 +41,12 @@ declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonP
|
|
|
41
41
|
href?: string | undefined;
|
|
42
42
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
43
43
|
declare const IconButtonRender: React.ForwardRefExoticComponent<Omit<IconButtonProps, "label" | "icon"> & {
|
|
44
|
-
icon?:
|
|
44
|
+
icon?: import("../new-button/variants/types").IconProp | undefined;
|
|
45
45
|
label?: IconButtonProps['label'];
|
|
46
46
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
47
47
|
declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps, "label" | "href" | "icon"> & {
|
|
48
48
|
href?: string | undefined;
|
|
49
|
-
icon?:
|
|
49
|
+
icon?: import("../new-button/variants/types").IconProp | undefined;
|
|
50
50
|
label?: LinkIconButtonProps['label'];
|
|
51
51
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
52
52
|
declare const variants: Variant[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CommonButtonVariantProps } from '../types';
|
|
3
3
|
import { type CommonIconButtonProps } from './types';
|
|
4
|
-
export type IconButtonProps =
|
|
4
|
+
export type IconButtonProps = CommonIconButtonProps & CommonButtonVariantProps;
|
|
5
5
|
/**
|
|
6
6
|
* __Icon Button__
|
|
7
7
|
*
|
|
@@ -11,5 +11,5 @@ export type IconButtonProps = CommonButtonVariantProps & CommonIconButtonProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("../types").AdditionalButtonVariantProps & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLButtonElement> &
|
|
14
|
+
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<import("../types").AdditionalHTMLElementPropsExtender<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">>, keyof import("../types").CommonButtonProps<TagName>> & import("../types").CommonButtonProps<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>;
|
|
15
15
|
export default IconButton;
|
|
@@ -11,10 +11,6 @@ export type CommonIconButtonProps = {
|
|
|
11
11
|
* Places an icon within the button.
|
|
12
12
|
*/
|
|
13
13
|
icon: IconProp;
|
|
14
|
-
/**
|
|
15
|
-
* Conditionally show a spinner over the top of a button.
|
|
16
|
-
*/
|
|
17
|
-
isLoading?: boolean;
|
|
18
14
|
/**
|
|
19
15
|
* Prevent a tooltip from showing. Use sparingly.
|
|
20
16
|
*/
|
|
@@ -41,12 +41,12 @@ declare const LinkButtonRender: React.ForwardRefExoticComponent<Omit<LinkButtonP
|
|
|
41
41
|
href?: string | undefined;
|
|
42
42
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
43
43
|
declare const IconButtonRender: React.ForwardRefExoticComponent<Omit<IconButtonProps, "label" | "icon"> & {
|
|
44
|
-
icon?:
|
|
44
|
+
icon?: import("../new-button/variants/types").IconProp | undefined;
|
|
45
45
|
label?: IconButtonProps['label'];
|
|
46
46
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
47
47
|
declare const LinkIconButtonRender: React.ForwardRefExoticComponent<Omit<LinkIconButtonProps, "label" | "href" | "icon"> & {
|
|
48
48
|
href?: string | undefined;
|
|
49
|
-
icon?:
|
|
49
|
+
icon?: import("../new-button/variants/types").IconProp | undefined;
|
|
50
50
|
label?: LinkIconButtonProps['label'];
|
|
51
51
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
52
52
|
declare const variants: Variant[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.16.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/"
|
|
@@ -64,13 +64,22 @@
|
|
|
64
64
|
},
|
|
65
65
|
"sortKey": 4
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Link icon button",
|
|
69
|
+
"id": "link-icon-button",
|
|
70
|
+
"status": {
|
|
71
|
+
"type": "beta"
|
|
72
|
+
},
|
|
73
|
+
"sortKey": 5
|
|
74
|
+
},
|
|
67
75
|
{
|
|
68
76
|
"title": "Button group",
|
|
69
77
|
"id": "button-group",
|
|
70
|
-
"sortKey":
|
|
78
|
+
"sortKey": 6
|
|
71
79
|
}
|
|
72
80
|
]
|
|
73
|
-
}
|
|
81
|
+
},
|
|
82
|
+
"runReact18": true
|
|
74
83
|
},
|
|
75
84
|
"af:exports": {
|
|
76
85
|
"./button-group": "./src/entry-points/button-group.tsx",
|
|
@@ -97,7 +106,7 @@
|
|
|
97
106
|
"@emotion/react": "^11.7.1"
|
|
98
107
|
},
|
|
99
108
|
"peerDependencies": {
|
|
100
|
-
"react": "^16.8.0"
|
|
109
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
101
110
|
},
|
|
102
111
|
"devDependencies": {
|
|
103
112
|
"@af/accessibility-testing": "*",
|