@equinor/amplify-component-lib 10.8.1 → 10.8.3
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 -1
- package/dist/atoms/style/index.d.ts +1 -0
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/environmentToggle.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.utils.js +1 -0
- package/dist/molecules/ApplicationIcon/ApplicationIconBase/ApplicationIconBase.js +59 -0
- package/dist/molecules/ApplicationIcon/ApplicationIconBase/ApplicationIconContent.js +1 -0
- package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
- package/dist/molecules/ApplicationIcon/Fallback.js +1 -0
- package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Atwork.js +1 -0
- package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Sam.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
- package/dist/molecules/Banner/Banner.styles.js +1 -1
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.d.ts +2 -2
- package/dist/molecules/Dialog/Dialog.styles.js +4 -4
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- 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/RichTextEditor/MenuBar/MenuBar.d.ts +6 -6
- package/dist/molecules/RichTextEditor/index.d.ts +6 -6
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/DynamicMenuItem.js +1 -1
- package/dist/molecules/Select/GroupedSelectPersistent.js +1 -1
- package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/SearchBar.js +1 -1
- package/dist/molecules/Select/Select.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/SelectItemSkeleton.js +7 -0
- 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/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +3 -3
- package/dist/molecules/Tabs/Tabs.d.ts +4 -4
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/Faq/Search.js +1 -1
- package/dist/organisms/Filter/index.d.ts +4 -4
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/index.d.ts +4 -4
- 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 +4 -4
- package/dist/organisms/Template/Template.d.ts +5 -5
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +4 -4
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +5 -5
- package/dist/organisms/ToggleGroup/index.d.ts +4 -4
- package/dist/organisms/TopBar/Account/AccountAvatar.js +1 -1
- package/dist/organisms/TopBar/Account/AccountButton.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +1 -1
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/index.d.ts +4 -4
- package/dist/organisms/TopBar/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +0 -54
- package/dist/molecules/ApplicationIcon/Icons/Fallback.js +0 -1
- package/dist/molecules/ApplicationIcon/Icons/JsCalendar.js +0 -1
|
@@ -6,4 +6,4 @@ import{spacings as e}from"../../../atoms/style/spacings.js";import{useAuth as t}
|
|
|
6
6
|
background: ${({$variant:e})=>s(e).chipBackground};
|
|
7
7
|
outline: none;
|
|
8
8
|
padding: 0;
|
|
9
|
-
`,h=l(({onClick:e,environmentToggle:n},s)=>{let{account:l,photo:u}=t(),{data:h}=i(),g=n
|
|
9
|
+
`,h=l(({onClick:e,environmentToggle:n},s)=>{let{account:l,photo:u}=t(),{data:h}=i(),g=n.length>0,_=n.map(e=>o(e.value)),v=h?.roles?.sort()??[];return f(p,{children:[v.at(0)&&d(m,{$variant:`impersonate`,children:v[0]}),v.length>1&&d(m,{$variant:`impersonate`,children:`+${v.length-1}`}),g&&_.at(0)&&d(m,{$variant:`environment`,children:_[0]}),_.length>1&&d(m,{$variant:`environment`,children:`+${_.length-1}`}),d(a,{ref:s,onClick:e,children:g&&h?d(c,{size:36,variant:`combined`}):g?d(c,{size:36,name:n.map(e=>e.value).join(`, `),variant:`environment`}):h?d(c,{size:36,variant:`impersonate`}):d(r,{size:36,name:l?.name,url:u})})]})});h.displayName=`AccountButton`;export{h as AccountButton};
|
|
@@ -8,4 +8,4 @@ import{spacings as e}from"../../../../atoms/style/spacings.js";import{useActiveI
|
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: flex-end;
|
|
10
10
|
gap: ${e.small};
|
|
11
|
-
`,d=({selectedUniqueName:e,onCancel:o})=>{let{data:d}=t(),{mutateAsync:f,isPending:p}=n();return c(l,{children:[s(a,{variant:`body_short`,children:`By selecting a user to impersonate, you will view the contents of this app as if you would be that user.`}),c(u,{children:[s(r,{variant:`outlined`,onClick:o,children:`Cancel`}),p?s(r,{children:s(i,{})}):s(r,{onClick:async()=>{await f(e),o()},disabled:e===``||e===d?.uniqueName,children:`Impersonate`})]})]})};export{d as Actions};
|
|
11
|
+
`,d=({selectedUniqueName:e,onCancel:o})=>{let{data:d}=t(),{mutateAsync:f,isPending:p}=n();return c(l,{children:[s(a,{variant:`body_short`,children:`By selecting a user to impersonate, you will view the contents of this app as if you would be that user.`}),c(u,{children:[s(r,{variant:`outlined`,onClick:o,children:`Cancel`}),p?s(r,{children:s(i,{})}):s(r,{onClick:async()=>{await f(e),o()},disabled:e===``||e===d?.uniqueName,"data-testid":`start-impersonate-button`,children:`Impersonate`})]})]})};export{d as Actions};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react139 from "react";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Actions.d.ts
|
|
5
|
-
declare const Actions:
|
|
5
|
+
declare const Actions: react139.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react139.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Actions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from "../../../atoms/types/Field.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react137 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/FieldMenu/FieldMenu.d.ts
|
|
5
5
|
interface FieldMenuProps {
|
|
@@ -8,6 +8,6 @@ interface FieldMenuProps {
|
|
|
8
8
|
itemNameSingular?: string;
|
|
9
9
|
showAccessITLink?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const FieldMenu:
|
|
11
|
+
declare const FieldMenu: react137.ForwardRefExoticComponent<FieldMenuProps & react137.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FieldMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Guidelines } from "./Guidelines.js";
|
|
1
|
+
import { Guidelines as Guidelines$1 } from "./Guidelines.js";
|
|
2
2
|
import { Colorbox } from "./Colorbox.js";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Guidelines/index.d.ts
|
|
5
|
-
type BaseGuidelinesType = typeof Guidelines;
|
|
5
|
+
type BaseGuidelinesType = typeof Guidelines$1;
|
|
6
6
|
interface GuidelinesType extends BaseGuidelinesType {
|
|
7
7
|
Colorbox: typeof Colorbox;
|
|
8
8
|
}
|
|
9
|
-
declare const Guidelines
|
|
9
|
+
declare const Guidelines: GuidelinesType;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Guidelines
|
|
11
|
+
export { Guidelines };
|
|
@@ -8,10 +8,10 @@ import { Tutorials } from "./Tutorials/Tutorials.js";
|
|
|
8
8
|
import { Actions } from "./Actions.js";
|
|
9
9
|
import { Guidelines } from "./Guidelines/index.js";
|
|
10
10
|
import { Settings, SettingsProps } from "./Settings.js";
|
|
11
|
-
import { TopBar } from "./TopBar.js";
|
|
11
|
+
import { TopBar as TopBar$1 } from "./TopBar.js";
|
|
12
12
|
|
|
13
13
|
//#region src/organisms/TopBar/index.d.ts
|
|
14
|
-
type TopBarType = typeof TopBar & {
|
|
14
|
+
type TopBarType = typeof TopBar$1 & {
|
|
15
15
|
Account: typeof Account;
|
|
16
16
|
Actions: typeof Actions;
|
|
17
17
|
Guidelines: typeof Guidelines;
|
|
@@ -22,6 +22,6 @@ type TopBarType = typeof TopBar & {
|
|
|
22
22
|
ApplicationDrawer: typeof ApplicationDrawer;
|
|
23
23
|
Tutorials: typeof Tutorials;
|
|
24
24
|
};
|
|
25
|
-
declare const TopBar
|
|
25
|
+
declare const TopBar: TopBarType;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { TopBar
|
|
27
|
+
export { TopBar };
|
package/package.json
CHANGED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{GRAYSCALE_FILTER_VALUE as t}from"./ApplicationIcon.constants.js";import{forwardRef as n}from"react";import{Icon as r}from"@equinor/eds-core-react";import i,{css as a}from"styled-components";import{jsx as o,jsxs as s}from"react/jsx-runtime";const{colors:c,elevation:l}=e,u=i.div`
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
align-items: center;
|
|
6
|
-
border-radius: 15%;
|
|
7
|
-
background: ${({$iconOnly:e})=>e?`transparent`:`#004f55`};
|
|
8
|
-
width: ${({$size:e})=>`${e}px`};
|
|
9
|
-
height: ${({$size:e})=>`${e}px`};
|
|
10
|
-
z-index: 100;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
${({$grayScale:e})=>e?a`
|
|
13
|
-
filter: ${t};
|
|
14
|
-
`:``}
|
|
15
|
-
> svg {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: 0;
|
|
18
|
-
left: 0;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
transition: all 2s ease-in-out;
|
|
21
|
-
z-index: 300;
|
|
22
|
-
transform: scale(0.8);
|
|
23
|
-
}
|
|
24
|
-
${({$withHover:e})=>e&&`
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
&:hover {
|
|
27
|
-
> svg {
|
|
28
|
-
transform: scale(0.9);
|
|
29
|
-
}
|
|
30
|
-
> div:nth-child(even) {
|
|
31
|
-
top: -80%;
|
|
32
|
-
left: 80%;
|
|
33
|
-
}
|
|
34
|
-
> div:nth-child(odd) {
|
|
35
|
-
top: 93%;
|
|
36
|
-
left: -93%;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`};
|
|
40
|
-
`,d=i.div`
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: ${e=>e.$top}%;
|
|
43
|
-
left: ${e=>e.$left}%;
|
|
44
|
-
border-radius: 55% 50% 80% 50%;
|
|
45
|
-
z-index: ${e=>200-e.$index};
|
|
46
|
-
width: 120%;
|
|
47
|
-
height: 80%;
|
|
48
|
-
box-shadow: ${l.raised};
|
|
49
|
-
// This background is set to hex and not rgba because design do not want this color to change in dark mode , 18 march 2024.
|
|
50
|
-
background: ${c.interactive.primary__resting.hex};
|
|
51
|
-
transition: all 3s cubic-bezier(0.25, 1, 0.5, 1);
|
|
52
|
-
transform: rotate(${e=>e.$rotation}deg);
|
|
53
|
-
pointer-events: none;
|
|
54
|
-
`,f=n(({size:e=48,iconData:t,shapes:n,iconOnly:i,withHover:a,grayScale:c=!1},l)=>i?o(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:Array.isArray(t)?t.map((t,n)=>o(r,{data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`})}):s(u,{"data-testid":`application-icon`,ref:l,$size:e,$iconOnly:i,$withHover:a,$grayScale:c,children:[Array.isArray(t)?t.map((t,n)=>o(r,{"data-testid":`icon-part-${n}`,data:t,size:e,color:t.color},`icon-${n}`)):o(r,{data:t,size:e,color:`#ffffff`}),n.map((e,t)=>o(d,{"data-testid":`shape`,$index:t,$top:e.top,$left:e.left,$rotation:e.rotation,$grayScale:c},`shape-${t}`))]}));f.displayName=`ApplicationIconBase`;var p=f;export{p as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../ApplicationIconBase.js";import{fallback as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-16,left:-17,rotation:325},{top:26,left:11,rotation:193}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`Fallback`;export{a as Fallback};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../ApplicationIconBase.js";import{jscalendar as t}from"../ApplicationIconCollection.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=[{top:-45,left:1,rotation:15},{top:72,left:-5,rotation:220}],a=n((n,a)=>r(e,{ref:a,iconData:t,shapes:i,...n}));a.displayName=`JsCalendar`;export{a as JsCalendar};
|