@equinor/amplify-component-lib 9.16.1-beta.0 → 9.17.0-beta.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 (30) hide show
  1. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  2. package/dist/molecules/Chip/Chip.d.ts +2 -2
  3. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  4. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  5. package/dist/molecules/Dialog/Dialog.d.ts +2 -2
  6. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  7. package/dist/molecules/IconCell/IconCell.d.ts +2 -2
  8. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  9. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  10. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  11. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +6 -6
  12. package/dist/molecules/RichTextEditor/index.d.ts +3 -3
  13. package/dist/molecules/Search/Search.d.ts +2 -2
  14. package/dist/molecules/Select/Select.styles.d.ts +4 -4
  15. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  16. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  17. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  18. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  19. package/dist/organisms/Status/Action.d.ts +2 -2
  20. package/dist/organisms/Status/Description.d.ts +2 -2
  21. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  22. package/dist/organisms/Status/Title.d.ts +2 -2
  23. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  24. package/dist/organisms/ToggleGroup/ToggleGroup.js +10 -1
  25. package/dist/organisms/ToggleGroup/ToggleGroup.types.d.ts +1 -0
  26. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  27. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  28. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  29. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  30. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { SelectOption, SelectOptionRequired } from "../../molecules/Select/Select.types.js";
2
2
  import { SelectComponentProps } from "../../molecules/Select/Select.js";
3
- import * as react138 from "react";
3
+ import * as react137 from "react";
4
4
  import { ChangeEvent, KeyboardEvent } from "react";
5
5
 
6
6
  //#region src/atoms/hooks/useSelect.d.ts
@@ -16,8 +16,8 @@ declare const useSelect: <T extends SelectOptionRequired>(props: SelectComponent
16
16
  handleOnOpen: () => void;
17
17
  handleOnRemoveItem: (item: SelectOption<T>) => void;
18
18
  search: string;
19
- searchRef: react138.RefObject<HTMLInputElement | null>;
20
- itemRefs: react138.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react137.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react137.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -1,4 +1,4 @@
1
- import * as react12 from "react";
1
+ import * as react10 from "react";
2
2
  import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from "react";
3
3
  import { IconData } from "@equinor/eds-icons";
4
4
 
@@ -25,6 +25,6 @@ type DeletableChipProps = BaseChipProps & InteractiveChipBase & {
25
25
  onDelete: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
26
26
  };
27
27
  type ChipProps = Omit<HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'onClick'> & (ReadOnlyChipProps | ClickableChipProps | DeletableChipProps);
28
- declare const Chip: react12.ForwardRefExoticComponent<ChipProps & react12.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
28
+ declare const Chip: react10.ForwardRefExoticComponent<ChipProps & react10.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
29
29
  //#endregion
30
30
  export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react18 from "react";
2
+ import * as react12 from "react";
3
3
  import { DatePickerProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/DatePicker/DatePicker.d.ts
@@ -8,10 +8,10 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant'> & {
8
8
  meta?: string;
9
9
  loading?: boolean;
10
10
  };
11
- declare const DatePicker$1: react18.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
11
+ declare const DatePicker$1: react12.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react18.RefAttributes<HTMLDivElement>>;
15
+ } & react12.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react16 from "react";
2
+ import * as react14 from "react";
3
3
  import { DateRangePickerProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/DateRangePicker/DateRangePicker.d.ts
@@ -8,10 +8,10 @@ type DateRangePickerProps$1 = Omit<DateRangePickerProps, 'variant'> & {
8
8
  meta?: string;
9
9
  loading?: boolean;
10
10
  };
11
- declare const DateRangePicker$1: react16.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
11
+ declare const DateRangePicker$1: react14.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react16.RefAttributes<HTMLDivElement>>;
15
+ } & react14.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
@@ -1,4 +1,4 @@
1
- import * as react101 from "react";
1
+ import * as react16 from "react";
2
2
  import { ReactNode } from "react";
3
3
  import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
4
4
  import { IconData } from "@equinor/eds-icons";
@@ -51,6 +51,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
51
51
  * @param additionalInfo - Defaults to empty, and won't show the additional info button
52
52
  * Also inherits props from EDS dialog
53
53
  */
