@atlaskit/button 23.0.8 → 23.2.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 +25 -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/link.d.ts +1 -1
- package/dist/types/new-button/variants/types.d.ts +1 -1
- package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +1 -1
- package/dist/types-ts4.5/new-button/variants/types.d.ts +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 23.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157071](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157071)
|
|
8
|
+
[`a149a0b1559ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a149a0b1559ec) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 23.1.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [#149822](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149822)
|
|
21
|
+
[`f9ab0e846ae21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9ab0e846ae21) -
|
|
22
|
+
Updated to support `size` prop for new icons from `@atlaskit/icon`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 23.0.8
|
|
4
29
|
|
|
5
30
|
### 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.2.0",
|
|
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.2.0",
|
|
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.2.0",
|
|
129
129
|
analyticsData: analyticsContext
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type Ref } from 'react';
|
|
6
|
-
import { CommonAnchorProps,
|
|
6
|
+
import type { CommonAnchorProps, CommonLinkVariantProps } from '../types';
|
|
7
7
|
import { type CommonIconButtonProps } from './types';
|
|
8
8
|
export type LinkIconButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonIconButtonProps & CommonLinkVariantProps<RouterLinkConfig> & CommonAnchorProps<RouterLinkConfig>;
|
|
9
9
|
declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any> = never>({ "aria-label": preventedAriaLabel, "aria-labelledby": ariaLabelledBy, analyticsContext, appearance, autoFocus, href, icon, interactionName, isDisabled, isSelected, isTooltipDisabled, label, onClick, onClickCapture, onKeyDownCapture, onKeyUpCapture, onMouseDownCapture, onMouseUpCapture, onPointerDownCapture, onPointerUpCapture, onTouchEndCapture, onTouchStartCapture, shape, spacing, testId, tooltip, ...unsafeRest }: LinkIconButtonProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element;
|
|
@@ -8,7 +8,7 @@ export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonApp
|
|
|
8
8
|
export type ButtonSpacing = 'compact' | 'default';
|
|
9
9
|
export type IconButtonSpacing = 'compact' | 'default';
|
|
10
10
|
export type Spacing = ButtonSpacing | IconButtonSpacing;
|
|
11
|
-
export type IconProp = React.ComponentType<IconProps | Omit<NewIconProps, 'spacing'>>;
|
|
11
|
+
export type IconProp = React.ComponentType<Omit<IconProps, 'size'> | Omit<NewIconProps, 'spacing' | 'size'>>;
|
|
12
12
|
export type IconSize = 'small' | 'large' | 'xlarge';
|
|
13
13
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
14
14
|
export type CommonBaseProps = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type Ref } from 'react';
|
|
6
|
-
import { CommonAnchorProps,
|
|
6
|
+
import type { CommonAnchorProps, CommonLinkVariantProps } from '../types';
|
|
7
7
|
import { type CommonIconButtonProps } from './types';
|
|
8
8
|
export type LinkIconButtonProps<RouterLinkConfig extends Record<string, any> = never> = CommonIconButtonProps & CommonLinkVariantProps<RouterLinkConfig> & CommonAnchorProps<RouterLinkConfig>;
|
|
9
9
|
declare const LinkIconButtonBase: <RouterLinkConfig extends Record<string, any> = never>({ "aria-label": preventedAriaLabel, "aria-labelledby": ariaLabelledBy, analyticsContext, appearance, autoFocus, href, icon, interactionName, isDisabled, isSelected, isTooltipDisabled, label, onClick, onClickCapture, onKeyDownCapture, onKeyUpCapture, onMouseDownCapture, onMouseUpCapture, onPointerDownCapture, onPointerUpCapture, onTouchEndCapture, onTouchStartCapture, shape, spacing, testId, tooltip, ...unsafeRest }: LinkIconButtonProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element;
|
|
@@ -8,7 +8,7 @@ export type Appearance = ButtonAppearance | LinkButtonAppearance | IconButtonApp
|
|
|
8
8
|
export type ButtonSpacing = 'compact' | 'default';
|
|
9
9
|
export type IconButtonSpacing = 'compact' | 'default';
|
|
10
10
|
export type Spacing = ButtonSpacing | IconButtonSpacing;
|
|
11
|
-
export type IconProp = React.ComponentType<IconProps | Omit<NewIconProps, 'spacing'>>;
|
|
11
|
+
export type IconProp = React.ComponentType<Omit<IconProps, 'size'> | Omit<NewIconProps, 'spacing' | 'size'>>;
|
|
12
12
|
export type IconSize = 'small' | 'large' | 'xlarge';
|
|
13
13
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
14
14
|
export type CommonBaseProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "23.0
|
|
3
|
+
"version": "23.2.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/"
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
"@atlaskit/css": "^0.10.0",
|
|
89
89
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
90
90
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
91
|
-
"@atlaskit/icon": "^26.
|
|
91
|
+
"@atlaskit/icon": "^26.1.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.8.0",
|
|
95
95
|
"@atlaskit/spinner": "^18.0.0",
|
|
96
96
|
"@atlaskit/theme": "^18.0.0",
|
|
97
|
-
"@atlaskit/tokens": "^4.
|
|
97
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
98
98
|
"@atlaskit/tooltip": "^20.0.0",
|
|
99
99
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
100
100
|
"@babel/runtime": "^7.0.0",
|
|
@@ -108,17 +108,17 @@
|
|
|
108
108
|
"@af/accessibility-testing": "workspace:^",
|
|
109
109
|
"@af/integration-testing": "workspace:^",
|
|
110
110
|
"@af/visual-regression": "workspace:^",
|
|
111
|
-
"@atlaskit/app-provider": "^2.
|
|
111
|
+
"@atlaskit/app-provider": "^2.2.0",
|
|
112
112
|
"@atlaskit/checkbox": "^17.1.0",
|
|
113
113
|
"@atlaskit/docs": "^10.0.0",
|
|
114
|
-
"@atlaskit/dropdown-menu": "^
|
|
114
|
+
"@atlaskit/dropdown-menu": "^15.2.0",
|
|
115
115
|
"@atlaskit/form": "^12.0.0",
|
|
116
116
|
"@atlaskit/heading": "^5.2.0",
|
|
117
|
-
"@atlaskit/link": "^3.
|
|
117
|
+
"@atlaskit/link": "^3.2.0",
|
|
118
118
|
"@atlaskit/logo": "^18.0.0",
|
|
119
|
-
"@atlaskit/modal-dialog": "^14.
|
|
119
|
+
"@atlaskit/modal-dialog": "^14.2.0",
|
|
120
120
|
"@atlaskit/section-message": "^8.2.0",
|
|
121
|
-
"@atlaskit/select": "^20.
|
|
121
|
+
"@atlaskit/select": "^20.6.0",
|
|
122
122
|
"@atlaskit/ssr": "workspace:^",
|
|
123
123
|
"@atlaskit/toggle": "^15.0.0",
|
|
124
124
|
"@atlaskit/visual-regression": "workspace:^",
|