@alfalab/core-components 47.26.8-beta.0 → 47.26.9-beta.1
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/bottom-sheet/component.js +13 -14
- package/bottom-sheet/cssm/component.js +13 -14
- package/bottom-sheet/cssm/types.d.ts +4 -5
- package/bottom-sheet/esm/component.js +14 -15
- package/bottom-sheet/esm/types.d.ts +4 -5
- package/bottom-sheet/modern/component.js +11 -10
- package/bottom-sheet/modern/types.d.ts +4 -5
- package/bottom-sheet/moderncssm/component.js +11 -10
- package/bottom-sheet/moderncssm/types.d.ts +4 -5
- package/bottom-sheet/types.d.ts +4 -5
- package/calendar-range/esm/Component.js +1 -1
- package/calendar-range/esm/index.js +1 -1
- package/calendar-range/esm/views/popover.js +1 -1
- package/calendar-range/esm/views/static.js +1 -1
- package/calendar-range/modern/Component.js +1 -1
- package/calendar-range/modern/index.js +1 -1
- package/calendar-range/modern/views/popover.js +1 -1
- package/calendar-range/modern/views/static.js +1 -1
- package/calendar-range/views/popover.js +1 -1
- package/calendar-range/views/static.js +1 -1
- 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/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/hooks.js +1 -1
- package/gallery/components/image-viewer/single.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/hooks.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/single.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +1 -1
- package/gallery/esm/index.js +1 -1
- package/gallery/modern/Component.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/hooks.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/single.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/index.js +1 -1
- package/international-phone-input/cssm/typings-4bf4de6f.d.ts +4 -5
- package/international-phone-input/esm/typings-4bf4de6f.d.ts +4 -5
- package/international-phone-input/modern/typings-4bf4de6f.d.ts +4 -5
- package/international-phone-input/moderncssm/typings-4bf4de6f.d.ts +4 -5
- package/international-phone-input/typings-4bf4de6f.d.ts +4 -5
- package/list/Component.js +1 -1
- package/list/components/item/Component.js +1 -1
- package/list/components/item/index.d.ts +1 -1
- package/list/components/item/index.js +1 -1
- package/list/esm/Component.js +1 -1
- package/list/esm/components/item/Component.js +1 -1
- package/list/esm/components/item/index.d.ts +1 -1
- package/list/esm/components/item/index.js +1 -1
- package/list/esm/index.js +1 -1
- package/list/index.js +1 -1
- package/list/modern/Component.js +1 -1
- package/list/modern/components/item/Component.js +1 -1
- package/list/modern/components/item/index.d.ts +1 -1
- package/list/modern/components/item/index.js +1 -1
- package/list/modern/index.js +1 -1
- 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 +1 -1
- package/picker-button/Component-c44170fe.d.ts +1 -1
- package/picker-button/component-03d088c4.d.ts +2 -2
- package/picker-button/component-8bdd19d3.d.ts +2 -2
- package/picker-button/cssm/typings-4bf4de6f.d.ts +4 -5
- package/picker-button/esm/typings-4bf4de6f.d.ts +4 -5
- package/picker-button/index-03d088c4.d.ts +2 -2
- package/picker-button/index-281accb7.d.ts +2 -2
- package/picker-button/modern/typings-4bf4de6f.d.ts +4 -5
- package/picker-button/moderncssm/typings-4bf4de6f.d.ts +4 -5
- package/picker-button/typings-4bf4de6f.d.ts +4 -5
- package/plate/Component.responsive.js +1 -1
- package/plate/components/base-plate/Component.js +1 -1
- package/plate/cssm/{index-4024dd7a.d.ts → index-ba3cd492.d.ts} +1 -9
- package/plate/esm/Component.responsive.js +1 -1
- package/plate/esm/components/base-plate/Component.js +1 -1
- package/plate/esm/components/base-plate/index.js +1 -1
- package/plate/esm/desktop/Component.desktop.js +1 -1
- package/plate/esm/desktop/index.js +1 -1
- package/plate/{index-4024dd7a.d.ts → esm/index-ba3cd492.d.ts} +3 -11
- package/plate/esm/index.js +1 -1
- package/plate/esm/mobile/Component.mobile.js +1 -1
- package/plate/esm/mobile/index.js +1 -1
- package/plate/esm/shared/index.js +1 -1
- package/plate/esm/utils.js +1 -1
- package/plate/{modern/index-4024dd7a.d.ts → index-ba3cd492.d.ts} +3 -11
- package/plate/modern/Component.responsive.js +1 -1
- package/plate/modern/components/base-plate/Component.js +1 -1
- package/plate/modern/components/base-plate/index.js +1 -1
- package/plate/modern/desktop/Component.desktop.js +1 -1
- package/plate/modern/desktop/index.js +1 -1
- package/plate/{esm/index-4024dd7a.d.ts → modern/index-ba3cd492.d.ts} +3 -11
- package/plate/modern/index.js +1 -1
- package/plate/modern/mobile/Component.mobile.js +1 -1
- package/plate/modern/mobile/index.js +1 -1
- package/plate/modern/shared/index.js +1 -1
- package/plate/modern/utils.js +1 -1
- package/plate/moderncssm/{index-4024dd7a.d.ts → index-ba3cd492.d.ts} +1 -9
- package/plate/utils.js +1 -1
- package/pure-cell/component-8c83a9ca.d.ts +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-8c83a9ca.d.ts +1 -1
- package/pure-cell/esm/component-8c83a9ca.d.ts +6 -6
- 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-8c83a9ca.d.ts +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/pure-cell/moderncssm/component-8c83a9ca.d.ts +1 -1
- package/select/components/base-select/Component.js +2 -2
- package/select/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/esm/Component.responsive.js +3 -3
- package/select/esm/components/base-select/Component.js +2 -2
- package/select/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-mobile.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/esm/components/base-select/index.js +2 -2
- package/select/esm/components/index.js +2 -2
- package/select/esm/desktop/Component.desktop.js +2 -2
- package/select/esm/desktop/index.js +2 -2
- package/select/esm/index.js +3 -3
- package/select/esm/mobile/Component.mobile.js +3 -3
- package/select/esm/mobile/Component.modal.mobile.js +3 -3
- package/select/esm/mobile/index.js +3 -3
- 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 +3 -3
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +3 -3
- package/select/modern/components/base-select/Component.js +2 -2
- package/select/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-mobile.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/modern/components/base-select/index.js +2 -2
- package/select/modern/components/index.js +2 -2
- package/select/modern/desktop/Component.desktop.js +2 -2
- package/select/modern/desktop/index.js +2 -2
- package/select/modern/index.js +3 -3
- package/select/modern/mobile/Component.mobile.js +3 -3
- package/select/modern/mobile/Component.modal.mobile.js +3 -3
- package/select/modern/mobile/index.js +3 -3
- 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 +3 -3
- 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/shared/cssm/index.d.ts +0 -1
- package/shared/cssm/index.js +0 -2
- package/shared/esm/index.d.ts +0 -1
- package/shared/esm/index.js +0 -1
- package/shared/index.d.ts +0 -1
- package/shared/index.js +0 -2
- package/shared/modern/index.d.ts +0 -1
- package/shared/modern/index.js +0 -1
- package/shared/moderncssm/index.d.ts +0 -1
- package/shared/moderncssm/index.js +0 -1
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/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 +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +13 -13
- 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/shared/cssm/safe-area.d.ts +0 -9
- package/shared/cssm/safe-area.js +0 -26
- package/shared/esm/safe-area.d.ts +0 -9
- package/shared/esm/safe-area.js +0 -24
- package/shared/modern/safe-area.d.ts +0 -9
- package/shared/modern/safe-area.js +0 -24
- package/shared/moderncssm/safe-area.d.ts +0 -9
- package/shared/moderncssm/safe-area.js +0 -24
- package/shared/safe-area.d.ts +0 -9
- package/shared/safe-area.js +0 -26
- /package/calendar-range/esm/{index.module-50007371.js → index.module-3bd8f2aa.js} +0 -0
- /package/calendar-range/{index.module-16b924be.js → index.module-93fe2d00.js} +0 -0
- /package/calendar-range/modern/{index.module-dad605ea.js → index.module-675a70db.js} +0 -0
- /package/confirmation/{countdown-section-d34c1af5.d.ts → countdown-section-dd00dd2a.d.ts} +0 -0
- /package/confirmation/{countdown-section-d34c1af5.js → countdown-section-dd00dd2a.js} +0 -0
- /package/confirmation/esm/{countdown-section-4d3cc9e0.d.ts → countdown-section-c258b74a.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-4d3cc9e0.js → countdown-section-c258b74a.js} +0 -0
- /package/confirmation/modern/{countdown-section-f2e5a02a.d.ts → countdown-section-32bb6712.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-f2e5a02a.js → countdown-section-32bb6712.js} +0 -0
- /package/gallery/esm/{index.module-330013eb.js → index.module-3ec18dd1.js} +0 -0
- /package/gallery/{index.module-17abae88.js → index.module-27487695.js} +0 -0
- /package/gallery/modern/{index.module-759b97ea.js → index.module-c1afad9c.js} +0 -0
- /package/list/{Component-5c6313d8.d.ts → Component-6c03dffd.d.ts} +0 -0
- /package/list/{Component-5c6313d8.js → Component-6c03dffd.js} +0 -0
- /package/list/esm/{Component-9471c0fc.d.ts → Component-3e54bc5d.d.ts} +0 -0
- /package/list/esm/{Component-9471c0fc.js → Component-3e54bc5d.js} +0 -0
- /package/list/modern/{Component-cd11d82c.d.ts → Component-a80cb74d.d.ts} +0 -0
- /package/list/modern/{Component-cd11d82c.js → Component-a80cb74d.js} +0 -0
- /package/modal/esm/{layout.module-707ca0ae.js → layout.module-58de58af.js} +0 -0
- /package/modal/{layout.module-47ca0f18.js → layout.module-dc00713d.js} +0 -0
- /package/modal/modern/{layout.module-c708d000.js → layout.module-cd5f5a81.js} +0 -0
- /package/plate/{PortalContext-6d5eb7e5.d.ts → PortalContext-a31b7744.d.ts} +0 -0
- /package/plate/{PortalContext-6d5eb7e5.js → PortalContext-a31b7744.js} +0 -0
- /package/plate/esm/{PortalContext-bbdf3af1.d.ts → PortalContext-6f3b2044.d.ts} +0 -0
- /package/plate/esm/{PortalContext-bbdf3af1.js → PortalContext-6f3b2044.js} +0 -0
- /package/plate/modern/{PortalContext-a3423f8c.d.ts → PortalContext-0c576347.d.ts} +0 -0
- /package/plate/modern/{PortalContext-a3423f8c.js → PortalContext-0c576347.js} +0 -0
- /package/pure-cell/{component-ef5b84b6.d.ts → component-25613e28.d.ts} +0 -0
- /package/pure-cell/{component-ef5b84b6.js → component-25613e28.js} +0 -0
- /package/pure-cell/esm/{component-716eb01a.d.ts → component-57131738.d.ts} +0 -0
- /package/pure-cell/esm/{component-716eb01a.js → component-57131738.js} +0 -0
- /package/pure-cell/modern/{component-5a957007.d.ts → component-519b8122.d.ts} +0 -0
- /package/pure-cell/modern/{component-5a957007.js → component-519b8122.js} +0 -0
- /package/select/esm/{hook-a96e4796.d.ts → hook-edc73832.d.ts} +0 -0
- /package/select/esm/{hook-a96e4796.js → hook-edc73832.js} +0 -0
- /package/select/esm/{list-popover-desktop-64d6e86a.d.ts → list-popover-desktop-ab345a1d.d.ts} +0 -0
- /package/select/esm/{list-popover-desktop-64d6e86a.js → list-popover-desktop-ab345a1d.js} +0 -0
- /package/select/esm/{mobile.module-1a1b5a36.js → mobile.module-f339d579.js} +0 -0
- /package/select/{hook-cce85ba4.d.ts → hook-509ac90c.d.ts} +0 -0
- /package/select/{hook-cce85ba4.js → hook-509ac90c.js} +0 -0
- /package/select/{list-popover-desktop-867defab.d.ts → list-popover-desktop-59e49e6c.d.ts} +0 -0
- /package/select/{list-popover-desktop-867defab.js → list-popover-desktop-59e49e6c.js} +0 -0
- /package/select/{mobile.module-138a1289.js → mobile.module-7934b06c.js} +0 -0
- /package/select/modern/{hook-c5c9b484.d.ts → hook-d7fcefb5.d.ts} +0 -0
- /package/select/modern/{hook-c5c9b484.js → hook-d7fcefb5.js} +0 -0
- /package/select/modern/{list-popover-desktop-2fa474c5.d.ts → list-popover-desktop-9f601758.d.ts} +0 -0
- /package/select/modern/{list-popover-desktop-2fa474c5.js → list-popover-desktop-9f601758.js} +0 -0
- /package/select/modern/{mobile.module-f3b18a7b.js → mobile.module-a162a3eb.js} +0 -0
- /package/side-panel/esm/{layout.module-cc648101.js → layout.module-dbb44e00.js} +0 -0
- /package/side-panel/{layout.module-e963bd8c.js → layout.module-04c604a9.js} +0 -0
- /package/side-panel/modern/{layout.module-ce4bd36f.js → layout.module-950d1df1.js} +0 -0
- /package/tabs/esm/{index.module-3a4d11f9.js → index.module-18ef2507.js} +0 -0
- /package/tabs/esm/{index.module-560f4d57.js → index.module-b726698b.js} +0 -0
- /package/tabs/{index.module-5bf62a87.js → index.module-3cc9c72b.js} +0 -0
- /package/tabs/{index.module-275e67bc.js → index.module-f0ccce61.js} +0 -0
- /package/tabs/modern/{index.module-85b0710f.js → index.module-70e33922.js} +0 -0
- /package/tabs/modern/{index.module-cd7bccfa.js → index.module-97338019.js} +0 -0
- /package/textarea/{PseudoTextArea-eac1211c.d.ts → PseudoTextArea-26647f32.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-eac1211c.js → PseudoTextArea-26647f32.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-3a6c0f31.d.ts → PseudoTextArea-92485ce4.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-3a6c0f31.js → PseudoTextArea-92485ce4.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-09b9db16.d.ts → PseudoTextArea-703b6134.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-09b9db16.js → PseudoTextArea-703b6134.js} +0 -0
- /package/typography/{colors.module-32ec21e0.js → colors.module-b6e7e39c.js} +0 -0
- /package/typography/{common.module-37502c38.js → common.module-d87950bc.js} +0 -0
- /package/typography/esm/{colors.module-4e3e8138.js → colors.module-47fc4603.js} +0 -0
- /package/typography/esm/{common.module-3ed6f966.js → common.module-b3bbb32c.js} +0 -0
- /package/typography/modern/{colors.module-451d0113.js → colors.module-8b4683d7.js} +0 -0
- /package/typography/modern/{common.module-df2c176f.js → common.module-09715d09.js} +0 -0
|
@@ -28,20 +28,16 @@ var isNil = coreComponentsShared.fnUtils.isNil;
|
|
|
28
28
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
29
29
|
var _b, _c, _d, _e, _f;
|
|
30
30
|
var _g, _h;
|
|
31
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange,
|
|
31
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
|
|
32
32
|
var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
|
|
33
33
|
var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
|
|
34
34
|
var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
|
|
35
35
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
36
36
|
var isFirstRender = fullHeight === 0;
|
|
37
|
+
if (typeof adjustContainerHeight === 'function') {
|
|
38
|
+
fullHeight = adjustContainerHeight(fullHeight);
|
|
39
|
+
}
|
|
37
40
|
var initialIndexRef = React.useRef(initialActiveAreaIndex);
|
|
38
|
-
var safeAreaOffset = React.useMemo(function () {
|
|
39
|
-
return useSafeArea.reduce(function (sum, nextDirection) {
|
|
40
|
-
// eslint-disable-next-line no-param-reassign
|
|
41
|
-
sum += coreComponentsShared.getSafeAreaValue(nextDirection) || 0;
|
|
42
|
-
return sum;
|
|
43
|
-
}, 0);
|
|
44
|
-
}, [useSafeArea]);
|
|
45
41
|
var magneticAreas = React.useMemo(function () {
|
|
46
42
|
var _a;
|
|
47
43
|
if (magneticAreasProp) {
|
|
@@ -52,7 +48,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
52
48
|
var iOSViewHeight = 0;
|
|
53
49
|
if (coreComponentsShared.isClient()) {
|
|
54
50
|
if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
|
|
55
|
-
iOSViewHeight =
|
|
51
|
+
iOSViewHeight =
|
|
52
|
+
typeof adjustContainerHeight === 'function'
|
|
53
|
+
? adjustContainerHeight(document.documentElement.clientHeight)
|
|
54
|
+
: document.documentElement.clientHeight;
|
|
56
55
|
}
|
|
57
56
|
else {
|
|
58
57
|
iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
|
|
@@ -60,12 +59,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
60
59
|
}
|
|
61
60
|
var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
|
|
62
61
|
return [0, viewHeight - headerOffset];
|
|
63
|
-
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard,
|
|
62
|
+
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
|
|
64
63
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
64
|
+
var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
|
|
65
|
+
var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
|
|
66
|
+
var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
|
|
67
|
+
var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
|
|
69
68
|
var scrollOccurred = React.useRef(false);
|
|
70
69
|
var headerRef = React.useRef(null);
|
|
71
70
|
var contentRef = React.useRef(null);
|
|
@@ -27,20 +27,16 @@ var isNil = coreComponentsShared.fnUtils.isNil;
|
|
|
27
27
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
28
28
|
var _b, _c, _d, _e, _f;
|
|
29
29
|
var _g, _h;
|
|
30
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange,
|
|
30
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
|
|
31
31
|
var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
|
|
32
32
|
var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
|
|
33
33
|
var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
|
|
34
34
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
35
35
|
var isFirstRender = fullHeight === 0;
|
|
36
|
+
if (typeof adjustContainerHeight === 'function') {
|
|
37
|
+
fullHeight = adjustContainerHeight(fullHeight);
|
|
38
|
+
}
|
|
36
39
|
var initialIndexRef = React.useRef(initialActiveAreaIndex);
|
|
37
|
-
var safeAreaOffset = React.useMemo(function () {
|
|
38
|
-
return useSafeArea.reduce(function (sum, nextDirection) {
|
|
39
|
-
// eslint-disable-next-line no-param-reassign
|
|
40
|
-
sum += coreComponentsShared.getSafeAreaValue(nextDirection) || 0;
|
|
41
|
-
return sum;
|
|
42
|
-
}, 0);
|
|
43
|
-
}, [useSafeArea]);
|
|
44
40
|
var magneticAreas = React.useMemo(function () {
|
|
45
41
|
var _a;
|
|
46
42
|
if (magneticAreasProp) {
|
|
@@ -51,7 +47,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
51
47
|
var iOSViewHeight = 0;
|
|
52
48
|
if (coreComponentsShared.isClient()) {
|
|
53
49
|
if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
|
|
54
|
-
iOSViewHeight =
|
|
50
|
+
iOSViewHeight =
|
|
51
|
+
typeof adjustContainerHeight === 'function'
|
|
52
|
+
? adjustContainerHeight(document.documentElement.clientHeight)
|
|
53
|
+
: document.documentElement.clientHeight;
|
|
55
54
|
}
|
|
56
55
|
else {
|
|
57
56
|
iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
|
|
@@ -59,12 +58,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
59
58
|
}
|
|
60
59
|
var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
|
|
61
60
|
return [0, viewHeight - headerOffset];
|
|
62
|
-
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard,
|
|
61
|
+
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
|
|
63
62
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
63
|
+
var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
|
|
64
|
+
var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
|
|
65
|
+
var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
|
|
66
|
+
var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
|
|
68
67
|
var scrollOccurred = React.useRef(false);
|
|
69
68
|
var headerRef = React.useRef(null);
|
|
70
69
|
var contentRef = React.useRef(null);
|
|
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
|
|
|
4
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
5
5
|
import { BaseModalProps } from "../../base-modal";
|
|
6
6
|
import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
|
|
7
|
-
import { Directions } from "../../shared";
|
|
8
7
|
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
9
8
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
9
|
type BottomSheetProps = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
adjustContainerHeight?(height: number): number;
|
|
11
14
|
/**
|
|
12
15
|
* Контент
|
|
13
16
|
*/
|
|
@@ -286,9 +289,5 @@ type BottomSheetProps = {
|
|
|
286
289
|
* Учитывать высоту виртуальной клавиатуры
|
|
287
290
|
*/
|
|
288
291
|
virtualKeyboard?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Учитывать safe area: ['top', 'bottom']
|
|
291
|
-
*/
|
|
292
|
-
useSafeArea?: Directions[];
|
|
293
292
|
};
|
|
294
293
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -5,7 +5,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
5
5
|
import { useSwipeable } from 'react-swipeable';
|
|
6
6
|
import cn from 'classnames';
|
|
7
7
|
import { BaseModal, unlockScroll } from '../../base-modal/esm';
|
|
8
|
-
import { fnUtils,
|
|
8
|
+
import { fnUtils, isClient, 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';
|
|
@@ -23,20 +23,16 @@ var isNil = fnUtils.isNil;
|
|
|
23
23
|
var BottomSheet = forwardRef(function (_a, ref) {
|
|
24
24
|
var _b, _c, _d, _e, _f;
|
|
25
25
|
var _g, _h;
|
|
26
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange,
|
|
26
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
|
|
27
27
|
var windowHeight = (_g = use100vh()) !== null && _g !== void 0 ? _g : 0;
|
|
28
28
|
var visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
|
|
29
29
|
var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
|
|
30
30
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
31
31
|
var isFirstRender = fullHeight === 0;
|
|
32
|
+
if (typeof adjustContainerHeight === 'function') {
|
|
33
|
+
fullHeight = adjustContainerHeight(fullHeight);
|
|
34
|
+
}
|
|
32
35
|
var initialIndexRef = useRef(initialActiveAreaIndex);
|
|
33
|
-
var safeAreaOffset = useMemo(function () {
|
|
34
|
-
return useSafeArea.reduce(function (sum, nextDirection) {
|
|
35
|
-
// eslint-disable-next-line no-param-reassign
|
|
36
|
-
sum += getSafeAreaValue(nextDirection) || 0;
|
|
37
|
-
return sum;
|
|
38
|
-
}, 0);
|
|
39
|
-
}, [useSafeArea]);
|
|
40
36
|
var magneticAreas = useMemo(function () {
|
|
41
37
|
var _a;
|
|
42
38
|
if (magneticAreasProp) {
|
|
@@ -47,7 +43,10 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
47
43
|
var iOSViewHeight = 0;
|
|
48
44
|
if (isClient()) {
|
|
49
45
|
if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
|
|
50
|
-
iOSViewHeight =
|
|
46
|
+
iOSViewHeight =
|
|
47
|
+
typeof adjustContainerHeight === 'function'
|
|
48
|
+
? adjustContainerHeight(document.documentElement.clientHeight)
|
|
49
|
+
: document.documentElement.clientHeight;
|
|
51
50
|
}
|
|
52
51
|
else {
|
|
53
52
|
iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
|
|
@@ -55,12 +54,12 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
55
54
|
}
|
|
56
55
|
var viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
|
|
57
56
|
return [0, viewHeight - headerOffset];
|
|
58
|
-
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard,
|
|
57
|
+
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
|
|
59
58
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
59
|
+
var _x = useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
|
|
60
|
+
var _y = useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
|
|
61
|
+
var _z = useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
|
|
62
|
+
var _0 = useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
|
|
64
63
|
var scrollOccurred = useRef(false);
|
|
65
64
|
var headerRef = useRef(null);
|
|
66
65
|
var contentRef = useRef(null);
|
|
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
|
|
|
4
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
5
5
|
import { BaseModalProps } from "../../base-modal";
|
|
6
6
|
import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
|
|
7
|
-
import { Directions } from "../../shared";
|
|
8
7
|
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
9
8
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
9
|
type BottomSheetProps = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
adjustContainerHeight?(height: number): number;
|
|
11
14
|
/**
|
|
12
15
|
* Контент
|
|
13
16
|
*/
|
|
@@ -286,9 +289,5 @@ type BottomSheetProps = {
|
|
|
286
289
|
* Учитывать высоту виртуальной клавиатуры
|
|
287
290
|
*/
|
|
288
291
|
virtualKeyboard?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Учитывать safe area: ['top', 'bottom']
|
|
291
|
-
*/
|
|
292
|
-
useSafeArea?: Directions[];
|
|
293
292
|
};
|
|
294
293
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import { useSwipeable } from 'react-swipeable';
|
|
5
5
|
import cn from 'classnames';
|
|
6
6
|
import { BaseModal, unlockScroll } from '../../base-modal/modern';
|
|
7
|
-
import {
|
|
7
|
+
import { isClient, 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';
|
|
@@ -19,18 +19,16 @@ const styles = {"modal":"bottom-sheet__modal_n8xmp","wrapper":"bottom-sheet__wra
|
|
|
19
19
|
require('./index.css');
|
|
20
20
|
|
|
21
21
|
const { isNil } = fnUtils;
|
|
22
|
-
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange,
|
|
22
|
+
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, adjustContainerHeight, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
|
|
23
23
|
const windowHeight = use100vh() ?? 0;
|
|
24
24
|
const visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
|
|
25
|
-
|
|
25
|
+
let fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
|
|
26
26
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
27
27
|
const isFirstRender = fullHeight === 0;
|
|
28
|
+
if (typeof adjustContainerHeight === 'function') {
|
|
29
|
+
fullHeight = adjustContainerHeight(fullHeight);
|
|
30
|
+
}
|
|
28
31
|
const initialIndexRef = useRef(initialActiveAreaIndex);
|
|
29
|
-
const safeAreaOffset = useMemo(() => useSafeArea.reduce((sum, nextDirection) => {
|
|
30
|
-
// eslint-disable-next-line no-param-reassign
|
|
31
|
-
sum += getSafeAreaValue(nextDirection) || 0;
|
|
32
|
-
return sum;
|
|
33
|
-
}, 0), [useSafeArea]);
|
|
34
32
|
const magneticAreas = useMemo(() => {
|
|
35
33
|
if (magneticAreasProp) {
|
|
36
34
|
return magneticAreasProp.map((area) => convertPercentToNumber(area, fullHeight, headerOffset));
|
|
@@ -38,7 +36,10 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
38
36
|
let iOSViewHeight = 0;
|
|
39
37
|
if (isClient()) {
|
|
40
38
|
if (document?.documentElement?.clientHeight) {
|
|
41
|
-
iOSViewHeight =
|
|
39
|
+
iOSViewHeight =
|
|
40
|
+
typeof adjustContainerHeight === 'function'
|
|
41
|
+
? adjustContainerHeight(document.documentElement.clientHeight)
|
|
42
|
+
: document.documentElement.clientHeight;
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
44
45
|
iOSViewHeight = window?.innerHeight;
|
|
@@ -46,7 +47,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
46
47
|
}
|
|
47
48
|
const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
|
|
48
49
|
return [0, viewHeight - headerOffset];
|
|
49
|
-
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard,
|
|
50
|
+
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
|
|
50
51
|
const lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
51
52
|
const [sheetOffset, setSheetOffset] = useState(0);
|
|
52
53
|
const [backdropOpacity, setBackdropOpacity] = useState(1);
|
|
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
|
|
|
4
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
5
5
|
import { BaseModalProps } from "../../base-modal";
|
|
6
6
|
import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
|
|
7
|
-
import { Directions } from "../../shared";
|
|
8
7
|
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
9
8
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
9
|
type BottomSheetProps = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
adjustContainerHeight?(height: number): number;
|
|
11
14
|
/**
|
|
12
15
|
* Контент
|
|
13
16
|
*/
|
|
@@ -286,9 +289,5 @@ type BottomSheetProps = {
|
|
|
286
289
|
* Учитывать высоту виртуальной клавиатуры
|
|
287
290
|
*/
|
|
288
291
|
virtualKeyboard?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Учитывать safe area: ['top', 'bottom']
|
|
291
|
-
*/
|
|
292
|
-
useSafeArea?: Directions[];
|
|
293
292
|
};
|
|
294
293
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import { useSwipeable } from 'react-swipeable';
|
|
5
5
|
import cn from 'classnames';
|
|
6
6
|
import { BaseModal, unlockScroll } from '../../base-modal/moderncssm';
|
|
7
|
-
import {
|
|
7
|
+
import { isClient, os, getDataTestId, fnUtils } from '../../shared/moderncssm';
|
|
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';
|
|
@@ -19,18 +19,16 @@ import '../../backdrop/moderncssm';
|
|
|
19
19
|
import './enums/swipeEnums.js';
|
|
20
20
|
|
|
21
21
|
const { isNil } = fnUtils;
|
|
22
|
-
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange,
|
|
22
|
+
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, adjustContainerHeight, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
|
|
23
23
|
const windowHeight = use100vh() ?? 0;
|
|
24
24
|
const visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
|
|
25
|
-
|
|
25
|
+
let fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
|
|
26
26
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
27
27
|
const isFirstRender = fullHeight === 0;
|
|
28
|
+
if (typeof adjustContainerHeight === 'function') {
|
|
29
|
+
fullHeight = adjustContainerHeight(fullHeight);
|
|
30
|
+
}
|
|
28
31
|
const initialIndexRef = useRef(initialActiveAreaIndex);
|
|
29
|
-
const safeAreaOffset = useMemo(() => useSafeArea.reduce((sum, nextDirection) => {
|
|
30
|
-
// eslint-disable-next-line no-param-reassign
|
|
31
|
-
sum += getSafeAreaValue(nextDirection) || 0;
|
|
32
|
-
return sum;
|
|
33
|
-
}, 0), [useSafeArea]);
|
|
34
32
|
const magneticAreas = useMemo(() => {
|
|
35
33
|
if (magneticAreasProp) {
|
|
36
34
|
return magneticAreasProp.map((area) => convertPercentToNumber(area, fullHeight, headerOffset));
|
|
@@ -38,7 +36,10 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
38
36
|
let iOSViewHeight = 0;
|
|
39
37
|
if (isClient()) {
|
|
40
38
|
if (document?.documentElement?.clientHeight) {
|
|
41
|
-
iOSViewHeight =
|
|
39
|
+
iOSViewHeight =
|
|
40
|
+
typeof adjustContainerHeight === 'function'
|
|
41
|
+
? adjustContainerHeight(document.documentElement.clientHeight)
|
|
42
|
+
: document.documentElement.clientHeight;
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
44
45
|
iOSViewHeight = window?.innerHeight;
|
|
@@ -46,7 +47,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
46
47
|
}
|
|
47
48
|
const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
|
|
48
49
|
return [0, viewHeight - headerOffset];
|
|
49
|
-
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard,
|
|
50
|
+
}, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
|
|
50
51
|
const lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
51
52
|
const [sheetOffset, setSheetOffset] = useState(0);
|
|
52
53
|
const [backdropOpacity, setBackdropOpacity] = useState(1);
|
|
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
|
|
|
4
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
5
5
|
import { BaseModalProps } from "../../base-modal";
|
|
6
6
|
import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
|
|
7
|
-
import { Directions } from "../../shared";
|
|
8
7
|
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
9
8
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
9
|
type BottomSheetProps = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
adjustContainerHeight?(height: number): number;
|
|
11
14
|
/**
|
|
12
15
|
* Контент
|
|
13
16
|
*/
|
|
@@ -286,9 +289,5 @@ type BottomSheetProps = {
|
|
|
286
289
|
* Учитывать высоту виртуальной клавиатуры
|
|
287
290
|
*/
|
|
288
291
|
virtualKeyboard?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Учитывать safe area: ['top', 'bottom']
|
|
291
|
-
*/
|
|
292
|
-
useSafeArea?: Directions[];
|
|
293
292
|
};
|
|
294
293
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
package/bottom-sheet/types.d.ts
CHANGED
|
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
|
|
|
4
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
5
5
|
import { BaseModalProps } from "../base-modal";
|
|
6
6
|
import { NavigationBarPrivateProps as NavigationBarProps } from "../navigation-bar-private";
|
|
7
|
-
import { Directions } from "../shared";
|
|
8
7
|
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
9
8
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
9
|
type BottomSheetProps = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
adjustContainerHeight?(height: number): number;
|
|
11
14
|
/**
|
|
12
15
|
* Контент
|
|
13
16
|
*/
|
|
@@ -286,9 +289,5 @@ type BottomSheetProps = {
|
|
|
286
289
|
* Учитывать высоту виртуальной клавиатуры
|
|
287
290
|
*/
|
|
288
291
|
virtualKeyboard?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Учитывать safe area: ['top', 'bottom']
|
|
291
|
-
*/
|
|
292
|
-
useSafeArea?: Directions[];
|
|
293
292
|
};
|
|
294
293
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
|
|
|
15
15
|
import 'date-fns/max';
|
|
16
16
|
import 'date-fns/min';
|
|
17
17
|
import 'date-fns/subMonths';
|
|
18
|
-
import './index.module-
|
|
18
|
+
import './index.module-3bd8f2aa.js';
|
|
19
19
|
import 'date-fns/endOfMonth';
|
|
20
20
|
import 'date-fns/isSameMonth';
|
|
21
21
|
import '../../calendar/esm/desktop';
|
|
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
|
|
|
15
15
|
import 'date-fns/max';
|
|
16
16
|
import 'date-fns/min';
|
|
17
17
|
import 'date-fns/subMonths';
|
|
18
|
-
import './index.module-
|
|
18
|
+
import './index.module-3bd8f2aa.js';
|
|
19
19
|
import './views/static.js';
|
|
20
20
|
import 'date-fns/endOfMonth';
|
|
21
21
|
import 'date-fns/isSameMonth';
|
|
@@ -8,7 +8,7 @@ import { isCompleteDateInput } from '../../../date-input/esm';
|
|
|
8
8
|
import { useDidUpdateEffect } from '@alfalab/hooks';
|
|
9
9
|
import { Divider } from '../components/divider/Component.js';
|
|
10
10
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
11
|
-
import { s as styles } from '../index.module-
|
|
11
|
+
import { s as styles } from '../index.module-3bd8f2aa.js';
|
|
12
12
|
import 'date-fns/addMonths';
|
|
13
13
|
import 'date-fns/isEqual';
|
|
14
14
|
import 'date-fns/max';
|
|
@@ -14,7 +14,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/esm';
|
|
|
14
14
|
import { Divider } from '../components/divider/Component.js';
|
|
15
15
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
16
16
|
import { isDayButton } from '../utils.js';
|
|
17
|
-
import { s as styles } from '../index.module-
|
|
17
|
+
import { s as styles } from '../index.module-3bd8f2aa.js';
|
|
18
18
|
import 'date-fns/isEqual';
|
|
19
19
|
import 'date-fns/min';
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
|
|
|
14
14
|
import 'date-fns/max';
|
|
15
15
|
import 'date-fns/min';
|
|
16
16
|
import 'date-fns/subMonths';
|
|
17
|
-
import './index.module-
|
|
17
|
+
import './index.module-675a70db.js';
|
|
18
18
|
import 'date-fns/endOfMonth';
|
|
19
19
|
import 'date-fns/isSameMonth';
|
|
20
20
|
import '../../calendar/modern/desktop';
|
|
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
|
|
|
14
14
|
import 'date-fns/max';
|
|
15
15
|
import 'date-fns/min';
|
|
16
16
|
import 'date-fns/subMonths';
|
|
17
|
-
import './index.module-
|
|
17
|
+
import './index.module-675a70db.js';
|
|
18
18
|
import './views/static.js';
|
|
19
19
|
import 'date-fns/endOfMonth';
|
|
20
20
|
import 'date-fns/isSameMonth';
|
|
@@ -7,7 +7,7 @@ import { isCompleteDateInput } from '../../../date-input/modern';
|
|
|
7
7
|
import { useDidUpdateEffect } from '@alfalab/hooks';
|
|
8
8
|
import { Divider } from '../components/divider/Component.js';
|
|
9
9
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
10
|
-
import { s as styles } from '../index.module-
|
|
10
|
+
import { s as styles } from '../index.module-675a70db.js';
|
|
11
11
|
import 'date-fns/addMonths';
|
|
12
12
|
import 'date-fns/isEqual';
|
|
13
13
|
import 'date-fns/max';
|
|
@@ -13,7 +13,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/modern';
|
|
|
13
13
|
import { Divider } from '../components/divider/Component.js';
|
|
14
14
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
|
16
|
-
import { s as styles } from '../index.module-
|
|
16
|
+
import { s as styles } from '../index.module-675a70db.js';
|
|
17
17
|
import 'date-fns/isEqual';
|
|
18
18
|
import 'date-fns/min';
|
|
19
19
|
|
|
@@ -10,7 +10,7 @@ var coreComponentsDateInput = require('../../date-input');
|
|
|
10
10
|
var hooks$1 = require('@alfalab/hooks');
|
|
11
11
|
var components_divider_Component = require('../components/divider/Component.js');
|
|
12
12
|
var hooks = require('../hooks.js');
|
|
13
|
-
var index_module = require('../index.module-
|
|
13
|
+
var index_module = require('../index.module-93fe2d00.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
16
|
|
|
@@ -16,7 +16,7 @@ var coreComponentsDateInput = require('../../date-input');
|
|
|
16
16
|
var components_divider_Component = require('../components/divider/Component.js');
|
|
17
17
|
var hooks = require('../hooks.js');
|
|
18
18
|
var utils = require('../utils.js');
|
|
19
|
-
var index_module = require('../index.module-
|
|
19
|
+
var index_module = require('../index.module-93fe2d00.js');
|
|
20
20
|
|
|
21
21
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
22
22
|
|
|
@@ -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-dd00dd2a.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-dd00dd2a.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ import '../../code-input/esm/mobile';
|
|
|
17
17
|
import '../../link/esm';
|
|
18
18
|
import '../../typography/esm';
|
|
19
19
|
import './components/header/component.js';
|
|
20
|
-
import './countdown-section-
|
|
20
|
+
import './countdown-section-c258b74a.js';
|
|
21
21
|
import '../../button/esm';
|
|
22
22
|
import '../../spinner/esm';
|
|
23
23
|
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 '../header/component.js';
|
|
19
|
-
import '../../countdown-section-
|
|
19
|
+
import '../../countdown-section-c258b74a.js';
|
|
20
20
|
import '../../../../button/esm';
|
|
21
21
|
import '../../../../spinner/esm';
|
|
22
22
|
import '../countdown-loader/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../../code-input/esm/mobile';
|
|
|
14
14
|
import '../../../../link/esm';
|
|
15
15
|
import '../../../../typography/esm';
|
|
16
16
|
import '../header/component.js';
|
|
17
|
-
import '../../countdown-section-
|
|
17
|
+
import '../../countdown-section-c258b74a.js';
|
|
18
18
|
import '../../../../button/esm';
|
|
19
19
|
import '../../../../spinner/esm';
|
|
20
20
|
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-c258b74a.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|