@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.
Files changed (341) hide show
  1. package/dist/atoms/hooks/index.js +1 -0
  2. package/dist/atoms/hooks/useAmplifyKit.js +1 -1
  3. package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
  4. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  5. package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
  6. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  7. package/dist/atoms/hooks/useSelect.js +1 -1
  8. package/dist/atoms/index.js +1 -1
  9. package/dist/atoms/style/index.js +1 -1
  10. package/dist/atoms/utils/auth_environment.js +1 -1
  11. package/dist/atoms/utils/date.d.ts +1 -1
  12. package/dist/atoms/utils/richtext.js +1 -1
  13. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  14. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
  15. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  16. package/dist/deprecated/IconToggleButton.js +1 -1
  17. package/dist/deprecated/OldStepper/OldStep.js +3 -3
  18. package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
  19. package/dist/deprecated/OldStepper/OldStepper.js +3 -3
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +1 -1
  22. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  23. package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
  24. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  25. package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
  26. package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
  27. package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
  28. package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
  29. package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
  30. package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
  31. package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
  32. package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
  33. package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
  34. package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
  35. package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
  36. package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
  37. package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
  38. package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
  39. package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
  40. package/dist/molecules/Badge/Badge.js +1 -1
  41. package/dist/molecules/Banner/Banner.js +1 -1
  42. package/dist/molecules/Banner/Banner.styles.js +3 -3
  43. package/dist/molecules/Button/Button.js +3 -3
  44. package/dist/molecules/Chip/Chip.d.ts +2 -2
  45. package/dist/molecules/Chip/Chip.js +1 -1
  46. package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
  47. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  48. package/dist/molecules/DatePicker/DatePicker.js +1 -1
  49. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  50. package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
  51. package/dist/molecules/Dialog/Dialog.d.ts +1 -1
  52. package/dist/molecules/Dialog/Dialog.js +1 -1
  53. package/dist/molecules/Dialog/Dialog.styles.js +10 -10
  54. package/dist/molecules/Dialog/DialogAction.js +1 -1
  55. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  56. package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
  57. package/dist/molecules/FileProgress/FileProgress.js +1 -1
  58. package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
  59. package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
  60. package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
  61. package/dist/molecules/IconCell/IconCell.d.ts +54 -0
  62. package/dist/molecules/IconCell/IconCell.js +1 -0
  63. package/dist/molecules/IconCell/IconCell.styles.js +108 -0
  64. package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
  65. package/dist/molecules/IconCell/IconCell.types.js +1 -0
  66. package/dist/molecules/IconCell/IconCell.utils.js +8 -0
  67. package/dist/molecules/InfoElement/InfoElement.js +1 -1
  68. package/dist/molecules/ListItem/ListItem.js +13 -13
  69. package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
  70. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  71. package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
  72. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  73. package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
  74. package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
  75. package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
  76. package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
  77. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
  78. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
  79. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
  80. package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
  81. package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
  82. package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
  83. package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
  84. package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
  85. package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
  86. package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
  87. package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
  88. package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
  89. package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
  90. package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
  91. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
  92. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
  93. package/dist/molecules/RichTextEditor/index.d.ts +5 -5
  94. package/dist/molecules/RichTextEditor/index.js +1 -1
  95. package/dist/molecules/Search/Search.d.ts +2 -2
  96. package/dist/molecules/Search/Search.js +8 -8
  97. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  98. package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
  99. package/dist/molecules/Select/Select.styles.d.ts +4 -4
  100. package/dist/molecules/Select/Select.styles.js +61 -61
  101. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  102. package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
  103. package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
  104. package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
  105. package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
  106. package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
  107. package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
  108. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  109. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
  110. package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
  111. package/dist/molecules/Stepper/Step/Step.js +5 -5
  112. package/dist/molecules/Stepper/StepLine.js +2 -2
  113. package/dist/molecules/Stepper/Stepper.js +4 -4
  114. package/dist/molecules/Tabs/Tab.js +1 -1
  115. package/dist/molecules/Tabs/Tab.styles.js +22 -22
  116. package/dist/molecules/Tabs/Tabs.js +4 -4
  117. package/dist/molecules/Tabs/Tabs.types.d.ts +1 -1
  118. package/dist/molecules/index.d.ts +5 -5
  119. package/dist/molecules/index.js +1 -1
  120. package/dist/organisms/DataGrid/DataGrid.js +6 -6
  121. package/dist/organisms/Faq/Faq.js +1 -1
  122. package/dist/organisms/Faq/Faq.styles.js +3 -3
  123. package/dist/organisms/Faq/Header.js +7 -7
  124. package/dist/organisms/FieldSelector/ChangingField.js +8 -8
  125. package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
  126. package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
  127. package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
  128. package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
  129. package/dist/organisms/Filter/Filter.js +1 -1
  130. package/dist/organisms/Filter/Filter.styles.js +39 -39
  131. package/dist/organisms/Filter/QuickFilter.js +1 -1
  132. package/dist/organisms/Filter/SortMenu.js +2 -2
  133. package/dist/organisms/PageTitle/PageTitle.js +1 -1
  134. package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
  135. package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
  136. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  137. package/dist/organisms/SideBar/index.js +1 -1
  138. package/dist/organisms/Status/Action.d.ts +2 -2
  139. package/dist/organisms/Status/Action.js +1 -1
  140. package/dist/organisms/Status/Description.d.ts +2 -2
  141. package/dist/organisms/Status/Description.js +1 -1
  142. package/dist/organisms/Status/Illustration.js +2 -2
  143. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  144. package/dist/organisms/Status/MissingAccesses.js +4 -4
  145. package/dist/organisms/Status/Status.js +4 -4
  146. package/dist/organisms/Status/Title.d.ts +2 -2
  147. package/dist/organisms/Status/Title.js +1 -1
  148. package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
  149. package/dist/organisms/Status/collections/BadRequest.js +2 -2
  150. package/dist/organisms/Status/collections/GenericError.js +1 -1
  151. package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
  152. package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
  153. package/dist/organisms/Status/collections/PageNotFound.js +2 -2
  154. package/dist/organisms/Status/collections/ServerError.js +2 -2
  155. package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
  156. package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
  157. package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
  158. package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
  159. package/dist/organisms/Template/Template.js +7 -7
  160. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  161. package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
  162. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  163. package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
  164. package/dist/organisms/TopBar/Account/Account.js +1 -1
  165. package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
  166. package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
  167. package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
  168. package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
  169. package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
  170. package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
  171. package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
  172. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
  173. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
  174. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
  175. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  176. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
  177. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
  178. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
  179. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
  180. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
  181. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
  182. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
  183. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
  184. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
  185. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
  186. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
  187. package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
  188. package/dist/organisms/TopBar/Account/RoleList.js +7 -7
  189. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  190. package/dist/organisms/TopBar/Actions.js +3 -3
  191. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
  192. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
  193. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  194. package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
  195. package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
  196. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
  197. package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
  198. package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
  199. package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
  200. package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
  201. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  202. package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
  203. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
  204. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
  205. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
  206. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
  207. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
  208. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
  209. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
  210. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
  211. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
  212. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
  213. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
  214. package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
  215. package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
  216. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
  217. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
  218. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
  219. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
  220. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
  221. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
  222. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
  223. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
  224. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
  225. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
  226. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
  227. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
  228. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
  229. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
  230. package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
  231. package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
  232. package/dist/organisms/TopBar/Resources/Resources.js +4 -4
  233. package/dist/organisms/TopBar/Settings.js +11 -11
  234. package/dist/organisms/TopBar/TopBar.js +1 -1
  235. package/dist/organisms/TopBar/TopBar.styles.js +22 -22
  236. package/dist/organisms/TopBar/TopBarMenu.js +4 -4
  237. package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
  238. package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
  239. package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
  240. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
  241. package/dist/organisms/index.js +1 -1
  242. package/dist/providers/LoadingProvider.js +1 -1
  243. package/dist/providers/ReleaseNotesProvider.js +1 -1
  244. package/dist/providers/SideBarProvider.js +1 -1
  245. package/dist/providers/StepperProvider.js +1 -1
  246. package/dist/providers/TableOfContentsProvider.js +1 -1
  247. package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
  248. package/dist/providers/index.js +1 -0
  249. package/package.json +3 -3
  250. package/dist/atoms/hooks/useOnScreenMultiple.js +0 -1
  251. package/dist/atoms/hooks/useRichTextImage.js +0 -1
  252. package/dist/atoms/style/animation.js +0 -1
  253. package/dist/atoms/style/colors.js +0 -1
  254. package/dist/atoms/style/darkTokens.js +0 -219
  255. package/dist/atoms/style/lightTokens.js +0 -158
  256. package/dist/atoms/style/spacingTokens.js +0 -50
  257. package/dist/atoms/style/spacings.js +0 -1
  258. package/dist/atoms/utils/skeleton.js +0 -1
  259. package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +0 -1
  260. package/dist/molecules/Badge/Badge.styles.js +0 -17
  261. package/dist/molecules/Button/Button.utils.js +0 -1
  262. package/dist/molecules/Chip/Chip.styles.js +0 -65
  263. package/dist/molecules/Chip/InteractiveChip.js +0 -1
  264. package/dist/molecules/Chip/ReadOnlyChip.js +0 -1
  265. package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
  266. package/dist/molecules/DatePicker/DatePicker.styles.js +0 -63
  267. package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +0 -1
  268. package/dist/molecules/FileProgress/CompactFileProgress.js +0 -1
  269. package/dist/molecules/FileProgress/CompactFileProgress.styles.js +0 -100
  270. package/dist/molecules/FileProgress/FileProgress.utils.js +0 -1
  271. package/dist/molecules/FileProgress/RegularFileProgress.js +0 -1
  272. package/dist/molecules/FileProgress/RegularFileProgress.styles.js +0 -35
  273. package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +0 -1
  274. package/dist/molecules/FileUploadArea/UploadIllustration.js +0 -1
  275. package/dist/molecules/InfoElement/CopyText.js +0 -41
  276. package/dist/molecules/ListItem/ListItem.utils.js +0 -1
  277. package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +0 -36
  278. package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +0 -1
  279. package/dist/molecules/Select/AddTagItem.js +0 -1
  280. package/dist/molecules/Select/GroupedSelectMenu.js +0 -1
  281. package/dist/molecules/Select/ListSelectMenu.js +0 -1
  282. package/dist/molecules/Select/Select.js +0 -1
  283. package/dist/molecules/Select/Select.utils.js +0 -1
  284. package/dist/molecules/Select/SelectMenuItem.js +0 -1
  285. package/dist/molecules/Select/SelectMenuItem.utils.js +0 -1
  286. package/dist/molecules/Sieve/Filter.d.ts +0 -10
  287. package/dist/molecules/Sieve/Filter.js +0 -1
  288. package/dist/molecules/Sieve/Sieve.d.ts +0 -7
  289. package/dist/molecules/Sieve/Sieve.js +0 -1
  290. package/dist/molecules/Sieve/Sieve.styles.js +0 -43
  291. package/dist/molecules/Sieve/Sieve.types.d.ts +0 -26
  292. package/dist/molecules/Sieve/Sort.js +0 -1
  293. package/dist/molecules/Skeleton/Skeleton.styles.js +0 -1
  294. package/dist/molecules/Skeleton/SkeletonField.js +0 -8
  295. package/dist/molecules/Stepper/Step/StepIcon.js +0 -19
  296. package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +0 -25
  297. package/dist/molecules/Stepper/SubTitle/SubTitle.js +0 -7
  298. package/dist/molecules/TextField/TextField.js +0 -74
  299. package/dist/organisms/Faq/Category/Category.js +0 -9
  300. package/dist/organisms/Faq/Category/Question.js +0 -22
  301. package/dist/organisms/Faq/CategorySkeleton.js +0 -29
  302. package/dist/organisms/Filter/AutoCompleteMenu.js +0 -10
  303. package/dist/organisms/Filter/AutoCompleteText.js +0 -11
  304. package/dist/organisms/Filter/Filter.utils.js +0 -1
  305. package/dist/organisms/ReleaseNote/MetaTags.js +0 -10
  306. package/dist/organisms/SideBar/CreateItem.js +0 -1
  307. package/dist/organisms/SideBar/CreateItem.styles.js +0 -33
  308. package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +0 -1
  309. package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +0 -48
  310. package/dist/organisms/SideBar/MenuItem/MenuItem.js +0 -1
  311. package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +0 -37
  312. package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +0 -1
  313. package/dist/organisms/SideBar/SideBar.js +0 -1
  314. package/dist/organisms/SideBar/SideBar.styles.js +0 -41
  315. package/dist/organisms/SideBar/ToggleOpen.js +0 -1
  316. package/dist/organisms/SideBar/ToggleOpen.styles.js +0 -16
  317. package/dist/organisms/Status/Illustration.constants.js +0 -1
  318. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +0 -1
  319. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +0 -1
  320. package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +0 -41
  321. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +0 -7
  322. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +0 -79
  323. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +0 -1
  324. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +0 -7
  325. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +0 -1
  326. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +0 -19
  327. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
  328. package/dist/providers/AuthProvider/AuthProvider.js +0 -1
  329. package/dist/providers/AuthProvider/AuthProviderInner.js +0 -1
  330. package/dist/providers/ReleaseNotesProvider.utils.js +0 -1
  331. package/dist/providers/SnackbarProvider/SnackbarProvider.js +0 -1
  332. package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +0 -41
  333. package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +0 -1
  334. package/dist/providers/TableOfContentsProvider.utils.js +0 -1
  335. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +0 -1
  336. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +0 -1
  337. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +0 -24
  338. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +0 -20
  339. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +0 -75
  340. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +0 -1
  341. package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +0 -1
