@ikatec/nebula-react 1.0.6 → 1.0.7

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/index.js CHANGED
@@ -3473,7 +3473,7 @@ function InputPhone({
3473
3473
  defaultCountry = "BR",
3474
3474
  ...props
3475
3475
  }) {
3476
- const valueCorrection = value.length && !value.startsWith("+") ? `+${value}` : value;
3476
+ const valueCorrection = value && value.toString().length && !value.toString().startsWith("+") ? `+${value}` : value;
3477
3477
  return /* @__PURE__ */ jsxRuntime.jsx(
3478
3478
  RPNInput__namespace.default,
3479
3479
  {
@@ -3490,7 +3490,7 @@ function InputPhone({
3490
3490
  countrySelectComponent: CountrySelect,
3491
3491
  inputComponent: PhoneInput,
3492
3492
  disabled,
3493
- value: valueCorrection,
3493
+ value: valueCorrection?.toString(),
3494
3494
  onChange: (newValue) => onChange(newValue ?? ""),
3495
3495
  countryCallingCodeEditable: true,
3496
3496
  initialValueFormat: "national",
package/dist/index.mjs CHANGED
@@ -3433,7 +3433,7 @@ function InputPhone({
3433
3433
  defaultCountry = "BR",
3434
3434
  ...props
3435
3435
  }) {
3436
- const valueCorrection = value.length && !value.startsWith("+") ? `+${value}` : value;
3436
+ const valueCorrection = value && value.toString().length && !value.toString().startsWith("+") ? `+${value}` : value;
3437
3437
  return /* @__PURE__ */ jsx(
3438
3438
  RPNInput.default,
3439
3439
  {
@@ -3450,7 +3450,7 @@ function InputPhone({
3450
3450
  countrySelectComponent: CountrySelect,
3451
3451
  inputComponent: PhoneInput,
3452
3452
  disabled,
3453
- value: valueCorrection,
3453
+ value: valueCorrection?.toString(),
3454
3454
  onChange: (newValue) => onChange(newValue ?? ""),
3455
3455
  countryCallingCodeEditable: true,
3456
3456
  initialValueFormat: "national",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikatec/nebula-react",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React components",
5
5
  "publishConfig": {
6
6
  "access": "public"