@equinor/amplify-component-lib 13.0.0 → 13.1.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 (83) 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/icons/other.d.ts +2 -1
  4. package/dist/atoms/icons/other.js +1 -1
  5. package/dist/atoms/index.d.ts +1 -1
  6. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  7. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +1 -1
  10. package/dist/molecules/Badge/Badge.d.ts +1 -1
  11. package/dist/molecules/Button/Button.d.ts +8 -10
  12. package/dist/molecules/Button/Button.js +1 -1
  13. package/dist/molecules/Button/Button.styles.js +35 -23
  14. package/dist/molecules/Button/IconButton/IconButton.d.ts +8 -7
  15. package/dist/molecules/Button/IconButton/IconButton.js +1 -1
  16. package/dist/molecules/Button/types.d.ts +2 -2
  17. package/dist/molecules/Chip/Chip.d.ts +2 -2
  18. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  19. package/dist/molecules/Dialog/Dialog.js +1 -1
  20. package/dist/molecules/Dialog/DialogAction.js +1 -1
  21. package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
  22. package/dist/molecules/IconCell/IconCell.d.ts +2 -2
  23. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  24. package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
  25. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  26. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  27. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
  28. package/dist/molecules/RichTextEditor/index.d.ts +7 -7
  29. package/dist/molecules/Search/Search.d.ts +2 -2
  30. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  31. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
  32. package/dist/molecules/Select/Select.styles.d.ts +7 -7
  33. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  34. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  35. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  36. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -4
  37. package/dist/molecules/Tabs/Tabs.d.ts +2 -2
  38. package/dist/molecules/Tabs/Tabs.types.d.ts +7 -5
  39. package/dist/molecules/Tag/Tag.d.ts +2 -0
  40. package/dist/molecules/Tag/Tag.js +6 -3
  41. package/dist/molecules/Toast/Toast.js +1 -1
  42. package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
  43. package/dist/organisms/Filter/Filter.d.ts +2 -2
  44. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  45. package/dist/organisms/Filter/SortMenu.d.ts +2 -2
  46. package/dist/organisms/ReleaseNote/ToggleExpanded.js +2 -2
  47. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  48. package/dist/organisms/Status/Action.d.ts +2 -2
  49. package/dist/organisms/Status/Description.d.ts +2 -2
  50. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  51. package/dist/organisms/Status/Title.d.ts +2 -2
  52. package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
  53. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  54. package/dist/organisms/TableOfContents/TableOfContents.d.ts +10 -3
  55. package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
  56. package/dist/organisms/TableOfContents/TableOfContents.styles.js +1 -0
  57. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  58. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  59. package/dist/organisms/TopBar/Account/Account.js +1 -1
  60. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  61. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  62. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  63. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  64. package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
  65. package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +5 -5
  66. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
  67. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
  68. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
  69. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +1 -1
  70. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +3 -3
  71. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
  72. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +4 -4
  73. package/dist/organisms/TopBar/Resources/Feedback/hooks/useCreateWorkItemWithAttachment.js +1 -0
  74. package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
  75. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -1
  76. package/dist/organisms/TopBar/Resources/Resources.js +3 -3
  77. package/dist/providers/TableOfContentsProvider.d.ts +1 -1
  78. package/package.json +1 -1
  79. package/dist/organisms/TableOfContents/TableOfContents.types.d.ts +0 -4
  80. package/dist/organisms/TopBar/Resources/Feedback/Feedback.types.js +0 -1
  81. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +0 -4
  82. package/dist/organisms/TopBar/Resources/Feedback/hooks/useSlackFileUpload.js +0 -1
  83. package/dist/organisms/TopBar/Resources/Feedback/hooks/useSlackPostMessage.js +0 -1
@@ -1,4 +1,4 @@
1
- import * as react16 from "react";
1
+ import * as react18 from "react";
2
2
  import { TooltipProps } from "@equinor/eds-core-react";
3
3
  import * as _floating_ui_utils0 from "@floating-ui/utils";
4
4
 
@@ -6,14 +6,14 @@ import * as _floating_ui_utils0 from "@floating-ui/utils";
6
6
  type OptionalTooltipProps = {
7
7
  textTransform?: string;
8
8
  } & TooltipProps;
9
- declare const OptionalTooltip: react16.ForwardRefExoticComponent<{
9
+ declare const OptionalTooltip: react18.ForwardRefExoticComponent<{
10
10
  textTransform?: string;
11
11
  } & {
12
12
  placement?: _floating_ui_utils0.Placement;
13
- title?: react16.ReactNode;
13
+ title?: react18.ReactNode;
14
14
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
15
15
  enterDelay?: number;
16
16
  portalContainer?: HTMLElement;
17
- } & Omit<react16.HTMLAttributes<HTMLDivElement>, "title"> & react16.RefAttributes<HTMLDivElement>>;
17
+ } & Omit<react18.HTMLAttributes<HTMLDivElement>, "title"> & react18.RefAttributes<HTMLDivElement>>;
18
18
  //#endregion
