@equinor/amplify-component-lib 9.16.0-beta.0 → 9.16.0-beta.1

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 (338) hide show
  1. package/dist/atoms/hooks/useAmplifyKit.js +1 -1
  2. package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
  3. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  4. package/dist/atoms/hooks/useOnScreenMultiple.js +1 -0
  5. package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
  6. package/dist/atoms/hooks/useRichTextImage.js +1 -0
  7. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  8. package/dist/atoms/hooks/useSelect.js +1 -1
  9. package/dist/atoms/index.js +1 -1
  10. package/dist/atoms/style/animation.js +1 -0
  11. package/dist/atoms/style/colors.js +1 -0
  12. package/dist/atoms/style/darkTokens.js +219 -0
  13. package/dist/atoms/style/index.js +1 -1
  14. package/dist/atoms/style/lightTokens.js +158 -0
  15. package/dist/atoms/style/spacingTokens.js +50 -0
  16. package/dist/atoms/style/spacings.js +1 -0
  17. package/dist/atoms/utils/auth_environment.js +1 -1
  18. package/dist/atoms/utils/date.js +1 -1
  19. package/dist/atoms/utils/map.js +1 -1
  20. package/dist/atoms/utils/richtext.js +1 -1
  21. package/dist/atoms/utils/size.js +1 -1
  22. package/dist/atoms/utils/skeleton.js +1 -0
  23. package/dist/atoms/utils/url.js +1 -1
  24. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  25. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
  26. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  27. package/dist/deprecated/IconToggleButton.js +1 -1
  28. package/dist/deprecated/OldStepper/OldStep.js +3 -3
  29. package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
  30. package/dist/deprecated/OldStepper/OldStepper.js +3 -3
  31. package/dist/index.js +1 -1
  32. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  33. package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
  34. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  35. package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
  36. package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
  37. package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
  38. package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
  39. package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
  40. package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +1 -0
  41. package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
  42. package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
  43. package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
  44. package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
  45. package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
  46. package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
  47. package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
  48. package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
  49. package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
  50. package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
  51. package/dist/molecules/Badge/Badge.js +1 -1
  52. package/dist/molecules/Badge/Badge.styles.js +17 -0
  53. package/dist/molecules/Banner/Banner.js +1 -1
  54. package/dist/molecules/Banner/Banner.styles.js +3 -3
  55. package/dist/molecules/Button/Button.js +3 -3
  56. package/dist/molecules/Button/Button.utils.js +1 -0
  57. package/dist/molecules/Chip/Chip.d.ts +2 -2
  58. package/dist/molecules/Chip/Chip.js +1 -1
  59. package/dist/molecules/Chip/Chip.styles.js +65 -0
  60. package/dist/molecules/Chip/InteractiveChip.js +1 -0
  61. package/dist/molecules/Chip/ReadOnlyChip.js +1 -0
  62. package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
  63. package/dist/molecules/ContentMenu/ContentMenu.styles.js +52 -0
  64. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  65. package/dist/molecules/DatePicker/DatePicker.js +1 -1
  66. package/dist/molecules/DatePicker/DatePicker.styles.js +63 -0
  67. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  68. package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
  69. package/dist/molecules/Dialog/Dialog.d.ts +3 -3
  70. package/dist/molecules/Dialog/Dialog.js +1 -1
  71. package/dist/molecules/Dialog/Dialog.styles.js +10 -10
  72. package/dist/molecules/Dialog/DialogAction.js +1 -1
  73. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  74. package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
  75. package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +1 -0
  76. package/dist/molecules/FileProgress/CompactFileProgress.js +1 -0
  77. package/dist/molecules/FileProgress/CompactFileProgress.styles.js +100 -0
  78. package/dist/molecules/FileProgress/FileProgress.js +1 -1
  79. package/dist/molecules/FileProgress/FileProgress.utils.js +1 -0
  80. package/dist/molecules/FileProgress/RegularFileProgress.js +1 -0
  81. package/dist/molecules/FileProgress/RegularFileProgress.styles.js +35 -0
  82. package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +1 -0
  83. package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
  84. package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
  85. package/dist/molecules/FileUploadArea/UploadIllustration.js +1 -0
  86. package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
  87. package/dist/molecules/IconCell/IconCell.d.ts +2 -2
  88. package/dist/molecules/IconCell/IconCell.js +1 -1
  89. package/dist/molecules/IconCell/IconCell.styles.js +26 -26
  90. package/dist/molecules/IconCell/IconCell.utils.js +7 -7
  91. package/dist/molecules/InfoElement/CopyText.js +41 -0
  92. package/dist/molecules/InfoElement/InfoElement.js +1 -1
  93. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  94. package/dist/molecules/ListItem/ListItem.js +13 -13
  95. package/dist/molecules/ListItem/ListItem.utils.js +1 -0
  96. package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
  97. package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +36 -0
  98. package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +1 -0
  99. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  100. package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
  101. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  102. package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
  103. package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
  104. package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
  105. package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
  106. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
  107. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
  108. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
  109. package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
  110. package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
  111. package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
  112. package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
  113. package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
  114. package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
  115. package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
  116. package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
  117. package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
  118. package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
  119. package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
  120. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
  121. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
  122. package/dist/molecules/RichTextEditor/index.d.ts +5 -5
  123. package/dist/molecules/RichTextEditor/index.js +1 -1
  124. package/dist/molecules/Search/Search.d.ts +2 -2
  125. package/dist/molecules/Search/Search.js +8 -8
  126. package/dist/molecules/Select/AddTagItem.js +1 -0
  127. package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
  128. package/dist/molecules/Select/GroupedSelectMenu.js +1 -0
  129. package/dist/molecules/Select/ListSelectMenu.js +1 -0
  130. package/dist/molecules/Select/Select.js +1 -0
  131. package/dist/molecules/Select/Select.styles.d.ts +5 -5
  132. package/dist/molecules/Select/Select.styles.js +61 -61
  133. package/dist/molecules/Select/Select.utils.js +1 -0
  134. package/dist/molecules/Select/SelectMenuItem.js +1 -0
  135. package/dist/molecules/Select/SelectMenuItem.utils.js +1 -0
  136. package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
  137. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  138. package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
  139. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  140. package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
  141. package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
  142. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  143. package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
  144. package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
  145. package/dist/molecules/Skeleton/Skeleton.styles.js +1 -0
  146. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  147. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
  148. package/dist/molecules/Skeleton/SkeletonField.js +8 -0
  149. package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
  150. package/dist/molecules/Stepper/Step/Step.js +5 -5
  151. package/dist/molecules/Stepper/Step/StepIcon.js +19 -0
  152. package/dist/molecules/Stepper/StepLine.js +2 -2
  153. package/dist/molecules/Stepper/Stepper.js +4 -4
  154. package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +25 -0
  155. package/dist/molecules/Stepper/SubTitle/SubTitle.js +7 -0
  156. package/dist/molecules/Tabs/Tab.js +1 -1
  157. package/dist/molecules/Tabs/Tab.styles.js +22 -22
  158. package/dist/molecules/Tabs/Tabs.js +4 -4
  159. package/dist/molecules/TextField/TextField.js +74 -0
  160. package/dist/molecules/Waves/Waves.js +1 -1
  161. package/dist/molecules/index.d.ts +2 -2
  162. package/dist/molecules/index.js +1 -1
  163. package/dist/organisms/DataGrid/DataGrid.js +6 -6
  164. package/dist/organisms/Faq/Category/Category.js +9 -0
  165. package/dist/organisms/Faq/Category/Question.js +22 -0
  166. package/dist/organisms/Faq/CategorySkeleton.js +29 -0
  167. package/dist/organisms/Faq/Faq.js +1 -1
  168. package/dist/organisms/Faq/Faq.styles.js +3 -3
  169. package/dist/organisms/Faq/Header.js +7 -7
  170. package/dist/organisms/FieldSelector/ChangingField.js +8 -8
  171. package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
  172. package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
  173. package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
  174. package/dist/organisms/Filter/AutoCompleteMenu.js +10 -0
  175. package/dist/organisms/Filter/AutoCompleteText.js +11 -0
  176. package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
  177. package/dist/organisms/Filter/Filter.js +1 -1
  178. package/dist/organisms/Filter/Filter.styles.js +39 -39
  179. package/dist/organisms/Filter/Filter.utils.js +1 -0
  180. package/dist/organisms/Filter/QuickFilter.js +1 -1
  181. package/dist/organisms/Filter/SortMenu.js +2 -2
  182. package/dist/organisms/PageTitle/PageTitle.js +1 -1
  183. package/dist/organisms/ReleaseNote/MetaTags.js +10 -0
  184. package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
  185. package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
  186. package/dist/organisms/ReleaseNote/ReleaseNote.utils.js +1 -1
  187. package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
  188. package/dist/organisms/SideBar/CreateItem.js +1 -0
  189. package/dist/organisms/SideBar/CreateItem.styles.js +33 -0
  190. package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -0
  191. package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +48 -0
  192. package/dist/organisms/SideBar/MenuItem/MenuItem.js +1 -0
  193. package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +37 -0
  194. package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +1 -0
  195. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  196. package/dist/organisms/SideBar/SideBar.js +1 -0
  197. package/dist/organisms/SideBar/SideBar.styles.js +41 -0
  198. package/dist/organisms/SideBar/ToggleOpen.js +1 -0
  199. package/dist/organisms/SideBar/ToggleOpen.styles.js +16 -0
  200. package/dist/organisms/SideBar/index.js +1 -1
  201. package/dist/organisms/Status/Action.d.ts +2 -2
  202. package/dist/organisms/Status/Action.js +1 -1
  203. package/dist/organisms/Status/Description.d.ts +2 -2
  204. package/dist/organisms/Status/Description.js +1 -1
  205. package/dist/organisms/Status/Illustration.constants.js +1 -0
  206. package/dist/organisms/Status/Illustration.js +2 -2
  207. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  208. package/dist/organisms/Status/MissingAccesses.js +4 -4
  209. package/dist/organisms/Status/Status.js +4 -4
  210. package/dist/organisms/Status/Title.d.ts +2 -2
  211. package/dist/organisms/Status/Title.js +1 -1
  212. package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
  213. package/dist/organisms/Status/collections/BadRequest.js +2 -2
  214. package/dist/organisms/Status/collections/GenericError.js +1 -1
  215. package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
  216. package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
  217. package/dist/organisms/Status/collections/PageNotFound.js +2 -2
  218. package/dist/organisms/Status/collections/ServerError.js +2 -2
  219. package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
  220. package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
  221. package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
  222. package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
  223. package/dist/organisms/Template/Template.d.ts +3 -3
  224. package/dist/organisms/Template/Template.js +7 -7
  225. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  226. package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
  227. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  228. package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
  229. package/dist/organisms/TopBar/Account/Account.js +1 -1
  230. package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
  231. package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
  232. package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
  233. package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
  234. package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
  235. package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
  236. package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
  237. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
  238. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
  239. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
  240. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  241. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
  242. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
  243. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
  244. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +1 -0
  245. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
  246. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
  247. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
  248. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
  249. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
  250. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
  251. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
  252. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
  253. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +1 -0
  254. package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
  255. package/dist/organisms/TopBar/Account/RoleList.js +7 -7
  256. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  257. package/dist/organisms/TopBar/Actions.js +3 -3
  258. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
  259. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
  260. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  261. package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
  262. package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
  263. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
  264. package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
  265. package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
  266. package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
  267. package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
  268. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  269. package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
  270. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
  271. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
  272. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
  273. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
  274. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
  275. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
  276. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
  277. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
  278. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
  279. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
  280. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
  281. package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
  282. package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +41 -0
  283. package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
  284. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
  285. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
  286. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
  287. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
  288. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
  289. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +7 -0
  290. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
  291. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +79 -0
  292. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
  293. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
  294. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
  295. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
  296. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
  297. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
  298. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
  299. package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
  300. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +1 -0
  301. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +7 -0
  302. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -0
  303. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +19 -0
  304. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +1 -0
  305. package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
  306. package/dist/organisms/TopBar/Resources/Resources.js +4 -4
  307. package/dist/organisms/TopBar/Settings.js +11 -11
  308. package/dist/organisms/TopBar/TopBar.js +1 -1
  309. package/dist/organisms/TopBar/TopBar.styles.js +22 -22
  310. package/dist/organisms/TopBar/TopBarMenu.js +4 -4
  311. package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
  312. package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
  313. package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
  314. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
  315. package/dist/organisms/index.js +1 -1
  316. package/dist/providers/AuthProvider/AuthProvider.js +1 -0
  317. package/dist/providers/AuthProvider/AuthProviderInner.js +1 -0
  318. package/dist/providers/LoadingProvider.js +1 -1
  319. package/dist/providers/ReleaseNotesProvider.js +1 -1
  320. package/dist/providers/ReleaseNotesProvider.utils.js +1 -0
  321. package/dist/providers/SideBarProvider.js +1 -1
  322. package/dist/providers/SnackbarProvider/SnackbarProvider.js +1 -0
  323. package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +41 -0
  324. package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +1 -0
  325. package/dist/providers/StepperProvider.js +1 -1
  326. package/dist/providers/TableOfContentsProvider.js +1 -1
  327. package/dist/providers/TableOfContentsProvider.utils.js +1 -0
  328. package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
  329. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +1 -0
  330. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +1 -0
  331. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +24 -0
  332. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +20 -0
  333. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +75 -0
  334. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +1 -0
  335. package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +1 -0
  336. package/package.json +2 -2
  337. package/dist/atoms/hooks/index.js +0 -1
  338. package/dist/providers/index.js +0 -1
