@equinor/amplify-component-lib 10.4.0 → 10.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  2. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  3. package/dist/atoms/hooks/useSelect.js +1 -1
  4. package/dist/atoms/style/darkTokens.js +37 -36
  5. package/dist/atoms/style/lightTokens.js +31 -3
  6. package/dist/index.d.ts +5 -3
  7. package/dist/index.js +1 -1
  8. package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
  9. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  10. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  11. package/dist/molecules/ApplicationIcon/Icons/JsCalendar.js +1 -0
  12. package/dist/molecules/Banner/Banner.d.ts +1 -0
  13. package/dist/molecules/Banner/Banner.js +1 -1
  14. package/dist/molecules/Banner/Banner.styles.js +9 -6
  15. package/dist/molecules/Banner/Banner.utils.js +1 -1
  16. package/dist/molecules/Chip/Chip.d.ts +2 -2
  17. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  18. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  19. package/dist/molecules/Dialog/Dialog.d.ts +2 -2
  20. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  21. package/dist/molecules/InformationalNotice/InformationalNotice.d.ts +11 -0
  22. package/dist/molecules/InformationalNotice/InformationalNotice.js +1 -0
  23. package/dist/molecules/InformationalNotice/InformationalNotice.styles.js +9 -0
  24. package/dist/molecules/InformationalNotice/InformationalNotice.utils.js +1 -0
  25. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  26. package/dist/molecules/ListItem/ListItem.js +1 -1
  27. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  28. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  29. package/dist/molecules/RichTextEditor/index.d.ts +5 -5
  30. package/dist/molecules/Select/AddTagItem.js +1 -1
  31. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +3 -4
  32. package/dist/molecules/Select/DynamicMenuItem.js +1 -0
  33. package/dist/molecules/Select/GroupedSelectMenu.js +1 -1
  34. package/dist/molecules/Select/GroupedSelectPersistent.js +1 -0
  35. package/dist/molecules/Select/ListSelectMenu.js +1 -1
  36. package/dist/molecules/Select/ListSelectPersistent.js +1 -0
  37. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +23 -0
  38. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.js +1 -0
  39. package/dist/molecules/Select/SearchBar.js +1 -0
  40. package/dist/molecules/Select/Select.d.ts +2 -2
  41. package/dist/molecules/Select/Select.hooks.js +1 -0
  42. package/dist/molecules/Select/Select.js +1 -1
  43. package/dist/molecules/Select/Select.styles.js +61 -24
  44. package/dist/molecules/Select/Select.types.d.ts +10 -1
  45. package/dist/molecules/Select/SelectMenuItem.js +1 -1
  46. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +4 -5
  47. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  48. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  49. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  50. package/dist/molecules/TableHeader/TableHeader.styles.js +1 -0
  51. package/dist/molecules/index.d.ts +4 -2
  52. package/dist/molecules/index.js +1 -1
  53. package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
  54. package/dist/organisms/Filter/Filter.d.ts +2 -2
  55. package/dist/organisms/Filter/SortMenu.d.ts +2 -2
  56. package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
  57. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  58. package/dist/organisms/Status/Action.d.ts +2 -2
  59. package/dist/organisms/Status/Description.d.ts +2 -2
  60. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  61. package/dist/organisms/Status/Title.d.ts +2 -2
  62. package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
  63. package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
  64. package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
  65. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  66. package/dist/organisms/Template/Template.d.ts +5 -5
  67. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  68. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  69. package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
  70. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  71. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  72. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +3 -3
  73. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  74. package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
  75. package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +2 -4
  76. package/package.json +1 -1
@@ -19,6 +19,7 @@ import { FullPageSpinner, FullPageSpinnerProps } from "./FullPageSpinner/FullPag
19
19
  import { IconCellColor, IconCellColorObject, IconCellColors, IconCellState, IconCellStates, IconCellVariant, IconCellVariants } from "./IconCell/IconCell.types.js";
20
20
  import { IconCell, IconCellProps } from "./IconCell/IconCell.js";
21
21
  import { InfoElement, InfoElementProps } from "./InfoElement/InfoElement.js";
22
+ import { InformationalNotice, InformationalNoticeProps } from "./InformationalNotice/InformationalNotice.js";
22
23
  import { OptionalTooltip, OptionalTooltipProps } from "./OptionalTooltip/OptionalTooltip.js";
