@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,14 +1,14 @@
1
- import{Step as e}from"./Step/Step.js";import{StepLine as t}from"./StepLine.js";import{useMemo as n}from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useStepper as a}from"src/providers/StepperProvider";import o from"styled-components";import{spacings as s}from"src/atoms/style";import{SubTitle as c}from"src/molecules/Stepper/SubTitle/SubTitle";const l=o.div`
1
+ import{spacings as e}from"../../atoms/style/spacings.js";import{useStepper as t}from"../../providers/StepperProvider.js";import{Step as n}from"./Step/Step.js";import{StepLine as r}from"./StepLine.js";import{SubTitle as i}from"./SubTitle/SubTitle.js";import{useMemo as a}from"react";import o from"styled-components";import{jsx as s,jsxs as c}from"react/jsx-runtime";const l=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
- gap: ${s.xx_large};
4
+ gap: ${e.xx_large};
5
5
  `,u=o.div`
6
6
  display: grid;
7
7
  grid-template-columns:
8
8
  repeat(${({$stepAmount:e})=>e-1}, auto 1fr)
9
9
  auto;
10
- grid-gap: ${s.small};
10
+ grid-gap: ${e.small};
11
11
  align-items: center;
12
12
  width: 100%;
13
13
  ${({$maxWidth:e})=>e&&`max-width: ${e}`}
14
- `,d=({onlyShowCurrentStepLabel:o=!1,maxWidth:s})=>{let{steps:d,currentStep:f}=a(),p=n(()=>{let n=[];return d.forEach((i,a)=>{n.push(r(e,{index:a,onlyShowCurrentStepLabel:o,children:i.label},`step-${a}`)),a!==d.length-1&&n.push(r(t,{done:f>a},`step-line-${a}`))}),n},[f,o,d]);return i(l,{children:[r(u,{$stepAmount:d.length,$maxWidth:s,"data-testid":`stepper-container`,children:p}),r(c,{})]})};export{d as Stepper};
14
+ `,d=({onlyShowCurrentStepLabel:e=!1,maxWidth:o})=>{let{steps:d,currentStep:f}=t(),p=a(()=>{let t=[];return d.forEach((i,a)=>{t.push(s(n,{index:a,onlyShowCurrentStepLabel:e,children:i.label},`step-${a}`)),a!==d.length-1&&t.push(s(r,{done:f>a},`step-line-${a}`))}),t},[f,e,d]);return c(l,{children:[s(u,{$stepAmount:d.length,$maxWidth:o,"data-testid":`stepper-container`,children:p}),s(i,{})]})};export{d as Stepper};
@@ -0,0 +1,25 @@
1
+ import{animation as e}from"../../../atoms/style/animation.js";import{colors as t}from"../../../atoms/style/colors.js";import{spacings as n}from"../../../atoms/style/spacings.js";import{shape as r}from"../../../atoms/style/index.js";import{useStepper as i}from"../../../providers/StepperProvider.js";import a from"styled-components";import{jsx as o}from"react/jsx-runtime";const s=a.div`
2
+ display: grid;
3
+ grid-template-columns: repeat(
4
+ ${({$amountOfSubSteps:e})=>e},
5
+ 1fr
6
+ );
7
+ gap: ${n.small};
8
+ width: 300px;
9
+ `,c=a.span`
10
+ width: 100%;
11
+ height: 5px;
12
+ position: relative;
13
+ background: ${t.interactive.primary__hover_alt.rgba};
14
+ border-radius: ${r.rounded.borderRadius};
15
+ overflow: hidden;
16
+ &:after {
17
+ content: '';
18
+ background: ${t.interactive.primary__resting.rgba};
19
+ position: absolute;
20
+ width: 100%;
21
+ height: 100%;
22
+ transition: left ${e.transitionMS};
23
+ left: ${({$index:e,$currentIndex:t})=>(t-e)*100}%;
24
+ }
25
+ `,l=()=>{let{currentSubStep:e,steps:t,currentStep:n}=i(),r=t[n].subSteps.length;return o(s,{$amountOfSubSteps:r,children:Array(r).fill(null).map((t,n)=>o(c,{$index:n,$currentIndex:e},n))})};export{l as SubStepIndicator};
@@ -0,0 +1,7 @@
1
+ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{useStepper as n}from"../../../providers/StepperProvider.js";import{SubStepIndicator as r}from"./SubStepIndicator.js";import{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 c=a.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: ${t.small};
5
+ align-self: center;
6
+ align-items: center;
7
+ `,l=()=>{let{currentStep:t,currentSubStep:a,steps:l}=n(),u=`subSteps`in l[t]?l[t].subSteps:[],d=u?.at(a);return!d&&l[t].title===void 0||!u?null:l[t].title?s(c,{children:[o(i,{variant:`h3`,children:l[t].title}),l[t].description&&o(i,{variant:`caption`,children:l[t].description})]}):s(c,{children:[o(i,{variant:`caption`,color:e.text.static_icons__secondary.rgba,children:`${a+1} of ${u.length}`}),o(i,{variant:`h3`,children:d?.title}),d?.description&&o(i,{variant:`caption`,children:d.description}),o(r,{})]})};export{l as SubTitle};
@@ -1 +1 @@
1
- import{ActiveLine as e,Button as t,Count as n,Line as r}from"./Tab.styles.js";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";import{Icon as s,Typography as c}from"@equinor/eds-core-react";function l({value:l,label:u,selectedIndex:d,index:f,onChange:p,onHover:m,centered:h,animated:g,disabled:_,leadingIcon:v,count:y}){let b=()=>{p(l)},x=()=>{m&&m(l)};return o(t,{role:`tab`,"aria-selected":d===f,onClick:b,onMouseEnter:x,$centered:h,disabled:_,children:[v?a(s,{data:v,size:24}):null,a(c,{as:`label`,variant:`menu_tabs`,group:`navigation`,children:u}),y===void 0?null:a(n,{className:`count`,children:a(c,{as:`span`,variant:`breadcrumb`,group:`navigation`,children:y})}),g?o(i,{children:[a(r,{className:`static-line`}),a(e,{animate:{left:`${(d-f)*100}%`}})]}):a(r,{className:`static-line`,$active:d===f})]})}export{l as Tab};
1
+ import{ActiveLine as e,Button as t,Count as n,Line as r}from"./Tab.styles.js";import{Icon as i,Typography as a}from"@equinor/eds-core-react";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";function l({value:l,label:u,selectedIndex:d,index:f,onChange:p,onHover:m,centered:h,animated:g,disabled:_,leadingIcon:v,count:y}){let b=()=>{p(l)},x=()=>{m&&m(l)};return c(t,{role:`tab`,"aria-selected":d===f,onClick:b,onMouseEnter:x,$centered:h,disabled:_,children:[v?s(i,{data:v,size:24}):null,s(a,{as:`label`,variant:`menu_tabs`,group:`navigation`,children:u}),y===void 0?null:s(n,{className:`count`,children:s(a,{as:`span`,variant:`breadcrumb`,group:`navigation`,children:y})}),g?c(o,{children:[s(r,{className:`static-line`}),s(e,{animate:{left:`${(d-f)*100}%`}})]}):s(r,{className:`static-line`,$active:d===f})]})}export{l as Tab};
@@ -1,10 +1,10 @@
1
- import e from"styled-components";import{colors as t,shape as n,spacings as r}from"src/atoms/style";import{motion as i}from"framer-motion";const a=e.button`
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{shape as n}from"../../atoms/style/index.js";import r from"styled-components";import{motion as i}from"framer-motion";const a=r.button`
2
2
  position: relative;