@@ -1,8 +1,8 @@
1
- import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";const i=r.div`
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: ${t.medium_small} ${t.medium};
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: ${e.text.static_icons__default.rgba};
13
+ color: ${n.text.static_icons__default.rgba};
14
14
  }
15
15
 
16
16
  input:focus {
17
- box-shadow: inset 0 -2px 0 0 ${e.interactive.primary__resting.rgba};
17
+ box-shadow: inset 0 -2px 0 0 ${n.interactive.primary__resting.rgba};
18
18
  }
19
19
  }
20
- `,a=r(n)`
21
- margin: 0 auto ${t.medium};
22
- `,o=r.div`
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=r.div`
27
+ `,s=e.div`
28
28
  &:hover {
29
- background: ${e.interactive.primary__selected_hover.rgba};
29
+ background: ${n.interactive.primary__selected_hover.rgba};
30
30
  cursor: pointer;
31
31
  }
32
32
 
33
- border-top: 1px solid ${e.ui.background__light.rgba};
33
+ border-top: 1px solid ${n.ui.background__light.rgba};
34
34
  outline: none !important;
35
- padding: ${t.medium} ${t.large};
36
- `,c=r.div`
37
- ${t=>t.$active&&`background: ${e.interactive.primary__selected_highlight.rgba};
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: ${e.interactive.primary__selected_hover.rgba};
48
+ background: ${n.interactive.primary__selected_hover.rgba};
49
49
  cursor: pointer;
