@desynova-digital/components 8.19.51 → 8.19.52
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
CHANGED
|
@@ -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 : "auto";
|
|
244
|
+
return getAttributes(props).width ? getAttributes(props).width + "px" : "auto";
|
|
245
245
|
}, function (props) {
|
|
246
246
|
return props.width ? props.width + "px" : props.stretchWidth ? '100%' : "auto";
|
|
247
247
|
}, function (props) {
|
|
@@ -130,6 +130,11 @@ var InputText = function InputText(_ref) {
|
|
|
130
130
|
};
|
|
131
131
|
var returnPadding = function returnPadding(props) {
|
|
132
132
|
var digitCount = props.maxLength.toString().length;
|
|
133
|
+
|
|
134
|
+
if (props.type === 'password') {
|
|
135
|
+
return "7px 23px 2px 0px";
|
|
136
|
+
}
|
|
137
|
+
|
|
133
138
|
switch (digitCount) {
|
|
134
139
|
case 0:
|
|
135
140
|
return "7px 0px 2px 0px";
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.52",
|
|
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.52",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|