@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,52 +0,0 @@
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{SkeletonBase as r}from"../Skeleton/SkeletonBase/SkeletonBase.js";import i from"styled-components";const a=i.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: ${t.small};
5
- `,o=i.button`
6
- display: flex;
7
- align-items: center;
8
- gap: ${t.xx_small};
9
- color: ${e.text.static_icons__default.rgba};
10
- border: none;
11
- border-radius: ${n.corners.borderRadius};
12
- min-width: 150px;
13
- width: fit-content;
14
- padding: ${t.medium_small} ${t.medium};
15
- text-align: left;
16
- background: ${t=>t.$active?e.interactive.primary__hover_alt.rgba:`none`};
17
- transition: background 150ms;
18
- &:hover {
19
- background: ${e.interactive.primary__hover_alt.rgba};
20
- cursor: pointer;
21
- }
22
- font-family: 'Equinor', sans-serif;
23
- font-weight: 700;
24
- font-size: 14px;
25
- `,s=i.button`
26
- display: flex;
27
- align-items: center;
28
- gap: ${t.xx_small};
29
- color: ${e.text.static_icons__default.rgba};
30
- border: none;
31
- margin-left: ${t.medium_small};
32
- border-radius: ${n.corners.borderRadius};
33
- min-width: calc(150px - ${t.medium_small});
34
- width: fit-content;
35
- padding: ${t.medium_small} ${t.medium};
36
- text-align: left;
37
- background: ${t=>t.$active?e.interactive.primary__hover_alt.rgba:`none`};
38
- transition: background 400ms;
39
- &:hover {
40
- background: ${e.interactive.primary__hover_alt.rgba};
41
- cursor: pointer;
42
- }
43
- font-family: 'Equinor', sans-serif;
44
- font-weight: 700;
45
- font-size: 14px;
46
- `,c=i(r)`
47
- border: none;
48
- border-radius: ${n.corners.borderRadius};
49
- width: 150px;
50
- height: 1rem;
51
- padding: ${t.medium_small} 0;
52
- `;export{a as Container,s as ContentMenuChildItem,o as ContentMenuItem,c as ContentMenuItemSkeleton};
@@ -1,63 +0,0 @@
1
- import{VARIANT_COLORS as e,colors as t}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";import r,{css as i}from"styled-components";const a=r.div`
2
- position: relative;
3
- height: fit-content;
4
- > p {
5
- color: ${t.text.static_icons__tertiary.rgba};
6
- position: absolute;
7
- top: 0;
8
- right: 8px;
9
- }
10
- /* If the DatePicker doesn't have a label there won't be space for the meta text*/
11
- &:not(:has(> div > label)):has(> p) {
12
- padding-top: 1rem;
13
- }
14
-
15
- > div:hover:not(:disabled):not(:focus-within) {
16
- ${({$variant:n})=>n===void 0?i`
17
- > div[id*='react-aria'] {
18
- box-shadow: inset 0 -2px 0 0
19
- ${t.text.static_icons__tertiary.rgba};
20
- }
21
- `:i`
22
- > div[id*='react-aria'] {
23
- box-shadow: inset 0 -2px 0 0 ${e[n]};
24
- }
25
- `}
26
- }
27
-
28
- > div > div[id*='react-aria'] {
29
- outline: none !important;
30
-
31
- ${({$variant:n})=>n===void 0?i`
32
- box-shadow: inset 0 -1px 0 0
33
- ${t.text.static_icons__tertiary.rgba};
34
- &:focus-within {
35
- box-shadow: inset 0 -2px 0 0
36
- ${t.interactive.primary__resting.rgba};
37
- }
38
- `:i`
39
- box-shadow: inset 0 -${n===`dirty`?2:1}px 0 0
40
- ${e[n]};
41
- &:focus-within {
42
- box-shadow: inset 0 -2px 0 0 ${e[n]};
43
- }
44
- `}
45
- }
46
-
47
- ${({$loading:e})=>{if(e)return i`
48
- div[role='presentation'] {
49
- visibility: hidden;
50
-
51
- // For the date range picker there is a "-" in between the two dates, so we hide that as well
52
- & ~ span {
53
- visibility: hidden;
54
- }
55
- }
56
- `}}
57
-
58
- > svg {
59
- position: absolute;
60
- right: ${n.small};
61
- transform: translateY(calc(${n.x_small} + ${n.xx_small}));
62
- }
63
- `;export{a as DatePickerWrapper};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";const t=t=>{switch(t){case`red`:return e.logo.fill_positive.rgba;case`white`:return e.logo.fill_negative.rgba;case`black`:return`#000`;default:return e.logo.fill_positive.rgba}};export{t as colorSwitch};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{AdditionalText as n,CircularProgress as r,CloseButton as i,CompactFileProgressContainer as a,DoneWrapper as o,FileTooltip as s,LoadingWrapper as c,Rejection as l}from"./CompactFileProgress.styles.js";import{getFileIcon as u,isFileImage as d,readUploadedFileAsText as f}from"./FileProgress.utils.js";import{useEffect as p,useMemo as m,useState as h}from"react";import{Icon as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";const S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=h(``);p(()=>{let e=async e=>{let t=await f(e);j(t)};C||e(S)},[C,S]);let M=m(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),N=m(()=>C?y(l,{children:[v(g,{data:x,color:e.interactive.warning__text.rgba}),v(`div`,{children:w&&w.length>0?w:`Invalid file type`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.interactive.warning__text.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}):T&&!O&&d(S.name)?v(o,{children:v(`img`,{src:A,alt:` ${S.name}`})}):T&&!O?v(o,{children:v(g,{data:u(S.name)})}):y(c,{children:[v(r,{variant:k.indeterminate||O?`indeterminate`:`determinate`,value:!k.isDone&&!k.indeterminate?k.progressPercent:void 0,size:24}),v(_,{variant:`meta`,children:`Uploading...`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.ui.background__medium.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}),[C,T,O,w,A,S.name,k]);return y(a,{$isError:C,children:[v(s,{title:M,children:N}),v(t,{title:S.name,children:v(n,{group:`paragraph`,variant:`meta`,children:S.name})}),!O&&k.onDelete&&v(i,{"data-testid":`delete-file`,onClick:D,children:v(g,{color:e.text.static_icons__tertiary.rgba,data:b})})]})};export{S as default};
@@ -1,100 +0,0 @@
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{CircularProgress as r,Tooltip as i,Typography as a}from"@equinor/eds-core-react";import o,{css as s}from"styled-components";const c=o.div`
2
- margin: 10px 0;
3
- width: 88px;
4
- height: 88px;
5
- box-sizing: border-box;
6
- position: relative;
7
- transition: ${e.transitionMS};
8
- border-radius: ${`7px`};
9
- ${({$isError:e})=>e&&s`
10
- &:hover {
11
- background: ${t.ui.background__warning.rgba};
12
- }
13
- `}
14
- `;o(a)`
15
- margin: ${n.small} ${n.small} 0 ${n.small};
16
- color: ${t.text.static_icons__tertiary.rgba};
17
- `;const l=o.div`
18
- height: 100%;
19
- width: 100%;
20
- overflow: hidden;
21
- display: flex;
22
- flex-direction: column;
23
- gap: ${n.small};
24
- justify-content: center;
25
- align-items: center;
26
- border-radius: ${`7px`};
27
- > svg:last-child {
28
- position: absolute;
29
- }
30
- `,u=o.div`
31
- height: 100%;
32
- width: 100%;
33
- overflow: hidden;
34
- border: 2px solid ${t.ui.background__medium.rgba};
35
- border-radius: ${`7px`};
36
- position: relative;
37
- display: flex;
38
- justify-content: center;
39
- align-items: center;
40
-
41
- > img {
42
- object-fit: cover;
43
- width: 88px;
44
- height: 88px;
45
- }
46
-
47
- > svg {
48
- width: 40px;
49
- height: 40px;
50
- }
51
- `,d=o.div`
52
- display: flex;
53
- flex-direction: column;
54
- gap: ${n.small};
55
- align-items: center;
56
- justify-content: center;
57
- height: 100%;
58
- width: 100%;
59
- font-size: 11px;
60
- justify-items: center;
61
- text-align: center;
62
- border-radius: ${`7px`};
63
- > svg:last-child {
64
- position: absolute;
65
- }
66
- > div {
67
- color: ${t.interactive.warning__text.rgba};
68
- }
69
- `,f=o.div`
70
- background-color: ${t.text.static_icons__tertiary.rgba};
71
- border-radius: 50%;
72
- border: 2px solid ${t.ui.background__light.rgba};
73
- position: absolute;
74
- width: 18px;
75
- height: 18px;
76
- right: -10px;
77
- cursor: pointer;
78
- top: -10px;
79
- > svg {
80
- width: 14px;
81
- height: 14px;
82
- fill: ${t.ui.background__light.rgba};
83
- }
84
- `,p=o(a)`
85
- font-size: 10px;
86
- padding-top: ${n.x_small};
87
- width: 100%;
88
- overflow: hidden;
89
- text-overflow: ellipsis;
90
- text-wrap: nowrap;
91
- `,m=o(i)`
92
- white-space: pre;
93
- `,h=o(r)`
94
- circle {
95
- stroke: ${t.interactive.primary__resting.rgba};
96
- }
97
- circle:first-child {
98
- stroke: ${t.interactive.primary__hover_alt.rgba};
99
- }
100
- `;export{p as AdditionalText,h as CircularProgress,f as CloseButton,c as CompactFileProgressContainer,u as DoneWrapper,m as FileTooltip,l as LoadingWrapper,d as Rejection};
@@ -1 +0,0 @@
1
- import{file_description as e,library_pdf as t}from"@equinor/eds-icons";function n(e){let t=new FileReader;return new Promise((n,r)=>{t.onerror=()=>{t.abort(),r(new DOMException(`Problem parsing input file.`))},t.onload=()=>{n(t.result)},t.readAsDataURL(e)})}function r(e){return/\.(jpe?g|png|gif|bmp)$/i.test(e)}function i(n){let r=n.split(`.`).pop();switch(r){case`pdf`:return t;default:return e}}export{i as getFileIcon,r as isFileImage,n as readUploadedFileAsText};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{formatDataSize as t}from"../../atoms/utils/size.js";import{Container as n,FileName as r,LinearProgress as i,ProgressWrapper as a,RegularFileProgressDetails as o,RegularFileProgressWrapper as s}from"./RegularFileProgress.styles.js";import{useMemo as c}from"react";import{Button as l,CircularProgress as u,Icon as d,Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{close_circle_outlined as h,delete_to_trash as g,file as _,refresh as v}from"@equinor/eds-icons";const y=({onRetry:y,file:b,customLoadingText:x,customCompleteText:S,isError:C,fullErrorText:w,showCompleteState:T,handleOnClick:E,isDeleting:D,...O})=>{let k=c(()=>{if(!b?.size||O.isDone||O.indeterminate||O.progressPercent===void 0)return 1;let e=b.size/100*O.progressPercent;return t({inputFormat:`B`,size:e,decimals:1})},[b?.size,O]),A=c(()=>{if(C)return w??`An error has occurred`;let e=x??`loading...`,t=S??`File uploaded!`;return T?t:e},[S,x,w,T,C]);return m(n,{$isError:C,children:[p(d,{data:_,color:C?e.interactive.warning__hover.rgba:e.interactive.primary__resting.rgba,size:32}),m(s,{children:[m(r,{children:[p(f,{variant:`caption`,children:b.name}),m(`div`,{children:[D?p(l,{variant:`ghost_icon`,children:p(u,{size:24})}):O.onDelete&&p(l,{variant:`ghost_icon`,onClick:E,"data-testid":`delete-file`,children:p(d,{data:T?g:h,color:e.text.static_icons__tertiary.rgba,size:24})}),C&&y&&p(l,{variant:`ghost_icon`,onClick:y,children:p(d,{data:v,color:e.text.static_icons__tertiary.rgba,size:24})})]})]}),p(a,{children:!T&&!O.isDone&&p(i,{variant:O.indeterminate?`indeterminate`:`determinate`,value:O.indeterminate?void 0:O.progressPercent})}),m(o,{children:[p(f,{variant:`overline`,children:A}),b?.size&&p(f,{variant:`overline`,children:T?t({size:b.size,decimals:1,inputFormat:`B`}):`${k} of ${t({size:b.size,decimals:1,inputFormat:`B`})}`})]})]})]})};export{y as default};
@@ -1,35 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{LinearProgress as n}from"@equinor/eds-core-react";import r from"styled-components";const i=r.div`
2
- max-width: 555px;
3
- padding: ${t.medium} ${t.large};
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
- gap: ${t.medium};
8
- border: 1px solid
9
- ${({$isError:t})=>t?e.interactive.warning__hover.rgba:e.ui.background__medium.rgba};
10
- border-radius: 4px;
11
- `,a=r.div`
12
- display: flex;
13
- flex-direction: column;
14
- width: 100%;
15
- `,o=r.div`
16
- display: flex;
17
- align-items: center;
18
- gap: ${t.small};
19
- justify-content: space-between;
20
- min-height: 40px;
21
- word-break: break-word;
22
- `,s=r.div`
23
- align-items: center;
24
- display: flex;
25
- justify-content: space-between;
26
- padding-top: ${t.small};
27
- `,c=r.div`
28
- min-height: 4px;
29
- `,l=r(n)`
30
- background-color: ${e.interactive.primary__hover_alt.rgba};
31
-
32
- div {
33
- background-color: ${e.interactive.primary__resting.rgba};
34
- }
35
- `;export{i as Container,o as FileName,l as LinearProgress,c as ProgressWrapper,s as RegularFileProgressDetails,a as RegularFileProgressWrapper};
@@ -1 +0,0 @@
1
- const e=`file-upload-scrim`;export{e as FILE_UPLOAD_SCRIM_ID};
@@ -1 +0,0 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";const n=()=>t(`svg`,{"data-testid":`upload-illustration`,width:`73`,height:`72`,viewBox:`0 0 73 72`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[e(`path`,{d:`M10.5269 25.5806C10.5269 24.4761 11.4223 23.5806 12.5269 23.5806H57.7912C58.8958 23.5806 59.7912 24.4761 59.7912 25.5806V60.1295C59.7912 61.234 58.8958 62.1295 57.7912 62.1295H12.5269C11.4223 62.1295 10.5269 61.234 10.5269 60.1295V25.5806Z`,fill:`#C9E0E2`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M57.7912 25.5806H12.5269L12.5269 60.1295H57.7912L57.7912 25.5806ZM12.5269 23.5806C11.4223 23.5806 10.5269 24.4761 10.5269 25.5806V60.1295C10.5269 61.234 11.4223 62.1295 12.5269 62.1295H57.7912C58.8958 62.1295 59.7912 61.234 59.7912 60.1295V25.5806C59.7912 24.4761 58.8958 23.5806 57.7912 23.5806H12.5269Z`,fill:`#007079`}),e(`path`,{d:`M61.8817 63.5719L66.7565 33.1905C66.9516 31.9751 66.0128 30.8737 64.7818 30.8737H43.0756C42.6971 30.8737 42.3263 30.9811 42.0064 31.1834L31.4559 37.8569C31.136 38.0593 30.7653 38.1667 30.3867 38.1667H7.75437C6.52339 38.1667 5.5846 39.2681 5.77963 40.4835L9.48431 63.5719C9.63993 64.5418 10.4768 65.2551 11.4591 65.2551H59.9069C60.8892 65.2551 61.726 64.5418 61.8817 63.5719Z`,fill:`white`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M43.0758 31.8737C42.8865 31.8737 42.7012 31.9274 42.5412 32.0285L42.0109 31.1901L42.5412 32.0285L31.9907 38.7021C31.5108 39.0056 30.9547 39.1667 30.387 39.1667H7.7546C7.13911 39.1667 6.66972 39.7174 6.76723 40.3251L10.4719 63.4135C10.5497 63.8984 10.9682 64.2551 11.4593 64.2551H59.9071C60.3983 64.2551 60.8167 63.8984 60.8945 63.4135L65.7694 33.0321C65.8669 32.4244 65.3975 31.8737 64.782 31.8737H43.0758ZM41.4721 30.3383C41.9519 30.0348 42.508 29.8737 43.0758 29.8737H64.782C66.6285 29.8737 68.0367 31.5258 67.7442 33.3489L62.8693 63.7303C62.6358 65.1851 61.3805 66.2551 59.9071 66.2551H11.4593C9.9859 66.2551 8.7306 65.1851 8.49717 63.7303L4.79249 40.642C4.49995 38.8188 5.90813 37.1667 7.7546 37.1667H30.387C30.5762 37.1667 30.7616 37.113 30.9215 37.0118L41.4721 30.3383Z`,fill:`#007079`}),e(`path`,{d:`M31.5987 48.072C31.5987 49.5367 30.7009 50.724 29.5933 50.724C28.4858 50.724 27.5879 49.5367 27.5879 48.072C27.5879 46.6073 28.4858 45.42 29.5933 45.42C30.7009 45.42 31.5987 46.6073 31.5987 48.072Z`,fill:`#007079`}),e(`path`,{d:`M42.4933 48.072C42.4933 49.5367 41.5954 50.724 40.4879 50.724C39.3803 50.724 38.4824 49.5367 38.4824 48.072C38.4824 46.6073 39.3803 45.42 40.4879 45.42C41.5954 45.42 42.4933 46.6073 42.4933 48.072Z`,fill:`#007079`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M29.0414 53.8623C29.4765 53.5221 30.1049 53.5991 30.4451 54.0342C31.1297 54.9099 32.4297 55.9577 34.0448 56.2581C35.5886 56.5452 37.5937 56.1826 39.8467 53.9411C40.2383 53.5516 40.8714 53.5533 41.2609 53.9448C41.6505 54.3363 41.6488 54.9695 41.2573 55.359C38.6077 57.9949 35.9599 58.6485 33.6791 58.2243C31.4698 57.8134 29.7737 56.4225 28.8695 55.266C28.5293 54.8309 28.6063 54.2024 29.0414 53.8623Z`,fill:`#007079`}),e(`path`,{d:`M37.4846 20.618L47.8301 2.79122L56.0429 7.50852L58.2518 15.7099L50.9237 28.3372L37.4846 20.618Z`,fill:`white`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M49.1637 2.13819L57.0901 6.69096L59.6027 16.0198L52.7382 27.8482C52.109 28.9325 50.7024 29.3074 49.6126 28.6814L37.7131 21.8466C36.6232 21.2206 36.2562 19.8269 36.8854 18.7427L46.048 2.9771C46.6772 1.89282 48.0738 1.51219 49.1637 2.13819ZM48.0197 4.1096L38.867 19.8809L50.7566 26.71L57.049 15.8673L52.0951 13.0218L54.9552 8.09327L48.0197 4.1096Z`,fill:`#007079`}),e(`path`,{d:`M19.3516 31.8552L22.7911 16.7257L29.7613 18.294L33.1937 23.7048L30.7573 34.4215L19.3516 31.8552Z`,fill:`white`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M23.6041 15.9592L30.3312 17.4728L34.2354 23.6274L31.9532 33.6661C31.744 34.5863 30.8161 35.169 29.8911 34.9608L19.7921 32.6885C18.8671 32.4804 18.2899 31.5591 18.4991 30.6388L21.5504 17.2558C21.7596 16.3355 22.6792 15.751 23.6041 15.9592ZM23.2238 17.6323L20.1808 31.0173L30.2714 33.2877L32.3635 24.0856L28.159 23.1395L29.11 18.9567L23.2238 17.6323Z`,fill:`#007079`}),e(`path`,{d:`M68.0528 61.742C68.0528 66.855 63.8864 71 58.7468 71C53.6073 71 49.4409 66.855 49.4409 61.742C49.4409 56.6289 53.6073 52.4839 58.7468 52.4839C63.8864 52.4839 68.0528 56.6289 68.0528 61.742Z`,fill:`white`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M58.7468 69.5C63.0652 69.5 66.5528 66.0193 66.5528 61.742C66.5528 57.4646 63.0652 53.9839 58.7468 53.9839C54.4284 53.9839 50.9409 57.4646 50.9409 61.742C50.9409 66.0193 54.4284 69.5 58.7468 69.5ZM58.7468 71C63.8864 71 68.0528 66.855 68.0528 61.742C68.0528 56.6289 63.8864 52.4839 58.7468 52.4839C53.6073 52.4839 49.4409 56.6289 49.4409 61.742C49.4409 66.855 53.6073 71 58.7468 71Z`,fill:`#007079`}),e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M60.3359 64V61.2903H62.1516L58.974 58.129L55.7964 61.2903H57.6122V64H60.3359ZM58.974 59.4071L59.9591 60.3871H59.428V63.0968H58.5201V60.3871H57.989L58.974 59.4071ZM62.1516 65.8064V64.9032H55.7964V65.8064H62.1516Z`,fill:`#007079`})]});export{n as UploadIllustration};
@@ -1,41 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import n,{useEffect as r,useRef as i,useState as a}from"react";import{Icon as o,Typography as s}from"@equinor/eds-core-react";import c,{keyframes as l}from"styled-components";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{copy as f}from"@equinor/eds-icons";const p=c.div`
2
- position: relative;
3
- pointer-events: auto;
4
- width: fit-content;
5
- &:hover {
6
- cursor: pointer;
7
- }
8
- `,m=l`
9
- from {
10
- opacity: 0;
11
- background: none;
12
- }
13
-
14
- to {
15
- opacity: 1;
16
- background: ${e.ui.background__light.rgba};
17
- }
18
- `,h=c.div`
19
- position: absolute;
20
- padding: ${t.xx_small};
21
- z-index: 1000;
22
- top: 50%;
23
- right: calc(${t.x_small} * -1);
24
- transform: translate(100%, -50%);
25
- animation: ${m} 0.25s;
26
- background: ${e.ui.background__light.rgba};
27
- border: 1px solid ${e.ui.background__medium.rgba};
28
- border-radius: 2px;
29
- p,
30
- svg {
31
- color: ${e.interactive.primary__resting.rgba};
32
- }
33
- p {
34
- font-weight: 700;
35
- margin-top: 2px;
36
- }
37
- display: grid;
38
- grid-template-columns: auto 2.75rem;
39
- grid-gap: ${t.xx_small};
40
- align-items: center;
41
- `,g=({children:e,textToCopy:t})=>{let n=i(!1),[c,l]=a(!1),[m,g]=a(`Copy`),_=()=>{navigator.clipboard.writeText(t),g(`Copied!`),setTimeout(()=>{n.current&&g(`Copy`)},3e3)};return r(()=>(n.current=!0,()=>{n.current=!1}),[]),d(p,{onClick:_,onMouseOver:()=>l(!0),onMouseOut:()=>l(!1),children:[e,c&&d(h,{children:[u(o,{data:f,size:16}),u(s,{variant:`overline`,children:m})]})]})};export{g as default};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{Icon as t}from"@equinor/eds-core-react";import{jsx as n}from"react/jsx-runtime";const r=r=>r&&typeof r==`object`&&`prefix`in r?n(t,{data:r,color:e.interactive.primary__resting.rgba}):r;export{r as renderContent};
@@ -1,36 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import t from"styled-components";const n=t.div`
2
- margin-left: ${({$section:e})=>e>0?`22px`:``};
3
- opacity: 1;
4
- color: ${e.text.static_icons__default.rgba};
5
- `,r=t.button`
6
- position: relative;
7
- display: flex;
8
- flex: 1;
9
- align-items: center;
10
- cursor: pointer;
11
- transition: background-color 0.1s ease-in;
12
- font-family: 'Equinor', sans-serif;
13
- font-size: 1rem;
14
- color: ${e.text.static_icons__default.rgba};
15
- &:hover:not(:disabled) {
16
- background-color: ${e.interactive.primary__hover_alt.rgba};
17
- }
18
- &:disabled {
19
- cursor: not-allowed;
20
- color: ${e.interactive.disabled__text.rgba};
21
- > button {
22
- cursor: not-allowed;
23
- }
24
- }
25
- > span::before {
26
- display: none;
27
- }
28
-
29
- svg {
30
- fill: ${e.interactive.primary__resting.rgba};
31
- }
32
- `,i=t.div`
33
- display: flex;
34
- align-items: center;
35
- ${({$paddedLeft:e})=>e&&`margin-left: 40px`};
36
- `;export{r as StyledOption,i as StyledOptionItem,n as StyledOptionWrapper};
@@ -1 +0,0 @@
1
- const e=t=>{if(t.length===0)return[];let n=[];return t.forEach(t=>{let r=e(t?.children??[]);n=[t,...n,...r]}),n},t=(t,n,r,i)=>{let a=n.find(e=>e.id===t.id)!==void 0;if(a)return`CHECKED`;if(t.children===void 0||t.children.length===0||r&&!i)return`NONE`;let o=e(t?.children).map(e=>n.find(t=>t.id===e.id)!==void 0);return!r&&o.every(Boolean)?`CHECKED`:o.every(e=>!e)?`NONE`:`INTERMEDIATE`};export{t as getStatus};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{MenuItemWrapper as t,StyledMenuItem as n}from"./Select.styles.js";import{Icon as r}from"@equinor/eds-core-react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{add_box as o}from"@equinor/eds-icons";const s=({itemRefs:s,onItemKeyDown:c,index:l,onAddItem:u,addItemSingularWord:d,children:f})=>{let p=e=>{e.preventDefault(),e.key===`Enter`?u():c(e)};return i(t,{children:a(n,{index:l,ref:e=>{s.current[l]=e},onClick:u,onKeyDownCapture:p,children:[i(r,{data:o,color:e.interactive.primary__resting.rgba}),a(`span`,{children:[`Add "`,f,`" as new `,d]})]})})};export{s as AddTagItem};
@@ -1 +0,0 @@
1
- import{getCumulativeArrayFromNumberedArray as e}from"./Select.utils.js";import{NoItemsFoundText as t}from"./Select.styles.js";import{SelectMenuItem as n}from"./SelectMenuItem.js";import{useMemo as r}from"react";import{Menu as i}from"@equinor/eds-core-react";import{jsx as a}from"react/jsx-runtime";const o=o=>{let{onItemSelect:s,onItemKeyDown:c,itemRefs:l,groups:u,search:d,onSearchFilter:f,CustomMenuItemComponent:p}=o,m=r(()=>{if(d===``)return u;let e=new RegExp(d.trim(),`i`);return u.map(t=>({title:t.title,items:t.items.filter(t=>f===void 0?t.label.match(e):f(d,t))})).filter(e=>e.items.length>0)},[u,f,d]),h=r(()=>{let t=m.map(e=>e.items.length);return e(t)},[m]);return m.length===0?a(t,{children:`No items found`}):`values`in o?m.map((e,t)=>a(i.Section,{index:t,title:e.title,children:e.items.map((r,i)=>a(n,{index:i+h[t],childOffset:0,item:r,itemRefs:l,onItemKeyDown:c,onItemSelect:s,values:o.values,CustomMenuItemComponent:p},`${e.title}-${t}-item-${r.value}`))},`${e.title}-${t}`)):m.map((e,t)=>a(i.Section,{index:t,title:e.title,children:e.items.map((r,i)=>a(n,{index:i+h[t],childOffset:0,item:r,itemRefs:l,onItemKeyDown:c,onItemSelect:s,value:o.value,CustomMenuItemComponent:p},`${e.title}-${t}-item-${r.value}`))},`${e.title}-${t}`))};export{o as GroupedSelectMenu};
@@ -1 +0,0 @@
1
- import{capitalize as e}from"../../atoms/utils/string.js";import{flattenOptions as t,getChildOffset as n}from"./Select.utils.js";import{NoItemsFoundText as r,NoTagFoundText as i}from"./Select.styles.js";import{SelectMenuItem as a}from"./SelectMenuItem.js";import{AddTagItem as o}from"./AddTagItem.js";import{useMemo as s}from"react";import{Menu as c}from"@equinor/eds-core-react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";const f=f=>{let{search:p,items:m,itemRefs:h,onItemKeyDown:g,onSearchFilter:_}=f,v=s(()=>{if(p===``)return m;let e=new RegExp(p.trim(),`i`);return t(m).filter(t=>_===void 0?t.label.match(e):_(p,t))},[m,_,p]);if(v.length===0&&(!f.onAddItem||p===``))return u(r,{children:`No items found`});let y=v.some(e=>e.children&&e.children.length>0),b=v.map((e,t)=>({childOffset:n(v,t),index:t,item:e,itemValue:e.value,parentHasNestedItems:y,...f}));if(`onAddItem`in f&&f.onAddItem&&p!==``&&(v.length===1&&v.at(0)?.label.toLowerCase()!==p.trim().toLowerCase()||v.length!==1)){let t=f.itemSingularWord?f.itemSingularWord:`tag`;return d(l,{children:[u(c.Section,{title:`Add ${t}`,index:0,children:u(o,{index:0,itemRefs:h,onItemKeyDown:g,onAddItem:f.onAddItem,addItemSingularWord:t,children:p})}),u(c.Section,{title:`${e(t)} search results`,index:1,children:b.length>0?b.map((e,t)=>u(a,{...e,index:t+1},`menu-item-${t}-${e.item.value}`)):d(i,{children:[`No `,t,` for "`,p,`" found.`]})})]})}return b.map((e,t)=>u(a,{...e,index:t},`menu-item-${t}-${e.item.value}`))};export{f as ListSelectMenu};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{getVariantIcon as t}from"../../atoms/utils/forms.js";import{useSelect as n}from"../../atoms/hooks/useSelect.js";import{SkeletonField as r}from"../Skeleton/SkeletonField.js";import{useOutsideClick as i}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{ClearButton as ee,ComboBoxChip as a,Container as o,HelperWrapper as te,PlaceholderText as s,Section as c,StyledMenu as l,ValueText as u,Wrapper as ne}from"./Select.styles.js";import{GroupedSelectMenu as re}from"./GroupedSelectMenu.js";import{ListSelectMenu as d}from"./ListSelectMenu.js";import{useMemo as f,useRef as p}from"react";import{Icon as m,Label as h}from"@equinor/eds-core-react";import{jsx as g,jsxs as _}from"react/jsx-runtime";import{arrow_drop_down as ie,arrow_drop_up as ae,clear as v}from"@equinor/eds-icons";const y=y=>{let{clearable:b=!0,loading:x=!1,disabled:S=!1,lightBackground:C=!1,underlineHighlight:w=!1,sortValues:T=!0,placeholder:E=`Select...`,label:D,helperText:O,showHelperIcon:k=!0,meta:A,id:j=`amplify-combobox-${D}`,variant:M,inDialog:N=!1,onSearchFilter:P,"data-testid":F,CustomMenuItemComponent:I}=y,{handleOnAddItem:L,handleOnClear:R,handleOnItemKeyDown:z,handleOnItemSelect:B,handleOnSearchChange:V,handleOnSearchKeyDown:H,handleToggleOpen:U,itemRefs:W,search:G,selectedValues:K,handleOnClose:q,handleOnOpen:oe,handleOnRemoveItem:J,open:Y,searchRef:se,tryingToRemoveItem:X}=n({...y,clearable:b,loading:x,disabled:S,lightBackground:C,underlineHighlight:w,sortValues:T,placeholder:E}),ce=p(`${Math.max(40,Math.random()*80)}%`),Z=p(null),Q=p(null),le=f(()=>!!D||!!A,[D,A]),ue=f(()=>!!O,[O]),$=f(()=>{if(k)return t(M)},[k,M]);i(Q.current,e=>{N&&Y&&e.target&&Z.current&&Q.current&&!Z.current.contains(e.target)&&!Q.current?.contains(e.target)&&q()});let de=f(()=>{if(`value`in y&&y.value&&`customValueComponent`in y&&y.customValueComponent)return g(y.customValueComponent,{item:y.value});if(`value`in y&&y.value)return g(u,{children:y.value.label});if(`showSelectedAsText`in y&&y.showSelectedAsText){let e=y.items?y.items.length:y.groups.flatMap(e=>e.items).length,t=typeof y.showSelectedAsText==`function`?y.showSelectedAsText({selectedAmount:K.length,totalAmount:e}):`${K.length}/${e} Selected`;return g(u,{children:t})}else return K.map(e=>`customValueComponent`in y&&y.customValueComponent?g(y.customValueComponent,{item:e,onDelete:()=>J(e),tryingToRemove:X!==void 0&&X.value===e.value},e.value):g(a,{"data-testid":`amplify-combobox-chip`,className:`amplify-combo-box-chip`,onDelete:()=>J(e),$tryingToRemove:X?.value===e.value,$lightBackground:C,children:e.label},e.value))},[K,X,C,y,J]);return _(`div`,{children:[le&&g(h,{label:D,meta:A,htmlFor:j,disabled:S}),_(ne,{children:[_(o,{"data-testid":F||`combobox-container`,ref:Z,onClick:oe,"aria-expanded":Y,$variant:M,$loading:x,$lightBackground:C,children:[_(c,{children:[!x&&G===``&&K.length===0&&g(s,{children:E}),(G===``&&`value`in y||`values`in y&&K.length>0&&(!y.showSelectedAsText||y.showSelectedAsText&&G===``))&&!x&&de,g(`input`,{id:j,disabled:S||x,ref:se,type:`search`,role:`combobox`,value:G,autoComplete:`off`,onChange:V,onKeyDownCapture:H}),x&&g(r,{role:`progressbar`,style:{width:ce.current,left:0,top:`50%`,transform:`translateY(-50%)`}})]}),g(m,{onClick:U,data:Y?ae:ie,color:x?e.interactive.disabled__fill.rgba:e.interactive.primary__resting.rgba}),b&&K.length>0&&!x&&g(ee,{id:`clear`,variant:`ghost_icon`,onClick:R,"data-testid":`clearBtn`,children:g(m,{data:v,size:18})})]}),ue&&_(te,{$variant:S?`disabled`:M,children:[$&&g(m,{data:$,size:16}),g(h,{label:O,htmlFor:j})]})]}),Y&&g(l,{ref:Q,open:!0,id:`combobox-menu`,anchorEl:Z.current,onClose:q,placement:`bottom`,style:{width:`${Z.current?.clientWidth}px`,maxWidth:`${Z.current?.clientWidth}px`},children:`groups`in y&&y.groups?g(re,{...y,search:G,itemRefs:W,onItemSelect:B,onItemKeyDown:z,onSearchFilter:P,CustomMenuItemComponent:I}):g(d,{...y,search:G,itemRefs:W,onAddItem:y.onAddItem?L:void 0,onItemSelect:B,onItemKeyDown:z,onSearchFilter:P,CustomMenuItemComponent:I})},`select-menu-${G}`)]})};export{y as Select};
@@ -1 +0,0 @@
1
- function e(t,n){let r=t.length,i=t.slice(0,n).map(t=>e(t.children??[],0)).reduce((e,t)=>e+t,0);return r+i}const t=e=>{let t=e=>{if(!e?.length)return[];let n=e.flatMap(({children:e,value:t})=>e?.map(e=>({...e,parent:t}))??[]);return[...n,...t(n)]};return[...e,...t(e)]},n=e=>{let t=Array(e.length).fill(0);for(let n=1;n<e.length;n++)t[n]=t[n-1]+e[n-1];return t};export{t as flattenOptions,e as getChildOffset,n as getCumulativeArrayFromNumberedArray};
@@ -1 +0,0 @@
1
- import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../atoms/style/spacings.js";import{getChildOffset as n}from"./Select.utils.js";import{MenuItemSpacer as r,MenuItemWrapper as i,SmallButton as a,StyledMenuItem as o}from"./Select.styles.js";import{getParentIcon as s,getParentState as c}from"./SelectMenuItem.utils.js";import{useMemo as l,useRef as u,useState as d}from"react";import{Icon as f}from"@equinor/eds-core-react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";import{checkbox as g,checkbox_outline as _,chevron_down as v,chevron_right as y}from"@equinor/eds-icons";const{colors:b}=e,x=e=>{let{index:S,childOffset:C,depth:w=0,item:T,itemRefs:E,onItemKeyDown:D,onItemSelect:O,parentHasNestedItems:k=!1,CustomMenuItemComponent:A}=e,[j,M]=d(!1),N=u(-1),P=u([]),F=`values`in e?e.values.map(({value:e})=>e):[],I=F.includes(T.value),L=l(()=>`value`in e?_:s(T,e.values),[T,e]),R=l(()=>`value`in e?`none`:c(T,e.values),[T,e]),z=l(()=>Array(w).fill(0).map((e,t)=>m(r,{},`spacer-${e+t}`)),[w]),B=e=>{e.preventDefault(),O(T)},V=e=>{e.stopPropagation(),M(e=>!e)},H=e=>{e.key===`ArrowDown`?N.current+=1:e.key===`ArrowUp`&&--N.current,N.current<=-1?(E.current[S]?.focus(),N.current=-1):N.current+C===P.current.length?(N.current=-1,D(e),M(!1)):N.current>=0&&N.current<P.current.length-C&&P.current[N.current+C]?.focus()},U=e=>{!j&&e.key===`ArrowDown`||e.key===`ArrowUp`?D(e):e.key===`ArrowRight`||e.key===`ArrowLeft`?M(e=>!e):j&&e.key===`ArrowDown`&&N.current===-1&&(N.current=0,P.current[N.current+C]?.focus())};return T.children&&T.children.length>0&&`values`in e?h(p,{children:[h(i,{style:{paddingLeft:w===0?t.small:0},children:[z,m(a,{variant:`ghost_icon`,onClick:V,"data-testid":`toggle-button`,children:m(f,{color:b.interactive.primary__resting.rgba,data:j?v:y})}),m(o,{$depth:w,ref:e=>{E.current[S]=e},index:S,closeMenuOnClick:!1,onKeyDownCapture:U,onClick:B,children:A?m(A,{item:T,selectedState:R}):h(p,{children:[m(f,{color:b.interactive.primary__resting.rgba,data:L}),m(`span`,{children:T.label})]})})]}),j&&T.children.map((t,r)=>m(x,{index:C+r,childOffset:C+n(T.children,r),depth:w+1,item:t,itemRefs:P,values:e.values,onItemKeyDown:H,onItemSelect:O,parentHasNestedItems:!0,CustomMenuItemComponent:A},`child-${r}-${t.value}-${T.value}`))]}):`values`in e?h(i,{children:[z,m(o,{$depth:w,$paddedLeft:k,ref:e=>{E.current[S]=e},index:S,tabIndex:w,closeMenuOnClick:!1,onKeyDownCapture:D,onClick:B,children:A?m(A,{item:T,selectedState:I?`selected`:`none`}):h(p,{children:[m(f,{color:b.interactive.primary__resting.rgba,data:I?g:_}),m(`span`,{children:T.label})]})})]}):m(i,{children:m(o,{$depth:w,$selected:e.value&&T.value===e.value.value,ref:e=>{E.current[S]=e},index:S,onKeyDownCapture:D,onClick:B,children:A?m(A,{item:T,selectedState:e.value&&T.value===e.value.value?`selected`:`none`}):m(`span`,{children:T.label})})})};export{x as SelectMenuItem};
@@ -1 +0,0 @@
1
- import{flattenOptions as e}from"./Select.utils.js";import{checkbox as t,checkbox_indeterminate as n,checkbox_outline as r}from"@equinor/eds-icons";const i={selected:t,indeterminate:n,none:r};function a(e,t){let n=o(e,t);return i[n]}function o(t,n){if(!t.children||t.children.length===0)return`none`;let r=n.some(e=>e.value===t.value),i=n.map(({value:e})=>e),a=e([t])?.map(({value:e})=>e);return r?`selected`:a.some(e=>i.includes(e))?`indeterminate`:`none`}export{a as getParentIcon,o as getParentState};
@@ -1,10 +0,0 @@
1
- import { SieveOption } from "./Sieve.types.js";
2
- import { FC } from "react";
3
-
4
- //#region src/molecules/Sieve/Filter.d.ts
5
- interface SieveFilterGroup {
6
- label: string;
7
- options: SieveOption[];
8
- }
9
- //#endregion
10
- export { SieveFilterGroup };
@@ -1 +0,0 @@
1
- import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useOutsideClick as t}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{Chip as n,MenuItem as r}from"./Sieve.styles.js";import{useRef as i,useState as a}from"react";import{Icon as o,Menu as s}from"@equinor/eds-core-react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import{arrow_drop_right as d,checkbox as f,checkbox_outline as p,filter_list as m}from"@equinor/eds-icons";const{colors:h}=e,g=({options:e,filterValues:g,setFilterValues:_})=>{let v=i(null),[y,b]=a(null),x=i(null),S=i(null),[C,w]=a(-1),[T,E]=a(!1);t(v.current,e=>{y===null&&T&&x.current&&!x.current.contains(e.target)?E(!1):T&&y!==null&&x.current&&!x.current.contains(e.target)&&S.current&&!S.current.contains(e.target)&&(E(!1),w(-1),b(null))});let D=()=>{E(!T),w(-1),b(null)},O=(e,t)=>{C===t?(w(-1),b(null)):(w(t),b(e.currentTarget))},k=(e,t)=>{let n={...g};if(e in n&&n[e].some(e=>e.value===t.value)){let r=n[e].findIndex(e=>e.value===t.value);n[e].splice(r,1),n[e].length===0&&delete n[e]}else n[e]?n[e].push(t):n[e]=[t];Object.keys(n).flatMap(e=>n?.[e]).length===0&&(n=void 0),_(n)};return e.length===0?null:u(c,{children:[u(n,{ref:v,onClick:D,children:[`Filter by `,l(o,{data:m})]}),T&&l(s,{open:!0,ref:x,anchorEl:v.current,placement:`bottom-start`,children:l(s.Section,{title:`Filter by`,children:e.map((e,t)=>u(r,{active:C===t,onClick:e=>O(e,t),children:[e.label,l(o,{data:d,color:h.text.static_icons__tertiary.rgba})]},`filter-menu-item-${e.label}`))})}),C!==-1&&l(s,{open:!0,anchorEl:y,ref:S,placement:`right-start`,children:l(s.Section,{title:e[C].label,children:e[C]?.options.map(t=>u(r,{onClick:()=>k(e[C].label,t),children:[t.label,l(o,{data:g?.[e[C].label]?.some(e=>e.value===t.value)?f:p,color:h.interactive.primary__resting.rgba})]},`filter-option-${t.label}`))})})]})};export{g as default};
@@ -1,7 +0,0 @@
1
- import { SieveProps } from "./Sieve.types.js";
2
- import { FC } from "react";
3
-
4
- //#region src/molecules/Sieve/Sieve.d.ts
5
- declare const Sieve: FC<SieveProps>;
6
- //#endregion
7
- export { Sieve };
@@ -1 +0,0 @@
1
- import{Container as e,FilterChip as t,Search as n,Wrapper as r}from"./Sieve.styles.js";import i from"./Filter.js";import a from"./Sort.js";import{useCallback as o,useEffect as s,useRef as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{debounce as f}from"lodash";import{useSearchParams as p}from"react-router-dom";const m=({searchPlaceholder:m,sortOptions:h,filterOptions:g,sieveValue:_,onUpdate:v,showChips:y=!0,minSearchWidth:b=`24rem`,syncWithSearchParams:x=!1,isLoadingOptions:S=!1,debounceSearchValue:C=!1,onIsTyping:w})=>{let[T,E]=l(_.searchValue??``),D=c(!1),[O,k]=p(),A=c(!1);s(()=>{if(!A.current&&x&&!S){let e=O.get(`search`)??void 0,t=g?.map(e=>e.label)??[],n={};for(let e of t){let t=g?.find(t=>t.label===e)?.options,r=JSON.parse(O.get(e.toLowerCase())??`[]`);t!==void 0&&(n[e]=t.filter(e=>r.includes(e.label)))}v({searchValue:e,filterValues:n,sortValue:_.sortValue}),A.current=!0}},[g,A,S,v,O,_.sortValue,x]);let j=c(`{}`);s(()=>{if(x&&A.current&&!S&&JSON.stringify(_)!==j.current){_.searchValue===void 0?O.delete(`search`):O.set(`search`,_.searchValue);let e=g?.map(e=>e.label)??[],t=_.filterValues;for(let n of e)t?.[n]&&t[n].length>0?O.set(n.toLowerCase(),JSON.stringify(t[n].map(e=>e.label))):O.delete(n.toLowerCase());j.current=JSON.stringify(_),k(O),v(_)}},[g,A,S,v,O,k,_,x]);let M=o((e,t)=>{let n={..._,[e]:t};v(n)},[v,_]),N=o(f((e,t)=>{M(e,t),w?.(!1),D.current=!1},800),[M,w]),P=(e,t)=>{let n={..._.filterValues},r=n[e].findIndex(e=>e.value===t.value);n[e].splice(r,1),n[e].length===0&&delete n[e],Object.keys(n).flatMap(e=>n?.[e]).length===0&&(n=void 0),M(`filterValues`,n)},F=()=>{M(`filterValues`,void 0)},I=e=>{C?(E(e.target.value),e.target.value===``?(N.cancel(),M(`searchValue`,void 0),w?.(!1),D.current=!1):(N(`searchValue`,e.target.value),D.current||=(w?.(!0),!0))):M(`searchValue`,e.target.value===``?void 0:e.target.value)};return d(r,{className:`sieve-container`,children:[d(e,{children:[u(n,{style:{minWidth:b},placeholder:m,value:C?T:_.searchValue??``,onChange:I}),h!==void 0&&u(a,{options:h,selectedOption:_.sortValue,setSelectedOption:e=>M(`sortValue`,e)}),g!==void 0&&u(i,{options:g,filterValues:_.filterValues,setFilterValues:e=>M(`filterValues`,e)})]}),y&&d(e,{children:[Object.keys(_.filterValues??{}).map(e=>_.filterValues?.[e].map(n=>u(t,{onDelete:()=>P(e,n),children:n?.label},`filter-chip-${n?.value}`))),_.filterValues&&Object.keys(_.filterValues).flatMap(e=>_.filterValues?.[e]).length>1&&u(t,{onDelete:F,children:`Remove all`})]})]})};export{m as Sieve};
@@ -1,43 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{Chip as n,Menu as r,Search as i}from"@equinor/eds-core-react";import a from"styled-components";const o=a.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: ${t.medium};
5
- `,s=a.div`
6
- display: flex;
7
- gap: ${t.medium};
8
- align-items: center;
9
- `,c=a(n)`
10
- color: ${e.text.static_icons__default.rgba};
11
- background: ${e.ui.background__light.rgba};
12
- border: 1px solid ${e.ui.background__medium.rgba};
13
- line-height: normal;
14
- transition: background 0.15s ease-in;
15
-
16
- svg {
17
- z-index: auto;
18
- fill: ${e.text.static_icons__default.rgba};
19
- }
20
- `,l=a(i)`
21
- > div {
22
- box-shadow: none;
23
- outline: none !important;
24
- background: ${e.ui.background__default.rgba};
25
- > input {
26
- color: ${e.text.static_icons__default.rgba};
27
- box-shadow: inset 0 -1px 0 0 ${e.text.static_icons__tertiary.rgba};
28
- &:hover {
29
- box-shadow: inset 0 -2px 0 0 ${e.text.static_icons__tertiary.rgba};
30
- }
31
- &:focus {
32
- box-shadow: inset 0 -2px 0 0 ${e.interactive.primary__resting.rgba};
33
- }
34
- }
35
- }
36
- `,u=a(r.Item)`
37
- outline: none !important;
38
- > div {
39
- grid-template-columns: 1fr auto;
40
- }
41
- `,d=a(n)`
42
- background: none;
43
- `;export{d as Chip,s as Container,c as FilterChip,u as MenuItem,l as Search,o as Wrapper};
@@ -1,28 +0,0 @@
1
- import { SieveFilterGroup } from "./Filter.js";
2
-
3
- //#region src/molecules/Sieve/Sieve.types.d.ts
4
- interface SieveOption {
5
- label: string;
6
- value: string;
7
- }
8
- type FilterValues = Record<string, SieveOption[]>;
9
- interface SieveValue {
10
- searchValue: string | undefined;
11
- sortValue: SieveOption | undefined;
12
- filterValues: FilterValues | undefined;
13
- }
14
- interface SieveProps {
15
- searchPlaceholder: string;
16
- sortOptions?: SieveOption[];
17
- filterOptions?: SieveFilterGroup[];
18
- sieveValue: SieveValue;
19
- onUpdate: (value: SieveValue) => void;
20
- showChips?: boolean;
21
- minSearchWidth?: string;
22
- syncWithSearchParams?: boolean;
23
- isLoadingOptions?: boolean;
24
- debounceSearchValue?: boolean;
25
- onIsTyping?: (value: boolean) => void;
26
- }
27
- //#endregion
28
- export { type FilterValues, type SieveOption, type SieveProps, type SieveValue };
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{Chip as t,MenuItem as n}from"./Sieve.styles.js";import{useRef as r,useState as i}from"react";import{Icon as a,Menu as o}from"@equinor/eds-core-react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{radio_button_selected as u,radio_button_unselected as d,sort as f}from"@equinor/eds-icons";const p=({options:p,selectedOption:m,setSelectedOption:h})=>{let g=r(null),[_,v]=i(!1),y=()=>{v(!_)},b=()=>{v(!1)},x=e=>{h(e)};return p.length===0?null:l(s,{children:[l(t,{ref:g,onClick:y,children:[`Sort by `,c(a,{data:f})]}),_&&c(o,{open:!0,anchorEl:g.current,onClose:b,placement:`bottom-start`,children:c(o.Section,{title:`Sort by`,children:p.map(t=>l(n,{onClick:()=>x(t),children:[t.label,c(a,{data:m?.value===t.value?u:d,color:e.interactive.primary__resting.rgba})]},`sort-item-${t.value}`))})})]})};export{p as default};
@@ -1 +0,0 @@
1
- import{colors as e}from"../../atoms/style/colors.js";const t={START:e.interactive.disabled__border.rgba,END:e.interactive.disabled__text.rgba};export{t as COLORS};
@@ -1,8 +0,0 @@
1
- import{spacings as e}from"../../atoms/style/spacings.js";import{shape as t}from"../../atoms/style/index.js";import{SkeletonBase as n}from"./SkeletonBase/SkeletonBase.js";import r from"styled-components";const i=r(n)`
2
- position: absolute;
3
- left: ${e.small};
4
- border-radius: ${t.corners.borderRadius};
5
- transform: translateY(${e.x_small});
6
- height: 100%;
7
- top: 0;
8
- `;export{i as SkeletonField};
@@ -1,19 +0,0 @@
1
- import{colors as e}from"../../../atoms/style/colors.js";import{shape as t}from"../../../atoms/style/index.js";import{useStepper as n}from"../../../providers/StepperProvider.js";import{Icon as r,Typography as i}from"@equinor/eds-core-react";import a from"styled-components";import{jsx as o}from"react/jsx-runtime";import{check as s,lock as c}from"@equinor/eds-icons";const l=a.span`
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- width: 22px;
6
- height: 22px;
7
- border-radius: ${t.circle.borderRadius};
8
- border: 2px solid
9
- ${({$filled:t,$outlined:n})=>t??n?e.interactive.primary__resting.rgba:e.interactive.disabled__text.rgba};
10
- background: ${({$filled:t})=>t?e.interactive.primary__resting.rgba:`none`};
11
- > p {
12
- // Ensure text icons are not squished
13
- padding: 8px;
14
- color: ${t=>t.$filled?e.text.static_icons__primary_white.rgba:e.interactive.disabled__text.rgba};
15
- }
16
- > svg {
17
- transform: scale(0.9);
18
- }
19
- `,u=({index:t,disabled:a})=>{let{currentStep:u}=n();return a?o(r,{data:c,color:e.interactive.disabled__text.rgba}):t>=u?o(l,{$filled:t===u,children:o(i,{variant:`caption`,children:t+1})}):o(l,{$outlined:!0,"data-testid":`wrapper`,children:o(r,{data:s,color:e.interactive.primary__resting.rgba})})};export{u as StepIcon};
@@ -1,25 +0,0 @@
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};
@@ -1,7 +0,0 @@
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};