@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
@@ -3,7 +3,7 @@ import { PopoverTitle, PopoverTitleProps } from './PopoverTitle';
3
3
  import { PopoverContent, PopoverContentProps } from './PopoverContent';
4
4
  import { PopoverHeader, PopoverHeaderProps } from './PopoverHeader';
5
5
  import { PopoverActions, PopoverActionsProps } from './PopoverActions';
6
- declare type PopoverConformProps = typeof BaseComponent & {
6
+ type PopoverConformProps = typeof BaseComponent & {
7
7
  Title: typeof PopoverTitle;
8
8
  Content: typeof PopoverContent;
9
9
  Header: typeof PopoverHeader;
@@ -1,5 +1,5 @@
1
1
  import { SVGProps, Ref } from 'react';
2
- export declare type CircularProgressProps = {
2
+ export type CircularProgressProps = {
3
3
  /** Use indeterminate when there is no progress value */
4
4
  variant?: 'determinate' | 'indeterminate';
5
5
  /** The value of the progress indicator for determinate variant.
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type CircularProgressToken = ComponentToken & {
2
+ export type CircularProgressToken = ComponentToken & {
3
3
  entities: {
4
4
  progress: ComponentToken;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { SVGProps, Ref } from 'react';
2
- export declare type DotProgressProps = {
2
+ export type DotProgressProps = {
3
3
  /** Color */
4
4
  color?: 'primary' | 'tertiary' | 'neutral';
5
5
  /** Size */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type DotProgressToken = ComponentToken;
2
+ export type DotProgressToken = ComponentToken;
3
3
  export declare const primary: DotProgressToken;
4
4
  export declare const neutral: DotProgressToken;
5
5
  export declare const tertiary: DotProgressToken;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type LinearProgressProps = {
2
+ export type LinearProgressProps = {
3
3
  /** Variant
4
4
  * Use indeterminate when there is no progress value */
5
5
  variant?: 'indeterminate' | 'determinate';
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type CircularProgressToken = ComponentToken & {
2
+ export type CircularProgressToken = ComponentToken & {
3
3
  entities: {
4
4
  progress: ComponentToken;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { SVGProps, Ref } from 'react';
2
- export declare type StarProgressProps = {
2
+ export type StarProgressProps = {
3
3
  /** Use indeterminate when there is no progress value */
4
4
  variant?: 'indeterminate' | 'determinate';
5
5
  /** The value of the progress indicator for determinate variant
@@ -6,7 +6,7 @@ import { LinearProgress } from './Linear/LinearProgress';
6
6
  import { CircularProgress } from './Circular/CircularProgress';
7
7
  import { StarProgress } from './Star/StarProgress';
8
8
  import { DotProgress } from './Dots/DotProgress';
9
- declare type ProgressCompoundProps = {
9
+ type ProgressCompoundProps = {
10
10
  Linear: typeof LinearProgress;
11
11
  Circular: typeof CircularProgress;
12
12
  Star: typeof StarProgress;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export declare type RadioProps = {
2
+ export type RadioProps = {
3
3
  /** Label for the radio */
4
4
  label?: string;
5
5
  /** If true, the radio button will be disabled */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type RadioToken = ComponentToken;
2
+ type RadioToken = ComponentToken;
3
3
  export declare const comfortable: RadioToken;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type ScrimProps = {
2
+ export type ScrimProps = {
3
3
  /** Whether scrim can be dismissed with esc key and outside click
4
4
  */
5
5
  isDismissable?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export declare type SearchProps = InputHTMLAttributes<HTMLInputElement>;
2
+ export type SearchProps = InputHTMLAttributes<HTMLInputElement>;
3
3
  export declare const Search: import("react").ForwardRefExoticComponent<SearchProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import { SelectHTMLAttributes } from 'react';
2
- export declare type NativeSelectProps = {
2
+ export type NativeSelectProps = {
3
3
  /** Input unique id */
4
4
  id: string;
5
5
  /** Label for the select element */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type SelectComponentToken = ComponentToken;
2
+ type SelectComponentToken = ComponentToken;
3
3
  export declare const nativeselect: SelectComponentToken;
4
4
  export {};
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type State = {
2
+ export type State = {
3
3
  isOpen: boolean;
4
4
  onToggle: (state: boolean) => void;
5
5
  };
6
- declare type UseSidebarProps<T> = T & {
6
+ type UseSidebarProps<T> = T & {
7
7
  setIsOpen: (open: boolean) => void;
8
8
  setOnToggle: (onToggle: (state: boolean) => void) => void;
9
9
  };
10
- declare type ProviderProps = {
10
+ type ProviderProps = {
11
11
  children: ReactNode;
12
12
  };
13
13
  export declare const SideBarProvider: ({ children }: ProviderProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from '../../Button';
3
3
  import { IconData } from '@equinor/eds-icons';
4
- export declare type SideBarButtonProps = {
4
+ export type SideBarButtonProps = {
5
5
  label: string;
6
6
  icon: IconData;
7
7
  } & Omit<ButtonProps, 'href' | 'type' | 'fullWidth' | 'variant'>;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
- declare type SideBarContentProps = HTMLAttributes<HTMLDivElement>;
2
+ type SideBarContentProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const SideBarContent: import("react").ForwardRefExoticComponent<SideBarContentProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
- declare type SideBarFooterProps = HTMLAttributes<HTMLDivElement>;
2
+ type SideBarFooterProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const SideBarFooter: import("react").ForwardRefExoticComponent<SideBarFooterProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
- declare type SideBarToggleProps = HTMLAttributes<HTMLDivElement>;
2
+ type SideBarToggleProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const SideBarToggle: import("react").ForwardRefExoticComponent<SideBarToggleProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export {};
@@ -1,10 +1,10 @@
1
1
  import { AnchorHTMLAttributes, ElementType } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
3
  import { IconData } from '@equinor/eds-icons';
4
- declare type OverridableSubComponent = OverridableComponent<SidebarLinkProps, HTMLAnchorElement> & {
4
+ type OverridableSubComponent = OverridableComponent<SidebarLinkProps, HTMLAnchorElement> & {
5
5
  displayName?: string;
6
6
  };
7
- export declare type SidebarLinkProps = {
7
+ export type SidebarLinkProps = {
8
8
  /** Icon*/
9
9
  icon: IconData;
10
10
  /** Label text */
@@ -5,7 +5,7 @@ import { SideBarContent } from './SideBarContent';
5
5
  import { SideBarFooter } from './SideBarFooter';
6
6
  import { SideBarToggle } from './SideBarToggle';
7
7
  import { SideBarButton } from './SideBarButton';
8
- declare type SidebarType = typeof BaseSideBar & {
8
+ type SidebarType = typeof BaseSideBar & {
9
9
  Link: typeof SidebarLink;
10
10
  Content: typeof SideBarContent;
11
11
  Footer: typeof SideBarFooter;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type SideSheetProps = {
2
+ export type SideSheetProps = {
3
3
  /** Title for Side Sheet */
4
4
  title?: string;
5
5
  /** Variant controls width of Side Sheet */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type SidesheetToken = ComponentToken;
2
+ type SidesheetToken = ComponentToken;
3
3
  export declare const comfortable: SidesheetToken;
4
4
  export declare const variants: {
5
5
  small: string;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, MouseEvent, KeyboardEvent, ChangeEvent } from 'react';
2
- export declare type SliderProps = {
2
+ export type SliderProps = {
3
3
  /**
4
4
  * Id for the elements that labels this slider
5
5
  * @deprecated Use the `aria-labelledby` instead
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type SliderToken = ComponentToken;
2
+ type SliderToken = ComponentToken;
3
3
  export declare const slider: SliderToken;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type SnackbarProps = {
2
+ export type SnackbarProps = {
3
3
  /** Controls the visibility of the snackbar */
4
4
  open?: boolean;
5
5
  /** How long will the message be visible in milliseconds */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type Snackbar = ComponentToken;
2
+ type Snackbar = ComponentToken;
3
3
  export declare const snackbar: Snackbar;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SnackbarActionProps = {
2
+ export type SnackbarActionProps = {
3
3
  children: ReactNode;
4
4
  };
5
5
  export declare const SnackbarAction: import("react").ForwardRefExoticComponent<SnackbarActionProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { SnackbarAction, SnackbarActionProps } from './SnackbarAction';
2
2
  import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar';
3
- declare type SnackbarTypes = typeof BaseComponent & {
3
+ type SnackbarTypes = typeof BaseComponent & {
4
4
  Action: typeof SnackbarAction;
5
5
  };
6
6
  declare const Snackbar: SnackbarTypes;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export declare type SwitchProps = {
2
+ export type SwitchProps = {
3
3
  /** Label for the switch. Required to make it a11y compliant */
4
4
  label?: string;
5
5
  /** Switch size, use the small version with caution */
@@ -1,3 +1,3 @@
1
1
  import { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type SwitchToken = ComponentToken;
2
+ export type SwitchToken = ComponentToken;
3
3
  export declare const comfortable: SwitchToken;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type BodyProps = HTMLAttributes<HTMLTableSectionElement>;
2
+ export type BodyProps = HTMLAttributes<HTMLTableSectionElement>;
3
3
  export declare const Body: import("react").ForwardRefExoticComponent<BodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import type { CSSObject } from 'styled-components';
3
- export declare type CaptionProps = Pick<CSSObject, 'captionSide'> & HTMLAttributes<HTMLTableCaptionElement>;
3
+ export type CaptionProps = Pick<CSSObject, 'captionSide'> & HTMLAttributes<HTMLTableCaptionElement>;
4
4
  export declare const Caption: import("react").ForwardRefExoticComponent<Pick<CSSObject, "captionSide"> & HTMLAttributes<HTMLTableCaptionElement> & import("react").RefAttributes<HTMLTableCaptionElement>>;
@@ -1,6 +1,6 @@
1
1
  import { TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
2
  import { Variants, Colors } from './Table.types';
3
- export declare type CellProps = {
3
+ export type CellProps = {
4
4
  /** Specifies which variant to use */
5
5
  variant?: Variants;
6
6
  /** Specifies cell background color */
@@ -1,12 +1,12 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
2
  import { Variants } from '../Table.types';
3
- declare type Validation = {
3
+ type Validation = {
4
4
  error: Partial<ComponentToken>;
5
5
  };
6
- declare type VariantsType = {
6
+ type VariantsType = {
7
7
  numeric: Partial<ComponentToken>;
8
8
  };
9
- export declare type TableCellToken = ComponentToken & {
9
+ export type TableCellToken = ComponentToken & {
10
10
  validation: Validation;
11
11
  variants: VariantsType;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type HeadProps = {
2
+ export type HeadProps = {
3
3
  /** Header will stick to top when scrolling */
4
4
  sticky?: boolean;
5
5
  } & HTMLAttributes<HTMLTableSectionElement>;
@@ -1,3 +1,3 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- export declare type TableHeadToken = ComponentToken;
2
+ export type TableHeadToken = ComponentToken;
3
3
  export declare const token: TableHeadToken;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type State = {
2
+ type State = {
3
3
  variant: 'body' | 'head';
4
4
  sticky?: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type RowProps = {
2
+ export type RowProps = {
3
3
  /** Hightlight row as active */
4
4
  active?: boolean;
5
5
  } & React.HTMLAttributes<HTMLTableRowElement>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TableProps = HTMLAttributes<HTMLTableElement>;
2
+ export type TableProps = HTMLAttributes<HTMLTableElement>;
3
3
  export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
@@ -1,2 +1,2 @@
1
- export declare type Variants = 'text' | 'icon' | 'numeric' | 'input';
2
- export declare type Colors = 'error';
1
+ export type Variants = 'text' | 'icon' | 'numeric' | 'input';
2
+ export type Colors = 'error';
@@ -4,7 +4,7 @@ import { Cell, CellProps } from './Cell';
4
4
  import { Head, HeadProps } from './Head';
5
5
  import { Row, RowProps } from './Row';
6
6
  import { Caption, CaptionProps } from './Caption';
7
- declare type TableCompoundProps = typeof BaseTable & {
7
+ type TableCompoundProps = typeof BaseTable & {
8
8
  Body: typeof Body;
9
9
  Cell: typeof Cell;
10
10
  Head: typeof Head;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TableOfContentsLinkItemProps = HTMLAttributes<HTMLLIElement>;
2
+ export type TableOfContentsLinkItemProps = HTMLAttributes<HTMLLIElement>;
3
3
  export declare const LinkItem: import("react").ForwardRefExoticComponent<TableOfContentsLinkItemProps & import("react").RefAttributes<HTMLLIElement>>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TableOfContentsProps = {
2
+ export type TableOfContentsProps = {
3
3
  /** Sticky functionality */
4
4
  sticky?: boolean;
5
5
  /** Label or title for the ToC */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type TableOfContentsType = ComponentToken;
2
+ type TableOfContentsType = ComponentToken;
3
3
  export declare const tableOfContents: TableOfContentsType;
4
4
  export {};
@@ -1,6 +1,6 @@
1
1
  import { TableOfContents as BaseComponent, TableOfContentsProps } from './TableOfContents';
2
2
  import { LinkItem, TableOfContentsLinkItemProps } from './LinkItem';
3
- declare type TableOfContentsCompoundProps = typeof BaseComponent & {
3
+ type TableOfContentsCompoundProps = typeof BaseComponent & {
4
4
  LinkItem: typeof LinkItem;
5
5
  };
6
6
  declare const TableOfContents: TableOfContentsCompoundProps;
@@ -1,9 +1,9 @@
1
1
  import { ButtonHTMLAttributes, ElementType } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
- declare type OverridableSubComponent = OverridableComponent<TabProps, HTMLButtonElement> & {
3
+ type OverridableSubComponent = OverridableComponent<TabProps, HTMLButtonElement> & {
4
4
  displayName?: string;
5
5
  };
6
- export declare type TabProps = {
6
+ export type TabProps = {
7
7
  /** If `true`, the tab will be active. */
8
8
  active?: boolean;
9
9
  /** If `true`, the tab will be disabled. */
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { Variants } from './Tabs.types';
3
- export declare type TabListProps = {
3
+ export type TabListProps = {
4
4
  /** Sets the width of the tabs */
5
5
  variant?: Variants;
6
6
  /** adds scrollbar if tabs overflow on non-touch devices */
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TabPanelProps = {
2
+ export type TabPanelProps = {
3
3
  /** If `true`, the panel will be hidden. */
4
4
  hidden?: boolean;
5
5
  } & HTMLAttributes<HTMLDivElement>;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TabPanelsProps = HTMLAttributes<HTMLDivElement>;
2
+ export type TabPanelsProps = HTMLAttributes<HTMLDivElement>;
3
3
  declare const TabPanels: import("react").ForwardRefExoticComponent<TabPanelsProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export { TabPanels };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Variants } from './Tabs.types';
3
- declare type State = {
3
+ type State = {
4
4
  variant: Variants;
5
5
  scrollable: boolean;
6
6
  handleChange: (index: number) => void;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { Variants } from './Tabs.types';
3
- export declare type TabsProps = {
3
+ export type TabsProps = {
4
4
  /** The index of the active tab */
5
5
  activeTab?: number;
6
6
  /** The callback function for selecting a tab */
@@ -1 +1 @@
1
- export declare type Variants = 'fullWidth' | 'minWidth' | '';
1
+ export type Variants = 'fullWidth' | 'minWidth' | '';
@@ -3,7 +3,7 @@ import { TabList, TabListProps } from './TabList';
3
3
  import { Tab, TabProps } from './Tab';
4
4
  import { TabPanels, TabPanelsProps } from './TabPanels';
5
5
  import { TabPanel, TabPanelProps } from './TabPanel';
6
- declare type TabsCompoundProps = typeof BaseComponent & {
6
+ type TabsCompoundProps = typeof BaseComponent & {
7
7
  Tab: typeof Tab;
8
8
  Panels: typeof TabPanels;
9
9
  Panel: typeof TabPanel;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, ForwardedRef } from 'react';
2
2
  import type { Variants } from '../types';
3
- declare type SharedTextFieldProps = {
3
+ type SharedTextFieldProps = {
4
4
  /** Variants */
5
5
  variant?: Variants;
6
6
  /** Input unique id. This is required to ensure accesibility */
@@ -26,6 +26,6 @@ declare type SharedTextFieldProps = {
26
26
  /** If `true` a `textarea` is rendered for multiline support. Make sure to use `textareaRef` if you need to access reference element */
27
27
  multiline?: boolean;
28
28
  };
29
- export declare type TextFieldProps = SharedTextFieldProps & (TextareaHTMLAttributes<HTMLTextAreaElement> | InputHTMLAttributes<HTMLInputElement>);
29
+ export type TextFieldProps = SharedTextFieldProps & (TextareaHTMLAttributes<HTMLTextAreaElement> | InputHTMLAttributes<HTMLInputElement>);
30
30
  export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLDivElement>>;
31
31
  export {};
@@ -1,6 +1,6 @@
1
1
  import { TextareaHTMLAttributes } from 'react';
2
2
  import type { Variants } from '../types';
3
- export declare type TextareaProps = {
3
+ export type TextareaProps = {
4
4
  /** Placeholder */
5
5
  placeholder?: string;
6
6
  /** Variant */
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { Placement } from '@floating-ui/react-dom-interactions';
3
- export declare type TooltipProps = {
2
+ import { Placement } from '@floating-ui/react';
3
+ export type TooltipProps = {
4
4
  /** Tooltip placement relative to anchor */
5
5
  placement?: Placement;
6
6
  /** Tooltip title */
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type TooltipToken = ComponentToken;
2
+ type TooltipToken = ComponentToken;
3
3
  export declare const tooltip: TooltipToken;
4
4
  export {};
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TopbarActionsProps = HTMLAttributes<HTMLDivElement>;
2
+ export type TopbarActionsProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const Actions: import("react").ForwardRefExoticComponent<TopbarActionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TopbarCustomContentProps = HTMLAttributes<HTMLDivElement>;
2
+ export type TopbarCustomContentProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const CustomContent: import("react").ForwardRefExoticComponent<TopbarCustomContentProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare type TopbarHeaderProps = HTMLAttributes<HTMLDivElement>;
2
+ export type TopbarHeaderProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const Header: import("react").ForwardRefExoticComponent<TopbarHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -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'>;
4
- export declare type TopbarProps = {
3
+ type AvailableElevations = keyof Pick<Elevations, 'none' | 'raised'>;
4
+ export type TopbarProps = {
5
5
  elevation?: AvailableElevations;
6
6
  /** Topbar will stick to top when scrolling. */
7
7
  sticky?: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentToken } from '@equinor/eds-tokens';
2
- declare type TopBarToken = ComponentToken;
2
+ type TopBarToken = ComponentToken;
3
3
  export declare const topbar: TopBarToken;
4
4
  export {};
@@ -2,7 +2,7 @@ import { TopBar as BaseComponent, TopbarProps } from './TopBar';
2
2
  import { Actions, TopbarActionsProps } from './Actions';
3
3
  import { Header, TopbarHeaderProps } from './Header';
4
4
  import { CustomContent, TopbarCustomContentProps } from './CustomContent';
5
- declare type TopbarCompoundProps = typeof BaseComponent & {
5
+ type TopbarCompoundProps = typeof BaseComponent & {
6
6
  Actions: typeof Actions;
7
7
  Header: typeof Header;
8
8
  CustomContent: typeof CustomContent;
@@ -2,7 +2,7 @@ import { HTMLAttributes, AnchorHTMLAttributes } from 'react';
2
2
  import { OverridableComponent } from '@equinor/eds-utils';
3
3
  import { TypographyVariants, ColorVariants, TypographyGroups } from './Typography.tokens';
4
4
  import type { Typography as TypographyType } from '@equinor/eds-tokens';
5
- export declare type TypographyProps = {
5
+ export type TypographyProps = {
6
6
  /** Typography variants, specifies which variant to use. */
7
7
  variant?: TypographyVariants;
8
8
  /** Typography groups, specifies which group to use. */
@@ -444,11 +444,11 @@ declare const colors: {
444
444
  success: string;
445
445
  disabled: string;
446
446
  };
447
- export declare type QuickTypographyVariants = TypographyTokens['heading'] | TypographyTokens['paragraph'];
447
+ export type QuickTypographyVariants = TypographyTokens['heading'] | TypographyTokens['paragraph'];
448
448
  declare const quickVariants: QuickTypographyVariants;
449
- declare type TypographyVariants = keyof TypographyTokens['heading'] | keyof TypographyTokens['paragraph'] | keyof TypographyTokens['navigation'] | keyof TypographyTokens['input'] | keyof TypographyTokens['ui'] | keyof TypographyTokens['table'];
450
- declare type ColorVariants = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'disabled';
451
- declare type TypographyGroups = keyof typeof typography;
449
+ type TypographyVariants = keyof TypographyTokens['heading'] | keyof TypographyTokens['paragraph'] | keyof TypographyTokens['navigation'] | keyof TypographyTokens['input'] | keyof TypographyTokens['ui'] | keyof TypographyTokens['table'];
450
+ type ColorVariants = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'disabled';
451
+ type TypographyGroups = keyof typeof typography;
452
452
  declare const link: ComponentToken;
453
453
  export { typography, colors, quickVariants, link };
454
454
  export type { TypographyVariants, ColorVariants, TypographyGroups };
@@ -1 +1 @@
1
- export declare type Variants = 'error' | 'warning' | 'success';
1
+ export type Variants = 'error' | 'warning' | 'success';