19
19
  export { OptionalTooltip, OptionalTooltipProps };
@@ -1,4 +1,4 @@
1
- import * as react22 from "react";
1
+ import * as react120 from "react";
2
2
 
3
3
  //#region src/molecules/ProfileAvatar/ProfileAvatar.d.ts
4
4
  interface ProfileAvatarProps {
@@ -7,6 +7,6 @@ interface ProfileAvatarProps {
7
7
  size?: 'small' | 'small-medium' | 'medium' | 'large' | 'x-large' | number;
8
8
  disabled?: boolean;
9
9
  }
10
- declare const ProfileAvatar: react22.ForwardRefExoticComponent<ProfileAvatarProps & react22.RefAttributes<HTMLDivElement>>;
10
+ declare const ProfileAvatar: react120.ForwardRefExoticComponent<ProfileAvatarProps & react120.RefAttributes<HTMLDivElement>>;
11
11
  //#endregion
12
12
  export { ProfileAvatar, ProfileAvatarProps };
@@ -1,11 +1,11 @@
1
1
  import { EditorPanel, ImageExtensionFnProps, RichTextEditorFeatures } from "../RichTextEditor.types.js";
2
2
  import { MenuButtonProps } from "./MenuButton.js";
3
3
  import { AddImageProps } from "./AddImageButton.js";
4
- import * as react35 from "react";
4
+ import * as react133 from "react";
5
5
  import { FC } from "react";
6
- import * as styled_components5 from "styled-components";
6
+ import * as styled_components40 from "styled-components";
7
7
  import { Editor } from "@tiptap/react";
8
- import * as styled_components_dist_types1 from "styled-components/dist/types";
8
+ import * as styled_components_dist_types34 from "styled-components/dist/types";
9
9
 
10
10
  //#region src/molecules/RichTextEditor/MenuBar/MenuBar.d.ts
11
11
  interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
@@ -14,10 +14,10 @@ interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
14
14
  }
15
15
  declare const AmplifyBar: FC<MenuBarProps>;
16
16
  declare const EditorMenu: {
17
- Bar: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
- Bars: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
19
- Button: react35.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react35.RefAttributes<HTMLButtonElement>>;
20
- Section: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react35.DetailedHTMLProps<react35.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
17
+ Bar: styled_components_dist_types34.IStyledComponentBase<"web", styled_components40.FastOmit<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
+ Bars: styled_components_dist_types34.IStyledComponentBase<"web", styled_components40.FastOmit<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
19
+ Button: react133.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react133.RefAttributes<HTMLButtonElement>>;
20
+ Section: styled_components_dist_types34.IStyledComponentBase<"web", styled_components40.FastOmit<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react133.DetailedHTMLProps<react133.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
21
21
  AddImageButton: FC<AddImageProps>;
22
22
  };
