@equinor/amplify-component-lib 9.15.3-beta.1 → 9.16.0-beta.0
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/dist/atoms/hooks/index.js +1 -0
- package/dist/atoms/hooks/useAmplifyKit.js +1 -1
- package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/date.d.ts +1 -1
- package/dist/atoms/utils/richtext.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/deprecated/OldStepper/OldStep.js +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
- package/dist/deprecated/OldStepper/OldStepper.js +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
- package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
- package/dist/molecules/Badge/Badge.js +1 -1
- package/dist/molecules/Banner/Banner.js +1 -1
- package/dist/molecules/Banner/Banner.styles.js +3 -3
- package/dist/molecules/Button/Button.js +3 -3
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Chip/Chip.js +1 -1
- package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/molecules/Dialog/Dialog.d.ts +1 -1
- package/dist/molecules/Dialog/Dialog.js +1 -1
- package/dist/molecules/Dialog/Dialog.styles.js +10 -10
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
- package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
- package/dist/molecules/IconCell/IconCell.d.ts +54 -0
- package/dist/molecules/IconCell/IconCell.js +1 -0
- package/dist/molecules/IconCell/IconCell.styles.js +108 -0
- package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
- package/dist/molecules/IconCell/IconCell.types.js +1 -0
- package/dist/molecules/IconCell/IconCell.utils.js +8 -0
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/ListItem/ListItem.js +13 -13
- package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +5 -5
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Search/Search.js +8 -8
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +4 -4
- package/dist/molecules/Select/Select.styles.js +61 -61
- package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
- package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
- package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
- package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
- package/dist/molecules/Stepper/Step/Step.js +5 -5
- package/dist/molecules/Stepper/StepLine.js +2 -2
- package/dist/molecules/Stepper/Stepper.js +4 -4
- package/dist/molecules/Tabs/Tab.js +1 -1
- package/dist/molecules/Tabs/Tab.styles.js +22 -22
- package/dist/molecules/Tabs/Tabs.js +4 -4
- package/dist/molecules/Tabs/Tabs.types.d.ts +1 -1
- package/dist/molecules/index.d.ts +5 -5
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.js +6 -6
- package/dist/organisms/Faq/Faq.js +1 -1
- package/dist/organisms/Faq/Faq.styles.js +3 -3
- package/dist/organisms/Faq/Header.js +7 -7
- package/dist/organisms/FieldSelector/ChangingField.js +8 -8
- package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
- package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
- package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
- package/dist/organisms/Filter/Filter.js +1 -1
- package/dist/organisms/Filter/Filter.styles.js +39 -39
- package/dist/organisms/Filter/QuickFilter.js +1 -1
- package/dist/organisms/Filter/SortMenu.js +2 -2
- package/dist/organisms/PageTitle/PageTitle.js +1 -1
- package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
- package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/index.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Action.js +1 -1
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/Description.js +1 -1
- package/dist/organisms/Status/Illustration.js +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.js +4 -4
- package/dist/organisms/Status/Status.js +4 -4
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/Title.js +1 -1
- package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
- package/dist/organisms/Status/collections/BadRequest.js +2 -2
- package/dist/organisms/Status/collections/GenericError.js +1 -1
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
- package/dist/organisms/Status/collections/PageNotFound.js +2 -2
- package/dist/organisms/Status/collections/ServerError.js +2 -2
- package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
- package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
- package/dist/organisms/Template/Template.js +7 -7
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
- package/dist/organisms/TopBar/Account/Account.js +1 -1
- package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
- package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
- package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
- package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
- package/dist/organisms/TopBar/Account/RoleList.js +7 -7
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.js +3 -3
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
- package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
- package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
- package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
- package/dist/organisms/TopBar/Resources/Resources.js +4 -4
- package/dist/organisms/TopBar/Settings.js +11 -11
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +22 -22
- package/dist/organisms/TopBar/TopBarMenu.js +4 -4
- package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
- package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
- package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
- package/dist/organisms/index.js +1 -1
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/index.js +1 -0
- package/package.json +3 -3
- package/dist/atoms/hooks/useOnScreenMultiple.js +0 -1
- package/dist/atoms/hooks/useRichTextImage.js +0 -1
- package/dist/atoms/style/animation.js +0 -1
- package/dist/atoms/style/colors.js +0 -1
- package/dist/atoms/style/darkTokens.js +0 -219
- package/dist/atoms/style/lightTokens.js +0 -158
- package/dist/atoms/style/spacingTokens.js +0 -50
- package/dist/atoms/style/spacings.js +0 -1
- package/dist/atoms/utils/skeleton.js +0 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +0 -1
- package/dist/molecules/Badge/Badge.styles.js +0 -17
- package/dist/molecules/Button/Button.utils.js +0 -1
- package/dist/molecules/Chip/Chip.styles.js +0 -65
- package/dist/molecules/Chip/InteractiveChip.js +0 -1
- package/dist/molecules/Chip/ReadOnlyChip.js +0 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
- package/dist/molecules/DatePicker/DatePicker.styles.js +0 -63
- package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.styles.js +0 -100
- package/dist/molecules/FileProgress/FileProgress.utils.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.styles.js +0 -35
- package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +0 -1
- package/dist/molecules/FileUploadArea/UploadIllustration.js +0 -1
- package/dist/molecules/InfoElement/CopyText.js +0 -41
- package/dist/molecules/ListItem/ListItem.utils.js +0 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +0 -36
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +0 -1
- package/dist/molecules/Select/AddTagItem.js +0 -1
- package/dist/molecules/Select/GroupedSelectMenu.js +0 -1
- package/dist/molecules/Select/ListSelectMenu.js +0 -1
- package/dist/molecules/Select/Select.js +0 -1
- package/dist/molecules/Select/Select.utils.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.utils.js +0 -1
- package/dist/molecules/Sieve/Filter.d.ts +0 -10
- package/dist/molecules/Sieve/Filter.js +0 -1
- package/dist/molecules/Sieve/Sieve.d.ts +0 -7
- package/dist/molecules/Sieve/Sieve.js +0 -1
- package/dist/molecules/Sieve/Sieve.styles.js +0 -43
- package/dist/molecules/Sieve/Sieve.types.d.ts +0 -26
- package/dist/molecules/Sieve/Sort.js +0 -1
- package/dist/molecules/Skeleton/Skeleton.styles.js +0 -1
- package/dist/molecules/Skeleton/SkeletonField.js +0 -8
- package/dist/molecules/Stepper/Step/StepIcon.js +0 -19
- package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +0 -25
- package/dist/molecules/Stepper/SubTitle/SubTitle.js +0 -7
- package/dist/molecules/TextField/TextField.js +0 -74
- package/dist/organisms/Faq/Category/Category.js +0 -9
- package/dist/organisms/Faq/Category/Question.js +0 -22
- package/dist/organisms/Faq/CategorySkeleton.js +0 -29
- package/dist/organisms/Filter/AutoCompleteMenu.js +0 -10
- package/dist/organisms/Filter/AutoCompleteText.js +0 -11
- package/dist/organisms/Filter/Filter.utils.js +0 -1
- package/dist/organisms/ReleaseNote/MetaTags.js +0 -10
- package/dist/organisms/SideBar/CreateItem.js +0 -1
- package/dist/organisms/SideBar/CreateItem.styles.js +0 -33
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +0 -48
- package/dist/organisms/SideBar/MenuItem/MenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +0 -37
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +0 -1
- package/dist/organisms/SideBar/SideBar.js +0 -1
- package/dist/organisms/SideBar/SideBar.styles.js +0 -41
- package/dist/organisms/SideBar/ToggleOpen.js +0 -1
- package/dist/organisms/SideBar/ToggleOpen.styles.js +0 -16
- package/dist/organisms/Status/Illustration.constants.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +0 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +0 -41
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +0 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +0 -79
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +0 -7
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +0 -19
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
- package/dist/providers/AuthProvider/AuthProvider.js +0 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +0 -1
- package/dist/providers/ReleaseNotesProvider.utils.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +0 -41
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +0 -1
- package/dist/providers/TableOfContentsProvider.utils.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +0 -24
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +0 -20
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +0 -75
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"styled-components";import{Typography as t}from"@equinor/eds-core-react";import{colors as n,spacings as r}from"src/atoms/style";const i=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
|
|
5
|
-
padding: ${
|
|
5
|
+
padding: ${r.medium_small} ${r.medium};
|
|
6
6
|
|
|
7
7
|
div[role='search'] {
|
|
8
8
|
> div {
|
|
@@ -10,31 +10,31 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
input {
|
|
13
|
-
color: ${
|
|
13
|
+
color: ${n.text.static_icons__default.rgba};
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
input:focus {
|
|
17
|
-
box-shadow: inset 0 -2px 0 0 ${
|
|
17
|
+
box-shadow: inset 0 -2px 0 0 ${n.interactive.primary__resting.rgba};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,a=
|
|
21
|
-
margin: 0 auto ${
|
|
22
|
-
`,o=
|
|
20
|
+
`,a=e(t)`
|
|
21
|
+
margin: 0 auto ${r.medium};
|
|
22
|
+
`,o=e.div`
|
|
23
23
|
max-height: 25vh;
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
overflow-y: auto;
|
|
27
|
-
`,s=
|
|
27
|
+
`,s=e.div`
|
|
28
28
|
&:hover {
|
|
29
|
-
background: ${
|
|
29
|
+
background: ${n.interactive.primary__selected_hover.rgba};
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
border-top: 1px solid ${
|
|
33
|
+
border-top: 1px solid ${n.ui.background__light.rgba};
|
|
34
34
|
outline: none !important;
|
|
35
|
-
padding: ${
|
|
36
|
-
`,c=
|
|
37
|
-
${
|
|
35
|
+
padding: ${r.medium} ${r.large};
|
|
36
|
+
`,c=e.div`
|
|
37
|
+
${e=>e.$active&&`background: ${n.interactive.primary__selected_highlight.rgba};
|
|
38
38
|
`};
|
|
39
39
|
|
|
40
40
|
> div {
|
|
@@ -45,32 +45,32 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&:hover {
|
|
48
|
-
background: ${
|
|
48
|
+
background: ${n.interactive.primary__selected_hover.rgba};
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
border-top: 1px solid ${
|
|
52
|
+
border-top: 1px solid ${n.ui.background__light.rgba};
|
|
53
53
|
outline: none !important;
|
|
54
|
-
padding: ${
|
|
54
|
+
padding: ${r.medium} ${r.large};
|
|
55
55
|
|
|
56
56
|
svg {
|
|
57
57
|
align-self: center;
|
|
58
58
|
}
|
|
59
|
-
`,l=
|
|
60
|
-
border-bottom: 1px solid ${
|
|
59
|
+
`,l=e.div`
|
|
60
|
+
border-bottom: 1px solid ${n.ui.background__light.rgba};
|
|
61
61
|
display: flex;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
|
|
64
64
|
> p {
|
|
65
|
-
margin-left: ${
|
|
66
|
-
margin-bottom: ${
|
|
65
|
+
margin-left: ${r.large};
|
|
66
|
+
margin-bottom: ${r.small};
|
|
67
67
|
}
|
|
68
|
-
`,u=
|
|
69
|
-
padding-top: ${
|
|
68
|
+
`,u=e.div`
|
|
69
|
+
padding-top: ${r.small};
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
|
-
padding-bottom: ${
|
|
73
|
-
`,d=
|
|
72
|
+
padding-bottom: ${r.xxx_large};
|
|
73
|
+
`,d=e.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex-direction: column;
|
|
76
76
|
> h6 {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react142 from "react";
|
|
2
2
|
import * as styled_components_dist_types48 from "styled-components/dist/types";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Guidelines/Colorbox.d.ts
|
|
5
5
|
interface ColorboxProps {
|
|
6
6
|
$color: string;
|
|
7
7
|
}
|
|
8
|
-
declare const Colorbox: styled_components_dist_types48.IStyledComponentBase<"web", styled_components_dist_types48.Substitute<
|
|
8
|
+
declare const Colorbox: styled_components_dist_types48.IStyledComponentBase<"web", styled_components_dist_types48.Substitute<react142.DetailedHTMLProps<react142.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColorboxProps>> & string;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Colorbox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{Colorbox as n}from"./Colorbox.js";import{Item as r}from"./Item.js";import{Section as i}from"./Section.js";import{isValidElement as a,useRef as o,useState as s}from"react";import{
|
|
1
|
+
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{Colorbox as n}from"./Colorbox.js";import{Item as r}from"./Item.js";import{Section as i}from"./Section.js";import{isValidElement as a,useRef as o,useState as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import{info_circle as d}from"@equinor/eds-icons";import{Icon as f}from"@equinor/eds-core-react";const p=({sections:p})=>{let[m,h]=s(!1),g=o(null),_=()=>{h(!m)},v=()=>{h(!1)};return u(c,{children:[l(t,{variant:`ghost_icon`,ref:g,onClick:_,"data-testid":`show-hide-button`,children:l(f,{data:d})},`topbar-notifications`),l(e,{open:m,anchorEl:g.current,onClose:v,withGap:!0,children:p.map((e,t)=>l(i,{title:e.sectionName,children:e.items.map((e,i)=>a(e)?e:`element`in e?l(r,{title:e.title,children:e.element},`${i}-${t}`):u(r,{title:e.title,children:[e.colorBox&&l(n,{"data-testid":`color-box-${e.title}`,$color:e.color}),l(f,{data:e.icon,color:e.color,size:24})]},`${i}-${t}`))},`section-${e.sectionName}`))})]})};p.displayName=`TopBar.Guidelines`;export{p as Guidelines};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"styled-components";import{Typography as r}from"@equinor/eds-core-react";import{spacings as i}from"src/atoms/style";const a=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: flex-start;
|
|
5
|
-
gap: ${
|
|
6
|
-
`,o=({title:
|
|
5
|
+
gap: ${i.medium_small};
|
|
6
|
+
`,o=({title:n,children:i})=>t(a,{children:[i,e(r,{variant:`caption`,children:n})]});export{o as Item};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"styled-components";import{Typography as r}from"@equinor/eds-core-react";import{spacings as i}from"src/atoms/style";const a=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
4
|
+
gap: ${i.medium};
|
|
5
5
|
> p {
|
|
6
|
-
padding-left: ${
|
|
7
|
-
padding-top: ${
|
|
6
|
+
padding-left: ${i.medium};
|
|
7
|
+
padding-top: ${i.small};
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
> section {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
gap: ${
|
|
14
|
-
margin-left: ${
|
|
13
|
+
gap: ${i.medium};
|
|
14
|
+
margin-left: ${i.medium};
|
|
15
15
|
overflow: auto;
|
|
16
16
|
height: fit-content;
|
|
17
17
|
max-height: 66vh;
|
|
18
18
|
}
|
|
19
|
-
`,o=({title:
|
|
19
|
+
`,o=({title:n,children:i})=>t(a,{"data-testid":`guidelines-section`,children:[e(r,{variant:`overline`,children:n}),e(`section`,{children:i})]});export{o as Section};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{FilterNotification as t,SortNotification as n}from"./NotificationsTemplate/Notifications.types.js";import{useRef as r,useState as i}from"react";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{FilterNotification as t,SortNotification as n}from"./NotificationsTemplate/Notifications.types.js";import{useRef as r,useState as i}from"react";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";import{checkbox as c,checkbox_outline as l,filter_list as u,sort as d}from"@equinor/eds-icons";import f from"styled-components";import{Icon as p,Menu as m,Typography as h}from"@equinor/eds-core-react";const{spacings:g,colors:_,shape:v}=e,y=f(m.Item)`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,b=
|
|
3
|
+
`,b=f.div`
|
|
4
4
|
display: flex;
|
|
5
5
|
gap: ${g.comfortable.small};
|
|
6
6
|
padding: ${g.comfortable.medium};
|
|
7
|
-
`,x=
|
|
7
|
+
`,x=f(m)`
|
|
8
8
|
padding: ${g.comfortable.small} 0;
|
|
9
|
-
`,S=
|
|
9
|
+
`,S=f.div`
|
|
10
10
|
padding: ${g.comfortable.small} ${g.comfortable.large};
|
|
11
|
-
`,C=
|
|
11
|
+
`,C=f.span`
|
|
12
12
|
font-family: 'Equionor', sans-serif;
|
|
13
13
|
font-size: 12px;
|
|
14
14
|
border-radius: ${v.rounded.borderRadius};
|
|
@@ -33,4 +33,4 @@ import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/
|
|
|
33
33
|
> svg {
|
|
34
34
|
color: ${({$active:e})=>e?_.text.static_icons__default.rgba:_.interactive.primary__resting.rgba};
|
|
35
35
|
}
|
|
36
|
-
`,w=({onFilter:e,onSort:
|
|
36
|
+
`,w=({onFilter:e,onSort:f,sortMenuRef:m,filterMenuRef:g})=>{let[_,v]=i(!1),[w,T]=i(!1),E=r(null),D=r(null),[O,k]=i({[n.UNREAD]:!1,[n.OLD_NEWEST]:!1,[n.NEW_OLDEST]:!1}),[A,j]=i({[t.SYSTEM]:!1,[t.USER]:!1,[t.UNREAD]:!1}),M=()=>{v(!0),T(!1)},N=()=>{v(!1)},P=()=>{T(!0),v(!1)},F=()=>{T(!1)},I=t=>{e(A[t]?[]:[t]),j(e=>({...e,[t]:!e[t]}))},L=e=>{f(O[e]?[]:[e]),k(t=>({...t,[e]:!t[e]}))};return s(a,{children:[s(b,{children:[s(C,{onClick:()=>_?N():M(),ref:E,$active:_,children:[o(h,{group:`ui`,variant:`chip__badge`,children:`Filter by`}),o(p,{data:u,size:16})]}),s(C,{onClick:()=>w?F():P(),ref:D,$active:w,children:[o(h,{group:`ui`,variant:`chip__badge`,children:`Sort by`}),o(p,{data:d,size:16})]})]}),_&&s(x,{open:_,anchorEl:E.current,placement:`bottom-start`,ref:g,onClose:N,children:[o(S,{children:o(h,{group:`navigation`,variant:`label`,children:`Filter notifications`})}),s(y,{onClick:()=>I(t.USER),closeMenuOnClick:!1,children:[o(p,{data:A[t.USER]?c:l}),o(h,{children:` User messages `})]}),s(y,{onClick:()=>I(t.SYSTEM),closeMenuOnClick:!1,children:[o(p,{data:A[t.SYSTEM]?c:l}),o(h,{children:` System messages `})]}),s(y,{onClick:()=>I(t.UNREAD),closeMenuOnClick:!1,children:[o(p,{data:A[t.UNREAD]?c:l}),o(h,{children:` Unread `})]})]}),w&&s(x,{open:w,anchorEl:D.current,placement:`bottom-start`,ref:m,onClose:F,children:[o(S,{children:o(h,{group:`navigation`,variant:`label`,children:`Sort notifications`})}),s(y,{onClick:()=>L(n.NEW_OLDEST),closeMenuOnClick:!1,children:[o(p,{data:O[n.NEW_OLDEST]?c:l}),o(h,{children:` Newest to oldest `})]}),s(y,{onClick:()=>L(n.OLD_NEWEST),closeMenuOnClick:!1,children:[o(p,{data:O[n.OLD_NEWEST]?c:l}),o(h,{children:` Oldest to newest `})]}),s(y,{onClick:()=>L(n.UNREAD),closeMenuOnClick:!1,children:[o(p,{data:O[n.UNREAD]?c:l}),o(h,{children:` Unread`})]})]})]})};export{w as FilterOptions};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react139 from "react";
|
|
2
2
|
import { Dispatch, FC, ReactNode, SetStateAction } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Notifications/NotificationProvider.d.ts
|
|
@@ -6,7 +6,7 @@ interface NotificationContext {
|
|
|
6
6
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const NotificationContext:
|
|
9
|
+
declare const NotificationContext: react139.Context<NotificationContext | undefined>;
|
|
10
10
|
declare const useNotification: () => NotificationContext;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useNotification };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t,UnreadRedDot as n}from"../TopBar.styles.js";import{useNotification as r}from"./NotificationProvider.js";import{NoNotifications as i}from"./NotificationsTemplate/NotificationElements/NoNotifications.js";import{FilterNotification as a,SortNotification as o}from"./NotificationsTemplate/Notifications.types.js";import{NotificationTemplate as s}from"./NotificationsTemplate/NotificationTemplate.js";import{FilterOptions as c}from"./FilterOptions.js";import{useMemo as l,useRef as u,useState as d}from"react";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{notifications as h}from"@equinor/eds-icons";import g from"styled-components";import{Icon as _}from"@equinor/eds-core-react";const v=g.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,y=
|
|
3
|
+
`,y=g.div`
|
|
4
4
|
overflow: auto;
|
|
5
5
|
height: fit-content;
|
|
6
6
|
max-height: 66vh;
|
|
7
7
|
width: 350px;
|
|
8
|
-
`,b=({children:
|
|
8
|
+
`,b=({children:g,hasUnread:b=!1,setAllAsRead:x,showFilterOptions:S=!1,notifications:C})=>{let w=u(null),T=u(null),E=u(null),{isOpen:D,setIsOpen:O}=r(),[k,A]=d([]),[j,M]=d([]),N=l(()=>{if(!C)return[];let e=[...C];return k.length>0&&(e=e.filter(e=>{if(k.includes(a.UNREAD))return!e.Read;if(k.includes(a.USER))return e.user;if(k.includes(a.SYSTEM))return!e.user})),j.length>0&&(e=e.sort((e,t)=>{let n=new Date(e.time).getTime(),r=new Date(t.time).getTime();return j.includes(o.OLD_NEWEST)?r-n:j.includes(o.UNREAD)?e.Read===t.Read?0:e.Read?1:-1:n-r})),e},[k,C,j]),P=()=>{D?F():O(!0)},F=()=>{x(),O(!1)};return m(f,{children:[m(t,{variant:`ghost_icon`,ref:w,onClick:P,"data-testid":`show-hide-button`,children:[p(_,{data:h,size:24}),b&&p(n,{"data-testid":`unread-dot`})]},`topbar-notifications`),m(e,{open:D,anchorEl:w.current,contentPadding:!1,isNotification:!0,onClose:F,children:[S&&p(v,{children:p(c,{onFilter:A,onSort:M,sortMenuRef:E,filterMenuRef:T})}),g?p(y,{children:g instanceof Function?g({onClose:F}):g}):p(y,{children:N&&N?.length>0?N.map(e=>p(s,{...e},e.SequenceNumber)):p(i,{})})]})]})};b.displayName=`TopBar.NotificationsInner`;export{b as NotificationsInner};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{NotificationsTypes as e}from"../Notifications.types.js";import{jsx as t}from"react/jsx-runtime";import n from"styled-components";import{Typography as r}from"@equinor/eds-core-react";import{spacings as i}from"src/atoms";const a=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding-top: ${
|
|
6
|
-
`,o=({message:
|
|
4
|
+
gap: ${i.medium};
|
|
5
|
+
padding-top: ${i.medium_small};
|
|
6
|
+
`,o=({message:n})=>t(a,{"data-testid":e.DEFAULT,children:t(r,{group:`table`,variant:`cell_text`,children:n})});export{o as DefaultNotification};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{Tooltip as i,Typography as a}from"@equinor/eds-core-react";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${o.comfortable.medium};
|
|
5
5
|
padding-top: ${o.comfortable.medium_small};
|
|
6
|
-
`,c=({well:e,commentsCount:r,onClick:o})=>
|
|
6
|
+
`,c=({well:e,commentsCount:r,onClick:o})=>n(s,{children:[t(i,{title:`Go to ${e.displayName}`,children:n(`div`,{onClick:o,children:[t(a,{group:`table`,variant:`cell_text`,bold:!0,children:`Experience report are due in 3 weeks`}),t(a,{group:`table`,variant:`cell_text`,children:e.displayName})]})}),t(`div`,{children:n(a,{group:`table`,variant:`cell_text`,children:[r,` experiences`]})})]});export{c as ExperienceDue3Weeks};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{Tooltip as i,Typography as a}from"@equinor/eds-core-react";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${o.comfortable.medium};
|
|
5
5
|
padding-top: ${o.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,c=({fromUser:e,branchName:r,onClick:o})=>
|
|
7
|
+
`,c=({fromUser:e,branchName:r,onClick:o})=>t(s,{onClick:o,children:t(i,{title:`Go to ${r}`,children:n(a,{group:`table`,variant:`cell_text`,children:[e.displayName,` has merged your branch `,r,` to the master`]})})});export{c as MergedBranchOrca};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"styled-components";import{Typography as r}from"@equinor/eds-core-react";import{spacings as i}from"src/atoms/style";import{FeedBackIcon as a}from"src/molecules/FeedBackIcon/FeedBackIcon";const o=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
4
|
+
gap: ${i.medium};
|
|
5
5
|
align-items: center;
|
|
6
|
-
padding: ${
|
|
7
|
-
`,s=()=>
|
|
6
|
+
padding: ${i.large};
|
|
7
|
+
`,s=()=>t(o,{children:[e(a,{name:`positive`,variant:`filled`}),e(r,{children:` No notifications `})]});export{s as NoNotifications};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{Tooltip as i,Typography as a}from"@equinor/eds-core-react";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${o.comfortable.medium};
|
|
5
|
-
`,c=({experienceCount:e,well:r,onClick:o})=>i
|
|
5
|
+
`,c=({experienceCount:e,well:r,onClick:o})=>t(i,{title:`Go to ${r.displayName}`,children:n(s,{onClick:o,children:[n(`div`,{children:[t(a,{group:`table`,variant:`cell_text`,bold:!0,children:`Experiences are ready to be published`}),t(a,{group:`table`,variant:`cell_text`,children:r.displayName})]}),t(`div`,{children:t(a,{group:`table`,variant:`cell_text`,children:e})})]})});export{c as ReadyToBePublished};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{NotificationsTypes as t}from"../Notifications.types.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{NotificationsTypes as t}from"../Notifications.types.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import i from"styled-components";import{Chip as a,Tooltip as o,Typography as s}from"@equinor/eds-core-react";const{spacings:c}=e,l=i.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: 1fr 1fr;
|
|
4
4
|
gap: ${c.comfortable.medium};
|
|
5
5
|
padding-top: ${c.comfortable.medium_small};
|
|
6
|
-
`,u=
|
|
6
|
+
`,u=i.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
`,d=
|
|
9
|
+
`,d=i.div`
|
|
10
10
|
grid-column: span 3;
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: 5px;
|
|
13
13
|
align-items: center;
|
|
14
|
-
`,f=({field:e,wellbore:
|
|
14
|
+
`,f=({field:e,wellbore:i,dataType:c,onClick:f})=>n(o,{title:`Go to ${c}`,children:r(l,{onClick:f,"data-testid":t.READY_TO_REPORT,children:[r(u,{children:[n(s,{group:`paragraph`,variant:`overline`,children:`Field`}),n(s,{group:`table`,variant:`cell_text`,children:e})]}),r(u,{children:[n(s,{group:`paragraph`,variant:`overline`,children:`WELLBORE`}),n(s,{group:`table`,variant:`cell_text`,children:i})]}),r(d,{children:[r(a,{children:[` `,c,` `]}),n(s,{group:`navigation`,variant:`label`,children:`is ready to report`})]})]})});export{f as ReadyToReportNotification};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{Tooltip as i,Typography as a}from"@equinor/eds-core-react";import{OptionalTooltip as o}from"src/molecules/OptionalTooltip/OptionalTooltip";const{spacings:s}=e,c=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${s.comfortable.medium};
|
|
5
5
|
padding-top: ${s.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,l=({fromUser:e,branchName:
|
|
7
|
+
`,l=({fromUser:e,branchName:r,onClick:s})=>t(i,{title:`Go to ${r}`,children:t(c,{onClick:s,children:t(o,{title:`Go to ${r}`,children:n(a,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested changes for branch `,r]})})})});export{l as RequestChangeOrca};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{NotificationsTypes as t}from"../Notifications.types.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import i from"styled-components";import{Tooltip as a,Typography as o}from"@equinor/eds-core-react";import{OptionalTooltip as s}from"src/molecules/OptionalTooltip/OptionalTooltip";const{spacings:c}=e,l=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${c.comfortable.medium};
|
|
5
5
|
padding-top: ${c.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,u=({fromUser:e,branchName:
|
|
7
|
+
`,u=({fromUser:e,branchName:i,onClick:c})=>n(a,{title:`Go to ${i}`,children:n(l,{onClick:c,"data-testid":t.REQUESTED_REVIEW,children:n(s,{title:`Go to ${i}`,children:r(o,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested review for branch `,i]})})})});export{u as RequestReviewOrca};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{Tooltip as i,Typography as a}from"@equinor/eds-core-react";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${o.comfortable.medium};
|
|
5
5
|
padding-top: ${o.comfortable.medium_small};
|
|
6
|
-
`,c=({well:e,experienceComments:r,experience:o,onClick:c})=>i
|
|
6
|
+
`,c=({well:e,experienceComments:r,experience:o,onClick:c})=>t(i,{title:`Go to ${o.title}`,children:n(s,{onClick:c,children:[n(`div`,{children:[t(a,{group:`table`,variant:`cell_text`,bold:!0,children:`Please review my QA comments`}),t(a,{group:`table`,variant:`cell_text`,children:e.displayName}),n(a,{group:`table`,variant:`cell_text`,children:[o.title,` - `,o?.topic?.displayName]})]}),t(`div`,{children:n(a,{group:`table`,variant:`cell_text`,children:[r,` comments`]})})]})});export{c as ReviewQANotification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{NotificationsTypes as t}from"./Notifications.types.js";import{DefaultNotification as n}from"./NotificationElements/DefaultNotification.js";import{ExperienceDue3Weeks as r}from"./NotificationElements/ExperienceDue3Weeks.js";import{MergedBranchOrca as i}from"./NotificationElements/MergedBranchOrca.js";import{ReadyToBePublished as a}from"./NotificationElements/ReadyToBePublished.js";import{ReadyToReportNotification as o}from"./NotificationElements/ReadyToReportNotification.js";import{RequestChangeOrca as s}from"./NotificationElements/RequestChangeOrca.js";import{RequestReviewOrca as c}from"./NotificationElements/RequestReviewOrca.js";import{ReviewQANotification as l}from"./NotificationElements/ReviewQANotification.js";import{Content as u,DeleteButton as d,Divider as f,Dot as p,FooterContainer as m,GridContainer as h,TopContainer as g,UserInformation as _,Wrapper as v}from"./NotificationTemplate.style.js";import{useMemo as y}from"react";import{Fragment as b,jsx as x,jsxs as S}from"react/jsx-runtime";import{formatRelativeDateTime as C}from"src/atoms/utils";import{delete_to_trash as w}from"@equinor/eds-icons";import{Icon as T,Typography as E}from"@equinor/eds-core-react";import{OptionalTooltip as D}from"src/molecules/OptionalTooltip/OptionalTooltip";import{ProfileAvatar as O}from"src/molecules/ProfileAvatar/ProfileAvatar";import{ApplicationIcon as k}from"src/molecules/ApplicationIcon/ApplicationIcon";const{colors:A}=e,j=e=>{let{user:j,notificationType:M,applicationName:N,Read:P,field:F,time:I,footer:L=!0,onDelete:R}=e,z=y(()=>{switch(M){case t.READY_TO_REPORT:return x(o,{...e});case t.DEFAULT:return x(n,{...e});case t.REQUESTED_REVIEW:return x(c,{...e});case t.REQUESTED_CHANGES:return x(s,{...e});case t.MERGE_BRANCH:return x(i,{...e});case t.QA_COMMENTS:return x(l,{...e});case t.EXPERIENCE_READY_TO_PUBLISH:return x(a,{...e});case t.DUE_3_WEEKS:return x(r,{...e})}},[e,M]);return S(b,{children:[x(v,{children:S(h,{children:[S(g,{children:[j?S(_,{children:[!P&&x(p,{}),x(O,{url:j?.image,name:j?.shortName,size:`large`}),S(`div`,{children:[x(E,{color:A.text.static_icons__default.rgba,group:`heading`,variant:`h6`,children:j?.displayName}),x(E,{group:`paragraph`,variant:`caption`,color:A.text.static_icons__secondary.rgba,children:j?.shortName})]})]}):S(_,{$systemUser:!0,children:[!P&&x(p,{"data-testid":`unread-dot-system`}),x(k,{name:N}),x(E,{group:`heading`,variant:`h6`,children:N})]}),x(E,{group:`navigation`,variant:`label`,color:P?A.text.static_icons__secondary.rgba:A.infographic.substitute__blue_overcast.rgba,"data-testid":`notification-date`,children:C(I)})]}),x(u,{children:z}),L&&S(m,{children:[S(`div`,{style:{display:`flex`,gap:`5px`},children:[x(E,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:N}),x(E,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:F})]}),x(D,{title:`Delete notification`,children:x(d,{onClick:R,variant:`ghost_icon`,children:x(T,{data:w})})})]})]})}),x(f,{})]})};export{j as NotificationTemplate};
|
package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Button as
|
|
1
|
+
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import t from"styled-components";import{Button as n,Divider as r}from"@equinor/eds-core-react";const{spacings:i,colors:a}=e,o=t.div`
|
|
2
2
|
padding: ${i.comfortable.medium};
|
|
3
3
|
//border-bottom: 1px solid ${a.ui.background__medium.rgba};
|
|
4
4
|
&:hover {
|
|
5
5
|
background: #f2f2f2;
|
|
6
6
|
}
|
|
7
|
-
`,s=
|
|
7
|
+
`,s=t.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
grid-column: span 3;
|
|
11
11
|
padding: ${i.comfortable.small};
|
|
12
12
|
cursor: pointer;
|
|
13
|
-
`,c=
|
|
13
|
+
`,c=t.div`
|
|
14
14
|
display: grid;
|
|
15
15
|
grid-template-columns: 10px 1fr;
|
|
16
16
|
grid-gap: ${i.comfortable.medium_small};
|
|
17
17
|
align-items: center;
|
|
18
|
-
`,l=
|
|
18
|
+
`,l=t.span`
|
|
19
19
|
width: 10px;
|
|
20
20
|
height: 10px;
|
|
21
21
|
border-radius: 50%;
|
|
22
22
|
background-color: ${a.infographic.substitute__blue_overcast.rgba};
|
|
23
23
|
position: relative;
|
|
24
|
-
`,u=
|
|
24
|
+
`,u=t.div`
|
|
25
25
|
display: grid;
|
|
26
26
|
grid-template-columns: auto 1fr;
|
|
27
27
|
align-items: start;
|
|
28
28
|
gap: ${i.comfortable.medium_small};
|
|
29
29
|
justify-items: end;
|
|
30
30
|
grid-column: span 3;
|
|
31
|
-
`,d=
|
|
31
|
+
`,d=t.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: row;
|
|
34
34
|
align-items: ${({$systemUser:e})=>e?`flex-start`:`center`};
|
|
35
35
|
gap: ${i.comfortable.small};
|
|
36
|
-
`,f=
|
|
36
|
+
`,f=t.div`
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: row;
|
|
39
39
|
gap: ${i.comfortable.medium_small};
|
|
@@ -42,12 +42,12 @@ import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/ba
|
|
|
42
42
|
justify-content: space-between;
|
|
43
43
|
height: 40px;
|
|
44
44
|
padding: 0 ${i.comfortable.small};
|
|
45
|
-
`,p=
|
|
45
|
+
`,p=t(n)`
|
|
46
46
|
display: none;
|
|
47
47
|
${c}:hover & {
|
|
48
48
|
display: initial;
|
|
49
49
|
}
|
|
50
|
-
`,m=r
|
|
50
|
+
`,m=t(r)`
|
|
51
51
|
display: flex;
|
|
52
52
|
margin: 0 ${i.comfortable.medium_small};
|
|
53
53
|
`;export{s as Content,p as DeleteButton,m as Divider,l as Dot,f as FooterContainer,c as GridContainer,u as TopContainer,d as UserInformation,o as Wrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StatusEnum as e}from"./Feedback.types.js";const t
|
|
1
|
+
import{StatusEnum as e}from"./Feedback.types.js";const t=`serviceNowIncident`,n=`slackPostMessage`,r=`slackFileUpload`,i=`There was an error with the request`,a=1e3*60*60,o={feedbackContent:{title:``,description:``,url:``,urgency:``},serviceNowRequestResponse:{status:e.idle}};export{o as DEFAULT_FEEDBACK_LOCAL_STORAGE,i as DEFAULT_REQUEST_ERROR_MESSAGE,a as ONE_HOUR_IN_MS,t as SERVICE_NOW_QUERY_KEY,r as SLACK_FILE_QUERY_KEY,n as SLACK_POST_QUERY_KEY};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
${e.urgency?
|
|
3
|
-
${t?
|
|
1
|
+
import{Browsers as e,FeedbackType as t,UrgencyOption as n}from"./Feedback.types.js";import{ServiceNowUrgency as r}from"@equinor/subsurface-app-management";import{EnvironmentType as i}from"src/atoms/enums/Environment";import{capitalize as a,environment as o,formatDate as s}from"src/atoms/utils";const{getAppName:c,getEnvironmentName:l}=o,u=e=>e.urgency===n.NO_IMPACT?`:large_yellow_circle:`:e.urgency===n.IMPEDES?`:large_orange_circle:`:`:red_circle:`,d=e=>{switch(e){case n.UNABLE:return r.CRITICAL;case n.IMPEDES:return r.MODERATE;case n.NO_IMPACT:return r.NORMAL}},f=(e,t)=>{let n=`Url location of bug: ${e.url} \n`,r=`Severity of bug: ${e.urgency} \n`,i=`Field: ${a(t??``)} \n`,o=`Browser: ${g()} \n`;return`${e.url?n:``}
|
|
2
|
+
${e.urgency?r:``}
|
|
3
|
+
${t?i:``}
|
|
4
4
|
${o}
|
|
5
|
-
${e.description} \n \n User agent string: ${navigator.userAgent}`},
|
|
6
|
-
`+c(import.meta.env.VITE_NAME)},{type:`mrkdwn`,text:`*User* \n ${
|
|
7
|
-
`+
|
|
8
|
-
`+e.description}}];return
|
|
5
|
+
${e.description} \n \n User agent string: ${navigator.userAgent}`},p=(e,t)=>{let n=t?`selfservice?id=ticket&table=incident&sys_id=`:`now/nav/ui/classic/params/target/incident.do%3Fsys_id%3D`,r=l(import.meta.env.VITE_ENVIRONMENT_NAME)===i.PRODUCTION;return`https://equinor${r?``:`test`}.service-now.com/${n}${e}`},m=()=>{if(navigator.userAgent.includes(e.EDGE_SHORT))return e.EDGE;if(navigator.userAgent.includes(e.CHROME))return e.CHROME;if(navigator.userAgent.includes(e.SAFARI))return e.SAFARI;if(navigator.userAgent.includes(e.FIREFOX))return e.FIREFOX},h=t=>{let n=t;t===e.EDGE&&(n=e.EDGE_SHORT);let r=RegExp(`${n}/(\\d+(?:\\.\\d+)+)`);return navigator.userAgent.match(r)?.[1]},g=()=>{let e=m();return e?`${e} (${h(e)})`:`Not found`},_=(e,n,r,i,o)=>{let l=r===t.BUG,d=l?`:bug: Bug report`:`:bulb: Suggestion`,f=[],m=[];m.push({type:`mrkdwn`,text:`*Title* \n ${e.title}`}),f.push({type:`mrkdwn`,text:` ${s(new Date,{format:`DD. month YYYY`})}`}),e.url&&f.push({type:`mrkdwn`,text:`*<${e.url}|Error URL>*`}),e.urgency&&m.push({type:`mrkdwn`,text:`*Severity* \n ${u(e)} ${e.urgency}`});let h=[{type:`header`,text:{type:`plain_text`,text:d,emoji:!0}},{type:`section`,fields:f},{type:`section`,fields:m},{type:`section`,fields:[{type:`mrkdwn`,text:`*Application*
|
|
6
|
+
`+c(import.meta.env.VITE_NAME)},{type:`mrkdwn`,text:`*User* \n ${i}`}]},{type:`section`,fields:[{type:`mrkdwn`,text:`*Browser*
|
|
7
|
+
`+g()},{type:`mrkdwn`,text:`*Field* \n ${a(n??`Not found`)}`}]},{type:`section`,text:{type:`mrkdwn`,text:`*Description*
|
|
8
|
+
`+e.description}}];return o&&h.push({type:`section`,text:{type:`mrkdwn`,text:`*<${p(o)}|:link: Click to open the ticket in Service Now>*`}}),h.push({type:`divider`}),JSON.stringify(h)};export{f as createServiceNowDescription,p as createServiceNowUrl,_ as createSlackMessage,d as getUrgencyNumber};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{LockedInputTooltip as t}from"./LockedInputTooltip.js";import{useMemo as n}from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import a from"styled-components";import{Typography as o}from"@equinor/eds-core-react";import{spacings as s}from"src/atoms/style";import{TextField as c}from"src/molecules/TextField/TextField";import{useFeedbackContext as l}from"src/organisms/TopBar/Resources/Feedback/hooks/useFeedbackContext";import{FeedbackType as u}from"src/organisms/TopBar/Resources/Feedback/Feedback.types";const{colors:d}=e,f=a.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
3
|
display: flex;
|
|
4
|
-
gap: ${
|
|
4
|
+
gap: ${s.medium};
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
textarea {
|
|
7
7
|
color: ${d.text.static_icons__default.rgba};
|
|
8
8
|
}
|
|
9
|
-
`,p=()=>{let{serviceNowSuccess:e,feedbackContent:
|
|
9
|
+
`,p=()=>{let{serviceNowSuccess:e,feedbackContent:a,selectedType:s,updateFeedback:p}=l(),m=n(()=>e?d.interactive.disabled__text.rgba:d.text.static_icons__default.rgba,[e]);return i(f,{children:[s===u.BUG&&i(`div`,{children:[r(o,{group:`input`,variant:`text`,color:m,children:`What is the specific bug?`}),r(o,{group:`input`,variant:`text`,color:m,children:`What are the expected results?`}),r(o,{group:`input`,variant:`text`,color:m,children:`How can we reproduce the issue?`}),r(o,{group:`input`,variant:`text`,color:m,children:`Is there a known workaround?`})]}),r(t,{show:e,children:r(c,{id:`feedback-description`,label:`Description`,disabled:e,meta:`Required`,value:a.description,placeholder:s===u.BUG?`Describe the bug, including expectations, reproductions steps, any workarounds...`:`Describe the feature. What would be the value for you?`,rows:4,onChange:e=>p(`description`,e.currentTarget.value),multiline:!0})})]})};export{p as Description};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{UploadFile as n}from"./UploadFile/UploadFile.js";import{Description as r}from"./Description.js";import i
|
|
1
|
+
import{FeedbackType as e}from"../Feedback.types.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{UploadFile as n}from"./UploadFile/UploadFile.js";import{Description as r}from"./Description.js";import{Severity as i}from"./Severity.js";import{Title as a}from"./Title.js";import{Url as o}from"./Url.js";import{useMemo as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import{info_circle as d}from"@equinor/eds-icons";import{Button as f,Icon as p,Typography as m}from"@equinor/eds-core-react";import{Actions as h,Container as g,ContentWrapper as _,LockedFormWarning as v,ReportLocationText as y,UploadInfo as b}from"src/organisms/TopBar/Resources/Feedback/Feedback.styles";const x=()=>{let{isWrongDomain:x,selectedType:S,resetForm:C,feedbackContent:w,onDialogClose:T,serviceNowSuccess:E,handleSave:D,requestIsLoading:O}=t(),k=s(()=>w.title.length>0&&w.description.length>0&&!x,[w.title.length,w.description.length,x]);return l(_,{children:u(g,{children:[l(a,{}),S===e.BUG&&u(c,{children:[l(i,{}),l(o,{})]}),l(r,{}),u(b,{children:[l(p,{data:d}),l(m,{children:`Please make sure the uploaded files do not contain confidential or personal information`})]}),l(n,{}),l(y,{children:S===e.BUG?`Bug reports are sent to Service Now and to the development team directly`:`Feature suggestions are sent to the development team directly`}),E&&u(v,{children:[l(p,{data:d}),l(m,{children:`The report has already been sent to service now, and part of the form is locked, so you can retry sending it to the development team. Otherwise you can reset the form with the "Reset form" button in the bottom left corner.`})]}),u(h,{children:[l(f,{variant:`ghost`,onClick:C,"data-testid":`reset-form-button`,children:`Reset form`}),u(`div`,{children:[l(f,{variant:`ghost`,onClick:T,children:`Cancel`}),l(f,{onClick:D,disabled:!k||O,"data-testid":`submit-button`,children:E?`Send again`:`Send`})]})]})]})})};export{x as FeedbackForm};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{forwardRef as e,useMemo as t}from"react";import{jsx as n}from"react/jsx-runtime";import r from"styled-components";import{OptionalTooltip as i}from"src/molecules/OptionalTooltip/OptionalTooltip";const a=r(i)`
|
|
2
2
|
white-space: break-spaces;
|
|
3
3
|
text-align: center;
|
|
4
4
|
width: 400px;
|
|
5
|
-
`,o=
|
|
5
|
+
`,o=e(({show:e,children:r},i)=>{let o=t(()=>e?`The report was successfully submitted to ServiceNow.
|
|
6
6
|
This field is locked so you can retry sending it to the development team.
|
|
7
|
-
To reset the form, use the button in the bottom left corner.`:``,[e]);return
|
|
7
|
+
To reset the form, use the button in the bottom left corner.`:``,[e]);return n(a,{title:o,children:n(`div`,{ref:i,children:r})})});o.displayName=`LockedInputTooltip`;export{o as LockedInputTooltip};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{SingleSelect as n}from"src/molecules/Select/SingleSelect/SingleSelect";import{useFeedbackContext as r}from"src/organisms/TopBar/Resources/Feedback/hooks/useFeedbackContext";import{UrgencyOption as i}from"src/organisms/TopBar/Resources/Feedback/Feedback.types";import{LockedInputTooltip as a}from"src/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip";const o=t.div`
|
|
2
2
|
grid-column: 1/2;
|
|
3
|
-
`,s=Object.values(
|
|
3
|
+
`,s=Object.values(i).map(e=>({value:e,label:e})),c=()=>{let{serviceNowSuccess:t,feedbackContent:i,updateFeedback:c}=r(),l=i.urgency?{value:i.urgency,label:i.urgency}:void 0;return e(o,{children:e(a,{show:t,children:e(n,{items:s,label:`Severity`,meta:`optional`,clearable:!1,disabled:t,value:l,placeholder:`Select error impact`,onSelect:e=>{c(`urgency`,e.value)}})})})};export{c as Severity};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{TextField as n}from"src/molecules/TextField/TextField";import{useFeedbackContext as r}from"src/organisms/TopBar/Resources/Feedback/hooks/useFeedbackContext";import{LockedInputTooltip as i}from"src/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip";const a=t.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
|
-
`,o=()=>{let{serviceNowSuccess:
|
|
3
|
+
`,o=()=>{let{serviceNowSuccess:t,feedbackContent:o,updateFeedback:s}=r();return e(a,{children:e(i,{show:t,children:e(n,{id:`feedback-title`,label:`Title`,meta:`Required`,disabled:t,value:o.title,placeholder:`Write a title...`,onChange:e=>s(`title`,e.currentTarget.value)})})})};export{o as Title};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useState as e}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"styled-components";import{FileUploadArea as i}from"src/molecules/FileUploadArea/FileUploadArea";import{MAX_FILE_SIZE_BYTES as a}from"src/organisms/TopBar/Resources/Feedback/Feedback.const";import{ImageFile as o}from"src/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile";import{FileUploadAreaWrapper as s,Title as c}from"src/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles";import{useFeedbackContext as l}from"src/organisms/TopBar/Resources/Feedback/hooks/useFeedbackContext";const u=r.div`
|
|
2
2
|
grid-column: 1/3;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
`;function d(e,t){if(e.length===0||e.length===1)return e;for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])&&e.splice(n,1);return e}const f=()=>{let{feedbackAttachments:
|
|
5
|
+
`;function d(e,t){if(e.length===0||e.length===1)return e;for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++)t(e[n],e[r])&&e.splice(n,1);return e}const f=()=>{let{feedbackAttachments:r,setFeedbackAttachments:f}=l(),[p,m]=e([]),h=(e,t)=>{if(e.length>=1){let t=e.filter(e=>!e.name.startsWith(`.`)),n=new FileReader;n.readAsDataURL(e[0]);let i=[];r&&i.push(...r);let a=[...t,...i],o=d(a,(e,t)=>e.name===t.name&&e.size===t.size);f(o)}m(t)},g=e=>{let t=r?.filter(t=>t.name!==e.name&&t.size!==e.size)??[];f(t)},_=e=>{m(p?.filter(t=>t.file.name===e.file.name&&t.file.size!==e.file.size)??[])};return n(u,{children:[t(c,{group:`input`,variant:`label`,children:`Attachments (.jpg, .jpeg, .png) (max 1 MB)`}),n(s,{children:[t(i,{maxSize:a,onDrop:h,accept:{"image/jpeg":[`.jpeg`,`.jpg`],"image/png":[`.png`]},size:`small`}),r?.map(e=>t(o,{onDelete:()=>g(e),file:e},e.name+e.size)),p.map(e=>t(o,{...e,onDelete:()=>_(e),error:!0},e.file.name+e.file.size))]})]})};export{f as UploadFile};
|