@equinor/amplify-component-lib 9.17.0 → 10.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/useFaqsInApplication.js +1 -1
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useRichTextImage.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.d.ts +0 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/types/Guidelines.d.ts +1 -1
- 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/size.js +1 -1
- package/dist/atoms/utils/url.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/deprecated/OldStepper/OldStepLine.js +1 -1
- package/dist/index.d.ts +5 -9
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +1 -1
- package/dist/molecules/Badge/Badge.styles.js +1 -1
- package/dist/molecules/Button/Button.js +1 -1
- package/dist/molecules/Chip/Chip.styles.js +1 -1
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.d.ts +2 -2
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.utils.js +1 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/IconCell/IconCell.styles.js +1 -1
- package/dist/molecules/IconCell/IconCell.types.d.ts +6 -5
- package/dist/molecules/IconCell/IconCell.types.js +1 -1
- package/dist/molecules/IconCell/IconCell.utils.js +2 -2
- package/dist/molecules/InfoElement/CopyText.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/ProfileAvatar/ProfileAvatar.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/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 +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +5 -5
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/AddTagItem.js +1 -1
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +4 -4
- package/dist/molecules/Select/Select.styles.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.js +1 -1
- 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 +2 -2
- package/dist/molecules/Stepper/Step/Step.js +9 -9
- package/dist/molecules/Stepper/Stepper.js +6 -4
- package/dist/molecules/TextField/TextField.d.ts +12 -0
- package/dist/molecules/TextField/TextField.js +3 -3
- package/dist/molecules/Waves/Waves.js +1 -1
- package/dist/molecules/index.d.ts +4 -8
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/Faq/Category/Category.js +2 -2
- package/dist/organisms/Faq/Category/Question.js +1 -1
- package/dist/organisms/Faq/Faq.js +1 -1
- package/dist/organisms/Faq/Header.js +2 -2
- package/dist/organisms/FieldSelector/FieldSelector.js +1 -1
- package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
- 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/ReleaseNote/ReleaseNote.js +1 -1
- package/dist/organisms/ReleaseNote/ReleaseNote.utils.js +1 -1
- package/dist/organisms/ReleaseNotesPage/ReleaseNoteFilter.js +12 -0
- package/dist/organisms/ReleaseNotesPage/ReleaseNotesPage.d.ts +6 -0
- package/dist/organisms/ReleaseNotesPage/ReleaseNotesPage.js +1 -0
- package/dist/organisms/ReleaseNotesPage/ReleaseNotesPage.styles.js +35 -0
- package/dist/organisms/ReleaseNotesPage/ReleaseNotesPage.utils.js +1 -0
- package/dist/organisms/ReleaseNotesPage/ReleasePosts/ReleasePost/ReleasePost.js +1 -0
- package/dist/organisms/ReleaseNotesPage/ReleasePosts/ReleasePost/ReleasePostSkeleton.js +37 -0
- package/dist/organisms/ReleaseNotesPage/ReleasePosts/ReleasePosts.js +17 -0
- package/dist/organisms/ReleaseNotesPage/hooks/useFilteredReleaseNotes.js +1 -0
- package/dist/organisms/ReleaseNotesPage/hooks/useReleaseNotesFilters.js +1 -0
- package/dist/organisms/SideBar/CreateItem.styles.js +8 -6
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +1 -2
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +1 -1
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- 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/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.styles.js +1 -1
- package/dist/organisms/Template/Template.d.ts +3 -3
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- 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 +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +2 -5
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -1
- package/dist/organisms/TopBar/Settings.js +1 -1
- package/dist/organisms/TopBar/TopBar.d.ts +1 -0
- package/dist/organisms/TopBar/TopBar.styles.js +1 -1
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +1 -1
- package/dist/organisms/index.d.ts +1 -0
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
- package/dist/providers/ReleaseNotesProvider.d.ts +0 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +1 -1
- package/package.json +8 -10
- package/dist/atoms/hooks/useSearchParameter.d.ts +0 -12
- package/dist/atoms/hooks/useSearchParameter.js +0 -1
- package/dist/molecules/ContentMenu/ContentMenu.d.ts +0 -17
- package/dist/molecules/ContentMenu/ContentMenu.js +0 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
- package/dist/molecules/Sieve/Filter.d.ts +0 -10
- package/dist/molecules/Sieve/Filter.js +0 -1
- package/dist/molecules/Sieve/Sieve.d.ts +0 -7
- package/dist/molecules/Sieve/Sieve.js +0 -1
- package/dist/molecules/Sieve/Sieve.styles.js +0 -43
- package/dist/molecules/Sieve/Sieve.types.d.ts +0 -28
- package/dist/molecules/Sieve/Sort.js +0 -1
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.d.ts +0 -15
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +0 -20
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{environment as e}from"../utils/auth_environment.js";import{FaqService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";function r(){return n({queryKey:[`GET_FAQ_IN_APP`],queryFn:async()=>
|
|
1
|
+
import{environment as e}from"../utils/auth_environment.js";import{FaqService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";function r(){return n({queryKey:[`GET_FAQ_IN_APP`],queryFn:async()=>(await t.getCategoriesWithFaqsFromApplicationName(e.getAppName(import.meta.env.VITE_NAME))).toSorted((e,t)=>{let n=e.orderBy??0,r=t.orderBy??0;return n-r}),staleTime:1e3*60*5})}export{r as useFaqsInApplication};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react117 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, react117.Dispatch<react117.SetStateAction<T>>, () => void];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useLocalStorage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getImagesFromRichText as e}from"../utils/richtext.js";import{useEffect as t,useRef as n}from"react";import{useIsFetching as r,useQueryClient as i}from"@tanstack/react-query";function a({richTextValues:a,onImageRead:o}){let s=i(),c=n([]),l=n([]),u=a.flatMap(t=>e(t)),d=r({predicate:e=>c.current.some(t=>e.queryKey[0]===t&&!l.current.includes(t))})>0;return t(()=>{let e=async e=>{await s.prefetchQuery({queryKey:[e],queryFn:async()=>{let t=await o(e)
|
|
1
|
+
import{getImagesFromRichText as e}from"../utils/richtext.js";import{useEffect as t,useRef as n}from"react";import{useIsFetching as r,useQueryClient as i}from"@tanstack/react-query";function a({richTextValues:a,onImageRead:o}){let s=i(),c=n([]),l=n([]),u=a.flatMap(t=>e(t)),d=r({predicate:e=>c.current.some(t=>e.queryKey[0]===t&&!l.current.includes(t))})>0;return t(()=>{let e=async e=>{await s.prefetchQuery({queryKey:[e],queryFn:async()=>{let t=await o(e);return`data:image/${e.split(`.`).at(-1)};base64,${t}`},staleTime:1/0,gcTime:1/0}),l.current.push(e)};for(let t of u.filter(e=>!c.current.includes(e)))c.current.push(t),e(t)},[o,u,s]),{isPrefetching:d}}export{a as usePrefetchRichTextImages};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useQuery as e}from"@tanstack/react-query";function t(t,n){return e({queryKey:[t],queryFn:async()=>{if(n){let e=await n(t)
|
|
1
|
+
import{useQuery as e}from"@tanstack/react-query";function t(t,n){return e({queryKey:[t],queryFn:async()=>{if(n){let e=await n(t);return`data:image/${t.split(`.`).at(-1)};base64,${e}`}return t},staleTime:1/0,gcTime:1/0})}export{t as useRichTextImage};
|
|
@@ -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 react119 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: react119.RefObject<HTMLInputElement | null>;
|
|
20
|
+
itemRefs: react119.RefObject<(HTMLButtonElement | null)[]>;
|
|
21
21
|
selectedValues: T[];
|
|
22
22
|
open: boolean;
|
|
23
23
|
tryingToRemoveItem: T | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{flattenOptions as e}from"../../molecules/Select/Select.utils.js";import{useEffect as t,useMemo as n,useRef as r,useState as i}from"react";const a=a=>{let{loading:o,disabled:s,sortValues:c,onSearchChange:l,onOpenCallback:u}=a,[d,f]=i(!1),[p,m]=i(``),h=r(null),g=r([]),_=r(-1),[v,y]=i(void 0),b=r(!1),x=r(0),S=n(()=>{let e=[];if(`values`in a?e=a.values:a.value&&(e=[a.value]),!c)return e;let t
|
|
1
|
+
import{flattenOptions as e}from"../../molecules/Select/Select.utils.js";import{useEffect as t,useMemo as n,useRef as r,useState as i}from"react";const a=a=>{let{loading:o,disabled:s,sortValues:c,onSearchChange:l,onOpenCallback:u}=a,[d,f]=i(!1),[p,m]=i(``),h=r(null),g=r([]),_=r(-1),[v,y]=i(void 0),b=r(!1),x=r(0),S=n(()=>{let e=[];if(`values`in a?e=a.values:a.value&&(e=[a.value]),!c)return e;let t=`groups`in a&&a.groups?a.groups.flatMap(e=>e.items):a.items.flatMap(e=>[{...e},...e.children||[]]);return e.sort((e,n)=>{let r=t.findIndex(t=>t.value===e.value),i=t.findIndex(e=>e.value===n.value);return r-i})},[a,c]);t(()=>{u!==void 0&&u(d)},[u,d]),t(()=>{b.current&&x.current!==S.length&&(x.current=S.length,b.current=!1,h.current?.focus())},[S.length]);let C=()=>{!d&&!s&&!o&&(h.current?.focus(),f(!0))},w=()=>{f(!1),m(``),_.current=0},T=()=>{s||o||(d?w():C())},E=e=>{e.target.value===` `||o||s||(m(e.target.value),l?.(e.target.value),d||f(!0))},D=(t,n)=>{let r=structuredClone(t);return r.some(e=>e.value===n.value)?r.filter(e=>e.value!==n.value):`values`in a&&a.syncParentChildSelection!==void 0&&!a.syncParentChildSelection?[n,...r]:[n,...r.filter(t=>(n.children===void 0||n.children.length>0)&&e([n]).some(e=>e.value===t.value)?!1:t.children===void 0||t.children.length===0?!0:e([t]).every(e=>e.value!==n.value))]},O=e=>{`value`in a?a.value?.value===e.value?a.onSelect(void 0):a.onSelect(e):a.onSelect(D(a.values,e),e),p!==``&&m(``),b.current=!0},k=e=>{`values`in a&&!o&&!s&&a.onSelect(a.values.filter(t=>t.value!==e.value),e)};return{handleOnAddItem:()=>{`onAddItem`in a&&a.onAddItem&&(a.onAddItem(p),m(``))},handleOnItemSelect:O,handleOnItemKeyDown:e=>{e.key===`ArrowDown`&&_.current<g.current.length-1?(_.current+=1,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current>0?(--_.current,g.current.at(_.current)?.focus()):e.key===`ArrowUp`&&_.current===0&&(_.current=-1,h.current?.focus())},handleOnSearchKeyDown:e=>{e.key===`Enter`&&p!==``&&`onAddItem`in a&&a.onAddItem?(e.preventDefault(),a.onAddItem(p),m(``)):e.key===`Space`||e.key===`Enter`?C():e.key===`Escape`?(h.current?.blur(),w()):(e.key===`ArrowDown`||e.key===`ArrowUp`)&&g.current.at(0)?(g.current[0]?.focus(),_.current=0):e.key===`Backspace`&&v===void 0&&`values`in a&&p===``?(y(S?.at(-1)),setTimeout(()=>{h.current?.focus()})):e.key===`Backspace`&&v&&(k(v),y(void 0),setTimeout(()=>{h.current?.focus()}))},handleOnClear:()=>{`value`in a?a.onSelect(void 0):a.onSelect([])},handleOnSearchChange:E,handleToggleOpen:T,handleOnClose:w,handleOnOpen:C,handleOnRemoveItem:k,search:p,searchRef:h,itemRefs:g,selectedValues:S,open:d,tryingToRemoveItem:v}};export{a as useSelect};
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { usePrevious } from "./hooks/usePrevious.js";
|
|
|
14
14
|
import { useSelect } from "./hooks/useSelect.js";
|
|
15
15
|
import { useOnScreenMultiple } from "./hooks/useOnScreenMultiple.js";
|
|
16
16
|
import { useNotification } from "../organisms/TopBar/Notifications/NotificationProvider.js";
|
|
17
|
-
import { useSearchParameter } from "./hooks/useSearchParameter.js";
|
|
18
17
|
import { usePrefetchRichTextImages } from "./hooks/usePrefetchRichTextImages.js";
|
|
19
18
|
import { useFaqsInApplication } from "./hooks/useFaqsInApplication.js";
|
|
20
19
|
import { animation } from "./style/animation.js";
|
package/dist/atoms/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EnvironmentType as e}from"./enums/Environment.js";import{auth as ee,environment as t}from"./utils/auth_environment.js";import{animation as te}from"./style/animation.js";import{colors as n}from"./style/colors.js";import{spacings as r}from"./style/spacings.js";import{elevation as i,shape as a,style_exports as o,typography as s}from"./style/index.js";import{formatLatLng as c,formatUtm as l}from"./utils/coordinate.js";import{formatDate as u,formatDateTime as d,formatRelativeDateTime as f,isBetweenDates as p}from"./utils/date.js";import{exportComponent as m}from"./utils/export.js";import{setupIcons as h}from"./utils/favicon.js";import{convertLatLngToUtm as g,convertUtmToLatLng as _,degrees2radians as v,distanceLatLng as y,utmProjection as b}from"./utils/map.js";import{defaultQueryOptions as x}from"./utils/reactquery.js";import{IMG_WITH_ALT as S,IMG_WITH_SRC_AND_ALT as C,cleanRichTextValue as w,extractImageUrls as T,getFeatures as E,getImagesFromRichText as D,imageToB64 as O}from"./utils/richtext.js";import{formatBytes as k,formatDataSize as A,formatKiloBytes as j}from"./utils/size.js";import{sortByDate as M,sortByWellboreName as N}from"./utils/sort.js";import{Empty as P,capitalize as F}from"./utils/string.js";import{isValidUrl as I}from"./utils/url.js";import{getHighlightElementBoundingBox as L,highlightTutorialElementID as R}from"./utils/tutorials.js";import{getVariantIcon as z}from"./utils/forms.js";import{useAuth as B}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as V}from"../providers/SideBarProvider.js";import{useSnackbar as H}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as U}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as W}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as G}from"./hooks/useLocalStorage.js";import{useAmplifyKit as K}from"./hooks/useAmplifyKit.js";import{useDebounce as q}from"./hooks/useDebounce.js";import{useFakeProgress as J}from"./hooks/useFakeProgress.js";import{usePrevious as Y}from"./hooks/usePrevious.js";import{useSelect as X}from"./hooks/useSelect.js";import{useNotification as Z}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as Q}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{
|
|
1
|
+
import{EnvironmentType as e}from"./enums/Environment.js";import{auth as ee,environment as t}from"./utils/auth_environment.js";import{animation as te}from"./style/animation.js";import{colors as n}from"./style/colors.js";import{spacings as r}from"./style/spacings.js";import{elevation as i,shape as a,style_exports as o,typography as s}from"./style/index.js";import{formatLatLng as c,formatUtm as l}from"./utils/coordinate.js";import{formatDate as u,formatDateTime as d,formatRelativeDateTime as f,isBetweenDates as p}from"./utils/date.js";import{exportComponent as m}from"./utils/export.js";import{setupIcons as h}from"./utils/favicon.js";import{convertLatLngToUtm as g,convertUtmToLatLng as _,degrees2radians as v,distanceLatLng as y,utmProjection as b}from"./utils/map.js";import{defaultQueryOptions as x}from"./utils/reactquery.js";import{IMG_WITH_ALT as S,IMG_WITH_SRC_AND_ALT as C,cleanRichTextValue as w,extractImageUrls as T,getFeatures as E,getImagesFromRichText as D,imageToB64 as O}from"./utils/richtext.js";import{formatBytes as k,formatDataSize as A,formatKiloBytes as j}from"./utils/size.js";import{sortByDate as M,sortByWellboreName as N}from"./utils/sort.js";import{Empty as P,capitalize as F}from"./utils/string.js";import{isValidUrl as I}from"./utils/url.js";import{getHighlightElementBoundingBox as L,highlightTutorialElementID as R}from"./utils/tutorials.js";import{getVariantIcon as z}from"./utils/forms.js";import{useAuth as B}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as V}from"../providers/SideBarProvider.js";import{useSnackbar as H}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as U}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as W}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as G}from"./hooks/useLocalStorage.js";import{useAmplifyKit as K}from"./hooks/useAmplifyKit.js";import{useDebounce as q}from"./hooks/useDebounce.js";import{useFakeProgress as J}from"./hooks/useFakeProgress.js";import{usePrevious as Y}from"./hooks/usePrevious.js";import{useSelect as X}from"./hooks/useSelect.js";import{useNotification as Z}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as Q}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as ie}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ae}from"./hooks/useFaqsInApplication.js";import{ErrorType as oe}from"./enums/Errors.js";import{SpacingsMode as se}from"./enums/SpacingsMode.js";import{amplify_failure as ce,amplify_lwd as le,amplify_success as ue,amplify_wellbore as de,amplify_wireline as fe,amplify_wireline_cased_hole as pe,amplify_wireline_open_hole as me}from"./icons/drilling.js";import{amplify_calculator as he,amplify_overlay as ge,amplify_sidebyside as _e}from"./icons/map.js";import{amplify_aml as ve,amplify_arrow_up_down as ye,amplify_branch as be,amplify_info_small as xe,amplify_merged as Se,amplify_overview as Ce,amplify_resources as we,amplify_sharepoint as Te,amplify_shield_person as Ee,amplify_small_portal as De,amplify_snail as Oe,amplify_sort_small as ke,amplify_tutorials as Ae}from"./icons/other.js";import{amplify_h1 as je,amplify_h2 as Me,amplify_h3 as Ne,amplify_h4 as Pe,amplify_table_add_column_left as Fe,amplify_table_add_column_right as Ie,amplify_table_add_row_above as Le,amplify_table_add_row_below as Re,amplify_table_column_heading as ze,amplify_table_merge_cells as Be,amplify_table_remove_column as Ve,amplify_table_remove_row as He,amplify_table_row_heading as Ue,amplify_table_split_cell as We}from"./icons/wysiwyg.js";import{useReleaseNotes as Ge}from"../providers/ReleaseNotesProvider.js";const $=o;export{$ as style};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EnvironmentType as e}from"../enums/Environment.js";import{PublicClientApplication as t}from"@azure/msal-browser";const n=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],r=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!n.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},i=e=>e||r(`NAME`),a=e=>e||r(`CLIENT_ID`),o=e=>e||r(`API_URL`),s=e=>e||r(`API_SCOPE`),c=e=>e||r(`API_CLIENT_ID`),l=e=>e||r(`ENVIRONMENT_NAME`),u=e=>e||r(`SERVICE_NOW_CONFIGURATION_ITEM`),d=e=>e===void 0?!1:e===`true`,f=e=>e===void 0?[`admin`]:JSON.parse(e),p=e=>e?e.split(`;`):r(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],m=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function h(){let t=import.meta.env.VITE_ENVIRONMENT_NAME;
|
|
1
|
+
import{EnvironmentType as e}from"../enums/Environment.js";import{PublicClientApplication as t}from"@azure/msal-browser";const n=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],r=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!n.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},i=e=>e||r(`NAME`),a=e=>e||r(`CLIENT_ID`),o=e=>e||r(`API_URL`),s=e=>e||r(`API_SCOPE`),c=e=>e||r(`API_CLIENT_ID`),l=e=>e||r(`ENVIRONMENT_NAME`),u=e=>e||r(`SERVICE_NOW_CONFIGURATION_ITEM`),d=e=>e===void 0?!1:e===`true`,f=e=>e===void 0?[`admin`]:JSON.parse(e),p=e=>e?e.split(`;`):r(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],m=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function h(){let t=import.meta.env.VITE_ENVIRONMENT_NAME;return t||=r(`ENVIRONMENT_NAME`),t===e.PRODUCTION?`https://jsembark.equinor.com`:`https://client-amplify-portal-${t===e.LOCALHOST?e.DEVELOP:t}.radix.equinor.com`}const g=h(),_={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},v=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),y={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},b={scopes:[y.OPENID,y.PROFILE,y.USER_READ]},x={scopes:[y.USER_READ]},S=e=>({scopes:[e]}),C=()=>window.self!==window.top,w=new t({auth:{clientId:a(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`,storeAuthStateInCookie:!1}}),T=p(import.meta.env.ALLOWED_PARENT_DOMAINS);window.addEventListener(`message`,async e=>{if(T.includes(e.origin)){let t=e.data;if(t){await w.initialize();try{await w.ssoSilent({sid:t}),console.log(`postMessage successfully logged in user!`)}catch(e){console.error(`Something went wrong with postMessage`),console.error(e)}}}});const E={fetchMsGraph:v,GRAPH_SCOPES:y,GRAPH_REQUESTS_LOGIN:b,GRAPH_REQUESTS_PHOTO:x,GRAPH_REQUESTS_BACKEND:S,GRAPH_ENDPOINTS:_,msalApp:w,getToken:async()=>{if(d(import.meta.env.VITE_IS_MOCK))return``;let e=w.getActiveAccount(),t=w.getAllAccounts();return!e&&t.length===0?``:(await w.acquireTokenSilent(S(s(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>e?!e.some(e=>e.includes(`WRITE`)):!0,isInIframe:C},D={getConfig:r,getAppName:i,getClientId:a,getApiUrl:o,getApiScope:s,getApiClientId:c,getEnvironmentName:l,getIsMock:d,getMockUserPhoto:m,getMockRoles:f,getServiceNowConfigurationItem:u,PORTAL_URL_WITHOUT_LOCALHOST:g};export{E as auth,D as environment};
|
package/dist/atoms/utils/date.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=(e,t={format:`DD. month YYYY`,month:`long`})=>{if(e){let n=new Date(e);if(n.getTime()){if(t?.format===`DD. month YYYY`){
|
|
1
|
+
const e=(e,t={format:`DD. month YYYY`,month:`long`})=>{if(e){let n=new Date(e);if(n.getTime()){if(t?.format===`DD. month YYYY`)return`${n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}. ${n.toLocaleString(`en-GB`,{month:t?.month??`long`,year:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}`;let e=t?.useUTC?n.getUTCDate():n.getDate(),r=t?.useUTC?n.getUTCMonth()+1:n.getMonth()+1,i=t?.useUTC?n.getUTCFullYear():n.getFullYear();return t?.format===`DD. month`?`${n.toLocaleDateString(`en-GB`,{day:`numeric`,timeZone:t.useUTC?`UTC`:void 0})}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,timeZone:t.useUTC?`UTC`:void 0})}`:t?.format===`YYYY-MM-DD`?`${i.toString().padStart(4,`0`)}-${r.toString().padStart(2,`0`)}-${e.toString().padStart(2,`0`)}`:t?.format===`DD.MM.YY`?`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`).slice(-2)}`:`${e.toString().padStart(2,`0`)}.${r.toString().padStart(2,`0`)}.${i.toString().padStart(4,`0`)}`}}},t=(e,t={month:`long`,hideYear:!1,isGMT:!1})=>{if(e){let n=new Date(e);if(n.getTime())return(t.isGMT??!1)&&n.setTime(n.getTime()+n.getTimezoneOffset()*6e4),`${n.toLocaleDateString(`en-GB`,{day:`numeric`})}. ${n.toLocaleString(`en-GB`,{month:t.month??`long`,year:t.hideYear?void 0:`numeric`,hour:`2-digit`,minute:`2-digit`})}`}},n=(e,n=!1)=>{if(e){let r=new Date(e),i=new Date;if(r.getTime()){n&&r.setTime(r.getTime()+r.getTimezoneOffset()*6e4);let a=(r<i?i.getTime()-r.getTime():r.getTime()-i.getTime())/(1e3*3600*24),o=r.toLocaleTimeString(`en-GB`,{hour:`2-digit`,minute:`2-digit`});return a<1&&r.getDate()===i.getDate()?`Today at ${o}`:a<2&&r<i?`Yesterday at ${o}`:a<2&&a>=0?`Tomorrow at ${o}`:a>2&&a<7&&r>i?`${r.toLocaleString(`en-GB`,{weekday:`long`})} at ${o}`:t(e,{hideYear:r.getFullYear()===i.getFullYear()})}}},r=(e,t)=>{if(e){let n=new Date(e);if(n.getTime())return n>=t[0]&&n<=t[1]}return!1};export{e as formatDate,t as formatDateTime,n as formatRelativeDateTime,r as isBetweenDates};
|
package/dist/atoms/utils/map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"proj4";function t(e){return e*(Math.PI/180)}function n(e,n){let r=t(n.lat-e.lat),i=t(n.lng-e.lng),a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t(e.lat))*Math.cos(t(n.lat))*Math.sin(i/2)*Math.sin(i/2)
|
|
1
|
+
import e from"proj4";function t(e){return e*(Math.PI/180)}function n(e,n){let r=t(n.lat-e.lat),i=t(n.lng-e.lng),a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t(e.lat))*Math.cos(t(n.lat))*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}const r=`+proj=utm +zone=31 +ellps=intl +towgs84=-90.365,-101.13,-123.384,0.333,0.077,0.894,1.994 +units=m +no_defs`;function i(t,n){let i=e(r,`EPSG:4326`,[Number(t),Number(n)]);return{lat:i[1],lng:i[0]}}function a(t){let n=e(`EPSG:4326`,r,[t.lng,t.lat]);return[n[0],n[1]]}export{a as convertLatLngToUtm,i as convertUtmToLatLng,t as degrees2radians,n as distanceLatLng,r as utmProjection};
|
package/dist/atoms/utils/size.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=1024,t=(t,n=2)=>{if(t<0||t===0)return`0 Bytes`;if(t===1)return`1 Byte`;let r=n<0?0:n,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],a=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/e**+a).toFixed(r))+` `+i[a]},n=(n,r=2)=>t(n*e,r),r=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`];function i({size:e,decimals:t=2,inputFormat:n=`KiB`}){if(e<0)throw Error(`Invalid size, must be a positive integer`);if(t<0)throw Error(`Invalid decimals, must be a positive integer`);if(e===0)return`${e} ${n}`;let i=r.indexOf(n),a=e*1024**i,o=Math.floor(Math.log(a)/Math.log(1024))
|
|
1
|
+
const e=1024,t=(t,n=2)=>{if(t<0||t===0)return`0 Bytes`;if(t===1)return`1 Byte`;let r=n<0?0:n,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],a=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/e**+a).toFixed(r))+` `+i[a]},n=(n,r=2)=>t(n*e,r),r=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`];function i({size:e,decimals:t=2,inputFormat:n=`KiB`}){if(e<0)throw Error(`Invalid size, must be a positive integer`);if(t<0)throw Error(`Invalid decimals, must be a positive integer`);if(e===0)return`${e} ${n}`;let i=r.indexOf(n),a=e*1024**i,o=Math.floor(Math.log(a)/Math.log(1024));return`${parseFloat((a/1024**o).toFixed(t))} ${r[o]}`}export{t as formatBytes,i as formatDataSize,n as formatKiloBytes};
|
package/dist/atoms/utils/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){
|
|
1
|
+
function e(e){return RegExp(`^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$`,`i`).test(e)}export{e as isValidUrl};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react2 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: react2.ForwardRefExoticComponent<ExpandingIconButtonProps & react2.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ExpandingIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import { IconData } from "@equinor/eds-icons";
|
|
3
3
|
|
|
4
4
|
//#region src/deprecated/IconToggleButton.d.ts
|
|
@@ -21,6 +21,6 @@ interface IconToggleButtonProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
|
|
23
23
|
*/
|
|
24
|
-
declare const IconToggleButton:
|
|
24
|
+
declare const IconToggleButton: react0.ForwardRefExoticComponent<IconToggleButtonProps & react0.RefAttributes<HTMLButtonElement>>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { IconToggleButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OptionalTooltip as e}from"../molecules/OptionalTooltip/OptionalTooltip.js";import{forwardRef as t,useState as n}from"react";import{Button as r,Icon as i}from"@equinor/eds-core-react";import{jsx as a}from"react/jsx-runtime";const o=t(({initialState:t=!1,toggleOn:o,toggleOff:s,onClick:c},l)=>{let[u,d]=n(t)
|
|
1
|
+
import{OptionalTooltip as e}from"../molecules/OptionalTooltip/OptionalTooltip.js";import{forwardRef as t,useState as n}from"react";import{Button as r,Icon as i}from"@equinor/eds-core-react";import{jsx as a}from"react/jsx-runtime";const o=t(({initialState:t=!1,toggleOn:o,toggleOff:s,onClick:c},l)=>{let[u,d]=n(t);return u?a(e,{title:o.tooltip?.title,placement:o.tooltip?.placement,children:a(r,{ref:l,variant:`ghost_icon`,onClick:()=>{d(!1),c?.(u),o.onClick?.()},children:a(i,{size:24,data:o.icon})})}):a(e,{title:s.tooltip?.title,placement:s.tooltip?.placement,children:a(r,{ref:l,variant:`ghost_icon`,onClick:()=>{d(!0),c?.(u),s.onClick?.()},children:a(i,{size:24,data:s.icon})})})});o.displayName=`IconToggleButton`;var s=o;export{s as default};
|
|
@@ -4,4 +4,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
4
4
|
background: ${e=>e.$background};
|
|
5
5
|
border: none;
|
|
6
6
|
margin: 0;
|
|
7
|
-
|
|
7
|
+
`;var o=({done:e})=>{let n=t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e]);return r(a,{$background:n})};export{o as default};
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import { SelectOption, SelectOptionRequired } from "./molecules/Select/Select.ty
|
|
|
19
19
|
import { useSelect } from "./atoms/hooks/useSelect.js";
|
|
20
20
|
import { useOnScreenMultiple } from "./atoms/hooks/useOnScreenMultiple.js";
|
|
21
21
|
import { useNotification } from "./organisms/TopBar/Notifications/NotificationProvider.js";
|
|
22
|
-
import { useSearchParameter } from "./atoms/hooks/useSearchParameter.js";
|
|
23
22
|
import { usePrefetchRichTextImages } from "./atoms/hooks/usePrefetchRichTextImages.js";
|
|
24
23
|
import { useFaqsInApplication } from "./atoms/hooks/useFaqsInApplication.js";
|
|
25
24
|
import { animation } from "./atoms/style/animation.js";
|
|
@@ -59,7 +58,6 @@ import { Badge, BadgeProps } from "./molecules/Badge/Badge.js";
|
|
|
59
58
|
import { Banner, BannerProps } from "./molecules/Banner/Banner.js";
|
|
60
59
|
import { Button, ButtonProps } from "./molecules/Button/Button.js";
|
|
61
60
|
import { BaseChipProps, Chip } from "./molecules/Chip/Chip.js";
|
|
62
|
-
import { ContentMenu, ContentMenuProps } from "./molecules/ContentMenu/ContentMenu.js";
|
|
63
61
|
import { DatePicker, DatePickerProps } from "./molecules/DatePicker/DatePicker.js";
|
|
64
62
|
import { DateRangePicker, DateRangePickerProps } from "./molecules/DateRangePicker/DateRangePicker.js";
|
|
65
63
|
import { Dialog, DialogAction, DialogProps } from "./molecules/Dialog/Dialog.js";
|
|
@@ -68,7 +66,7 @@ import { FileProgressProps } from "./molecules/FileProgress/FileProgress.types.j
|
|
|
68
66
|
import { FileProgress, FileProgressPropsExtension } from "./molecules/FileProgress/FileProgress.js";
|
|
69
67
|
import { FileUploadArea, FileUploadAreaProps } from "./molecules/FileUploadArea/FileUploadArea.js";
|
|
70
68
|
import { FullPageSpinner, FullPageSpinnerProps } from "./molecules/FullPageSpinner/FullPageSpinner.js";
|
|
71
|
-
import { IconCellColors, IconCellStates, IconCellVariants } from "./molecules/IconCell/IconCell.types.js";
|
|
69
|
+
import { IconCellColor, IconCellColorObject, IconCellColors, IconCellState, IconCellStates, IconCellVariant, IconCellVariants } from "./molecules/IconCell/IconCell.types.js";
|
|
72
70
|
import { IconCell, IconCellProps } from "./molecules/IconCell/IconCell.js";
|
|
73
71
|
import { InfoElement, InfoElementProps } from "./molecules/InfoElement/InfoElement.js";
|
|
74
72
|
import { OptionalTooltip, OptionalTooltipProps } from "./molecules/OptionalTooltip/OptionalTooltip.js";
|
|
@@ -81,10 +79,6 @@ import { Tab } from "./molecules/Tabs/Tabs.types.js";
|
|
|
81
79
|
import { Tabs, TabsProps } from "./molecules/Tabs/Tabs.js";
|
|
82
80
|
import { TableMenuBar, TextTable } from "./molecules/RichTextEditor/MenuBar/Table/TableBar.js";
|
|
83
81
|
import { Search } from "./molecules/Search/Search.js";
|
|
84
|
-
import { SieveFilterGroup } from "./molecules/Sieve/Filter.js";
|
|
85
|
-
import { FilterValues, SieveOption, SieveProps, SieveValue } from "./molecules/Sieve/Sieve.types.js";
|
|
86
|
-
import { Sieve } from "./molecules/Sieve/Sieve.js";
|
|
87
|
-
import { SingleFilterMenu, SingleFilterMenuProps } from "./molecules/SingleFilterMenu/SingleFilterMenu.js";
|
|
88
82
|
import { SkeletonBase, SkeletonBaseProps, skeletonBaseloading } from "./molecules/Skeleton/SkeletonBase/SkeletonBase.js";
|
|
89
83
|
import { SkeletonGradient, SkeletonGradientProps } from "./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";
|
|
90
84
|
import { Stepper, StepperProps } from "./molecules/Stepper/Stepper.js";
|
|
@@ -93,13 +87,14 @@ import { OptionDrawerSelectItem } from "./molecules/OptionDrawer/OptionDrawer.ty
|
|
|
93
87
|
import { ComboBox, GroupedComboBoxProps, ListComboBoxProps } from "./molecules/Select/ComboBox/ComboBox.js";
|
|
94
88
|
import { ComboBoxChip } from "./molecules/Select/Select.styles.js";
|
|
95
89
|
import { GroupedSingleSelectProps, ListSingleSelectProps, SingleSelect } from "./molecules/Select/SingleSelect/SingleSelect.js";
|
|
90
|
+
import { TextField, TextFieldProps } from "./molecules/TextField/TextField.js";
|
|
96
91
|
import { FeedBackIcon, FeedBackIconProps } from "./molecules/FeedBackIcon/FeedBackIcon.js";
|
|
97
92
|
import { ListItem, ListItemProps } from "./molecules/ListItem/ListItem.js";
|
|
98
93
|
import { Checkbox, CheckboxProps } from "./molecules/SelectionControls/Checkbox/Checkbox.js";
|
|
99
94
|
import { Radio, RadioProps } from "./molecules/SelectionControls/Radio/Radio.js";
|
|
100
95
|
import { Switch, SwitchProps } from "./molecules/SelectionControls/Switch/Switch.js";
|
|
101
96
|
import { Waves } from "./molecules/Waves/Waves.js";
|
|
102
|
-
import { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, CircularProgress, CircularProgressProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, Icon, IconProps, LinearProgress, LinearProgressProps, Menu, MenuProps, SearchProps,
|
|
97
|
+
import { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, CircularProgress, CircularProgressProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, Icon, IconProps, LinearProgress, LinearProgressProps, Menu, MenuProps, SearchProps, Typography, TypographyProps } from "./molecules/index.js";
|
|
103
98
|
import { DataGrid } from "./organisms/DataGrid/DataGrid.js";
|
|
104
99
|
import { FieldSelector, FieldSelectorProps } from "./organisms/FieldSelector/FieldSelector.js";
|
|
105
100
|
import { Filter, FilterType } from "./organisms/Filter/index.js";
|
|
@@ -121,8 +116,9 @@ import { PageTitle } from "./organisms/PageTitle/PageTitle.js";
|
|
|
121
116
|
import { ReleaseNote, ReleaseNoteProps } from "./organisms/ReleaseNote/ReleaseNote.js";
|
|
122
117
|
import { ToggleGroup } from "./organisms/ToggleGroup/index.js";
|
|
123
118
|
import { Faq } from "./organisms/Faq/Faq.js";
|
|
119
|
+
import { ReleaseNotesPage } from "./organisms/ReleaseNotesPage/ReleaseNotesPage.js";
|
|
124
120
|
import { Card, CardProps, DataGridProps } from "./organisms/index.js";
|
|
125
121
|
import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
|
|
126
122
|
import { IconToggleButton } from "./deprecated/IconToggleButton.js";
|
|
127
123
|
import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
|
|
128
|
-
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,
|
|
124
|
+
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, 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, GroupedComboBoxProps, GroupedSingleSelectProps, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, ItemType, LinearProgress, LinearProgressProps, ListComboBoxProps, ListItem, ListItemProps, ListSingleSelectProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SingleSelect, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, Tab, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, ToggleGroup, TopBar, TutorialHighlight, TutorialHighlightingProvider, Typography, TypographyProps, Waves, amplify_aml, amplify_arrow_up_down, amplify_branch, amplify_calculator, 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, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStepper, useTableOfContents, useThemeProvider, 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{useNotification as ce}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as le,useStepper as ue}from"./providers/StepperProvider.js";import{Theme as de}from"./atoms/enums/Theme.js";import{ThemeProvider as fe,useThemeProvider as pe}from"./providers/ThemeProvider/ThemeProvider.js";import{useSearchParameter as me}from"./atoms/hooks/useSearchParameter.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{ErrorType as _e}from"./atoms/enums/Errors.js";import{SpacingsMode as ve}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as ye,amplify_lwd as be,amplify_success as xe,amplify_wellbore as Se,amplify_wireline as Ce,amplify_wireline_cased_hole as we,amplify_wireline_open_hole as Te}from"./atoms/icons/drilling.js";import{amplify_calculator as Ee,amplify_overlay as De,amplify_sidebyside as Oe}from"./atoms/icons/map.js";import{amplify_aml as ke,amplify_arrow_up_down as Ae,amplify_branch as je,amplify_info_small as Me,amplify_merged as Ne,amplify_overview as Pe,amplify_resources as Fe,amplify_sharepoint as Ie,amplify_shield_person as Le,amplify_small_portal as Re,amplify_snail as ze,amplify_sort_small as Be,amplify_tutorials as Ve}from"./atoms/icons/other.js";import{amplify_h1 as He,amplify_h2 as Ue,amplify_h3 as We,amplify_h4 as Ge,amplify_table_add_column_left as Ke,amplify_table_add_column_right as qe,amplify_table_add_row_above as Je,amplify_table_add_row_below as Ye,amplify_table_column_heading as Xe,amplify_table_merge_cells as Ze,amplify_table_remove_column as Qe,amplify_table_remove_row as $e,amplify_table_row_heading as et,amplify_table_split_cell as tt}from"./atoms/icons/wysiwyg.js";import{style as nt}from"./atoms/index.js";import{ReleaseNotesProvider as rt,useReleaseNotes as it}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as at}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as ot}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as st}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ct}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as lt}from"./molecules/Badge/Badge.js";import{Banner as ut}from"./molecules/Banner/Banner.js";import{Button as dt}from"./molecules/Button/Button.js";import{Chip as ft}from"./molecules/Chip/Chip.js";import{SkeletonBase as pt,skeletonBaseloading as mt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{ContentMenu as ht}from"./molecules/ContentMenu/ContentMenu.js";import{DatePicker as gt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as _t}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as vt}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as yt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as bt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as xt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as St}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCell as Ct}from"./molecules/IconCell/IconCell.js";import{InfoElement as wt}from"./molecules/InfoElement/InfoElement.js";import{ProfileAvatar as Tt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Et}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as Dt,TextTable as Ot}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as kt,EditorMenu as At,EditorText as jt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Mt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Nt}from"./molecules/RichTextEditor/index.js";import{Tabs as Pt}from"./molecules/Tabs/Tabs.js";import{Search as Ft}from"./molecules/Search/Search.js";import{Sieve as It}from"./molecules/Sieve/Sieve.js";import{SingleFilterMenu as Lt}from"./molecules/SingleFilterMenu/SingleFilterMenu.js";import{SkeletonGradient as Rt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as zt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Bt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Vt}from"./molecules/Select/Select.styles.js";import{ComboBox as Ht}from"./molecules/Select/ComboBox/ComboBox.js";import{SingleSelect as Ut}from"./molecules/Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as Wt}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as Gt}from"./molecules/ListItem/ListItem.js";import{Checkbox as Kt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as qt}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Jt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as Yt}from"./molecules/Waves/Waves.js";import{Accordion as Xt,Breadcrumbs as Zt,CircularProgress as Qt,Divider as $t,DotProgress as en,EDSDialog as tn,Icon as nn,LinearProgress as rn,Menu as an,TextField as on,Typography as sn}from"./molecules/index.js";import{DataGrid as cn}from"./organisms/DataGrid/DataGrid.js";import{Template as ln}from"./organisms/Template/Template.js";import{FieldSelector as un}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as dn}from"./organisms/Filter/index.js";import{SideBar as fn}from"./organisms/SideBar/index.js";import{ReleaseNote as pn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as mn}from"./organisms/TopBar/index.js";import{BadRequest as hn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as gn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as _n}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as vn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as yn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as bn}from"./organisms/Status/collections/ApiResponseError.js";import{TableOfContents as xn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Sn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Cn}from"./organisms/ToggleGroup/index.js";import{Faq as wn}from"./organisms/Faq/Faq.js";import{Card as Tn}from"./organisms/index.js";import{ExpandingIconButton as En}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Dn from"./deprecated/IconToggleButton.js";import{OldStepper as On}from"./deprecated/OldStepper/OldStepper.js";export{Xt as Accordion,kt as AmplifyBar,ne as AmplifyKit,st as AnimatedCheckmark,bn as ApiResponseError,ct as ApplicationIcon,K as AuthProvider,hn as BadRequest,lt as Badge,ut as Banner,Zt as Breadcrumbs,dt as Button,Tn as Card,Kt as Checkbox,ft as Chip,Qt as CircularProgress,Ht as ComboBox,Vt as ComboBoxChip,ht as ContentMenu,w as DEFAULT_FEATURES,cn as DataGrid,gt as DatePicker,_t as DateRangePicker,yt as Dialog,$t as Divider,en as DotProgress,tn as EDSDialog,At as EditorMenu,jt as EditorText,R as Empty,e as EnvironmentType,bt as EquinorLogo,_e as ErrorType,En as ExpandingIconButton,wn as Faq,Wt as FeedBackIcon,un as FieldSelector,xt as FileProgress,St as FileUploadArea,dn as Filter,l as FullPageSpinner,gn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,nn as Icon,Ct as IconCell,Dn as IconToggleButton,wt as InfoElement,rn as LinearProgress,Gt as ListItem,ot as LoadingProvider,an as Menu,G as MissingAccessToApp,_n as MissingPermissions,On as OldStepper,Bt as OptionDrawer,vt as OptionalTooltip,vn as PageNotFound,Sn as PageTitle,Tt as ProfileAvatar,qt as Radio,pn as ReleaseNote,rt as ReleaseNotesProvider,Nt as RichText,Et as RichTextDisplay,Mt as RichTextEditor,T as RichTextEditorFeatures,Ft as Search,yn as ServerError,fn as SideBar,J as SideBarProvider,It as Sieve,Lt as SingleFilterMenu,Ut as SingleSelect,pt as SkeletonBase,Rt as SkeletonGradient,X as SnackbarProvider,ve as SpacingsMode,W as Status,zt as Stepper,le as StepperProvider,Jt as Switch,Dt as TableMenuBar,xn as TableOfContents,$ as TableOfContentsProvider,Pt as Tabs,ln as Template,on as TextField,Ot as TextTable,de as Theme,fe as ThemeProvider,Cn as ToggleGroup,mn as TopBar,at as TutorialHighlightingProvider,sn as Typography,Yt as Waves,ke as amplify_aml,Ae as amplify_arrow_up_down,je as amplify_branch,Ee as amplify_calculator,ye as amplify_failure,He as amplify_h1,Ue as amplify_h2,We as amplify_h3,Ge as amplify_h4,Me as amplify_info_small,be as amplify_lwd,Ne as amplify_merged,De as amplify_overlay,Pe as amplify_overview,Fe as amplify_resources,Ie as amplify_sharepoint,Le as amplify_shield_person,Oe as amplify_sidebyside,Re as amplify_small_portal,ze as amplify_snail,Be as amplify_sort_small,xe as amplify_success,Ke as amplify_table_add_column_left,qe as amplify_table_add_column_right,Je as amplify_table_add_row_above,Ye as amplify_table_add_row_below,Xe as amplify_table_column_heading,Ze as amplify_table_merge_cells,Qe as amplify_table_remove_column,$e as amplify_table_remove_row,et as amplify_table_row_heading,tt as amplify_table_split_cell,Ve as amplify_tutorials,Se as amplify_wellbore,Ce as amplify_wireline,we as amplify_wireline_cased_hole,Te 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,mt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,nt as style,c as typography,re as useAmplifyKit,q as useAuth,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,ce as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,it as useReleaseNotes,me as useSearchParameter,se as useSelect,Y as useSideBar,Z as useSnackbar,ue as useStepper,ee as useTableOfContents,pe as useThemeProvider,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{useNotification as ce}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as le,useStepper as ue}from"./providers/StepperProvider.js";import{Theme as de}from"./atoms/enums/Theme.js";import{ThemeProvider as fe,useThemeProvider as pe}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as me}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as he}from"./atoms/hooks/useFaqsInApplication.js";import{ErrorType as ge}from"./atoms/enums/Errors.js";import{SpacingsMode as _e}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as ve,amplify_lwd as ye,amplify_success as be,amplify_wellbore as xe,amplify_wireline as Se,amplify_wireline_cased_hole as Ce,amplify_wireline_open_hole as we}from"./atoms/icons/drilling.js";import{amplify_calculator as Te,amplify_overlay as Ee,amplify_sidebyside as De}from"./atoms/icons/map.js";import{amplify_aml as Oe,amplify_arrow_up_down as ke,amplify_branch as Ae,amplify_info_small as je,amplify_merged as Me,amplify_overview as Ne,amplify_resources as Pe,amplify_sharepoint as Fe,amplify_shield_person as Ie,amplify_small_portal as Le,amplify_snail as Re,amplify_sort_small as ze,amplify_tutorials as Be}from"./atoms/icons/other.js";import{amplify_h1 as Ve,amplify_h2 as He,amplify_h3 as Ue,amplify_h4 as We,amplify_table_add_column_left as Ge,amplify_table_add_column_right as Ke,amplify_table_add_row_above as qe,amplify_table_add_row_below as Je,amplify_table_column_heading as Ye,amplify_table_merge_cells as Xe,amplify_table_remove_column as Ze,amplify_table_remove_row as Qe,amplify_table_row_heading as $e,amplify_table_split_cell as et}from"./atoms/icons/wysiwyg.js";import{style as tt}from"./atoms/index.js";import{ReleaseNotesProvider as nt,useReleaseNotes as rt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as it}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as at}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as ot}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 lt}from"./molecules/Banner/Banner.js";import{Button as ut}from"./molecules/Button/Button.js";import{Chip as dt}from"./molecules/Chip/Chip.js";import{SkeletonBase as ft,skeletonBaseloading as pt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as mt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as ht}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as gt}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as _t}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as vt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as yt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as bt}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as xt,IconCellStates as St,IconCellVariants as Ct}from"./molecules/IconCell/IconCell.types.js";import{IconCell as wt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Tt}from"./molecules/InfoElement/InfoElement.js";import{ProfileAvatar as Et}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Dt}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as Ot,TextTable as kt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as At}from"./molecules/TextField/TextField.js";import{AmplifyBar as jt,EditorMenu as Mt,EditorText as Nt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Pt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Ft}from"./molecules/RichTextEditor/index.js";import{Tabs as It}from"./molecules/Tabs/Tabs.js";import{Search as Lt}from"./molecules/Search/Search.js";import{SkeletonGradient as Rt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as zt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Bt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Vt}from"./molecules/Select/Select.styles.js";import{ComboBox as Ht}from"./molecules/Select/ComboBox/ComboBox.js";import{SingleSelect as Ut}from"./molecules/Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as Wt}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as Gt}from"./molecules/ListItem/ListItem.js";import{Checkbox as Kt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as qt}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Jt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as Yt}from"./molecules/Waves/Waves.js";import{Accordion as Xt,Breadcrumbs as Zt,CircularProgress as Qt,Divider as $t,DotProgress as en,EDSDialog as tn,Icon as nn,LinearProgress as rn,Menu as an,Typography as on}from"./molecules/index.js";import{DataGrid as sn}from"./organisms/DataGrid/DataGrid.js";import{Template as cn}from"./organisms/Template/Template.js";import{FieldSelector as ln}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as un}from"./organisms/Filter/index.js";import{SideBar as dn}from"./organisms/SideBar/index.js";import{ReleaseNote as fn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as pn}from"./organisms/TopBar/index.js";import{BadRequest as mn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as hn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as gn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as _n}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as vn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as yn}from"./organisms/Status/collections/ApiResponseError.js";import{TableOfContents as bn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as xn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Sn}from"./organisms/ToggleGroup/index.js";import{Faq as Cn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as wn}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Tn}from"./organisms/index.js";import{ExpandingIconButton as En}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Dn from"./deprecated/IconToggleButton.js";import{OldStepper as On}from"./deprecated/OldStepper/OldStepper.js";export{Xt as Accordion,jt as AmplifyBar,ne as AmplifyKit,ot as AnimatedCheckmark,yn as ApiResponseError,st as ApplicationIcon,K as AuthProvider,mn as BadRequest,ct as Badge,lt as Banner,Zt as Breadcrumbs,ut as Button,Tn as Card,Kt as Checkbox,dt as Chip,Qt as CircularProgress,Ht as ComboBox,Vt as ComboBoxChip,w as DEFAULT_FEATURES,sn as DataGrid,mt as DatePicker,ht as DateRangePicker,_t as Dialog,$t as Divider,en as DotProgress,tn as EDSDialog,Mt as EditorMenu,Nt as EditorText,R as Empty,e as EnvironmentType,vt as EquinorLogo,ge as ErrorType,En as ExpandingIconButton,Cn as Faq,Wt as FeedBackIcon,ln as FieldSelector,yt as FileProgress,bt as FileUploadArea,un as Filter,l as FullPageSpinner,hn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,nn as Icon,wt as IconCell,xt as IconCellColors,St as IconCellStates,Ct as IconCellVariants,Dn as IconToggleButton,Tt as InfoElement,rn as LinearProgress,Gt as ListItem,at as LoadingProvider,an as Menu,G as MissingAccessToApp,gn as MissingPermissions,On as OldStepper,Bt as OptionDrawer,gt as OptionalTooltip,_n as PageNotFound,xn as PageTitle,Et as ProfileAvatar,qt as Radio,fn as ReleaseNote,wn as ReleaseNotesPage,nt as ReleaseNotesProvider,Ft as RichText,Dt as RichTextDisplay,Pt as RichTextEditor,T as RichTextEditorFeatures,Lt as Search,vn as ServerError,dn as SideBar,J as SideBarProvider,Ut as SingleSelect,ft as SkeletonBase,Rt as SkeletonGradient,X as SnackbarProvider,_e as SpacingsMode,W as Status,zt as Stepper,le as StepperProvider,Jt as Switch,Ot as TableMenuBar,bn as TableOfContents,$ as TableOfContentsProvider,It as Tabs,cn as Template,At as TextField,kt as TextTable,de as Theme,fe as ThemeProvider,Sn as ToggleGroup,pn as TopBar,it as TutorialHighlightingProvider,on as Typography,Yt as Waves,Oe as amplify_aml,ke as amplify_arrow_up_down,Ae as amplify_branch,Te as amplify_calculator,ve as amplify_failure,Ve as amplify_h1,He as amplify_h2,Ue as amplify_h3,We as amplify_h4,je as amplify_info_small,ye as amplify_lwd,Me as amplify_merged,Ee as amplify_overlay,Ne as amplify_overview,Pe as amplify_resources,Fe as amplify_sharepoint,Ie as amplify_shield_person,De as amplify_sidebyside,Le as amplify_small_portal,Re as amplify_snail,ze as amplify_sort_small,be as amplify_success,Ge as amplify_table_add_column_left,Ke as amplify_table_add_column_right,qe as amplify_table_add_row_above,Je as amplify_table_add_row_below,Ye as amplify_table_column_heading,Xe as amplify_table_merge_cells,Ze as amplify_table_remove_column,Qe as amplify_table_remove_row,$e as amplify_table_row_heading,et as amplify_table_split_cell,Be as amplify_tutorials,xe as amplify_wellbore,Se as amplify_wireline,Ce as amplify_wireline_cased_hole,we 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,pt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,tt as style,c as typography,re as useAmplifyKit,q as useAuth,ie as useDebounce,ae as useFakeProgress,he as useFaqsInApplication,te as useLocalStorage,ce as useNotification,Q as useOnScreenMultiple,me as usePrefetchRichTextImages,oe as usePrevious,rt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ue as useStepper,ee as useTableOfContents,pe as useThemeProvider,S as utmProjection};
|
|
@@ -51,4 +51,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
51
51
|
transition: all 3s cubic-bezier(0.25, 1, 0.5, 1);
|
|
52
52
|
transform: rotate(${e=>e.$rotation}deg);
|
|
53
53
|
pointer-events: none;
|
|
54
|
-
`,f=n(({size:e=48,iconData:t,shapes:n,iconOnly:i,withHover:a,grayScale:c=!1},l)=>i?o(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:Array.isArray(t)?t.map((t,n)=>o(r,{data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`})}):s(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:[Array.isArray(t)?t.map((t,n)=>o(r,{"data-testid":`icon-part-${n}`,data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`}),n.map((e,t)=>o(d,{"data-testid":`shape`,$index:t,$top:e.top,$left:e.left,$rotation:e.rotation,$grayScale:c},`shape-${t}`))]}));f.displayName=`ApplicationIconBase`;export{
|
|
54
|
+
`,f=n(({size:e=48,iconData:t,shapes:n,iconOnly:i,withHover:a,grayScale:c=!1},l)=>i?o(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:Array.isArray(t)?t.map((t,n)=>o(r,{data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`})}):s(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:[Array.isArray(t)?t.map((t,n)=>o(r,{"data-testid":`icon-part-${n}`,data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`}),n.map((e,t)=>o(d,{"data-testid":`shape`,$index:t,$top:e.top,$left:e.left,$rotation:e.rotation,$grayScale:c},`shape-${t}`))]}));f.displayName=`ApplicationIconBase`;var p=f;export{p as default};
|
|
@@ -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 from"styled-components";const{shape:i}=e,a=e=>{
|
|
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 from"styled-components";const{shape:i}=e,a=e=>({light:{background:`rgba(235, 235, 235, 1)`,color:t.text.static_icons__tertiary.rgba},danger:{background:t.interactive.danger__resting.rgba,color:t.text.static_icons__primary_white.rgba},empty:{background:t.interactive.disabled__fill.rgba,color:t.interactive.disabled__text.rgba},default:{background:t.text.static_icons__tertiary.rgba,color:t.text.static_icons__primary_white.rgba}})[e],o=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -9,4 +9,4 @@ import{variantAndColorToProgressColor as e}from"./Button.utils.js";import{forwar
|
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
12
|
-
`,d=t(({loading:t,variant:a,color:d,disabled:f=!1,onClick:p,...m},h)=>{let g=a?.includes(`icon`)?{width:`var(--eds_icon-button__size, 40px)`,height:`var(--eds_icon-button__size, 40px)`,...m.style}:m.style
|
|
12
|
+
`,d=t(({loading:t,variant:a,color:d,disabled:f=!1,onClick:p,...m},h)=>{let g=a?.includes(`icon`)?{width:`var(--eds_icon-button__size, 40px)`,height:`var(--eds_icon-button__size, 40px)`,...m.style}:m.style;return s(n,{ref:h,variant:a,color:d,disabled:t?!1:f,onClick:t?void 0:p,...m,style:g,children:t?c(o,{children:[s(l,{children:m.children}),s(u,{children:a&&a.includes(`icon`)?s(r,{size:16,color:e({variant:a,color:d})}):s(i,{color:e({variant:a,color:d})})})]}):m.children})});d.displayName=`Button`;const f=d;export{f as Button};
|
|
@@ -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:`${t.interactive.disabled__border.rgba}`},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_hover.rgba}`,borderColor:`${t.interactive.primary__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.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:`${t.interactive.disabled__border.rgba}`}},warning:{color:`${t.interactive.warning__text.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.interactive.warning__resting.rgba}`,hover:{color:`${t.interactive.warning__hover.rgba}`,background:`${t.ui.background__warning.rgba}`,borderColor:`${t.interactive.warning__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.rgba}`},selected:{color:`${t.interactive.warning__text.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.interactive.warning__resting.rgba}`,hover:{color:`${t.interactive.warning__hover.rgba}`,background:`${t.interactive.primary__selected_hover.rgba}`,borderColor:`${t.interactive.warning__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.warning__highlight.rgba}`}}},error:{color:`${t.interactive.danger__text.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.interactive.danger__resting.rgba}`,hover:{color:`${t.interactive.danger__hover.rgba}`,background:`${t.ui.background__danger.rgba}`,borderColor:`${t.interactive.danger__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.rgba}`},selected:{color:`${t.interactive.danger__text.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.interactive.danger__resting.rgba}`,hover:{color:`${t.interactive.danger__hover.rgba}`,background:`${t.interactive.primary__selected_hover.rgba}`,borderColor:`${t.interactive.danger__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.danger__highlight.rgba}`}}}},c=(e=`default`,t=!1)=>{let n=t&&e===`white`?`default`:e
|
|
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:`${t.interactive.disabled__border.rgba}`},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_hover.rgba}`,borderColor:`${t.interactive.primary__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.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:`${t.interactive.disabled__border.rgba}`}},warning:{color:`${t.interactive.warning__text.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.interactive.warning__resting.rgba}`,hover:{color:`${t.interactive.warning__hover.rgba}`,background:`${t.ui.background__warning.rgba}`,borderColor:`${t.interactive.warning__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.rgba}`},selected:{color:`${t.interactive.warning__text.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.interactive.warning__resting.rgba}`,hover:{color:`${t.interactive.warning__hover.rgba}`,background:`${t.interactive.primary__selected_hover.rgba}`,borderColor:`${t.interactive.warning__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.warning__highlight.rgba}`}}},error:{color:`${t.interactive.danger__text.rgba}`,background:`${t.ui.background__light.rgba}`,borderColor:`${t.interactive.danger__resting.rgba}`,hover:{color:`${t.interactive.danger__hover.rgba}`,background:`${t.ui.background__danger.rgba}`,borderColor:`${t.interactive.danger__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.disabled__border.rgba}`},selected:{color:`${t.interactive.danger__text.rgba}`,background:`${t.interactive.primary__selected_highlight.rgba}`,borderColor:`${t.interactive.danger__resting.rgba}`,hover:{color:`${t.interactive.danger__hover.rgba}`,background:`${t.interactive.primary__selected_hover.rgba}`,borderColor:`${t.interactive.danger__hover.rgba}`},disabled:{color:`${t.interactive.disabled__text.rgba}`,background:`${t.interactive.disabled__fill.rgba}`,borderColor:`${t.interactive.danger__highlight.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react13 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: react13.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
|
|
12
12
|
variant?: Variants;
|
|
13
13
|
meta?: string;
|
|
14
14
|
loading?: boolean;
|
|
15
|
-
} &
|
|
15
|
+
} & react13.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react9 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
|
|
4
4
|
import { IconData } from "@equinor/eds-icons";
|
|
@@ -51,6 +51,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
|
|
|
51
51
|
* @param additionalInfo - Defaults to empty, and won't show the additional info button
|
|
52
52
|
* Also inherits props from EDS dialog
|
|
53
53
|
*/
|
|
54
|
-
declare const Dialog$1:
|
|
54
|
+
declare const Dialog$1: react9.ForwardRefExoticComponent<DialogProps$1 & react9.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{AdditionalText as n,CircularProgress as r,CloseButton as i,CompactFileProgressContainer as a,DoneWrapper as o,FileTooltip as s,LoadingWrapper as c,Rejection as l}from"./CompactFileProgress.styles.js";import{getFileIcon as u,isFileImage as d,readUploadedFileAsText as f}from"./FileProgress.utils.js";import{useEffect as p,useMemo as m,useState as h}from"react";import{Icon as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{AdditionalText as n,CircularProgress as r,CloseButton as i,CompactFileProgressContainer as a,DoneWrapper as o,FileTooltip as s,LoadingWrapper as c,Rejection as l}from"./CompactFileProgress.styles.js";import{getFileIcon as u,isFileImage as d,readUploadedFileAsText as f}from"./FileProgress.utils.js";import{useEffect as p,useMemo as m,useState as h}from"react";import{Icon as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";var S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=h(``);p(()=>{C||(async e=>{let t=await f(e);j(t)})(S)},[C,S]);let M=m(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),N=m(()=>C?y(l,{children:[v(g,{data:x,color:e.interactive.warning__text.rgba}),v(`div`,{children:w&&w.length>0?w:`Invalid file type`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.interactive.warning__text.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}):T&&!O&&d(S.name)?v(o,{children:v(`img`,{src:A,alt:` ${S.name}`})}):T&&!O?v(o,{children:v(g,{data:u(S.name)})}):y(c,{children:[v(r,{variant:k.indeterminate||O?`indeterminate`:`determinate`,value:!k.isDone&&!k.indeterminate?k.progressPercent:void 0,size:24}),v(_,{variant:`meta`,children:`Uploading...`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.ui.background__medium.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}),[C,T,O,w,A,S.name,k]);return y(a,{$isError:C,children:[v(s,{title:M,children:N}),v(t,{title:S.name,children:v(n,{group:`paragraph`,variant:`meta`,children:S.name})}),!O&&k.onDelete&&v(i,{"data-testid":`delete-file`,onClick:D,children:v(g,{color:e.text.static_icons__tertiary.rgba,data:b})})]})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{file_description as e,library_pdf as t}from"@equinor/eds-icons";function n(e){let t=new FileReader;return new Promise((n,r)=>{t.onerror=()=>{t.abort(),r(new DOMException(`Problem parsing input file.`))},t.onload=()=>{n(t.result)},t.readAsDataURL(e)})}function r(e){return/\.(jpe?g|png|gif|bmp)$/i.test(e)}function i(n){
|
|
1
|
+
import{file_description as e,library_pdf as t}from"@equinor/eds-icons";function n(e){let t=new FileReader;return new Promise((n,r)=>{t.onerror=()=>{t.abort(),r(new DOMException(`Problem parsing input file.`))},t.onload=()=>{n(t.result)},t.readAsDataURL(e)})}function r(e){return/\.(jpe?g|png|gif|bmp)$/i.test(e)}function i(n){switch(n.split(`.`).pop()){case`pdf`:return t;default:return e}}export{i as getFileIcon,r as isFileImage,n as readUploadedFileAsText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{formatDataSize as t}from"../../atoms/utils/size.js";import{Container as n,FileName as r,LinearProgress as i,ProgressWrapper as a,RegularFileProgressDetails as o,RegularFileProgressWrapper as s}from"./RegularFileProgress.styles.js";import{useMemo as c}from"react";import{Button as l,CircularProgress as u,Icon as d,Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{close_circle_outlined as h,delete_to_trash as g,file as _,refresh as v}from"@equinor/eds-icons";
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{formatDataSize as t}from"../../atoms/utils/size.js";import{Container as n,FileName as r,LinearProgress as i,ProgressWrapper as a,RegularFileProgressDetails as o,RegularFileProgressWrapper as s}from"./RegularFileProgress.styles.js";import{useMemo as c}from"react";import{Button as l,CircularProgress as u,Icon as d,Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{close_circle_outlined as h,delete_to_trash as g,file as _,refresh as v}from"@equinor/eds-icons";var y=({onRetry:y,file:b,customLoadingText:x,customCompleteText:S,isError:C,fullErrorText:w,showCompleteState:T,handleOnClick:E,isDeleting:D,...O})=>{let k=c(()=>{if(!b?.size||O.isDone||O.indeterminate||O.progressPercent===void 0)return 1;let e=b.size/100*O.progressPercent;return t({inputFormat:`B`,size:e,decimals:1})},[b?.size,O]),A=c(()=>C?w??`An error has occurred`:T?S??`File uploaded!`:x??`loading...`,[S,x,w,T,C]);return m(n,{$isError:C,children:[p(d,{data:_,color:C?e.interactive.warning__hover.rgba:e.interactive.primary__resting.rgba,size:32}),m(s,{children:[m(r,{children:[p(f,{variant:`caption`,children:b.name}),m(`div`,{children:[D?p(l,{variant:`ghost_icon`,children:p(u,{size:24})}):O.onDelete&&p(l,{variant:`ghost_icon`,onClick:E,"data-testid":`delete-file`,children:p(d,{data:T?g:h,color:e.text.static_icons__tertiary.rgba,size:24})}),C&&y&&p(l,{variant:`ghost_icon`,onClick:y,children:p(d,{data:v,color:e.text.static_icons__tertiary.rgba,size:24})})]})]}),p(a,{children:!T&&!O.isDone&&p(i,{variant:O.indeterminate?`indeterminate`:`determinate`,value:O.indeterminate?void 0:O.progressPercent})}),m(o,{children:[p(f,{variant:`overline`,children:A}),b?.size&&p(f,{variant:`overline`,children:T?t({size:b.size,decimals:1,inputFormat:`B`}):`${k} of ${t({size:b.size,decimals:1,inputFormat:`B`})}`})]})]})]})};export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{OptionalTooltip as n}from"../OptionalTooltip/OptionalTooltip.js";import{DividerRow as r,MediumUploadWrapper as i,SmallUploadWrapper as a,UploadWrapper as o}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as s}from"./FileUploadArea.constants.js";import{UploadIllustration as c}from"./UploadIllustration.js";import{useEffect as l,useMemo as u}from"react";import{Icon as
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{OptionalTooltip as n}from"../OptionalTooltip/OptionalTooltip.js";import{DividerRow as r,MediumUploadWrapper as i,SmallUploadWrapper as a,UploadWrapper as o}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as s}from"./FileUploadArea.constants.js";import{UploadIllustration as c}from"./UploadIllustration.js";import{useEffect as l,useMemo as u,useState as d}from"react";import{Icon 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]=d(!1);l(()=>{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]),l(()=>{if(C){if(!document.getElementById(s)){let t=document.createElement(`div`);t.id=s,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.backgroundColor=e.ui.background__scrim.rgba,t.style.zIndex=`9999`,t.style.pointerEvents=`none`,window.document.body.appendChild(t)}}else{let e=document.getElementById(s);e!==null&&e.remove()}},[C]);let T=u(()=>{if(y.accept)return Object.values(y.accept).join(`, `)},[y.accept]);return v==`small`?h(a,{...b(),style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(c,{}),m(p,{variant:`meta`,children:`Upload file`}),y.accept&&m(n,{title:`Supported filetypes: ${T}`,children:h(p,{variant:`meta`,children:[`(`,T,`)`]})})]}):v==`medium`?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(c,{}),h(`section`,{children:[m(p,{variant:`button`,group:`navigation`,children:`Drag files here`}),y.accept&&m(n,{title:`Supported filetypes: ${T}`,children:m(p,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:T})})]}),h(r,{children:[m(`hr`,{}),m(p,{variant:`meta`,children:`OR`}),m(`hr`,{})]}),h(t,{variant:`ghost`,onClick:b().onClick,children:[m(f,{data:g}),`Browse files`]})]}):h(o,{...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(c,{}),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(r,{children:[m(`hr`,{}),m(p,{variant:`button`,group:`navigation`,children:`OR`}),m(`hr`,{})]}),h(t,{variant:`ghost`,onClick:b().onClick,children:[m(f,{data:g}),`Browse files`]})]})};export{v as FileUploadArea};
|
|
@@ -63,7 +63,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
|
|
|
63
63
|
`}
|
|
64
64
|
|
|
65
65
|
// Overlay for Label & HelperIconContainer
|
|
66
|
-
${({$backgroundColor:e,$variant:n,$state:a})=>{let o=n===i.COLOURED?a===r.
|
|
66
|
+
${({$backgroundColor:e,$variant:n,$state:a})=>{let o=n===i.COLOURED?a===r.ERROR?c[r.ERROR]:a===r.WARNING?c[r.WARNING]:e:t.ui.background__default.rgba;return`
|
|
67
67
|
${f}::before,
|
|
68
68
|
${m}::before {
|
|
69
69
|
${u(o)}
|
|
@@ -4,7 +4,6 @@ declare const IconCellColors: {
|
|
|
4
4
|
readonly RED: "red";
|
|
5
5
|
readonly ORANGE: "orange";
|
|
6
6
|
readonly BLUE: "blue";
|
|
7
|
-
readonly GREY: "grey";
|
|
8
7
|
readonly LIGHTGREY: "lightgrey";
|
|
9
8
|
readonly PINK: "pink";
|
|
10
9
|
readonly YELLOW: "yellow";
|
|
@@ -12,8 +11,6 @@ declare const IconCellColors: {
|
|
|
12
11
|
readonly SUCCESS: "success";
|
|
13
12
|
readonly WARNING: "warning";
|
|
14
13
|
readonly ERROR: "error";
|
|
15
|
-
readonly INFO: "info";
|
|
16
|
-
readonly DANGER: "danger";
|
|
17
14
|
readonly DEFAULT: "default";
|
|
18
15
|
};
|
|
19
16
|
type IconCellColor = (typeof IconCellColors)[keyof typeof IconCellColors];
|
|
@@ -26,8 +23,12 @@ type IconCellVariant = (typeof IconCellVariants)[keyof typeof IconCellVariants];
|
|
|
26
23
|
declare const IconCellStates: {
|
|
27
24
|
readonly DEFAULT: "default";
|
|
28
25
|
readonly WARNING: "warning";
|
|
29
|
-
readonly
|
|
26
|
+
readonly ERROR: "error";
|
|
30
27
|
};
|
|
31
28
|
type IconCellState = (typeof IconCellStates)[keyof typeof IconCellStates];
|
|
29
|
+
interface IconCellColorObject {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
iconColor: string;
|
|
32
|
+
}
|
|
32
33
|
//#endregion
|
|
33
|
-
export { IconCellColor, IconCellColors, IconCellState, IconCellStates, IconCellVariant, IconCellVariants };
|
|
34
|
+
export { IconCellColor, IconCellColorObject, IconCellColors, IconCellState, IconCellStates, IconCellVariant, IconCellVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={GREEN:`green`,RED:`red`,ORANGE:`orange`,BLUE:`blue`,
|
|
1
|
+
const e={GREEN:`green`,RED:`red`,ORANGE:`orange`,BLUE:`blue`,LIGHTGREY:`lightgrey`,PINK:`pink`,YELLOW:`yellow`,PURPLE:`purple`,SUCCESS:`success`,WARNING:`warning`,ERROR:`error`,DEFAULT:`default`},t={DEFAULT:`default`,COLOURED:`colored`,SCRIBBLED_OUT:`scribbled-out`},n={DEFAULT:`default`,WARNING:`warning`,ERROR:`error`};export{e as IconCellColors,n as IconCellStates,t as IconCellVariants};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{Theme as t}from"../../atoms/enums/Theme.js";import{IconCellColors as n,IconCellStates as r,IconCellVariants as i}from"./IconCell.types.js";import{Icon as a}from"@equinor/eds-core-react";import{jsx as o}from"react/jsx-runtime";const s=(e,t)=>e&&typeof e==`object`&&`prefix`in e?o(a,{data:e,color:t}):e,c=(r,i)=>{switch(r){case n.GREEN:case n.SUCCESS:return i===t.LIGHT?{backgroundColor:e.interactive.success__highlight.rgba,iconColor:e.dataviz.darkgreen.default}:{backgroundColor:e.dataviz.darkgreen.default,iconColor:e.dataviz.lightgreen.lighter};case n.RED:case n.ERROR:
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{Theme as t}from"../../atoms/enums/Theme.js";import{IconCellColors as n,IconCellStates as r,IconCellVariants as i}from"./IconCell.types.js";import{Icon as a}from"@equinor/eds-core-react";import{jsx as o}from"react/jsx-runtime";const s=(e,t)=>e&&typeof e==`object`&&`prefix`in e?o(a,{data:e,color:t}):e,c=(r,i)=>{switch(r){case n.GREEN:case n.SUCCESS:return i===t.LIGHT?{backgroundColor:e.interactive.success__highlight.rgba,iconColor:e.dataviz.darkgreen.default}:{backgroundColor:e.dataviz.darkgreen.default,iconColor:e.dataviz.lightgreen.lighter};case n.RED:case n.ERROR:return i===t.LIGHT?{backgroundColor:e.interactive.danger__highlight.rgba,iconColor:e.interactive.danger__text.rgba}:{backgroundColor:e.ui.background__danger.rgba,iconColor:e.text.static_icons__default.rgba};case n.ORANGE:case n.WARNING:return i===t.LIGHT?{backgroundColor:e.interactive.warning__highlight.rgba,iconColor:e.dataviz.darkyellow.darker}:{backgroundColor:e.ui.background__warning.rgba,iconColor:e.text.static_icons__default.rgba};case n.BLUE:return i===t.LIGHT?{backgroundColor:e.dataviz.lightblue.lighter,iconColor:e.dataviz.primary.darker}:{backgroundColor:e.dataviz.darkblue.default,iconColor:e.dataviz.lightblue.lighter};case n.LIGHTGREY:return i===t.LIGHT?{backgroundColor:e.ui.background__light.rgba,iconColor:e.dataviz.lightgray.darker}:{backgroundColor:e.ui.background__heavy.rgba,iconColor:e.text.static_icons__secondary.rgba};case n.PINK:return i===t.LIGHT?{backgroundColor:e.dataviz.darkpink.lighter,iconColor:e.dataviz.darkpink.darker}:{backgroundColor:e.dataviz.darkpink.darker,iconColor:e.dataviz.darkpink.lighter};case n.YELLOW:return i===t.LIGHT?{backgroundColor:e.dataviz.lightyellow.lighter,iconColor:e.dataviz.darkyellow.darker}:{backgroundColor:e.dataviz.darkyellow.darker,iconColor:e.dataviz.lightyellow.lighter};case n.PURPLE:return i===t.LIGHT?{backgroundColor:e.dataviz.lightpurple.lighter,iconColor:e.dataviz.darkpurple.darker}:{backgroundColor:e.dataviz.darkpurple.darker,iconColor:e.dataviz.lightpurple.lighter};default:return i===t.LIGHT?{backgroundColor:e.ui.background__medium.rgba,iconColor:e.text.static_icons__default.rgba}:{backgroundColor:e.ui.background__light.rgba,iconColor:e.text.static_icons__default.rgba}}},l={[r.ERROR]:e.interactive.danger__resting.rgba,[r.WARNING]:e.interactive.warning__resting.rgba},u={[r.ERROR]:e.ui.background__danger.rgba,[r.WARNING]:e.ui.background__warning.rgba},d=(e,t)=>(t?l[t]:void 0)??e,f=({$noBottomBorder:t,$state:n,$backgroundColor:r})=>`1px solid ${t?r:d(e.ui.background__medium.rgba,n)}`,p=t=>d(e.text.static_icons__default.rgba,t),m=({$variant:t,$state:n,$backgroundColor:a=e.ui.background__default.rgba})=>t===i.SCRIBBLED_OUT?`repeating-linear-gradient(
|
|
2
2
|
20deg,
|
|
3
3
|
${e.ui.background__light_medium.rgba} 0px,
|
|
4
4
|
${e.ui.background__default.rgba} 1px,
|
|
5
5
|
${e.ui.background__default.rgba} 10px,
|
|
6
6
|
${e.ui.background__light_medium.rgba} 11px,
|
|
7
7
|
${e.ui.background__light_medium.rgba} 12px
|
|
8
|
-
)`:t===i.COLOURED?n===r.
|
|
8
|
+
)`:t===i.COLOURED?n===r.ERROR?u[r.ERROR]:n===r.WARNING?u[r.WARNING]:a:`transparent`;export{m as getBackground,f as getBorderBottom,c as getIconCellColor,p as getSelectedBorder,s as renderContent,u as stateBGColor};
|