mui-design-system 0.0.33 → 0.0.34

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.
@@ -14,8 +14,8 @@ const UFTextField = ({ form, name, type = 'text', defaultValue, label, rules, re
14
14
  const textFieldMergedProps = deepMerge(themeProp, itemProps, props);
15
15
  const handleKeyDown = (e, onChange) => {
16
16
  const value = e?.target?.value;
17
- if (type === "number" &&
18
- !checkIfNumber(value)) {
17
+ const isNumericOnly = type === "number" || type === "tel";
18
+ if (isNumericOnly && !checkIfNumber(value)) {
19
19
  e.preventDefault();
20
20
  }
21
21
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mui-design-system",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "MUI-based design system with theme, form components, and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -24,7 +24,8 @@
24
24
  "scripts": {
25
25
  "build": "tsc && node copy-files.js",
26
26
  "prepublishOnly": "npm run build",
27
- "test": "echo \"Error: no test specified\" && exit 1"
27
+ "test": "echo \"Error: no test specified\" && exit 1",
28
+ "publish": "npm publish"
28
29
  },
29
30
  "dependencies": {
30
31
  "react-window": "^1.8.10",