mytek-components 2.1.9 → 2.1.11
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/dist/main.es.js +14 -2
- package/dist/main.es.js.map +1 -1
- package/dist/main.umd.js +14 -2
- package/dist/main.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/main.umd.js
CHANGED
|
@@ -14273,6 +14273,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
14273
14273
|
validate(formatted);
|
|
14274
14274
|
setAmountInWords(numberToWords(rawValue, format));
|
|
14275
14275
|
break;
|
|
14276
|
+
case "number":
|
|
14277
|
+
val = val.replace(/\D/g, "");
|
|
14278
|
+
if (maxLength) {
|
|
14279
|
+
val = val.slice(0, maxLength);
|
|
14280
|
+
}
|
|
14281
|
+
onChange(name, val);
|
|
14282
|
+
if (minLength && val.length < minLength) {
|
|
14283
|
+
validate(val);
|
|
14284
|
+
}
|
|
14285
|
+
break;
|
|
14276
14286
|
case "number1":
|
|
14277
14287
|
val = val.replace(/\D/g, "").slice(4, 8);
|
|
14278
14288
|
onChange(name, val);
|
|
@@ -14490,7 +14500,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
14490
14500
|
},
|
|
14491
14501
|
min: minValue,
|
|
14492
14502
|
max: maxValue,
|
|
14493
|
-
step: stepValue
|
|
14503
|
+
step: stepValue,
|
|
14504
|
+
maxLength,
|
|
14505
|
+
minLength
|
|
14494
14506
|
}
|
|
14495
14507
|
),
|
|
14496
14508
|
suffix && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "px-2 bg-white text-gray-700 border-l border-[#3B5AA1]", children: suffix }),
|
|
@@ -15836,7 +15848,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
15836
15848
|
}) {
|
|
15837
15849
|
const [value, setValue] = React.useState(tabIndex || defaultValue);
|
|
15838
15850
|
React.useEffect(() => {
|
|
15839
|
-
const setUpVal = tabs.length - 1 >= tabIndex ? tabIndex : tabs.length - 1;
|
|
15851
|
+
const setUpVal = tabs.length === 0 ? 0 : tabs.length - 1 >= tabIndex ? tabIndex : tabs.length - 1;
|
|
15840
15852
|
setValue(setUpVal);
|
|
15841
15853
|
}, [tabIndex]);
|
|
15842
15854
|
const handleChange = (event, newValue) => {
|