3
- padding: ${r.medium};
3
+ padding: ${t.medium};
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: ${({$centered:e})=>e?`center`:`flex-start`};
7
- gap: ${r.small};
7
+ gap: ${t.small};
8
8
  width: auto;
9
9
  flex-grow: 1;
10
10
  height: 48px;
@@ -12,7 +12,7 @@ import e from"styled-components";import{colors as t,shape as n,spacings as r}fro
12
12
  cursor: pointer;
13
13
 
14
14
  > svg {
15
- fill: ${t.text.static_icons__tertiary.rgba};
15
+ fill: ${e.text.static_icons__tertiary.rgba};
16
16
  }
17
17
 
18
18
  > label {
@@ -20,33 +20,33 @@ import e from"styled-components";import{colors as t,shape as n,spacings as r}fro
20
20
  pointer-events: none;
21
21
  display: block;
22
22
  height: 16px;
23
- color: ${t.text.static_icons__tertiary.rgba};
23
+ color: ${e.text.static_icons__tertiary.rgba};
24
24
  }
25
25
 
26
26
  &[aria-selected='true'] {
27
27
  > svg {
28
- fill: ${t.interactive.primary__resting.rgba};
28
+ fill: ${e.interactive.primary__resting.rgba};
29
29
  }
30
30
 
31
31
  > label {
32
- color: ${t.interactive.primary__resting.rgba};
32
+ color: ${e.interactive.primary__resting.rgba};
33
33
  }
34
34
  }
35
35
 
36
36
  &:hover:not(:disabled) {
37
- background: ${t.interactive.primary__hover_alt.rgba};
37
+ background: ${e.interactive.primary__hover_alt.rgba};
38
38
 
39
39
  &[aria-selected='true'] {
40
40
  > svg {
41
- fill: ${t.interactive.primary__hover.rgba};
41
+ fill: ${e.interactive.primary__hover.rgba};
42
42
  }
43
43
 
44
44
  > label {
45
- color: ${t.interactive.primary__hover.rgba};
45
+ color: ${e.interactive.primary__hover.rgba};
46
46
  }
47
47
 
48
48
  > span:not(.count):last-child {
49
- background: ${t.interactive.primary__hover.rgba};
49
+ background: ${e.interactive.primary__hover.rgba};
50
50
  }
51
51
  }
52
52
  }
@@ -55,36 +55,36 @@ import e from"styled-components";import{colors as t,shape as n,spacings as r}fro
55
55
  cursor: not-allowed;
56
56
 
57
57
  > svg {
58
- fill: ${t.interactive.disabled__fill.rgba};
58
+ fill: ${e.interactive.disabled__fill.rgba};
59
59
  }
60
60
 
61
61
  > label {
62
- color: ${t.interactive.disabled__text.rgba};
62
+ color: ${e.interactive.disabled__text.rgba};
63
63
  }
64
64
 
65
65
  > span.static-line {
66
- background: ${t.ui.background__medium.rgba};
66
+ background: ${e.ui.background__medium.rgba};
67
67
  }
68
68
  }
69
- `,o=e.span`
69
+ `,o=r.span`
70
70
  position: absolute;
71
71
  height: 2px;
72
72
  width: 100%;
73
73
  bottom: 0;
74
74
  left: 0;
75
- background: ${({$active:e})=>e?t.interactive.primary__resting.rgba:t.ui.background__heavy.rgba};
76
- `,s=e(i.span)`
75
+ background: ${({$active:t})=>t?e.interactive.primary__resting.rgba:e.ui.background__heavy.rgba};
76
+ `,s=r(i.span)`
77
77
  position: absolute;
78
78
  height: 2px;
79
79
  width: 100%;
80
80
  bottom: 0;
81
- background: ${t.interactive.primary__resting.rgba};
82
- `,c=e.span`
81
+ background: ${e.interactive.primary__resting.rgba};
82
+ `,c=r.span`
83
83
  display: flex;
84
- padding: ${r.x_small} ${r.small};
85
- background: ${t.interactive.primary__resting.rgba};
84
+ padding: ${t.x_small} ${t.small};
85
+ background: ${e.interactive.primary__resting.rgba};
86
86
  border-radius: ${n.rounded.borderRadius};
87
87
  > span {
88
- color: ${t.text.static_icons__primary_white.rgba};
88
+ color: ${e.text.static_icons__primary_white.rgba};
89
89
  }