@@ -1 +1 @@
1
- import{useMemo as e}from"react";import{AmplifyKit as t}from"src/molecules/RichTextEditor/custom-extensions/AmplifyKit";import{RichTextEditorFeatures as n}from"src/molecules/RichTextEditor/RichTextEditor.types";const r=({features:r,placeholder:i,onImageUpload:a,onImageRead:o})=>e(()=>t.configure({placeholder:i?{placeholder:i}:void 0,link:r?.includes(n.LINKS)?{}:!1,table:r?.includes(n.TABLE)?{}:!1,textAlign:r?.includes(n.ALIGNMENT)?{}:!1,bulletList:r?.includes(n.LISTS)?{}:!1,orderedList:r?.includes(n.LISTS)?{}:!1,codeBlockLowlight:r?.includes(n.CODE)?{}:!1,image:r?.includes(n.IMAGES)?{onImageUpload:a,onImageRead:o}:!1,heading:r?.includes(n.HEADERS)?{}:!1}),[i,r,a,o]);export{r as useAmplifyKit};
1
+ import{RichTextEditorFeatures as e}from"../../molecules/RichTextEditor/RichTextEditor.types.js";import{AmplifyKit as t}from"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useMemo as n}from"react";const r=({features:r,placeholder:i,onImageUpload:a,onImageRead:o})=>n(()=>t.configure({placeholder:i?{placeholder:i}:void 0,link:r?.includes(e.LINKS)?{}:!1,table:r?.includes(e.TABLE)?{}:!1,textAlign:r?.includes(e.ALIGNMENT)?{}:!1,bulletList:r?.includes(e.LISTS)?{}:!1,orderedList:r?.includes(e.LISTS)?{}:!1,codeBlockLowlight:r?.includes(e.CODE)?{}:!1,image:r?.includes(e.IMAGES)?{onImageUpload:a,onImageRead:o}:!1,heading:r?.includes(e.HEADERS)?{}:!1}),[i,r,a,o]);export{r as useAmplifyKit};
@@ -1 +1 @@
1
- import{FaqService as e}from"@equinor/subsurface-app-management";import{useQuery as t}from"@tanstack/react-query";import{environment as n}from"src/atoms/utils/auth_environment";function r(){return t({queryKey:[`GET_FAQ_IN_APP`],queryFn:async()=>{let t=await e.getCategoriesWithFaqsFromApplicationName(n.getAppName(import.meta.env.VITE_NAME));return t.toSorted((e,t)=>{let n=e.orderBy??0,r=t.orderBy??0;return n-r})},staleTime:1e3*60*5})}export{r as useFaqsInApplication};
1
+ import{environment as e}from"../utils/auth_environment.js";import{FaqService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";function r(){return n({queryKey:[`GET_FAQ_IN_APP`],queryFn:async()=>(await t.getCategoriesWithFaqsFromApplicationName(e.getAppName(import.meta.env.VITE_NAME))).toSorted((e,t)=>{let n=e.orderBy??0,r=t.orderBy??0;return n-r}),staleTime:1e3*60*5})}export{r as useFaqsInApplication};
@@ -1,6 +1,6 @@
1
- import * as react137 from "react";
1
+ import * as react120 from "react";
2
2
 
3
3
  //#region src/atoms/hooks/useLocalStorage.d.ts
4
- declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react137.Dispatch<react137.SetStateAction<T>>, () => void];
4
+ declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react120.Dispatch<react120.SetStateAction<T>>, () => void];
5
5
  //#endregion
6
6
  export { useLocalStorage };
@@ -0,0 +1 @@
1
+ import{useEffect as e,useState as t}from"react";function n(n){let[r,i]=t(Array(n.length).fill(!1)),a=(e,t)=>{i(n=>{let r=[...n];return r[e]=t,r})};return e(()=>{let e=[];i(Array(n.length).fill(!1));for(let[t,r]of n.entries()){if(r===null)continue;let n=new IntersectionObserver(([e])=>{a(t,e.isIntersecting)},{threshold:1});n.observe(r),e.push(n)}return()=>{for(let t of e)t.disconnect()}},[n]),r}export{n as useOnScreenMultiple};
@@ -1 +1 @@
1
- import{useEffect as e,useRef as t}from"react";import{getImagesFromRichText as n}from"src/atoms/utils";import{useIsFetching as r,useQueryClient as i}from"@tanstack/react-query";function a({richTextValues:a,onImageRead:o}){let s=i(),c=t([]),l=t([]),u=a.flatMap(e=>n(e)),d=r({predicate:e=>c.current.some(t=>e.queryKey[0]===t&&!l.current.includes(t))})>0;return e(()=>{let e=async e=>{await s.prefetchQuery({queryKey:[e],queryFn:async()=>{let t=await o(e),n=e.split(`.`).at(-1);return`data:image/${n};base64,${t}`},staleTime:1/0,gcTime:1/0}),l.current.push(e)};for(let t of u.filter(e=>!c.current.includes(e)))c.current.push(t),e(t)},[o,u,s]),{isPrefetching:d}}export{a as usePrefetchRichTextImages};
1
+ import{getImagesFromRichText as e}from"../utils/richtext.js";import{useEffect as t,useRef as n}from"react";import{useIsFetching as r,useQueryClient as i}from"@tanstack/react-query";function a({richTextValues:a,onImageRead:o}){let s=i(),c=n([]),l=n([]),u=a.flatMap(t=>e(t)),d=r({predicate:e=>c.current.some(t=>e.queryKey[0]===t&&!l.current.includes(t))})>0;return t(()=>{let e=async e=>{await s.prefetchQuery({queryKey:[e],queryFn:async()=>{let t=await o(e);return`data:image/${e.split(`.`).at(-1)};base64,${t}`},staleTime:1/0,gcTime:1/0}),l.current.push(e)};for(let t of u.filter(e=>!c.current.includes(e)))c.current.push(t),e(t)},[o,u,s]),{isPrefetching:d}}export{a as usePrefetchRichTextImages};
@@ -0,0 +1 @@
1
+ import{useQuery as e}from"@tanstack/react-query";function t(t,n){return e({queryKey:[t],queryFn:async()=>{if(n){let e=await n(t);return`data:image/${t.split(`.`).at(-1)};base64,${e}`}return t},staleTime:1/0,gcTime:1/0})}export{t as useRichTextImage};
@@ -1,6 +1,6 @@
1
1
  import { SelectOption, SelectOptionRequired } from "../../molecules/Select/Select.types.js";
2
2
  import { SelectComponentProps } from "../../molecules/Select/Select.js";
3
- import * as react135 from "react";
3
+ import * as react118 from "react";
4
4
  import { ChangeEvent, KeyboardEvent } from "react";
5
5
 
6
6
  //#region src/atoms/hooks/useSelect.d.ts
