@redneckz/wildless-cms-uni-blocks 0.14.751 → 0.14.753
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/RetailAPI/getTraceId.d.ts +1 -0
- package/bundle/bundle.umd.js +130 -134
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/bundle/components/RollupItem/RollupItem.d.ts +0 -4
- package/bundle/ui-kit/Button/Button.d.ts +7 -3
- package/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/bundle/ui-kit/ControlStateProps.d.ts +0 -1
- package/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
- package/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
- package/dist/api/RetailAPI/doRequest.js +5 -0
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/RetailAPI/getGenderFromName.js +7 -5
- package/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/dist/api/RetailAPI/getTraceId.d.ts +1 -0
- package/dist/api/RetailAPI/getTraceId.js +9 -0
- package/dist/api/RetailAPI/getTraceId.js.map +1 -0
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +2 -2
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.js +2 -2
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
- package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.d.ts +0 -4
- package/dist/components/RollupItem/RollupItem.js +4 -20
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +7 -3
- package/dist/ui-kit/Button/Button.js +15 -17
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/dist/ui-kit/Button/ButtonTitle.js +7 -0
- package/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/dist/ui-kit/Button/SubmitButton.js +8 -0
- package/dist/ui-kit/Button/SubmitButton.js.map +1 -0
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/ControlStateProps.d.ts +0 -1
- package/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
- package/dist/ui-kit/DraftDialog/utils.js +13 -3
- package/dist/ui-kit/DraftDialog/utils.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +16 -11
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +12 -0
- package/dist/ui-kit/Icon/RoundedIcon.js +1 -1
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/dist/ui-kit/Icon/ToggleIcon.js +7 -0
- package/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/dist/ui-kit/Input/InputPopup.d.ts +2 -1
- package/dist/ui-kit/Input/InputPopup.js +29 -1
- package/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/dist/ui-kit/Input/useInputPopup.js +4 -3
- package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.js +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.mobile.js +14 -2
- package/dist/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
- package/lib/api/RetailAPI/doRequest.js +5 -0
- package/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/lib/api/RetailAPI/getGenderFromName.js +7 -5
- package/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/lib/api/RetailAPI/getTraceId.d.ts +1 -0
- package/lib/api/RetailAPI/getTraceId.js +6 -0
- package/lib/api/RetailAPI/getTraceId.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +2 -2
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.js +2 -2
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
- package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.d.ts +0 -4
- package/lib/components/RollupItem/RollupItem.js +4 -20
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +7 -3
- package/lib/ui-kit/Button/Button.js +16 -18
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/lib/ui-kit/Button/ButtonTitle.js +5 -0
- package/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/lib/ui-kit/Button/SubmitButton.js +6 -0
- package/lib/ui-kit/Button/SubmitButton.js.map +1 -0
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/ControlStateProps.d.ts +0 -1
- package/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
- package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/ui-kit/DraftDialog/utils.d.ts +14 -4
- package/lib/ui-kit/DraftDialog/utils.js +12 -2
- package/lib/ui-kit/DraftDialog/utils.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +16 -11
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +12 -0
- package/lib/ui-kit/Icon/RoundedIcon.js +1 -1
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/lib/ui-kit/Icon/ToggleIcon.js +5 -0
- package/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/lib/ui-kit/Input/InputPopup.d.ts +2 -1
- package/lib/ui-kit/Input/InputPopup.js +29 -1
- package/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/lib/ui-kit/Input/useInputPopup.js +4 -3
- package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.js +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.mobile.js +15 -3
- package/lib/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +147 -146
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/bundle/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/bundle/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/dist/api/RetailAPI/doRequest.js +5 -0
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getGenderFromName.js +7 -5
- package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/getTraceId.js +9 -0
- package/mobile/dist/api/RetailAPI/getTraceId.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -2
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +2 -2
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/dist/components/RollupItem/RollupItem.js +4 -20
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/dist/ui-kit/Button/Button.js +15 -17
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/ButtonTitle.js +7 -0
- package/mobile/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.js +8 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.js.map +1 -0
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
- package/mobile/dist/ui-kit/DraftDialog/utils.js +13 -3
- package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +16 -11
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +1 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/dist/ui-kit/Icon/ToggleIcon.js +7 -0
- package/mobile/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js +29 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Input/useInputPopup.js +4 -3
- package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +14 -2
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/api/RetailAPI/doRequest.js +5 -0
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getGenderFromName.js +7 -5
- package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/getTraceId.js +6 -0
- package/mobile/lib/api/RetailAPI/getTraceId.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +2 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +2 -2
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/lib/components/RollupItem/RollupItem.js +4 -20
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/lib/ui-kit/Button/Button.js +16 -18
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/ButtonTitle.js +5 -0
- package/mobile/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.js +6 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.js.map +1 -0
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +11 -1
- package/mobile/lib/ui-kit/DraftDialog/utils.js +12 -2
- package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +16 -11
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +1 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/lib/ui-kit/Icon/ToggleIcon.js +5 -0
- package/mobile/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js +29 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Input/useInputPopup.js +4 -3
- package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +15 -3
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/src/api/RetailAPI/doRequest.ts +6 -0
- package/mobile/src/api/RetailAPI/getGenderFromName.ts +7 -10
- package/mobile/src/api/RetailAPI/getTraceId.ts +6 -0
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -3
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
- package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
- package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +14 -61
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/mobile/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
- package/mobile/src/ui-kit/Button/Button.tsx +60 -44
- package/mobile/src/ui-kit/Button/ButtonTitle.tsx +17 -0
- package/mobile/src/ui-kit/Button/SubmitButton.tsx +14 -0
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
- package/mobile/src/ui-kit/ControlStateProps.ts +0 -1
- package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
- package/mobile/src/ui-kit/DraftDialog/utils.ts +18 -3
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +4 -3
- package/mobile/src/ui-kit/Icon/Icon.tsx +21 -15
- package/mobile/src/ui-kit/Icon/IconProps.ts +13 -0
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
- package/mobile/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
- package/mobile/src/ui-kit/Input/InputPopup.tsx +52 -18
- package/mobile/src/ui-kit/Input/useInputPopup.tsx +11 -3
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +40 -8
- package/package.json +1 -1
- package/src/api/RetailAPI/doRequest.ts +6 -0
- package/src/api/RetailAPI/getGenderFromName.ts +7 -10
- package/src/api/RetailAPI/getTraceId.ts +6 -0
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
- package/src/components/CardTransfer/CardTransfer.tsx +3 -3
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
- package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/src/components/Depository/DepositoryItem.tsx +2 -2
- package/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
- package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
- package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +1 -12
- package/src/components/RollupItem/RollupItem.tsx +14 -61
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
- package/src/ui-kit/Button/Button.fixture.tsx +0 -8
- package/src/ui-kit/Button/Button.tsx +60 -44
- package/src/ui-kit/Button/ButtonTitle.tsx +17 -0
- package/src/ui-kit/Button/SubmitButton.tsx +14 -0
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
- package/src/ui-kit/ControlStateProps.ts +0 -1
- package/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
- package/src/ui-kit/DraftDialog/utils.ts +18 -3
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
- package/src/ui-kit/Foldable/Foldable.tsx +4 -3
- package/src/ui-kit/Icon/Icon.tsx +21 -15
- package/src/ui-kit/Icon/IconProps.ts +13 -0
- package/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
- package/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
- package/src/ui-kit/Input/InputPopup.tsx +52 -18
- package/src/ui-kit/Input/useInputPopup.tsx +11 -3
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/Sitemap/Sitemap.mobile.tsx +40 -8
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/bundle/components/RollupItem/getIconName.d.ts +0 -1
- package/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/bundle/ui-kit/Button/IconButton.d.ts +0 -10
- package/bundle/ui-kit/Button/useButton.d.ts +0 -2
- package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
- package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/dist/components/RollupItem/AccordionFoldButton.js +0 -11
- package/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/dist/components/RollupItem/getIconName.d.ts +0 -1
- package/dist/components/RollupItem/getIconName.js +0 -7
- package/dist/components/RollupItem/getIconName.js.map +0 -1
- package/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/dist/components/RollupItem/renderRoundedIcon.js +0 -6
- package/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js +0 -7
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.js +0 -4
- package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
- package/dist/ui-kit/Button/IconButton.d.ts +0 -10
- package/dist/ui-kit/Button/IconButton.js +0 -13
- package/dist/ui-kit/Button/IconButton.js.map +0 -1
- package/dist/ui-kit/Button/useButton.d.ts +0 -2
- package/dist/ui-kit/Button/useButton.js +0 -16
- package/dist/ui-kit/Button/useButton.js.map +0 -1
- package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
- package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/lib/components/RollupItem/AccordionFoldButton.js +0 -9
- package/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/lib/components/RollupItem/getIconName.d.ts +0 -1
- package/lib/components/RollupItem/getIconName.js +0 -4
- package/lib/components/RollupItem/getIconName.js.map +0 -1
- package/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.js +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js +0 -4
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.js +0 -2
- package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
- package/lib/ui-kit/Button/IconButton.d.ts +0 -10
- package/lib/ui-kit/Button/IconButton.js +0 -11
- package/lib/ui-kit/Button/IconButton.js.map +0 -1
- package/lib/ui-kit/Button/useButton.d.ts +0 -2
- package/lib/ui-kit/Button/useButton.js +0 -13
- package/lib/ui-kit/Button/useButton.js.map +0 -1
- package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/bundle/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/bundle/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/bundle/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/mobile/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js +0 -11
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/mobile/dist/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/dist/components/RollupItem/getIconName.js +0 -7
- package/mobile/dist/components/RollupItem/getIconName.js.map +0 -1
- package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js +0 -7
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/mobile/dist/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/dist/ui-kit/Button/IconButton.js +0 -13
- package/mobile/dist/ui-kit/Button/IconButton.js.map +0 -1
- package/mobile/dist/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/useButton.js +0 -16
- package/mobile/dist/ui-kit/Button/useButton.js.map +0 -1
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/mobile/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js +0 -9
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/mobile/lib/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/lib/components/RollupItem/getIconName.js +0 -4
- package/mobile/lib/components/RollupItem/getIconName.js.map +0 -1
- package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js +0 -4
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/mobile/lib/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/lib/ui-kit/Button/IconButton.js +0 -11
- package/mobile/lib/ui-kit/Button/IconButton.js.map +0 -1
- package/mobile/lib/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/useButton.js +0 -13
- package/mobile/lib/ui-kit/Button/useButton.js.map +0 -1
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
- package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
- package/mobile/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
- package/mobile/src/components/RollupItem/getIconName.tsx +0 -6
- package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +0 -7
- package/mobile/src/ui-kit/Button/IconButton.tsx +0 -36
- package/mobile/src/ui-kit/Button/useButton.ts +0 -16
- package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
- package/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
- package/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
- package/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
- package/src/components/RollupItem/getIconName.tsx +0 -6
- package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +0 -7
- package/src/components/RollupItem/renderRoundedIcon.tsx +0 -5
- package/src/components/RollupItem/rollupIconVersion.mobile.tsx +0 -1
- package/src/ui-kit/Button/IconButton.tsx +0 -36
- package/src/ui-kit/Button/useButton.ts +0 -16
- package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
|
+
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
3
4
|
|
|
4
5
|
export interface StepsNavigationButtonsProps {
|
|
5
6
|
step: number;
|
|
@@ -17,9 +18,9 @@ export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
|
17
18
|
<Button onClick={onPrevStep} type="button" version="secondary" disabled={isFirstStep}>
|
|
18
19
|
Назад
|
|
19
20
|
</Button>
|
|
20
|
-
<
|
|
21
|
+
<SubmitButton isLoading={isSending}>
|
|
21
22
|
{isFinalStep ? 'Отправить заявку' : 'Далее'}
|
|
22
|
-
</
|
|
23
|
+
</SubmitButton>
|
|
23
24
|
</div>
|
|
24
25
|
);
|
|
25
26
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
|
+
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
3
4
|
|
|
4
5
|
export interface StepsNavigationButtonsProps {
|
|
5
6
|
step: number;
|
|
@@ -17,9 +18,9 @@ export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
|
17
18
|
<Button onClick={onPrevStep} type="button" version="secondary" disabled={isFirstStep}>
|
|
18
19
|
Назад
|
|
19
20
|
</Button>
|
|
20
|
-
<
|
|
21
|
+
<SubmitButton isLoading={isSending}>
|
|
21
22
|
{isFinalStep ? 'Отправить заявку' : 'Далее'}
|
|
22
|
-
</
|
|
23
|
+
</SubmitButton>
|
|
23
24
|
</div>
|
|
24
25
|
);
|
|
25
26
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
3
3
|
import { useLink } from '../../hooks/useLink';
|
|
4
|
+
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
|
|
4
5
|
import { Text } from '../../ui-kit/Text/Text';
|
|
5
6
|
import { formatDate } from '../../utils/formatDate';
|
|
6
|
-
import { renderRoundedIcon } from '../RollupItem/renderRoundedIcon';
|
|
7
7
|
import { type DepositoryDataItem } from './useDepository';
|
|
8
8
|
|
|
9
9
|
export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDataItem) => {
|
|
@@ -15,7 +15,7 @@ export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDat
|
|
|
15
15
|
className="flex gap-3 items-center py-lg border-gray border-opacity-50 border-b"
|
|
16
16
|
key={publicId}
|
|
17
17
|
>
|
|
18
|
-
|
|
18
|
+
<RoundedIcon className="shrink-0" icon="DocDownloadIcon" iconVersion="black" />
|
|
19
19
|
<div className="flex flex-col gap-x-6xl lg:flex-row lg:items-center">
|
|
20
20
|
{timestamp ? (
|
|
21
21
|
<Text size="text-m" font-weight="font-light">
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
3
3
|
import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
4
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
5
|
+
import { ButtonTitle } from '../../ui-kit/Button/ButtonTitle';
|
|
4
6
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
7
|
+
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
5
8
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
6
|
-
import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
7
9
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
8
10
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
9
|
-
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
10
11
|
|
|
11
12
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
12
13
|
|
|
@@ -43,7 +44,20 @@ export const FiltrationForm = JSX<RenderFiltrationFormProps>(
|
|
|
43
44
|
{hiddenFilters}
|
|
44
45
|
</FoldableSection>
|
|
45
46
|
</div>
|
|
46
|
-
|
|
47
|
+
<div className="flex space-x-lg">
|
|
48
|
+
{onlyOffice ? (
|
|
49
|
+
<DefaultFoldButton
|
|
50
|
+
label={isUnfolded ? 'Меньше фильтров' : 'Больше фильтров'}
|
|
51
|
+
isUnfolded={isUnfolded}
|
|
52
|
+
embedded
|
|
53
|
+
onClick={toggle}
|
|
54
|
+
/>
|
|
55
|
+
) : null}
|
|
56
|
+
<Button embedded onClick={reset}>
|
|
57
|
+
<ButtonTitle>Очистить фильтр</ButtonTitle>
|
|
58
|
+
<Icon name="CloseIcon" size="small" />
|
|
59
|
+
</Button>
|
|
60
|
+
</div>
|
|
47
61
|
</Foldable>
|
|
48
62
|
</div>
|
|
49
63
|
) : null}
|
|
@@ -51,29 +65,3 @@ export const FiltrationForm = JSX<RenderFiltrationFormProps>(
|
|
|
51
65
|
);
|
|
52
66
|
},
|
|
53
67
|
);
|
|
54
|
-
|
|
55
|
-
// TODO Столько разных кнопок с иконками, но эта самая творчески-ударённая реализация))
|
|
56
|
-
export const renderFoldButton =
|
|
57
|
-
(reset: () => void, onlyOffice = false) =>
|
|
58
|
-
({ isUnfolded, onToggle }: FoldablePartProps) =>
|
|
59
|
-
(
|
|
60
|
-
<div className="flex space-x-lg">
|
|
61
|
-
{onlyOffice ? (
|
|
62
|
-
<LinkButton
|
|
63
|
-
version="transparent"
|
|
64
|
-
className="text-secondary-text [&>*]:p-0"
|
|
65
|
-
appendRight={
|
|
66
|
-
<Icon name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'} width="16" height="16" />
|
|
67
|
-
}
|
|
68
|
-
text={isUnfolded ? 'Меньше фильтров' : 'Больше фильтров'}
|
|
69
|
-
onClick={onToggle}
|
|
70
|
-
/>
|
|
71
|
-
) : null}
|
|
72
|
-
<LinkButton version="transparent" className="text-secondary-text [&>*]:p-0" onClick={reset}>
|
|
73
|
-
<div className="flex items-center">
|
|
74
|
-
Очистить фильтр
|
|
75
|
-
<Icon name="CloseIcon" width="16" height="16" className="ml-2xs" />
|
|
76
|
-
</div>
|
|
77
|
-
</LinkButton>
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
3
|
+
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
3
4
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
4
5
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
5
|
-
import { renderFoldButton } from './renderFoldButton';
|
|
6
6
|
|
|
7
7
|
export const FoldableCardContent = JSX(({ children }) => {
|
|
8
8
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
<div>
|
|
12
|
+
<div className="hidden sm:block">{children}</div>
|
|
13
|
+
<Foldable className="block sm:hidden">
|
|
14
|
+
<FoldableSection isUnfolded={isUnfolded}>{children}</FoldableSection>
|
|
15
|
+
<DefaultFoldButton
|
|
16
|
+
className="w-full my-m mr-m border-b border-solid border-main-divider"
|
|
17
|
+
label={isUnfolded ? 'Скрыть' : 'Подробнее'}
|
|
18
|
+
isUnfolded={isUnfolded}
|
|
19
|
+
embedded
|
|
20
|
+
onClick={toggle}
|
|
21
|
+
/>
|
|
22
|
+
</Foldable>
|
|
23
|
+
</div>
|
|
15
24
|
);
|
|
16
25
|
});
|
|
@@ -53,11 +53,12 @@ export const renderAtmCard = (
|
|
|
53
53
|
<Badge color="green">{capitalize(workTime)}</Badge>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
<div className="hidden sm:block">
|
|
57
|
-
<CardRow className="flex-wrap">{additionalInfo?.map(renderInfo)}</CardRow>
|
|
58
|
-
</div>
|
|
59
56
|
<FoldableCardContent>
|
|
60
|
-
<CardRow className="flex-wrap">
|
|
57
|
+
<CardRow className="flex-wrap">
|
|
58
|
+
{additionalInfo?.map((item, key) => (
|
|
59
|
+
<CardCell key={String(key)} {...item} />
|
|
60
|
+
))}
|
|
61
|
+
</CardRow>
|
|
61
62
|
</FoldableCardContent>
|
|
62
63
|
</div>
|
|
63
64
|
);
|
|
@@ -69,5 +70,3 @@ export const getAtmPoint = ({ address = '', terminalType, atmCode = '' }: Atm) =
|
|
|
69
70
|
|
|
70
71
|
return { header, body };
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
-
const renderInfo = (item: CardCellProps, i: number) => <CardCell key={String(i)} {...item} />;
|
|
@@ -33,7 +33,6 @@ export const renderOfficeCard = (branch: Branch, i: number) => {
|
|
|
33
33
|
</div>
|
|
34
34
|
{renderCurrentDaySchedule(workScheduleWeek)}
|
|
35
35
|
</div>
|
|
36
|
-
<div className="hidden sm:block">{renderCardContent(branch)}</div>
|
|
37
36
|
<FoldableCardContent>{renderCardContent(branch)}</FoldableCardContent>
|
|
38
37
|
</div>
|
|
39
38
|
);
|
|
@@ -26,7 +26,6 @@ export const renderRemoteWorkplaceCard = (
|
|
|
26
26
|
) : null}
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
-
<div className="hidden sm:block">{renderCardContent(workScheduleDescription)}</div>
|
|
30
29
|
<FoldableCardContent>{renderCardContent(workScheduleDescription)}</FoldableCardContent>
|
|
31
30
|
</div>
|
|
32
31
|
);
|
|
@@ -2,7 +2,6 @@ import '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { type BlockDef } from '../../model/ContentPageDef';
|
|
5
|
-
import { type Picture } from '../../model/Picture';
|
|
6
5
|
import { Blocks } from '../Blocks.mobile';
|
|
7
6
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture.mobile';
|
|
8
7
|
import { RollupItem } from './RollupItem';
|
|
@@ -23,18 +22,10 @@ export const ROLLUP_ITEM: BlockDef = {
|
|
|
23
22
|
],
|
|
24
23
|
};
|
|
25
24
|
|
|
26
|
-
const labelIcon: Picture = { icon: 'BriefcaseIcon' };
|
|
27
|
-
|
|
28
25
|
export default {
|
|
29
26
|
default: (
|
|
30
27
|
<div>
|
|
31
|
-
<RollupItem
|
|
32
|
-
{...ROLLUP_ITEM.content}
|
|
33
|
-
block={ROLLUP_ITEM}
|
|
34
|
-
labelIcon={labelIcon}
|
|
35
|
-
labelIconBgVersion="primary"
|
|
36
|
-
options={options}
|
|
37
|
-
/>
|
|
28
|
+
<RollupItem {...ROLLUP_ITEM.content} block={ROLLUP_ITEM} options={options} />
|
|
38
29
|
<RollupItem
|
|
39
30
|
foldButtonVersion="accordion"
|
|
40
31
|
{...ROLLUP_ITEM.content}
|
|
@@ -50,8 +41,6 @@ export default {
|
|
|
50
41
|
isExpanded={true}
|
|
51
42
|
foldButtonVersion="accordion"
|
|
52
43
|
label="RollupItem label 1"
|
|
53
|
-
labelIcon={labelIcon}
|
|
54
|
-
labelIconBgVersion="primary"
|
|
55
44
|
options={options}
|
|
56
45
|
/>
|
|
57
46
|
</div>
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
2
2
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
3
3
|
import { useMobileMode } from '../../hooks/useMobileMode';
|
|
4
|
-
import { type Picture } from '../../model/Picture';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
7
6
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
8
|
-
import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
9
7
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
10
|
-
import { type IconBgVersion, type IconProps } from '../../ui-kit/Icon/IconProps';
|
|
11
8
|
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
12
9
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
13
10
|
import { style } from '../../utils/style';
|
|
14
|
-
import { AccordionFoldButton } from './AccordionFoldButton';
|
|
15
11
|
import { getFoldableStyles } from './getFoldableStyles';
|
|
16
|
-
import {
|
|
17
|
-
import { type FoldButtonVersion, type RollupItemContent } from './RollupItemContent';
|
|
12
|
+
import { type RollupItemContent } from './RollupItemContent';
|
|
18
13
|
|
|
19
14
|
interface RollupItemProps extends RollupItemContent, UniBlockProps {
|
|
20
|
-
labelIcon?: Picture;
|
|
21
|
-
labelIconBgVersion?: IconBgVersion;
|
|
22
15
|
role?: string;
|
|
23
16
|
}
|
|
24
17
|
|
|
@@ -27,10 +20,8 @@ export const RollupItem = UniBlock<RollupItemProps>(
|
|
|
27
20
|
className = '',
|
|
28
21
|
isExpanded,
|
|
29
22
|
isFoldButtonOnTop = true,
|
|
30
|
-
label = 'Развернуть',
|
|
31
|
-
labelIcon,
|
|
32
|
-
labelIconBgVersion,
|
|
33
23
|
foldButtonVersion = 'default',
|
|
24
|
+
label,
|
|
34
25
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
26
|
version,
|
|
36
27
|
role,
|
|
@@ -51,15 +42,17 @@ export const RollupItem = UniBlock<RollupItemProps>(
|
|
|
51
42
|
})}
|
|
52
43
|
</FoldableSection>
|
|
53
44
|
);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
|
|
46
|
+
const isAccordion = foldButtonVersion === 'accordion';
|
|
47
|
+
const foldButton = (
|
|
48
|
+
<DefaultFoldButton
|
|
49
|
+
className={style('w-full', { 'text-h6 my-lg': isAccordion })}
|
|
50
|
+
label={label}
|
|
51
|
+
isUnfolded={isUnfolded}
|
|
52
|
+
embedded={isAccordion}
|
|
53
|
+
onClick={toggle}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
63
56
|
|
|
64
57
|
return (
|
|
65
58
|
<BlockWrapper
|
|
@@ -80,45 +73,5 @@ export const RollupItem = UniBlock<RollupItemProps>(
|
|
|
80
73
|
</BlockWrapper>
|
|
81
74
|
);
|
|
82
75
|
},
|
|
83
|
-
{
|
|
84
|
-
childrenTypes: { exclude: ['RollupItem'] },
|
|
85
|
-
},
|
|
76
|
+
{ childrenTypes: { exclude: ['RollupItem'] } },
|
|
86
77
|
);
|
|
87
|
-
|
|
88
|
-
interface FoldButtonProps extends FoldablePartProps {
|
|
89
|
-
foldButtonVersion?: FoldButtonVersion;
|
|
90
|
-
label?: string;
|
|
91
|
-
labelIcon?: IconProps;
|
|
92
|
-
labelIconBgVersion?: IconBgVersion;
|
|
93
|
-
isPadding?: boolean;
|
|
94
|
-
isMobile?: boolean;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const renderFoldButton = ({
|
|
98
|
-
foldButtonVersion,
|
|
99
|
-
label: defaultLabel,
|
|
100
|
-
labelIcon,
|
|
101
|
-
labelIconBgVersion,
|
|
102
|
-
isUnfolded,
|
|
103
|
-
isMobile = false,
|
|
104
|
-
onToggle,
|
|
105
|
-
}: FoldButtonProps) => {
|
|
106
|
-
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
107
|
-
const icon = getIconName(isUnfolded, isMobile);
|
|
108
|
-
|
|
109
|
-
return foldButtonVersion === 'accordion' ? (
|
|
110
|
-
<AccordionFoldButton
|
|
111
|
-
label={label}
|
|
112
|
-
labelIcon={labelIcon}
|
|
113
|
-
labelIconBgVersion={labelIconBgVersion}
|
|
114
|
-
icon={icon}
|
|
115
|
-
onToggle={onToggle}
|
|
116
|
-
/>
|
|
117
|
-
) : (
|
|
118
|
-
<DefaultFoldButton
|
|
119
|
-
label={label}
|
|
120
|
-
icon={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
|
|
121
|
-
onClick={onToggle}
|
|
122
|
-
/>
|
|
123
|
-
);
|
|
124
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
3
3
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
4
4
|
import { Text } from '../../ui-kit/Text/Text';
|
|
5
5
|
import { type Tariff } from './useSafeBoxes';
|
|
@@ -25,7 +25,7 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
|
|
|
25
25
|
</Paragraph>
|
|
26
26
|
</div>
|
|
27
27
|
<div className="flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center">
|
|
28
|
-
<
|
|
28
|
+
<Icon className="@xl:h-60" name="PackA4Icon" />
|
|
29
29
|
<div className="hidden @xl:inline opacity-80 whitespace-pre-line">
|
|
30
30
|
<Paragraph size="text-s" font="font-light" color="text-white">
|
|
31
31
|
{imageDescription}
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
3
3
|
import { useCarouselControls } from '../../hooks/useCarouselControls';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import {
|
|
5
|
+
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
6
6
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
7
7
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
8
8
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
@@ -63,7 +63,7 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
63
63
|
{visibleRows}
|
|
64
64
|
<FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
|
|
65
65
|
</TariffsTableWrapper>
|
|
66
|
-
|
|
66
|
+
<DefaultFoldButton className="w-full" isUnfolded={isUnfolded} onClick={toggle} />
|
|
67
67
|
</Foldable>
|
|
68
68
|
) : (
|
|
69
69
|
<TariffsTableWrapper controls={controls}>{rows}</TariffsTableWrapper>
|
|
@@ -18,7 +18,7 @@ interface GridBlocksProps extends GridSection, UniBlockProps {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const GridBlocks = JSX<GridBlocksProps>(
|
|
21
|
-
({ topItemsCount = 0, label
|
|
21
|
+
({ topItemsCount = 0, label, block, blocksToRender = [], ...rest }) => {
|
|
22
22
|
const [visibleBlocks, hiddenBlocks] =
|
|
23
23
|
topItemsCount > 0
|
|
24
24
|
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
@@ -38,11 +38,11 @@ export const GridBlocks = JSX<GridBlocksProps>(
|
|
|
38
38
|
{isOdd(hiddenBlocks.length) ? <AdTile className="col-span-6" {...rest} /> : null}
|
|
39
39
|
</FoldableSection>
|
|
40
40
|
<DefaultFoldButton
|
|
41
|
-
className={style({ hidden: topItemsCount < 1 })}
|
|
42
|
-
dataTheme={rest.options?.page?.colorPalette}
|
|
43
|
-
disabled={!hiddenBlocks?.length}
|
|
41
|
+
className={style('w-full', { hidden: topItemsCount < 1 })}
|
|
44
42
|
label={label}
|
|
45
|
-
|
|
43
|
+
isUnfolded={isUnfolded}
|
|
44
|
+
disabled={!hiddenBlocks?.length}
|
|
45
|
+
dataTheme={rest.options?.page?.colorPalette}
|
|
46
46
|
onClick={toggle}
|
|
47
47
|
/>
|
|
48
48
|
</Foldable>
|
|
@@ -10,7 +10,6 @@ export default {
|
|
|
10
10
|
<div className="bg-white p-xl flex flex-col gap-2">
|
|
11
11
|
<p>Primary</p>
|
|
12
12
|
<Button>{buttonText}</Button>
|
|
13
|
-
<Button active>{buttonText}</Button>
|
|
14
13
|
<Button disabled>{buttonText}</Button>
|
|
15
14
|
<Button>
|
|
16
15
|
{icon}
|
|
@@ -20,9 +19,6 @@ export default {
|
|
|
20
19
|
<div className="bg-white p-xl flex flex-col gap-2">
|
|
21
20
|
<p>Secondary</p>
|
|
22
21
|
<Button version="secondary">{buttonText}</Button>
|
|
23
|
-
<Button version="secondary" active>
|
|
24
|
-
{buttonText}
|
|
25
|
-
</Button>
|
|
26
22
|
<Button version="secondary" disabled>
|
|
27
23
|
{buttonText}
|
|
28
24
|
</Button>
|
|
@@ -38,7 +34,6 @@ export default {
|
|
|
38
34
|
<div className="bg-primary-main p-xl flex flex-col gap-2">
|
|
39
35
|
<p className="text-white">Primary</p>
|
|
40
36
|
<Button>{buttonText}</Button>
|
|
41
|
-
<Button active>{buttonText}</Button>
|
|
42
37
|
<Button disabled>{buttonText}</Button>
|
|
43
38
|
<Button>
|
|
44
39
|
{icon}
|
|
@@ -48,9 +43,6 @@ export default {
|
|
|
48
43
|
<div className="bg-primary-main p-xl flex flex-col gap-2">
|
|
49
44
|
<p className="text-white">Secondary</p>
|
|
50
45
|
<Button version="secondary">{buttonText}</Button>
|
|
51
|
-
<Button version="secondary" active>
|
|
52
|
-
{buttonText}
|
|
53
|
-
</Button>
|
|
54
46
|
<Button version="secondary" disabled>
|
|
55
47
|
{buttonText}
|
|
56
48
|
</Button>
|
|
@@ -1,77 +1,93 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { handlerDecorator } from '../../external/handlerDecorator';
|
|
4
|
+
import { type AspectsDef } from '../../model/AspectsProps';
|
|
2
5
|
import { type ButtonVersion } from '../../model/ButtonVersion';
|
|
6
|
+
import { type ColorPalette } from '../../model/ContentPageBase';
|
|
7
|
+
import { getAspectsAttributes } from '../../utils/dataAttributes';
|
|
3
8
|
import { style } from '../../utils/style';
|
|
4
9
|
import { type ARIAProps } from '../ARIAProps';
|
|
5
10
|
import { type ControlStateProps } from '../ControlStateProps';
|
|
6
|
-
import { Loader } from '../Loader/Loader';
|
|
7
11
|
import { type PreventableEvent } from '../PreventableEvent';
|
|
8
|
-
import { useButton } from './useButton';
|
|
9
12
|
|
|
10
13
|
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
11
|
-
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
12
|
-
secondary:
|
|
13
|
-
'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const secondaryButtonStyleMap: Record<ButtonVersion, string> = {
|
|
17
14
|
primary: style(
|
|
15
|
+
'justify-center px-9 py-4',
|
|
16
|
+
'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
18
17
|
'group-data-secondary:text-primary-main group-data-secondary:bg-white',
|
|
19
18
|
'group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover',
|
|
20
19
|
'group-data-secondary:active:bg-primary-active',
|
|
21
20
|
),
|
|
22
21
|
secondary: style(
|
|
22
|
+
'justify-center px-9 py-4',
|
|
23
|
+
'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
23
24
|
'group-data-secondary:text-white group-data-secondary:bg-white/20',
|
|
24
25
|
'group-data-secondary:hover:bg-primary-hover',
|
|
25
26
|
'group-data-secondary:active:bg-primary-active',
|
|
26
27
|
),
|
|
27
28
|
};
|
|
28
29
|
|
|
30
|
+
const embeddedStyle = style(
|
|
31
|
+
'group/btn-embedded',
|
|
32
|
+
'justify-between p-0',
|
|
33
|
+
'bg-transparent border border-transparent outline-none',
|
|
34
|
+
);
|
|
35
|
+
|
|
29
36
|
export interface ButtonProps extends ControlStateProps, ARIAProps {
|
|
30
37
|
className?: string;
|
|
31
|
-
version?: ButtonVersion;
|
|
32
38
|
type?: 'button' | 'submit' | 'reset';
|
|
39
|
+
version?: ButtonVersion;
|
|
40
|
+
embedded?: boolean;
|
|
33
41
|
rounded?: boolean;
|
|
34
|
-
isLoading?: boolean;
|
|
35
42
|
role?: string;
|
|
36
|
-
|
|
43
|
+
data?: AspectsDef[];
|
|
44
|
+
dataTheme?: ColorPalette;
|
|
45
|
+
onClick?: (ev: PreventableEvent) => void;
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
export const Button = JSX<ButtonProps>(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const {
|
|
48
|
+
export const Button = JSX<ButtonProps>(
|
|
49
|
+
({
|
|
43
50
|
className,
|
|
44
|
-
version = 'primary',
|
|
45
|
-
active,
|
|
46
|
-
disabled,
|
|
47
|
-
isLoading,
|
|
48
51
|
type = 'button',
|
|
52
|
+
version = 'primary',
|
|
53
|
+
embedded,
|
|
49
54
|
rounded = true,
|
|
55
|
+
disabled,
|
|
50
56
|
role,
|
|
57
|
+
data,
|
|
58
|
+
dataTheme,
|
|
59
|
+
children,
|
|
51
60
|
onClick,
|
|
52
|
-
}
|
|
61
|
+
}) => {
|
|
62
|
+
const handleClick = useCallback(
|
|
63
|
+
handlerDecorator((ev: PreventableEvent) => {
|
|
64
|
+
!disabled && onClick?.(ev);
|
|
65
|
+
}),
|
|
66
|
+
[disabled, onClick],
|
|
67
|
+
);
|
|
68
|
+
const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
|
|
53
69
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
return (
|
|
71
|
+
<button
|
|
72
|
+
className={style(
|
|
73
|
+
'font-sans flex items-center gap-xs relative',
|
|
74
|
+
!disabled && !embedded && buttonStyleMap[version],
|
|
75
|
+
{
|
|
76
|
+
[embeddedStyle]: embedded,
|
|
77
|
+
'rounded-md': rounded,
|
|
78
|
+
'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
|
|
79
|
+
},
|
|
80
|
+
className,
|
|
81
|
+
)}
|
|
82
|
+
type={type}
|
|
83
|
+
role={role}
|
|
84
|
+
data-theme={dataTheme}
|
|
85
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
86
|
+
{...aspectsAttrs}
|
|
87
|
+
onClick={handleClick}
|
|
88
|
+
>
|
|
89
|
+
{children}
|
|
90
|
+
</button>
|
|
91
|
+
);
|
|
92
|
+
},
|
|
93
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
3
|
+
|
|
4
|
+
interface ButtonTitleProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ButtonTitle = JSX<ButtonTitleProps>(({ className, children }) => (
|
|
9
|
+
<span
|
|
10
|
+
className={style(
|
|
11
|
+
'inline-flex items-center text-start gap-s group-hover/btn-embedded:text-primary-main',
|
|
12
|
+
className,
|
|
13
|
+
)}
|
|
14
|
+
>
|
|
15
|
+
{children}
|
|
16
|
+
</span>
|
|
17
|
+
));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Loader } from '../Loader/Loader';
|
|
3
|
+
import { Button, type ButtonProps } from './Button';
|
|
4
|
+
|
|
5
|
+
export interface SubmitButtonProps extends ButtonProps {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const SubmitButton = JSX<SubmitButtonProps>(({ isLoading, disabled, children, ...rest }) => (
|
|
10
|
+
<Button type="submit" disabled={isLoading || disabled} {...rest}>
|
|
11
|
+
{isLoading ? <Loader blur={true} size="small" /> : null}
|
|
12
|
+
{children}
|
|
13
|
+
</Button>
|
|
14
|
+
));
|
|
@@ -4,6 +4,7 @@ import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
|
4
4
|
import { checkCaptcha } from '../../api/RetailAPI/checkCaptcha';
|
|
5
5
|
import { createCaptcha } from '../../api/RetailAPI/createCaptcha';
|
|
6
6
|
import { Button } from '../Button/Button';
|
|
7
|
+
import { SubmitButton } from '../Button/SubmitButton';
|
|
7
8
|
import { Dialog } from '../DialogManager/Dialog';
|
|
8
9
|
import { Icon } from '../Icon/Icon';
|
|
9
10
|
import { Input } from '../Input/Input';
|
|
@@ -50,12 +51,9 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
|
|
|
50
51
|
<div className="flex flex-col gap-lg items-center rounded-md">
|
|
51
52
|
<div className="flex h-36 w-72">
|
|
52
53
|
<img className="grow" src={captcha}></img>
|
|
53
|
-
<
|
|
54
|
-
onClick={handleCreateCaptcha}
|
|
55
|
-
className="flex w-8 items-center justify-center cursor-pointer"
|
|
56
|
-
>
|
|
54
|
+
<Button className="w-8" embedded onClick={handleCreateCaptcha}>
|
|
57
55
|
<Icon iconVersion="normal" name="RefreshIcon" />
|
|
58
|
-
</
|
|
56
|
+
</Button>
|
|
59
57
|
</div>
|
|
60
58
|
<Input
|
|
61
59
|
className="w-[300px]"
|
|
@@ -65,12 +63,12 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
|
|
|
65
63
|
/>
|
|
66
64
|
{hasError ? <div className="text-error">Неверный код</div> : null}
|
|
67
65
|
<div className="flex w-[310px] justify-between">
|
|
68
|
-
<Button onClick={close}
|
|
66
|
+
<Button version="secondary" onClick={close}>
|
|
69
67
|
Вернуться
|
|
70
68
|
</Button>
|
|
71
|
-
<
|
|
69
|
+
<SubmitButton version="secondary" disabled={!code} onClick={handleCheckCaptcha}>
|
|
72
70
|
Отправить
|
|
73
|
-
</
|
|
71
|
+
</SubmitButton>
|
|
74
72
|
</div>
|
|
75
73
|
{isLoading ? <Loader blur={false} /> : null}
|
|
76
74
|
</div>
|