@equinor/eds-core-react 0.28.0 → 0.29.1-DEV03022023

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 (173) hide show
  1. package/dist/eds-core-react.cjs.js +445 -410
  2. package/dist/esm/components/Accordion/AccordionPanel.js +1 -1
  3. package/dist/esm/components/Autocomplete/Autocomplete.js +1 -1
  4. package/dist/esm/components/Breadcrumbs/Breadcrumb.js +1 -1
  5. package/dist/esm/components/Button/ToggleButton/ToggleButton.js +14 -2
  6. package/dist/esm/components/Dialog/Dialog.js +2 -2
  7. package/dist/esm/components/Dialog/DialogContent.js +2 -2
  8. package/dist/esm/components/Input/Input.js +1 -1
  9. package/dist/esm/components/Menu/Menu.js +17 -6
  10. package/dist/esm/components/Menu/MenuItem.js +4 -2
  11. package/dist/esm/components/Menu/MenuList.js +11 -3
  12. package/dist/esm/components/Paper/Paper.js +4 -3
  13. package/dist/esm/components/Popover/Popover.js +5 -5
  14. package/dist/esm/components/Scrim/Scrim.js +1 -1
  15. package/dist/esm/components/SideBar/SideBarToggle.js +2 -1
  16. package/dist/esm/components/Table/Cell.js +2 -1
  17. package/dist/esm/components/Table/Row/Row.js +2 -1
  18. package/dist/esm/components/Tabs/TabPanel.js +2 -1
  19. package/dist/esm/components/Tooltip/Tooltip.js +5 -5
  20. package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -1
  21. package/dist/types/components/Accordion/Accordion.types.d.ts +1 -1
  22. package/dist/types/components/Accordion/AccordionHeader.d.ts +1 -1
  23. package/dist/types/components/Accordion/AccordionHeaderActions.d.ts +1 -1
  24. package/dist/types/components/Accordion/AccordionHeaderTitle.d.ts +1 -1
  25. package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
  26. package/dist/types/components/Accordion/AccordionPanel.d.ts +1 -1
  27. package/dist/types/components/Accordion/index.d.ts +1 -1
  28. package/dist/types/components/Autocomplete/Autocomplete.d.ts +14 -14
  29. package/dist/types/components/Autocomplete/Option.d.ts +1 -1
  30. package/dist/types/components/Avatar/Avatar.d.ts +1 -1
  31. package/dist/types/components/Avatar/Avatar.tokens.d.ts +1 -1
  32. package/dist/types/components/Banner/Banner.d.ts +2 -2
  33. package/dist/types/components/Banner/Banner.tokens.d.ts +1 -1
  34. package/dist/types/components/Banner/BannerActions.d.ts +2 -2
  35. package/dist/types/components/Banner/BannerIcon.d.ts +2 -2
  36. package/dist/types/components/Banner/BannerMessage.d.ts +1 -1
  37. package/dist/types/components/Banner/index.d.ts +1 -1
  38. package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +2 -2
  39. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  40. package/dist/types/components/Breadcrumbs/index.d.ts +1 -1
  41. package/dist/types/components/Button/Button.d.ts +3 -3
  42. package/dist/types/components/Button/Button.types.d.ts +2 -2
  43. package/dist/types/components/Button/ButtonGroup/ButtonGroup.d.ts +1 -1
  44. package/dist/types/components/Button/ButtonGroup/ButtonGroup.tokens.d.ts +1 -1
  45. package/dist/types/components/Button/ToggleButton/ToggleButton.d.ts +1 -1
  46. package/dist/types/components/Button/index.d.ts +1 -1
  47. package/dist/types/components/Button/tokens/index.d.ts +1 -1
  48. package/dist/types/components/Card/Card.d.ts +2 -2
  49. package/dist/types/components/Card/Card.tokens.d.ts +1 -1
  50. package/dist/types/components/Card/CardActions.d.ts +1 -1
  51. package/dist/types/components/Card/CardContent.d.ts +1 -1
  52. package/dist/types/components/Card/CardHeader.d.ts +1 -1
  53. package/dist/types/components/Card/CardHeaderTitle.d.ts +1 -1
  54. package/dist/types/components/Card/CardMedia.d.ts +1 -1
  55. package/dist/types/components/Card/index.d.ts +1 -1
  56. package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
  57. package/dist/types/components/Checkbox/Checkbox.tokens.d.ts +1 -1
  58. package/dist/types/components/Checkbox/Input.d.ts +1 -1
  59. package/dist/types/components/Chip/Chip.d.ts +1 -1
  60. package/dist/types/components/Chip/Chip.tokens.d.ts +1 -1
  61. package/dist/types/components/Chip/Icon.d.ts +1 -1
  62. package/dist/types/components/Dialog/Dialog.d.ts +1 -1
  63. package/dist/types/components/Dialog/Dialog.tokens.d.ts +1 -1
  64. package/dist/types/components/Dialog/DialogActions.d.ts +1 -1
  65. package/dist/types/components/Dialog/DialogContent.d.ts +1 -1
  66. package/dist/types/components/Dialog/DialogHeader.d.ts +1 -1
  67. package/dist/types/components/Dialog/DialogTitle.d.ts +1 -1
  68. package/dist/types/components/Dialog/index.d.ts +1 -1
  69. package/dist/types/components/Divider/Divider.d.ts +1 -1
  70. package/dist/types/components/Divider/Divider.tokens.d.ts +2 -2
  71. package/dist/types/components/EdsProvider/eds.context.d.ts +4 -4
  72. package/dist/types/components/Icon/Icon.d.ts +1 -1
  73. package/dist/types/components/Icon/Icon.types.d.ts +3 -3
  74. package/dist/types/components/Icon/library.d.ts +1 -1
  75. package/dist/types/components/Input/Input.d.ts +1 -1
  76. package/dist/types/components/Input/Input.tokens.d.ts +1 -1
  77. package/dist/types/components/InputWrapper/HelperText/HelperText.d.ts +1 -1
  78. package/dist/types/components/InputWrapper/HelperText/HelperText.token.d.ts +1 -1
  79. package/dist/types/components/InputWrapper/InputWrapper.d.ts +1 -1
  80. package/dist/types/components/InputWrapper/InputWrapper.tokens.d.ts +1 -1
  81. package/dist/types/components/Label/Label.d.ts +1 -1
  82. package/dist/types/components/Label/Label.tokens.d.ts +1 -1
  83. package/dist/types/components/List/List.d.ts +1 -1
  84. package/dist/types/components/List/List.tokens.d.ts +1 -1
  85. package/dist/types/components/List/ListItem.d.ts +1 -1
  86. package/dist/types/components/List/index.d.ts +1 -1
  87. package/dist/types/components/Menu/Menu.context.d.ts +3 -3
  88. package/dist/types/components/Menu/Menu.d.ts +2 -2
  89. package/dist/types/components/Menu/Menu.tokens.d.ts +1 -1
  90. package/dist/types/components/Menu/Menu.types.d.ts +1 -1
  91. package/dist/types/components/Menu/MenuItem.d.ts +5 -1
  92. package/dist/types/components/Menu/MenuList.d.ts +2 -1
  93. package/dist/types/components/Menu/MenuSection.d.ts +1 -1
  94. package/dist/types/components/Menu/index.d.ts +1 -1
  95. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  96. package/dist/types/components/Pagination/PaginationItem.d.ts +1 -1
  97. package/dist/types/components/Paper/Paper.d.ts +1 -1
  98. package/dist/types/components/Paper/Paper.tokens.d.ts +1 -1
  99. package/dist/types/components/Popover/Popover.d.ts +2 -2
  100. package/dist/types/components/Popover/Popover.tokens.d.ts +1 -1
  101. package/dist/types/components/Popover/PopoverActions.d.ts +1 -1
  102. package/dist/types/components/Popover/PopoverContent.d.ts +1 -1
  103. package/dist/types/components/Popover/PopoverHeader.d.ts +1 -1
  104. package/dist/types/components/Popover/PopoverTitle.d.ts +1 -1
  105. package/dist/types/components/Popover/index.d.ts +1 -1
  106. package/dist/types/components/Progress/Circular/CircularProgress.d.ts +1 -1
  107. package/dist/types/components/Progress/Circular/CircularProgress.tokens.d.ts +1 -1
  108. package/dist/types/components/Progress/Dots/DotProgress.d.ts +1 -1
  109. package/dist/types/components/Progress/Dots/DotProgress.tokens.d.ts +1 -1
  110. package/dist/types/components/Progress/Linear/LinearProgress.d.ts +1 -1
  111. package/dist/types/components/Progress/Linear/LinearProgress.tokens.d.ts +1 -1
  112. package/dist/types/components/Progress/Star/StarProgress.d.ts +1 -1
  113. package/dist/types/components/Progress/index.d.ts +1 -1
  114. package/dist/types/components/Radio/Radio.d.ts +1 -1
  115. package/dist/types/components/Radio/Radio.tokens.d.ts +1 -1
  116. package/dist/types/components/Scrim/Scrim.d.ts +1 -1
  117. package/dist/types/components/Search/Search.d.ts +1 -1
  118. package/dist/types/components/Select/NativeSelect/NativeSelect.d.ts +1 -1
  119. package/dist/types/components/Select/NativeSelect/NativeSelect.tokens.d.ts +1 -1
  120. package/dist/types/components/SideBar/SideBar.context.d.ts +3 -3
  121. package/dist/types/components/SideBar/SideBarButton/index.d.ts +1 -1
  122. package/dist/types/components/SideBar/SideBarContent.d.ts +1 -1
  123. package/dist/types/components/SideBar/SideBarFooter.d.ts +1 -1
  124. package/dist/types/components/SideBar/SideBarToggle.d.ts +1 -1
  125. package/dist/types/components/SideBar/SidebarLink/index.d.ts +2 -2
  126. package/dist/types/components/SideBar/index.d.ts +1 -1
  127. package/dist/types/components/SideSheet/SideSheet.d.ts +1 -1
  128. package/dist/types/components/SideSheet/SideSheet.tokens.d.ts +1 -1
  129. package/dist/types/components/Slider/Slider.d.ts +1 -1
  130. package/dist/types/components/Slider/Slider.tokens.d.ts +1 -1
  131. package/dist/types/components/Snackbar/Snackbar.d.ts +1 -1
  132. package/dist/types/components/Snackbar/Snackbar.tokens.d.ts +1 -1
  133. package/dist/types/components/Snackbar/SnackbarAction.d.ts +1 -1
  134. package/dist/types/components/Snackbar/index.d.ts +1 -1
  135. package/dist/types/components/Switch/Switch.d.ts +1 -1
  136. package/dist/types/components/Switch/Switch.tokens.d.ts +1 -1
  137. package/dist/types/components/Table/Body.d.ts +1 -1
  138. package/dist/types/components/Table/Caption.d.ts +1 -1
  139. package/dist/types/components/Table/Cell.d.ts +1 -1
  140. package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +3 -3
  141. package/dist/types/components/Table/Head/Head.d.ts +1 -1
  142. package/dist/types/components/Table/HeaderCell/HeaderCell.tokens.d.ts +1 -1
  143. package/dist/types/components/Table/Inner.context.d.ts +1 -1
  144. package/dist/types/components/Table/Row/Row.d.ts +1 -1
  145. package/dist/types/components/Table/Table.d.ts +1 -1
  146. package/dist/types/components/Table/Table.types.d.ts +2 -2
  147. package/dist/types/components/Table/index.d.ts +1 -1
  148. package/dist/types/components/TableOfContents/LinkItem.d.ts +1 -1
  149. package/dist/types/components/TableOfContents/TableOfContents.d.ts +1 -1
  150. package/dist/types/components/TableOfContents/TableOfContents.tokens.d.ts +1 -1
  151. package/dist/types/components/TableOfContents/index.d.ts +1 -1
  152. package/dist/types/components/Tabs/Tab.d.ts +2 -2
  153. package/dist/types/components/Tabs/TabList.d.ts +1 -1
  154. package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
  155. package/dist/types/components/Tabs/TabPanels.d.ts +1 -1
  156. package/dist/types/components/Tabs/Tabs.context.d.ts +1 -1
  157. package/dist/types/components/Tabs/Tabs.d.ts +1 -1
  158. package/dist/types/components/Tabs/Tabs.types.d.ts +1 -1
  159. package/dist/types/components/Tabs/index.d.ts +1 -1
  160. package/dist/types/components/TextField/TextField.d.ts +2 -2
  161. package/dist/types/components/Textarea/Textarea.d.ts +1 -1
  162. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
  163. package/dist/types/components/Tooltip/Tooltip.tokens.d.ts +1 -1
  164. package/dist/types/components/TopBar/Actions.d.ts +1 -1
  165. package/dist/types/components/TopBar/CustomContent.d.ts +1 -1
  166. package/dist/types/components/TopBar/Header.d.ts +1 -1
  167. package/dist/types/components/TopBar/TopBar.d.ts +2 -2
  168. package/dist/types/components/TopBar/TopBar.tokens.d.ts +1 -1
  169. package/dist/types/components/TopBar/index.d.ts +1 -1
  170. package/dist/types/components/Typography/Typography.d.ts +1 -1
  171. package/dist/types/components/Typography/Typography.tokens.d.ts +4 -4
  172. package/dist/types/components/types.d.ts +1 -1
  173. package/package.json +26 -26
