@atlaskit/button 16.10.0 → 16.10.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 +7 -1
- package/dist/cjs/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/cjs/old-button/shared/button-base.js +3 -3
- package/dist/es2019/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/es2019/old-button/shared/button-base.js +3 -3
- package/dist/esm/new-button/variants/shared/use-button-base.js +1 -1
- package/dist/esm/old-button/shared/button-base.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 16.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
3
9
|
## 16.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -446,7 +452,7 @@
|
|
|
446
452
|
|
|
447
453
|
### Major Changes
|
|
448
454
|
|
|
449
|
-
[`f75fedbf16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f75fedbf16) - In this version we made button dramatically faster and lighter and improved buttons internal spacing 🤩
|
|
455
|
+
- [`f75fedbf16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f75fedbf16) - In this version we made button dramatically faster and lighter and improved buttons internal spacing 🤩
|
|
450
456
|
|
|
451
457
|
There are now 3 button variants. We highly recommend you only install button through entry points to ensure minimum kbs. Our codemod will automatically shift you over to the entry point format
|
|
452
458
|
|
|
@@ -95,7 +95,7 @@ var useButtonBase = function useButtonBase(_ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: 'button',
|
|
97
97
|
packageName: "@atlaskit/button",
|
|
98
|
-
packageVersion: "16.10.
|
|
98
|
+
packageVersion: "16.10.1",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: buttonType
|
|
101
101
|
});
|
|
@@ -35,10 +35,10 @@ var noPointerEventsOnChildrenCss = {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
var iconBeforeSpacingFixStyle = (0, _react2.css)({
|
|
38
|
-
marginLeft:
|
|
38
|
+
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
39
39
|
});
|
|
40
40
|
var iconAfterSpacingFixStyle = (0, _react2.css)({
|
|
41
|
-
marginRight:
|
|
41
|
+
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
42
42
|
});
|
|
43
43
|
var getSpacingFix = function getSpacingFix(children, spacingStyles) {
|
|
44
44
|
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5') || !children || (0, _getIfVisuallyHiddenChildren.getIfVisuallyHiddenChildren)(children)) {
|
|
@@ -117,7 +117,7 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props,
|
|
|
117
117
|
action: 'clicked',
|
|
118
118
|
componentName: 'button',
|
|
119
119
|
packageName: "@atlaskit/button",
|
|
120
|
-
packageVersion: "16.10.
|
|
120
|
+
packageVersion: "16.10.1",
|
|
121
121
|
analyticsData: analyticsContext
|
|
122
122
|
});
|
|
123
123
|
|
|
@@ -24,10 +24,10 @@ const noPointerEventsOnChildrenCss = {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
const iconBeforeSpacingFixStyle = css({
|
|
27
|
-
marginLeft:
|
|
27
|
+
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
28
28
|
});
|
|
29
29
|
const iconAfterSpacingFixStyle = css({
|
|
30
|
-
marginRight:
|
|
30
|
+
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
31
31
|
});
|
|
32
32
|
const getSpacingFix = (children, spacingStyles) => {
|
|
33
33
|
if (!getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') || !children || getIfVisuallyHiddenChildren(children)) {
|
|
@@ -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: "16.10.
|
|
105
|
+
packageVersion: "16.10.1",
|
|
106
106
|
analyticsData: analyticsContext
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -87,7 +87,7 @@ var useButtonBase = function useButtonBase(_ref) {
|
|
|
87
87
|
action: 'clicked',
|
|
88
88
|
componentName: 'button',
|
|
89
89
|
packageName: "@atlaskit/button",
|
|
90
|
-
packageVersion: "16.10.
|
|
90
|
+
packageVersion: "16.10.1",
|
|
91
91
|
analyticsData: analyticsContext,
|
|
92
92
|
actionSubject: buttonType
|
|
93
93
|
});
|
|
@@ -26,10 +26,10 @@ var noPointerEventsOnChildrenCss = {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
var iconBeforeSpacingFixStyle = css({
|
|
29
|
-
marginLeft:
|
|
29
|
+
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
30
30
|
});
|
|
31
31
|
var iconAfterSpacingFixStyle = css({
|
|
32
|
-
marginRight:
|
|
32
|
+
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
33
33
|
});
|
|
34
34
|
var getSpacingFix = function getSpacingFix(children, spacingStyles) {
|
|
35
35
|
if (!getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') || !children || getIfVisuallyHiddenChildren(children)) {
|
|
@@ -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: "16.10.
|
|
111
|
+
packageVersion: "16.10.1",
|
|
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": "16.10.
|
|
3
|
+
"version": "16.10.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/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/primitives": "^1.4.0",
|
|
54
54
|
"@atlaskit/spinner": "^15.5.0",
|
|
55
55
|
"@atlaskit/theme": "^12.6.0",
|
|
56
|
-
"@atlaskit/tokens": "^1.
|
|
56
|
+
"@atlaskit/tokens": "^1.21.0",
|
|
57
57
|
"@atlaskit/visually-hidden": "^1.2.4",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1"
|