@asdp/ferryui 0.1.22-dev.8732 → 0.1.22-dev.8766

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
@@ -7858,6 +7858,7 @@ var ModalPassengerForm = ({
7858
7858
  defaultValues
7859
7859
  });
7860
7860
  const idType = watch("idType");
7861
+ const watchPassportCountry = watch("country");
7861
7862
  React5.useEffect(() => {
7862
7863
  reset(defaultValues);
7863
7864
  }, [defaultValues, reset]);
@@ -7865,7 +7866,7 @@ var ModalPassengerForm = ({
7865
7866
  if (idType) {
7866
7867
  setValue("idNumber", "");
7867
7868
  }
7868
- }, [idType, setValue]);
7869
+ }, [idType, watchPassportCountry, setValue]);
7869
7870
  const handleFormSubmit = (data) => {
7870
7871
  onSubmit(data);
7871
7872
  reset();
@@ -7993,7 +7994,22 @@ var ModalPassengerForm = ({
7993
7994
  }
7994
7995
  }
7995
7996
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7996
- idType === "paspor" && /* @__PURE__ */ jsxRuntime.jsx(InputDynamic_default, { menuPlacement: "top", name: "country", control, type: "country", label: mergedLabels.countryLabel, placeholder: mergedLabels.countryPlaceholder, size: "large", required: true, validationRules: { required: mergedErrors.requiredCountry } }),
7997
+ idType === "paspor" && /* @__PURE__ */ jsxRuntime.jsx(
7998
+ InputDynamic_default,
7999
+ {
8000
+ menuPlacement: "top",
8001
+ name: "country",
8002
+ control,
8003
+ type: "country",
8004
+ label: mergedLabels.countryLabel,
8005
+ placeholder: mergedLabels.countryPlaceholder,
8006
+ size: "large",
8007
+ required: true,
8008
+ validationRules: {
8009
+ required: mergedErrors.requiredCountry
8010
+ }
8011
+ }
8012
+ ),
7997
8013
  /* @__PURE__ */ jsxRuntime.jsx(
7998
8014
  InputDynamic_default,
7999
8015
  {