@@ -1,9 +1,9 @@
1
1
  import { ElementType } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
- declare type OverridableSubComponent = OverridableComponent<BreadcrumbProps, HTMLAnchorElement> & {
3
+ type OverridableSubComponent = OverridableComponent<BreadcrumbProps, HTMLAnchorElement> & {
4
4
  displayName?: string;
5
5
  };
6
- export declare type BreadcrumbProps = {
6
+ export type BreadcrumbProps = {
7
7
  maxWidth?: number;
8
8
  /** Children is breadcrumb text */
9
9
  children: string;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- export declare type BreadcrumbsProps = {
2
+ export type BreadcrumbsProps = {
3
3
  collapse?: boolean;
4
4
  /** Children should be of Breadcrumb component */
5
5
  children: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { Breadcrumbs as BaseComponent, BreadcrumbsProps } from './Breadcrumbs';
2
2
  import { Breadcrumb, BreadcrumbProps } from './Breadcrumb';
3
- declare type BreadcrumbsCompoundProps = typeof BaseComponent & {
3
+ type BreadcrumbsCompoundProps = typeof BaseComponent & {
4
4
  Breadcrumb: typeof Breadcrumb;
5
5
  };
6
6
  declare const Breadcrumbs: BreadcrumbsCompoundProps;
@@ -1,8 +1,8 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
- declare type Colors = 'primary' | 'secondary' | 'danger';
4
- declare type Variants = 'contained' | 'contained_icon' | 'outlined' | 'ghost' | 'ghost_icon';
5
- export declare type ButtonProps = {
3
+ type Colors = 'primary' | 'secondary' | 'danger';
4
+ type Variants = 'contained' | 'contained_icon' | 'outlined' | 'ghost' | 'ghost_icon';
5
+ export type ButtonProps = {
6
6
  /** Specifies color */
7
7
  color?: Colors;
8
8
  /** Specifies which variant to use */
@@ -1,10 +1,10 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type ButtonToken = ComponentToken & {
2
+ export type ButtonToken = ComponentToken & {
3
3
  entities?: {
4
4
  icon: ComponentToken;
5
5
  };
6
6
  };
7
- export declare type ButtonTokenSet = {
7
+ export type ButtonTokenSet = {
8
8
  contained: ButtonToken;
9
9
  contained_icon: ButtonToken;
10
10
  outlined: ButtonToken;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type ButtonGroupProps = {
2
+ export type ButtonGroupProps = {
3
3
  /** Display ButtonGroup vertically. */
4
4
  vertical?: boolean;
5
5
  } & HTMLAttributes<HTMLDivElement>;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type GroupToken = ComponentToken;
2
+ type GroupToken = ComponentToken;
3
3
  export declare const group: GroupToken;
4
4
  export {};
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { ButtonGroupProps } from '../ButtonGroup';
3
- export declare type ToggleButtonProps = {
3
+ export type ToggleButtonProps = {
4
4
  /** Multiple */
5
5
  multiple?: boolean;
6
6
  /** Array of selected indexses. */
@@ -1,7 +1,7 @@
1
1
  import { Button as ButtonWrapper, ButtonProps } from './Button';
2
2
  import { ButtonGroup, ButtonGroupProps } from './ButtonGroup/ButtonGroup';
3
3
  import { ToggleButton, ToggleButtonProps } from './ToggleButton/ToggleButton';
4
- declare type ButtonCompoundProps = typeof ButtonWrapper & {
4
+ type ButtonCompoundProps = typeof ButtonWrapper & {
5
5
  Group: typeof ButtonGroup;
6
6
  Toggle: typeof ToggleButton;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { ButtonTokenSet } from '../Button.types';
2
- declare type ButtonTokens = {
2
+ type ButtonTokens = {
3
3
  primary: ButtonTokenSet;
4
4
  secondary: ButtonTokenSet;
5
5
  danger: ButtonTokenSet;
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import type { Elevations } from '@equinor/eds-tokens';
3
- declare type AvailableElevations = keyof Pick<Elevations, 'none' | 'raised' | 'overlay'>;
4
- export declare type CardProps = {
3
+ type AvailableElevations = keyof Pick<Elevations, 'none' | 'raised' | 'overlay'>;
4
+ export type CardProps = {
5
5
  /** Variant */
6
6
  variant?: 'default' | 'info' | 'warning' | 'danger';
7
7
  /** Elevation */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type CardToken = ComponentToken;
2
+ export type CardToken = ComponentToken;
3
3
  export declare const primary: CardToken;
4
4
  export declare const info: CardToken;
5
5
  export declare const danger: CardToken;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type CardActionsProps = {
2
+ export type CardActionsProps = {
3
3
  /** Should the actions be right aligned */
4
4
  alignRight?: boolean;
5
5
  /** Meta information */
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type CardContentProps = HTMLAttributes<HTMLDivElement>;
2
+ export type CardContentProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const CardContent: import("react").ForwardRefExoticComponent<CardContentProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
2
+ export type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const CardHeader: import("react").ForwardRefExoticComponent<CardHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type CardHeaderTitleProps = HTMLAttributes<HTMLDivElement>;
2
+ export type CardHeaderTitleProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const CardHeaderTitle: import("react").ForwardRefExoticComponent<CardHeaderTitleProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type CardMediaProps = {
2
+ export type CardMediaProps = {
3
3
  /** Should the media be full width or not */
4
4
  fullWidth?: boolean;
5
5
  } & HTMLAttributes<HTMLDivElement>;
@@ -4,7 +4,7 @@ import { CardContent, CardContentProps } from './CardContent';
4
4
  import { CardMedia, CardMediaProps } from './CardMedia';
5
5
  import { CardHeader, CardHeaderProps } from './CardHeader';
6
6
  import { CardHeaderTitle, CardHeaderTitleProps } from './CardHeaderTitle';
7
- declare type CardCompoundProps = typeof CardWrapper & {
7
+ type CardCompoundProps = typeof CardWrapper & {
8
8
  Actions: typeof CardActions;
9
9
  Content: typeof CardContent;
10
10
  Header: typeof CardHeader;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export declare type CheckboxProps = {
2
+ export type CheckboxProps = {
3
3
  /** Label for the checkbox
4
4
  */
5
5
  label?: string;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type CheckboxToken = ComponentToken;
2
+ type CheckboxToken = ComponentToken;
3
3
  export declare const checkbox: CheckboxToken;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export declare type InputProps = {
2
+ export type InputProps = {
3
3
  /** If true, the checkbox will be disabled */
4
4
  disabled?: boolean;
5
5
  /** If true, the checkbox appears indeterminate. Important! You'll have to
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type ChipProps = {
2
+ export type ChipProps = {
3
3
  /** Disabled */
4
4
  disabled?: boolean;
5
5
  /** Delete callback */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type ChipToken = ComponentToken & {
2
+ export type ChipToken = ComponentToken & {
3
3
  entities: {
4
4
  icon: ComponentToken;
5
5
  };
@@ -1,4 +1,4 @@
1
- declare type IconProps = {
1
+ type IconProps = {
2
2
  variant: 'active' | 'error' | 'default';
3
3
  disabled: boolean;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type DialogProps = {
2
+ export type DialogProps = {
3
3
  /** Whether Dialog can be dismissed with esc key and outside click
4
4
  */
5
5
  isDismissable?: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type DialogToken = ComponentToken;
2
+ type DialogToken = ComponentToken;
3
3
  export declare const dialog: DialogToken;
4
4
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare type DialogActionsProps = React.HTMLAttributes<HTMLDivElement>;
2
+ export type DialogActionsProps = React.HTMLAttributes<HTMLDivElement>;
3
3
  export declare const DialogActions: import("react").ForwardRefExoticComponent<DialogActionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type DialogContentProps = {
2
+ export type DialogContentProps = {
3
3
  /** Control if the content should be scrollable */
4
4
  scrollable?: boolean;
5
5
  } & HTMLAttributes<HTMLDivElement>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type DialogHeaderProps = HTMLAttributes<HTMLDivElement>;
2
+ export type DialogHeaderProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const DialogHeader: import("react").ForwardRefExoticComponent<DialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare type DialogTitleProps = React.HTMLAttributes<HTMLDivElement>;
2
+ export type DialogTitleProps = React.HTMLAttributes<HTMLDivElement>;
3
3
  export declare const DialogTitle: import("react").ForwardRefExoticComponent<DialogTitleProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -3,7 +3,7 @@ import { DialogActions, DialogActionsProps } from './DialogActions';
3
3
  import { DialogTitle, DialogTitleProps } from './DialogTitle';
4
4
  import { DialogContent, DialogContentProps } from './DialogContent';
5
5
  import { DialogHeader, DialogHeaderProps } from './DialogHeader';
6
- declare type CompoundDialogProps = typeof BaseComponent & {
6
+ type CompoundDialogProps = typeof BaseComponent & {
7
7
  Actions: typeof DialogActions;
8
8
  Title: typeof DialogTitle;
9
9
  CustomContent: typeof DialogContent;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type DividerProps = {
2
+ export type DividerProps = {
3
3
  /** Color variants */
4
4
  color?: 'lighter' | 'light' | 'medium';
5
5
  /** Vertical spacings */
@@ -1,6 +1,6 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type DividerToken = ComponentToken;
3
- declare type DividerVariantsToken = {
2
+ type DividerToken = ComponentToken;
3
+ type DividerVariantsToken = {
4
4
  lighter: DividerToken;
5
5
  light: DividerToken;
6
6
  mediumColor: DividerToken;
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type Density = 'compact' | 'comfortable';
3
- declare type State = {
2
+ export type Density = 'compact' | 'comfortable';
3
+ type State = {
4
4
  density: Density;
5
5
  };
6
- declare type UseEdsProps<T> = {
6
+ type UseEdsProps<T> = {
7
7
  /** Use this to update the `density` from nested components in `EdsProvider` */
8
8
  setDensity: (density: Density) => void;
9
9
  } & T;
10
- export declare type EdsProviderProps = {
10
+ export type EdsProviderProps = {
11
11
  density?: Density;
12
12
  children: ReactNode;
13
13
  };
@@ -1,7 +1,7 @@
1
1
  import { Ref, SVGProps } from 'react';
2
2
  import type { IconData } from '@equinor/eds-icons';
3
3
  import type { Name } from './Icon.types';
4
- export declare type IconProps = {
4
+ export type IconProps = {
5
5
  /** Title for icon when used semantically */
6
6
  title?: string;
7
7
  /** Color */
@@ -1,11 +1,11 @@
1
1
  import type { IconData, IconName } from '@equinor/eds-icons';
2
2
  import { Icon } from './Icon';
3
3
  import { add } from './library';
4
- export declare type IconBasket = {
4
+ export type IconBasket = {
5
5
  icon?: IconData;
6
6
  count: number;
7
7
  };
8
- export declare type Name = IconName | string;
9
- export declare type IconType = typeof Icon & {
8
+ export type Name = IconName | string;
9
+ export type IconType = typeof Icon & {
10
10
  add: typeof add;
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import type { IconData } from '@equinor/eds-icons';
2
2
  import type { IconBasket, Name } from './Icon.types';
3
- declare type IconRecord = Record<Name, IconData>;
3
+ type IconRecord = Record<Name, IconData>;
4
4
  /** Add icons to library to be used for rendering using name.
5
5
  This needs to be done lonly once */
6
6
  export declare const add: (icons: IconRecord) => void;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, CSSProperties, ElementType, ComponentPropsWithoutRef } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
3
  import type { Variants } from '../types';
4
- export declare type InputProps = {
4
+ export type InputProps = {
5
5
  /** Placeholder */
6
6
  placeholder?: string;
7
7
  /** Variant */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type InputToken = ComponentToken;
2
+ export type InputToken = ComponentToken;
3
3
  export declare const input: InputToken;
4
4
  export declare const error: InputToken;
5
5
  export declare const warning: InputToken;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, HTMLAttributes } from 'react';
2
- export declare type HelperTextProps = {
2
+ export type HelperTextProps = {
3
3
  /** Helper text */
4
4
  text?: string;
5
5
  /** Icon */
@@ -1,5 +1,5 @@
1
1
  import type { Spacing, Typography } from '@equinor/eds-tokens';
2
- export declare type HelperTextProps = {
2
+ export type HelperTextProps = {
3
3
  background: string;
4
4
  typography: Typography;
5
5
  spacings: {
@@ -2,7 +2,7 @@ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { LabelProps } from '../Label';
3
3
  import { HelperTextProps } from './HelperText';
4
4
  import { Variants } from '../types';
5
- export declare type InputWrapperProps = {
5
+ export type InputWrapperProps = {
6
6
  /** Label */
7
7
  label?: string;
8
8
  /** Disabled state */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type InputToken = ComponentToken;
2
+ export type InputToken = ComponentToken;
3
3
  export declare const input: InputToken;
4
4
  export declare const error: InputToken;
5
5
  export declare const warning: InputToken;
@@ -1,5 +1,5 @@
1
1
  import { LabelHTMLAttributes } from 'react';
2
- export declare type LabelProps = {
2
+ export type LabelProps = {
3
3
  label: string;
4
4
  meta?: string;
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type LabelToken = ComponentToken;
2
+ type LabelToken = ComponentToken;
3
3
  export declare const label: LabelToken;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type ListProps = {
2
+ export type ListProps = {
3
3
  /** Is the list an ordered or unordered list */
4
4
  variant?: 'bullet' | 'numbered';
5
5
  /** Start number if other than 1 for ordered lists */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type ListToken = ComponentToken;
2
+ type ListToken = ComponentToken;
3
3
  export declare const list: ListToken;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
2
+ export type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
3
3
  declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<HTMLLIElement>>;
4
4
  export { ListItem };
@@ -1,6 +1,6 @@
1
1
  import { List as BaseComponent, ListProps } from './List';
2
2
  import { ListItem, ListItemProps } from './ListItem';
3
- declare type ListCompoundProps = typeof BaseComponent & {
3
+ type ListCompoundProps = typeof BaseComponent & {
4
4
  Item: typeof ListItem;
5
5
  };
6
6
  declare const List: ListCompoundProps;
@@ -1,16 +1,16 @@
1
1
  import { ReactNode, MouseEvent } from 'react';
2
2
  import type { FocusTarget } from './Menu.types';
3
- export declare type State = {
3
+ export type State = {
4
4
  focusedIndex: number;
5
5
  initialFocus: FocusTarget;
6
6
  onClose: (e?: MouseEvent) => void;
7
7
  };
8
- declare type UseMenu<T> = T & {
8
+ type UseMenu<T> = T & {
9
9
  setFocusedIndex: (index: number) => void;
10
10
  setInitialFocus: (initialFocus: FocusTarget) => void;
11
11
  setOnClose: (onClose: (e?: MouseEvent) => void) => void;
12
12
  };
13
- declare type ProviderProps = {
13
+ type ProviderProps = {
14
14
  children: ReactNode;
15
15
  };
16
16
  export declare const MenuProvider: ({ children }: ProviderProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { Placement } from '@floating-ui/react-dom-interactions';
3
- export declare type MenuProps = {
2
+ import { Placement } from '@floating-ui/react';
3
+ export type MenuProps = {
4
4
  /** Anchor element for Menu */
5
5
  anchorEl?: HTMLElement | null;
6
6
  /** Is Menu open */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type MenuToken = ComponentToken;
2
+ type MenuToken = ComponentToken;
3
3
  export declare const menu: MenuToken;
4
4
  export {};
@@ -1 +1 @@
1
- export declare type FocusTarget = 'first' | 'last';
1
+ export type FocusTarget = 'first' | 'last';
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent } from 'react';
2
- export declare type MenuItemProps = {
2
+ export type MenuItemProps = {
3
3
  /** @ignore */
4
4
  index?: number;
5
5
  /** Is active */
@@ -8,6 +8,8 @@ export declare type MenuItemProps = {
8
8
  disabled?: boolean;
9
9
  /** onClick handler */
10
10
  onClick?: (e: React.MouseEvent) => void;
11
+ /** Close menu when item is clicked */
12
+ closeMenuOnClick?: boolean;
11
13
  } & React.HTMLAttributes<HTMLButtonElement>;
12
14
  export declare const MenuItem: import("react").ForwardRefExoticComponent<{
13
15
  /** @ignore */
@@ -18,4 +20,6 @@ export declare const MenuItem: import("react").ForwardRefExoticComponent<{
18
20
  disabled?: boolean;
19
21
  /** onClick handler */
20
22
  onClick?: (e: React.MouseEvent) => void;
23
+ /** Close menu when item is clicked */
24
+ closeMenuOnClick?: boolean;
21
25
  } & import("react").HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- declare type MenuListProps = {
2
+ type MenuListProps = {
3
3
  children: ReactNode;
4
+ addCloseMenuOnClickIndex: (index: number) => void;
4
5
  };
5
6
  export declare const MenuList: import("react").ForwardRefExoticComponent<MenuListProps & import("react").RefAttributes<HTMLDivElement>>;
6
7
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type MenuSectionProps = {
2
+ export type MenuSectionProps = {
3
3
  /** @ignore */
4
4
  index?: number;
5
5
  /** @ignore */
@@ -1,7 +1,7 @@
1
1
  import { Menu as BaseMenu, MenuProps } from './Menu';
2
2
  import { MenuItem, MenuItemProps } from './MenuItem';
3
3
  import { MenuSection, MenuSectionProps } from './MenuSection';
4
- declare type MenuType = typeof BaseMenu & {
4
+ type MenuType = typeof BaseMenu & {
5
5
  Item: typeof MenuItem;
6
6
  Section: typeof MenuSection;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent, KeyboardEvent, HTMLAttributes } from 'react';
2
- export declare type PaginationProps = {
2
+ export type PaginationProps = {
3
3
  /** Number of total items to be paginated */
4
4
  totalItems: number;
5
5
  /** To display total item count */
@@ -1,5 +1,5 @@
1
1
  import { MouseEvent, KeyboardEvent } from 'react';
2
- declare type PaginationItemProps = {
2
+ type PaginationItemProps = {
3
3
  page: number;
4
4
  selected: boolean;
5
5
  onClick?: (event: MouseEvent | KeyboardEvent) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ElevationTypes } from './Paper.tokens';
3
- export declare type PaperProps = {
3
+ export type PaperProps = {
4
4
  elevation: ElevationTypes;
5
5
  } & React.HTMLAttributes<HTMLDivElement>;
6
6
  export declare const Paper: import("react").ForwardRefExoticComponent<{
@@ -7,6 +7,6 @@ declare const elevation: {
7
7
  temporary_nav: string;
8
8
  above_scrim: string;
9
9
  };
10
- export declare type ElevationTypes = keyof Elevations;
10
+ export type ElevationTypes = keyof Elevations;
11
11
  export { elevation };
12
12
  export declare const paper: ComponentToken;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { Placement } from '@floating-ui/react-dom-interactions';
3
- export declare type PopoverProps = {
2
+ import { Placement } from '@floating-ui/react';
3
+ export type PopoverProps = {
4
4
  /** Popover placement relative to anchor */
5
5
  placement?: Placement;
6
6
  /** On Close callback */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type Popover = ComponentToken;
2
+ type Popover = ComponentToken;
3
3
  export declare const popover: Popover;
4
4
  export {};
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type PopoverActionsProps = HTMLAttributes<HTMLDivElement>;
2
+ export type PopoverActionsProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const PopoverActions: import("react").ForwardRefExoticComponent<PopoverActionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type PopoverContentProps = HTMLAttributes<HTMLDivElement>;
2
+ export type PopoverContentProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type PopoverHeaderProps = HTMLAttributes<HTMLDivElement>;
2
+ export type PopoverHeaderProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const PopoverHeader: import("react").ForwardRefExoticComponent<PopoverHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type PopoverTitleProps = HTMLAttributes<HTMLDivElement>;
2
+ export type PopoverTitleProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const PopoverTitle: import("react").ForwardRefExoticComponent<PopoverTitleProps & import("react").RefAttributes<HTMLDivElement>>;