@stack-spot/portal-layout 0.0.64 → 1.0.0-dev.1768482785050
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/CHANGELOG.md +779 -0
- package/dist/Layout.d.ts +60 -8
- package/dist/Layout.d.ts.map +1 -1
- package/dist/Layout.js +59 -24
- package/dist/Layout.js.map +1 -1
- package/dist/LayoutOverlayManager.d.ts +274 -19
- package/dist/LayoutOverlayManager.d.ts.map +1 -1
- package/dist/LayoutOverlayManager.js +373 -82
- package/dist/LayoutOverlayManager.js.map +1 -1
- package/dist/WelcomeTour.d.ts +2 -0
- package/dist/WelcomeTour.d.ts.map +1 -0
- package/dist/WelcomeTour.js +8 -0
- package/dist/WelcomeTour.js.map +1 -0
- package/dist/components/Backdrop.d.ts +75 -0
- package/dist/components/Backdrop.d.ts.map +1 -0
- package/dist/components/Backdrop.js +69 -0
- package/dist/components/Backdrop.js.map +1 -0
- package/dist/components/Contact/show-contact-modal.d.ts +5 -0
- package/dist/components/Contact/show-contact-modal.d.ts.map +1 -0
- package/dist/components/Contact/show-contact-modal.js +37 -0
- package/dist/components/Contact/show-contact-modal.js.map +1 -0
- package/dist/components/ContactModal.d.ts +1 -0
- package/dist/components/ContactModal.d.ts.map +1 -0
- package/dist/components/ContactModal.js +2 -0
- package/dist/components/ContactModal.js.map +1 -0
- package/dist/components/Dialog.d.ts +54 -7
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.js +8 -2
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Header.d.ts +38 -2
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Header.js +9 -4
- package/dist/components/Header.js.map +1 -1
- package/dist/components/NotificationCenter/NotificationPanel.d.ts +3 -0
- package/dist/components/NotificationCenter/NotificationPanel.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanel.js +19 -0
- package/dist/components/NotificationCenter/NotificationPanel.js.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.d.ts +3 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.js +16 -0
- package/dist/components/NotificationCenter/NotificationPanelHeader.js.map +1 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.d.ts +4 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js +12 -0
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -0
- package/dist/components/NotificationCenter/dictionary.d.ts +2 -0
- package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -0
- package/dist/components/NotificationCenter/dictionary.js +43 -0
- package/dist/components/NotificationCenter/dictionary.js.map +1 -0
- package/dist/components/NotificationCenter/index.d.ts +2 -0
- package/dist/components/NotificationCenter/index.d.ts.map +1 -0
- package/dist/components/NotificationCenter/index.js +34 -0
- package/dist/components/NotificationCenter/index.js.map +1 -0
- package/dist/components/NotificationCenter/styled.d.ts +3 -0
- package/dist/components/NotificationCenter/styled.d.ts.map +1 -0
- package/dist/components/NotificationCenter/styled.js +74 -0
- package/dist/components/NotificationCenter/styled.js.map +1 -0
- package/dist/components/NotificationCenter/types.d.ts +21 -0
- package/dist/components/NotificationCenter/types.d.ts.map +1 -0
- package/dist/components/NotificationCenter/types.js.map +1 -0
- package/dist/components/NotificationCenter/utils.d.ts +5 -0
- package/dist/components/NotificationCenter/utils.d.ts.map +1 -0
- package/dist/components/NotificationCenter/utils.js +18 -0
- package/dist/components/NotificationCenter/utils.js.map +1 -0
- package/dist/components/OverlayContent.d.ts +27 -1
- package/dist/components/OverlayContent.d.ts.map +1 -1
- package/dist/components/OverlayContent.js +8 -4
- package/dist/components/OverlayContent.js.map +1 -1
- package/dist/components/PortalSwitcher.d.ts +19 -1
- package/dist/components/PortalSwitcher.d.ts.map +1 -1
- package/dist/components/PortalSwitcher.js +16 -31
- package/dist/components/PortalSwitcher.js.map +1 -1
- package/dist/components/PrivacyPolicyMessage/hooks.d.ts +10 -0
- package/dist/components/PrivacyPolicyMessage/hooks.d.ts.map +1 -0
- package/dist/components/PrivacyPolicyMessage/hooks.js +33 -0
- package/dist/components/PrivacyPolicyMessage/hooks.js.map +1 -0
- package/dist/components/PrivacyPolicyMessage/index.d.ts +7 -0
- package/dist/components/PrivacyPolicyMessage/index.d.ts.map +1 -0
- package/dist/components/PrivacyPolicyMessage/index.js +5 -0
- package/dist/components/PrivacyPolicyMessage/index.js.map +1 -0
- package/dist/components/Rate/FeedbackModal.d.ts +8 -0
- package/dist/components/Rate/FeedbackModal.d.ts.map +1 -0
- package/dist/components/Rate/FeedbackModal.js +52 -0
- package/dist/components/Rate/FeedbackModal.js.map +1 -0
- package/dist/components/Rate/hook.d.ts +3 -0
- package/dist/components/Rate/hook.d.ts.map +1 -0
- package/dist/components/Rate/hook.js +48 -0
- package/dist/components/Rate/hook.js.map +1 -0
- package/dist/components/Rate/index.d.ts +10 -0
- package/dist/components/Rate/index.d.ts.map +1 -0
- package/dist/components/Rate/index.js +16 -0
- package/dist/components/Rate/index.js.map +1 -0
- package/dist/components/Rate/on-nps-submit.d.ts +7 -0
- package/dist/components/Rate/on-nps-submit.d.ts.map +1 -0
- package/dist/components/Rate/on-nps-submit.js +8 -0
- package/dist/components/Rate/on-nps-submit.js.map +1 -0
- package/dist/components/Rate/show-rate-us-modals.d.ts +17 -0
- package/dist/components/Rate/show-rate-us-modals.d.ts.map +1 -0
- package/dist/components/Rate/show-rate-us-modals.js +14 -0
- package/dist/components/Rate/show-rate-us-modals.js.map +1 -0
- package/dist/components/Rate/utils.d.ts +2 -0
- package/dist/components/Rate/utils.d.ts.map +1 -0
- package/dist/components/Rate/utils.js +10 -0
- package/dist/components/Rate/utils.js.map +1 -0
- package/dist/components/Toaster.d.ts +35 -0
- package/dist/components/Toaster.d.ts.map +1 -1
- package/dist/components/Toaster.js +32 -4
- package/dist/components/Toaster.js.map +1 -1
- package/dist/components/TypeForm/hook.d.ts +2 -0
- package/dist/components/TypeForm/hook.d.ts.map +1 -0
- package/dist/components/TypeForm/hook.js +11 -0
- package/dist/components/TypeForm/hook.js.map +1 -0
- package/dist/components/TypeForm/index.d.ts +6 -0
- package/dist/components/TypeForm/index.d.ts.map +1 -0
- package/dist/components/TypeForm/index.js +23 -0
- package/dist/components/TypeForm/index.js.map +1 -0
- package/dist/components/TypeForm/show-typeform-modal.d.ts +5 -0
- package/dist/components/TypeForm/show-typeform-modal.d.ts.map +1 -0
- package/dist/components/TypeForm/show-typeform-modal.js +11 -0
- package/dist/components/TypeForm/show-typeform-modal.js.map +1 -0
- package/dist/components/TypeForm/utils.d.ts +2 -0
- package/dist/components/TypeForm/utils.d.ts.map +1 -0
- package/dist/components/TypeForm/utils.js +9 -0
- package/dist/components/TypeForm/utils.js.map +1 -0
- package/dist/components/UserMenu.d.ts +19 -2
- package/dist/components/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu.js +12 -6
- package/dist/components/UserMenu.js.map +1 -1
- package/dist/components/error/ErrorBoundary.d.ts +25 -4
- package/dist/components/error/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/ErrorBoundary.js +10 -1
- package/dist/components/error/ErrorBoundary.js.map +1 -1
- package/dist/components/error/ErrorManager.d.ts +22 -6
- package/dist/components/error/ErrorManager.d.ts.map +1 -1
- package/dist/components/error/ErrorManager.js +21 -1
- package/dist/components/error/ErrorManager.js.map +1 -1
- package/dist/components/error/SilentErrorBoundary.d.ts +26 -5
- package/dist/components/error/SilentErrorBoundary.d.ts.map +1 -1
- package/dist/components/error/SilentErrorBoundary.js +10 -0
- package/dist/components/error/SilentErrorBoundary.js.map +1 -1
- package/dist/components/menu/MenuContent.d.ts +20 -547
- package/dist/components/menu/MenuContent.d.ts.map +1 -1
- package/dist/components/menu/MenuContent.js +89 -88
- package/dist/components/menu/MenuContent.js.map +1 -1
- package/dist/components/menu/MenuSectionGroup.d.ts +2 -0
- package/dist/components/menu/MenuSectionGroup.d.ts.map +1 -0
- package/dist/components/menu/MenuSectionGroup.js +121 -0
- package/dist/components/menu/MenuSectionGroup.js.map +1 -0
- package/dist/components/menu/MenuSections.d.ts +17 -0
- package/dist/components/menu/MenuSections.d.ts.map +1 -1
- package/dist/components/menu/MenuSections.js +159 -39
- package/dist/components/menu/MenuSections.js.map +1 -1
- package/dist/components/menu/PageSelector.d.ts +5 -0
- package/dist/components/menu/PageSelector.d.ts.map +1 -1
- package/dist/components/menu/PageSelector.js +9 -4
- package/dist/components/menu/PageSelector.js.map +1 -1
- package/dist/components/menu/types.d.ts +219 -8
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/tour/StepContainer.d.ts +37 -0
- package/dist/components/tour/StepContainer.d.ts.map +1 -0
- package/dist/components/tour/StepContainer.js +51 -0
- package/dist/components/tour/StepContainer.js.map +1 -0
- package/dist/components/tour/StepNavigation.d.ts +29 -0
- package/dist/components/tour/StepNavigation.d.ts.map +1 -0
- package/dist/components/tour/StepNavigation.js +37 -0
- package/dist/components/tour/StepNavigation.js.map +1 -0
- package/dist/components/tour/StepTitle.d.ts +17 -0
- package/dist/components/tour/StepTitle.d.ts.map +1 -0
- package/dist/components/tour/StepTitle.js +10 -0
- package/dist/components/tour/StepTitle.js.map +1 -0
- package/dist/components/tour/hook.d.ts +3 -0
- package/dist/components/tour/hook.d.ts.map +1 -0
- package/dist/components/tour/hook.js +10 -0
- package/dist/components/tour/hook.js.map +1 -0
- package/dist/components/tour/index.d.ts +5 -0
- package/dist/components/tour/index.d.ts.map +1 -0
- package/dist/components/tour/index.js +5 -0
- package/dist/components/tour/index.js.map +1 -0
- package/dist/components/tour/manager.d.ts +34 -0
- package/dist/components/tour/manager.d.ts.map +1 -0
- package/dist/components/tour/manager.js +104 -0
- package/dist/components/tour/manager.js.map +1 -0
- package/dist/components/tour/utils.d.ts +66 -8
- package/dist/components/tour/utils.d.ts.map +1 -1
- package/dist/components/tour/utils.js +57 -45
- package/dist/components/tour/utils.js.map +1 -1
- package/dist/components/user-menu-manager.d.ts +13 -0
- package/dist/components/user-menu-manager.d.ts.map +1 -0
- package/dist/components/user-menu-manager.js +36 -0
- package/dist/components/user-menu-manager.js.map +1 -0
- package/dist/dictionary.d.ts +6 -1
- package/dist/dictionary.d.ts.map +1 -1
- package/dist/dictionary.js +7 -2
- package/dist/dictionary.js.map +1 -1
- package/dist/elements.d.ts +7 -0
- package/dist/elements.d.ts.map +1 -1
- package/dist/elements.js +7 -0
- package/dist/elements.js.map +1 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/dist/layout.css +190 -35
- package/dist/svg/StarFillWithGradient.d.ts +6 -0
- package/dist/svg/StarFillWithGradient.d.ts.map +1 -0
- package/dist/svg/StarFillWithGradient.js +4 -0
- package/dist/svg/StarFillWithGradient.js.map +1 -0
- package/dist/toaster.d.ts +55 -9
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.js +34 -6
- package/dist/toaster.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +6 -69
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +9 -130
- package/dist/utils.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +26 -15
- package/package.stg.json +3 -0
- package/readme.md +147 -0
- package/src/Layout.tsx +166 -57
- package/src/LayoutOverlayManager.tsx +499 -85
- package/src/WelcomeTour.tsx +8 -0
- package/src/components/Backdrop.tsx +116 -0
- package/src/components/Contact/show-contact-modal.tsx +71 -0
- package/src/components/Dialog.tsx +58 -9
- package/src/components/Header.tsx +53 -5
- package/src/components/NotificationCenter/NotificationPanel.tsx +40 -0
- package/src/components/NotificationCenter/NotificationPanelHeader.tsx +53 -0
- package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +25 -0
- package/src/components/NotificationCenter/dictionary.ts +44 -0
- package/src/components/NotificationCenter/index.tsx +58 -0
- package/src/components/NotificationCenter/styled.ts +75 -0
- package/src/components/NotificationCenter/types.ts +24 -0
- package/src/components/NotificationCenter/utils.ts +20 -0
- package/src/components/OverlayContent.tsx +40 -5
- package/src/components/PortalSwitcher.tsx +33 -39
- package/src/components/PrivacyPolicyMessage/hooks.tsx +49 -0
- package/src/components/PrivacyPolicyMessage/index.tsx +21 -0
- package/src/components/Rate/FeedbackModal.tsx +86 -0
- package/src/components/Rate/hook.tsx +61 -0
- package/src/components/Rate/index.tsx +36 -0
- package/src/components/Rate/on-nps-submit.ts +18 -0
- package/src/components/Rate/show-rate-us-modals.tsx +29 -0
- package/src/components/Rate/utils.ts +11 -0
- package/src/components/Toaster.tsx +82 -3
- package/src/components/TypeForm/hook.tsx +13 -0
- package/src/components/TypeForm/index.tsx +50 -0
- package/src/components/TypeForm/show-typeform-modal.tsx +10 -0
- package/src/components/TypeForm/utils.ts +8 -0
- package/src/components/UserMenu.tsx +32 -8
- package/src/components/error/ErrorBoundary.tsx +11 -2
- package/src/components/error/ErrorManager.ts +22 -6
- package/src/components/error/SilentErrorBoundary.tsx +12 -2
- package/src/components/menu/MenuContent.tsx +102 -110
- package/src/components/menu/MenuSectionGroup.tsx +121 -0
- package/src/components/menu/MenuSections.tsx +342 -93
- package/src/components/menu/PageSelector.tsx +16 -4
- package/src/components/menu/types.ts +221 -9
- package/src/components/tour/StepContainer.tsx +92 -0
- package/src/components/tour/StepNavigation.tsx +72 -0
- package/src/components/tour/StepTitle.tsx +28 -0
- package/src/components/tour/hook.ts +12 -0
- package/src/components/tour/index.ts +6 -0
- package/src/components/tour/manager.tsx +119 -0
- package/src/components/tour/utils.tsx +119 -0
- package/src/components/user-menu-manager.ts +31 -0
- package/src/dictionary.ts +7 -2
- package/src/elements.ts +7 -0
- package/src/index.ts +15 -8
- package/src/layout.css +190 -35
- package/src/svg/StarFillWithGradient.tsx +14 -0
- package/src/toaster.tsx +90 -13
- package/src/types.ts +4 -0
- package/src/utils.ts +9 -142
- package/dist/components/BottomNotification.d.ts +0 -1
- package/dist/components/BottomNotification.d.ts.map +0 -1
- package/dist/components/BottomNotification.js +0 -2
- package/dist/components/BottomNotification.js.map +0 -1
- package/dist/components/BottomPanel.d.ts +0 -1
- package/dist/components/BottomPanel.d.ts.map +0 -1
- package/dist/components/BottomPanel.js +0 -2
- package/dist/components/BottomPanel.js.map +0 -1
- package/dist/components/SelectionList.d.ts +0 -36
- package/dist/components/SelectionList.d.ts.map +0 -1
- package/dist/components/SelectionList.js +0 -140
- package/dist/components/SelectionList.js.map +0 -1
- package/dist/components/error/ErrorDescriptor.d.ts +0 -12
- package/dist/components/error/ErrorDescriptor.d.ts.map +0 -1
- package/dist/components/error/ErrorDescriptor.js +0 -17
- package/dist/components/error/ErrorDescriptor.js.map +0 -1
- package/dist/components/error/ErrorFeedback.d.ts +0 -3
- package/dist/components/error/ErrorFeedback.d.ts.map +0 -1
- package/dist/components/error/ErrorFeedback.js +0 -66
- package/dist/components/error/ErrorFeedback.js.map +0 -1
- package/dist/components/menu/use-check-text-overflow.d.ts +0 -6
- package/dist/components/menu/use-check-text-overflow.d.ts.map +0 -1
- package/dist/components/menu/use-check-text-overflow.js +0 -20
- package/dist/components/menu/use-check-text-overflow.js.map +0 -1
- package/dist/components/menu/use-keyboard-controls.d.ts +0 -23
- package/dist/components/menu/use-keyboard-controls.d.ts.map +0 -1
- package/dist/components/menu/use-keyboard-controls.js +0 -49
- package/dist/components/menu/use-keyboard-controls.js.map +0 -1
- package/dist/components/menu/useCheckTextOverflow.d.ts +0 -6
- package/dist/components/menu/useCheckTextOverflow.d.ts.map +0 -1
- package/dist/components/menu/useCheckTextOverflow.js +0 -20
- package/dist/components/menu/useCheckTextOverflow.js.map +0 -1
- package/dist/components/tour/Navigation.d.ts +0 -8
- package/dist/components/tour/Navigation.d.ts.map +0 -1
- package/dist/components/tour/Navigation.js +0 -15
- package/dist/components/tour/Navigation.js.map +0 -1
- package/dist/components/tour/PortalSwitcherStep.d.ts +0 -3
- package/dist/components/tour/PortalSwitcherStep.d.ts.map +0 -1
- package/dist/components/tour/PortalSwitcherStep.js +0 -29
- package/dist/components/tour/PortalSwitcherStep.js.map +0 -1
- package/dist/components/tour/config.d.ts +0 -3
- package/dist/components/tour/config.d.ts.map +0 -1
- package/dist/components/tour/config.js +0 -22
- package/dist/components/tour/config.js.map +0 -1
- package/dist/components/tour/steps/PortalSwitcherStep.d.ts +0 -3
- package/dist/components/tour/steps/PortalSwitcherStep.d.ts.map +0 -1
- package/dist/components/tour/steps/PortalSwitcherStep.js +0 -30
- package/dist/components/tour/steps/PortalSwitcherStep.js.map +0 -1
- package/dist/components/types.d.ts +0 -15
- package/dist/components/types.d.ts.map +0 -1
- package/dist/components/types.js.map +0 -1
- package/dist/layout-context.d.ts +0 -10
- package/dist/layout-context.d.ts.map +0 -1
- package/dist/layout-context.js +0 -11
- package/dist/layout-context.js.map +0 -1
- package/dist/svg/AI.d.ts +0 -6
- package/dist/svg/AI.d.ts.map +0 -1
- package/dist/svg/AI.js +0 -9
- package/dist/svg/AI.js.map +0 -1
- package/dist/svg/EDP.d.ts +0 -6
- package/dist/svg/EDP.d.ts.map +0 -1
- package/dist/svg/EDP.js +0 -5
- package/dist/svg/EDP.js.map +0 -1
- package/dist/svg/Forbidden.d.ts +0 -6
- package/dist/svg/Forbidden.d.ts.map +0 -1
- package/dist/svg/Forbidden.js +0 -4
- package/dist/svg/Forbidden.js.map +0 -1
- package/dist/svg/HUB.d.ts +0 -6
- package/dist/svg/HUB.d.ts.map +0 -1
- package/dist/svg/HUB.js +0 -5
- package/dist/svg/HUB.js.map +0 -1
- package/dist/svg/Logo.d.ts +0 -2
- package/dist/svg/Logo.d.ts.map +0 -1
- package/dist/svg/Logo.js +0 -4
- package/dist/svg/Logo.js.map +0 -1
- package/dist/svg/NotFound.d.ts +0 -6
- package/dist/svg/NotFound.d.ts.map +0 -1
- package/dist/svg/NotFound.js +0 -4
- package/dist/svg/NotFound.js.map +0 -1
- package/dist/svg/ServerError.d.ts +0 -6
- package/dist/svg/ServerError.d.ts.map +0 -1
- package/dist/svg/ServerError.js +0 -4
- package/dist/svg/ServerError.js.map +0 -1
- package/dist/svg/Unauthenticated.d.ts +0 -6
- package/dist/svg/Unauthenticated.d.ts.map +0 -1
- package/dist/svg/Unauthenticated.js +0 -4
- package/dist/svg/Unauthenticated.js.map +0 -1
- package/src/components/BottomPanel.tsx +0 -0
- package/src/components/SelectionList.tsx +0 -272
- package/src/components/error/ErrorFeedback.tsx +0 -114
- package/src/components/menu/use-check-text-overflow.tsx +0 -26
- package/src/components/menu/use-keyboard-controls.tsx +0 -70
- package/src/components/tour/PortalSwitcherStep.tsx +0 -36
- package/src/components/types.ts +0 -15
- package/src/layout-context.tsx +0 -22
- package/src/svg/AI.tsx +0 -37
- package/src/svg/EDP.tsx +0 -35
- package/src/svg/Forbidden.tsx +0 -22
- package/src/svg/HUB.tsx +0 -35
- package/src/svg/Logo.tsx +0 -35
- package/src/svg/NotFound.tsx +0 -16
- package/src/svg/ServerError.tsx +0 -33
- package/src/svg/Unauthenticated.tsx +0 -16
- /package/dist/components/{types.js → NotificationCenter/types.js} +0 -0
- /package/src/components/{BottomNotification.tsx → ContactModal.tsx} +0 -0
package/dist/Layout.d.ts
CHANGED
|
@@ -1,32 +1,84 @@
|
|
|
1
|
-
import { TourProps } from '@stack-spot/portal-components';
|
|
2
1
|
import { WithStyle } from '@stack-spot/portal-theme';
|
|
3
2
|
import '@stack-spot/portal-theme/dist/theme.css';
|
|
4
3
|
import { ReactElement, ReactNode } from 'react';
|
|
5
4
|
import { HeaderProps } from './components/Header.js';
|
|
6
5
|
import { DescriptionFn, ErrorHandler } from './components/error/ErrorManager.js';
|
|
7
6
|
import { MenuProps } from './components/menu/types.js';
|
|
8
|
-
import { LayoutContext } from './layout-context.js';
|
|
9
7
|
import './layout.css';
|
|
10
|
-
interface Props extends WithStyle
|
|
8
|
+
interface Props extends WithStyle {
|
|
9
|
+
/**
|
|
10
|
+
* The config for the menu.
|
|
11
|
+
*/
|
|
11
12
|
menu: MenuProps;
|
|
13
|
+
/**
|
|
14
|
+
* The config for the header.
|
|
15
|
+
*/
|
|
12
16
|
header: HeaderProps;
|
|
17
|
+
/**
|
|
18
|
+
* The React node to go in the page content.
|
|
19
|
+
*/
|
|
13
20
|
children: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* A React node to place right after the page.
|
|
23
|
+
*/
|
|
14
24
|
extra?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* A function to convert errors into a readable format so they're properly rendered and logged.
|
|
27
|
+
*/
|
|
15
28
|
errorDescriptor?: DescriptionFn;
|
|
29
|
+
/**
|
|
30
|
+
* A function to run whenever an error is catch by an error boundary.
|
|
31
|
+
*/
|
|
16
32
|
onError?: ErrorHandler;
|
|
17
|
-
|
|
33
|
+
/**
|
|
34
|
+
* When true, the sections menu auto-collapses whenever a secondary (contextual) menu appears.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
autoCollapseSectionsMenu?: boolean;
|
|
18
38
|
}
|
|
19
|
-
interface RawProps extends WithStyle
|
|
39
|
+
interface RawProps extends WithStyle {
|
|
40
|
+
/**
|
|
41
|
+
* The React element to go in the menu sections.
|
|
42
|
+
*/
|
|
20
43
|
menuSections?: ReactElement;
|
|
44
|
+
/**
|
|
45
|
+
* The React element to go in the menu content.
|
|
46
|
+
*/
|
|
21
47
|
menuContent?: ReactElement;
|
|
48
|
+
/**
|
|
49
|
+
* The React element to go in the menu inner content (third level nav).
|
|
50
|
+
*/
|
|
51
|
+
menuInnerContent?: ReactElement;
|
|
52
|
+
/**
|
|
53
|
+
* The React element to go in the header.
|
|
54
|
+
*/
|
|
22
55
|
header?: ReactElement;
|
|
56
|
+
/**
|
|
57
|
+
* The React node to go in the page content.
|
|
58
|
+
*/
|
|
23
59
|
children?: ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* A React node to place right after the page.
|
|
62
|
+
*/
|
|
24
63
|
extra?: ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* A function to convert errors into a readable format so they're properly rendered and logged.
|
|
66
|
+
*/
|
|
25
67
|
errorDescriptor?: DescriptionFn;
|
|
68
|
+
/**
|
|
69
|
+
* A function to run whenever an error is catch by an error boundary.
|
|
70
|
+
*/
|
|
26
71
|
onError?: ErrorHandler;
|
|
27
|
-
tourProps?: TourProps;
|
|
28
72
|
}
|
|
29
|
-
|
|
30
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Renders the layout with the React elements passed in the props.
|
|
75
|
+
* @param props the component's props {@link RawProps}.
|
|
76
|
+
*/
|
|
77
|
+
export declare const RawLayout: ({ menuSections, menuContent, menuInnerContent, header, children, extra, errorDescriptor, onError, className, style }: RawProps) => import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
/**
|
|
79
|
+
* Renders the layout with a menu and header that follow the config objects passed as parameter.
|
|
80
|
+
* @param props the component's props {@link Props}.
|
|
81
|
+
*/
|
|
82
|
+
export declare const Layout: ({ menu, header, children, extra, errorDescriptor, onError, className, style }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
31
83
|
export {};
|
|
32
84
|
//# sourceMappingURL=Layout.d.ts.map
|
package/dist/Layout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../src/Layout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../src/Layout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmC,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACrF,OAAO,yCAAyC,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAa,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAU,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAgB,MAAM,iCAAiC,CAAA;AAI3F,OAAO,EAAE,SAAS,EAAmD,MAAM,yBAAyB,CAAA;AAEpG,OAAO,cAAc,CAAA;AAErB,UAAU,KAAM,SAAQ,SAAS;IAC/B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,UAAU,QAAS,SAAQ,SAAS;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,GACpB,sHAEE,QAAQ,4CAkGX,CAAA;AAcD;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,+EAA+E,KAAK,4CAsB1G,CAAA"}
|
package/dist/Layout.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { FadingOverflow } from '@stack-spot/portal-components/FadingOverflow';
|
|
3
3
|
import { CSSToCitricAdapter, listToClass } from '@stack-spot/portal-theme';
|
|
4
4
|
import '@stack-spot/portal-theme/dist/theme.css';
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { overlay } from './LayoutOverlayManager.js';
|
|
7
|
+
import { WelcomeTour } from './WelcomeTour.js';
|
|
7
8
|
import { Header } from './components/Header.js';
|
|
8
9
|
import { Toaster } from './components/Toaster.js';
|
|
9
10
|
import { ErrorBoundary } from './components/error/ErrorBoundary.js';
|
|
@@ -11,41 +12,75 @@ import { ErrorManager } from './components/error/ErrorManager.js';
|
|
|
11
12
|
import { SilentErrorBoundary } from './components/error/SilentErrorBoundary.js';
|
|
12
13
|
import { MenuContent } from './components/menu/MenuContent.js';
|
|
13
14
|
import { MenuSections } from './components/menu/MenuSections.js';
|
|
14
|
-
import {
|
|
15
|
-
import { elementIds, getLayoutElements } from './elements.js';
|
|
16
|
-
import { LayoutProvider } from './layout-context.js';
|
|
15
|
+
import { elementIds } from './elements.js';
|
|
17
16
|
import './layout.css';
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Renders the layout with the React elements passed in the props.
|
|
19
|
+
* @param props the component's props {@link RawProps}.
|
|
20
|
+
*/
|
|
21
|
+
export const RawLayout = ({ menuSections, menuContent, menuInnerContent, header, children, extra, errorDescriptor, onError, className, style }) => {
|
|
20
22
|
const { bottomDialog, modal, rightPanel } = overlay.useOverlays();
|
|
21
|
-
const { layout } = getLayoutElements();
|
|
22
|
-
const isCompactedOnlyIcons = layout?.classList.contains('menu-compact');
|
|
23
|
-
const portalSwitcherStep = usePortalSwitcherStep();
|
|
24
|
-
const classes = [
|
|
25
|
-
menuContent && !isCompactedOnlyIcons ? 'menu-content-visible' : undefined,
|
|
26
|
-
menuSections ? undefined : 'no-menu-sections',
|
|
27
|
-
className,
|
|
28
|
-
isCompactedOnlyIcons ? 'menu-compact' : undefined,
|
|
29
|
-
];
|
|
30
|
-
const tourPropsWithDefaults = { ...defaultTourConfig, ...(tourProps || {}) };
|
|
31
|
-
tourPropsWithDefaults.steps = [
|
|
32
|
-
portalSwitcherStep,
|
|
33
|
-
...tourPropsWithDefaults.steps,
|
|
34
|
-
].filter(isNewTourStep);
|
|
35
23
|
useEffect(() => {
|
|
36
24
|
if (errorDescriptor)
|
|
37
25
|
ErrorManager.setDescriptionFunction(errorDescriptor);
|
|
38
26
|
if (onError)
|
|
39
27
|
ErrorManager.setErrorHandler(onError);
|
|
40
28
|
}, []);
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
// controls classes in the layout element. This can't be a React prop because we don't want classes to be replaced, we want them to be
|
|
30
|
+
// merged with the previous set of classes.
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const classList = document.getElementById(elementIds.layout)?.classList;
|
|
33
|
+
if (!classList)
|
|
34
|
+
return;
|
|
35
|
+
const hasMenuContent = !!menuContent && !!document.getElementById(elementIds.menuContent)?.children.length;
|
|
36
|
+
const hasMenuInnerContent = !!menuInnerContent && !!document.getElementById(elementIds.menuInnerContent)?.children.length;
|
|
37
|
+
if (hasMenuContent) {
|
|
38
|
+
classList.add('menu-content-visible');
|
|
39
|
+
if (!classList.contains('menu-manual')) {
|
|
40
|
+
classList.add('menu-compact');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
classList.remove('menu-content-visible');
|
|
45
|
+
}
|
|
46
|
+
if (hasMenuInnerContent) {
|
|
47
|
+
classList.add('menu-inner-content-visible');
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
classList.remove('menu-inner-content-visible');
|
|
51
|
+
}
|
|
52
|
+
classList[menuSections ? 'remove' : 'add']('no-menu-sections');
|
|
53
|
+
if (className)
|
|
54
|
+
classList.add(...className.split(/\s+/));
|
|
55
|
+
}, [menuContent, menuInnerContent, menuSections, className]);
|
|
56
|
+
return (_jsxs(CSSToCitricAdapter, { children: [_jsx(WelcomeTour, {}), _jsxs("div", { id: elementIds.layout, style: style, className: "menu-manual menu-compact", children: [header && _jsx("header", { id: elementIds.header, children: _jsx(SilentErrorBoundary, { children: header }) }), extra && _jsx(SilentErrorBoundary, { children: extra }), _jsxs("aside", { id: elementIds.menu, children: [menuInnerContent &&
|
|
57
|
+
_jsx("nav", { role: "menubar", id: elementIds.menuInnerContent, children: _jsx(SilentErrorBoundary, { children: menuInnerContent }) }), _jsx("nav", { role: "menubar", id: elementIds.menuContent, children: _jsx(SilentErrorBoundary, { children: menuContent }) }), menuSections &&
|
|
58
|
+
_jsx(FadingOverflow, { sides: ['top', 'bottom'], scroll: "arrows", children: _jsx("nav", { role: "menubar", id: elementIds.menuSections, children: _jsx(SilentErrorBoundary, { children: menuSections }) }) })] }), children && _jsx("div", { id: elementIds.page, children: _jsx("article", { id: elementIds.content, children: _jsx(ErrorBoundary, { children: children }) }) }), _jsx("div", { id: elementIds.bottomDialog, role: "dialog", children: _jsx(ErrorBoundary, { children: bottomDialog }) }), _jsxs("div", { id: elementIds.backdrop, children: [_jsx("div", { id: elementIds.rightPanel, "aria-modal": true, role: "dialog", children: _jsx(ErrorBoundary, { children: rightPanel.length === 1 && !rightPanel[0].stack
|
|
59
|
+
? rightPanel[0].element
|
|
60
|
+
: rightPanel.map((m, i) => _jsx("div", { className: listToClass([
|
|
61
|
+
'right-panel-instance',
|
|
62
|
+
(i === rightPanel.length - 1) && 'active',
|
|
63
|
+
modal.length > 0 && 'disabled',
|
|
64
|
+
]), ...(modal.length > 0 ? { inert: true } : {}), children: m.element }, i)) }) }), _jsx("div", { id: elementIds.modal, "aria-modal": true, role: "dialog", children: _jsx(ErrorBoundary, { children: modal.length === 1 && !modal[0].stack
|
|
65
|
+
? modal[0].element
|
|
66
|
+
: modal.map((m, i) => _jsx("div", { className: listToClass(['modal-instance', (i === modal.length - 1) && 'active']), children: m.element }, i)) }) })] }), _jsx(Toaster, {}), _jsx("div", { id: elementIds.accessibilityAnnouncer, "aria-atomic": true, "aria-live": "assertive" })] })] }));
|
|
43
67
|
};
|
|
44
68
|
const MenuContentRenderer = ({ content }) => {
|
|
45
69
|
const menuContent = typeof content === 'function' ? content() : content;
|
|
46
70
|
return _jsx(MenuContent, { ...menuContent });
|
|
47
71
|
};
|
|
48
|
-
|
|
72
|
+
const MenuInnerContentRenderer = ({ content }) => {
|
|
73
|
+
const menuContent = typeof content === 'function' ? content() : content;
|
|
74
|
+
return menuContent && _jsx(MenuContent, { ...menuContent });
|
|
75
|
+
};
|
|
76
|
+
const hasInnerContent = (menu) => 'innerContent' in menu;
|
|
77
|
+
/**
|
|
78
|
+
* Renders the layout with a menu and header that follow the config objects passed as parameter.
|
|
79
|
+
* @param props the component's props {@link Props}.
|
|
80
|
+
*/
|
|
81
|
+
export const Layout = ({ menu, header, children, extra, errorDescriptor, onError, className, style }) => (_jsx(RawLayout, { header: _jsx(Header, { ...header }), menuSections: menu.sections ? _jsx(MenuSections, { ...menu }) : undefined, menuContent: menu.content
|
|
49
82
|
? _jsx(MenuContentRenderer, { content: menu.content }, 'contentKey' in menu ? menu.contentKey : undefined)
|
|
50
|
-
: undefined,
|
|
83
|
+
: undefined, menuInnerContent: hasInnerContent(menu) && menu.innerContent
|
|
84
|
+
? _jsx(MenuInnerContentRenderer, { content: menu.innerContent }, 'contentKey' in menu ? menu.contentKey : undefined)
|
|
85
|
+
: undefined, errorDescriptor: errorDescriptor, onError: onError, extra: extra, className: className, style: style, children: children }));
|
|
51
86
|
//# sourceMappingURL=Layout.js.map
|
package/dist/Layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sourceRoot":"","sources":["../src/Layout.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Layout.js","sourceRoot":"","sources":["../src/Layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAa,MAAM,0BAA0B,CAAA;AACrF,OAAO,yCAAyC,CAAA;AAChD,OAAO,EAA2B,SAAS,EAAE,MAAM,OAAO,CAAA;A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S,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,YAEX,QAAQ,GACC,CACb,CAAA"}
|
|
@@ -1,63 +1,318 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { DialogOptions } from './components/Dialog.js';
|
|
3
3
|
import { OverlayContentProps } from './components/OverlayContent.js';
|
|
4
|
-
import {
|
|
4
|
+
import { CustomToasterOptions, DefaultToasterOptions, closeReactToaster } from './toaster.js';
|
|
5
|
+
import { CustomModalSize, ModalSize, RightPanelSize } from './types.js';
|
|
5
6
|
interface AlertOptions extends Omit<DialogOptions, 'cancel'> {
|
|
7
|
+
/**
|
|
8
|
+
* Whether or not to show an "ok" button. If false, the dialog can still be closed through the close button, by clicking outside it or by
|
|
9
|
+
* pressing ESC.
|
|
10
|
+
*/
|
|
6
11
|
showButton?: boolean;
|
|
7
12
|
}
|
|
8
13
|
type BottomDialogOptions = Omit<DialogOptions, 'title'>;
|
|
9
|
-
type OverlaySize = 'small' | 'medium' | 'large';
|
|
10
|
-
type ModalSize = 'fit-content' | OverlaySize;
|
|
11
14
|
interface CustomModalOptions {
|
|
12
|
-
|
|
15
|
+
/**
|
|
16
|
+
* An optional, unique identifier for this modal.
|
|
17
|
+
*/
|
|
18
|
+
id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the modal.
|
|
21
|
+
*/
|
|
22
|
+
size?: CustomModalSize;
|
|
23
|
+
/**
|
|
24
|
+
* A function to call when the modal closes.
|
|
25
|
+
*/
|
|
13
26
|
onClose?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Property that defines whether the modal should ignore the initial focus on the close button.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
ignoreFirstFocusOnCloseButton?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, instead of replacing the previously opened modal (if any), it will open on top of it (stacked).
|
|
34
|
+
*
|
|
35
|
+
* When a modal is stacked on top of another:
|
|
36
|
+
* - Closing the modal, closes all opened modals.
|
|
37
|
+
* - Popping the modal, closes only the modal at the top of the stack.
|
|
38
|
+
* - Only the modal at the top of the stack can be interacted with.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
stack?: boolean;
|
|
14
43
|
}
|
|
15
44
|
interface CustomRightPanelOptions {
|
|
16
|
-
|
|
45
|
+
/**
|
|
46
|
+
* An optional, unique identifier for this right panel.
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The size of the right panel.
|
|
51
|
+
*/
|
|
52
|
+
size?: RightPanelSize;
|
|
53
|
+
/**
|
|
54
|
+
* A function to call when the right panel closes.
|
|
55
|
+
*/
|
|
17
56
|
onClose?: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Property that defines whether the modal should ignore the initial focus on the close button.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
ignoreFirstFocusOnCloseButton?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* If true, instead of replacing the previously opened right panel (if any), it will open on top of it (stacked).
|
|
64
|
+
*
|
|
65
|
+
* When a right panel is stacked on top of another:
|
|
66
|
+
* - Closing the panel, closes all opened panels.
|
|
67
|
+
* - Popping the panel, closes only the panel at the top of the stack.
|
|
68
|
+
* - Only the panel at the top of the stack can be interacted with.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
stack?: boolean;
|
|
18
73
|
}
|
|
19
74
|
declare class LayoutOverlayManager {
|
|
20
75
|
static readonly instance?: LayoutOverlayManager;
|
|
21
76
|
private setContent;
|
|
22
77
|
private elements?;
|
|
23
|
-
private onModalClose?;
|
|
24
78
|
/**
|
|
25
79
|
* Last element with focus before an overlay is shown.
|
|
26
80
|
*/
|
|
27
81
|
private lastActiveElement;
|
|
82
|
+
private modals;
|
|
83
|
+
private panels;
|
|
84
|
+
private closeCustomBackdrops;
|
|
85
|
+
private onClickBackdrop;
|
|
86
|
+
private onPressKeyInBackdrop;
|
|
28
87
|
private setupElements;
|
|
29
|
-
private
|
|
88
|
+
private getAllVisibleCustomBackdrops;
|
|
89
|
+
/**
|
|
90
|
+
* Enables or disables the interactivity of an element.
|
|
91
|
+
* @param element the element to have its interactivity changed.
|
|
92
|
+
* @param interactive false to disable interactivity, true to enable.
|
|
93
|
+
*/
|
|
30
94
|
private setInteractivity;
|
|
31
95
|
private setMainContentInteractivity;
|
|
32
96
|
private showOverlay;
|
|
33
97
|
private hideOverlay;
|
|
98
|
+
/**
|
|
99
|
+
* Shows the backdrop. The element passed as parameter must be a child of backdrop. Some accessibility features will be attached to
|
|
100
|
+
* the element.
|
|
101
|
+
*
|
|
102
|
+
* Consider using the component <Backdrop> from this library instead of calling this function directly.
|
|
103
|
+
* @param element the element to show inside the backdrop. It must already be a child of the backdrop.
|
|
104
|
+
*/
|
|
105
|
+
showBackdrop(element?: HTMLElement | null): void;
|
|
106
|
+
/**
|
|
107
|
+
* Closes the backdrop. The element passed as parameter must be a child of backdrop. Some accessibility features will be run on the
|
|
108
|
+
* element.
|
|
109
|
+
*
|
|
110
|
+
* Consider using the component <Backdrop> from this library instead of calling this function directly.
|
|
111
|
+
* @param element the element showing inside the backdrop. It must be a child of the backdrop.
|
|
112
|
+
*/
|
|
113
|
+
closeBackdrop(element?: HTMLElement | null): void;
|
|
114
|
+
/**
|
|
115
|
+
* @returns true if the modal is currently opened. False otherwise.
|
|
116
|
+
*/
|
|
34
117
|
isModalOpen(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* @returns the number of modals currently tracked.
|
|
120
|
+
*/
|
|
121
|
+
getNumberOfOpenModals(): number;
|
|
122
|
+
/**
|
|
123
|
+
* @returns the number of right panels currently tracked.
|
|
124
|
+
*/
|
|
125
|
+
getNumberOfOpenRightPanels(): number;
|
|
126
|
+
/**
|
|
127
|
+
* @returns true if the right panel is currently opened. False otherwise.
|
|
128
|
+
*/
|
|
35
129
|
isRightPanelOpen(): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @returns true if the bottom dialog is currently opened. False otherwise.
|
|
132
|
+
*/
|
|
36
133
|
isBottomDialogOpen(): boolean;
|
|
37
|
-
|
|
38
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Opens a modal with custom content.
|
|
136
|
+
*
|
|
137
|
+
* Attention: the modal state must be declared within the modal. If the state is declared outside the modal, its content won't be updated
|
|
138
|
+
* accordingly. To force an update of an outside state, you need to call `showCustomModal` again with the new state value.
|
|
139
|
+
*
|
|
140
|
+
* @param content a react element with the modal content.
|
|
141
|
+
* @param options the modal options {@link CustomModalOptions}.
|
|
142
|
+
*/
|
|
143
|
+
showCustomModal(content: React.ReactElement, { size, onClose, ignoreFirstFocusOnCloseButton, stack, id }?: CustomModalOptions): void;
|
|
144
|
+
/**
|
|
145
|
+
* Opens a modal.
|
|
146
|
+
*
|
|
147
|
+
* Attention: the modal state must be declared within the modal. If the state is declared outside the modal, its content won't be updated
|
|
148
|
+
* accordingly. To force an update of an outside state, you need to call `showModal` again with the new state value.
|
|
149
|
+
*
|
|
150
|
+
* @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
|
|
151
|
+
*/
|
|
152
|
+
showModal({ size, ignoreFirstFocusOnCloseButton, stack, onGoBack, id, ...props }: OverlayContentProps & {
|
|
39
153
|
size?: ModalSize;
|
|
40
|
-
}): void;
|
|
154
|
+
} & Pick<CustomModalOptions, 'ignoreFirstFocusOnCloseButton' | 'stack' | 'id'>): void;
|
|
41
155
|
private showDialog;
|
|
42
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Shows a confirmation dialog and returns a promise that resolves as soon as the dialog is closed. The result of the promise is true if
|
|
158
|
+
* the user confirms and false otherwise.
|
|
159
|
+
*
|
|
160
|
+
* If you need the user to type something to confirm the action, use the property `validate` in the options parameter.
|
|
161
|
+
* @param options the dialog options and its size: {@link DialogOptions}.
|
|
162
|
+
* @returns a promise that resolves with the user's answer.
|
|
163
|
+
*/
|
|
164
|
+
confirm({ confirm, cancel, size, ...options }: DialogOptions & {
|
|
165
|
+
size?: CustomModalSize;
|
|
166
|
+
}): Promise<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Shows an alert dialog and returns a promise that resolves as soon as the dialog is closed.
|
|
169
|
+
*
|
|
170
|
+
* @param options the dialog options: {@link AlertOptions}.
|
|
171
|
+
* @returns a promise that resolves to undefined as soon as the dialog is closed.
|
|
172
|
+
*/
|
|
43
173
|
alert({ confirm, showButton, ...options }: AlertOptions): Promise<void>;
|
|
44
|
-
showBottomDialog({ message, cancel, confirm }: BottomDialogOptions): Promise<boolean>;
|
|
45
|
-
showCustomRightPanel(content: ReactElement, { size, onClose }?: CustomRightPanelOptions): void;
|
|
46
|
-
showRightPanel({ size, ...props }: OverlayContentProps & {
|
|
47
|
-
size?: OverlaySize;
|
|
48
|
-
}): void;
|
|
49
174
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
175
|
+
* Shows a message at the bottom of the window and asks the user to confirm or decline it. The return value is a promise that resolves as
|
|
176
|
+
* soon as the user presses one of the buttons. The result of the promise is true if the user confirms and false otherwise.
|
|
177
|
+
*
|
|
178
|
+
* Differently than `confirm` and `alert`, this message can only be closed if the user clicks one of the buttons or `closeBottomDialog`
|
|
179
|
+
* is called.
|
|
180
|
+
*
|
|
181
|
+
* @param options the dialog options: {@link BottomDialogOptions}.
|
|
182
|
+
* @returns a promise that resolves with the user's answer.
|
|
183
|
+
*/
|
|
184
|
+
showBottomDialog({ children, cancel, confirm }: BottomDialogOptions): Promise<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* Opens a right panel with custom content.
|
|
187
|
+
*
|
|
188
|
+
* Attention: the right panel state must be declared within the right panel. If the state is declared outside the right panel, its content
|
|
189
|
+
* won't be updated accordingly. To force an update of an outside state, you need to call `showCustomRightPanel` again with the new state
|
|
190
|
+
* value.
|
|
191
|
+
*
|
|
192
|
+
* @param content a react element with the modal content.
|
|
193
|
+
* @param options the modal options {@link CustomModalOptions}.
|
|
52
194
|
*/
|
|
195
|
+
showCustomRightPanel(content: ReactElement, { size, onClose, ignoreFirstFocusOnCloseButton, stack, id }?: CustomRightPanelOptions): void;
|
|
196
|
+
/**
|
|
197
|
+
* Opens a right panel.
|
|
198
|
+
*
|
|
199
|
+
* Attention: the right panel state must be declared within the right panel. If the state is declared outside the right panel, its content
|
|
200
|
+
* won't be updated accordingly. To force an update of an outside state, you need to call `showRightPanel` again with the new state value.
|
|
201
|
+
*
|
|
202
|
+
* @param options the modal options: {@link OverlayContentProps} & { size: {@link ModalSize} }.
|
|
203
|
+
*/
|
|
204
|
+
showRightPanel({ size, ignoreFirstFocusOnCloseButton, stack, onGoBack, id, ...props }: OverlayContentProps & Pick<CustomRightPanelOptions, 'size' | 'ignoreFirstFocusOnCloseButton' | 'stack' | 'id'>): void;
|
|
53
205
|
private focusLastActiveElement;
|
|
206
|
+
/**
|
|
207
|
+
* Closes all opened modals.
|
|
208
|
+
* @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
|
|
209
|
+
*/
|
|
54
210
|
closeModal(runCloseListener?: boolean): void;
|
|
211
|
+
/**
|
|
212
|
+
* Closes the top-most modal in the stack. Will behave like `closeModal` if only a single modal exists in the stack.
|
|
213
|
+
* @param amount number of modals to pop. Defaults to 1.
|
|
214
|
+
* @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
|
|
215
|
+
*/
|
|
216
|
+
popModal(amount?: number, runCloseListener?: boolean): void;
|
|
217
|
+
/**
|
|
218
|
+
* Close all modals in the stack of modal until the modal with the given id is found. If no modal with the given id is found, nothing
|
|
219
|
+
* happens.
|
|
220
|
+
* @param id the id of the modal to pop to.
|
|
221
|
+
* @param inclusive when true, the modal with the given id is also popped. Defaults to false.
|
|
222
|
+
*/
|
|
223
|
+
popModalTo(id: string, inclusive?: boolean): void;
|
|
224
|
+
/**
|
|
225
|
+
* Closes all opened right panels.
|
|
226
|
+
* @param runCloseListener whether or not to run the function `onClose` passed to `showRightPanel` or `showCustomRightPanel`. Defaults to
|
|
227
|
+
* true.
|
|
228
|
+
*/
|
|
55
229
|
closeRightPanel(runCloseListener?: boolean): void;
|
|
230
|
+
/**
|
|
231
|
+
* Closes the top-most modal in the stack. Will behave like `closeModal` if only a single modal exists in the stack.
|
|
232
|
+
* @param runCloseListener whether or not to run the function `onClose` passed to `showModal` or `showCustomModal`. Defaults to true.
|
|
233
|
+
*/
|
|
234
|
+
popRightPanel(amount?: number, runCloseListener?: boolean): void;
|
|
235
|
+
/**
|
|
236
|
+
* Close all right panels in the stack of panels until the panel with the given id is found. If no panel with the given id is found,
|
|
237
|
+
* nothing happens.
|
|
238
|
+
* @param id the id of the right panel to pop to.
|
|
239
|
+
* @param inclusive when true, the right panel with the given id is also popped. Defaults to false.
|
|
240
|
+
*/
|
|
241
|
+
popRightPanelTo(id: string, inclusive?: boolean): void;
|
|
242
|
+
/**
|
|
243
|
+
* Closes the bottom dialog if it's open.
|
|
244
|
+
*/
|
|
56
245
|
closeBottomDialog(): void;
|
|
246
|
+
/**
|
|
247
|
+
* Verifies if the HTML element passed as parameter is inside the modal.
|
|
248
|
+
* @param element the HTML element to check.
|
|
249
|
+
* @returns true if `element` is inside the modal; false otherwise.
|
|
250
|
+
*/
|
|
57
251
|
isInsideModal(element: HTMLElement): boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Verifies if the HTML element passed as parameter is inside the right panel.
|
|
254
|
+
* @param element the HTML element to check.
|
|
255
|
+
* @returns true if `element` is inside the right panel; false otherwise.
|
|
256
|
+
*/
|
|
58
257
|
isInsideRightPanel(element: HTMLElement): boolean;
|
|
59
|
-
|
|
258
|
+
/**
|
|
259
|
+
* Shows a new toaster on the top right corner of the layout.
|
|
260
|
+
* @example
|
|
261
|
+
* ```
|
|
262
|
+
* overlay.showToaster({ title: 'Welcome', message: 'Hello World' })
|
|
263
|
+
* overlay.showToaster({
|
|
264
|
+
* title: 'Welcome',
|
|
265
|
+
* message: 'Hello World',
|
|
266
|
+
* actions: [
|
|
267
|
+
* { label: 'Got it!' },
|
|
268
|
+
* {
|
|
269
|
+
* label: 'Tell me more',
|
|
270
|
+
* closeOnClick: false,
|
|
271
|
+
* onClick: (event) => {
|
|
272
|
+
* // do something...
|
|
273
|
+
* },
|
|
274
|
+
* },
|
|
275
|
+
* ]
|
|
276
|
+
* })
|
|
277
|
+
* ```
|
|
278
|
+
* @param options the options for the toaster: {@link DefaultToasterOptions}.
|
|
279
|
+
* @returns the toaster's id.
|
|
280
|
+
*/
|
|
281
|
+
showToaster(defaultToasterConfig: DefaultToasterOptions): number | string;
|
|
282
|
+
/**
|
|
283
|
+
* Shows a fully customized toaster on the top right corner of the layout.
|
|
284
|
+
* @example
|
|
285
|
+
* ```
|
|
286
|
+
* overlay.showToaster({
|
|
287
|
+
* custom: true,
|
|
288
|
+
* message: <MyCustomToasterContent />,
|
|
289
|
+
* closeButton: <MyCustomCloseButton />,
|
|
290
|
+
* })
|
|
291
|
+
* ```
|
|
292
|
+
* @param options the options for the toaster: {@link CustomToasterOptions}.
|
|
293
|
+
* @returns the toaster's id.
|
|
294
|
+
*/
|
|
295
|
+
showToaster(customToasterConfig: CustomToasterOptions): number | string;
|
|
296
|
+
/**
|
|
297
|
+
* Shows the message passed as parameter in a new toaster on the top right corner of the layout.
|
|
298
|
+
* @example
|
|
299
|
+
* ```
|
|
300
|
+
* overlay.showToaster('Hello World!')
|
|
301
|
+
* overlay.showToaster(<p>Hello World</p>)
|
|
302
|
+
* ```
|
|
303
|
+
* @param message the message to show, can be either a string or React Element.
|
|
304
|
+
* @returns the toaster's id.
|
|
305
|
+
*/
|
|
306
|
+
showToaster(message: React.ReactNode): number | string;
|
|
307
|
+
/**
|
|
308
|
+
* Closes the toaster with the specified id.
|
|
309
|
+
* @param id the id of the toaster to close.
|
|
310
|
+
*/
|
|
311
|
+
closeToaster: typeof closeReactToaster;
|
|
60
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* Manages overlay components of the layout like: modal, rightPanel, bottomDialog and toaster.
|
|
315
|
+
*/
|
|
61
316
|
export declare const overlay: LayoutOverlayManager;
|
|
62
317
|
export {};
|
|
63
318
|
//# sourceMappingURL=LayoutOverlayManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutOverlayManager.d.ts","sourceRoot":"","sources":["../src/LayoutOverlayManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutOverlayManager.d.ts","sourceRoot":"","sources":["../src/LayoutOverlayManager.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA6B,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAU,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAoC,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAInG,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,iBAAiB,EAAmC,MAAM,WAAW,CAAA;AAC3H,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGpE,UAAU,YAAa,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;IAC1D;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAUD,KAAK,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAA;AASvD,UAAU,kBAAkB;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,uBAAuB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,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