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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/dist/atoms/hooks/index.js +1 -0
  2. package/dist/atoms/hooks/useAmplifyKit.js +1 -1
  3. package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
  4. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  5. package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
  6. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  7. package/dist/atoms/hooks/useSelect.js +1 -1
  8. package/dist/atoms/index.d.ts +0 -1
  9. package/dist/atoms/index.js +1 -1
  10. package/dist/atoms/style/index.js +1 -1
  11. package/dist/atoms/utils/auth_environment.js +1 -1
  12. package/dist/atoms/utils/date.d.ts +1 -1
  13. package/dist/atoms/utils/richtext.js +1 -1
  14. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  15. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
  16. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  17. package/dist/deprecated/IconToggleButton.js +1 -1
  18. package/dist/deprecated/OldStepper/OldStep.js +3 -3
  19. package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
  20. package/dist/deprecated/OldStepper/OldStepper.js +3 -3
  21. package/dist/index.d.ts +4 -5
  22. package/dist/index.js +1 -1
  23. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  24. package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
  25. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  26. package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
  27. package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
  28. package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
  29. package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
  30. package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
  31. package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
  32. package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
  33. package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
  34. package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
  35. package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
  36. package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
  37. package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
  38. package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
  39. package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
  40. package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
  41. package/dist/molecules/Badge/Badge.js +1 -1
  42. package/dist/molecules/Banner/Banner.js +1 -1
  43. package/dist/molecules/Banner/Banner.styles.js +3 -3
  44. package/dist/molecules/Button/Button.js +3 -3
  45. package/dist/molecules/Chip/Chip.d.ts +2 -2
  46. package/dist/molecules/Chip/Chip.js +1 -1
  47. package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
  48. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  49. package/dist/molecules/DatePicker/DatePicker.js +1 -1
  50. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  51. package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
  52. package/dist/molecules/Dialog/Dialog.d.ts +3 -3
  53. package/dist/molecules/Dialog/Dialog.js +1 -1
  54. package/dist/molecules/Dialog/Dialog.styles.js +10 -10
  55. package/dist/molecules/Dialog/DialogAction.js +1 -1
  56. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  57. package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
  58. package/dist/molecules/FileProgress/FileProgress.js +1 -1
  59. package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
  60. package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
  61. package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
  62. package/dist/molecules/IconCell/IconCell.d.ts +54 -0
  63. package/dist/molecules/IconCell/IconCell.js +1 -0
  64. package/dist/molecules/IconCell/IconCell.styles.js +108 -0
  65. package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
  66. package/dist/molecules/IconCell/IconCell.types.js +1 -0
  67. package/dist/molecules/IconCell/IconCell.utils.js +8 -0
  68. package/dist/molecules/InfoElement/InfoElement.js +1 -1
  69. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  70. package/dist/molecules/ListItem/ListItem.js +13 -13
  71. package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
  72. package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
  73. package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
  74. package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
  75. package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
  76. package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
  77. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +6 -6
  78. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
  79. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
  80. package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
  81. package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
  82. package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
  83. package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
  84. package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
  85. package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
  86. package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
  87. package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
  88. package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
  89. package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
  90. package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
  91. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
  92. package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
  93. package/dist/molecules/RichTextEditor/index.d.ts +6 -6
  94. package/dist/molecules/RichTextEditor/index.js +1 -1
  95. package/dist/molecules/Search/Search.d.ts +2 -2
  96. package/dist/molecules/Search/Search.js +8 -8
  97. package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
  98. package/dist/molecules/Select/Select.styles.d.ts +1 -1
  99. package/dist/molecules/Select/Select.styles.js +61 -61
  100. package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
  101. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  102. package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
  103. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  104. package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
  105. package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
  106. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  107. package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
  108. package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
  109. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  110. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
  111. package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
  112. package/dist/molecules/Stepper/Step/Step.js +5 -5
  113. package/dist/molecules/Stepper/StepLine.js +2 -2
  114. package/dist/molecules/Stepper/Stepper.js +4 -4
  115. package/dist/molecules/Tabs/Tab.js +1 -1
  116. package/dist/molecules/Tabs/Tab.styles.js +22 -22
  117. package/dist/molecules/Tabs/Tabs.js +4 -4
  118. package/dist/molecules/Tabs/Tabs.types.d.ts +1 -1
  119. package/dist/molecules/index.d.ts +5 -5
  120. package/dist/molecules/index.js +1 -1
  121. package/dist/organisms/DataGrid/DataGrid.js +6 -6
  122. package/dist/organisms/Faq/Faq.js +1 -1
  123. package/dist/organisms/Faq/Faq.styles.js +3 -3
  124. package/dist/organisms/Faq/Header.js +7 -7
  125. package/dist/organisms/FieldSelector/ChangingField.js +8 -8
  126. package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
  127. package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
  128. package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
  129. package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
  130. package/dist/organisms/Filter/Filter.d.ts +2 -2
  131. package/dist/organisms/Filter/Filter.js +1 -1
  132. package/dist/organisms/Filter/Filter.styles.js +39 -39
  133. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  134. package/dist/organisms/Filter/QuickFilter.js +1 -1
  135. package/dist/organisms/Filter/SortMenu.d.ts +2 -2
  136. package/dist/organisms/Filter/SortMenu.js +2 -2
  137. package/dist/organisms/PageTitle/PageTitle.js +1 -1
  138. package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
  139. package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
  140. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  141. package/dist/organisms/SideBar/index.js +1 -1
  142. package/dist/organisms/Status/Action.d.ts +2 -2
  143. package/dist/organisms/Status/Action.js +1 -1
  144. package/dist/organisms/Status/Description.d.ts +2 -2
  145. package/dist/organisms/Status/Description.js +1 -1
  146. package/dist/organisms/Status/Illustration.js +2 -2
  147. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  148. package/dist/organisms/Status/MissingAccesses.js +4 -4
  149. package/dist/organisms/Status/Status.js +4 -4
  150. package/dist/organisms/Status/Title.d.ts +2 -2
  151. package/dist/organisms/Status/Title.js +1 -1
  152. package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
  153. package/dist/organisms/Status/collections/BadRequest.js +2 -2
  154. package/dist/organisms/Status/collections/GenericError.js +1 -1
  155. package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
  156. package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
  157. package/dist/organisms/Status/collections/PageNotFound.js +2 -2
  158. package/dist/organisms/Status/collections/ServerError.js +2 -2
  159. package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
  160. package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
  161. package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
  162. package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
  163. package/dist/organisms/Template/Template.js +7 -7
  164. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  165. package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
  166. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  167. package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
  168. package/dist/organisms/TopBar/Account/Account.js +1 -1
  169. package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
  170. package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
  171. package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
  172. package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
  173. package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
  174. package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
  175. package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
  176. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
  177. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
  178. package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
  179. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  180. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
  181. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
  182. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
  183. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
  184. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
  185. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
  186. package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
  187. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
  188. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
  189. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
  190. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
  191. package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
  192. package/dist/organisms/TopBar/Account/RoleList.js +7 -7
  193. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  194. package/dist/organisms/TopBar/Actions.js +3 -3
  195. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
  196. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
  197. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  198. package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
  199. package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
  200. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
  201. package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
  202. package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
  203. package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
  204. package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
  205. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  206. package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
  207. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
  208. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
  209. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
  210. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
  211. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
  212. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
  213. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
  214. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
  215. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
  216. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
  217. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
  218. package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
  219. package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
  220. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
  221. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
  222. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
  223. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
  224. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
  225. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
  226. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
  227. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
  228. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
  229. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
  230. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
  231. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
  232. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
  233. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
  234. package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
  235. package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
  236. package/dist/organisms/TopBar/Resources/Resources.js +4 -4
  237. package/dist/organisms/TopBar/Settings.js +11 -11
  238. package/dist/organisms/TopBar/TopBar.js +1 -1
  239. package/dist/organisms/TopBar/TopBar.styles.js +22 -22
  240. package/dist/organisms/TopBar/TopBarMenu.js +4 -4
  241. package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
  242. package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
  243. package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
  244. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
  245. package/dist/organisms/index.js +1 -1
  246. package/dist/providers/LoadingProvider.js +1 -1
  247. package/dist/providers/ReleaseNotesProvider.js +1 -1
  248. package/dist/providers/SideBarProvider.js +1 -1
  249. package/dist/providers/StepperProvider.js +1 -1
  250. package/dist/providers/TableOfContentsProvider.js +1 -1
  251. package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
  252. package/dist/providers/index.js +1 -0
  253. package/package.json +4 -8
  254. package/dist/atoms/hooks/useOnScreenMultiple.js +0 -1
  255. package/dist/atoms/hooks/useRichTextImage.js +0 -1
  256. package/dist/atoms/hooks/useSearchParameter.d.ts +0 -12
  257. package/dist/atoms/hooks/useSearchParameter.js +0 -1
  258. package/dist/atoms/style/animation.js +0 -1
  259. package/dist/atoms/style/colors.js +0 -1
  260. package/dist/atoms/style/darkTokens.js +0 -219
  261. package/dist/atoms/style/lightTokens.js +0 -158
  262. package/dist/atoms/style/spacingTokens.js +0 -50
  263. package/dist/atoms/style/spacings.js +0 -1
  264. package/dist/atoms/utils/skeleton.js +0 -1
  265. package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +0 -1
  266. package/dist/molecules/Badge/Badge.styles.js +0 -17
  267. package/dist/molecules/Button/Button.utils.js +0 -1
  268. package/dist/molecules/Chip/Chip.styles.js +0 -65
  269. package/dist/molecules/Chip/InteractiveChip.js +0 -1
  270. package/dist/molecules/Chip/ReadOnlyChip.js +0 -1
  271. package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
  272. package/dist/molecules/DatePicker/DatePicker.styles.js +0 -63
  273. package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +0 -1
  274. package/dist/molecules/FileProgress/CompactFileProgress.js +0 -1
  275. package/dist/molecules/FileProgress/CompactFileProgress.styles.js +0 -100
  276. package/dist/molecules/FileProgress/FileProgress.utils.js +0 -1
  277. package/dist/molecules/FileProgress/RegularFileProgress.js +0 -1
  278. package/dist/molecules/FileProgress/RegularFileProgress.styles.js +0 -35
  279. package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +0 -1
  280. package/dist/molecules/FileUploadArea/UploadIllustration.js +0 -1
  281. package/dist/molecules/InfoElement/CopyText.js +0 -41
  282. package/dist/molecules/ListItem/ListItem.utils.js +0 -1
  283. package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +0 -36
  284. package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +0 -1
  285. package/dist/molecules/Select/AddTagItem.js +0 -1
  286. package/dist/molecules/Select/GroupedSelectMenu.js +0 -1
  287. package/dist/molecules/Select/ListSelectMenu.js +0 -1
  288. package/dist/molecules/Select/Select.js +0 -1
  289. package/dist/molecules/Select/Select.utils.js +0 -1
  290. package/dist/molecules/Select/SelectMenuItem.js +0 -1
  291. package/dist/molecules/Select/SelectMenuItem.utils.js +0 -1
  292. package/dist/molecules/Sieve/Filter.d.ts +0 -10
  293. package/dist/molecules/Sieve/Filter.js +0 -1
  294. package/dist/molecules/Sieve/Sieve.d.ts +0 -7
  295. package/dist/molecules/Sieve/Sieve.js +0 -1
  296. package/dist/molecules/Sieve/Sieve.styles.js +0 -43
  297. package/dist/molecules/Sieve/Sieve.types.d.ts +0 -28
  298. package/dist/molecules/Sieve/Sort.js +0 -1
  299. package/dist/molecules/Skeleton/Skeleton.styles.js +0 -1
  300. package/dist/molecules/Skeleton/SkeletonField.js +0 -8
  301. package/dist/molecules/Stepper/Step/StepIcon.js +0 -19
  302. package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +0 -25
  303. package/dist/molecules/Stepper/SubTitle/SubTitle.js +0 -7
  304. package/dist/molecules/TextField/TextField.js +0 -74
  305. package/dist/organisms/Faq/Category/Category.js +0 -9
  306. package/dist/organisms/Faq/Category/Question.js +0 -22
  307. package/dist/organisms/Faq/CategorySkeleton.js +0 -29
  308. package/dist/organisms/Filter/AutoCompleteMenu.js +0 -10
  309. package/dist/organisms/Filter/AutoCompleteText.js +0 -11
  310. package/dist/organisms/Filter/Filter.utils.js +0 -1
  311. package/dist/organisms/ReleaseNote/MetaTags.js +0 -10
  312. package/dist/organisms/SideBar/CreateItem.js +0 -1
  313. package/dist/organisms/SideBar/CreateItem.styles.js +0 -33
  314. package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +0 -1
  315. package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +0 -48
  316. package/dist/organisms/SideBar/MenuItem/MenuItem.js +0 -1
  317. package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +0 -37
  318. package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +0 -1
  319. package/dist/organisms/SideBar/SideBar.js +0 -1
  320. package/dist/organisms/SideBar/SideBar.styles.js +0 -41
  321. package/dist/organisms/SideBar/ToggleOpen.js +0 -1
  322. package/dist/organisms/SideBar/ToggleOpen.styles.js +0 -16
  323. package/dist/organisms/Status/Illustration.constants.js +0 -1
  324. package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +0 -1
  325. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +0 -1
  326. package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +0 -41
  327. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +0 -7
  328. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +0 -79
  329. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +0 -1
  330. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +0 -7
  331. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +0 -1
  332. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +0 -19
  333. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
  334. package/dist/providers/AuthProvider/AuthProvider.js +0 -1
  335. package/dist/providers/AuthProvider/AuthProviderInner.js +0 -1
  336. package/dist/providers/ReleaseNotesProvider.utils.js +0 -1
  337. package/dist/providers/SnackbarProvider/SnackbarProvider.js +0 -1
  338. package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +0 -41
  339. package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +0 -1
  340. package/dist/providers/TableOfContentsProvider.utils.js +0 -1
  341. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +0 -1
  342. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +0 -1
  343. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +0 -24
  344. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +0 -20
  345. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +0 -75
  346. package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +0 -1
  347. package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +0 -1
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{inPress as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-31,left:-17,rotation:343},{top:42,left:32,rotation:182}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`InPress`;export{a as InPress};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{inPress as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-31,left:-17,rotation:343},{top:42,left:32,rotation:182}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`InPress`;export{a as InPress};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{jsembark as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`JsEmbark`;export{a as JsEmbark};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{jsembark as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`JsEmbark`;export{a as JsEmbark};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{loggingQualification as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-16,left:-17,rotation:343},{top:26,left:11,rotation:193}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`LoggingQualification`;export{a as LoggingQualification};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{loggingQualification as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-16,left:-17,rotation:343},{top:26,left:11,rotation:193}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`LoggingQualification`;export{a as LoggingQualification};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{orca as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-16,left:-17,rotation:328},{top:26,left:11,rotation:193}],a=n((n,a)=>r(e,{iconData:t,shapes:i,ref:a,...n}));a.displayName=`Orca`;export{a as Orca};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{orca as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-16,left:-17,rotation:328},{top:26,left:11,rotation:193}],a=e((e,a)=>t(n,{iconData:r,shapes:i,ref:a,...e}));a.displayName=`Orca`;export{a as Orca};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{premo as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-25,left:-5,rotation:25},{top:45,left:-11,rotation:15}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`Premo`;export{a as Premo};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{premo as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-25,left:-5,rotation:25},{top:45,left:-11,rotation:15}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`Premo`;export{a as Premo};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{pwex as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-18,left:-17,rotation:343},{top:26,left:11,rotation:193}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`Pwex`;export{a as Pwex};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{pwex as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-18,left:-17,rotation:343},{top:26,left:11,rotation:193}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`Pwex`;export{a as Pwex};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{recap as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`Recap`;export{a as Recap};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{recap as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`Recap`;export{a as Recap};
@@ -1 +1 @@
1
- import e from"../ApplicationIconBase.js";import{subsurfacePortal as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-45,left:-5,rotation:25},{top:64,left:-5,rotation:5}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`Acquire`;export{a as SubsurfacePortal};
1
+ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"src/molecules/ApplicationIcon/ApplicationIconBase";import{subsurfacePortal as r}from"src/molecules/ApplicationIcon/ApplicationIconCollection";const i=[{top:-45,left:-5,rotation:25},{top:64,left:-5,rotation:5}],a=e((e,a)=>t(n,{ref:a,iconData:r,shapes:i,...e}));a.displayName=`Acquire`;export{a as SubsurfacePortal};
@@ -1 +1 @@
1
- import{Container as e}from"./Badge.styles.js";import{Typography as t}from"@equinor/eds-core-react";import{jsx as n}from"react/jsx-runtime";const r=({value:r,variant:i=`default`})=>n(e,{"data-testid":`badge-container`,$variant:i,children:n(t,{as:`span`,variant:`label`,group:`navigation`,children:r})});export{r as Badge};
1
+ import{jsx as e}from"react/jsx-runtime";import{Typography as t}from"@equinor/eds-core-react";import{Container as n}from"src/molecules/Badge/Badge.styles";const r=({value:r,variant:i=`default`})=>e(n,{"data-testid":`badge-container`,$variant:i,children:e(t,{as:`span`,variant:`label`,group:`navigation`,children:r})});export{r as Badge};
@@ -1 +1 @@
1
- import{Container as e}from"./Banner.styles.js";import{getVariantIcon as t}from"./Banner.utils.js";import{Icon as n,Typography as r}from"@equinor/eds-core-react";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({variant:o,children:s})=>a(e,{$variant:o,children:[i(n,{data:t(o)}),typeof s==`string`?i(r,{variant:`body_long`,children:s}):s]});export{o as Banner};
1
+ import{Container as e}from"./Banner.styles.js";import{getVariantIcon as t}from"./Banner.utils.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Icon as i,Typography as a}from"@equinor/eds-core-react";const o=({variant:o,children:s})=>r(e,{$variant:o,children:[n(i,{data:t(o)}),typeof s==`string`?n(a,{variant:`body_long`,children:s}):s]});export{o as Banner};
@@ -1,9 +1,9 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import n from"styled-components";const r={info:{background:e.interactive.secondary__highlight.rgba,fill:e.interactive.secondary__resting.rgba},warning:{background:e.interactive.warning__highlight.rgba,fill:e.interactive.warning__resting.rgba},danger:{background:e.interactive.danger__highlight.rgba,fill:e.interactive.danger__text.rgba}},i=n.div`
1
+ import e from"styled-components";import{colors as t,spacings as n}from"src/atoms/style";const r={info:{background:t.interactive.secondary__highlight.rgba,fill:t.interactive.secondary__resting.rgba},warning:{background:t.interactive.warning__highlight.rgba,fill:t.interactive.warning__resting.rgba},danger:{background:t.interactive.danger__highlight.rgba,fill:t.interactive.danger__text.rgba}},i=e.div`
2
2
  display: grid;
3
3
  grid-template-columns: auto 1fr;
4
4
  background: ${({$variant:e})=>r[e].background};
5
- gap: ${t.medium};
6
- padding: ${t.medium_small};
5
+ gap: ${n.medium};
6
+ padding: ${n.medium_small};
7
7
 
8
8
  > svg {
9
9
  fill: ${({$variant:e})=>r[e].fill};
@@ -1,7 +1,7 @@
1
- import{variantAndColorToProgressColor as e}from"./Button.utils.js";import{forwardRef as t}from"react";import{Button as n,CircularProgress as r,DotProgress as i}from"@equinor/eds-core-react";import a from"styled-components";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";const l=a.span`
1
+ import{forwardRef as e}from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import i from"styled-components";import{Button as a,CircularProgress as o,DotProgress as s}from"@equinor/eds-core-react";import{variantAndColorToProgressColor as c}from"src/molecules/Button/Button.utils";const l=i.span`
2
2
  opacity: 0;
3
3
  visibility: hidden;
4
- `,u=a.span`
4
+ `,u=i.span`
5
5
  left: 0;
6
6
  position: absolute;
7
7
  width: 100%;
@@ -9,4 +9,4 @@ import{variantAndColorToProgressColor as e}from"./Button.utils.js";import{forwar
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
- `,d=t(({loading:t,variant:a,color:d,disabled:f=!1,onClick:p,...m},h)=>{let g=a?.includes(`icon`)?{width:`var(--eds_icon-button__size, 40px)`,height:`var(--eds_icon-button__size, 40px)`,...m.style}:m.style,_=t?!1:f;return s(n,{ref:h,variant:a,color:d,disabled:_,onClick:t?void 0:p,...m,style:g,children:t?c(o,{children:[s(l,{children:m.children}),s(u,{children:a&&a.includes(`icon`)?s(r,{size:16,color:e({variant:a,color:d})}):s(i,{color:e({variant:a,color:d})})})]}):m.children})});d.displayName=`Button`;const f=d;export{f as Button};
12
+ `,d=e(({loading:e,variant:i,color:d,disabled:f=!1,onClick:p,...m},h)=>{let g=i?.includes(`icon`)?{width:`var(--eds_icon-button__size, 40px)`,height:`var(--eds_icon-button__size, 40px)`,...m.style}:m.style,_=e?!1:f;return n(a,{ref:h,variant:i,color:d,disabled:_,onClick:e?void 0:p,...m,style:g,children:e?r(t,{children:[n(l,{children:m.children}),n(u,{children:i&&i.includes(`icon`)?n(o,{size:16,color:c({variant:i,color:d})}):n(s,{color:c({variant:i,color:d})})})]}):m.children})});d.displayName=`Button`;const f=d;export{f as Button};
@@ -1,4 +1,4 @@
1
- import * as react5 from "react";
1
+ import * as react3 from "react";
2
2
  import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from "react";
3
3
  import { IconData } from "@equinor/eds-icons";
4
4
 
@@ -25,6 +25,6 @@ type DeletableChipProps = BaseChipProps & InteractiveChipBase & {
25
25
  onDelete: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
26
26
  };
27
27
  type ChipProps = Omit<HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'onClick'> & (ReadOnlyChipProps | ClickableChipProps | DeletableChipProps);
28
- declare const Chip: react5.ForwardRefExoticComponent<ChipProps & react5.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
28
+ declare const Chip: react3.ForwardRefExoticComponent<ChipProps & react3.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
29
29
  //#endregion
30
30
  export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
@@ -1 +1 @@
1
- import{InteractiveChip as e}from"./InteractiveChip.js";import{ReadOnlyChip as t}from"./ReadOnlyChip.js";import{Children as n,Fragment as r,forwardRef as i,isValidElement as a,useMemo as o}from"react";import{jsx as s}from"react/jsx-runtime";const c=i((i,c)=>{let{children:l}=i,u=o(()=>{let e=[];return n.map(l,(t,i)=>{if(a(t)){let o=t;o.type===r&&o.props.children?n.map(o.props.children,(t,n)=>{a(t)&&n===0?e.push(s(`div`,{className:`leading`,children:t},`${i}-${n}`)):typeof t==`string`||typeof t==`number`?e.push(s(`span`,{children:t},`${i}-${n}`)):e.push(t)}):i===0?e.push(s(`div`,{className:`leading`,children:o},i)):e.push(o)}else e.push(s(`span`,{children:t},i))}),e},[l]);return i.onClick!==void 0||i.onDelete!==void 0?s(e,{...i,ref:c,children:u}):s(t,{...i,ref:c,children:u})});c.displayName=`Chip`;export{c as Chip};
1
+ import{Children as e,Fragment as t,forwardRef as n,isValidElement as r,useMemo as i}from"react";import{jsx as a}from"react/jsx-runtime";import{InteractiveChip as o}from"src/molecules/Chip/InteractiveChip";import{ReadOnlyChip as s}from"src/molecules/Chip/ReadOnlyChip";const c=n((n,c)=>{let{children:l}=n,u=i(()=>{let n=[];return e.map(l,(i,o)=>{if(r(i)){let s=i;s.type===t&&s.props.children?e.map(s.props.children,(e,t)=>{r(e)&&t===0?n.push(a(`div`,{className:`leading`,children:e},`${o}-${t}`)):typeof e==`string`||typeof e==`number`?n.push(a(`span`,{children:e},`${o}-${t}`)):n.push(e)}):o===0?n.push(a(`div`,{className:`leading`,children:s},o)):n.push(s)}else n.push(a(`span`,{children:i},o))}),n},[l]);return n.onClick!==void 0||n.onDelete!==void 0?a(o,{...n,ref:c,children:u}):a(s,{...n,ref:c,children:u})});c.displayName=`Chip`;export{c as Chip};
@@ -1 +1 @@
1
- import{Container as e,ContentMenuChildItem as t,ContentMenuItem as n,ContentMenuItemSkeleton as r}from"./ContentMenu.styles.js";import{useCallback as i,useMemo as a,useState as o}from"react";import{Icon as s}from"@equinor/eds-core-react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{chevron_down as u,chevron_up as d}from"@equinor/eds-icons";const f=({items:f,value:p,onChange:m,isLoading:h=!1})=>{let[g,_]=o([]),v=i((e,t)=>{if(t){let t=g.findIndex(t=>t===e);_(t>=0?t=>t.filter(t=>t!==e):t=>[...t,e])}m(e)},[m,g]),y=a(()=>{let e=[];for(let r of f)if(e.push(l(n,{$active:p===r.value,onClick:()=>v(r.value,!!r.children),children:[r.children&&c(s,{data:g.includes(r.value)?d:u}),r.label]},`content-menu-item-${r.label}`)),r.children&&g.includes(r.value))for(let n of r.children)e.push(c(t,{$active:p===n.value,onClick:()=>v(n.value,!1),children:n.label},`content-menu-item-${n.label}`));return e},[v,f,g,p]);return h?c(e,{"data-testid":`content-menu-container`,children:[,,,,,].fill(0).map((e,t)=>c(r,{$offset:t*100},`content-menu-item-skeleton-${e+t}`))}):c(e,{"data-testid":`content-menu-container`,children:y})};export{f as ContentMenu};
1
+ import{useCallback as e,useMemo as t,useState as n}from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{chevron_down as a,chevron_up as o}from"@equinor/eds-icons";import{Icon as s}from"@equinor/eds-core-react";import{Container as c,ContentMenuChildItem as l,ContentMenuItem as u,ContentMenuItemSkeleton as d}from"src/molecules/ContentMenu/ContentMenu.styles";const f=({items:f,value:p,onChange:m,isLoading:h=!1})=>{let[g,_]=n([]),v=e((e,t)=>{if(t){let t=g.findIndex(t=>t===e);_(t>=0?t=>t.filter(t=>t!==e):t=>[...t,e])}m(e)},[m,g]),y=t(()=>{let e=[];for(let t of f)if(e.push(i(u,{$active:p===t.value,onClick:()=>v(t.value,!!t.children),children:[t.children&&r(s,{data:g.includes(t.value)?o:a}),t.label]},`content-menu-item-${t.label}`)),t.children&&g.includes(t.value))for(let n of t.children)e.push(r(l,{$active:p===n.value,onClick:()=>v(n.value,!1),children:n.label},`content-menu-item-${n.label}`));return e},[v,f,g,p]);return h?r(c,{"data-testid":`content-menu-container`,children:[,,,,,].fill(0).map((e,t)=>r(d,{$offset:t*100},`content-menu-item-skeleton-${e+t}`))}):r(c,{"data-testid":`content-menu-container`,children:y})};export{f as ContentMenu};
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react9 from "react";
2
+ import * as react7 from "react";
3
3
  import { DatePickerProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/DatePicker/DatePicker.d.ts
@@ -8,10 +8,10 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant'> & {
8
8
  meta?: string;
9
9
  loading?: boolean;
10
10
  };
11
- declare const DatePicker$1: react9.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
11
+ declare const DatePicker$1: react7.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react9.RefAttributes<HTMLDivElement>>;
15
+ } & react7.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{getSkeletonHeight as t,getSkeletonTop as n}from"../../atoms/utils/skeleton.js";import{DatePickerWrapper as r}from"./DatePicker.styles.js";import{SkeletonField as i}from"../Skeleton/SkeletonField.js";import{forwardRef as a,useRef as o}from"react";import{DatePicker as s,Icon as c,Typography as l}from"@equinor/eds-core-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{calendar as f}from"@equinor/eds-icons";const p=a((a,p)=>{let m=a.locale??`en-GB`,h=a.formatOptions===void 0?{day:`2-digit`,month:`2-digit`,year:`numeric`}:a.formatOptions,g={...a,variant:a.variant===`dirty`?void 0:a.variant,loading:void 0},_=n(a),v=t({label:a.label,helperText:a.helperProps?.text,helperIcon:a.helperProps?.icon}),y=o(`${Math.max(40,Math.random()*80)}%`),b=a.loading||a.disabled;return d(r,{$variant:a.variant,$loading:a.loading,children:[u(s,{...g,ref:p,locale:m,formatOptions:h,disabled:b}),a.meta&&u(l,{variant:`helper`,group:`input`,children:a.meta}),a.loading&&u(i,{role:`progressbar`,style:{width:y.current,height:v,top:_}}),b&&u(c,{style:{top:_},data:f,size:24,color:e.interactive.disabled__fill.rgba})]})});p.displayName=`DatePicker`;export{p as DatePicker};
1
+ import{forwardRef as e,useRef as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{calendar as i}from"@equinor/eds-icons";import{DatePicker as a,Icon as o,Typography as s}from"@equinor/eds-core-react";import{colors as c}from"src/atoms/style";import{getSkeletonHeight as l,getSkeletonTop as u}from"src/atoms/utils/skeleton";import{DatePickerWrapper as d}from"src/molecules/DatePicker/DatePicker.styles";import{SkeletonField as f}from"src/molecules/Skeleton/SkeletonField";const p=e((e,p)=>{let m=e.locale??`en-GB`,h=e.formatOptions===void 0?{day:`2-digit`,month:`2-digit`,year:`numeric`}:e.formatOptions,g={...e,variant:e.variant===`dirty`?void 0:e.variant,loading:void 0},_=u(e),v=l({label:e.label,helperText:e.helperProps?.text,helperIcon:e.helperProps?.icon}),y=t(`${Math.max(40,Math.random()*80)}%`),b=e.loading||e.disabled;return r(d,{$variant:e.variant,$loading:e.loading,children:[n(a,{...g,ref:p,locale:m,formatOptions:h,disabled:b}),e.meta&&n(s,{variant:`helper`,group:`input`,children:e.meta}),e.loading&&n(f,{role:`progressbar`,style:{width:y.current,height:v,top:_}}),b&&n(o,{style:{top:_},data:i,size:24,color:c.interactive.disabled__fill.rgba})]})});p.displayName=`DatePicker`;export{p as DatePicker};
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react7 from "react";
2
+ import * as react5 from "react";
3
3
  import { DateRangePickerProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/DateRangePicker/DateRangePicker.d.ts
@@ -8,10 +8,10 @@ type DateRangePickerProps$1 = Omit<DateRangePickerProps, 'variant'> & {
8
8
  meta?: string;
9
9
  loading?: boolean;
10
10
  };
11
- declare const DateRangePicker$1: react7.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
11
+ declare const DateRangePicker$1: react5.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react7.RefAttributes<HTMLDivElement>>;
15
+ } & react5.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{getSkeletonHeight as t,getSkeletonTop as n}from"../../atoms/utils/skeleton.js";import{DatePickerWrapper as r}from"../DatePicker/DatePicker.styles.js";import{SkeletonField as i}from"../Skeleton/SkeletonField.js";import{forwardRef as a,useRef as o}from"react";import{DateRangePicker as s,Icon as c,Typography as l}from"@equinor/eds-core-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{calendar_date_range as f}from"@equinor/eds-icons";const p=a((a,p)=>{let m=a.locale??`en-GB`,h=a.formatOptions===void 0?{day:`2-digit`,month:`2-digit`,year:`numeric`}:a.formatOptions,g={...a,variant:a.variant===`dirty`?void 0:a.variant,loading:void 0},_=n(a),v=t({label:a.label,helperText:a.helperProps?.text,helperIcon:a.helperProps?.icon}),y=o(`${Math.max(40,Math.random()*80)}%`),b=a.disabled||a.loading;return d(r,{$variant:a.variant,$loading:a.loading,children:[u(s,{...g,ref:p,locale:m,formatOptions:h,disabled:b}),a.meta&&u(l,{variant:`helper`,group:`input`,children:a.meta}),a.loading&&u(i,{role:`progressbar`,style:{width:y.current,height:v,top:_}}),b&&u(c,{style:{top:_},data:f,size:24,color:e.interactive.disabled__fill.rgba})]})});p.displayName=`DateRangePicker`;export{p as DateRangePicker};
1
+ import{forwardRef as e,useRef as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{calendar_date_range as i}from"@equinor/eds-icons";import{DateRangePicker as a,Icon as o,Typography as s}from"@equinor/eds-core-react";import{colors as c}from"src/atoms/style";import{getSkeletonHeight as l,getSkeletonTop as u}from"src/atoms/utils/skeleton";import{DatePickerWrapper as d}from"src/molecules/DatePicker/DatePicker.styles";import{SkeletonField as f}from"src/molecules/Skeleton/SkeletonField";const p=e((e,p)=>{let m=e.locale??`en-GB`,h=e.formatOptions===void 0?{day:`2-digit`,month:`2-digit`,year:`numeric`}:e.formatOptions,g={...e,variant:e.variant===`dirty`?void 0:e.variant,loading:void 0},_=u(e),v=l({label:e.label,helperText:e.helperProps?.text,helperIcon:e.helperProps?.icon}),y=t(`${Math.max(40,Math.random()*80)}%`),b=e.disabled||e.loading;return r(d,{$variant:e.variant,$loading:e.loading,children:[n(a,{...g,ref:p,locale:m,formatOptions:h,disabled:b}),e.meta&&n(s,{variant:`helper`,group:`input`,children:e.meta}),e.loading&&n(f,{role:`progressbar`,style:{width:y.current,height:v,top:_}}),b&&n(o,{style:{top:_},data:i,size:24,color:c.interactive.disabled__fill.rgba})]})});p.displayName=`DateRangePicker`;export{p as DateRangePicker};
@@ -1,7 +1,7 @@
1
- import * as react11 from "react";
1
+ import * as react9 from "react";
2
2
  import { ReactNode } from "react";
3
- import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
4
3
  import { IconData } from "@equinor/eds-icons";
4
+ import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
5
5
 
6
6
  //#region src/molecules/Dialog/Dialog.d.ts
7
7
 
@@ -51,6 +51,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
51
51
  * @param additionalInfo - Defaults to empty, and won't show the additional info button
52
52
  * Also inherits props from EDS dialog
53
53
  */
54
- declare const Dialog$1: react11.ForwardRefExoticComponent<DialogProps$1 & react11.RefAttributes<HTMLDivElement>>;
54
+ declare const Dialog$1: react9.ForwardRefExoticComponent<DialogProps$1 & react9.RefAttributes<HTMLDivElement>>;
55
55
  //#endregion
56
56
  export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
@@ -1 +1 @@
1
- import{AdditionalInfoBanner as e,DialogActions as t,DialogContent as n,DialogElement as r,DialogTitle as i,InfoIconWrapper as a}from"./Dialog.styles.js";import{DialogAction as o}from"./DialogAction.js";import{forwardRef as s,useState as c}from"react";import{Button as l,Icon as u,Typography as d}from"@equinor/eds-core-react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{close as m,info_circle as h}from"@equinor/eds-icons";const g=s(({title:s,children:g,width:_,actions:v,withContentPadding:y,withBorders:b=!1,contentMaxHeight:x=`60vh`,hideClose:S,additionalInfo:C,...w},T)=>{let{horizontal:E=!0,vertical:D=!0}=y??{},[O,k]=c(!1),A=v?.filter(e=>e.position===`left`),j=v?.filter(e=>e.position===`center`),M=v?.filter(e=>e.position===void 0||e.position===`right`),N=typeof s==`string`?f(d,{variant:`h6`,children:s}):s,P=typeof g==`string`?f(d,{variant:`body_long`,children:g}):g;return p(r,{...w,ref:T,style:{width:_?typeof _==`string`?_:`${_}px`:void 0,...w.style},children:[p(i,{$withBorders:b,style:{width:_?`${_}px`:void 0},children:[f(`section`,{children:N}),p(`div`,{children:[C&&f(l,{variant:`ghost_icon`,onClick:()=>k(e=>!e),"data-testid":`dialog-info-button`,children:f(u,{data:h})}),!S&&f(l,{variant:`ghost_icon`,onClick:w.onClose,"data-testid":`dialog-close-button`,children:f(u,{data:m,"data-testid":`dialog-close-icon`,size:24})})]})]}),p(n,{$withContentPaddingX:E,$withContentPaddingY:D,style:{width:_?`${_}px`:void 0,maxHeight:x},children:[O&&C&&p(e,{children:[f(a,{children:f(u,{data:h,size:24})}),C]}),P]}),v&&v.length>0&&p(t,{$withBorders:b,style:{width:_?`${_}px`:void 0},children:[A&&A.length>0&&f(`section`,{id:`dialog-actions-left`,children:A.map(e=>f(o,{...e},e.text))}),j&&j.length>0&&f(`section`,{id:`dialog-actions-center`,children:j.map(e=>f(o,{...e},e.text))}),M&&M.length>0&&f(`section`,{id:`dialog-actions-right`,children:M.map(e=>f(o,{...e},e.text))})]})]})});g.displayName=`Dialog`;export{g as Dialog};
1
+ import{AdditionalInfoBanner as e,DialogActions as t,DialogContent as n,DialogElement as r,DialogTitle as i,InfoIconWrapper as a}from"./Dialog.styles.js";import{DialogAction as o}from"./DialogAction.js";import{forwardRef as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{close as d,info_circle as f}from"@equinor/eds-icons";import{Button as p,Icon as m,Typography as h}from"@equinor/eds-core-react";const g=s(({title:s,children:g,width:_,actions:v,withContentPadding:y,withBorders:b=!1,contentMaxHeight:x=`60vh`,hideClose:S,additionalInfo:C,...w},T)=>{let{horizontal:E=!0,vertical:D=!0}=y??{},[O,k]=c(!1),A=v?.filter(e=>e.position===`left`),j=v?.filter(e=>e.position===`center`),M=v?.filter(e=>e.position===void 0||e.position===`right`),N=typeof s==`string`?l(h,{variant:`h6`,children:s}):s,P=typeof g==`string`?l(h,{variant:`body_long`,children:g}):g;return u(r,{...w,ref:T,style:{width:_?typeof _==`string`?_:`${_}px`:void 0,...w.style},children:[u(i,{$withBorders:b,style:{width:_?`${_}px`:void 0},children:[l(`section`,{children:N}),u(`div`,{children:[C&&l(p,{variant:`ghost_icon`,onClick:()=>k(e=>!e),"data-testid":`dialog-info-button`,children:l(m,{data:f})}),!S&&l(p,{variant:`ghost_icon`,onClick:w.onClose,"data-testid":`dialog-close-button`,children:l(m,{data:d,"data-testid":`dialog-close-icon`,size:24})})]})]}),u(n,{$withContentPaddingX:E,$withContentPaddingY:D,style:{width:_?`${_}px`:void 0,maxHeight:x},children:[O&&C&&u(e,{children:[l(a,{children:l(m,{data:f,size:24})}),C]}),P]}),v&&v.length>0&&u(t,{$withBorders:b,style:{width:_?`${_}px`:void 0},children:[A&&A.length>0&&l(`section`,{id:`dialog-actions-left`,children:A.map(e=>l(o,{...e},e.text))}),j&&j.length>0&&l(`section`,{id:`dialog-actions-center`,children:j.map(e=>l(o,{...e},e.text))}),M&&M.length>0&&l(`section`,{id:`dialog-actions-right`,children:M.map(e=>l(o,{...e},e.text))})]})]})});g.displayName=`Dialog`;export{g as Dialog};
@@ -1,27 +1,27 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{Dialog as n}from"@equinor/eds-core-react";import r,{css as i}from"styled-components";const a=r(n)`
1
+ import{colors as e}from"src/atoms/style/colors";import{spacings as t}from"src/atoms/style/spacings";import n,{css as r}from"styled-components";import{Dialog as i}from"@equinor/eds-core-react";const a=n(i)`
2
2
  grid-gap: 0;
3
- `,o=r(n.Title)`
3
+ `,o=n(i.Title)`
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
7
  width: 100%;
8
8
  padding: ${t.medium};
9
9
 
10
- ${({$withBorders:t})=>t?i`
10
+ ${({$withBorders:t})=>t?r`
11
11
  border-bottom: 1px solid ${e.ui.background__medium.rgba};
12
12
  `:``}
13
13
  > section {
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  }
17
- `,s=r(n.CustomContent)`
17
+ `,s=n(i.CustomContent)`
18
18
  min-height: unset;
19
19
  overflow: auto;
20
- ${({$withContentPaddingX:e,$withContentPaddingY:n})=>i`
20
+ ${({$withContentPaddingX:e,$withContentPaddingY:n})=>r`
21
21
  padding: ${n?t.medium:0}
22
22
  ${e?t.medium:0};
23
23
  `}
24
- `,c=r(n.Actions)`
24
+ `,c=n(i.Actions)`
25
25
  border-top: 1px solid ${e.ui.background__medium.rgba};
26
26
  display: grid;
27
27
  grid-template-columns: auto auto auto;
@@ -47,18 +47,18 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
47
47
  justify-content: flex-end;
48
48
  }
49
49
 
50
- ${({$withBorders:t})=>t?i`
50
+ ${({$withBorders:t})=>t?r`
51
51
  border-top: 1px solid ${e.ui.background__medium.rgba};
52
- `:i`
52
+ `:r`
53
53
  border-top: none;
54
54
  `}
55
- `,l=r.div`
55
+ `,l=n.div`
56
56
  display: flex;
57
57
  flex-direction: row;
58
58
  gap: ${t.medium};
59
59
  padding: ${t.medium};
60
60
  background-color: ${e.ui.background__info.rgba};
61
- `,u=r.div`
61
+ `,u=n.div`
62
62
  display: flex;
63
63
  align-items: center;
64
64
  `;export{l as AdditionalInfoBanner,c as DialogActions,s as DialogContent,a as DialogElement,o as DialogTitle,u as InfoIconWrapper};
@@ -1 +1 @@
1
- import{Button as e}from"../Button/Button.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{Icon as n}from"@equinor/eds-core-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({text:a,variant:o,color:s,onClick:c,icon:l,disabled:u,isLoading:d=!1})=>r(t,{title:typeof u==`string`?u:``,children:i(e,{variant:o,color:s,onClick:c,disabled:u!==void 0&&!!u,loading:d,children:[l&&r(n,{data:l}),a]})});export{a as DialogAction};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Icon as n}from"@equinor/eds-core-react";import{Button as r}from"src/molecules/Button/Button";import{OptionalTooltip as i}from"src/molecules/OptionalTooltip/OptionalTooltip";const a=({text:a,variant:o,color:s,onClick:c,icon:l,disabled:u,isLoading:d=!1})=>e(i,{title:typeof u==`string`?u:``,children:t(r,{variant:o,color:s,onClick:c,disabled:u!==void 0&&!!u,loading:d,children:[l&&e(n,{data:l}),a]})});export{a as DialogAction};
@@ -1,11 +1,11 @@
1
1
  import { SizeIconProps } from "../../atoms/types/Icon.js";
2
- import * as react13 from "react";
2
+ import * as react11 from "react";
3
3
 
4
4
  //#region src/molecules/EquinorLogo/EquinorLogo.d.ts
5
5
  interface EquinorLogoProps extends Partial<SizeIconProps> {
6
6
  large?: boolean;
7
7
  color?: 'red' | 'white' | 'black';
8
8
  }
9
- declare const EquinorLogo: react13.ForwardRefExoticComponent<EquinorLogoProps & react13.RefAttributes<SVGSVGElement>>;
9
+ declare const EquinorLogo: react11.ForwardRefExoticComponent<EquinorLogoProps & react11.RefAttributes<SVGSVGElement>>;
10
10
  //#endregion
11
11
  export { EquinorLogo, EquinorLogoProps };
@@ -1 +1 @@
1
- import{colorSwitch as e}from"./EquinorLogo.utils.js";import{Fragment as t,forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=n(({large:n,color:i,size:a},o)=>r(t,{children:n?r(`svg`,{width:a?a*2:48,height:a?a*2:48,viewBox:`0 0 75 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:o,"data-testid":`logo`,children:r(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M55.485 5.72054L55.4852 12.3731C55.485 12.5703 55.5839 12.7525 55.7547 12.8508L61.5192 16.1718C61.7637 16.3127 62.0756 16.1362 62.0758 15.8539V9.20147C62.076 9.00427 61.9708 8.8221 61.7999 8.72359L56.0356 5.40281C55.7909 5.26192 55.4854 5.4384 55.485 5.72054ZM73.2401 0.525845L64.9411 5.30705C64.6952 5.44867 64.5437 5.71082 64.5441 5.99462V15.5723C64.5444 15.9788 64.9933 16.2327 65.3454 16.0298L73.6446 11.2489C73.8904 11.1071 74.0326 10.845 74.0322 10.5612L74.0324 0.983548C74.032 0.577027 73.5923 0.323134 73.2401 0.525845ZM61.8556 20.8961L59.5493 22.225C59.4811 22.2644 59.4389 22.3373 59.4389 22.4162L59.4387 25.0776C59.4387 25.1908 59.5638 25.2613 59.6616 25.2049L61.9679 23.8762C62.0363 23.837 62.076 23.764 62.0758 23.6853V21.0234C62.0758 20.9106 61.9534 20.84 61.8556 20.8961ZM60.5115 18.4403L57.0576 16.4416C56.9552 16.3825 56.829 16.3825 56.7266 16.4416L53.2727 18.4403C53.1261 18.525 53.1261 18.7366 53.2727 18.8215L56.7266 20.8198C56.829 20.8792 56.9552 20.8792 57.0576 20.8198L60.5115 18.8215C60.6581 18.7366 60.6581 18.525 60.5115 18.4403ZM66.072 18.8006L67.6068 19.6885C67.6976 19.7411 67.8096 19.7411 67.9006 19.6885L69.4352 18.8006C69.5654 18.725 69.5654 18.537 69.4352 18.4616L67.9006 17.5737C67.8096 17.521 67.6976 17.521 67.6068 17.5737L66.072 18.4616C65.9418 18.537 65.9418 18.725 66.072 18.8006ZM64.8376 20.9376L66.3738 21.8225C66.4648 21.875 66.5209 21.9722 66.5209 22.0773L66.5191 23.8502C66.5189 24.0006 66.356 24.0947 66.2256 24.0197L64.6894 23.1347C64.5984 23.0823 64.5443 22.9847 64.5443 22.8799L64.5441 21.1071C64.5441 20.9568 64.7072 20.8624 64.8376 20.9376ZM49.212 19.1858C49.151 19.0332 49.0212 18.9776 48.8763 19.0638C48.7314 19.15 46.0076 20.773 46.0076 20.773V19.2774C46.0076 19.1095 45.9006 19.0484 45.7482 19.1095L44.863 19.43C44.741 19.4757 44.6952 19.5672 44.6952 19.6894V26.2647C44.6952 26.4021 44.7867 26.4935 44.9241 26.4935H45.7786C45.9158 26.4935 46.0076 26.4021 46.0076 26.2647V22.2373C46.0076 22.2373 49.2192 20.255 49.3494 20.1772C49.4795 20.0992 49.5461 20.0332 49.4867 19.8871C49.4217 19.727 49.212 19.1858 49.212 19.1858ZM1.90371 21.9614C2.19356 20.9086 3.01779 20.2676 4.17755 20.2676C5.44407 20.2676 6.11531 21.0153 6.1764 21.9614H1.90371ZM7.56528 22.3582C7.56528 20.527 6.3138 18.9857 4.22323 18.9857C2.1631 18.9857 0.454102 20.4661 0.454102 22.877C0.454102 25.0745 1.88848 26.6766 4.29954 26.6766C5.39821 26.6766 6.49707 26.2952 7.32111 25.5627C7.42788 25.4711 7.42788 25.3491 7.35157 25.2422L6.93954 24.6014C6.86323 24.4794 6.74123 24.4642 6.61924 24.5557C5.87132 25.105 5.10836 25.3796 4.29954 25.3796C2.75839 25.3796 1.91893 24.3724 1.81217 23.1059H7.33946C7.4809 23.1059 7.56528 23.0036 7.56528 22.8801V22.3582ZM12.379 25.3796C11.082 25.3796 9.9679 24.4946 9.9679 22.8159C9.9679 21.1373 11.082 20.2676 12.379 20.2676C13.737 20.2676 14.79 21.1373 14.79 22.8159C14.79 24.5099 13.737 25.3796 12.379 25.3796ZM15.0037 29.5455H15.8582C15.9955 29.5455 16.087 29.454 16.087 29.3166V19.2757C16.087 19.1079 15.9802 19.0468 15.8124 19.1079L14.9426 19.4285C14.8207 19.4742 14.7746 19.5657 14.7746 19.6879V20.0082C14.3017 19.3674 13.3707 18.9857 12.3637 18.9857C10.3645 18.9857 8.62506 20.4813 8.62506 22.8311C8.62506 24.9066 9.9679 26.6766 12.2874 26.6766C13.3402 26.6766 14.3474 26.2036 14.7746 25.6696V29.3166C14.7746 29.454 14.8663 29.5455 15.0037 29.5455ZM20.434 26.6766C21.2274 26.6766 22.0975 26.4172 22.662 25.5933V26.2647C22.662 26.4019 22.7535 26.4935 22.8909 26.4935H23.7454C23.8828 26.4935 23.9742 26.4019 23.9742 26.2647V19.2909C23.9742 19.1079 23.8674 19.0468 23.7148 19.1079L22.8298 19.4285C22.7078 19.4742 22.662 19.5657 22.662 19.6879V23.3501C22.662 24.6473 21.8227 25.3796 20.6782 25.3796C19.549 25.3796 18.7861 24.6625 18.7861 23.3501V19.2757C18.7861 19.1079 18.6791 19.0468 18.5267 19.1079L17.6417 19.4285C17.5194 19.4742 17.4735 19.5657 17.4735 19.6879V23.3958C17.4735 25.5627 18.7861 26.6766 20.434 26.6766ZM25.7595 18.3297L26.6905 18.0244C26.8429 17.9785 26.904 17.9022 26.904 17.7498V16.6359C26.904 16.4985 26.7972 16.3917 26.6294 16.4528L25.7136 16.7885C25.5764 16.8342 25.5001 16.8953 25.5001 17.0477V18.1159C25.5001 18.2838 25.5916 18.3906 25.7595 18.3297ZM25.7747 26.4935H26.6294C26.7666 26.4935 26.8583 26.4019 26.8583 26.2647V19.2757C26.8583 19.1079 26.7514 19.0468 26.5989 19.1079L25.7136 19.4285C25.5916 19.4742 25.5458 19.5657 25.5458 19.6879V26.2647C25.5458 26.4019 25.6373 26.4935 25.7747 26.4935ZM28.6585 26.4935H29.513C29.6504 26.4935 29.742 26.4019 29.742 26.2647V22.3123C29.742 21.0153 30.5814 20.2828 31.7258 20.2828C32.8549 20.2828 33.6178 21.0001 33.6178 22.3123V26.2647C33.6178 26.4019 33.7094 26.4935 33.8468 26.4935H34.7015C34.8387 26.4935 34.9304 26.4019 34.9304 26.2647V22.2666C34.9304 20.0998 33.6178 18.9857 31.9699 18.9857C31.1765 18.9857 30.3068 19.2451 29.742 20.0693V19.2757C29.742 19.1079 29.6352 19.0468 29.4826 19.1079L28.5974 19.4285C28.4754 19.4742 28.4298 19.5657 28.4298 19.6879V26.2647C28.4298 26.4019 28.5211 26.4935 28.6585 26.4935ZM39.8204 25.3948C38.3097 25.3948 37.3941 24.2657 37.3941 22.8311C37.3941 21.3967 38.3097 20.2676 39.8204 20.2676C41.3157 20.2676 42.2313 21.3967 42.2313 22.8311C42.2313 24.2657 41.3157 25.3948 39.8204 25.3948ZM39.8204 18.9857C37.6229 18.9857 36.0513 20.6185 36.0513 22.8311C36.0513 25.0439 37.6229 26.6766 39.8204 26.6766C42.0177 26.6766 43.5743 25.0439 43.5743 22.8311C43.5743 20.6185 42.0177 18.9857 39.8204 18.9857Z`,fill:e(i),"data-testid":`path`})}):r(`svg`,{width:a||24,height:a||24,viewBox:`0 0 42 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:o,"data-testid":`logo`,children:r(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.33323 10.2045L5.33358 23.0959C5.33323 23.478 5.52484 23.831 5.85579 24.0216L17.0263 30.457C17.5002 30.73 18.1045 30.388 18.1049 29.8409V16.9499C18.1052 16.5677 17.9015 16.2147 17.5702 16.0238L6.40005 9.58875C5.92583 9.31573 5.33394 9.65771 5.33323 10.2045ZM39.7392 0.138079L23.6573 9.40318C23.1809 9.67762 22.8873 10.1856 22.888 10.7356V29.2953C22.8887 30.083 23.7586 30.575 24.4407 30.1819L40.5231 20.9175C40.9994 20.6427 41.2749 20.1347 41.2742 19.5847L41.2746 1.02502C41.2738 0.23726 40.4217 -0.254736 39.7392 0.138079ZM17.6783 39.6119L13.2091 42.1871C13.0768 42.2635 12.9951 42.4046 12.9951 42.5575L12.9947 47.7149C12.9947 47.9342 13.2372 48.0708 13.4266 47.9616L17.8958 45.3868C18.0284 45.3107 18.1052 45.1693 18.1049 45.0168V39.8586C18.1049 39.64 17.8678 39.5031 17.6783 39.6119ZM15.0736 34.853L8.38048 30.9799C8.18212 30.8655 7.93754 30.8655 7.73918 30.9799L1.04603 34.853C0.761999 35.0172 0.761999 35.4271 1.04603 35.5917L7.73918 39.464C7.93754 39.5792 8.18212 39.5792 8.38048 39.464L15.0736 35.5917C15.3577 35.4271 15.3577 35.0172 15.0736 34.853ZM25.8488 35.5512L28.8229 37.2717C28.9988 37.3737 29.216 37.3737 29.3923 37.2717L32.366 35.5512C32.6184 35.4047 32.6184 35.0403 32.366 34.8942L29.3923 33.1736C29.216 33.0716 28.9988 33.0716 28.8229 33.1736L25.8488 34.8942C25.5964 35.0403 25.5964 35.4047 25.8488 35.5512ZM23.4568 39.6922L26.4336 41.4071C26.6099 41.5088 26.7187 41.6972 26.7187 41.9009L26.7152 45.3363C26.7148 45.6278 26.3991 45.8102 26.1464 45.6648L23.1695 43.9499C22.9932 43.8483 22.8883 43.6591 22.8883 43.4562L22.888 40.0207C22.888 39.7296 23.204 39.5465 23.4568 39.6922Z`,fill:e(i),"data-testid":`path`})})}));i.displayName=`EquinorLogo`;export{i as EquinorLogo};
1
+ import{Fragment as e,forwardRef as t}from"react";import{jsx as n}from"react/jsx-runtime";import{colorSwitch as r}from"src/molecules/EquinorLogo/EquinorLogo.utils";const i=t(({large:t,color:i,size:a},o)=>n(e,{children:t?n(`svg`,{width:a?a*2:48,height:a?a*2:48,viewBox:`0 0 75 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:o,"data-testid":`logo`,children:n(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M55.485 5.72054L55.4852 12.3731C55.485 12.5703 55.5839 12.7525 55.7547 12.8508L61.5192 16.1718C61.7637 16.3127 62.0756 16.1362 62.0758 15.8539V9.20147C62.076 9.00427 61.9708 8.8221 61.7999 8.72359L56.0356 5.40281C55.7909 5.26192 55.4854 5.4384 55.485 5.72054ZM73.2401 0.525845L64.9411 5.30705C64.6952 5.44867 64.5437 5.71082 64.5441 5.99462V15.5723C64.5444 15.9788 64.9933 16.2327 65.3454 16.0298L73.6446 11.2489C73.8904 11.1071 74.0326 10.845 74.0322 10.5612L74.0324 0.983548C74.032 0.577027 73.5923 0.323134 73.2401 0.525845ZM61.8556 20.8961L59.5493 22.225C59.4811 22.2644 59.4389 22.3373 59.4389 22.4162L59.4387 25.0776C59.4387 25.1908 59.5638 25.2613 59.6616 25.2049L61.9679 23.8762C62.0363 23.837 62.076 23.764 62.0758 23.6853V21.0234C62.0758 20.9106 61.9534 20.84 61.8556 20.8961ZM60.5115 18.4403L57.0576 16.4416C56.9552 16.3825 56.829 16.3825 56.7266 16.4416L53.2727 18.4403C53.1261 18.525 53.1261 18.7366 53.2727 18.8215L56.7266 20.8198C56.829 20.8792 56.9552 20.8792 57.0576 20.8198L60.5115 18.8215C60.6581 18.7366 60.6581 18.525 60.5115 18.4403ZM66.072 18.8006L67.6068 19.6885C67.6976 19.7411 67.8096 19.7411 67.9006 19.6885L69.4352 18.8006C69.5654 18.725 69.5654 18.537 69.4352 18.4616L67.9006 17.5737C67.8096 17.521 67.6976 17.521 67.6068 17.5737L66.072 18.4616C65.9418 18.537 65.9418 18.725 66.072 18.8006ZM64.8376 20.9376L66.3738 21.8225C66.4648 21.875 66.5209 21.9722 66.5209 22.0773L66.5191 23.8502C66.5189 24.0006 66.356 24.0947 66.2256 24.0197L64.6894 23.1347C64.5984 23.0823 64.5443 22.9847 64.5443 22.8799L64.5441 21.1071C64.5441 20.9568 64.7072 20.8624 64.8376 20.9376ZM49.212 19.1858C49.151 19.0332 49.0212 18.9776 48.8763 19.0638C48.7314 19.15 46.0076 20.773 46.0076 20.773V19.2774C46.0076 19.1095 45.9006 19.0484 45.7482 19.1095L44.863 19.43C44.741 19.4757 44.6952 19.5672 44.6952 19.6894V26.2647C44.6952 26.4021 44.7867 26.4935 44.9241 26.4935H45.7786C45.9158 26.4935 46.0076 26.4021 46.0076 26.2647V22.2373C46.0076 22.2373 49.2192 20.255 49.3494 20.1772C49.4795 20.0992 49.5461 20.0332 49.4867 19.8871C49.4217 19.727 49.212 19.1858 49.212 19.1858ZM1.90371 21.9614C2.19356 20.9086 3.01779 20.2676 4.17755 20.2676C5.44407 20.2676 6.11531 21.0153 6.1764 21.9614H1.90371ZM7.56528 22.3582C7.56528 20.527 6.3138 18.9857 4.22323 18.9857C2.1631 18.9857 0.454102 20.4661 0.454102 22.877C0.454102 25.0745 1.88848 26.6766 4.29954 26.6766C5.39821 26.6766 6.49707 26.2952 7.32111 25.5627C7.42788 25.4711 7.42788 25.3491 7.35157 25.2422L6.93954 24.6014C6.86323 24.4794 6.74123 24.4642 6.61924 24.5557C5.87132 25.105 5.10836 25.3796 4.29954 25.3796C2.75839 25.3796 1.91893 24.3724 1.81217 23.1059H7.33946C7.4809 23.1059 7.56528 23.0036 7.56528 22.8801V22.3582ZM12.379 25.3796C11.082 25.3796 9.9679 24.4946 9.9679 22.8159C9.9679 21.1373 11.082 20.2676 12.379 20.2676C13.737 20.2676 14.79 21.1373 14.79 22.8159C14.79 24.5099 13.737 25.3796 12.379 25.3796ZM15.0037 29.5455H15.8582C15.9955 29.5455 16.087 29.454 16.087 29.3166V19.2757C16.087 19.1079 15.9802 19.0468 15.8124 19.1079L14.9426 19.4285C14.8207 19.4742 14.7746 19.5657 14.7746 19.6879V20.0082C14.3017 19.3674 13.3707 18.9857 12.3637 18.9857C10.3645 18.9857 8.62506 20.4813 8.62506 22.8311C8.62506 24.9066 9.9679 26.6766 12.2874 26.6766C13.3402 26.6766 14.3474 26.2036 14.7746 25.6696V29.3166C14.7746 29.454 14.8663 29.5455 15.0037 29.5455ZM20.434 26.6766C21.2274 26.6766 22.0975 26.4172 22.662 25.5933V26.2647C22.662 26.4019 22.7535 26.4935 22.8909 26.4935H23.7454C23.8828 26.4935 23.9742 26.4019 23.9742 26.2647V19.2909C23.9742 19.1079 23.8674 19.0468 23.7148 19.1079L22.8298 19.4285C22.7078 19.4742 22.662 19.5657 22.662 19.6879V23.3501C22.662 24.6473 21.8227 25.3796 20.6782 25.3796C19.549 25.3796 18.7861 24.6625 18.7861 23.3501V19.2757C18.7861 19.1079 18.6791 19.0468 18.5267 19.1079L17.6417 19.4285C17.5194 19.4742 17.4735 19.5657 17.4735 19.6879V23.3958C17.4735 25.5627 18.7861 26.6766 20.434 26.6766ZM25.7595 18.3297L26.6905 18.0244C26.8429 17.9785 26.904 17.9022 26.904 17.7498V16.6359C26.904 16.4985 26.7972 16.3917 26.6294 16.4528L25.7136 16.7885C25.5764 16.8342 25.5001 16.8953 25.5001 17.0477V18.1159C25.5001 18.2838 25.5916 18.3906 25.7595 18.3297ZM25.7747 26.4935H26.6294C26.7666 26.4935 26.8583 26.4019 26.8583 26.2647V19.2757C26.8583 19.1079 26.7514 19.0468 26.5989 19.1079L25.7136 19.4285C25.5916 19.4742 25.5458 19.5657 25.5458 19.6879V26.2647C25.5458 26.4019 25.6373 26.4935 25.7747 26.4935ZM28.6585 26.4935H29.513C29.6504 26.4935 29.742 26.4019 29.742 26.2647V22.3123C29.742 21.0153 30.5814 20.2828 31.7258 20.2828C32.8549 20.2828 33.6178 21.0001 33.6178 22.3123V26.2647C33.6178 26.4019 33.7094 26.4935 33.8468 26.4935H34.7015C34.8387 26.4935 34.9304 26.4019 34.9304 26.2647V22.2666C34.9304 20.0998 33.6178 18.9857 31.9699 18.9857C31.1765 18.9857 30.3068 19.2451 29.742 20.0693V19.2757C29.742 19.1079 29.6352 19.0468 29.4826 19.1079L28.5974 19.4285C28.4754 19.4742 28.4298 19.5657 28.4298 19.6879V26.2647C28.4298 26.4019 28.5211 26.4935 28.6585 26.4935ZM39.8204 25.3948C38.3097 25.3948 37.3941 24.2657 37.3941 22.8311C37.3941 21.3967 38.3097 20.2676 39.8204 20.2676C41.3157 20.2676 42.2313 21.3967 42.2313 22.8311C42.2313 24.2657 41.3157 25.3948 39.8204 25.3948ZM39.8204 18.9857C37.6229 18.9857 36.0513 20.6185 36.0513 22.8311C36.0513 25.0439 37.6229 26.6766 39.8204 26.6766C42.0177 26.6766 43.5743 25.0439 43.5743 22.8311C43.5743 20.6185 42.0177 18.9857 39.8204 18.9857Z`,fill:r(i),"data-testid":`path`})}):n(`svg`,{width:a||24,height:a||24,viewBox:`0 0 42 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:o,"data-testid":`logo`,children:n(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.33323 10.2045L5.33358 23.0959C5.33323 23.478 5.52484 23.831 5.85579 24.0216L17.0263 30.457C17.5002 30.73 18.1045 30.388 18.1049 29.8409V16.9499C18.1052 16.5677 17.9015 16.2147 17.5702 16.0238L6.40005 9.58875C5.92583 9.31573 5.33394 9.65771 5.33323 10.2045ZM39.7392 0.138079L23.6573 9.40318C23.1809 9.67762 22.8873 10.1856 22.888 10.7356V29.2953C22.8887 30.083 23.7586 30.575 24.4407 30.1819L40.5231 20.9175C40.9994 20.6427 41.2749 20.1347 41.2742 19.5847L41.2746 1.02502C41.2738 0.23726 40.4217 -0.254736 39.7392 0.138079ZM17.6783 39.6119L13.2091 42.1871C13.0768 42.2635 12.9951 42.4046 12.9951 42.5575L12.9947 47.7149C12.9947 47.9342 13.2372 48.0708 13.4266 47.9616L17.8958 45.3868C18.0284 45.3107 18.1052 45.1693 18.1049 45.0168V39.8586C18.1049 39.64 17.8678 39.5031 17.6783 39.6119ZM15.0736 34.853L8.38048 30.9799C8.18212 30.8655 7.93754 30.8655 7.73918 30.9799L1.04603 34.853C0.761999 35.0172 0.761999 35.4271 1.04603 35.5917L7.73918 39.464C7.93754 39.5792 8.18212 39.5792 8.38048 39.464L15.0736 35.5917C15.3577 35.4271 15.3577 35.0172 15.0736 34.853ZM25.8488 35.5512L28.8229 37.2717C28.9988 37.3737 29.216 37.3737 29.3923 37.2717L32.366 35.5512C32.6184 35.4047 32.6184 35.0403 32.366 34.8942L29.3923 33.1736C29.216 33.0716 28.9988 33.0716 28.8229 33.1736L25.8488 34.8942C25.5964 35.0403 25.5964 35.4047 25.8488 35.5512ZM23.4568 39.6922L26.4336 41.4071C26.6099 41.5088 26.7187 41.6972 26.7187 41.9009L26.7152 45.3363C26.7148 45.6278 26.3991 45.8102 26.1464 45.6648L23.1695 43.9499C22.9932 43.8483 22.8883 43.6591 22.8883 43.4562L22.888 40.0207C22.888 39.7296 23.204 39.5465 23.4568 39.6922Z`,fill:r(i),"data-testid":`path`})})}));i.displayName=`EquinorLogo`;export{i as EquinorLogo};
@@ -1 +1 @@
1
- import e from"./CompactFileProgress.js";import t from"./RegularFileProgress.js";import{useMemo as n,useState as r}from"react";import{jsx as i}from"react/jsx-runtime";const a=a=>{let[o,s]=r(!1),c=n(()=>a.isError??a.isDone===void 0?!0:a.isDone,[a.isError,a.isDone]),l=async()=>{!c&&a.onCancel?a.onCancel():a.onDelete&&(s(!0),await a.onDelete(),s(!1))};return a.compact?i(e,{...a,isDeleting:o,showCompleteState:c,handleOnClick:l}):i(t,{...a,isDeleting:o,showCompleteState:c,handleOnClick:l})};export{a as FileProgress};
1
+ import{useMemo as e,useState as t}from"react";import{jsx as n}from"react/jsx-runtime";import r from"src/molecules/FileProgress/CompactFileProgress";import i from"src/molecules/FileProgress/RegularFileProgress";const a=a=>{let[o,s]=t(!1),c=e(()=>a.isError??a.isDone===void 0?!0:a.isDone,[a.isError,a.isDone]),l=async()=>{!c&&a.onCancel?a.onCancel():a.onDelete&&(s(!0),await a.onDelete(),s(!1))};return a.compact?n(r,{...a,isDeleting:o,showCompleteState:c,handleOnClick:l}):n(i,{...a,isDeleting:o,showCompleteState:c,handleOnClick:l})};export{a as FileProgress};
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{OptionalTooltip as n}from"../OptionalTooltip/OptionalTooltip.js";import{DividerRow as r,MediumUploadWrapper as i,SmallUploadWrapper as a,UploadWrapper as o}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as s}from"./FileUploadArea.constants.js";import{UploadIllustration as c}from"./UploadIllustration.js";import{useEffect as l,useMemo as u}from"react";import{Icon as d,Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{folder as h}from"@equinor/eds-icons";import{useDropzone as g}from"react-dropzone";const _=({size:_=`large`,...v})=>{let{getRootProps:y,getInputProps:b,isDragActive:x}=g({...v});l(()=>{let t=()=>{if(!window.document.getElementById(s)){let t=document.createElement(`div`);t.id=s,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.backgroundColor=e.ui.background__scrim.rgba,t.style.zIndex=`9999`,t.style.pointerEvents=`none`,window.document.body.appendChild(t)}},n=()=>{let e=window.document.getElementById(s);e!==null&&e.remove()};return window.document.addEventListener(`dragover`,t),window.document.addEventListener(`dragend`,n),window.document.addEventListener(`mouseleave`,()=>n),()=>{window.document.removeEventListener(`dragover`,t),window.document.removeEventListener(`dragend`,n),window.document.removeEventListener(`mouseleave`,n)}},[]);let S=u(()=>{if(v.accept)return Object.values(v.accept).join(`, `)},[v.accept]);return _==`small`?m(a,{...y(),style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),p(f,{variant:`meta`,children:`Upload file`}),v.accept&&p(n,{title:`Supported filetypes: ${S}`,children:m(f,{variant:`meta`,children:[`(`,S,`)`]})})]}):_==`medium`?m(i,{...y(),style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),m(`section`,{children:[p(f,{variant:`button`,group:`navigation`,children:`Drag files here`}),v.accept&&p(n,{title:`Supported filetypes: ${S}`,children:p(f,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:S})})]}),m(r,{children:[p(`hr`,{}),p(f,{variant:`meta`,children:`OR`}),p(`hr`,{})]}),m(t,{variant:`ghost`,onClick:y().onClick,children:[p(d,{data:h}),`Browse files`]})]}):m(o,{...y(),onClick:void 0,style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),m(`section`,{children:[p(f,{variant:`button`,group:`navigation`,children:`Drag files here to upload.`}),v.accept&&m(f,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:[`Supported filetypes: `,S]})]}),m(r,{children:[p(`hr`,{}),p(f,{variant:`button`,group:`navigation`,children:`OR`}),p(`hr`,{})]}),m(t,{variant:`ghost`,onClick:y().onClick,children:[p(d,{data:h}),`Browse files`]})]})};export{_ as FileUploadArea};
1
+ import{DividerRow as e,MediumUploadWrapper as t,SmallUploadWrapper as n,UploadWrapper as r}from"./FileUploadArea.styles.js";import{useEffect as i,useMemo as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{folder as c}from"@equinor/eds-icons";import{Icon as l,Typography as u}from"@equinor/eds-core-react";import{colors as d}from"src/atoms/style";import{Button as f}from"src/molecules/Button/Button";import{OptionalTooltip as p}from"src/molecules/OptionalTooltip/OptionalTooltip";import{useDropzone as m}from"react-dropzone";import{FILE_UPLOAD_SCRIM_ID as h}from"src/molecules/FileUploadArea/FileUploadArea.constants";import{UploadIllustration as g}from"src/molecules/FileUploadArea/UploadIllustration";const _=({size:_=`large`,...v})=>{let{getRootProps:y,getInputProps:b,isDragActive:x}=m({...v});i(()=>{let e=()=>{if(!window.document.getElementById(h)){let e=document.createElement(`div`);e.id=h,e.style.position=`fixed`,e.style.top=`0`,e.style.left=`0`,e.style.width=`100%`,e.style.height=`100%`,e.style.backgroundColor=d.ui.background__scrim.rgba,e.style.zIndex=`9999`,e.style.pointerEvents=`none`,window.document.body.appendChild(e)}},t=()=>{let e=window.document.getElementById(h);e!==null&&e.remove()};return window.document.addEventListener(`dragover`,e),window.document.addEventListener(`dragend`,t),window.document.addEventListener(`mouseleave`,()=>t),()=>{window.document.removeEventListener(`dragover`,e),window.document.removeEventListener(`dragend`,t),window.document.removeEventListener(`mouseleave`,t)}},[]);let S=a(()=>{if(v.accept)return Object.values(v.accept).join(`, `)},[v.accept]);return _==`small`?s(n,{...y(),style:{background:x?d.interactive.primary__hover_alt.rgba:void 0},children:[o(`input`,{"data-testid":`file-upload-area-input`,...b()}),o(g,{}),o(u,{variant:`meta`,children:`Upload file`}),v.accept&&o(p,{title:`Supported filetypes: ${S}`,children:s(u,{variant:`meta`,children:[`(`,S,`)`]})})]}):_==`medium`?s(t,{...y(),style:{background:x?d.interactive.primary__hover_alt.rgba:void 0},children:[o(`input`,{"data-testid":`file-upload-area-input`,...b()}),o(g,{}),s(`section`,{children:[o(u,{variant:`button`,group:`navigation`,children:`Drag files here`}),v.accept&&o(p,{title:`Supported filetypes: ${S}`,children:o(u,{group:`paragraph`,variant:`meta`,color:d.text.static_icons__tertiary.rgba,children:S})})]}),s(e,{children:[o(`hr`,{}),o(u,{variant:`meta`,children:`OR`}),o(`hr`,{})]}),s(f,{variant:`ghost`,onClick:y().onClick,children:[o(l,{data:c}),`Browse files`]})]}):s(r,{...y(),onClick:void 0,style:{background:x?d.interactive.primary__hover_alt.rgba:void 0},children:[o(`input`,{"data-testid":`file-upload-area-input`,...b()}),o(g,{}),s(`section`,{children:[o(u,{variant:`button`,group:`navigation`,children:`Drag files here to upload.`}),v.accept&&s(u,{group:`paragraph`,variant:`meta`,color:d.text.static_icons__tertiary.rgba,children:[`Supported filetypes: `,S]})]}),s(e,{children:[o(`hr`,{}),o(u,{variant:`button`,group:`navigation`,children:`OR`}),o(`hr`,{})]}),s(f,{variant:`ghost`,onClick:y().onClick,children:[o(l,{data:c}),`Browse files`]})]})};export{_ as FileUploadArea};
@@ -1,16 +1,16 @@
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 r from"styled-components";const i=r.div`
1
+ import e from"styled-components";import{animation as t,colors as n,spacings as r}from"src/atoms/style";const i=e.div`
2
2
  position: relative;
3
3
  display: flex;
4
4
  align-items: center;
5
- gap: ${n.small};
5
+ gap: ${r.small};
6
6
  justify-content: center;
7
7
  flex-direction: column;
8
- border: 2px dashed ${t.interactive.primary__resting.rgba};
8
+ border: 2px dashed ${n.interactive.primary__resting.rgba};
9
9
  border-radius: 15px;
10
- padding: ${n.medium_small} ${n.xx_large};
10
+ padding: ${r.medium_small} ${r.xx_large};
11
11
  /* v8 ignore next */
12
- background: ${t.ui.background__light.rgba};
13
- transition: background ${e.transitionMS};
12
+ background: ${n.ui.background__light.rgba};
13
+ transition: background ${t.transitionMS};
14
14
  z-index: 10000;
15
15
 
16
16
  > svg {
@@ -25,10 +25,10 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  align-items: center;
28
- gap: ${n.x_small};
29
- margin: calc(${n.medium_small} / 2) 0;
28
+ gap: ${r.x_small};
29
+ margin: calc(${r.medium_small} / 2) 0;
30
30
  }
31
- `,a=r(i)`
31
+ `,a=e(i)`
32
32
  width: 88px;
33
33
  height: 88px;
34
34
  margin-bottom: 1.6em;
@@ -37,23 +37,23 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
37
37
  height: 48px;
38
38
  }
39
39
  > p {
40
- color: ${t.interactive.primary__resting.rgba};
40
+ color: ${n.interactive.primary__resting.rgba};
41
41
  }
42
42
  > p:last-child {
43
- color: ${t.text.static_icons__tertiary.rgba};
43
+ color: ${n.text.static_icons__tertiary.rgba};
44
44
  max-width: 100%;
45
45
  overflow: hidden;
46
46
  text-overflow: ellipsis;
47
47
  text-wrap: nowrap;
48
48
  position: absolute;
49
- bottom: calc((1.6em + ${n.small}) * -1);
49
+ bottom: calc((1.6em + ${r.small}) * -1);
50
50
  }
51
51
 
52
52
  &:hover {
53
53
  cursor: pointer;
54
- background: ${t.interactive.primary__hover_alt.rgba};
54
+ background: ${n.interactive.primary__hover_alt.rgba};
55
55
  }
56
- `,o=r(i)`
56
+ `,o=e(i)`
57
57
  width: 180px;
58
58
  height: 180px;
59
59
  gap: 0;
@@ -67,18 +67,18 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
67
67
  text-overflow: ellipsis;
68
68
  }
69
69
  > button {
70
- margin-top: ${n.x_small};
70
+ margin-top: ${r.x_small};
71
71
  text-wrap: nowrap;
72
72
  }
73
- `,s=r.div`
73
+ `,s=e.div`
74
74
  display: grid;
75
75
  grid-template-columns: 1fr auto 1fr;
76
76
  width: 100%;
77
- gap: ${n.x_small};
77
+ gap: ${r.x_small};
78
78
  align-items: center;
79
79
 
80
80
  > p {
81
- color: ${t.text.static_icons__tertiary.rgba};
81
+ color: ${n.text.static_icons__tertiary.rgba};
82
82
  }
83
83
 
84
84
  > hr {
@@ -1,5 +1,5 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{useMemo as t}from"react";import{Progress as n,Scrim as r,StarProgress as i}from"@equinor/eds-core-react";import a,{css as o}from"styled-components";import{jsx as s,jsxs as c}from"react/jsx-runtime";const l=a.div`
2
- ${({$fixedPosition:e})=>e?o`
1
+ import{useMemo as e}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r,{css as i}from"styled-components";import{Progress as a,Scrim as o,StarProgress as s}from"@equinor/eds-core-react";import{colors as c}from"src/atoms/style";const l=r.div`
2
+ ${({$fixedPosition:e})=>e?i`
3
3
  position: fixed;
4
4
  z-index: 500;
5
5
  top: 0;
@@ -9,21 +9,21 @@ import{colors as e}from"../../atoms/style/colors.js";import{useMemo as t}from"re
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
- `:o`
12
+ `:i`
13
13
  position: absolute;
14
14
  z-index: 500;
15
15
  top: 50%;
16
16
  left: 50%;
17
17
  transform: translate(-50%, -50%);
18
18
  `}
19
- `,u=a.div`
19
+ `,u=r.div`
20
20
  display: none;
21
21
  visibility: hidden;
22
- `,d=a(n.Circular)`
22
+ `,d=r(a.Circular)`
23
23
  circle {
24
- stroke: ${e.interactive.primary__resting.rgba};
24
+ stroke: ${c.interactive.primary__resting.rgba};
25
25
  }
26
26
  circle:first-child {
27
- stroke: ${e.interactive.primary__hover_alt.rgba};
27
+ stroke: ${c.interactive.primary__hover_alt.rgba};
28
28
  }
29
- `,f=({variant:e=`application`,withScrim:a=!1,fixedPosition:o=!1,children:f})=>{let p=t(()=>{switch(e){case`dots`:return s(n.Dots,{color:`primary`,"data-testid":`full-page-spinner-${e}`,size:48});case`circle`:return s(d,{"data-testid":`full-page-spinner-${e}`,size:48});case`equinor`:return s(i,{"data-testid":`full-page-spinner-${e}`,size:48});case`application`:return s(d,{"data-testid":`app-icon-svg`,size:48})}},[e]);return a?c(r,{open:!0,children:[p,f&&s(u,{children:f})]}):c(l,{$fixedPosition:o,children:[p,f&&s(u,{children:f})]})};export{f as FullPageSpinner};
29
+ `,f=({variant:r=`application`,withScrim:i=!1,fixedPosition:c=!1,children:f})=>{let p=e(()=>{switch(r){case`dots`:return t(a.Dots,{color:`primary`,"data-testid":`full-page-spinner-${r}`,size:48});case`circle`:return t(d,{"data-testid":`full-page-spinner-${r}`,size:48});case`equinor`:return t(s,{"data-testid":`full-page-spinner-${r}`,size:48});case`application`:return t(d,{"data-testid":`app-icon-svg`,size:48})}},[r]);return i?n(o,{open:!0,children:[p,f&&t(u,{children:f})]}):n(l,{$fixedPosition:c,children:[p,f&&t(u,{children:f})]})};export{f as FullPageSpinner};
@@ -0,0 +1,54 @@
1
+ import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
2
+ import * as react13 from "react";
3
+ import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
4
+ import { IconData } from "@equinor/eds-icons";
5
+
6
+ //#region src/molecules/IconCell/IconCell.d.ts
7
+ type ScribbledOutType = typeof IconCellVariants.SCRIBBLED_OUT;
8
+ type SharedProps = {
9
+ onClick?: MouseEventHandler<HTMLButtonElement>;
10
+ disabled?: boolean;
11
+ selected?: boolean;
12
+ className?: string;
13
+ color?: IconCellColor;
14
+ state?: IconCellState;
15
+ label?: string;
16
+ helperIcon?: ReactNode | IconData;
17
+ noBottomBorder?: boolean;
18
+ as?: 'td' | 'div';
19
+ } & HTMLAttributes<HTMLButtonElement>;
20
+ type ScribbledOutProps = {
21
+ variant: ScribbledOutType;
22
+ icon?: never;
23
+ } & SharedProps;
24
+ type RegularIconCellProps = {
25
+ variant?: Exclude<IconCellVariant, ScribbledOutType>;
26
+ icon: ReactNode | IconData;
27
+ } & SharedProps;
28
+ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
29
+ /**
30
+ * IconCell component renders a styled button-like cell with an icon, optional label,
31
+ * and optional helper icon. It supports various visual states and interaction handlers.
32
+ *
33
+ * ### Special case
34
+ * When `variant` is `IconCellVariants.SCRIBBLED_OUT`, this component renders a scribbled-out cell and so the icon becomes optional.
35
+ *
36
+ * @param {IconCellProps} props - Component props.
37
+ * @param {React.ReactNode | IconData} [props.icon] - Main icon displayed in the center of the cell.
38
+ * @param {MouseEventHandler<HTMLButtonElement>} [props.onClick] - Callback fired when the cell is clicked.
39
+ * @param {boolean} [props.disabled=false] - Whether the cell is disabled.
40
+ * @param {boolean} [props.selected=false] - Whether the cell is in a selected state.
41
+ * @param {string} [props.className] - Optional CSS class for custom styling.
42
+ * @param {IconCellColor} [props.color=IconCellColors.DEFAULT] - Color theme of the cell.
43
+ * @param {IconCellState} [props.state=IconCellStates.DEFAULT] - Visual state of the cell: default, danger, or warning.
44
+ * @param {string} [props.label] - Optional label text displayed inside the cell.
45
+ * @param {IconCellVariant} [props.variant=IconCellVariants.DEFAULT] - Variant of the cell: `transparent`, `coloured`, or the special `scribbled-out`.
46
+ * @param {React.ReactNode | IconData} [props.helperIcon] - Optional secondary icon displayed in the corner.
47
+ * @param {boolean} [props.noBottomBorder=false] - Whether to render the cell without the default bottom border.
48
+ * @param {'td' | 'div'} [props.as='td'] - Element type to render the outer container as.
49
+ * @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
50
+ * @returns {JSX.Element} The rendered IconCell.
51
+ */
52
+ declare const IconCell: react13.ForwardRefExoticComponent<IconCellProps & react13.RefAttributes<HTMLButtonElement>>;
53
+ //#endregion
54
+ export { IconCell, IconCellProps };
@@ -0,0 +1 @@
1
+ import{IconCellColors as e,IconCellStates as t,IconCellVariants as n}from"./IconCell.types.js";import{getIconCellColor as r,renderContent as i}from"./IconCell.utils.js";import{Button as a,Container as o,HelperIconContainer as s,IconContainer as c,Label as l}from"./IconCell.styles.js";import{forwardRef as u,useContext as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{ThemeProviderContext as m}from"src/providers/ThemeProvider/ThemeProvider";import{Theme as h}from"src/atoms";const g=u(function(u,g){let _=d(m);if(u.variant===n.SCRIBBLED_OUT){let{className:e,as:t=`td`,noBottomBorder:r=!1}=u;return f(o,{className:e,as:t,children:f(a,{ref:g,$variant:n.SCRIBBLED_OUT,$noBottomBorder:r,$clickable:!1})})}let{icon:v,onClick:y,className:b,disabled:x=!1,selected:S=!1,color:C=e.DEFAULT,state:w=t.DEFAULT,label:T,variant:E=n.DEFAULT,helperIcon:D,noBottomBorder:O=!1,as:k=`td`,...A}=u,{backgroundColor:j,iconColor:M}=r(C,_?.theme??h.LIGHT);return f(o,{className:b,as:k,children:p(a,{ref:g,...A,$selected:S,disabled:x,onClick:y,$backgroundColor:j,$state:w,$variant:E,$noBottomBorder:O,$clickable:!!y&&!x,children:[f(c,{children:i(v,M)}),f(l,{children:f(`span`,{children:T})}),f(s,{children:D&&i(D,M)})]})})});g.displayName=`IconCell`;export{g as IconCell};