90
90
  `;export{s as ActiveLine,a as Button,c as Count,o as Line};
@@ -1,7 +1,7 @@
1
- import{Tab as e}from"./Tab.js";import{useEffect as t,useRef as n,useState as r}from"react";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";import{chevron_left as s,chevron_right as c}from"@equinor/eds-icons";import l from"styled-components";import{Button as u,Icon as d}from"@equinor/eds-core-react";import{spacings as f}from"src/atoms/style";const p=l.div`
1
+ import{spacings as e}from"../../atoms/style/spacings.js";import{Tab as t}from"./Tab.js";import{useEffect as n,useRef as r,useState as i}from"react";import{Button as a,Icon as o}from"@equinor/eds-core-react";import s from"styled-components";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import{chevron_left as d,chevron_right as f}from"@equinor/eds-icons";const p=s.div`
2
2
  display: flex;
3
3
  align-items: center;
4
- gap: ${f.small};
4
+ gap: ${e.small};
5
5
  > button {
6
6
  flex-shrink: 0;
7
7
 
@@ -9,10 +9,10 @@ import{Tab as e}from"./Tab.js";import{useEffect as t,useRef as n,useState as r}f
9
9
  order: 2;
10
10
  }
11
11
  }
12
- `,m=l.div`
12
+ `,m=s.div`
13
13
  display: flex;
14
14
  width: 100%;
15
15
  align-items: center;
16
16
  overflow: hidden;
17
17
  order: 1;
18
- `;function h({options:l,selected:f,centered:h=!0,animated:g=!0,scrollable:_=!0,amountPerScrollPage:v,onChange:y,onHover:b,ref:x,...S}){let C=n(null),[w,T]=r(!1),[E,D]=r(0),[O,k]=r(!0),[A,j]=r(!0);if(v!==void 0&&v<=0)throw Error(`[ACL - Tabs]: Amount per scroll page must be greater than 0`);if(v!==void 0&&!_)throw Error(`[ACL - Tabs]: amountPerScrollPage was set but scrollable is false!`);let M=l.findIndex(e=>e.value===f);t(()=>{if(!_||!C.current){w&&T(!1);return}let e=new ResizeObserver(([e])=>{let t=e.target;D(Math.round(e.borderBoxSize[0].inlineSize)),T(t.scrollWidth>t.clientWidth),t.scrollTo(0,0)});return e.observe(C.current,{box:`border-box`}),k(!0),j(!1),()=>{e.disconnect()}},[_,w]);let N=e=>()=>{if(!C.current||!E)return;let t=C.current.scrollLeft;e===`left`?(t-=E,t=Math.max(0,t)):(t+=E,t=Math.min(t,C.current.scrollWidth)),C.current.scrollTo({top:0,left:t,behavior:`smooth`}),k(t<=0),j(t+E>=C.current.scrollWidth)};return o(p,{...S,ref:x,children:[a(m,{ref:C,style:v&&w?{display:`grid`,gridTemplateColumns:`repeat(${l.length}, ${E/v}px)`}:void 0,children:l.map((t,n)=>a(e,{selectedIndex:M,index:n,onChange:y,onHover:b,centered:h,animated:g,...t},t.label))}),w?o(i,{children:[a(u,{"aria-label":`Scroll tabs left`,variant:`ghost_icon`,disabled:O,onClick:N(`left`),children:a(d,{data:s})}),a(u,{"aria-label":`Scroll tabs right`,variant:`ghost_icon`,disabled:A,onClick:N(`right`),children:a(d,{data:c})})]}):null]})}export{h as Tabs};
18
+ `;function h({options:e,selected:s,centered:h=!0,animated:g=!0,scrollable:_=!0,amountPerScrollPage:v,onChange:y,onHover:b,ref:x,...S}){let C=r(null),[w,T]=i(!1),[E,D]=i(0),[O,k]=i(!0),[A,j]=i(!0);if(v!==void 0&&v<=0)throw Error(`[ACL - Tabs]: Amount per scroll page must be greater than 0`);if(v!==void 0&&!_)throw Error(`[ACL - Tabs]: amountPerScrollPage was set but scrollable is false!`);let M=e.findIndex(e=>e.value===s);n(()=>{if(!_||!C.current){w&&T(!1);return}let e=new ResizeObserver(([e])=>{let t=e.target;D(Math.round(e.borderBoxSize[0].inlineSize)),T(t.scrollWidth>t.clientWidth),t.scrollTo(0,0)});return e.observe(C.current,{box:`border-box`}),k(!0),j(!1),()=>{e.disconnect()}},[_,w]);let N=e=>()=>{if(!C.current||!E)return;let t=C.current.scrollLeft;e===`left`?(t-=E,t=Math.max(0,t)):(t+=E,t=Math.min(t,C.current.scrollWidth)),C.current.scrollTo({top:0,left:t,behavior:`smooth`}),k(t<=0),j(t+E>=C.current.scrollWidth)};return u(p,{...S,ref:x,children:[l(m,{ref:C,style:v&&w?{display:`grid`,gridTemplateColumns:`repeat(${e.length}, ${E/v}px)`}:void 0,children:e.map((e,n)=>l(t,{selectedIndex:M,index:n,onChange:y,onHover:b,centered:h,animated:g,...e},e.label))}),w?u(c,{children:[l(a,{"aria-label":`Scroll tabs left`,variant:`ghost_icon`,disabled:O,onClick:N(`left`),children:l(o,{data:d})}),l(a,{"aria-label":`Scroll tabs right`,variant:`ghost_icon`,disabled:A,onClick:N(`right`),children:l(o,{data:f})})]}):null]})}export{h as Tabs};
@@ -0,0 +1,74 @@
1
+ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS as t,colors as n}from"../../atoms/style/colors.js";import{spacings as r}from"../../atoms/style/spacings.js";import{shape as i}from"../../atoms/style/index.js";import{SkeletonBase as a}from"../Skeleton/SkeletonBase/SkeletonBase.js";import{getSkeletonHeight as o,getSkeletonTop as s}from"../../atoms/utils/skeleton.js";import{useRef as c}from"react";import{TextField as l}from"@equinor/eds-core-react";import u,{css as d}from"styled-components";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=u.div`
2
+ position: relative;
3
+ input,
4
+ textarea {
5
+ color: ${n.text.static_icons__default.rgba};
6
+ transition:
7
+ background ${e.transitionMS},
8
+ box-shadow ${e.transitionMS};
9
+ &::placeholder {
10
+ opacity: 1;
11
+ }
12
+ &:hover {
13
+ background: ${n.ui.background__light_medium.rgba};
14
+ }
15
+ &:disabled {
16
+ &::placeholder {
17
+ color: ${n.interactive.disabled__text.rgba};
18
+ }
19
+ }
20
+ }
21
+ div:focus-within {
22
+ outline: none !important;
23
+ }
24
+
25
+ ${({$variant:e,$disabled:r})=>r?d`
26
+ div {
27
+ outline: none !important;
28
+ }
29
+ p {
30
+ color: ${n.interactive.disabled__text.rgba} !important;
31
+ }
32
+ `:e===void 0?d`
33
+ input:hover,
34
+ textarea:hover {
35
+ box-shadow: inset 0 -2px 0 0
36
+ ${n.text.static_icons__tertiary.rgba};
37
+ }
38
+
39
+ div:focus-within {
40
+ input,
41
+ textarea {
42
+ box-shadow: inset 0 -2px 0 0
43
+ ${n.interactive.primary__resting.rgba};
44
+ }
45
+ }
46
+ `:d`
47
+ ${e===`dirty`&&d`
48
+ input,
49
+ textarea {
50
+ box-shadow: inset 0 -2px 0 0 ${t[e]};
51
+ }
52
+ `}
53
+
54
+ input:hover,
55
+ textarea:hover {
56
+ box-shadow: inset 0 -${e===`dirty`?2:1}px 0 0
57
+ ${t[e]};
58
+ }
59
+
60
+ div:focus-within {
61
+ outline: none !important;
62
+
63
+ input,
64
+ textarea {
65
+ box-shadow: inset 0 -2px 0 0 ${t[e]};
66
+ }
67
+ }
68
+ `}
69
+ `,h=u(a)`
70
+ position: absolute;
71
+ left: ${r.small};
72
+ border-radius: ${i.corners.borderRadius};
73
+ transform: translateY(${r.x_small});
74
+ `,g=e=>{let t={...e,variant:e.variant===`dirty`?void 0:e.variant},n=e.loading?void 0:e.variant,r=s(e),i=o(e),a=c(`${Math.max(20,Math.random()*80)}%`);return p(m,{$variant:n,$disabled:e.loading?!1:e.disabled,children:[f(l,{...t,disabled:e.loading||e.disabled}),e.loading&&f(h,{className:`skeleton`,role:`progressbar`,style:{top:r,height:i,width:a.current}})]})};export{g as TextField};
@@ -1 +1 @@
1
- import{Container as e}from"./Waves.styles.js";import{WaveStatic as t}from"./WaveStatic.js";import{useEffect as n,useRef as r,useState as i}from"react";import{jsx as a}from"react/jsx-runtime";import{useScroll as o}from"framer-motion";const s=({gradientColors:s})=>{let c=r(null),[l,u]=i(c.current?.clientWidth??0),[d,f]=i(c.current?.clientHeight??0),{scrollY:p}=o({container:{current:document.getElementById(`content`)}}),m=e=>{c.current=e,c.current&&(u(c.current.clientWidth),f(c.current.clientHeight))};return n(()=>{let e=()=>{c.current&&(u(c.current.clientWidth),f(c.current.clientHeight))};return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]),a(e,{ref:m,style:{top:p},children:a(t,{height:d,width:l,gradientColors:s})})};export{s as Waves};
1
+ import{Container as e}from"./Waves.styles.js";import{WaveStatic as t}from"./WaveStatic.js";import{useEffect as n,useRef as r,useState as i}from"react";import{jsx as a}from"react/jsx-runtime";import{useScroll as o}from"framer-motion";const s=({gradientColors:s})=>{let c=r(null),[l,u]=i(c.current?.clientWidth??0),[d,f]=i(c.current?.clientHeight??0),{scrollY:p}=o({container:{current:document.getElementById(`content`)}});return n(()=>{let e=()=>{c.current&&(u(c.current.clientWidth),f(c.current.clientHeight))};return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]),a(e,{ref:e=>{c.current=e,c.current&&(u(c.current.clientWidth),f(c.current.clientHeight))},style:{top:p},children:a(t,{height:d,width:l,gradientColors:s})})};export{s as Waves};
@@ -44,5 +44,5 @@ import { Checkbox as Checkbox$1, CheckboxProps as CheckboxProps$1 } from "./Sele
44
44
  import { Radio as Radio$1, RadioProps as RadioProps$1 } from "./SelectionControls/Radio/Radio.js";
45
45
  import { Switch as Switch$1, SwitchProps as SwitchProps$1 } from "./SelectionControls/Switch/Switch.js";
46
46
  import { Waves } from "./Waves/Waves.js";
47
- import { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, CircularProgress as CircularProgress$1, CircularProgressProps, Dialog as EDSDialog, DialogProps as EDSDialogProps, Divider as Divider$1, DividerProps, DotProgress as DotProgress$1, DotProgressProps, Icon as Icon$1, IconProps, LinearProgress as LinearProgress$1, LinearProgressProps, Menu as Menu$1, MenuProps, SearchProps as SearchProps$1, TextField, TextFieldProps, Typography as Typography$1, TypographyProps } from "@equinor/eds-core-react";
48
- export { Accordion, type AccordionHeaderActionsProps, type AccordionHeaderProps, type AccordionHeaderTitleProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, CircularProgress$1 as CircularProgress, type CircularProgressProps, Divider$1 as Divider, type DividerProps, DotProgress$1 as DotProgress, type DotProgressProps, EDSDialog, type EDSDialogProps, Icon$1 as Icon, type IconProps, LinearProgress$1 as LinearProgress, type LinearProgressProps, Menu$1 as Menu, type MenuProps, type SearchProps$1 as SearchProps, TextField, type TextFieldProps, Typography$1 as Typography, type TypographyProps };
47
+ import { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, CircularProgress as CircularProgress$1, CircularProgressProps, Dialog as EDSDialog, DialogProps as EDSDialogProps, Divider as Divider$1, DividerProps, DotProgress as DotProgress$1, DotProgressProps, Icon as Icon$1, IconProps, LinearProgress as LinearProgress$1, LinearProgressProps, Menu as Menu$1, MenuProps, SearchProps as SearchProps$1, TextField as TextField$1, TextFieldProps, Typography as Typography$1, TypographyProps } from "@equinor/eds-core-react";
48
+ export { Accordion, type AccordionHeaderActionsProps, type AccordionHeaderProps, type AccordionHeaderTitleProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, CircularProgress$1 as CircularProgress, type CircularProgressProps, Divider$1 as Divider, type DividerProps, DotProgress$1 as DotProgress, type DotProgressProps, EDSDialog, type EDSDialogProps, Icon$1 as Icon, type IconProps, LinearProgress$1 as LinearProgress, type LinearProgressProps, Menu$1 as Menu, type MenuProps, type SearchProps$1 as SearchProps, TextField$1 as TextField, type TextFieldProps, Typography$1 as Typography, type TypographyProps };
@@ -1 +1 @@
1
- import{AnimatedCheckmark as e}from"./AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as t}from"./ApplicationIcon/ApplicationIcon.js";import{Badge as n}from"./Badge/Badge.js";import{Banner as r}from"./Banner/Banner.js";import{Button as i}from"./Button/Button.js";import{Chip as a}from"./Chip/Chip.js";import{ContentMenu as o}from"./ContentMenu/ContentMenu.js";import{DatePicker as s}from"./DatePicker/DatePicker.js";import{DateRangePicker as c}from"./DateRangePicker/DateRangePicker.js";import{Dialog as l}from"./Dialog/Dialog.js";import{EquinorLogo as u}from"./EquinorLogo/EquinorLogo.js";import{FileProgress as ee}from"./FileProgress/FileProgress.js";import{FileUploadArea as te}from"./FileUploadArea/FileUploadArea.js";import{FullPageSpinner as d}from"./FullPageSpinner/FullPageSpinner.js";import{IconCell as f}from"./IconCell/IconCell.js";import{InfoElement as p}from"./InfoElement/InfoElement.js";import{OptionalTooltip as m}from"./OptionalTooltip/OptionalTooltip.js";import{ProfileAvatar as h}from"./ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as g}from"./RichTextDisplay/RichTextDisplay.js";import{DEFAULT_FEATURES as _,RichTextEditorFeatures as v}from"./RichTextEditor/RichTextEditor.types.js";import{TableMenuBar as y,TextTable as b}from"./RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as x,EditorMenu as S,EditorText as C}from"./RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as w}from"./RichTextEditor/RichTextEditor.js";import{RichText as T}from"./RichTextEditor/index.js";import{AmplifyKit as E}from"./RichTextEditor/custom-extensions/AmplifyKit.js";import{Tabs as D}from"./Tabs/Tabs.js";import{Search as O}from"./Search/Search.js";import{SingleFilterMenu as k}from"./SingleFilterMenu/SingleFilterMenu.js";import{SkeletonBase as ne,skeletonBaseloading as A}from"./Skeleton/SkeletonBase/SkeletonBase.js";import{SkeletonGradient as j}from"./Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as M}from"./Stepper/Stepper.js";import{OptionDrawer as N}from"./OptionDrawer/OptionDrawer.js";import{ComboBox as P}from"./Select/ComboBox/ComboBox.js";import{ComboBoxChip as F}from"./Select/Select.styles.js";import{SingleSelect as I}from"./Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as L}from"./FeedBackIcon/FeedBackIcon.js";import{ListItem as R}from"./ListItem/ListItem.js";import{Checkbox as z}from"./SelectionControls/Checkbox/Checkbox.js";import{Radio as B}from"./SelectionControls/Radio/Radio.js";import{Switch as V}from"./SelectionControls/Switch/Switch.js";import{Waves as H}from"./Waves/Waves.js";import{Accordion as U,Breadcrumbs as W,CircularProgress as G,Dialog as K,Divider as q,DotProgress as J,Icon as Y,LinearProgress as X,Menu as Z,TextField as Q,Typography as $}from"@equinor/eds-core-react";export{U as Accordion,W as Breadcrumbs,G as CircularProgress,q as Divider,J as DotProgress,K as EDSDialog,Y as Icon,X as LinearProgress,Z as Menu,Q as TextField,$ as Typography};
1
+ import{FullPageSpinner as e}from"./FullPageSpinner/FullPageSpinner.js";import{DEFAULT_FEATURES as t,RichTextEditorFeatures as n}from"./RichTextEditor/RichTextEditor.types.js";import{AmplifyKit as r}from"./RichTextEditor/custom-extensions/AmplifyKit.js";import{AnimatedCheckmark as i}from"./AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as a}from"./ApplicationIcon/ApplicationIcon.js";import{Badge as o}from"./Badge/Badge.js";import{Banner as s}from"./Banner/Banner.js";import{Button as c}from"./Button/Button.js";import{Chip as l}from"./Chip/Chip.js";import{SkeletonBase as u,skeletonBaseloading as ee}from"./Skeleton/SkeletonBase/SkeletonBase.js";import{ContentMenu as te}from"./ContentMenu/ContentMenu.js";import{DatePicker as d}from"./DatePicker/DatePicker.js";import{DateRangePicker as f}from"./DateRangePicker/DateRangePicker.js";import{OptionalTooltip as p}from"./OptionalTooltip/OptionalTooltip.js";import{Dialog as m}from"./Dialog/Dialog.js";import{EquinorLogo as h}from"./EquinorLogo/EquinorLogo.js";import{FileProgress as g}from"./FileProgress/FileProgress.js";import{FileUploadArea as _}from"./FileUploadArea/FileUploadArea.js";import{IconCell as v}from"./IconCell/IconCell.js";import{InfoElement as y}from"./InfoElement/InfoElement.js";import{ProfileAvatar as b}from"./ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as x}from"./RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as S,TextTable as C}from"./RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as w,EditorMenu as T,EditorText as E}from"./RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as D}from"./RichTextEditor/RichTextEditor.js";import{RichText as O}from"./RichTextEditor/index.js";import{Tabs as k}from"./Tabs/Tabs.js";import{Search as ne}from"./Search/Search.js";import{SingleFilterMenu as A}from"./SingleFilterMenu/SingleFilterMenu.js";import{SkeletonGradient as j}from"./Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as M}from"./Stepper/Stepper.js";import{OptionDrawer as N}from"./OptionDrawer/OptionDrawer.js";import{ComboBoxChip as P}from"./Select/Select.styles.js";import{ComboBox as F}from"./Select/ComboBox/ComboBox.js";import{SingleSelect as I}from"./Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as L}from"./FeedBackIcon/FeedBackIcon.js";import{ListItem as R}from"./ListItem/ListItem.js";import{Checkbox as z}from"./SelectionControls/Checkbox/Checkbox.js";import{Radio as B}from"./SelectionControls/Radio/Radio.js";import{Switch as V}from"./SelectionControls/Switch/Switch.js";import{Waves as H}from"./Waves/Waves.js";import{Accordion as U,Breadcrumbs as W,CircularProgress as G,Dialog as K,Divider as q,DotProgress as J,Icon as Y,LinearProgress as X,Menu as Z,TextField as Q,Typography as $}from"@equinor/eds-core-react";export{U as Accordion,W as Breadcrumbs,G as CircularProgress,q as Divider,J as DotProgress,K as EDSDialog,Y as Icon,X as LinearProgress,Z as Menu,Q as TextField,$ as Typography};
@@ -1,4 +1,4 @@
1
- import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{colors as n,spacings as r}from"src/atoms/style";import{EdsDataGrid as i}from"@equinor/eds-data-grid-react";const a=t.div`
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import n from"styled-components";import{jsx as r}from"react/jsx-runtime";import{EdsDataGrid as i}from"@equinor/eds-data-grid-react";const a=n.div`
2
2
  table,
3
3
  thead,
4
4
  th {
@@ -12,24 +12,24 @@ import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{
12
12
  border: none;
13
13
  }
14
14
  th {
15
- color: ${n.text.static_icons__default.rgba};
15
+ color: ${e.text.static_icons__default.rgba};
16
16
  > div {
17
17
  justify-content: space-between;
18
18
  > svg {
19
19
  height: 18px;
20
20
  width: 18px;
21
- fill: ${n.interactive.primary__resting.rgba};
21
+ fill: ${e.interactive.primary__resting.rgba};
22
22
  }
23
23
  }
24
24
  }
25
25
  th,
26
26
  td {
27
- padding: ${r.medium_small} ${r.small};
27
+ padding: ${t.medium_small} ${t.small};
28
28
  }
29
29
  tr:hover,
30
30
  th:hover,
31
31
  th:has(svg) {
32
- background: ${n.interactive.primary__hover_alt.rgba};
32
+ background: ${e.interactive.primary__hover_alt.rgba};
33
33
  }
34
34
  ${({$enableSorting:e})=>!e&&`