54
- declare const Dialog$1: react101.ForwardRefExoticComponent<DialogProps$1 & react101.RefAttributes<HTMLDivElement>>;
54
+ declare const Dialog$1: react16.ForwardRefExoticComponent<DialogProps$1 & react16.RefAttributes<HTMLDivElement>>;
55
55
  //#endregion
56
56
  export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
@@ -1,11 +1,11 @@
1
1
  import { SizeIconProps } from "../../atoms/types/Icon.js";
2
- import * as react10 from "react";
2
+ import * as react18 from "react";
3
3
 
4
4
  //#region src/molecules/EquinorLogo/EquinorLogo.d.ts
5
5
  interface EquinorLogoProps extends Partial<SizeIconProps> {
6
6
  large?: boolean;
7
7
  color?: 'red' | 'white' | 'black';
8
8
  }
9
- declare const EquinorLogo: react10.ForwardRefExoticComponent<EquinorLogoProps & react10.RefAttributes<SVGSVGElement>>;
9
+ declare const EquinorLogo: react18.ForwardRefExoticComponent<EquinorLogoProps & react18.RefAttributes<SVGSVGElement>>;
10
10
  //#endregion
11
11
  export { EquinorLogo, EquinorLogoProps };
@@ -1,5 +1,5 @@
1
1
  import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
2
- import * as react14 from "react";
2
+ import * as react20 from "react";
3
3
  import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
4
4
  import { IconData } from "@equinor/eds-icons";
5
5
 
@@ -49,6 +49,6 @@ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
49
49
  * @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
50
50
  * @returns {JSX.Element} The rendered IconCell.
51
51
  */
52
- declare const IconCell: react14.ForwardRefExoticComponent<IconCellProps & react14.RefAttributes<HTMLButtonElement>>;
52
+ declare const IconCell: react20.ForwardRefExoticComponent<IconCellProps & react20.RefAttributes<HTMLButtonElement>>;
53
53
  //#endregion
54
54
  export { IconCell, IconCellProps };
@@ -1,4 +1,4 @@
1
- import * as react99 from "react";
1
+ import * as react95 from "react";
2
2
  import { FocusEventHandler, HTMLAttributes, MouseEventHandler, ReactNode } from "react";
3
3
  import { IconData } from "@equinor/eds-icons";
4
4
 
@@ -15,6 +15,6 @@ interface ListItemProps extends HTMLAttributes<HTMLButtonElement> {
15
15
  isChild?: boolean;
16
16
  borderBottom?: boolean;
17
17
  }
18
- declare const ListItem: react99.ForwardRefExoticComponent<ListItemProps & react99.RefAttributes<HTMLButtonElement>>;
18
+ declare const ListItem: react95.ForwardRefExoticComponent<ListItemProps & react95.RefAttributes<HTMLButtonElement>>;
19
19
  //#endregion
20
20
  export { ListItem, ListItemProps };
@@ -1,4 +1,4 @@
1
- import * as react36 from "react";
1
+ import * as react22 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: react36.ForwardRefExoticComponent<{
9
+ declare const OptionalTooltip: react22.ForwardRefExoticComponent<{
10
10
  textTransform?: string;
11
11
  } & {
12
12
  placement?: _floating_ui_utils0.Placement;
13
- title?: react36.ReactNode;
13
+ title?: react22.ReactNode;
14
14
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
15
15
  enterDelay?: number;
16
16
  portalContainer?: HTMLElement;
17
- } & Omit<react36.HTMLAttributes<HTMLDivElement>, "title"> & react36.RefAttributes<HTMLDivElement>>;
17
+ } & Omit<react22.HTMLAttributes<HTMLDivElement>, "title"> & react22.RefAttributes<HTMLDivElement>>;
18
18
  //#endregion
19
19
  export { OptionalTooltip, OptionalTooltipProps };
@@ -1,4 +1,4 @@
1
- import * as react40 from "react";
1
+ import * as react26 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: react40.ForwardRefExoticComponent<ProfileAvatarProps & react40.RefAttributes<HTMLDivElement>>;
10
+ declare const ProfileAvatar: react26.ForwardRefExoticComponent<ProfileAvatarProps & react26.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 react20 from "react";
4
+ import * as react36 from "react";
5
5
  import { FC } from "react";
6
6
  import * as styled_components0 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_types5 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_components0.FastOmit<react20.DetailedHTMLProps<react20.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