23
24
  import { ProfileAvatar, ProfileAvatarProps } from "./ProfileAvatar/ProfileAvatar.js";
24
25
  import { RichTextDisplay, RichTextDisplayProps } from "./RichTextDisplay/RichTextDisplay.js";
@@ -34,9 +35,10 @@ import { SkeletonGradient, SkeletonGradientProps } from "./Skeleton/SkeletonGrad
34
35
  import { Stepper, StepperProps } from "./Stepper/Stepper.js";
35
36
  import { OptionDrawer, OptionDrawerProps } from "./OptionDrawer/OptionDrawer.js";
36
37
  import { OptionDrawerSelectItem } from "./OptionDrawer/OptionDrawer.types.js";
37
- import { ComboBox, GroupedComboBoxProps, ListComboBoxProps } from "./Select/ComboBox/ComboBox.js";
38
+ import { ComboBox, ComboBoxProps } from "./Select/ComboBox/ComboBox.js";
39
+ import { PersistentComboBox, PersistentComboBoxProps } from "./Select/PersistentComboBox/PersistentComboBox.js";
38
40
  import { ComboBoxChip } from "./Select/Select.styles.js";
39
- import { GroupedSingleSelectProps, ListSingleSelectProps, SingleSelect } from "./Select/SingleSelect/SingleSelect.js";
41
+ import { SingleSelect, SingleSelectProps } from "./Select/SingleSelect/SingleSelect.js";
40
42
  import { TableHeader, TableHeaderProps } from "./TableHeader/TableHeader.js";
41
43
  import { TextField as TextField$1, TextFieldProps as TextFieldProps$1 } from "./TextField/TextField.js";
42
44
  import { FeedBackIcon, FeedBackIconProps } from "./FeedBackIcon/FeedBackIcon.js";
