@equinor/amplify-component-lib 11.1.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +1 -0
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/index.d.ts +1 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/map.js +1 -1
- package/dist/atoms/utils/sort.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/OldStep.js +1 -1
- package/dist/deprecated/OldStepper/OldStepLine.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/molecules/AnimatedCheckmark/AnimatedCheckmark.js +1 -1
- package/dist/molecules/Banner/Banner.utils.js +1 -1
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Confetti/Confetti.constants.js +1 -1
- package/dist/molecules/Confetti/utils/createConfetti.js +1 -1
- package/dist/molecules/Confetti/utils/drawShapes.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- package/dist/molecules/InfoElement/CopyText.js +5 -5
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/InformationalNotice/InformationalNotice.utils.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/RichTextDisplay/RichTextDisplay.d.ts +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableDelete.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +6 -5
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/ListSelectPersistent.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +9 -6
- package/dist/molecules/Select/Select.styles.js +7 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -3
- package/dist/molecules/Stepper/Step/Step.js +1 -1
- package/dist/molecules/Stepper/Stepper.js +1 -1
- package/dist/molecules/Tabs/Tab.js +1 -1
- package/dist/molecules/TextField/TextField.js +3 -3
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/Faq/Category/Category.styles.js +5 -5
- package/dist/organisms/Faq/Category/Question/Question.styles.js +7 -7
- package/dist/organisms/Faq/Category/Subcategory.js +7 -7
- package/dist/organisms/Faq/Faq.js +6 -6
- package/dist/organisms/Faq/Faq.utils.js +1 -1
- package/dist/organisms/FieldSelector/ChangingField.js +4 -4
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +4 -4
- package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +10 -10
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/ReleaseNote/ReleaseNote.js +4 -4
- package/dist/organisms/ReleaseNotesPage/ReleaseNotesPage.utils.js +1 -1
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/SideBar.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/Illustration.constants.js +1 -1
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Template/Template.d.ts +5 -5
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +1 -1
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -3
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +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/Url.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- 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/Resources.d.ts +0 -1
- package/dist/organisms/TopBar/Resources/Resources.js +1 -1
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +3 -3
- package/dist/organisms/TopBar/TopBarMenu.js +2 -2
- package/dist/organisms/TopBar/TransferToAppDialog.js +6 -6
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProvider.js +1 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
- package/dist/providers/ConfettiProvider/ConfettiProvider.js +1 -1
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.js +1 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.styles.js +5 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyProgress.js +4 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.js +5 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.js +10 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.js +5 -0
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyQuestion.js +1 -0
- package/dist/providers/SurveyProvider/SurveyDialog/UmuxDialog.js +5 -0
- package/dist/providers/SurveyProvider/SurveyProvider.d.ts +14 -0
- package/dist/providers/SurveyProvider/SurveyProvider.js +1 -0
- package/dist/providers/SurveyProvider/hooks/useSurvey.js +1 -0
- package/package.json +12 -12
- package/dist/_virtual/rolldown_runtime.js +0 -1
- package/dist/organisms/ReleaseNote/ReleaseNote.constants.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t as __exportAll};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react209 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, react209.Dispatch<react209.SetStateAction<T>>, () => void];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useLocalStorage };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOption, SelectOptionRequired } from "../../molecules/Select/Select.types.js";
|
|
2
2
|
import { SelectComponentProps } from "../../molecules/Select/Select.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react211 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: react211.RefObject<HTMLInputElement | null>;
|
|
20
|
+
itemRefs: react211.RefObject<(HTMLButtonElement | null)[]>;
|
|
21
21
|
selectedValues: T[];
|
|
22
22
|
open: boolean;
|
|
23
23
|
tryingToRemoveItem: T | undefined;
|
package/dist/atoms/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./enums/Environment.js";import"./utils/auth_environment.js";import"./style/animation.js";import"./style/colors.js";import"./style/spacings.js";import{style_exports as e}from"./style/index.js";import"./utils/coordinate.js";import"./utils/date.js";import"./utils/export.js";import"./utils/favicon.js";import"./utils/map.js";import"./utils/reactquery.js";import"./utils/richtext.js";import"./utils/size.js";import"./utils/sort.js";import"./utils/string.js";import"./utils/url.js";import"./utils/tutorials.js";import"./utils/forms.js";import"../providers/AuthProvider/AuthProvider.js";import"../providers/SideBarProvider.js";import"../providers/SnackbarProvider/SnackbarProvider.js";import"./hooks/useOnScreenMultiple.js";import"../providers/TableOfContentsProvider.js";import"./hooks/useLocalStorage.js";import"./hooks/useAmplifyKit.js";import"./hooks/useDebounce.js";import"./hooks/useFakeProgress.js";import"./hooks/usePrevious.js";import"./hooks/useSelect.js";import"./hooks/useStatusNavigation.js";import"../organisms/TopBar/Notifications/NotificationProvider.js";import"../providers/StepperProvider.js";import"./enums/Theme.js";import"../providers/ThemeProvider/ThemeProvider.js";import"./hooks/usePrefetchRichTextImages.js";import"./hooks/useFaqsInApplication.js";import"../providers/ToastProvider/ToastProvider.js";import"../providers/ConfettiProvider/ConfettiProvider.js";import"./enums/Errors.js";import"./enums/SpacingsMode.js";import"./icons/drilling.js";import"./icons/map.js";import"./icons/other.js";import"./icons/wysiwyg.js";import"../providers/ReleaseNotesProvider.js";const t=e;export{t as style};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as e}from"../../_virtual/
|
|
1
|
+
import{__exportAll as e}from"../../_virtual/_rolldown/runtime.js";import{tokens as t}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{animation as n}from"./animation.js";import{colors as r}from"./colors.js";import{spacings as i}from"./spacings.js";var a=e({animation:()=>n,colors:()=>r,elevation:()=>s,shape:()=>o,spacings:()=>i,typography:()=>c});const{shape:o,elevation:s,typography:c}=t;export{s as elevation,o as shape,a as style_exports,c as typography};
|
|
@@ -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;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
|
|
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`}}),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/map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"proj4";function t(e){return
|
|
1
|
+
import e from"proj4";function t(e){return Math.PI/180*e}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/sort.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){let n=typeof e==`string`?new Date(e):e,r=typeof t==`string`?new Date(t):t;return n>r?-1
|
|
1
|
+
function e(e,t){let n=typeof e==`string`?new Date(e):e,r=typeof t==`string`?new Date(t):t;return n>r?-1:+(n<r)}function t(e,t){let n=typeof e==`string`?e:e.wellboreName,r=typeof t==`string`?t:t.wellboreName;return n&&r?n.localeCompare(r,void 0,{numeric:!0,sensitivity:`base`}):0}export{e as sortByDate,t as sortByWellboreName};
|
|
@@ -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 react4 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: react4.ForwardRefExoticComponent<IconToggleButtonProps & react4.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);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`;
|
|
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`;export{o as default};
|
|
@@ -26,4 +26,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
26
26
|
> svg {
|
|
27
27
|
transform: scale(0.9);
|
|
28
28
|
}
|
|
29
|
-
`,m=({currentIndex:e,setCurrentIndex:t,index:o,onlyShowCurrentStepLabel:d=!1,children:m})=>{let[h,g]=r(null),_=n(()=>o>=e?s(p,{$filled:o===e,children:s(a,{variant:`caption`,children:o+1})}):s(p,{$outlined:!0,"data-testid":`wrapper`,children:s(i,{data:l,color:u.interactive.primary__resting.rgba})}),[o,e]),v=n(()=>o<e?`body_short`:`body_short_bold`,[e,o]),y=n(()=>o>e?u.interactive.disabled__text.rgba:u.text.static_icons__default.rgba,[e,o])
|
|
29
|
+
`,m=({currentIndex:e,setCurrentIndex:t,index:o,onlyShowCurrentStepLabel:d=!1,children:m})=>{let[h,g]=r(null),_=n(()=>o>=e?s(p,{$filled:o===e,children:s(a,{variant:`caption`,children:o+1})}):s(p,{$outlined:!0,"data-testid":`wrapper`,children:s(i,{data:l,color:u.interactive.primary__resting.rgba})}),[o,e]),v=n(()=>o<e?`body_short`:`body_short_bold`,[e,o]),y=n(()=>o>e?u.interactive.disabled__text.rgba:u.text.static_icons__default.rgba,[e,o]);return c(f,{"data-testid":`step`,ref:e=>{h===null&&e!==null&&g(e)},style:h!==null&&!d?{width:`calc(${h.clientWidth}px)`}:void 0,$clickable:o<e,onClick:()=>{o<e&&t(o)},children:[_,(!d||e===o)&&s(a,{variant:v,color:y,children:m})]})};export{m as OldStep};
|
|
@@ -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
|
+
`,o=({done:e})=>r(a,{$background:t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e])});export{o as default};
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { Toast, ToastProps } from "./molecules/Toast/Toast.js";
|
|
|
12
12
|
import { ToastProvider, useToasts } from "./providers/ToastProvider/ToastProvider.js";
|
|
13
13
|
import { ConfettiBoomProps, ConfettiProps, ConfettiShowerProps } from "./molecules/Confetti/Confetti.types.js";
|
|
14
14
|
import { ConfettiProvider, useConfetti } from "./providers/ConfettiProvider/ConfettiProvider.js";
|
|
15
|
+
import { SurveyProvider } from "./providers/SurveyProvider/SurveyProvider.js";
|
|
15
16
|
import { DEFAULT_FEATURES, EditorPanel, ImageExtensionFnProps, RichTextEditorFeatures } from "./molecules/RichTextEditor/RichTextEditor.types.js";
|
|
16
17
|
import { AmplifyKit } from "./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";
|
|
17
18
|
import { useAmplifyKit } from "./atoms/hooks/useAmplifyKit.js";
|
|
@@ -133,4 +134,4 @@ import { Card, CardProps, DataGridProps } from "./organisms/index.js";
|
|
|
133
134
|
import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
|
|
134
135
|
import { IconToggleButton } from "./deprecated/IconToggleButton.js";
|
|
135
136
|
import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
|
|
136
|
-
export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, PersistentComboBox, PersistentComboBoxProps, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SideSheet, SideSheetProps, SingleSelect, SingleSelectProps, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, Tab, TableHeader, TableHeaderProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Tag, TagProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, Toast, ToastProps, ToastProvider, ToggleGroup, 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, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, utmProjection };
|
|
137
|
+
export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, PersistentComboBox, PersistentComboBoxProps, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SideSheet, SideSheetProps, SingleSelect, SingleSelectProps, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, SurveyProvider, Switch, SwitchProps, Tab, TableHeader, TableHeaderProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Tag, TagProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, Toast, ToastProps, ToastProvider, ToggleGroup, 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, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, utmProjection };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{Button as _e}from"./molecules/Button/Button.js";import{Toast as ve}from"./molecules/Toast/Toast.js";import{ToastProvider as ye,useToasts as be}from"./providers/ToastProvider/ToastProvider.js";import{Confetti as xe}from"./molecules/Confetti/Confetti.js";import{ConfettiProvider as Se,useConfetti as Ce}from"./providers/ConfettiProvider/ConfettiProvider.js";import{ErrorType as we}from"./atoms/enums/Errors.js";import{SpacingsMode as Te}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as Ee,amplify_lwd as De,amplify_success as Oe,amplify_wellbore as ke,amplify_wireline as Ae,amplify_wireline_cased_hole as je,amplify_wireline_open_hole as Me}from"./atoms/icons/drilling.js";import{amplify_calculator as Ne,amplify_overlay as Pe,amplify_sidebyside as Fe}from"./atoms/icons/map.js";import{amplify_aml as Ie,amplify_arrow_up_down as Le,amplify_branch as Re,amplify_info_small as ze,amplify_merged as Be,amplify_overview as Ve,amplify_resources as He,amplify_sharepoint as Ue,amplify_shield_person as We,amplify_small_portal as Ge,amplify_snail as Ke,amplify_sort_small as qe,amplify_tutorials as Je}from"./atoms/icons/other.js";import{amplify_h1 as Ye,amplify_h2 as Xe,amplify_h3 as Ze,amplify_h4 as Qe,amplify_table_add_column_left as $e,amplify_table_add_column_right as et,amplify_table_add_row_above as tt,amplify_table_add_row_below as nt,amplify_table_column_heading as rt,amplify_table_merge_cells as it,amplify_table_remove_column as at,amplify_table_remove_row as ot,amplify_table_row_heading as st,amplify_table_split_cell as ct}from"./atoms/icons/wysiwyg.js";import{style as lt}from"./atoms/index.js";import{ReleaseNotesProvider as ut,useReleaseNotes as dt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as ft}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as pt}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as mt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ht}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as gt}from"./molecules/Badge/Badge.js";import{Banner as _t}from"./molecules/Banner/Banner.js";import{Chip as vt}from"./molecules/Chip/Chip.js";import{SkeletonBase as yt,skeletonBaseloading as bt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as xt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as St}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as Ct}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as wt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as Tt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as Et}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as Dt}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Ot,IconCellStates as kt,IconCellVariants as At}from"./molecules/IconCell/IconCell.types.js";import{IconCell as jt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Mt}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Nt}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as Pt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Ft}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as It,TextTable as Lt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as Rt}from"./molecules/TextField/TextField.js";import{AmplifyBar as zt,EditorMenu as Bt,EditorText as Vt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Ht}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Ut}from"./molecules/RichTextEditor/index.js";import{Tabs as Wt}from"./molecules/Tabs/Tabs.js";import{Search as Gt}from"./molecules/Search/Search.js";import{SkeletonGradient as Kt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as qt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Jt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Yt}from"./molecules/Select/Select.styles.js";import{ComboBox as Xt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as Zt}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as Qt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as $t}from"./molecules/Tag/Tag.js";import{TableHeader as en}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as tn}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as nn}from"./molecules/ListItem/ListItem.js";import{Checkbox as rn}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as an}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as on}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as sn}from"./molecules/Waves/Waves.js";import{Accordion as cn,Breadcrumbs as ln,CircularProgress as un,Divider as dn,DotProgress as fn,EDSDialog as pn,Icon as mn,LinearProgress as hn,Menu as gn,Typography as _n}from"./molecules/index.js";import{DataGrid as vn}from"./organisms/DataGrid/DataGrid.js";import{Template as yn}from"./organisms/Template/Template.js";import{FieldSelector as bn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as xn}from"./organisms/Filter/index.js";import{SideBar as Sn}from"./organisms/SideBar/index.js";import{ReleaseNote as Cn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as wn}from"./organisms/TopBar/index.js";import{BadRequest as Tn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as En}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as Dn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as On}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as kn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as An}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as jn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Mn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Nn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Pn}from"./organisms/ToggleGroup/index.js";import{Faq as Fn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as In}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Ln}from"./organisms/index.js";import{ExpandingIconButton as Rn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import zn from"./deprecated/IconToggleButton.js";import{OldStepper as Bn}from"./deprecated/OldStepper/OldStepper.js";export{cn as Accordion,zt as AmplifyBar,ne as AmplifyKit,mt as AnimatedCheckmark,An as ApiResponseError,ht as ApplicationIcon,K as AuthProvider,Tn as BadRequest,gt as Badge,_t as Banner,ln as Breadcrumbs,_e as Button,Ln as Card,rn as Checkbox,vt as Chip,un as CircularProgress,Xt as ComboBox,Yt as ComboBoxChip,xe as Confetti,Se as ConfettiProvider,w as DEFAULT_FEATURES,vn as DataGrid,xt as DatePicker,St as DateRangePicker,wt as Dialog,dn as Divider,fn as DotProgress,pn as EDSDialog,Bt as EditorMenu,Vt as EditorText,R as Empty,e as EnvironmentType,Tt as EquinorLogo,we as ErrorType,Rn as ExpandingIconButton,Fn as Faq,tn as FeedBackIcon,bn as FieldSelector,Et as FileProgress,Dt as FileUploadArea,xn as Filter,l as FullPageSpinner,En as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,mn as Icon,jt as IconCell,Ot as IconCellColors,kt as IconCellStates,At as IconCellVariants,zn as IconToggleButton,Mt as InfoElement,Nt as InformationalNotice,hn as LinearProgress,nn as ListItem,pt as LoadingProvider,gn as Menu,G as MissingAccessToApp,Dn as MissingPermissions,Bn as OldStepper,Jt as OptionDrawer,Ct as OptionalTooltip,On as PageNotFound,Nn as PageTitle,Zt as PersistentComboBox,Pt as ProfileAvatar,an as Radio,Cn as ReleaseNote,In as ReleaseNotesPage,ut as ReleaseNotesProvider,Ut as RichText,Ft as RichTextDisplay,Ht as RichTextEditor,T as RichTextEditorFeatures,Gt as Search,kn as ServerError,Sn as SideBar,J as SideBarProvider,jn as SideSheet,Qt as SingleSelect,yt as SkeletonBase,Kt as SkeletonGradient,X as SnackbarProvider,Te as SpacingsMode,W as Status,qt as Stepper,ue as StepperProvider,on as Switch,en as TableHeader,It as TableMenuBar,Mn as TableOfContents,$ as TableOfContentsProvider,Wt as Tabs,$t as Tag,yn as Template,Rt as TextField,Lt as TextTable,fe as Theme,pe as ThemeProvider,ve as Toast,ye as ToastProvider,Pn as ToggleGroup,wn as TopBar,ft as TutorialHighlightingProvider,_n as Typography,sn as Waves,Ie as amplify_aml,Le as amplify_arrow_up_down,Re as amplify_branch,Ne as amplify_calculator,Ee as amplify_failure,Ye as amplify_h1,Xe as amplify_h2,Ze as amplify_h3,Qe as amplify_h4,ze as amplify_info_small,De as amplify_lwd,Be as amplify_merged,Pe as amplify_overlay,Ve as amplify_overview,He as amplify_resources,Ue as amplify_sharepoint,We as amplify_shield_person,Fe as amplify_sidebyside,Ge as amplify_small_portal,Ke as amplify_snail,qe as amplify_sort_small,Oe as amplify_success,$e as amplify_table_add_column_left,et as amplify_table_add_column_right,tt as amplify_table_add_row_above,nt as amplify_table_add_row_below,rt as amplify_table_column_heading,it as amplify_table_merge_cells,at as amplify_table_remove_column,ot as amplify_table_remove_row,st as amplify_table_row_heading,ct as amplify_table_split_cell,Je as amplify_tutorials,ke as amplify_wellbore,Ae as amplify_wireline,je as amplify_wireline_cased_hole,Me 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,bt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,lt as style,c as typography,re as useAmplifyKit,q as useAuth,Ce as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,dt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,be as useToasts,S as utmProjection};
|
|
1
|
+
import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{Button as _e}from"./molecules/Button/Button.js";import{Toast as ve}from"./molecules/Toast/Toast.js";import{ToastProvider as ye,useToasts as be}from"./providers/ToastProvider/ToastProvider.js";import{Confetti as xe}from"./molecules/Confetti/Confetti.js";import{ConfettiProvider as Se,useConfetti as Ce}from"./providers/ConfettiProvider/ConfettiProvider.js";import{ErrorType as we}from"./atoms/enums/Errors.js";import{SpacingsMode as Te}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as Ee,amplify_lwd as De,amplify_success as Oe,amplify_wellbore as ke,amplify_wireline as Ae,amplify_wireline_cased_hole as je,amplify_wireline_open_hole as Me}from"./atoms/icons/drilling.js";import{amplify_calculator as Ne,amplify_overlay as Pe,amplify_sidebyside as Fe}from"./atoms/icons/map.js";import{amplify_aml as Ie,amplify_arrow_up_down as Le,amplify_branch as Re,amplify_info_small as ze,amplify_merged as Be,amplify_overview as Ve,amplify_resources as He,amplify_sharepoint as Ue,amplify_shield_person as We,amplify_small_portal as Ge,amplify_snail as Ke,amplify_sort_small as qe,amplify_tutorials as Je}from"./atoms/icons/other.js";import{amplify_h1 as Ye,amplify_h2 as Xe,amplify_h3 as Ze,amplify_h4 as Qe,amplify_table_add_column_left as $e,amplify_table_add_column_right as et,amplify_table_add_row_above as tt,amplify_table_add_row_below as nt,amplify_table_column_heading as rt,amplify_table_merge_cells as it,amplify_table_remove_column as at,amplify_table_remove_row as ot,amplify_table_row_heading as st,amplify_table_split_cell as ct}from"./atoms/icons/wysiwyg.js";import{style as lt}from"./atoms/index.js";import{ReleaseNotesProvider as ut,useReleaseNotes as dt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as ft}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as pt}from"./providers/LoadingProvider.js";import{SkeletonBase as mt,skeletonBaseloading as ht}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{TextField as gt}from"./molecules/TextField/TextField.js";import{Checkbox as _t}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as vt}from"./molecules/SelectionControls/Radio/Radio.js";import{AnimatedCheckmark as yt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as bt}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as xt}from"./molecules/Badge/Badge.js";import{Banner as St}from"./molecules/Banner/Banner.js";import{Chip as Ct}from"./molecules/Chip/Chip.js";import{DatePicker as wt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as Tt}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as Et}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as Dt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as Ot}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as kt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as At}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as jt,IconCellStates as Mt,IconCellVariants as Nt}from"./molecules/IconCell/IconCell.types.js";import{IconCell as Pt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Ft}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as It}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as Lt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Rt}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as zt,TextTable as Bt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as Vt,EditorMenu as Ht,EditorText as Ut}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Wt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Gt}from"./molecules/RichTextEditor/index.js";import{Tabs as Kt}from"./molecules/Tabs/Tabs.js";import{Search as qt}from"./molecules/Search/Search.js";import{SkeletonGradient as Jt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as Yt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Xt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Zt}from"./molecules/Select/Select.styles.js";import{ComboBox as Qt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as $t}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as en}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as tn}from"./molecules/Tag/Tag.js";import{TableHeader as nn}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as rn}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as an}from"./molecules/ListItem/ListItem.js";import{Switch as on}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as sn}from"./molecules/Waves/Waves.js";import{Accordion as cn,Breadcrumbs as ln,CircularProgress as un,Divider as dn,DotProgress as fn,EDSDialog as pn,Icon as mn,LinearProgress as hn,Menu as gn,Typography as _n}from"./molecules/index.js";import{SurveyProvider as vn}from"./providers/SurveyProvider/SurveyProvider.js";import{DataGrid as yn}from"./organisms/DataGrid/DataGrid.js";import{Template as bn}from"./organisms/Template/Template.js";import{FieldSelector as xn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as Sn}from"./organisms/Filter/index.js";import{SideBar as Cn}from"./organisms/SideBar/index.js";import{ReleaseNote as wn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as Tn}from"./organisms/TopBar/index.js";import{BadRequest as En}from"./organisms/Status/collections/BadRequest.js";import{GenericError as Dn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as On}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as kn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as An}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as jn}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as Mn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Nn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Pn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Fn}from"./organisms/ToggleGroup/index.js";import{Faq as In}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as Ln}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Rn}from"./organisms/index.js";import{ExpandingIconButton as zn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Bn from"./deprecated/IconToggleButton.js";import{OldStepper as Vn}from"./deprecated/OldStepper/OldStepper.js";export{cn as Accordion,Vt as AmplifyBar,ne as AmplifyKit,yt as AnimatedCheckmark,jn as ApiResponseError,bt as ApplicationIcon,K as AuthProvider,En as BadRequest,xt as Badge,St as Banner,ln as Breadcrumbs,_e as Button,Rn as Card,_t as Checkbox,Ct as Chip,un as CircularProgress,Qt as ComboBox,Zt as ComboBoxChip,xe as Confetti,Se as ConfettiProvider,w as DEFAULT_FEATURES,yn as DataGrid,wt as DatePicker,Tt as DateRangePicker,Dt as Dialog,dn as Divider,fn as DotProgress,pn as EDSDialog,Ht as EditorMenu,Ut as EditorText,R as Empty,e as EnvironmentType,Ot as EquinorLogo,we as ErrorType,zn as ExpandingIconButton,In as Faq,rn as FeedBackIcon,xn as FieldSelector,kt as FileProgress,At as FileUploadArea,Sn as Filter,l as FullPageSpinner,Dn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,mn as Icon,Pt as IconCell,jt as IconCellColors,Mt as IconCellStates,Nt as IconCellVariants,Bn as IconToggleButton,Ft as InfoElement,It as InformationalNotice,hn as LinearProgress,an as ListItem,pt as LoadingProvider,gn as Menu,G as MissingAccessToApp,On as MissingPermissions,Vn as OldStepper,Xt as OptionDrawer,Et as OptionalTooltip,kn as PageNotFound,Pn as PageTitle,$t as PersistentComboBox,Lt as ProfileAvatar,vt as Radio,wn as ReleaseNote,Ln as ReleaseNotesPage,ut as ReleaseNotesProvider,Gt as RichText,Rt as RichTextDisplay,Wt as RichTextEditor,T as RichTextEditorFeatures,qt as Search,An as ServerError,Cn as SideBar,J as SideBarProvider,Mn as SideSheet,en as SingleSelect,mt as SkeletonBase,Jt as SkeletonGradient,X as SnackbarProvider,Te as SpacingsMode,W as Status,Yt as Stepper,ue as StepperProvider,vn as SurveyProvider,on as Switch,nn as TableHeader,zt as TableMenuBar,Nn as TableOfContents,$ as TableOfContentsProvider,Kt as Tabs,tn as Tag,bn as Template,gt as TextField,Bt as TextTable,fe as Theme,pe as ThemeProvider,ve as Toast,ye as ToastProvider,Fn as ToggleGroup,Tn as TopBar,ft as TutorialHighlightingProvider,_n as Typography,sn as Waves,Ie as amplify_aml,Le as amplify_arrow_up_down,Re as amplify_branch,Ne as amplify_calculator,Ee as amplify_failure,Ye as amplify_h1,Xe as amplify_h2,Ze as amplify_h3,Qe as amplify_h4,ze as amplify_info_small,De as amplify_lwd,Be as amplify_merged,Pe as amplify_overlay,Ve as amplify_overview,He as amplify_resources,Ue as amplify_sharepoint,We as amplify_shield_person,Fe as amplify_sidebyside,Ge as amplify_small_portal,Ke as amplify_snail,qe as amplify_sort_small,Oe as amplify_success,$e as amplify_table_add_column_left,et as amplify_table_add_column_right,tt as amplify_table_add_row_above,nt as amplify_table_add_row_below,rt as amplify_table_column_heading,it as amplify_table_merge_cells,at as amplify_table_remove_column,ot as amplify_table_remove_row,st as amplify_table_row_heading,ct as amplify_table_split_cell,Je as amplify_tutorials,ke as amplify_wellbore,Ae as amplify_wireline,je as amplify_wireline_cased_hole,Me 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,ht as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,lt as style,c as typography,re as useAmplifyKit,q as useAuth,Ce as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,dt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,be as useToasts,S as utmProjection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Container as e}from"./AnimatedCheckmark.styles.js";import
|
|
1
|
+
import{Container as e}from"./AnimatedCheckmark.styles.js";import"react";import{jsx as t}from"react/jsx-runtime";const n=({size:n})=>t(e,{$size:n,viewBox:`0 0 43 43`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"data-testid":`svg-icon`,children:t(`path`,{d:`M12 22L18 28L30 16M42 21.5C42 32.8218 32.8218 42 21.5 42C10.1782 42 1 32.8218 1 21.5C1 10.1782 10.1782 1 21.5 1C32.8218 1 42 10.1782 42 21.5Z`})});export{n as AnimatedCheckmark};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{error_outlined as e,info_circle as t,warning_outlined as n}from"@equinor/eds-icons";function r(r){switch(r){case`info`:return t;case`warning`:return n;case`danger`:return e}}function i(e){switch(e){case`compact`:return 18;
|
|
1
|
+
import{error_outlined as e,info_circle as t,warning_outlined as n}from"@equinor/eds-icons";function r(r){switch(r){case`info`:return t;case`warning`:return n;case`danger`:return e}}function i(e){switch(e){case`compact`:return 18;default:return 24}}export{i as getIconSize,r as getVariantIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
2
2
|
import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from "react";
|
|
3
3
|
import { IconData } from "@equinor/eds-icons";
|
|
4
4
|
|
|
@@ -25,6 +25,6 @@ type DeletableChipProps = BaseChipProps & InteractiveChipBase & {
|
|
|
25
25
|
onDelete: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
26
26
|
};
|
|
27
27
|
type ChipProps = Omit<HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'onClick'> & (ReadOnlyChipProps | ClickableChipProps | DeletableChipProps);
|
|
28
|
-
declare const Chip:
|
|
28
|
+
declare const Chip: react6.ForwardRefExoticComponent<ChipProps & react6.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";const t=[e.dataviz.lightpurple.darker,e.dataviz.lightblue.darker,e.dataviz.lightgreen.default,e.interactive.warning__resting.rgba,e.interactive.danger__resting.rgba,e.interactive.success__resting.rgba],n=[`star`,`circle`,`square`,`spiral`],r=
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";const t=[e.dataviz.lightpurple.darker,e.dataviz.lightblue.darker,e.dataviz.lightgreen.default,e.interactive.warning__resting.rgba,e.interactive.danger__resting.rgba,e.interactive.success__resting.rgba],n=[`star`,`circle`,`square`,`spiral`],r=Math.PI/180,i=.9,a=.5,o={position:`fixed`,top:0,left:0,width:`100vw`,height:`100vh`,pointerEvents:`none`,zIndex:999999999};export{t as CONFETTI_DEFAULT_COLORS,n as CONFETTI_DEFAULT_SHAPES,r as DEG_TO_RAD,i as FRICTION,a as GRAVITY,o as IMPERATIVE_STYLING};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomNumBetween as e}from"./utils.js";import{createParticle as t}from"./createParticle.js";function n({particles:n,mode:r,colors:i,shapeSize:a,shapes:o}){let s=r===`shower`,c=s?1:30,l=s?e(0,1):.5,u=s?e(-.3,-.1):.5,d=s?3.4/.8/window.innerHeight:.004;for(let e=0;e<c;e+=1)n.push(t(l,u,270,i,o,a,s?0:60
|
|
1
|
+
import{randomNumBetween as e}from"./utils.js";import{createParticle as t}from"./createParticle.js";function n({particles:n,mode:r,colors:i,shapeSize:a,shapes:o}){let s=r===`shower`,c=s?1:30,l=s?e(0,1):.5,u=s?e(-.3,-.1):.5,d=s?3.4/.8/window.innerHeight:.004;for(let e=0;e<c;e+=1)n.push(t(l,u,270,i,o,a,s?0:60,+!s,d))}export{n as createConfetti};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEG_TO_RAD as e
|
|
1
|
+
import{DEG_TO_RAD as e}from"../Confetti.constants.js";const t={square:({ctx:t,x:n,y:r,width:i,height:a,widthDelta:o,heightDelta:s})=>{t.fillRect(n,r,i*Math.cos(o*e),a*Math.sin(s*e))},circle:({ctx:t,x:n,y:r,width:i,height:a,widthDelta:o,heightDelta:s})=>{t.beginPath(),t.ellipse(n,r,Math.abs(i*Math.cos(o*e))/2,Math.abs(a*Math.sin(s*e))/2,0,0,Math.PI*2),t.fill()},star:({ctx:t,x:n,y:r,width:i,widthDelta:a})=>{let o=i/1.25,s=o/2,c=Math.PI/5,l=a*e;t.beginPath();for(let e=0;e<10;e++){let i=e%2==0?o:s,a=e*c+l,u=n+i*Math.sin(a),d=r+i*Math.cos(a);e===0?t.moveTo(u,d):t.lineTo(u,d)}t.fill()},spiral:({ctx:t,x:n,y:r,width:i,widthDelta:a})=>{let o=2*Math.PI*2,s=a*e*4;t.beginPath(),t.lineWidth=1.5;for(let e=0;e<=o;e+=.1){let a=i/o*e*.75,c=n+a*Math.cos(e+s),l=r+a*Math.sin(e+s);e===0?t.moveTo(c,l):t.lineTo(c,l)}t.stroke()}};export{t as drawShapes};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react10 from "react";
|
|
3
3
|
import { DatePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DatePicker/DatePicker.d.ts
|
|
@@ -9,11 +9,11 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant' | 'defaultValue'> & {
|
|
|
9
9
|
meta?: string;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const DatePicker$1:
|
|
12
|
+
declare const DatePicker$1: react10.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
|
|
13
13
|
variant?: Variants;
|
|
14
14
|
defaultValue?: Date | undefined;
|
|
15
15
|
meta?: string;
|
|
16
16
|
loading?: boolean;
|
|
17
|
-
} &
|
|
17
|
+
} & react10.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react8 from "react";
|
|
3
3
|
import { DateRangePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DateRangePicker/DateRangePicker.d.ts
|
|
@@ -8,10 +8,10 @@ type DateRangePickerProps$1 = Omit<DateRangePickerProps, 'variant'> & {
|
|
|
8
8
|
meta?: string;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare const DateRangePicker$1:
|
|
11
|
+
declare const DateRangePicker$1: react8.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
|
|
12
12
|
variant?: Variants;
|
|
13
13
|
meta?: string;
|
|
14
14
|
loading?: boolean;
|
|
15
|
-
} &
|
|
15
|
+
} & react8.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react12 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: react12.ForwardRefExoticComponent<DialogProps$1 & react12.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SizeIconProps } from "../../atoms/types/Icon.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react14 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/EquinorLogo/EquinorLogo.d.ts
|
|
5
5
|
interface EquinorLogoProps extends Partial<SizeIconProps> {
|
|
6
6
|
large?: boolean;
|
|
7
7
|
color?: 'red' | 'white' | 'black';
|
|
8
8
|
}
|
|
9
|
-
declare const EquinorLogo:
|
|
9
|
+
declare const EquinorLogo: react14.ForwardRefExoticComponent<EquinorLogoProps & react14.RefAttributes<SVGSVGElement>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { EquinorLogo, EquinorLogoProps };
|
|
@@ -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";const S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=h(``);return p(()=>{C||(async e=>{j(await f(e))})(S)},[C,S]),y(a,{$isError:C,children:[v(s,{title:m(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),children: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])}),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{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";const y=({onRetry:y,file:b,customLoadingText:x,customCompleteText:S,isError:C,fullErrorText:w,showCompleteState:T,handleOnClick:E,isDeleting:D,...O})=>{let k=c(()=>!b?.size||O.isDone||O.indeterminate||O.progressPercent===void 0?1:t({inputFormat:`B`,size:b.size/100*O.progressPercent,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,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(
|
|
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(`file-upload-scrim`)){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};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react16 from "react";
|
|
3
3
|
import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
4
4
|
import { IconData } from "@equinor/eds-icons";
|
|
5
5
|
|
|
@@ -49,6 +49,6 @@ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
|
|
|
49
49
|
* @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
|
|
50
50
|
* @returns {JSX.Element} The rendered IconCell.
|
|
51
51
|
*/
|
|
52
|
-
declare const IconCell:
|
|
52
|
+
declare const IconCell: react16.ForwardRefExoticComponent<IconCellProps & react16.RefAttributes<HTMLButtonElement>>;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { IconCell, IconCellProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{useEffect as n,useRef as r,useState as i}from"react";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import s,{keyframes as c}from"styled-components";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{copy as d}from"@equinor/eds-icons";const f=s.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
pointer-events: auto;
|
|
4
4
|
width: fit-content;
|
|
5
5
|
&:hover {
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,p=c`
|
|
9
9
|
from {
|
|
10
10
|
opacity: 0;
|
|
11
11
|
background: none;
|
|
@@ -15,14 +15,14 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
15
15
|
opacity: 1;
|
|
16
16
|
background: ${e.ui.background__light.rgba};
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,m=s.div`
|
|
19
19
|
position: absolute;
|
|
20
20
|
padding: ${t.xx_small};
|
|
21
21
|
z-index: 1000;
|
|
22
22
|
top: 50%;
|
|
23
23
|
right: calc(${t.x_small} * -1);
|
|
24
24
|
transform: translate(100%, -50%);
|
|
25
|
-
animation: ${
|
|
25
|
+
animation: ${p} 0.25s;
|
|
26
26
|
background: ${e.ui.background__light.rgba};
|
|
27
27
|
border: 1px solid ${e.ui.background__medium.rgba};
|
|
28
28
|
border-radius: 2px;
|
|
@@ -38,4 +38,4 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
38
38
|
grid-template-columns: auto 2.75rem;
|
|
39
39
|
grid-gap: ${t.xx_small};
|
|
40
40
|
align-items: center;
|
|
41
|
-
|
|
41
|
+
`,h=({children:e,textToCopy:t})=>{let s=r(!1),[c,p]=i(!1),[h,g]=i(`Copy`);return n(()=>(s.current=!0,()=>{s.current=!1}),[]),u(f,{onClick:()=>{navigator.clipboard.writeText(t),g(`Copied!`),setTimeout(()=>{s.current&&g(`Copy`)},3e3)},onMouseOver:()=>p(!0),onMouseOut:()=>p(!1),children:[e,c&&u(m,{children:[l(a,{data:d,size:16}),l(o,{variant:`overline`,children:h})]})]})};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./CopyText.js";import
|
|
1
|
+
import e from"./CopyText.js";import{forwardRef as t}from"react";import{Typography as n}from"@equinor/eds-core-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=t(({title:t,content:a,copyableContent:o,capitalizeContent:s},c)=>{if(typeof a!=`string`&&(o||s))throw Error(`copyableContent and capitalizeContent only works when content is string`);let l=typeof a==`string`?r(n,{variant:`h6`,children:s?a.toUpperCase():a}):a;return i(`div`,{ref:c,children:[r(n,{group:`paragraph`,variant:`overline`,children:t?.toUpperCase()}),o&&typeof a==`string`?r(e,{textToCopy:a,children:l}):l]})});a.displayName=`InfoElement`;export{a as InfoElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){switch(e){case`compact`:return 18;
|
|
1
|
+
function e(e){switch(e){case`compact`:return 18;default:return 24}}export{e as getIconSize};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react153 from "react";
|
|
2
2
|
import { FocusEventHandler, HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
3
3
|
import { IconData } from "@equinor/eds-icons";
|
|
4
4
|
|
|
@@ -15,6 +15,6 @@ interface ListItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
isChild?: boolean;
|
|
16
16
|
borderBottom?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const ListItem:
|
|
18
|
+
declare const ListItem: react153.ForwardRefExoticComponent<ListItemProps & react153.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ListItem, ListItemProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, MouseEvent } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/OptionDrawer/OptionDrawer.d.ts
|
|
5
5
|
interface ToggleEventProps<T> {
|
|
@@ -43,7 +43,7 @@ declare const OptionDrawer: {
|
|
|
43
43
|
openAll,
|
|
44
44
|
showIntermediateParent,
|
|
45
45
|
parentHasNestedItems
|
|
46
|
-
}: OptionDrawerProps<T>):
|
|
46
|
+
}: OptionDrawerProps<T>): react_jsx_runtime0.JSX.Element;
|
|
47
47
|
displayName: string;
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react18 from "react";
|
|
2
2
|
import { TooltipProps } from "@equinor/eds-core-react";
|
|
3
3
|
import * as _floating_ui_utils0 from "@floating-ui/utils";
|
|
4
4
|
|
|
@@ -6,14 +6,14 @@ import * as _floating_ui_utils0 from "@floating-ui/utils";
|
|
|
6
6
|
type OptionalTooltipProps = {
|
|
7
7
|
textTransform?: string;
|
|
8
8
|
} & TooltipProps;
|
|
9
|
-
declare const OptionalTooltip:
|
|
9
|
+
declare const OptionalTooltip: react18.ForwardRefExoticComponent<{
|
|
10
10
|
textTransform?: string;
|
|
11
11
|
} & {
|
|
12
12
|
placement?: _floating_ui_utils0.Placement;
|
|
13
|
-
title?:
|
|
13
|
+
title?: react18.ReactNode;
|
|
14
14
|
children: React.ReactElement & React.RefAttributes<HTMLElement>;
|
|
15
15
|
enterDelay?: number;
|
|
16
16
|
portalContainer?: HTMLElement;
|
|
17
|
-
} & Omit<
|
|
17
|
+
} & Omit<react18.HTMLAttributes<HTMLDivElement>, "title"> & react18.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { OptionalTooltip, OptionalTooltipProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react22 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/molecules/ProfileAvatar/ProfileAvatar.d.ts
|
|
4
4
|
interface ProfileAvatarProps {
|
|
@@ -7,6 +7,6 @@ interface ProfileAvatarProps {
|
|
|
7
7
|
size?: 'small' | 'small-medium' | 'medium' | 'large' | 'x-large' | number;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const ProfileAvatar:
|
|
10
|
+
declare const ProfileAvatar: react22.ForwardRefExoticComponent<ProfileAvatarProps & react22.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProfileAvatar, ProfileAvatarProps };
|
|
@@ -24,6 +24,6 @@ interface RichTextDisplayProps extends Pick<ImageExtensionFnProps, 'onImageRead'
|
|
|
24
24
|
* @param extensions - additional extensions to be added
|
|
25
25
|
* @param children - render prop for custom rendering, provides editor via callback
|
|
26
26
|
*/
|
|
27
|
-
declare const RichTextDisplay: FC<RichTextDisplayProps & HTMLAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const RichTextDisplay: FC<RichTextDisplayProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { RichTextDisplay, RichTextDisplayProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RichTextEditorFeatures as e}from"../RichTextEditor.types.js";import{EditorMenu as t}from"./MenuBar.js";import{useRef as n}from"react";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";import{camera_add_photo as o}from"@equinor/eds-icons";const s=({onImageUpload:s,editor:c,features:l})=>{let u=n(null);
|
|
1
|
+
import{RichTextEditorFeatures as e}from"../RichTextEditor.types.js";import{EditorMenu as t}from"./MenuBar.js";import{useRef as n}from"react";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";import{camera_add_photo as o}from"@equinor/eds-icons";const s=({onImageUpload:s,editor:c,features:l})=>{let u=n(null);return l&&!l.includes(e.IMAGES)?null:a(r,{children:[i(`input`,{ref:u,type:`file`,id:`img-input`,multiple:!1,onChange:async e=>{let t=e.target.files;if(!t?.[0]){console.error(`Files undefined`);return}let n=await s?.(t[0]);n&&c?.chain().focus().setImage({src:n.src,alt:n.alt}).run()},style:{display:`none`},accept:`image/*, video/*`}),i(t.Button,{"data-testid":`add-image-button`,icon:o,onClick:()=>{u.current&&u.current.click()},tooltip:`Add Image`})]})};export{s as AddImageButton};
|