23
23
  declare const EditorText: {
@@ -2,17 +2,17 @@ import { EditorStylingProps, RichTextContentProps } from "./RichTextEditor.style
2
2
  import { EditorProviderProps } from "./EditorProvider.js";
3
3
  import { MenuBarProps } from "./MenuBar/MenuBar.js";
4
4
  import { RichTextEditor } from "./RichTextEditor.js";
5
- import * as react24 from "react";
6
- import * as styled_components0 from "styled-components";
5
+ import * as react122 from "react";
6
+ import * as styled_components34 from "styled-components";
7
7
  import * as _tiptap_react0 from "@tiptap/react";
8
- import * as styled_components_dist_types0 from "styled-components/dist/types";
8
+ import * as styled_components_dist_types32 from "styled-components/dist/types";
9
9
 
10
10
  //#region src/molecules/RichTextEditor/index.d.ts
11
11
  declare const RichText: {
12
- Styling: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<react24.DetailedHTMLProps<react24.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never> & Partial<Pick<styled_components0.FastOmit<react24.DetailedHTMLProps<react24.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never>>> & string;
13
- Provider: react24.FC<EditorProviderProps>;
14
- Content: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react24.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never> & Partial<Pick<styled_components0.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react24.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never>>> & string & Omit<react24.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react24.RefAttributes<HTMLDivElement>>, keyof react24.Component<any, {}, any>>;
15
- Bar: react24.FC<MenuBarProps>;
12
+ Styling: styled_components_dist_types32.IStyledComponentBase<"web", styled_components34.FastOmit<styled_components34.FastOmit<react122.DetailedHTMLProps<react122.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never> & Partial<Pick<styled_components34.FastOmit<react122.DetailedHTMLProps<react122.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never>>> & string;
13
+ Provider: react122.FC<EditorProviderProps>;
14
+ Content: styled_components_dist_types32.IStyledComponentBase<"web", styled_components34.FastOmit<styled_components34.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react122.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never> & Partial<Pick<styled_components34.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react122.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never>>> & string & Omit<react122.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react122.RefAttributes<HTMLDivElement>>, keyof react122.Component<any, {}, any>>;
15
+ Bar: react122.FC<MenuBarProps>;
16
16
  };
17
17
  //#endregion
18
18
  export { RichText };
@@ -1,10 +1,10 @@
1
- import * as react49 from "react";
1
+ import * as react151 from "react";
2
2
  import { SearchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/Search/Search.d.ts
5
5
  interface SearchProps$1 extends SearchProps {
6
6
  lightBackground?: boolean;
7
7
  }
8
- declare const Search$1: react49.ForwardRefExoticComponent<SearchProps$1 & react49.RefAttributes<HTMLInputElement>>;
8
+ declare const Search$1: react151.ForwardRefExoticComponent<SearchProps$1 & react151.RefAttributes<HTMLInputElement>>;
9
9
  //#endregion
10
10
  export { Search$1 as Search };
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, MultiSelectCommon, SelectOptionRequired } from "../Select.types.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/molecules/Select/ComboBox/ComboBox.d.ts
5
5
  type ComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & MultiSelectCommon<T> & (ListSelectProps<T> | GroupedSelectProps<T>);
@@ -17,6 +17,6 @@ type ComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & Mult
17
17
  * @param showSelectedAsText - If values should be shown as "5/10 Selected", defaults to false
18
18
  * @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
19
19
  */
20
- declare function ComboBox<T extends SelectOptionRequired>(props: ComboBoxProps<T>): react_jsx_runtime2.JSX.Element;
20
+ declare function ComboBox<T extends SelectOptionRequired>(props: ComboBoxProps<T>): react_jsx_runtime4.JSX.Element;
21
21
  //#endregion
22
22
  export { ComboBox, ComboBoxProps };
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, MultiSelectCommon, PersistentSelectProps, SelectOptionRequired } from "../Select.types.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts
5
5
  type PersistentComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & MultiSelectCommon<T> & PersistentSelectProps & (GroupedSelectProps<T> | ListSelectProps<T>);
@@ -18,6 +18,6 @@ type PersistentComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps
18
18
  * @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
19
19
  * @param maxHeight - Max height of the persistent wrapper below the search field, optional
20
20
  */
21
- declare function PersistentComboBox<T extends SelectOptionRequired>(props: PersistentComboBoxProps<T>): react_jsx_runtime3.JSX.Element;
21
+ declare function PersistentComboBox<T extends SelectOptionRequired>(props: PersistentComboBoxProps<T>): react_jsx_runtime0.JSX.Element;
22
22
  //#endregion
23
23
  export { PersistentComboBox, PersistentComboBoxProps };
@@ -1,8 +1,8 @@
1
1
  import { BaseChipProps, ClickableChipProps, DeletableChipProps } from "../Chip/Chip.js";
2
- import * as react55 from "react";
2
+ import * as react22 from "react";
3
3
  import "@equinor/eds-core-react";
4
- import * as styled_components11 from "styled-components";
5
- import * as styled_components_dist_types5 from "styled-components/dist/types";
4
+ import * as styled_components0 from "styled-components";
5
+ import * as styled_components_dist_types0 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: styled_components_dist_types5.IStyledComponentBase<"web", styled_components11.FastOmit<styled_components11.FastOmit<((Omit<react55.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
14
+ declare const ComboBoxChip: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<((Omit<react22.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
15
15
  onClick?: undefined;
16
16
  onDelete?: undefined;
17
- }) | ClickableChipProps | DeletableChipProps)) & react55.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types5.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never> & Partial<Pick<styled_components11.FastOmit<((Omit<react55.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
17
+ }) | ClickableChipProps | DeletableChipProps)) & react22.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types0.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never> & Partial<Pick<styled_components0.FastOmit<((Omit<react22.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
18
18
  onClick?: undefined;
19
19
  onDelete?: undefined;
20
- }) | ClickableChipProps | DeletableChipProps)) & react55.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types5.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never>>> & string & Omit<react55.ForwardRefExoticComponent<(Omit<react55.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
20
+ }) | ClickableChipProps | DeletableChipProps)) & react22.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types0.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never>>> & string & Omit<react22.ForwardRefExoticComponent<(Omit<react22.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
21
21
  onClick?: undefined;
22
22
  onDelete?: undefined;
23
- }) | ClickableChipProps | DeletableChipProps)) & react55.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react55.Component<any, {}, any>>;
23
+ }) | ClickableChipProps | DeletableChipProps)) & react22.RefAttributes<HTMLButtonElement | HTMLDivElement>>, keyof react22.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 react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 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>): react_jsx_runtime1.JSX.Element;
18
+ declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>): react_jsx_runtime0.JSX.Element;
19
19
  //#endregion
20
20
  export { SingleSelect, SingleSelectProps };
