@arkyn/components 1.4.51 → 1.4.55
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/bundle.js +12119 -129735
- package/dist/bundle.umd.cjs +72 -2672
- package/dist/components/PhoneInput/index.js +3 -3
- package/dist/components/PhoneInput/services/getDefaultFormatPhoneNumber.d.ts +75 -75
- package/package.json +1 -1
- package/src/components/PhoneInput/index.tsx +3 -3
- package/vite.config.js +1 -0
package/package.json
CHANGED
@@ -26,7 +26,7 @@ function PhoneInput(props: PhoneInputProps) {
|
|
26
26
|
onChange,
|
27
27
|
searchCountryPlaceholder = "Pesquisar país",
|
28
28
|
notFoundCountryText = "Nenhum país encontrado",
|
29
|
-
|
29
|
+
value: fixedValue,
|
30
30
|
} = props;
|
31
31
|
|
32
32
|
const defaultData = getDefaultFormatPhoneNumber(defaultValue);
|
@@ -101,7 +101,7 @@ function PhoneInput(props: PhoneInputProps) {
|
|
101
101
|
let returnValue = currentCountry.code;
|
102
102
|
if (currentCountry.prefix) returnValue += `-${currentCountry.prefix}`;
|
103
103
|
returnValue += " ";
|
104
|
-
returnValue += removeNumberMasks(props || value);
|
104
|
+
returnValue += removeNumberMasks(fixedValue || props || value);
|
105
105
|
return returnValue;
|
106
106
|
}
|
107
107
|
|
@@ -158,7 +158,7 @@ function PhoneInput(props: PhoneInputProps) {
|
|
158
158
|
<PhoneInputMask
|
159
159
|
ref={inputPhoneMaskRef}
|
160
160
|
currentCountry={currentCountry}
|
161
|
-
value={value}
|
161
|
+
value={inputValue(fixedValue || value)}
|
162
162
|
onChange={(e) => {
|
163
163
|
setValue(e);
|
164
164
|
onChange && onChange(inputValue(e));
|