@asdp/ferryui 0.1.22-dev.9610 → 0.1.22-dev.9630

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
@@ -4233,7 +4233,8 @@ var InputDynamic = ({
4233
4233
  ...provided,
4234
4234
  minHeight: "40px",
4235
4235
  // fontSize: tokens.fontSizeBase400,
4236
- transition: "all 0.2s ease"
4236
+ transition: "all 0.2s ease",
4237
+ cursor: disabled ? "not-allowed" : "pointer"
4237
4238
  };
4238
4239
  if (currentAppearance === "outline") {
4239
4240
  return {
@@ -12785,6 +12786,7 @@ var CardVehicleOwnerForm = ({
12785
12786
  onUpdateOwner(owner.id, {
12786
12787
  cargoItems: updatedCargoItems
12787
12788
  });
12789
+ setValue(`owners.${index}.cargo.${cargoIndex}.cargoType`, "");
12788
12790
  },
12789
12791
  options: commodityOptions,
12790
12792
  placeholder: mergedLabels.selectPlaceholder,
@@ -12835,7 +12837,12 @@ var CardVehicleOwnerForm = ({
12835
12837
  cargoItems: updatedCargoItems
12836
12838
  });
12837
12839
  },
12838
- options: loadTypeOptions,
12840
+ options: loadTypeOptions.filter((lt) => lt.commodityId === (getValues(
12841
+ `owners.${index}.cargo.${cargoIndex}.commodity`
12842
+ ) || "")).map((lt) => ({
12843
+ value: lt.id.toString(),
12844
+ label: `${lt.name} (${lt.unit?.name})`
12845
+ })),
12839
12846
  placeholder: mergedLabels.selectPlaceholder,
12840
12847
  required: true,
12841
12848
  size: "large",