@atlaskit/button 18.3.1 → 18.4.1
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 +21 -0
- package/dist/cjs/old-button/shared/button-base.js +6 -3
- package/dist/es2019/old-button/shared/button-base.js +6 -3
- package/dist/esm/old-button/shared/button-base.js +6 -3
- package/dist/types/containers/button-group.d.ts +2 -0
- package/dist/types/old-button/shared/button-base.d.ts +2 -2
- package/dist/types-ts4.5/containers/button-group.d.ts +2 -0
- package/dist/types-ts4.5/old-button/shared/button-base.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 18.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
|
|
8
|
+
[`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
|
|
9
|
+
DSP-19576: Assign names to anonymous default exports
|
|
10
|
+
|
|
11
|
+
## 18.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#119272](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119272)
|
|
16
|
+
[`0efaab9cca145`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0efaab9cca145) -
|
|
17
|
+
ButtonGroup's `appearance` prop has been deprecated and will be removed in a future release. Apply
|
|
18
|
+
the `appearance` prop on each button instead.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 18.3.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -70,7 +70,7 @@ var getChildren = function getChildren(children, childrenStyles) {
|
|
|
70
70
|
css: childrenStyles
|
|
71
71
|
}, children) : null;
|
|
72
72
|
};
|
|
73
|
-
var
|
|
73
|
+
var ButtonBase = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props, ref) {
|
|
74
74
|
var analyticsContext = props.analyticsContext,
|
|
75
75
|
_props$appearance = props.appearance,
|
|
76
76
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
@@ -133,7 +133,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
133
133
|
action: 'clicked',
|
|
134
134
|
componentName: 'button',
|
|
135
135
|
packageName: "@atlaskit/button",
|
|
136
|
-
packageVersion: "18.
|
|
136
|
+
packageVersion: "18.4.1",
|
|
137
137
|
analyticsData: analyticsContext
|
|
138
138
|
});
|
|
139
139
|
|
|
@@ -213,4 +213,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
213
213
|
}, iconAfter) : null, overlay ? (0, _react2.jsx)("span", {
|
|
214
214
|
css: [_css.overlayCss, spinnerHackCss]
|
|
215
215
|
}, overlay) : null));
|
|
216
|
-
});
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
219
|
+
var _default = exports.default = ButtonBase;
|
|
@@ -60,7 +60,7 @@ const getChildren = (children, childrenStyles) => {
|
|
|
60
60
|
css: childrenStyles
|
|
61
61
|
}, children) : null;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
64
64
|
const {
|
|
65
65
|
// I don't think analytics should be in button, but for now it is
|
|
66
66
|
analyticsContext,
|
|
@@ -119,7 +119,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
119
119
|
action: 'clicked',
|
|
120
120
|
componentName: 'button',
|
|
121
121
|
packageName: "@atlaskit/button",
|
|
122
|
-
packageVersion: "18.
|
|
122
|
+
packageVersion: "18.4.1",
|
|
123
123
|
analyticsData: analyticsContext
|
|
124
124
|
});
|
|
125
125
|
|
|
@@ -199,4 +199,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
199
199
|
}, iconAfter) : null, overlay ? jsx("span", {
|
|
200
200
|
css: [overlayCss, spinnerHackCss]
|
|
201
201
|
}, overlay) : null));
|
|
202
|
-
});
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
205
|
+
export default ButtonBase;
|
|
@@ -62,7 +62,7 @@ var getChildren = function getChildren(children, childrenStyles) {
|
|
|
62
62
|
css: childrenStyles
|
|
63
63
|
}, children) : null;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
66
66
|
var analyticsContext = props.analyticsContext,
|
|
67
67
|
_props$appearance = props.appearance,
|
|
68
68
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
@@ -125,7 +125,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
125
125
|
action: 'clicked',
|
|
126
126
|
componentName: 'button',
|
|
127
127
|
packageName: "@atlaskit/button",
|
|
128
|
-
packageVersion: "18.
|
|
128
|
+
packageVersion: "18.4.1",
|
|
129
129
|
analyticsData: analyticsContext
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -205,4 +205,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
205
205
|
}, iconAfter) : null, overlay ? jsx("span", {
|
|
206
206
|
css: [overlayCss, spinnerHackCss]
|
|
207
207
|
}, overlay) : null));
|
|
208
|
-
});
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
211
|
+
export default ButtonBase;
|
|
@@ -8,6 +8,8 @@ import { type Appearance } from '../old-button/types';
|
|
|
8
8
|
export type ButtonGroupProps = {
|
|
9
9
|
/**
|
|
10
10
|
* The appearance to apply to all buttons.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated This prop is deprecated and will be removed in an upcoming major version. Apply the `appearance` prop on each button instead.
|
|
11
13
|
*/
|
|
12
14
|
appearance?: Appearance;
|
|
13
15
|
/**
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type CSSObject } from '@emotion/react';
|
|
7
|
-
declare const
|
|
7
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.AllHTMLAttributes<HTMLElement>, "disabled">, "data-testid" | "data-has-overlay"> & {
|
|
8
8
|
'data-testid'?: undefined;
|
|
9
9
|
'data-has-overlay'?: undefined;
|
|
10
10
|
}, keyof import("../types").BaseOwnProps> & import("../types").BaseOwnProps & {
|
|
11
11
|
buttonCss: CSSObject;
|
|
12
12
|
} & React.RefAttributes<HTMLElement>>;
|
|
13
|
-
export default
|
|
13
|
+
export default ButtonBase;
|
|
@@ -8,6 +8,8 @@ import { type Appearance } from '../old-button/types';
|
|
|
8
8
|
export type ButtonGroupProps = {
|
|
9
9
|
/**
|
|
10
10
|
* The appearance to apply to all buttons.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated This prop is deprecated and will be removed in an upcoming major version. Apply the `appearance` prop on each button instead.
|
|
11
13
|
*/
|
|
12
14
|
appearance?: Appearance;
|
|
13
15
|
/**
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type CSSObject } from '@emotion/react';
|
|
7
|
-
declare const
|
|
7
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.AllHTMLAttributes<HTMLElement>, "disabled">, "data-testid" | "data-has-overlay"> & {
|
|
8
8
|
'data-testid'?: undefined;
|
|
9
9
|
'data-has-overlay'?: undefined;
|
|
10
10
|
}, keyof import("../types").BaseOwnProps> & import("../types").BaseOwnProps & {
|
|
11
11
|
buttonCss: CSSObject;
|
|
12
12
|
} & React.RefAttributes<HTMLElement>>;
|
|
13
|
-
export default
|
|
13
|
+
export default ButtonBase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.1",
|
|
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/"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"@atlaskit/primitives": "^11.0.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.2.0",
|
|
140
140
|
"@atlaskit/theme": "^12.11.0",
|
|
141
|
-
"@atlaskit/tokens": "^1.
|
|
141
|
+
"@atlaskit/tokens": "^1.54.0",
|
|
142
142
|
"@atlaskit/tooltip": "^18.5.0",
|
|
143
143
|
"@atlaskit/visually-hidden": "^1.4.0",
|
|
144
144
|
"@babel/runtime": "^7.0.0",
|