mytek-components 2.1.9 → 2.1.10

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.umd.js CHANGED
@@ -14490,7 +14490,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14490
14490
  },
14491
14491
  min: minValue,
14492
14492
  max: maxValue,
14493
- step: stepValue
14493
+ step: stepValue,
14494
+ maxLength,
14495
+ minLength
14494
14496
  }
14495
14497
  ),
14496
14498
  suffix && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "px-2 bg-white text-gray-700 border-l border-[#3B5AA1]", children: suffix }),
@@ -15836,7 +15838,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15836
15838
  }) {
15837
15839
  const [value, setValue] = React.useState(tabIndex || defaultValue);
15838
15840
  React.useEffect(() => {
15839
- const setUpVal = tabs.length - 1 >= tabIndex ? tabIndex : tabs.length - 1;
15841
+ const setUpVal = tabs.length === 0 ? 0 : tabs.length - 1 >= tabIndex ? tabIndex : tabs.length - 1;
15840
15842
  setValue(setUpVal);
15841
15843
  }, [tabIndex]);
15842
15844
  const handleChange = (event, newValue) => {