@desynova-digital/components 8.19.41 → 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.
@@ -103,22 +103,26 @@ var Textarea = function Textarea(_ref) {
103
103
  };
104
104
 
105
105
  var returnPadding = function returnPadding(props) {
106
- var digitCount = props.maxLength.toString().length;
107
- switch (digitCount) {
108
- case 0:
109
- return "7px 0px 2px 0px";
110
- case 1:
111
- return "7px 40px 2px 0px";
112
- case 2:
113
- return "7px 60px 2px 0px";
114
- case 3:
115
- return "7px 75px 2px 0px";
116
- case 4:
117
- return "7px 90px 2px 0px";
118
- case 5:
119
- return "7px 110px 2px 0px";
120
- default:
121
- return "7px 0px 2px 0px";
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
 
@@ -500,6 +500,7 @@ var Table = function (_Component) {
500
500
  );
501
501
  }
502
502
  }
503
+ break;
503
504
  }
504
505
 
505
506
  case "rowChecked":
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "8.19.41",
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.41",
10
+ "@desynova-digital/tokens": "8.19.43",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },