@equinor/amplify-component-lib 12.0.5 → 12.0.7
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/useAmplifyKit.js +1 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/richtext.js +2 -2
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- 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/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.js +1 -1
- package/dist/molecules/IconCell/IconCell.utils.js +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/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/MenuBar/Table/Table.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextAlignment.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +3 -3
- package/dist/molecules/RichTextEditor/MenuBar/TextCode.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +14 -14
- package/dist/molecules/RichTextEditor/MenuBar/TextFormatting.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextHighlight.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextHistory.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/TextLists.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.types.js +1 -1
- 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/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +7 -7
- 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 +4 -4
- package/dist/molecules/TableHeader/TableHeader.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideSheet/SideSheet.d.ts +1 -0
- package/dist/organisms/SideSheet/SideSheet.js +1 -1
- package/dist/organisms/SideSheet/SideSheet.styles.js +9 -3
- package/dist/organisms/SideSheet/SideSheet.types.d.ts +4 -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/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingPermissions.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/TopBar/Account/Account.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/Notifications/FilterOptions.js +17 -17
- package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +6 -6
- 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/Feedback.const.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.types.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +5 -5
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +4 -4
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/Resources.js +3 -3
- package/dist/organisms/TopBar/Settings.js +4 -4
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +25 -25
- package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.js +1 -1
- package/dist/providers/SurveyProvider/SurveyProvider.js +1 -1
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/package.json +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/Notifications.types.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseChipProps, ClickableChipProps, DeletableChipProps } from "../Chip/Chip.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react62 from "react";
|
|
3
3
|
import "@equinor/eds-core-react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as styled_components15 from "styled-components";
|
|
5
|
+
import * as styled_components_dist_types6 from "styled-components/dist/types";
|
|
6
6
|
|
|
7
7
|
//#region src/molecules/Select/Select.styles.d.ts
|
|
8
8
|
|
|
@@ -11,15 +11,15 @@ interface ComboBoxChipProps {
|
|
|
11
11
|
$lightBackground?: boolean;
|
|
12
12
|
className: string;
|
|
13
13
|
}
|
|
14
|
-
declare const ComboBoxChip:
|
|
14
|
+
declare const ComboBoxChip: styled_components_dist_types6.IStyledComponentBase<"web", styled_components15.FastOmit<styled_components15.FastOmit<((Omit<react62.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
15
15
|
onClick?: undefined;
|
|
16
16
|
onDelete?: undefined;
|
|
17
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
17
|
+
}) | ClickableChipProps | DeletableChipProps)) & react62.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types6.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never> & Partial<Pick<styled_components15.FastOmit<((Omit<react62.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
18
18
|
onClick?: undefined;
|
|
19
19
|
onDelete?: undefined;
|
|
20
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
20
|
+
}) | ClickableChipProps | DeletableChipProps)) & react62.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types6.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never>>> & string & Omit<react62.ForwardRefExoticComponent<(Omit<react62.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
21
21
|
onClick?: undefined;
|
|
22
22
|
onDelete?: undefined;
|
|
23
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
23
|
+
}) | ClickableChipProps | DeletableChipProps)) & react62.RefAttributes<HTMLButtonElement | HTMLDivElement>>, keyof react62.Component<any, {}, any>>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ComboBoxChip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonSelectProps, GroupedSelectProps, ListSelectProps, SelectOptionRequired, SingleSelectCommon } from "../Select.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/Select/SingleSelect/SingleSelect.d.ts
|
|
5
5
|
type SingleSelectProps<T extends SelectOptionRequired> = CommonSelectProps<T> & SingleSelectCommon<T> & (ListSelectProps<T> | GroupedSelectProps<T>);
|
|
@@ -15,6 +15,6 @@ type SingleSelectProps<T extends SelectOptionRequired> = CommonSelectProps<T> &
|
|
|
15
15
|
* @param onSearchFilter - Custom filter function for search, default is "item.label.match(new RegExp(searchValue, 'i'))"
|
|
16
16
|
* @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>):
|
|
18
|
+
declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>): react_jsx_runtime4.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SingleSelect, SingleSelectProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react162 from "react";
|
|
2
2
|
import { CheckboxProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Checkbox/Checkbox.d.ts
|
|
@@ -7,6 +7,6 @@ interface CheckboxProps$1 extends CheckboxProps {
|
|
|
7
7
|
outlined?: boolean;
|
|
8
8
|
error?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Checkbox$1:
|
|
10
|
+
declare const Checkbox$1: react162.ForwardRefExoticComponent<CheckboxProps$1 & react162.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react164 from "react";
|
|
2
2
|
import { RadioProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Radio/Radio.d.ts
|
|
@@ -7,6 +7,6 @@ interface RadioProps$1 extends RadioProps {
|
|
|
7
7
|
outlined?: boolean;
|
|
8
8
|
error?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Radio$1:
|
|
10
|
+
declare const Radio$1: react164.ForwardRefExoticComponent<RadioProps$1 & react164.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Radio$1 as Radio, RadioProps$1 as RadioProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react166 from "react";
|
|
2
2
|
import { SwitchProps } from "@equinor/eds-core-react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/SelectionControls/Switch/Switch.d.ts
|
|
5
5
|
interface SwitchProps$1 extends SwitchProps {
|
|
6
6
|
outlined?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const Switch$1:
|
|
8
|
+
declare const Switch$1: react166.ForwardRefExoticComponent<SwitchProps$1 & react166.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as react58 from "react";
|
|
2
|
+
import * as styled_components12 from "styled-components";
|
|
3
|
+
import * as styled_components_dist_types5 from "styled-components/dist/types";
|
|
4
4
|
import * as styled_components_dist_models_Keyframes0 from "styled-components/dist/models/Keyframes";
|
|
5
5
|
|
|
6
6
|
//#region src/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts
|
|
@@ -8,6 +8,6 @@ declare const skeletonBaseloading: styled_components_dist_models_Keyframes0.defa
|
|
|
8
8
|
interface SkeletonBaseProps {
|
|
9
9
|
$offset?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const SkeletonBase:
|
|
11
|
+
declare const SkeletonBase: styled_components_dist_types5.IStyledComponentBase<"web", styled_components12.FastOmit<styled_components12.FastOmit<react58.DetailedHTMLProps<react58.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never> & Partial<Pick<styled_components12.FastOmit<react58.DetailedHTMLProps<react58.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never>>> & string;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Button as e}from"../Button/Button.js";import
|
|
1
|
+
import{Button as e}from"../Button/Button.js";import"../../atoms/enums/SpacingsMode.js";import{getActionIconColor as t,getLeadingIcon as n,getLeadingIconColor as r,getSortingIcon as i,getTextColor as a}from"./TableHeader.utils.js";import{ActionsWrapper as o,Container as s,Wrapper as c}from"./TableHeader.styles.js";import{Icon as l,Typography as u}from"@equinor/eds-core-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=({as:p=`th`,variant:m,onClick:h,sorting:g,leadingIcon:_,trailingAction:v,children:y})=>{let b=n({variant:m,leadingIcon:_});return d(c,{as:p,children:f(s,{$hasOnClick:!!h,$hasOnSort:!!g,$variant:m,onClick:e=>{h?h(e):g?.onSortClick?.(e)},children:[b&&d(l,{data:b,color:r({variant:m,onClick:h})}),d(u,{variant:`cell_header`,group:`table`,color:a({variant:m,onClick:h}),children:y}),(!!v||!!g)&&f(o,{children:[v&&d(e,{"data-spacings-mode":`compact`,variant:`ghost_icon`,onClick:v.onClick,children:d(l,{data:v.icon,color:t({variant:m})})}),g?.isSorting&&d(e,{className:`sort-button`,onClick:h?g.onSortClick:void 0,"data-spacings-mode":`compact`,variant:`ghost_icon`,children:d(l,{data:i(g.isSorting),color:t({variant:m})})})]})]})})};export{p as TableHeader};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
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>) => react_jsx_runtime0.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DataGrid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react11 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: react11.ForwardRefExoticComponent<{
|
|
11
11
|
actionMenu?: ReactNode;
|
|
12
12
|
expanded?: boolean;
|
|
13
|
-
} & ReleaseNote &
|
|
13
|
+
} & ReleaseNote & react11.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ReleaseNote$1 as ReleaseNote, ReleaseNoteProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react168 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: react168.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react168.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SideBar };
|
|
@@ -10,6 +10,7 @@ import { FC } from "react";
|
|
|
10
10
|
* @param title - Title to display in the header
|
|
11
11
|
* @param type - How the side sheet should be position, default is standard
|
|
12
12
|
* @param headerElements - Optional spot to put elements in the header, for example more action buttons
|
|
13
|
+
* @param width - Optional width override (number is treated as px)
|
|
13
14
|
* @param children - Content in the side sheet
|
|
14
15
|
*/
|
|
15
16
|
declare const SideSheet: FC<SideSheetProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Button as e}from"../../molecules/Button/Button.js";import{Header as t,ScrimWrapper as n,Sheet as r,Wrapper as i}from"./SideSheet.styles.js";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{close as l}from"@equinor/eds-icons";import{AnimatePresence as u}from"motion/react";const d=({open:e,onClose:t,title:r,type:i=`standard`,headerElements:a,children:
|
|
1
|
+
import{Button as e}from"../../molecules/Button/Button.js";import{Header as t,ScrimWrapper as n,Sheet as r,Wrapper as i}from"./SideSheet.styles.js";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{close as l}from"@equinor/eds-icons";import{AnimatePresence as u}from"motion/react";const d=({open:e,onClose:t,title:r,type:i=`standard`,headerElements:a,width:o,children:c,...l})=>`withScrim`in l&&l.withScrim?s(n,{"data-testid":`side-sheet-scrim`,onClick:e?t:void 0,$zIndex:l.zIndex,initial:{display:`none`,background:`rgba(111,111,111,0)`},animate:{background:e?`rgba(111,111,111,0.35)`:`rgba(111,111,111,0)`,display:e?`block`:`none`},children:s(f,{open:e,onClose:t,title:r,type:`modal`,headerElements:a,width:o,zIndex:l.zIndex,withScrim:!0,children:c})}):i===`modal`||i===`floating`?s(f,{open:e,onClose:t,title:r,type:i,headerElements:a,width:o,zIndex:`zIndex`in l?l.zIndex:void 0,children:c}):s(f,{open:e,onClose:t,title:r,type:i,headerElements:a,width:o,children:c});function f({open:n,onClose:d,title:f,type:p=`standard`,headerElements:m,width:h,children:g,..._}){return s(u,{children:n&&s(i,{"data-testid":`side-sheet-wrapper`,$type:p,$withShadow:!(`withScrim`in _&&_.withScrim),$zIndex:`zIndex`in _?_.zIndex:void 0,initial:{x:p===`standard`?void 0:`110%`,width:p===`standard`?0:void 0},animate:{x:p===`standard`?void 0:0,width:p===`standard`?`auto`:void 0},exit:{x:p===`standard`?void 0:`110%`,width:p===`standard`?0:void 0},transition:{bounce:.25},children:c(r,{$type:p,$width:h,children:[c(t,{children:[s(o,{variant:`h2`,children:f}),m&&s(`section`,{children:m}),s(e,{"aria-label":`close side sheet`,variant:`ghost_icon`,onClick:d,style:{gridColumn:3},children:s(a,{data:l})})]}),g]})})})}export{d as SideSheet};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
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}from"../../atoms/style/index.js";import{css as i,styled as a}from"styled-components";import{motion as o}from"motion/react";const s=a(o.div)`
|
|
2
2
|
overflow: hidden;
|
|
3
|
-
${({$type:e,$withShadow:a})=>e===`standard`?``:e===`floating`?i`
|
|
3
|
+
${({$type:e,$withShadow:a,$zIndex:o})=>e===`standard`?``:e===`floating`?i`
|
|
4
4
|
position: fixed;
|
|
5
5
|
top: calc(64px + ${t.medium});
|
|
6
6
|
right: ${t.medium};
|
|
7
7
|
box-shadow: ${n.sticky};
|
|
8
8
|
border-radius: ${r.corners.borderRadius};
|
|
9
|
+
${o!==void 0&&i`
|
|
10
|
+
z-index: ${o};
|
|
11
|
+
`}
|
|
9
12
|
`:i`
|
|
10
13
|
position: fixed;
|
|
11
14
|
top: 64px;
|
|
12
15
|
right: 0;
|
|
13
16
|
box-shadow: ${a?n.above_scrim:`none`};
|
|
17
|
+
${o!==void 0&&i`
|
|
18
|
+
z-index: ${o};
|
|
19
|
+
`}
|
|
14
20
|
`}
|
|
15
21
|
`,c=a.div`
|
|
16
22
|
display: flex;
|
|
17
23
|
flex-direction: column;
|
|
18
|
-
width: 500px;
|
|
24
|
+
width: ${({$width:e})=>e===void 0?`500px`:`${e}px`};
|
|
19
25
|
background: ${e.ui.background__default.rgba};
|
|
20
26
|
${({$type:t})=>{if(t===`standard`)return i`
|
|
21
27
|
background: none;
|
|
@@ -35,5 +41,5 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
35
41
|
width: 100%;
|
|
36
42
|
overflow: hidden;
|
|
37
43
|
height: calc(100vh - 64px);
|
|
38
|
-
z-index:
|
|
44
|
+
z-index: ${({$zIndex:e})=>e??1e4};
|
|
39
45
|
`;export{l as Header,u as ScrimWrapper,c as Sheet,s as Wrapper};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import { CSSProperties, ReactElement } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/SideSheet/SideSheet.types.d.ts
|
|
4
4
|
interface BaseSideSheetProps {
|
|
@@ -6,6 +6,7 @@ interface BaseSideSheetProps {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
title: string;
|
|
8
8
|
headerElements?: ReactElement | ReactElement[];
|
|
9
|
+
width?: number | undefined;
|
|
9
10
|
children: ReactElement | ReactElement[];
|
|
10
11
|
}
|
|
11
12
|
interface StandardSideSheetProps extends BaseSideSheetProps {
|
|
@@ -14,9 +15,11 @@ interface StandardSideSheetProps extends BaseSideSheetProps {
|
|
|
14
15
|
interface ModalSideSheetProps extends BaseSideSheetProps {
|
|
15
16
|
type: 'modal';
|
|
16
17
|
withScrim?: boolean;
|
|
18
|
+
zIndex?: CSSProperties['zIndex'];
|
|
17
19
|
}
|
|
18
20
|
interface FloatingSideSheetProps extends BaseSideSheetProps {
|
|
19
21
|
type: 'floating';
|
|
22
|
+
zIndex?: CSSProperties['zIndex'];
|
|
20
23
|
}
|
|
21
24
|
type SideSheetProps = StandardSideSheetProps | ModalSideSheetProps | FloatingSideSheetProps;
|
|
22
25
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react174 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: react174.ForwardRefExoticComponent<ActionProps & react174.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Action };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react180 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: react180.ForwardRefExoticComponent<DescriptionProps & react180.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Description };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react178 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: react178.ForwardRefExoticComponent<MissingAccessesProps & react178.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MissingAccesses };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react176 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: react176.ForwardRefExoticComponent<TitleProps & react176.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Title };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
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) => react_jsx_runtime10.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { GenericError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
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) => react_jsx_runtime9.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { MissingPermissions };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
2
|
+
import * as styled_components0 from "styled-components";
|
|
3
3
|
import { IStyledComponent } from "styled-components";
|
|
4
|
-
import * as
|
|
4
|
+
import * as styled_components_dist_types0 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_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<react6.DetailedHTMLProps<react6.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$open"> & ContentProps, never> & Partial<Pick<styled_components0.FastOmit<react6.DetailedHTMLProps<react6.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$open"> & ContentProps, never>>> & string;
|
|
11
|
+
declare const GlobalStyles: react6.NamedExoticComponent<styled_components0.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 react182 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/ToggleGroup/ToggleGroup.d.ts
|
|
5
|
-
declare const ToggleGroup:
|
|
5
|
+
declare const ToggleGroup: react182.ForwardRefExoticComponent<ToggleGroup$1 & react182.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 react184 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: react184.ForwardRefExoticComponent<ToggleGroupOptionProps & react184.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ToggleGroupOption };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../../../atoms/enums/Environment.js";import{environment as e}from"../../../atoms/utils/auth_environment.js";import{useAuth as t}from"../../../providers/AuthProvider/AuthProvider.js";import{useLocalStorage as n}from"../../../atoms/hooks/useLocalStorage.js";import{Button as r}from"../../../molecules/Button/Button.js";import{TopBarMenu as i}from"../TopBarMenu.js";import{useActiveImpersonationUser as a}from"./ImpersonateMenu/hooks/useActiveImpersonationUser.js";import{useCanImpersonate as o}from"./ImpersonateMenu/hooks/useCanImpersonate.js";import{useMappedRoles as s}from"./ImpersonateMenu/hooks/useMappedRoles.js";import{useStopImpersonation as c}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{ButtonWrapper as ee,Container as l,EnvironmentToggleWrapper as te,TextContent as u}from"./Account.styles.js";import{impersonateUserDtoToFullName as d}from"./ImpersonateMenu/Impersonate.utils.js";import{ImpersonateMenu as f}from"./ImpersonateMenu/ImpersonateMenu.js";import{AccountAvatar as ne}from"./AccountAvatar.js";import{AccountButton as p}from"./AccountButton.js";import{ActiveUserImpersonationButton as m}from"./ActiveUserImpersonationButton.js";import{ImpersonateButton as h}from"./ImpersonateButton.js";import{RoleList as g}from"./RoleList.js";import{EnvironmentToggle as re}from"./EnvironmentToggle.js";import{StatusChips as _}from"./StatusChips.js";import{useCallback as ie,useEffect as ae,useMemo as v,useRef as y,useState as b}from"react";import{Icon as x,Typography as S}from"@equinor/eds-core-react";import{Fragment as C,jsx as w,jsxs as T}from"react/jsx-runtime";import{log_out as E}from"@equinor/eds-icons";import{ENVIRONMENT_TOGGLE_KEY as D}from"@equinor/subsurface-app-management";const O=({renderCustomButton:O,hideRoles:k=!1,useDisplayNameForRole:A=!1,children:j,enableEnvironmentToggle:M=!1,onImpersonateChange:N})=>{let P=e.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME),F=e.getApiClientId(import.meta.env.VITE_API_CLIENT_ID),I=e.getAppName(import.meta.env.VITE_NAME),{account:L,roles:R,logout:z}=t(),[B,V]=b(!1),[H,U]=b(!1),[W,G]=n(D,[]),K=y(null),{data:q=!0}=o(),{data:J}=a(),{mutate:Y}=c(),X=s(J?J.roles:R??[],A),oe=J?d(J):L?.name,se=J?J.uniqueName:L?.username,Z=()=>V(!1),Q=ie(()=>{V(e=>!e),U(!1)},[]),$=()=>{U(!0),V(!1)};return ae(()=>{J&&J.appName!=null&&J.appName.toUpperCase()!=I.toUpperCase()&&Y()},[J,I,Y]),T(C,{children:[v(()=>O?O(K,Q):null,[O,Q])||w(p,{ref:K,onClick:Q,environmentToggle:W}),T(i,{open:B,title:`Account`,onClose:Z,anchorEl:K.current,children:[T(l,{children:[J&&w(m,{onClick:$}),w(ne,{environmentToggle:W}),T(u,{children:[w(S,{variant:`h6`,children:oe}),w(S,{children:se})]}),W.length>0&&w(_,{statuses:W}),X&&!k&&w(C,{children:X.length<=3?w(_,{statuses:X}):w(g,{roles:X})}),j,q&&P!==`production`&&F&&w(h,{onOpenImpersonateMenu:$,onClose:Z,onImpersonateChange:N})]}),M&&P!==`production`&&w(te,{children:w(re,{setEnvironmentToggle:G,environmentToggle:W})}),w(ee,{children:T(r,{variant:`ghost`,onClick:z,children:[w(x,{data:E}),`Log out`]})})]}),w(f,{open:H,onClose:()=>U(!1),anchorEl:K.current,onImpersonateChange:N})]})};O.displayName=`TopBar.Account`;export{O as Account};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react170 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: react170.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react170.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 react172 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: react172.ForwardRefExoticComponent<FieldMenuProps & react172.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FieldMenu };
|
|
@@ -1,28 +1,28 @@
|
|
|
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{useRef as t,useState as n}from"react";import{Icon as r,Menu as i,Typography as a}from"@equinor/eds-core-react";import o from"styled-components";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{checkbox as u,checkbox_outline as d,filter_list as f,sort as p}from"@equinor/eds-icons";const{spacings:m,colors:h,shape:g}=e,_=o(i.Item)`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,
|
|
3
|
+
`,v=o.div`
|
|
4
4
|
display: flex;
|
|
5
|
-
gap: ${
|
|
6
|
-
padding: ${
|
|
7
|
-
`,
|
|
8
|
-
padding: ${
|
|
9
|
-
`,
|
|
10
|
-
padding: ${
|
|
11
|
-
`,
|
|
5
|
+
gap: ${m.comfortable.small};
|
|
6
|
+
padding: ${m.comfortable.medium};
|
|
7
|
+
`,y=o(i)`
|
|
8
|
+
padding: ${m.comfortable.small} 0;
|
|
9
|
+
`,b=o.div`
|
|
10
|
+
padding: ${m.comfortable.small} ${m.comfortable.large};
|
|
11
|
+
`,x=o.span`
|
|
12
12
|
font-family: 'Equionor', sans-serif;
|
|
13
13
|
font-size: 12px;
|
|
14
|
-
border-radius: ${
|
|
15
|
-
border: ${({$active:e})=>e?`solid 1px ${
|
|
16
|
-
background-color: ${({$active:e})=>e?
|
|
14
|
+
border-radius: ${g.rounded.borderRadius};
|
|
15
|
+
border: ${({$active:e})=>e?`solid 1px ${h.interactive.primary__selected_hover.rgba}`:`solid 1px ${h.ui.background__medium.rgba}`};
|
|
16
|
+
background-color: ${({$active:e})=>e?h.interactive.primary__selected_highlight.rgba:h.ui.background__default.rgba};
|
|
17
17
|
color: black;
|
|
18
|
-
padding: ${
|
|
18
|
+
padding: ${m.comfortable.x_small} ${m.comfortable.small};
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: row;
|
|
21
21
|
align-items: center;
|
|
22
|
-
grid-gap: ${
|
|
22
|
+
grid-gap: ${m.comfortable.small};
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
&:hover {
|
|
25
|
-
background: ${
|
|
25
|
+
background: ${h.interactive.primary__selected_highlight.rgba};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
> p {
|
|
@@ -31,6 +31,6 @@ import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/
|
|
|
31
31
|
font-size: 12px;
|
|
32
32
|
}
|
|
33
33
|
> svg {
|
|
34
|
-
color: ${({$active:e})=>e?
|
|
34
|
+
color: ${({$active:e})=>e?h.text.static_icons__default.rgba:h.interactive.primary__resting.rgba};
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`,S=({onFilter:e,onSort:i,sortMenuRef:o,filterMenuRef:m})=>{let[h,g]=n(!1),[S,C]=n(!1),w=t(null),T=t(null),[E,D]=n({unread:!1,oldtonew:!1,newtoold:!1}),[O,k]=n({systemUser:!1,user:!1,unread:!1}),A=()=>{g(!0),C(!1)},j=()=>{g(!1)},M=()=>{C(!0),g(!1)},N=()=>{C(!1)},P=t=>{e(O[t]?[]:[t]),k(e=>({...e,[t]:!e[t]}))},F=e=>{i(E[e]?[]:[e]),D(t=>({...t,[e]:!t[e]}))};return l(s,{children:[l(v,{children:[l(x,{onClick:()=>h?j():A(),ref:w,$active:h,children:[c(a,{group:`ui`,variant:`chip__badge`,children:`Filter by`}),c(r,{data:f,size:16})]}),l(x,{onClick:()=>S?N():M(),ref:T,$active:S,children:[c(a,{group:`ui`,variant:`chip__badge`,children:`Sort by`}),c(r,{data:p,size:16})]})]}),h&&l(y,{open:h,anchorEl:w.current,placement:`bottom-start`,ref:m,onClose:j,children:[c(b,{children:c(a,{group:`navigation`,variant:`label`,children:`Filter notifications`})}),l(_,{onClick:()=>P(`user`),closeMenuOnClick:!1,children:[c(r,{data:O.user?u:d}),c(a,{children:` User messages `})]}),l(_,{onClick:()=>P(`systemUser`),closeMenuOnClick:!1,children:[c(r,{data:O.systemUser?u:d}),c(a,{children:` System messages `})]}),l(_,{onClick:()=>P(`unread`),closeMenuOnClick:!1,children:[c(r,{data:O.unread?u:d}),c(a,{children:` Unread `})]})]}),S&&l(y,{open:S,anchorEl:T.current,placement:`bottom-start`,ref:o,onClose:N,children:[c(b,{children:c(a,{group:`navigation`,variant:`label`,children:`Sort notifications`})}),l(_,{onClick:()=>F(`newtoold`),closeMenuOnClick:!1,children:[c(r,{data:E.newtoold?u:d}),c(a,{children:` Newest to oldest `})]}),l(_,{onClick:()=>F(`oldtonew`),closeMenuOnClick:!1,children:[c(r,{data:E.oldtonew?u:d}),c(a,{children:` Oldest to newest `})]}),l(_,{onClick:()=>F(`unread`),closeMenuOnClick:!1,children:[c(r,{data:E.unread?u:d}),c(a,{children:` Unread`})]})]})]})};export{S as FilterOptions};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{useNotification as e}from"./NotificationProvider.js";import{TopBarMenu as t}from"../TopBarMenu.js";import{TopBarButton as n,UnreadRedDot as r}from"../TopBar.styles.js";import{NoNotifications as i}from"./NotificationsTemplate/NotificationElements/NoNotifications.js";import{
|
|
1
|
+
import{useNotification as e}from"./NotificationProvider.js";import{TopBarMenu as t}from"../TopBarMenu.js";import{TopBarButton as n,UnreadRedDot as r}from"../TopBar.styles.js";import{NoNotifications as i}from"./NotificationsTemplate/NotificationElements/NoNotifications.js";import{NotificationTemplate as a}from"./NotificationsTemplate/NotificationTemplate.js";import{FilterOptions as o}from"./FilterOptions.js";import{useMemo as s,useRef as c,useState as l}from"react";import{Icon as u}from"@equinor/eds-core-react";import d from"styled-components";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{notifications as h}from"@equinor/eds-icons";const g=d.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,
|
|
3
|
+
`,_=d.div`
|
|
4
4
|
overflow: auto;
|
|
5
5
|
height: fit-content;
|
|
6
6
|
max-height: 66vh;
|
|
7
7
|
width: 350px;
|
|
8
|
-
`,
|
|
8
|
+
`,v=({children:d,hasUnread:v=!1,setAllAsRead:y,showFilterOptions:b=!1,notifications:x})=>{let S=c(null),C=c(null),w=c(null),{isOpen:T,setIsOpen:E}=e(),[D,O]=l([]),[k,A]=l([]),j=s(()=>{if(!x)return[];let e=[...x];return D.length>0&&(e=e.filter(e=>{if(D.includes(`unread`))return!e.Read;if(D.includes(`user`))return e.user;if(D.includes(`systemUser`))return!e.user})),k.length>0&&(e=e.sort((e,t)=>{let n=new Date(e.time).getTime(),r=new Date(t.time).getTime();return k.includes(`oldtonew`)?r-n:k.includes(`unread`)?e.Read===t.Read?0:e.Read?1:-1:n-r})),e},[D,x,k]),M=()=>{T?N():E(!0)},N=()=>{y(),E(!1)};return m(f,{children:[m(n,{variant:`ghost_icon`,ref:S,onClick:M,"data-testid":`show-hide-button`,children:[p(u,{data:h,size:24}),v&&p(r,{"data-testid":`unread-dot`})]},`topbar-notifications`),m(t,{open:T,anchorEl:S.current,contentPadding:!1,isNotification:!0,onClose:N,children:[b&&p(g,{children:p(o,{onFilter:O,onSort:A,sortMenuRef:w,filterMenuRef:C})}),d?p(_,{children:d instanceof Function?d({onClose:N}):d}):p(_,{children:j&&j?.length>0?j.map(e=>p(a,{...e},e.SequenceNumber)):p(i,{})})]})]})};v.displayName=`TopBar.NotificationsInner`;export{v as NotificationsInner};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{spacings as e}from"../../../../../atoms/style/spacings.js";import{
|
|
1
|
+
import{spacings as e}from"../../../../../atoms/style/spacings.js";import{Typography as t}from"@equinor/eds-core-react";import n from"styled-components";import{jsx as r}from"react/jsx-runtime";const i=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e.medium};
|
|
5
5
|
padding-top: ${e.medium_small};
|
|
6
|
-
`,
|
|
6
|
+
`,a=({message:e})=>r(i,{"data-testid":`default`,children:r(t,{group:`table`,variant:`cell_text`,children:e})});export{a as DefaultNotification};
|
|
@@ -1,14 +1,14 @@
|
|
|
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{Chip as t,Tooltip as n,Typography as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a,jsxs as o}from"react/jsx-runtime";const{spacings:s}=e,c=i.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: 1fr 1fr;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding-top: ${
|
|
6
|
-
`,
|
|
4
|
+
gap: ${s.comfortable.medium};
|
|
5
|
+
padding-top: ${s.comfortable.medium_small};
|
|
6
|
+
`,l=i.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
`,
|
|
9
|
+
`,u=i.div`
|
|
10
10
|
grid-column: span 3;
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: 5px;
|
|
13
13
|
align-items: center;
|
|
14
|
-
`,
|
|
14
|
+
`,d=({field:e,wellbore:i,dataType:s,onClick:d})=>a(n,{title:`Go to ${s}`,children:o(c,{onClick:d,"data-testid":`readytoreport`,children:[o(l,{children:[a(r,{group:`paragraph`,variant:`overline`,children:`Field`}),a(r,{group:`table`,variant:`cell_text`,children:e})]}),o(l,{children:[a(r,{group:`paragraph`,variant:`overline`,children:`WELLBORE`}),a(r,{group:`table`,variant:`cell_text`,children:i})]}),o(u,{children:[o(t,{children:[` `,s,` `]}),a(r,{group:`navigation`,variant:`label`,children:`is ready to report`})]})]})});export{d as ReadyToReportNotification};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{OptionalTooltip as t}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{OptionalTooltip as t}from"../../../../../molecules/OptionalTooltip/OptionalTooltip.js";import{Tooltip as n,Typography as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a,jsxs as o}from"react/jsx-runtime";const{spacings:s}=e,c=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding-top: ${
|
|
4
|
+
gap: ${s.comfortable.medium};
|
|
5
|
+
padding-top: ${s.comfortable.medium_small};
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,
|
|
7
|
+
`,l=({fromUser:e,branchName:i,onClick:s})=>a(n,{title:`Go to ${i}`,children:a(c,{onClick:s,"data-testid":`requestReview`,children:a(t,{title:`Go to ${i}`,children:o(r,{group:`table`,variant:`cell_text`,children:[e.displayName,` has requested review for branch `,i]})})})});export{l as RequestReviewOrca};
|