@asdp/ferryui 0.1.22-dev.9209 → 0.1.22-dev.9214

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.mjs CHANGED
@@ -3124,6 +3124,7 @@ var InputDynamic = ({
3124
3124
  hasError = false,
3125
3125
  autoComplete,
3126
3126
  onInput,
3127
+ onlyCountries,
3127
3128
  contentAfter,
3128
3129
  onChange,
3129
3130
  language = "id",
@@ -3701,6 +3702,10 @@ var InputDynamic = ({
3701
3702
  return stringVal;
3702
3703
  };
3703
3704
  const cleanedFieldValue = cleanPhoneValue(field.value || "");
3705
+ const phoneInputProps = {};
3706
+ if (onlyCountries) {
3707
+ phoneInputProps.onlyCountries = onlyCountries;
3708
+ }
3704
3709
  return /* @__PURE__ */ jsx(
3705
3710
  "div",
3706
3711
  {
@@ -3708,17 +3713,19 @@ var InputDynamic = ({
3708
3713
  children: /* @__PURE__ */ jsx(
3709
3714
  PhoneInput,
3710
3715
  {
3716
+ ...phoneInputProps,
3717
+ onlyCountries,
3711
3718
  country: defaultCountry.toLowerCase(),
3712
- value: cleanedFieldValue,
3719
+ disabled,
3720
+ disableSearchIcon: true,
3721
+ enableSearch: true,
3722
+ inputStyle: phoneInputSizeStyle,
3713
3723
  onChange: (value, data) => {
3714
3724
  const cleanedValue = cleanPhoneValue(value || "");
3715
3725
  field.onChange(cleanedValue);
3716
3726
  },
3717
3727
  placeholder: placeholder || mergedLabels.phoneDefaultPlaceholder,
3718
- disabled,
3719
- enableSearch: true,
3720
- disableSearchIcon: true,
3721
- inputStyle: phoneInputSizeStyle
3728
+ value: cleanedFieldValue
3722
3729
  }
3723
3730
  )
3724
3731
  }