@@ -1 +1 @@
1
- import{FullPageSpinner as e}from"./FullPageSpinner/FullPageSpinner.js";import{DEFAULT_FEATURES as t,RichTextEditorFeatures as n}from"./RichTextEditor/RichTextEditor.types.js";import{AmplifyKit as r}from"./RichTextEditor/custom-extensions/AmplifyKit.js";import{Button as i}from"./Button/Button.js";import{Toast as a}from"./Toast/Toast.js";import{AnimatedCheckmark as o}from"./AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ee}from"./ApplicationIcon/ApplicationIcon.js";import{Badge as te}from"./Badge/Badge.js";import{Banner as ne}from"./Banner/Banner.js";import{Chip as re}from"./Chip/Chip.js";import{SkeletonBase as ie,skeletonBaseloading as s}from"./Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as c}from"./DatePicker/DatePicker.js";import{DateRangePicker as l}from"./DateRangePicker/DateRangePicker.js";import{OptionalTooltip as u}from"./OptionalTooltip/OptionalTooltip.js";import{Dialog as d}from"./Dialog/Dialog.js";import{EquinorLogo as f}from"./EquinorLogo/EquinorLogo.js";import{FileProgress as p}from"./FileProgress/FileProgress.js";import{FileUploadArea as m}from"./FileUploadArea/FileUploadArea.js";import{IconCellColors as h,IconCellStates as g,IconCellVariants as _}from"./IconCell/IconCell.types.js";import{IconCell as v}from"./IconCell/IconCell.js";import{InfoElement as y}from"./InfoElement/InfoElement.js";import{ProfileAvatar as b}from"./ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as x}from"./RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as S,TextTable as C}from"./RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as w}from"./TextField/TextField.js";import{AmplifyBar as T,EditorMenu as E,EditorText as D}from"./RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as O}from"./RichTextEditor/RichTextEditor.js";import{RichText as k}from"./RichTextEditor/index.js";import{Tabs as ae}from"./Tabs/Tabs.js";import{Search as A}from"./Search/Search.js";import{SkeletonGradient as j}from"./Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as M}from"./Stepper/Stepper.js";import{OptionDrawer as N}from"./OptionDrawer/OptionDrawer.js";import{ComboBoxChip as P}from"./Select/Select.styles.js";import{ComboBox as F}from"./Select/ComboBox/ComboBox.js";import{SingleSelect as I}from"./Select/SingleSelect/SingleSelect.js";import{TableHeader as L}from"./TableHeader/TableHeader.js";import{FeedBackIcon as R}from"./FeedBackIcon/FeedBackIcon.js";import{ListItem as z}from"./ListItem/ListItem.js";import{Checkbox as B}from"./SelectionControls/Checkbox/Checkbox.js";import{Radio as V}from"./SelectionControls/Radio/Radio.js";import{Switch as H}from"./SelectionControls/Switch/Switch.js";import{Waves as U}from"./Waves/Waves.js";import{Accordion as W,Breadcrumbs as G,CircularProgress as K,Dialog as q,Divider as J,DotProgress as Y,Icon as X,LinearProgress as Z,Menu as Q,Typography as $}from"@equinor/eds-core-react";export{W as Accordion,G as Breadcrumbs,K as CircularProgress,J as Divider,Y as DotProgress,q as EDSDialog,X as Icon,Z as LinearProgress,Q as Menu,$ as Typography};
1
+ import{FullPageSpinner as e}from"./FullPageSpinner/FullPageSpinner.js";import{DEFAULT_FEATURES as t,RichTextEditorFeatures as n}from"./RichTextEditor/RichTextEditor.types.js";import{AmplifyKit as r}from"./RichTextEditor/custom-extensions/AmplifyKit.js";import{Button as i}from"./Button/Button.js";import{Toast as ee}from"./Toast/Toast.js";import{AnimatedCheckmark as te}from"./AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ne}from"./ApplicationIcon/ApplicationIcon.js";import{Badge as re}from"./Badge/Badge.js";import{Banner as ie}from"./Banner/Banner.js";import{Chip as ae}from"./Chip/Chip.js";import{SkeletonBase as oe,skeletonBaseloading as a}from"./Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as o}from"./DatePicker/DatePicker.js";import{DateRangePicker as s}from"./DateRangePicker/DateRangePicker.js";import{OptionalTooltip as c}from"./OptionalTooltip/OptionalTooltip.js";import{Dialog as l}from"./Dialog/Dialog.js";import{EquinorLogo as u}from"./EquinorLogo/EquinorLogo.js";import{FileProgress as d}from"./FileProgress/FileProgress.js";import{FileUploadArea as f}from"./FileUploadArea/FileUploadArea.js";import{IconCellColors as p,IconCellStates as m,IconCellVariants as h}from"./IconCell/IconCell.types.js";import{IconCell as g}from"./IconCell/IconCell.js";import{InfoElement as _}from"./InfoElement/InfoElement.js";import{InformationalNotice as v}from"./InformationalNotice/InformationalNotice.js";import{ProfileAvatar as y}from"./ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as b}from"./RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as x,TextTable as S}from"./RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as C}from"./TextField/TextField.js";import{AmplifyBar as w,EditorMenu as T,EditorText as E}from"./RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as D}from"./RichTextEditor/RichTextEditor.js";import{RichText as se}from"./RichTextEditor/index.js";import{Tabs as O}from"./Tabs/Tabs.js";import{Search as k}from"./Search/Search.js";import{SkeletonGradient as A}from"./Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as j}from"./Stepper/Stepper.js";import{OptionDrawer as M}from"./OptionDrawer/OptionDrawer.js";import{ComboBoxChip as N}from"./Select/Select.styles.js";import{ComboBox as P}from"./Select/ComboBox/ComboBox.js";import{PersistentComboBox as F}from"./Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as I}from"./Select/SingleSelect/SingleSelect.js";import{TableHeader as L}from"./TableHeader/TableHeader.js";import{FeedBackIcon as R}from"./FeedBackIcon/FeedBackIcon.js";import{ListItem as z}from"./ListItem/ListItem.js";import{Checkbox as B}from"./SelectionControls/Checkbox/Checkbox.js";import{Radio as V}from"./SelectionControls/Radio/Radio.js";import{Switch as H}from"./SelectionControls/Switch/Switch.js";import{Waves as U}from"./Waves/Waves.js";import{Accordion as W,Breadcrumbs as G,CircularProgress as K,Dialog as q,Divider as J,DotProgress as Y,Icon as X,LinearProgress as Z,Menu as Q,Typography as $}from"@equinor/eds-core-react";export{W as Accordion,G as Breadcrumbs,K as CircularProgress,J as Divider,Y as DotProgress,q as EDSDialog,X as Icon,Z as LinearProgress,Q as Menu,$ as Typography};
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 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>) => react_jsx_runtime3.JSX.Element;
5
+ declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react_jsx_runtime4.JSX.Element;
6
6
  //#endregion
