@atlaskit/button 16.5.5 → 16.5.6
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 +6 -0
- package/dist/cjs/shared/button-base.js +1 -1
- package/dist/cjs/shared/css.js +2 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/shared/button-base.js +1 -1
- package/dist/es2019/shared/css.js +2 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/shared/button-base.js +1 -1
- package/dist/esm/shared/css.js +2 -0
- package/dist/esm/version.json +1 -1
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -90,7 +90,7 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function ButtonBase(props,
|
|
|
90
90
|
action: 'clicked',
|
|
91
91
|
componentName: 'button',
|
|
92
92
|
packageName: "@atlaskit/button",
|
|
93
|
-
packageVersion: "16.5.
|
|
93
|
+
packageVersion: "16.5.6",
|
|
94
94
|
analyticsData: analyticsContext
|
|
95
95
|
});
|
|
96
96
|
|
package/dist/cjs/shared/css.js
CHANGED
|
@@ -207,6 +207,7 @@ function getIconStyle(_ref4) {
|
|
|
207
207
|
var spacing = _ref4.spacing;
|
|
208
208
|
return (0, _react.css)({
|
|
209
209
|
display: 'flex',
|
|
210
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
210
211
|
margin: spacing === 'none' ? 0 : innerMargin.icon,
|
|
211
212
|
// icon size cannot grow and shrink
|
|
212
213
|
flexGrow: 0,
|
|
@@ -222,6 +223,7 @@ function getIconStyle(_ref4) {
|
|
|
222
223
|
function getContentStyle(_ref5) {
|
|
223
224
|
var spacing = _ref5.spacing;
|
|
224
225
|
return (0, _react.css)({
|
|
226
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
225
227
|
margin: spacing === 'none' ? 0 : innerMargin.content,
|
|
226
228
|
// content can grow and shrink
|
|
227
229
|
flexGrow: 1,
|
package/dist/cjs/version.json
CHANGED
|
@@ -75,7 +75,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
75
75
|
action: 'clicked',
|
|
76
76
|
componentName: 'button',
|
|
77
77
|
packageName: "@atlaskit/button",
|
|
78
|
-
packageVersion: "16.5.
|
|
78
|
+
packageVersion: "16.5.6",
|
|
79
79
|
analyticsData: analyticsContext
|
|
80
80
|
});
|
|
81
81
|
|
|
@@ -208,6 +208,7 @@ export function getIconStyle({
|
|
|
208
208
|
}) {
|
|
209
209
|
return css({
|
|
210
210
|
display: 'flex',
|
|
211
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
211
212
|
margin: spacing === 'none' ? 0 : innerMargin.icon,
|
|
212
213
|
// icon size cannot grow and shrink
|
|
213
214
|
flexGrow: 0,
|
|
@@ -224,6 +225,7 @@ export function getContentStyle({
|
|
|
224
225
|
spacing
|
|
225
226
|
}) {
|
|
226
227
|
return css({
|
|
228
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
227
229
|
margin: spacing === 'none' ? 0 : innerMargin.content,
|
|
228
230
|
// content can grow and shrink
|
|
229
231
|
flexGrow: 1,
|
package/dist/es2019/version.json
CHANGED
|
@@ -83,7 +83,7 @@ export default /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
|
83
83
|
action: 'clicked',
|
|
84
84
|
componentName: 'button',
|
|
85
85
|
packageName: "@atlaskit/button",
|
|
86
|
-
packageVersion: "16.5.
|
|
86
|
+
packageVersion: "16.5.6",
|
|
87
87
|
analyticsData: analyticsContext
|
|
88
88
|
});
|
|
89
89
|
|
package/dist/esm/shared/css.js
CHANGED
|
@@ -196,6 +196,7 @@ export function getIconStyle(_ref4) {
|
|
|
196
196
|
var spacing = _ref4.spacing;
|
|
197
197
|
return css({
|
|
198
198
|
display: 'flex',
|
|
199
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
199
200
|
margin: spacing === 'none' ? 0 : innerMargin.icon,
|
|
200
201
|
// icon size cannot grow and shrink
|
|
201
202
|
flexGrow: 0,
|
|
@@ -211,6 +212,7 @@ export function getIconStyle(_ref4) {
|
|
|
211
212
|
export function getContentStyle(_ref5) {
|
|
212
213
|
var spacing = _ref5.spacing;
|
|
213
214
|
return css({
|
|
215
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
214
216
|
margin: spacing === 'none' ? 0 : innerMargin.content,
|
|
215
217
|
// content can grow and shrink
|
|
216
218
|
flexGrow: 1,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/button",
|
|
3
|
-
"version": "16.5.
|
|
3
|
+
"version": "16.5.6",
|
|
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/"
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
".": "./src/index.tsx"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/analytics-next": "^
|
|
35
|
+
"@atlaskit/analytics-next": "^9.0.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
37
37
|
"@atlaskit/interaction-context": "^2.0.0",
|
|
38
38
|
"@atlaskit/spinner": "^15.3.0",
|
|
39
39
|
"@atlaskit/theme": "^12.2.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.2.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/checkbox": "^12.4.0",
|
|
49
49
|
"@atlaskit/docs": "*",
|
|
50
50
|
"@atlaskit/icon": "^21.11.0",
|
|
51
|
-
"@atlaskit/logo": "^13.
|
|
51
|
+
"@atlaskit/logo": "^13.11.0",
|
|
52
52
|
"@atlaskit/section-message": "^6.3.0",
|
|
53
53
|
"@atlaskit/select": "^16.1.0",
|
|
54
54
|
"@atlaskit/ssr": "*",
|
|
@@ -78,8 +78,10 @@
|
|
|
78
78
|
"design-system": "v1",
|
|
79
79
|
"ui-components": "lite-mode",
|
|
80
80
|
"analytics": "analytics-next",
|
|
81
|
-
"design-tokens":
|
|
82
|
-
|
|
81
|
+
"design-tokens": [
|
|
82
|
+
"color",
|
|
83
|
+
"spacing"
|
|
84
|
+
],
|
|
83
85
|
"deprecation": "no-deprecated-imports",
|
|
84
86
|
"styling": [
|
|
85
87
|
"emotion"
|
|
@@ -88,4 +90,4 @@
|
|
|
88
90
|
},
|
|
89
91
|
"homepage": "https://atlassian.design/components/button/",
|
|
90
92
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
91
|
-
}
|
|
93
|
+
}
|