@equinor/eds-core-react 0.14.0-dev.20210930
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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/core-react.cjs.js +18695 -0
- package/dist/core-react.esm.js +18625 -0
- package/dist/core-react.umd.js +18697 -0
- package/dist/types/components/Accordion/Accordion.d.ts +4 -0
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +9 -0
- package/dist/types/components/Accordion/Accordion.types.d.ts +6 -0
- package/dist/types/components/Accordion/AccordionHeader.d.ts +35 -0
- package/dist/types/components/Accordion/AccordionHeaderTitle.d.ts +14 -0
- package/dist/types/components/Accordion/AccordionItem.d.ts +19 -0
- package/dist/types/components/Accordion/AccordionPanel.d.ts +18 -0
- package/dist/types/components/Accordion/index.d.ts +15 -0
- package/dist/types/components/Avatar/Avatar.d.ts +23 -0
- package/dist/types/components/Avatar/Avatar.tokens.d.ts +10 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Banner/Banner.d.ts +7 -0
- package/dist/types/components/Banner/Banner.tokens.d.ts +9 -0
- package/dist/types/components/Banner/BannerActions.d.ts +11 -0
- package/dist/types/components/Banner/BannerIcon.d.ts +15 -0
- package/dist/types/components/Banner/BannerMessage.d.ts +10 -0
- package/dist/types/components/Banner/index.d.ts +12 -0
- package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +11 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.tokens.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +8 -0
- package/dist/types/components/Button/Button.d.ts +43 -0
- package/dist/types/components/Button/Button.types.d.ts +12 -0
- package/dist/types/components/Button/InnerFullWidth.d.ts +2 -0
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Button/tokens/button.d.ts +2 -0
- package/dist/types/components/Button/tokens/contained.d.ts +4 -0
- package/dist/types/components/Button/tokens/ghost.d.ts +4 -0
- package/dist/types/components/Button/tokens/icon.d.ts +4 -0
- package/dist/types/components/Button/tokens/index.d.ts +8 -0
- package/dist/types/components/Button/tokens/outlined.d.ts +4 -0
- package/dist/types/components/Card/Card.d.ts +9 -0
- package/dist/types/components/Card/Card.tokens.d.ts +6 -0
- package/dist/types/components/Card/CardActions.d.ts +13 -0
- package/dist/types/components/Card/CardHeader.d.ts +3 -0
- package/dist/types/components/Card/CardHeaderTitle.d.ts +3 -0
- package/dist/types/components/Card/CardMedia.d.ts +9 -0
- package/dist/types/components/Card/index.d.ts +14 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/types/components/Checkbox/Checkbox.tokens.d.ts +4 -0
- package/dist/types/components/Checkbox/Input.d.ts +12 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/Chip/Chip.d.ts +17 -0
- package/dist/types/components/Chip/Chip.tokens.d.ts +8 -0
- package/dist/types/components/Chip/Icon.d.ts +6 -0
- package/dist/types/components/Chip/index.d.ts +1 -0
- package/dist/types/components/Combobox/Combobox.d.ts +55 -0
- package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -0
- package/dist/types/components/Combobox/index.d.ts +1 -0
- package/dist/types/components/Dialog/Actions.d.ts +3 -0
- package/dist/types/components/Dialog/CustomContent.d.ts +9 -0
- package/dist/types/components/Dialog/Dialog.d.ts +3 -0
- package/dist/types/components/Dialog/Dialog.tokens.d.ts +4 -0
- package/dist/types/components/Dialog/Title.d.ts +3 -0
- package/dist/types/components/Dialog/index.d.ts +12 -0
- package/dist/types/components/Divider/Divider.d.ts +17 -0
- package/dist/types/components/Divider/Divider.tokens.d.ts +12 -0
- package/dist/types/components/Divider/index.d.ts +1 -0
- package/dist/types/components/EdsProvider/eds.context.d.ts +15 -0
- package/dist/types/components/EdsProvider/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +20 -0
- package/dist/types/components/Icon/Icon.types.d.ts +11 -0
- package/dist/types/components/Icon/index.d.ts +5 -0
- package/dist/types/components/Icon/library.d.ts +8 -0
- package/dist/types/components/Input/Input.d.ts +26 -0
- package/dist/types/components/Input/Input.tokens.d.ts +12 -0
- package/dist/types/components/Input/index.d.ts +1 -0
- package/dist/types/components/Label/Label.d.ts +11 -0
- package/dist/types/components/Label/Label.tokens.d.ts +4 -0
- package/dist/types/components/Label/index.d.ts +1 -0
- package/dist/types/components/List/List.d.ts +14 -0
- package/dist/types/components/List/List.tokens.d.ts +4 -0
- package/dist/types/components/List/ListItem.d.ts +4 -0
- package/dist/types/components/List/index.d.ts +8 -0
- package/dist/types/components/Menu/Menu.context.d.ts +15 -0
- package/dist/types/components/Menu/Menu.d.ts +27 -0
- package/dist/types/components/Menu/Menu.tokens.d.ts +4 -0
- package/dist/types/components/Menu/Menu.types.d.ts +1 -0
- package/dist/types/components/Menu/MenuItem.d.ts +21 -0
- package/dist/types/components/Menu/MenuList.d.ts +8 -0
- package/dist/types/components/Menu/MenuSection.d.ts +11 -0
- package/dist/types/components/Menu/index.d.ts +10 -0
- package/dist/types/components/Pagination/Pagination.d.ts +25 -0
- package/dist/types/components/Pagination/Pagination.tokens.d.ts +2 -0
- package/dist/types/components/Pagination/PaginationItem.d.ts +8 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Pagination/paginationControl.d.ts +1 -0
- package/dist/types/components/Paper/Paper.d.ts +8 -0
- package/dist/types/components/Paper/Paper.tokens.d.ts +12 -0
- package/dist/types/components/Paper/index.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +22 -0
- package/dist/types/components/Popover/Popover.tokens.d.ts +4 -0
- package/dist/types/components/Popover/PopoverContent.d.ts +3 -0
- package/dist/types/components/Popover/PopoverTitle.d.ts +3 -0
- package/dist/types/components/Popover/index.d.ts +10 -0
- package/dist/types/components/Progress/Circular/CircularProgress.d.ts +16 -0
- package/dist/types/components/Progress/Circular/CircularProgress.tokens.d.ts +8 -0
- package/dist/types/components/Progress/Dots/DotProgress.d.ts +11 -0
- package/dist/types/components/Progress/Dots/DotProgress.tokens.d.ts +5 -0
- package/dist/types/components/Progress/Linear/LinearProgress.d.ts +18 -0
- package/dist/types/components/Progress/Linear/LinearProgress.tokens.d.ts +7 -0
- package/dist/types/components/Progress/Star/StarProgress.d.ts +14 -0
- package/dist/types/components/Progress/Star/StarProgress.tokens.d.ts +2 -0
- package/dist/types/components/Progress/index.d.ts +15 -0
- package/dist/types/components/Radio/Radio.d.ts +10 -0
- package/dist/types/components/Radio/Radio.tokens.d.ts +4 -0
- package/dist/types/components/Radio/index.d.ts +1 -0
- package/dist/types/components/Scrim/Scrim.d.ts +15 -0
- package/dist/types/components/Scrim/Scrim.tokens.d.ts +2 -0
- package/dist/types/components/Scrim/index.d.ts +1 -0
- package/dist/types/components/Search/Search.d.ts +3 -0
- package/dist/types/components/Search/Search.tokens.d.ts +4 -0
- package/dist/types/components/Search/index.d.ts +1 -0
- package/dist/types/components/Select/MultiSelect/MultiSelect.d.ts +48 -0
- package/dist/types/components/Select/MultiSelect/index.d.ts +1 -0
- package/dist/types/components/Select/NativeSelect/NativeSelect.d.ts +29 -0
- package/dist/types/components/Select/NativeSelect/NativeSelect.tokens.d.ts +4 -0
- package/dist/types/components/Select/NativeSelect/index.d.ts +1 -0
- package/dist/types/components/Select/Select.tokens.d.ts +3 -0
- package/dist/types/components/Select/SingleSelect/SingleSelect.d.ts +48 -0
- package/dist/types/components/Select/SingleSelect/index.d.ts +1 -0
- package/dist/types/components/Select/commonStyles.d.ts +32 -0
- package/dist/types/components/Select/index.d.ts +3 -0
- package/dist/types/components/SideSheet/SideSheet.d.ts +21 -0
- package/dist/types/components/SideSheet/SideSheet.tokens.d.ts +10 -0
- package/dist/types/components/SideSheet/index.d.ts +1 -0
- package/dist/types/components/Slider/MinMax.d.ts +5 -0
- package/dist/types/components/Slider/Output.d.ts +9 -0
- package/dist/types/components/Slider/Slider.d.ts +49 -0
- package/dist/types/components/Slider/Slider.tokens.d.ts +4 -0
- package/dist/types/components/Slider/SliderInput.d.ts +21 -0
- package/dist/types/components/Slider/index.d.ts +1 -0
- package/dist/types/components/Snackbar/Snackbar.d.ts +21 -0
- package/dist/types/components/Snackbar/Snackbar.tokens.d.ts +4 -0
- package/dist/types/components/Snackbar/SnackbarAction.d.ts +5 -0
- package/dist/types/components/Snackbar/index.d.ts +8 -0
- package/dist/types/components/Switch/Switch.d.ts +12 -0
- package/dist/types/components/Switch/Switch.styles.d.ts +4 -0
- package/dist/types/components/Switch/Switch.tokens.d.ts +3 -0
- package/dist/types/components/Switch/SwitchDefault.d.ts +6 -0
- package/dist/types/components/Switch/SwitchSmall.d.ts +6 -0
- package/dist/types/components/Switch/index.d.ts +1 -0
- package/dist/types/components/Table/Body.d.ts +3 -0
- package/dist/types/components/Table/Caption.d.ts +4 -0
- package/dist/types/components/Table/Cell.d.ts +11 -0
- package/dist/types/components/Table/DataCell/DataCell.d.ts +8 -0
- package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +15 -0
- package/dist/types/components/Table/DataCell/index.d.ts +1 -0
- package/dist/types/components/Table/Head/Head.d.ts +9 -0
- package/dist/types/components/Table/Head/Head.tokens.d.ts +2 -0
- package/dist/types/components/Table/Head/index.d.ts +1 -0
- package/dist/types/components/Table/HeaderCell/HeaderCell.d.ts +5 -0
- package/dist/types/components/Table/HeaderCell/HeaderCell.tokens.d.ts +3 -0
- package/dist/types/components/Table/HeaderCell/index.d.ts +1 -0
- package/dist/types/components/Table/Inner.context.d.ts +7 -0
- package/dist/types/components/Table/Row/Row.d.ts +9 -0
- package/dist/types/components/Table/Row/Row.tokens.d.ts +2 -0
- package/dist/types/components/Table/Row/index.d.ts +1 -0
- package/dist/types/components/Table/Table.d.ts +3 -0
- package/dist/types/components/Table/Table.types.d.ts +2 -0
- package/dist/types/components/Table/index.d.ts +16 -0
- package/dist/types/components/TableOfContents/LinkItem.d.ts +3 -0
- package/dist/types/components/TableOfContents/TableOfContents.d.ts +14 -0
- package/dist/types/components/TableOfContents/TableOfContents.tokens.d.ts +4 -0
- package/dist/types/components/TableOfContents/index.d.ts +8 -0
- package/dist/types/components/Tabs/Tab.d.ts +13 -0
- package/dist/types/components/Tabs/TabList.d.ts +11 -0
- package/dist/types/components/Tabs/TabPanel.d.ts +10 -0
- package/dist/types/components/Tabs/TabPanels.d.ts +4 -0
- package/dist/types/components/Tabs/Tabs.context.d.ts +13 -0
- package/dist/types/components/Tabs/Tabs.d.ts +19 -0
- package/dist/types/components/Tabs/Tabs.tokens.d.ts +2 -0
- package/dist/types/components/Tabs/Tabs.types.d.ts +1 -0
- package/dist/types/components/Tabs/index.d.ts +14 -0
- package/dist/types/components/TextField/Field.d.ts +34 -0
- package/dist/types/components/TextField/HelperText/HelperText.d.ts +14 -0
- package/dist/types/components/TextField/HelperText/HelperText.token.d.ts +15 -0
- package/dist/types/components/TextField/HelperText/index.d.ts +1 -0
- package/dist/types/components/TextField/Icon/Icon.d.ts +13 -0
- package/dist/types/components/TextField/Icon/Icon.tokens.d.ts +14 -0
- package/dist/types/components/TextField/Icon/index.d.ts +1 -0
- package/dist/types/components/TextField/TextField.context.d.ts +17 -0
- package/dist/types/components/TextField/TextField.d.ts +37 -0
- package/dist/types/components/TextField/TextField.tokens.d.ts +10 -0
- package/dist/types/components/TextField/index.d.ts +1 -0
- package/dist/types/components/TextField/types.d.ts +6 -0
- package/dist/types/components/Textarea/Textarea.d.ts +30 -0
- package/dist/types/components/Textarea/index.d.ts +1 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/types/components/Tooltip/Tooltip.tokens.d.ts +4 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/TopBar/Actions.d.ts +3 -0
- package/dist/types/components/TopBar/CustomContent.d.ts +3 -0
- package/dist/types/components/TopBar/Header.d.ts +3 -0
- package/dist/types/components/TopBar/TopBar.d.ts +3 -0
- package/dist/types/components/TopBar/TopBar.tokens.d.ts +4 -0
- package/dist/types/components/TopBar/index.d.ts +12 -0
- package/dist/types/components/Typography/Typography.d.ts +15 -0
- package/dist/types/components/Typography/Typography.tokens.d.ts +453 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +8 -0
- package/dist/types/hooks/useAutoResize.d.ts +1 -0
- package/dist/types/hooks/useCombinedRefs.d.ts +3 -0
- package/dist/types/hooks/useGlobalKeyPress.d.ts +10 -0
- package/dist/types/hooks/useId.d.ts +1 -0
- package/dist/types/hooks/useMountedRef.d.ts +1 -0
- package/dist/types/hooks/useOutsideClick.d.ts +1 -0
- package/dist/types/hooks/usePopper.d.ts +12 -0
- package/dist/types/hooks/useToken.d.ts +7 -0
- package/dist/types/index.d.ts +35 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/joinHandlers.d.ts +3 -0
- package/dist/types/utils/setReactInputValue.d.ts +7 -0
- package/dist/types/utils/templates/borders.d.ts +2 -0
- package/dist/types/utils/templates/common.d.ts +9 -0
- package/dist/types/utils/templates/focus.d.ts +2 -0
- package/dist/types/utils/templates/index.d.ts +7 -0
- package/package.json +111 -0
- package/src/index.ts +37 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import type { AccordionProps } from './Accordion.types';
|
|
3
|
+
declare const Accordion: import("react").ForwardRefExoticComponent<AccordionProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Accordion };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import type { AccordionProps } from './Accordion.types';
|
|
3
|
+
export declare type AccordionHeaderProps = {
|
|
4
|
+
/** The id of the button that toggles expansion */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Is AccordionItem expanded */
|
|
7
|
+
isExpanded?: boolean;
|
|
8
|
+
/** The panel that is controlled by the HeaderButton */
|
|
9
|
+
panelId?: string;
|
|
10
|
+
/** The index of the parent AccordionItem */
|
|
11
|
+
parentIndex?: number;
|
|
12
|
+
/** Accordion item is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** @ignore */
|
|
15
|
+
toggleExpanded?: () => void;
|
|
16
|
+
/** Accordion item toggle callback */
|
|
17
|
+
onToggle?: () => void;
|
|
18
|
+
} & AccordionProps & HTMLAttributes<HTMLDivElement>;
|
|
19
|
+
declare const AccordionHeader: import("react").ForwardRefExoticComponent<{
|
|
20
|
+
/** The id of the button that toggles expansion */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Is AccordionItem expanded */
|
|
23
|
+
isExpanded?: boolean;
|
|
24
|
+
/** The panel that is controlled by the HeaderButton */
|
|
25
|
+
panelId?: string;
|
|
26
|
+
/** The index of the parent AccordionItem */
|
|
27
|
+
parentIndex?: number;
|
|
28
|
+
/** Accordion item is disabled */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** @ignore */
|
|
31
|
+
toggleExpanded?: () => void;
|
|
32
|
+
/** Accordion item toggle callback */
|
|
33
|
+
onToggle?: () => void;
|
|
34
|
+
} & AccordionProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export { AccordionHeader };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type AccordionHeaderTitleProps = {
|
|
3
|
+
/** Is AccordionItem expanded */
|
|
4
|
+
isExpanded?: boolean;
|
|
5
|
+
/** Accordion item is disabled */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
8
|
+
declare const AccordionHeaderTitle: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
/** Is AccordionItem expanded */
|
|
10
|
+
isExpanded?: boolean;
|
|
11
|
+
/** Accordion item is disabled */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
} & HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export { AccordionHeaderTitle };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import type { AccordionProps } from './Accordion.types';
|
|
3
|
+
export declare type AccordionItemProps = {
|
|
4
|
+
index?: number;
|
|
5
|
+
accordionId?: string;
|
|
6
|
+
/** Is AccordionItem expanded */
|
|
7
|
+
isExpanded?: boolean;
|
|
8
|
+
/** accordion item is disabled */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & HTMLAttributes<HTMLDivElement> & AccordionProps;
|
|
11
|
+
declare const AccordionItem: import("react").ForwardRefExoticComponent<{
|
|
12
|
+
index?: number;
|
|
13
|
+
accordionId?: string;
|
|
14
|
+
/** Is AccordionItem expanded */
|
|
15
|
+
isExpanded?: boolean;
|
|
16
|
+
/** accordion item is disabled */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
} & HTMLAttributes<HTMLDivElement> & AccordionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export { AccordionItem };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type AccordionPanelProps = {
|
|
3
|
+
/** The ID of the element that controls the panel */
|
|
4
|
+
headerId?: string;
|
|
5
|
+
/** The ID of the panel */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** If `true`, the panel will be hidden. */
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const AccordionPanel: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
/** The ID of the element that controls the panel */
|
|
12
|
+
headerId?: string;
|
|
13
|
+
/** The ID of the panel */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** If `true`, the panel will be hidden. */
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { AccordionPanel };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Accordion as BaseAccordion } from './Accordion';
|
|
2
|
+
import { AccordionItem, AccordionItemProps } from './AccordionItem';
|
|
3
|
+
import { AccordionHeader, AccordionHeaderProps } from './AccordionHeader';
|
|
4
|
+
import { AccordionHeaderTitle, AccordionHeaderTitleProps } from './AccordionHeaderTitle';
|
|
5
|
+
import { AccordionPanel, AccordionPanelProps } from './AccordionPanel';
|
|
6
|
+
import type { AccordionProps } from './Accordion.types';
|
|
7
|
+
declare type AccordionCompoundProps = typeof BaseAccordion & {
|
|
8
|
+
Item: typeof AccordionItem;
|
|
9
|
+
Header: typeof AccordionHeader;
|
|
10
|
+
HeaderTitle: typeof AccordionHeaderTitle;
|
|
11
|
+
Panel: typeof AccordionPanel;
|
|
12
|
+
};
|
|
13
|
+
declare const Accordion: AccordionCompoundProps;
|
|
14
|
+
export { Accordion };
|
|
15
|
+
export type { AccordionProps, AccordionPanelProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type AvatarProps = {
|
|
3
|
+
alt: string;
|
|
4
|
+
/** Image source
|
|
5
|
+
@default null */
|
|
6
|
+
src?: string;
|
|
7
|
+
/** Avatar size
|
|
8
|
+
@default 24 */
|
|
9
|
+
size?: 16 | 24 | 32 | 40 | 48;
|
|
10
|
+
/** @default false */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
export declare const Avatar: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
alt: string;
|
|
15
|
+
/** Image source
|
|
16
|
+
@default null */
|
|
17
|
+
src?: string;
|
|
18
|
+
/** Avatar size
|
|
19
|
+
@default 24 */
|
|
20
|
+
size?: 16 | 24 | 32 | 40 | 48;
|
|
21
|
+
/** @default false */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Avatar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare type BannerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const Banner: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type BannerToken = ComponentToken & {
|
|
3
|
+
entities: {
|
|
4
|
+
icon: ComponentToken;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const enabled: BannerToken;
|
|
8
|
+
export declare const info: BannerToken;
|
|
9
|
+
export declare const warning: BannerToken;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
declare type BannerActionsPlacement = 'bottom' | 'left';
|
|
3
|
+
export declare type BannerActionsProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
placement?: BannerActionsPlacement;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const BannerActions: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
placement?: BannerActionsPlacement;
|
|
10
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
declare type BannerIconVariant = 'info' | 'warning';
|
|
3
|
+
export declare type BannerIconProps = {
|
|
4
|
+
/** Which icon background and fill color to use. Info = green, warning = red */
|
|
5
|
+
variant?: BannerIconVariant;
|
|
6
|
+
/** @ignore */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
9
|
+
export declare const BannerIcon: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
/** Which icon background and fill color to use. Info = green, warning = red */
|
|
11
|
+
variant?: BannerIconVariant;
|
|
12
|
+
/** @ignore */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
} & HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '../Typography/Typography';
|
|
3
|
+
export declare type BannerMessageProps = {
|
|
4
|
+
/** Text content */
|
|
5
|
+
children: string;
|
|
6
|
+
} & Omit<TypographyProps, 'children'>;
|
|
7
|
+
export declare const BannerMessage: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
/** Text content */
|
|
9
|
+
children: string;
|
|
10
|
+
} & Omit<TypographyProps, "children"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Banner as BaseBanner, BannerProps } from './Banner';
|
|
2
|
+
import { BannerIcon, BannerIconProps } from './BannerIcon';
|
|
3
|
+
import { BannerMessage, BannerMessageProps } from './BannerMessage';
|
|
4
|
+
import { BannerActions, BannerActionsProps } from './BannerActions';
|
|
5
|
+
declare type BannerCompoundProps = typeof BaseBanner & {
|
|
6
|
+
Icon: typeof BannerIcon;
|
|
7
|
+
Message: typeof BannerMessage;
|
|
8
|
+
Actions: typeof BannerActions;
|
|
9
|
+
};
|
|
10
|
+
declare const Banner: BannerCompoundProps;
|
|
11
|
+
export { Banner };
|
|
12
|
+
export type { BannerProps, BannerMessageProps, BannerIconProps, BannerActionsProps, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type BreadcrumbProps = {
|
|
3
|
+
maxWidth?: number;
|
|
4
|
+
/** Children is breadcrumb text */
|
|
5
|
+
children: string;
|
|
6
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
7
|
+
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
/** Children is breadcrumb text */
|
|
10
|
+
children: string;
|
|
11
|
+
} & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare type BreadcrumbsProps = {
|
|
3
|
+
collapse?: boolean;
|
|
4
|
+
/** Children should be of Breadcrumb component */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
} & HTMLAttributes<HTMLElement>;
|
|
7
|
+
export declare const Breadcrumbs: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
collapse?: boolean;
|
|
9
|
+
/** Children should be of Breadcrumb component */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
} & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Breadcrumbs as BaseComponent, BreadcrumbsProps } from './Breadcrumbs';
|
|
2
|
+
import { Breadcrumb, BreadcrumbProps } from './Breadcrumb';
|
|
3
|
+
declare type BreadcrumbsCompoundProps = typeof BaseComponent & {
|
|
4
|
+
Breadcrumb: typeof Breadcrumb;
|
|
5
|
+
};
|
|
6
|
+
declare const Breadcrumbs: BreadcrumbsCompoundProps;
|
|
7
|
+
export { Breadcrumbs };
|
|
8
|
+
export type { BreadcrumbsProps, BreadcrumbProps };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ElementType, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export declare type ButtonProps = {
|
|
3
|
+
/** Specifies color */
|
|
4
|
+
color?: 'primary' | 'secondary' | 'danger';
|
|
5
|
+
/** Specifies which variant to use */
|
|
6
|
+
variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
|
|
7
|
+
/**
|
|
8
|
+
* URL link destination
|
|
9
|
+
* If defined, an 'a' element is used as root instead of 'button'
|
|
10
|
+
*/
|
|
11
|
+
href?: string;
|
|
12
|
+
/** Is the button disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Change html element. */
|
|
15
|
+
as?: ElementType;
|
|
16
|
+
/** Type of button
|
|
17
|
+
* @default 'button'
|
|
18
|
+
*/
|
|
19
|
+
type?: string;
|
|
20
|
+
/** FullWidth (stretched) button */
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
|
+
export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
24
|
+
/** Specifies color */
|
|
25
|
+
color?: 'primary' | 'secondary' | 'danger';
|
|
26
|
+
/** Specifies which variant to use */
|
|
27
|
+
variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
|
|
28
|
+
/**
|
|
29
|
+
* URL link destination
|
|
30
|
+
* If defined, an 'a' element is used as root instead of 'button'
|
|
31
|
+
*/
|
|
32
|
+
href?: string;
|
|
33
|
+
/** Is the button disabled */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Change html element. */
|
|
36
|
+
as?: ElementType;
|
|
37
|
+
/** Type of button
|
|
38
|
+
* @default 'button'
|
|
39
|
+
*/
|
|
40
|
+
type?: string;
|
|
41
|
+
/** FullWidth (stretched) button */
|
|
42
|
+
fullWidth?: boolean;
|
|
43
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type ButtonToken = ComponentToken & {
|
|
3
|
+
entities?: {
|
|
4
|
+
icon: ComponentToken;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare type ButtonTokenSet = {
|
|
8
|
+
contained: ButtonToken;
|
|
9
|
+
outlined: ButtonToken;
|
|
10
|
+
ghost: ButtonToken;
|
|
11
|
+
ghost_icon: ButtonToken;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardProps = {
|
|
3
|
+
/** Variant */
|
|
4
|
+
variant?: 'default' | 'info' | 'warning' | 'danger';
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const Card: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
/** Variant */
|
|
8
|
+
variant?: 'default' | 'info' | 'warning' | 'danger';
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type CardToken = ComponentToken;
|
|
3
|
+
export declare const primary: CardToken;
|
|
4
|
+
export declare const info: CardToken;
|
|
5
|
+
export declare const danger: CardToken;
|
|
6
|
+
export declare const warning: CardToken;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardActionsProps = {
|
|
3
|
+
/** Should the actions be right aligned */
|
|
4
|
+
alignRight?: boolean;
|
|
5
|
+
/** Meta information */
|
|
6
|
+
meta?: string;
|
|
7
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare const CardActions: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
/** Should the actions be right aligned */
|
|
10
|
+
alignRight?: boolean;
|
|
11
|
+
/** Meta information */
|
|
12
|
+
meta?: string;
|
|
13
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CardMediaProps = {
|
|
3
|
+
/** Should the media be full width or not */
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const CardMedia: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
/** Should the media be full width or not */
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Card as CardWrapper, CardProps } from './Card';
|
|
2
|
+
import { CardActions, CardActionsProps } from './CardActions';
|
|
3
|
+
import { CardMedia, CardMediaProps } from './CardMedia';
|
|
4
|
+
import { CardHeader, CardHeaderProps } from './CardHeader';
|
|
5
|
+
import { CardHeaderTitle, CardHeaderTitleProps } from './CardHeaderTitle';
|
|
6
|
+
declare type CardCompoundProps = typeof CardWrapper & {
|
|
7
|
+
Actions: typeof CardActions;
|
|
8
|
+
Header: typeof CardHeader;
|
|
9
|
+
Media: typeof CardMedia;
|
|
10
|
+
HeaderTitle: typeof CardHeaderTitle;
|
|
11
|
+
};
|
|
12
|
+
declare const Card: CardCompoundProps;
|
|
13
|
+
export { Card };
|
|
14
|
+
export type { CardProps, CardActionsProps, CardMediaProps, CardHeaderProps, CardHeaderTitleProps, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type CheckboxProps = {
|
|
3
|
+
/** Label for the checkbox
|
|
4
|
+
*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/** If true, the checkbox will be disabled */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** If true, the checkbox appears indeterminate. Important! You'll have to
|
|
9
|
+
* set the native element to indeterminate yourself.
|
|
10
|
+
*/
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled'> & {
|
|
13
|
+
ref?: Ref<HTMLInputElement>;
|
|
14
|
+
};
|
|
15
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Pick<CheckboxProps, "height" | "width" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "type" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "disabled" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "indeterminate"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type InputProps = {
|
|
3
|
+
/** If true, the checkbox will be disabled */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** If true, the checkbox appears indeterminate. Important! You'll have to
|
|
6
|
+
* set the native element to indeterminate yourself.
|
|
7
|
+
*/
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled'> & {
|
|
10
|
+
ref?: Ref<HTMLInputElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const CheckboxInput: import("react").ForwardRefExoticComponent<Pick<InputProps, "height" | "width" | "form" | "slot" | "style" | "title" | "pattern" | "type" | "name" | "children" | "className" | "color" | "id" | "lang" | "max" | "min" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "indeterminate"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type ChipProps = {
|
|
3
|
+
/** Disabled */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** Delete callback */
|
|
6
|
+
onDelete?: (Event: any) => void;
|
|
7
|
+
/** Variant */
|
|
8
|
+
variant?: 'active' | 'error' | 'default';
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare const Chip: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
/** Disabled */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Delete callback */
|
|
14
|
+
onDelete?: (Event: any) => void;
|
|
15
|
+
/** Variant */
|
|
16
|
+
variant?: 'active' | 'error' | 'default';
|
|
17
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare type IconProps = {
|
|
2
|
+
variant: 'active' | 'error' | 'default';
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const Icon: import("styled-components").StyledComponent<import("../Icon/Icon.types").IconType, import("styled-components").DefaultTheme, IconProps, never>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chip';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
export declare type ComboboxChanges = {
|
|
3
|
+
selectedItems: string[];
|
|
4
|
+
inputValue: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type ComboboxProps = {
|
|
7
|
+
/** List of options to choose from */
|
|
8
|
+
items: string[];
|
|
9
|
+
/** Label for the select element */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Array of initial selected items */
|
|
12
|
+
initialSelectedItems?: string[];
|
|
13
|
+
/** Meta text, for instance unit */
|
|
14
|
+
meta?: string;
|
|
15
|
+
/** Disabled state */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Read Only */
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/** If this prop is used, the select will become a controlled component. Use an empty
|
|
20
|
+
* array [] if there will be no initial selected items
|
|
21
|
+
* Note that this prop replaces the need for ```initialSelectedItems```
|
|
22
|
+
* The items that should be selected. */
|
|
23
|
+
selectedOptions?: string[];
|
|
24
|
+
/** Callback for the selected item change
|
|
25
|
+
* changes.selectedItem gives the selected item
|
|
26
|
+
*/
|
|
27
|
+
handleSelectedItemsChange?: (changes: ComboboxChanges) => void;
|
|
28
|
+
/** Enable multiselect */
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
} & SelectHTMLAttributes<HTMLSelectElement>;
|
|
31
|
+
export declare const Combobox: import("react").ForwardRefExoticComponent<{
|
|
32
|
+
/** List of options to choose from */
|
|
33
|
+
items: string[];
|
|
34
|
+
/** Label for the select element */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Array of initial selected items */
|
|
37
|
+
initialSelectedItems?: string[];
|
|
38
|
+
/** Meta text, for instance unit */
|
|
39
|
+
meta?: string;
|
|
40
|
+
/** Disabled state */
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/** Read Only */
|
|
43
|
+
readOnly?: boolean;
|
|
44
|
+
/** If this prop is used, the select will become a controlled component. Use an empty
|
|
45
|
+
* array [] if there will be no initial selected items
|
|
46
|
+
* Note that this prop replaces the need for ```initialSelectedItems```
|
|
47
|
+
* The items that should be selected. */
|
|
48
|
+
selectedOptions?: string[];
|
|
49
|
+
/** Callback for the selected item change
|
|
50
|
+
* changes.selectedItem gives the selected item
|
|
51
|
+
*/
|
|
52
|
+
handleSelectedItemsChange?: (changes: ComboboxChanges) => void;
|
|
53
|
+
/** Enable multiselect */
|
|
54
|
+
multiple?: boolean;
|
|
55
|
+
} & SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLDivElement>>;
|