@alfalab/core-components 45.8.0-beta.3 → 45.8.0-beta.5
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 +7 -3
- package/bottom-sheet/cssm/component.js +6 -2
- package/bottom-sheet/cssm/index.module.css +3 -1
- package/bottom-sheet/esm/component.js +8 -4
- package/bottom-sheet/esm/index.css +3 -1
- package/bottom-sheet/index.css +3 -1
- package/bottom-sheet/modern/component.js +7 -4
- package/bottom-sheet/modern/index.css +3 -1
- 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/utils.js +3 -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/dropzone/Component.d.ts +1 -1
- package/dropzone/Component.js +1 -1
- package/dropzone/cssm/Component.d.ts +1 -1
- package/dropzone/cssm/Component.js +1 -1
- package/dropzone/esm/Component.d.ts +1 -1
- package/dropzone/esm/Component.js +1 -1
- package/dropzone/modern/Component.d.ts +1 -1
- package/dropzone/modern/Component.js +1 -1
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.js +1 -1
- package/gallery/esm/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/use-skeleton-1328ead9.d.ts +0 -4
- 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/{modern/index-307da6d7.d.ts → cssm/index-a5b021bd.d.ts} +1 -2
- package/picker-button/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/{cssm/index-307da6d7.d.ts → esm/index-a5b021bd.d.ts} +1 -2
- package/picker-button/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
- package/picker-button/{esm/index-307da6d7.d.ts → modern/index-a5b021bd.d.ts} +1 -2
- package/picker-button/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/use-skeleton-1328ead9.d.ts +0 -4
- 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/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.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/esm/Component.responsive.js +1 -1
- 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/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/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/skeleton/Component.d.ts +0 -4
- package/skeleton/Component.js +3 -6
- package/skeleton/cssm/Component.d.ts +0 -4
- package/skeleton/cssm/Component.js +2 -5
- package/skeleton/cssm/index.module.css +42 -9
- package/skeleton/esm/Component.d.ts +0 -4
- package/skeleton/esm/Component.js +3 -6
- package/skeleton/esm/index.css +42 -9
- package/skeleton/index.css +42 -9
- package/skeleton/modern/Component.d.ts +0 -4
- package/skeleton/modern/Component.js +3 -6
- package/skeleton/modern/index.css +42 -9
- package/status-badge/Component.d.ts +3 -8
- package/status-badge/Component.js +73 -3
- package/status-badge/cssm/Component.d.ts +3 -8
- package/status-badge/cssm/Component.js +73 -3
- package/status-badge/cssm/index.d.ts +0 -1
- package/status-badge/esm/Component.d.ts +3 -8
- package/status-badge/esm/Component.js +73 -18
- package/status-badge/esm/index.d.ts +0 -1
- package/status-badge/esm/index.js +0 -3
- package/status-badge/index.d.ts +0 -1
- package/status-badge/modern/Component.d.ts +3 -8
- package/status-badge/modern/Component.js +73 -17
- package/status-badge/modern/index.d.ts +0 -1
- package/status-badge/modern/index.js +0 -2
- package/tab-bar/Component.js +3 -7
- package/tab-bar/components/tab/Component.js +5 -9
- package/tab-bar/components/tab/index.css +2 -5
- package/tab-bar/cssm/Component.js +2 -6
- package/tab-bar/cssm/components/tab/Component.js +4 -8
- package/tab-bar/cssm/components/tab/index.module.css +2 -5
- package/tab-bar/cssm/index.module.css +7 -9
- package/tab-bar/cssm/types.d.ts +3 -11
- package/tab-bar/esm/Component.js +4 -9
- package/tab-bar/esm/components/tab/Component.js +5 -9
- package/tab-bar/esm/components/tab/index.css +2 -5
- package/tab-bar/esm/components/tab/index.js +1 -2
- package/tab-bar/esm/index.css +7 -9
- package/tab-bar/esm/index.js +1 -2
- package/tab-bar/esm/types.d.ts +3 -11
- package/tab-bar/index.css +7 -9
- package/tab-bar/modern/Component.js +4 -9
- package/tab-bar/modern/components/tab/Component.js +5 -9
- package/tab-bar/modern/components/tab/index.css +2 -5
- package/tab-bar/modern/components/tab/index.js +1 -2
- package/tab-bar/modern/index.css +7 -9
- package/tab-bar/modern/index.js +1 -2
- package/tab-bar/modern/types.d.ts +3 -11
- package/tab-bar/types.d.ts +3 -11
- package/themes/click.css +6 -0
- package/themes/compiled/mobile-dark-bluetint.css +228 -79
- package/themes/mixins/click.css +2 -0
- package/themes/mixins/skeleton/click.css +8 -0
- package/themes/skeleton/click.css +8 -0
- package/toast-plate/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/components/base-toast-plate/component.js +14 -16
- package/toast-plate/cssm/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/cssm/components/base-toast-plate/component.js +14 -16
- package/toast-plate/esm/Component.responsive.js +4 -6
- package/toast-plate/esm/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/esm/components/base-toast-plate/component.js +14 -16
- package/toast-plate/esm/components/base-toast-plate/index.js +4 -6
- package/toast-plate/esm/desktop/Component.desktop.js +4 -6
- package/toast-plate/esm/desktop/index.js +4 -6
- package/toast-plate/esm/index.js +4 -6
- package/toast-plate/esm/mobile/Component.mobile.js +4 -6
- package/toast-plate/esm/mobile/index.js +4 -6
- package/toast-plate/modern/Component.responsive.js +4 -6
- package/toast-plate/modern/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/modern/components/base-toast-plate/component.js +14 -16
- package/toast-plate/modern/components/base-toast-plate/index.js +4 -6
- package/toast-plate/modern/desktop/Component.desktop.js +4 -6
- package/toast-plate/modern/desktop/index.js +4 -6
- package/toast-plate/modern/index.js +4 -6
- package/toast-plate/modern/mobile/Component.mobile.js +4 -6
- package/toast-plate/modern/mobile/index.js +4 -6
- 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/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/use-skeleton-1328ead9.d.ts +0 -4
- package/notification/browser-a216f694.d.ts +0 -6
- package/notification/cssm/browser-a216f694.d.ts +0 -6
- package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/cssm/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/cssm/utils/getNotificationTestIds.js +0 -18
- package/notification/esm/browser-a216f694.d.ts +0 -6
- package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/esm/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/esm/utils/getNotificationTestIds.js +0 -16
- package/notification/modern/browser-a216f694.d.ts +0 -6
- package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/modern/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/modern/utils/getNotificationTestIds.js +0 -16
- package/notification/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/utils/getNotificationTestIds.js +0 -18
- package/shared/cssm/exhaustiveCheck.d.ts +0 -2
- package/shared/cssm/exhaustiveCheck.js +0 -5
- package/shared/esm/exhaustiveCheck.d.ts +0 -2
- package/shared/esm/exhaustiveCheck.js +0 -3
- package/shared/exhaustiveCheck.d.ts +0 -2
- package/shared/exhaustiveCheck.js +0 -5
- package/shared/modern/exhaustiveCheck.d.ts +0 -2
- package/shared/modern/exhaustiveCheck.js +0 -3
- package/status-badge/consts/iconMap.d.ts +0 -4
- package/status-badge/consts/iconMap.js +0 -76
- package/status-badge/cssm/consts/iconMap.d.ts +0 -4
- package/status-badge/cssm/consts/iconMap.js +0 -76
- package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/cssm/hooks/useStatusBadgeIcon.js +0 -21
- package/status-badge/cssm/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/cssm/types/statusBadgePropTypes.js +0 -1
- package/status-badge/esm/consts/iconMap.d.ts +0 -4
- package/status-badge/esm/consts/iconMap.js +0 -74
- package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/esm/hooks/useStatusBadgeIcon.js +0 -32
- package/status-badge/esm/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/esm/types/statusBadgePropTypes.js +0 -1
- package/status-badge/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/hooks/useStatusBadgeIcon.js +0 -21
- package/status-badge/modern/consts/iconMap.d.ts +0 -4
- package/status-badge/modern/consts/iconMap.js +0 -74
- package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/modern/hooks/useStatusBadgeIcon.js +0 -34
- package/status-badge/modern/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/modern/types/statusBadgePropTypes.js +0 -1
- package/status-badge/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/types/statusBadgePropTypes.js +0 -1
- package/tab-bar/consts.d.ts +0 -9
- package/tab-bar/consts.js +0 -13
- package/tab-bar/cssm/consts.d.ts +0 -9
- package/tab-bar/cssm/consts.js +0 -13
- package/tab-bar/esm/consts.d.ts +0 -9
- package/tab-bar/esm/consts.js +0 -10
- package/tab-bar/modern/consts.d.ts +0 -9
- package/tab-bar/modern/consts.js +0 -10
- package/toast-plate/browser-a216f694.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
- package/toast-plate/cssm/browser-a216f694.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
- package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +0 -3
- package/toast-plate/cssm/getDataTestId-73ea38f8.js +0 -6
- package/toast-plate/cssm/index-307da6d7.d.ts +0 -71
- package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/esm/browser-a216f694.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -6
- package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +0 -3
- package/toast-plate/esm/getDataTestId-b3cf0f77.js +0 -6
- package/toast-plate/esm/index-307da6d7.d.ts +0 -71
- package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/getDataTestId-439ac98c.d.ts +0 -3
- package/toast-plate/getDataTestId-439ac98c.js +0 -6
- package/toast-plate/index-307da6d7.d.ts +0 -71
- package/toast-plate/modern/browser-a216f694.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +0 -4
- package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +0 -3
- package/toast-plate/modern/getDataTestId-8aa8ef85.js +0 -6
- package/toast-plate/modern/index-307da6d7.d.ts +0 -71
- package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- /package/calendar-range/esm/{index.module-912e88cf.js → index.module-7ba85cb1.js} +0 -0
- /package/calendar-range/{index.module-bf0591f0.js → index.module-c6ded4a2.js} +0 -0
- /package/calendar-range/modern/{index.module-636e08a2.js → index.module-0604d154.js} +0 -0
- /package/confirmation/{countdown-section-b30d5212.d.ts → countdown-section-5581379b.d.ts} +0 -0
- /package/confirmation/{countdown-section-b30d5212.js → countdown-section-5581379b.js} +0 -0
- /package/confirmation/esm/{countdown-section-c4f73a77.d.ts → countdown-section-2f02c020.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-c4f73a77.js → countdown-section-2f02c020.js} +0 -0
- /package/confirmation/modern/{countdown-section-f3215ad8.d.ts → countdown-section-27ad8a44.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-f3215ad8.js → countdown-section-27ad8a44.js} +0 -0
- /package/gallery/{buttons-19c30d23.d.ts → buttons-160fdb5a.d.ts} +0 -0
- /package/gallery/{buttons-19c30d23.js → buttons-160fdb5a.js} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.d.ts → buttons-f951e5ce.d.ts} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.js → buttons-f951e5ce.js} +0 -0
- /package/gallery/esm/{slide-8d1299a5.d.ts → slide-3595abb4.d.ts} +0 -0
- /package/gallery/esm/{slide-8d1299a5.js → slide-3595abb4.js} +0 -0
- /package/gallery/modern/{buttons-92efe05c.d.ts → buttons-a3ff616b.d.ts} +0 -0
- /package/gallery/modern/{buttons-92efe05c.js → buttons-a3ff616b.js} +0 -0
- /package/gallery/modern/{slide-57aa7661.d.ts → slide-acb49e8e.d.ts} +0 -0
- /package/gallery/modern/{slide-57aa7661.js → slide-acb49e8e.js} +0 -0
- /package/gallery/{slide-45ca49f1.d.ts → slide-2268997b.d.ts} +0 -0
- /package/gallery/{slide-45ca49f1.js → slide-2268997b.js} +0 -0
- /package/modal/esm/{layout.module-b635b128.js → layout.module-ec4a90b6.js} +0 -0
- /package/modal/{layout.module-34149103.js → layout.module-0786cc33.js} +0 -0
- /package/modal/modern/{layout.module-41e8947b.js → layout.module-8379050e.js} +0 -0
- /package/picker-button/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/cssm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/esm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/modern/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/pure-cell/{component-5e8acf12.d.ts → component-911cc97f.d.ts} +0 -0
- /package/pure-cell/{component-5e8acf12.js → component-911cc97f.js} +0 -0
- /package/pure-cell/esm/{component-f28a5631.d.ts → component-53618056.d.ts} +0 -0
- /package/pure-cell/esm/{component-f28a5631.js → component-53618056.js} +0 -0
- /package/pure-cell/modern/{component-10bc9276.d.ts → component-254f4794.d.ts} +0 -0
- /package/pure-cell/modern/{component-10bc9276.js → component-254f4794.js} +0 -0
- /package/select/esm/{hook-c0758dcd.d.ts → hook-234f7a67.d.ts} +0 -0
- /package/select/esm/{hook-c0758dcd.js → hook-234f7a67.js} +0 -0
- /package/select/{hook-10a14b43.d.ts → hook-5f6e7b13.d.ts} +0 -0
- /package/select/{hook-10a14b43.js → hook-5f6e7b13.js} +0 -0
- /package/select/modern/{hook-5ccdb908.d.ts → hook-46a9009f.d.ts} +0 -0
- /package/select/modern/{hook-5ccdb908.js → hook-46a9009f.js} +0 -0
- /package/typography/{colors.module-5b90a9cc.js → colors.module-a11b73e9.js} +0 -0
- /package/typography/{common.module-53a00318.js → common.module-25e7ce83.js} +0 -0
- /package/typography/esm/{colors.module-f2501c6f.js → colors.module-e5414e42.js} +0 -0
- /package/typography/esm/{common.module-04c7810e.js → common.module-bd07cc74.js} +0 -0
- /package/typography/modern/{colors.module-83a4b747.js → colors.module-9fa7fdee.js} +0 -0
- /package/typography/modern/{common.module-278c339a.js → common.module-e73684d9.js} +0 -0
|
@@ -19,7 +19,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
19
19
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
20
20
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
21
21
|
|
|
22
|
-
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","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"};
|
|
22
|
+
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"};
|
|
23
23
|
require('./index.css');
|
|
24
24
|
|
|
25
25
|
var isNil = coreComponentsShared.fnUtils.isNil;
|
|
@@ -30,12 +30,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
30
30
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
31
31
|
var isFirstRender = fullHeight === 0;
|
|
32
32
|
var magneticAreas = React.useMemo(function () {
|
|
33
|
+
var _a;
|
|
33
34
|
if (magneticAreasProp) {
|
|
34
35
|
return magneticAreasProp.map(function (area) {
|
|
35
36
|
return utils.convertPercentToNumber(area, fullHeight, headerOffset);
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
+
var iOSViewHeight = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || window.innerHeight;
|
|
40
|
+
var viewHeight = coreComponentsShared.os.isIOS() ? iOSViewHeight : fullHeight;
|
|
41
|
+
return [0, viewHeight - headerOffset];
|
|
39
42
|
}, [fullHeight, headerOffset, magneticAreasProp]);
|
|
40
43
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
41
44
|
var _t = React.useState(0), sheetOffset = _t[0], setSheetOffset = _t[1];
|
|
@@ -332,11 +335,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
332
335
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
|
|
333
336
|
_b[styles.disabledPointerEvents] = hideOverlay,
|
|
334
337
|
_b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered, onEnter: handleEnter, onExit: handleExit }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
|
|
335
|
-
React__default.default.createElement("div", {
|
|
338
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.wrapper, (_c = {},
|
|
336
339
|
_c[styles.fullscreen] = headerOffset === 0 && sheetOffset === 0,
|
|
337
340
|
_c)), onTransitionEnd: setSheetHeight },
|
|
338
341
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_d = {},
|
|
339
342
|
_d[styles.withTransition] = swipingInProgress === false,
|
|
343
|
+
_d[styles.safeAreaBottom] = coreComponentsShared.os.isIOS(),
|
|
340
344
|
_d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
341
345
|
renderMarker(),
|
|
342
346
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
@@ -29,12 +29,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
29
29
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
30
30
|
var isFirstRender = fullHeight === 0;
|
|
31
31
|
var magneticAreas = React.useMemo(function () {
|
|
32
|
+
var _a;
|
|
32
33
|
if (magneticAreasProp) {
|
|
33
34
|
return magneticAreasProp.map(function (area) {
|
|
34
35
|
return utils.convertPercentToNumber(area, fullHeight, headerOffset);
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
var iOSViewHeight = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || window.innerHeight;
|
|
39
|
+
var viewHeight = coreComponentsShared.os.isIOS() ? iOSViewHeight : fullHeight;
|
|
40
|
+
return [0, viewHeight - headerOffset];
|
|
38
41
|
}, [fullHeight, headerOffset, magneticAreasProp]);
|
|
39
42
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
40
43
|
var _t = React.useState(0), sheetOffset = _t[0], setSheetOffset = _t[1];
|
|
@@ -331,11 +334,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
331
334
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles__default.default.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles__default.default.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
|
|
332
335
|
_b[styles__default.default.disabledPointerEvents] = hideOverlay,
|
|
333
336
|
_b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles__default.default }, transitionProps), { onExited: handleExited, onEntered: handleEntered, onEnter: handleEnter, onExit: handleExit }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
|
|
334
|
-
React__default.default.createElement("div", {
|
|
337
|
+
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.wrapper, (_c = {},
|
|
335
338
|
_c[styles__default.default.fullscreen] = headerOffset === 0 && sheetOffset === 0,
|
|
336
339
|
_c)), onTransitionEnd: setSheetHeight },
|
|
337
340
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, bgClassName, className, (_d = {},
|
|
338
341
|
_d[styles__default.default.withTransition] = swipingInProgress === false,
|
|
342
|
+
_d[styles__default.default.safeAreaBottom] = coreComponentsShared.os.isIOS(),
|
|
339
343
|
_d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
340
344
|
renderMarker(),
|
|
341
345
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles__default.default.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
@@ -135,7 +135,9 @@
|
|
|
135
135
|
} .exitActive .wrapper {
|
|
136
136
|
transition: var(--bottom-sheet-out-transition);
|
|
137
137
|
transform: translateY(100%);
|
|
138
|
-
} .
|
|
138
|
+
} .safeAreaBottom {
|
|
139
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
140
|
+
} .background-accent {
|
|
139
141
|
background-color: var(--color-light-bg-accent);
|
|
140
142
|
} .background-info {
|
|
141
143
|
background-color: var(--color-light-bg-info);
|
|
@@ -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 } from '../../base-modal/esm';
|
|
8
|
-
import { fnUtils, getDataTestId } from '../../shared/esm';
|
|
8
|
+
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';
|
|
@@ -13,7 +13,7 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
13
13
|
import '../../navigation-bar/esm';
|
|
14
14
|
import '../../backdrop/esm';
|
|
15
15
|
|
|
16
|
-
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","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
|
+
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
17
|
require('./index.css');
|
|
18
18
|
|
|
19
19
|
var isNil = fnUtils.isNil;
|
|
@@ -24,12 +24,15 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
24
24
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
25
25
|
var isFirstRender = fullHeight === 0;
|
|
26
26
|
var magneticAreas = useMemo(function () {
|
|
27
|
+
var _a;
|
|
27
28
|
if (magneticAreasProp) {
|
|
28
29
|
return magneticAreasProp.map(function (area) {
|
|
29
30
|
return convertPercentToNumber(area, fullHeight, headerOffset);
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
var iOSViewHeight = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || window.innerHeight;
|
|
34
|
+
var viewHeight = os.isIOS() ? iOSViewHeight : fullHeight;
|
|
35
|
+
return [0, viewHeight - headerOffset];
|
|
33
36
|
}, [fullHeight, headerOffset, magneticAreasProp]);
|
|
34
37
|
var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
35
38
|
var _t = useState(0), sheetOffset = _t[0], setSheetOffset = _t[1];
|
|
@@ -326,11 +329,12 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
326
329
|
return (React.createElement(BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: __assign(__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles.modal, modalClassName), wrapperClassName: cn(modalWrapperClassName, (_b = {},
|
|
327
330
|
_b[styles.disabledPointerEvents] = hideOverlay,
|
|
328
331
|
_b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered, onEnter: handleEnter, onExit: handleExit }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
|
|
329
|
-
React.createElement("div", {
|
|
332
|
+
React.createElement("div", { className: cn(styles.wrapper, (_c = {},
|
|
330
333
|
_c[styles.fullscreen] = headerOffset === 0 && sheetOffset === 0,
|
|
331
334
|
_c)), onTransitionEnd: setSheetHeight },
|
|
332
335
|
React.createElement("div", __assign({ className: cn(styles.component, bgClassName, className, (_d = {},
|
|
333
336
|
_d[styles.withTransition] = swipingInProgress === false,
|
|
337
|
+
_d[styles.safeAreaBottom] = os.isIOS(),
|
|
334
338
|
_d)), style: __assign(__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
335
339
|
renderMarker(),
|
|
336
340
|
React.createElement("div", __assign({}, containerProps, { className: cn(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
@@ -136,7 +136,9 @@
|
|
|
136
136
|
} .bottom-sheet__exitActive_tmbtb .bottom-sheet__wrapper_tmbtb {
|
|
137
137
|
transition: var(--bottom-sheet-out-transition);
|
|
138
138
|
transform: translateY(100%);
|
|
139
|
-
} .bottom-
|
|
139
|
+
} .bottom-sheet__safeAreaBottom_tmbtb {
|
|
140
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
141
|
+
} .bottom-sheet__background-accent_tmbtb {
|
|
140
142
|
background-color: var(--color-light-bg-accent);
|
|
141
143
|
} .bottom-sheet__background-info_tmbtb {
|
|
142
144
|
background-color: var(--color-light-bg-info);
|
package/bottom-sheet/index.css
CHANGED
|
@@ -136,7 +136,9 @@
|
|
|
136
136
|
} .bottom-sheet__exitActive_tmbtb .bottom-sheet__wrapper_tmbtb {
|
|
137
137
|
transition: var(--bottom-sheet-out-transition);
|
|
138
138
|
transform: translateY(100%);
|
|
139
|
-
} .bottom-
|
|
139
|
+
} .bottom-sheet__safeAreaBottom_tmbtb {
|
|
140
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
141
|
+
} .bottom-sheet__background-accent_tmbtb {
|
|
140
142
|
background-color: var(--color-light-bg-accent);
|
|
141
143
|
} .bottom-sheet__background-info_tmbtb {
|
|
142
144
|
background-color: var(--color-light-bg-info);
|
|
@@ -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 } from '../../base-modal/modern';
|
|
7
|
-
import { getDataTestId, fnUtils } from '../../shared/modern';
|
|
7
|
+
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';
|
|
@@ -12,7 +12,7 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
12
12
|
import '../../navigation-bar/modern';
|
|
13
13
|
import '../../backdrop/modern';
|
|
14
14
|
|
|
15
|
-
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","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"};
|
|
15
|
+
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
16
|
require('./index.css');
|
|
17
17
|
|
|
18
18
|
const { isNil } = fnUtils;
|
|
@@ -24,7 +24,9 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
24
24
|
if (magneticAreasProp) {
|
|
25
25
|
return magneticAreasProp.map((area) => convertPercentToNumber(area, fullHeight, headerOffset));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
const iOSViewHeight = document?.documentElement?.clientHeight || window.innerHeight;
|
|
28
|
+
const viewHeight = os.isIOS() ? iOSViewHeight : fullHeight;
|
|
29
|
+
return [0, viewHeight - headerOffset];
|
|
28
30
|
}, [fullHeight, headerOffset, magneticAreasProp]);
|
|
29
31
|
const lastMagneticArea = magneticAreas[magneticAreas.length - 1];
|
|
30
32
|
const [sheetOffset, setSheetOffset] = useState(0);
|
|
@@ -350,11 +352,12 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
350
352
|
onEnter: handleEnter,
|
|
351
353
|
onExit: handleExit,
|
|
352
354
|
}, disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
|
|
353
|
-
React.createElement("div", {
|
|
355
|
+
React.createElement("div", { className: cn(styles.wrapper, {
|
|
354
356
|
[styles.fullscreen]: headerOffset === 0 && sheetOffset === 0,
|
|
355
357
|
}), onTransitionEnd: setSheetHeight },
|
|
356
358
|
React.createElement("div", { className: cn(styles.component, bgClassName, className, {
|
|
357
359
|
[styles.withTransition]: swipingInProgress === false,
|
|
360
|
+
[styles.safeAreaBottom]: os.isIOS(),
|
|
358
361
|
}), style: {
|
|
359
362
|
...getSwipeStyles(),
|
|
360
363
|
...getHeightStyles(),
|
|
@@ -136,7 +136,9 @@
|
|
|
136
136
|
} .bottom-sheet__exitActive_tmbtb .bottom-sheet__wrapper_tmbtb {
|
|
137
137
|
transition: var(--bottom-sheet-out-transition);
|
|
138
138
|
transform: translateY(100%);
|
|
139
|
-
} .bottom-
|
|
139
|
+
} .bottom-sheet__safeAreaBottom_tmbtb {
|
|
140
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
141
|
+
} .bottom-sheet__background-accent_tmbtb {
|
|
140
142
|
background-color: var(--color-light-bg-accent);
|
|
141
143
|
} .bottom-sheet__background-info_tmbtb {
|
|
142
144
|
background-color: var(--color-light-bg-info);
|
|
@@ -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-7ba85cb1.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-7ba85cb1.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-7ba85cb1.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-7ba85cb1.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-0604d154.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-0604d154.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-0604d154.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-0604d154.js';
|
|
17
17
|
import 'date-fns/isEqual';
|
|
18
18
|
import 'date-fns/min';
|
|
19
19
|
|
package/calendar-range/utils.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var isDayButton = function (node) {
|
|
3
|
+
var isDayButton = function (node) {
|
|
4
|
+
return node && node.tagName === 'BUTTON' && node.dataset.date;
|
|
5
|
+
};
|
|
4
6
|
|
|
5
7
|
exports.isDayButton = isDayButton;
|
|
@@ -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-c6ded4a2.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-c6ded4a2.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-5581379b.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-5581379b.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-2f02c020.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-27ad8a44.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-27ad8a44.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-27ad8a44.js';
|
|
16
16
|
import '../../../../button/modern';
|
|
17
17
|
import '../../../../spinner/modern';
|
|
18
18
|
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-27ad8a44.js';
|
|
18
18
|
import '../../../button/modern';
|
|
19
19
|
import '../../../spinner/modern';
|
|
@@ -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-27ad8a44.js';
|
|
17
17
|
import '../../../../button/modern';
|
|
18
18
|
import '../../../../spinner/modern';
|
|
19
19
|
import '../countdown-loader/component.js';
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../../../../../typography/modern';
|
|
|
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-27ad8a44.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../../../button/modern';
|
|
14
14
|
import '../../../../../spinner/modern';
|