@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 CHANGED
@@ -519,9 +519,13 @@ var CardPromo = ({
519
519
  "img",
520
520
  {
521
521
  className: classes.image,
522
- src: imageUrl,
522
+ src: imageUrl ?? "/",
523
523
  role: "presentation",
524
- alt: displayImageAlt
524
+ alt: displayImageAlt,
525
+ onError: (e) => {
526
+ e.currentTarget.src = "/assets/images/helper/error.svg";
527
+ e.currentTarget.style.objectFit = "fill";
528
+ }
525
529
  }
526
530
  ) }),
527
531
  !imageOnly && /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { className: classes.infoWrapper, children: [
@@ -7854,6 +7858,7 @@ var ModalPassengerForm = ({
7854
7858
  defaultValues
7855
7859
  });
7856
7860
  const idType = watch("idType");
7861
+ const watchPassportCountry = watch("country");
7857
7862
  React5.useEffect(() => {
7858
7863
  reset(defaultValues);
7859
7864
  }, [defaultValues, reset]);
@@ -7861,7 +7866,7 @@ var ModalPassengerForm = ({
7861
7866
  if (idType) {
7862
7867
  setValue("idNumber", "");
7863
7868
  }
7864
- }, [idType, setValue]);
7869
+ }, [idType, watchPassportCountry, setValue]);
7865
7870
  const handleFormSubmit = (data) => {
7866
7871
  onSubmit(data);
7867
7872
  reset();
@@ -7989,7 +7994,22 @@ var ModalPassengerForm = ({
7989
7994
  }
7990
7995
  }
7991
7996
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7992
- 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
+ ),
7993
8013
  /* @__PURE__ */ jsxRuntime.jsx(
7994
8014
  InputDynamic_default,
7995
8015
  {