@equinor/amplify-component-lib 10.4.0 → 10.5.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.
Files changed (74) 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 +36 -26
  5. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  6. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  7. package/dist/index.d.ts +5 -3
  8. package/dist/index.js +1 -1
  9. package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
  10. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  11. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  12. package/dist/molecules/ApplicationIcon/Icons/JsCalendar.js +1 -0
  13. package/dist/molecules/Banner/Banner.d.ts +1 -0
  14. package/dist/molecules/Banner/Banner.js +1 -1
  15. package/dist/molecules/Banner/Banner.styles.js +9 -6
  16. package/dist/molecules/Banner/Banner.utils.js +1 -1
  17. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  18. package/dist/molecules/Dialog/Dialog.d.ts +2 -2
  19. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  20. package/dist/molecules/IconCell/IconCell.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/QuickFilter.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/package.json +1 -1
@@ -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 react_jsx_runtime6 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
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>): react_jsx_runtime6.JSX.Element;
17
+ }: QuickFilterProps<T>): react_jsx_runtime7.JSX.Element;
18
18
  //#endregion
19
19
  export { QuickFilter };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 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_runtime6.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 react131 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: react131.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react131.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 react129 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: react129.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react129.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 react127 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: react127.ForwardRefExoticComponent<FieldMenuProps & react127.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 };
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.0",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",