@@ -1,4 +1,4 @@
1
- import * as react155 from "react";
1
+ import * as react149 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: react155.ForwardRefExoticComponent<CheckboxProps$1 & react155.RefAttributes<HTMLInputElement>>;
10
+ declare const Checkbox$1: react149.ForwardRefExoticComponent<CheckboxProps$1 & react149.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
@@ -1,4 +1,4 @@
1
- import * as react157 from "react";
1
+ import * as react153 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: react157.ForwardRefExoticComponent<RadioProps$1 & react157.RefAttributes<HTMLInputElement>>;
10
+ declare const Radio$1: react153.ForwardRefExoticComponent<RadioProps$1 & react153.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Radio$1 as Radio, RadioProps$1 as RadioProps };
@@ -1,6 +1,6 @@
1
- import * as react51 from "react";
2
- import * as styled_components8 from "styled-components";
3
- import * as styled_components_dist_types4 from "styled-components/dist/types";
1
+ import * as react155 from "react";
2
+ import * as styled_components43 from "styled-components";
3
+ import * as styled_components_dist_types37 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: styled_components_dist_types4.IStyledComponentBase<"web", styled_components8.FastOmit<styled_components8.FastOmit<react51.DetailedHTMLProps<react51.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never> & Partial<Pick<styled_components8.FastOmit<react51.DetailedHTMLProps<react51.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never>>> & string;
11
+ declare const SkeletonBase: styled_components_dist_types37.IStyledComponentBase<"web", styled_components43.FastOmit<styled_components43.FastOmit<react155.DetailedHTMLProps<react155.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never> & Partial<Pick<styled_components43.FastOmit<react155.DetailedHTMLProps<react155.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never>>> & string;
12
12
  //#endregion
13
13
  export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
@@ -1,6 +1,6 @@
1
1
  import { Tabs as Tabs$1 } from "./Tabs.types.js";
2
2
  import { HTMLAttributes, Ref } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/molecules/Tabs/Tabs.d.ts
6
6
  type TabsProps<T> = Tabs$1<T> & {
@@ -27,6 +27,6 @@ declare function Tabs<T>({
27
27
  onHover,
28
28
  ref,
29
29
  ...rest
30
- }: TabsProps<T>): react_jsx_runtime0.JSX.Element;
30
+ }: TabsProps<T>): react_jsx_runtime1.JSX.Element;
31
31
  //#endregion
32
32
  export { Tabs, TabsProps };
@@ -5,21 +5,23 @@ import { IconData } from "@equinor/eds-icons";
5
5
  interface Tab<T> {
6
6
  value: T;
7
7
  label: string;
8
- count?: number;
8
+ count?: number | string;
9
9
  leadingIcon?: IconData;
10
10
  trailingIcon?: IconData;
11
11
  variant?: Extract<Variants, 'warning' | 'error'>;
12
12
  disabled?: boolean;
13
13
  }
