@asdp/ferryui 0.1.22-dev.9823 → 0.1.22-dev.9825

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
@@ -10715,7 +10715,6 @@ var ModalListPassenger = ({
10715
10715
  placeholder: mergedLabels.searchPlaceholder,
10716
10716
  value: searchQuery,
10717
10717
  onChange: (_, data) => {
10718
- console.log(155, data);
10719
10718
  onSearchChange(data.value);
10720
10719
  },
10721
10720
  size: "large"
@@ -10734,12 +10733,6 @@ var ModalListPassenger = ({
10734
10733
  const isDifferentAge = passenger.ageId !== passengerAgeId;
10735
10734
  const isExcludedFromSearch = searchQuery ? !passenger.fullName.toLowerCase().includes(searchQuery.toLowerCase()) : false;
10736
10735
  const isDisabled = isDifferentAge || isExcludedFromSearch;
10737
- console.log(
10738
- 170,
10739
- isDisabled,
10740
- isDifferentAge,
10741
- isExcludedFromSearch
10742
- );
10743
10736
  return /* @__PURE__ */ jsxs(
10744
10737
  "div",
10745
10738
  {
@@ -11173,7 +11166,8 @@ var ModalPassengerForm = ({
11173
11166
  cityOptions,
11174
11167
  idTypes,
11175
11168
  ticketClassOptions,
11176
- onScanComplete
11169
+ onScanComplete,
11170
+ isLoading
11177
11171
  }) => {
11178
11172
  const styles = useStyles24();
11179
11173
  const mergedLabels = { ...DEFAULT_LABELS23[language], ...labels };
@@ -11190,7 +11184,7 @@ var ModalPassengerForm = ({
11190
11184
  const [capturedImage, setCapturedImage] = useState(null);
11191
11185
  const [stream, setStream] = useState(null);
11192
11186
  const videoRef = useRef(null);
11193
- const { control, handleSubmit, reset, watch, setValue, trigger } = useForm({
11187
+ const { control, handleSubmit, reset, watch, setValue, trigger, formState: { isValid } } = useForm({
11194
11188
  mode: "all",
11195
11189
  defaultValues
11196
11190
  });
@@ -11919,6 +11913,8 @@ var ModalPassengerForm = ({
11919
11913
  size: "large",
11920
11914
  shape: "circular",
11921
11915
  type: "submit",
11916
+ disabled: !isValid || isLoading,
11917
+ icon: isLoading ? /* @__PURE__ */ jsx(Spinner, { size: "tiny" }) : void 0,
11922
11918
  children: mergedLabels.saveButton
11923
11919
  }
11924
11920
  ),