@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 @@
|
|
|
1
|
+
export * from './Combobox';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type DialogCustomContentProps = {
|
|
3
|
+
/** Control if the content should be scrollable */
|
|
4
|
+
scrollable?: boolean;
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const CustomContent: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
/** Control if the content should be scrollable */
|
|
8
|
+
scrollable?: boolean;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dialog as BaseComponent, DialogProps } from './Dialog';
|
|
2
|
+
import { Actions, DialogActionsProps } from './Actions';
|
|
3
|
+
import { Title, DialogTitleProps } from './Title';
|
|
4
|
+
import { CustomContent, DialogCustomContentProps } from './CustomContent';
|
|
5
|
+
declare type CompoundDialogProps = typeof BaseComponent & {
|
|
6
|
+
Actions: typeof Actions;
|
|
7
|
+
Title: typeof Title;
|
|
8
|
+
CustomContent: typeof CustomContent;
|
|
9
|
+
};
|
|
10
|
+
declare const Dialog: CompoundDialogProps;
|
|
11
|
+
export { Dialog };
|
|
12
|
+
export type { DialogProps, DialogActionsProps, DialogTitleProps, DialogCustomContentProps, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type DividerProps = {
|
|
3
|
+
/** Color variants */
|
|
4
|
+
color?: 'lighter' | 'light' | 'medium';
|
|
5
|
+
/** Vertical spacings */
|
|
6
|
+
variant?: 'small' | 'medium';
|
|
7
|
+
/** @ignore */
|
|
8
|
+
className?: string;
|
|
9
|
+
} & HTMLAttributes<HTMLHRElement>;
|
|
10
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
/** Color variants */
|
|
12
|
+
color?: 'lighter' | 'light' | 'medium';
|
|
13
|
+
/** Vertical spacings */
|
|
14
|
+
variant?: 'small' | 'medium';
|
|
15
|
+
/** @ignore */
|
|
16
|
+
className?: string;
|
|
17
|
+
} & HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
declare type DividerToken = ComponentToken;
|
|
3
|
+
declare type DividerVariantsToken = {
|
|
4
|
+
lighter: DividerToken;
|
|
5
|
+
light: DividerToken;
|
|
6
|
+
mediumColor: DividerToken;
|
|
7
|
+
};
|
|
8
|
+
export declare const baseDivider: DividerToken;
|
|
9
|
+
export declare const divider: DividerVariantsToken;
|
|
10
|
+
export declare const small: DividerToken;
|
|
11
|
+
export declare const medium: DividerToken;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type Density = 'compact' | 'comfortable';
|
|
3
|
+
declare type State = {
|
|
4
|
+
density: Density;
|
|
5
|
+
};
|
|
6
|
+
declare type UseEdsProps<T> = {
|
|
7
|
+
setDensity: (density: Density) => void;
|
|
8
|
+
} & T;
|
|
9
|
+
export declare type EdsProviderProps = {
|
|
10
|
+
density?: Density;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const EdsProvider: React.FC<EdsProviderProps>;
|
|
14
|
+
export declare const useEds: () => UseEdsProps<State>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './eds.context';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ref, SVGProps } from 'react';
|
|
2
|
+
import type { IconData } from '@equinor/eds-icons';
|
|
3
|
+
import type { Name } from './Icon.types';
|
|
4
|
+
export declare type IconProps = {
|
|
5
|
+
/** Title for icon when used semantically */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Color */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Size */
|
|
10
|
+
size?: 16 | 24 | 32 | 40 | 48;
|
|
11
|
+
/** Rotation */
|
|
12
|
+
rotation?: 0 | 90 | 180 | 270;
|
|
13
|
+
/** Name */
|
|
14
|
+
name?: Name;
|
|
15
|
+
/** Manually specify which icon data to use */
|
|
16
|
+
data?: IconData;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
ref?: Ref<SVGSVGElement>;
|
|
19
|
+
} & SVGProps<SVGSVGElement>;
|
|
20
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<Pick<IconProps, "string" | "rotation" | "height" | "width" | "data" | "style" | "title" | "clipPath" | "filter" | "mask" | "path" | "type" | "name" | "children" | "className" | "color" | "id" | "lang" | "max" | "media" | "method" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "key" | "size"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconData, IconName } from '@equinor/eds-icons';
|
|
2
|
+
import { Icon } from './Icon';
|
|
3
|
+
import { add } from './library';
|
|
4
|
+
export declare type IconBasket = {
|
|
5
|
+
icon?: IconData;
|
|
6
|
+
count: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type Name = IconName | string;
|
|
9
|
+
export declare type IconType = typeof Icon & {
|
|
10
|
+
add: typeof add;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconData } from '@equinor/eds-icons';
|
|
2
|
+
import type { IconBasket, Name } from './Icon.types';
|
|
3
|
+
declare type IconRecord = Record<Name, IconData>;
|
|
4
|
+
/** Add icons to library to be used for rendering using name.
|
|
5
|
+
This needs to be done lonly once */
|
|
6
|
+
export declare const add: (icons: IconRecord) => void;
|
|
7
|
+
export declare const get: (name: Name) => IconBasket;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import type { Variants } from '../TextField/types';
|
|
3
|
+
export declare type InputProps = {
|
|
4
|
+
/** Placeholder */
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/** Variant */
|
|
7
|
+
variant?: Variants;
|
|
8
|
+
/** Disabled state */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Type */
|
|
11
|
+
type?: string;
|
|
12
|
+
/** Read Only */
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
15
|
+
export declare const Input: import("react").ForwardRefExoticComponent<{
|
|
16
|
+
/** Placeholder */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Variant */
|
|
19
|
+
variant?: Variants;
|
|
20
|
+
/** Disabled state */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Type */
|
|
23
|
+
type?: string;
|
|
24
|
+
/** Read Only */
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
} & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type InputToken = ComponentToken;
|
|
3
|
+
export declare const input: InputToken;
|
|
4
|
+
export declare const error: InputToken;
|
|
5
|
+
export declare const warning: InputToken;
|
|
6
|
+
export declare const success: InputToken;
|
|
7
|
+
export declare const inputToken: {
|
|
8
|
+
input: ComponentToken;
|
|
9
|
+
error: ComponentToken;
|
|
10
|
+
warning: ComponentToken;
|
|
11
|
+
success: ComponentToken;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LabelHTMLAttributes } from 'react';
|
|
2
|
+
export declare type LabelProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
meta?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
} & LabelHTMLAttributes<HTMLLabelElement>;
|
|
7
|
+
export declare const Label: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
label: string;
|
|
9
|
+
meta?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
} & LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Label';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type ListProps = {
|
|
3
|
+
/** Is the list an ordered or unordered list */
|
|
4
|
+
variant?: 'bullet' | 'numbered';
|
|
5
|
+
/** Start number if other than 1 for ordered lists */
|
|
6
|
+
start?: string;
|
|
7
|
+
} & HTMLAttributes<HTMLUListElement | HTMLOListElement>;
|
|
8
|
+
declare const List: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
/** Is the list an ordered or unordered list */
|
|
10
|
+
variant?: 'bullet' | 'numbered';
|
|
11
|
+
/** Start number if other than 1 for ordered lists */
|
|
12
|
+
start?: string;
|
|
13
|
+
} & HTMLAttributes<HTMLOListElement | HTMLUListElement> & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
14
|
+
export { List };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { List as BaseComponent, ListProps } from './List';
|
|
2
|
+
import { ListItem, ListItemProps } from './ListItem';
|
|
3
|
+
declare type ListCompoundProps = typeof BaseComponent & {
|
|
4
|
+
Item: typeof ListItem;
|
|
5
|
+
};
|
|
6
|
+
declare const List: ListCompoundProps;
|
|
7
|
+
export { List };
|
|
8
|
+
export type { ListProps, ListItemProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
+
export declare type State = {
|
|
3
|
+
focusedIndex: number;
|
|
4
|
+
onClose: (e?: MouseEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
declare type UseMenu<T> = T & {
|
|
7
|
+
setFocusedIndex: (index: number) => void;
|
|
8
|
+
setOnClose: (onClose: (e?: MouseEvent) => void) => void;
|
|
9
|
+
};
|
|
10
|
+
declare type ProviderProps = {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const MenuProvider: ({ children }: ProviderProps) => JSX.Element;
|
|
14
|
+
export declare const useMenu: () => UseMenu<State>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Placement } from '../../hooks';
|
|
3
|
+
import type { FocusTarget } from './Menu.types';
|
|
4
|
+
export declare type MenuProps = {
|
|
5
|
+
/** Anchor element for Menu */
|
|
6
|
+
anchorEl?: HTMLElement | null;
|
|
7
|
+
/** Is Menu open */
|
|
8
|
+
open: boolean;
|
|
9
|
+
/** Which Menu child to focus when open */
|
|
10
|
+
focus?: FocusTarget;
|
|
11
|
+
/** onClose handler */
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
/** Menu placement relative to anchorEl */
|
|
14
|
+
placement?: Placement;
|
|
15
|
+
} & HTMLAttributes<HTMLUListElement>;
|
|
16
|
+
export declare const Menu: import("react").ForwardRefExoticComponent<{
|
|
17
|
+
/** Anchor element for Menu */
|
|
18
|
+
anchorEl?: HTMLElement | null;
|
|
19
|
+
/** Is Menu open */
|
|
20
|
+
open: boolean;
|
|
21
|
+
/** Which Menu child to focus when open */
|
|
22
|
+
focus?: FocusTarget;
|
|
23
|
+
/** onClose handler */
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/** Menu placement relative to anchorEl */
|
|
26
|
+
placement?: Placement;
|
|
27
|
+
} & HTMLAttributes<HTMLUListElement> & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type FocusTarget = 'first' | 'last';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export declare type MenuItemProps = {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
index?: number;
|
|
5
|
+
/** Is active */
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/** Is disabled */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** onClick handler */
|
|
10
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
11
|
+
} & React.HTMLAttributes<HTMLLIElement>;
|
|
12
|
+
export declare const MenuItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
13
|
+
/** @ignore */
|
|
14
|
+
index?: number;
|
|
15
|
+
/** Is active */
|
|
16
|
+
active?: boolean;
|
|
17
|
+
/** Is disabled */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** onClick handler */
|
|
20
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
21
|
+
} & import("react").HTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { FocusTarget } from './Menu.types';
|
|
3
|
+
declare type MenuListProps = {
|
|
4
|
+
focus?: FocusTarget;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const MenuList: import("react").ForwardRefExoticComponent<MenuListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare type MenuSectionProps = {
|
|
4
|
+
/** @ignore */
|
|
5
|
+
index?: number;
|
|
6
|
+
/** @ignore */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Section title */
|
|
9
|
+
title?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const MenuSection: React.NamedExoticComponent<MenuSectionProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Menu as BaseMenu, MenuProps } from './Menu';
|
|
2
|
+
import { MenuItem, MenuItemProps } from './MenuItem';
|
|
3
|
+
import { MenuSection, MenuSectionProps } from './MenuSection';
|
|
4
|
+
declare type MenuType = typeof BaseMenu & {
|
|
5
|
+
Item: typeof MenuItem;
|
|
6
|
+
Section: typeof MenuSection;
|
|
7
|
+
};
|
|
8
|
+
declare const Menu: MenuType;
|
|
9
|
+
export { Menu };
|
|
10
|
+
export type { MenuProps, MenuItemProps, MenuSectionProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEvent, KeyboardEvent, HTMLAttributes } from 'react';
|
|
2
|
+
export declare type PaginationProps = {
|
|
3
|
+
/** Number of total items to be paginated */
|
|
4
|
+
totalItems: number;
|
|
5
|
+
/** To display total item count */
|
|
6
|
+
withItemIndicator?: boolean;
|
|
7
|
+
/** Choose number of items per page */
|
|
8
|
+
itemsPerPage?: number;
|
|
9
|
+
/** Callback fired on page change */
|
|
10
|
+
onChange?: (event: MouseEvent | KeyboardEvent, page: number) => void;
|
|
11
|
+
/** Default start page */
|
|
12
|
+
defaultPage?: number;
|
|
13
|
+
} & Omit<HTMLAttributes<HTMLElement>, 'onChange'>;
|
|
14
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<{
|
|
15
|
+
/** Number of total items to be paginated */
|
|
16
|
+
totalItems: number;
|
|
17
|
+
/** To display total item count */
|
|
18
|
+
withItemIndicator?: boolean;
|
|
19
|
+
/** Choose number of items per page */
|
|
20
|
+
itemsPerPage?: number;
|
|
21
|
+
/** Callback fired on page change */
|
|
22
|
+
onChange?: (event: MouseEvent | KeyboardEvent, page: number) => void;
|
|
23
|
+
/** Default start page */
|
|
24
|
+
defaultPage?: number;
|
|
25
|
+
} & Omit<HTMLAttributes<HTMLElement>, "onChange"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
+
declare type PaginationItemProps = {
|
|
3
|
+
page: number;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onClick?: (event: MouseEvent | KeyboardEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const PaginationItem: import("react").ForwardRefExoticComponent<PaginationItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PaginationControl(pages: number, activePage: number): (string | number)[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ElevationTypes } from './Paper.tokens';
|
|
3
|
+
export declare type PaperProps = {
|
|
4
|
+
elevation: ElevationTypes;
|
|
5
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const Paper: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
elevation: ElevationTypes;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentToken, Elevations } from '@equinor/eds-tokens';
|
|
2
|
+
declare const elevation: {
|
|
3
|
+
raised: string;
|
|
4
|
+
none: string;
|
|
5
|
+
overlay: string;
|
|
6
|
+
sticky: string;
|
|
7
|
+
temporary_nav: string;
|
|
8
|
+
above_scrim: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type ElevationTypes = keyof Elevations;
|
|
11
|
+
export { elevation };
|
|
12
|
+
export declare const paper: ComponentToken;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paper';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Placement } from '../../hooks';
|
|
3
|
+
export declare type PopoverProps = {
|
|
4
|
+
/** Popover placement relative to anchor */
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
/** On Close callback */
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
/** Anchor element reference */
|
|
9
|
+
anchorEl?: HTMLElement | null;
|
|
10
|
+
/** Is Popover open */
|
|
11
|
+
open: boolean;
|
|
12
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
export declare const Popover: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
/** Popover placement relative to anchor */
|
|
15
|
+
placement?: Placement;
|
|
16
|
+
/** On Close callback */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
/** Anchor element reference */
|
|
19
|
+
anchorEl?: HTMLElement | null;
|
|
20
|
+
/** Is Popover open */
|
|
21
|
+
open: boolean;
|
|
22
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Popover as BaseComponent, PopoverProps } from './Popover';
|
|
2
|
+
import { PopoverTitle, PopoverTitleProps } from './PopoverTitle';
|
|
3
|
+
import { PopoverContent, PopoverContentProps } from './PopoverContent';
|
|
4
|
+
declare type PopoverConformProps = typeof BaseComponent & {
|
|
5
|
+
Title: typeof PopoverTitle;
|
|
6
|
+
Content: typeof PopoverContent;
|
|
7
|
+
};
|
|
8
|
+
declare const Popover: PopoverConformProps;
|
|
9
|
+
export { Popover };
|
|
10
|
+
export type { PopoverProps, PopoverContentProps, PopoverTitleProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SVGProps, Ref } from 'react';
|
|
2
|
+
export declare type CircularProgressProps = {
|
|
3
|
+
/** Use indeterminate when there is no progress value */
|
|
4
|
+
variant?: 'determinate' | 'indeterminate';
|
|
5
|
+
/** The value of the progress indicator for determinate variant.
|
|
6
|
+
* Value between 0 and 100 */
|
|
7
|
+
value?: number;
|
|
8
|
+
/** Size */
|
|
9
|
+
size?: 16 | 24 | 32 | 40 | 48;
|
|
10
|
+
/** Color */
|
|
11
|
+
color?: 'primary' | 'neutral';
|
|
12
|
+
/** @ignore */
|
|
13
|
+
ref?: Ref<SVGSVGElement>;
|
|
14
|
+
} & SVGProps<SVGSVGElement>;
|
|
15
|
+
declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "children" | "variant" | "value" | "size" | "color" | "className" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "key"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export { CircularProgress };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type CircularProgressToken = ComponentToken & {
|
|
3
|
+
entities: {
|
|
4
|
+
progress: ComponentToken;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const primary: CircularProgressToken;
|
|
8
|
+
export declare const neutral: CircularProgressToken;
|