- Bars: styled_components_dist_types1.IStyledComponentBase<"web", styled_components0.FastOmit<react20.DetailedHTMLProps<react20.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
19
- Button: react20.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react20.RefAttributes<HTMLButtonElement>>;
20
- Section: styled_components_dist_types1.IStyledComponentBase<"web", styled_components0.FastOmit<react20.DetailedHTMLProps<react20.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
17
+ Bar: styled_components_dist_types5.IStyledComponentBase<"web", styled_components0.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
+ Bars: styled_components_dist_types5.IStyledComponentBase<"web", styled_components0.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
19
+ Button: react36.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react36.RefAttributes<HTMLButtonElement>>;
20
+ Section: styled_components_dist_types5.IStyledComponentBase<"web", styled_components0.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
21
21
  AddImageButton: FC<AddImageProps>;
22
22
  };
23
23
  declare const EditorText: {
@@ -4,13 +4,13 @@ import { MenuBarProps } from "./MenuBar/MenuBar.js";
4
4
  import { RichTextEditor } from "./RichTextEditor.js";
5
5
  import * as react28 from "react";
6
6
  import * as _tiptap_react0 from "@tiptap/react";
7
- import * as styled_components_dist_types4 from "styled-components/dist/types";
7
+ import * as styled_components_dist_types1 from "styled-components/dist/types";
8
8
 
9
9
  //#region src/molecules/RichTextEditor/index.d.ts
10
10
  declare const RichText: {
11
- Styling: styled_components_dist_types4.IStyledComponentBase<"web", styled_components_dist_types4.Substitute<react28.DetailedHTMLProps<react28.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, EditorStylingProps>> & string;
11
+ Styling: styled_components_dist_types1.IStyledComponentBase<"web", styled_components_dist_types1.Substitute<react28.DetailedHTMLProps<react28.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, EditorStylingProps>> & string;
12
12
  Provider: react28.FC<EditorProviderProps>;
13
- Content: styled_components_dist_types4.IStyledComponentBase<"web", styled_components_dist_types4.Substitute<Omit<_tiptap_react0.EditorContentProps, "ref"> & react28.RefAttributes<HTMLDivElement>, RichTextContentProps>> & string & Omit<react28.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react28.RefAttributes<HTMLDivElement>>, keyof react28.Component<any, {}, any>>;
13
+ Content: styled_components_dist_types1.IStyledComponentBase<"web", styled_components_dist_types1.Substitute<Omit<_tiptap_react0.EditorContentProps, "ref"> & react28.RefAttributes<HTMLDivElement>, RichTextContentProps>> & string & Omit<react28.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react28.RefAttributes<HTMLDivElement>>, keyof react28.Component<any, {}, any>>;
14
14
  Bar: react28.FC<MenuBarProps>;
15
15
  };
16
16
  //#endregion
@@ -1,7 +1,7 @@
1
- import * as react42 from "react";
1
+ import * as react44 from "react";
2
2
  import { SearchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/Search/Search.d.ts
5
- declare const Search$1: react42.ForwardRefExoticComponent<SearchProps & react42.RefAttributes<HTMLInputElement>>;
5
+ declare const Search$1: react44.ForwardRefExoticComponent<SearchProps & react44.RefAttributes<HTMLInputElement>>;
6
6
  //#endregion
7
7
  export { Search$1 as Search };
@@ -1,5 +1,5 @@
1
1
  import { BaseChipProps, ClickableChipProps, DeletableChipProps } from "../Chip/Chip.js";
2
- import * as react46 from "react";
2
+ import * as react48 from "react";
3
3
  import "@equinor/eds-core-react";
4
4
  import "styled-components";
5
5
  import * as styled_components_dist_types10 from "styled-components/dist/types";
@@ -11,12 +11,12 @@ interface ComboBoxChipProps {
11
11
  $lightBackground?: boolean;
12
12
  className: string;
13
13
  }
14
- declare const ComboBoxChip: styled_components_dist_types10.IStyledComponentBase<"web", styled_components_dist_types10.Substitute<((Omit<react46.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
14
+ declare const ComboBoxChip: styled_components_dist_types10.IStyledComponentBase<"web", styled_components_dist_types10.Substitute<((Omit<react48.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
15
15
  onClick?: undefined;
16
16
  onDelete?: undefined;
17
- }) | ClickableChipProps | DeletableChipProps)) & react46.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types10.BaseObject, ComboBoxChipProps>> & string & Omit<react46.ForwardRefExoticComponent<(Omit<react46.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
17
+ }) | ClickableChipProps | DeletableChipProps)) & react48.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types10.BaseObject, ComboBoxChipProps>> & string & Omit<react48.ForwardRefExoticComponent<(Omit<react48.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
18
18
  onClick?: undefined;
19
19
  onDelete?: undefined;
20
- }) | ClickableChipProps | DeletableChipProps)) & react46.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react46.Component<any, {}, any>>;
20
+ }) | ClickableChipProps | DeletableChipProps)) & react48.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react48.Component<any, {}, any>>;
21
21
  //#endregion