7
7
  export { DataGrid };
@@ -1,5 +1,5 @@
1
1
  import { FilterProps } from "./Filter.types.js";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
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>): react_jsx_runtime5.JSX.Element;
35
+ }: FilterProps<T>): react_jsx_runtime7.JSX.Element;
36
36
  //#endregion
37
37
  export { Filter };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
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>): react_jsx_runtime4.JSX.Element;
16
+ }: SortMenuProps<S>): react_jsx_runtime5.JSX.Element;
17
17
  //#endregion
18
18
  export { SortMenu };
@@ -1,4 +1,4 @@
1
- import * as react98 from "react";
1
+ import * as react111 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: react98.ForwardRefExoticComponent<{
10
+ declare const ReleaseNote$1: react111.ForwardRefExoticComponent<{
11
11
  actionMenu?: ReactNode;
12
12
  expanded?: boolean;
13
- } & ReleaseNote & react98.RefAttributes<HTMLDivElement>>;
13
+ } & ReleaseNote & react111.RefAttributes<HTMLDivElement>>;
14
14
  //#endregion
15
15
  export { ReleaseNote$1 as ReleaseNote, ReleaseNoteProps };
@@ -1,4 +1,4 @@
1
- import * as react117 from "react";
1
+ import * as react127 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: react117.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react117.RefAttributes<HTMLDivElement>>;
19
+ declare const SideBar: react127.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react127.RefAttributes<HTMLDivElement>>;
20
20
  //#endregion
21
21
  export { SideBar };
@@ -1,10 +1,10 @@
1
- import * as react127 from "react";
1
+ import * as react139 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: react127.ForwardRefExoticComponent<ActionProps & react127.RefAttributes<HTMLButtonElement>>;
8
+ declare const Action: react139.ForwardRefExoticComponent<ActionProps & react139.RefAttributes<HTMLButtonElement>>;
9
9
  //#endregion
10
10
  export { Action };
@@ -1,9 +1,9 @@
1
- import * as react123 from "react";
1
+ import * as react137 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: react123.ForwardRefExoticComponent<DescriptionProps & react123.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Description: react137.ForwardRefExoticComponent<DescriptionProps & react137.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Description };
@@ -1,4 +1,4 @@
1
- import * as react129 from "react";
1
+ import * as react135 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: react129.ForwardRefExoticComponent<MissingAccessesProps & react129.RefAttributes<HTMLDivElement>>;
12
+ declare const MissingAccesses: react135.ForwardRefExoticComponent<MissingAccessesProps & react135.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { MissingAccesses };
@@ -1,9 +1,9 @@
1
- import * as react125 from "react";
1
+ import * as react133 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: react125.ForwardRefExoticComponent<TitleProps & react125.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Title: react133.ForwardRefExoticComponent<TitleProps & react133.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Title };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 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) => react_jsx_runtime10.JSX.Element;
17
+ }: GenericErrorProps) => react_jsx_runtime9.JSX.Element;
18
18
  //#endregion
19
19
  export { GenericError };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 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) => react_jsx_runtime7.JSX.Element;
17
+ }: MissingPermissionsProps) => react_jsx_runtime10.JSX.Element;
18
18
  //#endregion
19
19
  export { MissingPermissions };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
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) => react_jsx_runtime9.JSX.Element;
15
+ }: PageNotFoundProps) => react_jsx_runtime11.JSX.Element;
16
16
  //#endregion
17
17
  export { PageNotFound };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
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) => react_jsx_runtime11.JSX.Element;
15
+ }: ServerErrorProps) => react_jsx_runtime12.JSX.Element;
16
16
  //#endregion
17
17
  export { ServerError };
@@ -1,14 +1,14 @@
1
- import * as react100 from "react";
2
- import * as styled_components11 from "styled-components";
1
+ import * as react108 from "react";
2
+ import * as styled_components12 from "styled-components";
3
3
  import { IStyledComponent } from "styled-components";