35
35
  cursor: default;
@@ -38,4 +38,4 @@ import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import{
38
38
  cursor: default;
39
39
  }
40
40
  `}
41
- `,o=t=>e(a,{$enableSorting:t.enableSorting??!1,"data-testid":`table-wrapper`,children:e(i,{...t})});export{o as DataGrid};
41
+ `,o=e=>r(a,{$enableSorting:e.enableSorting??!1,"data-testid":`table-wrapper`,children:r(i,{...e})});export{o as DataGrid};
@@ -0,0 +1,9 @@
1
+ import{spacings as e}from"../../../atoms/style/spacings.js";import{Status as t}from"../../Status/index.js";import{Question as n}from"./Question.js";import{useMemo as r,useState as i}from"react";import{Typography as a}from"@equinor/eds-core-react";import o from"styled-components";import{jsx as s,jsxs as c}from"react/jsx-runtime";const l=o.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: ${e.medium};
5
+ width: 100%;
6
+ &:has(> div > div > svg) {
7
+ transform: translateY(50%);
8
+ }
9
+ `,u=({categoryName:e,faqs:o,selectedTab:u})=>{let[d]=i(void 0),f=r(()=>o.toSorted((e,t)=>{let n=e.orderBy??0,r=t.orderBy??0;return n-r}),[o]),p=r(()=>d?f.filter(t=>t.question.toLowerCase().includes(d.toLowerCase())||t.answer.toLowerCase().includes(d.toLowerCase())||e.toLowerCase().includes(d.toLowerCase())):f,[e,d,f]);return u!==void 0&&p.length===0?s(l,{children:c(t,{center:!1,children:[s(t.Title,{title:`No Questions Found`}),s(t.Description,{text:`No questions or answers matches your search in this category`})]})}):p.length===0?null:c(l,{children:[s(a,{variant:`h4`,children:e}),p.map(e=>s(n,{...e},e.id))]})};export{u as Category};
@@ -0,0 +1,22 @@
1
+ import{animation as e}from"../../../atoms/style/animation.js";import{colors as t}from"../../../atoms/style/colors.js";import{spacings as n}from"../../../atoms/style/spacings.js";import{shape as r}from"../../../atoms/style/index.js";import{formatDate as i}from"../../../atoms/utils/date.js";import{Button as a}from"../../../molecules/Button/Button.js";import{RichTextDisplay as o}from"../../../molecules/RichTextDisplay/RichTextDisplay.js";import{useState as s}from"react";import{Icon as c,Typography as l}from"@equinor/eds-core-react";import u from"styled-components";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{chevron_down as p,chevron_up as m}from"@equinor/eds-icons";import{AnimatePresence as h,motion as g}from"framer-motion";import{FaqService as _}from"@equinor/subsurface-app-management";const v=u.div`
2
+ background: ${t.ui.background__default.rgba};
3
+ width: 100%;
4
+ display: grid;
5
+ grid-template-columns: 1fr auto auto;
6
+ align-items: center;
7
+ padding: ${n.medium};
8
+ border: 1px solid ${t.ui.background__heavy.rgba};
9
+ border-radius: ${r.corners.borderRadius};
10
+ cursor: pointer;
11
+ transition: border-color ${e.transitionMS};
12
+ > button {
13
+ margin-left: ${n.medium};
14
+ transition: background ${e.transitionMS};
15
+ }
16
+ &:hover {
17
+ border-color: ${t.interactive.primary__resting.rgba};
18
+ > button {
19
+ background: ${t.interactive.primary__hover_alt.rgba};
20
+ }
21
+ }
22
+ `,y=({question:e,answer:t,createdDate:n})=>{let[r,u]=s(!1);return f(v,{onClick:()=>u(e=>!e),children:[d(l,{variant:`h4`,children:e}),d(l,{variant:`caption`,children:i(n)}),d(a,{variant:`ghost_icon`,children:d(c,{data:r?m:p})}),d(h,{children:r&&d(g.div,{style:{overflow:`hidden`},initial:{height:0},animate:{height:`auto`},exit:{height:0},children:d(o,{value:t,onImageRead:_.getFaqImage})})})]})};export{y as Question};
@@ -0,0 +1,29 @@
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{shape as n}from"../../atoms/style/index.js";import{Button as r}from"../../molecules/Button/Button.js";import{SkeletonBase as i}from"../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{Icon as a}from"@equinor/eds-core-react";import o from"styled-components";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{chevron_down as l}from"@equinor/eds-icons";const u=o.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: ${t.medium};
5
+ `,d=o(i)`
6
+ height: 32px;
7
+ width: 12rem;
8
+ border-radius: ${n.corners.borderRadius};
9
+ `,f=o.div`
10
+ background: ${e.ui.background__default.rgba};
11
+ width: 100%;
12
+ display: grid;
13
+ grid-template-columns: 1fr auto auto;
14
+ align-items: center;
15
+ padding: ${t.medium};
16
+ border: 1px solid ${e.ui.background__heavy.rgba};
17
+ border-radius: ${n.corners.borderRadius};
18
+ > button {
19
+ margin-left: ${t.medium};
20
+ }
21
+ `,p=o(i)`
22
+ height: 32px;
23
+ width: 50%;
24
+ border-radius: ${n.corners.borderRadius};
25
+ `,m=o(i)`
26
+ height: 16px;
27
+ width: 5rem;
28
+ border-radius: ${n.corners.borderRadius};
29
+ `,h=()=>c(u,{children:[s(d,{}),[,,,].fill(0).map((e,t)=>c(f,{children:[s(p,{$offset:t*100}),s(m,{$offset:t*100}),s(r,{variant:`ghost_icon`,children:s(a,{data:l})})]},`card-${t}`))]});export{h as CategorySkeleton};
@@ -1 +1 @@
1
- import{Container as e}from"./Faq.styles.js";import{Header as t}from"./Header.js";import{useMemo as n,useState as r}from"react";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";import{Typography as s}from"@equinor/eds-core-react";import{Status as c}from"src/organisms/Status";import{useFaqsInApplication as l}from"src/atoms/hooks/useFaqsInApplication";import{Category as u}from"src/organisms/Faq/Category/Category";import{CategorySkeleton as d}from"src/organisms/Faq/CategorySkeleton";const f=()=>{let{data:f,isLoading:p}=l(),[m,h]=r(void 0),g=n(()=>{if(!f)return;if(!m)return f;let e=f.find(e=>e.id==Number(m));return[e]},[f,m]);return o(e,{children:[a(s,{variant:`h1`,bold:!0,children:`FAQ`}),a(t,{selectedTab:m,setSelectedTab:h}),g&&g.length>0?g.map(e=>a(u,{...e,selectedTab:m},e.id)):p?o(i,{children:[a(d,{}),a(d,{}),a(d,{})]}):a(c,{center:!1,children:a(c.Title,{title:`No FAQs available yet`})})]})};export{f as Faq};
1
+ import{Status as e}from"../Status/index.js";import{useFaqsInApplication as t}from"../../atoms/hooks/useFaqsInApplication.js";import{Container as n}from"./Faq.styles.js";import{Header as r}from"./Header.js";import{Category as i}from"./Category/Category.js";import{CategorySkeleton as a}from"./CategorySkeleton.js";import{useMemo as o,useState as s}from"react";import{Typography as c}from"@equinor/eds-core-react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";const f=()=>{let{data:f,isLoading:p}=t(),[m,h]=s(void 0),g=o(()=>{if(f)return m?[f.find(e=>e.id==Number(m))]:f},[f,m]);return d(n,{children:[u(c,{variant:`h1`,bold:!0,children:`FAQ`}),u(r,{selectedTab:m,setSelectedTab:h}),g&&g.length>0?g.map(e=>u(i,{...e,selectedTab:m},e.id)):p?d(l,{children:[u(a,{}),u(a,{}),u(a,{})]}):u(e,{center:!1,children:u(e.Title,{title:`No FAQs available yet`})})]})};export{f as Faq};
@@ -1,8 +1,8 @@
1
- import e from"styled-components";import{spacings as t}from"src/atoms/style";const n=e.div`
1
+ import{spacings as e}from"../../atoms/style/spacings.js";import t from"styled-components";const n=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
- gap: ${t.x_large};
5
- margin: ${t.large} 0;
4
+ gap: ${e.x_large};
5
+ margin: ${e.large} 0;
6
6
  height: fit-content;
