@mw-kit/mw-ui 1.7.42 → 1.7.43

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.
@@ -24,6 +24,9 @@ export interface PhoneProps extends Omit<InputProps, 'type' | 'mask' | 'placehol
24
24
  type: 'phone';
25
25
  setValue: (value: string) => void;
26
26
  value?: string;
27
+ placeholder?: Partial<{
28
+ [k in keyof Countries]: string;
29
+ }>;
27
30
  }
28
31
  export interface Details {
29
32
  country: Country;
package/dist/index.js CHANGED
@@ -15262,13 +15262,14 @@ var Component = React__default.forwardRef(function (props, ref) {
15262
15262
  var v = inputValue.replace(/\D+/g, '').substring(0, country.charLimit);
15263
15263
  setValue(country.ddi + " " + v);
15264
15264
  }, [inputValue]);
15265
+ var placeholder = props.placeholder && props.placeholder[country.iso] ? props.placeholder[country.iso] : country.placeholder;
15265
15266
  return React__default.createElement(RelativeContainer$3, {
15266
15267
  ref: useOnClickOut(function () {
15267
15268
  return setOpen(false);
15268
15269
  })
15269
15270
  }, React__default.createElement(Input$1, Object.assign({}, props, {
15270
15271
  type: 'text',
15271
- placeholder: country.placeholder,
15272
+ placeholder: placeholder,
15272
15273
  mask: mask,
15273
15274
  value: inputValue,
15274
15275
  setValue: setInputValue,