mui-tel-input 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ <div align="center">
2
+ <img src="https://viclafouch.github.io/mui-tel-input/img/logo.svg" width="80" />
3
+ </div>
1
4
  <div align="center">
2
5
  <h1>MUI tel input</h1>
3
6
  <p>A phone number input designed for the React library <a href="https://mui.com/">MUI</a></p>
@@ -24,6 +24,6 @@ export interface MuiTelInputProps extends BaseTextFieldProps {
24
24
  disableFormatting?: boolean;
25
25
  continents?: MuiTelInputContinent[];
26
26
  onChange?: (value: string, info: MuiTelInputInfo) => void;
27
- value: string;
27
+ value?: string | undefined;
28
28
  MenuProps?: Partial<MenuProps>;
29
29
  }
@@ -3580,7 +3580,7 @@ var U1 = /* @__PURE__ */ function() {
3580
3580
  }
3581
3581
  }]), t;
3582
3582
  }();
3583
- function b5() {
3583
+ function A5() {
3584
3584
  return A2(v4, arguments);
3585
3585
  }
3586
3586
  function I(t) {
@@ -3696,7 +3696,7 @@ function f5({
3696
3696
  inputRef: s
3697
3697
  };
3698
3698
  }
3699
- const A5 = $.forwardRef((t, l) => {
3699
+ const u5 = $.forwardRef((t, l) => {
3700
3700
  const {
3701
3701
  forceCallingCode: e,
3702
3702
  onlyCountries: i,
@@ -3730,7 +3730,7 @@ const A5 = $.forwardRef((t, l) => {
3730
3730
  inputValue: W1
3731
3731
  } = f5({
3732
3732
  defaultCountry: d,
3733
- value: h,
3733
+ value: h ?? "",
3734
3734
  onChange: w,
3735
3735
  forceCallingCode: e,
3736
3736
  excludedCountries: a,
@@ -3810,8 +3810,11 @@ const A5 = $.forwardRef((t, l) => {
3810
3810
  })]
3811
3811
  });
3812
3812
  });
3813
+ u5.defaultProps = {
3814
+ value: ""
3815
+ };
3813
3816
  export {
3814
3817
  I as AsYouType,
3815
- A5 as MuiTelInput,
3816
- b5 as matchIsValidTel
3818
+ u5 as MuiTelInput,
3819
+ A5 as matchIsValidTel
3817
3820
  };