@equinor/amplify-component-lib 9.16.0-beta.0 → 9.16.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/useAmplifyKit.js +1 -1
- package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useOnScreenMultiple.js +1 -0
- package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useRichTextImage.js +1 -0
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/animation.js +1 -0
- package/dist/atoms/style/colors.js +1 -0
- package/dist/atoms/style/darkTokens.js +219 -0
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/style/lightTokens.js +158 -0
- package/dist/atoms/style/spacingTokens.js +50 -0
- package/dist/atoms/style/spacings.js +1 -0
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/date.js +1 -1
- package/dist/atoms/utils/map.js +1 -1
- package/dist/atoms/utils/richtext.js +1 -1
- package/dist/atoms/utils/size.js +1 -1
- package/dist/atoms/utils/skeleton.js +1 -0
- package/dist/atoms/utils/url.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/deprecated/OldStepper/OldStep.js +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
- package/dist/deprecated/OldStepper/OldStepper.js +3 -3
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
- package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +1 -0
- package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
- package/dist/molecules/Badge/Badge.js +1 -1
- package/dist/molecules/Badge/Badge.styles.js +17 -0
- package/dist/molecules/Banner/Banner.js +1 -1
- package/dist/molecules/Banner/Banner.styles.js +3 -3
- package/dist/molecules/Button/Button.js +3 -3
- package/dist/molecules/Button/Button.utils.js +1 -0
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Chip/Chip.js +1 -1
- package/dist/molecules/Chip/Chip.styles.js +65 -0
- package/dist/molecules/Chip/InteractiveChip.js +1 -0
- package/dist/molecules/Chip/ReadOnlyChip.js +1 -0
- package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +52 -0
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.styles.js +63 -0
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/molecules/Dialog/Dialog.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.js +1 -1
- package/dist/molecules/Dialog/Dialog.styles.js +10 -10
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +1 -0
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -0
- package/dist/molecules/FileProgress/CompactFileProgress.styles.js +100 -0
- package/dist/molecules/FileProgress/FileProgress.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.utils.js +1 -0
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -0
- package/dist/molecules/FileProgress/RegularFileProgress.styles.js +35 -0
- package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +1 -0
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
- package/dist/molecules/FileUploadArea/UploadIllustration.js +1 -0
- package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.js +1 -1
- package/dist/molecules/IconCell/IconCell.styles.js +26 -26
- package/dist/molecules/IconCell/IconCell.utils.js +7 -7
- package/dist/molecules/InfoElement/CopyText.js +41 -0
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/ListItem/ListItem.js +13 -13
- package/dist/molecules/ListItem/ListItem.utils.js +1 -0
- package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +36 -0
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +1 -0
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +5 -5
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Search/Search.js +8 -8
- package/dist/molecules/Select/AddTagItem.js +1 -0
- package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
- package/dist/molecules/Select/GroupedSelectMenu.js +1 -0
- package/dist/molecules/Select/ListSelectMenu.js +1 -0
- package/dist/molecules/Select/Select.js +1 -0
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/Select.styles.js +61 -61
- package/dist/molecules/Select/Select.utils.js +1 -0
- package/dist/molecules/Select/SelectMenuItem.js +1 -0
- package/dist/molecules/Select/SelectMenuItem.utils.js +1 -0
- package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
- package/dist/molecules/Skeleton/Skeleton.styles.js +1 -0
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
- package/dist/molecules/Skeleton/SkeletonField.js +8 -0
- package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
- package/dist/molecules/Stepper/Step/Step.js +5 -5
- package/dist/molecules/Stepper/Step/StepIcon.js +19 -0
- package/dist/molecules/Stepper/StepLine.js +2 -2
- package/dist/molecules/Stepper/Stepper.js +4 -4
- package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +25 -0
- package/dist/molecules/Stepper/SubTitle/SubTitle.js +7 -0
- package/dist/molecules/Tabs/Tab.js +1 -1
- package/dist/molecules/Tabs/Tab.styles.js +22 -22
- package/dist/molecules/Tabs/Tabs.js +4 -4
- package/dist/molecules/TextField/TextField.js +74 -0
- package/dist/molecules/Waves/Waves.js +1 -1
- package/dist/molecules/index.d.ts +2 -2
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.js +6 -6
- package/dist/organisms/Faq/Category/Category.js +9 -0
- package/dist/organisms/Faq/Category/Question.js +22 -0
- package/dist/organisms/Faq/CategorySkeleton.js +29 -0
- package/dist/organisms/Faq/Faq.js +1 -1
- package/dist/organisms/Faq/Faq.styles.js +3 -3
- package/dist/organisms/Faq/Header.js +7 -7
- package/dist/organisms/FieldSelector/ChangingField.js +8 -8
- package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
- package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
- package/dist/organisms/Filter/AutoCompleteMenu.js +10 -0
- package/dist/organisms/Filter/AutoCompleteText.js +11 -0
- package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
- package/dist/organisms/Filter/Filter.js +1 -1
- package/dist/organisms/Filter/Filter.styles.js +39 -39
- package/dist/organisms/Filter/Filter.utils.js +1 -0
- package/dist/organisms/Filter/QuickFilter.js +1 -1
- package/dist/organisms/Filter/SortMenu.js +2 -2
- package/dist/organisms/PageTitle/PageTitle.js +1 -1
- package/dist/organisms/ReleaseNote/MetaTags.js +10 -0
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
- package/dist/organisms/ReleaseNote/ReleaseNote.utils.js +1 -1
- package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
- package/dist/organisms/SideBar/CreateItem.js +1 -0
- package/dist/organisms/SideBar/CreateItem.styles.js +33 -0
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -0
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +48 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.js +1 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +37 -0
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +1 -0
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/SideBar.js +1 -0
- package/dist/organisms/SideBar/SideBar.styles.js +41 -0
- package/dist/organisms/SideBar/ToggleOpen.js +1 -0
- package/dist/organisms/SideBar/ToggleOpen.styles.js +16 -0
- package/dist/organisms/SideBar/index.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Action.js +1 -1
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/Description.js +1 -1
- package/dist/organisms/Status/Illustration.constants.js +1 -0
- package/dist/organisms/Status/Illustration.js +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.js +4 -4
- package/dist/organisms/Status/Status.js +4 -4
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/Title.js +1 -1
- package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
- package/dist/organisms/Status/collections/BadRequest.js +2 -2
- package/dist/organisms/Status/collections/GenericError.js +1 -1
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
- package/dist/organisms/Status/collections/PageNotFound.js +2 -2
- package/dist/organisms/Status/collections/ServerError.js +2 -2
- package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
- package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
- package/dist/organisms/Template/Template.d.ts +3 -3
- package/dist/organisms/Template/Template.js +7 -7
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
- package/dist/organisms/TopBar/Account/Account.js +1 -1
- package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
- package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
- package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +1 -0
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +1 -0
- package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
- package/dist/organisms/TopBar/Account/RoleList.js +7 -7
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.js +3 -3
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
- package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
- package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
- package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +41 -0
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +7 -0
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +79 -0
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +1 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +7 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +19 -0
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +1 -0
- package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
- package/dist/organisms/TopBar/Resources/Resources.js +4 -4
- package/dist/organisms/TopBar/Settings.js +11 -11
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +22 -22
- package/dist/organisms/TopBar/TopBarMenu.js +4 -4
- package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
- package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
- package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProvider.js +1 -0
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -0
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.utils.js +1 -0
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +1 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +41 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +1 -0
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.utils.js +1 -0
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +24 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +20 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +75 -0
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +1 -0
- package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +1 -0
- package/package.json +2 -2
- package/dist/atoms/hooks/index.js +0 -1
- package/dist/providers/index.js +0 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import{VARIANT_COLORS as
|
|
1
|
+
import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS as t,VARIANT_HELPER_TEXT_COLORS as n,colors as r}from"../../atoms/style/colors.js";import{spacings as i}from"../../atoms/style/spacings.js";import{Chip as a}from"../Chip/Chip.js";import{Button as o,Menu as s,Typography as c}from"@equinor/eds-core-react";import l,{css as u}from"styled-components";const d=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
`,
|
|
4
|
+
gap: ${i.small};
|
|
5
|
+
`,f=l.span`
|
|
6
6
|
display: flex;
|
|
7
|
-
gap: ${
|
|
7
|
+
gap: ${i.small};
|
|
8
8
|
align-items: center;
|
|
9
|
-
margin-left: ${
|
|
10
|
-
width: calc(100% - ${
|
|
9
|
+
margin-left: ${i.small};
|
|
10
|
+
width: calc(100% - ${i.small});
|
|
11
11
|
> label {
|
|
12
12
|
margin: 0;
|
|
13
13
|
}
|
|
14
|
-
${({$variant:e})=>e?
|
|
14
|
+
${({$variant:e})=>e?u`
|
|
15
15
|
> label {
|
|
16
|
-
color: ${e===`disabled`?
|
|
16
|
+
color: ${e===`disabled`?r.interactive.disabled__text.rgba:n[e]};
|
|
17
17
|
}
|
|
18
18
|
> svg {
|
|
19
19
|
flex-shrink: 0;
|
|
20
|
-
fill: ${e===`disabled`?
|
|
20
|
+
fill: ${e===`disabled`?r.interactive.disabled__text.rgba:n[e]};
|
|
21
21
|
}
|
|
22
22
|
`:``}
|
|
23
|
-
`,
|
|
23
|
+
`,p=l.div`
|
|
24
24
|
position: relative;
|
|
25
25
|
display: grid;
|
|
26
26
|
grid-template-columns: 1fr auto;
|
|
27
27
|
align-items: center;
|
|
28
28
|
padding: 6px 8px;
|
|
29
29
|
transition:
|
|
30
|
-
background ${
|
|
31
|
-
box-shadow ${
|
|
30
|
+
background ${e.transitionMS},
|
|
31
|
+
box-shadow ${e.transitionMS};
|
|
32
32
|
&:hover:not(:has(input:disabled)) {
|
|
33
33
|
cursor: pointer;
|
|
34
|
-
background: ${
|
|
34
|
+
background: ${r.ui.background__light_medium.rgba};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
${({$variant:
|
|
38
|
-
box-shadow: inset 0 -2px 0 0 ${e
|
|
37
|
+
${({$variant:e})=>e?e===`dirty`?u`
|
|
38
|
+
box-shadow: inset 0 -2px 0 0 ${t[e]};
|
|
39
39
|
&:hover {
|
|
40
|
-
box-shadow: inset 0 -2px 0 0 ${e
|
|
40
|
+
box-shadow: inset 0 -2px 0 0 ${t[e]};
|
|
41
41
|
}
|
|
42
|
-
`:
|
|
43
|
-
outline: 1px solid ${e
|
|
42
|
+
`:u`
|
|
43
|
+
outline: 1px solid ${t[e]};
|
|
44
44
|
&:hover {
|
|
45
|
-
box-shadow: inset 0 -1px 0 0 ${e
|
|
45
|
+
box-shadow: inset 0 -1px 0 0 ${t[e]};
|
|
46
46
|
}
|
|
47
|
-
`:
|
|
48
|
-
box-shadow: inset 0 -1px 0 0 ${
|
|
47
|
+
`:u`
|
|
48
|
+
box-shadow: inset 0 -1px 0 0 ${r.text.static_icons__tertiary.rgba};
|
|
49
49
|
&:hover {
|
|
50
50
|
box-shadow: inset 0 -2px 0 0
|
|
51
|
-
${
|
|
51
|
+
${r.text.static_icons__tertiary.rgba};
|
|
52
52
|
}
|
|
53
53
|
`}
|
|
54
54
|
|
|
55
|
-
${({$lightBackground:e})=>e?`background-color: ${
|
|
55
|
+
${({$lightBackground:e})=>e?`background-color: ${r.ui.background__default.rgba}`:`background-color: ${r.ui.background__light.rgba}`};
|
|
56
56
|
|
|
57
57
|
&[aria-expanded='true'] {
|
|
58
|
-
box-shadow: inset 0 -2px 0 0 ${
|
|
58
|
+
box-shadow: inset 0 -2px 0 0 ${r.interactive.primary__resting.rgba};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
> svg[role='progressbar'] {
|
|
@@ -64,7 +64,7 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
64
64
|
> svg:not([role='progressbar']) {
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
&:hover {
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${r.interactive.primary__hover_alt.rgba};
|
|
68
68
|
border-radius: 50%;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -72,16 +72,16 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
72
72
|
&:has(input:disabled) {
|
|
73
73
|
outline: none;
|
|
74
74
|
cursor: not-allowed;
|
|
75
|
-
box-shadow: inset 0 -1px 0 0 ${
|
|
75
|
+
box-shadow: inset 0 -1px 0 0 ${r.interactive.disabled__text.rgba} !important;
|
|
76
76
|
> svg:not([role='progressbar']) {
|
|
77
77
|
cursor: not-allowed;
|
|
78
|
-
fill: ${
|
|
78
|
+
fill: ${r.interactive.disabled__text.rgba};
|
|
79
79
|
&:hover {
|
|
80
80
|
background: transparent;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
> label {
|
|
84
|
-
color: ${
|
|
84
|
+
color: ${r.interactive.disabled__text.rgba};
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -90,11 +90,11 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
90
90
|
width: calc(100% - 24px);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,m=l.section`
|
|
94
94
|
position: relative;
|
|
95
95
|
display: flex;
|
|
96
96
|
flex-wrap: wrap;
|
|
97
|
-
gap: ${
|
|
97
|
+
gap: ${i.x_small};
|
|
98
98
|
min-height: 24px;
|
|
99
99
|
input[type='search'] {
|
|
100
100
|
background: transparent;
|
|
@@ -102,7 +102,7 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
102
102
|
flex-grow: 1;
|
|
103
103
|
padding: 0;
|
|
104
104
|
font-family: 'Equinor', sans-serif;
|
|
105
|
-
color: ${
|
|
105
|
+
color: ${r.text.static_icons__default.rgba};
|
|
106
106
|
outline: none;
|
|
107
107
|
border: none;
|
|
108
108
|
}
|
|
@@ -117,14 +117,14 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
117
117
|
}
|
|
118
118
|
&:has(input:disabled) {
|
|
119
119
|
> p {
|
|
120
|
-
color: ${
|
|
120
|
+
color: ${r.interactive.disabled__text.rgba};
|
|
121
121
|
}
|
|
122
122
|
> .amplify-combo-box-chip {
|
|
123
123
|
cursor: not-allowed;
|
|
124
|
-
background: ${
|
|
125
|
-
color: ${
|
|
124
|
+
background: ${r.interactive.disabled__fill.rgba};
|
|
125
|
+
color: ${r.interactive.disabled__text.rgba};
|
|
126
126
|
> svg {
|
|
127
|
-
fill: ${
|
|
127
|
+
fill: ${r.interactive.disabled__text.rgba};
|
|
128
128
|
&:hover {
|
|
129
129
|
cursor: not-allowed;
|
|
130
130
|
background: none;
|
|
@@ -132,7 +132,7 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,h=l(o)`
|
|
136
136
|
position: absolute;
|
|
137
137
|
top: 50%;
|
|
138
138
|
transform: translate(0, -50%);
|
|
@@ -140,16 +140,16 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
140
140
|
width: 24px;
|
|
141
141
|
height: 24px;
|
|
142
142
|
svg {
|
|
143
|
-
fill: ${
|
|
143
|
+
fill: ${r.text.static_icons__secondary.rgba};
|
|
144
144
|
}
|
|
145
145
|
&:after {
|
|
146
146
|
width: 24px;
|
|
147
147
|
height: 24px;
|
|
148
148
|
left: 0;
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
background: ${({$tryingToRemove:e,$lightBackground:t})=>e?
|
|
152
|
-
|
|
150
|
+
`,g=l(a)`
|
|
151
|
+
background: ${({$tryingToRemove:e,$lightBackground:t})=>e?r.interactive.primary__hover_alt.rgba:t?r.ui.background__light.rgba:r.ui.background__default.rgba} !important;
|
|
152
|
+
`,_=l(s.Item)`
|
|
153
153
|
flex-grow: 1;
|
|
154
154
|
${({$paddedLeft:e})=>e&&`margin-left: 36px`};
|
|
155
155
|
padding-left: 10px;
|
|
@@ -160,43 +160,43 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
&:hover {
|
|
163
|
-
background: ${
|
|
163
|
+
background: ${r.interactive.primary__hover_alt.rgba};
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
&:focus-visible {
|
|
167
|
-
outline: 2px dashed ${
|
|
167
|
+
outline: 2px dashed ${r.interactive.primary__resting.rgba};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
${({$selected:e})=>e?
|
|
171
|
-
background: ${
|
|
170
|
+
${({$selected:e})=>e?u`
|
|
171
|
+
background: ${r.interactive.primary__selected_highlight.rgba};
|
|
172
172
|
|
|
173
173
|
&:hover {
|
|
174
|
-
background: ${
|
|
174
|
+
background: ${r.interactive.primary__selected_hover.rgba};
|
|
175
175
|
}
|
|
176
176
|
`:``}}
|
|
177
|
-
`,
|
|
178
|
-
height: calc(100% + ${
|
|
177
|
+
`,v=l.hr`
|
|
178
|
+
height: calc(100% + ${i.medium} * 2);
|
|
179
179
|
justify-self: center;
|
|
180
|
-
width: ${
|
|
181
|
-
min-width: ${
|
|
182
|
-
|
|
180
|
+
width: ${i.x_large};
|
|
181
|
+
min-width: ${i.x_large};
|
|
182
|
+
`,y=l(c)`
|
|
183
183
|
user-select: none;
|
|
184
184
|
pointer-events: none;
|
|
185
185
|
position: absolute;
|
|
186
|
-
color: ${
|
|
186
|
+
color: ${r.text.static_icons__tertiary.rgba};
|
|
187
187
|
top: calc(50%);
|
|
188
188
|
transform: translate(0, -50%);
|
|
189
|
-
|
|
189
|
+
`,b=l(y)`
|
|
190
190
|
white-space: nowrap;
|
|
191
191
|
overflow: hidden;
|
|
192
192
|
text-overflow: ellipsis;
|
|
193
|
-
color: ${
|
|
193
|
+
color: ${r.text.static_icons__default.rgba};
|
|
194
194
|
max-width: 100%;
|
|
195
|
-
`,
|
|
196
|
-
margin: ${
|
|
197
|
-
`,
|
|
198
|
-
margin-left: ${
|
|
199
|
-
`,
|
|
195
|
+
`,x=l(c)`
|
|
196
|
+
margin: ${i.medium};
|
|
197
|
+
`,S=l(c)`
|
|
198
|
+
margin-left: ${i.medium};
|
|
199
|
+
`,C=l(s)`
|
|
200
200
|
max-height: 20rem;
|
|
201
201
|
max-width: inherit;
|
|
202
202
|
overflow-y: auto;
|
|
@@ -204,10 +204,10 @@ import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t}from"src/atoms/style/
|
|
|
204
204
|
width: inherit;
|
|
205
205
|
max-width: inherit;
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,w=l.div`
|
|
208
208
|
display: flex;
|
|
209
209
|
align-items: center;
|
|
210
|
-
`,
|
|
210
|
+
`,T=l(o)`
|
|
211
211
|
width: 36px;
|
|
212
212
|
height: 36px;
|
|
213
|
-
`;export{d as
|
|
213
|
+
`;export{h as ClearButton,g as ComboBoxChip,p as Container,f as HelperWrapper,v as MenuItemSpacer,w as MenuItemWrapper,S as NoItemsFoundText,x as NoTagFoundText,y as PlaceholderText,m as Section,T as SmallButton,C as StyledMenu,_ as StyledMenuItem,b as ValueText,d as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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):[]).includes(T.value),I=l(()=>`value`in e?_:s(T,e.values),[T,e]),L=l(()=>`value`in e?`none`:c(T,e.values),[T,e]),R=l(()=>Array(w).fill(0).map((e,t)=>m(r,{},`spacer-${e+t}`)),[w]),z=e=>{e.preventDefault(),O(T)},B=e=>{e.stopPropagation(),M(e=>!e)},V=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()},H=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:[R,m(a,{variant:`ghost_icon`,onClick:B,"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:H,onClick:z,children:A?m(A,{item:T,selectedState:L}):h(p,{children:[m(f,{color:b.interactive.primary__resting.rgba,data:I}),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:V,onItemSelect:O,parentHasNestedItems:!0,CustomMenuItemComponent:A},`child-${r}-${t.value}-${T.value}`))]}):`values`in e?h(i,{children:[R,m(o,{$depth:w,$paddedLeft:k,ref:e=>{E.current[S]=e},index:S,tabIndex:w,closeMenuOnClick:!1,onKeyDownCapture:D,onClick:z,children:A?m(A,{item:T,selectedState:F?`selected`:`none`}):h(p,{children:[m(f,{color:b.interactive.primary__resting.rgba,data:F?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:z,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};
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Select as e}from"../Select.js";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as SingleSelect};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react92 from "react";
|
|
2
2
|
import { CheckboxProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Checkbox/Checkbox.d.ts
|
|
@@ -7,6 +7,6 @@ interface CheckboxProps$1 extends CheckboxProps {
|
|
|
7
7
|
outlined?: boolean;
|
|
8
8
|
error?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Checkbox$1:
|
|
10
|
+
declare const Checkbox$1: react92.ForwardRefExoticComponent<CheckboxProps$1 & react92.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{
|
|
1
|
+
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{Checkbox as n}from"@equinor/eds-core-react";import{jsx as r}from"react/jsx-runtime";const i=t((t,i)=>{let{outlined:a,error:o,...s}=t;return r(e,{$outlined:a||!1,$error:o,children:r(n,{ref:i,...s})})});i.displayName=`Checkbox`;export{i as Checkbox};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react94 from "react";
|
|
2
2
|
import { RadioProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Radio/Radio.d.ts
|
|
@@ -7,6 +7,6 @@ interface RadioProps$1 extends RadioProps {
|
|
|
7
7
|
outlined?: boolean;
|
|
8
8
|
error?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Radio$1:
|
|
10
|
+
declare const Radio$1: react94.ForwardRefExoticComponent<RadioProps$1 & react94.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Radio$1 as Radio, RadioProps$1 as RadioProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{
|
|
1
|
+
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{Radio as n}from"@equinor/eds-core-react";import{jsx as r}from"react/jsx-runtime";const i=t((t,i)=>{let{outlined:a,error:o,...s}=t;return r(e,{$outlined:a||!1,$error:o,children:r(n,{ref:i,...s,checked:s.checked?!0:void 0})})});i.displayName=`Radio`;export{i as Radio};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e
|
|
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 i,{css as a}from"styled-components";const o=i.span`
|
|
2
2
|
> label {
|
|
3
|
-
padding: ${
|
|
4
|
-
border-radius: ${
|
|
5
|
-
transition: background ${
|
|
6
|
-
gap: ${
|
|
3
|
+
padding: ${n.x_small} ${n.medium_small};
|
|
4
|
+
border-radius: ${r.button.borderRadius};
|
|
5
|
+
transition: background ${e.transitionMS};
|
|
6
|
+
gap: ${n.small};
|
|
7
7
|
min-height: 36px;
|
|
8
8
|
> span:first-child {
|
|
9
9
|
padding: 0;
|
|
@@ -11,13 +11,13 @@ import e,{css as t}from"styled-components";import{animation as n,colors as r,sha
|
|
|
11
11
|
aspect-ratio: 1;
|
|
12
12
|
}
|
|
13
13
|
> span[class*='Switch']:last-child {
|
|
14
|
-
padding: 0 ${
|
|
14
|
+
padding: 0 ${n.medium_small} 0 0;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&.switch > label {
|
|
19
|
-
padding: 0 ${
|
|
20
|
-
gap: ${
|
|
19
|
+
padding: 0 ${n.x_small} 0 ${n.medium_small};
|
|
20
|
+
gap: ${n.small};
|
|
21
21
|
|
|
22
22
|
> span:first-child {
|
|
23
23
|
height: 36px;
|
|
@@ -41,21 +41,21 @@ import e,{css as t}from"styled-components";import{animation as n,colors as r,sha
|
|
|
41
41
|
background: transparent !important;
|
|
42
42
|
}
|
|
43
43
|
svg {
|
|
44
|
-
transition: fill ${
|
|
44
|
+
transition: fill ${e.transitionMS};
|
|
45
45
|
}
|
|
46
46
|
input:not(:checked) {
|
|
47
47
|
~ svg {
|
|
48
|
-
fill: ${({$error:e})=>e?
|
|
48
|
+
fill: ${({$error:e})=>e?t.interactive.danger__resting.rgba:t.text.static_icons__tertiary.rgba};
|
|
49
49
|
&:hover {
|
|
50
|
-
fill: ${({$error:e})=>e?
|
|
50
|
+
fill: ${({$error:e})=>e?t.interactive.danger__hover.rgba:t.text.static_icons__default.rgba};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
${({$error:e})=>e?
|
|
54
|
+
${({$error:e})=>e?a`
|
|
55
55
|
input ~ svg {
|
|
56
|
-
fill: ${
|
|
56
|
+
fill: ${t.interactive.danger__resting.rgba};
|
|
57
57
|
&:hover {
|
|
58
|
-
fill: ${
|
|
58
|
+
fill: ${t.interactive.danger__hover.rgba};
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
`:``}
|
|
@@ -65,43 +65,43 @@ import e,{css as t}from"styled-components";import{animation as n,colors as r,sha
|
|
|
65
65
|
> span
|
|
66
66
|
> span
|
|
67
67
|
> span:last-child:not([class*='SwitchSmall']) {
|
|
68
|
-
background: ${
|
|
68
|
+
background: ${t.interactive.primary__resting.rgba};
|
|
69
69
|
}
|
|
70
70
|
> label:has(input)
|
|
71
71
|
> span
|
|
72
72
|
> span
|
|
73
73
|
> span:last-child:not([class*='SwitchSmall']) {
|
|
74
|
-
background: ${
|
|
74
|
+
background: ${t.text.static_icons__tertiary.rgba};
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
> label:hover:not(:has(input:disabled)) {
|
|
78
|
-
background: ${({$error:e})=>e?
|
|
78
|
+
background: ${({$error:e})=>e?t.interactive.danger__highlight.rgba:t.interactive.primary__hover_alt.rgba};
|
|
79
79
|
svg {
|
|
80
|
-
fill: ${({$error:e})=>e?
|
|
80
|
+
fill: ${({$error:e})=>e?t.interactive.danger__hover.rgba:t.text.static_icons__default.rgba};
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
> label:focus:not(:hover):not(:has(input:disabled)) {
|
|
85
|
-
outline: 1px dashed ${
|
|
85
|
+
outline: 1px dashed ${t.interactive.primary__resting.rgba};
|
|
86
86
|
outline-offset: -1px;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:has(input:disabled) {
|
|
90
90
|
span:last-child {
|
|
91
|
-
color: ${
|
|
91
|
+
color: ${t.interactive.disabled__text.rgba};
|
|
92
92
|
}
|
|
93
93
|
svg {
|
|
94
|
-
fill: ${
|
|
94
|
+
fill: ${t.interactive.disabled__text.rgba};
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
${({$outlined:e})=>{if(e)return
|
|
98
|
+
${({$outlined:e})=>{if(e)return a`
|
|
99
99
|
> label {
|
|
100
|
-
outline: 1px solid ${
|
|
100
|
+
outline: 1px solid ${t.ui.background__medium.rgba};
|
|
101
101
|
}
|
|
102
102
|
&:has(input:disabled) {
|
|
103
103
|
svg {
|
|
104
|
-
fill: ${
|
|
104
|
+
fill: ${t.interactive.disabled__border.rgba};
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
`}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react96 from "react";
|
|
2
2
|
import { SwitchProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Switch/Switch.d.ts
|
|
5
5
|
interface SwitchProps$1 extends SwitchProps {
|
|
6
6
|
outlined?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const Switch$1:
|
|
8
|
+
declare const Switch$1: react96.ForwardRefExoticComponent<SwitchProps$1 & react96.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{
|
|
1
|
+
import{Wrapper as e}from"../SelectionControls.styles.js";import{forwardRef as t}from"react";import{Switch as n}from"@equinor/eds-core-react";import{jsx as r}from"react/jsx-runtime";const i=t((t,i)=>{let{outlined:a,...o}=t;return r(e,{$outlined:a||!1,className:`switch`,children:r(n,{ref:i,...o})})});i.displayName=`Switch`;export{i as Switch};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import
|
|
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 n,{useState as r}from"react";import{Button as i,Chip as a,Icon as o,Menu as s,Typography as c}from"@equinor/eds-core-react";import l from"styled-components";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{filter_list as f}from"@equinor/eds-icons";const{colors:p}=e,m=l.div`
|
|
2
2
|
margin-left: auto;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 25px;
|
|
6
|
-
`,h=
|
|
6
|
+
`,h=l(a)`
|
|
7
7
|
background: ${e=>e.$backgroundColor};
|
|
8
|
-
`,g=
|
|
8
|
+
`,g=l(i)`
|
|
9
9
|
justify-self: flex-end;
|
|
10
|
-
`,_=
|
|
10
|
+
`,_=l(s)`
|
|
11
11
|
overflow-y: auto;
|
|
12
|
-
`,v=
|
|
13
|
-
padding: ${
|
|
14
|
-
padding-left: ${
|
|
15
|
-
`,y=
|
|
12
|
+
`,v=l.div`
|
|
13
|
+
padding: ${t.medium};
|
|
14
|
+
padding-left: ${t.large};
|
|
15
|
+
`,y=l(s.Item)`
|
|
16
16
|
&:focus {
|
|
17
17
|
outline: none;
|
|
18
18
|
background: ${p.ui.background__light.rgba};
|
|
19
19
|
}
|
|
20
|
-
`,b=({onChange:e,customIcon:t,menuTitle:
|
|
20
|
+
`,b=({onChange:e,customIcon:t,menuTitle:n,data:i,showChip:a=!1,chipColor:s=p.ui.background__default.rgba})=>{let[l,b]=r(!1),[x,S]=r(null),[C,w]=r(),T=e=>{let t=e.target;S(t),b(!l)},E=()=>b(!1),D=t=>{b(!1),C===t?(w(void 0),e(void 0)):(w(t),e(t))},O=()=>{E(),e(void 0),w(void 0)};return d(m,{children:[a&&C&&u(h,{"data-testid":`chip`,onDelete:O,variant:`default`,$backgroundColor:s,children:C}),u(g,{"data-testid":`menuButton`,variant:`ghost_icon`,onClick:e=>T(e),children:u(o,{data:t??f})}),d(_,{open:l,anchorEl:x,onClose:E,placement:`bottom-end`,"data-testid":`menuContainer`,children:[u(v,{children:u(c,{group:`navigation`,variant:`label`,children:n})}),i.map((e,t)=>u(y,{onClick:()=>D(e),disabled:C===e&&a,active:C===e&&!a,children:u(c,{group:`navigation`,variant:`menu_title`,as:`span`,children:e})},e+t))]})]})};b.displayName=`SingleFilterMenu`;export{b as SingleFilterMenu};
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react41 from "react";
|
|
2
2
|
import * as styled_components_dist_types6 from "styled-components/dist/types";
|
|
3
3
|
import * as styled_components_dist_models_Keyframes0 from "styled-components/dist/models/Keyframes";
|
|
4
4
|
|
|
@@ -7,6 +7,6 @@ declare const skeletonBaseloading: styled_components_dist_models_Keyframes0.defa
|
|
|
7
7
|
interface SkeletonBaseProps {
|
|
8
8
|
$offset?: number;
|
|
9
9
|
}
|
|
10
|
-
declare const SkeletonBase: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<
|
|
10
|
+
declare const SkeletonBase: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonBaseProps>> & string;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import e,{css as
|
|
1
|
+
import{COLORS as e}from"../Skeleton.styles.js";import t,{css as n,keyframes as r}from"styled-components";const i=r`
|
|
2
2
|
to {
|
|
3
3
|
transform: translateX(100%);
|
|
4
4
|
}
|
|
5
|
-
`,a=
|
|
6
|
-
background: ${
|
|
5
|
+
`,a=t.div`
|
|
6
|
+
background: ${e.START};
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
position: relative;
|
|
9
9
|
z-index: 2;
|
|
10
10
|
&:after {
|
|
11
11
|
background: linear-gradient(
|
|
12
12
|
90deg,
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
13
|
+
${e.START} 0%,
|
|
14
|
+
${e.END} 50%,
|
|
15
|
+
${e.START} 100%
|
|
16
16
|
);
|
|
17
17
|
animation: ${i} 1.5s infinite;
|
|
18
18
|
content: '';
|
|
@@ -23,7 +23,7 @@ import e,{css as t,keyframes as n}from"styled-components";import{COLORS as r}fro
|
|
|
23
23
|
top: 0;
|
|
24
24
|
transform: translateX(-100%);
|
|
25
25
|
z-index: 1;
|
|
26
|
-
${e=>e.$offset&&
|
|
26
|
+
${e=>e.$offset&&n`
|
|
27
27
|
animation-delay: ${e.$offset}ms;
|
|
28
28
|
`};
|
|
29
29
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{COLORS as e}from"../Skeleton.styles.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=({duration:r=`1.5s`})=>n(`linearGradient`,{id:`skeleton-gradient`,x1:`0%`,x2:`100%`,gradientTransform:`translate(-0.1)`,children:[t(`stop`,{stopColor:e.START,offset:`0%`}),t(`stop`,{stopColor:e.END,offset:`50%`}),t(`stop`,{stopColor:e.START,offset:`100%`}),t(`animateTransform`,{attributeName:`gradientTransform`,type:`translate`,begin:`0s`,dur:r,repeatCount:`indefinite`,values:`-1; 1; 1`})]});export{r as SkeletonGradient};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{
|
|
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{StepIcon as r}from"./StepIcon.js";import{useMemo as i}from"react";import{Typography as a}from"@equinor/eds-core-react";import o,{css as s}from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=o.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${t.small};
|
|
4
4
|
align-items: center;
|
|
5
5
|
white-space: nowrap;
|
|
6
|
-
${({$disabled:e,$clickable:t})=>e?
|
|
6
|
+
${({$disabled:e,$clickable:t})=>e?s`
|
|
7
7
|
&:hover {
|
|
8
8
|
cursor: not-allowed;
|
|
9
9
|
}
|
|
10
|
-
`:t&&
|
|
10
|
+
`:t&&s`
|
|
11
11
|
&:hover {
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
}
|
|
14
14
|
`}
|
|
15
|
-
`,d=({index:
|
|
15
|
+
`,d=({index:t,onlyShowCurrentStepLabel:o=!1,children:s})=>{let{currentStep:d,setCurrentStep:f,isStepAtIndexDisabled:p}=n(),m=p(t),h=i(()=>t<d?`body_short`:`body_short_bold`,[d,t]),g=i(()=>t>d||m?e.interactive.disabled__text.rgba:e.text.static_icons__default.rgba,[d,t,m]),_=()=>{t<d&&!m&&f(t)};return l(u,{"data-testid":`step`,$clickable:t<d,onClick:_,$disabled:m,"aria-disabled":m,role:`button`,children:[c(r,{index:t,disabled:m}),(!o||d===t)&&c(a,{variant:h,color:g,children:s})]})};export{d as Step};
|
|
@@ -0,0 +1,19 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useMemo as t}from"react";import{jsx as
|
|
1
|
+
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useMemo as t}from"react";import n from"styled-components";import{jsx as r}from"react/jsx-runtime";const{colors:i}=e,a=n.hr`
|
|
2
2
|
height: 1px;
|
|
3
3
|
width: 100%;
|
|
4
4
|
background: ${e=>e.$background};
|
|
5
5
|
border: none;
|
|
6
6
|
margin: 0;
|
|
7
|
-
`,o=({done:e})=>{let
|
|
7
|
+
`,o=({done:e})=>{let n=t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e]);return r(a,{$background:n})};export{o as StepLine};
|