22
22
  export { ComboBoxChip };
@@ -1,4 +1,4 @@
1
- import * as react93 from "react";
1
+ import * as react99 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: react93.ForwardRefExoticComponent<RadioProps$1 & react93.RefAttributes<HTMLInputElement>>;
10
+ declare const Radio$1: react99.ForwardRefExoticComponent<RadioProps$1 & react99.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Radio$1 as Radio, RadioProps$1 as RadioProps };
@@ -1,10 +1,10 @@
1
- import * as react95 from "react";
1
+ import * as react101 from "react";
2
2
  import { SwitchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Switch/Switch.d.ts
5
5
  interface SwitchProps$1 extends SwitchProps {
6
6
  outlined?: boolean;
7
7
  }
8
- declare const Switch$1: react95.ForwardRefExoticComponent<SwitchProps$1 & react95.RefAttributes<HTMLInputElement>>;
8
+ declare const Switch$1: react101.ForwardRefExoticComponent<SwitchProps$1 & react101.RefAttributes<HTMLInputElement>>;
9
9
  //#endregion
10
10
  export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
@@ -1,4 +1,4 @@
1
- import * as react44 from "react";
1
+ import * as react46 from "react";
2
2
  import * as styled_components_dist_types8 from "styled-components/dist/types";
3
3
  import * as styled_components_dist_models_Keyframes0 from "styled-components/dist/models/Keyframes";
4
4
 
@@ -7,6 +7,6 @@ declare const skeletonBaseloading: styled_components_dist_models_Keyframes0.defa
7
7
  interface SkeletonBaseProps {
8
8
  $offset?: number;
9
9
  }
10
- declare const SkeletonBase: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<react44.DetailedHTMLProps<react44.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonBaseProps>> & string;
10
+ declare const SkeletonBase: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<react46.DetailedHTMLProps<react46.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonBaseProps>> & string;
11
11
  //#endregion
12
12
  export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
@@ -1,4 +1,4 @@
1
- import * as react107 from "react";
1
+ import * as react115 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: react107.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react107.RefAttributes<HTMLDivElement>>;
19
+ declare const SideBar: react115.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react115.RefAttributes<HTMLDivElement>>;
20
20
  //#endregion
21
21
  export { SideBar };
@@ -1,10 +1,10 @@
1
- import * as react111 from "react";
1
+ import * as react103 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: react111.ForwardRefExoticComponent<ActionProps & react111.RefAttributes<HTMLButtonElement>>;
8
+ declare const Action: react103.ForwardRefExoticComponent<ActionProps & react103.RefAttributes<HTMLButtonElement>>;
9
9
  //#endregion
10
10
  export { Action };
@@ -1,9 +1,9 @@
1
- import * as react113 from "react";
1
+ import * as react105 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: react113.ForwardRefExoticComponent<DescriptionProps & react113.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Description: react105.ForwardRefExoticComponent<DescriptionProps & react105.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Description };
@@ -1,4 +1,4 @@
1
- import * as react115 from "react";
1
+ import * as react107 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: react115.ForwardRefExoticComponent<MissingAccessesProps & react115.RefAttributes<HTMLDivElement>>;
12
+ declare const MissingAccesses: react107.ForwardRefExoticComponent<MissingAccessesProps & react107.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { MissingAccesses };
@@ -1,9 +1,9 @@
1
- import * as react103 from "react";
1
+ import * as react109 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: react103.ForwardRefExoticComponent<TitleProps & react103.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Title: react109.ForwardRefExoticComponent<TitleProps & react109.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Title };
@@ -1,7 +1,7 @@
1
1
  import { ToggleGroup } from "./ToggleGroup.types.js";
