@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.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11226,7 +11226,15 @@ var ModalPassengerForm = ({
|
|
|
11226
11226
|
const [capturedImage, setCapturedImage] = React.useState(null);
|
|
11227
11227
|
const [stream, setStream] = React.useState(null);
|
|
11228
11228
|
const videoRef = React.useRef(null);
|
|
11229
|
-
const {
|
|
11229
|
+
const {
|
|
11230
|
+
control,
|
|
11231
|
+
handleSubmit,
|
|
11232
|
+
reset,
|
|
11233
|
+
watch,
|
|
11234
|
+
setValue,
|
|
11235
|
+
trigger,
|
|
11236
|
+
formState: { isValid }
|
|
11237
|
+
} = reactHookForm.useForm({
|
|
11230
11238
|
mode: "all",
|
|
11231
11239
|
defaultValues
|
|
11232
11240
|
});
|
|
@@ -11774,6 +11782,10 @@ var ModalPassengerForm = ({
|
|
|
11774
11782
|
control,
|
|
11775
11783
|
type: "text",
|
|
11776
11784
|
label: mergedLabels.nameLabel,
|
|
11785
|
+
onInput: (e) => {
|
|
11786
|
+
const target = e.currentTarget;
|
|
11787
|
+
target.value = target.value.replace(/[^a-zA-Z\s]/g, "");
|
|
11788
|
+
},
|
|
11777
11789
|
placeholder: mergedLabels.namePlaceholder,
|
|
11778
11790
|
size: "large",
|
|
11779
11791
|
required: true,
|