@alfalab/core-components 45.9.0-beta.1 → 45.9.0-beta.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/base-modal/Component.js +1 -2
- package/base-modal/cssm/Component.js +1 -2
- package/base-modal/esm/Component.js +1 -2
- package/base-modal/esm/index.js +0 -1
- package/base-modal/modern/Component.js +1 -2
- package/base-modal/modern/index.js +0 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.js +1 -1
- package/gallery/esm/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/international-phone-input/Component.responsive.d.ts +4 -4
- package/international-phone-input/components/base-international-phone-input/Component.d.ts +2 -2
- package/international-phone-input/cssm/index-136acbb1.d.ts +28 -0
- package/international-phone-input/data/country-data.d.ts +1 -9
- package/international-phone-input/data/country-data.js +19 -0
- package/international-phone-input/esm/index-136acbb1.d.ts +28 -0
- package/international-phone-input/index-136acbb1.d.ts +28 -0
- package/international-phone-input/modern/index-136acbb1.d.ts +28 -0
- package/international-phone-input/typings-57569e57.d.ts +2 -2
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/notification/Component.js +1 -2
- package/notification/cssm/Component.js +1 -2
- package/notification/esm/Component.js +1 -2
- package/notification/esm/index.js +0 -1
- package/notification/modern/Component.js +1 -2
- package/notification/modern/index.js +0 -1
- package/notification-manager/component.js +1 -2
- package/notification-manager/cssm/component.js +1 -2
- package/notification-manager/esm/component.js +1 -2
- package/notification-manager/esm/index.js +0 -1
- package/notification-manager/modern/component.js +1 -2
- package/notification-manager/modern/index.js +0 -1
- package/package.json +1 -2
- package/picker-button/cssm/index-bdb4c6b9.d.ts +14 -5
- package/picker-button/{index-a5b021bd.d.ts → cssm/index-fe2bc9bb.d.ts} +3 -1
- package/picker-button/cssm/usePortalContainer-fe2bc9bb.d.ts +2 -0
- package/picker-button/cssm/utils-ed29dc0e.d.ts +5 -0
- package/picker-button/esm/index-bdb4c6b9.d.ts +14 -5
- package/picker-button/{modern/index-a5b021bd.d.ts → esm/index-fe2bc9bb.d.ts} +3 -1
- package/picker-button/esm/usePortalContainer-fe2bc9bb.d.ts +2 -0
- package/picker-button/esm/utils-ed29dc0e.d.ts +5 -0
- package/picker-button/index-bdb4c6b9.d.ts +14 -5
- package/picker-button/{esm/index-a5b021bd.d.ts → index-fe2bc9bb.d.ts} +3 -1
- package/picker-button/modern/index-bdb4c6b9.d.ts +14 -5
- package/picker-button/{cssm/index-a5b021bd.d.ts → modern/index-fe2bc9bb.d.ts} +3 -1
- package/picker-button/modern/usePortalContainer-fe2bc9bb.d.ts +2 -0
- package/picker-button/modern/utils-ed29dc0e.d.ts +5 -0
- package/picker-button/usePortalContainer-fe2bc9bb.d.ts +2 -0
- package/picker-button/utils-ed29dc0e.d.ts +5 -0
- package/popover/Component.js +1 -2
- package/popover/cssm/Component.js +1 -2
- package/popover/esm/Component.js +1 -2
- package/popover/esm/index.js +0 -1
- package/popover/modern/Component.js +1 -2
- package/popover/modern/index.js +0 -1
- package/portal/Component.js +6 -4
- package/portal/cssm/Component.js +6 -4
- package/portal/cssm/hooks/usePortalContainer.d.ts +2 -0
- package/portal/cssm/hooks/usePortalContainer.js +15 -0
- package/portal/esm/Component.js +8 -5
- package/portal/esm/hooks/usePortalContainer.d.ts +2 -0
- package/portal/esm/hooks/usePortalContainer.js +13 -0
- package/portal/esm/index.js +2 -0
- package/portal/hooks/usePortalContainer.d.ts +2 -0
- package/portal/hooks/usePortalContainer.js +15 -0
- package/portal/modern/Component.js +6 -2
- package/portal/modern/hooks/usePortalContainer.d.ts +2 -0
- package/portal/modern/hooks/usePortalContainer.js +13 -0
- package/portal/modern/index.js +2 -0
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/shared/context/PortalContext/PortalContext.d.ts +4 -0
- package/shared/context/PortalContext/PortalContext.js +7 -0
- package/shared/context/PortalContext/index.d.ts +1 -0
- package/shared/context/PortalContext/index.js +7 -0
- package/shared/cssm/context/PortalContext/PortalContext.d.ts +4 -0
- package/shared/cssm/context/PortalContext/PortalContext.js +7 -0
- package/shared/cssm/context/PortalContext/index.d.ts +1 -0
- package/shared/cssm/context/PortalContext/index.js +7 -0
- package/shared/cssm/index.d.ts +1 -0
- package/shared/cssm/index.js +2 -0
- package/shared/esm/context/PortalContext/PortalContext.d.ts +4 -0
- package/shared/esm/context/PortalContext/PortalContext.js +5 -0
- package/shared/esm/context/PortalContext/index.d.ts +1 -0
- package/shared/esm/context/PortalContext/index.js +2 -0
- package/shared/esm/index.d.ts +1 -0
- package/shared/esm/index.js +1 -0
- package/shared/index.d.ts +1 -0
- package/shared/index.js +2 -0
- package/shared/modern/context/PortalContext/PortalContext.d.ts +4 -0
- package/shared/modern/context/PortalContext/PortalContext.js +5 -0
- package/shared/modern/context/PortalContext/index.d.ts +1 -0
- package/shared/modern/context/PortalContext/index.js +2 -0
- package/shared/modern/index.d.ts +1 -0
- package/shared/modern/index.js +1 -0
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/index.js +1 -1
- package/stack/component.js +4 -4
- package/stack/context.d.ts +29 -0
- package/stack/context.js +34 -0
- package/stack/cssm/component.js +4 -4
- package/stack/cssm/context.d.ts +29 -0
- package/stack/cssm/context.js +34 -0
- package/stack/cssm/index.d.ts +1 -0
- package/stack/cssm/index.js +3 -0
- package/stack/esm/component.js +1 -1
- package/stack/esm/context.d.ts +29 -0
- package/stack/esm/context.js +31 -0
- package/stack/esm/index.d.ts +1 -0
- package/stack/esm/index.js +1 -1
- package/stack/index.d.ts +1 -0
- package/stack/index.js +3 -0
- package/stack/modern/component.js +1 -1
- package/stack/modern/context.d.ts +29 -0
- package/stack/modern/context.js +31 -0
- package/stack/modern/index.d.ts +1 -0
- package/stack/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +68 -68
- package/toast/components/base-toast/component.js +1 -2
- package/toast/cssm/components/base-toast/component.js +1 -2
- package/toast/esm/Component.responsive.js +0 -1
- package/toast/esm/components/base-toast/component.js +1 -2
- package/toast/esm/components/base-toast/index.js +0 -1
- package/toast/esm/desktop/Component.desktop.js +0 -1
- package/toast/esm/desktop/index.js +0 -1
- package/toast/esm/index.js +0 -1
- package/toast/esm/mobile/Component.mobile.js +0 -1
- package/toast/esm/mobile/index.js +0 -1
- package/toast/modern/Component.responsive.js +0 -1
- package/toast/modern/components/base-toast/component.js +1 -2
- package/toast/modern/components/base-toast/index.js +0 -1
- package/toast/modern/desktop/Component.desktop.js +0 -1
- package/toast/modern/desktop/index.js +0 -1
- package/toast/modern/index.js +0 -1
- package/toast/modern/mobile/Component.mobile.js +0 -1
- package/toast/modern/mobile/index.js +0 -1
- package/universal-date-input/cssm/index-5712fce2.d.ts +14 -1
- package/universal-date-input/esm/index-5712fce2.d.ts +14 -1
- package/universal-date-input/index-5712fce2.d.ts +14 -1
- package/universal-date-input/modern/index-5712fce2.d.ts +14 -1
- package/international-phone-input/cssm/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/esm/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/modern/index-7ca84eff.d.ts +0 -15
- /package/confirmation/{countdown-section-e2c8e176.d.ts → countdown-section-89c39f08.d.ts} +0 -0
- /package/confirmation/{countdown-section-e2c8e176.js → countdown-section-89c39f08.js} +0 -0
- /package/confirmation/esm/{countdown-section-769ee0cc.d.ts → countdown-section-2900c91e.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-769ee0cc.js → countdown-section-2900c91e.js} +0 -0
- /package/confirmation/modern/{countdown-section-1be7a0e9.d.ts → countdown-section-1480ae8f.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-1be7a0e9.js → countdown-section-1480ae8f.js} +0 -0
- /package/gallery/{buttons-86aa9ca3.d.ts → buttons-157b97c5.d.ts} +0 -0
- /package/gallery/{buttons-86aa9ca3.js → buttons-157b97c5.js} +0 -0
- /package/gallery/esm/{buttons-044f4137.d.ts → buttons-81740edc.d.ts} +0 -0
- /package/gallery/esm/{buttons-044f4137.js → buttons-81740edc.js} +0 -0
- /package/gallery/esm/{slide-1c391682.d.ts → slide-823b5f0b.d.ts} +0 -0
- /package/gallery/esm/{slide-1c391682.js → slide-823b5f0b.js} +0 -0
- /package/gallery/modern/{buttons-ddcab41a.d.ts → buttons-6a4235ad.d.ts} +0 -0
- /package/gallery/modern/{buttons-ddcab41a.js → buttons-6a4235ad.js} +0 -0
- /package/gallery/modern/{slide-704f878b.d.ts → slide-5181bfc0.d.ts} +0 -0
- /package/gallery/modern/{slide-704f878b.js → slide-5181bfc0.js} +0 -0
- /package/gallery/{slide-aa977082.d.ts → slide-69352f22.d.ts} +0 -0
- /package/gallery/{slide-aa977082.js → slide-69352f22.js} +0 -0
- /package/modal/esm/{layout.module-435f9178.js → layout.module-cec54653.js} +0 -0
- /package/modal/{layout.module-982a9256.js → layout.module-3225f3fd.js} +0 -0
- /package/modal/modern/{layout.module-2e9bc486.js → layout.module-04f9c218.js} +0 -0
- /package/picker-button/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
- /package/picker-button/cssm/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
- /package/picker-button/esm/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
- /package/picker-button/modern/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
- /package/pure-cell/{component-d96a6334.d.ts → component-33c19d66.d.ts} +0 -0
- /package/pure-cell/{component-d96a6334.js → component-33c19d66.js} +0 -0
- /package/pure-cell/esm/{component-5e5c0f7d.d.ts → component-8efd06f2.d.ts} +0 -0
- /package/pure-cell/esm/{component-5e5c0f7d.js → component-8efd06f2.js} +0 -0
- /package/pure-cell/modern/{component-291832fd.d.ts → component-7c7694ce.d.ts} +0 -0
- /package/pure-cell/modern/{component-291832fd.js → component-7c7694ce.js} +0 -0
- /package/select/esm/{hook-a55955da.d.ts → hook-ffa189bd.d.ts} +0 -0
- /package/select/esm/{hook-a55955da.js → hook-ffa189bd.js} +0 -0
- /package/select/{hook-6702fbc2.d.ts → hook-d7dd4176.d.ts} +0 -0
- /package/select/{hook-6702fbc2.js → hook-d7dd4176.js} +0 -0
- /package/select/modern/{hook-9035d476.d.ts → hook-826a1bd6.d.ts} +0 -0
- /package/select/modern/{hook-9035d476.js → hook-826a1bd6.js} +0 -0
- /package/side-panel/esm/{layout.module-278dcd0c.js → layout.module-07fad522.js} +0 -0
- /package/side-panel/{layout.module-98726143.js → layout.module-f14de816.js} +0 -0
- /package/side-panel/modern/{layout.module-9d97095e.js → layout.module-7200d95f.js} +0 -0
|
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var coreComponentsPortal = require('../portal');
|
|
8
8
|
var coreComponentsStack = require('../stack');
|
|
9
|
-
var stackContext = require('@alfalab/stack-context');
|
|
10
9
|
var components_notification_component = require('./components/notification/component.js');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -26,7 +25,7 @@ var TIMEOUT = {
|
|
|
26
25
|
enter: 400,
|
|
27
26
|
};
|
|
28
27
|
var NotificationManager = React.forwardRef(function (_a, ref) {
|
|
29
|
-
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ?
|
|
28
|
+
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
|
|
30
29
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
31
30
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
|
|
32
31
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
8
8
|
var coreComponentsStack = require('../../stack/cssm');
|
|
9
|
-
var stackContext = require('@alfalab/stack-context');
|
|
10
9
|
var components_notification_component = require('./components/notification/component.js');
|
|
11
10
|
var styles = require('./index.module.css');
|
|
12
11
|
|
|
@@ -25,7 +24,7 @@ var TIMEOUT = {
|
|
|
25
24
|
enter: 400,
|
|
26
25
|
};
|
|
27
26
|
var NotificationManager = React.forwardRef(function (_a, ref) {
|
|
28
|
-
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ?
|
|
27
|
+
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
|
|
29
28
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
30
29
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
|
|
31
30
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -3,8 +3,7 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { Portal } from '../../portal/esm';
|
|
6
|
-
import { Stack } from '../../stack/esm';
|
|
7
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
6
|
+
import { stackingOrder, Stack } from '../../stack/esm';
|
|
8
7
|
import { Notification } from './components/notification/component.js';
|
|
9
8
|
|
|
10
9
|
var styles = {"component":"notification-manager__component_19o99","notification":"notification-manager__notification_19o99","withoutMargin":"notification-manager__withoutMargin_19o99","enter":"notification-manager__enter_19o99","enterActive":"notification-manager__enterActive_19o99"};
|
|
@@ -2,8 +2,7 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Portal } from '../../portal/modern';
|
|
5
|
-
import { Stack } from '../../stack/modern';
|
|
6
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
5
|
+
import { Stack, stackingOrder } from '../../stack/modern';
|
|
7
6
|
import { Notification } from './components/notification/component.js';
|
|
8
7
|
|
|
9
8
|
const styles = {"component":"notification-manager__component_19o99","notification":"notification-manager__notification_19o99","withoutMargin":"notification-manager__withoutMargin_19o99","enter":"notification-manager__enter_19o99","enterActive":"notification-manager__enterActive_19o99"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components",
|
|
3
|
-
"version": "45.9.0-beta.
|
|
3
|
+
"version": "45.9.0-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"@alfalab/hooks": "^1.13.0",
|
|
57
57
|
"@alfalab/icons-glyph": "^2.139.0",
|
|
58
58
|
"@alfalab/icons-logotype": "^2.27.0",
|
|
59
|
-
"@alfalab/stack-context": "^1.15.0",
|
|
60
59
|
"@alfalab/utils": "^1.15.2",
|
|
61
60
|
"@dnd-kit/core": "^6.0.7",
|
|
62
61
|
"@dnd-kit/sortable": "^7.0.2",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
8
8
|
type PortalProps = {
|
|
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
170
170
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
171
171
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
172
172
|
declare const handleContainer: (container?: HTMLElement) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
175
|
+
* Значения выбраны по приоритету.
|
|
176
|
+
*/
|
|
177
|
+
declare const stackingOrder: {
|
|
178
|
+
FOCUSED: number;
|
|
179
|
+
DEFAULT: number;
|
|
180
|
+
POPOVER: number;
|
|
181
|
+
MODAL: number;
|
|
182
|
+
TOAST: number;
|
|
183
|
+
};
|
|
184
|
+
declare const StackingContext: import("react").Context<number>;
|
|
173
185
|
type StackProps = {
|
|
174
186
|
/**
|
|
175
187
|
* Render prop, в который передается функция.
|
|
@@ -183,9 +195,6 @@ type StackProps = {
|
|
|
183
195
|
value?: number;
|
|
184
196
|
};
|
|
185
197
|
declare const Stack: FC<StackProps>;
|
|
186
|
-
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
187
|
-
declare const getDefaultPortalContainer: () => Element;
|
|
188
|
-
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
189
198
|
type SavedStyle = {
|
|
190
199
|
value: string;
|
|
191
200
|
key: string;
|
|
@@ -207,5 +216,5 @@ declare class GlobalStore {
|
|
|
207
216
|
constructor();
|
|
208
217
|
getModalStore: () => ModalStore;
|
|
209
218
|
}
|
|
210
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
219
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
|
|
211
220
|
export type { SavedStyle };
|
|
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
|
|
|
62
62
|
declare const dom: {
|
|
63
63
|
preventDefault: typeof preventDefault;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type PortalContextType = () => Element | null;
|
|
66
|
+
declare const PortalContext: import("react").Context<PortalContextType>;
|
|
67
|
+
export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
|
|
66
68
|
export * from "./browser-a216f694";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
3
|
+
declare const getDefaultPortalContainer: () => Element;
|
|
4
|
+
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
5
|
+
export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
8
8
|
type PortalProps = {
|
|
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
170
170
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
171
171
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
172
172
|
declare const handleContainer: (container?: HTMLElement) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
175
|
+
* Значения выбраны по приоритету.
|
|
176
|
+
*/
|
|
177
|
+
declare const stackingOrder: {
|
|
178
|
+
FOCUSED: number;
|
|
179
|
+
DEFAULT: number;
|
|
180
|
+
POPOVER: number;
|
|
181
|
+
MODAL: number;
|
|
182
|
+
TOAST: number;
|
|
183
|
+
};
|
|
184
|
+
declare const StackingContext: import("react").Context<number>;
|
|
173
185
|
type StackProps = {
|
|
174
186
|
/**
|
|
175
187
|
* Render prop, в который передается функция.
|
|
@@ -183,9 +195,6 @@ type StackProps = {
|
|
|
183
195
|
value?: number;
|
|
184
196
|
};
|
|
185
197
|
declare const Stack: FC<StackProps>;
|
|
186
|
-
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
187
|
-
declare const getDefaultPortalContainer: () => Element;
|
|
188
|
-
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
189
198
|
type SavedStyle = {
|
|
190
199
|
value: string;
|
|
191
200
|
key: string;
|
|
@@ -207,5 +216,5 @@ declare class GlobalStore {
|
|
|
207
216
|
constructor();
|
|
208
217
|
getModalStore: () => ModalStore;
|
|
209
218
|
}
|
|
210
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
219
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
|
|
211
220
|
export type { SavedStyle };
|
|
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
|
|
|
62
62
|
declare const dom: {
|
|
63
63
|
preventDefault: typeof preventDefault;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type PortalContextType = () => Element | null;
|
|
66
|
+
declare const PortalContext: import("react").Context<PortalContextType>;
|
|
67
|
+
export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
|
|
66
68
|
export * from "./browser-a216f694";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
3
|
+
declare const getDefaultPortalContainer: () => Element;
|
|
4
|
+
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
5
|
+
export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
8
8
|
type PortalProps = {
|
|
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
170
170
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
171
171
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
172
172
|
declare const handleContainer: (container?: HTMLElement) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
175
|
+
* Значения выбраны по приоритету.
|
|
176
|
+
*/
|
|
177
|
+
declare const stackingOrder: {
|
|
178
|
+
FOCUSED: number;
|
|
179
|
+
DEFAULT: number;
|
|
180
|
+
POPOVER: number;
|
|
181
|
+
MODAL: number;
|
|
182
|
+
TOAST: number;
|
|
183
|
+
};
|
|
184
|
+
declare const StackingContext: import("react").Context<number>;
|
|
173
185
|
type StackProps = {
|
|
174
186
|
/**
|
|
175
187
|
* Render prop, в который передается функция.
|
|
@@ -183,9 +195,6 @@ type StackProps = {
|
|
|
183
195
|
value?: number;
|
|
184
196
|
};
|
|
185
197
|
declare const Stack: FC<StackProps>;
|
|
186
|
-
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
187
|
-
declare const getDefaultPortalContainer: () => Element;
|
|
188
|
-
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
189
198
|
type SavedStyle = {
|
|
190
199
|
value: string;
|
|
191
200
|
key: string;
|
|
@@ -207,5 +216,5 @@ declare class GlobalStore {
|
|
|
207
216
|
constructor();
|
|
208
217
|
getModalStore: () => ModalStore;
|
|
209
218
|
}
|
|
210
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
219
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
|
|
211
220
|
export type { SavedStyle };
|
|
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
|
|
|
62
62
|
declare const dom: {
|
|
63
63
|
preventDefault: typeof preventDefault;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type PortalContextType = () => Element | null;
|
|
66
|
+
declare const PortalContext: import("react").Context<PortalContextType>;
|
|
67
|
+
export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
|
|
66
68
|
export * from "./browser-a216f694";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
8
8
|
type PortalProps = {
|
|
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
170
170
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
171
171
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
172
172
|
declare const handleContainer: (container?: HTMLElement) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
175
|
+
* Значения выбраны по приоритету.
|
|
176
|
+
*/
|
|
177
|
+
declare const stackingOrder: {
|
|
178
|
+
FOCUSED: number;
|
|
179
|
+
DEFAULT: number;
|
|
180
|
+
POPOVER: number;
|
|
181
|
+
MODAL: number;
|
|
182
|
+
TOAST: number;
|
|
183
|
+
};
|
|
184
|
+
declare const StackingContext: import("react").Context<number>;
|
|
173
185
|
type StackProps = {
|
|
174
186
|
/**
|
|
175
187
|
* Render prop, в который передается функция.
|
|
@@ -183,9 +195,6 @@ type StackProps = {
|
|
|
183
195
|
value?: number;
|
|
184
196
|
};
|
|
185
197
|
declare const Stack: FC<StackProps>;
|
|
186
|
-
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
187
|
-
declare const getDefaultPortalContainer: () => Element;
|
|
188
|
-
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
189
198
|
type SavedStyle = {
|
|
190
199
|
value: string;
|
|
191
200
|
key: string;
|
|
@@ -207,5 +216,5 @@ declare class GlobalStore {
|
|
|
207
216
|
constructor();
|
|
208
217
|
getModalStore: () => ModalStore;
|
|
209
218
|
}
|
|
210
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
219
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
|
|
211
220
|
export type { SavedStyle };
|
|
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
|
|
|
62
62
|
declare const dom: {
|
|
63
63
|
preventDefault: typeof preventDefault;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type PortalContextType = () => Element | null;
|
|
66
|
+
declare const PortalContext: import("react").Context<PortalContextType>;
|
|
67
|
+
export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
|
|
66
68
|
export * from "./browser-a216f694";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
3
|
+
declare const getDefaultPortalContainer: () => Element;
|
|
4
|
+
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
5
|
+
export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
|
|
3
|
+
declare const getDefaultPortalContainer: () => Element;
|
|
4
|
+
declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
5
|
+
export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
|
package/popover/Component.js
CHANGED
|
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
|
|
|
11
11
|
var coreComponentsPortal = require('../portal');
|
|
12
12
|
var coreComponentsStack = require('../stack');
|
|
13
13
|
var hooks = require('@alfalab/hooks');
|
|
14
|
-
var stackContext = require('@alfalab/stack-context');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
16
|
|
|
@@ -66,7 +65,7 @@ function getArrowPadding(_a) {
|
|
|
66
65
|
return 0;
|
|
67
66
|
}
|
|
68
67
|
var Popover = React.forwardRef(function (_a, ref) {
|
|
69
|
-
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ?
|
|
68
|
+
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
|
|
70
69
|
var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
|
|
71
70
|
var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
|
|
72
71
|
var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
|
|
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
|
|
|
11
11
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
12
12
|
var coreComponentsStack = require('../../stack/cssm');
|
|
13
13
|
var hooks = require('@alfalab/hooks');
|
|
14
|
-
var stackContext = require('@alfalab/stack-context');
|
|
15
14
|
var styles = require('./index.module.css');
|
|
16
15
|
|
|
17
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -65,7 +64,7 @@ function getArrowPadding(_a) {
|
|
|
65
64
|
return 0;
|
|
66
65
|
}
|
|
67
66
|
var Popover = React.forwardRef(function (_a, ref) {
|
|
68
|
-
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ?
|
|
67
|
+
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
|
|
69
68
|
var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
|
|
70
69
|
var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
|
|
71
70
|
var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
|
package/popover/esm/Component.js
CHANGED
|
@@ -7,9 +7,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
7
7
|
import cn from 'classnames';
|
|
8
8
|
import maxSize from 'popper-max-size-modifier';
|
|
9
9
|
import { Portal } from '../../portal/esm';
|
|
10
|
-
import { Stack } from '../../stack/esm';
|
|
10
|
+
import { stackingOrder, Stack } from '../../stack/esm';
|
|
11
11
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
12
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
13
12
|
|
|
14
13
|
var styles = {"component":"popover__component_10vxr","inner":"popover__inner_10vxr","scrollableContent":"popover__scrollableContent_10vxr","arrow":"popover__arrow_10vxr","enter":"popover__enter_10vxr","enterActive":"popover__enterActive_10vxr","exit":"popover__exit_10vxr","exitActive":"popover__exitActive_10vxr"};
|
|
15
14
|
require('./index.css');
|
package/popover/esm/index.js
CHANGED
|
@@ -6,9 +6,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
6
6
|
import cn from 'classnames';
|
|
7
7
|
import maxSize from 'popper-max-size-modifier';
|
|
8
8
|
import { Portal } from '../../portal/modern';
|
|
9
|
-
import { Stack } from '../../stack/modern';
|
|
9
|
+
import { Stack, stackingOrder } from '../../stack/modern';
|
|
10
10
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
11
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
12
11
|
|
|
13
12
|
const styles = {"component":"popover__component_10vxr","inner":"popover__inner_10vxr","scrollableContent":"popover__scrollableContent_10vxr","arrow":"popover__arrow_10vxr","enter":"popover__enter_10vxr","enterActive":"popover__enterActive_10vxr","exit":"popover__exit_10vxr","exitActive":"popover__exitActive_10vxr"};
|
|
14
13
|
require('./index.css');
|
package/popover/modern/index.js
CHANGED
package/portal/Component.js
CHANGED
|
@@ -2,13 +2,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var react = require('react');
|
|
4
4
|
var reactDom = require('react-dom');
|
|
5
|
+
var hooks_usePortalContainer = require('./hooks/usePortalContainer.js');
|
|
5
6
|
var utils = require('./utils.js');
|
|
6
7
|
|
|
7
|
-
var Portal = react.forwardRef(function (
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var Portal = react.forwardRef(function (props, ref) {
|
|
9
|
+
var portalContainer = hooks_usePortalContainer.usePortalContainer();
|
|
10
|
+
var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
|
|
11
|
+
var _c = react.useState(function () {
|
|
10
12
|
return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
|
|
11
|
-
}), mountNode =
|
|
13
|
+
}), mountNode = _c[0], setMountNode = _c[1];
|
|
12
14
|
react.useEffect(function () {
|
|
13
15
|
setMountNode(getPortalContainer());
|
|
14
16
|
}, [getPortalContainer]);
|
package/portal/cssm/Component.js
CHANGED
|
@@ -2,13 +2,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var react = require('react');
|
|
4
4
|
var reactDom = require('react-dom');
|
|
5
|
+
var hooks_usePortalContainer = require('./hooks/usePortalContainer.js');
|
|
5
6
|
var utils = require('./utils.js');
|
|
6
7
|
|
|
7
|
-
var Portal = react.forwardRef(function (
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var Portal = react.forwardRef(function (props, ref) {
|
|
9
|
+
var portalContainer = hooks_usePortalContainer.usePortalContainer();
|
|
10
|
+
var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
|
|
11
|
+
var _c = react.useState(function () {
|
|
10
12
|
return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
|
|
11
|
-
}), mountNode =
|
|
13
|
+
}), mountNode = _c[0], setMountNode = _c[1];
|
|
12
14
|
react.useEffect(function () {
|
|
13
15
|
setMountNode(getPortalContainer());
|
|
14
16
|
}, [getPortalContainer]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var coreComponentsShared = require('../../../shared/cssm');
|
|
5
|
+
var utils = require('../utils.js');
|
|
6
|
+
|
|
7
|
+
var usePortalContainer = function () {
|
|
8
|
+
var getContextPortalContainer = react.useContext(coreComponentsShared.PortalContext);
|
|
9
|
+
if (getContextPortalContainer()) {
|
|
10
|
+
return getContextPortalContainer;
|
|
11
|
+
}
|
|
12
|
+
return utils.getDefaultPortalContainer;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.usePortalContainer = usePortalContainer;
|
package/portal/esm/Component.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { forwardRef, useState, useEffect } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import {
|
|
3
|
+
import { usePortalContainer } from './hooks/usePortalContainer.js';
|
|
4
|
+
import { setRef } from './utils.js';
|
|
5
|
+
import '../../shared/esm';
|
|
4
6
|
|
|
5
|
-
var Portal = forwardRef(function (
|
|
6
|
-
var
|
|
7
|
-
var
|
|
7
|
+
var Portal = forwardRef(function (props, ref) {
|
|
8
|
+
var portalContainer = usePortalContainer();
|
|
9
|
+
var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
|
|
10
|
+
var _c = useState(function () {
|
|
8
11
|
return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
|
|
9
|
-
}), mountNode =
|
|
12
|
+
}), mountNode = _c[0], setMountNode = _c[1];
|
|
10
13
|
useEffect(function () {
|
|
11
14
|
setMountNode(getPortalContainer());
|
|
12
15
|
}, [getPortalContainer]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { PortalContext } from '../../../shared/esm';
|
|
3
|
+
import { getDefaultPortalContainer } from '../utils.js';
|
|
4
|
+
|
|
5
|
+
var usePortalContainer = function () {
|
|
6
|
+
var getContextPortalContainer = useContext(PortalContext);
|
|
7
|
+
if (getContextPortalContainer()) {
|
|
8
|
+
return getContextPortalContainer;
|
|
9
|
+
}
|
|
10
|
+
return getDefaultPortalContainer;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { usePortalContainer };
|
package/portal/esm/index.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var coreComponentsShared = require('../../shared');
|
|
5
|
+
var utils = require('../utils.js');
|
|
6
|
+
|
|
7
|
+
var usePortalContainer = function () {
|
|
8
|
+
var getContextPortalContainer = react.useContext(coreComponentsShared.PortalContext);
|
|
9
|
+
if (getContextPortalContainer()) {
|
|
10
|
+
return getContextPortalContainer;
|
|
11
|
+
}
|
|
12
|
+
return utils.getDefaultPortalContainer;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.usePortalContainer = usePortalContainer;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { forwardRef, useState, useEffect } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import {
|
|
3
|
+
import { usePortalContainer } from './hooks/usePortalContainer.js';
|
|
4
|
+
import { setRef } from './utils.js';
|
|
5
|
+
import '../../shared/modern';
|
|
4
6
|
|
|
5
|
-
const Portal = forwardRef((
|
|
7
|
+
const Portal = forwardRef((props, ref) => {
|
|
8
|
+
const portalContainer = usePortalContainer();
|
|
9
|
+
const { getPortalContainer = portalContainer, immediateMount = false, children } = props;
|
|
6
10
|
const [mountNode, setMountNode] = useState(() => typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null);
|
|
7
11
|
useEffect(() => {
|
|
8
12
|
setMountNode(getPortalContainer());
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { PortalContext } from '../../../shared/modern';
|
|
3
|
+
import { getDefaultPortalContainer } from '../utils.js';
|
|
4
|
+
|
|
5
|
+
const usePortalContainer = () => {
|
|
6
|
+
const getContextPortalContainer = useContext(PortalContext);
|
|
7
|
+
if (getContextPortalContainer()) {
|
|
8
|
+
return getContextPortalContainer;
|
|
9
|
+
}
|
|
10
|
+
return getDefaultPortalContainer;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { usePortalContainer };
|