14
- interface Tabs<T> {
14
+ interface TabsScrollProps {
15
+ scrollable?: boolean;
16
+ amountPerScrollPage?: number;
17
+ }
18
+ interface Tabs<T> extends TabsScrollProps {
15
19
  selected: T;
16
20
  onChange: (value: T) => void;
17
21
  onHover?: (hoveredTabValue: T) => void;
18
22
  options: Tab<T>[];
19
- scrollable?: boolean;
20
- amountPerScrollPage?: number;
21
23
  centered?: boolean;
22
24
  animated?: boolean;
23
25
  }
24
26
  //#endregion
25
- export { Tab, Tabs };
27
+ export { Tab, Tabs, TabsScrollProps };
@@ -6,6 +6,8 @@ interface TagProps {
6
6
  color?: 'blue' | 'green' | 'purple' | 'orange' | 'yellow' | 'dark pink' | 'pink' | 'grey';
7
7
  leadingIcon?: IconData;
8
8
  trailingIcon?: IconData;
9
+ iconColor?: string;
10
+ textColor?: string;
9
11
  children: string;
10
12
  }
11
13
  declare const Tag: FC<TagProps>;
@@ -6,11 +6,14 @@ import{spacings as e}from"../../atoms/style/spacings.js";import{shape as t}from"
6
6
  gap: ${e.x_small};
7
7
  background: ${({$color:e})=>n[e].background};
8
8
  min-height: 24px;
9
+ min-width: fit-content;
10
+
9
11
  > span {
10
- color: ${({$color:e})=>n[e].text};
12
+ color: ${({$color:e,$textColor:t})=>t??n[e].text};
11
13
  line-height: normal;
12
14
  }
13
15
  > svg {
14
- fill: ${({$color:e})=>n[e].text};
16
+ flex-shrink: 0;
17
+ fill: ${({$color:e,$iconColor:t})=>t??n[e].text};
15
18
  }
16
- `,l=({children:e,color:t=`blue`,leadingIcon:n,trailingIcon:a})=>s(c,{$color:t,children:[n&&o(r,{data:n,size:16}),o(i,{variant:`cell_text`,group:`table`,as:`span`,children:e}),a&&o(r,{data:a,size:16})]});export{l as Tag};
19
+ `,l=({children:e,color:t=`blue`,leadingIcon:n,trailingIcon:a,textColor:l,iconColor:u})=>s(c,{$color:t,$iconColor:u,$textColor:l,children:[n&&o(r,{data:n,size:16}),o(i,{variant:`cell_text`,group:`table`,as:`span`,children:e}),a&&o(r,{data:a,size:16})]});export{l as Tag};
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{IconButton as n}from"../Button/IconButton/IconButton.js";import{getHeaderIcon as r}from"./Toast.utils.js";import{Container as i,DurationBar as a,Header as o}from"./Toast.styles.js";import{useEffect as s}from"react";import{Icon as c,Typography as l}from"@equinor/eds-core-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{close as f}from"@equinor/eds-icons";const p=({title:p,icon:m,onClose:h,variant:g,description:_,action:v,duration:y,ref:b})=>{if(y!==void 0&&y<=0)throw Error(`Duration must be a positive number`);s(()=>{if(!y)return;let e=setTimeout(()=>{h()},y*1e3);return()=>clearTimeout(e)},[y,h]);let x=()=>{v?.onClick(),h()},S=r({icon:m,variant:g});return d(i,{ref:b,$variant:g,children:[d(o,{children:[S&&u(c,{data:S}),u(l,{variant:`h6`,color:e.text.static_icons__default.rgba,children:p}),u(n,{icon:f,variant:`ghost`,onClick:h})]}),_&&u(l,{variant:`body_long`,color:e.text.static_icons__secondary.rgba,children:_}),v&&u(t,{label:v.text,variant:`outlined`,onClick:x}),y&&u(a,{role:`progressbar`,$variant:g,$duration:y})]})};export{p as Toast};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{IconButton as n}from"../Button/IconButton/IconButton.js";import{getHeaderIcon as r}from"./Toast.utils.js";import{Container as i,DurationBar as a,Header as o}from"./Toast.styles.js";import{useEffect as s}from"react";import{Icon as c,Typography as l}from"@equinor/eds-core-react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{close as f}from"@equinor/eds-icons";const p=({title:p,icon:m,onClose:h,variant:g,description:_,action:v,duration:y,ref:b})=>{if(y!==void 0&&y<=0)throw Error(`Duration must be a positive number`);s(()=>{if(!y)return;let e=setTimeout(()=>{h()},y*1e3);return()=>clearTimeout(e)},[y,h]);let x=()=>{v?.onClick(),h()},S=r({icon:m,variant:g});return d(i,{ref:b,$variant:g,children:[d(o,{children:[S&&u(c,{data:S}),u(l,{variant:`h6`,color:e.text.static_icons__default.rgba,children:p}),u(n,{icon:f,variant:`ghost`,onClick:h})]}),_&&u(l,{variant:`body_long`,color:e.text.static_icons__secondary.rgba,children:_}),v&&u(t,{variant:`outlined`,onClick:x,children:v.text}),y&&u(a,{role:`progressbar`,$variant:g,$duration:y})]})};export{p as Toast};
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 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_runtime4.JSX.Element;
5
+ declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react_jsx_runtime2.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_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 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_runtime6.JSX.Element;
35
+ }: FilterProps<T>): react_jsx_runtime5.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 react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime6 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_runtime7.JSX.Element;
17
+ }: QuickFilterProps<T>): react_jsx_runtime6.JSX.Element;
18
18
  //#endregion
19
19
  export { QuickFilter };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 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_runtime5.JSX.Element;
16
+ }: SortMenuProps<S>): react_jsx_runtime7.JSX.Element;
17
17
  //#endregion
18
18
  export { SortMenu };
@@ -1,4 +1,4 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{Button as n}from"../../molecules/Button/Button.js";import r from"styled-components";import{jsx as i}from"react/jsx-runtime";import{arrow_drop_down as a,arrow_drop_up as o}from"@equinor/eds-icons";const s=r.div`
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{Button as n}from"../../molecules/Button/Button.js";import{Icon as r}from"@equinor/eds-core-react";import i from"styled-components";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{arrow_drop_down as s,arrow_drop_up as c}from"@equinor/eds-icons";const l=i.div`
2
2
  position: absolute;
3
3
  bottom: 0;
4
4
  left: 0;
@@ -10,4 +10,4 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
10
10
  ${e.ui.background__default.rgba} 15%
11
11
  );
12
12
  width: 100%;
