@atlaskit/button 16.8.0 → 16.8.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,5 +1,11 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 16.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ba43427b3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba43427b3e8) - Internal changes to account for introduction of shape/radius tokens.
8
+
3
9
  ## 16.8.0
4
10
 
5
11
  ### Minor Changes
@@ -94,7 +94,7 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props,
94
94
  action: 'clicked',
95
95
  componentName: 'button',
96
96
  packageName: "@atlaskit/button",
97
- packageVersion: "16.8.0",
97
+ packageVersion: "16.8.1",
98
98
  analyticsData: analyticsContext
99
99
  });
100
100
 
@@ -15,7 +15,6 @@ var _constants = require("@atlaskit/theme/constants");
15
15
  var _colors = _interopRequireDefault(require("./colors"));
16
16
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
17
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
- var borderRadius = (0, _constants.borderRadius)();
19
18
  var gridSize = (0, _constants.gridSize)();
20
19
  var fontSize = (0, _constants.fontSize)();
21
20
 
@@ -104,7 +103,7 @@ function getCss(_ref3) {
104
103
  // 0px margin added to css-reset
105
104
  alignItems: 'baseline',
106
105
  borderWidth: 0,
107
- borderRadius: borderRadius,
106
+ borderRadius: "var(--ds-border-radius, 3px)",
108
107
  boxSizing: 'border-box',
109
108
  display: 'inline-flex',
110
109
  fontSize: 'inherit',
@@ -197,7 +196,7 @@ function getIconStyle(_ref4) {
197
196
  return (0, _react.css)({
198
197
  display: 'flex',
199
198
  // icon size cannot grow and shrink
200
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
199
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
201
200
  margin: spacing === 'none' ? 0 : innerMargin.icon,
202
201
  flexGrow: 0,
203
202
  flexShrink: 0,
@@ -212,7 +211,7 @@ function getIconStyle(_ref4) {
212
211
  function getContentStyle(_ref5) {
213
212
  var spacing = _ref5.spacing;
214
213
  return (0, _react.css)({
215
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
214
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
216
215
  margin: spacing === 'none' ? 0 : innerMargin.content,
217
216
  // content can grow and shrink
218
217
  flexGrow: 1,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.8.0",
3
+ "version": "16.8.1",
4
4
  "sideEffects": false
5
5
  }
@@ -80,7 +80,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
80
80
  action: 'clicked',
81
81
  componentName: 'button',
82
82
  packageName: "@atlaskit/button",
83
- packageVersion: "16.8.0",
83
+ packageVersion: "16.8.1",
84
84
  analyticsData: analyticsContext
85
85
  });
86
86
 
@@ -1,9 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
- import { borderRadius as getBorderRadius, fontSize as getFontSize,
2
+ import { fontSize as getFontSize,
3
3
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
4
  gridSize as getGridSize } from '@atlaskit/theme/constants';
5
5
  import colors from './colors';
6
- const borderRadius = getBorderRadius();
7
6
  const gridSize = getGridSize();
8
7
  const fontSize = getFontSize();
9
8
 
@@ -95,7 +94,7 @@ export function getCss({
95
94
  // 0px margin added to css-reset
96
95
  alignItems: 'baseline',
97
96
  borderWidth: 0,
98
- borderRadius,
97
+ borderRadius: "var(--ds-border-radius, 3px)",
99
98
  boxSizing: 'border-box',
100
99
  display: 'inline-flex',
101
100
  fontSize: 'inherit',
@@ -199,7 +198,7 @@ export function getIconStyle({
199
198
  return css({
200
199
  display: 'flex',
201
200
  // icon size cannot grow and shrink
202
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
201
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
203
202
  margin: spacing === 'none' ? 0 : innerMargin.icon,
204
203
  flexGrow: 0,
205
204
  flexShrink: 0,
@@ -215,7 +214,7 @@ export function getContentStyle({
215
214
  spacing
216
215
  }) {
217
216
  return css({
218
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
217
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
219
218
  margin: spacing === 'none' ? 0 : innerMargin.content,
220
219
  // content can grow and shrink
221
220
  flexGrow: 1,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.8.0",
3
+ "version": "16.8.1",
4
4
  "sideEffects": false
5
5
  }
@@ -85,7 +85,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
85
85
  action: 'clicked',
86
86
  componentName: 'button',
87
87
  packageName: "@atlaskit/button",
88
- packageVersion: "16.8.0",
88
+ packageVersion: "16.8.1",
89
89
  analyticsData: analyticsContext
90
90
  });
91
91
 
@@ -2,11 +2,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  import { css } from '@emotion/react';
5
- import { borderRadius as getBorderRadius, fontSize as getFontSize,
5
+ import { fontSize as getFontSize,
6
6
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
7
7
  gridSize as getGridSize } from '@atlaskit/theme/constants';
8
8
  import colors from './colors';
9
- var borderRadius = getBorderRadius();
10
9
  var gridSize = getGridSize();
11
10
  var fontSize = getFontSize();
12
11
 
@@ -95,7 +94,7 @@ export function getCss(_ref3) {
95
94
  // 0px margin added to css-reset
96
95
  alignItems: 'baseline',
97
96
  borderWidth: 0,
98
- borderRadius: borderRadius,
97
+ borderRadius: "var(--ds-border-radius, 3px)",
99
98
  boxSizing: 'border-box',
100
99
  display: 'inline-flex',
101
100
  fontSize: 'inherit',
@@ -188,7 +187,7 @@ export function getIconStyle(_ref4) {
188
187
  return css({
189
188
  display: 'flex',
190
189
  // icon size cannot grow and shrink
191
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
190
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
192
191
  margin: spacing === 'none' ? 0 : innerMargin.icon,
193
192
  flexGrow: 0,
194
193
  flexShrink: 0,
@@ -203,7 +202,7 @@ export function getIconStyle(_ref4) {
203
202
  export function getContentStyle(_ref5) {
204
203
  var spacing = _ref5.spacing;
205
204
  return css({
206
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
205
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
207
206
  margin: spacing === 'none' ? 0 : innerMargin.content,
208
207
  // content can grow and shrink
209
208
  flexGrow: 1,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.8.0",
3
+ "version": "16.8.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.8.0",
3
+ "version": "16.8.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/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/platform-feature-flags": "^0.2.0",
52
52
  "@atlaskit/spinner": "^15.5.0",
53
53
  "@atlaskit/theme": "^12.5.0",
54
- "@atlaskit/tokens": "^1.8.0",
54
+ "@atlaskit/tokens": "^1.11.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },