@atlaskit/button 17.14.0 → 17.14.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 +1264 -721
- package/dist/cjs/old-button/shared/button-base.js +1 -1
- package/dist/es2019/new-button/variants/default/button.js +2 -2
- package/dist/es2019/new-button/variants/icon/button.js +3 -3
- package/dist/es2019/old-button/shared/button-base.js +1 -1
- package/dist/esm/new-button/variants/default/button.js +2 -2
- package/dist/esm/new-button/variants/icon/button.js +3 -3
- package/dist/esm/old-button/shared/button-base.js +1 -1
- package/package.json +10 -9
|
@@ -117,7 +117,7 @@ var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
117
117
|
action: 'clicked',
|
|
118
118
|
componentName: 'button',
|
|
119
119
|
packageName: "@atlaskit/button",
|
|
120
|
-
packageVersion: "17.14.
|
|
120
|
+
packageVersion: "17.14.2",
|
|
121
121
|
analyticsData: analyticsContext
|
|
122
122
|
});
|
|
123
123
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import Pressable from '@atlaskit/primitives/pressable';
|
|
4
4
|
import useDefaultButton from './use-default-button';
|
|
5
5
|
/**
|
|
6
6
|
* __Button__
|
|
@@ -70,7 +70,7 @@ const Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function B
|
|
|
70
70
|
shouldFitContainer,
|
|
71
71
|
spacing
|
|
72
72
|
});
|
|
73
|
-
return /*#__PURE__*/React.createElement(
|
|
73
|
+
return /*#__PURE__*/React.createElement(Pressable
|
|
74
74
|
// TODO: Remove spread props
|
|
75
75
|
, _extends({}, rest, {
|
|
76
76
|
ref: baseProps.ref,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import Pressable from '@atlaskit/primitives/pressable';
|
|
4
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
5
|
import useIconButton from './use-icon-button';
|
|
6
6
|
/**
|
|
@@ -92,7 +92,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
92
92
|
component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
|
|
93
93
|
hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
|
|
94
94
|
hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
|
|
95
|
-
}, triggerProps => /*#__PURE__*/React.createElement(
|
|
95
|
+
}, triggerProps => /*#__PURE__*/React.createElement(Pressable
|
|
96
96
|
// Top level props
|
|
97
97
|
, _extends({}, rest, {
|
|
98
98
|
type: type,
|
|
@@ -159,7 +159,7 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
159
159
|
onClickCapture: baseProps.onClickCapture
|
|
160
160
|
}), baseProps.children));
|
|
161
161
|
}
|
|
162
|
-
return /*#__PURE__*/React.createElement(
|
|
162
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
163
163
|
ref: baseProps.ref,
|
|
164
164
|
xcss: baseProps.xcss,
|
|
165
165
|
isDisabled: baseProps.isDisabled,
|
|
@@ -102,7 +102,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
102
102
|
action: 'clicked',
|
|
103
103
|
componentName: 'button',
|
|
104
104
|
packageName: "@atlaskit/button",
|
|
105
|
-
packageVersion: "17.14.
|
|
105
|
+
packageVersion: "17.14.2",
|
|
106
106
|
analyticsData: analyticsContext
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["analyticsContext", "interactionName", "autoFocus", "appearance", "spacing", "isDisabled", "isSelected", "iconBefore", "isLoading", "UNSAFE_iconAfter_size", "iconAfter", "UNSAFE_iconBefore_size", "children", "shouldFitContainer", "overlay", "onClick", "onMouseDownCapture", "onMouseUpCapture", "onKeyDownCapture", "onKeyUpCapture", "onTouchStartCapture", "onTouchEndCapture", "onPointerDownCapture", "onPointerUpCapture", "onClickCapture", "type", "testId"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import Pressable from '@atlaskit/primitives/pressable';
|
|
6
6
|
import useDefaultButton from './use-default-button';
|
|
7
7
|
/**
|
|
8
8
|
* __Button__
|
|
@@ -72,7 +72,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function But
|
|
|
72
72
|
shouldFitContainer: shouldFitContainer,
|
|
73
73
|
spacing: spacing
|
|
74
74
|
});
|
|
75
|
-
return /*#__PURE__*/React.createElement(
|
|
75
|
+
return /*#__PURE__*/React.createElement(Pressable
|
|
76
76
|
// TODO: Remove spread props
|
|
77
77
|
, _extends({}, rest, {
|
|
78
78
|
ref: baseProps.ref,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["aria-label", "analyticsContext", "appearance", "autoFocus", "icon", "interactionName", "isDisabled", "isLoading", "isSelected", "isTooltipDisabled", "label", "onClick", "onClickCapture", "onKeyDownCapture", "onKeyUpCapture", "onMouseDownCapture", "onMouseUpCapture", "onPointerDownCapture", "onPointerUpCapture", "onTouchEndCapture", "onTouchStartCapture", "overlay", "shape", "spacing", "testId", "tooltip", "type", "UNSAFE_size"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import Pressable from '@atlaskit/primitives/pressable';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
7
|
import useIconButton from './use-icon-button';
|
|
8
8
|
/**
|
|
@@ -95,7 +95,7 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
95
95
|
hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
|
|
96
96
|
hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown
|
|
97
97
|
}, function (triggerProps) {
|
|
98
|
-
return /*#__PURE__*/React.createElement(
|
|
98
|
+
return /*#__PURE__*/React.createElement(Pressable
|
|
99
99
|
// Top level props
|
|
100
100
|
, _extends({}, rest, {
|
|
101
101
|
type: type,
|
|
@@ -163,7 +163,7 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
163
163
|
}), baseProps.children);
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
return /*#__PURE__*/React.createElement(
|
|
166
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
167
167
|
ref: baseProps.ref,
|
|
168
168
|
xcss: baseProps.xcss,
|
|
169
169
|
isDisabled: baseProps.isDisabled,
|
|
@@ -108,7 +108,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
108
108
|
action: 'clicked',
|
|
109
109
|
componentName: 'button',
|
|
110
110
|
packageName: "@atlaskit/button",
|
|
111
|
-
packageVersion: "17.14.
|
|
111
|
+
packageVersion: "17.14.2",
|
|
112
112
|
analyticsData: analyticsContext
|
|
113
113
|
});
|
|
114
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "17.14.
|
|
3
|
+
"version": "17.14.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/"
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
86
86
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
87
|
-
"@atlaskit/focus-ring": "^1.
|
|
87
|
+
"@atlaskit/focus-ring": "^1.4.0",
|
|
88
88
|
"@atlaskit/icon": "^22.1.0",
|
|
89
89
|
"@atlaskit/interaction-context": "^2.1.0",
|
|
90
|
-
"@atlaskit/primitives": "^
|
|
91
|
-
"@atlaskit/spinner": "^16.
|
|
90
|
+
"@atlaskit/primitives": "^6.0.0",
|
|
91
|
+
"@atlaskit/spinner": "^16.1.0",
|
|
92
92
|
"@atlaskit/theme": "^12.7.0",
|
|
93
|
-
"@atlaskit/tokens": "^1.
|
|
94
|
-
"@atlaskit/tooltip": "^18.
|
|
95
|
-
"@atlaskit/visually-hidden": "^1.
|
|
93
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
94
|
+
"@atlaskit/tooltip": "^18.3.0",
|
|
95
|
+
"@atlaskit/visually-hidden": "^1.3.0",
|
|
96
96
|
"@babel/runtime": "^7.0.0",
|
|
97
97
|
"@emotion/react": "^11.7.1"
|
|
98
98
|
},
|
|
@@ -105,15 +105,16 @@
|
|
|
105
105
|
"@af/visual-regression": "*",
|
|
106
106
|
"@atlaskit/app-provider": "^1.3.0",
|
|
107
107
|
"@atlaskit/calendar": "^14.2.0",
|
|
108
|
-
"@atlaskit/checkbox": "^13.
|
|
108
|
+
"@atlaskit/checkbox": "^13.3.0",
|
|
109
109
|
"@atlaskit/ssr": "*",
|
|
110
|
+
"@atlaskit/toggle": "^13.0.0",
|
|
110
111
|
"@atlaskit/visual-regression": "*",
|
|
111
112
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
112
113
|
"@testing-library/react": "^12.1.5",
|
|
113
114
|
"@testing-library/user-event": "^14.4.3",
|
|
114
115
|
"@types/react-router-dom": "^4.3.1",
|
|
115
116
|
"ast-types": "^0.13.3",
|
|
116
|
-
"bind-event-listener": "^
|
|
117
|
+
"bind-event-listener": "^3.0.0",
|
|
117
118
|
"jest-emotion": "^10.0.32",
|
|
118
119
|
"jest-in-case": "^1.0.2",
|
|
119
120
|
"jscodeshift": "^0.13.0",
|