@alfalab/core-components-universal-modal 2.0.1 → 2.0.3
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/Component.responsive.d.ts +3 -12
- package/Component.responsive.js.map +1 -1
- package/Context.js.map +1 -1
- package/components/content/base-content/base-content.d.ts +3 -3
- package/components/content/base-content/base-content.js.map +1 -1
- package/components/content/base-content/index.css +1 -1
- package/components/content/base-content/index.module.css.js +1 -1
- package/components/content/desktop/Component.desktop.d.ts +4 -4
- package/components/content/desktop/Component.desktop.js.map +1 -1
- package/components/content/desktop/desktop.css +2 -2
- package/components/content/desktop/desktop.module.css.js +1 -1
- package/components/content/mobile/Component.mobile.d.ts +2 -2
- package/components/content/mobile/Component.mobile.js.map +1 -1
- package/components/content/mobile/mobile.css +4 -4
- package/components/content/mobile/mobile.module.css.js +1 -1
- package/components/content/responsive/Component.responsive.d.ts +5 -4
- package/components/content/responsive/Component.responsive.js.map +1 -1
- package/components/footer/base-footer/base-footer.d.ts +3 -3
- package/components/footer/base-footer/base-footer.js.map +1 -1
- package/components/footer/base-footer/index.css +6 -4
- package/components/footer/base-footer/index.module.css.js +1 -1
- package/components/footer/base-footer/index.module.css.js.map +1 -1
- package/components/footer/desktop/Component.desktop.d.ts +4 -9
- package/components/footer/desktop/Component.desktop.js.map +1 -1
- package/components/footer/desktop/desktop.css +1 -1
- package/components/footer/desktop/desktop.module.css.js +1 -1
- package/components/footer/desktop/layout.css +11 -14
- package/components/footer/desktop/layout.module.css.js +1 -1
- package/components/footer/mobile/Component.mobile.d.ts +2 -2
- package/components/footer/mobile/Component.mobile.js.map +1 -1
- package/components/footer/mobile/layout.mobile.css +9 -11
- package/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/components/footer/mobile/mobile.css +2 -2
- package/components/footer/mobile/mobile.module.css.js +1 -1
- package/components/footer/responsive/Component.responsive.d.ts +4 -3
- package/components/footer/responsive/Component.responsive.js.map +1 -1
- package/components/header/base-header/index.css +17 -15
- package/components/header/base-header/index.module.css.js +1 -1
- package/components/header/base-header/index.module.css.js.map +1 -1
- package/components/header/desktop/Component.desktop.d.ts +4 -10
- package/components/header/desktop/Component.desktop.js.map +1 -1
- package/components/header/desktop/desktop.css +12 -12
- package/components/header/desktop/desktop.module.css.js +1 -1
- package/components/header/mobile/Component.mobile.d.ts +2 -2
- package/components/header/mobile/Component.mobile.js.map +1 -1
- package/components/header/mobile/mobile.css +6 -6
- package/components/header/mobile/mobile.module.css.js +1 -1
- package/components/header/mobile/mobile.module.css.js.map +1 -1
- package/components/header/responsive/Component.responsive.d.ts +4 -3
- package/components/header/responsive/Component.responsive.js.map +1 -1
- package/context/universal-modal-context.d.ts +1 -1
- package/context/universal-modal-context.js.map +1 -1
- package/cssm/Component.responsive.d.ts +3 -12
- package/cssm/Component.responsive.js.map +1 -1
- package/cssm/Context.js.map +1 -1
- package/cssm/components/content/base-content/base-content.d.ts +3 -3
- package/cssm/components/content/base-content/base-content.js.map +1 -1
- package/cssm/components/content/desktop/Component.desktop.d.ts +4 -4
- package/cssm/components/content/desktop/Component.desktop.js.map +1 -1
- package/cssm/components/content/mobile/Component.mobile.d.ts +2 -2
- package/cssm/components/content/mobile/Component.mobile.js.map +1 -1
- package/cssm/components/content/mobile/mobile.module.css +1 -1
- package/cssm/components/content/responsive/Component.responsive.d.ts +5 -4
- package/cssm/components/content/responsive/Component.responsive.js.map +1 -1
- package/cssm/components/footer/base-footer/base-footer.d.ts +3 -3
- package/cssm/components/footer/base-footer/base-footer.js.map +1 -1
- package/cssm/components/footer/base-footer/index.module.css +3 -1
- package/cssm/components/footer/desktop/Component.desktop.d.ts +4 -9
- package/cssm/components/footer/desktop/Component.desktop.js.map +1 -1
- package/cssm/components/footer/desktop/layout.module.css +2 -5
- package/cssm/components/footer/mobile/Component.mobile.d.ts +2 -2
- package/cssm/components/footer/mobile/Component.mobile.js.map +1 -1
- package/cssm/components/footer/mobile/layout.mobile.module.css +1 -3
- package/cssm/components/footer/responsive/Component.responsive.d.ts +4 -3
- package/cssm/components/footer/responsive/Component.responsive.js.map +1 -1
- package/cssm/components/header/base-header/index.module.css +5 -3
- package/cssm/components/header/desktop/Component.desktop.d.ts +4 -10
- package/cssm/components/header/desktop/Component.desktop.js.map +1 -1
- package/cssm/components/header/desktop/desktop.module.css +4 -4
- package/cssm/components/header/mobile/Component.mobile.d.ts +2 -2
- package/cssm/components/header/mobile/Component.mobile.js.map +1 -1
- package/cssm/components/header/mobile/mobile.module.css +2 -2
- package/cssm/components/header/responsive/Component.responsive.d.ts +4 -3
- package/cssm/components/header/responsive/Component.responsive.js.map +1 -1
- package/cssm/context/universal-modal-context.d.ts +1 -1
- package/cssm/context/universal-modal-context.js.map +1 -1
- package/cssm/desktop/Component.desktop.d.ts +5 -12
- package/cssm/desktop/Component.desktop.js.map +1 -1
- package/cssm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/cssm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/cssm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/cssm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
- package/cssm/desktop/components/center-modal/center-modal.d.ts +2 -3
- package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/cssm/desktop/components/center-modal/index.module.css +5 -3
- package/cssm/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
- package/cssm/desktop/components/center-modal/transitions/transitions.module.css +6 -2
- package/cssm/desktop/components/modal-content/modal-content.d.ts +5 -5
- package/cssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/cssm/desktop/components/modal-content/modal-content.module.css +3 -3
- package/cssm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
- package/cssm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
- package/cssm/desktop/components/side-modal/index.module.css +5 -3
- package/cssm/desktop/components/side-modal/side-modal.d.ts +2 -3
- package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/cssm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
- package/cssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
- package/cssm/desktop/hooks/use-outside-scroll.d.ts +3 -3
- package/cssm/desktop/hooks/use-outside-scroll.js.map +1 -1
- package/cssm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
- package/cssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
- package/cssm/desktop/hooks/useModalWheel.d.ts +1 -1
- package/cssm/desktop/hooks/useModalWheel.js.map +1 -1
- package/cssm/desktop/styles/transitions/full-size-backdrop-transitions.module.css +2 -1
- package/cssm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
- package/cssm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
- package/cssm/desktop/types/props.d.ts +7 -7
- package/cssm/desktop/utils/check-header-and-footer.d.ts +1 -1
- package/cssm/desktop/utils/check-header-and-footer.js.map +1 -1
- package/cssm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
- package/cssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
- package/cssm/desktop/utils/get-height-style.d.ts +1 -1
- package/cssm/desktop/utils/get-height-style.js.map +1 -1
- package/cssm/desktop/utils/get-margin-styles.d.ts +3 -3
- package/cssm/desktop/utils/get-margin-styles.js.map +1 -1
- package/cssm/desktop/utils/get-max-height-style.d.ts +1 -1
- package/cssm/desktop/utils/get-max-height-style.js.map +1 -1
- package/cssm/desktop/utils/get-width-style.d.ts +1 -1
- package/cssm/desktop/utils/get-width-style.js.map +1 -1
- package/cssm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
- package/cssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
- package/cssm/mobile/Component.mobile.d.ts +3 -2
- package/cssm/mobile/Component.mobile.js.map +1 -1
- package/cssm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/cssm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/cssm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/cssm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
- package/cssm/mobile/mobile.module.css +1 -1
- package/cssm/mobile/transitions/transitions.mobile.module.css +6 -2
- package/cssm/mobile/types/props.d.ts +5 -4
- package/cssm/typings/index.d.ts +6 -6
- package/cssm/typings/margin-type.d.ts +2 -2
- package/desktop/Component.desktop.d.ts +5 -12
- package/desktop/Component.desktop.js.map +1 -1
- package/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
- package/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/desktop/components/buttons/cross-button/cross-button.css +1 -1
- package/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
- package/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/desktop/components/center-modal/center-modal.d.ts +2 -3
- package/desktop/components/center-modal/center-modal.js.map +1 -1
- package/desktop/components/center-modal/index.css +526 -524
- package/desktop/components/center-modal/index.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
- package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
- package/desktop/components/center-modal/transitions/transitions.css +13 -9
- package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
- package/desktop/components/modal-content/modal-content.css +7 -7
- package/desktop/components/modal-content/modal-content.d.ts +5 -5
- package/desktop/components/modal-content/modal-content.js.map +1 -1
- package/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
- package/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
- package/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
- package/desktop/components/side-modal/index.css +528 -526
- package/desktop/components/side-modal/index.module.css.js +1 -1
- package/desktop/components/side-modal/side-modal.d.ts +2 -3
- package/desktop/components/side-modal/side-modal.js.map +1 -1
- package/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/hooks/use-modal-highlighted.d.ts +3 -3
- package/desktop/hooks/use-modal-highlighted.js.map +1 -1
- package/desktop/hooks/use-outside-scroll.d.ts +3 -3
- package/desktop/hooks/use-outside-scroll.js.map +1 -1
- package/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
- package/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
- package/desktop/hooks/useModalWheel.d.ts +1 -1
- package/desktop/hooks/useModalWheel.js.map +1 -1
- package/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
- package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
- package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
- package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
- package/desktop/types/props.d.ts +7 -7
- package/desktop/utils/check-header-and-footer.d.ts +1 -1
- package/desktop/utils/check-header-and-footer.js.map +1 -1
- package/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
- package/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
- package/desktop/utils/get-height-style.d.ts +1 -1
- package/desktop/utils/get-height-style.js.map +1 -1
- package/desktop/utils/get-margin-styles.d.ts +3 -3
- package/desktop/utils/get-margin-styles.js.map +1 -1
- package/desktop/utils/get-max-height-style.d.ts +1 -1
- package/desktop/utils/get-max-height-style.js.map +1 -1
- package/desktop/utils/get-width-style.d.ts +1 -1
- package/desktop/utils/get-width-style.js.map +1 -1
- package/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
- package/desktop/utils/set-footer-and-header-refs.js.map +1 -1
- package/esm/Component.responsive.d.ts +3 -12
- package/esm/Component.responsive.js.map +1 -1
- package/esm/Context.js.map +1 -1
- package/esm/components/content/base-content/base-content.d.ts +3 -3
- package/esm/components/content/base-content/base-content.js.map +1 -1
- package/esm/components/content/base-content/index.css +1 -1
- package/esm/components/content/base-content/index.module.css.js +1 -1
- package/esm/components/content/desktop/Component.desktop.d.ts +4 -4
- package/esm/components/content/desktop/Component.desktop.js.map +1 -1
- package/esm/components/content/desktop/desktop.css +2 -2
- package/esm/components/content/desktop/desktop.module.css.js +1 -1
- package/esm/components/content/mobile/Component.mobile.d.ts +2 -2
- package/esm/components/content/mobile/Component.mobile.js.map +1 -1
- package/esm/components/content/mobile/mobile.css +4 -4
- package/esm/components/content/mobile/mobile.module.css.js +1 -1
- package/esm/components/content/responsive/Component.responsive.d.ts +5 -4
- package/esm/components/content/responsive/Component.responsive.js.map +1 -1
- package/esm/components/footer/base-footer/base-footer.d.ts +3 -3
- package/esm/components/footer/base-footer/base-footer.js.map +1 -1
- package/esm/components/footer/base-footer/index.css +6 -4
- package/esm/components/footer/base-footer/index.module.css.js +1 -1
- package/esm/components/footer/base-footer/index.module.css.js.map +1 -1
- package/esm/components/footer/desktop/Component.desktop.d.ts +4 -9
- package/esm/components/footer/desktop/Component.desktop.js.map +1 -1
- package/esm/components/footer/desktop/desktop.css +1 -1
- package/esm/components/footer/desktop/desktop.module.css.js +1 -1
- package/esm/components/footer/desktop/layout.css +11 -14
- package/esm/components/footer/desktop/layout.module.css.js +1 -1
- package/esm/components/footer/mobile/Component.mobile.d.ts +2 -2
- package/esm/components/footer/mobile/Component.mobile.js.map +1 -1
- package/esm/components/footer/mobile/layout.mobile.css +9 -11
- package/esm/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/esm/components/footer/mobile/mobile.css +2 -2
- package/esm/components/footer/mobile/mobile.module.css.js +1 -1
- package/esm/components/footer/responsive/Component.responsive.d.ts +4 -3
- package/esm/components/footer/responsive/Component.responsive.js.map +1 -1
- package/esm/components/header/base-header/index.css +17 -15
- package/esm/components/header/base-header/index.module.css.js +1 -1
- package/esm/components/header/base-header/index.module.css.js.map +1 -1
- package/esm/components/header/desktop/Component.desktop.d.ts +4 -10
- package/esm/components/header/desktop/Component.desktop.js.map +1 -1
- package/esm/components/header/desktop/desktop.css +12 -12
- package/esm/components/header/desktop/desktop.module.css.js +1 -1
- package/esm/components/header/mobile/Component.mobile.d.ts +2 -2
- package/esm/components/header/mobile/Component.mobile.js.map +1 -1
- package/esm/components/header/mobile/mobile.css +6 -6
- package/esm/components/header/mobile/mobile.module.css.js +1 -1
- package/esm/components/header/mobile/mobile.module.css.js.map +1 -1
- package/esm/components/header/responsive/Component.responsive.d.ts +4 -3
- package/esm/components/header/responsive/Component.responsive.js.map +1 -1
- package/esm/context/universal-modal-context.d.ts +1 -1
- package/esm/context/universal-modal-context.js.map +1 -1
- package/esm/desktop/Component.desktop.d.ts +5 -12
- package/esm/desktop/Component.desktop.js.map +1 -1
- package/esm/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
- package/esm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/esm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/esm/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/esm/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/esm/desktop/components/buttons/cross-button/cross-button.css +1 -1
- package/esm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/esm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
- package/esm/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/esm/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/esm/desktop/components/center-modal/center-modal.d.ts +2 -3
- package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/esm/desktop/components/center-modal/index.css +526 -524
- package/esm/desktop/components/center-modal/index.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
- package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
- package/esm/desktop/components/center-modal/transitions/transitions.css +13 -9
- package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
- package/esm/desktop/components/modal-content/modal-content.css +7 -7
- package/esm/desktop/components/modal-content/modal-content.d.ts +5 -5
- package/esm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/esm/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
- package/esm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
- package/esm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
- package/esm/desktop/components/side-modal/index.css +528 -526
- package/esm/desktop/components/side-modal/index.module.css.js +1 -1
- package/esm/desktop/components/side-modal/side-modal.d.ts +2 -3
- package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
- package/esm/desktop/hooks/use-modal-highlighted.js.map +1 -1
- package/esm/desktop/hooks/use-outside-scroll.d.ts +3 -3
- package/esm/desktop/hooks/use-outside-scroll.js.map +1 -1
- package/esm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
- package/esm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
- package/esm/desktop/hooks/useModalWheel.d.ts +1 -1
- package/esm/desktop/hooks/useModalWheel.js.map +1 -1
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
- package/esm/desktop/types/props.d.ts +7 -7
- package/esm/desktop/utils/check-header-and-footer.d.ts +1 -1
- package/esm/desktop/utils/check-header-and-footer.js.map +1 -1
- package/esm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
- package/esm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
- package/esm/desktop/utils/get-height-style.d.ts +1 -1
- package/esm/desktop/utils/get-height-style.js.map +1 -1
- package/esm/desktop/utils/get-margin-styles.d.ts +3 -3
- package/esm/desktop/utils/get-margin-styles.js.map +1 -1
- package/esm/desktop/utils/get-max-height-style.d.ts +1 -1
- package/esm/desktop/utils/get-max-height-style.js.map +1 -1
- package/esm/desktop/utils/get-width-style.d.ts +1 -1
- package/esm/desktop/utils/get-width-style.js.map +1 -1
- package/esm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
- package/esm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
- package/esm/mobile/Component.mobile.d.ts +3 -2
- package/esm/mobile/Component.mobile.js.map +1 -1
- package/esm/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
- package/esm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/esm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/esm/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/esm/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/esm/mobile/components/buttons/cross-button/cross-button.css +2 -2
- package/esm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/esm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
- package/esm/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/esm/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/esm/mobile/mobile.css +4 -4
- package/esm/mobile/mobile.module.css.js +1 -1
- package/esm/mobile/mobile.module.css.js.map +1 -1
- package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
- package/esm/mobile/transitions/transitions.mobile.css +13 -9
- package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/esm/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
- package/esm/mobile/types/props.d.ts +5 -4
- package/esm/typings/index.d.ts +6 -6
- package/esm/typings/margin-type.d.ts +2 -2
- package/mobile/Component.mobile.d.ts +3 -2
- package/mobile/Component.mobile.js.map +1 -1
- package/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
- package/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/mobile/components/buttons/cross-button/cross-button.css +2 -2
- package/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
- package/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/mobile/mobile.css +4 -4
- package/mobile/mobile.module.css.js +1 -1
- package/mobile/mobile.module.css.js.map +1 -1
- package/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
- package/mobile/transitions/transitions.mobile.css +13 -9
- package/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
- package/mobile/types/props.d.ts +5 -4
- package/modern/Component.responsive.d.ts +3 -12
- package/modern/Component.responsive.js.map +1 -1
- package/modern/Context.js.map +1 -1
- package/modern/components/content/base-content/base-content.d.ts +3 -3
- package/modern/components/content/base-content/base-content.js.map +1 -1
- package/modern/components/content/base-content/index.css +1 -1
- package/modern/components/content/base-content/index.module.css.js +1 -1
- package/modern/components/content/desktop/Component.desktop.d.ts +4 -4
- package/modern/components/content/desktop/Component.desktop.js.map +1 -1
- package/modern/components/content/desktop/desktop.css +2 -2
- package/modern/components/content/desktop/desktop.module.css.js +1 -1
- package/modern/components/content/mobile/Component.mobile.d.ts +2 -2
- package/modern/components/content/mobile/Component.mobile.js.map +1 -1
- package/modern/components/content/mobile/mobile.css +4 -4
- package/modern/components/content/mobile/mobile.module.css.js +1 -1
- package/modern/components/content/responsive/Component.responsive.d.ts +5 -4
- package/modern/components/content/responsive/Component.responsive.js.map +1 -1
- package/modern/components/footer/base-footer/base-footer.d.ts +3 -3
- package/modern/components/footer/base-footer/base-footer.js.map +1 -1
- package/modern/components/footer/base-footer/index.css +6 -4
- package/modern/components/footer/base-footer/index.module.css.js +1 -1
- package/modern/components/footer/base-footer/index.module.css.js.map +1 -1
- package/modern/components/footer/desktop/Component.desktop.d.ts +4 -9
- package/modern/components/footer/desktop/Component.desktop.js.map +1 -1
- package/modern/components/footer/desktop/desktop.css +1 -1
- package/modern/components/footer/desktop/desktop.module.css.js +1 -1
- package/modern/components/footer/desktop/layout.css +11 -14
- package/modern/components/footer/desktop/layout.module.css.js +1 -1
- package/modern/components/footer/mobile/Component.mobile.d.ts +2 -2
- package/modern/components/footer/mobile/Component.mobile.js.map +1 -1
- package/modern/components/footer/mobile/layout.mobile.css +9 -11
- package/modern/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/modern/components/footer/mobile/mobile.css +2 -2
- package/modern/components/footer/mobile/mobile.module.css.js +1 -1
- package/modern/components/footer/responsive/Component.responsive.d.ts +4 -3
- package/modern/components/footer/responsive/Component.responsive.js.map +1 -1
- package/modern/components/header/base-header/index.css +17 -15
- package/modern/components/header/base-header/index.module.css.js +1 -1
- package/modern/components/header/base-header/index.module.css.js.map +1 -1
- package/modern/components/header/desktop/Component.desktop.d.ts +4 -10
- package/modern/components/header/desktop/Component.desktop.js.map +1 -1
- package/modern/components/header/desktop/desktop.css +12 -12
- package/modern/components/header/desktop/desktop.module.css.js +1 -1
- package/modern/components/header/mobile/Component.mobile.d.ts +2 -2
- package/modern/components/header/mobile/Component.mobile.js.map +1 -1
- package/modern/components/header/mobile/mobile.css +6 -6
- package/modern/components/header/mobile/mobile.module.css.js +1 -1
- package/modern/components/header/mobile/mobile.module.css.js.map +1 -1
- package/modern/components/header/responsive/Component.responsive.d.ts +4 -3
- package/modern/components/header/responsive/Component.responsive.js.map +1 -1
- package/modern/context/universal-modal-context.d.ts +1 -1
- package/modern/context/universal-modal-context.js.map +1 -1
- package/modern/desktop/Component.desktop.d.ts +5 -12
- package/modern/desktop/Component.desktop.js.map +1 -1
- package/modern/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
- package/modern/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/modern/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/modern/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/modern/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/modern/desktop/components/buttons/cross-button/cross-button.css +1 -1
- package/modern/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/modern/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
- package/modern/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/modern/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/modern/desktop/components/center-modal/center-modal.d.ts +2 -3
- package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
- package/modern/desktop/components/center-modal/index.css +526 -524
- package/modern/desktop/components/center-modal/index.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
- package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
- package/modern/desktop/components/center-modal/transitions/transitions.css +13 -9
- package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
- package/modern/desktop/components/modal-content/modal-content.css +7 -7
- package/modern/desktop/components/modal-content/modal-content.d.ts +5 -5
- package/modern/desktop/components/modal-content/modal-content.js.map +1 -1
- package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/modern/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
- package/modern/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
- package/modern/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
- package/modern/desktop/components/side-modal/index.css +528 -526
- package/modern/desktop/components/side-modal/index.module.css.js +1 -1
- package/modern/desktop/components/side-modal/side-modal.d.ts +2 -3
- package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
- package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/hooks/use-modal-highlighted.d.ts +3 -3
- package/modern/desktop/hooks/use-modal-highlighted.js.map +1 -1
- package/modern/desktop/hooks/use-outside-scroll.d.ts +3 -3
- package/modern/desktop/hooks/use-outside-scroll.js.map +1 -1
- package/modern/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
- package/modern/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
- package/modern/desktop/hooks/useModalWheel.d.ts +1 -1
- package/modern/desktop/hooks/useModalWheel.js.map +1 -1
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
- package/modern/desktop/types/props.d.ts +7 -7
- package/modern/desktop/utils/check-header-and-footer.d.ts +1 -1
- package/modern/desktop/utils/check-header-and-footer.js.map +1 -1
- package/modern/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
- package/modern/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
- package/modern/desktop/utils/get-height-style.d.ts +1 -1
- package/modern/desktop/utils/get-height-style.js.map +1 -1
- package/modern/desktop/utils/get-margin-styles.d.ts +3 -3
- package/modern/desktop/utils/get-margin-styles.js.map +1 -1
- package/modern/desktop/utils/get-max-height-style.d.ts +1 -1
- package/modern/desktop/utils/get-max-height-style.js.map +1 -1
- package/modern/desktop/utils/get-width-style.d.ts +1 -1
- package/modern/desktop/utils/get-width-style.js.map +1 -1
- package/modern/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
- package/modern/desktop/utils/set-footer-and-header-refs.js.map +1 -1
- package/modern/mobile/Component.mobile.d.ts +3 -2
- package/modern/mobile/Component.mobile.js.map +1 -1
- package/modern/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
- package/modern/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/modern/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/modern/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
- package/modern/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
- package/modern/mobile/components/buttons/cross-button/cross-button.css +2 -2
- package/modern/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/modern/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
- package/modern/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
- package/modern/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
- package/modern/mobile/mobile.css +4 -4
- package/modern/mobile/mobile.module.css.js +1 -1
- package/modern/mobile/mobile.module.css.js.map +1 -1
- package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
- package/modern/mobile/transitions/transitions.mobile.css +13 -9
- package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/modern/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
- package/modern/mobile/types/props.d.ts +5 -4
- package/modern/typings/index.d.ts +6 -6
- package/modern/typings/margin-type.d.ts +2 -2
- package/moderncssm/Component.responsive.d.ts +3 -12
- package/moderncssm/Component.responsive.js.map +1 -1
- package/moderncssm/Context.js.map +1 -1
- package/moderncssm/components/content/base-content/base-content.d.ts +3 -3
- package/moderncssm/components/content/base-content/base-content.js.map +1 -1
- package/moderncssm/components/content/base-content/index.module.css +2 -0
- package/moderncssm/components/content/desktop/Component.desktop.d.ts +4 -4
- package/moderncssm/components/content/desktop/Component.desktop.js.map +1 -1
- package/moderncssm/components/content/desktop/desktop.module.css +2 -0
- package/moderncssm/components/content/mobile/Component.mobile.d.ts +2 -2
- package/moderncssm/components/content/mobile/Component.mobile.js.map +1 -1
- package/moderncssm/components/content/mobile/mobile.module.css +3 -1
- package/moderncssm/components/content/responsive/Component.responsive.d.ts +5 -4
- package/moderncssm/components/content/responsive/Component.responsive.js.map +1 -1
- package/moderncssm/components/footer/base-footer/base-footer.d.ts +3 -3
- package/moderncssm/components/footer/base-footer/base-footer.js.map +1 -1
- package/moderncssm/components/footer/base-footer/index.module.css +8 -1
- package/moderncssm/components/footer/desktop/Component.desktop.d.ts +4 -9
- package/moderncssm/components/footer/desktop/Component.desktop.js.map +1 -1
- package/moderncssm/components/footer/desktop/desktop.module.css +2 -0
- package/moderncssm/components/footer/desktop/layout.module.css +4 -5
- package/moderncssm/components/footer/mobile/Component.mobile.d.ts +2 -2
- package/moderncssm/components/footer/mobile/Component.mobile.js.map +1 -1
- package/moderncssm/components/footer/mobile/layout.mobile.module.css +3 -3
- package/moderncssm/components/footer/mobile/mobile.module.css +2 -0
- package/moderncssm/components/footer/responsive/Component.responsive.d.ts +4 -3
- package/moderncssm/components/footer/responsive/Component.responsive.js.map +1 -1
- package/moderncssm/components/header/base-header/index.module.css +7 -3
- package/moderncssm/components/header/desktop/Component.desktop.d.ts +4 -10
- package/moderncssm/components/header/desktop/Component.desktop.js.map +1 -1
- package/moderncssm/components/header/desktop/desktop.module.css +4 -9
- package/moderncssm/components/header/mobile/Component.mobile.d.ts +2 -2
- package/moderncssm/components/header/mobile/Component.mobile.js.map +1 -1
- package/moderncssm/components/header/mobile/mobile.module.css +6 -0
- package/moderncssm/components/header/responsive/Component.responsive.d.ts +4 -3
- package/moderncssm/components/header/responsive/Component.responsive.js.map +1 -1
- package/moderncssm/context/universal-modal-context.d.ts +1 -1
- package/moderncssm/context/universal-modal-context.js.map +1 -1
- package/moderncssm/desktop/Component.desktop.d.ts +5 -12
- package/moderncssm/desktop/Component.desktop.js.map +1 -1
- package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.module.css +2 -0
- package/moderncssm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/moderncssm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
- package/moderncssm/desktop/components/buttons/cross-button/cross-button.module.css +1 -0
- package/moderncssm/desktop/components/center-modal/center-modal.d.ts +2 -3
- package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/moderncssm/desktop/components/center-modal/index.module.css +5 -2
- package/moderncssm/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
- package/moderncssm/desktop/components/center-modal/transitions/transitions.module.css +6 -2
- package/moderncssm/desktop/components/modal-content/modal-content.d.ts +5 -5
- package/moderncssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/moderncssm/desktop/components/modal-content/modal-content.module.css +5 -6
- package/moderncssm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
- package/moderncssm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
- package/moderncssm/desktop/components/side-modal/index.module.css +5 -2
- package/moderncssm/desktop/components/side-modal/side-modal.d.ts +2 -3
- package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/moderncssm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
- package/moderncssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
- package/moderncssm/desktop/hooks/use-outside-scroll.d.ts +3 -3
- package/moderncssm/desktop/hooks/use-outside-scroll.js.map +1 -1
- package/moderncssm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
- package/moderncssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
- package/moderncssm/desktop/hooks/useModalWheel.d.ts +1 -1
- package/moderncssm/desktop/hooks/useModalWheel.js.map +1 -1
- package/moderncssm/desktop/styles/transitions/full-size-backdrop-transitions.module.css +4 -1
- package/moderncssm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
- package/moderncssm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
- package/moderncssm/desktop/types/props.d.ts +7 -7
- package/moderncssm/desktop/utils/check-header-and-footer.d.ts +1 -1
- package/moderncssm/desktop/utils/check-header-and-footer.js.map +1 -1
- package/moderncssm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
- package/moderncssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
- package/moderncssm/desktop/utils/get-height-style.d.ts +1 -1
- package/moderncssm/desktop/utils/get-height-style.js.map +1 -1
- package/moderncssm/desktop/utils/get-margin-styles.d.ts +3 -3
- package/moderncssm/desktop/utils/get-margin-styles.js.map +1 -1
- package/moderncssm/desktop/utils/get-max-height-style.d.ts +1 -1
- package/moderncssm/desktop/utils/get-max-height-style.js.map +1 -1
- package/moderncssm/desktop/utils/get-width-style.d.ts +1 -1
- package/moderncssm/desktop/utils/get-width-style.js.map +1 -1
- package/moderncssm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
- package/moderncssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
- package/moderncssm/mobile/Component.mobile.d.ts +3 -2
- package/moderncssm/mobile/Component.mobile.js.map +1 -1
- package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
- package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
- package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.module.css +2 -0
- package/moderncssm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
- package/moderncssm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
- package/moderncssm/mobile/components/buttons/cross-button/cross-button.module.css +2 -0
- package/moderncssm/mobile/mobile.module.css +3 -1
- package/moderncssm/mobile/transitions/right-side-transitions.mobile.module.css +2 -0
- package/moderncssm/mobile/transitions/transitions.mobile.module.css +6 -2
- package/moderncssm/mobile/types/props.d.ts +5 -4
- package/moderncssm/typings/index.d.ts +6 -6
- package/moderncssm/typings/margin-type.d.ts +2 -2
- package/package.json +4 -4
- package/src/Component.responsive.tsx +1 -1
- package/src/components/content/base-content/base-content.tsx +3 -3
- package/src/components/content/desktop/Component.desktop.tsx +4 -4
- package/src/components/content/mobile/Component.mobile.tsx +2 -2
- package/src/components/content/responsive/Component.responsive.tsx +4 -4
- package/src/components/footer/base-footer/base-footer.tsx +3 -3
- package/src/components/footer/base-footer/index.module.css +4 -2
- package/src/components/footer/desktop/Component.desktop.tsx +3 -3
- package/src/components/footer/mobile/Component.mobile.tsx +2 -2
- package/src/components/footer/responsive/Component.responsive.tsx +3 -3
- package/src/components/header/base-header/index.module.css +4 -2
- package/src/components/header/desktop/Component.desktop.tsx +7 -6
- package/src/components/header/mobile/Component.mobile.tsx +2 -2
- package/src/components/header/mobile/mobile.module.css +1 -1
- package/src/components/header/responsive/Component.responsive.tsx +3 -3
- package/src/context/universal-modal-context.ts +1 -1
- package/src/desktop/Component.desktop.tsx +2 -2
- package/src/desktop/components/buttons/arrow-button/arrow-button.module.css +1 -1
- package/src/desktop/components/buttons/arrow-button/arrow-button.tsx +3 -3
- package/src/desktop/components/buttons/cross-button/cross-button.module.css +1 -1
- package/src/desktop/components/buttons/cross-button/cross-button.tsx +3 -3
- package/src/desktop/components/center-modal/center-modal.tsx +1 -1
- package/src/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
- package/src/desktop/components/center-modal/transitions/transitions.module.css +6 -2
- package/src/desktop/components/modal-content/modal-content.module.css +1 -1
- package/src/desktop/components/modal-content/modal-content.tsx +8 -7
- package/src/desktop/components/side-modal/get-default-transition-props.ts +3 -3
- package/src/desktop/components/side-modal/side-modal.module.css +1 -1
- package/src/desktop/components/side-modal/side-modal.tsx +1 -1
- package/src/desktop/hooks/{use-modal-highlighted.tsx → use-modal-highlighted.ts} +4 -4
- package/src/desktop/hooks/{use-outside-scroll.tsx → use-outside-scroll.ts} +3 -3
- package/src/desktop/hooks/{use-set-scrollbar-height.tsx → use-set-scrollbar-height.ts} +3 -3
- package/src/desktop/hooks/{useModalWheel.tsx → useModalWheel.ts} +1 -1
- package/src/desktop/styles/transitions/full-size-backdrop-transitions.module.css +3 -2
- package/src/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
- package/src/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
- package/src/desktop/types/props.ts +27 -26
- package/src/desktop/utils/{check-header-and-footer.tsx → check-header-and-footer.ts} +3 -3
- package/src/desktop/utils/get-full-size-modal-transitions.ts +7 -7
- package/src/desktop/utils/get-height-style.ts +1 -1
- package/src/desktop/utils/get-margin-styles.ts +3 -3
- package/src/desktop/utils/get-max-height-style.ts +1 -1
- package/src/desktop/utils/get-width-style.ts +1 -1
- package/src/desktop/utils/{set-footer-and-header-refs.tsx → set-footer-and-header-refs.ts} +8 -8
- package/src/desktop/vars.css +1 -1
- package/src/mobile/Component.mobile.tsx +1 -1
- package/src/mobile/components/buttons/arrow-button/arrow-button.module.css +1 -1
- package/src/mobile/components/buttons/arrow-button/arrow-button.tsx +3 -3
- package/src/mobile/components/buttons/cross-button/cross-button.module.css +1 -1
- package/src/mobile/components/buttons/cross-button/cross-button.tsx +3 -3
- package/src/mobile/mobile.module.css +1 -1
- package/src/mobile/transitions/right-side-transitions.mobile.module.css +1 -1
- package/src/mobile/transitions/transitions.mobile.module.css +6 -2
- package/src/mobile/types/props.ts +18 -17
- package/src/mobile/vars.css +1 -1
- package/src/typings/index.ts +17 -16
- package/src/typings/margin-type.ts +2 -2
- package/src/vars.css +1 -1
- package/typings/index.d.ts +6 -6
- package/typings/margin-type.d.ts +2 -2
- /package/src/{Context.tsx → Context.ts} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
import { type UniversalModalDesktopProps } from '../../types/props';
|
|
3
|
+
export declare const SideModal: React.ForwardRefExoticComponent<UniversalModalDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useModalWheel } from '../../hooks/useModalWheel';\nimport { UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getMaxHeightStyle } from '../../utils/get-max-height-style';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const { wheelDeltaY, handleWheel } = useModalWheel(overlay);\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler='content'\n disableBlockingScroll={!overlay}\n wrapperClassName={cn(styles.wrapper, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n })}\n className={cn(styles.component, className, {\n [styles.overlayHidden]: !overlay,\n ...getMarginStyles({ styles, margin }),\n })}\n contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n transparent: !overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n height: getHeightStyle(height, margin),\n ...(height === 'hugContent' && {\n maxHeight: getMaxHeightStyle(margin),\n }),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent\n height={height}\n wheelDeltaY={wheelDeltaY}\n scrollableContainerRef={scrollableContainerRef}\n >\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3F,IAAA,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,sBAAsB,EACtB,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;IAE/C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC;IAE3D,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,OACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAC,SAAS,EACvB,qBAAqB,EAAE,CAAC,OAAO,EAC/B,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;AACjC,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;SACzD,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE;AACvC,YAAA,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,OAAO;AAChC,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACzC,CAAC,EACF,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAChC,eAAe,EAAE;AACb,YAAA,GAAG,yBAAyB,CAAC;gBACzB,eAAe;gBACf,MAAM;aACT,CAAC;AACF,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;YACX,WAAW,EAAE,CAAC,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACtC,gBAAA,IAAI,MAAM,KAAK,YAAY,IAAI;AAC3B,oBAAA,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC;iBACvC,CAAC;AACL,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EACT,EAAA,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,sBAAsB,EAAE,sBAAsB,EAAA,EAE7C,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useModalWheel } from '../../hooks/useModalWheel';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getMaxHeightStyle } from '../../utils/get-max-height-style';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const { wheelDeltaY, handleWheel } = useModalWheel(overlay);\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler='content'\n disableBlockingScroll={!overlay}\n wrapperClassName={cn(styles.wrapper, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n })}\n className={cn(styles.component, className, {\n [styles.overlayHidden]: !overlay,\n ...getMarginStyles({ styles, margin }),\n })}\n contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n transparent: !overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n height: getHeightStyle(height, margin),\n ...(height === 'hugContent' && {\n maxHeight: getMaxHeightStyle(margin),\n }),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent\n height={height}\n wheelDeltaY={wheelDeltaY}\n scrollableContainerRef={scrollableContainerRef}\n >\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3F,IAAA,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,sBAAsB,EACtB,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;IAE/C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC;IAE3D,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,OACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAC,SAAS,EACvB,qBAAqB,EAAE,CAAC,OAAO,EAC/B,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;AACjC,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;SACzD,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE;AACvC,YAAA,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,OAAO;AAChC,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACzC,CAAC,EACF,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAChC,eAAe,EAAE;AACb,YAAA,GAAG,yBAAyB,CAAC;gBACzB,eAAe;gBACf,MAAM;aACT,CAAC;AACF,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;YACX,WAAW,EAAE,CAAC,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACtC,gBAAA,IAAI,MAAM,KAAK,YAAY,IAAI;AAC3B,oBAAA,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC;iBACvC,CAAC;AACL,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EACT,EAAA,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,sBAAsB,EAAE,sBAAsB,EAAA,EAE7C,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
interface Params {
|
|
3
3
|
scrollbarContentNodeRef: RefObject<HTMLDivElement>;
|
|
4
4
|
scrollableNodeRef: RefObject<HTMLDivElement>;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
/**
|
|
7
7
|
* Расчет overlap состояния
|
|
8
8
|
* Этот функционал есть в base-modal, но так как в desktop версии используется кастомный scroll необходимо обрабатывать это в ручную
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-modal-highlighted.js","sources":["../../../src/desktop/hooks/use-modal-highlighted.
|
|
1
|
+
{"version":3,"file":"use-modal-highlighted.js","sources":["../../../src/desktop/hooks/use-modal-highlighted.ts"],"sourcesContent":["import { type RefObject, useContext, useEffect } from 'react';\n\nimport { type ScrollbarProps } from '@alfalab/core-components-scrollbar';\n\nimport { UniversalModalContext } from '../../context/universal-modal-context';\n\ninterface Params {\n scrollbarContentNodeRef: RefObject<HTMLDivElement>;\n scrollableNodeRef: RefObject<HTMLDivElement>;\n}\n\n/**\n * Расчет overlap состояния\n * Этот функционал есть в base-modal, но так как в desktop версии используется кастомный scroll необходимо обрабатывать это в ручную\n */\nexport const useModalHighlighted = (params: Params) => {\n const { scrollbarContentNodeRef, scrollableNodeRef } = params;\n\n const { setModalHeaderHighlighted, setModalFooterHighlighted } =\n useContext(UniversalModalContext);\n\n const handleScroll: ScrollbarProps['onContentScroll'] = (e) => {\n const target = e.target as HTMLDivElement;\n const { scrollTop, scrollHeight, clientHeight } = target;\n\n const isElementFullScrolled = scrollHeight - scrollTop === clientHeight;\n\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(scrollTop > 0);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(!isElementFullScrolled);\n }\n };\n\n // Очищаем overlap значения в контексте\n useEffect(\n () => () => {\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(false);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(false);\n }\n },\n [setModalHeaderHighlighted, setModalFooterHighlighted],\n );\n\n // Расчет overlap футера при resize событии\n useEffect(() => {\n const resizeObserver = new ResizeObserver(() => {\n const contentHeight = scrollbarContentNodeRef.current?.clientHeight || 0;\n const wrapperHeight = scrollableNodeRef.current?.clientHeight || 0;\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(contentHeight > wrapperHeight);\n }\n });\n\n if (scrollbarContentNodeRef.current) {\n resizeObserver.observe(scrollbarContentNodeRef.current);\n }\n\n return () => {\n resizeObserver.disconnect();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [setModalFooterHighlighted]);\n\n return { handleScroll };\n};\n"],"names":[],"mappings":";;;AAWA;;;AAGG;AACU,MAAA,mBAAmB,GAAG,CAAC,MAAc,KAAI;AAClD,IAAA,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,MAAM;IAE7D,MAAM,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,GAC1D,UAAU,CAAC,qBAAqB,CAAC;AAErC,IAAA,MAAM,YAAY,GAAsC,CAAC,CAAC,KAAI;AAC1D,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QACzC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM;AAExD,QAAA,MAAM,qBAAqB,GAAG,YAAY,GAAG,SAAS,KAAK,YAAY;AAEvE,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,SAAS,GAAG,CAAC,CAAC;AAC3C;AAED,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,CAAC,qBAAqB,CAAC;AACpD;AACL,KAAC;;AAGD,IAAA,SAAS,CACL,MAAM,MAAK;AACP,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AAED,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AACL,KAAC,EACD,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CACzD;;IAGD,SAAS,CAAC,MAAK;AACX,QAAA,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,MAAK;YAC3C,MAAM,aAAa,GAAG,uBAAuB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;YACxE,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;AAElE,YAAA,IAAI,yBAAyB,EAAE;AAC3B,gBAAA,yBAAyB,CAAC,aAAa,GAAG,aAAa,CAAC;AAC3D;AACL,SAAC,CAAC;QAEF,IAAI,uBAAuB,CAAC,OAAO,EAAE;AACjC,YAAA,cAAc,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC;AAC1D;AAED,QAAA,OAAO,MAAK;YACR,cAAc,CAAC,UAAU,EAAE;AAC/B,SAAC;;AAEL,KAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;IAE/B,OAAO,EAAE,YAAY,EAAE;AAC3B;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
interface Params {
|
|
3
3
|
scrollableNodeRef: RefObject<HTMLDivElement>;
|
|
4
4
|
wheelDeltaY: number;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
/** Изменение позиции скролла */
|
|
7
7
|
export declare const useOutsideScroll: (params: Params) => void;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outside-scroll.js","sources":["../../../src/desktop/hooks/use-outside-scroll.
|
|
1
|
+
{"version":3,"file":"use-outside-scroll.js","sources":["../../../src/desktop/hooks/use-outside-scroll.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react';\n\ninterface Params {\n scrollableNodeRef: RefObject<HTMLDivElement>;\n wheelDeltaY: number;\n}\n\n/** Изменение позиции скролла */\nexport const useOutsideScroll = (params: Params) => {\n const { scrollableNodeRef, wheelDeltaY } = params;\n\n useEffect(() => {\n if (scrollableNodeRef.current) {\n scrollableNodeRef.current.scrollBy({\n top: wheelDeltaY,\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [wheelDeltaY]);\n};\n"],"names":[],"mappings":";;AAOA;AACa,MAAA,gBAAgB,GAAG,CAAC,MAAc,KAAI;AAC/C,IAAA,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,MAAM;IAEjD,SAAS,CAAC,MAAK;QACX,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC3B,YAAA,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B,gBAAA,GAAG,EAAE,WAAW;AACnB,aAAA,CAAC;AACL;;AAEL,KAAC,EAAE,CAAC,WAAW,CAAC,CAAC;AACrB;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
interface Params {
|
|
3
3
|
scrollbarRef: RefObject<HTMLDivElement>;
|
|
4
4
|
verticalBarRef: RefObject<HTMLDivElement>;
|
|
5
5
|
headerElementRef: RefObject<HTMLDivElement>;
|
|
6
6
|
footerElementRef: RefObject<HTMLDivElement>;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
/** Устанавливает размер полосы прокрутки в зависимости от наличия хедера и футера */
|
|
9
9
|
export declare const useSetScrollbarHeight: (params: Params) => void;
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-set-scrollbar-height.js","sources":["../../../src/desktop/hooks/use-set-scrollbar-height.
|
|
1
|
+
{"version":3,"file":"use-set-scrollbar-height.js","sources":["../../../src/desktop/hooks/use-set-scrollbar-height.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react';\n\nimport { SCROLLBAR_DEFAULT_GAP } from '../constants';\n\ninterface Params {\n scrollbarRef: RefObject<HTMLDivElement>;\n verticalBarRef: RefObject<HTMLDivElement>;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n}\n\n/** Устанавливает размер полосы прокрутки в зависимости от наличия хедера и футера */\nexport const useSetScrollbarHeight = (params: Params) => {\n const { scrollbarRef, verticalBarRef, headerElementRef, footerElementRef } = params;\n\n useEffect(() => {\n if (scrollbarRef.current) {\n const verticalBar = verticalBarRef.current;\n\n if (verticalBar) {\n const headerHeight = headerElementRef?.current?.offsetHeight || 0;\n const footerHeight = footerElementRef?.current?.offsetHeight || 0;\n\n let topGap;\n let topOffset;\n let bottomGap;\n\n if (headerHeight) {\n // если есть header уменьшаем размер скролла на величину хедера и добавляем отступ сверху\n topGap = headerHeight;\n topOffset = headerHeight;\n } else {\n // иначе уменьшаем размер скролла и увеличиваем отступ на величину скругления\n topGap = SCROLLBAR_DEFAULT_GAP;\n topOffset = SCROLLBAR_DEFAULT_GAP;\n }\n\n if (footerHeight) {\n // если есть footer уменьшаем размер скролла на величину футера\n bottomGap = footerHeight;\n } else {\n // иначе уменьшаем размер на величину скругления\n bottomGap = SCROLLBAR_DEFAULT_GAP;\n }\n\n verticalBar.style.height = `calc(100% - ${topGap}px - ${bottomGap}px)`;\n verticalBar.style.top = `${topOffset}px`;\n }\n }\n });\n};\n"],"names":[],"mappings":";;;AAWA;AACa,MAAA,qBAAqB,GAAG,CAAC,MAAc,KAAI;IACpD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAEnF,SAAS,CAAC,MAAK;QACX,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO;AAE1C,YAAA,IAAI,WAAW,EAAE;gBACb,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;gBACjE,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;AAEjE,gBAAA,IAAI,MAAM;AACV,gBAAA,IAAI,SAAS;AACb,gBAAA,IAAI,SAAS;AAEb,gBAAA,IAAI,YAAY,EAAE;;oBAEd,MAAM,GAAG,YAAY;oBACrB,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,MAAM,GAAG,qBAAqB;oBAC9B,SAAS,GAAG,qBAAqB;AACpC;AAED,gBAAA,IAAI,YAAY,EAAE;;oBAEd,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,SAAS,GAAG,qBAAqB;AACpC;gBAED,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,eAAe,MAAM,CAAA,KAAA,EAAQ,SAAS,CAAA,GAAA,CAAK;gBACtE,WAAW,CAAC,KAAK,CAAC,GAAG,GAAG,CAAG,EAAA,SAAS,IAAI;AAC3C;AACJ;AACL,KAAC,CAAC;AACN;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModalWheel.js","sources":["../../../src/desktop/hooks/useModalWheel.
|
|
1
|
+
{"version":3,"file":"useModalWheel.js","sources":["../../../src/desktop/hooks/useModalWheel.ts"],"sourcesContent":["import { useState, type WheelEvent } from 'react';\n\nexport const useModalWheel = (overlay: boolean) => {\n const [wheelDeltaY, setWheelDeltaY] = useState<number>(0);\n\n // передаем e.deltaY от события на элементе dialog компонента base-modal\n const handleWheel = (e: WheelEvent<HTMLElement>) => {\n const target = e.target as HTMLDivElement;\n\n if (target.getAttribute('role') === 'dialog' && overlay) {\n setWheelDeltaY(e.deltaY);\n }\n };\n\n return { wheelDeltaY, handleWheel };\n};\n"],"names":[],"mappings":";;AAEa,MAAA,aAAa,GAAG,CAAC,OAAgB,KAAI;IAC9C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;;AAGzD,IAAA,MAAM,WAAW,GAAG,CAAC,CAA0B,KAAI;AAC/C,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QAEzC,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,OAAO,EAAE;AACrD,YAAA,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAC3B;AACL,KAAC;AAED,IAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE;AACvC;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--universal-modal-backdrop-visible-background: var(--color-light-overlay-default);
|
|
3
5
|
--universal-modal-backdrop-hidden-background: transparent;
|
|
@@ -40,7 +42,8 @@
|
|
|
40
42
|
|
|
41
43
|
.exitActive {
|
|
42
44
|
opacity: 1;
|
|
43
|
-
animation:
|
|
45
|
+
animation:
|
|
46
|
+
step_1 200ms cubic-bezier(0, 0, 1, 0),
|
|
44
47
|
step_2 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;
|
|
45
48
|
}
|
|
46
49
|
|
package/moderncssm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
.enterActive {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
transform: translateY(0);
|
|
11
|
-
transition:
|
|
11
|
+
transition:
|
|
12
|
+
opacity 200ms cubic-bezier(0, 0, 0, 1),
|
|
13
|
+
transform 200ms cubic-bezier(0, 0, 0, 1);
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.exit {
|
|
@@ -20,5 +22,7 @@
|
|
|
20
22
|
.exitDone {
|
|
21
23
|
opacity: 0;
|
|
22
24
|
transform: translateY(40px);
|
|
23
|
-
transition:
|
|
25
|
+
transition:
|
|
26
|
+
opacity 200ms cubic-bezier(0, 0, 1, 0),
|
|
27
|
+
transform 200ms cubic-bezier(0, 0, 1, 0);
|
|
24
28
|
}
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
.enterActive {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
transform: translateY(0);
|
|
11
|
-
transition:
|
|
11
|
+
transition:
|
|
12
|
+
opacity 200ms cubic-bezier(0, 0, 0, 1),
|
|
13
|
+
transform 200ms cubic-bezier(0, 0, 0, 1);
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.exit {
|
|
@@ -20,5 +22,7 @@
|
|
|
20
22
|
.exitDone {
|
|
21
23
|
opacity: 0;
|
|
22
24
|
transform: translateY(-40px);
|
|
23
|
-
transition:
|
|
25
|
+
transition:
|
|
26
|
+
opacity 200ms cubic-bezier(0, 0, 1, 0),
|
|
27
|
+
transform 200ms cubic-bezier(0, 0, 1, 0);
|
|
24
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
|
|
3
|
-
import { TMargin } from '../../typings/margin-type';
|
|
4
|
-
export
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
|
|
3
|
+
import { type TMargin } from '../../typings/margin-type';
|
|
4
|
+
export interface BaseUniversalModalProps {
|
|
5
5
|
/**
|
|
6
6
|
* Расположение по горизонтали и сторона с которой модал “выезжает” при открытии
|
|
7
7
|
* @default center
|
|
@@ -36,10 +36,10 @@ export declare type BaseUniversalModalProps = {
|
|
|
36
36
|
* Устанавливает отступы модального окна
|
|
37
37
|
*/
|
|
38
38
|
margin?: TMargin;
|
|
39
|
-
}
|
|
40
|
-
export
|
|
39
|
+
}
|
|
40
|
+
export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose'>> {
|
|
41
41
|
/**
|
|
42
42
|
* Реф контейнера на котором происходит scroll
|
|
43
43
|
*/
|
|
44
44
|
scrollableContainerRef?: RefObject<HTMLDivElement>;
|
|
45
|
-
}
|
|
45
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-header-and-footer.js","sources":["../../../src/desktop/utils/check-header-and-footer.
|
|
1
|
+
{"version":3,"file":"check-header-and-footer.js","sources":["../../../src/desktop/utils/check-header-and-footer.ts"],"sourcesContent":["import { Children, isValidElement, type ReactNode } from 'react';\n\nimport { type FooterDesktop } from '../../components/footer';\nimport { type HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ntype ChildType = typeof HeaderDesktop | typeof FooterDesktop;\n\nexport const checkHeaderAndFooter = (children: ReactNode) => {\n let hasHeader = false;\n let hasFooter = false;\n\n Children.forEach(children, (child) => {\n if (isValidElement(child)) {\n const { displayName } = child.type as ChildType;\n\n if (displayName && isHeaderNode(displayName)) {\n hasHeader = true;\n }\n\n if (displayName && isFooterNode(displayName)) {\n hasFooter = true;\n }\n }\n });\n\n return { hasHeader, hasFooter };\n};\n"],"names":[],"mappings":";;;;AAUa,MAAA,oBAAoB,GAAG,CAAC,QAAmB,KAAI;IACxD,IAAI,SAAS,GAAG,KAAK;IACrB,IAAI,SAAS,GAAG,KAAK;IAErB,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACjC,QAAA,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;AACvB,YAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAiB;AAE/C,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AAED,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AACJ;AACL,KAAC,CAAC;AAEF,IAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;AACnC;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TransitionProps } from 'react-transition-group/Transition';
|
|
2
|
-
import { BackdropProps } from '@alfalab/core-components-backdrop/moderncssm';
|
|
3
|
-
import { UniversalModalDesktopProps } from '../types/props';
|
|
4
|
-
|
|
1
|
+
import { type TransitionProps } from 'react-transition-group/Transition';
|
|
2
|
+
import { type BackdropProps } from '@alfalab/core-components-backdrop/moderncssm';
|
|
3
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
4
|
+
interface Params {
|
|
5
5
|
verticalAlign: Exclude<UniversalModalDesktopProps['verticalAlign'], undefined>;
|
|
6
6
|
width: UniversalModalDesktopProps['width'];
|
|
7
7
|
height: UniversalModalDesktopProps['height'];
|
|
8
|
-
}
|
|
9
|
-
|
|
8
|
+
}
|
|
9
|
+
interface ReturnType {
|
|
10
10
|
isFullSizeModal: boolean;
|
|
11
11
|
backdropTransitions: Partial<BackdropProps>;
|
|
12
12
|
componentTransitions: Partial<TransitionProps>;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
export declare const getFullSizeModalTransitions: (params: Params) => ReturnType;
|
|
15
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-full-size-modal-transitions.js","sources":["../../../src/desktop/utils/get-full-size-modal-transitions.ts"],"sourcesContent":["import { TransitionProps } from 'react-transition-group/Transition';\n\nimport { BackdropProps } from '@alfalab/core-components-backdrop';\nimport { exhaustiveCheck } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nimport fullSizeBackdropTransitions from '../styles/transitions/full-size-backdrop-transitions.module.css';\nimport fullSizeVerticalBottomTransitions from '../styles/transitions/full-size-vertical-bottom-transitions.module.css';\nimport fullSizeVerticalCenterTransitions from '../styles/transitions/full-size-vertical-center-transitions.module.css';\nimport fullSizeVerticalTopTransitions from '../styles/transitions/full-size-vertical-top-transitions.module.css';\n\
|
|
1
|
+
{"version":3,"file":"get-full-size-modal-transitions.js","sources":["../../../src/desktop/utils/get-full-size-modal-transitions.ts"],"sourcesContent":["import { type TransitionProps } from 'react-transition-group/Transition';\n\nimport { type BackdropProps } from '@alfalab/core-components-backdrop';\nimport { exhaustiveCheck } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nimport fullSizeBackdropTransitions from '../styles/transitions/full-size-backdrop-transitions.module.css';\nimport fullSizeVerticalBottomTransitions from '../styles/transitions/full-size-vertical-bottom-transitions.module.css';\nimport fullSizeVerticalCenterTransitions from '../styles/transitions/full-size-vertical-center-transitions.module.css';\nimport fullSizeVerticalTopTransitions from '../styles/transitions/full-size-vertical-top-transitions.module.css';\n\ninterface Params {\n verticalAlign: Exclude<UniversalModalDesktopProps['verticalAlign'], undefined>;\n width: UniversalModalDesktopProps['width'];\n height: UniversalModalDesktopProps['height'];\n}\n\ninterface ReturnType {\n isFullSizeModal: boolean;\n backdropTransitions: Partial<BackdropProps>;\n componentTransitions: Partial<TransitionProps>;\n}\n\nexport const getFullSizeModalTransitions = (params: Params): ReturnType => {\n const { verticalAlign, width, height } = params;\n\n const isFullSizeModal = width === 'fullWidth' && height === 'fullHeight';\n\n const backdropTransitions = {\n timeout: {\n enter: 0,\n exit: 400,\n },\n transitionClassNames: fullSizeBackdropTransitions,\n };\n\n const getContentTransitionsClassNames = () => {\n switch (verticalAlign) {\n case 'top':\n return fullSizeVerticalTopTransitions;\n case 'bottom':\n return fullSizeVerticalBottomTransitions;\n case 'center':\n return fullSizeVerticalCenterTransitions;\n default:\n return exhaustiveCheck(verticalAlign);\n }\n };\n\n const componentTransitions = {\n timeout: {\n enter: 200,\n exit: 400,\n },\n classNames: getContentTransitionsClassNames(),\n };\n\n return {\n isFullSizeModal,\n backdropTransitions,\n componentTransitions,\n };\n};\n"],"names":[],"mappings":";;;;;;AAwBa,MAAA,2BAA2B,GAAG,CAAC,MAAc,KAAgB;IACtE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAE/C,MAAM,eAAe,GAAG,KAAK,KAAK,WAAW,IAAI,MAAM,KAAK,YAAY;AAExE,IAAA,MAAM,mBAAmB,GAAG;AACxB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;AACD,QAAA,oBAAoB,EAAE,2BAA2B;KACpD;IAED,MAAM,+BAA+B,GAAG,MAAK;AACzC,QAAA,QAAQ,aAAa;AACjB,YAAA,KAAK,KAAK;AACN,gBAAA,OAAO,8BAA8B;AACzC,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA;AACI,gBAAA,OAAO,eAAe,CAAC,aAAa,CAAC;AAC5C;AACL,KAAC;AAED,IAAA,MAAM,oBAAoB,GAAG;AACzB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;QACD,UAAU,EAAE,+BAA+B,EAAE;KAChD;IAED,OAAO;QACH,eAAe;QACf,mBAAmB;QACnB,oBAAoB;KACvB;AACL;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UniversalModalDesktopProps } from '../types/props';
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
2
2
|
export declare const getHeightStyle: (height: Exclude<UniversalModalDesktopProps['height'], undefined>, margin: UniversalModalDesktopProps['margin']) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportHeight = 0;\n\n if (isClient()) {\n viewportHeight = Math.max(\n document.documentElement.clientHeight || 0,\n window.innerHeight || 0,\n );\n }\n\n if (height > viewportHeight || height === 'fullHeight') {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n }\n\n return `${height}px`;\n};\n"],"names":[],"mappings":";;MAIa,cAAc,GAAG,CAC1B,MAAgE,EAChE,MAA4C,KAC5C;IACA,IAAI,cAAc,GAAG,CAAC;IAEtB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,cAAc,GAAG,IAAI,CAAC,GAAG,CACrB,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,CAAC,EAC1C,MAAM,CAAC,WAAW,IAAI,CAAC,CAC1B;AACJ;AAED,IAAA,IAAI,MAAM,GAAG,cAAc,IAAI,MAAM,KAAK,YAAY,EAAE;AACpD,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,QAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,MAAM,CAAA,EAAA,CAAI;AACxB;;;;"}
|
|
1
|
+
{"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportHeight = 0;\n\n if (isClient()) {\n viewportHeight = Math.max(\n document.documentElement.clientHeight || 0,\n window.innerHeight || 0,\n );\n }\n\n if (height > viewportHeight || height === 'fullHeight') {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n }\n\n return `${height}px`;\n};\n"],"names":[],"mappings":";;MAIa,cAAc,GAAG,CAC1B,MAAgE,EAChE,MAA4C,KAC5C;IACA,IAAI,cAAc,GAAG,CAAC;IAEtB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,cAAc,GAAG,IAAI,CAAC,GAAG,CACrB,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,CAAC,EAC1C,MAAM,CAAC,WAAW,IAAI,CAAC,CAC1B;AACJ;AAED,IAAA,IAAI,MAAM,GAAG,cAAc,IAAI,MAAM,KAAK,YAAY,EAAE;AACpD,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,QAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,MAAM,CAAA,EAAA,CAAI;AACxB;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UniversalModalDesktopProps } from '../types/props';
|
|
2
|
-
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
2
|
+
interface Params {
|
|
3
3
|
styles: Record<string, string>;
|
|
4
4
|
margin: UniversalModalDesktopProps['margin'];
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
export declare const getMarginStyles: (params: Params) => Record<string, boolean>;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\
|
|
1
|
+
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n}\n\nexport const getMarginStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles } = params;\n\n if (margin) {\n return {\n [styles[`marginTop-${margin.top}`]]: hasOwnProperty(margin, 'top'),\n [styles[`marginRight-${margin.right}`]]: hasOwnProperty(margin, 'right'),\n [styles[`marginBottom-${margin.bottom}`]]: hasOwnProperty(margin, 'bottom'),\n [styles[`marginLeft-${margin.left}`]]: hasOwnProperty(margin, 'left'),\n };\n }\n\n return {};\n};\n"],"names":[],"mappings":";;AASa,MAAA,eAAe,GAAG,CAAC,MAAc,KAA6B;AACvE,IAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;AAEjC,IAAA,IAAI,MAAM,EAAE;QACR,OAAO;AACH,YAAA,CAAC,MAAM,CAAC,CAAa,UAAA,EAAA,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AAClE,YAAA,CAAC,MAAM,CAAC,CAAe,YAAA,EAAA,MAAM,CAAC,KAAK,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC;AACxE,YAAA,CAAC,MAAM,CAAC,CAAgB,aAAA,EAAA,MAAM,CAAC,MAAM,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC3E,YAAA,CAAC,MAAM,CAAC,CAAc,WAAA,EAAA,MAAM,CAAC,IAAI,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;SACxE;AACJ;AAED,IAAA,OAAO,EAAE;AACb;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UniversalModalDesktopProps } from '../types/props';
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
2
2
|
export declare const getMaxHeightStyle: (margin: UniversalModalDesktopProps['margin']) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-max-height-style.js","sources":["../../../src/desktop/utils/get-max-height-style.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getMaxHeightStyle = (margin: UniversalModalDesktopProps['margin']) => {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n};\n"],"names":[],"mappings":";;AAIa,MAAA,iBAAiB,GAAG,CAAC,MAA4C,KAAI;AAC9E,IAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,IAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,IAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC5D;;;;"}
|
|
1
|
+
{"version":3,"file":"get-max-height-style.js","sources":["../../../src/desktop/utils/get-max-height-style.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getMaxHeightStyle = (margin: UniversalModalDesktopProps['margin']) => {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n};\n"],"names":[],"mappings":";;AAIa,MAAA,iBAAiB,GAAG,CAAC,MAA4C,KAAI;AAC9E,IAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,IAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,IAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC5D;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UniversalModalDesktopProps } from '../types/props';
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
2
2
|
export declare const getWidthStyle: (width: Exclude<UniversalModalDesktopProps['width'], undefined>, margin: UniversalModalDesktopProps['margin']) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-width-style.js","sources":["../../../src/desktop/utils/get-width-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getWidthStyle = (\n width: Exclude<UniversalModalDesktopProps['width'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportWidth = 0;\n\n if (isClient()) {\n viewportWidth = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);\n }\n\n if (width > viewportWidth || width === 'fullWidth') {\n const marginLeft = (margin && hasOwnProperty(margin, 'left') && margin.left) || 0;\n const marginRight = (margin && hasOwnProperty(margin, 'right') && margin.right) || 0;\n\n return `calc(100% - ${marginLeft}px - ${marginRight}px)`;\n }\n\n return `${width}px`;\n};\n"],"names":[],"mappings":";;MAIa,aAAa,GAAG,CACzB,KAA8D,EAC9D,MAA4C,KAC5C;IACA,IAAI,aAAa,GAAG,CAAC;IAErB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;AAC9F;AAED,IAAA,IAAI,KAAK,GAAG,aAAa,IAAI,KAAK,KAAK,WAAW,EAAE;AAChD,QAAA,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,CAAe,YAAA,EAAA,UAAU,CAAQ,KAAA,EAAA,WAAW,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI;AACvB;;;;"}
|
|
1
|
+
{"version":3,"file":"get-width-style.js","sources":["../../../src/desktop/utils/get-width-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getWidthStyle = (\n width: Exclude<UniversalModalDesktopProps['width'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportWidth = 0;\n\n if (isClient()) {\n viewportWidth = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);\n }\n\n if (width > viewportWidth || width === 'fullWidth') {\n const marginLeft = (margin && hasOwnProperty(margin, 'left') && margin.left) || 0;\n const marginRight = (margin && hasOwnProperty(margin, 'right') && margin.right) || 0;\n\n return `calc(100% - ${marginLeft}px - ${marginRight}px)`;\n }\n\n return `${width}px`;\n};\n"],"names":[],"mappings":";;MAIa,aAAa,GAAG,CACzB,KAA8D,EAC9D,MAA4C,KAC5C;IACA,IAAI,aAAa,GAAG,CAAC;IAErB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;AAC9F;AAED,IAAA,IAAI,KAAK,GAAG,aAAa,IAAI,KAAK,KAAK,WAAW,EAAE;AAChD,QAAA,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,CAAe,YAAA,EAAA,UAAU,CAAQ,KAAA,EAAA,WAAW,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI;AACvB;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type ReactElement, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
interface Params {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
headerElementRef: RefObject<HTMLDivElement>;
|
|
5
5
|
footerElementRef: RefObject<HTMLDivElement>;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
/** Устанавливает рефы в хедер и футер если они переданы в модалку (необходимы для дальнейшего расчета высоты кастомного скроллбара) */
|
|
8
8
|
export declare const setFooterAndHeaderRefs: (params: Params) => {
|
|
9
9
|
enhancedChildren: (string | number | ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment)[] | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-footer-and-header-refs.js","sources":["../../../src/desktop/utils/set-footer-and-header-refs.
|
|
1
|
+
{"version":3,"file":"set-footer-and-header-refs.js","sources":["../../../src/desktop/utils/set-footer-and-header-refs.ts"],"sourcesContent":["import {\n Children,\n cloneElement,\n isValidElement,\n type MutableRefObject,\n type ReactElement,\n type ReactNode,\n type RefObject,\n} from 'react';\nimport mergeRefs from 'react-merge-refs';\n\nimport { type FooterDesktop } from '../../components/footer';\nimport { type HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ninterface Params {\n children: ReactNode;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n}\n\n/** Устанавливает рефы в хедер и футер если они переданы в модалку (необходимы для дальнейшего расчета высоты кастомного скроллбара) */\nexport const setFooterAndHeaderRefs = (params: Params) => {\n const { children, headerElementRef, footerElementRef } = params;\n\n const enhancedChildren = Children.map(children, (child) => {\n if (!isValidElement(child)) {\n return child;\n }\n\n const { displayName } = child.type as typeof HeaderDesktop | typeof FooterDesktop;\n\n if (displayName && isHeaderNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, headerElementRef]) });\n }\n\n if (displayName && isFooterNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, footerElementRef]) });\n }\n\n return child;\n });\n\n return { enhancedChildren };\n};\n"],"names":[],"mappings":";;;;;AAuBA;AACa,MAAA,sBAAsB,GAAG,CAAC,MAAc,KAAI;IACrD,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAE/D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACtD,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;AACxB,YAAA,OAAO,KAAK;AACf;AAED,QAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAmD;AAEjF,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,OAAO,KAAK;AAChB,KAAC,CAAC;IAEF,OAAO,EAAE,gBAAgB,EAAE;AAC/B;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { type UniversalModalMobileProps } from './types/props';
|
|
3
|
+
export declare const UniversalModalMobileComponent: React.ForwardRefExoticComponent<UniversalModalMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const UniversalModalMobile: React.ForwardRefExoticComponent<UniversalModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
4
5
|
Header: React.FC<import("../components/header").HeaderMobileProps>;
|
|
5
6
|
Content: React.FC<import("../components/content/base-content/base-content").ContentProps>;
|
|
6
7
|
Footer: React.FC<import("../components/footer/base-footer/base-footer").FooterProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.mobile.js","sources":["../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { ContentMobile } from '../components/content';\nimport { FooterMobile } from '../components/footer';\nimport { HeaderMobile } from '../components/header';\n\nimport { UniversalModalMobileProps } from './types/props';\n\nimport styles from './mobile.module.css';\nimport rightSideTransitions from './transitions/right-side-transitions.mobile.module.css';\nimport transitions from './transitions/transitions.mobile.module.css';\n\nexport const UniversalModalMobileComponent = forwardRef<HTMLDivElement, UniversalModalMobileProps>(\n (props, ref) => {\n const { children, className, dataTestId, appearance = 'bottom', ...restProps } = props;\n\n return (\n <BaseModal\n {...restProps}\n dataTestId={dataTestId}\n ref={ref}\n transitionProps={{\n timeout: appearance === 'right' ? 360 : 200,\n classNames: appearance === 'right' ? rightSideTransitions : transitions,\n ...restProps.transitionProps,\n }}\n className={cn(className, styles.component)}\n scrollHandler='content'\n contentClassName={styles.content}\n >\n {children}\n </BaseModal>\n );\n },\n);\n\nexport const UniversalModalMobile = Object.assign(UniversalModalMobileComponent, {\n Header: HeaderMobile,\n Content: ContentMobile,\n Footer: FooterMobile,\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAea,MAAA,6BAA6B,GAAG,UAAU,CACnD,CAAC,KAAK,EAAE,GAAG,KAAI;AACX,IAAA,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAEtF,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE;YACb,OAAO,EAAE,UAAU,KAAK,OAAO,GAAG,GAAG,GAAG,GAAG;YAC3C,UAAU,EAAE,UAAU,KAAK,OAAO,GAAG,oBAAoB,GAAG,WAAW;YACvE,GAAG,SAAS,CAAC,eAAe;SAC/B,EACD,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1C,aAAa,EAAC,SAAS,EACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAE/B,EAAA,QAAQ,CACD;AAEpB,CAAC;MAGQ,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE;AAC7E,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,MAAM,EAAE,YAAY;AACvB,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"Component.mobile.js","sources":["../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { ContentMobile } from '../components/content';\nimport { FooterMobile } from '../components/footer';\nimport { HeaderMobile } from '../components/header';\n\nimport { type UniversalModalMobileProps } from './types/props';\n\nimport styles from './mobile.module.css';\nimport rightSideTransitions from './transitions/right-side-transitions.mobile.module.css';\nimport transitions from './transitions/transitions.mobile.module.css';\n\nexport const UniversalModalMobileComponent = forwardRef<HTMLDivElement, UniversalModalMobileProps>(\n (props, ref) => {\n const { children, className, dataTestId, appearance = 'bottom', ...restProps } = props;\n\n return (\n <BaseModal\n {...restProps}\n dataTestId={dataTestId}\n ref={ref}\n transitionProps={{\n timeout: appearance === 'right' ? 360 : 200,\n classNames: appearance === 'right' ? rightSideTransitions : transitions,\n ...restProps.transitionProps,\n }}\n className={cn(className, styles.component)}\n scrollHandler='content'\n contentClassName={styles.content}\n >\n {children}\n </BaseModal>\n );\n },\n);\n\nexport const UniversalModalMobile = Object.assign(UniversalModalMobileComponent, {\n Header: HeaderMobile,\n Content: ContentMobile,\n Footer: FooterMobile,\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAea,MAAA,6BAA6B,GAAG,UAAU,CACnD,CAAC,KAAK,EAAE,GAAG,KAAI;AACX,IAAA,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAEtF,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE;YACb,OAAO,EAAE,UAAU,KAAK,OAAO,GAAG,GAAG,GAAG,GAAG;YAC3C,UAAU,EAAE,UAAU,KAAK,OAAO,GAAG,oBAAoB,GAAG,WAAW;YACvE,GAAG,SAAS,CAAC,eAAe;SAC/B,EACD,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1C,aAAa,EAAC,SAAS,EACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAE/B,EAAA,QAAQ,CACD;AAEpB,CAAC;MAGQ,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE;AAC7E,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,MAAM,EAAE,YAAY;AACvB,CAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC, MouseEvent } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type FC, type MouseEvent } from 'react';
|
|
2
|
+
interface ArrowButtonDesktopProps {
|
|
3
3
|
onClick?: (e: MouseEvent) => void;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
5
|
export declare const ArrowButtonMobile: FC<ArrowButtonDesktopProps>;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-button.js","sources":["../../../../../src/mobile/components/buttons/arrow-button/arrow-button.tsx"],"sourcesContent":["import React, { FC, MouseEvent } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';\n\nimport styles from './arrow-button.module.css';\n\
|
|
1
|
+
{"version":3,"file":"arrow-button.js","sources":["../../../../../src/mobile/components/buttons/arrow-button/arrow-button.tsx"],"sourcesContent":["import React, { type FC, type MouseEvent } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';\n\nimport styles from './arrow-button.module.css';\n\ninterface ArrowButtonDesktopProps {\n onClick?: (e: MouseEvent) => void;\n}\n\nexport const ArrowButtonMobile: FC<ArrowButtonDesktopProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n shape='rounded'\n size={32}\n leftAddons={<ChevronLeftMIcon className={styles.icon} />}\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAgC,CAAC,KAAK,KAAI;AACpE,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,EAAE,EACR,UAAU,EAAE,oBAAC,gBAAgB,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAI,CAAA,EACxD,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-button.js","sources":["../../../../../src/mobile/components/buttons/cross-button/cross-button.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\n\nimport styles from './cross-button.module.css';\n\
|
|
1
|
+
{"version":3,"file":"cross-button.js","sources":["../../../../../src/mobile/components/buttons/cross-button/cross-button.tsx"],"sourcesContent":["import React, { type FC } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\n\nimport styles from './cross-button.module.css';\n\ninterface CrossButtonProps {\n onClick?: () => void;\n}\n\nexport const CrossButtonMobile: FC<CrossButtonProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n leftAddons={<CrossMIcon className={styles.icon} />}\n size={32}\n shape='rounded'\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAyB,CAAC,KAAK,KAAI;AAC7D,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,UAAU,EAAE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAClD,IAAI,EAAE,EAAE,EACR,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
.enterActive {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
transform: translateY(0);
|
|
11
|
-
transition:
|
|
11
|
+
transition:
|
|
12
|
+
opacity 200ms ease-in,
|
|
13
|
+
transform 200ms ease-in;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.exit {
|
|
@@ -20,5 +22,7 @@
|
|
|
20
22
|
.exitDone {
|
|
21
23
|
opacity: 0;
|
|
22
24
|
transform: translateY(15px);
|
|
23
|
-
transition:
|
|
25
|
+
transition:
|
|
26
|
+
opacity 200ms ease-out,
|
|
27
|
+
transform 200ms ease-out;
|
|
24
28
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
|
|
2
|
-
export
|
|
1
|
+
import { type BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
|
|
2
|
+
export interface BaseUniversalModalMobileProps {
|
|
3
3
|
/** Сторона с которой будет появляться модальное окно */
|
|
4
4
|
appearance?: 'bottom' | 'right';
|
|
5
|
-
}
|
|
6
|
-
export
|
|
5
|
+
}
|
|
6
|
+
export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'onClose'>> {
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UniversalModalDesktopProps } from '../desktop';
|
|
2
|
-
import { UniversalModalMobileProps } from '../mobile';
|
|
3
|
-
export
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../desktop';
|
|
2
|
+
import { type UniversalModalMobileProps } from '../mobile';
|
|
3
|
+
export interface UniversalModalContextType {
|
|
4
4
|
modalWidth: UniversalModalDesktopProps['width'];
|
|
5
5
|
modalHeaderHighlighted?: boolean;
|
|
6
6
|
modalFooterHighlighted?: boolean;
|
|
@@ -8,8 +8,8 @@ export declare type UniversalModalContextType = {
|
|
|
8
8
|
hasFooter: boolean;
|
|
9
9
|
setModalHeaderHighlighted?: (value: boolean) => void;
|
|
10
10
|
setModalFooterHighlighted?: (value: boolean) => void;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
11
|
+
}
|
|
12
|
+
export interface UniversalModalResponsiveProps extends UniversalModalDesktopProps, UniversalModalMobileProps {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
|
@@ -19,4 +19,4 @@ export declare type UniversalModalResponsiveProps = UniversalModalDesktopProps &
|
|
|
19
19
|
* Значение по-умолчанию для хука useMatchMedia
|
|
20
20
|
*/
|
|
21
21
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare type TMarginSize = 0 | 2 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96 | 128;
|
|
2
|
-
export
|
|
2
|
+
export interface TMargin {
|
|
3
3
|
top?: TMarginSize;
|
|
4
4
|
right?: TMarginSize;
|
|
5
5
|
bottom?: TMarginSize;
|
|
6
6
|
left?: TMarginSize;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export {};
|