@atlaskit/button 18.4.0 → 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 +8 -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/old-button/shared/button-base.d.ts +2 -2
- package/dist/types-ts4.5/old-button/shared/button-base.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 18.4.0
|
|
4
12
|
|
|
5
13
|
### Minor 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.4.
|
|
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.4.
|
|
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.4.
|
|
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;
|
|
@@ -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;
|
|
@@ -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