@stack-spot/portal-layout 0.0.65 → 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 -4
- 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 +67 -0
- package/dist/components/tour/utils.d.ts.map +1 -0
- package/dist/components/tour/utils.js +60 -0
- package/dist/components/tour/utils.js.map +1 -0
- 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 +24 -13
- package/package.stg.json +3 -0
- package/readme.md +147 -0
- package/src/Layout.tsx +166 -58
- 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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutOverlayManager.js","sourceRoot":"","sources":["../src/LayoutOverlayManager.tsx"],"names":[],"mappings":";AAAA,+CAA+C;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAgB,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAiB,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAuB,MAAM,6BAA6B,CAAA;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAkB,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA2BnF,SAAS,oBAAoB,CAAC,IAA4B,EAAE,MAAc;IACxE,OAAO;sDAC6C,IAAI,sCAAsC,IAAI,eAAe,MAAM;;;;GAItH,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAA;AAC7B,CAAC;AAED,MAAM,oBAAoB;IAA1B;QAEU;;;;mBAAmC,EAAE;WAAA;QACrC;;;;;WAAyB;QACzB;;;;;WAAyB;QACjC;;WAEG;QACK;;;;mBAAoC,IAAI;WAAA;QAuOhD;;;;mBAAc,gBAAgB;WAAA;IAChC,CAAC;IAtOS,aAAa;QACnB,IAAI,CAAC,QAAQ,GAAG,iBAAiB,EAAE,CAAA;QACnC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,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eTour as WelcomeTourComponent, useTour } from './components/tour/index.js';
|
|
3
|
+
export const WelcomeTour = () => {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
+
const { currentStep, addStep, finishStep, ...tourConfig } = useTour();
|
|
6
|
+
return _jsx(WelcomeTourComponent, { ...tourConfig });
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=WelcomeTour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WelcomeTour.js","sourceRoot":"","sources":["../src/WelcomeTour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAEhF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,6DAA6D;IAC7D,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,GAAG,OAAO,EAAE,CAAA;IAErE,OAAO,KAAC,oBAAoB,OAAK,UAAU,GAAI,CAAA;AACjD,CAAC,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CustomModalSize, RightPanelSize } from '../types.js';
|
|
2
|
+
export interface BackdropProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
visible: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* A function to run when the backdrop is closed. Since the backdrop is a controlled element, this should be used to set the state
|
|
7
|
+
* of `visible` to false.
|
|
8
|
+
*/
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
/**
|
|
12
|
+
* Makes this backdrop act as a modal or a right panel.
|
|
13
|
+
* - `actAs = 'modal'` adds the className 'modal-box' to the backdrop, making it behave like a modal with medium size.
|
|
14
|
+
* - `actAs = 'right-panel'` adds the className 'right-panel-box' to the backdrop, making it behave like a right-panel with medium size.
|
|
15
|
+
* - `actAs = { type: T, size: S }` adds the className 'modal-box' or 'right-panel-box' to the backdrop, depending on the value of `T`.
|
|
16
|
+
* The size will depend on the value of `S`.
|
|
17
|
+
*/
|
|
18
|
+
actAs?: 'modal' | 'right-panel' | {
|
|
19
|
+
type: 'modal';
|
|
20
|
+
size: CustomModalSize;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'right-panel';
|
|
23
|
+
size: RightPanelSize;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A persistent backdrop is always rendered, despite the value of `visible`. It still appears or disappears according to `visible`, but
|
|
27
|
+
* it never leaves the DOM.
|
|
28
|
+
*
|
|
29
|
+
* This can help preserving complex animations.
|
|
30
|
+
*
|
|
31
|
+
* Attention: if you have many complex backdrops with persistent = true, it may affect performance.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
persistent?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* This doesn't change the animation of the backdrop! Use this property if `persistent` is false and the backdrop's content is animated
|
|
38
|
+
* in a different time than `--modal-animation-duration` (layout css variable).
|
|
39
|
+
*
|
|
40
|
+
* This lets you preserve the animations on your content when `persistent` is false.
|
|
41
|
+
*/
|
|
42
|
+
animationMS?: number;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The backdrop is a component for creating a Modal content. This can have any shape or form, it's free to accept any kind of content, and,
|
|
47
|
+
* by default, it has no animations attached to it (with the exception of the backdrop's animation, which is a fade-in-out).
|
|
48
|
+
*
|
|
49
|
+
* In general, to create modal and side-panels, you should use `overlay.showModal`, `overlay.showCustomModal`, `overlay.showRightPanel` and
|
|
50
|
+
* `overlay.showCustomRightPanel`.
|
|
51
|
+
*
|
|
52
|
+
* Use this when:
|
|
53
|
+
* 1. Your content is neither a modal, nor a right panel, but it needs a backdrop. Meaning, it can't be animated like a modal, but still
|
|
54
|
+
* needs to show a backdrop.
|
|
55
|
+
* 2. Your content is a modal or a right panel, but it needs to update according to an external state. The ideal scenario is to have the
|
|
56
|
+
* modal content completely independent of the external state, but sometimes, we do need to interact with an external state and calling
|
|
57
|
+
* `overlay.show*` multiple times is not ideal.
|
|
58
|
+
*
|
|
59
|
+
* Attention: if you open a modal/right panel through this component, you should not use the methods `overlay.close*` or `overlay.is*Open`
|
|
60
|
+
* to manage it.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* Check the example below for rendering a medium-sized modal. Equivalent to `overlay.showModal`. Remember that calling `overlay.showModal`
|
|
64
|
+
* is always preferable. Use this only if you fall into the second case explained above.
|
|
65
|
+
* ```
|
|
66
|
+
* <Backdrop visible={isOpen} onClose={() => setOpen(false)} actAs="modal">
|
|
67
|
+
* <OverlayContent type="modal" onClose={() => setOpen(false)} title="Title">
|
|
68
|
+
* <p>Hello World!</p>
|
|
69
|
+
* </OverlayContent>
|
|
70
|
+
* </Backdrop>
|
|
71
|
+
* ```
|
|
72
|
+
* @param props the component props {@link BackdropProps}.
|
|
73
|
+
*/
|
|
74
|
+
export declare const Backdrop: ({ children, visible, onClose, className, actAs, persistent, animationMS, style }: BackdropProps) => import("react").ReactPortal | null;
|
|
75
|
+
//# sourceMappingURL=Backdrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Backdrop.d.ts","sourceRoot":"","sources":["../../src/components/Backdrop.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,eAAe,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC;IAC3H;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,QAAQ,GAAI,kFAA8F,aAAa,uCAuCnI,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { delay } from '@stack-spot/portal-components';
|
|
3
|
+
import { listToClass } from '@stack-spot/portal-theme';
|
|
4
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
5
|
+
import { createPortal } from 'react-dom';
|
|
6
|
+
import { getLayoutElements } from '../elements.js';
|
|
7
|
+
import { overlay } from '../LayoutOverlayManager.js';
|
|
8
|
+
import { valueOfLayoutVar } from '../utils.js';
|
|
9
|
+
/**
|
|
10
|
+
* The backdrop is a component for creating a Modal content. This can have any shape or form, it's free to accept any kind of content, and,
|
|
11
|
+
* by default, it has no animations attached to it (with the exception of the backdrop's animation, which is a fade-in-out).
|
|
12
|
+
*
|
|
13
|
+
* In general, to create modal and side-panels, you should use `overlay.showModal`, `overlay.showCustomModal`, `overlay.showRightPanel` and
|
|
14
|
+
* `overlay.showCustomRightPanel`.
|
|
15
|
+
*
|
|
16
|
+
* Use this when:
|
|
17
|
+
* 1. Your content is neither a modal, nor a right panel, but it needs a backdrop. Meaning, it can't be animated like a modal, but still
|
|
18
|
+
* needs to show a backdrop.
|
|
19
|
+
* 2. Your content is a modal or a right panel, but it needs to update according to an external state. The ideal scenario is to have the
|
|
20
|
+
* modal content completely independent of the external state, but sometimes, we do need to interact with an external state and calling
|
|
21
|
+
* `overlay.show*` multiple times is not ideal.
|
|
22
|
+
*
|
|
23
|
+
* Attention: if you open a modal/right panel through this component, you should not use the methods `overlay.close*` or `overlay.is*Open`
|
|
24
|
+
* to manage it.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Check the example below for rendering a medium-sized modal. Equivalent to `overlay.showModal`. Remember that calling `overlay.showModal`
|
|
28
|
+
* is always preferable. Use this only if you fall into the second case explained above.
|
|
29
|
+
* ```
|
|
30
|
+
* <Backdrop visible={isOpen} onClose={() => setOpen(false)} actAs="modal">
|
|
31
|
+
* <OverlayContent type="modal" onClose={() => setOpen(false)} title="Title">
|
|
32
|
+
* <p>Hello World!</p>
|
|
33
|
+
* </OverlayContent>
|
|
34
|
+
* </Backdrop>
|
|
35
|
+
* ```
|
|
36
|
+
* @param props the component props {@link BackdropProps}.
|
|
37
|
+
*/
|
|
38
|
+
export const Backdrop = ({ children, visible = false, onClose, className, actAs, persistent, animationMS = 0, style }) => {
|
|
39
|
+
const ref = useRef(null);
|
|
40
|
+
const [shouldRender, setShouldRender] = useState(!!persistent);
|
|
41
|
+
const renderDelay = useMemo(() => Math.max(parseFloat(valueOfLayoutVar('--modal-animation-duration')), animationMS) * 1000, []);
|
|
42
|
+
const backdropType = typeof actAs === 'string' ? actAs : actAs?.type;
|
|
43
|
+
const backdropSize = typeof actAs === 'string' ? 'medium' : actAs?.size;
|
|
44
|
+
const classes = listToClass([
|
|
45
|
+
className,
|
|
46
|
+
backdropType === 'modal' && 'modal-box',
|
|
47
|
+
backdropType === 'right-panel' && 'right-panel-box',
|
|
48
|
+
backdropSize,
|
|
49
|
+
]);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
(async () => {
|
|
52
|
+
if (visible) {
|
|
53
|
+
setShouldRender(true);
|
|
54
|
+
// arbitrary delay to make sure the content is rendered before actually showing it.
|
|
55
|
+
await delay(10);
|
|
56
|
+
overlay.showBackdrop(ref.current);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
overlay.closeBackdrop(ref.current);
|
|
60
|
+
await delay(renderDelay);
|
|
61
|
+
setShouldRender(false);
|
|
62
|
+
}
|
|
63
|
+
})();
|
|
64
|
+
}, [visible]);
|
|
65
|
+
const backdropContent = (_jsxs("div", { ref: ref, "data-custom-backdrop-visibility": visible, className: classes, style: style, children: [children, _jsx("button", { "data-custom-backdrop-close": true, onClick: onClose, style: { display: 'none' }, children: "Close" })] }));
|
|
66
|
+
const backdrop = getLayoutElements().backdrop;
|
|
67
|
+
return backdrop && (shouldRender || persistent) ? createPortal(backdropContent, backdrop) : null;
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=Backdrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Backdrop.js","sourceRoot":"","sources":["../../src/components/Backdrop.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAwC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAG,CAAC,EAAE,KAAK,EAAiB,EAAE,EAAE;IACtI,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACxC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,UAAU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OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,sBAAgB,IAC3F,CACP,CAAA;IAED,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAC,QAAQ,CAAA;IAC7C,OAAO,QAAQ,IAAI,CAAC,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAClG,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-contact-modal.d.ts","sourceRoot":"","sources":["../../../src/components/Contact/show-contact-modal.tsx"],"names":[],"mappings":"AAgDA,eAAO,MAAM,kBAAkB,GAAI,0BAAyB;IAAE,aAAa,EAAC,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,SAMlG,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Flex, IconBox, Text } from '@citric/core';
|
|
3
|
+
import { ExternalLink } from '@citric/icons';
|
|
4
|
+
import { Card } from '@citric/ui';
|
|
5
|
+
import { useAnchorTag } from '@stack-spot/portal-components/anchor';
|
|
6
|
+
import { useTranslate } from '@stack-spot/portal-translate';
|
|
7
|
+
import { overlay } from '../../LayoutOverlayManager.js';
|
|
8
|
+
const CardItem = ({ title, description, hasMargin = false, buttonText, url, icon, onClick }) => {
|
|
9
|
+
const Link = useAnchorTag();
|
|
10
|
+
return _jsx(Card, { sx: { p: '7', bg: 'light.500', w: '100%' }, children: _jsxs(Flex, { flexDirection: "column", children: [_jsx(Text, { appearance: "h5", mb: "3", children: title }), _jsx(Text, { appearance: "microtext1", colorScheme: "light.700", mb: "8", children: description }), _jsx(Box, { mt: hasMargin ? 5 : 0, children: _jsx(Link, { onClick: onClick, href: url, target: "_blank", children: _jsxs(Button, { size: "md", colorScheme: "inverse", children: [buttonText, _jsx(IconBox, { sx: { ml: 2 }, colorIcon: "inverse.contrastText", children: icon })] }) }) })] }) });
|
|
11
|
+
};
|
|
12
|
+
const ContactUsComponent = ({ serviceNowUrl }) => {
|
|
13
|
+
const t = useTranslate(dictionary);
|
|
14
|
+
return _jsx(Flex, { sx: { gap: '8px' }, w: 12, mb: 10, flexWrap: "nowrap", children: _jsx(CardItem, { title: t.support, description: t.supportDescription, buttonText: t.supportButton, url: serviceNowUrl, icon: _jsx(ExternalLink, {}) }) });
|
|
15
|
+
};
|
|
16
|
+
export const showContactUsModal = ({ title, serviceNowUrl }) => {
|
|
17
|
+
overlay.showModal({
|
|
18
|
+
title,
|
|
19
|
+
children: _jsx(ContactUsComponent, { serviceNowUrl: serviceNowUrl }),
|
|
20
|
+
size: 'small',
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const dictionary = {
|
|
24
|
+
en: {
|
|
25
|
+
contactUs: 'Contact us',
|
|
26
|
+
support: 'Support and feedback',
|
|
27
|
+
supportDescription: 'Need help or have a feedback? Connect with our Support team',
|
|
28
|
+
supportButton: 'Get in touch',
|
|
29
|
+
},
|
|
30
|
+
pt: {
|
|
31
|
+
contactUs: 'Fale conosco',
|
|
32
|
+
support: 'Suporte e feedback',
|
|
33
|
+
supportDescription: 'Precisa de ajuda ou tem algum feedback? Fale com o nosso time de Suporte',
|
|
34
|
+
supportButton: 'Entre em contato',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=show-contact-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-contact-modal.js","sourceRoot":"","sources":["../../../src/components/Contact/show-contact-modal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE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Y,CAAC,UAAU,CAAC,CAAA;IAElC,OAAO,KAAC,IAAI,IAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAC,QAAQ,YAC/D,KAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC,kBAAkB,EAAE,UAAU,EAAE,CAAC,CAAC,aAAa,EAAE,GAAG,EAAE,aAAa,EAC5G,IAAI,EAAE,KAAC,YAAY,KAAG,GAAI,GACvB,CAAA;AACT,CAAC,CAAA;AAGD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,KAAK,EAAE,aAAa,EAA0C,EAAE,EAAE;IACrG,OAAO,CAAC,SAAS,CAAC;QAChB,KAAK;QACL,QAAQ,EAAE,KAAC,kBAAkB,IAAC,aAAa,EAAE,aAAa,GAAI;QAC9D,IAAI,EAAE,OAAO;KACd,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,sBAAsB;QAC/B,kBAAkB,EAAE,6DAA6D;QACjF,aAAa,EAAE,cAAc;KAC9B;IACD,EAAE,EAAE;QACF,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE,oBAAoB;QAC7B,kBAAkB,EAAE,0EAA0E;QAC9F,aAAa,EAAE,kBAAkB;KAClC;CACmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ContactModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactModal.d.ts","sourceRoot":"","sources":["../../src/components/ContactModal.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactModal.js","sourceRoot":"","sources":["../../src/components/ContactModal.tsx"],"names":[],"mappings":""}
|
|
@@ -1,35 +1,82 @@
|
|
|
1
1
|
import { ColorSchemeName } from '@stack-spot/portal-theme';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
interface Validation {
|
|
4
|
+
/**
|
|
5
|
+
* The expected value of the field.
|
|
6
|
+
*/
|
|
4
7
|
value: string;
|
|
8
|
+
/**
|
|
9
|
+
* A custom label for the input field.
|
|
10
|
+
*/
|
|
5
11
|
label?: string | ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* A placeholder for the input field.
|
|
14
|
+
*/
|
|
6
15
|
placeholder?: string;
|
|
7
16
|
}
|
|
8
17
|
export interface DialogOptions {
|
|
18
|
+
/**
|
|
19
|
+
* The dialog's title.
|
|
20
|
+
*/
|
|
9
21
|
title: string;
|
|
22
|
+
/**
|
|
23
|
+
* The dialog's subtitle.
|
|
24
|
+
*/
|
|
10
25
|
subtitle?: string;
|
|
11
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Function to call when the "go back" button is pressed. If unset, the button is not shown.
|
|
28
|
+
*/
|
|
29
|
+
onGoBack?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* The dialog's content.
|
|
32
|
+
*/
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* A text for the confirm button. If left blank, the confirm button won't render.
|
|
36
|
+
*/
|
|
12
37
|
confirm?: string;
|
|
38
|
+
/**
|
|
39
|
+
* A text for the cancel button. If left blank, the cancel button won't render.
|
|
40
|
+
*/
|
|
13
41
|
cancel?: string;
|
|
42
|
+
/**
|
|
43
|
+
* A validation input field. If the validation is incorrect, the confirm button is disabled.
|
|
44
|
+
* If this is a string, the validation input's value must be equal to this string in order to enable the confirm button.
|
|
45
|
+
* If this is an object, a value, label and placeholder may be specified.
|
|
46
|
+
* Use false or undefined to not include a validation field.
|
|
47
|
+
*/
|
|
14
48
|
validation?: false | string | Validation;
|
|
15
49
|
/**
|
|
50
|
+
* If this is a modal or a rightPanel.
|
|
16
51
|
* @default modal
|
|
17
52
|
*/
|
|
18
53
|
type?: 'modal' | 'panel';
|
|
19
54
|
/**
|
|
20
|
-
*
|
|
55
|
+
* The placement for the confirm/cancel buttons.
|
|
56
|
+
* @default "left" if type is "panel", "right" otherwise.
|
|
21
57
|
*/
|
|
22
|
-
buttonPlacement?: 'left' | 'center' | 'right';
|
|
58
|
+
buttonPlacement?: 'left' | 'center' | 'right' | 'corners';
|
|
23
59
|
/**
|
|
24
60
|
* The color of the primary button.
|
|
25
|
-
* @default primary
|
|
61
|
+
* @default "primary"
|
|
26
62
|
*/
|
|
27
63
|
buttonColor?: ColorSchemeName;
|
|
28
64
|
}
|
|
29
|
-
interface Props extends DialogOptions {
|
|
30
|
-
|
|
65
|
+
interface Props extends Omit<DialogOptions, 'message'> {
|
|
66
|
+
/**
|
|
67
|
+
* Function to run when the confirm button is clicked.
|
|
68
|
+
*/
|
|
69
|
+
onConfirm?: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Function to run when the cancel button is clicked.
|
|
72
|
+
*/
|
|
31
73
|
onCancel: () => void;
|
|
32
74
|
}
|
|
33
|
-
|
|
75
|
+
/**
|
|
76
|
+
* A dialog, i.e. A UI with title, subtitle, close button, content and a set of buttons: cancel and confirm. May be placed under a Modal or
|
|
77
|
+
* RightPanel.
|
|
78
|
+
* @param props the React props of the component {@link Props}.
|
|
79
|
+
*/
|
|
80
|
+
export declare const Dialog: ({ children, title, subtitle, cancel, confirm, validation, onGoBack, onConfirm, onCancel, type, buttonPlacement, buttonColor, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
34
81
|
export {};
|
|
35
82
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAI3C,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,CAAC;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AASD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,gIAapB,KAAK,4CAsCP,CAAA"}
|
|
@@ -8,8 +8,14 @@ const justifyButtons = {
|
|
|
8
8
|
center: 'center',
|
|
9
9
|
left: 'start',
|
|
10
10
|
right: 'end',
|
|
11
|
+
corners: 'space-between',
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
* A dialog, i.e. A UI with title, subtitle, close button, content and a set of buttons: cancel and confirm. May be placed under a Modal or
|
|
15
|
+
* RightPanel.
|
|
16
|
+
* @param props the React props of the component {@link Props}.
|
|
17
|
+
*/
|
|
18
|
+
export const Dialog = ({ children, title, subtitle, cancel, confirm, validation, onGoBack, onConfirm, onCancel, type = 'modal', buttonPlacement = type === 'panel' ? 'left' : 'right', buttonColor = 'primary', }) => {
|
|
13
19
|
const t = useDictionary();
|
|
14
20
|
const [enabled, setEnabled] = useState(!validation);
|
|
15
21
|
function renderValidation() {
|
|
@@ -22,6 +28,6 @@ export const Dialog = ({ message, title, subtitle, cancel, confirm, validation,
|
|
|
22
28
|
const placeholder = typeof validation === 'object' ? validation.placeholder : undefined;
|
|
23
29
|
return (_jsxs("div", { style: { margin: '24px 0 16px' }, children: [_jsx(Label, { htmlFor: "input-validation", children: label }), _jsx(Input, { id: "input-validation", placeholder: placeholder, onChange: e => setEnabled(e.target.value === value), style: { marginTop: '10px' } })] }));
|
|
24
30
|
}
|
|
25
|
-
return (_jsxs(OverlayContent, { title: title, subtitle: subtitle, onClose: onCancel, type: type, children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [
|
|
31
|
+
return (_jsxs(OverlayContent, { title: title, subtitle: subtitle, onClose: onCancel, type: type, onGoBack: onGoBack, children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [children, renderValidation()] }), (cancel || confirm) && _jsxs(Flex, { gap: true, justifyContent: justifyButtons[buttonPlacement], alignItems: "center", sx: { mt: 6 }, children: [cancel && _jsx(Button, { appearance: "outlined", colorScheme: "inverse", onClick: onCancel, children: cancel }), confirm && _jsx(Button, { colorScheme: buttonColor, onClick: onConfirm, disabled: !enabled, children: confirm })] })] }));
|
|
26
32
|
};
|
|
27
33
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AA6EjD,MAAM,cAAc,GAA8F;IAChH,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,eAAe;CACzB,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,K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AAO,CACL,MAAC,cAAc,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,aACjG,MAAC,IAAI,IAAC,aAAa,EAAC,QAAQ,EAAC,IAAI,EAAE,CAAC,aACjC,QAAQ,EACR,gBAAgB,EAAE,IACd,EACN,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,MAAC,IAAI,IAAC,GAAG,QAAC,cAAc,EAAE,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,EAAC,QAAQ,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,aACjH,MAAM,IAAI,KAAC,MAAM,IAAC,UAAU,EAAC,UAAU,EAAC,WAAW,EAAC,SAAS,EAAC,OAAO,EAAE,QAAQ,YAAG,MAAM,GAAU,EAClG,OAAO,IAAI,KAAC,MAAM,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,YACjF,OAAO,GACD,IACJ,IACQ,CAClB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,15 +1,51 @@
|
|
|
1
|
+
import { SelectionListProps } from '@stack-spot/portal-components/SelectionList';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { PortalSwitcherProps } from './PortalSwitcher.js';
|
|
3
|
-
import { SelectionListProps } from './SelectionList.js';
|
|
4
4
|
export interface HeaderProps {
|
|
5
|
+
/**
|
|
6
|
+
* The logo to show in the header, if the portal switch feature is disabled.
|
|
7
|
+
*/
|
|
5
8
|
logo?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The url the logo links to, if the portal switch feature is disabled.
|
|
11
|
+
*/
|
|
6
12
|
logoHref?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The username to show in the user menu.
|
|
15
|
+
*/
|
|
7
16
|
userName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The user image to show in the user menu.
|
|
19
|
+
*/
|
|
20
|
+
userImage?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The email to show in the user menu.
|
|
23
|
+
*/
|
|
8
24
|
email?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A portal switch config. If not specified, disables the portal switch feature.
|
|
27
|
+
*/
|
|
9
28
|
portalSwitch?: PortalSwitcherProps['portals'];
|
|
29
|
+
/**
|
|
30
|
+
* The options to show in the user menu.
|
|
31
|
+
*/
|
|
10
32
|
options?: SelectionListProps['items'];
|
|
33
|
+
/**
|
|
34
|
+
* A custom React Node to show at the center of the header. This is a good place for a search field, for instance.
|
|
35
|
+
*/
|
|
11
36
|
center?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* A custom React Node to show at the right (end) of the header.
|
|
39
|
+
*/
|
|
12
40
|
right?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not to show the notification center.
|
|
43
|
+
*/
|
|
44
|
+
showNotificationCenter?: boolean;
|
|
13
45
|
}
|
|
14
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The page header.
|
|
48
|
+
* @param props the React props for the header {@link HeaderProps}.
|
|
49
|
+
*/
|
|
50
|
+
export declare const Header: ({ logo, logoHref, center, right, userName, email, options, portalSwitch, showNotificationCenter, userImage }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
51
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAGhF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAGtE,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,8GAUR,WAAW,4CAezB,CAAA"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Flex } from '@citric/core';
|
|
3
|
-
import { useAnchorTag } from '
|
|
4
|
-
import { Logo } from '
|
|
3
|
+
import { useAnchorTag } from '@stack-spot/portal-components/anchor';
|
|
4
|
+
import { Logo } from '@stack-spot/portal-components/svg';
|
|
5
|
+
import { NotificationCenter } from './NotificationCenter/index.js';
|
|
5
6
|
import { PortalSwitcher } from './PortalSwitcher.js';
|
|
6
7
|
import { UserMenu } from './UserMenu.js';
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The page header.
|
|
10
|
+
* @param props the React props for the header {@link HeaderProps}.
|
|
11
|
+
*/
|
|
12
|
+
export const Header = ({ logo, logoHref, center, right, userName, email, options, portalSwitch, showNotificationCenter, userImage }) => {
|
|
8
13
|
const Link = useAnchorTag();
|
|
9
14
|
return (_jsxs(_Fragment, { children: [portalSwitch ?
|
|
10
15
|
_jsx(PortalSwitcher, { portals: portalSwitch }) :
|
|
11
|
-
_jsx(Link, { href: logoHref, title: "Home", children: logo ?? _jsx(Logo, { style: { width: 130 } }) }), _jsx(Flex, { flex: 1, children: center }), right, userName && _jsx(UserMenu, { userName: userName, email: email, options: options })] }));
|
|
16
|
+
_jsx(Link, { href: logoHref, title: "Home", children: logo ?? _jsx(Logo, { style: { width: 130 } }) }), _jsx(Flex, { flex: 1, children: center }), right, showNotificationCenter && _jsx(NotificationCenter, {}), userName && _jsx(UserMenu, { userName: userName, email: email, options: options, userImage: userImage })] }));
|
|
12
17
|
};
|
|
13
18
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AA6CrC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,YAAY,EACZ,sBAAsB,EACtB,SAAS,EAAe,EAAE,EAAE;IAC5B,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAE3B,OAAO,CACL,8BACG,YAAY,CAAC,CAAC;gBACb,KAAC,cAAc,IAAC,OAAO,EAAE,YAAY,GAAI,CAAC,CAAC;gBAC3C,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,YAAE,IAAI,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,GAAI,GAAQ,EAErF,KAAC,IAAI,IAAC,IAAI,EAAE,CAAC,YAAG,MAAM,GAAQ,EAC7B,KAAK,EACL,sBAAsB,IAAI,KAAC,kBAAkB,KAAG,EAChD,QAAQ,IAAI,KAAC,QAAQ,IAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAI,IAClG,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NotificationPanelProps } from './types.js';
|
|
2
|
+
export declare const NotificationPanel: ({ filter, onFilter, loading, error, visible, onClose, ...props }: NotificationPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=NotificationPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,GAAI,kEAAkE,sBAAsB,4CA8BzH,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatedHeight } from '@stack-spot/portal-components/AnimatedHeight';
|
|
3
|
+
import { ErrorFeedback } from '@stack-spot/portal-components/error';
|
|
4
|
+
import { NotificationList, useNotificationController } from '@stack-spot/portal-components/Notifications';
|
|
5
|
+
import { ScrollView } from '@stack-spot/portal-components/ScrollView';
|
|
6
|
+
import { NotificationPanelHeader } from './NotificationPanelHeader.js';
|
|
7
|
+
import { NotificationPanelFooter } from './NotificationsPanelFooter.js';
|
|
8
|
+
import { StyledBackdrop } from './styled.js';
|
|
9
|
+
export const NotificationPanel = ({ filter, onFilter, loading, error, visible, onClose, ...props }) => {
|
|
10
|
+
const controller = useNotificationController();
|
|
11
|
+
return (_jsx(StyledBackdrop, { visible: visible, onClose: onClose, persistent: true, children: _jsx(AnimatedHeight, { className: "notification-panel", visible: visible, header: _jsx(NotificationPanelHeader, { filter: filter, onChangeFilter: onFilter, onClose: onClose }), footer: _jsx(NotificationPanelFooter, { onClose: onClose }), children: _jsx(ScrollView, { direction: "vertical", style: { maxHeight: 'calc(100vh - 300px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id), onUncommit: id => controller.markAsUncommitted(id), onClickViewNotification: () => {
|
|
12
|
+
onClose();
|
|
13
|
+
controller.config.onClickViewNotification?.();
|
|
14
|
+
}, onClickAction: (id) => {
|
|
15
|
+
onClose();
|
|
16
|
+
controller.config.onClickAction?.(id);
|
|
17
|
+
} }) }) }) }));
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=NotificationPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationPanel.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAA;AACrE,OAAO,EAAE,uBAAuB,EAAE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C,EACD,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE;wBACpB,OAAO,EAAE,CAAA;wBACT,UAAU,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAA;oBACvC,CAAC,GACD,GACS,GACE,GACF,CAClB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationPanelHeader.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanelHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAqB,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAwBzE,eAAO,MAAM,uBAAuB,GAAI,qCAAqC,4BAA4B,4CAuBxG,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Flex, IconBox, Text } from '@citric/core';
|
|
3
|
+
import { TimesMini } from '@citric/icons';
|
|
4
|
+
import { IconButton } from '@citric/ui';
|
|
5
|
+
import { CLOSE_OVERLAY_ID } from '../OverlayContent.js';
|
|
6
|
+
import { useNotificationsDictionary } from './dictionary.js';
|
|
7
|
+
const FilterButton = ({ current, onChangeFilter, value }) => {
|
|
8
|
+
const t = useNotificationsDictionary();
|
|
9
|
+
const active = current === value;
|
|
10
|
+
return (_jsx(Button, { appearance: "text", role: "button", "aria-label": t[`${value}.ariaLabel`], "aria-pressed": active, onClick: () => onChangeFilter(value), className: "filter-btn", children: _jsx(Flex, { flexDirection: "row", style: { gap: '8px' }, alignItems: "center", children: _jsx(Text, { colorScheme: "inverse", appearance: "microtext1", children: t[`${value}.label`] }) }) }));
|
|
11
|
+
};
|
|
12
|
+
export const NotificationPanelHeader = ({ filter, onChangeFilter, onClose }) => {
|
|
13
|
+
const t = useNotificationsDictionary();
|
|
14
|
+
return (_jsxs(Flex, { flexDirection: "column", children: [_jsxs(Flex, { justifyContent: "space-between", children: [_jsx(Text, { appearance: "h4", as: "h2", children: t.notifications }), _jsx(IconButton, { id: CLOSE_OVERLAY_ID, "aria-label": t.close, onClick: onClose, sx: { borderRadius: '50%' }, children: _jsx(IconBox, { size: "xs", children: _jsx(TimesMini, {}) }) })] }), _jsxs("ul", { className: "filter-list", children: [_jsx("li", { children: _jsx(FilterButton, { current: filter, onChangeFilter: onChangeFilter, value: "ALL" }) }), _jsx("li", { children: _jsx(FilterButton, { current: filter, onChangeFilter: onChangeFilter, value: "UNREAD" }) }), _jsx("li", { children: _jsx(FilterButton, { current: filter, onChangeFilter: onChangeFilter, value: "HIGH" }) }), _jsx("li", { children: _jsx(FilterButton, { current: filter, onChangeFilter: onChangeFilter, value: "MEDIUM" }) }), _jsx("li", { children: _jsx(FilterButton, { current: filter, onChangeFilter: onChangeFilter, value: "LOW" }) })] })] }));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=NotificationPanelHeader.js.map
|