7
7
  width: 100%;
8
8
  `;export{n as Container};
@@ -1,14 +1,14 @@
1
- import{useMemo as e,useState as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import i from"styled-components";import{Search as a}from"@equinor/eds-core-react";import{colors as o,spacings as s}from"src/atoms/style";import{useFaqsInApplication as c}from"src/atoms";import{Tabs as l}from"src/molecules/Tabs/Tabs";const u=i.div`
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{useFaqsInApplication as n}from"../../atoms/hooks/useFaqsInApplication.js";import{Tabs as r}from"../../molecules/Tabs/Tabs.js";import{useMemo as i,useState as a}from"react";import{Search as o}from"@equinor/eds-core-react";import s from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=s.div`
2
2
  position: sticky;
3
3
  top: 0;
4
4
  display: flex;
5
5
  flex-direction: column;
6
- gap: ${s.medium};
7
- background: ${o.ui.background__light.rgba};
8
- padding: ${s.x_large} 0;
9
- margin: calc(${s.x_large} * -1) 0;
6
+ gap: ${t.medium};
7
+ background: ${e.ui.background__light.rgba};
8
+ padding: ${t.x_large} 0;
9
+ margin: calc(${t.x_large} * -1) 0;
10
10
  z-index: 400;
11
11
  > div[role='search'] > div {
12
- background: ${o.ui.background__default.rgba};
12
+ background: ${e.ui.background__default.rgba};
13
13
  }
14
- `,d=({setSelectedTab:i,selectedTab:o})=>{let{data:s}=c(),[d,f]=t(``),p=e(()=>s?[{value:`all`,label:`All categories`},...s.map(e=>({value:e.id.toString(),label:e.categoryName}))]:[{value:`all`,label:`All categories`}],[s]),m=e=>{f(e.target.value)},h=e=>{i(e===`all`?void 0:e)};return r(u,{children:[n(l,{style:{maxWidth:`100%`,width:`fit-content`},selected:o??`all`,onChange:h,options:p}),n(a,{value:d,onChange:m,placeholder:`Search for answer by keyword`})]})};export{d as Header};
14
+ `,d=({setSelectedTab:e,selectedTab:t})=>{let{data:s}=n(),[d,f]=a(``),p=i(()=>s?[{value:`all`,label:`All categories`},...s.map(e=>({value:e.id.toString(),label:e.categoryName}))]:[{value:`all`,label:`All categories`}],[s]);return l(u,{children:[c(r,{style:{maxWidth:`100%`,width:`fit-content`},selected:t??`all`,onChange:t=>{e(t===`all`?void 0:t)},options:p}),c(o,{value:d,onChange:e=>{f(e.target.value)},placeholder:`Search for answer by keyword`})]})};export{d as Header};
@@ -1,5 +1,5 @@
1
- import e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{capitalize as i}from"src/atoms/utils";import a from"styled-components";import{LinearProgress as o,Typography as s}from"@equinor/eds-core-react";import{colors as c,spacings as l}from"src/atoms/style";import{useFakeProgress as u}from"src/atoms/hooks";import{AnimatedCheckmark as d}from"src/molecules/AnimatedCheckmark/AnimatedCheckmark";const f=a.div`
2
- gap: ${l.medium};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{capitalize as n}from"../../atoms/utils/string.js";import{useFakeProgress as r}from"../../atoms/hooks/useFakeProgress.js";import{AnimatedCheckmark as i}from"../../molecules/AnimatedCheckmark/AnimatedCheckmark.js";import a from"react";import{LinearProgress 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";const f=c.div`
2
+ gap: ${t.medium};
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  left: 50%;
@@ -8,17 +8,17 @@ import e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runt
8
8
  flex-direction: column;
9
9
  justify-content: center;
10
10
  align-items: center;
11
- min-height: calc(100vh - (${l.xxx_large} * 4));
11
+ min-height: calc(100vh - (${t.xxx_large} * 4));
12
12
  width: 100%;
13
13
  max-width: 370px;
14
- `,p=a(o)`
15
- background-color: ${c.interactive.primary__hover_alt.rgba};
14
+ `,p=c(o)`
15
+ background-color: ${e.interactive.primary__hover_alt.rgba};
16
16
 
17
17
  div {
18
- background-color: ${c.interactive.primary__resting.rgba};
18
+ background-color: ${e.interactive.primary__resting.rgba};
19
19
  }
20
- `,m=a(s)`
20
+ `,m=c(s)`
21
21
  span {
22
22
  text-transform: capitalize;
23
23
  }
24
- `,h=({fieldName:e,onChangedField:a,finishedText:o})=>{let{finished:c,progress:l}=u({onDone:a});return n(f,{children:c?r(t,{children:[r(m,{variant:`h3`,children:[`Changed to `,n(`span`,{children:i(e)})]}),n(d,{}),n(s,{variant:`h6`,children:o})]}):r(t,{children:[r(s,{variant:`h3`,children:[`Changing field.`,`.`.repeat(l/35)]}),n(p,{variant:`determinate`,value:l})]})})};export{h as ChangingField};
24
+ `,h=({fieldName:e,onChangedField:t,finishedText:a})=>{let{finished:o,progress:c}=r({onDone:t});return u(f,{children:o?d(l,{children:[d(m,{variant:`h3`,children:[`Changed to `,u(`span`,{children:n(e)})]}),u(i,{}),u(s,{variant:`h6`,children:a})]}):d(l,{children:[d(s,{variant:`h3`,children:[`Changing field.`,`.`.repeat(c/35)]}),u(p,{variant:`determinate`,value:c})]})})};export{h as ChangingField};
@@ -1,9 +1,9 @@
1
- import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Template as t}from"../Template/Template.js";import{SelectorCard as n}from"./SelectorCard/SelectorCard.js";import{SelectorSkeleton as r}from"./SelectorCard/Skeleton.js";import{ChangingField as i}from"./ChangingField.js";import{useRef as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import l from"styled-components";import{Waves as u}from"src/molecules/Waves/Waves";const{colors:d}=e,f=l.div`
1
+ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Waves as t}from"../../molecules/Waves/Waves.js";import{Template as n}from"../Template/Template.js";import{SelectorCard as r}from"./SelectorCard/SelectorCard.js";import{SelectorSkeleton as i}from"./SelectorCard/Skeleton.js";import{ChangingField as a}from"./ChangingField.js";import{useRef as o,useState as s}from"react";import c from"styled-components";import{jsx as l,jsxs as u}from"react/jsx-runtime";const{colors:d}=e,f=c.div`
2
2
  > svg {
3
3
  margin-bottom: -10px;
4
4
  background-color: ${d.ui.background__light.rgba};
5
5
  }
6
- `,p=l.div`
6
+ `,p=c.div`
7
7
  background-color: ${d.ui.background__light.rgba};
8
8
  overflow: hidden;
9
9
  display: flex;
@@ -11,4 +11,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
11
11
  height: calc(100vh - 64px);
12
12
  max-height: calc(100vh - 64px);
13
13
  width: 100vw;
14
- `,m=({setField:e,fields:l,isLoading:d,onChangedField:m,finishedText:h,showAccessITLink:g=!0,itemNameSingular:_=`field`})=>{let[v,y]=o(!1),b=a(``),x=t=>{t.name&&t.uuid&&(e({uuid:t.uuid,name:t.name,country:t.country??``}),b.current=t.name,y(!0))};return v?s(i,{fieldName:b.current,onChangedField:m,finishedText:h}):c(p,{className:`${t.FullWidth} ${t.WithoutScrollGutter}`,children:[s(f,{children:s(u,{})}),d?s(r,{}):s(n,{itemNameSingular:_,availableFields:l,onSelect:x,showAccessITLink:g})]})};export{m as FieldSelector};
14
+ `,m=({setField:e,fields:c,isLoading:d,onChangedField:m,finishedText:h,showAccessITLink:g=!0,itemNameSingular:_=`field`})=>{let[v,y]=s(!1),b=o(``);return v?l(a,{fieldName:b.current,onChangedField:m,finishedText:h}):u(p,{className:`${n.FullWidth} ${n.WithoutScrollGutter}`,children:[l(f,{children:l(t,{})}),d?l(i,{}):l(r,{itemNameSingular:_,availableFields:c,onSelect:t=>{t.name&&t.uuid&&(e({uuid:t.uuid,name:t.name,country:t.country??``}),b.current=t.name,y(!0))},showAccessITLink:g})]})};export{m as FieldSelector};