@atlaskit/button 16.8.1 → 16.8.2
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 +10 -4
- package/dist/cjs/shared/button-base.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/shared/button-base.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/shared/button-base.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -7
- package/tmp/api-report-tmp.d.ts +0 -133
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 16.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
|
+
|
|
3
9
|
## 16.8.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -16,13 +22,13 @@
|
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
- [`687e9b93266`](https://bitbucket.org/atlassian/atlassian-frontend/commits/687e9b93266) -
|
|
25
|
+
- [`687e9b93266`](https://bitbucket.org/atlassian/atlassian-frontend/commits/687e9b93266) - Updated dependencies
|
|
20
26
|
|
|
21
27
|
## 16.7.5
|
|
22
28
|
|
|
23
29
|
### Patch Changes
|
|
24
30
|
|
|
25
|
-
- [`3a14ab26d19`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a14ab26d19) -
|
|
31
|
+
- [`3a14ab26d19`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a14ab26d19) - Updated dependencies
|
|
26
32
|
|
|
27
33
|
## 16.7.4
|
|
28
34
|
|
|
@@ -40,7 +46,7 @@
|
|
|
40
46
|
|
|
41
47
|
### Patch Changes
|
|
42
48
|
|
|
43
|
-
- [`96b5112590b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96b5112590b) -
|
|
49
|
+
- [`96b5112590b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96b5112590b) - Updated dependencies
|
|
44
50
|
|
|
45
51
|
## 16.7.1
|
|
46
52
|
|
|
@@ -62,7 +68,7 @@
|
|
|
62
68
|
|
|
63
69
|
### Patch Changes
|
|
64
70
|
|
|
65
|
-
- [`23a850fe471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23a850fe471) -
|
|
71
|
+
- [`23a850fe471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23a850fe471) - Updated dependencies
|
|
66
72
|
|
|
67
73
|
## 16.6.0
|
|
68
74
|
|
|
@@ -94,7 +94,7 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props,
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
componentName: 'button',
|
|
96
96
|
packageName: "@atlaskit/button",
|
|
97
|
-
packageVersion: "16.8.
|
|
97
|
+
packageVersion: "16.8.2",
|
|
98
98
|
analyticsData: analyticsContext
|
|
99
99
|
});
|
|
100
100
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -80,7 +80,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
80
80
|
action: 'clicked',
|
|
81
81
|
componentName: 'button',
|
|
82
82
|
packageName: "@atlaskit/button",
|
|
83
|
-
packageVersion: "16.8.
|
|
83
|
+
packageVersion: "16.8.2",
|
|
84
84
|
analyticsData: analyticsContext
|
|
85
85
|
});
|
|
86
86
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -85,7 +85,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: 'button',
|
|
87
87
|
packageName: "@atlaskit/button",
|
|
88
|
-
packageVersion: "16.8.
|
|
88
|
+
packageVersion: "16.8.2",
|
|
89
89
|
analyticsData: analyticsContext
|
|
90
90
|
});
|
|
91
91
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "16.8.
|
|
3
|
+
"version": "16.8.2",
|
|
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/"
|
|
@@ -59,12 +59,9 @@
|
|
|
59
59
|
"react": "^16.8.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
62
|
+
"@af/accessibility-testing": "*",
|
|
63
|
+
"@af/integration-testing": "*",
|
|
64
64
|
"@atlaskit/icon": "^21.12.0",
|
|
65
|
-
"@atlaskit/logo": "^13.14.0",
|
|
66
|
-
"@atlaskit/section-message": "^6.4.0",
|
|
67
|
-
"@atlaskit/select": "^16.5.0",
|
|
68
65
|
"@atlaskit/ssr": "*",
|
|
69
66
|
"@atlaskit/visual-regression": "*",
|
|
70
67
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -73,7 +70,6 @@
|
|
|
73
70
|
"@types/react-router-dom": "^4.3.1",
|
|
74
71
|
"ast-types": "^0.13.3",
|
|
75
72
|
"bind-event-listener": "^2.1.1",
|
|
76
|
-
"jest-axe": "^4.0.0",
|
|
77
73
|
"jest-emotion": "^10.0.32",
|
|
78
74
|
"jest-in-case": "^1.0.2",
|
|
79
75
|
"jscodeshift": "^0.13.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/button"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { ComponentType } from 'react';
|
|
10
|
-
import { CSSObject } from '@emotion/react';
|
|
11
|
-
import { jsx } from '@emotion/react';
|
|
12
|
-
import { default as React_2 } from 'react';
|
|
13
|
-
import { ReactNode } from 'react';
|
|
14
|
-
import { ThemeModes } from '@atlaskit/theme/types';
|
|
15
|
-
import { ThemeModes as ThemeModes_2 } from '@atlaskit/theme';
|
|
16
|
-
import { ThemeProp } from '@atlaskit/theme/components';
|
|
17
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
18
|
-
|
|
19
|
-
// @public (undocumented)
|
|
20
|
-
export type Appearance = 'danger' | 'default' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'warning';
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
export type BaseOwnProps = {
|
|
24
|
-
appearance?: Appearance;
|
|
25
|
-
autoFocus?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
overlay?: React_2.ReactNode;
|
|
28
|
-
href?: string;
|
|
29
|
-
iconAfter?: React_2.ReactChild;
|
|
30
|
-
iconBefore?: React_2.ReactChild;
|
|
31
|
-
isDisabled?: boolean;
|
|
32
|
-
isSelected?: boolean;
|
|
33
|
-
onBlur?: React_2.FocusEventHandler<HTMLElement>;
|
|
34
|
-
onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
35
|
-
onFocus?: React_2.FocusEventHandler<HTMLElement>;
|
|
36
|
-
spacing?: Spacing;
|
|
37
|
-
target?: React_2.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
38
|
-
type?: React_2.ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
39
|
-
shouldFitContainer?: boolean;
|
|
40
|
-
children?: React_2.ReactNode;
|
|
41
|
-
testId?: string;
|
|
42
|
-
component?: React_2.ComponentType<React_2.AllHTMLAttributes<HTMLElement>> | React_2.ElementType;
|
|
43
|
-
interactionName?: string;
|
|
44
|
-
analyticsContext?: Record<string, any>;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
// @public (undocumented)
|
|
48
|
-
export type BaseProps = Combine<Combine<Omit<React_2.AllHTMLAttributes<HTMLElement>, 'disabled'>, {
|
|
49
|
-
'data-testid'?: never;
|
|
50
|
-
'data-has-overlay'?: never;
|
|
51
|
-
}>, BaseOwnProps>;
|
|
52
|
-
|
|
53
|
-
// @public
|
|
54
|
-
const Button: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLElement>>>;
|
|
55
|
-
export default Button;
|
|
56
|
-
|
|
57
|
-
// @public (undocumented)
|
|
58
|
-
export function ButtonGroup({ appearance, children, }: ButtonGroupProps): jsx.JSX.Element;
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
type ButtonGroupProps = {
|
|
62
|
-
appearance?: Appearance;
|
|
63
|
-
children?: React_2.ReactNode;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// @public (undocumented)
|
|
67
|
-
export interface ButtonProps extends BaseProps {
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// @public (undocumented)
|
|
71
|
-
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
72
|
-
|
|
73
|
-
// @public
|
|
74
|
-
export const CustomThemeButton: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<Omit<BaseProps, "overlay"> & CustomThemeButtonOwnProps & React_2.RefAttributes<HTMLElement>>>;
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
export type CustomThemeButtonOwnProps = {
|
|
78
|
-
isLoading?: boolean;
|
|
79
|
-
theme?: (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export type CustomThemeButtonProps = Omit<BaseProps, 'overlay'> & CustomThemeButtonOwnProps;
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export type InteractionState = 'active' | 'default' | 'disabled' | 'focus' | 'focusSelected' | 'hover' | 'selected';
|
|
87
|
-
|
|
88
|
-
// @public
|
|
89
|
-
export const LoadingButton: React_2.ForwardRefExoticComponent<Omit<BaseProps, "overlay"> & LoadingButtonOwnProps & React_2.RefAttributes<HTMLElement>>;
|
|
90
|
-
|
|
91
|
-
// @public (undocumented)
|
|
92
|
-
export type LoadingButtonOwnProps = {
|
|
93
|
-
isLoading?: boolean;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
// @public (undocumented)
|
|
97
|
-
export type LoadingButtonProps = Omit<BaseProps, 'overlay'> & LoadingButtonOwnProps;
|
|
98
|
-
|
|
99
|
-
// @public (undocumented)
|
|
100
|
-
export type Spacing = 'compact' | 'default' | 'none';
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
export const Theme: {
|
|
104
|
-
Consumer: ComponentType< {
|
|
105
|
-
children: (tokens: ThemeTokens) => ReactNode;
|
|
106
|
-
} & Partial<CustomThemeButtonProps> & {
|
|
107
|
-
state: InteractionState;
|
|
108
|
-
iconIsOnlyChild?: boolean | undefined;
|
|
109
|
-
mode?: ThemeModes_2 | undefined;
|
|
110
|
-
}>;
|
|
111
|
-
Provider: ComponentType< {
|
|
112
|
-
children?: ReactNode;
|
|
113
|
-
value?: ThemeProp<ThemeTokens, ThemeProps> | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// @public (undocumented)
|
|
119
|
-
export type ThemeProps = Partial<CustomThemeButtonProps> & {
|
|
120
|
-
state: InteractionState;
|
|
121
|
-
iconIsOnlyChild?: boolean;
|
|
122
|
-
mode?: ThemeModes;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
// @public (undocumented)
|
|
126
|
-
export type ThemeTokens = {
|
|
127
|
-
buttonStyles: CSSObject;
|
|
128
|
-
spinnerStyles: CSSObject;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// (No @packageDocumentation comment for this package)
|
|
132
|
-
|
|
133
|
-
```
|