@equinor/amplify-component-lib 13.2.6 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/index.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +6 -5
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/molecules/Button/Button.d.ts +2 -2
- package/dist/molecules/Button/types.d.ts +1 -1
- package/dist/molecules/Chip/Chip.d.ts +1 -1
- package/dist/molecules/Chip/Chip.styles.js +3 -3
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.d.ts +2 -2
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.styles.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- 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/TextColor.js +2 -2
- package/dist/molecules/RichTextEditor/index.d.ts +6 -6
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/GroupedSelectPersistent.js +1 -1
- package/dist/molecules/Select/ListSelectPersistent.js +1 -1
- package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/Select.styles.js +35 -28
- package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -4
- package/dist/molecules/Tabs/Tabs.d.ts +2 -2
- package/dist/molecules/TextField/TextField.js +3 -3
- package/dist/molecules/Toast/Toast.d.ts +2 -2
- package/dist/molecules/Toast/Toast.js +1 -1
- package/dist/molecules/Toast/Toast.styles.js +55 -87
- package/dist/molecules/Toast/Toast.utils.js +1 -1
- package/dist/molecules/Tooltip/Tooltip.d.ts +14 -0
- package/dist/molecules/Tooltip/Tooltip.js +1 -0
- package/dist/molecules/Tooltip/Tooltip.styles.js +91 -0
- package/dist/molecules/Tooltip/utils.js +1 -0
- package/dist/molecules/index.d.ts +1 -1
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/CreateItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +4 -4
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/ToggleOpen.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
- package/dist/organisms/Template/Template.d.ts +5 -5
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +2 -2
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +2 -2
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.js +1 -1
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/UmuxDialog.js +2 -2
- package/package.json +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +0 -19
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react239 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/hooks/useLocalStorage.d.ts
|
|
4
|
-
declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T,
|
|
4
|
+
declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react239.Dispatch<react239.SetStateAction<T>>, () => void];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useLocalStorage };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOption, SelectOptionRequired } from "../../molecules/Select/Select.types.js";
|
|
2
2
|
import { SelectComponentProps } from "../../molecules/Select/Select.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react237 from "react";
|
|
4
4
|
import { ChangeEvent, KeyboardEvent } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/hooks/useSelect.d.ts
|
|
@@ -16,8 +16,8 @@ declare const useSelect: <T extends SelectOptionRequired>(props: SelectComponent
|
|
|
16
16
|
handleOnOpen: () => void;
|
|
17
17
|
handleOnRemoveItem: (item: SelectOption<T>) => void;
|
|
18
18
|
search: string;
|
|
19
|
-
searchRef:
|
|
20
|
-
itemRefs:
|
|
19
|
+
searchRef: react237.RefObject<HTMLInputElement | null>;
|
|
20
|
+
itemRefs: react237.RefObject<(HTMLButtonElement | null)[]>;
|
|
21
21
|
selectedValues: T[];
|
|
22
22
|
open: boolean;
|
|
23
23
|
tryingToRemoveItem: T | undefined;
|
package/dist/atoms/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./enums/Environment.js";import"./utils/auth_environment.js";import"./style/animation.js";import"./style/colors.js";import"./style/spacings.js";import{style_exports as e}from"./style/index.js";import"./utils/coordinate.js";import"./utils/date.js";import"./utils/export.js";import"./utils/favicon.js";import"./utils/map.js";import"./utils/reactquery.js";import"./utils/richtext.js";import"./utils/size.js";import"./utils/sort.js";import"./utils/string.js";import"./utils/url.js";import"./utils/tutorials.js";import"./utils/forms.js";import"../providers/AuthProvider/AuthProvider.js";import"../providers/SideBarProvider.js";import"../providers/SnackbarProvider/SnackbarProvider.js";import"./hooks/useOnScreenMultiple.js";import"../providers/TableOfContentsProvider.js";import"./hooks/useLocalStorage.js";import"./hooks/useAmplifyKit.js";import"./hooks/useDebounce.js";import"./hooks/useFakeProgress.js";import"./hooks/usePrevious.js";import"./hooks/useSelect.js";import"./hooks/useStatusNavigation.js";import"../organisms/TopBar/Notifications/NotificationProvider.js";import"../providers/StepperProvider.js";import"./enums/Theme.js";import"../providers/ThemeProvider/ThemeProvider.js";import"./hooks/usePrefetchRichTextImages.js";import"./hooks/useFaqsInApplication.js";import"
|
|
1
|
+
import"./enums/Environment.js";import"./utils/auth_environment.js";import"./style/animation.js";import"./style/colors.js";import"./style/spacings.js";import{style_exports as e}from"./style/index.js";import"./utils/coordinate.js";import"./utils/date.js";import"./utils/export.js";import"./utils/favicon.js";import"./utils/map.js";import"./utils/reactquery.js";import"./utils/richtext.js";import"./utils/size.js";import"./utils/sort.js";import"./utils/string.js";import"./utils/url.js";import"./utils/tutorials.js";import"./utils/forms.js";import"../providers/AuthProvider/AuthProvider.js";import"../providers/SideBarProvider.js";import"../providers/SnackbarProvider/SnackbarProvider.js";import"./hooks/useOnScreenMultiple.js";import"../providers/TableOfContentsProvider.js";import"./hooks/useLocalStorage.js";import"./hooks/useAmplifyKit.js";import"./hooks/useDebounce.js";import"./hooks/useFakeProgress.js";import"./hooks/usePrevious.js";import"./hooks/useSelect.js";import"./hooks/useStatusNavigation.js";import"../organisms/TopBar/Notifications/NotificationProvider.js";import"../providers/StepperProvider.js";import"./enums/Theme.js";import"../providers/ThemeProvider/ThemeProvider.js";import"./hooks/usePrefetchRichTextImages.js";import"./hooks/useFaqsInApplication.js";import"../providers/ToastProvider/ToastProvider.js";import"../providers/ConfettiProvider/ConfettiProvider.js";import"./enums/Errors.js";import"./enums/SpacingsMode.js";import"./icons/drilling.js";import"./icons/map.js";import"./icons/other.js";import"./icons/wysiwyg.js";import"../providers/ReleaseNotesProvider.js";const t=e;export{t as style};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react4 from "react";
|
|
2
2
|
import { IconData } from "@equinor/eds-icons";
|
|
3
3
|
|
|
4
4
|
//#region src/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts
|
|
@@ -12,6 +12,6 @@ interface ExpandingIconButtonProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
|
|
14
14
|
*/
|
|
15
|
-
declare const ExpandingIconButton:
|
|
15
|
+
declare const ExpandingIconButton: react4.ForwardRefExoticComponent<ExpandingIconButtonProps & react4.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ExpandingIconButton };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react2 from "react";
|
|
2
|
+
import { TooltipProps } from "@equinor/eds-core-react";
|
|
2
3
|
import { IconData } from "@equinor/eds-icons";
|
|
3
4
|
|
|
4
5
|
//#region src/deprecated/IconToggleButton.d.ts
|
|
5
|
-
type Placement = '
|
|
6
|
-
interface Tooltip {
|
|
6
|
+
type Placement = TooltipProps['placement'];
|
|
7
|
+
interface Tooltip$1 {
|
|
7
8
|
title: string;
|
|
8
9
|
placement: Placement | string;
|
|
9
10
|
}
|
|
10
11
|
interface Toggle {
|
|
11
12
|
icon: IconData;
|
|
12
13
|
onClick?: () => void;
|
|
13
|
-
tooltip?: Tooltip;
|
|
14
|
+
tooltip?: Tooltip$1;
|
|
14
15
|
}
|
|
15
16
|
interface IconToggleButtonProps {
|
|
16
17
|
initialState?: boolean;
|
|
@@ -21,6 +22,6 @@ interface IconToggleButtonProps {
|
|
|
21
22
|
/**
|
|
22
23
|
* @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
|
|
23
24
|
*/
|
|
24
|
-
declare const IconToggleButton:
|
|
25
|
+
declare const IconToggleButton: react2.ForwardRefExoticComponent<IconToggleButtonProps & react2.RefAttributes<HTMLButtonElement>>;
|
|
25
26
|
//#endregion
|
|
26
27
|
export { IconToggleButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{forwardRef as e,useState as t}from"react";import{Button as n,Icon as r,Tooltip as i}from"@equinor/eds-core-react";import{jsx as a}from"react/jsx-runtime";const o=e(({initialState:e=!1,toggleOn:o,toggleOff:s,onClick:c},l)=>{let[u,d]=t(e);return u?a(i,{title:o.tooltip?.title,placement:o.tooltip?.placement,children:a(n,{ref:l,variant:`ghost_icon`,onClick:()=>{d(!1),c?.(u),o.onClick?.()},children:a(r,{size:24,data:o.icon})})}):a(i,{title:s.tooltip?.title,placement:s.tooltip?.placement,children:a(n,{ref:l,variant:`ghost_icon`,onClick:()=>{d(!0),c?.(u),s.onClick?.()},children:a(r,{size:24,data:s.icon})})})});o.displayName=`IconToggleButton`;export{o as default};
|
package/dist/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ import { IconCellColor, IconCellColorObject, IconCellColors, IconCellState, Icon
|
|
|
78
78
|
import { IconCell, IconCellProps } from "./molecules/IconCell/IconCell.js";
|
|
79
79
|
import { InfoElement, InfoElementProps } from "./molecules/InfoElement/InfoElement.js";
|
|
80
80
|
import { InformationalNotice, InformationalNoticeProps } from "./molecules/InformationalNotice/InformationalNotice.js";
|
|
81
|
-
import {
|
|
81
|
+
import { Tooltip, TooltipProps } from "./molecules/Tooltip/Tooltip.js";
|
|
82
82
|
import { ProfileAvatar, ProfileAvatarProps } from "./molecules/ProfileAvatar/ProfileAvatar.js";
|
|
83
83
|
import { RichTextDisplay, RichTextDisplayProps } from "./molecules/RichTextDisplay/RichTextDisplay.js";
|
|
84
84
|
import { AmplifyBar, EditorMenu, EditorText } from "./molecules/RichTextEditor/MenuBar/MenuBar.js";
|
|
@@ -135,4 +135,4 @@ import { Card, CardProps, DataGridProps } from "./organisms/index.js";
|
|
|
135
135
|
import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
|
|
136
136
|
import { IconToggleButton } from "./deprecated/IconToggleButton.js";
|
|
137
137
|
import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
|
|
138
|
-
export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconButton, IconButtonProps, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem,
|
|
138
|
+
export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconButton, IconButtonProps, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, PageNotFound, PageTitle, PersistentComboBox, PersistentComboBoxProps, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SideSheet, SideSheetProps, SingleSelect, SingleSelectProps, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, SurveyProvider, Switch, SwitchProps, Tab, TableHeader, TableHeaderProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Tag, TagProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, Toast, ToastProps, ToastProvider, ToggleGroup, Tooltip, TooltipProps, TopBar, TutorialHighlight, TutorialHighlightingProvider, Typography, TypographyProps, Waves, amplify_aml, amplify_arrow_up_down, amplify_branch, amplify_calculator, amplify_drag_handle, amplify_failure, amplify_h1, amplify_h2, amplify_h3, amplify_h4, amplify_info_small, amplify_lwd, amplify_merged, amplify_overlay, amplify_overview, amplify_resources, amplify_sharepoint, amplify_shield_person, amplify_sidebyside, amplify_small_portal, amplify_snail, amplify_sort_small, amplify_success, amplify_table_add_column_left, amplify_table_add_column_right, amplify_table_add_row_above, amplify_table_add_row_below, amplify_table_column_heading, amplify_table_merge_cells, amplify_table_remove_column, amplify_table_remove_row, amplify_table_row_heading, amplify_table_split_cell, amplify_tutorials, amplify_wellbore, amplify_wireline, amplify_wireline_cased_hole, amplify_wireline_open_hole, animation, auth, capitalize, cleanRichTextValue, colors, convertLatLngToUtm, convertUtmToLatLng, defaultQueryOptions, degrees2radians, distanceLatLng, elevation, environment, exportComponent, extractImageUrls, formatBytes, formatDataSize, formatDate, formatDateTime, formatKiloBytes, formatLatLng, formatRelativeDateTime, formatUtm, getFeatures, getHighlightElementBoundingBox, getImagesFromRichText, getVariantIcon, highlightTutorialElementID, imageToB64, isBetweenDates, isValidUrl, setupIcons, shape, skeletonBaseloading, sortByDate, sortByWellboreName, spacings, style, typography, useAmplifyKit, useAuth, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, utmProjection };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{AnimatedCheckmark as _e}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ve}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as ye}from"./molecules/Badge/Badge.js";import{Banner as be}from"./molecules/Banner/Banner.js";import{Button as xe}from"./molecules/Button/Button.js";import{IconButton as Se}from"./molecules/Button/IconButton/IconButton.js";import{Chip as Ce}from"./molecules/Chip/Chip.js";import{Confetti as we}from"./molecules/Confetti/Confetti.js";import{SkeletonBase as Te,skeletonBaseloading as Ee}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as De}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as Oe}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as ke}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as Ae}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as je}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as Me}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as Ne}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Pe,IconCellStates as Fe,IconCellVariants as Ie}from"./molecules/IconCell/IconCell.types.js";import{ErrorType as Le}from"./atoms/enums/Errors.js";import{SpacingsMode as Re}from"./atoms/enums/SpacingsMode.js";import{IconCell as ze}from"./molecules/IconCell/IconCell.js";import{InfoElement as Be}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Ve}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as He}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Ue}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{amplify_h1 as We,amplify_h2 as Ge,amplify_h3 as Ke,amplify_h4 as qe,amplify_table_add_column_left as Je,amplify_table_add_column_right as Ye,amplify_table_add_row_above as Xe,amplify_table_add_row_below as Ze,amplify_table_column_heading as Qe,amplify_table_merge_cells as $e,amplify_table_remove_column as et,amplify_table_remove_row as tt,amplify_table_row_heading as nt,amplify_table_split_cell as rt}from"./atoms/icons/wysiwyg.js";import{TableMenuBar as it,TextTable as at}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as ot}from"./molecules/TextField/TextField.js";import{AmplifyBar as st,EditorMenu as ct,EditorText as lt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as ut}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as dt}from"./molecules/RichTextEditor/index.js";import{Tabs as ft}from"./molecules/Tabs/Tabs.js";import{Search as pt}from"./molecules/Search/Search.js";import{SkeletonGradient as mt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as ht}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as gt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as _t}from"./molecules/Select/Select.styles.js";import{ComboBox as vt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as yt}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as bt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as xt}from"./molecules/Tag/Tag.js";import{TableHeader as St}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as Ct}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as wt}from"./molecules/ListItem/ListItem.js";import{Checkbox as Tt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as Et}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Dt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as Ot}from"./molecules/Waves/Waves.js";import{Accordion as kt,Breadcrumbs as At,CircularProgress as jt,Divider as Mt,DotProgress as Nt,EDSDialog as Pt,Icon as Ft,LinearProgress as It,Menu as Lt,Typography as Rt}from"./molecules/index.js";import{Toast as zt}from"./molecules/Toast/Toast.js";import{ToastProvider as Bt,useToasts as Vt}from"./providers/ToastProvider/ToastProvider.js";import{ConfettiProvider as Ht,useConfetti as Ut}from"./providers/ConfettiProvider/ConfettiProvider.js";import{amplify_failure as Wt,amplify_lwd as Gt,amplify_success as Kt,amplify_wellbore as qt,amplify_wireline as Jt,amplify_wireline_cased_hole as Yt,amplify_wireline_open_hole as Xt}from"./atoms/icons/drilling.js";import{amplify_calculator as Zt,amplify_overlay as Qt,amplify_sidebyside as $t}from"./atoms/icons/map.js";import{amplify_aml as en,amplify_arrow_up_down as tn,amplify_branch as nn,amplify_drag_handle as rn,amplify_info_small as an,amplify_merged as on,amplify_overview as sn,amplify_resources as cn,amplify_sharepoint as ln,amplify_shield_person as un,amplify_small_portal as dn,amplify_snail as fn,amplify_sort_small as pn,amplify_tutorials as mn}from"./atoms/icons/other.js";import{style as hn}from"./atoms/index.js";import{ReleaseNotesProvider as gn,useReleaseNotes as _n}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as vn}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as yn}from"./providers/LoadingProvider.js";import{SurveyProvider as bn}from"./providers/SurveyProvider/SurveyProvider.js";import{DataGrid as xn}from"./organisms/DataGrid/DataGrid.js";import{Template as Sn}from"./organisms/Template/Template.js";import{FieldSelector as Cn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as wn}from"./organisms/Filter/index.js";import{SideBar as Tn}from"./organisms/SideBar/index.js";import{ReleaseNote as En}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as Dn}from"./organisms/TopBar/index.js";import{BadRequest as On}from"./organisms/Status/collections/BadRequest.js";import{GenericError as kn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as An}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as jn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as Mn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as Nn}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as Pn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Fn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as In}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Ln}from"./organisms/ToggleGroup/index.js";import{Faq as Rn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as zn}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Bn}from"./organisms/index.js";import{ExpandingIconButton as Vn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Hn from"./deprecated/IconToggleButton.js";import{OldStepper as Un}from"./deprecated/OldStepper/OldStepper.js";export{kt as Accordion,st as AmplifyBar,ne as AmplifyKit,_e as AnimatedCheckmark,Nn as ApiResponseError,ve as ApplicationIcon,K as AuthProvider,On as BadRequest,ye as Badge,be as Banner,At as Breadcrumbs,xe as Button,Bn as Card,Tt as Checkbox,Ce as Chip,jt as CircularProgress,vt as ComboBox,_t as ComboBoxChip,we as Confetti,Ht as ConfettiProvider,w as DEFAULT_FEATURES,xn as DataGrid,De as DatePicker,Oe as DateRangePicker,Ae as Dialog,Mt as Divider,Nt as DotProgress,Pt as EDSDialog,ct as EditorMenu,lt as EditorText,R as Empty,e as EnvironmentType,je as EquinorLogo,Le as ErrorType,Vn as ExpandingIconButton,Rn as Faq,Ct as FeedBackIcon,Cn as FieldSelector,Me as FileProgress,Ne as FileUploadArea,wn as Filter,l as FullPageSpinner,kn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,Ft as Icon,Se as IconButton,ze as IconCell,Pe as IconCellColors,Fe as IconCellStates,Ie as IconCellVariants,Hn as IconToggleButton,Be as InfoElement,Ve as InformationalNotice,It as LinearProgress,wt as ListItem,yn as LoadingProvider,Lt as Menu,G as MissingAccessToApp,An as MissingPermissions,Un as OldStepper,gt as OptionDrawer,ke as OptionalTooltip,jn as PageNotFound,In as PageTitle,yt as PersistentComboBox,He as ProfileAvatar,Et as Radio,En as ReleaseNote,zn as ReleaseNotesPage,gn as ReleaseNotesProvider,dt as RichText,Ue as RichTextDisplay,ut as RichTextEditor,T as RichTextEditorFeatures,pt as Search,Mn as ServerError,Tn as SideBar,J as SideBarProvider,Pn as SideSheet,bt as SingleSelect,Te as SkeletonBase,mt as SkeletonGradient,X as SnackbarProvider,Re as SpacingsMode,W as Status,ht as Stepper,ue as StepperProvider,bn as SurveyProvider,Dt as Switch,St as TableHeader,it as TableMenuBar,Fn as TableOfContents,$ as TableOfContentsProvider,ft as Tabs,xt as Tag,Sn as Template,ot as TextField,at as TextTable,fe as Theme,pe as ThemeProvider,zt as Toast,Bt as ToastProvider,Ln as ToggleGroup,Dn as TopBar,vn as TutorialHighlightingProvider,Rt as Typography,Ot as Waves,en as amplify_aml,tn as amplify_arrow_up_down,nn as amplify_branch,Zt as amplify_calculator,rn as amplify_drag_handle,Wt as amplify_failure,We as amplify_h1,Ge as amplify_h2,Ke as amplify_h3,qe as amplify_h4,an as amplify_info_small,Gt as amplify_lwd,on as amplify_merged,Qt as amplify_overlay,sn as amplify_overview,cn as amplify_resources,ln as amplify_sharepoint,un as amplify_shield_person,$t as amplify_sidebyside,dn as amplify_small_portal,fn as amplify_snail,pn as amplify_sort_small,Kt as amplify_success,Je as amplify_table_add_column_left,Ye as amplify_table_add_column_right,Xe as amplify_table_add_row_above,Ze as amplify_table_add_row_below,Qe as amplify_table_column_heading,$e as amplify_table_merge_cells,et as amplify_table_remove_column,tt as amplify_table_remove_row,nt as amplify_table_row_heading,rt as amplify_table_split_cell,mn as amplify_tutorials,qt as amplify_wellbore,Jt as amplify_wireline,Yt as amplify_wireline_cased_hole,Xt as amplify_wireline_open_hole,r as animation,t as auth,z as capitalize,O as cleanRichTextValue,i as colors,v as convertLatLngToUtm,y as convertUtmToLatLng,C as defaultQueryOptions,b as degrees2radians,x as distanceLatLng,o as elevation,n as environment,g as exportComponent,k as extractImageUrls,N as formatBytes,P as formatDataSize,f as formatDate,p as formatDateTime,F as formatKiloBytes,u as formatLatLng,m as formatRelativeDateTime,d as formatUtm,A as getFeatures,V as getHighlightElementBoundingBox,j as getImagesFromRichText,U as getVariantIcon,H as highlightTutorialElementID,M as imageToB64,h as isBetweenDates,B as isValidUrl,_ as setupIcons,s as shape,Ee as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,hn as style,c as typography,re as useAmplifyKit,q as useAuth,Ut as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,_n as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,Vt as useToasts,S as utmProjection};
|
|
1
|
+
import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{Button as _e}from"./molecules/Button/Button.js";import{IconButton as ve}from"./molecules/Button/IconButton/IconButton.js";import{Toast as ye}from"./molecules/Toast/Toast.js";import{ToastProvider as be,useToasts as xe}from"./providers/ToastProvider/ToastProvider.js";import{Confetti as Se}from"./molecules/Confetti/Confetti.js";import{ConfettiProvider as Ce,useConfetti as we}from"./providers/ConfettiProvider/ConfettiProvider.js";import{ErrorType as Te}from"./atoms/enums/Errors.js";import{SpacingsMode as Ee}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as De,amplify_lwd as Oe,amplify_success as ke,amplify_wellbore as Ae,amplify_wireline as je,amplify_wireline_cased_hole as Me,amplify_wireline_open_hole as Ne}from"./atoms/icons/drilling.js";import{amplify_calculator as Pe,amplify_overlay as Fe,amplify_sidebyside as Ie}from"./atoms/icons/map.js";import{amplify_aml as Le,amplify_arrow_up_down as Re,amplify_branch as ze,amplify_drag_handle as Be,amplify_info_small as Ve,amplify_merged as He,amplify_overview as Ue,amplify_resources as We,amplify_sharepoint as Ge,amplify_shield_person as Ke,amplify_small_portal as qe,amplify_snail as Je,amplify_sort_small as Ye,amplify_tutorials as Xe}from"./atoms/icons/other.js";import{amplify_h1 as Ze,amplify_h2 as Qe,amplify_h3 as $e,amplify_h4 as et,amplify_table_add_column_left as tt,amplify_table_add_column_right as nt,amplify_table_add_row_above as rt,amplify_table_add_row_below as it,amplify_table_column_heading as at,amplify_table_merge_cells as ot,amplify_table_remove_column as st,amplify_table_remove_row as ct,amplify_table_row_heading as lt,amplify_table_split_cell as ut}from"./atoms/icons/wysiwyg.js";import{style as dt}from"./atoms/index.js";import{ReleaseNotesProvider as ft,useReleaseNotes as pt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as mt}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as ht}from"./providers/LoadingProvider.js";import{SkeletonBase as gt,skeletonBaseloading as _t}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{TextField as vt}from"./molecules/TextField/TextField.js";import{Checkbox as yt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as bt}from"./molecules/SelectionControls/Radio/Radio.js";import{AnimatedCheckmark as xt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as St}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as Ct}from"./molecules/Badge/Badge.js";import{Banner as wt}from"./molecules/Banner/Banner.js";import{Chip as Tt}from"./molecules/Chip/Chip.js";import{DatePicker as Et}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as Dt}from"./molecules/DateRangePicker/DateRangePicker.js";import{Dialog as Ot}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as kt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as At}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as jt}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Mt,IconCellStates as Nt,IconCellVariants as Pt}from"./molecules/IconCell/IconCell.types.js";import{IconCell as Ft}from"./molecules/IconCell/IconCell.js";import{InfoElement as It}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Lt}from"./molecules/InformationalNotice/InformationalNotice.js";import{Tooltip as Rt}from"./molecules/Tooltip/Tooltip.js";import{ProfileAvatar as zt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Bt}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as Vt,TextTable as Ht}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as Ut,EditorMenu as Wt,EditorText as Gt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Kt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as qt}from"./molecules/RichTextEditor/index.js";import{Tabs as Jt}from"./molecules/Tabs/Tabs.js";import{Search as Yt}from"./molecules/Search/Search.js";import{SkeletonGradient as Xt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as Zt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Qt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as $t}from"./molecules/Select/Select.styles.js";import{ComboBox as en}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as tn}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as nn}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as rn}from"./molecules/Tag/Tag.js";import{TableHeader as an}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as on}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as sn}from"./molecules/ListItem/ListItem.js";import{Switch as cn}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as ln}from"./molecules/Waves/Waves.js";import{Accordion as un,Breadcrumbs as dn,CircularProgress as fn,Divider as pn,DotProgress as mn,EDSDialog as hn,Icon as gn,LinearProgress as _n,Menu as vn,Typography as yn}from"./molecules/index.js";import{SurveyProvider as bn}from"./providers/SurveyProvider/SurveyProvider.js";import{DataGrid as xn}from"./organisms/DataGrid/DataGrid.js";import{Template as Sn}from"./organisms/Template/Template.js";import{FieldSelector as Cn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as wn}from"./organisms/Filter/index.js";import{SideBar as Tn}from"./organisms/SideBar/index.js";import{ReleaseNote as En}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as Dn}from"./organisms/TopBar/index.js";import{BadRequest as On}from"./organisms/Status/collections/BadRequest.js";import{GenericError as kn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as An}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as jn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as Mn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as Nn}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as Pn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Fn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as In}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Ln}from"./organisms/ToggleGroup/index.js";import{Faq as Rn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as zn}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Bn}from"./organisms/index.js";import{ExpandingIconButton as Vn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Hn from"./deprecated/IconToggleButton.js";import{OldStepper as Un}from"./deprecated/OldStepper/OldStepper.js";export{un as Accordion,Ut as AmplifyBar,ne as AmplifyKit,xt as AnimatedCheckmark,Nn as ApiResponseError,St as ApplicationIcon,K as AuthProvider,On as BadRequest,Ct as Badge,wt as Banner,dn as Breadcrumbs,_e as Button,Bn as Card,yt as Checkbox,Tt as Chip,fn as CircularProgress,en as ComboBox,$t as ComboBoxChip,Se as Confetti,Ce as ConfettiProvider,w as DEFAULT_FEATURES,xn as DataGrid,Et as DatePicker,Dt as DateRangePicker,Ot as Dialog,pn as Divider,mn as DotProgress,hn as EDSDialog,Wt as EditorMenu,Gt as EditorText,R as Empty,e as EnvironmentType,kt as EquinorLogo,Te as ErrorType,Vn as ExpandingIconButton,Rn as Faq,on as FeedBackIcon,Cn as FieldSelector,At as FileProgress,jt as FileUploadArea,wn as Filter,l as FullPageSpinner,kn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,gn as Icon,ve as IconButton,Ft as IconCell,Mt as IconCellColors,Nt as IconCellStates,Pt as IconCellVariants,Hn as IconToggleButton,It as InfoElement,Lt as InformationalNotice,_n as LinearProgress,sn as ListItem,ht as LoadingProvider,vn as Menu,G as MissingAccessToApp,An as MissingPermissions,Un as OldStepper,Qt as OptionDrawer,jn as PageNotFound,In as PageTitle,tn as PersistentComboBox,zt as ProfileAvatar,bt as Radio,En as ReleaseNote,zn as ReleaseNotesPage,ft as ReleaseNotesProvider,qt as RichText,Bt as RichTextDisplay,Kt as RichTextEditor,T as RichTextEditorFeatures,Yt as Search,Mn as ServerError,Tn as SideBar,J as SideBarProvider,Pn as SideSheet,nn as SingleSelect,gt as SkeletonBase,Xt as SkeletonGradient,X as SnackbarProvider,Ee as SpacingsMode,W as Status,Zt as Stepper,ue as StepperProvider,bn as SurveyProvider,cn as Switch,an as TableHeader,Vt as TableMenuBar,Fn as TableOfContents,$ as TableOfContentsProvider,Jt as Tabs,rn as Tag,Sn as Template,vt as TextField,Ht as TextTable,fe as Theme,pe as ThemeProvider,ye as Toast,be as ToastProvider,Ln as ToggleGroup,Rt as Tooltip,Dn as TopBar,mt as TutorialHighlightingProvider,yn as Typography,ln as Waves,Le as amplify_aml,Re as amplify_arrow_up_down,ze as amplify_branch,Pe as amplify_calculator,Be as amplify_drag_handle,De as amplify_failure,Ze as amplify_h1,Qe as amplify_h2,$e as amplify_h3,et as amplify_h4,Ve as amplify_info_small,Oe as amplify_lwd,He as amplify_merged,Fe as amplify_overlay,Ue as amplify_overview,We as amplify_resources,Ge as amplify_sharepoint,Ke as amplify_shield_person,Ie as amplify_sidebyside,qe as amplify_small_portal,Je as amplify_snail,Ye as amplify_sort_small,ke as amplify_success,tt as amplify_table_add_column_left,nt as amplify_table_add_column_right,rt as amplify_table_add_row_above,it as amplify_table_add_row_below,at as amplify_table_column_heading,ot as amplify_table_merge_cells,st as amplify_table_remove_column,ct as amplify_table_remove_row,lt as amplify_table_row_heading,ut as amplify_table_split_cell,Xe as amplify_tutorials,Ae as amplify_wellbore,je as amplify_wireline,Me as amplify_wireline_cased_hole,Ne as amplify_wireline_open_hole,r as animation,t as auth,z as capitalize,O as cleanRichTextValue,i as colors,v as convertLatLngToUtm,y as convertUtmToLatLng,C as defaultQueryOptions,b as degrees2radians,x as distanceLatLng,o as elevation,n as environment,g as exportComponent,k as extractImageUrls,N as formatBytes,P as formatDataSize,f as formatDate,p as formatDateTime,F as formatKiloBytes,u as formatLatLng,m as formatRelativeDateTime,d as formatUtm,A as getFeatures,V as getHighlightElementBoundingBox,j as getImagesFromRichText,U as getVariantIcon,H as highlightTutorialElementID,M as imageToB64,h as isBetweenDates,B as isValidUrl,_ as setupIcons,s as shape,_t as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,dt as style,c as typography,re as useAmplifyKit,q as useAuth,we as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,pt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,xe as useToasts,S as utmProjection};
|
|
@@ -8,9 +8,9 @@ type BaseButtonProps = {
|
|
|
8
8
|
leadingContent?: ReactNode;
|
|
9
9
|
trailingContent?: ReactNode;
|
|
10
10
|
} & CommonButtonProps;
|
|
11
|
-
|
|
11
|
+
interface ButtonProps<TRouter extends RegisteredRouter = RegisteredRouter, TOptions = unknown> extends BaseButtonProps {
|
|
12
12
|
linkOptions?: ValidateLinkOptions<TRouter, TOptions>;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
declare function Button<TRouter extends RegisteredRouter, TOptions>(props: ButtonProps<TRouter, TOptions>): ReactNode;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Button, ButtonProps };
|
|
@@ -10,6 +10,6 @@ type CommonButtonProps = {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
ref?: Ref<HTMLButtonElement>;
|
|
12
12
|
as?: ElementType;
|
|
13
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement
|
|
13
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ButtonColors, ButtonVariants, CommonButtonProps };
|
|
@@ -5,7 +5,7 @@ import { IconData } from "@equinor/eds-icons";
|
|
|
5
5
|
//#region src/molecules/Chip/Chip.d.ts
|
|
6
6
|
interface BaseChipProps {
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
variant?: 'default' | 'white' | 'warning' | 'error';
|
|
8
|
+
variant?: 'default' | 'white' | 'warning' | 'error' | 'blue' | 'yellow' | 'purple' | 'pink' | 'green' | 'highContrast';
|
|
9
9
|
leadingIconData?: IconData;
|
|
10
10
|
}
|
|
11
11
|
type ReadOnlyChipProps = BaseChipProps & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{colors as t}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";import r,{css as i}from"styled-components";const{typography:a,shape:o}=e,s={default:{color:`${t.interactive.primary__resting.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.ui.background__medium.rgba}`,hover:{background:`${t.interactive.primary__hover_alt.rgba}`,color:`${t.interactive.primary__hover.rgba}`,borderColor:`${t.interactive.primary__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor
|
|
1
|
+
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{colors as t}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";import r,{css as i}from"styled-components";const{typography:a,shape:o}=e,s={default:{color:`${t.interactive.primary__resting.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.ui.background__medium.rgba}`,hover:{background:`${t.interactive.primary__hover_alt.rgba}`,color:`${t.interactive.primary__hover.rgba}`,borderColor:`${t.interactive.primary__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.interactive.primary__resting.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.interactive.primary__selected_hover.rgba}`,hover:{color:`${t.interactive.primary__hover.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.text.static_icons__default.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.primary__resting.rgba}`}}},white:{color:`${t.interactive.primary__resting.rgba}`,background:`${t.ui.background__default.rgba}`,borderColor:`${t.ui.background__medium.rgba}`,hover:{background:`${t.interactive.primary__hover_alt.rgba}`,color:`${t.interactive.primary__hover.rgba}`,borderColor:`${t.interactive.primary__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`}},warning:{color:`${t.dataviz.orange.darker}`,background:`${t.dataviz.orange.lighter}`,borderColor:`${t.dataviz.orange.lighter}`,hover:{color:`${t.dataviz.orange.darker}`,background:`${t.dataviz.orange.lighter}`,borderColor:`${t.dataviz.orange.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.orange.darker}`,background:`${t.dataviz.orange.muted}`,borderColor:`${t.dataviz.orange.muted}`,hover:{color:`${t.dataviz.orange.darker}`,background:`${t.dataviz.orange.muted}`,borderColor:`${t.dataviz.orange.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.orange.darker}`}}},error:{color:`${t.interactive.danger__text.rgba}`,background:`${t.interactive.danger__highlight.rgba}`,borderColor:`transparent`,hover:{color:`${t.interactive.danger__hover.rgba}`,background:`${t.ui.background__danger.rgba}`,borderColor:`${t.interactive.danger__text.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.interactive.danger__highlight.rgba}`,background:`${t.interactive.danger__hover.rgba}`,borderColor:`${t.interactive.danger__hover.rgba}`,hover:{color:`${t.interactive.danger__highlight.rgba}`,background:`${t.dataviz.lightpink.darker}`,borderColor:`${t.interactive.danger__text_hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.danger__highlight.rgba}`}}},blue:{color:`${t.dataviz.darkblue.darker}`,background:`${t.dataviz.lightblue.lighter}`,borderColor:`${t.dataviz.lightblue.lighter}`,hover:{color:`${t.dataviz.darkblue.darker}`,background:`${t.dataviz.lightblue.lighter}`,borderColor:`${t.dataviz.darkblue.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.darkblue.darker}`,background:`${t.dataviz.lightblue.darker}`,borderColor:`${t.dataviz.lightblue.darker}`,hover:{color:`${t.dataviz.darkblue.darker}`,background:`${t.dataviz.lightblue.darker}`,borderColor:`${t.dataviz.darkblue.default}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.darkblue.darker}`}}},yellow:{color:`${t.dataviz.darkyellow.darker}`,background:`${t.dataviz.lightyellow.lighter}`,borderColor:`${t.dataviz.lightyellow.lighter}`,hover:{color:`${t.dataviz.darkyellow.darker}`,background:`${t.dataviz.lightyellow.lighter}`,borderColor:`${t.dataviz.darkyellow.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.darkyellow.darker}`,background:`${t.dataviz.lightyellow.darker}`,borderColor:`${t.dataviz.lightyellow.darker}`,hover:{color:`${t.dataviz.darkyellow.darker}`,background:`${t.dataviz.lightyellow.darker}`,borderColor:`${t.dataviz.darkyellow.default}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.darkyellow.darker}`}}},purple:{color:`${t.dataviz.darkpurple.darker}`,background:`${t.dataviz.darkpurple.lighter}`,borderColor:`${t.dataviz.darkpurple.lighter}`,hover:{color:`${t.dataviz.darkpurple.darker}`,background:`${t.dataviz.darkpurple.lighter}`,borderColor:`${t.dataviz.darkpurple.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.darkpurple.darker}`,background:`${t.dataviz.lightpurple.default}`,borderColor:`${t.dataviz.lightpurple.default}`,hover:{color:`${t.dataviz.darkpurple.darker}`,background:`${t.dataviz.lightpurple.default}`,borderColor:`${t.dataviz.darkpurple.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.darkpurple.darker}`}}},pink:{color:`${t.dataviz.darkpink.darker}`,background:`${t.dataviz.darkpink.lighter}`,borderColor:`${t.dataviz.darkpink.lighter}`,hover:{color:`${t.dataviz.darkpink.darker}`,background:`${t.dataviz.darkpink.lighter}`,borderColor:`${t.dataviz.darkpink.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.darkpink.darker}`,background:`${t.dataviz.darkpink.muted}`,borderColor:`${t.dataviz.darkpink.muted}`,hover:{color:`${t.dataviz.darkpink.darker}`,background:`${t.dataviz.darkpink.muted}`,borderColor:`${t.dataviz.darkpink.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.darkpink.darker}`}}},green:{color:`${t.dataviz.darkgreen.darker}`,background:`${t.dataviz.lightgreen.lighter}`,borderColor:`${t.dataviz.lightgreen.lighter}`,hover:{color:`${t.dataviz.darkgreen.darker}`,background:`${t.dataviz.lightgreen.lighter}`,borderColor:`${t.dataviz.darkgreen.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.dataviz.darkgreen.darker}`,background:`${t.dataviz.lightgreen.default}`,borderColor:`transparent`,hover:{color:`${t.dataviz.darkgreen.darker}`,background:`${t.dataviz.lightgreen.default}`,borderColor:`${t.dataviz.darkgreen.darker}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.dataviz.darkgreen.darker}`}}},highContrast:{color:`${t.text.static_icons__default.rgba}`,background:`${t.ui.background__default.rgba}`,borderColor:`${t.text.static_icons__default.rgba}`,hover:{color:`${t.text.static_icons__default.rgba}`,background:`${t.ui.background__light_medium.rgba}`,borderColor:`${t.text.static_icons__default.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`transparent`},selected:{color:`${t.text.static_icons__default.rgba}`,background:`${t.ui.background__medium.rgba}`,borderColor:`${t.ui.background__medium.rgba}`,hover:{color:`${t.text.static_icons__default.rgba}`,background:`${t.ui.background__medium.rgba}`,borderColor:`${t.text.static_icons__default.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.text.static_icons__default.rgba}`}}}},c=(e=`default`,t=!1)=>{let n=s[t&&e===`white`?`default`:e];return t&&n.selected?n.selected:n},l=i`
|
|
2
2
|
outline: 1px solid ${t.ui.background__medium.rgba};
|
|
3
3
|
display: flex;
|
|
4
4
|
width: fit-content;
|
|
@@ -59,7 +59,7 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
59
59
|
${l}
|
|
60
60
|
${e=>{let n=c(e.variant,!0);return i`
|
|
61
61
|
color: ${t.text.static_icons__default.rgba};
|
|
62
|
-
background-color: ${e.variant===`white`?s.white.background:t.ui.background__light.rgba};
|
|
63
|
-
outline: 1px solid ${n.
|
|
62
|
+
background-color: ${e.variant===`white`||e.variant===`highContrast`?s.white.background:t.ui.background__light.rgba};
|
|
63
|
+
outline: 1px solid ${n.color};
|
|
64
64
|
`}}
|
|
65
65
|
`;export{u as InteractiveChipStyle,d as ReadOnlyChipStyle};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react14 from "react";
|
|
3
3
|
import { DatePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DatePicker/DatePicker.d.ts
|
|
@@ -9,11 +9,11 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant' | 'defaultValue'> & {
|
|
|
9
9
|
meta?: string;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const DatePicker$1:
|
|
12
|
+
declare const DatePicker$1: react14.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
|
|
13
13
|
variant?: Variants;
|
|
14
14
|
defaultValue?: Date | undefined;
|
|
15
15
|
meta?: string;
|
|
16
16
|
loading?: boolean;
|
|
17
|
-
} &
|
|
17
|
+
} & react14.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react8 from "react";
|
|
3
3
|
import { DateRangePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DateRangePicker/DateRangePicker.d.ts
|
|
@@ -8,10 +8,10 @@ type DateRangePickerProps$1 = Omit<DateRangePickerProps, 'variant'> & {
|
|
|
8
8
|
meta?: string;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare const DateRangePicker$1:
|
|
11
|
+
declare const DateRangePicker$1: react8.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
|
|
12
12
|
variant?: Variants;
|
|
13
13
|
meta?: string;
|
|
14
14
|
loading?: boolean;
|
|
15
|
-
} &
|
|
15
|
+
} & react8.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonColors, ButtonVariants } from "../Button/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react12 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { DialogProps } from "@equinor/eds-core-react";
|
|
5
5
|
import { IconData } from "@equinor/eds-icons";
|
|
@@ -52,6 +52,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
|
|
|
52
52
|
* @param additionalInfo - Defaults to empty, and won't show the additional info button
|
|
53
53
|
* Also inherits props from EDS dialog
|
|
54
54
|
*/
|
|
55
|
-
declare const Dialog$1:
|
|
55
|
+
declare const Dialog$1: react12.ForwardRefExoticComponent<DialogProps$1 & react12.RefAttributes<HTMLDivElement>>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Button as e}from"../Button/Button.js";import{
|
|
1
|
+
import{Button as e}from"../Button/Button.js";import{Icon as t,Tooltip as n}from"@equinor/eds-core-react";import{jsx as r}from"react/jsx-runtime";const i=({text:i,variant:a,color:o,onClick:s,icon:c,disabled:l,isLoading:u=!1})=>r(n,{title:typeof l==`string`?l:``,children:r(e,{variant:a,color:o,onClick:s,disabled:l!==void 0&&!!l,loading:u,leadingContent:c&&r(t,{data:c}),children:i})});export{i as DialogAction};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SizeIconProps } from "../../atoms/types/Icon.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react10 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/EquinorLogo/EquinorLogo.d.ts
|
|
5
5
|
interface EquinorLogoProps extends Partial<SizeIconProps> {
|
|
6
6
|
large?: boolean;
|
|
7
7
|
color?: 'red' | 'white' | 'black';
|
|
8
8
|
}
|
|
9
|
-
declare const EquinorLogo:
|
|
9
|
+
declare const EquinorLogo: react10.ForwardRefExoticComponent<EquinorLogoProps & react10.RefAttributes<SVGSVGElement>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { EquinorLogo, EquinorLogoProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{AdditionalText as t,CircularProgress as n,CloseButton as r,CompactFileProgressContainer as i,DoneWrapper as a,FileTooltip as o,LoadingWrapper as s,Rejection as c}from"./CompactFileProgress.styles.js";import{getFileIcon as l,isFileImage as u,readUploadedFileAsText as d}from"./FileProgress.utils.js";import{useEffect as f,useMemo as p,useState as m}from"react";import{Icon as h,Tooltip as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";const S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=m(``);return f(()=>{C||(async e=>{j(await d(e))})(S)},[C,S]),y(i,{$isError:C,children:[v(o,{title:p(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),children:p(()=>C?y(c,{children:[v(h,{data:x,color:e.interactive.warning__text.rgba}),v(`div`,{children:w&&w.length>0?w:`Invalid file type`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.interactive.warning__text.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}):T&&!O&&u(S.name)?v(a,{children:v(`img`,{src:A,alt:` ${S.name}`})}):T&&!O?v(a,{children:v(h,{data:l(S.name)})}):y(s,{children:[v(n,{variant:k.indeterminate||O?`indeterminate`:`determinate`,value:!k.isDone&&!k.indeterminate?k.progressPercent:void 0,size:24}),v(_,{variant:`meta`,children:`Uploading...`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.ui.background__medium.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}),[C,T,O,w,A,S.name,k])}),v(g,{title:S.name,children:v(t,{group:`paragraph`,variant:`meta`,children:S.name})}),!O&&k.onDelete&&v(r,{"data-testid":`delete-file`,onClick:D,children:v(h,{color:e.text.static_icons__tertiary.rgba,data:b})})]})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{DividerRow as n,MediumUploadWrapper as r,SmallUploadWrapper as i,UploadWrapper as a}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as o}from"./FileUploadArea.constants.js";import{UploadIllustration as s}from"./UploadIllustration.js";import{useEffect as c,useMemo as l,useState as u}from"react";import{Icon as d,Tooltip as f,Typography as p}from"@equinor/eds-core-react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{folder as g}from"@equinor/eds-icons";import{useDropzone as _}from"react-dropzone";const v=({size:v=`large`,...y})=>{let{getRootProps:b,getInputProps:x,isDragActive:S}=_({...y}),[C,w]=u(!1);c(()=>{let e=e=>{e.preventDefault(),C||w(!0)},t=e=>{(e.clientX===0||e.clientY===0||e.clientX===window.innerWidth||e.clientY===window.innerHeight)&&w(!1)},n=()=>{w(!1)},r=()=>{w(!1)};return window.addEventListener(`dragover`,e),window.addEventListener(`dragleave`,t),window.addEventListener(`drop`,n),window.addEventListener(`dragend`,r),()=>{window.removeEventListener(`dragover`,e),window.removeEventListener(`dragleave`,t),window.removeEventListener(`drop`,n),window.removeEventListener(`dragend`,r)}},[C]),c(()=>{if(C){if(!document.getElementById(`file-upload-scrim`)){let t=document.createElement(`div`);t.id=o,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.backgroundColor=e.ui.background__scrim.rgba,t.style.zIndex=`9999`,t.style.pointerEvents=`none`,window.document.body.appendChild(t)}}else{let e=document.getElementById(o);e!==null&&e.remove()}},[C]);let T=l(()=>{if(y.accept)return Object.values(y.accept).join(`, `)},[y.accept]);return v==`small`?h(i,{...b(),style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(s,{}),m(p,{variant:`meta`,children:`Upload file`}),y.accept&&m(f,{title:`Supported filetypes: ${T}`,children:h(p,{variant:`meta`,children:[`(`,T,`)`]})})]}):v==`medium`?h(r,{...b(),style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(s,{}),h(`section`,{children:[m(p,{variant:`button`,group:`navigation`,children:`Drag files here`}),y.accept&&m(f,{title:`Supported filetypes: ${T}`,children:m(p,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:T})})]}),h(n,{children:[m(`hr`,{}),m(p,{variant:`meta`,children:`OR`}),m(`hr`,{})]}),m(t,{variant:`ghost`,onClick:b().onClick,leadingContent:m(d,{data:g}),children:`Browse files`})]}):h(a,{...b(),onClick:void 0,style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(s,{}),h(`section`,{children:[m(p,{variant:`button`,group:`navigation`,children:`Drag files here to upload.`}),y.accept&&h(p,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:[`Supported filetypes: `,T]})]}),h(n,{children:[m(`hr`,{}),m(p,{variant:`button`,group:`navigation`,children:`OR`}),m(`hr`,{})]}),m(t,{variant:`ghost`,onClick:b().onClick,leadingContent:m(d,{data:g}),children:`Browse files`})]})};export{v as FileUploadArea};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react16 from "react";
|
|
3
3
|
import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
4
4
|
import { IconData } from "@equinor/eds-icons";
|
|
5
5
|
|
|
@@ -49,6 +49,6 @@ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
|
|
|
49
49
|
* @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
|
|
50
50
|
* @returns {JSX.Element} The rendered IconCell.
|
|
51
51
|
*/
|
|
52
|
-
declare const IconCell:
|
|
52
|
+
declare const IconCell: react16.ForwardRefExoticComponent<IconCellProps & react16.RefAttributes<HTMLButtonElement>>;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { IconCell, IconCellProps };
|
|
@@ -48,7 +48,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
|
|
|
48
48
|
transition: background ${e.transitionMS};
|
|
49
49
|
border: none;
|
|
50
50
|
border-bottom: ${o};
|
|
51
|
-
cursor: ${({$clickable:e})=>e?`
|
|
51
|
+
cursor: ${({$clickable:e})=>e?`pointer`:`default`};
|
|
52
52
|
|
|
53
53
|
// Scribbled-out hides content
|
|
54
54
|
${({$variant:e})=>e===i.SCRIBBLED_OUT&&`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react174 from "react";
|
|
2
2
|
import { FocusEventHandler, HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
3
3
|
import { IconData } from "@equinor/eds-icons";
|
|
4
4
|
|
|
@@ -15,6 +15,6 @@ interface ListItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
isChild?: boolean;
|
|
16
16
|
borderBottom?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const ListItem:
|
|
18
|
+
declare const ListItem: react174.ForwardRefExoticComponent<ListItemProps & react174.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ListItem, ListItemProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react47 from "react";
|
|
2
2
|
import { ChangeEvent, MouseEvent } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/OptionDrawer/OptionDrawer.d.ts
|
|
@@ -43,7 +43,7 @@ declare const OptionDrawer: {
|
|
|
43
43
|
openAll,
|
|
44
44
|
showIntermediateParent,
|
|
45
45
|
parentHasNestedItems
|
|
46
|
-
}: OptionDrawerProps<T>):
|
|
46
|
+
}: OptionDrawerProps<T>): react47.JSX.Element;
|
|
47
47
|
displayName: string;
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react32 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/molecules/ProfileAvatar/ProfileAvatar.d.ts
|
|
4
4
|
interface ProfileAvatarProps {
|
|
@@ -7,6 +7,6 @@ interface ProfileAvatarProps {
|
|
|
7
7
|
size?: 'small' | 'small-medium' | 'medium' | 'large' | 'x-large' | number;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const ProfileAvatar:
|
|
10
|
+
declare const ProfileAvatar: react32.ForwardRefExoticComponent<ProfileAvatarProps & react32.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProfileAvatar, ProfileAvatarProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EditorPanel, ImageExtensionFnProps, RichTextEditorFeatures } from "../RichTextEditor.types.js";
|
|
2
2
|
import { MenuButtonProps } from "./MenuButton.js";
|
|
3
3
|
import { AddImageProps } from "./AddImageButton.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react18 from "react";
|
|
5
5
|
import { FC } from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as styled_components0 from "styled-components";
|
|
7
7
|
import { Editor } from "@tiptap/react";
|
|
8
|
-
import * as
|
|
8
|
+
import * as styled_components_dist_types0 from "styled-components/dist/types";
|
|
9
9
|
|
|
10
10
|
//#region src/molecules/RichTextEditor/MenuBar/MenuBar.d.ts
|
|
11
11
|
interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
|
|
@@ -14,10 +14,10 @@ interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
|
|
|
14
14
|
}
|
|
15
15
|
declare const AmplifyBar: FC<MenuBarProps>;
|
|
16
16
|
declare const EditorMenu: {
|
|
17
|
-
Bar:
|
|
18
|
-
Bars:
|
|
19
|
-
Button:
|
|
20
|
-
Section:
|
|
17
|
+
Bar: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
18
|
+
Bars: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
19
|
+
Button: react18.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react18.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Section: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react18.DetailedHTMLProps<react18.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
|
|
21
21
|
AddImageButton: FC<AddImageProps>;
|
|
22
22
|
};
|
|
23
23
|
declare const EditorText: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{MenuButtonStyle as e}from"./MenuBar.styles.js";import{forwardRef as t}from"react";import{Icon as n,Tooltip as r}from"@equinor/eds-core-react";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=t(({icon:t,onClick:o,active:s=!1,disabled:c=!1,tooltip:l,children:u,...d},f)=>i(r,{title:l,enterDelay:300,children:i(`div`,{children:a(e,{ref:f,$active:s,onClick:o,disabled:c,type:`button`,...d,children:[i(n,{data:t}),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"../RichTextEditor.types.js";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import"../RichTextEditor.types.js";import{Icon as t,Tooltip as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{format_color_text as o}from"@equinor/eds-icons";const{colors:s,spacings:c,shape:l}=e,u=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${c.comfortable.medium};
|
|
@@ -42,4 +42,4 @@ import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/
|
|
|
42
42
|
bottom: 5px;
|
|
43
43
|
height: 4px;
|
|
44
44
|
width: 24px;
|
|
45
|
-
`,p=({editor:e,features:r})=>r&&!r.includes(`text-color`)?null:i(
|
|
45
|
+
`,p=({editor:e,features:r})=>r&&!r.includes(`text-color`)?null:i(n,{title:`Text Color`,enterDelay:300,children:a(u,{children:[i(`input`,{type:`color`,onChange:t=>{e.chain().focus().setColor(t.target.value).run()},"data-testid":`text-color-input`,value:e.getAttributes(`textStyle`)?.color||s.text.static_icons__default.hex}),i(d,{children:i(t,{data:o})}),i(f,{style:{background:e.getAttributes(`textStyle`)?.color||s.text.static_icons__default.hex}})]})});export{p as TextColor};
|