13
- `,c=({expanded:e,onToggleExpanded:t})=>i(s,{children:i(n,{label:`Show ${e?`less`:`more`}`,trailingIcon:e?o:a,variant:`ghost`,onClick:t})});export{c as ToggleExpanded};
13
+ `,u=({expanded:e,onToggleExpanded:t})=>a(l,{children:o(n,{variant:`ghost`,onClick:t,trailingContent:a(r,{data:e?c:s}),children:[`Show `,e?`less`:`more`]})});export{u as ToggleExpanded};
@@ -1,4 +1,4 @@
1
- import * as react200 from "react";
1
+ import * as react191 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: react200.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react200.RefAttributes<HTMLDivElement>>;
19
+ declare const SideBar: react191.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react191.RefAttributes<HTMLDivElement>>;
20
20
  //#endregion
21
21
  export { SideBar };
@@ -1,10 +1,10 @@
1
- import * as react204 from "react";
1
+ import * as react197 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: react204.ForwardRefExoticComponent<ActionProps & react204.RefAttributes<HTMLButtonElement>>;
8
+ declare const Action: react197.ForwardRefExoticComponent<ActionProps & react197.RefAttributes<HTMLButtonElement>>;
9
9
  //#endregion
10
10
  export { Action };
@@ -1,9 +1,9 @@
1
- import * as react206 from "react";
1
+ import * as react203 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: react206.ForwardRefExoticComponent<DescriptionProps & react206.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Description: react203.ForwardRefExoticComponent<DescriptionProps & react203.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Description };
@@ -1,4 +1,4 @@
1
- import * as react208 from "react";
1
+ import * as react199 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: react208.ForwardRefExoticComponent<MissingAccessesProps & react208.RefAttributes<HTMLDivElement>>;
12
+ declare const MissingAccesses: react199.ForwardRefExoticComponent<MissingAccessesProps & react199.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { MissingAccesses };
@@ -1,9 +1,9 @@
1
- import * as react202 from "react";
1
+ import * as react201 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: react202.ForwardRefExoticComponent<TitleProps & react202.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Title: react201.ForwardRefExoticComponent<TitleProps & react201.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Title };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
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) => react_jsx_runtime11.JSX.Element;
15
+ }: BadRequestProps) => react_jsx_runtime10.JSX.Element;
16
16
  //#endregion
17
17
  export { BadRequest };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 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_runtime10.JSX.Element;
15
+ }: ServerErrorProps) => react_jsx_runtime11.JSX.Element;
16
16
  //#endregion
17
17
  export { ServerError };
@@ -1,11 +1,18 @@
1
- import { TableOfContentsMode } from "./TableOfContents.types.js";
1
+ import { TabsScrollProps } from "../../molecules/Tabs/Tabs.types.js";
2
2
  import { FC } from "react";
3
3
 
4
4
  //#region src/organisms/TableOfContents/TableOfContents.d.ts
5
- interface TableOfContentsProps {
6
- mode?: TableOfContentsMode;
5
+ interface TableOfContentsBaseProps {
7
6
  onlyShowSelectedChildren?: boolean;
8
7
  }
8
+ interface TableOfContentsVerticalProps extends TableOfContentsBaseProps {
9
+ mode?: 'vertical';
10
+ }
11
+ interface TableOfContentsHorizontalProps extends TableOfContentsBaseProps {
12
+ mode: 'horizontal';
13
+ tabsProps?: TabsScrollProps;
14
+ }
15
+ type TableOfContentsProps = TableOfContentsVerticalProps | TableOfContentsHorizontalProps;
9
16
  declare const TableOfContents: FC<TableOfContentsProps>;
10
17
  //#endregion
11
18
  export { TableOfContents, TableOfContentsProps };
@@ -1 +1 @@
1
- import{getValues as e}from"../../providers/TableOfContentsProvider.utils.js";import{useTableOfContents as t}from"../../providers/TableOfContentsProvider.js";import{Tabs as n}from"../../molecules/Tabs/Tabs.js";import{HorizontalItemsContainer as r,TableOfContentsContainer as i,VerticalItemsContainer as a}from"./TableOfContents.styles.js";import{TableOfContentsItem as o}from"./TableOfContentsItem.js";import{useMemo as s}from"react";import{jsx as c}from"react/jsx-runtime";const l=({mode:l=`vertical`,onlyShowSelectedChildren:u=!0})=>{let{items:d,selected:f,setSelected:p}=t(),m=s(()=>{for(let[t,n]of d.entries()){let r=e([],n);if(n.value===f||f&&r.includes(f))return t}return-1},[d,f]);return l===`horizontal`?c(r,{children:c(n,{selected:f,onChange:e=>{e&&p(e)},options:d})}):c(i,{className:`page-menu`,layoutRoot:!0,"data-testid":`table-of-contents-container`,children:d.map((e,t)=>c(a,{"data-testid":`border-items-container-${e.value}`,$index:t,$activeIndex:m,"aria-selected":m===t,children:c(o,{onlyShowSelectedChildren:u,...e})},e.value))})};export{l as TableOfContents};
1
+ import{getValues as e}from"../../providers/TableOfContentsProvider.utils.js";import{useTableOfContents as t}from"../../providers/TableOfContentsProvider.js";import{Tabs as n}from"../../molecules/Tabs/Tabs.js";import{HorizontalItemsContainer as r,TableOfContentsContainer as i,VerticalItemsContainer as a}from"./TableOfContents.styles.js";import{TableOfContentsItem as o}from"./TableOfContentsItem.js";import{useMemo as s}from"react";import{jsx as c}from"react/jsx-runtime";const l=({onlyShowSelectedChildren:l=!0,...u})=>{let{items:d,selected:f,setSelected:p}=t(),m=s(()=>{for(let[t,n]of d.entries()){let r=e([],n);if(n.value===f||f&&r.includes(f))return t}return-1},[d,f]);return u.mode===`horizontal`?c(r,{children:c(n,{selected:f,onChange:e=>{e&&p(e)},options:d,...u.tabsProps})}):c(i,{className:`page-menu`,layoutRoot:!0,"data-testid":`table-of-contents-container`,children:d.map((e,t)=>c(a,{"data-testid":`border-items-container-${e.value}`,$index:t,$activeIndex:m,"aria-selected":m===t,children:c(o,{onlyShowSelectedChildren:l,...e})},e.value))})};export{l as TableOfContents};
@@ -46,6 +46,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
46
46
  }
