hi-tm 0.0.5 → 0.0.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.
@@ -50,6 +50,11 @@ const TextInput = ({ label, required, value, placeholderText, autoComplete, auto
50
50
  // Update the input value directly to enforce the validation
51
51
  e.target.value = newValue;
52
52
  }
53
+ else if (type === 'number' && maxLength) {
54
+ // Limit the number of characters for number input
55
+ newValue = newValue.slice(0, maxLength);
56
+ e.target.value = newValue;
57
+ }
53
58
  setInputValue(newValue);
54
59
  onChangeValueHandler(e);
55
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hi-tm",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "styles": "dist/styles/globals.css",
5
5
  "main": "dist/index.js",
6
6
  "exports": {