@equinor/amplify-component-lib 13.2.5-beta.1 → 13.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useLocalStorage.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/index.d.ts +1 -1
- 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.d.ts +0 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +3 -3
- package/dist/deprecated/IconToggleButton.d.ts +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +1 -1
- package/dist/deprecated/OldStepper/OldStepper.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/molecules/AnimatedCheckmark/AnimatedCheckmark.d.ts +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
- package/dist/molecules/Badge/Badge.d.ts +1 -1
- package/dist/molecules/Button/Button.d.ts +2 -2
- package/dist/molecules/Button/Button.js +1 -1
- package/dist/molecules/Button/IconButton/IconButton.d.ts +9 -3
- package/dist/molecules/Button/IconButton/IconButton.js +1 -1
- package/dist/molecules/Button/IconButton/IconButton.utils.js +1 -0
- package/dist/molecules/Button/types.d.ts +2 -2
- package/dist/molecules/Chip/Chip.d.ts +1 -1
- package/dist/molecules/Chip/Chip.styles.js +1 -1
- package/dist/molecules/Confetti/Confetti.types.d.ts +1 -1
- package/dist/molecules/Confetti/utils/seasonalColors.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/FileProgress.types.d.ts +1 -1
- package/dist/molecules/IconCell/IconCell.d.ts +3 -3
- package/dist/molecules/IconCell/IconCell.styles.js +3 -3
- package/dist/molecules/IconCell/IconCell.utils.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +3 -3
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/custom-extensions/AmplifyKit.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +7 -7
- 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/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/Select.styles.js +1 -1
- package/dist/molecules/Select/Select.types.d.ts +1 -1
- package/dist/molecules/Select/SelectMenuItem.utils.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/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -4
- package/dist/molecules/Stepper/Step/Step.js +1 -1
- package/dist/molecules/Stepper/StepLine.js +1 -1
- package/dist/molecules/Stepper/Stepper.js +1 -1
- package/dist/molecules/Tabs/Tabs.d.ts +2 -2
- package/dist/molecules/Waves/Waves.d.ts +1 -1
- package/dist/molecules/index.d.ts +1 -1
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/Faq/Faq.d.ts +1 -1
- package/dist/organisms/Faq/Faq.utils.js +1 -1
- package/dist/organisms/FieldSelector/ChangingField.js +1 -1
- package/dist/organisms/Filter/AutoCompleteText.js +1 -1
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/Filter.types.d.ts +1 -1
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +4 -1
- package/dist/organisms/SideBar/MenuItem/MenuItem.d.ts +1 -1
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/index.d.ts +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
- package/dist/organisms/Status/index.d.ts +1 -1
- 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/Account.d.ts +1 -1
- package/dist/organisms/TopBar/Account/AccountButton.js +1 -1
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +3 -3
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.d.ts +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/Notifications.types.d.ts +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +2 -2
- 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/ResponsePage/ResponsePage.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +1 -1
- package/dist/organisms/TopBar/Resources/Resources.d.ts +1 -1
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +1 -1
- package/dist/organisms/TopBar/index.d.ts +1 -1
- package/dist/organisms/index.d.ts +1 -1
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProvider.d.ts +3 -26
- package/dist/providers/AuthProvider/AuthProvider.js +1 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/providers/StepperProvider.d.ts +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.d.ts +1 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react182 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, react182.Dispatch<react182.SetStateAction<T>>, () => void];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useLocalStorage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import{debounce as i}from"lodash";const a=`-last-updated`,o=(e,t,n)=>{let r=localStorage.getItem(e),i=localStorage.getItem(e+a);return r&&(!n||i&&Number(i)+n>new Date().getTime())?JSON.parse(r):t},s=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},c=(c,l,u)=>{let d=n(!0),[f,p]=r(o(c,l,u)),m=e(()=>{p(l),localStorage.removeItem(c),localStorage.removeItem(c+a)},[p,l,c]),h=e(i((e,t)=>{s(e,t),s(e+a,new Date().getTime())},1e3),[]);return t(()=>{if(d.current){d.current=!1;return}f==null?m():h(c,f)},[f,m,h,c]),[f,p,m]};export{
|
|
1
|
+
import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import{debounce as i}from"lodash";const a=`-last-updated`,o=(e,t,n)=>{let r=localStorage.getItem(e),i=localStorage.getItem(e+a);return r&&(!n||i&&Number(i)+n>new Date().getTime())?JSON.parse(r):t},s=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},c=(c,l,u)=>{let d=n(!0),[f,p]=r(o(c,l,u)),m=e(()=>{p(l),localStorage.removeItem(c),localStorage.removeItem(c+a)},[p,l,c]),h=e(i((e,t)=>{s(e,t),s(e+a,new Date().getTime())},1e3),[]);return t(()=>{if(d.current){d.current=!1;return}f==null?m():h(c,f)},[f,m,h,c]),[f,p,m]};export{c as 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 react184 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: react184.RefObject<HTMLInputElement | null>;
|
|
20
|
+
itemRefs: react184.RefObject<(HTMLButtonElement | null)[]>;
|
|
21
21
|
selectedValues: T[];
|
|
22
22
|
open: boolean;
|
|
23
23
|
tryingToRemoveItem: T | undefined;
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -56,4 +56,4 @@ import { getVariantIcon } from "./utils/forms.js";
|
|
|
56
56
|
*/
|
|
57
57
|
declare const style: typeof index_d_exports;
|
|
58
58
|
//#endregion
|
|
59
|
-
export {
|
|
59
|
+
export { style };
|
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"./enums/Errors.js";import"./enums/SpacingsMode.js";import"./icons/wysiwyg.js";import"../providers/ToastProvider/ToastProvider.js";import"../providers/ConfettiProvider/ConfettiProvider.js";import"./icons/drilling.js";import"./icons/map.js";import"./icons/other.js";import"../providers/ReleaseNotesProvider.js";const t=e;export{t as style};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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};
|
|
@@ -35,7 +35,6 @@ declare const auth: {
|
|
|
35
35
|
getToken: () => Promise<string>;
|
|
36
36
|
isReaderOnly: (roles: string[] | undefined) => boolean;
|
|
37
37
|
isInIframe: () => boolean;
|
|
38
|
-
getSidFromMessage: (data: unknown) => string | undefined;
|
|
39
38
|
};
|
|
40
39
|
declare const environment: {
|
|
41
40
|
getConfig: (param: keyof EnvVariables) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../enums/Environment.js";import{PublicClientApplication as e}from"@azure/msal-browser";const t=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],n=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!t.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},r=e=>e||n(`NAME`),i=e=>e||n(`CLIENT_ID`),a=e=>e||n(`API_URL`),o=e=>e||n(`API_SCOPE`),s=e=>e||n(`API_CLIENT_ID`),c=e=>e||n(`ENVIRONMENT_NAME`),l=e=>e||n(`SERVICE_NOW_CONFIGURATION_ITEM`),u=e=>e===void 0?!1:e===`true`,d=e=>e===void 0?[`admin`]:JSON.parse(e),f=e=>(
|
|
1
|
+
import"../enums/Environment.js";import{PublicClientApplication as e}from"@azure/msal-browser";const t=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],n=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!t.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},r=e=>e||n(`NAME`),i=e=>e||n(`CLIENT_ID`),a=e=>e||n(`API_URL`),o=e=>e||n(`API_SCOPE`),s=e=>e||n(`API_CLIENT_ID`),c=e=>e||n(`ENVIRONMENT_NAME`),l=e=>e||n(`SERVICE_NOW_CONFIGURATION_ITEM`),u=e=>e===void 0?!1:e===`true`,d=e=>e===void 0?[`admin`]:JSON.parse(e),f=e=>e?e.split(`;`):n(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],p=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function m(){let e=import.meta.env.VITE_ENVIRONMENT_NAME;return e||=n(`ENVIRONMENT_NAME`),e===`production`?`https://jsembark.equinor.com`:`https://client-amplify-portal-${e===`localhost`?`development`:e}.radix.equinor.com`}const h=m(),g={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},_=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),v={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},y={scopes:[v.OPENID,v.PROFILE,v.USER_READ]},b={scopes:[v.USER_READ]},x=e=>({scopes:[e]}),S=()=>window.self!==window.top,C=new e({auth:{clientId:i(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`}}),w=f(import.meta.env.ALLOWED_PARENT_DOMAINS);window.addEventListener(`message`,async e=>{if(w.includes(e.origin)){let t=e.data;if(t){await C.initialize();try{await C.ssoSilent({sid:t}),console.log(`postMessage successfully logged in user!`)}catch(e){console.error(`Something went wrong with postMessage`),console.error(e)}}}});const T={fetchMsGraph:_,GRAPH_SCOPES:v,GRAPH_REQUESTS_LOGIN:y,GRAPH_REQUESTS_PHOTO:b,GRAPH_REQUESTS_BACKEND:x,GRAPH_ENDPOINTS:g,msalApp:C,getToken:async()=>{if(u(import.meta.env.VITE_IS_MOCK))return``;let e=C.getActiveAccount(),t=C.getAllAccounts();return!e&&t.length===0?``:(await C.acquireTokenSilent(x(o(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>e?!e.some(e=>e.includes(`WRITE`)):!0,isInIframe:S},E={getConfig:n,getAppName:r,getClientId:i,getApiUrl:a,getApiScope:o,getApiClientId:s,getEnvironmentName:c,getIsMock:u,getMockUserPhoto:p,getMockRoles:d,getServiceNowConfigurationItem:l,PORTAL_URL_WITHOUT_LOCALHOST:h};export{T as auth,E as environment};
|
|
@@ -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/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: react0.ForwardRefExoticComponent<ExpandingIconButtonProps & react0.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { ExpandingIconButton
|
|
17
|
+
export { ExpandingIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1 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: react1.ForwardRefExoticComponent<IconToggleButtonProps & react1.RefAttributes<HTMLButtonElement>>;
|
|
25
25
|
//#endregion
|
|
26
|
-
export {
|
|
26
|
+
export { IconToggleButton };
|
|
@@ -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
|
-
`,o=({done:e})=>{
|
|
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
|
@@ -133,6 +133,6 @@ import { Faq } from "./organisms/Faq/Faq.js";
|
|
|
133
133
|
import { ReleaseNotesPage } from "./organisms/ReleaseNotesPage/ReleaseNotesPage.js";
|
|
134
134
|
import { Card, CardProps, DataGridProps } from "./organisms/index.js";
|
|
135
135
|
import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
|
|
136
|
-
import IconToggleButton from "./deprecated/IconToggleButton.js";
|
|
136
|
+
import { IconToggleButton } from "./deprecated/IconToggleButton.js";
|
|
137
137
|
import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
|
|
138
138
|
export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconButton, IconButtonProps, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, 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_drag_handle, amplify_failure, amplify_h1, amplify_h2, amplify_h3, amplify_h4, amplify_info_small, amplify_lwd, amplify_merged, amplify_overlay, amplify_overview, amplify_resources, amplify_sharepoint, amplify_shield_person, amplify_sidebyside, amplify_small_portal, amplify_snail, amplify_sort_small, amplify_success, amplify_table_add_column_left, amplify_table_add_column_right, amplify_table_add_row_above, amplify_table_add_row_below, amplify_table_column_heading, amplify_table_merge_cells, amplify_table_remove_column, amplify_table_remove_row, amplify_table_row_heading, amplify_table_split_cell, amplify_tutorials, amplify_wellbore, amplify_wireline, amplify_wireline_cased_hole, amplify_wireline_open_hole, animation, auth, capitalize, cleanRichTextValue, colors, convertLatLngToUtm, convertUtmToLatLng, defaultQueryOptions, degrees2radians, distanceLatLng, elevation, environment, exportComponent, extractImageUrls, formatBytes, formatDataSize, formatDate, formatDateTime, formatKiloBytes, formatLatLng, formatRelativeDateTime, formatUtm, getFeatures, getHighlightElementBoundingBox, getImagesFromRichText, getVariantIcon, highlightTutorialElementID, imageToB64, isBetweenDates, isValidUrl, setupIcons, shape, skeletonBaseloading, sortByDate, sortByWellboreName, spacings, style, typography, useAmplifyKit, useAuth, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, utmProjection };
|
|
@@ -8,4 +8,4 @@ interface ApplicationIconProps extends Partial<AppIconProps> {
|
|
|
8
8
|
}
|
|
9
9
|
declare const ApplicationIcon: ForwardRefExoticComponent<ApplicationIconProps & RefAttributes<HTMLDivElement>>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ApplicationIcon, ApplicationIconProps
|
|
11
|
+
export { ApplicationIcon, ApplicationIconProps };
|
|
@@ -8,9 +8,9 @@ type BaseButtonProps = {
|
|
|
8
8
|
leadingContent?: ReactNode;
|
|
9
9
|
trailingContent?: ReactNode;
|
|
10
10
|
} & CommonButtonProps;
|
|
11
|
-
|
|
11
|
+
type ButtonProps<TRouter extends RegisteredRouter = RegisteredRouter, TOptions = unknown> = BaseButtonProps & {
|
|
12
12
|
linkOptions?: ValidateLinkOptions<TRouter, TOptions>;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare function Button<TRouter extends RegisteredRouter, TOptions>(props: ButtonProps<TRouter, TOptions>): ReactNode;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Button, ButtonProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ButtonPrimitive as e,CenteredContent as t,HiddenContent as n,PaddedContent as r}from"./Button.styles.js";import{getLoadingColor as i}from"./Button.utils.js";import{TOKEN_MAPPINGS as a}from"./tokens/tokens.js";import{DotProgress as o}from"@equinor/eds-core-react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{createLink as u}from"@tanstack/react-router";const d=({variant:u=`filled`,color:d=`primary`,leadingContent:f,trailingContent:p,fullWidth:m=!1,loading:h=!1,onClick:g,children:_,...v})=>{let y=a[d][u],b=[f,p].filter(Boolean).length;return c(e,{$tokens:y,$fullWidth:m,onClick:h?void 0:g,...v,children:h?l(s,{children:[!m&&c(n,{style:{marginLeft:b*12,marginRight:b*12},children:c(r,{children:_})}),c(t,{children:c(o,{color:i({color:d,variant:u})})})]}):l(s,{children:[f,c(r,{className:`central-content`,children:_}),p]})})},f=u(d);function p(e){if(e.linkOptions===void 0)return c(d,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e,
|
|
1
|
+
import{ButtonPrimitive as e,CenteredContent as t,HiddenContent as n,PaddedContent as r}from"./Button.styles.js";import{getLoadingColor as i}from"./Button.utils.js";import{TOKEN_MAPPINGS as a}from"./tokens/tokens.js";import{DotProgress as o}from"@equinor/eds-core-react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{createLink as u}from"@tanstack/react-router";const d=({variant:u=`filled`,color:d=`primary`,leadingContent:f,trailingContent:p,fullWidth:m=!1,loading:h=!1,onClick:g,children:_,...v})=>{let y=a[d][u],b=[f,p].filter(Boolean).length;return c(e,{$tokens:y,$fullWidth:m,onClick:h?void 0:g,...v,children:h?l(s,{children:[!m&&c(n,{style:{marginLeft:b*12,marginRight:b*12},children:c(r,{children:_})}),c(t,{children:c(o,{color:i({color:d,variant:u})})})]}):l(s,{children:[f,c(r,{className:`central-content`,children:_}),p]})})},f=u(d);function p(e){if(e.linkOptions===void 0)return c(d,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e;return c(f,{...t,...n,as:`a`})}export{p as Button};
|
|
@@ -6,15 +6,21 @@ import { RegisteredRouter, ValidateLinkOptions } from "@tanstack/react-router";
|
|
|
6
6
|
|
|
7
7
|
//#region src/molecules/Button/IconButton/IconButton.d.ts
|
|
8
8
|
type Shape = 'circular' | 'square';
|
|
9
|
-
type
|
|
9
|
+
type IconDataProps = {
|
|
10
10
|
icon: IconData;
|
|
11
11
|
iconProps?: Omit<IconProps, 'data'>;
|
|
12
|
+
};
|
|
13
|
+
type IconReactNodeProps = {
|
|
14
|
+
icon: ReactNode;
|
|
15
|
+
iconProps?: never;
|
|
16
|
+
};
|
|
17
|
+
type BaseIconButtonProps = (IconDataProps | IconReactNodeProps) & {
|
|
12
18
|
shape?: Shape;
|
|
13
19
|
children?: never;
|
|
14
20
|
} & Omit<CommonButtonProps, 'children'>;
|
|
15
|
-
|
|
21
|
+
type IconButtonProps<TRouter extends RegisteredRouter = RegisteredRouter, TOptions = unknown> = BaseIconButtonProps & {
|
|
16
22
|
linkOptions?: ValidateLinkOptions<TRouter, TOptions>;
|
|
17
|
-
}
|
|
23
|
+
};
|
|
18
24
|
declare function IconButton<TRouter extends RegisteredRouter, TOptions>(props: IconButtonProps<TRouter, TOptions>): ReactNode;
|
|
19
25
|
//#endregion
|
|
20
26
|
export { IconButton, IconButtonProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLoadingColor as e}from"../Button.utils.js";import{TOKEN_MAPPINGS as t}from"../tokens/tokens.js";import{IconButtonWrapper as n,StyledCircularProgress as r}from"./IconButton.styles.js";import{
|
|
1
|
+
import{getLoadingColor as e}from"../Button.utils.js";import{TOKEN_MAPPINGS as t}from"../tokens/tokens.js";import{IconButtonWrapper as n,StyledCircularProgress as r}from"./IconButton.styles.js";import{isIconData as i}from"./IconButton.utils.js";import{Icon as a}from"@equinor/eds-core-react";import{Fragment as o,jsx as s}from"react/jsx-runtime";import{createLink as c}from"@tanstack/react-router";const l=({icon:c,variant:l=`filled`,color:u=`primary`,loading:d=!1,shape:f=`circular`,onClick:p,iconProps:m,...h})=>{let g=t[u][l];return s(n,{$shape:f,$tokens:g,onClick:d?void 0:p,...h,children:d?s(o,{children:s(r,{size:16,$isTertiary:e({color:u,variant:l})===`tertiary`,color:e({color:u,variant:l})})}):i(c)?s(a,{data:c,...m}):c})},u=c(l);function d(e){if(e.linkOptions===void 0)return s(l,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e;return s(u,{...t,...n,as:`a`})}export{d as IconButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=e=>typeof e==`object`&&!!e&&`svgPathData`in e;export{e as isIconData};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ElementType, Ref } from "react";
|
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, Ref } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/molecules/Button/types.d.ts
|
|
4
4
|
type ButtonVariants = 'filled' | 'outlined' | 'ghost';
|
|
@@ -10,6 +10,6 @@ type CommonButtonProps = {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
ref?: Ref<HTMLButtonElement>;
|
|
12
12
|
as?: ElementType;
|
|
13
|
-
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
13
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ButtonColors, ButtonVariants, CommonButtonProps };
|
|
@@ -27,4 +27,4 @@ type DeletableChipProps = BaseChipProps & InteractiveChipBase & {
|
|
|
27
27
|
type ChipProps = Omit<HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'onClick'> & (ReadOnlyChipProps | ClickableChipProps | DeletableChipProps);
|
|
28
28
|
declare const Chip: react6.ForwardRefExoticComponent<ChipProps & react6.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps
|
|
30
|
+
export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
|
|
@@ -62,4 +62,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
62
62
|
background-color: ${e.variant===`white`?s.white.background:t.ui.background__light.rgba};
|
|
63
63
|
outline: 1px solid ${n.disabled.borderColor};
|
|
64
64
|
`}}
|
|
65
|
-
`;export{u as InteractiveChipStyle,d as ReadOnlyChipStyle
|
|
65
|
+
`;export{u as InteractiveChipStyle,d as ReadOnlyChipStyle};
|
|
@@ -18,4 +18,4 @@ type ConfettiShowerProps = {
|
|
|
18
18
|
type ConfettiProps = ConfettiBoomProps | ConfettiShowerProps;
|
|
19
19
|
type ParticleShape = 'circle' | 'square' | 'star' | 'spiral';
|
|
20
20
|
//#endregion
|
|
21
|
-
export { ConfettiBoomProps, ConfettiProps, ConfettiShowerProps
|
|
21
|
+
export { ConfettiBoomProps, ConfettiProps, ConfettiShowerProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getSeasonalEvent as e}from"./getSeasonalEvent.js";const t={christmas:{name:`Christmas`,colors:[`#C62828`,`#2E7D32`,`#FFFFFF`,`#FFD700`]},newYears:{name:`New Years`,colors:[`#000000`,`#FFFFFF`,`#FFD700`,`#C0C0C0`]},valentinesDay:{name:`Valentine's Day`,colors:[`#E91E63`,`#F44336`,`#FFFFFF`,`#FFCDD2`]},womensDay:{name:`International Women's Day`,colors:[`#7B1FA2`,`#BA68C8`,`#F8BBD0`,`#FFFFFF`]},easter:{name:`Easter`,colors:[`#FFEB3B`,`#A5D6A7`,`#90CAF9`,`#F48FB1`,`#CE93D8`]},norwegianConstitutionDay:{name:`Norwegian Constitution Day (17. mai)`,colors:[`#BA0C2F`,`#FFFFFF`,`#00205B`]},halloween:{name:`Halloween`,colors:[`#FF6F00`,`#000000`,`#6A1B9A`]},pride:{name:`Pride`,colors:[`#E40303`,`#FF8C00`,`#FFED00`,`#008026`,`#004DFF`,`#750787`]}};function n(n){let r=e(n);return r?t[r].colors:null}export{
|
|
1
|
+
import{getSeasonalEvent as e}from"./getSeasonalEvent.js";const t={christmas:{name:`Christmas`,colors:[`#C62828`,`#2E7D32`,`#FFFFFF`,`#FFD700`]},newYears:{name:`New Years`,colors:[`#000000`,`#FFFFFF`,`#FFD700`,`#C0C0C0`]},valentinesDay:{name:`Valentine's Day`,colors:[`#E91E63`,`#F44336`,`#FFFFFF`,`#FFCDD2`]},womensDay:{name:`International Women's Day`,colors:[`#7B1FA2`,`#BA68C8`,`#F8BBD0`,`#FFFFFF`]},easter:{name:`Easter`,colors:[`#FFEB3B`,`#A5D6A7`,`#90CAF9`,`#F48FB1`,`#CE93D8`]},norwegianConstitutionDay:{name:`Norwegian Constitution Day (17. mai)`,colors:[`#BA0C2F`,`#FFFFFF`,`#00205B`]},halloween:{name:`Halloween`,colors:[`#FF6F00`,`#000000`,`#6A1B9A`]},pride:{name:`Pride`,colors:[`#E40303`,`#FF8C00`,`#FFED00`,`#008026`,`#004DFF`,`#750787`]}};function n(n){let r=e(n);return r?t[r].colors:null}export{n as getSeasonalColors};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react12 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: react12.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
|
|
13
13
|
variant?: Variants;
|
|
14
14
|
defaultValue?: Date | undefined;
|
|
15
15
|
meta?: string;
|
|
16
16
|
loading?: boolean;
|
|
17
|
-
} &
|
|
17
|
+
} & react12.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 react16 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: react16.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
|
|
12
12
|
variant?: Variants;
|
|
13
13
|
meta?: string;
|
|
14
14
|
loading?: boolean;
|
|
15
|
-
} &
|
|
15
|
+
} & react16.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonColors, ButtonVariants } from "../Button/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react18 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { DialogProps } from "@equinor/eds-core-react";
|
|
5
5
|
import { IconData } from "@equinor/eds-icons";
|
|
@@ -52,6 +52,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
|
|
|
52
52
|
* @param additionalInfo - Defaults to empty, and won't show the additional info button
|
|
53
53
|
* Also inherits props from EDS dialog
|
|
54
54
|
*/
|
|
55
|
-
declare const Dialog$1:
|
|
55
|
+
declare const Dialog$1: react18.ForwardRefExoticComponent<DialogProps$1 & react18.RefAttributes<HTMLDivElement>>;
|
|
56
56
|
//#endregion
|
|
57
57
|
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 react20 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: react20.ForwardRefExoticComponent<EquinorLogoProps & react20.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";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=>{
|
|
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};
|
|
@@ -36,4 +36,4 @@ type CompactFileProgressBaseProps = FileProgressBase & {
|
|
|
36
36
|
};
|
|
37
37
|
type FileProgressProps = RegularFileProgressBaseProps | CompactFileProgressBaseProps;
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { FileProgressProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react14 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: react14.ForwardRefExoticComponent<IconCellProps & react14.RefAttributes<HTMLButtonElement>>;
|
|
53
53
|
//#endregion
|
|
54
|
-
export { IconCell, IconCellProps
|
|
54
|
+
export { IconCell, IconCellProps };
|
|
@@ -63,12 +63,12 @@ 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})
|
|
66
|
+
${({$backgroundColor:e,$variant:n,$state:a})=>`
|
|
67
67
|
${f}::before,
|
|
68
68
|
${m}::before {
|
|
69
|
-
${u(
|
|
69
|
+
${u(n===i.COLOURED?a===r.ERROR?c[r.ERROR]:a===r.WARNING?c[r.WARNING]:e:t.ui.background__default.rgba)}
|
|
70
70
|
}
|
|
71
|
-
`}
|
|
71
|
+
`}
|
|
72
72
|
|
|
73
73
|
// Disabled state
|
|
74
74
|
&:disabled {
|
|
@@ -5,4 +5,4 @@ import{colors as e}from"../../atoms/style/colors.js";import"../../atoms/enums/Th
|
|
|
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===r.COLOURED?i===n.ERROR?l[n.ERROR]:i===n.WARNING?l[n.WARNING]:a:`transparent`;export{p as getBackground,d as getBorderBottom,s as getIconCellColor,f as getSelectedBorder,o as renderContent,l as stateBGColor
|
|
8
|
+
)`:t===r.COLOURED?i===n.ERROR?l[n.ERROR]:i===n.WARNING?l[n.WARNING]:a:`transparent`;export{p as getBackground,d as getBorderBottom,s as getIconCellColor,f as getSelectedBorder,o as renderContent,l as stateBGColor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react168 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: react168.ForwardRefExoticComponent<ListItemProps & react168.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ListItem, ListItemProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react55 from "react";
|
|
2
2
|
import { ChangeEvent, MouseEvent } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/OptionDrawer/OptionDrawer.d.ts
|
|
@@ -43,8 +43,8 @@ declare const OptionDrawer: {
|
|
|
43
43
|
openAll,
|
|
44
44
|
showIntermediateParent,
|
|
45
45
|
parentHasNestedItems
|
|
46
|
-
}: OptionDrawerProps<T>):
|
|
46
|
+
}: OptionDrawerProps<T>): react55.JSX.Element;
|
|
47
47
|
displayName: string;
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
50
|
-
export { OptionDrawer, OptionDrawerProps
|
|
50
|
+
export { OptionDrawer, OptionDrawerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react8 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: react8.ForwardRefExoticComponent<{
|
|
10
10
|
textTransform?: string;
|
|
11
11
|
} & {
|
|
12
12
|
placement?: _floating_ui_utils0.Placement;
|
|
13
|
-
title?:
|
|
13
|
+
title?: react8.ReactNode;
|
|
14
14
|
children: React.ReactElement & React.RefAttributes<HTMLElement>;
|
|
15
15
|
enterDelay?: number;
|
|
16
16
|
portalContainer?: HTMLElement;
|
|
17
|
-
} & Omit<
|
|
17
|
+
} & Omit<react8.HTMLAttributes<HTMLDivElement>, "title"> & react8.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 };
|
|
@@ -23,4 +23,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
23
23
|
width: inherit;
|
|
24
24
|
height: inherit;
|
|
25
25
|
}
|
|
26
|
-
`,_=n(({url:e,name:t,size:n=`medium`,disabled:a=!1},o)=>{let l=r(()=>!t||t.trim().length===0?s(h,{data:c}):f(t),[t]),u=r(()=>{switch(n){case`small`:return 16;case`small-medium`:return 24;case`medium`:case void 0:return 32;case`large`:return 40;case`x-large`:return 48;default:return n}},[n]),d=r(()=>{switch(n){case`small`:return 6;case`small-medium`:return 10;case`medium`:case void 0:return 14;case`large`:return 16;case`x-large`:return 18;default:return n/2}},[n]),_=r(()=>{if(e)try{if(btoa(atob(e))===e)return`data:image/png;base64, ${e}`}catch{return e}return``},[e]);return _===``?s(m,{$background:p(t),$size:u,$fontSize:d,disabled:a,ref:o,children:s(`span`,{children:l})}):s(g,{$size:u,"data-testid":`avatar-wrapper`,children:s(i,{alt:`user-avatar-${t}`,src:_,disabled:a,ref:o})})});_.displayName=`ProfileAvatar`;export{_ as ProfileAvatar
|
|
26
|
+
`,_=n(({url:e,name:t,size:n=`medium`,disabled:a=!1},o)=>{let l=r(()=>!t||t.trim().length===0?s(h,{data:c}):f(t),[t]),u=r(()=>{switch(n){case`small`:return 16;case`small-medium`:return 24;case`medium`:case void 0:return 32;case`large`:return 40;case`x-large`:return 48;default:return n}},[n]),d=r(()=>{switch(n){case`small`:return 6;case`small-medium`:return 10;case`medium`:case void 0:return 14;case`large`:return 16;case`x-large`:return 18;default:return n/2}},[n]),_=r(()=>{if(e)try{if(btoa(atob(e))===e)return`data:image/png;base64, ${e}`}catch{return e}return``},[e]);return _===``?s(m,{$background:p(t),$size:u,$fontSize:d,disabled:a,ref:o,children:s(`span`,{children:l})}):s(g,{$size:u,"data-testid":`avatar-wrapper`,children:s(i,{alt:`user-avatar-${t}`,src:_,disabled:a,ref:o})})});_.displayName=`ProfileAvatar`;export{_ as ProfileAvatar};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EditorPanel, ImageExtensionFnProps, RichTextEditorFeatures } from "../RichTextEditor.types.js";
|
|
2
2
|
import { MenuButtonProps } from "./MenuButton.js";
|
|
3
3
|
import { AddImageProps } from "./AddImageButton.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react41 from "react";
|
|
5
5
|
import { FC } from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as styled_components8 from "styled-components";
|
|
7
7
|
import { Editor } from "@tiptap/react";
|
|
8
|
-
import * as
|
|
8
|
+
import * as styled_components_dist_types2 from "styled-components/dist/types";
|
|
9
9
|
|
|
10
10
|
//#region src/molecules/RichTextEditor/MenuBar/MenuBar.d.ts
|
|
11
11
|
interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
|
|
@@ -14,10 +14,10 @@ interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
|
|
|
14
14
|
}
|
|
15
15
|
declare const AmplifyBar: FC<MenuBarProps>;
|
|
16
16
|
declare const EditorMenu: {
|
|
17
|
-
Bar:
|
|
18
|
-
Bars:
|
|
19
|
-
Button:
|
|
20
|
-
Section:
|
|
17
|
+
Bar: styled_components_dist_types2.IStyledComponentBase<"web", styled_components8.FastOmit<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
18
|
+
Bars: styled_components_dist_types2.IStyledComponentBase<"web", styled_components8.FastOmit<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
19
|
+
Button: react41.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react41.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Section: styled_components_dist_types2.IStyledComponentBase<"web", styled_components8.FastOmit<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react41.DetailedHTMLProps<react41.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
|
|
21
21
|
AddImageButton: FC<AddImageProps>;
|
|
22
22
|
};
|
|
23
23
|
declare const EditorText: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./ExtendedHeaders.js";import t from"./ExtendedImage.js";import{mergeDefaults as n}from"./mergeDefaults.js";import{Extension as r}from"@tiptap/core";import{Bold as i}from"@tiptap/extension-bold";import{CodeBlockLowlight as a}from"@tiptap/extension-code-block-lowlight";import{Color as o}from"@tiptap/extension-color";import{Document as s}from"@tiptap/extension-document";import c from"@tiptap/extension-gapcursor";import{HardBreak as l}from"@tiptap/extension-hard-break";import{Highlight as u}from"@tiptap/extension-highlight";import{Italic as d}from"@tiptap/extension-italic";import{Link as f}from"@tiptap/extension-link";import{BulletList as p,ListItem as m,OrderedList as h}from"@tiptap/extension-list";import{Paragraph as g}from"@tiptap/extension-paragraph";import{Table as _,TableCell as v,TableHeader as y,TableRow as b}from"@tiptap/extension-table";import{Text as x}from"@tiptap/extension-text";import{TextAlign as S}from"@tiptap/extension-text-align";import{TextStyle as C}from"@tiptap/extension-text-style";import{Typography as w}from"@tiptap/extension-typography";import{Dropcursor as T,Placeholder as E,UndoRedo as D}from"@tiptap/extensions";import{common as O,createLowlight as k}from"lowlight";const A=k(O),j=[{name:`bold`,extension:i},{name:`bulletList`,extension:p},{name:`document`,extension:s},{name:`hardBreak`,extension:l},{name:`undoRedo`,extension:D},{name:`italic`,extension:d},{name:`listItem`,extension:m},{name:`orderedList`,extension:h},{name:`paragraph`,extension:g},{name:`text`,extension:x},{name:`codeBlockLowlight`,extension:a},{name:`color`,extension:o},{name:`dropCursor`,extension:T},{name:`gapCursor`,extension:c},{name:`highlight`,extension:u},{name:`link`,extension:f},{name:`placeholder`,extension:E},{name:`table`,extension:_},{name:`tableCell`,extension:v},{name:`tableHeader`,extension:y},{name:`tableRow`,extension:b},{name:`typography`,extension:w},{name:`textStyle`,extension:C},{name:`textAlign`,extension:S},{name:`image`,extension:t},{name:`heading`,extension:e}],M=r.create({name:`AmplifyKit`,addExtensions(){let e=n({options:this.options,defaults:{codeBlockLowlight:{lowlight:A},highlight:{multicolor:!0},table:{resizable:!0},image:{allowBase64:!0},placeholder:{placeholder:`Add text and content here...`},textAlign:{types:[`heading`,`paragraph`,`img`]}}});return j.filter(t=>e[t.name]!==!1).map(t=>{let n=e[t.name];return n?t.extension.configure(n):t.extension})}});export{M as AmplifyKit
|
|
1
|
+
import e from"./ExtendedHeaders.js";import t from"./ExtendedImage.js";import{mergeDefaults as n}from"./mergeDefaults.js";import{Extension as r}from"@tiptap/core";import{Bold as i}from"@tiptap/extension-bold";import{CodeBlockLowlight as a}from"@tiptap/extension-code-block-lowlight";import{Color as o}from"@tiptap/extension-color";import{Document as s}from"@tiptap/extension-document";import c from"@tiptap/extension-gapcursor";import{HardBreak as l}from"@tiptap/extension-hard-break";import{Highlight as u}from"@tiptap/extension-highlight";import{Italic as d}from"@tiptap/extension-italic";import{Link as f}from"@tiptap/extension-link";import{BulletList as p,ListItem as m,OrderedList as h}from"@tiptap/extension-list";import{Paragraph as g}from"@tiptap/extension-paragraph";import{Table as _,TableCell as v,TableHeader as y,TableRow as b}from"@tiptap/extension-table";import{Text as x}from"@tiptap/extension-text";import{TextAlign as S}from"@tiptap/extension-text-align";import{TextStyle as C}from"@tiptap/extension-text-style";import{Typography as w}from"@tiptap/extension-typography";import{Dropcursor as T,Placeholder as E,UndoRedo as D}from"@tiptap/extensions";import{common as O,createLowlight as k}from"lowlight";const A=k(O),j=[{name:`bold`,extension:i},{name:`bulletList`,extension:p},{name:`document`,extension:s},{name:`hardBreak`,extension:l},{name:`undoRedo`,extension:D},{name:`italic`,extension:d},{name:`listItem`,extension:m},{name:`orderedList`,extension:h},{name:`paragraph`,extension:g},{name:`text`,extension:x},{name:`codeBlockLowlight`,extension:a},{name:`color`,extension:o},{name:`dropCursor`,extension:T},{name:`gapCursor`,extension:c},{name:`highlight`,extension:u},{name:`link`,extension:f},{name:`placeholder`,extension:E},{name:`table`,extension:_},{name:`tableCell`,extension:v},{name:`tableHeader`,extension:y},{name:`tableRow`,extension:b},{name:`typography`,extension:w},{name:`textStyle`,extension:C},{name:`textAlign`,extension:S},{name:`image`,extension:t},{name:`heading`,extension:e}],M=r.create({name:`AmplifyKit`,addExtensions(){let e=n({options:this.options,defaults:{codeBlockLowlight:{lowlight:A},highlight:{multicolor:!0},table:{resizable:!0},image:{allowBase64:!0},placeholder:{placeholder:`Add text and content here...`},textAlign:{types:[`heading`,`paragraph`,`img`]}}});return j.filter(t=>e[t.name]!==!1).map(t=>{let n=e[t.name];return n?t.extension.configure(n):t.extension})}});export{M as AmplifyKit};
|