@asdp/ferryui 0.1.22-dev.8698 → 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 +24 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -510,9 +510,13 @@ var CardPromo = ({
|
|
|
510
510
|
"img",
|
|
511
511
|
{
|
|
512
512
|
className: classes.image,
|
|
513
|
-
src: imageUrl,
|
|
513
|
+
src: imageUrl ?? "/",
|
|
514
514
|
role: "presentation",
|
|
515
|
-
alt: displayImageAlt
|
|
515
|
+
alt: displayImageAlt,
|
|
516
|
+
onError: (e) => {
|
|
517
|
+
e.currentTarget.src = "/assets/images/helper/error.svg";
|
|
518
|
+
e.currentTarget.style.objectFit = "fill";
|
|
519
|
+
}
|
|
516
520
|
}
|
|
517
521
|
) }),
|
|
518
522
|
!imageOnly && /* @__PURE__ */ jsxs(Row, { className: classes.infoWrapper, children: [
|
|
@@ -7845,6 +7849,7 @@ var ModalPassengerForm = ({
|
|
|
7845
7849
|
defaultValues
|
|
7846
7850
|
});
|
|
7847
7851
|
const idType = watch("idType");
|
|
7852
|
+
const watchPassportCountry = watch("country");
|
|
7848
7853
|
useEffect(() => {
|
|
7849
7854
|
reset(defaultValues);
|
|
7850
7855
|
}, [defaultValues, reset]);
|
|
@@ -7852,7 +7857,7 @@ var ModalPassengerForm = ({
|
|
|
7852
7857
|
if (idType) {
|
|
7853
7858
|
setValue("idNumber", "");
|
|
7854
7859
|
}
|
|
7855
|
-
}, [idType, setValue]);
|
|
7860
|
+
}, [idType, watchPassportCountry, setValue]);
|
|
7856
7861
|
const handleFormSubmit = (data) => {
|
|
7857
7862
|
onSubmit(data);
|
|
7858
7863
|
reset();
|
|
@@ -7980,7 +7985,22 @@ var ModalPassengerForm = ({
|
|
|
7980
7985
|
}
|
|
7981
7986
|
}
|
|
7982
7987
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7983
|
-
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
|
+
),
|
|
7984
8004
|
/* @__PURE__ */ jsx(
|
|
7985
8005
|
InputDynamic_default,
|
|
7986
8006
|
{
|