4
- import * as styled_components_dist_types39 from "styled-components/dist/types";
4
+ import * as styled_components_dist_types50 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: styled_components_dist_types39.IStyledComponentBase<"web", styled_components_dist_types39.Substitute<react100.DetailedHTMLProps<react100.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps>> & string;
11
- declare const GlobalStyles: react100.NamedExoticComponent<styled_components11.ExecutionProps & object>;
10
+ declare const Content: styled_components_dist_types50.IStyledComponentBase<"web", styled_components_dist_types50.Substitute<react108.DetailedHTMLProps<react108.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps>> & string;
11
+ declare const GlobalStyles: react108.NamedExoticComponent<styled_components12.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 } from "./ToggleGroup.types.js";
2
- import * as react133 from "react";
2
+ import * as react143 from "react";
3
3
 
4
4
  //#region src/organisms/ToggleGroup/ToggleGroup.d.ts
5
- declare const ToggleGroup$1: react133.ForwardRefExoticComponent<ToggleGroup & react133.RefAttributes<HTMLDivElement>>;
5
+ declare const ToggleGroup$1: react143.ForwardRefExoticComponent<ToggleGroup & react143.RefAttributes<HTMLDivElement>>;
6
6
  //#endregion
7
7
  export { ToggleGroup$1 as ToggleGroup };
@@ -1,9 +1,9 @@
1
1
  import { ToggleGroupOption } from "./ToggleGroup.types.js";
2
- import * as react131 from "react";
2
+ import * as react141 from "react";
3
3
  import { HTMLAttributes } from "react";
4
4
 
5
5
  //#region src/organisms/ToggleGroup/ToggleGroupOption.d.ts
6
6
  type ToggleGroupOptionProps = ToggleGroupOption & Omit<HTMLAttributes<HTMLButtonElement>, 'onToggle' | 'disabled'>;
7
- declare const ToggleGroupOption$1: react131.ForwardRefExoticComponent<ToggleGroupOptionProps & react131.RefAttributes<HTMLButtonElement>>;
7
+ declare const ToggleGroupOption$1: react141.ForwardRefExoticComponent<ToggleGroupOptionProps & react141.RefAttributes<HTMLButtonElement>>;
8
8
  //#endregion
9
9
  export { ToggleGroupOption$1 as ToggleGroupOption };
@@ -1 +1 @@
1
- import{environment as e}from"../../../../../atoms/utils/auth_environment.js";import{ACTIVE_USERIMPERSONATION as t}from"../Impersonate.constants.js";import{ApiError as n,ImpersonateUserService as r}from"@equinor/subsurface-app-management";import{useQuery as i}from"@tanstack/react-query";function a(){return i({queryKey:[t],queryFn:async()=>{try{let e=await r.getActiveUser();return e===void 0?null:e}catch(e){if(e instanceof n&&(e.status===204||e.status===404))return null}},enabled:e.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME)!==`production`})}export{a as useActiveImpersonationUser};
1
+ import{environment as e}from"../../../../../atoms/utils/auth_environment.js";import{ACTIVE_USERIMPERSONATION as t}from"../Impersonate.constants.js";import{ApiError as n,ImpersonateUserService as r}from"@equinor/subsurface-app-management";import{useQuery as i}from"@tanstack/react-query";function a(){return i({queryKey:[t],queryFn:async()=>{try{return await r.getActiveUser()??null}catch(e){if(e instanceof n&&(e.status===204||e.status===404))return null;throw e}},enabled:e.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME)!==`production`})}export{a as useActiveImpersonationUser};
@@ -1,7 +1,7 @@
1
- import * as react121 from "react";
1
+ import * as react131 from "react";
2
2
  import { HTMLAttributes } from "react";
3
3
 
4
4
  //#region src/organisms/TopBar/Actions.d.ts
5
- declare const Actions: react121.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react121.RefAttributes<HTMLDivElement>>;
5
+ declare const Actions: react131.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react131.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 react119 from "react";
2
+ import * as react129 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: react119.ForwardRefExoticComponent<FieldMenuProps & react119.RefAttributes<HTMLDivElement>>;
11
+ declare const FieldMenu: react129.ForwardRefExoticComponent<FieldMenuProps & react129.RefAttributes<HTMLDivElement>>;
12
12
  //#endregion
13
13
  export { FieldMenu };
@@ -1,10 +1,10 @@
1
- import * as react140 from "react";
2
- import * as styled_components_dist_types48 from "styled-components/dist/types";
1
+ import * as react150 from "react";
2
+ import * as styled_components_dist_types59 from "styled-components/dist/types";
3
3
 
