@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.
- package/dist/eds-core-react.cjs.js +445 -410
- package/dist/esm/components/Accordion/AccordionPanel.js +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/esm/components/Breadcrumbs/Breadcrumb.js +1 -1
- package/dist/esm/components/Button/ToggleButton/ToggleButton.js +14 -2
- package/dist/esm/components/Dialog/Dialog.js +2 -2
- package/dist/esm/components/Dialog/DialogContent.js +2 -2
- package/dist/esm/components/Input/Input.js +1 -1
- package/dist/esm/components/Menu/Menu.js +17 -6
- package/dist/esm/components/Menu/MenuItem.js +4 -2
- package/dist/esm/components/Menu/MenuList.js +11 -3
- package/dist/esm/components/Paper/Paper.js +4 -3
- package/dist/esm/components/Popover/Popover.js +5 -5
- package/dist/esm/components/Scrim/Scrim.js +1 -1
- package/dist/esm/components/SideBar/SideBarToggle.js +2 -1
- package/dist/esm/components/Table/Cell.js +2 -1
- package/dist/esm/components/Table/Row/Row.js +2 -1
- package/dist/esm/components/Tabs/TabPanel.js +2 -1
- package/dist/esm/components/Tooltip/Tooltip.js +5 -5
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -1
- package/dist/types/components/Accordion/Accordion.types.d.ts +1 -1
- package/dist/types/components/Accordion/AccordionHeader.d.ts +1 -1
- package/dist/types/components/Accordion/AccordionHeaderActions.d.ts +1 -1
- package/dist/types/components/Accordion/AccordionHeaderTitle.d.ts +1 -1
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/types/components/Accordion/AccordionPanel.d.ts +1 -1
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +14 -14
- package/dist/types/components/Autocomplete/Option.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.tokens.d.ts +1 -1
- package/dist/types/components/Banner/Banner.d.ts +2 -2
- package/dist/types/components/Banner/Banner.tokens.d.ts +1 -1
- package/dist/types/components/Banner/BannerActions.d.ts +2 -2
- package/dist/types/components/Banner/BannerIcon.d.ts +2 -2
- package/dist/types/components/Banner/BannerMessage.d.ts +1 -1
- package/dist/types/components/Banner/index.d.ts +1 -1
- package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +2 -2
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/types/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Button/Button.types.d.ts +2 -2
- package/dist/types/components/Button/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/components/Button/ButtonGroup/ButtonGroup.tokens.d.ts +1 -1
- package/dist/types/components/Button/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/tokens/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +2 -2
- package/dist/types/components/Card/Card.tokens.d.ts +1 -1
- package/dist/types/components/Card/CardActions.d.ts +1 -1
- package/dist/types/components/Card/CardContent.d.ts +1 -1
- package/dist/types/components/Card/CardHeader.d.ts +1 -1
- package/dist/types/components/Card/CardHeaderTitle.d.ts +1 -1
- package/dist/types/components/Card/CardMedia.d.ts +1 -1
- package/dist/types/components/Card/index.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.tokens.d.ts +1 -1
- package/dist/types/components/Checkbox/Input.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Chip/Chip.tokens.d.ts +1 -1
- package/dist/types/components/Chip/Icon.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.tokens.d.ts +1 -1
- package/dist/types/components/Dialog/DialogActions.d.ts +1 -1
- package/dist/types/components/Dialog/DialogContent.d.ts +1 -1
- package/dist/types/components/Dialog/DialogHeader.d.ts +1 -1
- package/dist/types/components/Dialog/DialogTitle.d.ts +1 -1
- package/dist/types/components/Dialog/index.d.ts +1 -1
- package/dist/types/components/Divider/Divider.d.ts +1 -1
- package/dist/types/components/Divider/Divider.tokens.d.ts +2 -2
- package/dist/types/components/EdsProvider/eds.context.d.ts +4 -4
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Icon/Icon.types.d.ts +3 -3
- package/dist/types/components/Icon/library.d.ts +1 -1
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Input/Input.tokens.d.ts +1 -1
- package/dist/types/components/InputWrapper/HelperText/HelperText.d.ts +1 -1
- package/dist/types/components/InputWrapper/HelperText/HelperText.token.d.ts +1 -1
- package/dist/types/components/InputWrapper/InputWrapper.d.ts +1 -1
- package/dist/types/components/InputWrapper/InputWrapper.tokens.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -1
- package/dist/types/components/Label/Label.tokens.d.ts +1 -1
- package/dist/types/components/List/List.d.ts +1 -1
- package/dist/types/components/List/List.tokens.d.ts +1 -1
- package/dist/types/components/List/ListItem.d.ts +1 -1
- package/dist/types/components/List/index.d.ts +1 -1
- package/dist/types/components/Menu/Menu.context.d.ts +3 -3
- package/dist/types/components/Menu/Menu.d.ts +2 -2
- package/dist/types/components/Menu/Menu.tokens.d.ts +1 -1
- package/dist/types/components/Menu/Menu.types.d.ts +1 -1
- package/dist/types/components/Menu/MenuItem.d.ts +5 -1
- package/dist/types/components/Menu/MenuList.d.ts +2 -1
- package/dist/types/components/Menu/MenuSection.d.ts +1 -1
- package/dist/types/components/Menu/index.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/Pagination/PaginationItem.d.ts +1 -1
- package/dist/types/components/Paper/Paper.d.ts +1 -1
- package/dist/types/components/Paper/Paper.tokens.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +2 -2
- package/dist/types/components/Popover/Popover.tokens.d.ts +1 -1
- package/dist/types/components/Popover/PopoverActions.d.ts +1 -1
- package/dist/types/components/Popover/PopoverContent.d.ts +1 -1
- package/dist/types/components/Popover/PopoverHeader.d.ts +1 -1
- package/dist/types/components/Popover/PopoverTitle.d.ts +1 -1
- package/dist/types/components/Popover/index.d.ts +1 -1
- package/dist/types/components/Progress/Circular/CircularProgress.d.ts +1 -1
- package/dist/types/components/Progress/Circular/CircularProgress.tokens.d.ts +1 -1
- package/dist/types/components/Progress/Dots/DotProgress.d.ts +1 -1
- package/dist/types/components/Progress/Dots/DotProgress.tokens.d.ts +1 -1
- package/dist/types/components/Progress/Linear/LinearProgress.d.ts +1 -1
- package/dist/types/components/Progress/Linear/LinearProgress.tokens.d.ts +1 -1
- package/dist/types/components/Progress/Star/StarProgress.d.ts +1 -1
- package/dist/types/components/Progress/index.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/Radio.tokens.d.ts +1 -1
- package/dist/types/components/Scrim/Scrim.d.ts +1 -1
- package/dist/types/components/Search/Search.d.ts +1 -1
- package/dist/types/components/Select/NativeSelect/NativeSelect.d.ts +1 -1
- package/dist/types/components/Select/NativeSelect/NativeSelect.tokens.d.ts +1 -1
- package/dist/types/components/SideBar/SideBar.context.d.ts +3 -3
- package/dist/types/components/SideBar/SideBarButton/index.d.ts +1 -1
- package/dist/types/components/SideBar/SideBarContent.d.ts +1 -1
- package/dist/types/components/SideBar/SideBarFooter.d.ts +1 -1
- package/dist/types/components/SideBar/SideBarToggle.d.ts +1 -1
- package/dist/types/components/SideBar/SidebarLink/index.d.ts +2 -2
- package/dist/types/components/SideBar/index.d.ts +1 -1
- package/dist/types/components/SideSheet/SideSheet.d.ts +1 -1
- package/dist/types/components/SideSheet/SideSheet.tokens.d.ts +1 -1
- package/dist/types/components/Slider/Slider.d.ts +1 -1
- package/dist/types/components/Slider/Slider.tokens.d.ts +1 -1
- package/dist/types/components/Snackbar/Snackbar.d.ts +1 -1
- package/dist/types/components/Snackbar/Snackbar.tokens.d.ts +1 -1
- package/dist/types/components/Snackbar/SnackbarAction.d.ts +1 -1
- package/dist/types/components/Snackbar/index.d.ts +1 -1
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Switch/Switch.tokens.d.ts +1 -1
- package/dist/types/components/Table/Body.d.ts +1 -1
- package/dist/types/components/Table/Caption.d.ts +1 -1
- package/dist/types/components/Table/Cell.d.ts +1 -1
- package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +3 -3
- package/dist/types/components/Table/Head/Head.d.ts +1 -1
- package/dist/types/components/Table/HeaderCell/HeaderCell.tokens.d.ts +1 -1
- package/dist/types/components/Table/Inner.context.d.ts +1 -1
- package/dist/types/components/Table/Row/Row.d.ts +1 -1
- package/dist/types/components/Table/Table.d.ts +1 -1
- package/dist/types/components/Table/Table.types.d.ts +2 -2
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/TableOfContents/LinkItem.d.ts +1 -1
- package/dist/types/components/TableOfContents/TableOfContents.d.ts +1 -1
- package/dist/types/components/TableOfContents/TableOfContents.tokens.d.ts +1 -1
- package/dist/types/components/TableOfContents/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +2 -2
- package/dist/types/components/Tabs/TabList.d.ts +1 -1
- package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/types/components/Tabs/TabPanels.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.context.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +2 -2
- package/dist/types/components/Textarea/Textarea.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/components/Tooltip/Tooltip.tokens.d.ts +1 -1
- package/dist/types/components/TopBar/Actions.d.ts +1 -1
- package/dist/types/components/TopBar/CustomContent.d.ts +1 -1
- package/dist/types/components/TopBar/Header.d.ts +1 -1
- package/dist/types/components/TopBar/TopBar.d.ts +2 -2
- package/dist/types/components/TopBar/TopBar.tokens.d.ts +1 -1
- package/dist/types/components/TopBar/index.d.ts +1 -1
- package/dist/types/components/Typography/Typography.d.ts +1 -1
- package/dist/types/components/Typography/Typography.tokens.d.ts +4 -4
- package/dist/types/components/types.d.ts +1 -1
- 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
|
-
|
|
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
|
|
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
|
|
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 { SVGProps, Ref } from 'react';
|
|
2
|
-
export
|
|
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
|
-
|
|
9
|
+
type ProgressCompoundProps = {
|
|
10
10
|
Linear: typeof LinearProgress;
|
|
11
11
|
Circular: typeof CircularProgress;
|
|
12
12
|
Star: typeof StarProgress;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SearchProps = InputHTMLAttributes<HTMLInputElement>;
|
|
3
3
|
export declare const Search: import("react").ForwardRefExoticComponent<SearchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type State = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onToggle: (state: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type UseSidebarProps<T> = T & {
|
|
7
7
|
setIsOpen: (open: boolean) => void;
|
|
8
8
|
setOnToggle: (onToggle: (state: boolean) => void) => void;
|
|
9
9
|
};
|
|
10
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4
|
+
type OverridableSubComponent = OverridableComponent<SidebarLinkProps, HTMLAnchorElement> & {
|
|
5
5
|
displayName?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
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
|
-
|
|
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 { ReactNode } from 'react';
|
|
2
|
-
export
|
|
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
|
-
|
|
3
|
+
type SnackbarTypes = typeof BaseComponent & {
|
|
4
4
|
Action: typeof SnackbarAction;
|
|
5
5
|
};
|
|
6
6
|
declare const Snackbar: SnackbarTypes;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
3
|
+
type Validation = {
|
|
4
4
|
error: Partial<ComponentToken>;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type VariantsType = {
|
|
7
7
|
numeric: Partial<ComponentToken>;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TableCellToken = ComponentToken & {
|
|
10
10
|
validation: Validation;
|
|
11
11
|
variants: VariantsType;
|
|
12
12
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
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
|
|
2
|
-
export
|
|
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
|
-
|
|
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
|
|
2
|
+
export type TableOfContentsLinkItemProps = HTMLAttributes<HTMLLIElement>;
|
|
3
3
|
export declare const LinkItem: import("react").ForwardRefExoticComponent<TableOfContentsLinkItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableOfContents as BaseComponent, TableOfContentsProps } from './TableOfContents';
|
|
2
2
|
import { LinkItem, TableOfContentsLinkItemProps } from './LinkItem';
|
|
3
|
-
|
|
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
|
-
|
|
3
|
+
type OverridableSubComponent = OverridableComponent<TabProps, HTMLButtonElement> & {
|
|
4
4
|
displayName?: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
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
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TabPanelsProps = HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
declare const TabPanels: import("react").ForwardRefExoticComponent<TabPanelsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { TabPanels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 { HTMLAttributes } from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react
|
|
3
|
-
export
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
4
|
-
export
|
|
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;
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
447
|
+
export type QuickTypographyVariants = TypographyTokens['heading'] | TypographyTokens['paragraph'];
|
|
448
448
|
declare const quickVariants: QuickTypographyVariants;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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
|
|
1
|
+
export type Variants = 'error' | 'warning' | 'success';
|