@equinor/amplify-component-lib 13.2.7 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/index.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +6 -5
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/molecules/Chip/Chip.d.ts +3 -3
- package/dist/molecules/Chip/Chip.styles.js +3 -3
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/IconCell/IconCell.styles.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +2 -2
- package/dist/molecules/RichTextEditor/index.d.ts +7 -7
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/GroupedSelectPersistent.js +1 -1
- package/dist/molecules/Select/ListSelectPersistent.js +1 -1
- package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +5 -5
- package/dist/molecules/Select/Select.styles.js +35 -28
- package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Tabs/Tabs.d.ts +2 -2
- package/dist/molecules/TextField/TextField.js +3 -3
- package/dist/molecules/Toast/Toast.d.ts +2 -2
- package/dist/molecules/Toast/Toast.js +1 -1
- package/dist/molecules/Toast/Toast.styles.js +55 -87
- package/dist/molecules/Toast/Toast.utils.js +1 -1
- package/dist/molecules/Tooltip/Tooltip.d.ts +14 -0
- package/dist/molecules/Tooltip/Tooltip.js +1 -0
- package/dist/molecules/Tooltip/Tooltip.styles.js +91 -0
- package/dist/molecules/Tooltip/utils.js +1 -0
- package/dist/molecules/index.d.ts +1 -1
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/CreateItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +4 -4
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/ToggleOpen.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
- package/dist/organisms/Template/Template.d.ts +5 -5
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +2 -2
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +2 -2
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.js +1 -1
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.js +2 -2
- package/dist/providers/SurveyProvider/SurveyDialog/UmuxDialog.js +2 -2
- package/package.json +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +0 -19
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +0 -4
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{elevation as n,shape as r,typography as i}from"../../atoms/style/index.js";import{typographyTemplate as a}from"../../node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.js";import o,{css as s}from"styled-components";const c=o.span`
|
|
2
|
+
anchor-name: ${e=>e.$anchor};
|
|
3
|
+
display: inline-block;
|
|
4
|
+
`,l=o.div`
|
|
5
|
+
position-anchor: ${e=>e.$anchor};
|
|
6
|
+
|
|
7
|
+
/* UA popover reset */
|
|
8
|
+
position: fixed;
|
|
9
|
+
margin: 0;
|
|
10
|
+
inset: auto;
|
|
11
|
+
border: none;
|
|
12
|
+
overflow: visible;
|
|
13
|
+
|
|
14
|
+
/* custom popover styles */
|
|
15
|
+
//has to be set before color to not override the color tokens
|
|
16
|
+
${a(i.ui.tooltip)}
|
|
17
|
+
|
|
18
|
+
min-width: 56px;
|
|
19
|
+
max-width: 280px;
|
|
20
|
+
background-color: ${e.text.static_icons__default.rgba};
|
|
21
|
+
box-shadow: ${n.raised};
|
|
22
|
+
border-radius: ${r.corners.borderRadius};
|
|
23
|
+
color: ${e.text.static_icons__primary_white.rgba};
|
|
24
|
+
padding: ${t.small};
|
|
25
|
+
text-align: center;
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
content: '';
|
|
29
|
+
position: absolute;
|
|
30
|
+
z-index: -1;
|
|
31
|
+
background: inherit;
|
|
32
|
+
margin: inherit;
|
|
33
|
+
${({$arrow:e})=>{switch(e.placement){case`top`:return s`
|
|
34
|
+
inset: 0 0 -${`4px`} 0;
|
|
35
|
+
`;case`bottom`:return s`
|
|
36
|
+
inset: -${`4px`} 0 0 0;
|
|
37
|
+
`;case`left`:return s`
|
|
38
|
+
inset: 0 -${`4px`} 0 0;
|
|
39
|
+
`;case`right`:return s`
|
|
40
|
+
inset: 0 0 0 -${`4px`};
|
|
41
|
+
`}}}
|
|
42
|
+
|
|
43
|
+
${({$arrow:{offset:e}})=>{let t=e.x?`${e.x}px`:`50%`,n=e.y?`${e.y}px`:`50%`;return s`
|
|
44
|
+
clip-path: polygon(
|
|
45
|
+
/* top */
|
|
46
|
+
calc(${t} - ${`4px`}) ${`4px`},
|
|
47
|
+
${t} 0,
|
|
48
|
+
${t} 0,
|
|
49
|
+
calc(${t} + ${`4px`}) ${`4px`},
|
|
50
|
+
/* right */
|
|
51
|
+
calc(100% - ${`4px`})
|
|
52
|
+
calc(${n} - ${`4px`}),
|
|
53
|
+
100% ${n},
|
|
54
|
+
100% ${n},
|
|
55
|
+
calc(100% - ${`4px`}) calc(${n} + ${`4px`}),
|
|
56
|
+
/* bottom */
|
|
57
|
+
calc(${t} + ${`4px`})
|
|
58
|
+
calc(100% - ${`4px`}),
|
|
59
|
+
${t} 100%,
|
|
60
|
+
${t} 100%,
|
|
61
|
+
calc(${t} - ${`4px`}) calc(100% - ${`4px`}),
|
|
62
|
+
/* left */
|
|
63
|
+
${`4px`} calc(${n} + ${`4px`}),
|
|
64
|
+
0 ${n},
|
|
65
|
+
0 ${n},
|
|
66
|
+
${`4px`} calc(${n} - ${`4px`})
|
|
67
|
+
);
|
|
68
|
+
`}};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${e=>{switch(e.$placement){case`top`:return s`
|
|
72
|
+
position-area: top;
|
|
73
|
+
bottom: ${`5px`};
|
|
74
|
+
position-try-fallbacks: flip-block;
|
|
75
|
+
`;case`bottom`:return s`
|
|
76
|
+
position-area: bottom;
|
|
77
|
+
top: ${`5px`};
|
|
78
|
+
position-try-fallbacks: flip-block;
|
|
79
|
+
`;case`left`:return s`
|
|
80
|
+
position-area: left;
|
|
81
|
+
right: ${`5px`};
|
|
82
|
+
position-try-fallbacks: flip-inline;
|
|
83
|
+
`;case`right`:return s`
|
|
84
|
+
position-area: right;
|
|
85
|
+
left: ${`5px`};
|
|
86
|
+
position-try-fallbacks: flip-inline;
|
|
87
|
+
`}}})
|
|
88
|
+
`,u=o.span`
|
|
89
|
+
display: inline-block;
|
|
90
|
+
text-align: left;
|
|
91
|
+
`;export{u as LeftAlignedText,l as TooltipWrapper,c as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>e.bottom<=t.top?`top`:e.top>=t.bottom?`bottom`:e.right<=t.left?`left`:`right`;function t(e,t){typeof e==`function`?e(t):e&&(e.current=t)}export{t as assignRef,e as getResolvedPlacement};
|
|
@@ -23,7 +23,7 @@ import { IconCellColor, IconCellColorObject, IconCellColors, IconCellState, Icon
|
|
|
23
23
|
import { IconCell, IconCellProps } from "./IconCell/IconCell.js";
|
|
24
24
|
import { InfoElement, InfoElementProps } from "./InfoElement/InfoElement.js";
|
|
25
25
|
import { InformationalNotice, InformationalNoticeProps } from "./InformationalNotice/InformationalNotice.js";
|
|
26
|
-
import {
|
|
26
|
+
import { Tooltip as Tooltip$1, TooltipProps as TooltipProps$1 } from "./Tooltip/Tooltip.js";
|
|
27
27
|
import { ProfileAvatar, ProfileAvatarProps } from "./ProfileAvatar/ProfileAvatar.js";
|
|
28
28
|
import { RichTextDisplay, RichTextDisplayProps } from "./RichTextDisplay/RichTextDisplay.js";
|
|
29
29
|
import { AmplifyBar, EditorMenu, EditorText } from "./RichTextEditor/MenuBar/MenuBar.js";
|
package/dist/molecules/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./FullPageSpinner/FullPageSpinner.js";import"./RichTextEditor/RichTextEditor.types.js";import"./RichTextEditor/custom-extensions/AmplifyKit.js";import"./
|
|
1
|
+
import"./FullPageSpinner/FullPageSpinner.js";import"./RichTextEditor/RichTextEditor.types.js";import"./RichTextEditor/custom-extensions/AmplifyKit.js";import"./Button/Button.js";import"./Button/IconButton/IconButton.js";import"./Toast/Toast.js";import"./Confetti/Confetti.js";import"./Skeleton/SkeletonBase/SkeletonBase.js";import"./TextField/TextField.js";import"./SelectionControls/Checkbox/Checkbox.js";import"./SelectionControls/Radio/Radio.js";import"./AnimatedCheckmark/AnimatedCheckmark.js";import"./ApplicationIcon/ApplicationIcon.js";import"./Badge/Badge.js";import"./Banner/Banner.js";import"./Chip/Chip.js";import"./DatePicker/DatePicker.js";import"./DateRangePicker/DateRangePicker.js";import"./Dialog/Dialog.js";import"./EquinorLogo/EquinorLogo.js";import"./FileProgress/FileProgress.js";import"./FileUploadArea/FileUploadArea.js";import"./IconCell/IconCell.types.js";import"./IconCell/IconCell.js";import"./InfoElement/InfoElement.js";import"./InformationalNotice/InformationalNotice.js";import"./Tooltip/Tooltip.js";import"./ProfileAvatar/ProfileAvatar.js";import"./RichTextDisplay/RichTextDisplay.js";import"./RichTextEditor/MenuBar/Table/TableBar.js";import"./RichTextEditor/MenuBar/MenuBar.js";import"./RichTextEditor/RichTextEditor.js";import"./RichTextEditor/index.js";import"./Tabs/Tabs.js";import"./Search/Search.js";import"./Skeleton/SkeletonGradient/SkeletonGradient.js";import"./Stepper/Stepper.js";import"./OptionDrawer/OptionDrawer.js";import"./Select/Select.styles.js";import"./Select/ComboBox/ComboBox.js";import"./Select/PersistentComboBox/PersistentComboBox.js";import"./Select/SingleSelect/SingleSelect.js";import"./Tag/Tag.js";import"./TableHeader/TableHeader.js";import"./FeedBackIcon/FeedBackIcon.js";import"./ListItem/ListItem.js";import"./SelectionControls/Switch/Switch.js";import"./Waves/Waves.js";import{Accordion as e,Breadcrumbs as t,CircularProgress as n,Dialog as r,Divider as i,DotProgress as a,Icon as o,LinearProgress as s,Menu as c,Typography as l}from"@equinor/eds-core-react";export{e as Accordion,t as Breadcrumbs,n as CircularProgress,i as Divider,a as DotProgress,r as EDSDialog,o as Icon,s as LinearProgress,c as Menu,l as Typography};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react180 from "react";
|
|
2
2
|
import { EdsDataGridProps } from "@equinor/eds-data-grid-react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/DataGrid/DataGrid.d.ts
|
|
5
|
-
declare const DataGrid: <T>(props: EdsDataGridProps<T>) =>
|
|
5
|
+
declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react180.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DataGrid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterProps } from "./Filter.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react214 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/Filter/Filter.d.ts
|
|
5
5
|
|
|
@@ -32,6 +32,6 @@ declare function Filter<T extends string>({
|
|
|
32
32
|
id,
|
|
33
33
|
openOnFocus,
|
|
34
34
|
...rest
|
|
35
|
-
}: FilterProps<T>):
|
|
35
|
+
}: FilterProps<T>): react214.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Filter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOptionRequired } from "../../molecules/Select/Select.types.js";
|
|
2
2
|
import { FilterProps } from "./Filter.types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react215 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/organisms/Filter/QuickFilter.d.ts
|
|
6
6
|
interface QuickFilterProps<T extends string> {
|
|
@@ -14,6 +14,6 @@ declare function QuickFilter<T extends string>({
|
|
|
14
14
|
items,
|
|
15
15
|
onQuickFilter,
|
|
16
16
|
label
|
|
17
|
-
}: QuickFilterProps<T>):
|
|
17
|
+
}: QuickFilterProps<T>): react215.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { QuickFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react213 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Filter/SortMenu.d.ts
|
|
4
4
|
interface SortMenuProps<S> {
|
|
@@ -13,6 +13,6 @@ declare function SortMenu<S>({
|
|
|
13
13
|
value,
|
|
14
14
|
onChange,
|
|
15
15
|
items
|
|
16
|
-
}: SortMenuProps<S>):
|
|
16
|
+
}: SortMenuProps<S>): react213.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SortMenu };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react181 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { ReleaseNote } from "@equinor/subsurface-app-management";
|
|
4
4
|
|
|
@@ -7,9 +7,9 @@ type ReleaseNoteProps = {
|
|
|
7
7
|
actionMenu?: ReactNode;
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
} & ReleaseNote;
|
|
10
|
-
declare const ReleaseNote$1:
|
|
10
|
+
declare const ReleaseNote$1: react181.ForwardRefExoticComponent<{
|
|
11
11
|
actionMenu?: ReactNode;
|
|
12
12
|
expanded?: boolean;
|
|
13
|
-
} & ReleaseNote &
|
|
13
|
+
} & ReleaseNote & react181.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ReleaseNote$1 as ReleaseNote, ReleaseNoteProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useSideBar as e}from"../../providers/SideBarProvider.js";import{
|
|
1
|
+
import{useSideBar as e}from"../../providers/SideBarProvider.js";import{CreateButton as t,MenuItemContainer as n}from"./CreateItem.styles.js";import{Icon as r,Tooltip as i}from"@equinor/eds-core-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{add as s}from"@equinor/eds-icons";const c=({createLabel:c,onCreate:l,disabled:u=!1,active:d=!1})=>{let{isOpen:f}=e(),p=u?void 0:l;return f?a(n,{$active:d,onClick:p,"data-testid":`create-item-container`,children:o(t,{$open:!0,variant:`contained`,disabled:u,children:[a(r,{data:s}),c]})}):a(i,{title:c,placement:`right`,children:a(n,{$active:d,onClick:p,"data-testid":`create-item-container`,children:a(t,{variant:`contained`,disabled:u,children:a(r,{data:s})})})})};export{c as CreateItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useSideBar as e}from"../../../providers/SideBarProvider.js";import{
|
|
1
|
+
import{useSideBar as e}from"../../../providers/SideBarProvider.js";import{IconContainer as t,ItemText as n,Link as r,MenuItemWrapper as i}from"./MenuItem.styles.js";import{canNavigate as a}from"./MenuItem.utils.js";import{useCallback as o,useMemo as s}from"react";import{Icon as c,Tooltip as l}from"@equinor/eds-core-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useMatchRoute as f}from"@tanstack/react-router";import{Feature as p}from"@equinor/subsurface-app-management";const m=({icon:m,onClick:h,replace:g=!1,name:_,disabled:v=!1,featureUuid:y,...b})=>{let{isOpen:x}=e(),S=!!f()({...b}),C=a({isActive:S,replace:g,disabled:v}),w=o(e=>{if(!C){e.preventDefault();return}h&&h()},[C,h]),T=s(()=>u(l,{title:_,placement:`right`,children:u(i,{children:d(r,{"aria-disabled":v,$disabled:v,onClick:w,tabIndex:0,"data-testid":`sidebar-menu-item`,...b,children:[u(t,{"data-testid":`icon-container`,children:u(c,{data:m,size:24})}),x&&u(n,{$active:S,$disabled:v,variant:`button`,group:`navigation`,children:_})]})})}),[v,w,m,S,x,_,b]);return y?u(p,{featureUuid:y,children:T}):T};export{m as BasicMenuItem};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{useSideBar as n}from"../../../providers/SideBarProvider.js";import{usePrevious as r}from"../../../atoms/hooks/usePrevious.js";import{
|
|
1
|
+
import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{useSideBar as n}from"../../../providers/SideBarProvider.js";import{usePrevious as r}from"../../../atoms/hooks/usePrevious.js";import{IconContainer as i,ItemText as a,Link as o,MenuItemWrapper as s}from"./MenuItem.styles.js";import{useEffect as c,useMemo as l,useRef as u,useState as d}from"react";import{Icon as f,Menu as p,Tooltip as m}from"@equinor/eds-core-react";import h,{css as g}from"styled-components";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import{chevron_down as b,chevron_up as x}from"@equinor/eds-icons";import{Link as S,useLocation as C,useMatchRoute as w}from"@tanstack/react-router";const T=h.button`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: grid;
|
|
@@ -38,14 +38,14 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
38
38
|
z-index: 500;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,E=h(
|
|
41
|
+
`,E=h(o)`
|
|
42
42
|
display: grid;
|
|
43
43
|
grid-template-columns: 32px 1fr;
|
|
44
44
|
height: unset;
|
|
45
45
|
> p:first-child {
|
|
46
46
|
grid-column: 2;
|
|
47
47
|
}
|
|
48
|
-
`,D=h(
|
|
48
|
+
`,D=h(p)`
|
|
49
49
|
max-height: 80vh;
|
|
50
50
|
overflow-y: auto;
|
|
51
|
-
`,O=({icon:t,name:
|
|
51
|
+
`,O=({icon:t,name:o,items:h,...g})=>{let{pathname:O}=C(),k=w(),A=r(O),{isOpen:j}=n(),M=r(j),N=h.some(e=>!!k({...e})),P=u(null),[F,I]=d(!1),L=()=>I(e=>!e);c(()=>{(M&&!j&&F||A!==O&&F&&!j)&&I(!1)},[F,j,O,M,A]);let R=l(()=>v(m,{title:o,placement:`right`,children:v(s,{children:y(T,{ref:P,$open:j,$active:N,$expanded:F,onClick:L,...g,children:[v(i,{"data-testid":`icon-container`,children:v(f,{data:t,size:24,color:e.interactive.primary__resting.rgba})}),j&&y(_,{children:[v(a,{$active:!1,$disabled:!1,variant:`button`,group:`navigation`,children:o}),v(f,{data:F?x:b,size:24,color:e.interactive.primary__resting.rgba})]})]})})}),[F,t,N,j,o,g]);return F&&j?y(_,{children:[R,h.map((e,t)=>v(E,{$disabled:e.disabled||!1,...e,children:v(a,{$active:N,$disabled:e.disabled||!1,variant:`button`,group:`navigation`,children:e.name})},t))]}):F?y(_,{children:[R,v(D,{open:!0,anchorEl:P.current,placement:`right-start`,onClose:L,children:h.map(e=>v(p.Item,{as:S,active:!!k({...e}),style:{width:`256px`},...e,children:e.name},`${e.to}-${e.name}`))})]}):R};export{O as CollapsableMenuItem};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react211 from "react";
|
|
2
2
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/SideBar/SideBar.d.ts
|
|
@@ -16,6 +16,6 @@ interface SideBarWithCreate extends SideBarProps {
|
|
|
16
16
|
createDisabled?: boolean;
|
|
17
17
|
createActive?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const SideBar:
|
|
19
|
+
declare const SideBar: react211.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react211.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SideBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{IconContainer as t}from"./MenuItem/MenuItem.styles.js";import{Container as n}from"./ToggleOpen.styles.js";import{Icon as r,Tooltip as i,Typography as a}from"@equinor/eds-core-react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{first_page as c,last_page as l}from"@equinor/eds-icons";const{colors:u}=e,d=({isOpen:e,toggle:d})=>o(i,{title:e?`Collapse`:`Expand`,placement:`right`,children:s(n,{$isOpen:e,onClick:d,children:[o(t,{children:o(r,{size:24,data:e?c:l,color:u.interactive.primary__resting.rgba})}),e&&o(a,{variant:`button`,group:`navigation`,color:u.text.static_icons__default.rgba,children:`Collapse`})]})});export{d as ToggleOpen};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react230 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/Action.d.ts
|
|
4
4
|
interface ActionProps {
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
buttonText?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const Action:
|
|
8
|
+
declare const Action: react230.ForwardRefExoticComponent<ActionProps & react230.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Action };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react228 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/Description.d.ts
|
|
4
4
|
interface DescriptionProps {
|
|
5
5
|
text?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const Description:
|
|
7
|
+
declare const Description: react228.ForwardRefExoticComponent<DescriptionProps & react228.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Description };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react226 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/MissingAccesses.d.ts
|
|
4
4
|
interface AccessType {
|
|
@@ -9,6 +9,6 @@ interface MissingAccessesProps {
|
|
|
9
9
|
accesses?: AccessType[];
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const MissingAccesses:
|
|
12
|
+
declare const MissingAccesses: react226.ForwardRefExoticComponent<MissingAccessesProps & react226.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MissingAccesses };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react224 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/Title.d.ts
|
|
4
4
|
interface TitleProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const Title:
|
|
7
|
+
declare const Title: react224.ForwardRefExoticComponent<TitleProps & react224.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Title };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react233 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/BadRequest.d.ts
|
|
4
4
|
interface BadRequestProps {
|
|
@@ -12,6 +12,6 @@ declare const BadRequest: ({
|
|
|
12
12
|
redirectFallbackUrl,
|
|
13
13
|
onBackClick,
|
|
14
14
|
hideBackButton
|
|
15
|
-
}: BadRequestProps) =>
|
|
15
|
+
}: BadRequestProps) => react233.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { BadRequest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react236 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/GenericError.d.ts
|
|
4
4
|
interface GenericErrorProps {
|
|
@@ -14,6 +14,6 @@ declare const GenericError: ({
|
|
|
14
14
|
redirectFallbackUrl,
|
|
15
15
|
onBackClick,
|
|
16
16
|
hideBackButton
|
|
17
|
-
}: GenericErrorProps) =>
|
|
17
|
+
}: GenericErrorProps) => react236.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { GenericError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{environment as e}from"../../../atoms/utils/auth_environment.js";import{Status as t}from"../index.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";const i=()=>{let i=e.getAppName(import.meta.env.VITE_NAME);return r(t,{children:[n(t.Title,{title:`You don't have access to ${i}`}),n(t.Description,{text:`You can apply for
|
|
1
|
+
import{environment as e}from"../../../atoms/utils/auth_environment.js";import{Status as t}from"../index.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";const i=()=>{let i=e.getAppName(import.meta.env.VITE_NAME);return r(t,{children:[n(t.Title,{title:`You don't have access to ${i}`}),n(t.Description,{text:`You can apply for access to the app in AccessIT`}),n(t.Action,{onClick:()=>{window.open(`https://accessit.equinor.com/Search/Search?term=${encodeURIComponent(i)}`,`_blank`)},buttonText:`Apply for access`})]})};export{i as MissingAccessToApp};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react232 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/MissingPermissions.d.ts
|
|
4
4
|
interface MissingPermissionsProps {
|
|
@@ -14,6 +14,6 @@ declare const MissingPermissions: ({
|
|
|
14
14
|
redirectFallbackUrl,
|
|
15
15
|
onBackClick,
|
|
16
16
|
hideBackButton
|
|
17
|
-
}: MissingPermissionsProps) =>
|
|
17
|
+
}: MissingPermissionsProps) => react232.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { MissingPermissions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react234 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/PageNotFound.d.ts
|
|
4
4
|
interface PageNotFoundProps {
|
|
@@ -12,6 +12,6 @@ declare const PageNotFound: ({
|
|
|
12
12
|
redirectFallbackUrl,
|
|
13
13
|
onBackClick,
|
|
14
14
|
hideBackButton
|
|
15
|
-
}: PageNotFoundProps) =>
|
|
15
|
+
}: PageNotFoundProps) => react234.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { PageNotFound };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react235 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/ServerError.d.ts
|
|
4
4
|
interface ServerErrorProps {
|
|
@@ -12,6 +12,6 @@ declare const ServerError: ({
|
|
|
12
12
|
redirectFallbackUrl,
|
|
13
13
|
onBackClick,
|
|
14
14
|
hideBackButton
|
|
15
|
-
}: ServerErrorProps) =>
|
|
15
|
+
}: ServerErrorProps) => react235.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ServerError };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react183 from "react";
|
|
2
|
+
import * as styled_components63 from "styled-components";
|
|
3
3
|
import { IStyledComponent } from "styled-components";
|
|
4
|
-
import * as
|
|
4
|
+
import * as styled_components_dist_types47 from "styled-components/dist/types";
|
|
5
5
|
|
|
6
6
|
//#region src/organisms/Template/Template.d.ts
|
|
7
7
|
interface ContentProps {
|
|
8
8
|
$open: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Content:
|
|
11
|
-
declare const GlobalStyles:
|
|
10
|
+
declare const Content: styled_components_dist_types47.IStyledComponentBase<"web", styled_components63.FastOmit<styled_components63.FastOmit<react183.DetailedHTMLProps<react183.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$open"> & ContentProps, never> & Partial<Pick<styled_components63.FastOmit<react183.DetailedHTMLProps<react183.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$open"> & ContentProps, never>>> & string;
|
|
11
|
+
declare const GlobalStyles: react183.NamedExoticComponent<styled_components63.ExecutionProps & object>;
|
|
12
12
|
type TemplateType = IStyledComponent<'web', any> & {
|
|
13
13
|
Container: IStyledComponent<'web', any>;
|
|
14
14
|
Content: typeof Content;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToggleGroup as ToggleGroup$1 } from "./ToggleGroup.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react222 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/ToggleGroup/ToggleGroup.d.ts
|
|
5
|
-
declare const ToggleGroup:
|
|
5
|
+
declare const ToggleGroup: react222.ForwardRefExoticComponent<ToggleGroup$1 & react222.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ToggleGroup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ToggleGroupOption as ToggleGroupOption$1 } from "./ToggleGroup.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react220 from "react";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/organisms/ToggleGroup/ToggleGroupOption.d.ts
|
|
6
6
|
type ToggleGroupOptionProps = ToggleGroupOption$1 & Omit<HTMLAttributes<HTMLButtonElement>, 'onToggle' | 'disabled'>;
|
|
7
|
-
declare const ToggleGroupOption:
|
|
7
|
+
declare const ToggleGroupOption: react220.ForwardRefExoticComponent<ToggleGroupOptionProps & react220.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ToggleGroupOption };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{shape as n}from"../../atoms/style/index.js";import{
|
|
1
|
+
import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{shape as n}from"../../atoms/style/index.js";import{forwardRef as r}from"react";import{Icon as i,Tooltip as a,Typography as o}from"@equinor/eds-core-react";import s from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=s.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: calc(${t.medium_small} / 2); // 6px in comfortable
|
|
@@ -55,4 +55,4 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
55
55
|
fill: ${e.interactive.disabled__text.rgba};
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,d=
|
|
58
|
+
`,d=r(({checked:e,onToggle:t,icon:n,disabled:r,...s},d)=>l(u,{ref:d,"aria-checked":e,onClick:()=>{t(!e)},disabled:r,...`tooltip`in s?{...s,tooltip:void 0,toolTipPlacement:void 0}:{...s},children:[n?`tooltip`in s&&s.tooltip?c(a,{title:s.tooltip,placement:s.tooltipPlacement,children:c(i,{data:n,size:24})}):c(i,{data:n,size:24}):null,`label`in s?c(o,{as:`span`,variant:`button`,group:`navigation`,children:s.label}):null]}));d.displayName=`ToggleGroupOption`;export{d as ToggleGroupOption};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Search as e}from"../../../../molecules/Search/Search.js";import{useActiveImpersonationUser as t}from"./hooks/useActiveImpersonationUser.js";import{CreateOrEditUser as n}from"./CreateOrEditUser/CreateOrEditUser.js";import{DeleteUser as r}from"./DeleteUser/DeleteUser.js";import{useGetAllImpersonationUsersForApp as i}from"./hooks/useGetAllImpersonationUsersForApp.js";import{Actions as a}from"./Actions.js";import{CreateNewUserButton as o}from"./CreateNewUserButton.js";import{Content as s,Header as c,NoUsersText as l}from"./ImpersonateMenu.styles.js";import{impersonateUserDtoToFullName as u}from"./Impersonate.utils.js";import{UserImpersonation as d}from"./UserImpersonation.js";import{useEffect as f,useState as
|
|
1
|
+
import{Search as e}from"../../../../molecules/Search/Search.js";import{useActiveImpersonationUser as t}from"./hooks/useActiveImpersonationUser.js";import{CreateOrEditUser as n}from"./CreateOrEditUser/CreateOrEditUser.js";import{DeleteUser as r}from"./DeleteUser/DeleteUser.js";import{useGetAllImpersonationUsersForApp as i}from"./hooks/useGetAllImpersonationUsersForApp.js";import{Actions as a}from"./Actions.js";import{CreateNewUserButton as o}from"./CreateNewUserButton.js";import{Content as s,Header as c,NoUsersText as l}from"./ImpersonateMenu.styles.js";import{impersonateUserDtoToFullName as u}from"./Impersonate.utils.js";import{UserImpersonation as d}from"./UserImpersonation.js";import{useEffect as f,useRef as p,useState as m}from"react";import{Menu as h,Typography as g}from"@equinor/eds-core-react";import{jsx as _,jsxs as v}from"react/jsx-runtime";const y=({open:y,onClose:b,anchorEl:x,onImpersonateChange:S})=>{let[C,w]=m(!1),[T,E]=m(void 0),[D,O]=m(void 0),[k,A]=m(``),[j,M]=m(``),N=p(null),{data:P}=i(),{data:F}=t(),I=P?.filter(e=>u(e).toLowerCase().includes(j.toLowerCase()));f(()=>{!y&&F&&k!==F.uniqueName?A(F.uniqueName):!y&&!F&&k!==``&&A(``)},[F,y,k]),f(()=>{y&&!C&&!D&&N.current?.focus()},[y,C,D]);let L=()=>{b()},R=()=>w(!0),z=()=>{w(!1),T&&E(void 0)},B=()=>{w(!1),T&&E(void 0),L()},V=e=>{E(P?.find(t=>t.uniqueName===e)),w(!0)},H=e=>{O(P?.find(t=>t.uniqueName===e))};return y?C?_(h,{open:!0,anchorEl:x,onClose:B,placement:`bottom-end`,style:{width:`400px`},children:_(n,{editingUser:T,onBack:z})}):D?_(h,{open:!0,anchorEl:x,onClose:B,placement:`bottom-end`,style:{width:`400px`},children:_(r,{user:D,onBack:()=>{O(void 0)}})}):v(h,{open:!0,anchorEl:x,onClose:L,placement:`bottom-end`,style:{width:`400px`},children:[v(c,{children:[_(g,{variant:`h6`,children:`Impersonate`}),_(g,{variant:`caption`,children:`Select a user to impersonate`}),_(e,{ref:N,placeholder:`Search users`,value:j,onChange:e=>{M(e.target.value)}})]}),_(s,{children:I&&I.length>0?I?.map(e=>_(d,{...e,selected:k===e.uniqueName,onClick:A,onEdit:V,onDelete:H},e.uniqueName)):_(l,{children:`No items found`})}),_(o,{onClick:R}),_(a,{selectedUniqueName:k,onCancel:b,onImpersonateChange:S})]}):null};export{y as ImpersonateMenu};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{colors as e}from"../../../../atoms/style/colors.js";import{
|
|
1
|
+
import{colors as e}from"../../../../atoms/style/colors.js";import{ListItem as t}from"../../../../molecules/ListItem/ListItem.js";import{useMappedRoles as n}from"./hooks/useMappedRoles.js";import{Container as r,RoleChip as i,RoleChipContainer as a}from"./UserImpersonation.styles.js";import{impersonateUserDtoToFullName as o}from"./Impersonate.utils.js";import{useRef as s,useState as c}from"react";import{Button as l,Icon as u,Menu as d,Tooltip as f,Typography as p}from"@equinor/eds-core-react";import m from"styled-components";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{account_circle as v,check as y,delete_to_trash as b,edit as x,more_horizontal as S}from"@equinor/eds-icons";const C=m(t)`
|
|
2
2
|
svg {
|
|
3
3
|
fill: ${e.interactive.danger__resting.rgba};
|
|
4
4
|
}
|
|
@@ -13,4 +13,4 @@ import{colors as e}from"../../../../atoms/style/colors.js";import{OptionalToolti
|
|
|
13
13
|
&:hover:not(:disabled) {
|
|
14
14
|
background: ${e.interactive.danger__highlight.rgba};
|
|
15
15
|
}
|
|
16
|
-
`,w=({firstName:m,lastName:w,uniqueName:T,roles:E,activeUsers:D,selected:O,onClick:k,onEdit:A,onDelete:j})=>{let[M,N]=
|
|
16
|
+
`,w=({firstName:m,lastName:w,uniqueName:T,roles:E,activeUsers:D,selected:O,onClick:k,onEdit:A,onDelete:j})=>{let[M,N]=c(!1),P=s(null),F=o({firstName:m,lastName:w}),I=n(E),L=()=>N(e=>!e),R=()=>N(!1);return _(h,{children:[_(r,{$selected:O,onClick:e=>{e.target!==P.current&&k(T)},"data-testid":`impersonation-user`,children:[g(u,{color:e.text.static_icons__tertiary.rgba,data:v}),g(f,{title:F,placement:`top`,children:g(p,{"data-testid":`name`,children:F})}),_(a,{$selected:O,children:[g(f,{title:I.at(0)?.label,placement:`top`,children:g(i,{"data-testid":`role`,children:I[0].label})}),I.length>1&&g(f,{title:I.slice(1).map(e=>e.label).join(`, `),children:g(i,{"data-testid":`additional-roles`,children:`+${I.length-1}`})})]}),O&&g(u,{data:y,color:e.interactive.primary__resting.rgba}),g(l,{variant:`ghost_icon`,ref:P,onClick:L,children:g(u,{data:S})})]}),M&&_(d,{open:!0,anchorEl:P.current,placement:`right-start`,onClose:R,children:[g(t,{label:`Edit user`,onClick:()=>{A(T),R()},leadingContent:x}),g(f,{title:D.length>0?`Cannot delete user with active sessions`:void 0,children:g(C,{label:`Delete user`,onClick:()=>{j(T),R()},disabled:D.length>0,leadingContent:b})})]})]})};export{w as UserImpersonation};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react218 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: react218.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react218.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 react216 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: react216.ForwardRefExoticComponent<FieldMenuProps & react216.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FieldMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as react242 from "react";
|
|
2
|
+
import * as styled_components76 from "styled-components";
|
|
3
|
+
import * as styled_components_dist_types53 from "styled-components/dist/types";
|
|
4
4
|
|
|
5
5
|
//#region src/organisms/TopBar/Guidelines/Colorbox.d.ts
|
|
6
6
|
interface ColorboxProps {
|
|
7
7
|
$color: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Colorbox:
|
|
9
|
+
declare const Colorbox: styled_components_dist_types53.IStyledComponentBase<"web", styled_components76.FastOmit<styled_components76.FastOmit<react242.DetailedHTMLProps<react242.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color"> & ColorboxProps, never> & Partial<Pick<styled_components76.FastOmit<react242.DetailedHTMLProps<react242.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color"> & ColorboxProps, never>>> & string;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Colorbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react241 from "react";
|
|
2
2
|
import { Dispatch, FC, ReactNode, SetStateAction } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Notifications/NotificationProvider.d.ts
|
|
@@ -6,7 +6,7 @@ interface NotificationContext {
|
|
|
6
6
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const NotificationContext:
|
|
9
|
+
declare const NotificationContext: react241.Context<NotificationContext | undefined>;
|
|
10
10
|
declare const useNotification: () => NotificationContext;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useNotification };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding-top: ${
|
|
4
|
+
gap: ${o.comfortable.medium};
|
|
5
|
+
padding-top: ${o.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,
|
|
7
|
+
`,c=({fromUser:e,branchName:r,onClick:o})=>i(t,{title:`Go to ${r}`,children:i(s,{onClick:o,children:i(t,{title:`Go to ${r}`,children:a(n,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested changes for branch `,r]})})})});export{c as RequestChangeOrca};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{Tooltip as t,Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{jsx as i,jsxs as a}from"react/jsx-runtime";const{spacings:o}=e,s=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding-top: ${
|
|
4
|
+
gap: ${o.comfortable.medium};
|
|
5
|
+
padding-top: ${o.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,
|
|
7
|
+
`,c=({fromUser:e,branchName:r,onClick:o})=>i(t,{title:`Go to ${r}`,children:i(s,{onClick:o,"data-testid":`requestReview`,children:i(t,{title:`Go to ${r}`,children:a(n,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested review for branch `,r]})})})});export{c as RequestReviewOrca};
|