4
4
  //#region src/organisms/TopBar/Guidelines/Colorbox.d.ts
5
5
  interface ColorboxProps {
6
6
  $color: string;
7
7
  }
8
- declare const Colorbox: styled_components_dist_types48.IStyledComponentBase<"web", styled_components_dist_types48.Substitute<react140.DetailedHTMLProps<react140.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColorboxProps>> & string;
8
+ declare const Colorbox: styled_components_dist_types59.IStyledComponentBase<"web", styled_components_dist_types59.Substitute<react150.DetailedHTMLProps<react150.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColorboxProps>> & string;
9
9
  //#endregion
10
10
  export { Colorbox };
@@ -1,4 +1,4 @@
1
- import * as react139 from "react";
1
+ import * as react149 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: react139.Context<NotificationContext | undefined>;
9
+ declare const NotificationContext: react149.Context<NotificationContext | undefined>;
10
10
  declare const useNotification: () => NotificationContext;
11
11
  //#endregion
12
12
  export { useNotification };
@@ -1 +1 @@
1
- import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{TutorialItem as n}from"./TutorialItem.js";import{Container as r,TutorialList as i}from"./Tutorials.styles.js";import{useRef as a,useState as o}from"react";import{Divider as s,Icon as c,Typography as l}from"@equinor/eds-core-react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{youtube_alt as p}from"@equinor/eds-icons";import{useTutorials as m}from"@equinor/subsurface-app-management";const h=({filterTutorials:h,onTutorialStart:g,..._})=>{let{allTutorials:v,tutorialsOnThisPage:y}=m(),[b,x]=o(!1),S=a(null),C=h?v.filter(h):v,w=h?y.filter(h):y,T=C.filter(e=>w.findIndex(t=>t.id===e.id)===-1),E=()=>x(e=>!e);return f(u,{children:[d(t,{variant:`ghost_icon`,ref:S,onClick:E,..._,children:d(c,{data:p})}),b&&d(e,{open:!0,onClose:E,anchorEl:S.current,children:f(r,{children:[f(l,{variant:`h4`,children:[`Available Tutorials (`,C.length,`)`]}),w.length>0&&f(i,{children:[d(l,{variant:`caption`,children:`For current page`}),w.map(e=>d(n,{onTutorialStart:g,onClose:E,...e},e.id))]}),w.length>0&&w.length>0&&d(s,{}),T.length>0&&f(i,{children:[d(l,{variant:`caption`,children:`For other pages`}),T.map(e=>d(n,{onTutorialStart:g,onClose:E,...e},e.id))]})]})})]})};export{h as Tutorials};
1
+ import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{TutorialItem as n}from"./TutorialItem.js";import{Container as r,TutorialList as i}from"./Tutorials.styles.js";import{useRef as a,useState as o}from"react";import{Icon as s,Typography as c}from"@equinor/eds-core-react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{youtube_alt as f}from"@equinor/eds-icons";import{useTutorials as p}from"@equinor/subsurface-app-management";const m=({filterTutorials:m,onTutorialStart:h,...g})=>{let{tutorialsOnThisPage:_}=p(),[v,y]=o(!1),b=a(null),x=m?_.filter(m):_,S=()=>y(e=>!e);return d(l,{children:[u(t,{variant:`ghost_icon`,ref:b,onClick:S,...g,children:u(s,{data:f})}),v&&u(e,{open:!0,onClose:S,anchorEl:b.current,children:d(r,{children:[d(c,{variant:`h4`,children:[`Available Tutorials (`,x.length,`)`]}),x.length>0&&d(i,{children:[u(c,{variant:`caption`,children:`For current page`}),x.map(e=>u(n,{onTutorialStart:h,onClose:S,...e},e.id))]})]})})]})};export{m as Tutorials};
@@ -3,10 +3,8 @@ import{spacings as e}from"../../../atoms/style/spacings.js";import t from"styled
3
3
  flex-direction: column;
4
4
  padding: ${e.large};
5
5
  width: 520px;
6
- > h4 {
7
- margin-bottom: ${e.x_large};
8
- }
9
- > hr {
6
+ height: 100%;
7
+ > h4:not(:last-child) {
10
8
  margin-bottom: ${e.x_large};
11
9
  }
12
10
  `,r=t.section`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/amplify-component-lib",
3
- "version": "10.4.0",
3
+ "version": "10.5.1",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",