igloo-d2c-components 1.0.40 → 1.0.41
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/esm/index.js
CHANGED
|
@@ -3745,8 +3745,19 @@ const FullWidthField$1 = styled(Box)({
|
|
|
3745
3745
|
gridColumn: '1 / -1',
|
|
3746
3746
|
},
|
|
3747
3747
|
});
|
|
3748
|
-
|
|
3748
|
+
/**
|
|
3749
|
+
* Wrapper for consent checkboxes - 28px gap between them on desktop (per design)
|
|
3750
|
+
*/
|
|
3751
|
+
const ConsentCheckboxesWrapper = styled(Box)({
|
|
3752
|
+
display: 'flex',
|
|
3753
|
+
flexDirection: 'column',
|
|
3754
|
+
gap: '24px',
|
|
3749
3755
|
marginTop: '12px',
|
|
3756
|
+
'@media (min-width: 900px)': {
|
|
3757
|
+
gap: '28px',
|
|
3758
|
+
},
|
|
3759
|
+
});
|
|
3760
|
+
const CheckboxContainer$1 = styled(Box)({
|
|
3750
3761
|
'& .MuiFormControlLabel-root': {
|
|
3751
3762
|
alignItems: 'center',
|
|
3752
3763
|
marginLeft: 0,
|
|
@@ -3778,21 +3789,23 @@ const PersonalInformationForm = ({ renderField, fields, consents, onSubmit, form
|
|
|
3778
3789
|
color: '#5F5E62',
|
|
3779
3790
|
fontSize: '12px',
|
|
3780
3791
|
wordSpacing: '-5px',
|
|
3781
|
-
} }, { children: fields.full_name.helperText })))] }), renderField(fields.nric), renderField(fields.
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3792
|
+
} }, { children: fields.full_name.helperText })))] }), renderField(fields.nric), renderField(fields.salutation), renderField(fields.date_of_birth), renderField(fields.gender), renderField(fields.nationality), fields.place_of_birth && renderField(fields.place_of_birth), fields.marital_status && renderField(fields.marital_status), fields.race && renderField(fields.race), fields.religion && renderField(fields.religion), renderField(fields.occupation), renderField(fields.industry), renderField(fields.crediting_bank_name), renderField(fields.crediting_bank_account_number), fields.annual_income && renderField(fields.annual_income), desktopGridLayout ? (jsx(FullWidthField$1, { children: jsxs(ConsentCheckboxesWrapper, { children: [jsxs(CheckboxContainer$1, { children: [jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.bank_account_confirmation.checked, onChange: (e) => consents.bank_account_confirmation.onChange(e.target.checked), name: "bank_account_confirmation" }), label: jsx(CheckboxLabel$1, { children: consents.bank_account_confirmation.label ||
|
|
3793
|
+
defaultBankConfirmationLabel }) }), consents.bank_account_confirmation.error && (jsx(Typography, Object.assign({ sx: {
|
|
3794
|
+
color: 'error.main',
|
|
3795
|
+
fontSize: '12px',
|
|
3796
|
+
mt: 0.5,
|
|
3797
|
+
ml: 4,
|
|
3798
|
+
wordSpacing: '-5px',
|
|
3799
|
+
} }, { children: consents.bank_account_confirmation.error })))] }), jsx(CheckboxContainer$1, { children: jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.marketing_consent.checked, onChange: (e) => consents.marketing_consent.onChange(e.target.checked), name: "marketing_consent" }), label: jsx(CheckboxLabel$1, { children: consents.marketing_consent.label ||
|
|
3800
|
+
defaultMarketingLabel }) }) })] }) })) : (jsxs(ConsentCheckboxesWrapper, { children: [jsxs(CheckboxContainer$1, { children: [jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.bank_account_confirmation.checked, onChange: (e) => consents.bank_account_confirmation.onChange(e.target.checked), name: "bank_account_confirmation" }), label: jsx(CheckboxLabel$1, { children: consents.bank_account_confirmation.label ||
|
|
3801
|
+
defaultBankConfirmationLabel }) }), consents.bank_account_confirmation.error && (jsx(Typography, Object.assign({ sx: {
|
|
3802
|
+
color: 'error.main',
|
|
3803
|
+
fontSize: '12px',
|
|
3804
|
+
mt: 0.5,
|
|
3805
|
+
ml: 4,
|
|
3806
|
+
wordSpacing: '-5px',
|
|
3807
|
+
} }, { children: consents.bank_account_confirmation.error })))] }), jsx(CheckboxContainer$1, { children: jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.marketing_consent.checked, onChange: (e) => consents.marketing_consent.onChange(e.target.checked), name: "marketing_consent" }), label: jsx(CheckboxLabel$1, { children: consents.marketing_consent.label ||
|
|
3808
|
+
defaultMarketingLabel }) }) })] }))] })) })));
|
|
3796
3809
|
};
|
|
3797
3810
|
|
|
3798
3811
|
const FormContainer$2 = styled(Box)({
|