@asdp/ferryui 0.1.22-dev.9800 → 0.1.22-dev.9803

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
@@ -10619,13 +10619,12 @@ var ModalListPassenger = ({
10619
10619
  onClose,
10620
10620
  title,
10621
10621
  passengers,
10622
+ passengerAgeId,
10622
10623
  searchQuery,
10623
10624
  onSearchChange,
10624
10625
  onSelectPassenger,
10625
10626
  onEditPassenger,
10626
10627
  onAddPassenger
10627
- // sameAsOrderer,
10628
- // onSameAsOrdererChange,
10629
10628
  }) => {
10630
10629
  const styles = useStyles23();
10631
10630
  const mergedLabels = { ...DEFAULT_LABELS22[language], ...labels };
@@ -10671,7 +10670,9 @@ var ModalListPassenger = ({
10671
10670
  size: "large"
10672
10671
  }
10673
10672
  ),
10674
- /* @__PURE__ */ jsx("div", { className: styles.passengerList, children: filteredPassengers.map((passenger, index) => /* @__PURE__ */ jsxs(
10673
+ /* @__PURE__ */ jsx("div", { className: styles.passengerList, children: filteredPassengers.filter(
10674
+ (item) => item.ageId === passengerAgeId
10675
+ ).map((passenger, index) => /* @__PURE__ */ jsxs(
10675
10676
  "div",
10676
10677
  {
10677
10678
  className: styles.passengerItem,
@@ -12160,7 +12161,7 @@ var CardVehicleDetail = ({
12160
12161
  },
12161
12162
  children: [
12162
12163
  /* @__PURE__ */ jsx(Subtitle1, { className: styles.headerTitle, children: mergedLabels.title }),
12163
- /* @__PURE__ */ jsx("div", { style: { flex: 1, marginLeft: "1rem" }, children: /* @__PURE__ */ jsx(Divider, {}) })
12164
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsx(Divider, {}) })
12164
12165
  ]
12165
12166
  }
12166
12167
  ),
@@ -12963,7 +12964,10 @@ var CardVehicleOwnerForm = ({
12963
12964
  onUpdateOwner(owner.id, {
12964
12965
  cargoItems: updatedCargoItems
12965
12966
  });
12966
- setValue(`owners.${index}.cargo.${cargoIndex}.cargoType`, "");
12967
+ setValue(
12968
+ `owners.${index}.cargo.${cargoIndex}.cargoType`,
12969
+ ""
12970
+ );
12967
12971
  },
12968
12972
  options: commodityOptions,
12969
12973
  placeholder: mergedLabels.selectPlaceholder,
@@ -13014,9 +13018,11 @@ var CardVehicleOwnerForm = ({
13014
13018
  cargoItems: updatedCargoItems
13015
13019
  });
13016
13020
  },
13017
- options: loadTypeOptions.filter((lt) => lt.commodityId === (getValues(
13018
- `owners.${index}.cargo.${cargoIndex}.commodity`
13019
- ) || "")).map((lt) => ({
13021
+ options: loadTypeOptions.filter(
13022
+ (lt) => lt.commodityId === (getValues(
13023
+ `owners.${index}.cargo.${cargoIndex}.commodity`
13024
+ ) || "")
13025
+ ).map((lt) => ({
13020
13026
  value: lt.id.toString(),
13021
13027
  label: `${lt.name} (${lt.unit?.name})`
13022
13028
  })),