@alfalab/core-components 45.8.0-beta.5 → 45.9.0
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/bank-card/Component.d.ts +6 -0
- package/bank-card/Component.js +14 -9
- package/bank-card/cssm/Component.d.ts +6 -0
- package/bank-card/cssm/Component.js +14 -9
- package/bank-card/cssm/enums.d.ts +6 -0
- package/bank-card/cssm/enums.js +8 -0
- package/bank-card/cssm/helpers/getDefaultInputLabel.d.ts +3 -0
- package/bank-card/cssm/helpers/getDefaultInputLabel.js +17 -0
- package/bank-card/cssm/types.d.ts +2 -0
- package/bank-card/cssm/types.js +1 -0
- package/bank-card/enums.d.ts +6 -0
- package/bank-card/enums.js +8 -0
- package/bank-card/esm/Component.d.ts +6 -0
- package/bank-card/esm/Component.js +14 -9
- package/bank-card/esm/enums.d.ts +6 -0
- package/bank-card/esm/enums.js +8 -0
- package/bank-card/esm/helpers/getDefaultInputLabel.d.ts +3 -0
- package/bank-card/esm/helpers/getDefaultInputLabel.js +15 -0
- package/bank-card/esm/index.js +2 -0
- package/bank-card/esm/types.d.ts +2 -0
- package/bank-card/esm/types.js +1 -0
- package/bank-card/helpers/getDefaultInputLabel.d.ts +3 -0
- package/bank-card/helpers/getDefaultInputLabel.js +17 -0
- package/bank-card/modern/Component.d.ts +6 -0
- package/bank-card/modern/Component.js +14 -7
- package/bank-card/modern/enums.d.ts +6 -0
- package/bank-card/modern/enums.js +8 -0
- package/bank-card/modern/helpers/getDefaultInputLabel.d.ts +3 -0
- package/bank-card/modern/helpers/getDefaultInputLabel.js +15 -0
- package/bank-card/modern/index.js +2 -0
- package/bank-card/modern/types.d.ts +2 -0
- package/bank-card/modern/types.js +1 -0
- package/bank-card/types.d.ts +2 -0
- package/bank-card/types.js +1 -0
- package/bottom-sheet/component.js +22 -12
- package/bottom-sheet/consts/swipeConsts.d.ts +2 -0
- package/bottom-sheet/consts/swipeConsts.js +7 -0
- package/bottom-sheet/cssm/component.js +22 -12
- package/bottom-sheet/cssm/consts/swipeConsts.d.ts +2 -0
- package/bottom-sheet/cssm/consts/swipeConsts.js +7 -0
- package/bottom-sheet/cssm/enums/swipeEnums.d.ts +7 -0
- package/bottom-sheet/cssm/enums/swipeEnums.js +9 -0
- package/bottom-sheet/cssm/types/swipeTypes.d.ts +9 -0
- package/bottom-sheet/cssm/types/swipeTypes.js +1 -0
- package/bottom-sheet/enums/swipeEnums.d.ts +7 -0
- package/bottom-sheet/enums/swipeEnums.js +9 -0
- package/bottom-sheet/esm/component.js +23 -12
- package/bottom-sheet/esm/consts/swipeConsts.d.ts +2 -0
- package/bottom-sheet/esm/consts/swipeConsts.js +5 -0
- package/bottom-sheet/esm/enums/swipeEnums.d.ts +7 -0
- package/bottom-sheet/esm/enums/swipeEnums.js +9 -0
- package/bottom-sheet/esm/index.js +2 -0
- package/bottom-sheet/esm/types/swipeTypes.d.ts +9 -0
- package/bottom-sheet/esm/types/swipeTypes.js +1 -0
- package/bottom-sheet/modern/component.js +23 -9
- package/bottom-sheet/modern/consts/swipeConsts.d.ts +2 -0
- package/bottom-sheet/modern/consts/swipeConsts.js +5 -0
- package/bottom-sheet/modern/enums/swipeEnums.d.ts +7 -0
- package/bottom-sheet/modern/enums/swipeEnums.js +9 -0
- package/bottom-sheet/modern/index.js +2 -0
- package/bottom-sheet/modern/types/swipeTypes.d.ts +9 -0
- package/bottom-sheet/modern/types/swipeTypes.js +1 -0
- package/bottom-sheet/types/swipeTypes.d.ts +9 -0
- package/bottom-sheet/types/swipeTypes.js +1 -0
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/international-phone-input/cssm/typings-57569e57.d.ts +18 -2
- package/international-phone-input/esm/typings-57569e57.d.ts +18 -2
- package/international-phone-input/modern/typings-57569e57.d.ts +18 -2
- package/international-phone-input/typings-57569e57.d.ts +18 -2
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/package.json +2 -2
- package/picker-button/cssm/typings-57569e57.d.ts +18 -2
- package/picker-button/esm/typings-57569e57.d.ts +18 -2
- package/picker-button/modern/typings-57569e57.d.ts +18 -2
- package/picker-button/typings-57569e57.d.ts +18 -2
- package/pure-cell/{component-911cc97f.js → component-1b03bea6.js} +1 -1
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/cssm/{component-719b272a.js → component-e3105fca.js} +1 -1
- package/pure-cell/cssm/component.js +1 -1
- package/pure-cell/cssm/components/addon/component.js +1 -1
- package/pure-cell/cssm/components/addon/index.d.ts +1 -1
- package/pure-cell/cssm/components/addon/index.js +1 -1
- package/pure-cell/cssm/components/amount/component.js +1 -1
- package/pure-cell/cssm/components/amount/index.d.ts +1 -1
- package/pure-cell/cssm/components/amount/index.js +1 -1
- package/pure-cell/cssm/components/amount-title/component.js +1 -1
- package/pure-cell/cssm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/cssm/components/amount-title/index.js +1 -1
- package/pure-cell/cssm/components/category/component.js +1 -1
- package/pure-cell/cssm/components/category/index.d.ts +1 -1
- package/pure-cell/cssm/components/category/index.js +1 -1
- package/pure-cell/cssm/components/content/component.js +1 -1
- package/pure-cell/cssm/components/content/index.d.ts +1 -1
- package/pure-cell/cssm/components/content/index.js +1 -1
- package/pure-cell/cssm/components/footer/component.js +1 -1
- package/pure-cell/cssm/components/footer/index.d.ts +1 -1
- package/pure-cell/cssm/components/footer/index.js +1 -1
- package/pure-cell/cssm/components/footer-button/component.js +1 -1
- package/pure-cell/cssm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/cssm/components/footer-button/index.js +1 -1
- package/pure-cell/cssm/components/footer-text/component.js +1 -1
- package/pure-cell/cssm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/cssm/components/footer-text/index.js +1 -1
- package/pure-cell/cssm/components/graphics/component.js +1 -1
- package/pure-cell/cssm/components/graphics/index.d.ts +1 -1
- package/pure-cell/cssm/components/graphics/index.js +1 -1
- package/pure-cell/cssm/components/main/component.js +1 -1
- package/pure-cell/cssm/components/main/index.d.ts +1 -1
- package/pure-cell/cssm/components/main/index.js +1 -1
- package/pure-cell/cssm/components/text/component.js +1 -1
- package/pure-cell/cssm/components/text/index.d.ts +1 -1
- package/pure-cell/cssm/components/text/index.js +1 -1
- package/pure-cell/cssm/index.js +1 -1
- package/pure-cell/esm/{component-53618056.js → component-02d56ae7.js} +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/{component-254f4794.js → component-766c0ee4.js} +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/components/base-option/Component.js +6 -2
- package/select/components/base-option/index.css +4 -3
- package/select/cssm/components/base-option/Component.js +5 -1
- package/select/cssm/components/base-option/index.module.css +4 -2
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/components/base-option/Component.js +6 -2
- package/select/esm/components/base-option/index.css +4 -3
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/components/base-option/Component.js +5 -2
- package/select/modern/components/base-option/index.css +4 -3
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/collapsible/index.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
- package/tabs/esm/components/tabs/Component.desktop.js +2 -2
- package/tabs/esm/components/tabs/Component.mobile.js +2 -2
- package/tabs/esm/components/tabs/Component.responsive.js +2 -2
- package/tabs/esm/desktop/index.js +2 -2
- package/tabs/esm/index.js +2 -2
- package/tabs/esm/mobile/index.js +2 -2
- package/tabs/modern/collapsible/index.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop/index.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/mobile/index.js +2 -2
- package/textarea/Component.js +2 -2
- package/textarea/cssm/Component.js +2 -2
- package/textarea/cssm/typings.d.ts +5 -0
- package/textarea/esm/Component.js +2 -2
- package/textarea/esm/typings.d.ts +5 -0
- package/textarea/modern/Component.js +2 -2
- package/textarea/modern/typings.d.ts +5 -0
- package/textarea/typings.d.ts +5 -0
- package/themes/compiled/mobile-dark-bluetint.css +30 -169
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-mobile/component.js +2 -2
- package/typography/esm/title-mobile/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-mobile/component.js +2 -2
- package/typography/modern/title-mobile/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +1 -1
- package/typography/title-mobile/component.js +1 -1
- package/typography/title-responsive/component.js +1 -1
- /package/confirmation/{countdown-section-5581379b.d.ts → countdown-section-b30d5212.d.ts} +0 -0
- /package/confirmation/{countdown-section-5581379b.js → countdown-section-b30d5212.js} +0 -0
- /package/confirmation/esm/{countdown-section-2f02c020.d.ts → countdown-section-c4f73a77.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-2f02c020.js → countdown-section-c4f73a77.js} +0 -0
- /package/confirmation/modern/{countdown-section-27ad8a44.d.ts → countdown-section-f3215ad8.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-27ad8a44.js → countdown-section-f3215ad8.js} +0 -0
- /package/modal/esm/{layout.module-ec4a90b6.js → layout.module-95a81cec.js} +0 -0
- /package/modal/{layout.module-0786cc33.js → layout.module-7688fd0c.js} +0 -0
- /package/modal/modern/{layout.module-8379050e.js → layout.module-5b92887c.js} +0 -0
- /package/pure-cell/{component-911cc97f.d.ts → component-1b03bea6.d.ts} +0 -0
- /package/pure-cell/cssm/{component-719b272a.d.ts → component-e3105fca.d.ts} +0 -0
- /package/pure-cell/esm/{component-53618056.d.ts → component-02d56ae7.d.ts} +0 -0
- /package/pure-cell/modern/{component-254f4794.d.ts → component-766c0ee4.d.ts} +0 -0
- /package/select/esm/{hook-234f7a67.d.ts → hook-bff79f71.d.ts} +0 -0
- /package/select/esm/{hook-234f7a67.js → hook-bff79f71.js} +0 -0
- /package/select/{hook-5f6e7b13.d.ts → hook-54f25d8f.d.ts} +0 -0
- /package/select/{hook-5f6e7b13.js → hook-54f25d8f.js} +0 -0
- /package/select/modern/{hook-46a9009f.d.ts → hook-c270fa38.d.ts} +0 -0
- /package/select/modern/{hook-46a9009f.js → hook-c270fa38.js} +0 -0
- /package/tabs/esm/{index.module-a60afb2d.js → index.module-0655283c.js} +0 -0
- /package/tabs/esm/{index.module-e6c5bf7b.js → index.module-7ff70640.js} +0 -0
- /package/tabs/{index.module-2a9c83e8.js → index.module-5e2c2277.js} +0 -0
- /package/tabs/{index.module-a4d37ad2.js → index.module-c171ff65.js} +0 -0
- /package/tabs/modern/{index.module-7ddd604e.js → index.module-65b2af6e.js} +0 -0
- /package/tabs/modern/{index.module-f30fb0bd.js → index.module-d1b9db81.js} +0 -0
- /package/typography/{colors.module-a11b73e9.js → colors.module-1425c827.js} +0 -0
- /package/typography/{common.module-25e7ce83.js → common.module-7149df75.js} +0 -0
- /package/typography/esm/{colors.module-e5414e42.js → colors.module-2c5f7086.js} +0 -0
- /package/typography/esm/{common.module-bd07cc74.js → common.module-34c95dd1.js} +0 -0
- /package/typography/modern/{colors.module-9fa7fdee.js → colors.module-dfec17f2.js} +0 -0
- /package/typography/modern/{common.module-e73684d9.js → common.module-6efdb2ce.js} +0 -0
|
@@ -11,6 +11,7 @@ var coreComponentsShared = require('../../shared/cssm');
|
|
|
11
11
|
var components_footer_Component = require('./components/footer/Component.js');
|
|
12
12
|
var components_header_Component = require('./components/header/Component.js');
|
|
13
13
|
var components_swipeableBackdrop_Component = require('./components/swipeable-backdrop/Component.js');
|
|
14
|
+
var consts_swipeConsts = require('./consts/swipeConsts.js');
|
|
14
15
|
var utils = require('./utils.js');
|
|
15
16
|
var styles = require('./index.module.css');
|
|
16
17
|
|
|
@@ -187,8 +188,9 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
187
188
|
* Если контент внутри шторки скроллится - то шторка не должна свайпаться
|
|
188
189
|
* Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
|
|
189
190
|
*/
|
|
190
|
-
var shouldSkipSwiping = function (
|
|
191
|
+
var shouldSkipSwiping = function (swipeParams) {
|
|
191
192
|
var _a;
|
|
193
|
+
var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
|
|
192
194
|
if (scrollLockedProp || swipingInProgress)
|
|
193
195
|
return false;
|
|
194
196
|
if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
|
|
@@ -213,18 +215,24 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
213
215
|
if (!scrollOccurred.current && shouldScroll) {
|
|
214
216
|
scrollOccurred.current = true;
|
|
215
217
|
}
|
|
218
|
+
// Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
|
|
219
|
+
if (consts_swipeConsts.horizontalDirections.includes(dir)) {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
216
222
|
return shouldScroll;
|
|
217
223
|
};
|
|
218
|
-
var
|
|
219
|
-
var initial =
|
|
220
|
-
|
|
224
|
+
var handleSheetSwipeEnd = function (swipeParams) {
|
|
225
|
+
var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
|
|
226
|
+
var shouldPreventSwipe = scrollOccurred.current ||
|
|
227
|
+
shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
|
|
228
|
+
if (shouldPreventSwipe) {
|
|
221
229
|
return;
|
|
222
230
|
}
|
|
223
231
|
magnetize(velocity, deltaY);
|
|
224
232
|
};
|
|
225
|
-
var handleSheetSwipeStart = function (
|
|
226
|
-
var deltaY =
|
|
227
|
-
if (shouldSkipSwiping(deltaY, initial[1], event)) {
|
|
233
|
+
var handleSheetSwipeStart = function (swipeParams) {
|
|
234
|
+
var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
|
|
235
|
+
if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
|
|
228
236
|
return;
|
|
229
237
|
}
|
|
230
238
|
startSwiping(event);
|
|
@@ -233,9 +241,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
233
241
|
var event = _a.event;
|
|
234
242
|
return stopSwiping(event);
|
|
235
243
|
};
|
|
236
|
-
var
|
|
237
|
-
var initial =
|
|
238
|
-
|
|
244
|
+
var handleSheetSwipeMove = function (swipeParams) {
|
|
245
|
+
var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
|
|
246
|
+
var shouldPreventSwipe = scrollOccurred.current ||
|
|
247
|
+
shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
|
|
248
|
+
if (shouldPreventSwipe) {
|
|
239
249
|
return;
|
|
240
250
|
}
|
|
241
251
|
if (!swipingInProgress) {
|
|
@@ -248,8 +258,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
248
258
|
};
|
|
249
259
|
var sheetSwipeableHandlers = reactSwipeable.useSwipeable({
|
|
250
260
|
onSwipeStart: handleSheetSwipeStart,
|
|
251
|
-
onSwiping:
|
|
252
|
-
onSwiped:
|
|
261
|
+
onSwiping: handleSheetSwipeMove,
|
|
262
|
+
onSwiped: handleSheetSwipeEnd,
|
|
253
263
|
onTouchEndOrOnMouseUp: handleTouchEnd,
|
|
254
264
|
trackMouse: swipeable,
|
|
255
265
|
trackTouch: swipeable,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var enums_swipeEnums = require('../enums/swipeEnums.js');
|
|
4
|
+
|
|
5
|
+
var horizontalDirections = [enums_swipeEnums.SwipeDirection.Left, enums_swipeEnums.SwipeDirection.Right];
|
|
6
|
+
|
|
7
|
+
exports.horizontalDirections = horizontalDirections;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
exports.SwipeDirection = void 0;
|
|
4
|
+
(function (SwipeDirection) {
|
|
5
|
+
SwipeDirection["Left"] = "Left";
|
|
6
|
+
SwipeDirection["Right"] = "Right";
|
|
7
|
+
SwipeDirection["Up"] = "Up";
|
|
8
|
+
SwipeDirection["Down"] = "Down";
|
|
9
|
+
})(exports.SwipeDirection || (exports.SwipeDirection = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SwipeDirections } from 'react-swipeable';
|
|
2
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
|
+
type ShouldSkipSwipingParams = {
|
|
4
|
+
deltaY: number;
|
|
5
|
+
startY: number;
|
|
6
|
+
event: HandledEvents;
|
|
7
|
+
dir: SwipeDirections;
|
|
8
|
+
};
|
|
9
|
+
export { ShouldSkipSwipingParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
exports.SwipeDirection = void 0;
|
|
4
|
+
(function (SwipeDirection) {
|
|
5
|
+
SwipeDirection["Left"] = "Left";
|
|
6
|
+
SwipeDirection["Right"] = "Right";
|
|
7
|
+
SwipeDirection["Up"] = "Up";
|
|
8
|
+
SwipeDirection["Down"] = "Down";
|
|
9
|
+
})(exports.SwipeDirection || (exports.SwipeDirection = {}));
|
|
@@ -9,9 +9,11 @@ import { fnUtils, os, getDataTestId } from '../../shared/esm';
|
|
|
9
9
|
import { Footer } from './components/footer/Component.js';
|
|
10
10
|
import { Header } from './components/header/Component.js';
|
|
11
11
|
import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
|
|
12
|
+
import { horizontalDirections } from './consts/swipeConsts.js';
|
|
12
13
|
import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
|
|
13
14
|
import '../../navigation-bar/esm';
|
|
14
15
|
import '../../backdrop/esm';
|
|
16
|
+
import './enums/swipeEnums.js';
|
|
15
17
|
|
|
16
18
|
var styles = {"modal":"bottom-sheet__modal_tmbtb","wrapper":"bottom-sheet__wrapper_tmbtb","fullscreen":"bottom-sheet__fullscreen_tmbtb","component":"bottom-sheet__component_tmbtb","withTransition":"bottom-sheet__withTransition_tmbtb","scrollableContainer":"bottom-sheet__scrollableContainer_tmbtb","marker":"bottom-sheet__marker_tmbtb","defaultMarker":"bottom-sheet__defaultMarker_tmbtb","content":"bottom-sheet__content_tmbtb","noHeader":"bottom-sheet__noHeader_tmbtb","noFooter":"bottom-sheet__noFooter_tmbtb","scrollLocked":"bottom-sheet__scrollLocked_tmbtb","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tmbtb","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tmbtb","appear":"bottom-sheet__appear_tmbtb","enter":"bottom-sheet__enter_tmbtb","appearActive":"bottom-sheet__appearActive_tmbtb","enterActive":"bottom-sheet__enterActive_tmbtb","enterDone":"bottom-sheet__enterDone_tmbtb","appearDone":"bottom-sheet__appearDone_tmbtb","exit":"bottom-sheet__exit_tmbtb","exitActive":"bottom-sheet__exitActive_tmbtb","safeAreaBottom":"bottom-sheet__safeAreaBottom_tmbtb","background-accent":"bottom-sheet__background-accent_tmbtb","background-info":"bottom-sheet__background-info_tmbtb","background-attention-muted":"bottom-sheet__background-attention-muted_tmbtb","background-positive-muted":"bottom-sheet__background-positive-muted_tmbtb","background-negative-muted":"bottom-sheet__background-negative-muted_tmbtb","background-primary":"bottom-sheet__background-primary_tmbtb","background-primary-inverted":"bottom-sheet__background-primary-inverted_tmbtb","background-secondary":"bottom-sheet__background-secondary_tmbtb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tmbtb","background-tertiary":"bottom-sheet__background-tertiary_tmbtb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tmbtb","background-quaternary":"bottom-sheet__background-quaternary_tmbtb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tmbtb","background-specialbg-component":"bottom-sheet__background-specialbg-component_tmbtb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tmbtb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tmbtb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tmbtb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tmbtb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tmbtb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tmbtb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tmbtb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tmbtb"};
|
|
17
19
|
require('./index.css');
|
|
@@ -182,8 +184,9 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
182
184
|
* Если контент внутри шторки скроллится - то шторка не должна свайпаться
|
|
183
185
|
* Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
|
|
184
186
|
*/
|
|
185
|
-
var shouldSkipSwiping = function (
|
|
187
|
+
var shouldSkipSwiping = function (swipeParams) {
|
|
186
188
|
var _a;
|
|
189
|
+
var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
|
|
187
190
|
if (scrollLockedProp || swipingInProgress)
|
|
188
191
|
return false;
|
|
189
192
|
if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
|
|
@@ -208,18 +211,24 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
208
211
|
if (!scrollOccurred.current && shouldScroll) {
|
|
209
212
|
scrollOccurred.current = true;
|
|
210
213
|
}
|
|
214
|
+
// Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
|
|
215
|
+
if (horizontalDirections.includes(dir)) {
|
|
216
|
+
return true;
|
|
217
|
+
}
|
|
211
218
|
return shouldScroll;
|
|
212
219
|
};
|
|
213
|
-
var
|
|
214
|
-
var initial =
|
|
215
|
-
|
|
220
|
+
var handleSheetSwipeEnd = function (swipeParams) {
|
|
221
|
+
var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
|
|
222
|
+
var shouldPreventSwipe = scrollOccurred.current ||
|
|
223
|
+
shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
|
|
224
|
+
if (shouldPreventSwipe) {
|
|
216
225
|
return;
|
|
217
226
|
}
|
|
218
227
|
magnetize(velocity, deltaY);
|
|
219
228
|
};
|
|
220
|
-
var handleSheetSwipeStart = function (
|
|
221
|
-
var deltaY =
|
|
222
|
-
if (shouldSkipSwiping(deltaY, initial[1], event)) {
|
|
229
|
+
var handleSheetSwipeStart = function (swipeParams) {
|
|
230
|
+
var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
|
|
231
|
+
if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
|
|
223
232
|
return;
|
|
224
233
|
}
|
|
225
234
|
startSwiping(event);
|
|
@@ -228,9 +237,11 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
228
237
|
var event = _a.event;
|
|
229
238
|
return stopSwiping(event);
|
|
230
239
|
};
|
|
231
|
-
var
|
|
232
|
-
var initial =
|
|
233
|
-
|
|
240
|
+
var handleSheetSwipeMove = function (swipeParams) {
|
|
241
|
+
var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
|
|
242
|
+
var shouldPreventSwipe = scrollOccurred.current ||
|
|
243
|
+
shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
|
|
244
|
+
if (shouldPreventSwipe) {
|
|
234
245
|
return;
|
|
235
246
|
}
|
|
236
247
|
if (!swipingInProgress) {
|
|
@@ -243,8 +254,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
243
254
|
};
|
|
244
255
|
var sheetSwipeableHandlers = useSwipeable({
|
|
245
256
|
onSwipeStart: handleSheetSwipeStart,
|
|
246
|
-
onSwiping:
|
|
247
|
-
onSwiped:
|
|
257
|
+
onSwiping: handleSheetSwipeMove,
|
|
258
|
+
onSwiped: handleSheetSwipeEnd,
|
|
248
259
|
onTouchEndOrOnMouseUp: handleTouchEnd,
|
|
249
260
|
trackMouse: swipeable,
|
|
250
261
|
trackTouch: swipeable,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var SwipeDirection;
|
|
2
|
+
(function (SwipeDirection) {
|
|
3
|
+
SwipeDirection["Left"] = "Left";
|
|
4
|
+
SwipeDirection["Right"] = "Right";
|
|
5
|
+
SwipeDirection["Up"] = "Up";
|
|
6
|
+
SwipeDirection["Down"] = "Down";
|
|
7
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
8
|
+
|
|
9
|
+
export { SwipeDirection };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SwipeDirections } from 'react-swipeable';
|
|
2
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
|
+
type ShouldSkipSwipingParams = {
|
|
4
|
+
deltaY: number;
|
|
5
|
+
startY: number;
|
|
6
|
+
event: HandledEvents;
|
|
7
|
+
dir: SwipeDirections;
|
|
8
|
+
};
|
|
9
|
+
export { ShouldSkipSwipingParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -8,9 +8,11 @@ import { os, getDataTestId, fnUtils } from '../../shared/modern';
|
|
|
8
8
|
import { Footer } from './components/footer/Component.js';
|
|
9
9
|
import { Header } from './components/header/Component.js';
|
|
10
10
|
import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
|
|
11
|
+
import { horizontalDirections } from './consts/swipeConsts.js';
|
|
11
12
|
import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
|
|
12
13
|
import '../../navigation-bar/modern';
|
|
13
14
|
import '../../backdrop/modern';
|
|
15
|
+
import './enums/swipeEnums.js';
|
|
14
16
|
|
|
15
17
|
const styles = {"modal":"bottom-sheet__modal_tmbtb","wrapper":"bottom-sheet__wrapper_tmbtb","fullscreen":"bottom-sheet__fullscreen_tmbtb","component":"bottom-sheet__component_tmbtb","withTransition":"bottom-sheet__withTransition_tmbtb","scrollableContainer":"bottom-sheet__scrollableContainer_tmbtb","marker":"bottom-sheet__marker_tmbtb","defaultMarker":"bottom-sheet__defaultMarker_tmbtb","content":"bottom-sheet__content_tmbtb","noHeader":"bottom-sheet__noHeader_tmbtb","noFooter":"bottom-sheet__noFooter_tmbtb","scrollLocked":"bottom-sheet__scrollLocked_tmbtb","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tmbtb","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tmbtb","appear":"bottom-sheet__appear_tmbtb","enter":"bottom-sheet__enter_tmbtb","appearActive":"bottom-sheet__appearActive_tmbtb","enterActive":"bottom-sheet__enterActive_tmbtb","enterDone":"bottom-sheet__enterDone_tmbtb","appearDone":"bottom-sheet__appearDone_tmbtb","exit":"bottom-sheet__exit_tmbtb","exitActive":"bottom-sheet__exitActive_tmbtb","safeAreaBottom":"bottom-sheet__safeAreaBottom_tmbtb","background-accent":"bottom-sheet__background-accent_tmbtb","background-info":"bottom-sheet__background-info_tmbtb","background-attention-muted":"bottom-sheet__background-attention-muted_tmbtb","background-positive-muted":"bottom-sheet__background-positive-muted_tmbtb","background-negative-muted":"bottom-sheet__background-negative-muted_tmbtb","background-primary":"bottom-sheet__background-primary_tmbtb","background-primary-inverted":"bottom-sheet__background-primary-inverted_tmbtb","background-secondary":"bottom-sheet__background-secondary_tmbtb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tmbtb","background-tertiary":"bottom-sheet__background-tertiary_tmbtb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tmbtb","background-quaternary":"bottom-sheet__background-quaternary_tmbtb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tmbtb","background-specialbg-component":"bottom-sheet__background-specialbg-component_tmbtb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tmbtb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tmbtb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tmbtb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tmbtb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tmbtb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tmbtb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tmbtb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tmbtb"};
|
|
16
18
|
require('./index.css');
|
|
@@ -199,7 +201,8 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
199
201
|
* Если контент внутри шторки скроллится - то шторка не должна свайпаться
|
|
200
202
|
* Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
|
|
201
203
|
*/
|
|
202
|
-
const shouldSkipSwiping = (
|
|
204
|
+
const shouldSkipSwiping = (swipeParams) => {
|
|
205
|
+
const { deltaY, startY, event, dir } = swipeParams;
|
|
203
206
|
if (scrollLockedProp || swipingInProgress)
|
|
204
207
|
return false;
|
|
205
208
|
if (!swipeableContent && contentRef.current?.contains(event.target)) {
|
|
@@ -224,23 +227,34 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
224
227
|
if (!scrollOccurred.current && shouldScroll) {
|
|
225
228
|
scrollOccurred.current = true;
|
|
226
229
|
}
|
|
230
|
+
// Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
|
|
231
|
+
if (horizontalDirections.includes(dir)) {
|
|
232
|
+
return true;
|
|
233
|
+
}
|
|
227
234
|
return shouldScroll;
|
|
228
235
|
};
|
|
229
|
-
const
|
|
230
|
-
|
|
236
|
+
const handleSheetSwipeEnd = (swipeParams) => {
|
|
237
|
+
const { initial, velocity, deltaY, event, dir } = swipeParams;
|
|
238
|
+
const shouldPreventSwipe = scrollOccurred.current ||
|
|
239
|
+
shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
|
|
240
|
+
if (shouldPreventSwipe) {
|
|
231
241
|
return;
|
|
232
242
|
}
|
|
233
243
|
magnetize(velocity, deltaY);
|
|
234
244
|
};
|
|
235
|
-
const handleSheetSwipeStart = (
|
|
236
|
-
|
|
245
|
+
const handleSheetSwipeStart = (swipeParams) => {
|
|
246
|
+
const { deltaY, initial, event, dir } = swipeParams;
|
|
247
|
+
if (shouldSkipSwiping({ deltaY, startY: initial[1], event, dir })) {
|
|
237
248
|
return;
|
|
238
249
|
}
|
|
239
250
|
startSwiping(event);
|
|
240
251
|
};
|
|
241
252
|
const handleTouchEnd = ({ event }) => stopSwiping(event);
|
|
242
|
-
const
|
|
243
|
-
|
|
253
|
+
const handleSheetSwipeMove = (swipeParams) => {
|
|
254
|
+
const { initial, deltaY, event, dir } = swipeParams;
|
|
255
|
+
const shouldPreventSwipe = scrollOccurred.current ||
|
|
256
|
+
shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
|
|
257
|
+
if (shouldPreventSwipe) {
|
|
244
258
|
return;
|
|
245
259
|
}
|
|
246
260
|
if (!swipingInProgress) {
|
|
@@ -253,8 +267,8 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
253
267
|
};
|
|
254
268
|
const sheetSwipeableHandlers = useSwipeable({
|
|
255
269
|
onSwipeStart: handleSheetSwipeStart,
|
|
256
|
-
onSwiping:
|
|
257
|
-
onSwiped:
|
|
270
|
+
onSwiping: handleSheetSwipeMove,
|
|
271
|
+
onSwiped: handleSheetSwipeEnd,
|
|
258
272
|
onTouchEndOrOnMouseUp: handleTouchEnd,
|
|
259
273
|
trackMouse: swipeable,
|
|
260
274
|
trackTouch: swipeable,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var SwipeDirection;
|
|
2
|
+
(function (SwipeDirection) {
|
|
3
|
+
SwipeDirection["Left"] = "Left";
|
|
4
|
+
SwipeDirection["Right"] = "Right";
|
|
5
|
+
SwipeDirection["Up"] = "Up";
|
|
6
|
+
SwipeDirection["Down"] = "Down";
|
|
7
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
8
|
+
|
|
9
|
+
export { SwipeDirection };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SwipeDirections } from 'react-swipeable';
|
|
2
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
|
+
type ShouldSkipSwipingParams = {
|
|
4
|
+
deltaY: number;
|
|
5
|
+
startY: number;
|
|
6
|
+
event: HandledEvents;
|
|
7
|
+
dir: SwipeDirections;
|
|
8
|
+
};
|
|
9
|
+
export { ShouldSkipSwipingParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SwipeDirections } from 'react-swipeable';
|
|
2
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
|
+
type ShouldSkipSwipingParams = {
|
|
4
|
+
deltaY: number;
|
|
5
|
+
startY: number;
|
|
6
|
+
event: HandledEvents;
|
|
7
|
+
dir: SwipeDirections;
|
|
8
|
+
};
|
|
9
|
+
export { ShouldSkipSwipingParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -10,7 +10,7 @@ var coreComponentsTypography = require('../../../../typography');
|
|
|
10
10
|
var hooks = require('@alfalab/hooks');
|
|
11
11
|
var context = require('../../../context.js');
|
|
12
12
|
var components_header_component = require('../../header/component.js');
|
|
13
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
13
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-b30d5212.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@ require('../../../../spinner');
|
|
|
7
7
|
require('../../../../typography');
|
|
8
8
|
require('../../../context.js');
|
|
9
9
|
require('../../../utils.js');
|
|
10
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
10
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-b30d5212.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ import '../../code-input/esm/mobile';
|
|
|
16
16
|
import '../../link/esm';
|
|
17
17
|
import '../../typography/esm';
|
|
18
18
|
import './components/header/component.js';
|
|
19
|
-
import './countdown-section-
|
|
19
|
+
import './countdown-section-c4f73a77.js';
|
|
20
20
|
import '../../button/esm';
|
|
21
21
|
import '../../spinner/esm';
|
|
22
22
|
import './components/screens/hint/component.js';
|
|
@@ -15,7 +15,7 @@ import '../../../../code-input/esm/mobile';
|
|
|
15
15
|
import '../../../../link/esm';
|
|
16
16
|
import '../../../../typography/esm';
|
|
17
17
|
import '../header/component.js';
|
|
18
|
-
import '../../countdown-section-
|
|
18
|
+
import '../../countdown-section-c4f73a77.js';
|
|
19
19
|
import '../../../../button/esm';
|
|
20
20
|
import '../../../../spinner/esm';
|
|
21
21
|
import '../countdown-loader/component.js';
|
|
@@ -13,7 +13,7 @@ import '../../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../../link/esm';
|
|
14
14
|
import '../../../../typography/esm';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-c4f73a77.js';
|
|
17
17
|
import '../../../../button/esm';
|
|
18
18
|
import '../../../../spinner/esm';
|
|
19
19
|
import '../screens/hint/component.js';
|
|
@@ -14,6 +14,6 @@ import '@alfalab/hooks';
|
|
|
14
14
|
import '../context.js';
|
|
15
15
|
import '../utils.js';
|
|
16
16
|
import './header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-c4f73a77.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
@@ -13,7 +13,7 @@ import '@alfalab/hooks';
|
|
|
13
13
|
import '../../context.js';
|
|
14
14
|
import '../../utils.js';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-c4f73a77.js';
|
|
17
17
|
import '../../../../button/esm';
|
|
18
18
|
import '../../../../spinner/esm';
|
|
19
19
|
import '../countdown-loader/component.js';
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../../../../../typography/esm';
|
|
|
8
8
|
import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
9
9
|
import { ConfirmationContext } from '../../../context.js';
|
|
10
10
|
import { Header } from '../../header/component.js';
|
|
11
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
11
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-c4f73a77.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../../../button/esm';
|
|
14
14
|
import '../../../../../spinner/esm';
|
|
@@ -4,5 +4,5 @@ import '../../../../../button/esm';
|
|
|
4
4
|
import '../../../../../spinner/esm';
|
|
5
5
|
import '../../../../../typography/esm';
|
|
6
6
|
import '../../../context.js';
|
|
7
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
7
|
+
export { C as CountdownSection } from '../../../countdown-section-c4f73a77.js';
|
|
8
8
|
import '../../../utils.js';
|
|
@@ -10,6 +10,6 @@ import '@alfalab/hooks';
|
|
|
10
10
|
import '../../../context.js';
|
|
11
11
|
import '../../../utils.js';
|
|
12
12
|
import '../../header/component.js';
|
|
13
|
-
import '../../../countdown-section-
|
|
13
|
+
import '../../../countdown-section-c4f73a77.js';
|
|
14
14
|
import '../../../../../button/esm';
|
|
15
15
|
import '../../../../../spinner/esm';
|
|
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../link/esm';
|
|
14
14
|
import '../../../typography/esm';
|
|
15
15
|
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-
|
|
16
|
+
import '../countdown-section-c4f73a77.js';
|
|
17
17
|
import '../../../button/esm';
|
|
18
18
|
import '../../../spinner/esm';
|
|
19
19
|
import '../components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
|
|
|
14
14
|
import '../../../link/esm';
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '../components/header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-c4f73a77.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
20
20
|
import '../components/screens/hint/component.js';
|
|
@@ -16,7 +16,7 @@ import '../../code-input/esm/mobile';
|
|
|
16
16
|
import '../../link/esm';
|
|
17
17
|
import '../../typography/esm';
|
|
18
18
|
import './components/header/component.js';
|
|
19
|
-
import './countdown-section-
|
|
19
|
+
import './countdown-section-c4f73a77.js';
|
|
20
20
|
import '../../button/esm';
|
|
21
21
|
import '../../spinner/esm';
|
|
22
22
|
import './components/screens/hint/component.js';
|
|
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../link/esm';
|
|
14
14
|
import '../../../typography/esm';
|
|
15
15
|
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-
|
|
16
|
+
import '../countdown-section-c4f73a77.js';
|
|
17
17
|
import '../../../button/esm';
|
|
18
18
|
import '../../../spinner/esm';
|
|
19
19
|
import '../components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
|
|
|
14
14
|
import '../../../link/esm';
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '../components/header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-c4f73a77.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
20
20
|
import '../components/screens/hint/component.js';
|
|
@@ -15,6 +15,6 @@ import '../../../link/esm';
|
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '@alfalab/hooks';
|
|
17
17
|
import '../components/header/component.js';
|
|
18
|
-
import '../countdown-section-
|
|
18
|
+
import '../countdown-section-c4f73a77.js';
|
|
19
19
|
import '../../../button/esm';
|
|
20
20
|
import '../../../spinner/esm';
|
|
@@ -15,7 +15,7 @@ import '../../code-input/modern/mobile';
|
|
|
15
15
|
import '../../link/modern';
|
|
16
16
|
import '../../typography/modern';
|
|
17
17
|
import './components/header/component.js';
|
|
18
|
-
import './countdown-section-
|
|
18
|
+
import './countdown-section-f3215ad8.js';
|
|
19
19
|
import '../../button/modern';
|
|
20
20
|
import '../../spinner/modern';
|
|
21
21
|
import './components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../../code-input/modern/mobile';
|
|
|
14
14
|
import '../../../../link/modern';
|
|
15
15
|
import '../../../../typography/modern';
|
|
16
16
|
import '../header/component.js';
|
|
17
|
-
import '../../countdown-section-
|
|
17
|
+
import '../../countdown-section-f3215ad8.js';
|
|
18
18
|
import '../../../../button/modern';
|
|
19
19
|
import '../../../../spinner/modern';
|
|
20
20
|
import '../countdown-loader/component.js';
|
|
@@ -12,7 +12,7 @@ import '../../../../code-input/modern/mobile';
|
|
|
12
12
|
import '../../../../link/modern';
|
|
13
13
|
import '../../../../typography/modern';
|
|
14
14
|
import '../header/component.js';
|
|
15
|
-
import '../../countdown-section-
|
|
15
|
+
import '../../countdown-section-f3215ad8.js';
|
|
16
16
|
import '../../../../button/modern';
|
|
17
17
|
import '../../../../spinner/modern';
|
|
18
18
|
import '../screens/hint/component.js';
|