@atlaskit/button 23.0.5 → 23.0.7
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 +18 -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/default/button.d.ts +1 -1
- package/dist/types/new-button/variants/icon/button.d.ts +1 -1
- package/dist/types/new-button/variants/types.d.ts +1 -1
- package/dist/types-ts4.5/new-button/variants/default/button.d.ts +1 -1
- package/dist/types-ts4.5/new-button/variants/icon/button.d.ts +1 -1
- package/dist/types-ts4.5/new-button/variants/types.d.ts +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 23.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149289](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149289)
|
|
8
|
+
[`718ee6f525ccc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/718ee6f525ccc) -
|
|
9
|
+
Fixed a bug in LinkButton, where the `shouldFitContainer` prop was unintentionally being passed to
|
|
10
|
+
the underlying anchor DOM element.
|
|
11
|
+
|
|
12
|
+
## 23.0.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#142967](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142967)
|
|
17
|
+
[`9b46cc7f6df9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b46cc7f6df9d) -
|
|
18
|
+
Allows `role` to be modified for new buttons.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 23.0.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -133,7 +133,7 @@ var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(prop
|
|
|
133
133
|
action: 'clicked',
|
|
134
134
|
componentName: 'button',
|
|
135
135
|
packageName: "@atlaskit/button",
|
|
136
|
-
packageVersion: "23.0.
|
|
136
|
+
packageVersion: "23.0.7",
|
|
137
137
|
analyticsData: analyticsContext
|
|
138
138
|
});
|
|
139
139
|
|
|
@@ -119,7 +119,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref)
|
|
|
119
119
|
action: 'clicked',
|
|
120
120
|
componentName: 'button',
|
|
121
121
|
packageName: "@atlaskit/button",
|
|
122
|
-
packageVersion: "23.0.
|
|
122
|
+
packageVersion: "23.0.7",
|
|
123
123
|
analyticsData: analyticsContext
|
|
124
124
|
});
|
|
125
125
|
|
|
@@ -125,7 +125,7 @@ var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
125
125
|
action: 'clicked',
|
|
126
126
|
componentName: 'button',
|
|
127
127
|
packageName: "@atlaskit/button",
|
|
128
|
-
packageVersion: "23.0.
|
|
128
|
+
packageVersion: "23.0.7",
|
|
129
129
|
analyticsData: analyticsContext
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = CommonDefaultButtonProps & CommonButtonVariantProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonDefaultButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className"
|
|
14
|
+
declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonDefaultButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className">, "data-testid"> & {
|
|
15
15
|
'data-testid'?: undefined;
|
|
16
16
|
}, "onFocus" | "onBlur" | "onClick" | keyof import("../types").CommonBaseProps> & import("../types").CommonBaseProps & {
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -11,7 +11,7 @@ export type IconButtonProps = CommonIconButtonProps & CommonButtonVariantProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/icon-button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/icon-button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className"
|
|
14
|
+
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className">, "data-testid"> & {
|
|
15
15
|
'data-testid'?: undefined;
|
|
16
16
|
}, "onFocus" | "onBlur" | "onClick" | keyof import("../types").CommonBaseProps> & import("../types").CommonBaseProps & {
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -70,7 +70,7 @@ export type CommonAnchorProps<RouterLinkConfig extends Record<string, any> = nev
|
|
|
70
70
|
href?: string | RouterLinkConfig;
|
|
71
71
|
};
|
|
72
72
|
type SupportedElementAttributes = React.ButtonHTMLAttributes<HTMLButtonElement> | React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
73
|
-
type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | '
|
|
73
|
+
type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | 'disabled'>, {
|
|
74
74
|
'data-testid'?: never;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = CommonDefaultButtonProps & CommonButtonVariantProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonDefaultButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className"
|
|
14
|
+
declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonDefaultButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className">, "data-testid"> & {
|
|
15
15
|
'data-testid'?: undefined;
|
|
16
16
|
}, "onFocus" | "onBlur" | "onClick" | keyof import("../types").CommonBaseProps> & import("../types").CommonBaseProps & {
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -11,7 +11,7 @@ export type IconButtonProps = CommonIconButtonProps & CommonButtonVariantProps;
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/button/icon-button/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/button/icon-button/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className"
|
|
14
|
+
declare const IconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<CommonIconButtonProps & import("../types").AdditionalButtonVariantProps & Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, "style" | "disabled" | "className">, "data-testid"> & {
|
|
15
15
|
'data-testid'?: undefined;
|
|
16
16
|
}, "onFocus" | "onBlur" | "onClick" | keyof import("../types").CommonBaseProps> & import("../types").CommonBaseProps & {
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -70,7 +70,7 @@ export type CommonAnchorProps<RouterLinkConfig extends Record<string, any> = nev
|
|
|
70
70
|
href?: string | RouterLinkConfig;
|
|
71
71
|
};
|
|
72
72
|
type SupportedElementAttributes = React.ButtonHTMLAttributes<HTMLButtonElement> | React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
73
|
-
type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | '
|
|
73
|
+
type AdditionalHTMLElementPropsExtender<Props extends SupportedElementAttributes> = Combine<Omit<Props, 'className' | 'style' | 'disabled'>, {
|
|
74
74
|
'data-testid'?: never;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.7",
|
|
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/icon": "^25.6.0",
|
|
92
92
|
"@atlaskit/interaction-context": "^3.0.0",
|
|
93
93
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
94
|
-
"@atlaskit/primitives": "^14.
|
|
94
|
+
"@atlaskit/primitives": "^14.6.0",
|
|
95
95
|
"@atlaskit/spinner": "^18.0.0",
|
|
96
96
|
"@atlaskit/theme": "^18.0.0",
|
|
97
97
|
"@atlaskit/tokens": "^4.8.0",
|
|
@@ -105,23 +105,23 @@
|
|
|
105
105
|
"react": "^18.2.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@af/accessibility-testing": "
|
|
109
|
-
"@af/integration-testing": "
|
|
110
|
-
"@af/visual-regression": "
|
|
108
|
+
"@af/accessibility-testing": "workspace:^",
|
|
109
|
+
"@af/integration-testing": "workspace:^",
|
|
110
|
+
"@af/visual-regression": "workspace:^",
|
|
111
111
|
"@atlaskit/app-provider": "^2.1.0",
|
|
112
|
-
"@atlaskit/checkbox": "^17.
|
|
112
|
+
"@atlaskit/checkbox": "^17.1.0",
|
|
113
113
|
"@atlaskit/docs": "^10.0.0",
|
|
114
|
-
"@atlaskit/dropdown-menu": "^14.
|
|
114
|
+
"@atlaskit/dropdown-menu": "^14.1.0",
|
|
115
115
|
"@atlaskit/form": "^12.0.0",
|
|
116
116
|
"@atlaskit/heading": "^5.2.0",
|
|
117
117
|
"@atlaskit/link": "^3.1.0",
|
|
118
|
-
"@atlaskit/logo": "^
|
|
118
|
+
"@atlaskit/logo": "^18.0.0",
|
|
119
119
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
120
120
|
"@atlaskit/section-message": "^8.2.0",
|
|
121
|
-
"@atlaskit/select": "^20.
|
|
122
|
-
"@atlaskit/ssr": "
|
|
121
|
+
"@atlaskit/select": "^20.4.0",
|
|
122
|
+
"@atlaskit/ssr": "workspace:^",
|
|
123
123
|
"@atlaskit/toggle": "^15.0.0",
|
|
124
|
-
"@atlaskit/visual-regression": "
|
|
124
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
125
125
|
"@atlassian/ssr-tests": "^0.2.0",
|
|
126
126
|
"@testing-library/react": "^13.4.0",
|
|
127
127
|
"@testing-library/user-event": "^14.4.3",
|