@desynova-digital/components 8.19.42 → 8.19.43
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/textarea/textarea.js +20 -16
- package/package.json +2 -2
|
@@ -103,22 +103,26 @@ var Textarea = function Textarea(_ref) {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
var returnPadding = function returnPadding(props) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
106
|
+
if (props.showLengthCount) {
|
|
107
|
+
var digitCount = props.maxLength.toString().length;
|
|
108
|
+
switch (digitCount) {
|
|
109
|
+
case 0:
|
|
110
|
+
return "7px 0px 2px 0px";
|
|
111
|
+
case 1:
|
|
112
|
+
return "7px 20px 2px 0px";
|
|
113
|
+
case 2:
|
|
114
|
+
return "7px 40px 2px 0px";
|
|
115
|
+
case 3:
|
|
116
|
+
return "7px 65px 2px 0px";
|
|
117
|
+
case 4:
|
|
118
|
+
return "7px 85px 2px 0px";
|
|
119
|
+
case 5:
|
|
120
|
+
return "7px 100px 2px 0px";
|
|
121
|
+
default:
|
|
122
|
+
return "7px 0px 2px 0px";
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
return "7px 0px 2px 0px";
|
|
122
126
|
}
|
|
123
127
|
};
|
|
124
128
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.43",
|
|
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.43",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|