2
- import * as react119 from "react";
2
+ import * as react117 from "react";
3
3
 
4
4
  //#region src/organisms/ToggleGroup/ToggleGroup.d.ts
5
- declare const ToggleGroup$1: react119.ForwardRefExoticComponent<ToggleGroup & react119.RefAttributes<HTMLDivElement>>;
5
+ declare const ToggleGroup$1: react117.ForwardRefExoticComponent<ToggleGroup & react117.RefAttributes<HTMLDivElement>>;
6
6
  //#endregion
7
7
  export { ToggleGroup$1 as ToggleGroup };
@@ -26,4 +26,13 @@ import{colors as e}from"../../atoms/style/colors.js";import{shape as t}from"../.
26
26
  ${({$matchParentHeight:e})=>e?o`
27
27
  height: 100%;
28
28
  `:``}
29
- `,l=i(({variant:e=`filled`,matchParentHeight:t=!1,children:i},a)=>s(c,{ref:a,$variant:e,$matchParentHeight:t,children:r.map(i,e=>{if(e.type!=n)throw`Expected child to be ToggleGroupOption!`;return e})}));l.displayName=`ToggleGroup`;export{l as ToggleGroup};
29
+
30
+ ${({$gridTemplateColumns:e})=>e?o`
31
+ display: grid;
32
+ grid-template-columns: ${e};
33
+
34
+ > button {
35
+ justify-content: center;
36
+ }
37
+ `:``}
38
+ `,l=i(({variant:e=`filled`,matchParentHeight:t=!1,matchParentWidth:i=!1,children:a},o)=>s(c,{ref:o,$variant:e,$matchParentHeight:t,$gridTemplateColumns:i?`repeat(${a.length}, minmax(0, 1fr))`:void 0,children:r.map(a,e=>{if(e.type!=n)throw`Expected child to be ToggleGroupOption!`;return e})}));l.displayName=`ToggleGroup`;export{l as ToggleGroup};
@@ -20,6 +20,7 @@ type ToggleGroupOption = {
20
20
  interface ToggleGroup {
21
21
  variant?: 'filled' | 'outlined' | 'ghost';
22
22
  matchParentHeight?: boolean;
23
+ matchParentWidth?: boolean;
23
24
  children: ReactElement<ToggleGroupOption>[];
24
25
  }
25
26
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { ToggleGroupOption } from "./ToggleGroup.types.js";
2
- import * as react121 from "react";
2
+ import * as react119 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: react121.ForwardRefExoticComponent<ToggleGroupOptionProps & react121.RefAttributes<HTMLButtonElement>>;
7
+ declare const ToggleGroupOption$1: react119.ForwardRefExoticComponent<ToggleGroupOptionProps & react119.RefAttributes<HTMLButtonElement>>;
8
8
  //#endregion
9
9
  export { ToggleGroupOption$1 as ToggleGroupOption };
@@ -1,7 +1,7 @@
1
- import * as react109 from "react";
1
+ import * as react113 from "react";
2
2
  import { HTMLAttributes } from "react";
3
3
 
4
4
  //#region src/organisms/TopBar/Actions.d.ts
5
- declare const Actions: react109.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react109.RefAttributes<HTMLDivElement>>;
5
+ declare const Actions: react113.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react113.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 react105 from "react";
2
+ import * as react111 from "react";
3
3
 
4
4
  //#region src/organisms/TopBar/FieldMenu/FieldMenu.d.ts
5
5
  interface FieldMenuProps {
@@ -9,6 +9,6 @@ interface FieldMenuProps {
9
9
  itemNameSingular?: string;
10
10
  showAccessITLink?: boolean;
11
11
  }
12
- declare const FieldMenu: react105.ForwardRefExoticComponent<FieldMenuProps & react105.RefAttributes<HTMLDivElement>>;
12
+ declare const FieldMenu: react111.ForwardRefExoticComponent<FieldMenuProps & react111.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { FieldMenu };
@@ -1,4 +1,4 @@
1
- import * as react137 from "react";
1
+ import * as react139 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: react137.Context<NotificationContext | undefined>;
9
+ declare const NotificationContext: react139.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": "9.16.1-beta.0",
3
+ "version": "9.17.0-beta.0",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",