47
47
  `}
48
48
  `,c=i.div`
49
+ overflow: hidden;
49
50
  button[role='tab'] {
50
51
  .count {
51
52
  background: ${t.ui.background__light_medium.rgba};
@@ -1,7 +1,7 @@
1
1
  import { ToggleGroup as ToggleGroup$1 } from "./ToggleGroup.types.js";
2
- import * as react212 from "react";
2
+ import * as react205 from "react";
3
3
 
4
4
  //#region src/organisms/ToggleGroup/ToggleGroup.d.ts
5
- declare const ToggleGroup: react212.ForwardRefExoticComponent<ToggleGroup$1 & react212.RefAttributes<HTMLDivElement>>;
5
+ declare const ToggleGroup: react205.ForwardRefExoticComponent<ToggleGroup$1 & react205.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 react210 from "react";
2
+ import * as react207 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: react210.ForwardRefExoticComponent<ToggleGroupOptionProps & react210.RefAttributes<HTMLButtonElement>>;
7
+ declare const ToggleGroupOption: react207.ForwardRefExoticComponent<ToggleGroupOptionProps & react207.RefAttributes<HTMLButtonElement>>;
8
8
  //#endregion
9
9
  export { ToggleGroupOption };
@@ -1 +1 @@
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 ee}from"./ImpersonateMenu/hooks/useMappedRoles.js";import{useStopImpersonation as s}from"./ImpersonateMenu/hooks/useStopImpersonation.js";import{ButtonWrapper as c,Container as l,EnvironmentToggleWrapper as u,TextContent as d}from"./Account.styles.js";import{impersonateUserDtoToFullName as te}from"./ImpersonateMenu/Impersonate.utils.js";import{ImpersonateMenu as f}from"./ImpersonateMenu/ImpersonateMenu.js";import{AccountAvatar as p}from"./AccountAvatar.js";import{AccountButton as m}from"./AccountButton.js";import{ActiveUserImpersonationButton as h}from"./ActiveUserImpersonationButton.js";import{ImpersonateButton as g}from"./ImpersonateButton.js";import{RoleList as _}from"./RoleList.js";import{EnvironmentToggle as ne}from"./EnvironmentToggle.js";import{StatusChips as v}from"./StatusChips.js";import{useCallback as re,useEffect as ie,useMemo as y,useRef as b,useState as x}from"react";import{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]=x(!1),[H,U]=x(!1),[W,G]=n(D,[]),K=b(null),{data:q=!0}=o(),{data:J}=a(),{mutate:Y}=s(),X=ee(J?J.roles:R??[],A),ae=J?te(J):L?.name,oe=J?J.uniqueName:L?.username,Z=()=>V(!1),Q=re(()=>{V(e=>!e),U(!1)},[]),$=()=>{U(!0),V(!1)};return ie(()=>{J&&J.appName!=null&&J.appName.toUpperCase()!=I.toUpperCase()&&Y()},[J,I,Y]),T(C,{children:[y(()=>O?O(K,Q):null,[O,Q])||w(m,{ref:K,onClick:Q,environmentToggle:W}),T(i,{open:B,title:`Account`,onClose:Z,anchorEl:K.current,children:[T(l,{children:[J&&w(h,{onClick:$}),w(p,{environmentToggle:W}),T(d,{children:[w(S,{variant:`h6`,children:ae}),w(S,{children:oe})]}),W.length>0&&w(v,{statuses:W}),X&&!k&&w(C,{children:X.length<=3?w(v,{statuses:X}):w(_,{roles:X})}),j,q&&P!==`production`&&F&&w(g,{onOpenImpersonateMenu:$,onClose:Z,onImpersonateChange:N})]}),M&&P!==`production`&&w(u,{children:w(ne,{setEnvironmentToggle:G,environmentToggle:W})}),w(c,{children:w(r,{label:`Log out`,leadingIcon:E,variant:`ghost`,onClick:z})})]}),w(f,{open:H,onClose:()=>U(!1),anchorEl:K.current,onImpersonateChange:N})]})};O.displayName=`TopBar.Account`;export{O as Account};
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:w(r,{variant:`ghost`,onClick:z,leadingContent:w(x,{data:E}),children:`Log out`})})]}),w(f,{open:H,onClose:()=>U(!1),anchorEl:K.current,onImpersonateChange:N})]})};O.displayName=`TopBar.Account`;export{O as Account};
@@ -1 +1 @@
1
- import{colors as e}from"../../../../../atoms/style/colors.js";import{useSnackbar as t}from"../../../../../providers/SnackbarProvider/SnackbarProvider.js";import{Button as n}from"../../../../../molecules/Button/Button.js";import{IconButton as r}from"../../../../../molecules/Button/IconButton/IconButton.js";import{Header as i}from"../Impersonate.styles.js";import{useDeleteImpersonation as a}from"../hooks/useDeleteImpersonation.js";import{Container as o}from"./DeleteUser.styles.js";import{RoleChip as s,RolesContainer as c,TextContent as l}from"../../Account.styles.js";import{StatusAvatar as u}from"../../StatusAvatar.js";import{Typography as d}from"@equinor/eds-core-react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{arrow_back as m,delete_to_trash as h}from"@equinor/eds-icons";const g=({user:g,onBack:_})=>{let{mutateAsync:v,isPending:y}=a(),{showSnackbar:b}=t(),x=`${g.firstName} ${g.lastName}`;return p(o,{children:[p(i,{children:[f(r,{icon:m,variant:`ghost`,onClick:_}),f(d,{variant:`h6`,children:`Delete user`})]}),p(`section`,{children:[f(d,{variant:`h4`,children:`You are deleting a user`}),p(d,{variant:`caption`,color:e.text.static_icons__tertiary.rgba,children:[`Are you sure you want to delete user "`,x,`"?`]})]}),f(u,{size:64,name:x,variant:`impersonate`}),p(l,{children:[f(d,{variant:`h6`,children:x}),f(d,{children:g.uniqueName})]}),f(c,{children:g.roles.map(e=>f(s,{children:e},e))}),p(`div`,{children:[f(n,{loading:y,leadingIcon:h,variant:`outlined`,color:`danger`,label:`Delete user`,onClick:async()=>{await v(g),b(`Deleted user "${x}" successfully`),_()}}),f(n,{label:`Cancel`,variant:`ghost`,onClick:_})]})]})};export{g as DeleteUser};
1
+ import{colors as e}from"../../../../../atoms/style/colors.js";import{useSnackbar as t}from"../../../../../providers/SnackbarProvider/SnackbarProvider.js";import{Button as n}from"../../../../../molecules/Button/Button.js";import{IconButton as r}from"../../../../../molecules/Button/IconButton/IconButton.js";import{Header as i}from"../Impersonate.styles.js";import{useDeleteImpersonation as a}from"../hooks/useDeleteImpersonation.js";import{Container as o}from"./DeleteUser.styles.js";import{RoleChip as s,RolesContainer as c,TextContent as l}from"../../Account.styles.js";import{StatusAvatar as u}from"../../StatusAvatar.js";import{Icon as d,Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{arrow_back as h,delete_to_trash as g}from"@equinor/eds-icons";const _=({user:_,onBack:v})=>{let{mutateAsync:y,isPending:b}=a(),{showSnackbar:x}=t(),S=`${_.firstName} ${_.lastName}`;return m(o,{children:[m(i,{children:[p(r,{icon:h,variant:`ghost`,onClick:v}),p(f,{variant:`h6`,children:`Delete user`})]}),m(`section`,{children:[p(f,{variant:`h4`,children:`You are deleting a user`}),m(f,{variant:`caption`,color:e.text.static_icons__tertiary.rgba,children:[`Are you sure you want to delete user "`,S,`"?`]})]}),p(u,{size:64,name:S,variant:`impersonate`}),m(l,{children:[p(f,{variant:`h6`,children:S}),p(f,{children:_.uniqueName})]}),p(c,{children:_.roles.map(e=>p(s,{children:e},e))}),m(`div`,{children:[p(n,{loading:b,variant:`outlined`,color:`danger`,onClick:async()=>{await y(_),x(`Deleted user "${S}" successfully`),v()},leadingContent:p(d,{data:g}),children:`Delete user`}),p(n,{variant:`ghost`,onClick:v,children:`Cancel`})]})]})};export{_ as DeleteUser};