@desynova-digital/components 8.19.52 → 8.19.53
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/atoms/button/button.js +2 -2
- package/package.json +2 -2
package/atoms/button/button.js
CHANGED
|
@@ -102,7 +102,7 @@ var getAttributes = function getAttributes(props) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (props.width) {
|
|
105
|
-
styles.width = props.width;
|
|
105
|
+
styles.width = props.width + 'px';
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (props.stretchWidth) {
|
|
@@ -241,7 +241,7 @@ var Button = function Button(_ref) {
|
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
Button.Element = _styledComponents2.default.button(_templateObject2, function (props) {
|
|
244
|
-
return getAttributes(props).width ? getAttributes(props).width
|
|
244
|
+
return getAttributes(props).width ? getAttributes(props).width : "auto";
|
|
245
245
|
}, function (props) {
|
|
246
246
|
return props.width ? props.width + "px" : props.stretchWidth ? '100%' : "auto";
|
|
247
247
|
}, function (props) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.53",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.19.
|
|
10
|
+
"@desynova-digital/tokens": "8.19.53",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|