50
50
  }
51
51
 
52
- border-top: 1px solid ${e.ui.background__light.rgba};
52
+ border-top: 1px solid ${n.ui.background__light.rgba};
53
53
  outline: none !important;
54
- padding: ${t.medium} ${t.large};
54
+ padding: ${r.medium} ${r.large};
55
55
 
56
56
  svg {
57
57
  align-self: center;
58
58
  }
59
- `,l=r.div`
60
- border-bottom: 1px solid ${e.ui.background__light.rgba};
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: ${t.large};
66
- margin-bottom: ${t.small};
65
+ margin-left: ${r.large};
66
+ margin-bottom: ${r.small};
67
67
  }
68
- `,u=r.div`
69
- padding-top: ${t.small};
68
+ `,u=e.div`
69
+ padding-top: ${r.small};
70
70
  display: flex;
71
71
  align-items: center;
72
- padding-bottom: ${t.xxx_large};
73
- `,d=r.div`
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 react140 from "react";
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<react140.DetailedHTMLProps<react140.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColorboxProps>> & string;
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{Icon as c}from"@equinor/eds-core-react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{info_circle as f}from"@equinor/eds-icons";const p=({sections:p})=>{let[m,h]=s(!1),g=o(null),_=()=>{h(!m)},v=()=>{h(!1)};return d(l,{children:[u(t,{variant:`ghost_icon`,ref:g,onClick:_,"data-testid":`show-hide-button`,children:u(c,{data:f})},`topbar-notifications`),u(e,{open:m,anchorEl:g.current,onClose:v,withGap:!0,children:p.map((e,t)=>u(i,{title:e.sectionName,children:e.items.map((e,i)=>a(e)?e:`element`in e?u(r,{title:e.title,children:e.element},`${i}-${t}`):d(r,{title:e.title,children:[e.colorBox&&u(n,{"data-testid":`color-box-${e.title}`,$color:e.color}),u(c,{data:e.icon,color:e.color,size:24})]},`${i}-${t}`))},`section-${e.sectionName}`))})]})};p.displayName=`TopBar.Guidelines`;export{p as Guidelines};
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{spacings as e}from"../../../atoms/style/spacings.js";import{Typography as t}from"@equinor/eds-core-react";import n from"styled-components";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=n.div`
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: ${e.medium_small};
6
- `,o=({title:e,children:n})=>i(a,{children:[n,r(t,{variant:`caption`,children:e})]});export{o as Item};
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{spacings as e}from"../../../atoms/style/spacings.js";import{Typography as t}from"@equinor/eds-core-react";import n from"styled-components";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=n.div`
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: ${e.medium};
4
+ gap: ${i.medium};
5
5
  > p {
6
- padding-left: ${e.medium};
7
- padding-top: ${e.small};
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: ${e.medium};
14
- margin-left: ${e.medium};
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:e,children:n})=>i(a,{"data-testid":`guidelines-section`,children:[r(t,{variant:`overline`,children:e}),r(`section`,{children:n})]});export{o as Section};
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{Icon as a,Menu as o,Typography as s}from"@equinor/eds-core-react";import c from"styled-components";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{checkbox as f,checkbox_outline as p,filter_list as m,sort as h}from"@equinor/eds-icons";const{spacings:g,colors:_,shape:v}=e,y=c(o.Item)`
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=c.div`
3
+ `,b=f.div`
4
4
  display: flex;
5
5
  gap: ${g.comfortable.small};
6
6
  padding: ${g.comfortable.medium};
7
- `,x=c(o)`
7
+ `,x=f(m)`
8
8
  padding: ${g.comfortable.small} 0;
9
- `,S=c.div`
9
+ `,S=f.div`
10
10
  padding: ${g.comfortable.small} ${g.comfortable.large};
11
- `,C=c.span`
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:o,sortMenuRef:c,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=>{o(O[e]?[]:[e]),k(t=>({...t,[e]:!t[e]}))};return d(l,{children:[d(b,{children:[d(C,{onClick:()=>_?N():M(),ref:E,$active:_,children:[u(s,{group:`ui`,variant:`chip__badge`,children:`Filter by`}),u(a,{data:m,size:16})]}),d(C,{onClick:()=>w?F():P(),ref:D,$active:w,children:[u(s,{group:`ui`,variant:`chip__badge`,children:`Sort by`}),u(a,{data:h,size:16})]})]}),_&&d(x,{open:_,anchorEl:E.current,placement:`bottom-start`,ref:g,onClose:N,children:[u(S,{children:u(s,{group:`navigation`,variant:`label`,children:`Filter notifications`})}),d(y,{onClick:()=>I(t.USER),closeMenuOnClick:!1,children:[u(a,{data:A[t.USER]?f:p}),u(s,{children:` User messages `})]}),d(y,{onClick:()=>I(t.SYSTEM),closeMenuOnClick:!1,children:[u(a,{data:A[t.SYSTEM]?f:p}),u(s,{children:` System messages `})]}),d(y,{onClick:()=>I(t.UNREAD),closeMenuOnClick:!1,children:[u(a,{data:A[t.UNREAD]?f:p}),u(s,{children:` Unread `})]})]}),w&&d(x,{open:w,anchorEl:D.current,placement:`bottom-start`,ref:c,onClose:F,children:[u(S,{children:u(s,{group:`navigation`,variant:`label`,children:`Sort notifications`})}),d(y,{onClick:()=>L(n.NEW_OLDEST),closeMenuOnClick:!1,children:[u(a,{data:O[n.NEW_OLDEST]?f:p}),u(s,{children:` Newest to oldest `})]}),d(y,{onClick:()=>L(n.OLD_NEWEST),closeMenuOnClick:!1,children:[u(a,{data:O[n.OLD_NEWEST]?f:p}),u(s,{children:` Oldest to newest `})]}),d(y,{onClick:()=>L(n.UNREAD),closeMenuOnClick:!1,children:[u(a,{data:O[n.UNREAD]?f:p}),u(s,{children:` Unread`})]})]})]})};export{w as FilterOptions};
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 react117 from "react";
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: react117.Context<NotificationContext | undefined>;
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{useNotification as e}from"./NotificationProvider.js";import{TopBarMenu as t}from"../TopBarMenu.js";import{TopBarButton as n,UnreadRedDot as r}from"../TopBar.styles.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{Icon as f}from"@equinor/eds-core-react";import p from"styled-components";import{Fragment as m,jsx as h,jsxs as g}from"react/jsx-runtime";import{notifications as _}from"@equinor/eds-icons";const v=p.div`
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=p.div`
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:p,hasUnread:b=!1,setAllAsRead:x,showFilterOptions:S=!1,notifications:C})=>{let w=u(null),T=u(null),E=u(null),{isOpen:D,setIsOpen:O}=e(),[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 g(m,{children:[g(n,{variant:`ghost_icon`,ref:w,onClick:P,"data-testid":`show-hide-button`,children:[h(f,{data:_,size:24}),b&&h(r,{"data-testid":`unread-dot`})]},`topbar-notifications`),g(t,{open:D,anchorEl:w.current,contentPadding:!1,isNotification:!0,onClose:F,children:[S&&h(v,{children:h(c,{onFilter:A,onSort:M,sortMenuRef:E,filterMenuRef:T})}),p?h(y,{children:p instanceof Function?p({onClose:F}):p}):h(y,{children:N&&N?.length>0?N.map(e=>h(s,{...e},e.SequenceNumber)):h(i,{})})]})]})};b.displayName=`TopBar.NotificationsInner`;export{b as NotificationsInner};
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{spacings as e}from"../../../../../atoms/style/spacings.js";import{NotificationsTypes as t}from"../Notifications.types.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";const a=r.div`
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: ${e.medium};
5
- padding-top: ${e.medium_small};
6
- `,o=({message:e})=>i(a,{"data-testid":t.DEFAULT,children:i(n,{group:`table`,variant:`cell_text`,children:e})});export{o as DefaultNotification};
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{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
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})=>a(s,{children:[i(t,{title:`Go to ${e.displayName}`,children:a(`div`,{onClick:o,children:[i(n,{group:`table`,variant:`cell_text`,bold:!0,children:`Experience report are due in 3 weeks`}),i(n,{group:`table`,variant:`cell_text`,children:e.displayName})]})}),i(`div`,{children:a(n,{group:`table`,variant:`cell_text`,children:[r,` experiences`]})})]});export{c as ExperienceDue3Weeks};
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{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
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})=>i(s,{onClick:o,children:i(t,{title:`Go to ${r}`,children:a(n,{group:`table`,variant:`cell_text`,children:[e.displayName,` has merged your branch `,r,` to the master`]})})});export{c as MergedBranchOrca};
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{spacings as e}from"../../../../../atoms/style/spacings.js";import{FeedBackIcon as t}from"../../../../../molecules/FeedBackIcon/FeedBackIcon.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=r.div`
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: ${e.medium};
4
+ gap: ${i.medium};
5
5
  align-items: center;
