@stack-spot/portal-components 0.0.17 → 1.0.0-dev.1768482754546
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 +670 -0
- package/dist/components/AnimatedHeight.d.ts +58 -0
- package/dist/components/AnimatedHeight.d.ts.map +1 -0
- package/dist/components/AnimatedHeight.js +105 -0
- package/dist/components/AnimatedHeight.js.map +1 -0
- package/dist/components/AsyncContent.d.ts +46 -0
- package/dist/components/AsyncContent.d.ts.map +1 -0
- package/dist/components/AsyncContent.js +34 -0
- package/dist/components/AsyncContent.js.map +1 -0
- package/dist/components/BannerWarning.d.ts +11 -2
- package/dist/components/BannerWarning.d.ts.map +1 -1
- package/dist/components/BannerWarning.js +45 -3
- package/dist/components/BannerWarning.js.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts +10 -2
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +7 -5
- package/dist/components/Breadcrumb/index.js.map +1 -1
- package/dist/components/Breadcrumb/styled.d.ts +1 -2
- package/dist/components/Breadcrumb/styled.d.ts.map +1 -1
- package/dist/components/Breadcrumb/styled.js +1 -0
- package/dist/components/Breadcrumb/styled.js.map +1 -1
- package/dist/components/ButtonLoading.d.ts +11 -0
- package/dist/components/ButtonLoading.d.ts.map +1 -0
- package/dist/components/ButtonLoading.js +5 -0
- package/dist/components/ButtonLoading.js.map +1 -0
- package/dist/components/ChatBot.d.ts +5 -0
- package/dist/components/ChatBot.d.ts.map +1 -1
- package/dist/components/ChatBot.js +11 -6
- package/dist/components/ChatBot.js.map +1 -1
- package/dist/components/ContentValidateFilter.d.ts +6 -0
- package/dist/components/ContentValidateFilter.d.ts.map +1 -0
- package/dist/components/ContentValidateFilter.js +8 -0
- package/dist/components/ContentValidateFilter.js.map +1 -0
- package/dist/components/FadingOverflow.d.ts +37 -0
- package/dist/components/FadingOverflow.d.ts.map +1 -0
- package/dist/components/FadingOverflow.js +228 -0
- package/dist/components/FadingOverflow.js.map +1 -0
- package/dist/components/FileTreeView/More.d.ts +23 -0
- package/dist/components/FileTreeView/More.d.ts.map +1 -0
- package/dist/components/FileTreeView/More.js +55 -0
- package/dist/components/FileTreeView/More.js.map +1 -0
- package/dist/components/FileTreeView/index.d.ts +32 -0
- package/dist/components/FileTreeView/index.d.ts.map +1 -0
- package/dist/components/FileTreeView/index.js +91 -0
- package/dist/components/FileTreeView/index.js.map +1 -0
- package/dist/components/InfiniteScroll.d.ts +11 -0
- package/dist/components/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/InfiniteScroll.js +14 -0
- package/dist/components/InfiniteScroll.js.map +1 -0
- package/dist/components/InfoMaintenanceBanner.d.ts +8 -0
- package/dist/components/InfoMaintenanceBanner.d.ts.map +1 -0
- package/dist/components/InfoMaintenanceBanner.js +19 -0
- package/dist/components/InfoMaintenanceBanner.js.map +1 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.d.ts +11 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.js +77 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.js.map +1 -0
- package/dist/components/LazyMarkdown/CodeViewer.d.ts +24 -0
- package/dist/components/LazyMarkdown/CodeViewer.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/CodeViewer.js +122 -0
- package/dist/components/LazyMarkdown/CodeViewer.js.map +1 -0
- package/dist/components/LazyMarkdown/Markdown.d.ts +19 -0
- package/dist/components/LazyMarkdown/Markdown.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/Markdown.js +96 -0
- package/dist/components/LazyMarkdown/Markdown.js.map +1 -0
- package/dist/components/LazyMarkdown/MarkdownButton.d.ts +19 -0
- package/dist/components/LazyMarkdown/MarkdownButton.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/MarkdownButton.js +9 -0
- package/dist/components/LazyMarkdown/MarkdownButton.js.map +1 -0
- package/dist/components/LazyMarkdown/Video.d.ts +11 -0
- package/dist/components/LazyMarkdown/Video.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/Video.js +10 -0
- package/dist/components/LazyMarkdown/Video.js.map +1 -0
- package/dist/components/LazyMarkdown/index.d.ts +10 -0
- package/dist/components/LazyMarkdown/index.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/index.js +8 -0
- package/dist/components/LazyMarkdown/index.js.map +1 -0
- package/dist/components/Placeholder.d.ts +28 -0
- package/dist/components/Placeholder.d.ts.map +1 -0
- package/dist/components/Placeholder.js +32 -0
- package/dist/components/Placeholder.js.map +1 -0
- package/dist/components/ScrollView.d.ts +31 -0
- package/dist/components/ScrollView.d.ts.map +1 -0
- package/dist/components/ScrollView.js +30 -0
- package/dist/components/ScrollView.js.map +1 -0
- package/dist/components/Select/BadgeItem.d.ts +4 -0
- package/dist/components/Select/BadgeItem.d.ts.map +1 -0
- package/dist/components/Select/BadgeItem.js +28 -0
- package/dist/components/Select/BadgeItem.js.map +1 -0
- package/dist/components/Select/ClearInput.d.ts +3 -0
- package/dist/components/Select/ClearInput.d.ts.map +1 -0
- package/dist/components/Select/ClearInput.js +18 -0
- package/dist/components/Select/ClearInput.js.map +1 -0
- package/dist/components/Select/CloseItem.d.ts +3 -0
- package/dist/components/Select/CloseItem.d.ts.map +1 -0
- package/dist/components/Select/CloseItem.js +26 -0
- package/dist/components/Select/CloseItem.js.map +1 -0
- package/dist/components/Select/CreatableSelect.d.ts +16 -0
- package/dist/components/Select/CreatableSelect.d.ts.map +1 -0
- package/dist/components/Select/CreatableSelect.js +114 -0
- package/dist/components/Select/CreatableSelect.js.map +1 -0
- package/dist/components/Select/CustomMenu.d.ts +8 -0
- package/dist/components/Select/CustomMenu.d.ts.map +1 -0
- package/dist/components/Select/CustomMenu.js +4 -0
- package/dist/components/Select/CustomMenu.js.map +1 -0
- package/dist/components/Select/LabelItem.d.ts +3 -0
- package/dist/components/Select/LabelItem.d.ts.map +1 -0
- package/dist/components/Select/LabelItem.js +4 -0
- package/dist/components/Select/LabelItem.js.map +1 -0
- package/dist/components/Select/MultiValue.d.ts +3 -0
- package/dist/components/Select/MultiValue.d.ts.map +1 -0
- package/dist/components/Select/MultiValue.js +27 -0
- package/dist/components/Select/MultiValue.js.map +1 -0
- package/dist/components/Select/SelectInfiniteScroll.d.ts +14 -0
- package/dist/components/Select/SelectInfiniteScroll.d.ts.map +1 -0
- package/dist/components/Select/SelectInfiniteScroll.js +31 -0
- package/dist/components/Select/SelectInfiniteScroll.js.map +1 -0
- package/dist/components/Select/SelectSearch.d.ts +11 -0
- package/dist/components/Select/SelectSearch.d.ts.map +1 -0
- package/dist/components/Select/SelectSearch.js +156 -0
- package/dist/components/Select/SelectSearch.js.map +1 -0
- package/dist/components/Select/index.d.ts +6 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Select/types.d.ts +7 -0
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Select/types.js +2 -0
- package/dist/components/Select/types.js.map +1 -0
- package/dist/components/SelectionList.d.ts +151 -0
- package/dist/components/SelectionList.d.ts.map +1 -0
- package/dist/components/SelectionList.js +180 -0
- package/dist/components/SelectionList.js.map +1 -0
- package/dist/components/StatusCircle.d.ts +24 -0
- package/dist/components/StatusCircle.d.ts.map +1 -0
- package/dist/components/StatusCircle.js +44 -0
- package/dist/components/StatusCircle.js.map +1 -0
- package/dist/components/Stepper/Navigation.d.ts +35 -0
- package/dist/components/Stepper/Navigation.d.ts.map +1 -0
- package/dist/components/Stepper/Navigation.js +41 -0
- package/dist/components/Stepper/Navigation.js.map +1 -0
- package/dist/components/Stepper/Step.d.ts +18 -0
- package/dist/components/Stepper/Step.d.ts.map +1 -0
- package/dist/components/Stepper/Step.js +13 -0
- package/dist/components/Stepper/Step.js.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +45 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.js +57 -0
- package/dist/components/Stepper/Stepper.js.map +1 -0
- package/dist/components/Stepper/headers.d.ts +19 -0
- package/dist/components/Stepper/headers.d.ts.map +1 -0
- package/dist/components/Stepper/headers.js +40 -0
- package/dist/components/Stepper/headers.js.map +1 -0
- package/dist/components/Stepper/index.d.ts +4 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Stepper/index.js +4 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/Table/HeaderItem.d.ts +18 -0
- package/dist/components/Table/HeaderItem.d.ts.map +1 -0
- package/dist/components/Table/HeaderItem.js +14 -0
- package/dist/components/Table/HeaderItem.js.map +1 -0
- package/dist/components/Table/SettingsVerticalMenu.d.ts +14 -0
- package/dist/components/Table/SettingsVerticalMenu.d.ts.map +1 -0
- package/dist/components/Table/SettingsVerticalMenu.js +14 -0
- package/dist/components/Table/SettingsVerticalMenu.js.map +1 -0
- package/dist/components/Table/StyledLinkTable.d.ts +5 -0
- package/dist/components/Table/StyledLinkTable.d.ts.map +1 -0
- package/dist/components/Table/StyledLinkTable.js +13 -0
- package/dist/components/Table/StyledLinkTable.js.map +1 -0
- package/dist/components/Table/TableData.d.ts +37 -0
- package/dist/components/Table/TableData.d.ts.map +1 -0
- package/dist/components/Table/TableData.js +84 -0
- package/dist/components/Table/TableData.js.map +1 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +3 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/TimelineSection.d.ts +24 -0
- package/dist/components/TimelineSection.d.ts.map +1 -0
- package/dist/components/TimelineSection.js +37 -0
- package/dist/components/TimelineSection.js.map +1 -0
- package/dist/components/error/ErrorFeedback.d.ts +58 -0
- package/dist/components/error/ErrorFeedback.d.ts.map +1 -0
- package/dist/components/error/ErrorFeedback.js +110 -0
- package/dist/components/error/ErrorFeedback.js.map +1 -0
- package/dist/components/error/NotFound.d.ts +4 -0
- package/dist/components/error/NotFound.d.ts.map +1 -0
- package/dist/components/error/NotFound.js +19 -0
- package/dist/components/error/NotFound.js.map +1 -0
- package/dist/components/error/UnderMaintenance.d.ts +4 -0
- package/dist/components/error/UnderMaintenance.d.ts.map +1 -0
- package/dist/components/error/UnderMaintenance.js +25 -0
- package/dist/components/error/UnderMaintenance.js.map +1 -0
- package/dist/components/error/index.d.ts +4 -0
- package/dist/components/error/index.d.ts.map +1 -0
- package/dist/components/error/index.js +4 -0
- package/dist/components/error/index.js.map +1 -0
- package/dist/components/form/Form/Form.d.ts +15 -0
- package/dist/components/form/Form/Form.d.ts.map +1 -0
- package/dist/components/form/Form/Form.js +48 -0
- package/dist/components/form/Form/Form.js.map +1 -0
- package/dist/components/form/Form/FormGroup.d.ts +37 -0
- package/dist/components/form/Form/FormGroup.d.ts.map +1 -0
- package/dist/components/form/Form/FormGroup.js +72 -0
- package/dist/components/form/Form/FormGroup.js.map +1 -0
- package/dist/components/form/Form/index.d.ts +3 -0
- package/dist/components/form/Form/index.d.ts.map +1 -0
- package/dist/components/form/Form/index.js +3 -0
- package/dist/components/form/Form/index.js.map +1 -0
- package/dist/components/form/SearchInput.d.ts +9 -0
- package/dist/components/form/SearchInput.d.ts.map +1 -0
- package/dist/components/form/SearchInput.js +28 -0
- package/dist/components/form/SearchInput.js.map +1 -0
- package/dist/components/form/Select/CustomSelect.d.ts +81 -0
- package/dist/components/form/Select/CustomSelect.d.ts.map +1 -0
- package/dist/components/form/Select/CustomSelect.js +178 -0
- package/dist/components/form/Select/CustomSelect.js.map +1 -0
- package/dist/components/form/Select/DetailedSelect.d.ts +65 -0
- package/dist/components/form/Select/DetailedSelect.d.ts.map +1 -0
- package/dist/components/form/Select/DetailedSelect.js +80 -0
- package/dist/components/form/Select/DetailedSelect.js.map +1 -0
- package/dist/components/form/Select/Select.d.ts +47 -0
- package/dist/components/form/Select/Select.d.ts.map +1 -0
- package/dist/components/form/Select/Select.js +62 -0
- package/dist/components/form/Select/Select.js.map +1 -0
- package/dist/components/form/Select/index.d.ts +5 -0
- package/dist/components/form/Select/index.d.ts.map +1 -0
- package/dist/components/form/Select/index.js +5 -0
- package/dist/components/form/Select/index.js.map +1 -0
- package/dist/components/form/Select/styled.d.ts +5 -0
- package/dist/components/form/Select/styled.d.ts.map +1 -0
- package/dist/components/form/Select/styled.js +165 -0
- package/dist/components/form/Select/styled.js.map +1 -0
- package/dist/components/form/Select/types.d.ts +103 -0
- package/dist/components/form/Select/types.d.ts.map +1 -0
- package/dist/components/form/Select/types.js +2 -0
- package/dist/components/form/Select/types.js.map +1 -0
- package/dist/components/form/Select/utils.d.ts +3 -0
- package/dist/components/form/Select/utils.d.ts.map +1 -0
- package/dist/components/form/Select/utils.js +20 -0
- package/dist/components/form/Select/utils.js.map +1 -0
- package/dist/components/notification/NotificationComponent.d.ts +31 -0
- package/dist/components/notification/NotificationComponent.d.ts.map +1 -0
- package/dist/components/notification/NotificationComponent.js +176 -0
- package/dist/components/notification/NotificationComponent.js.map +1 -0
- package/dist/components/notification/NotificationItem.d.ts +51 -0
- package/dist/components/notification/NotificationItem.d.ts.map +1 -0
- package/dist/components/notification/NotificationItem.js +165 -0
- package/dist/components/notification/NotificationItem.js.map +1 -0
- package/dist/components/notification/NotificationList.d.ts +47 -0
- package/dist/components/notification/NotificationList.d.ts.map +1 -0
- package/dist/components/notification/NotificationList.js +82 -0
- package/dist/components/notification/NotificationList.js.map +1 -0
- package/dist/components/notification/NotificationPlaceholder.d.ts +13 -0
- package/dist/components/notification/NotificationPlaceholder.d.ts.map +1 -0
- package/dist/components/notification/NotificationPlaceholder.js +34 -0
- package/dist/components/notification/NotificationPlaceholder.js.map +1 -0
- package/dist/components/notification/types.d.ts +60 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/notification/types.js +7 -0
- package/dist/components/notification/types.js.map +1 -0
- package/dist/containers/NotificationsPage.d.ts +2 -0
- package/dist/containers/NotificationsPage.d.ts.map +1 -0
- package/dist/containers/NotificationsPage.js +71 -0
- package/dist/containers/NotificationsPage.js.map +1 -0
- package/dist/context/anchor.d.ts +27 -0
- package/dist/context/anchor.d.ts.map +1 -0
- package/dist/context/anchor.js +23 -0
- package/dist/context/anchor.js.map +1 -0
- package/dist/context/loading.d.ts +27 -0
- package/dist/context/loading.d.ts.map +1 -0
- package/dist/context/loading.js +24 -0
- package/dist/context/loading.js.map +1 -0
- package/dist/context/notification/LazyNotificationList.d.ts +28 -0
- package/dist/context/notification/LazyNotificationList.d.ts.map +1 -0
- package/dist/context/notification/LazyNotificationList.js +136 -0
- package/dist/context/notification/LazyNotificationList.js.map +1 -0
- package/dist/context/notification/NotificationController.d.ts +25 -0
- package/dist/context/notification/NotificationController.d.ts.map +1 -0
- package/dist/context/notification/NotificationController.js +153 -0
- package/dist/context/notification/NotificationController.js.map +1 -0
- package/dist/context/notification/context.d.ts +8 -0
- package/dist/context/notification/context.d.ts.map +1 -0
- package/dist/context/notification/context.js +12 -0
- package/dist/context/notification/context.js.map +1 -0
- package/dist/context/notification/hooks.d.ts +18 -0
- package/dist/context/notification/hooks.d.ts.map +1 -0
- package/dist/context/notification/hooks.js +92 -0
- package/dist/context/notification/hooks.js.map +1 -0
- package/dist/context/notification/types.d.ts +65 -0
- package/dist/context/notification/types.d.ts.map +1 -0
- package/dist/context/notification/types.js +2 -0
- package/dist/context/notification/types.js.map +1 -0
- package/dist/hooks/date.d.ts +18 -0
- package/dist/hooks/date.d.ts.map +1 -0
- package/dist/hooks/date.js +68 -0
- package/dist/hooks/date.js.map +1 -0
- package/dist/hooks/keyboard.d.ts +64 -0
- package/dist/hooks/keyboard.d.ts.map +1 -0
- package/dist/hooks/keyboard.js +84 -0
- package/dist/hooks/keyboard.js.map +1 -0
- package/dist/hooks/manual-render.d.ts +8 -0
- package/dist/hooks/manual-render.d.ts.map +1 -0
- package/dist/hooks/manual-render.js +10 -0
- package/dist/hooks/manual-render.js.map +1 -0
- package/dist/hooks/service-now.d.ts +32 -1
- package/dist/hooks/service-now.d.ts.map +1 -1
- package/dist/hooks/service-now.js +58 -18
- package/dist/hooks/service-now.js.map +1 -1
- package/dist/hooks/text.d.ts +9 -0
- package/dist/hooks/text.d.ts.map +1 -0
- package/dist/hooks/text.js +24 -0
- package/dist/hooks/text.js.map +1 -0
- package/dist/hooks/title.d.ts +13 -0
- package/dist/hooks/title.d.ts.map +1 -1
- package/dist/hooks/title.js +13 -0
- package/dist/hooks/title.js.map +1 -1
- package/dist/hooks/use-effect-once.d.ts.map +1 -1
- package/dist/hooks/use-effect-once.js.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/notifications.d.ts +11 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +10 -0
- package/dist/notifications.js.map +1 -0
- package/dist/svg/AI.d.ts +8 -0
- package/dist/svg/AI.d.ts.map +1 -0
- package/dist/svg/AI.js +15 -0
- package/dist/svg/AI.js.map +1 -0
- package/dist/svg/CS.d.ts +8 -0
- package/dist/svg/CS.d.ts.map +1 -0
- package/dist/svg/CS.js +15 -0
- package/dist/svg/CS.js.map +1 -0
- package/dist/svg/EDP.d.ts +8 -0
- package/dist/svg/EDP.d.ts.map +1 -0
- package/dist/svg/EDP.js +15 -0
- package/dist/svg/EDP.js.map +1 -0
- package/dist/svg/Forbidden.d.ts +5 -0
- package/dist/svg/Forbidden.d.ts.map +1 -0
- package/dist/svg/Forbidden.js +4 -0
- package/dist/svg/Forbidden.js.map +1 -0
- package/dist/svg/GenericPlaceholder.d.ts +7 -0
- package/dist/svg/GenericPlaceholder.d.ts.map +1 -0
- package/dist/svg/GenericPlaceholder.js +4 -0
- package/dist/svg/GenericPlaceholder.js.map +1 -0
- package/dist/svg/HUB.d.ts +8 -0
- package/dist/svg/HUB.d.ts.map +1 -0
- package/dist/svg/HUB.js +15 -0
- package/dist/svg/HUB.js.map +1 -0
- package/dist/svg/Logo.d.ts +5 -0
- package/dist/svg/Logo.d.ts.map +1 -0
- package/dist/svg/Logo.js +8 -0
- package/dist/svg/Logo.js.map +1 -0
- package/dist/svg/MiniLogo.d.ts +8 -0
- package/dist/svg/MiniLogo.d.ts.map +1 -0
- package/dist/svg/MiniLogo.js +6 -0
- package/dist/svg/MiniLogo.js.map +1 -0
- package/dist/svg/NotFound.d.ts +5 -0
- package/dist/svg/NotFound.d.ts.map +1 -0
- package/dist/svg/NotFound.js +4 -0
- package/dist/svg/NotFound.js.map +1 -0
- package/dist/svg/ServerError.d.ts +5 -0
- package/dist/svg/ServerError.d.ts.map +1 -0
- package/dist/svg/ServerError.js +4 -0
- package/dist/svg/ServerError.js.map +1 -0
- package/dist/svg/Unauthenticated.d.ts +5 -0
- package/dist/svg/Unauthenticated.d.ts.map +1 -0
- package/dist/svg/Unauthenticated.js +4 -0
- package/dist/svg/Unauthenticated.js.map +1 -0
- package/dist/svg/index.d.ts +12 -0
- package/dist/svg/index.d.ts.map +1 -0
- package/dist/svg/index.js +12 -0
- package/dist/svg/index.js.map +1 -0
- package/dist/utils/accessibility.d.ts +75 -0
- package/dist/utils/accessibility.d.ts.map +1 -0
- package/dist/utils/accessibility.js +123 -0
- package/dist/utils/accessibility.js.map +1 -0
- package/dist/utils/cookie.d.ts +34 -0
- package/dist/utils/cookie.d.ts.map +1 -0
- package/dist/utils/cookie.js +69 -0
- package/dist/utils/cookie.js.map +1 -0
- package/dist/utils/promise.d.ts +2 -0
- package/dist/utils/promise.d.ts.map +1 -0
- package/dist/utils/promise.js +6 -0
- package/dist/utils/promise.js.map +1 -0
- package/dist/utils/read-file.d.ts +2 -0
- package/dist/utils/read-file.d.ts.map +1 -0
- package/dist/utils/read-file.js +14 -0
- package/dist/utils/read-file.js.map +1 -0
- package/package.dev.json +3 -0
- package/package.json +53 -14
- package/package.stg.json +3 -0
- package/readme.md +55 -13
- package/src/components/AnimatedHeight.tsx +174 -0
- package/src/components/AsyncContent.tsx +78 -0
- package/src/components/BannerWarning.tsx +89 -19
- package/src/components/Breadcrumb/index.tsx +20 -5
- package/src/components/Breadcrumb/styled.ts +2 -1
- package/src/components/ButtonLoading.tsx +29 -0
- package/src/components/ChatBot.tsx +12 -7
- package/src/components/ContentValidateFilter.tsx +15 -0
- package/src/components/FadingOverflow.tsx +265 -0
- package/src/components/FileTreeView/More.tsx +114 -0
- package/src/components/FileTreeView/index.tsx +186 -0
- package/src/components/InfiniteScroll.tsx +24 -0
- package/src/components/InfoMaintenanceBanner.tsx +25 -0
- package/src/components/LazyMarkdown/BlockquoteMd.tsx +107 -0
- package/src/components/LazyMarkdown/CodeViewer.tsx +161 -0
- package/src/components/LazyMarkdown/Markdown.tsx +122 -0
- package/src/components/LazyMarkdown/MarkdownButton.tsx +24 -0
- package/src/components/LazyMarkdown/Video.tsx +13 -0
- package/src/components/LazyMarkdown/index.tsx +21 -0
- package/src/components/Placeholder.tsx +124 -0
- package/src/components/ScrollView.tsx +57 -0
- package/src/components/Select/BadgeItem.tsx +58 -0
- package/src/components/Select/ClearInput.tsx +24 -0
- package/src/components/Select/CloseItem.tsx +38 -0
- package/src/components/Select/CreatableSelect.tsx +155 -0
- package/src/components/Select/CustomMenu.tsx +16 -0
- package/src/components/Select/LabelItem.tsx +8 -0
- package/src/components/Select/MultiValue.tsx +49 -0
- package/src/components/Select/SelectInfiniteScroll.tsx +82 -0
- package/src/components/Select/SelectSearch.tsx +195 -0
- package/src/components/Select/index.tsx +7 -0
- package/src/components/Select/types.ts +8 -0
- package/src/components/SelectionList.tsx +427 -0
- package/src/components/StatusCircle.tsx +67 -0
- package/src/components/Stepper/Navigation.tsx +97 -0
- package/src/components/Stepper/Step.tsx +30 -0
- package/src/components/Stepper/Stepper.tsx +113 -0
- package/src/components/Stepper/headers.tsx +64 -0
- package/src/components/Stepper/index.ts +3 -0
- package/src/components/Table/HeaderItem.tsx +52 -0
- package/src/components/Table/SettingsVerticalMenu.tsx +50 -0
- package/src/components/Table/StyledLinkTable.tsx +22 -0
- package/src/components/Table/TableData.tsx +251 -0
- package/src/components/Table/index.tsx +2 -0
- package/src/components/TimelineSection.tsx +66 -0
- package/src/components/error/ErrorFeedback.tsx +217 -0
- package/src/components/error/NotFound.tsx +24 -0
- package/src/components/error/UnderMaintenance.tsx +30 -0
- package/src/components/error/index.ts +4 -0
- package/src/components/form/Form/Form.tsx +101 -0
- package/src/components/form/Form/FormGroup.tsx +221 -0
- package/src/components/form/Form/index.ts +2 -0
- package/src/components/form/SearchInput.tsx +69 -0
- package/src/components/form/Select/CustomSelect.tsx +232 -0
- package/src/components/form/Select/DetailedSelect.tsx +85 -0
- package/src/components/form/Select/Select.tsx +67 -0
- package/src/components/form/Select/index.ts +4 -0
- package/src/components/form/Select/styled.ts +165 -0
- package/src/components/form/Select/types.ts +112 -0
- package/src/components/form/Select/utils.tsx +28 -0
- package/src/components/notification/NotificationComponent.tsx +340 -0
- package/src/components/notification/NotificationItem.tsx +353 -0
- package/src/components/notification/NotificationList.tsx +185 -0
- package/src/components/notification/NotificationPlaceholder.tsx +60 -0
- package/src/components/notification/types.ts +72 -0
- package/src/containers/NotificationsPage.tsx +120 -0
- package/src/context/anchor.tsx +37 -0
- package/src/context/loading.tsx +36 -0
- package/src/context/notification/LazyNotificationList.ts +103 -0
- package/src/context/notification/NotificationController.ts +119 -0
- package/src/context/notification/context.tsx +23 -0
- package/src/context/notification/hooks.ts +98 -0
- package/src/context/notification/types.ts +71 -0
- package/src/hooks/date.ts +68 -0
- package/src/hooks/keyboard.tsx +128 -0
- package/src/hooks/manual-render.tsx +10 -0
- package/src/hooks/service-now.tsx +64 -19
- package/src/hooks/text.tsx +30 -0
- package/src/hooks/title.tsx +13 -0
- package/src/index.ts +14 -6
- package/src/notifications.ts +11 -0
- package/src/svg/AI.tsx +41 -0
- package/src/svg/CS.tsx +48 -0
- package/src/svg/EDP.tsx +31 -0
- package/src/svg/Forbidden.tsx +22 -0
- package/src/svg/GenericPlaceholder.tsx +16 -0
- package/src/svg/HUB.tsx +48 -0
- package/src/svg/Logo.tsx +16 -0
- package/src/svg/MiniLogo.tsx +12 -0
- package/src/svg/NotFound.tsx +16 -0
- package/src/svg/ServerError.tsx +33 -0
- package/src/svg/Unauthenticated.tsx +16 -0
- package/src/svg/index.ts +11 -0
- package/src/utils/accessibility.ts +135 -0
- package/src/utils/cookie.ts +73 -0
- package/src/utils/promise.ts +5 -0
- package/src/utils/read-file.ts +16 -0
- package/tsconfig.json +1 -0
- package/dist/BannerWarning.d.ts +0 -4
- package/dist/BannerWarning.d.ts.map +0 -1
- package/dist/BannerWarning.js +0 -6
- package/dist/BannerWarning.js.map +0 -1
- package/dist/Login.d.ts +0 -25
- package/dist/Login.d.ts.map +0 -1
- package/dist/Login.js +0 -104
- package/dist/Login.js.map +0 -1
- package/dist/MiniLogo.d.ts +0 -6
- package/dist/MiniLogo.d.ts.map +0 -1
- package/dist/MiniLogo.js +0 -4
- package/dist/MiniLogo.js.map +0 -1
- package/dist/components/Login.d.ts +0 -26
- package/dist/components/Login.d.ts.map +0 -1
- package/dist/components/Login.js +0 -100
- package/dist/components/Login.js.map +0 -1
- package/dist/components/MiniLogo.d.ts +0 -6
- package/dist/components/MiniLogo.d.ts.map +0 -1
- package/dist/components/MiniLogo.js +0 -4
- package/dist/components/MiniLogo.js.map +0 -1
- package/dist/components/src/components/BannerWarning.d.ts +0 -4
- package/dist/components/src/components/BannerWarning.d.ts.map +0 -1
- package/dist/components/src/components/BannerWarning.js +0 -6
- package/dist/components/src/components/BannerWarning.js.map +0 -1
- package/dist/components/src/components/Breadcrumb/index.d.ts +0 -42
- package/dist/components/src/components/Breadcrumb/index.d.ts.map +0 -1
- package/dist/components/src/components/Breadcrumb/index.js +0 -27
- package/dist/components/src/components/Breadcrumb/index.js.map +0 -1
- package/dist/components/src/components/Breadcrumb/styled.d.ts +0 -3
- package/dist/components/src/components/Breadcrumb/styled.d.ts.map +0 -1
- package/dist/components/src/components/Breadcrumb/styled.js +0 -36
- package/dist/components/src/components/Breadcrumb/styled.js.map +0 -1
- package/dist/components/src/components/ChatBot.d.ts +0 -2
- package/dist/components/src/components/ChatBot.d.ts.map +0 -1
- package/dist/components/src/components/ChatBot.js +0 -61
- package/dist/components/src/components/ChatBot.js.map +0 -1
- package/dist/components/src/components/Login.d.ts +0 -26
- package/dist/components/src/components/Login.d.ts.map +0 -1
- package/dist/components/src/components/Login.js +0 -100
- package/dist/components/src/components/Login.js.map +0 -1
- package/dist/components/src/components/MiniLogo.d.ts +0 -6
- package/dist/components/src/components/MiniLogo.d.ts.map +0 -1
- package/dist/components/src/components/MiniLogo.js +0 -4
- package/dist/components/src/components/MiniLogo.js.map +0 -1
- package/dist/components/src/components/tour/StepContainer.d.ts +0 -13
- package/dist/components/src/components/tour/StepContainer.d.ts.map +0 -1
- package/dist/components/src/components/tour/StepContainer.js +0 -48
- package/dist/components/src/components/tour/StepContainer.js.map +0 -1
- package/dist/components/src/components/tour/StepNavigation.d.ts +0 -13
- package/dist/components/src/components/tour/StepNavigation.d.ts.map +0 -1
- package/dist/components/src/components/tour/StepNavigation.js +0 -20
- package/dist/components/src/components/tour/StepNavigation.js.map +0 -1
- package/dist/components/src/components/tour/StepTitle.d.ts +0 -7
- package/dist/components/src/components/tour/StepTitle.d.ts.map +0 -1
- package/dist/components/src/components/tour/StepTitle.js +0 -5
- package/dist/components/src/components/tour/StepTitle.js.map +0 -1
- package/dist/components/src/components/tour/context.d.ts +0 -17
- package/dist/components/src/components/tour/context.d.ts.map +0 -1
- package/dist/components/src/components/tour/context.js +0 -48
- package/dist/components/src/components/tour/context.js.map +0 -1
- package/dist/components/src/components/tour/index.d.ts +0 -4
- package/dist/components/src/components/tour/index.d.ts.map +0 -1
- package/dist/components/src/components/tour/index.js +0 -4
- package/dist/components/src/components/tour/index.js.map +0 -1
- package/dist/components/src/components/tour/utils.d.ts +0 -13
- package/dist/components/src/components/tour/utils.d.ts.map +0 -1
- package/dist/components/src/components/tour/utils.js +0 -43
- package/dist/components/src/components/tour/utils.js.map +0 -1
- package/dist/components/src/hooks/service-now.d.ts +0 -24
- package/dist/components/src/hooks/service-now.d.ts.map +0 -1
- package/dist/components/src/hooks/service-now.js +0 -161
- package/dist/components/src/hooks/service-now.js.map +0 -1
- package/dist/components/src/hooks/title.d.ts +0 -3
- package/dist/components/src/hooks/title.d.ts.map +0 -1
- package/dist/components/src/hooks/title.js +0 -13
- package/dist/components/src/hooks/title.js.map +0 -1
- package/dist/components/src/hooks/use-effect-once.d.ts +0 -12
- package/dist/components/src/hooks/use-effect-once.d.ts.map +0 -1
- package/dist/components/src/hooks/use-effect-once.js +0 -40
- package/dist/components/src/hooks/use-effect-once.js.map +0 -1
- package/dist/components/src/index.d.ts +0 -9
- package/dist/components/src/index.d.ts.map +0 -1
- package/dist/components/src/index.js +0 -9
- package/dist/components/src/index.js.map +0 -1
- package/dist/components/tour/StepContainer.d.ts +0 -13
- package/dist/components/tour/StepContainer.d.ts.map +0 -1
- package/dist/components/tour/StepContainer.js +0 -48
- package/dist/components/tour/StepContainer.js.map +0 -1
- package/dist/components/tour/StepNavigation.d.ts +0 -13
- package/dist/components/tour/StepNavigation.d.ts.map +0 -1
- package/dist/components/tour/StepNavigation.js +0 -20
- package/dist/components/tour/StepNavigation.js.map +0 -1
- package/dist/components/tour/StepTitle.d.ts +0 -7
- package/dist/components/tour/StepTitle.d.ts.map +0 -1
- package/dist/components/tour/StepTitle.js +0 -5
- package/dist/components/tour/StepTitle.js.map +0 -1
- package/dist/components/tour/context.d.ts +0 -17
- package/dist/components/tour/context.d.ts.map +0 -1
- package/dist/components/tour/context.js +0 -48
- package/dist/components/tour/context.js.map +0 -1
- package/dist/components/tour/index.d.ts +0 -9
- package/dist/components/tour/index.d.ts.map +0 -1
- package/dist/components/tour/index.js +0 -4
- package/dist/components/tour/index.js.map +0 -1
- package/dist/components/tour/utils.d.ts +0 -13
- package/dist/components/tour/utils.d.ts.map +0 -1
- package/dist/components/tour/utils.js +0 -43
- package/dist/components/tour/utils.js.map +0 -1
- package/dist/layout/src/components/tour/PortalSwitcherStep.d.ts +0 -2
- package/dist/layout/src/components/tour/PortalSwitcherStep.d.ts.map +0 -1
- package/dist/layout/src/components/tour/PortalSwitcherStep.js +0 -30
- package/dist/layout/src/components/tour/PortalSwitcherStep.js.map +0 -1
- package/src/components/Login.tsx +0 -157
- package/src/components/MiniLogo.tsx +0 -32
- package/src/components/tour/StepContainer.tsx +0 -67
- package/src/components/tour/StepNavigation.tsx +0 -32
- package/src/components/tour/StepTitle.tsx +0 -17
- package/src/components/tour/context.tsx +0 -56
- package/src/components/tour/index.ts +0 -7
- package/src/components/tour/utils.tsx +0 -65
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/components/form/Select/styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA6C;;;YAGpE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY;;;;;;;;;;;;;;;;;;wBAkBtB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;wBAEtB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;0BAoBpB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;eACjC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;;;;;;;;0BAWX,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;8BACpB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAwDtB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;8BAIxB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4B/B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;;;;;;;;yBAWlB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,GAAG,CAAC;;;;;;CAMxD,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface GenericAccessibleLabel {
|
|
3
|
+
/**
|
|
4
|
+
* This is how the option's label will be rendered inside the dropdown list. This can be any React element.
|
|
5
|
+
*
|
|
6
|
+
* Attention: be careful, this should not have any important information that can't be represented through text (accessibility).
|
|
7
|
+
*/
|
|
8
|
+
option: React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* This is a required text representation of the option. This is used for accessibility.
|
|
11
|
+
*/
|
|
12
|
+
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* This is how the option's label will be rendered as the select current value.
|
|
15
|
+
*
|
|
16
|
+
* If not provided, will be rendered using `option`.
|
|
17
|
+
*/
|
|
18
|
+
selected?: React.ReactElement;
|
|
19
|
+
}
|
|
20
|
+
export interface DetailedLabel {
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
image?: React.ReactElement;
|
|
24
|
+
}
|
|
25
|
+
export type AccessibleLabel = string | DetailedLabel | GenericAccessibleLabel;
|
|
26
|
+
type FilterObjectByValueType<T, Type> = {
|
|
27
|
+
[K in keyof T as T[K] extends Type ? K : never]: T[K];
|
|
28
|
+
};
|
|
29
|
+
export type KeyOfType<Data, Type> = Data extends Record<string, any> ? keyof FilterObjectByValueType<Data, Type> : never;
|
|
30
|
+
interface BaseSelectProps<Option, Label extends AccessibleLabel> extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'value' | 'onChange'> {
|
|
31
|
+
/**
|
|
32
|
+
* The current value.
|
|
33
|
+
*/
|
|
34
|
+
value: Option | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The label for the empty option. The empty option sets the value to undefined.
|
|
37
|
+
*
|
|
38
|
+
* If this is not set, there won't be an empty option for this select.
|
|
39
|
+
*/
|
|
40
|
+
emptyOption?: Label;
|
|
41
|
+
/**
|
|
42
|
+
* The options to render in this selection menu.
|
|
43
|
+
*/
|
|
44
|
+
options: Option[] | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Provides the value of each option. This can be either a key of the option object or a function that receives the option and returns
|
|
47
|
+
* the value.
|
|
48
|
+
*
|
|
49
|
+
* This is required if the options don't have a relevant value returned by `toString()`.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* - `'id'`
|
|
53
|
+
* - `(option) => option.id`
|
|
54
|
+
*/
|
|
55
|
+
renderValue?: KeyOfType<Option, string> | ((item: NonNullable<Option>) => string);
|
|
56
|
+
/**
|
|
57
|
+
* Provides the label of each option. This can be either a key of the option object or a function that receives the option and returns
|
|
58
|
+
* the label.
|
|
59
|
+
*
|
|
60
|
+
* This is required if the options don't have a relevant value returned by `toString()`.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* - `'name'`
|
|
64
|
+
* - `(option) => option.name`
|
|
65
|
+
*/
|
|
66
|
+
renderLabel?: KeyOfType<Option, Label> | ((item: NonNullable<Option>) => Label);
|
|
67
|
+
/**
|
|
68
|
+
* Called when the value changes.
|
|
69
|
+
* @param value the new value.
|
|
70
|
+
*/
|
|
71
|
+
onChange: (value: Option | undefined) => void;
|
|
72
|
+
/**
|
|
73
|
+
* The maximum number of items before showing a vertical scroll bar.
|
|
74
|
+
* @default 6
|
|
75
|
+
*/
|
|
76
|
+
maxItems?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Whether or not the options are being loaded. The field will become disabled while isLoading is true.
|
|
79
|
+
*/
|
|
80
|
+
isLoading?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface OptionalSelectProps<Option, Label extends AccessibleLabel> extends BaseSelectProps<Option, Label> {
|
|
83
|
+
emptyOption: Label;
|
|
84
|
+
}
|
|
85
|
+
interface RequiredSelectProps<Option, Label extends AccessibleLabel> extends Omit<BaseSelectProps<Option, Label>, 'onChange'> {
|
|
86
|
+
emptyOption?: undefined;
|
|
87
|
+
value: Option | undefined;
|
|
88
|
+
onChange: (value: Option) => void;
|
|
89
|
+
}
|
|
90
|
+
export type SelectProps<Option> = OptionalSelectProps<Option, string> | RequiredSelectProps<Option, string>;
|
|
91
|
+
export type DetailedSelectProps<Option> = OptionalSelectProps<Option, DetailedLabel> | RequiredSelectProps<Option, DetailedLabel>;
|
|
92
|
+
export type CustomSelectProps<Option> = (OptionalSelectProps<Option, GenericAccessibleLabel> | RequiredSelectProps<Option, GenericAccessibleLabel>) & {
|
|
93
|
+
/**
|
|
94
|
+
* Controls the height of component when it's closed.
|
|
95
|
+
*
|
|
96
|
+
* Developer note: it would be nice to automatically calculate this instead of expecting a prop.
|
|
97
|
+
*
|
|
98
|
+
* @default '42px'
|
|
99
|
+
*/
|
|
100
|
+
height?: string;
|
|
101
|
+
};
|
|
102
|
+
export {};
|
|
103
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC/B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC5B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CAAC;CACrB;AAED,UAAU,mBAAmB,CAAC,MAAM,EAAE,KAAK,SAAS,eAAe,CAAE,SAAQ,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC;IACzG,WAAW,EAAE,KAAK,CAAC;CACpB;AAED,UAAU,mBAAmB,CAAC,MAAM,EAAE,KAAK,SAAS,eAAe,CAAE,SAAQ,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAC3H,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,MAAM,WAAW,CAAC,MAAM,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAC3G,MAAM,MAAM,mBAAmB,CAAC,MAAM,IAAI,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AACjI,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI,CACtC,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,CAAC,GACjD,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,CAAC,CACtD,GAAG;IACF;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/form/Select/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Select/utils.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEjE,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,sBAAsB,CAwBzE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '@citric/core';
|
|
3
|
+
export function parseLabel(label) {
|
|
4
|
+
if (typeof label === 'string') {
|
|
5
|
+
return {
|
|
6
|
+
option: _jsx(Text, { children: label }),
|
|
7
|
+
text: label,
|
|
8
|
+
selected: _jsx(Text, { className: "clipped-text", children: label }),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
if ('title' in label) {
|
|
12
|
+
return {
|
|
13
|
+
option: (_jsxs("div", { className: "detailed", children: [label.image && _jsx("div", { className: "image", children: label.image }), _jsxs("div", { className: "text-content", children: [_jsx(Text, { className: "title", children: label.title }), label.description && _jsx(Text, { className: "description", appearance: "microtext1", children: label.description })] })] })),
|
|
14
|
+
text: `${label.title}: ${label.description}`,
|
|
15
|
+
selected: _jsx(Text, { className: "clipped-text", children: label.title }),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
return label;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/form/Select/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGnC,MAAM,UAAU,UAAU,CAAC,KAAsB;IAC/C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,MAAM,EAAE,KAAC,IAAI,cAAE,KAAK,GAAQ;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAC,IAAI,IAAC,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ;SACxD,CAAA;IACH,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC;QACrB,OAAO;YACL,MAAM,EAAE,CACN,eAAK,SAAS,EAAC,UAAU,aACtB,KAAK,CAAC,KAAK,IAAI,cAAK,SAAS,EAAC,OAAO,YAAE,KAAK,CAAC,KAAK,GAAO,EAC1D,eAAK,SAAS,EAAC,cAAc,aAC3B,KAAC,IAAI,IAAC,SAAS,EAAC,OAAO,YAAE,KAAK,CAAC,KAAK,GAAQ,EAC3C,KAAK,CAAC,WAAW,IAAI,KAAC,IAAI,IAAC,SAAS,EAAC,aAAa,EAAC,UAAU,EAAC,YAAY,YAAE,KAAK,CAAC,WAAW,GAAQ,IAClG,IACF,CACP;YACD,IAAI,EAAE,GAAG,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,EAAE;YAC5C,QAAQ,EAAE,KAAC,IAAI,IAAC,SAAS,EAAC,cAAc,YAAE,KAAK,CAAC,KAAK,GAAQ;SAC9D,CAAA;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ErrorProps } from '../AsyncContent.js';
|
|
3
|
+
import { GetTenantNotificationsResponse, NotificationTypeFilters } from './types.js';
|
|
4
|
+
interface Props {
|
|
5
|
+
hasUnreadNotification?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
onMarkAsReadUnread: (notificationId: string, read: boolean, type: 'callToAction' | 'icon') => void;
|
|
9
|
+
notifications?: GetTenantNotificationsResponse[];
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
error?: any;
|
|
12
|
+
onClickViewNotifications: () => void;
|
|
13
|
+
onClickViewAll: () => void;
|
|
14
|
+
errorDetails: ErrorProps;
|
|
15
|
+
fetchNextPage: () => void;
|
|
16
|
+
hasNextPage: boolean;
|
|
17
|
+
type?: NotificationTypeFilters;
|
|
18
|
+
onUpdateType: (updatedType?: NotificationTypeFilters) => void;
|
|
19
|
+
placeholderComponent: ReactElement;
|
|
20
|
+
isSummary: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* NotificationComponent component that renders the notifications panel.
|
|
24
|
+
* It renders the notification icon and when clicked the notification modal is opened.
|
|
25
|
+
*
|
|
26
|
+
* @param props the component's props {@link Props}.
|
|
27
|
+
* @deprecated this functionality has been moved to the Layout library. This is now a property of the Header.
|
|
28
|
+
*/
|
|
29
|
+
export declare const NotificationComponent: ({ hasUnreadNotification, onMarkAsReadUnread, notifications, isLoading, error, type, onUpdateType, onClickViewNotifications, onClickViewAll, errorDetails, fetchNextPage, hasNextPage, placeholderComponent, isSummary, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=NotificationComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationComponent.d.ts","sourceRoot":"","sources":["../../../src/components/notification/NotificationComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAqC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAgB,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAK1D,OAAO,EAAE,8BAA8B,EAAE,uBAAuB,EAAc,MAAM,SAAS,CAAA;AAE7F,UAAU,KAAK;IACb,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAyID,UAAU,KAAK;IACb,kBAAkB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,KAAK,IAAI,CAAC;IACnG,aAAa,CAAC,EAAE,8BAA8B,EAAE,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,UAAU,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,YAAY,EAAE,CAAC,WAAW,CAAC,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC9D,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;CACpB;AAGD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,0NAKnC,KAAK,4CAwHP,CAAA"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Flex, IconBox, Text } from '@citric/core';
|
|
3
|
+
import { Bell, TimesMini } from '@citric/icons';
|
|
4
|
+
import { IconButton } from '@citric/ui';
|
|
5
|
+
import { listToClass, theme } from '@stack-spot/portal-theme';
|
|
6
|
+
import { useTranslate } from '@stack-spot/portal-translate';
|
|
7
|
+
import { useLayoutEffect, useRef, useState } from 'react';
|
|
8
|
+
import styled from 'styled-components';
|
|
9
|
+
import { AsyncContent } from '../AsyncContent.js';
|
|
10
|
+
import { InfiniteScroll } from '../InfiniteScroll.js';
|
|
11
|
+
import { ScrollView } from '../ScrollView.js';
|
|
12
|
+
import { StatusCircle } from '../StatusCircle.js';
|
|
13
|
+
import { NotificationItem } from './NotificationItem.js';
|
|
14
|
+
import { UnreadType } from './types.js';
|
|
15
|
+
const ANIMATION_DURATION_MS = 300;
|
|
16
|
+
const MAX_HEIGHT_TRANSITION = `max-height ease-in ${ANIMATION_DURATION_MS / 1000}s`;
|
|
17
|
+
const NotificationsComponent = styled.div `
|
|
18
|
+
max-height: 0;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
visibility: hidden;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: calc(var(--header-height) + 4px);
|
|
23
|
+
right: -270%;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
width: 400px;
|
|
26
|
+
transition: ${MAX_HEIGHT_TRANSITION}, opacity ${ANIMATION_DURATION_MS}ms ease-in-out, visibility 0s ${ANIMATION_DURATION_MS}ms;
|
|
27
|
+
|
|
28
|
+
&.visible {
|
|
29
|
+
visibility: visible;
|
|
30
|
+
min-height: 400px;
|
|
31
|
+
opacity: 1;
|
|
32
|
+
transition: ${MAX_HEIGHT_TRANSITION}, opacity ${ANIMATION_DURATION_MS}ms ease-in-out;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.content {
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
border: 1px solid ${theme.color.light[400]};
|
|
38
|
+
box-shadow: 4px 4px 48px ${theme.color.danger.contrastText};
|
|
39
|
+
background-color: ${theme.color.light[300]};
|
|
40
|
+
overflow-y: ${({ $scroll }) => ($scroll ? 'auto' : 'hidden')};
|
|
41
|
+
overflow-x: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
border-width: 8px 32px;
|
|
48
|
+
border-style: solid;
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
bottom: 100%;
|
|
51
|
+
left: 74%;
|
|
52
|
+
margin-left: -5px;
|
|
53
|
+
transform: rotate(180deg);
|
|
54
|
+
border-top-color: ${theme.color.light[400]};
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const Overlay = styled.div `
|
|
58
|
+
position: fixed;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
background-color: ${theme.color.primary.contrastText};
|
|
64
|
+
opacity: 0.6;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
`;
|
|
67
|
+
const StyledBox = styled(Box) `
|
|
68
|
+
width: 100%;
|
|
69
|
+
> div:first-child{
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
/**
|
|
74
|
+
* NotificationFilterButton component that renders a button to be used in quick filters for notifications.
|
|
75
|
+
*
|
|
76
|
+
* @param props the component's props {@link NotificationFilterButtonProps}.
|
|
77
|
+
*/
|
|
78
|
+
const NotificationFilterButton = (props) => {
|
|
79
|
+
const { type, onChangeFilterType, ariaLabel, label, enumType } = props;
|
|
80
|
+
return (_jsx(Button, { appearance: "text", role: "button", "aria-label": ariaLabel, "aria-pressed": type === enumType, onClick: () => onChangeFilterType(enumType), sx: { borderColor: type === enumType ? 'primary' : 'transparent' }, children: _jsx(Text, { colorScheme: "inverse", appearance: "microtext1", children: label }) }));
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* NotificationsFilter component that renders the filter options for notifications.
|
|
84
|
+
*
|
|
85
|
+
* @param props the component's props {@link NotificationsFilterProps}.
|
|
86
|
+
*/
|
|
87
|
+
const NotificationsFilter = ({ type, onChangeFilterType }) => {
|
|
88
|
+
const t = useTranslate(dictionary);
|
|
89
|
+
return (_jsxs(Flex, { alignItems: "center", sx: { gap: '4px' }, my: "5", children: [_jsx(Button, { "aria-pressed": !type, appearance: "text", role: "button", "aria-label": t.filterAll, onClick: () => onChangeFilterType(), sx: { borderColor: !type ? 'primary' : 'transparent' }, children: _jsx(Text, { colorScheme: "inverse", appearance: "microtext1", children: t.all }) }), _jsx(NotificationFilterButton, { type: type, onChangeFilterType: onChangeFilterType, ariaLabel: t.filterUnread, label: t.unread, enumType: UnreadType.Unread }), _jsx(NotificationFilterButton, { type: type, onChangeFilterType: onChangeFilterType, ariaLabel: t.filterHigh, label: t.high, enumType: 'HIGH' }), _jsx(NotificationFilterButton, { type: type, onChangeFilterType: onChangeFilterType, ariaLabel: t.filterMedium, label: t.medium, enumType: 'MEDIUM' }), _jsx(NotificationFilterButton, { type: type, onChangeFilterType: onChangeFilterType, ariaLabel: t.filterLow, label: t.low, enumType: 'LOW' })] }));
|
|
90
|
+
};
|
|
91
|
+
// fixme: remove this component in the next major
|
|
92
|
+
/**
|
|
93
|
+
* NotificationComponent component that renders the notifications panel.
|
|
94
|
+
* It renders the notification icon and when clicked the notification modal is opened.
|
|
95
|
+
*
|
|
96
|
+
* @param props the component's props {@link Props}.
|
|
97
|
+
* @deprecated this functionality has been moved to the Layout library. This is now a property of the Header.
|
|
98
|
+
*/
|
|
99
|
+
export const NotificationComponent = ({ hasUnreadNotification, onMarkAsReadUnread, notifications, isLoading, error, type, onUpdateType, onClickViewNotifications, onClickViewAll, errorDetails, fetchNextPage, hasNextPage, placeholderComponent, isSummary = false, }) => {
|
|
100
|
+
const t = useTranslate(dictionary);
|
|
101
|
+
const [visible, setVisible] = useState(false);
|
|
102
|
+
const seeAllButtonRef = useRef(null);
|
|
103
|
+
const updateType = (updatedType) => {
|
|
104
|
+
onUpdateType(updatedType);
|
|
105
|
+
};
|
|
106
|
+
useLayoutEffect(() => {
|
|
107
|
+
const handleKeyDown = (event) => {
|
|
108
|
+
if (event.key === 'Escape') {
|
|
109
|
+
const focusedElement = document.activeElement;
|
|
110
|
+
const notificationItems = document.querySelectorAll('[id^="notificationItem-"]');
|
|
111
|
+
let isFocusedOnNotificationItem = false;
|
|
112
|
+
notificationItems.forEach((item) => {
|
|
113
|
+
if (item.contains(focusedElement)) {
|
|
114
|
+
isFocusedOnNotificationItem = true;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
if (isFocusedOnNotificationItem) {
|
|
118
|
+
seeAllButtonRef?.current?.focus();
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
setVisible(false);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
126
|
+
return () => {
|
|
127
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
128
|
+
};
|
|
129
|
+
}, []);
|
|
130
|
+
return (_jsxs(Flex, { sx: { position: 'relative' }, children: [_jsx(IconButton, { "aria-label": t.openNotifications, onClick: () => {
|
|
131
|
+
onClickViewNotifications();
|
|
132
|
+
setVisible(!visible);
|
|
133
|
+
}, sx: { border: 'none', bg: 'transparent' }, "aria-expanded": visible, children: _jsx(IconBox, { size: "md", className: "notificationsTour", children: _jsx(Bell, {}) }) }), hasUnreadNotification && _jsx(Box, { sx: { position: 'absolute', right: '2px' }, "aria-label": t.hasUnread, children: _jsx(StatusCircle, { status: 'danger' }) }), visible && _jsx(Overlay, { onClick: () => setVisible(false) }), _jsx(NotificationsComponent, { className: listToClass(['notification-list', visible ? 'visible' : undefined]), "$scroll": true, "aria-hidden": !visible, children: _jsxs(Flex, { className: "content", p: 5, flexDirection: "column", justifyContent: "space-between", children: [_jsxs(Flex, { w: "100%", children: [_jsxs(Flex, { justifyContent: "space-between", w: "100%", children: [_jsx(Text, { appearance: "h4", children: t.notifications }), _jsx(IconButton, { onClick: () => setVisible(false), "aria-label": t.close, children: _jsx(IconBox, { size: "xs", children: _jsx(TimesMini, {}) }) })] }), _jsx(NotificationsFilter, { type: type, onChangeFilterType: updateType }), _jsx(AsyncContent, { error: error, errorDetails: errorDetails, loading: isLoading, children: notifications?.length ? _jsx(StyledBox, { children: _jsx(ScrollView, { id: "scrollableNotifications", direction: "vertical", style: { maxHeight: 'calc(100vh - 300px)' }, children: _jsx(InfiniteScroll, { dataLength: notifications?.length || 0, next: fetchNextPage, hasMore: hasNextPage, scrollableTarget: "scrollableNotifications", children: _jsx(Flex, { sx: { gap: '4px' }, mr: "3", flexDirection: "column", children: notifications?.map((item, index) => (_jsx(NotificationItem, { notification: item, id: `notificationItem-${index}`, isSummary: isSummary, onClickMarkReadUnread: (read, type) => onMarkAsReadUnread(item.id, read, type) }, item.id))) }) }) }) })
|
|
134
|
+
:
|
|
135
|
+
_jsx(_Fragment, { children: placeholderComponent }) })] }), _jsx(Flex, { w: "100%", pt: 3, children: _jsx(Button, { ref: seeAllButtonRef, size: "sm", sx: { width: '100%' }, colorScheme: "inverse", appearance: "text", onClick: () => {
|
|
136
|
+
setVisible(false);
|
|
137
|
+
onClickViewAll();
|
|
138
|
+
}, children: _jsx(Text, { appearance: "microtext1", children: t.viewAll }) }) })] }) })] }));
|
|
139
|
+
};
|
|
140
|
+
const dictionary = {
|
|
141
|
+
en: {
|
|
142
|
+
notifications: 'Notifications',
|
|
143
|
+
all: 'All',
|
|
144
|
+
filterAll: 'Filter all notifications',
|
|
145
|
+
filterUnread: 'Filter unread notifications',
|
|
146
|
+
filterHigh: 'Filter high notifications',
|
|
147
|
+
filterMedium: 'Filter medium notifications',
|
|
148
|
+
filterLow: 'Filter low notifications',
|
|
149
|
+
unread: 'Unread',
|
|
150
|
+
high: 'High',
|
|
151
|
+
medium: 'Medium',
|
|
152
|
+
low: 'Low',
|
|
153
|
+
viewAll: 'View all notifications',
|
|
154
|
+
openNotifications: 'View notifications',
|
|
155
|
+
hasUnread: 'Has Unread notifications',
|
|
156
|
+
close: 'Close',
|
|
157
|
+
},
|
|
158
|
+
pt: {
|
|
159
|
+
notifications: 'Notificações',
|
|
160
|
+
all: 'Todos',
|
|
161
|
+
filterAll: 'Filtrar todas as notificações ',
|
|
162
|
+
filterUnread: 'Filtrar notificações não lidas',
|
|
163
|
+
filterHigh: 'Filtrar notificações criticidade alta',
|
|
164
|
+
filterMedium: 'Filtrar notificações criticidade média',
|
|
165
|
+
filterLow: 'Filtrar notificações criticidade baixa',
|
|
166
|
+
unread: 'Não lidas',
|
|
167
|
+
high: 'Alto',
|
|
168
|
+
medium: 'Médio',
|
|
169
|
+
low: 'Baixo',
|
|
170
|
+
viewAll: 'Ver todas as notificações',
|
|
171
|
+
openNotifications: 'Visualizar notificações',
|
|
172
|
+
hasUnread: 'Existem notificações não lidas',
|
|
173
|
+
close: 'Fechar',
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=NotificationComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationComponent.js","sourceRoot":"","sources":["../../../src/components/notification/NotificationComponent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/D,OAA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ationsResponse } from './types.js';
|
|
2
|
+
interface Props {
|
|
3
|
+
notification: GetTenantNotificationsResponse;
|
|
4
|
+
isSummary: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
onClickViewNotification?: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface DeprecatedNotificationItemProps extends Props {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use `onCommit` and `onClickAction` instead.
|
|
11
|
+
*
|
|
12
|
+
* Function to call when the user marks a notification as read or unread. This can happen either through the mail icon or when the user
|
|
13
|
+
* clicks the action button of a notification. Type will be "icon" on the first case or "callToAction" on the former.
|
|
14
|
+
*
|
|
15
|
+
* Tip: clicking the action button (callToAction) should only change the read status if the message is unread. This is not treated by this
|
|
16
|
+
* component, be sure to handle it on your side.
|
|
17
|
+
*
|
|
18
|
+
* Deprecation warning: since the deprecation, the parameter `read` is always true.
|
|
19
|
+
*/
|
|
20
|
+
onClickMarkReadUnread: (read: boolean, type: 'callToAction' | 'icon') => void | Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
interface NewNotificationItemProps extends Props {
|
|
23
|
+
/**
|
|
24
|
+
* Function to call when the user marks a notification as read (committed).
|
|
25
|
+
*/
|
|
26
|
+
onCommit: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Function to call when the user marks a notification as unread (uncommitted).
|
|
29
|
+
*/
|
|
30
|
+
onUncommit: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Whenever the user clicks the action button of a notification, the notification is marked as read (committed) and the browser is
|
|
33
|
+
* redirected to the page that corresponds to the action.
|
|
34
|
+
*
|
|
35
|
+
* If you need additional behavior, use this parameter, which is a function to call whenever the button is clicked.
|
|
36
|
+
*/
|
|
37
|
+
onClickAction?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Function to call when the user clicks in read more button.
|
|
40
|
+
*/
|
|
41
|
+
onClickViewNotification?: () => void;
|
|
42
|
+
}
|
|
43
|
+
type NotificationItemProps = DeprecatedNotificationItemProps | NewNotificationItemProps;
|
|
44
|
+
/**
|
|
45
|
+
* NotificationItem component that renders a notification item.
|
|
46
|
+
*
|
|
47
|
+
* @param props the component's props {@link NotificationItemProps}.
|
|
48
|
+
*/
|
|
49
|
+
export declare const NotificationItem: ({ notification, isSummary, ...props }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=NotificationItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationItem.d.ts","sourceRoot":"","sources":["../../../src/components/notification/NotificationItem.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAexD,UAAU,KAAK;IACb,YAAY,EAAE,8BAA8B,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;IAEnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC;AA6LD,UAAU,+BAAgC,SAAQ,KAAK;IACrD;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/F;AAED,UAAU,wBAAyB,SAAQ,KAAK;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC;AAED,KAAK,qBAAqB,GAAG,+BAA+B,GAAG,wBAAwB,CAAA;AAQvF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,uCAAuC,qBAAqB,4CAgD5F,CAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Flex, IconBox, Text } from '@citric/core';
|
|
3
|
+
import { Envelope, EnvelopeOpen, ExternalLink } from '@citric/icons';
|
|
4
|
+
import { IconButton, Tooltip } from '@citric/ui';
|
|
5
|
+
import { useTranslate } from '@stack-spot/portal-translate';
|
|
6
|
+
import { differenceInDays, parseISO } from 'date-fns';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { useAnchorTag } from '../../context/anchor.js';
|
|
9
|
+
import { useGetNotificationTitleAndDescription } from '../../context/notification/hooks.js';
|
|
10
|
+
import { useDateFormatter } from '../../hooks/date.js';
|
|
11
|
+
import { LazyMarkdown } from '../LazyMarkdown/index.js';
|
|
12
|
+
const styles = {
|
|
13
|
+
item: (color, isRead) => ({
|
|
14
|
+
borderLeft: `2px solid ${color}`,
|
|
15
|
+
opacity: isRead ? 0.5 : 1,
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
const statusToColor = {
|
|
19
|
+
LOW: 'success.500',
|
|
20
|
+
MEDIUM: 'warning.500',
|
|
21
|
+
HIGH: 'danger.500',
|
|
22
|
+
};
|
|
23
|
+
const style = {
|
|
24
|
+
notificationDescription: {
|
|
25
|
+
display: '-webkit-box',
|
|
26
|
+
WebkitBoxOrient: 'vertical',
|
|
27
|
+
overflow: 'hidden',
|
|
28
|
+
WebkitLineClamp: '2',
|
|
29
|
+
lineHeight: '1.5',
|
|
30
|
+
maxHeight: '3em',
|
|
31
|
+
maxWidth: '340px',
|
|
32
|
+
},
|
|
33
|
+
notificationTooltip: {
|
|
34
|
+
overflowWrap: 'break-word',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* NotificationHeader component that renders the header of a notification.
|
|
39
|
+
*
|
|
40
|
+
* @param props the component's props.
|
|
41
|
+
*/
|
|
42
|
+
const NotificationHeader = ({ title, isSummary }) => (_jsx(Flex, { justifyContent: "space-between", mb: 2, sx: { maxWidth: isSummary ? '330px' : '100%' }, flexWrap: "nowrap", children: _jsx(Text, { appearance: isSummary ? 'body2' : 'body1', weight: "medium", nowrapEllipsis: true, mr: 5, children: title }) }));
|
|
43
|
+
/**
|
|
44
|
+
* Get the number of days ago from the given date string.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} dateString - The date string to calculate the days ago.
|
|
47
|
+
* @returns {number} The number of days ago.
|
|
48
|
+
*/
|
|
49
|
+
const getDaysAgo = (dateString) => {
|
|
50
|
+
const givenDate = parseISO(dateString);
|
|
51
|
+
const today = new Date();
|
|
52
|
+
return differenceInDays(today, givenDate);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* NotificationContent component that renders the content of a notification.
|
|
56
|
+
*
|
|
57
|
+
* @param props the component's props {@link Props}.
|
|
58
|
+
*/
|
|
59
|
+
const NotificationContent = ({ notification, isSummary, onClickViewNotification }) => {
|
|
60
|
+
const { formatRelativeWithTooltip } = useDateFormatter();
|
|
61
|
+
const relativeDate = formatRelativeWithTooltip(notification.trigger_at);
|
|
62
|
+
const Link = useAnchorTag();
|
|
63
|
+
const t = useTranslate(dictionary);
|
|
64
|
+
const { description } = useGetNotificationTitleAndDescription(notification);
|
|
65
|
+
const daysAgo = getDaysAgo(notification.trigger_at);
|
|
66
|
+
const components = () => ({
|
|
67
|
+
ul: (props) => (_jsx(Text, { as: "ul", appearance: "body2", colorScheme: "light.700", sx: { listStyleType: 'disc', marginLeft: '2rem', marginBottom: '1em' }, ...props })),
|
|
68
|
+
li: (props) => (_jsx(Text, { as: "li", appearance: "body2", colorScheme: "light.700", sx: { marginBottom: '0.5em' }, ...props })),
|
|
69
|
+
p: (props) => (_jsx(Text, { as: "p", appearance: "body2", sx: { marginBottom: '1em' }, ...props })),
|
|
70
|
+
});
|
|
71
|
+
const navigateToNotificationPosition = (ev, anchorText) => {
|
|
72
|
+
ev.preventDefault();
|
|
73
|
+
const checkElement = setInterval(() => {
|
|
74
|
+
const target = document.getElementById(anchorText);
|
|
75
|
+
if (target) {
|
|
76
|
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
77
|
+
clearInterval(checkElement);
|
|
78
|
+
}
|
|
79
|
+
}, 100);
|
|
80
|
+
};
|
|
81
|
+
return (_jsxs(_Fragment, { children: [!isSummary && _jsx(Flex, { mt: 4, mb: 3, flexDirection: "column", children: _jsx(LazyMarkdown, { components: components(), children: description }) }), isSummary && (_jsx(Text, { appearance: "body2", mb: 3, sx: style.notificationDescription, children: handleTextMark(description) })), _jsxs(Flex, { justifyContent: "space-between", children: [_jsxs(Flex, { children: [_jsx(Text, { appearance: "microtext1", colorScheme: "light.700", children: t[notification.context] }), _jsx(Text, { appearance: "microtext1", colorScheme: "light.700", mx: "2", children: "\u2022" }), !isSummary && relativeDate && (_jsxs(_Fragment, { children: [_jsx(Text, { appearance: "microtext1", colorScheme: "light.700", children: relativeDate.relative }), _jsx(Text, { appearance: "microtext1", colorScheme: "light.700", mx: "2", children: "\u2022" })] })), _jsx(Text, { appearance: "microtext1", colorScheme: "light.700", children: daysAgo > 0 ? daysAgo + ' ' + t.daysAgo : t.today })] }), isSummary && description.length > 120 && (_jsx(Link, { href: "/notifications", onClick: (ev) => {
|
|
82
|
+
onClickViewNotification?.();
|
|
83
|
+
navigateToNotificationPosition(ev, `notification-item-${notification.id}`);
|
|
84
|
+
}, children: _jsx(Text, { appearance: "microtext1", colorScheme: "light.700", children: t.readMore }) }))] })] }));
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* NotificationFooter component that renders the footer of a notification.
|
|
88
|
+
*
|
|
89
|
+
* @param props the component's props {@link NotificationFooterProps}.
|
|
90
|
+
*/
|
|
91
|
+
const NotificationFooter = ({ actionURL, onClickAction, title }) => {
|
|
92
|
+
const t = useTranslate(dictionary);
|
|
93
|
+
const Link = useAnchorTag();
|
|
94
|
+
return (_jsx(Flex, { mt: "5", children: _jsxs(Button, { size: "sm", colorScheme: "inverse", appearance: "text", onClick: onClickAction, as: Link, href: actionURL, "aria-label": t.viewNotification.replace('%s', title || t.moreDetails), target: "_blank", children: [_jsx(Text, { sx: { mr: 2, textDecoration: 'underline' }, children: t.moreDetails }), _jsx(IconBox, { size: "xs", children: _jsx(ExternalLink, {}) })] }) }));
|
|
95
|
+
};
|
|
96
|
+
const StyledBox = styled(Box) `
|
|
97
|
+
.notification-item {
|
|
98
|
+
padding: ${({ $isSummary }) => $isSummary ? '8px 8px 8px 16px' : '16px'};
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
/**
|
|
102
|
+
* NotificationItem component that renders a notification item.
|
|
103
|
+
*
|
|
104
|
+
* @param props the component's props {@link NotificationItemProps}.
|
|
105
|
+
*/
|
|
106
|
+
export const NotificationItem = ({ notification, isSummary, ...props }) => {
|
|
107
|
+
const t = useTranslate(dictionary);
|
|
108
|
+
const { title } = useGetNotificationTitleAndDescription(notification);
|
|
109
|
+
const committed = notification.committed;
|
|
110
|
+
function commit() {
|
|
111
|
+
if ('onCommit' in props)
|
|
112
|
+
props.onCommit();
|
|
113
|
+
else
|
|
114
|
+
props.onClickMarkReadUnread(true, 'icon');
|
|
115
|
+
}
|
|
116
|
+
function uncommit() {
|
|
117
|
+
if ('onUncommit' in props)
|
|
118
|
+
props.onUncommit();
|
|
119
|
+
else
|
|
120
|
+
props.onClickMarkReadUnread(false, 'icon');
|
|
121
|
+
}
|
|
122
|
+
function clickAction() {
|
|
123
|
+
if ('onCommit' in props) {
|
|
124
|
+
if (!committed)
|
|
125
|
+
props.onCommit();
|
|
126
|
+
props.onClickAction?.();
|
|
127
|
+
}
|
|
128
|
+
else
|
|
129
|
+
props.onClickMarkReadUnread(true, 'callToAction');
|
|
130
|
+
}
|
|
131
|
+
return (_jsxs(StyledBox, { sx: { position: 'relative' }, id: props.id, "$isSummary": isSummary, children: [_jsxs(Flex, { bg: "light.400", r: "xs", flexWrap: "nowrap", className: "notification-item", flexDirection: "column", w: "100%", sx: styles.item(statusToColor[notification.criticality], committed), children: [_jsx(NotificationHeader, { title: title, isSummary: isSummary }), _jsx(NotificationContent, { notification: notification, isSummary: isSummary, onClickViewNotification: props.onClickViewNotification }), notification.call_to_action && _jsx(NotificationFooter, { actionURL: notification.call_to_action, onClickAction: clickAction, title: title })] }), _jsx(Box, { sx: { position: 'absolute', top: '8px', right: '8px' }, children: _jsx(Tooltip, { text: committed ? t.committed : t.uncommitted, position: "left", children: _jsx(IconButton, { "aria-label": committed ? t.committed : t.uncommitted, onClick: () => committed ? uncommit() : commit(), children: _jsx(IconBox, { size: "xs", style: { opacity: committed ? 0.5 : 1 }, children: committed ? _jsx(EnvelopeOpen, {}) : _jsx(Envelope, {}) }) }) }) })] }));
|
|
132
|
+
};
|
|
133
|
+
function handleTextMark(text) {
|
|
134
|
+
// eslint-disable-next-line no-useless-escape
|
|
135
|
+
return text.replace(/[^\p{L}\p{N}\s\p{Emoji_Presentation}:!'()"\/_-]/gu, '');
|
|
136
|
+
}
|
|
137
|
+
const dictionary = {
|
|
138
|
+
en: {
|
|
139
|
+
ACCOUNT: 'Account',
|
|
140
|
+
WORKSPACE: 'Workspace',
|
|
141
|
+
STUDIO: 'Studio',
|
|
142
|
+
AI: 'AI',
|
|
143
|
+
daysAgo: 'days ago',
|
|
144
|
+
today: 'today',
|
|
145
|
+
committed: 'This notification has been read.',
|
|
146
|
+
uncommitted: 'This notification has not been read yet. Click to mark as read.',
|
|
147
|
+
moreDetails: 'More details',
|
|
148
|
+
viewNotification: 'View notification %s',
|
|
149
|
+
readMore: 'Read more',
|
|
150
|
+
},
|
|
151
|
+
pt: {
|
|
152
|
+
ACCOUNT: 'Conta',
|
|
153
|
+
WORKSPACE: 'Workspace',
|
|
154
|
+
STUDIO: 'Estúdio',
|
|
155
|
+
AI: 'AI',
|
|
156
|
+
daysAgo: 'dias atrás',
|
|
157
|
+
today: 'hoje',
|
|
158
|
+
committed: 'Esta notificação já foi lida.',
|
|
159
|
+
uncommitted: 'Esta notificação ainda não foi lida. Clique para marcar como lida.',
|
|
160
|
+
moreDetails: 'Acessar detalhes',
|
|
161
|
+
viewNotification: 'Visualizar notificação %s',
|
|
162
|
+
readMore: 'Ler mais',
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=NotificationItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationItem.js","sourceRoot":"","sources":["../../../src/components/notification/NotificationItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAiD,IAAI,EAAE,MAAM,cAAc,CAAA;AAC9G,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAG9C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAAC,CAAC;QACzC,UAAU,EAAE,aAAa,KAAK,EAAE;QAChC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAC1B,CAAC;CACgD,CAAA;AAEpD,MAAM,aAAa,GAAkD;IACnE,GAAG,EAAE,aAAa;IAClB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,YAAY;CACnB,CAAA;AAUD,MAAM,KAAK,GAAW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