@arkyn/components 1.4.51 → 1.4.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/components",
3
- "version": "1.4.51",
3
+ "version": "1.4.54",
4
4
  "main": "./dist/bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Lucas Gonçalves",
@@ -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
- ...rest
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={fixedValue || value}
162
162
  onChange={(e) => {
163
163
  setValue(e);
164
164
  onChange && onChange(inputValue(e));
package/vite.config.js CHANGED
@@ -13,6 +13,7 @@ export default defineConfig({
13
13
  "lucide-react",
14
14
  "react",
15
15
  "react-dom",
16
+ "@arkyn/components",
16
17
  ],
17
18
  output: { format: "esm" },
18
19
  },