6
- padding: ${e.large};
7
- `,s=()=>a(o,{children:[i(t,{name:`positive`,variant:`filled`}),i(n,{children:` No notifications `})]});export{s as NoNotifications};
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{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
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(t,{title:`Go to ${r.displayName}`,children:a(s,{onClick:o,children:[a(`div`,{children:[i(n,{group:`table`,variant:`cell_text`,bold:!0,children:`Experiences are ready to be published`}),i(n,{group:`table`,variant:`cell_text`,children:r.displayName})]}),i(`div`,{children:i(n,{group:`table`,variant:`cell_text`,children:e})})]})});export{c as ReadyToBePublished};
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{Chip as n,Tooltip as r,Typography as i}from"@equinor/eds-core-react";import a from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";const{spacings:c}=e,l=a.div`
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=a.div`
6
+ `,u=i.div`
7
7
  display: flex;
8
8
  flex-direction: column;
9
- `,d=a.div`
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:a,dataType:c,onClick:f})=>o(r,{title:`Go to ${c}`,children:s(l,{onClick:f,"data-testid":t.READY_TO_REPORT,children:[s(u,{children:[o(i,{group:`paragraph`,variant:`overline`,children:`Field`}),o(i,{group:`table`,variant:`cell_text`,children:e})]}),s(u,{children:[o(i,{group:`paragraph`,variant:`overline`,children:`WELLBORE`}),o(i,{group:`table`,variant:`cell_text`,children:a})]}),s(d,{children:[s(n,{children:[` `,c,` `]}),o(i,{group:`navigation`,variant:`label`,children:`is ready to report`})]})]})});export{f as ReadyToReportNotification};
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{OptionalTooltip as t}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{Tooltip as n,Typography as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a,jsxs as o}from"react/jsx-runtime";const{spacings:s}=e,c=i.div`
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:i,onClick:s})=>a(n,{title:`Go to ${i}`,children:a(c,{onClick:s,children:a(t,{title:`Go to ${i}`,children:o(r,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested changes for branch `,i]})})})});export{l as RequestChangeOrca};
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{OptionalTooltip as t}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{NotificationsTypes as n}from"../Notifications.types.js";import{Tooltip as r,Typography as i}from"@equinor/eds-core-react";import a from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";const{spacings:c}=e,l=a.div`
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:a,onClick:c})=>o(r,{title:`Go to ${a}`,children:o(l,{onClick:c,"data-testid":n.REQUESTED_REVIEW,children:o(t,{title:`Go to ${a}`,children:s(i,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested review for branch `,a]})})})});export{u as RequestReviewOrca};
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{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
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(t,{title:`Go to ${o.title}`,children:a(s,{onClick:c,children:[a(`div`,{children:[i(n,{group:`table`,variant:`cell_text`,bold:!0,children:`Please review my QA comments`}),i(n,{group:`table`,variant:`cell_text`,children:e.displayName}),a(n,{group:`table`,variant:`cell_text`,children:[o.title,` - `,o?.topic?.displayName]})]}),i(`div`,{children:a(n,{group:`table`,variant:`cell_text`,children:[r,` comments`]})})]})});export{c as ReviewQANotification};
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{formatRelativeDateTime as t}from"../../../../atoms/utils/date.js";import{ApplicationIcon as n}from"../../../../molecules/ApplicationIcon/ApplicationIcon.js";import{OptionalTooltip as r}from"../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as i}from"../../../../molecules/ProfileAvatar/ProfileAvatar.js";import{NotificationsTypes as a}from"./Notifications.types.js";import{DefaultNotification as o}from"./NotificationElements/DefaultNotification.js";import{ExperienceDue3Weeks as s}from"./NotificationElements/ExperienceDue3Weeks.js";import{MergedBranchOrca as c}from"./NotificationElements/MergedBranchOrca.js";import{ReadyToBePublished as l}from"./NotificationElements/ReadyToBePublished.js";import{ReadyToReportNotification as u}from"./NotificationElements/ReadyToReportNotification.js";import{RequestChangeOrca as d}from"./NotificationElements/RequestChangeOrca.js";import{RequestReviewOrca as f}from"./NotificationElements/RequestReviewOrca.js";import{ReviewQANotification as p}from"./NotificationElements/ReviewQANotification.js";import{Content as m,DeleteButton as h,Divider as g,Dot as _,FooterContainer as v,GridContainer as y,TopContainer as b,UserInformation as x,Wrapper as S}from"./NotificationTemplate.style.js";import{useMemo as C}from"react";import{Icon as w,Typography as T}from"@equinor/eds-core-react";import{Fragment as E,jsx as D,jsxs as O}from"react/jsx-runtime";import{delete_to_trash as k}from"@equinor/eds-icons";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=C(()=>{switch(M){case a.READY_TO_REPORT:return D(u,{...e});case a.DEFAULT:return D(o,{...e});case a.REQUESTED_REVIEW:return D(f,{...e});case a.REQUESTED_CHANGES:return D(d,{...e});case a.MERGE_BRANCH:return D(c,{...e});case a.QA_COMMENTS:return D(p,{...e});case a.EXPERIENCE_READY_TO_PUBLISH:return D(l,{...e});case a.DUE_3_WEEKS:return D(s,{...e})}},[e,M]);return O(E,{children:[D(S,{children:O(y,{children:[O(b,{children:[j?O(x,{children:[!P&&D(_,{}),D(i,{url:j?.image,name:j?.shortName,size:`large`}),O(`div`,{children:[D(T,{color:A.text.static_icons__default.rgba,group:`heading`,variant:`h6`,children:j?.displayName}),D(T,{group:`paragraph`,variant:`caption`,color:A.text.static_icons__secondary.rgba,children:j?.shortName})]})]}):O(x,{$systemUser:!0,children:[!P&&D(_,{"data-testid":`unread-dot-system`}),D(n,{name:N}),D(T,{group:`heading`,variant:`h6`,children:N})]}),D(T,{group:`navigation`,variant:`label`,color:P?A.text.static_icons__secondary.rgba:A.infographic.substitute__blue_overcast.rgba,"data-testid":`notification-date`,children:t(I)})]}),D(m,{children:z}),L&&O(v,{children:[O(`div`,{style:{display:`flex`,gap:`5px`},children:[D(T,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:N}),D(T,{group:`navigation`,variant:`label`,color:A.text.static_icons__tertiary.rgba,children:F})]}),D(r,{title:`Delete notification`,children:D(h,{onClick:R,variant:`ghost_icon`,children:D(w,{data:k})})})]})]})}),D(g,{})]})};export{j as NotificationTemplate};
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};
@@ -1,39 +1,39 @@
1
- import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Button as t,Divider as n}from"@equinor/eds-core-react";import r from"styled-components";const{spacings:i,colors:a}=e,o=r.div`
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=r.div`
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=r.div`
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=r.span`
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=r.div`
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=r.div`
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=r.div`
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=r(t)`
45
+ `,p=t(n)`
46
46
  display: none;
47
47
  ${c}:hover & {
48
48
  display: initial;
49
49
  }
50
- `,m=r(n)`
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=1048575,n=`serviceNowIncident`,r=`slackPostMessage`,i=`slackFileUpload`,a=`.equinor.com`,o=`There was an error with the request`,s=1e3*60*60,c={feedbackContent:{title:``,description:``,url:``,urgency:``},serviceNowRequestResponse:{status:e.idle}};export{c as DEFAULT_FEEDBACK_LOCAL_STORAGE,o as DEFAULT_REQUEST_ERROR_MESSAGE,a as EQUINOR_EMAIL_SUFFIX,t as MAX_FILE_SIZE_BYTES,s as ONE_HOUR_IN_MS,n as SERVICE_NOW_QUERY_KEY,i as SLACK_FILE_QUERY_KEY,r as SLACK_POST_QUERY_KEY};
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{EnvironmentType as e}from"../../../../atoms/enums/Environment.js";import{environment as t}from"../../../../atoms/utils/auth_environment.js";import{formatDate as n}from"../../../../atoms/utils/date.js";import{capitalize as r}from"../../../../atoms/utils/string.js";import{Browsers as i,FeedbackType as a,UrgencyOption as o}from"./Feedback.types.js";import{ServiceNowUrgency as s}from"@equinor/subsurface-app-management";const{getAppName:c,getEnvironmentName:l}=t,u=e=>e.urgency===o.NO_IMPACT?`:large_yellow_circle:`:e.urgency===o.IMPEDES?`:large_orange_circle:`:`:red_circle:`,d=e=>{let t=new FileReader;return new Promise((n,r)=>{t.onerror=()=>{t.abort(),r(new DOMException(`Problem parsing input file.`))},t.onload=()=>{n(t.result)},t.readAsDataURL(e)})},f=e=>{switch(e){case o.UNABLE:return s.CRITICAL;case o.IMPEDES:return s.MODERATE;case o.NO_IMPACT:return s.NORMAL}},p=(e,t)=>{let n=`Url location of bug: ${e.url} \n`,i=`Severity of bug: ${e.urgency} \n`,a=`Field: ${r(t??``)} \n`,o=`Browser: ${_()} \n`;return`${e.url?n:``}
2
- ${e.urgency?i:``}
3
- ${t?a:``}
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}`},m=(t,n)=>{let r=n?`selfservice?id=ticket&table=incident&sys_id=`:`now/nav/ui/classic/params/target/incident.do%3Fsys_id%3D`,i=l(import.meta.env.VITE_ENVIRONMENT_NAME)===e.PRODUCTION;return`https://equinor${i?``:`test`}.service-now.com/${r}${t}`},h=()=>{if(navigator.userAgent.includes(i.EDGE_SHORT))return i.EDGE;if(navigator.userAgent.includes(i.CHROME))return i.CHROME;if(navigator.userAgent.includes(i.SAFARI))return i.SAFARI;if(navigator.userAgent.includes(i.FIREFOX))return i.FIREFOX},g=e=>{let t=e;e===i.EDGE&&(t=i.EDGE_SHORT);let n=RegExp(`${t}/(\\d+(?:\\.\\d+)+)`);return navigator.userAgent.match(n)?.[1]},_=()=>{let e=h();return e?`${e} (${g(e)})`:`Not found`},v=(e,t,i,o,s)=>{let l=i===a.BUG,d=l?`:bug: Bug report`:`:bulb: Suggestion`,f=[],p=[];p.push({type:`mrkdwn`,text:`*Title* \n ${e.title}`}),f.push({type:`mrkdwn`,text:` ${n(new Date,{format:`DD. month YYYY`})}`}),e.url&&f.push({type:`mrkdwn`,text:`*<${e.url}|Error URL>*`}),e.urgency&&p.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:p},{type:`section`,fields:[{type:`mrkdwn`,text:`*Application*
6
- `+c(import.meta.env.VITE_NAME)},{type:`mrkdwn`,text:`*User* \n ${o}`}]},{type:`section`,fields:[{type:`mrkdwn`,text:`*Browser*
7
- `+_()},{type:`mrkdwn`,text:`*Field* \n ${r(t??`Not found`)}`}]},{type:`section`,text:{type:`mrkdwn`,text:`*Description*
8
- `+e.description}}];return s&&h.push({type:`section`,text:{type:`mrkdwn`,text:`*<${m(s)}|:link: Click to open the ticket in Service Now>*`}}),h.push({type:`divider`}),JSON.stringify(h)};export{p as createServiceNowDescription,m as createServiceNowUrl,v as createSlackMessage,f as getUrgencyNumber,d as readUploadedFileAsText};
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{spacings as t}from"../../../../../atoms/style/spacings.js";import{TextField as n}from"../../../../../molecules/TextField/TextField.js";import{FeedbackType as r}from"../Feedback.types.js";import{useFeedbackContext as i}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as a}from"./LockedInputTooltip.js";import{useMemo as o}from"react";import{Typography as s}from"@equinor/eds-core-react";import c from"styled-components";import{jsx as l,jsxs as u}from"react/jsx-runtime";const{colors:d}=e,f=c.div`
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: ${t.medium};
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:t,selectedType:c,updateFeedback:p}=i(),m=o(()=>e?d.interactive.disabled__text.rgba:d.text.static_icons__default.rgba,[e]);return u(f,{children:[c===r.BUG&&u(`div`,{children:[l(s,{group:`input`,variant:`text`,color:m,children:`What is the specific bug?`}),l(s,{group:`input`,variant:`text`,color:m,children:`What are the expected results?`}),l(s,{group:`input`,variant:`text`,color:m,children:`How can we reproduce the issue?`}),l(s,{group:`input`,variant:`text`,color:m,children:`Is there a known workaround?`})]}),l(a,{show:e,children:l(n,{id:`feedback-description`,label:`Description`,disabled:e,meta:`Required`,value:t.description,placeholder:c===r.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};
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 from"./Severity.js";import{Title as a}from"./Title.js";import{Url as o}from"./Url.js";import{Actions as s,Container as c,ContentWrapper as l,LockedFormWarning as u,ReportLocationText as d,UploadInfo as f}from"../Feedback.styles.js";import{useMemo as p}from"react";import{Button as m,Icon as h,Typography as g}from"@equinor/eds-core-react";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import{info_circle as b}from"@equinor/eds-icons";const x=()=>{let{isWrongDomain:x,selectedType:S,resetForm:C,feedbackContent:w,onDialogClose:T,serviceNowSuccess:E,handleSave:D,requestIsLoading:O}=t(),k=p(()=>w.title.length>0&&w.description.length>0&&!x,[w.title.length,w.description.length,x]);return v(l,{children:y(c,{children:[v(a,{}),S===e.BUG&&y(_,{children:[v(i,{}),v(o,{})]}),v(r,{}),y(f,{children:[v(h,{data:b}),v(g,{children:`Please make sure the uploaded files do not contain confidential or personal information`})]}),v(n,{}),v(d,{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&&y(u,{children:[v(h,{data:b}),v(g,{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.`})]}),y(s,{children:[v(m,{variant:`ghost`,onClick:C,"data-testid":`reset-form-button`,children:`Reset form`}),y(`div`,{children:[v(m,{variant:`ghost`,onClick:T,children:`Cancel`}),v(m,{onClick:D,disabled:!k||O,"data-testid":`submit-button`,children:E?`Send again`:`Send`})]})]})]})})};export{x as FeedbackForm};
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{OptionalTooltip as e}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{forwardRef as t,useMemo as n}from"react";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";const a=r(e)`
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=t(({show:e,children:t},r)=>{let o=n(()=>e?`The report was successfully submitted to ServiceNow.
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 i(a,{title:o,children:i(`div`,{ref:r,children:t})})});o.displayName=`LockedInputTooltip`;export{o as LockedInputTooltip};
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{SingleSelect as e}from"../../../../../molecules/Select/SingleSelect/SingleSelect.js";import{UrgencyOption as t}from"../Feedback.types.js";import{useFeedbackContext as n}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as r}from"./LockedInputTooltip.js";import i from"styled-components";import{jsx as a}from"react/jsx-runtime";const o=i.div`
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(t).map(e=>({value:e,label:e})),c=()=>{let{serviceNowSuccess:t,feedbackContent:i,updateFeedback:c}=n(),l=i.urgency?{value:i.urgency,label:i.urgency}:void 0;return a(o,{children:a(r,{show:t,children:a(e,{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 default};
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{TextField as e}from"../../../../../molecules/TextField/TextField.js";import{useFeedbackContext as t}from"../hooks/useFeedbackContext.js";import{LockedInputTooltip as n}from"./LockedInputTooltip.js";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";const a=r.div`
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:r,feedbackContent:o,updateFeedback:s}=t();return i(a,{children:i(n,{show:r,children:i(e,{id:`feedback-title`,label:`Title`,meta:`Required`,disabled:r,value:o.title,placeholder:`Write a title...`,onChange:e=>s(`title`,e.currentTarget.value)})})})};export{o as Title};
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{FileUploadArea as e}from"../../../../../../molecules/FileUploadArea/FileUploadArea.js";import{MAX_FILE_SIZE_BYTES as t}from"../../Feedback.const.js";import{useFeedbackContext as n}from"../../hooks/useFeedbackContext.js";import{FileUploadAreaWrapper as r,Title as i}from"./UploadFile.styles.js";import{ImageFile as a}from"./ImageFile.js";import{useState as o}from"react";import s from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=s.div`
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:s,setFeedbackAttachments:f}=n(),[p,m]=o([]),h=(e,t)=>{if(e.length>=1){let t=e.filter(e=>!e.name.startsWith(`.`)),n=new FileReader;n.readAsDataURL(e[0]);let r=[];s&&r.push(...s);let i=[...t,...r],a=d(i,(e,t)=>e.name===t.name&&e.size===t.size);f(a)}m(t)},g=e=>{let t=s?.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 l(u,{children:[c(i,{group:`input`,variant:`label`,children:`Attachments (.jpg, .jpeg, .png) (max 1 MB)`}),l(r,{children:[c(e,{maxSize:t,onDrop:h,accept:{"image/jpeg":[`.jpeg`,`.jpg`],"image/png":[`.png`]},size:`small`}),s?.map(e=>c(a,{onDelete:()=>g(e),file:e},e.name+e.size)),p.map(e=>c(a,{...e,onDelete:()=>_(e),error:!0},e.file.name+e.file.size))]})]})};export{f as UploadFile};
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};