@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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{OptionalTooltip as e}from"../../OptionalTooltip/OptionalTooltip.js";import{MenuButtonStyle as t}from"./MenuBar.styles.js";import{forwardRef as n}from"react";import{Icon as r}from"@equinor/eds-core-react";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=n(({icon:n,onClick:o,active:s=!1,disabled:c=!1,tooltip:l,children:u,...d},f)=>i(e,{title:l,enterDelay:300,children:i(`div`,{children:a(t,{ref:f,$active:s,onClick:o,disabled:c,type:`button`,...d,children:[i(r,{data:n}),u]})})}));o.displayName=`MenuButton`;export{o as MenuButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{amplify_table_add_column_left as e,amplify_table_add_column_right as t,amplify_table_remove_column as n}from"../../../../atoms/icons/wysiwyg.js";import{MenuSection as r}from"../MenuBar.styles.js";import{MenuButton as i}from"../MenuButton.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({editor:s})=>o(r,{children:[a(i,{tooltip:`Add column left`,icon:e,onClick:()=>s.chain().focus().addColumnBefore().run(),disabled:!s.can().addColumnBefore()}),a(i,{tooltip:`Add column right`,icon:t,onClick:()=>s.chain().focus().addColumnAfter().run(),disabled:!s.can().addColumnAfter()}),a(i,{tooltip:`Remove column`,icon:n,onClick:()=>s.chain().focus().deleteColumn().run(),disabled:!s.can().deleteColumn()})]});export{s as TableColumn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{amplify_table_merge_cells as e,amplify_table_split_cell as t}from"../../../../atoms/icons/wysiwyg.js";import{MenuSection as n}from"../MenuBar.styles.js";import{MenuButton as r}from"../MenuButton.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({editor:o})=>a(n,{children:[i(r,{tooltip:`Merge selected cells`,icon:e,onClick:()=>o.chain().focus().mergeCells().run(),disabled:!o.can().mergeCells()}),i(r,{tooltip:`Split selected cell`,icon:t,onClick:()=>o.chain().focus().splitCell().run(),disabled:!o.can().splitCell()})]});export{o as TableMerge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{amplify_table_add_row_above as e,amplify_table_add_row_below as t,amplify_table_remove_row as n}from"../../../../atoms/icons/wysiwyg.js";import{MenuSection as r}from"../MenuBar.styles.js";import{MenuButton as i}from"../MenuButton.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({editor:s})=>o(r,{children:[a(i,{tooltip:`Add row below`,icon:t,onClick:()=>s.chain().focus().addRowAfter().run(),disabled:!s.can().addRowAfter()}),a(i,{tooltip:`Add row above`,icon:e,onClick:()=>s.chain().focus().addRowBefore().run(),disabled:!s.can().addRowBefore()}),a(i,{tooltip:`Remove row`,icon:n,onClick:()=>s.chain().focus().deleteRow().run(),disabled:!s.can().deleteRow()})]});export{s as TableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{amplify_table_column_heading as e,amplify_table_row_heading as t}from"../../../../atoms/icons/wysiwyg.js";import{MenuSection as n}from"../MenuBar.styles.js";import{MenuButton as r}from"../MenuButton.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({editor:o})=>a(n,{children:[i(r,{tooltip:`Toggle header row`,icon:t,onClick:()=>o.chain().focus().toggleHeaderRow().run(),disabled:!o.can().toggleHeaderRow()}),i(r,{tooltip:`Toggle header column`,icon:e,onClick:()=>o.chain().focus().toggleHeaderColumn().run(),disabled:!o.can().toggleHeaderColumn()})]});export{o as ToggleTable};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{EditorMenu as n}from"./MenuBar.js";import{Fragment as
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{EditorMenu as n}from"./MenuBar.js";import r from"styled-components";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";import{format_clear as s}from"@equinor/eds-icons";const{colors:c}=e,l=r.hr`
|
|
2
2
|
width: 1px;
|
|
3
3
|
background: ${c.ui.background__medium.rgba};
|
|
4
|
-
`,u=({editor:e,features:
|
|
4
|
+
`,u=({editor:e,features:r})=>{let c=()=>e.chain().focus().clearNodes().unsetAllMarks().run();if(!(r&&!r.includes(t.CLEAR_FORMATTING)))return o(i,{children:[a(l,{}),a(n.Button,{icon:s,onClick:c,"data-testid":`clear-formatting`,tooltip:`Clear Formatting`})]})};export{u as TextClearFormatting};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{OptionalTooltip as n}from"../../OptionalTooltip/OptionalTooltip.js";import{Icon as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{format_color_text as s}from"@equinor/eds-icons";const{colors:c,spacings:l,shape:u}=e,d=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${l.comfortable.medium};
|
|
@@ -29,17 +29,17 @@ import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/
|
|
|
29
29
|
fill: ${c.interactive.primary__hover.rgba};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,f=
|
|
32
|
+
`,f=i.span`
|
|
33
33
|
position: absolute;
|
|
34
34
|
left: 50%;
|
|
35
35
|
top: calc(50% + ${l.comfortable.x_small} / 2);
|
|
36
36
|
transform: translate(-50%, -50%);
|
|
37
37
|
pointer-events: none;
|
|
38
|
-
`,p=
|
|
38
|
+
`,p=i.span`
|
|
39
39
|
position: absolute;
|
|
40
40
|
left: 50%;
|
|
41
41
|
transform: translateX(-50%);
|
|
42
42
|
bottom: 5px;
|
|
43
43
|
height: 4px;
|
|
44
44
|
width: 24px;
|
|
45
|
-
`,m=({editor:e,features:
|
|
45
|
+
`,m=({editor:e,features:i})=>i&&!i.includes(t.TEXT_COLOR)?null:a(n,{title:`Text Color`,enterDelay:300,children:o(d,{children:[a(`input`,{type:`color`,onInput:t=>{e.chain().focus().setColor(t.target.value).run()},"data-testid":`text-color-input`,value:e.getAttributes(`textStyle`)?.color||c.text.static_icons__default.hex}),a(f,{children:a(r,{data:s})}),a(p,{style:{background:e.getAttributes(`textStyle`)?.color||c.text.static_icons__default.hex}})]})});export{m as TextColor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RichTextEditorFeatures as e}from"../RichTextEditor.types.js";import{
|
|
1
|
+
import{RichTextEditorFeatures as e}from"../RichTextEditor.types.js";import{amplify_h2 as t,amplify_h3 as n}from"../../../atoms/icons/wysiwyg.js";import{EditorMenu as r}from"./MenuBar.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({editor:o,features:s})=>{let c=()=>o.chain().focus().toggleHeading({level:2}).run(),l=()=>o.chain().focus().toggleHeading({level:3}).run();if(!(s&&!s.includes(e.HEADERS)))return a(r.Section,{children:[i(r.Button,{"data-testid":`h2-button`,active:o.isActive(`heading`,{level:2}),icon:t,onClick:c,tooltip:`Heading 2`}),i(r.Button,{"data-testid":`h3-button`,active:o.isActive(`heading`,{level:3}),icon:n,onClick:l,tooltip:`Heading 3`})]})};export{o as TextHeaders};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{RichTextEditorFeatures as t}from"../RichTextEditor.types.js";import{isValidUrl as n}from"../../../atoms/utils/url.js";import{TextField as r}from"../../TextField/TextField.js";import{EditorMenu as i}from"./MenuBar.js";import{useRef as a,useState as o}from"react";import{Button as s,Icon as c,Popover as l}from"@equinor/eds-core-react";import u from"styled-components";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{link as m,link_off as h}from"@equinor/eds-icons";const{spacings:g}=e,_=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${g.comfortable.medium};
|
|
4
4
|
padding: ${g.comfortable.small};
|
|
5
5
|
width: 15rem;
|
|
6
|
-
`,v=({editor:e,features:u})=>{let[g,v]=
|
|
6
|
+
`,v=({editor:e,features:u})=>{let[g,v]=o(!1),y=a(null),b=a(``),[x,S]=o(!1),C=()=>{v(e=>!e),e.chain().focus().setHighlight({color:`#accef7`}).run()},w=()=>{v(!1),b.current=``,e.chain().focus().unsetHighlight().run()},T=e=>{b.current=e.target.value},E=e=>{e.key===`Enter`&&D()},D=()=>{if(!n(b.current)){S(!0);return}b.current.includes(`http`)||(b.current=`https://${b.current}`),e.chain().focus().extendMarkRange(`link`).setLink({href:b.current}).run(),w(),x&&S(!1)},O=()=>e?.chain().focus().unsetLink().run();if(!(u&&!u.includes(t.LINKS)))return p(d,{children:[p(i.Section,{children:[f(i.Button,{active:g,ref:y,icon:m,onClick:C,disabled:e.state.selection.empty,"data-testid":`link-button`,tooltip:`Link`}),f(i.Button,{icon:h,onClick:O,disabled:!e.isActive(`link`),"data-testid":`unsetlink-button`,tooltip:`Remove Link`})]}),g&&f(l,{open:!0,anchorEl:y.current,onClose:w,children:p(_,{children:[f(r,{inputRef:e=>{e?.focus()},id:`link`,placeholder:`Insert link`,autoComplete:`off`,inputIcon:f(c,{data:m}),onChange:T,onKeyDown:E,variant:x?`error`:void 0}),f(s,{variant:`outlined`,onClick:D,children:`Save`})]})})]})};export{v as TextLinks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{VARIANT_COLORS as e,VARIANT_HELPER_TEXT_COLORS as t,colors as n}from"../../atoms/style/colors.js";import{getFeatures as r}from"../../atoms/utils/richtext.js";import{getVariantIcon as i}from"../../atoms/utils/forms.js";import{EditorContent as a,EditorStyling as o,HelperWrapper as s,LabelWrapper as c,Wrapper as l}from"./RichTextEditor.styles.js";import{AmplifyBar as u}from"./MenuBar/MenuBar.js";import{EditorProvider as d}from"./EditorProvider.js";import{Icon as f,Typography as p}from"@equinor/eds-core-react";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g=({value:g,onChange:_,onImageUpload:v,onImageRead:y,onImageRemove:b,onRemovedImagesChange:x,placeholder:S,features:C,extendFeatures:w,removeFeatures:T,padding:E=`md`,maxHeight:D,minHeight:O,lightBackground:k,border:A=!0,highlighted:j=!1,variant:M,label:N,meta:P,helperText:F})=>{if(b&&x)throw Error(`onImageRemove and onRemovedImagesChange cannot be used together`);let I=r({features:C,extendFeatures:w,removeFeatures:T,onImageUpload:v}),L=i(M);return m(d,{content:g,onUpdate:_,features:I,placeholder:S,onImageUpload:v,onImageRead:y,onImageRemove:b,onRemovedImagesChange:x,children:r=>h(l,{style:{height:D===void 0?`100%`:void 0},children:[N&&h(c,{children:[m(p,{variant:`label`,group:`input`,children:N}),P&&m(p,{variant:`helper`,group:`input`,children:P})]}),h(o,{"data-testid":`richtext-editor`,$border:A,$padding:E,$lightBackground:k,$highlighted:j,$variant:M,children:[m(u,{editor:r,features:I,onImageUpload:v}),m(a,{editor:r,$maxHeight:D,$minHeight:O})]}),F&&h(s,{children:[L&&M?m(f,{data:L,size:16,color:e[M]}):null,m(p,{variant:`helper`,group:`input`,color:M?t[M]:n.text.static_icons__tertiary.rgba,children:F})]})]})})};export{g as RichTextEditor};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{VARIANT_COLORS as e}from"
|
|
1
|
+
import{VARIANT_COLORS as e,colors as t}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";import{shape as r,typography as i}from"../../atoms/style/index.js";import a from"styled-components";import{EditorContent as o}from"@tiptap/react";const s=a(o)`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-rows: 1fr;
|
|
4
4
|
overflow-y: auto;
|
|
5
5
|
min-height: ${e=>e.$minHeight||`auto`};
|
|
6
6
|
max-height: ${e=>e.$maxHeight||`auto`};
|
|
7
|
-
`,c=
|
|
7
|
+
`,c=a.div`
|
|
8
8
|
display: grid;
|
|
9
9
|
grid-template-rows: auto 1fr;
|
|
10
|
-
background: ${
|
|
10
|
+
background: ${t.ui.background__default.rgba};
|
|
11
11
|
border-radius: ${r.corners.borderRadius} ${r.corners.borderRadius} 0 0;
|
|
12
|
-
border: ${e=>e.$border?`1px solid ${
|
|
12
|
+
border: ${e=>e.$border?`1px solid ${t.ui.background__medium.rgba}`:`none`};
|
|
13
13
|
border-bottom: none;
|
|
14
14
|
|
|
15
15
|
&:has(div[contenteditable='true']) {
|
|
@@ -17,32 +17,32 @@ import{VARIANT_COLORS as e}from"src/atoms/style/colors";import t from"styled-com
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
& [data-placeholder]::before {
|
|
20
|
-
color: ${
|
|
20
|
+
color: ${t.text.static_icons__tertiary.rgba} !important;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.tiptap {
|
|
24
24
|
box-sizing: border-box;
|
|
25
25
|
overflow-y: auto;
|
|
26
|
-
background: ${e=>e.$lightBackground?`${
|
|
26
|
+
background: ${e=>e.$lightBackground?`${t.ui.background__default.rgba}`:`${t.ui.background__light.rgba}`};
|
|
27
27
|
|
|
28
28
|
&[contenteditable='true'] {
|
|
29
|
-
box-shadow: ${({$highlighted:
|
|
29
|
+
box-shadow: ${({$highlighted:n,$variant:r})=>n?`inset 0 -2px ${t.dataviz.darkblue.darker}`:r?`inset 0 -2px ${e[r]}`:`inset 0 -1px ${t.ui.background__medium.rgba}`};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
padding: ${e=>{switch(e.$padding){case`sm`:return
|
|
32
|
+
padding: ${e=>{switch(e.$padding){case`sm`:return n.small;case`md`:return n.medium;case`lg`:return n.large;case`none`:default:return 0}}};
|
|
33
33
|
|
|
34
34
|
a {
|
|
35
|
-
color: ${
|
|
35
|
+
color: ${t.interactive.primary__resting.rgba};
|
|
36
36
|
}
|
|
37
37
|
a:hover {
|
|
38
38
|
cursor: pointer;
|
|
39
|
-
color: ${
|
|
39
|
+
color: ${t.interactive.primary__hover.rgba};
|
|
40
40
|
}
|
|
41
41
|
p {
|
|
42
42
|
font-size: 16px;
|
|
43
43
|
font-family: 'Equinor', sans-serif;
|
|
44
|
-
color: ${
|
|
45
|
-
line-height: ${
|
|
44
|
+
color: ${t.text.static_icons__default.rgba};
|
|
45
|
+
line-height: ${i.paragraph.body_long.lineHeight};
|
|
46
46
|
margin: 0;
|
|
47
47
|
}
|
|
48
48
|
ul,
|
|
@@ -91,7 +91,7 @@ import{VARIANT_COLORS as e}from"src/atoms/style/colors";import t from"styled-com
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
th {
|
|
94
|
-
background-color: ${({$lightBackground:e})=>e?`#f1f3f5`:
|
|
94
|
+
background-color: ${({$lightBackground:e})=>e?`#f1f3f5`:t.ui.background__default.rgba};
|
|
95
95
|
font-weight: bold;
|
|
96
96
|
text-align: left;
|
|
97
97
|
}
|
|
@@ -125,30 +125,30 @@ import{VARIANT_COLORS as e}from"src/atoms/style/colors";import t from"styled-com
|
|
|
125
125
|
|
|
126
126
|
&:focus-visible {
|
|
127
127
|
outline: none;
|
|
128
|
-
box-shadow: inset 0 -2px ${
|
|
128
|
+
box-shadow: inset 0 -2px ${t.interactive.primary__resting.rgba};
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.tiptap p.is-editor-empty:first-child::before {
|
|
133
|
-
color: ${
|
|
133
|
+
color: ${t.text.static_icons__default.rgba};
|
|
134
134
|
content: attr(data-placeholder);
|
|
135
135
|
float: left;
|
|
136
136
|
height: 0;
|
|
137
137
|
pointer-events: none;
|
|
138
138
|
}
|
|
139
|
-
`,l=
|
|
139
|
+
`,l=a.div`
|
|
140
140
|
display: flex;
|
|
141
141
|
flex-direction: column;
|
|
142
|
-
`,u=
|
|
142
|
+
`,u=a.div`
|
|
143
143
|
display: flex;
|
|
144
144
|
justify-content: space-between;
|
|
145
|
-
padding: 0 ${
|
|
145
|
+
padding: 0 ${n.small};
|
|
146
146
|
> p {
|
|
147
|
-
color: ${
|
|
147
|
+
color: ${t.text.static_icons__tertiary.rgba};
|
|
148
148
|
}
|
|
149
|
-
`,d=
|
|
149
|
+
`,d=a.div`
|
|
150
150
|
display: flex;
|
|
151
|
-
gap: ${
|
|
152
|
-
padding-left: ${
|
|
153
|
-
margin-top: ${
|
|
151
|
+
gap: ${n.small};
|
|
152
|
+
padding-left: ${n.small};
|
|
153
|
+
margin-top: ${n.small};
|
|
154
154
|
`;export{s as EditorContent,c as EditorStyling,d as HelperWrapper,u as LabelWrapper,l as Wrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Typography as e}from"@equinor/eds-core-react";import{jsx as t}from"react/jsx-runtime";import n from"@tiptap/extension-heading";import{NodeViewContent as r,NodeViewWrapper as i,ReactNodeViewRenderer as a}from"@tiptap/react";const o=n=>{let a=n.node.attrs.level,o=`h1`;return a===2&&(o=`h2`),a===3&&(o=`h3`),a===4&&(o=`h4`),a===5&&(o=`h5`),a===6&&(o=`h6`),t(i,{children:t(e,{variant:o,children:t(r,{className:`content is-editable`})})})};var s=n.extend({content:`inline*`,addNodeView(){return a(o)}});export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRichTextImage as e}from"../../../atoms/hooks/useRichTextImage.js";import{jsx as t}from"react/jsx-runtime";import{NodeViewWrapper as n,ReactNodeViewRenderer as r}from"@tiptap/react";import i from"@tiptap/extension-image";import{Plugin as a,PluginKey as o}from"@tiptap/pm/state";const s=r=>{let{src:i,alt:a}=r.node.attrs,o=r.extension.options.onImageRead,{data:s}=e(i,o);return t(n,{children:t(`img`,{src:s,alt:a})})};var c=i.extend({addOptions(){return{...this.parent?.(),onImageUpload:void 0,onImageRead:void 0}},addNodeView(){return r(s)},addProseMirrorPlugins(){let{onImageUpload:e}=this.options;return[new a({key:new o(`extendedImageHandler`),props:{handleDOMEvents:{drop(t,n){if(!n.dataTransfer?.files?.length||e===void 0)return;let r=Array.from(n.dataTransfer.files).filter(e=>/image/i.test(e.type));if(r.length===0)return;n.preventDefault();let{schema:i}=t.state,a=t.posAtCoords({left:n.clientX,top:n.clientY});if(a)for(let n of r)e(n).then(e=>{if(!e)return;let n=i.nodes.image.create({src:e.src,alt:e.alt}),r=t.state.tr.insert(a.pos,n);t.dispatch(r)}).catch(e=>{console.error(e)})},paste(t,n){if(!n.clipboardData?.files?.length||e===void 0)return;let r=Array.from(n.clipboardData.files).filter(e=>/image/i.test(e.type));if(r.length===0)return;n.preventDefault();let{schema:i}=t.state;for(let n of r)e(n).then(e=>{if(!e)return;let n=i.nodes.image.create({src:e.src,alt:e.src}),r=t.state.tr.replaceSelectionWith(n);t.dispatch(r)}).catch(e=>{console.error(e)})}}}})]}});export{c as default};
|
|
@@ -2,16 +2,16 @@ import { EditorStylingProps, RichTextContentProps } from "./RichTextEditor.style
|
|
|
2
2
|
import { EditorProviderProps } from "./EditorProvider.js";
|
|
3
3
|
import { MenuBarProps } from "./MenuBar/MenuBar.js";
|
|
4
4
|
import { RichTextEditor } from "./RichTextEditor.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react23 from "react";
|
|
6
6
|
import * as _tiptap_react0 from "@tiptap/react";
|
|
7
7
|
import * as styled_components_dist_types0 from "styled-components/dist/types";
|
|
8
8
|
|
|
9
9
|
//#region src/molecules/RichTextEditor/index.d.ts
|
|
10
10
|
declare const RichText: {
|
|
11
|
-
Styling: styled_components_dist_types0.IStyledComponentBase<"web", styled_components_dist_types0.Substitute<
|
|
12
|
-
Provider:
|
|
13
|
-
Content: styled_components_dist_types0.IStyledComponentBase<"web", styled_components_dist_types0.Substitute<Omit<_tiptap_react0.EditorContentProps, "ref"> &
|
|
14
|
-
Bar:
|
|
11
|
+
Styling: styled_components_dist_types0.IStyledComponentBase<"web", styled_components_dist_types0.Substitute<react23.DetailedHTMLProps<react23.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, EditorStylingProps>> & string;
|
|
12
|
+
Provider: react23.FC<EditorProviderProps>;
|
|
13
|
+
Content: styled_components_dist_types0.IStyledComponentBase<"web", styled_components_dist_types0.Substitute<Omit<_tiptap_react0.EditorContentProps, "ref"> & react23.RefAttributes<HTMLDivElement>, RichTextContentProps>> & string & Omit<react23.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react23.RefAttributes<HTMLDivElement>>, keyof react23.Component<any, {}, any>>;
|
|
14
|
+
Bar: react23.FC<MenuBarProps>;
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
17
17
|
export { RichText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{EditorContent as e,EditorStyling as t}from"./RichTextEditor.styles.js";import{AmplifyBar as n}from"./MenuBar/MenuBar.js";import{EditorProvider as r}from"./EditorProvider.js";import{RichTextEditor as i}from"./RichTextEditor.js";const a={Styling:t,Provider:r,Content:e,Bar:n};export{a as RichText};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react39 from "react";
|
|
2
2
|
import { SearchProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/Search/Search.d.ts
|
|
5
|
-
declare const Search$1:
|
|
5
|
+
declare const Search$1: react39.ForwardRefExoticComponent<SearchProps & react39.RefAttributes<HTMLInputElement>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Search$1 as Search };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{animation as e}from"../../atoms/style/animation.js";import{colors as t}from"../../atoms/style/colors.js";import{forwardRef as n}from"react";import{Search as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a}from"react/jsx-runtime";const o=i(r)`
|
|
2
2
|
input {
|
|
3
|
-
color: ${
|
|
3
|
+
color: ${t.text.static_icons__default.rgba};
|
|
4
4
|
transition:
|
|
5
|
-
background ${
|
|
6
|
-
box-shadow ${
|
|
5
|
+
background ${e.transitionMS},
|
|
6
|
+
box-shadow ${e.transitionMS};
|
|
7
7
|
&:hover {
|
|
8
|
-
background: ${
|
|
9
|
-
box-shadow: inset 0 -2px 0 0 ${
|
|
8
|
+
background: ${t.ui.background__light_medium.rgba};
|
|
9
|
+
box-shadow: inset 0 -2px 0 0 ${t.text.static_icons__tertiary.rgba};
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";impor
|
|
|
14
14
|
outline: none !important;
|
|
15
15
|
|
|
16
16
|
input {
|
|
17
|
-
box-shadow: inset 0 -2px 0 0 ${
|
|
17
|
+
box-shadow: inset 0 -2px 0 0 ${t.interactive.primary__resting.rgba};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,s=
|
|
20
|
+
`,s=n((e,t)=>a(o,{...e,ref:t,autoComplete:`off`}));s.displayName=`HeaderDrawer`;export{s as Search};
|
|
@@ -0,0 +1 @@
|
|
|
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})=>i(t,{children:a(n,{index:l,ref:e=>{s.current[l]=e},onClick:u,onKeyDownCapture:e=>{e.preventDefault(),e.key===`Enter`?u():c(e)},children:[i(r,{data:o,color:e.interactive.primary__resting.rgba}),a(`span`,{children:[`Add "`,f,`" as new `,d]})]})});export{s as AddTagItem};
|
|
@@ -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 ComboBox};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { BaseChipProps, ClickableChipProps, DeletableChipProps } from "../Chip/Chip.js";
|
|
2
|
-
import * as
|
|
3
|
-
import "styled-components";
|
|
2
|
+
import * as react43 from "react";
|
|
4
3
|
import "@equinor/eds-core-react";
|
|
4
|
+
import "styled-components";
|
|
5
5
|
import * as styled_components_dist_types8 from "styled-components/dist/types";
|
|
6
6
|
|
|
7
7
|
//#region src/molecules/Select/Select.styles.d.ts
|
|
@@ -11,12 +11,12 @@ interface ComboBoxChipProps {
|
|
|
11
11
|
$lightBackground?: boolean;
|
|
12
12
|
className: string;
|
|
13
13
|
}
|
|
14
|
-
declare const ComboBoxChip: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<((Omit<
|
|
14
|
+
declare const ComboBoxChip: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<((Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
|
|
15
15
|
onClick?: undefined;
|
|
16
16
|
onDelete?: undefined;
|
|
17
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
17
|
+
}) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types8.BaseObject, ComboBoxChipProps>> & string & Omit<react43.ForwardRefExoticComponent<(Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
|
|
18
18
|
onClick?: undefined;
|
|
19
19
|
onDelete?: undefined;
|
|
20
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
20
|
+
}) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react43.Component<any, {}, any>>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ComboBoxChip };
|