@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 +18 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7849,6 +7849,7 @@ var ModalPassengerForm = ({
|
|
|
7849
7849
|
defaultValues
|
|
7850
7850
|
});
|
|
7851
7851
|
const idType = watch("idType");
|
|
7852
|
+
const watchPassportCountry = watch("country");
|
|
7852
7853
|
useEffect(() => {
|
|
7853
7854
|
reset(defaultValues);
|
|
7854
7855
|
}, [defaultValues, reset]);
|
|
@@ -7856,7 +7857,7 @@ var ModalPassengerForm = ({
|
|
|
7856
7857
|
if (idType) {
|
|
7857
7858
|
setValue("idNumber", "");
|
|
7858
7859
|
}
|
|
7859
|
-
}, [idType, setValue]);
|
|
7860
|
+
}, [idType, watchPassportCountry, setValue]);
|
|
7860
7861
|
const handleFormSubmit = (data) => {
|
|
7861
7862
|
onSubmit(data);
|
|
7862
7863
|
reset();
|
|
@@ -7984,7 +7985,22 @@ var ModalPassengerForm = ({
|
|
|
7984
7985
|
}
|
|
7985
7986
|
}
|
|
7986
7987
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7987
|
-
idType === "paspor" && /* @__PURE__ */ jsx(
|
|
7988
|
+
idType === "paspor" && /* @__PURE__ */ jsx(
|
|
7989
|
+
InputDynamic_default,
|
|
7990
|
+
{
|
|
7991
|
+
menuPlacement: "top",
|
|
7992
|
+
name: "country",
|
|
7993
|
+
control,
|
|
7994
|
+
type: "country",
|
|
7995
|
+
label: mergedLabels.countryLabel,
|
|
7996
|
+
placeholder: mergedLabels.countryPlaceholder,
|
|
7997
|
+
size: "large",
|
|
7998
|
+
required: true,
|
|
7999
|
+
validationRules: {
|
|
8000
|
+
required: mergedErrors.requiredCountry
|
|
8001
|
+
}
|
|
8002
|
+
}
|
|
8003
|
+
),
|
|
7988
8004
|
/* @__PURE__ */ jsx(
|
|
7989
8005
|
InputDynamic_default,
|
|
7990
8006
|
{
|