@@ -16,8 +16,8 @@ declare const useSelect: <T extends SelectOptionRequired>(props: SelectComponent
16
16
  handleOnOpen: () => void;
17
17
  handleOnRemoveItem: (item: SelectOption<T>) => void;
18
18
  search: string;
19
- searchRef: react135.RefObject<HTMLInputElement | null>;
20
- itemRefs: react135.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react118.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react118.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -1 +1 @@
1
- import{useEffect as e,useMemo as t,useRef as n,useState as r}from"react";import{flattenOptions as i}from"src/molecules/Select/Select.utils";const a=a=>{let{loading:o,disabled:s,sortValues:c,onSearchChange:l,onOpenCallback:u}=a,[d,f]=r(!1),[p,m]=r(``),h=n(null),g=n([]),_=n(-1),[v,y]=r(void 0),b=n(!1),x=n(0),S=t(()=>{let e=[];if(`values`in a?e=a.values:a.value&&(e=[a.value]),!c)return e;let t;return t=`groups`in a&&a.groups?a.groups.flatMap(e=>e.items):a.items.flatMap(e=>[{...e},...e.children||[]]),e.sort((e,n)=>{let r=t.findIndex(t=>t.value===e.value),i=t.findIndex(e=>e.value===n.value);return r-i})},[a,c]);e(()=>{u!==void 0&&u(d)},[u,d]),e(()=>{b.current&&x.current!==S.length&&(x.current=S.length,b.current=!1,h.current?.focus())},[S.length]);let C=()=>{!d&&!s&&!o&&(h.current?.focus(),f(!0))},w=()=>{f(!1),m(``),_.current=0},T=()=>{s||o||(d?w():C())},E=e=>{e.target.value===` `||o||s||(m(e.target.value),l?.(e.target.value),d||f(!0))},D=(e,t)=>{let n=structuredClone(e);return n.some(e=>e.value===t.value)?n.filter(e=>e.value!==t.value):`values`in a&&a.syncParentChildSelection!==void 0&&!a.syncParentChildSelection?[t,...n]:[t,...n.filter(e=>(t.children===void 0||t.children.length>0)&&i([t]).some(t=>t.value===e.value)?!1:e.children===void 0||e.children.length===0?!0:i([e]).every(e=>e.value!==t.value))]},O=e=>{`value`in a?a.value?.value===e.value?a.onSelect(void 0):a.onSelect(e):a.onSelect(D(a.values,e),e),p!==``&&m(``),b.current=!0},k=e=>{`values`in a&&!o&&!s&&a.onSelect(a.values.filter(t=>t.value!==e.value),e)},A=()=>{`value`in a?a.onSelect(void 0):a.onSelect([])},j=e=>{e.key===`Enter`&&p!==``&&`onAddItem`in a&&a.onAddItem?(e.preventDefault(),a.onAddItem(p),m(``)):e.key===`Space`||e.key===`Enter`?C():e.key===`Escape`?(h.current?.blur(),w()):(e.key===`ArrowDown`||e.key===`ArrowUp`)&&g.current.at(0)?(g.current[0]?.focus(),_.current=0):e.key===`Backspace`&&v===void 0&&`values`in a&&p===``?(y(S?.at(-1)),setTimeout(()=>{h.current?.focus()})):e.key===`Backspace`&&v&&(k(v),y(void 0),setTimeout(()=>{h.current?.focus()}))},M=e=>{e.key===`ArrowDown`&&_.current<g.current.length-1?(_.current+=1,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current>0?(--_.current,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current===0&&(_.current=-1,h.current?.focus())},N=()=>{`onAddItem`in a&&a.onAddItem&&(a.onAddItem(p),m(``))};return{handleOnAddItem:N,handleOnItemSelect:O,handleOnItemKeyDown:M,handleOnSearchKeyDown:j,handleOnClear:A,handleOnSearchChange:E,handleToggleOpen:T,handleOnClose:w,handleOnOpen:C,handleOnRemoveItem:k,search:p,searchRef:h,itemRefs:g,selectedValues:S,open:d,tryingToRemoveItem:v}};export{a as useSelect};
1
+ import{flattenOptions as e}from"../../molecules/Select/Select.utils.js";import{useEffect as t,useMemo as n,useRef as r,useState as i}from"react";const a=a=>{let{loading:o,disabled:s,sortValues:c,onSearchChange:l,onOpenCallback:u}=a,[d,f]=i(!1),[p,m]=i(``),h=r(null),g=r([]),_=r(-1),[v,y]=i(void 0),b=r(!1),x=r(0),S=n(()=>{let e=[];if(`values`in a?e=a.values:a.value&&(e=[a.value]),!c)return e;let t=`groups`in a&&a.groups?a.groups.flatMap(e=>e.items):a.items.flatMap(e=>[{...e},...e.children||[]]);return e.sort((e,n)=>{let r=t.findIndex(t=>t.value===e.value),i=t.findIndex(e=>e.value===n.value);return r-i})},[a,c]);t(()=>{u!==void 0&&u(d)},[u,d]),t(()=>{b.current&&x.current!==S.length&&(x.current=S.length,b.current=!1,h.current?.focus())},[S.length]);let C=()=>{!d&&!s&&!o&&(h.current?.focus(),f(!0))},w=()=>{f(!1),m(``),_.current=0},T=()=>{s||o||(d?w():C())},E=e=>{e.target.value===` `||o||s||(m(e.target.value),l?.(e.target.value),d||f(!0))},D=(t,n)=>{let r=structuredClone(t);return r.some(e=>e.value===n.value)?r.filter(e=>e.value!==n.value):`values`in a&&a.syncParentChildSelection!==void 0&&!a.syncParentChildSelection?[n,...r]:[n,...r.filter(t=>(n.children===void 0||n.children.length>0)&&e([n]).some(e=>e.value===t.value)?!1:t.children===void 0||t.children.length===0?!0:e([t]).every(e=>e.value!==n.value))]},O=e=>{`value`in a?a.value?.value===e.value?a.onSelect(void 0):a.onSelect(e):a.onSelect(D(a.values,e),e),p!==``&&m(``),b.current=!0},k=e=>{`values`in a&&!o&&!s&&a.onSelect(a.values.filter(t=>t.value!==e.value),e)};return{handleOnAddItem:()=>{`onAddItem`in a&&a.onAddItem&&(a.onAddItem(p),m(``))},handleOnItemSelect:O,handleOnItemKeyDown:e=>{e.key===`ArrowDown`&&_.current<g.current.length-1?(_.current+=1,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current>0?(--_.current,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current===0&&(_.current=-1,h.current?.focus())},handleOnSearchKeyDown:e=>{e.key===`Enter`&&p!==``&&`onAddItem`in a&&a.onAddItem?(e.preventDefault(),a.onAddItem(p),m(``)):e.key===`Space`||e.key===`Enter`?C():e.key===`Escape`?(h.current?.blur(),w()):(e.key===`ArrowDown`||e.key===`ArrowUp`)&&g.current.at(0)?(g.current[0]?.focus(),_.current=0):e.key===`Backspace`&&v===void 0&&`values`in a&&p===``?(y(S?.at(-1)),setTimeout(()=>{h.current?.focus()})):e.key===`Backspace`&&v&&(k(v),y(void 0),setTimeout(()=>{h.current?.focus()}))},handleOnClear:()=>{`value`in a?a.onSelect(void 0):a.onSelect([])},handleOnSearchChange:E,handleToggleOpen:T,handleOnClose:w,handleOnOpen:C,handleOnRemoveItem:k,search:p,searchRef:h,itemRefs:g,selectedValues:S,open:d,tryingToRemoveItem:v}};export{a as useSelect};
@@ -1 +1 @@
1
- import{useAmplifyKit as e}from"./hooks/useAmplifyKit.js";import{useDebounce as ee}from"./hooks/useDebounce.js";import{useFakeProgress as t}from"./hooks/useFakeProgress.js";import{useLocalStorage as te}from"./hooks/useLocalStorage.js";import{usePrevious as n}from"./hooks/usePrevious.js";import{useSelect as r}from"./hooks/useSelect.js";import{usePrefetchRichTextImages as i}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as a}from"./hooks/useFaqsInApplication.js";import{useAuth as o,useNotification as s,useOnScreenMultiple as c,useReleaseNotes as l,useSideBar as u,useSnackbar as d,useStepper as f,useTableOfContents as p,useThemeProvider as m}from"./hooks/index.js";import{animation as h,colors as g,elevation as _,shape as v,spacings as y,style_exports as b,typography as x}from"./style/index.js";import{ErrorType as S}from"./enums/Errors.js";import{EnvironmentType as C}from"./enums/Environment.js";import{Theme as w}from"./enums/Theme.js";import{SpacingsMode as T}from"./enums/SpacingsMode.js";import{amplify_failure as E,amplify_lwd as D,amplify_success as O,amplify_wellbore as k,amplify_wireline as A,amplify_wireline_cased_hole as j,amplify_wireline_open_hole as M}from"./icons/drilling.js";import{amplify_calculator as N,amplify_overlay as P,amplify_sidebyside as F}from"./icons/map.js";import{amplify_aml as I,amplify_arrow_up_down as L,amplify_branch as R,amplify_info_small as z,amplify_merged as B,amplify_overview as V,amplify_resources as H,amplify_sharepoint as U,amplify_shield_person as W,amplify_small_portal as G,amplify_snail as K,amplify_sort_small as q,amplify_tutorials as J}from"./icons/other.js";import{amplify_h1 as Y,amplify_h2 as X,amplify_h3 as Z,amplify_h4 as Q,amplify_table_add_column_left as ne,amplify_table_add_column_right as re,amplify_table_add_row_above as ie,amplify_table_add_row_below as ae,amplify_table_column_heading as oe,amplify_table_merge_cells as se,amplify_table_remove_column as ce,amplify_table_remove_row as le,amplify_table_row_heading as ue,amplify_table_split_cell as de}from"./icons/wysiwyg.js";import{auth as fe,environment as pe}from"./utils/auth_environment.js";import{formatLatLng as me,formatUtm as he}from"./utils/coordinate.js";import{formatDate as ge,formatDateTime as _e,formatRelativeDateTime as ve,isBetweenDates as ye}from"./utils/date.js";import{exportComponent as be}from"./utils/export.js";import{setupIcons as xe}from"./utils/favicon.js";import{convertLatLngToUtm as Se,convertUtmToLatLng as Ce,degrees2radians as we,distanceLatLng as Te,utmProjection as Ee}from"./utils/map.js";import{defaultQueryOptions as De}from"./utils/reactquery.js";import{IMG_WITH_ALT as Oe,IMG_WITH_SRC_AND_ALT as ke,cleanRichTextValue as Ae,extractImageUrls as je,getFeatures as Me,getImagesFromRichText as Ne,imageToB64 as Pe}from"./utils/richtext.js";import{formatBytes as Fe,formatDataSize as Ie,formatKiloBytes as Le}from"./utils/size.js";import{sortByDate as Re,sortByWellboreName as ze}from"./utils/sort.js";import{Empty as Be,capitalize as Ve}from"./utils/string.js";import{isValidUrl as He}from"./utils/url.js";import{getHighlightElementBoundingBox as Ue,highlightTutorialElementID as We}from"./utils/tutorials.js";import{getVariantIcon as Ge}from"./utils/forms.js";const $=b;export{$ as style};
1
+ import{EnvironmentType as e}from"./enums/Environment.js";import{auth as ee,environment as t}from"./utils/auth_environment.js";import{animation as te}from"./style/animation.js";import{colors as n}from"./style/colors.js";import{spacings as r}from"./style/spacings.js";import{elevation as i,shape as a,style_exports as o,typography as s}from"./style/index.js";import{formatLatLng as c,formatUtm as l}from"./utils/coordinate.js";import{formatDate as u,formatDateTime as d,formatRelativeDateTime as f,isBetweenDates as p}from"./utils/date.js";import{exportComponent as m}from"./utils/export.js";import{setupIcons as h}from"./utils/favicon.js";import{convertLatLngToUtm as g,convertUtmToLatLng as _,degrees2radians as v,distanceLatLng as y,utmProjection as b}from"./utils/map.js";import{defaultQueryOptions as x}from"./utils/reactquery.js";import{IMG_WITH_ALT as S,IMG_WITH_SRC_AND_ALT as C,cleanRichTextValue as w,extractImageUrls as T,getFeatures as E,getImagesFromRichText as D,imageToB64 as O}from"./utils/richtext.js";import{formatBytes as k,formatDataSize as A,formatKiloBytes as j}from"./utils/size.js";import{sortByDate as M,sortByWellboreName as N}from"./utils/sort.js";import{Empty as P,capitalize as F}from"./utils/string.js";import{isValidUrl as I}from"./utils/url.js";import{getHighlightElementBoundingBox as L,highlightTutorialElementID as R}from"./utils/tutorials.js";import{getVariantIcon as z}from"./utils/forms.js";import{useAuth as B}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as V}from"../providers/SideBarProvider.js";import{useSnackbar as H}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as U}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as W}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as G}from"./hooks/useLocalStorage.js";import{useAmplifyKit as K}from"./hooks/useAmplifyKit.js";import{useDebounce as q}from"./hooks/useDebounce.js";import{useFakeProgress as J}from"./hooks/useFakeProgress.js";import{usePrevious as Y}from"./hooks/usePrevious.js";import{useSelect as X}from"./hooks/useSelect.js";import{useNotification as Z}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as Q}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as ie}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ae}from"./hooks/useFaqsInApplication.js";import{ErrorType as oe}from"./enums/Errors.js";import{SpacingsMode as se}from"./enums/SpacingsMode.js";import{amplify_failure as ce,amplify_lwd as le,amplify_success as ue,amplify_wellbore as de,amplify_wireline as fe,amplify_wireline_cased_hole as pe,amplify_wireline_open_hole as me}from"./icons/drilling.js";import{amplify_calculator as he,amplify_overlay as ge,amplify_sidebyside as _e}from"./icons/map.js";import{amplify_aml as ve,amplify_arrow_up_down as ye,amplify_branch as be,amplify_info_small as xe,amplify_merged as Se,amplify_overview as Ce,amplify_resources as we,amplify_sharepoint as Te,amplify_shield_person as Ee,amplify_small_portal as De,amplify_snail as Oe,amplify_sort_small as ke,amplify_tutorials as Ae}from"./icons/other.js";import{amplify_h1 as je,amplify_h2 as Me,amplify_h3 as Ne,amplify_h4 as Pe,amplify_table_add_column_left as Fe,amplify_table_add_column_right as Ie,amplify_table_add_row_above as Le,amplify_table_add_row_below as Re,amplify_table_column_heading as ze,amplify_table_merge_cells as Be,amplify_table_remove_column as Ve,amplify_table_remove_row as He,amplify_table_row_heading as Ue,amplify_table_split_cell as We}from"./icons/wysiwyg.js";import{useReleaseNotes as Ge}from"../providers/ReleaseNotesProvider.js";const $=o;export{$ as style};
@@ -0,0 +1 @@
1
+ const e={transitionMS:`200ms`};export{e as animation};
@@ -0,0 +1 @@
1
+ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";const{colors:t}=e,n={...t,ui:{...t.ui,background__light_medium:{rgba:`var(--amplify_ui_background_light_medium, rgba(235, 235, 235, 1))`},background__heavy:{rgba:`var(--amplify_ui_background_heavy, rgba(189, 189, 189, 1))`},background__tutorial_card:{rgba:`var(--amplify_ui_background_tutorial_card, rgba(222, 237, 238, 1))`}},interactive:{...t.interactive,primary__pressed:{rgba:`var(--amplify_interactive_primary_pressed, rgba(19, 46, 49, 1))`},tutorial__active_step:{rgba:`var(--amplify_interactive_tutorial_active_step, rgba(0, 112, 121, 1))`},tutorial__inactive_step:{rgba:`var(--amplify_interactive_tutorial_inactive_step, rgba(168, 206, 209, 1))`}},dataviz:{primary:{default:`var(--amplify_dataviz_primary_default, rgba(0, 107, 229, 1))`,darker:`var(--amplify_dataviz_primary_darker, rgba(0, 83, 178, 1))`,lighter:`var(--amplify_dataviz_primary_lighter, rgba(206, 229, 255, 1))`,primary10:`var(--amplify_dataviz_primary_10, rgba(235, 245, 255, 1))`,primary20:`var(--amplify_dataviz_primary_20, rgba(211, 231, 253, 1))`,primary30:`var(--amplify_dataviz_primary_30, rgba(167, 206, 251, 1))`,primary40:`var(--amplify_dataviz_primary_40, rgba(133, 187, 250, 1))`,primary50:`var(--amplify_dataviz_primary_50, rgba(89, 163, 248, 1))`,primary60:`var(--amplify_dataviz_primary_60, rgba(40, 136, 246, 1))`,primary70:`var(--amplify_dataviz_primary_70, rgba(0, 107, 229, 1))`,primary80:`var(--amplify_dataviz_primary_80, rgba(0, 83, 178, 1))`,primary90:`var(--amplify_dataviz_primary_90, rgba(5, 60, 122, 1))`},darkblue:{default:`var(--amplify_dataviz_darkblue_default, rgba(0, 71, 153, 1))`,darker:`var(--amplify_dataviz_darkblue_darker, rgba(4, 48, 98, 1))`,lighter:`var(--amplify_dataviz_darkblue_lighter, rgba(191, 220, 252, 1))`},lightblue:{default:`var(--amplify_dataviz_lightblue_default, rgba(133, 208, 250, 1))`,darker:`var(--amplify_dataviz_lightblue_darker, rgba(35, 170, 246, 1))`,lighter:`var(--amplify_dataviz_lightblue_lighter, rgba(211, 238, 253, 1))`},lightgreen:{default:`var(--amplify_dataviz_lightgreen_default, rgba(10, 194, 154, 1))`,darker:`var(--amplify_dataviz_lightgreen_darker, rgba(8, 145, 115, 1))`,lighter:`var(--amplify_dataviz_lightgreen_lighter, rgba(220, 241, 236, 1))`},darkgreen:{default:`var(--amplify_dataviz_darkgreen_default, rgba(0, 102, 76, 1))`,darker:`var(--amplify_dataviz_darkgreen_darker, rgba(0, 61, 46, 1))`,lighter:`var(--amplify_dataviz_darkgreen_lighter, rgba(200, 237, 227, 1))`},darkpink:{default:`var(--amplify_dataviz_darkpink_default, rgba(169, 30, 88, 1))`,darker:`var(--amplify_dataviz_darkpink_darker, rgba(135, 18, 67, 1))`,lighter:`var(--amplify_dataviz_darkpink_lighter, rgba(252, 212, 229, 1))`},lightpink:{default:`var(--amplify_dataviz_lightpink_default, rgba(255, 128, 138, 1))`,darker:`var(--amplify_dataviz_lightpink_darker, rgba(225, 81, 93, 1))`,lighter:`var(--amplify_dataviz_lightpink_lighter, rgba(255, 219, 222, 1))`},darkyellow:{default:`var(--amplify_dataviz_darkyellow_default, rgba(160, 112, 28, 1))`,darker:`var(--amplify_dataviz_darkyellow_darker, rgba(121, 85, 21, 1))`,lighter:`var(--amplify_dataviz_darkyellow_lighter, rgba(244, 226, 195, 1))`},lightyellow:{default:`var(--amplify_dataviz_lightyellow_default, rgba(253, 203, 53, 1))`,darker:`var(--amplify_dataviz_lightyellow_darker, rgba(227, 171, 2, 1))`,lighter:`var(--amplify_dataviz_lightyellow_lighter, rgba(255, 240, 194, 1))`},darkpurple:{default:`var(--amplify_dataviz_darkpurple_default, rgba(147, 20, 219, 1))`,darker:`var(--amplify_dataviz_darkpurple_darker, rgba(97, 1, 152, 1))`,lighter:`var(--amplify_dataviz_darkpurple_lighter, rgba(232, 209, 246, 1))`},lightpurple:{default:`var(--amplify_dataviz_lightpurple_default, rgba(186, 153, 255, 1))`,darker:`var(--amplify_dataviz_lightpurple_darker, rgba(155, 89, 242, 1))`,lighter:`var(--amplify_dataviz_lightpurple_lighter, rgba(234, 224, 255, 1))`},darkgray:{default:`var(--amplify_dataviz_darkgray_default, rgba(122, 122, 122,1))`,darker:`var(--amplify-dataviz_darkgray_darker, rgba(86, 86, 86,1))`,lighter:`var(--amplify-dataviz_darkgray_lighter, rgba(173, 173, 173, 1))`},lightgray:{default:`var(--amplify_dataviz_lightgray_default, rgba(144, 155, 162, 1))`,darker:`var(--amplify_dataviz_lightgray_darker, rgba(91, 102, 108, 1))`,lighter:`var(--amplify_dataviz_lightgray_lighter, rgba(194, 200, 204, 1))`}}},r={warning:n.interactive.warning__resting.rgba,error:n.interactive.danger__resting.rgba,success:n.interactive.success__resting.rgba,dirty:n.infographic.substitute__blue_ocean.rgba},i={warning:n.interactive.warning__hover.rgba,error:n.interactive.danger__hover.rgba,success:n.interactive.success__hover.rgba,dirty:n.infographic.substitute__blue_ocean.rgba};export{r as VARIANT_COLORS,i as VARIANT_HELPER_TEXT_COLORS,n as colors};
@@ -0,0 +1,219 @@
1
+ import{css as e}from"styled-components";const t=e`
2
+ /*Dark Theme*/
3
+ [data-theme='dark'] {
4
+ textarea,
5
+ input {
6
+ color: var(--eds_text_static_icons__default);
7
+ }
8
+
9
+ --amplify_interactive_tutorial_active_step: rgba(154, 202, 206, 1);
10
+ --amplify_interactive_tutorial_inactive_step: rgba(96, 125, 127, 1);
11
+
12
+ /* Override super specific text colors to just default text color */
13
+ --eds_heading__h1_bold_color: var(--eds_text_static_icons__default);
14
+ --eds_input__text_monospaced_color: var(--eds_text_static_icons__default);
15
+ --eds_input__helper_color: var(--eds_text_static_icons__default);
16
+ --eds_table__cell_text_link_color: var(--eds_text_static_icons__default);
17
+ --eds_navigation__drawer_active_color: var(
18
+ --eds_text_static_icons__default
19
+ );
20
+ --eds_navigation__drawer_inactive_color: var(
21
+ --eds_text_static_icons__default
22
+ );
23
+ --eds_navigation__breadcrumb_color: var(--eds_text_static_icons__default);
24
+ --eds_navigation__breadcrumb_hover_color: var(
25
+ --eds_text_static_icons__default
26
+ );
27
+ --eds_navigation__menu_title_hover_color: var(
28
+ --eds_text_static_icons__default
29
+ );
30
+ --eds_paragraph__body_short_italic_color: var(
31
+ --eds_text_static_icons__default
32
+ );
33
+ --eds_paragraph__body_short_bold_italic_color: var(
34
+ --eds_text_static_icons__default
35
+ );
36
+ --eds_paragraph__body_short_bold_color: var(
37
+ --eds_text_static_icons__default
38
+ );
39
+ --eds_paragraph__body_short_link_color: var(
40
+ --eds_interactive_primary__resting
41
+ );
42
+ --eds_paragraph__ingress_color: var(--eds_text_static_icons__default);
43
+ --eds_paragraph__body_long_italic_color: var(
44
+ --eds_text_static_icons__default
45
+ );
46
+ --eds_paragraph__body_long_bold_color: var(
47
+ --eds_text_static_icons__default
48
+ );
49
+ --eds_paragraph__body_long_bold_italic_color: var(
50
+ --eds_text_static_icons__default
51
+ );
52
+ --eds_ui__tooltip_color: var(--eds_text_static_icons__default);
53
+ --eds_ui__snackbar_color: var(--eds_text_static_icons__default);
54
+ --eds_ui__chart_color: var(--eds_text_static_icons__default);
55
+
56
+ --eds_clickbound_jumbo__base: 88px;
57
+ --eds_clickbound_default__base: 48px;
58
+ --eds_clickbound_default__input: 56px;
59
+ --eds_clickbound_compact__standard: 32px;
60
+ --eds_clickbound_compact__input: 44px;
61
+
62
+ --eds_text_static_icons__default: rgba(255, 255, 255, 1);
63
+ --eds_text__static_icons__default: rgba(255, 255, 255, 1);
64
+
65
+ --eds_text_static_icons__secondary: rgba(222, 229, 231, 1);
66
+ --eds_text__static_icons__secondary: rgba(222, 229, 231, 1);
67
+
68
+ --eds_text_static_icons__tertiary: rgba(156, 166, 172, 1);
69
+ --eds_text__static_icons__tertiary: rgba(156, 166, 172, 1);
70
+
71
+ --eds_text_static_icons__primary_white: rgba(61, 61, 61, 1);
72
+ --eds_text__static_icons__primary_white: rgba(61, 61, 61, 1);
73
+
74
+ --eds_ui_background__default: rgba(19, 38, 52, 1);
75
+ --eds_ui_background__semitransparent: rgba(255, 255, 255, 0.2);
76
+ --eds_ui_background__light: rgba(38, 55, 68, 1);
77
+ --amplify_ui_background_light_medium: rgba(40, 58, 72, 1);
78
+ --amplify_ui_background_heavy: rgba(50, 72, 89, 1);
79
+ --amplify_ui_background_tutorial_card: rgba(50, 72, 89, 1);
80
+ --eds_ui_background__scrim: rgba(0, 0, 0, 0.4);
81
+ --eds_ui_background__overlay: rgba(0, 0, 0, 0.8);
82
+ --eds_ui_background__medium: rgba(44, 64, 79, 1);
83
+ --eds_ui_background__info: rgba(43, 126, 166, 1);
84
+ --eds_ui_background__warning: rgba(157, 105, 63, 1);
85
+ --eds_ui_background__danger: rgba(183, 87, 87, 1);
86
+ --eds_infographic_substitute__purple_berry: rgba(140, 17, 89, 1);
87
+ --eds_infographic_substitute__pink_rose: rgba(226, 73, 115, 1);
88
+ --eds_infographic_substitute__pink_salmon: rgba(255, 146, 168, 1);
89
+ --eds_infographic_substitute__green_cucumber: rgba(0, 95, 87, 1);
90
+ --eds_infographic_substitute__green_succulent: rgba(0, 151, 123, 1);
91
+ --eds_infographic_substitute__green_mint: rgba(64, 211, 143, 1);
92
+ --eds_infographic_substitute__blue_ocean: rgba(0, 64, 136, 1);
93
+ --eds_infographic_substitute__blue_overcast: rgba(0, 132, 196, 1);
94
+ --eds_infographic_substitute__blue_sky: rgba(82, 192, 255, 1);
95
+ --eds_infographic_primary__moss_green_100: rgba(0, 112, 121, 1);
96
+ --eds_infographic_primary__moss_green_55: rgba(115, 177, 181, 1);
97
+ --eds_infographic_primary__moss_green_34: rgba(168, 206, 209, 1);
98
+ --eds_infographic_primary__moss_green_21: rgba(201, 224, 226, 1);
99
+ --eds_infographic_primary__moss_green_13: rgba(222, 237, 238, 1);
100
+ --eds_infographic_primary__energy_red_100: rgba(235, 0, 55, 1);
101
+ --eds_infographic_primary__energy_red_55: rgba(255, 125, 152, 1);
102
+ --eds_infographic_primary__energy_red_34: rgba(255, 174, 191, 1);
103
+ --eds_infographic_primary__energy_red_21: rgba(255, 205, 215, 1);
104
+ --eds_infographic_primary__energy_red_13: rgba(255, 224, 231, 1);
105
+ --eds_infographic_primary__weathered_red: rgba(125, 0, 35, 1);
106
+ --eds_infographic_primary__slate_blue: rgba(36, 55, 70, 1);
107
+ --eds_infographic_primary__spruce_wood: rgba(255, 231, 214, 1);
108
+ --eds_infographic_primary__mist_blue: rgba(213, 234, 244, 1);
109
+ --eds_infographic_primary__lichen_green: rgba(230, 250, 236, 1);
110
+ --eds_logo_fill_positive: rgba(235, 0, 55, 1);
111
+ --eds_logo_fill_negative: rgba(255, 255, 255, 1);
112
+ --eds_interactive_primary__selected_highlight: rgba(0, 151, 123, 1);
113
+ --eds_interactive_primary__selected_hover: rgba(0, 95, 87, 1);
114
+ --eds_interactive_primary__resting: rgba(151, 202, 206, 1);
115
+ --eds_interactive_primary__hover: rgba(173, 226, 230, 1);
116
+ --eds_interactive_primary__hover_alt: rgb(96, 125, 127);
117
+ --amplify_interactive_primary_pressed: rgba(95, 198, 206, 1);
118
+ --eds_interactive_secondary__highlight: rgba(255, 255, 255, 0.1);
119
+ --eds_interactive_secondary__resting: rgba(222, 229, 231, 1);
120
+ --eds_interactive_secondary__link_hover: rgba(23, 36, 47, 1);
121
+ --eds_interactive_danger__highlight: rgba(90, 57, 70, 1);
122
+ --eds_interactive_danger__resting: rgba(255, 115, 124, 1);
123
+ --eds_interactive_danger__hover: rgba(255, 148, 155, 1);
124
+ --eds_interactive_danger__text: rgba(255, 171, 176, 1);
125
+ --eds_interactive_warning__highlight: rgba(90, 86, 73, 1);
126
+ --eds_interactive_warning__resting: rgba(255, 146, 0, 1);
127
+ --eds_interactive_warning__hover: rgba(255, 218, 168, 1);
128
+ --eds_interactive_warning__text: rgba(255, 198, 122, 1);
129
+ --eds_interactive_success__highlight: rgba(62, 92, 84, 1);
130
+ --eds_interactive_success__resting: rgba(75, 183, 72, 1);
131
+ --eds_interactive_success__hover: rgba(193, 231, 193, 1);
132
+ --eds_interactive_success__text: rgba(161, 218, 160, 1);
133
+
134
+ --eds_interactive_table__header__fill_activated: rgba(46, 63, 77, 1);
135
+ --eds_interactive_table__header__fill_resting: rgba(36, 55, 70, 1);
136
+ --eds_interactive_table__header__fill_hover: rgba(50, 77, 98, 1);
137
+ --eds_interactive_table__cell__fill_activated: rgba(36, 55, 70, 1);
138
+ --eds_interactive_table__cell__fill_resting: rgba(19, 38, 52, 1);
139
+ --eds_interactive_table__cell__fill_hover: rgba(30, 60, 82, 1);
140
+
141
+ --eds_interactive_disabled__text: rgba(99, 117, 131, 1);
142
+ --eds_interactive__disabled__text: rgba(99, 117, 131, 1);
143
+
144
+ --eds_interactive_disabled__border: rgba(64, 84, 98, 1);
145
+ --eds_interactive__disabled__border: rgba(64, 84, 98, 1);
146
+
147
+ --eds_interactive_disabled__fill: rgba(52, 68, 80, 1);
148
+ --eds_interactive__disabled__fill: rgba(52, 68, 80, 1);
149
+
150
+ --eds_interactive_text_highlight: rgba(213, 234, 244, 1);
151
+ --eds_interactive__text_highlight: rgba(213, 234, 244, 1);
152
+
153
+ --eds_interactive_focus: rgba(0, 112, 121, 1);
154
+
155
+ --eds_interactive_link_on_interactive_colors: rgba(255, 255, 255, 1);
156
+ --eds_interactive_icon_on_interactive_colors: rgba(255, 255, 255, 1);
157
+ --eds_interactive_link_in_snackbars: rgba(151, 202, 206, 1);
158
+ --eds_interactive_pressed_overlay_dark: rgba(0, 0, 0, 0.2);
159
+ --eds_interactive_pressed_overlay_light: rgba(255, 255, 255, 0.2);
160
+
161
+ --eds_elevation_raised:
162
+ 0 1px 5px rgba(0, 0, 0, 0.2), 0 3px 4px rgba(0, 0, 0, 0.12),
163
+ 0 2px 4px rgba(0, 0, 0, 0.14);
164
+ --eds_elevation_none: 0 0 1px rgba(0, 0, 0, 0.14);
165
+ --eds_elevation_overlay:
166
+ 0 1px 10px rgba(0, 0, 0, 0.2), 0 4px 5px rgba(0, 0, 0, 0.12),
167
+ 0 2px 4px rgba(0, 0, 0, 0.14);
168
+ --eds_elevation_sticky:
169
+ 0 4px 5px rgba(0, 0, 0, 0.2), 0 3px 14px rgba(0, 0, 0, 0.12),
170
+ 0 8px 10px rgba(0, 0, 0, 0.14);
171
+ --eds_elevation_temporary_nav:
172
+ 0 7px 8px rgba(0, 0, 0, 0.2), 0 5px 22px rgba(0, 0, 0, 0.12),
173
+ 0 12px 17px rgba(0, 0, 0, 0.14);
174
+ --eds_elevation_above_scrim:
175
+ 0 11px 15px rgba(0, 0, 0, 0.2), 0 9px 46px rgba(0, 0, 0, 0.12),
176
+ 0 24px 38px rgba(0, 0, 0, 0.14);
177
+
178
+ --eds_heading__h1_color: rgba(255, 255, 255, 1);
179
+ --eds_heading__h2_color: rgba(255, 255, 255, 1);
180
+ --eds_heading__h3_color: rgba(255, 255, 255, 1);
181
+ --eds_heading__h4_color: rgba(255, 255, 255, 1);
182
+ --eds_heading__h5_color: rgba(255, 255, 255, 1);
183
+ --eds_heading__h6_color: rgba(255, 255, 255, 1);
184
+
185
+ --eds_navigation__label_color: rgba(255, 255, 255, 1);
186
+ --eds_navigation__button_color: rgba(255, 255, 255, 1);
187
+ --eds_input__label_color: rgba(255, 255, 255, 1);
188
+ --eds_input__text_color: var(--eds_text_static_icons__default);
189
+ --eds_paragraph__body_short_color: rgba(255, 255, 255, 1);
190
+ --eds_paragraph__body_long_link_color: rgba(255, 255, 255, 1);
191
+ --eds_table__cell_header_color: rgba(255, 255, 255, 1);
192
+ --eds_table__cell_text_color: rgba(255, 255, 255, 1);
193
+ --eds_table__cell_text_bold_color: rgba(255, 255, 255, 1);
194
+ --eds_table__cell_numeric_monospaced_color: rgba(255, 255, 255, 1);
195
+
196
+ --eds_navigation__menu_title_color: rgba(255, 255, 255, 1);
197
+ --eds_navigation__menu_tabs_color: rgba(156, 166, 172, 1);
198
+ --eds_ui__accordion_header_color: rgba(255, 255, 255, 1);
199
+
200
+ --eds_paragraph__overline_color: rgba(255, 255, 255, 1);
201
+ --eds_paragraph__caption_color: rgba(255, 255, 255, 1);
202
+ --eds_paragraph__body_short_color: rgba(255, 255, 255, 1);
203
+ --eds_paragraph__body_long_color: rgba(255, 255, 255, 1);
204
+ --eds_paragraph__meta_color: rgba(255, 255, 255, 1);
205
+
206
+ --eds_interactive__icon_on_interactive_colors: rgba(255, 255, 255, 1);
207
+
208
+ --eds_ui__chip__badge_color: var(--eds_text_static_icons__default);
209
+
210
+ /* Override table typography variables */
211
+ --eds_table__cell_header_color: var(--eds_text__static_icons__default);
212
+ --eds_table__cell_text_color: var(--eds_text__static_icons__default);
213
+ --eds_table__cell_text_bold_color: var(--eds_text__static_icons__default);
214
+ --eds_table__cell_text_link_color: var(--eds_text__static_icons__default);
215
+ --eds_table__cell_numeric_monospaced_color: var(
216
+ --eds_text__static_icons__default
217
+ );
218
+ }
219
+ `;export{t as darkTokens};
@@ -1 +1 @@
1
- import{__export as e}from"../../_virtual/rolldown_runtime.js";import{tokens as t}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{animation as n}from"src/atoms/style/animation";import{colors as r}from"src/atoms/style/colors";import{spacings as i}from"src/atoms/style/spacings";var a={};e(a,{animation:()=>n,colors:()=>r,elevation:()=>s,shape:()=>o,spacings:()=>i,typography:()=>c});const{shape:o,elevation:s,typography:c}=t;export{n as animation,r as colors,s as elevation,o as shape,i as spacings,a as style_exports,c as typography};
1
+ import{__export as e}from"../../_virtual/rolldown_runtime.js";import{tokens as t}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{animation as n}from"./animation.js";import{colors as r}from"./colors.js";import{spacings as i}from"./spacings.js";var a={};e(a,{animation:()=>n,colors:()=>r,elevation:()=>s,shape:()=>o,spacings:()=>i,typography:()=>c});const{shape:o,elevation:s,typography:c}=t;export{s as elevation,o as shape,a as style_exports,c as typography};
@@ -0,0 +1,158 @@
1
+ import{css as e}from"styled-components";const t=e`
2
+ [data-theme='light'] {
3
+ --amplify_ui_background_light_medium: rgba(235, 235, 235, 1);
4
+ --amplify_ui_background_heavy: rgba(189, 189, 189, 1);
5
+ --amplify_ui_background_tutorial_card: rgba(222, 237, 238, 1);
6
+
7
+ --amplify_interactive_primary_pressed: rgba(19, 46, 49, 1);
8
+ --amplify_interactive_tutorial_active_step: rgba(0, 112, 121, 1);
9
+ --amplify_interactive_tutorial_inactive_step: rgba(168, 206, 209, 1);
10
+
11
+ --amplify_dataviz_primary_default: rgba(0, 107, 229, 1);
12
+ --amplify_dataviz_primary_darker: rgba(0, 83, 178, 1);
13
+ --amplify_dataviz_primary_lighter: rgba(206, 229, 255, 1);
14
+
15
+ --amplify_dataviz_primary_10: rgba(235, 245, 255, 1);
16
+ --amplify_dataviz_primary_20: rgba(211, 231, 253, 1);
17
+ --amplify_dataviz_primary_30: rgba(167, 206, 251, 1);
18
+ --amplify_dataviz_primary_40: rgba(133, 187, 250, 1);
19
+ --amplify_dataviz_primary_50: rgba(89, 163, 248, 1);
20
+ --amplify_dataviz_primary_60: rgba(40, 136, 246, 1);
21
+ --amplify_dataviz_primary_70: rgba(0, 107, 229, 1);
22
+ --amplify_dataviz_primary_80: rgba(0, 83, 178, 1);
23
+ --amplify_dataviz_primary_90: rgba(5, 60, 122, 1);
24
+
25
+ --amplify_dataviz_darkblue_default: rgba(0, 71, 153, 1);
26
+ --amplify_dataviz_darkblue_darker: rgba(4, 48, 98, 1);
27
+ --amplify_dataviz_darkblue_lighter: rgba(191, 220, 252, 1);
28
+
29
+ --amplify_dataviz_lightblue_default: rgba(133, 208, 250, 1);
30
+ --amplify_dataviz_lightblue_darker: rgba(35, 170, 246, 1);
31
+ --amplify_dataviz_lightblue_lighter: rgba(211, 238, 253, 1);
32
+
33
+ --amplify_dataviz_lightgreen_default: rgba(10, 194, 154, 1);
34
+ --amplify_dataviz_lightgreen_darker: rgba(8, 145, 115, 1);
35
+ --amplify_dataviz_lightgreen_lighter: rgba(220, 241, 236, 1);
36
+
37
+ --amplify_dataviz_darkgreen_default: rgba(0, 102, 76, 1);
38
+ --amplify_dataviz_darkgreen_darker: rgba(0, 61, 46, 1);
39
+ --amplify_dataviz_darkgreen_lighter: rgba(200, 237, 227, 1);
40
+
41
+ --amplify_dataviz_darkpink_default: rgba(169, 30, 88, 1);
42
+ --amplify_dataviz_darkpink_darker: rgba(135, 18, 67, 1);
43
+ --amplify_dataviz_darkpink_lighter: rgba(252, 212, 229, 1);
44
+
45
+ --amplify_dataviz_lightpink_default: rgba(255, 128, 138, 1);
46
+ --amplify_dataviz_lightpink_darker: rgba(225, 81, 93, 1);
47
+ --amplify_dataviz_lightpink_lighter: rgba(255, 219, 222, 1);
48
+
49
+ --amplify_dataviz_darkyellow_default: rgba(160, 112, 28, 1);
50
+ --amplify_dataviz_darkyellow_darker: rgba(121, 85, 21, 1);
51
+ --amplify_dataviz_darkyellow_lighter: rgba(244, 226, 195, 1);
52
+
53
+ --amplify_dataviz_lightyellow_default: rgba(253, 203, 53, 1);
54
+ --amplify_dataviz_lightyellow_darker: rgba(227, 171, 2, 1);
55
+ --amplify_dataviz_lightyellow_lighter: rgba(255, 240, 194, 1);
56
+
57
+ --amplify_dataviz_darkpurple_default: rgba(147, 20, 219, 1);
58
+ --amplify_dataviz_darkpurple_darker: rgba(97, 1, 152, 1);
59
+ --amplify_dataviz_darkpurple_lighter: rgba(232, 209, 246, 1);
60
+
61
+ --amplify_dataviz_lightpurple_default: rgba(186, 153, 255, 1);
62
+ --amplify_dataviz_lightpurple_darker: rgba(155, 89, 242, 1);
63
+ --amplify_dataviz_lightpurple_lighter: rgba(234, 224, 255, 1);
64
+
65
+ --amplify_dataviz_darkgray_default: rgba(122, 122, 122, 1);
66
+ --amplify_dataviz_darkgray_darker: rgba(86, 86, 86, 1);
67
+ --amplify_dataviz_darkgray_lighter: rgba(173, 173, 173, 1);
68
+
69
+ --amplify_dataviz_lightgray_default: rgba(144, 155, 162, 1);
70
+ --amplify_dataviz_lightgray_darker: rgba(91, 102, 108, 1);
71
+ --amplify_dataviz_lightgray_lighter: rgba(194, 200, 204, 1);
72
+
73
+ --eds_text__static_icons__default: rgba(61, 61, 61, 1);
74
+ --eds_text__static_icons__secondary: rgba(86, 86, 86, 1);
75
+ --eds_text__static_icons__tertiary: rgba(111, 111, 111, 1);
76
+ --eds_text__static_icons__primary_white: rgba(255, 255, 255, 1);
77
+ --eds_ui_background__default: rgba(255, 255, 255, 1);
78
+ --eds_ui_background__semitransparent: rgba(255, 255, 255, 0.2);
79
+ --eds_ui_background__light: rgba(247, 247, 247, 1);
80
+ --eds_ui_background__scrim: rgba(0, 0, 0, 0.4);
81
+ --eds_ui_background__overlay: rgba(0, 0, 0, 0.8);
82
+ --eds_ui_background__medium: rgba(220, 220, 220, 1);
83
+ --eds_ui_background__info: rgba(213, 234, 244, 1);
84
+ --eds_ui_background__warning: rgba(255, 231, 214, 1);
85
+ --eds_ui_background__danger: rgba(255, 193, 193, 1);
86
+ --eds_infographic_substitute__purple_berry: rgba(140, 17, 89, 1);
87
+ --eds_infographic_substitute__pink_rose: rgba(226, 73, 115, 1);
88
+ --eds_infographic_substitute__pink_salmon: rgba(255, 146, 168, 1);
89
+ --eds_infographic_substitute__green_cucumber: rgba(0, 95, 87, 1);
90
+ --eds_infographic_substitute__green_succulent: rgba(0, 151, 123, 1);
91
+ --eds_infographic_substitute__green_mint: rgba(64, 211, 143, 1);
92
+ --eds_infographic_substitute__blue_ocean: rgba(0, 64, 136, 1);
93
+ --eds_infographic_substitute__blue_overcast: rgba(0, 132, 196, 1);
94
+ --eds_infographic_substitute__blue_sky: rgba(82, 192, 255, 1);
95
+ --eds_infographic_primary__moss_green_100: rgba(0, 112, 121, 1);
96
+ --eds_infographic_primary__moss_green_55: rgba(115, 177, 181, 1);
97
+ --eds_infographic_primary__moss_green_34: rgba(168, 206, 209, 1);
98
+ --eds_infographic_primary__moss_green_21: rgba(201, 224, 226, 1);
99
+ --eds_infographic_primary__moss_green_13: rgba(222, 237, 238, 1);
100
+ --eds_infographic_primary__energy_red_100: rgba(235, 0, 55, 1);
101
+ --eds_infographic_primary__energy_red_55: rgba(255, 125, 152, 1);
102
+ --eds_infographic_primary__energy_red_34: rgba(255, 174, 191, 1);
103
+ --eds_infographic_primary__energy_red_21: rgba(255, 205, 215, 1);
104
+ --eds_infographic_primary__energy_red_13: rgba(255, 224, 231, 1);
105
+ --eds_infographic_primary__weathered_red: rgba(125, 0, 35, 1);
106
+ --eds_infographic_primary__slate_blue: rgba(36, 55, 70, 1);
107
+ --eds_infographic_primary__spruce_wood: rgba(255, 231, 214, 1);
108
+ --eds_infographic_primary__mist_blue: rgba(213, 234, 244, 1);
109
+ --eds_infographic_primary__lichen_green: rgba(230, 250, 236, 1);
110
+ --eds_logo__fill_positive: rgba(235, 0, 55, 1);
111
+ --eds_logo__fill_negative: rgba(255, 255, 255, 1);
112
+ --eds_interactive_primary__selected_highlight: rgba(230, 250, 236, 1);
113
+ --eds_interactive_primary__selected_hover: rgba(195, 243, 210, 1);
114
+ --eds_interactive_primary__resting: rgba(0, 112, 121, 1);
115
+ --eds_interactive_primary__hover: rgba(0, 79, 85, 1);
116
+ --eds_interactive_primary__hover_alt: rgba(222, 237, 238, 1);
117
+ --eds_interactive_secondary__highlight: rgba(213, 234, 244, 1);
118
+ --eds_interactive_secondary__resting: rgba(36, 55, 70, 1);
119
+ --eds_interactive_secondary__link_hover: rgba(23, 36, 47, 1);
120
+ --eds_interactive_danger__highlight: rgba(255, 193, 193, 1);
121
+ --eds_interactive_danger__resting: rgba(235, 0, 0, 1);
122
+ --eds_interactive_danger__hover: rgba(179, 13, 47, 1);
123
+ --eds_interactive_danger__text: rgba(179, 13, 47, 1);
124
+ --eds_interactive_warning__highlight: rgba(255, 231, 214, 1);
125
+ --eds_interactive_warning__resting: rgba(255, 146, 0, 1);
126
+ --eds_interactive_warning__hover: rgba(173, 98, 0, 1);
127
+ --eds_interactive_warning__text: rgba(173, 98, 0, 1);
128
+ --eds_interactive_success__highlight: rgba(230, 250, 236, 1);
129
+ --eds_interactive_success__resting: rgba(75, 183, 72, 1);
130
+ --eds_interactive_success__hover: rgba(53, 129, 50, 1);
131
+ --eds_interactive_success__text: rgba(53, 129, 50, 1);
132
+ --eds_interactive_table__cell__fill_resting: rgba(255, 255, 255, 1);
133
+ --eds_interactive_table__cell__fill_hover: rgba(234, 234, 234, 1);
134
+ --eds_interactive_table__cell__fill_activated: rgba(230, 250, 236, 1);
135
+ --eds_interactive_table__header__fill_activated: rgba(234, 234, 234, 1);
136
+ --eds_interactive_table__header__fill_hover: rgba(220, 220, 220, 1);
137
+ --eds_interactive_table__header__fill_resting: rgba(247, 247, 247, 1);
138
+ --eds_interactive__disabled__text: rgba(190, 190, 190, 1);
139
+ --eds_interactive__text_highlight: rgba(213, 234, 244, 1);
140
+ --eds_interactive__focus: rgba(0, 112, 121, 1);
141
+ --eds_interactive__disabled__border: rgba(220, 220, 220, 1);
142
+ --eds_interactive__disabled__fill: rgba(234, 234, 234, 1);
143
+ --eds_interactive__link_on_interactive_colors: rgba(255, 255, 255, 1);
144
+ --eds_interactive__icon_on_interactive_colors: rgba(255, 255, 255, 1);
145
+ --eds_interactive__link_in_snackbars: rgba(151, 202, 206, 1);
146
+ --eds_interactive__pressed_overlay_dark: rgba(0, 0, 0, 0.2);
147
+ --eds_interactive__pressed_overlay_light: rgba(255, 255, 255, 0.2);
148
+
149
+ /* Override table typography variables */
150
+ --eds_table__cell_header_color: var(--eds_text__static_icons__default);
151
+ --eds_table__cell_text_color: var(--eds_text__static_icons__default);
152
+ --eds_table__cell_text_bold_color: var(--eds_text__static_icons__default);
153
+ --eds_table__cell_text_link_color: var(--eds_text__static_icons__default);
154
+ --eds_table__cell_numeric_monospaced_color: var(
155
+ --eds_text__static_icons__default
156
+ );
157
+ }
158
+ `;export{t as lightTokens};
@@ -0,0 +1,50 @@
1
+ import{css as e}from"styled-components";const t=e`
2
+ /*Comfortable, by default*/
3
+ html {
4
+ --eds_spacing_xxx_large: 48px;
5
+ --eds_spacing_xx_large: 40px;
6
+ --eds_spacing_x_large: 32px;
7
+ --eds_spacing_large: 24px;
8
+ --eds_spacing_medium: 16px;
9
+ --eds_spacing_medium_small: 12px;
10
+ --eds_spacing_small: 8px;
11
+ --eds_spacing_x_small: 4px;
12
+ --eds_spacing_xx_small: 2px;
13
+ /* Override button padding variables to make it work with spacings */
14
+ --eds_button__padding_x: var(--eds_spacing_medium);
15
+
16
+ --eds_icon-button__size: 40px;
17
+ --eds_button__height: 36px;
18
+ }
19
+
20
+ /*Compact*/
21
+ [data-spacing-mode='compact'] {
22
+ --eds_spacing_xxx_large: 40px;
23
+ --eds_spacing_xx_large: 32px;
24
+ --eds_spacing_x_large: 40px;
25
+ --eds_spacing_large: 16px;
26
+ --eds_spacing_medium: 12px;
27
+ --eds_spacing_medium_small: 8px;
28
+ --eds_spacing_small: 4px;
29
+ --eds_spacing_x_small: 2px;
30
+ --eds_spacing_xx_small: 0px;
31
+
32
+ --eds_icon-button__size: 32px;
33
+ --eds_button__height: 28px;
34
+ }
35
+
36
+ /*Extra Compact*/
37
+ [data-spacing-mode='extra-compact'] {
38
+ --eds_spacing_xxx_large: 32px;
39
+ --eds_spacing_xx_large: 24px;
40
+ --eds_spacing_x_large: 16px;
41
+ --eds_spacing_large: 12px;
42
+ --eds_spacing_medium: 8px;
43
+ --eds_spacing_medium_small: 4px;
44
+ --eds_spacing_small: 2px;
45
+ --eds_spacing_x_small: 0px;
46
+ --eds_spacing_xx_small: 0px;
47
+ --eds_icon-button__size: 28px;
48
+ --eds_button__height: 20px;
49
+ }
50
+ `;export{t as spacingTokens};
@@ -0,0 +1 @@
1
+ const e={xxx_large:`var(--eds_spacing_xxx_large, 48px)`,xx_large:`var(--eds_spacing_xx_large, 40px)`,x_large:`var(--eds_spacing_x_large, 32px)`,large:`var(--eds_spacing_large, 24px)`,medium:`var(--eds_spacing_medium, 16px)`,medium_small:`var(--eds_spacing_medium_small, 12px)`,small:`var(--eds_spacing_small, 8px)`,x_small:`var(--eds_spacing_x-small, 4px)`,xx_small:`var(--eds_spacing_xx_small, 2px)`};export{e as spacings};
@@ -1 +1 @@
1
- import{EnvironmentType as e}from"src/atoms/enums/Environment";import{PublicClientApplication as t}from"@azure/msal-browser";const n=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],r=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!n.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},i=e=>e||r(`NAME`),a=e=>e||r(`CLIENT_ID`),o=e=>e||r(`API_URL`),s=e=>e||r(`API_SCOPE`),c=e=>e||r(`API_CLIENT_ID`),l=e=>e||r(`ENVIRONMENT_NAME`),u=e=>e||r(`SERVICE_NOW_CONFIGURATION_ITEM`),d=e=>e===void 0?!1:e===`true`,f=e=>e===void 0?[`admin`]:JSON.parse(e),p=e=>e?e.split(`;`):r(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],m=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function h(){let t=import.meta.env.VITE_ENVIRONMENT_NAME;if(t||=r(`ENVIRONMENT_NAME`),t===e.PRODUCTION)return`https://jsembark.equinor.com`;let n=t===e.LOCALHOST?e.DEVELOP:t;return`https://client-amplify-portal-${n}.radix.equinor.com`}const g=h(),_={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},v=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),y={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},b={scopes:[y.OPENID,y.PROFILE,y.USER_READ]},x={scopes:[y.USER_READ]},S=e=>({scopes:[e]}),C=()=>window.self!==window.top,w=new t({auth:{clientId:a(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`,storeAuthStateInCookie:!1}}),T=p(import.meta.env.ALLOWED_PARENT_DOMAINS);window.addEventListener(`message`,async e=>{if(T.includes(e.origin)){let t=e.data;if(t){await w.initialize();try{await w.ssoSilent({sid:t}),console.log(`postMessage successfully logged in user!`)}catch(e){console.error(`Something went wrong with postMessage`),console.error(e)}}}});const E=async()=>{if(d(import.meta.env.VITE_IS_MOCK))return``;let e=w.getActiveAccount(),t=w.getAllAccounts();if(!e&&t.length===0)return``;let n=await w.acquireTokenSilent(S(s(import.meta.env.VITE_API_SCOPE)));return n.accessToken},D=e=>{if(e){let t=e.some(e=>e.includes(`WRITE`));return!t}else return!0},O={fetchMsGraph:v,GRAPH_SCOPES:y,GRAPH_REQUESTS_LOGIN:b,GRAPH_REQUESTS_PHOTO:x,GRAPH_REQUESTS_BACKEND:S,GRAPH_ENDPOINTS:_,msalApp:w,getToken:E,isReaderOnly:D,isInIframe:C},k={getConfig:r,getAppName:i,getClientId:a,getApiUrl:o,getApiScope:s,getApiClientId:c,getEnvironmentName:l,getIsMock:d,getMockUserPhoto:m,getMockRoles:f,getServiceNowConfigurationItem:u,PORTAL_URL_WITHOUT_LOCALHOST:g};export{O as auth,k as environment};
1
+ import{EnvironmentType as e}from"../enums/Environment.js";import{PublicClientApplication as t}from"@azure/msal-browser";const n=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],r=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!n.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},i=e=>e||r(`NAME`),a=e=>e||r(`CLIENT_ID`),o=e=>e||r(`API_URL`),s=e=>e||r(`API_SCOPE`),c=e=>e||r(`API_CLIENT_ID`),l=e=>e||r(`ENVIRONMENT_NAME`),u=e=>e||r(`SERVICE_NOW_CONFIGURATION_ITEM`),d=e=>e===void 0?!1:e===`true`,f=e=>e===void 0?[`admin`]:JSON.parse(e),p=e=>e?e.split(`;`):r(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],m=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function h(){let t=import.meta.env.VITE_ENVIRONMENT_NAME;return t||=r(`ENVIRONMENT_NAME`),t===e.PRODUCTION?`https://jsembark.equinor.com`:`https://client-amplify-portal-${t===e.LOCALHOST?e.DEVELOP:t}.radix.equinor.com`}const g=h(),_={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},v=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),y={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},b={scopes:[y.OPENID,y.PROFILE,y.USER_READ]},x={scopes:[y.USER_READ]},S=e=>({scopes:[e]}),C=()=>window.self!==window.top,w=new t({auth:{clientId:a(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`,storeAuthStateInCookie:!1}}),T=p(import.meta.env.ALLOWED_PARENT_DOMAINS);window.addEventListener(`message`,async e=>{if(T.includes(e.origin)){let t=e.data;if(t){await w.initialize();try{await w.ssoSilent({sid:t}),console.log(`postMessage successfully logged in user!`)}catch(e){console.error(`Something went wrong with postMessage`),console.error(e)}}}});const E={fetchMsGraph:v,GRAPH_SCOPES:y,GRAPH_REQUESTS_LOGIN:b,GRAPH_REQUESTS_PHOTO:x,GRAPH_REQUESTS_BACKEND:S,GRAPH_ENDPOINTS:_,msalApp:w,getToken:async()=>{if(d(import.meta.env.VITE_IS_MOCK))return``;let e=w.getActiveAccount(),t=w.getAllAccounts();return!e&&t.length===0?``:(await w.acquireTokenSilent(S(s(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>e?!e.some(e=>e.includes(`WRITE`)):!0,isInIframe:C},D={getConfig:r,getAppName:i,getClientId:a,getApiUrl:o,getApiScope:s,getApiClientId:c,getEnvironmentName:l,getIsMock:d,getMockUserPhoto:m,getMockRoles:f,getServiceNowConfigurationItem:u,PORTAL_URL_WITHOUT_LOCALHOST:g};export{E as auth,D as environment};
@@ -1 +1 @@
1
- const e=(e,t={format:`DD. month YYYY`,month:`long`})=>{if(e){let n=new Date(e);if(n.getTime()){if(t?.format===`DD. month YYYY`){let e=n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0});return`${e}. ${n.toLocaleString(`en-GB`,{month:t?.month??`long`,year:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}`}let e=t?.useUTC?n.getUTCDate():n.getDate(),r=t?.useUTC?n.getUTCMonth()+1:n.getMonth()+1,i=t?.useUTC?n.getUTCFullYear():n.getFullYear();if(t?.format===`DD. month`){let e=n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0});return`${e}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,timeZone:t.useUTC?`UTC`:void 0})}`}return t?.format===`YYYY-MM-DD`?`${i.toString().padStart(4,`0`)}-${r.toString().padStart(2,`0`)}-${e.toString().padStart(2,`0`)}`:t?.format===`DD.MM.YY`?`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`).slice(-2)}`:`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`)}`}}},t=(e,t={month:`long`,hideYear:!1,isGMT:!1})=>{if(e){let n=new Date(e);if(n.getTime()){(t.isGMT??!1)&&n.setTime(n.getTime()+n.getTimezoneOffset()*6e4);let e=n.toLocaleDateString(`en-GB`,{day:`numeric`});return`${e}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,year:t.hideYear?void 0:`numeric`,hour:`2-digit`,minute:`2-digit`})}`}}},n=(e,n=!1)=>{if(e){let r=new Date(e),i=new Date;if(r.getTime()){n&&r.setTime(r.getTime()+r.getTimezoneOffset()*6e4);let a=r<i?i.getTime()-r.getTime():r.getTime()-i.getTime(),o=a/(1e3*3600*24),s=r.toLocaleTimeString(`en-GB`,{hour:`2-digit`,minute:`2-digit`});return o<1&&r.getDate()===i.getDate()?`Today at ${s}`:o<2&&r<i?`Yesterday at ${s}`:o<2&&o>=0?`Tomorrow at ${s}`:o>2&&o<7&&r>i?`${r.toLocaleString(`en-GB`,{weekday:`long`})} at ${s}`:t(e,{hideYear:r.getFullYear()===i.getFullYear()})}}},r=(e,t)=>{if(e){let n=new Date(e);if(n.getTime())return n>=t[0]&&n<=t[1]}return!1};export{e as formatDate,t as formatDateTime,n as formatRelativeDateTime,r as isBetweenDates};
1
+ const e=(e,t={format:`DD. month YYYY`,month:`long`})=>{if(e){let n=new Date(e);if(n.getTime()){if(t?.format===`DD. month YYYY`)return`${n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}. ${n.toLocaleString(`en-GB`,{month:t?.month??`long`,year:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}`;let e=t?.useUTC?n.getUTCDate():n.getDate(),r=t?.useUTC?n.getUTCMonth()+1:n.getMonth()+1,i=t?.useUTC?n.getUTCFullYear():n.getFullYear();return t?.format===`DD. month`?`${n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,timeZone:t.useUTC?`UTC`:void 0})}`:t?.format===`YYYY-MM-DD`?`${i.toString().padStart(4,`0`)}-${r.toString().padStart(2,`0`)}-${e.toString().padStart(2,`0`)}`:t?.format===`DD.MM.YY`?`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`).slice(-2)}`:`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`)}`}}},t=(e,t={month:`long`,hideYear:!1,isGMT:!1})=>{if(e){let n=new Date(e);if(n.getTime())return(t.isGMT??!1)&&n.setTime(n.getTime()+n.getTimezoneOffset()*6e4),`${n.toLocaleDateString(`en-GB`,{day:`numeric`})}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,year:t.hideYear?void 0:`numeric`,hour:`2-digit`,minute:`2-digit`})}`}},n=(e,n=!1)=>{if(e){let r=new Date(e),i=new Date;if(r.getTime()){n&&r.setTime(r.getTime()+r.getTimezoneOffset()*6e4);let a=(r<i?i.getTime()-r.getTime():r.getTime()-i.getTime())/(1e3*3600*24),o=r.toLocaleTimeString(`en-GB`,{hour:`2-digit`,minute:`2-digit`});return a<1&&r.getDate()===i.getDate()?`Today at ${o}`:a<2&&r<i?`Yesterday at ${o}`:a<2&&a>=0?`Tomorrow at ${o}`:a>2&&a<7&&r>i?`${r.toLocaleString(`en-GB`,{weekday:`long`})} at ${o}`:t(e,{hideYear:r.getFullYear()===i.getFullYear()})}}},r=(e,t)=>{if(e){let n=new Date(e);if(n.getTime())return n>=t[0]&&n<=t[1]}return!1};export{e as formatDate,t as formatDateTime,n as formatRelativeDateTime,r as isBetweenDates};
@@ -1 +1 @@
1
- import e from"proj4";function t(e){return e*(Math.PI/180)}function n(e,n){let r=t(n.lat-e.lat),i=t(n.lng-e.lng),a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t(e.lat))*Math.cos(t(n.lat))*Math.sin(i/2)*Math.sin(i/2),o=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return 6371*o}const r=`+proj=utm +zone=31 +ellps=intl +towgs84=-90.365,-101.13,-123.384,0.333,0.077,0.894,1.994 +units=m +no_defs`;function i(t,n){let i=e(r,`EPSG:4326`,[Number(t),Number(n)]);return{lat:i[1],lng:i[0]}}function a(t){let n=e(`EPSG:4326`,r,[t.lng,t.lat]);return[n[0],n[1]]}export{a as convertLatLngToUtm,i as convertUtmToLatLng,t as degrees2radians,n as distanceLatLng,r as utmProjection};
1
+ import e from"proj4";function t(e){return e*(Math.PI/180)}function n(e,n){let r=t(n.lat-e.lat),i=t(n.lng-e.lng),a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t(e.lat))*Math.cos(t(n.lat))*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}const r=`+proj=utm +zone=31 +ellps=intl +towgs84=-90.365,-101.13,-123.384,0.333,0.077,0.894,1.994 +units=m +no_defs`;function i(t,n){let i=e(r,`EPSG:4326`,[Number(t),Number(n)]);return{lat:i[1],lng:i[0]}}function a(t){let n=e(`EPSG:4326`,r,[t.lng,t.lat]);return[n[0],n[1]]}export{a as convertLatLngToUtm,i as convertUtmToLatLng,t as degrees2radians,n as distanceLatLng,r as utmProjection};
@@ -1,2 +1,2 @@
1
- import{DEFAULT_FEATURES as e,RichTextEditorFeatures as t}from"src/molecules/RichTextEditor/RichTextEditor.types";function n({features:n,extendFeatures:r,removeFeatures:i,onImageUpload:a}){let o=n??e,s=r??[],c=[...o,...s].filter(e=>!i?.includes(e)).filter((e,t,n)=>t===n.indexOf(e));if(c.includes(t.IMAGES)&&a===void 0)throw Error(`onImageUpload cannot be undefined when features include images!
1
+ import{DEFAULT_FEATURES as e,RichTextEditorFeatures as t}from"../../molecules/RichTextEditor/RichTextEditor.types.js";function n({features:n,extendFeatures:r,removeFeatures:i,onImageUpload:a}){let o=n??e,s=r??[],c=[...o,...s].filter(e=>!i?.includes(e)).filter((e,t,n)=>t===n.indexOf(e));if(c.includes(t.IMAGES)&&a===void 0)throw Error(`onImageUpload cannot be undefined when features include images!
2
2
  Either add the onImageUpload function or remove RichTextEditorFeatures.IMAGES from the features array`);return c}const r=/(<img src=".*?" alt="(.*?)">)/g,i=/(<img alt="(.*?)" \/>)/g;function a(e){if(!e)return[];let t=[],n=e.matchAll(i);for(let e of n)t.push(e[2]);return t}function o(e){return new Promise((t,n)=>{let r=new FileReader;r.readAsDataURL(e),r.onload=()=>{typeof r.result==`string`&&t(r.result)},r.onerror=n})}function s(e){return e.replaceAll(r,`<img alt="$2" />`)}function c(e){let t=[],n=e.matchAll(/(<img src="(.*?)" alt=".*?">)/g);for(let e of n)t.push(e[2]);return t}export{i as IMG_WITH_ALT,r as IMG_WITH_SRC_AND_ALT,s as cleanRichTextValue,a as extractImageUrls,n as getFeatures,c as getImagesFromRichText,o as imageToB64};
@@ -1 +1 @@
1
- const e=1024,t=(t,n=2)=>{if(t<0||t===0)return`0 Bytes`;if(t===1)return`1 Byte`;let r=n<0?0:n,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],a=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/e**+a).toFixed(r))+` `+i[a]},n=(n,r=2)=>t(n*e,r),r=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`];function i({size:e,decimals:t=2,inputFormat:n=`KiB`}){if(e<0)throw Error(`Invalid size, must be a positive integer`);if(t<0)throw Error(`Invalid decimals, must be a positive integer`);if(e===0)return`${e} ${n}`;let i=r.indexOf(n),a=e*1024**i,o=Math.floor(Math.log(a)/Math.log(1024)),s=parseFloat((a/1024**o).toFixed(t));return`${s} ${r[o]}`}export{t as formatBytes,i as formatDataSize,n as formatKiloBytes};
1
+ const e=1024,t=(t,n=2)=>{if(t<0||t===0)return`0 Bytes`;if(t===1)return`1 Byte`;let r=n<0?0:n,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],a=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/e**+a).toFixed(r))+` `+i[a]},n=(n,r=2)=>t(n*e,r),r=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`];function i({size:e,decimals:t=2,inputFormat:n=`KiB`}){if(e<0)throw Error(`Invalid size, must be a positive integer`);if(t<0)throw Error(`Invalid decimals, must be a positive integer`);if(e===0)return`${e} ${n}`;let i=r.indexOf(n),a=e*1024**i,o=Math.floor(Math.log(a)/Math.log(1024));return`${parseFloat((a/1024**o).toFixed(t))} ${r[o]}`}export{t as formatBytes,i as formatDataSize,n as formatKiloBytes};
@@ -0,0 +1 @@
1
+ import{spacings as e}from"../style/spacings.js";function t({meta:e,label:t}){return e||t?`1rem`:`0`}function n({label:t,helperText:n,helperIcon:r}){return`calc(100% - ${t?`1rem`:`0px`} - ${n||r?`1.5rem`:`0px`} - ${e.small})`}export{n as getSkeletonHeight,t as getSkeletonTop};
@@ -1 +1 @@
1
- function e(e){let t=RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$`,`i`);return t.test(e)}export{e as isValidUrl};
1
+ function e(e){return RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$`,`i`).test(e)}export{e as isValidUrl};