@appcorp/fusion-storybook 0.3.37 → 0.3.39
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/base-modules/student-fee/context/use-student-fee-module.js +1 -0
- package/base-modules/student-profile/form.js +1 -1
- package/base-modules/student-profile/validate.d.ts +2 -2
- package/base-modules/student-profile/validate.js +2 -2
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -103,7 +103,7 @@ export const StudentProfileForm = () => {
|
|
|
103
103
|
value: discountCodeId !== null && discountCodeId !== void 0 ? discountCodeId : "",
|
|
104
104
|
});
|
|
105
105
|
return (_jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "space-y-4", children: [_jsx("h3", { className: "text-lg font-semibold", children: t("formSectionPersonalInformation") }), _jsxs("div", { className: "grid grid-cols-1 gap-4", children: [_jsx(EnhancedInput, { error: getTranslatedError({ errors, key: "firstName", t }), id: "firstName", info: t("formFirstNameInfo"), label: t("formFirstNameLabel"), onChange: (e) => handleChange("firstName", e.target.value), placeholder: t("formFirstNamePlaceholder"), required: true, value: firstName }), _jsx(EnhancedInput, { error: getTranslatedError({ errors, key: "lastName", t }), id: "lastName", info: t("formLastNameInfo"), label: t("formLastNameLabel"), onChange: (e) => handleChange("lastName", e.target.value), placeholder: t("formLastNamePlaceholder"), required: true, value: lastName }), _jsx(EnhancedInput, { error: getTranslatedError({ errors, key: "dateOfBirth", t }), id: "dateOfBirth", info: t("formDateOfBirthInfo"), label: t("formDateOfBirthLabel"), onChange: (e) => handleChange("dateOfBirth", e.target.value), onClick: (e) => { var _a, _b; return (_b = (_a = e.currentTarget).showPicker) === null || _b === void 0 ? void 0 : _b.call(_a); }, type: "date", value: dateOfBirth
|
|
106
|
-
? new Date(dateOfBirth).toISOString().split("
|
|
106
|
+
? new Date(dateOfBirth).toISOString().split("T")[0]
|
|
107
107
|
: "" }), genderCombo] })] }), _jsxs("div", { className: "space-y-4", children: [_jsx("h3", { className: "text-lg font-semibold", children: t("formSectionContactInformation") }), _jsxs("div", { className: "grid grid-cols-1 gap-4", children: [_jsx(EnhancedInput, { error: getTranslatedError({ errors, key: "phone", t }), id: "phone", info: t("formPhoneInfo"), label: t("formPhoneLabel"), onChange: (e) => {
|
|
108
108
|
var _a;
|
|
109
109
|
return handleChange("phone", ((_a = formatPhone(e.target.value)) === null || _a === void 0 ? void 0 : _a.international) || e.target.value);
|
|
@@ -13,8 +13,8 @@ export declare const VALIDATION_KEYS: {
|
|
|
13
13
|
export declare const studentProfileFormValidation: z.ZodObject<{
|
|
14
14
|
firstName: z.ZodString;
|
|
15
15
|
lastName: z.ZodString;
|
|
16
|
-
phone: z.ZodPipe<z.ZodOptional<z.ZodString
|
|
17
|
-
emergencyPhone: z.ZodPipe<z.ZodOptional<z.ZodString
|
|
16
|
+
phone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null | undefined, string | null | undefined>>;
|
|
17
|
+
emergencyPhone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null | undefined, string | null | undefined>>;
|
|
18
18
|
status: z.ZodString;
|
|
19
19
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
20
20
|
enrollmentDate: z.ZodOptional<z.ZodString>;
|
|
@@ -16,11 +16,11 @@ export const studentProfileFormValidation = z.object({
|
|
|
16
16
|
lastName: z.string().min(1, VALIDATION_KEYS.lastNameRequired),
|
|
17
17
|
phone: z
|
|
18
18
|
.string()
|
|
19
|
-
.
|
|
19
|
+
.nullish()
|
|
20
20
|
.transform((val) => { var _a; return (val ? (_a = toE164Phone(val)) !== null && _a !== void 0 ? _a : val : val); }),
|
|
21
21
|
emergencyPhone: z
|
|
22
22
|
.string()
|
|
23
|
-
.
|
|
23
|
+
.nullish()
|
|
24
24
|
.transform((val) => { var _a; return (val ? (_a = toE164Phone(val)) !== null && _a !== void 0 ? _a : val : val); }),
|
|
25
25
|
status: z.string().min(1, VALIDATION_KEYS.statusRequired),
|
|
26
26
|
dateOfBirth: z.string().optional(),
|