@atlaskit/button 16.9.4 → 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 CHANGED
@@ -1,10 +1,26 @@
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
+
9
+ ## 16.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`8c6ebfca290`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c6ebfca290) - Expose temporary "unsafe" entry point for internal work. It will be removed soon. PLEASE DO NOT USE.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 16.9.4
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - [`f204e4e0e55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f204e4e0e55) - Expose temporary "unsafe" entry point for internal work. It will be removed soon. PLEASE DO NOT USE.
23
+ - [`f204e4e0e55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f204e4e0e55) - Updated dependencies
8
24
 
9
25
  ## 16.9.3
10
26
 
@@ -436,7 +452,7 @@
436
452
 
437
453
  ### Major Changes
438
454
 
439
- [`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 🤩
440
456
 
441
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
442
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.9.4",
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: '-2px'
38
+ marginLeft: "var(--ds-space-negative-025, -2px)"
39
39
  });
40
40
  var iconAfterSpacingFixStyle = (0, _react2.css)({
41
- marginRight: '-2px'
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.9.4",
120
+ packageVersion: "16.10.1",
121
121
  analyticsData: analyticsContext
122
122
  });
123
123
 
@@ -77,7 +77,7 @@ const useButtonBase = ({
77
77
  action: 'clicked',
78
78
  componentName: 'button',
79
79
  packageName: "@atlaskit/button",
80
- packageVersion: "16.9.4",
80
+ packageVersion: "16.10.1",
81
81
  analyticsData: analyticsContext,
82
82
  actionSubject: buttonType
83
83
  });
@@ -24,10 +24,10 @@ const noPointerEventsOnChildrenCss = {
24
24
  }
25
25
  };
26
26
  const iconBeforeSpacingFixStyle = css({
27
- marginLeft: '-2px'
27
+ marginLeft: "var(--ds-space-negative-025, -2px)"
28
28
  });
29
29
  const iconAfterSpacingFixStyle = css({
30
- marginRight: '-2px'
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.9.4",
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.9.4",
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: '-2px'
29
+ marginLeft: "var(--ds-space-negative-025, -2px)"
30
30
  });
31
31
  var iconAfterSpacingFixStyle = css({
32
- marginRight: '-2px'
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.9.4",
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.9.4",
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/"
@@ -50,10 +50,10 @@
50
50
  "@atlaskit/focus-ring": "^1.3.0",
51
51
  "@atlaskit/interaction-context": "^2.1.0",
52
52
  "@atlaskit/platform-feature-flags": "^0.2.0",
53
- "@atlaskit/primitives": "^1.3.0",
53
+ "@atlaskit/primitives": "^1.4.0",
54
54
  "@atlaskit/spinner": "^15.5.0",
55
55
  "@atlaskit/theme": "^12.6.0",
56
- "@atlaskit/tokens": "^1.20.0",
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"