@redneckz/wildless-cms-uni-blocks 0.14.574 → 0.14.576
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/bundle/api/LeadServiceAPI.d.ts +0 -12
- package/bundle/api/dadataHints/dadataHints.d.ts +2 -0
- package/bundle/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/bundle/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +260 -110
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/bundle/index.d.ts +0 -1
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/bundle/ui-kit/Input/InputPopup.d.ts +7 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/bundle/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/dist/api/LeadServiceAPI.d.ts +0 -12
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/api/dadataHints/dadataHints.d.ts +2 -0
- package/dist/api/dadataHints/dadataHints.js +30 -0
- package/dist/api/dadataHints/dadataHints.js.map +1 -0
- package/dist/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/dist/api/dadataHints/dadataHintsType.js +2 -0
- package/dist/api/dadataHints/dadataHintsType.js.map +1 -0
- package/dist/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/dist/api/dadataHints/hintsListsOptions.js +33 -0
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/consents.js +13 -0
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
- package/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/EmailField.js +12 -0
- package/dist/ui-kit/FormField/Fields/EmailField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +18 -5
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +8 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +17 -1
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputPopup.d.ts +7 -0
- package/dist/ui-kit/Input/InputPopup.js +6 -0
- package/dist/ui-kit/Input/InputPopup.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/dist/ui-kit/Input/useInputPopup.js +62 -0
- package/dist/ui-kit/Input/useInputPopup.js.map +1 -0
- package/lib/api/LeadServiceAPI.d.ts +0 -12
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/api/dadataHints/dadataHints.d.ts +2 -0
- package/lib/api/dadataHints/dadataHints.js +27 -0
- package/lib/api/dadataHints/dadataHints.js.map +1 -0
- package/lib/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/lib/api/dadataHints/dadataHintsType.js +2 -0
- package/lib/api/dadataHints/dadataHintsType.js.map +1 -0
- package/lib/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/lib/api/dadataHints/hintsListsOptions.js +31 -0
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/consents.js +11 -0
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
- package/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/EmailField.js +10 -0
- package/lib/ui-kit/FormField/Fields/EmailField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +18 -5
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +8 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +17 -1
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputPopup.d.ts +7 -0
- package/lib/ui-kit/Input/InputPopup.js +4 -0
- package/lib/ui-kit/Input/InputPopup.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/lib/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/lib/ui-kit/Input/useInputPopup.js +59 -0
- package/lib/ui-kit/Input/useInputPopup.js.map +1 -0
- package/mobile/bundle/api/LeadServiceAPI.d.ts +0 -12
- package/mobile/bundle/api/dadataHints/dadataHints.d.ts +2 -0
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/mobile/bundle/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/mobile/bundle/bundle.umd.js +260 -110
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/bundle/index.d.ts +0 -1
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +7 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/mobile/dist/api/LeadServiceAPI.d.ts +0 -12
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHints.d.ts +2 -0
- package/mobile/dist/api/dadataHints/dadataHints.js +30 -0
- package/mobile/dist/api/dadataHints/dadataHints.js.map +1 -0
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/mobile/dist/api/dadataHints/dadataHintsType.js +2 -0
- package/mobile/dist/api/dadataHints/dadataHintsType.js.map +1 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +33 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +30 -0
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.js +13 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/index.d.ts +0 -1
- package/mobile/dist/index.js +1 -3
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmailField.js +12 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmailField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +18 -5
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +17 -1
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputPopup.d.ts +7 -0
- package/mobile/dist/ui-kit/Input/InputPopup.js +6 -0
- package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/mobile/dist/ui-kit/Input/useInputPopup.js +62 -0
- package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -0
- package/mobile/lib/api/LeadServiceAPI.d.ts +0 -12
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHints.d.ts +2 -0
- package/mobile/lib/api/dadataHints/dadataHints.js +27 -0
- package/mobile/lib/api/dadataHints/dadataHints.js.map +1 -0
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +27 -0
- package/mobile/lib/api/dadataHints/dadataHintsType.js +2 -0
- package/mobile/lib/api/dadataHints/dadataHintsType.js.map +1 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.d.ts +33 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +31 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +11 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +10 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +2 -0
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +28 -0
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.js +11 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +22 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +6 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/index.d.ts +0 -1
- package/mobile/lib/index.js +0 -1
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +0 -5
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithError.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentAssignmentField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentCollectionField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentInformField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentPhotoField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentProviderField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmailField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmailField.js +10 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmailField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ProcessPersonalDataField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +18 -5
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +8 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +17 -1
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputPopup.d.ts +7 -0
- package/mobile/lib/ui-kit/Input/InputPopup.js +4 -0
- package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/useInputPopup.d.ts +10 -0
- package/mobile/lib/ui-kit/Input/useInputPopup.js +59 -0
- package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -0
- package/mobile/src/api/LeadServiceAPI.ts +0 -14
- package/mobile/src/api/dadataHints/dadataHints.ts +33 -0
- package/mobile/src/api/dadataHints/dadataHintsType.ts +33 -0
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +44 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +8 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +17 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
- package/mobile/src/components/ApplicationLeadForm/consents.ts +10 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
- package/mobile/src/index.ts +0 -1
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
- package/mobile/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
- package/mobile/src/ui-kit/FormField/Fields/EmailField.tsx +18 -0
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +20 -16
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
- package/mobile/src/ui-kit/Input/InputControl.tsx +48 -18
- package/mobile/src/ui-kit/Input/InputPopup.tsx +26 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
- package/mobile/src/ui-kit/Input/useInputPopup.tsx +85 -0
- package/package.json +2 -2
- package/src/api/LeadServiceAPI.ts +0 -14
- package/src/api/dadataHints/dadataHints.ts +33 -0
- package/src/api/dadataHints/dadataHintsType.ts +33 -0
- package/src/api/dadataHints/hintsListsOptions.ts +44 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +8 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +30 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +11 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -5
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +26 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +17 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
- package/src/components/ApplicationLeadForm/consents.ts +10 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +28 -0
- package/src/index.ts +0 -1
- package/src/ui-kit/Checkbox/CheckboxProps.ts +0 -6
- package/src/ui-kit/Checkbox/CheckboxWithError.tsx +1 -1
- package/src/ui-kit/FormField/Fields/ConsentAssignmentField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentCollectionField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentInformField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentPhotoField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentProviderField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/ConsentToReceiveMaterialsField.tsx +10 -0
- package/src/ui-kit/FormField/Fields/EmailField.tsx +18 -0
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/ProcessPersonalDataField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -0
- package/src/ui-kit/FormField/getField.tsx +20 -16
- package/src/ui-kit/FormField/getObjectValidator.tsx +8 -1
- package/src/ui-kit/Input/InputControl.tsx +48 -18
- package/src/ui-kit/Input/InputPopup.tsx +26 -0
- package/src/ui-kit/Input/InputProps.ts +1 -0
- package/src/ui-kit/Input/useInputPopup.tsx +85 -0
- package/bundle/api/DaDataAPI.d.ts +0 -15
- package/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/dist/api/DaDataAPI.d.ts +0 -15
- package/dist/api/DaDataAPI.js +0 -33
- package/dist/api/DaDataAPI.js.map +0 -1
- package/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
- package/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
- package/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/lib/api/DaDataAPI.d.ts +0 -15
- package/lib/api/DaDataAPI.js +0 -30
- package/lib/api/DaDataAPI.js.map +0 -1
- package/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
- package/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
- package/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/bundle/api/DaDataAPI.d.ts +0 -15
- package/mobile/bundle/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/dist/api/DaDataAPI.d.ts +0 -15
- package/mobile/dist/api/DaDataAPI.js +0 -33
- package/mobile/dist/api/DaDataAPI.js.map +0 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js +0 -20
- package/mobile/dist/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -26
- package/mobile/dist/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/lib/api/DaDataAPI.d.ts +0 -15
- package/mobile/lib/api/DaDataAPI.js +0 -30
- package/mobile/lib/api/DaDataAPI.js.map +0 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.d.ts +0 -2
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js +0 -18
- package/mobile/lib/ui-kit/Checkbox/CheckboxGroup.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js +0 -24
- package/mobile/lib/ui-kit/FormField/Fields/ConsentToAllDocsField.js.map +0 -1
- package/mobile/src/api/DaDataAPI.ts +0 -48
- package/mobile/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
- package/mobile/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
- package/src/api/DaDataAPI.ts +0 -48
- package/src/ui-kit/Checkbox/CheckboxGroup.tsx +0 -52
- package/src/ui-kit/FormField/Fields/ConsentToAllDocsField.tsx +0 -29
|
@@ -54,7 +54,13 @@ export type NameFieldDef =
|
|
|
54
54
|
| 'localities'
|
|
55
55
|
| 'partnerComments'
|
|
56
56
|
| 'consentDataProcessing'
|
|
57
|
-
| '
|
|
57
|
+
| 'consentInformFlg'
|
|
58
|
+
| 'consentCollectionFlg'
|
|
59
|
+
| 'consentAssignmentClaimsFlg'
|
|
60
|
+
| 'consentPhotoFlg'
|
|
61
|
+
| 'consentPfrFlg'
|
|
62
|
+
| 'consentProviderFlg'
|
|
63
|
+
| 'processPersonalDataLeadFlg';
|
|
58
64
|
|
|
59
65
|
export type ConditionFieldProps = {
|
|
60
66
|
/** @title Условия отображения полей формы */
|
|
@@ -69,6 +75,7 @@ export type FieldDefaultDef = Required &
|
|
|
69
75
|
LabelProps &
|
|
70
76
|
ConditionFieldProps & {
|
|
71
77
|
name: NameFieldDef;
|
|
78
|
+
dadata?: boolean;
|
|
72
79
|
};
|
|
73
80
|
|
|
74
81
|
/**
|
|
@@ -47,7 +47,36 @@
|
|
|
47
47
|
"inputs": [
|
|
48
48
|
{
|
|
49
49
|
"fieldType": "common",
|
|
50
|
-
"name": "
|
|
50
|
+
"name": "processPersonalDataLeadFlg",
|
|
51
|
+
"required": true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"fieldType": "common",
|
|
55
|
+
"name": "consentProviderFlg",
|
|
56
|
+
"required": true
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"fieldType": "common",
|
|
60
|
+
"name": "consentPfrFlg"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"fieldType": "common",
|
|
64
|
+
"name": "consentPhotoFlg",
|
|
65
|
+
"required": true
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"fieldType": "common",
|
|
69
|
+
"name": "consentAssignmentClaimsFlg",
|
|
70
|
+
"required": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"fieldType": "common",
|
|
74
|
+
"name": "consentCollectionFlg",
|
|
75
|
+
"required": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"fieldType": "common",
|
|
79
|
+
"name": "consentInformFlg",
|
|
51
80
|
"required": true
|
|
52
81
|
}
|
|
53
82
|
]
|
|
@@ -12,9 +12,15 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
12
12
|
import { style } from '../../utils/style';
|
|
13
13
|
import { objectValidator } from '../../validation/objectValidator';
|
|
14
14
|
import { isValidationSuccess } from '../../validation/validator';
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
type ApplicationLeadFormContent,
|
|
17
|
+
type FieldDef,
|
|
18
|
+
type GroupedConsentsProps,
|
|
19
|
+
} from './ApplicationLeadFormContent';
|
|
20
|
+
import { CONSENTS } from './consents';
|
|
16
21
|
import { getFormatData } from './getFormatData';
|
|
17
22
|
import { getInitialFormState, type FormState } from './getInitialFormState';
|
|
23
|
+
import { GroupedConsents } from './GroupedConsents';
|
|
18
24
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
19
25
|
|
|
20
26
|
interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockProps {}
|
|
@@ -66,7 +72,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
66
72
|
className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}
|
|
67
73
|
>
|
|
68
74
|
{renderTitle(_.title)}
|
|
69
|
-
{(
|
|
75
|
+
{renderInputs({ field, typeForm, inputs: _?.inputs })}
|
|
70
76
|
</div>
|
|
71
77
|
))}
|
|
72
78
|
{renderSubmitButton(button)}
|
|
@@ -75,3 +81,21 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
75
81
|
);
|
|
76
82
|
},
|
|
77
83
|
);
|
|
84
|
+
|
|
85
|
+
const renderInputs = ({ field, typeForm = '', inputs }: GroupedConsentsProps) => {
|
|
86
|
+
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
87
|
+
|
|
88
|
+
return consentInputs.length > 2 ? (
|
|
89
|
+
<div>
|
|
90
|
+
{restInputs.map(getField(field, typeForm))}
|
|
91
|
+
<GroupedConsents inputs={consentInputs} field={field} />
|
|
92
|
+
</div>
|
|
93
|
+
) : (
|
|
94
|
+
(inputs || [])?.map(getField(field, typeForm))
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const splitInputs = (inputs?: FieldDef[]) => ({
|
|
99
|
+
consentInputs: inputs?.filter((_) => CONSENTS.includes(_.name)) || [],
|
|
100
|
+
restInputs: inputs?.filter((_) => !CONSENTS.includes(_.name)) || [],
|
|
101
|
+
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
|
|
3
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
4
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
4
5
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
5
6
|
import { type Target } from '../../model/LinkProps';
|
|
6
7
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
8
|
+
import { type FormState } from './getInitialFormState';
|
|
7
9
|
|
|
8
10
|
interface Required {
|
|
9
11
|
/** @title Обязательно для заполнения */
|
|
@@ -53,7 +55,13 @@ export type NameFieldDef =
|
|
|
53
55
|
| 'localities'
|
|
54
56
|
| 'partnerComments'
|
|
55
57
|
| 'consentDataProcessing'
|
|
56
|
-
| '
|
|
58
|
+
| 'consentInformFlg'
|
|
59
|
+
| 'consentCollectionFlg'
|
|
60
|
+
| 'consentAssignmentClaimsFlg'
|
|
61
|
+
| 'consentPhotoFlg'
|
|
62
|
+
| 'consentPfrFlg'
|
|
63
|
+
| 'consentProviderFlg'
|
|
64
|
+
| 'processPersonalDataLeadFlg';
|
|
57
65
|
|
|
58
66
|
export type ConditionFieldProps = {
|
|
59
67
|
/** @title Условия отображения полей формы */
|
|
@@ -77,6 +85,7 @@ export type FieldDefaultDef = Required &
|
|
|
77
85
|
export type FieldCommonDef = FieldDefaultDef & {
|
|
78
86
|
/** @default "common" */
|
|
79
87
|
fieldType: 'common';
|
|
88
|
+
dadata?: boolean;
|
|
80
89
|
};
|
|
81
90
|
|
|
82
91
|
/**
|
|
@@ -160,3 +169,10 @@ export type ApplicationLeadFormContent = UniBlockContent &
|
|
|
160
169
|
sections?: SectionsProps[];
|
|
161
170
|
endpoint?: EndpointType;
|
|
162
171
|
};
|
|
172
|
+
|
|
173
|
+
/** @hidden */
|
|
174
|
+
export interface GroupedConsentsProps {
|
|
175
|
+
inputs?: FieldDef[];
|
|
176
|
+
typeForm?: TypeFormFieldDef | string;
|
|
177
|
+
field: FormFieldRegisterer<FormState>;
|
|
178
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type VNode } from '../../model/VNode';
|
|
4
|
+
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
5
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
6
|
+
import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
7
|
+
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
8
|
+
import { getField } from '../../ui-kit/FormField/getField';
|
|
9
|
+
import { validatorObj } from '../../ui-kit/FormField/getObjectValidator';
|
|
10
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
11
|
+
import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
|
|
12
|
+
import { withValidator } from '../../validation/withValidator';
|
|
13
|
+
import { type GroupedConsentsProps } from './ApplicationLeadFormContent';
|
|
14
|
+
import { type FormState } from './getInitialFormState';
|
|
15
|
+
|
|
16
|
+
const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
|
|
17
|
+
const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
|
|
18
|
+
|
|
19
|
+
export const GroupedConsents = JSX<GroupedConsentsProps>(
|
|
20
|
+
({ inputs = [], typeForm = '', field, key }) => {
|
|
21
|
+
const isChecked = inputs.every((_) => Boolean(field(_.name).value));
|
|
22
|
+
|
|
23
|
+
const handleGeneralToggle = (value: boolean) => {
|
|
24
|
+
for (const item of inputs) {
|
|
25
|
+
const itemField = field(item.name as keyof FormState);
|
|
26
|
+
itemField?.onChange && itemField.onChange(value);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const hasValidationErrors = useMemo(
|
|
31
|
+
() =>
|
|
32
|
+
inputs
|
|
33
|
+
?.filter((_) => _.required)
|
|
34
|
+
?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)),
|
|
35
|
+
[inputs],
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<div className="w-fit">
|
|
40
|
+
<Foldable
|
|
41
|
+
isFoldButtonOnTop
|
|
42
|
+
renderFoldableSection={({ isUnfolded }) => (
|
|
43
|
+
<FoldableSection isUnfolded={isUnfolded} className="flex flex-col pl-2xl">
|
|
44
|
+
{inputs.map(getField(field, typeForm))}
|
|
45
|
+
</FoldableSection>
|
|
46
|
+
)}
|
|
47
|
+
renderFoldButton={renderGeneralCheckbox(
|
|
48
|
+
<div>
|
|
49
|
+
<Checkbox
|
|
50
|
+
value={isChecked}
|
|
51
|
+
onChange={handleGeneralToggle}
|
|
52
|
+
text={CONSENT_ALL_DOCS_TEXT}
|
|
53
|
+
key={key}
|
|
54
|
+
/>
|
|
55
|
+
{renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')}
|
|
56
|
+
</div>,
|
|
57
|
+
)}
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
},
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
const renderGeneralCheckbox =
|
|
65
|
+
(generalCheckBox: VNode) =>
|
|
66
|
+
(foldableData: FoldablePartProps): VNode =>
|
|
67
|
+
(
|
|
68
|
+
<div className="flex items-start">
|
|
69
|
+
{generalCheckBox}
|
|
70
|
+
<button onClick={foldableData.onToggle} className="px-m py-2xs">
|
|
71
|
+
<Icon
|
|
72
|
+
className="text-primary-text"
|
|
73
|
+
name={foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
|
|
74
|
+
width="16"
|
|
75
|
+
height="16"
|
|
76
|
+
/>
|
|
77
|
+
</button>
|
|
78
|
+
</div>
|
|
79
|
+
);
|
|
@@ -14,6 +14,7 @@ export interface FormState {
|
|
|
14
14
|
surname?: string;
|
|
15
15
|
name?: string;
|
|
16
16
|
middleName?: string;
|
|
17
|
+
fullName?: string;
|
|
17
18
|
birthday?: Date;
|
|
18
19
|
phone?: string;
|
|
19
20
|
secondaryPhone?: string;
|
|
@@ -28,7 +29,28 @@ export interface FormState {
|
|
|
28
29
|
term?: number;
|
|
29
30
|
amount?: number;
|
|
30
31
|
annualRevenue?: string;
|
|
32
|
+
serviceDirection?: string;
|
|
33
|
+
desiredMeetingDate?: string;
|
|
34
|
+
inn?: number;
|
|
35
|
+
addressBranch?: string;
|
|
36
|
+
bankEmpolee?: string;
|
|
37
|
+
applicationDate?: string;
|
|
38
|
+
comment?: string;
|
|
39
|
+
isClient?: boolean;
|
|
40
|
+
feedbackMethod?: string;
|
|
41
|
+
collectionCount?: number;
|
|
42
|
+
product?: string;
|
|
43
|
+
localities?: string[];
|
|
44
|
+
partnerComments?: string;
|
|
31
45
|
consentDataProcessing?: boolean;
|
|
46
|
+
processPersonalDataLeadFlg?: boolean;
|
|
47
|
+
consentProviderFlg?: boolean;
|
|
48
|
+
consentPfrFlg?: boolean;
|
|
49
|
+
consentPhotoFlg?: boolean;
|
|
50
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
51
|
+
consentCollectionFlg?: boolean;
|
|
52
|
+
consentInformFlg?: boolean;
|
|
53
|
+
consentToReceiveMaterials?: boolean;
|
|
32
54
|
}
|
|
33
55
|
|
|
34
56
|
const initialFormState = {
|
|
@@ -57,6 +79,12 @@ const initialFormState = {
|
|
|
57
79
|
posTerminal: false,
|
|
58
80
|
consentToReceiveMaterials: false,
|
|
59
81
|
consentDataProcessing: false,
|
|
82
|
+
processPersonalDataLeadFlg: false,
|
|
83
|
+
consentProviderFlg: false,
|
|
84
|
+
consentPhotoFlg: false,
|
|
85
|
+
consentAssignmentClaimsFlg: false,
|
|
86
|
+
consentCollectionFlg: false,
|
|
87
|
+
consentInformFlg: false,
|
|
60
88
|
};
|
|
61
89
|
|
|
62
90
|
export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormState => {
|
package/mobile/src/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { setupHooks } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
export { setup } from '@redneckz/uni-jsx/lib/setup';
|
|
3
|
-
export { DaDataAPI } from './api/DaDataAPI';
|
|
4
3
|
export { Blocks } from './components/Blocks';
|
|
5
4
|
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
6
5
|
export { handlerDecorator } from './hooks/handlerDecorator';
|
|
@@ -6,7 +6,7 @@ import { type CheckboxProps } from './CheckboxProps';
|
|
|
6
6
|
|
|
7
7
|
export const CheckboxWithError = JSX<CheckboxProps>(
|
|
8
8
|
({ className, text, value, key, disabled, error, onChange }) => (
|
|
9
|
-
<div className={style('shrink-0
|
|
9
|
+
<div className={style('shrink-0', className)}>
|
|
10
10
|
<Checkbox key={key} text={text} value={value} disabled={disabled} onChange={onChange} />
|
|
11
11
|
{renderErrorText(error)}
|
|
12
12
|
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ConsentAssignmentField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Прочие согласия (согласие на уступку прав требований)"
|
|
10
|
+
{...withValidator(field('consentAssignmentClaimsFlg'), validatorObj.consentAssignmentClaimsFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ConsentCollectionField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Прочие согласия (согласие на взыскание по исполнительной надписи нотариуса)"
|
|
10
|
+
{...withValidator(field('consentCollectionFlg'), validatorObj.consentCollectionFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ConsentInformField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Согласие на информирование о продуктах и услугах Банка"
|
|
10
|
+
{...withValidator(field('consentInformFlg'), validatorObj.consentInformFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ConsentPhotoFlg = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Прочие согласия (согласие на фотографирование)"
|
|
10
|
+
{...withValidator(field('consentPhotoFlg'), validatorObj.consentPhotoFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ConsentProviderField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Согласие об использовании простой электронной подписи"
|
|
10
|
+
{...withValidator(field('consentProviderFlg'), validatorObj.consentProviderFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const ConsentToReceiveMaterialsField = JSX<CustomFieldProps>(({ field }) => (
|
|
6
|
+
<CheckboxWithError
|
|
7
|
+
text="Согласен на получение информационных и аналитических материалов по электронной почте"
|
|
8
|
+
{...field('consentToReceiveMaterials')}
|
|
9
|
+
/>
|
|
10
|
+
));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type FieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
|
|
3
|
+
import { InputControl } from '../../Input/InputControl';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
import { getValidation } from '../getValidation';
|
|
7
|
+
|
|
8
|
+
export const EmailField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const { required, ...rest } = input as FieldDef;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<InputControl
|
|
13
|
+
label="Электронная почта"
|
|
14
|
+
{...getValidation(field('email'), validatorObj.email, required)}
|
|
15
|
+
{...rest}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -2,6 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { InputControl } from '../../Input/InputControl';
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
|
|
5
|
-
export const MiddleNameField = JSX<CustomFieldProps>(({ field }) => (
|
|
6
|
-
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
5
|
+
export const MiddleNameField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
+
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} {...input} />
|
|
7
7
|
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { withValidator } from '../../../validation/withValidator';
|
|
3
|
+
import { CheckboxWithError } from '../../Checkbox/CheckboxWithError';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
import { validatorObj } from '../getObjectValidator';
|
|
6
|
+
|
|
7
|
+
export const ProcessPersonalDataField = JSX<CustomFieldProps>(({ field }) => (
|
|
8
|
+
<CheckboxWithError
|
|
9
|
+
text="Согласие на обработку персональных данных"
|
|
10
|
+
{...withValidator(field('processPersonalDataLeadFlg'), validatorObj.processPersonalDataLeadFlg)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -8,7 +8,13 @@ import { AcquiringField } from './Fields/AcquiringField';
|
|
|
8
8
|
import { AddressBranchField } from './Fields/AddressBranchField';
|
|
9
9
|
import { AmountField } from './Fields/AmountField';
|
|
10
10
|
import { CommentField } from './Fields/CommentField';
|
|
11
|
-
import {
|
|
11
|
+
import { ConsentAssignmentField } from './Fields/ConsentAssignmentField';
|
|
12
|
+
import { ConsentCollectionField } from './Fields/ConsentCollectionField';
|
|
13
|
+
import { ConsentInformField } from './Fields/ConsentInformField';
|
|
14
|
+
import { ConsentPhotoFlg } from './Fields/ConsentPhotoField';
|
|
15
|
+
import { ConsentProviderField } from './Fields/ConsentProviderField';
|
|
16
|
+
import { ConsentToReceiveMaterialsField } from './Fields/ConsentToReceiveMaterialsField';
|
|
17
|
+
import { EmailField } from './Fields/EmailField';
|
|
12
18
|
import { FeedbackMethodField } from './Fields/FeedbackMethodField';
|
|
13
19
|
import { FeedbackTypeField } from './Fields/FeedbackTypeField';
|
|
14
20
|
import { IsClientField } from './Fields/IsClientField';
|
|
@@ -19,6 +25,7 @@ import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
|
19
25
|
import { PartnerCommentsField } from './Fields/PartnerCommentsField';
|
|
20
26
|
import { PhoneField } from './Fields/PhoneField';
|
|
21
27
|
import { PosTerminalField } from './Fields/PosTerminalField';
|
|
28
|
+
import { ProcessPersonalDataField } from './Fields/ProcessPersonalDataField';
|
|
22
29
|
import { ProductField } from './Fields/ProductField';
|
|
23
30
|
import { RegionField } from './Fields/RegionField';
|
|
24
31
|
import { RegionPremiumField } from './Fields/RegionPremiumField';
|
|
@@ -45,15 +52,9 @@ export const getField =
|
|
|
45
52
|
const InputsMap = {
|
|
46
53
|
surname: <SurnameField field={field} input={input} />,
|
|
47
54
|
name: <NameField field={field} input={input} />,
|
|
48
|
-
middleName: <MiddleNameField field={field} />,
|
|
55
|
+
middleName: <MiddleNameField field={field} input={input} />,
|
|
49
56
|
phone: <PhoneField field={field} input={input} />,
|
|
50
|
-
email:
|
|
51
|
-
<InputControl
|
|
52
|
-
label="Электронная почта"
|
|
53
|
-
{...getValidation(field('email'), validatorObj.email, required)}
|
|
54
|
-
{...rest}
|
|
55
|
-
/>
|
|
56
|
-
),
|
|
57
|
+
email: <EmailField field={field} input={input} />,
|
|
57
58
|
fullName: (
|
|
58
59
|
<InputControl
|
|
59
60
|
label="ФИО"
|
|
@@ -90,12 +91,6 @@ export const getField =
|
|
|
90
91
|
product: <ProductField field={field} source={PRODUCT_REF} />,
|
|
91
92
|
localities: <LocalitiesField field={field} input={input} />,
|
|
92
93
|
isClient: <IsClientField field={field} />,
|
|
93
|
-
consentToReceiveMaterials: (
|
|
94
|
-
<CheckboxWithError
|
|
95
|
-
{...field('consentToReceiveMaterials')}
|
|
96
|
-
text="Согласен на получение информационных и аналитических материалов по электронной почте"
|
|
97
|
-
/>
|
|
98
|
-
),
|
|
99
94
|
partnerComments: <PartnerCommentsField field={field} input={input} />,
|
|
100
95
|
collectionCount: (
|
|
101
96
|
<InputControl
|
|
@@ -130,7 +125,16 @@ export const getField =
|
|
|
130
125
|
<InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
|
|
131
126
|
),
|
|
132
127
|
secondaryPhone: <SecondaryPhoneField field={field} />,
|
|
133
|
-
|
|
128
|
+
consentPfrFlg: (
|
|
129
|
+
<CheckboxWithError text="Согласие на запрос в ПФР" {...field('consentPfrFlg')} />
|
|
130
|
+
),
|
|
131
|
+
consentToReceiveMaterials: <ConsentToReceiveMaterialsField field={field} />,
|
|
132
|
+
processPersonalDataLeadFlg: <ProcessPersonalDataField field={field} />,
|
|
133
|
+
consentProviderFlg: <ConsentProviderField field={field} />,
|
|
134
|
+
consentPhotoFlg: <ConsentPhotoFlg field={field} />,
|
|
135
|
+
consentAssignmentClaimsFlg: <ConsentAssignmentField field={field} />,
|
|
136
|
+
consentCollectionFlg: <ConsentCollectionField field={field} />,
|
|
137
|
+
consentInformFlg: <ConsentInformField field={field} />,
|
|
134
138
|
};
|
|
135
139
|
|
|
136
140
|
return isRenderField({ input, field }) ? (
|
|
@@ -35,7 +35,14 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
35
35
|
localities: defaultValidator,
|
|
36
36
|
consentDataProcessing: agreementValidator,
|
|
37
37
|
annualRevenue: defaultValidator,
|
|
38
|
-
|
|
38
|
+
consentToReceiveMaterials: agreementValidator,
|
|
39
|
+
processPersonalDataLeadFlg: agreementValidator,
|
|
40
|
+
consentProviderFlg: agreementValidator,
|
|
41
|
+
consentPhotoFlg: agreementValidator,
|
|
42
|
+
consentPfrFlg: agreementValidator,
|
|
43
|
+
consentAssignmentClaimsFlg: agreementValidator,
|
|
44
|
+
consentCollectionFlg: agreementValidator,
|
|
45
|
+
consentInformFlg: agreementValidator,
|
|
39
46
|
};
|
|
40
47
|
|
|
41
48
|
export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
3
|
+
import { useOutsideClick } from '@redneckz/uni-jsx/lib/hooks/useOutsideClick';
|
|
4
|
+
import { noop } from '../../utils/noop';
|
|
2
5
|
import { style } from '../../utils/style';
|
|
3
6
|
import { Input } from './Input';
|
|
4
7
|
import { type InputProps } from './InputProps';
|
|
5
8
|
import { renderErrorText } from './renderErrorText';
|
|
9
|
+
import { useInputPopup } from './useInputPopup';
|
|
6
10
|
|
|
7
11
|
export const InputControl = JSX<InputProps>(
|
|
8
12
|
({
|
|
@@ -11,25 +15,51 @@ export const InputControl = JSX<InputProps>(
|
|
|
11
15
|
value = '',
|
|
12
16
|
placeholder,
|
|
13
17
|
error,
|
|
14
|
-
|
|
18
|
+
errors,
|
|
19
|
+
onChange = noop,
|
|
15
20
|
onBlur,
|
|
16
21
|
isTextarea,
|
|
17
22
|
type,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
name = '',
|
|
24
|
+
dadata = false,
|
|
25
|
+
}) => {
|
|
26
|
+
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
27
|
+
const popupRef = useOutsideClick<HTMLDivElement>(close);
|
|
28
|
+
|
|
29
|
+
const inputRef = useInputPopup({
|
|
30
|
+
isOpen: isOpen && dadata,
|
|
31
|
+
name,
|
|
32
|
+
value,
|
|
33
|
+
onChange,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
className={style('shrink-0 w-full', className)}
|
|
39
|
+
ref={popupRef}
|
|
40
|
+
onBlur={close}
|
|
41
|
+
onFocus={open}
|
|
42
|
+
>
|
|
43
|
+
<div ref={inputRef}>
|
|
44
|
+
<Input
|
|
45
|
+
type={type || 'text'}
|
|
46
|
+
aria-label={label}
|
|
47
|
+
label={getLabel(errors, label)}
|
|
48
|
+
valid={Boolean(!error)}
|
|
49
|
+
value={value}
|
|
50
|
+
onChange={onChange}
|
|
51
|
+
onBlur={onBlur}
|
|
52
|
+
isTextarea={isTextarea}
|
|
53
|
+
placeholder={getPlaceholder(placeholder, errors, label)}
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
{renderErrorText(error)}
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
},
|
|
35
60
|
);
|
|
61
|
+
|
|
62
|
+
const getLabel = (errors?: string[], label?: string) => (label && errors ? `${label}*` : label);
|
|
63
|
+
|
|
64
|
+
const getPlaceholder = (placeholder?: string, errors?: string[], label?: string) =>
|
|
65
|
+
errors && !label ? `${placeholder}*` : placeholder;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
3
|
+
|
|
4
|
+
export interface InputPopupProps {
|
|
5
|
+
options?: Array<DaDataSuggestion>;
|
|
6
|
+
onChange: (e: string) => void;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const InputPopup = JSX<InputPopupProps>(({ options, onChange }) => (
|
|
11
|
+
<div
|
|
12
|
+
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl"
|
|
13
|
+
role="list"
|
|
14
|
+
>
|
|
15
|
+
{options?.map((item, key) => (
|
|
16
|
+
<div
|
|
17
|
+
key={key.toString()}
|
|
18
|
+
className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
|
|
19
|
+
role="listitem"
|
|
20
|
+
onMouseDown={() => onChange(item.processedValue)}
|
|
21
|
+
>
|
|
22
|
+
<span className="min-h-6">{item.processedValue}</span>
|
|
23
|
+
</div>
|
|
24
|
+
))}
|
|
25
|
+
</div>
|
|
26
|
+
));
|