@asdp/ferryui 0.1.22-dev.9856 → 0.1.22-dev.9939

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
@@ -11217,7 +11217,15 @@ var ModalPassengerForm = ({
11217
11217
  const [capturedImage, setCapturedImage] = useState(null);
11218
11218
  const [stream, setStream] = useState(null);
11219
11219
  const videoRef = useRef(null);
11220
- const { control, handleSubmit, reset, watch, setValue, trigger, formState: { isValid } } = useForm({
11220
+ const {
11221
+ control,
11222
+ handleSubmit,
11223
+ reset,
11224
+ watch,
11225
+ setValue,
11226
+ trigger,
11227
+ formState: { isValid }
11228
+ } = useForm({
11221
11229
  mode: "all",
11222
11230
  defaultValues
11223
11231
  });
@@ -11765,6 +11773,10 @@ var ModalPassengerForm = ({
11765
11773
  control,
11766
11774
  type: "text",
11767
11775
  label: mergedLabels.nameLabel,
11776
+ onInput: (e) => {
11777
+ const target = e.currentTarget;
11778
+ target.value = target.value.replace(/[^a-zA-Z\s]/g, "");
11779
+ },
11768
11780
  placeholder: mergedLabels.namePlaceholder,
11769
11781
  size: "large",
11770
11782
  required: true,