@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,11 @@
|
|
|
1
|
+
import { SVGProps, Ref } from 'react';
|
|
2
|
+
export declare type DotProgressProps = {
|
|
3
|
+
/** Color */
|
|
4
|
+
color?: 'primary' | 'tertiary' | 'neutral';
|
|
5
|
+
/** Size */
|
|
6
|
+
size?: 32 | 48 | 64;
|
|
7
|
+
/** @ignore */
|
|
8
|
+
ref?: Ref<SVGSVGElement>;
|
|
9
|
+
} & SVGProps<SVGSVGElement>;
|
|
10
|
+
declare const DotProgress: import("react").ForwardRefExoticComponent<Pick<DotProgressProps, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "children" | "height" | "width" | "type" | "name" | "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>>;
|
|
11
|
+
export { DotProgress };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type LinearProgressProps = {
|
|
3
|
+
/** Variant
|
|
4
|
+
* Use indeterminate when there is no progress value */
|
|
5
|
+
variant?: 'indeterminate' | 'determinate';
|
|
6
|
+
/** The value of the progress indicator for determinate variant
|
|
7
|
+
* Value between 0 and 100 */
|
|
8
|
+
value?: number;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const LinearProgress: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
/** Variant
|
|
12
|
+
* Use indeterminate when there is no progress value */
|
|
13
|
+
variant?: 'indeterminate' | 'determinate';
|
|
14
|
+
/** The value of the progress indicator for determinate variant
|
|
15
|
+
* Value between 0 and 100 */
|
|
16
|
+
value?: number;
|
|
17
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { LinearProgress };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SVGProps, Ref } from 'react';
|
|
2
|
+
export declare type StarProgressProps = {
|
|
3
|
+
/** Use indeterminate when there is no progress value */
|
|
4
|
+
variant?: 'indeterminate' | 'determinate';
|
|
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
|
+
/** @ignore */
|
|
11
|
+
ref?: Ref<SVGSVGElement>;
|
|
12
|
+
} & SVGProps<SVGSVGElement>;
|
|
13
|
+
declare const StarProgress: import("react").ForwardRefExoticComponent<Pick<StarProgressProps, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "children" | "variant" | "value" | "size" | "className" | "color" | "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>>;
|
|
14
|
+
export { StarProgress };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './Linear/LinearProgress';
|
|
2
|
+
export * from './Circular/CircularProgress';
|
|
3
|
+
export * from './Star/StarProgress';
|
|
4
|
+
export * from './Dots/DotProgress';
|
|
5
|
+
import { LinearProgress } from './Linear/LinearProgress';
|
|
6
|
+
import { CircularProgress } from './Circular/CircularProgress';
|
|
7
|
+
import { StarProgress } from './Star/StarProgress';
|
|
8
|
+
import { DotProgress } from './Dots/DotProgress';
|
|
9
|
+
declare type ProgressCompoundProps = {
|
|
10
|
+
Linear: typeof LinearProgress;
|
|
11
|
+
Circular: typeof CircularProgress;
|
|
12
|
+
Star: typeof StarProgress;
|
|
13
|
+
Dots: typeof DotProgress;
|
|
14
|
+
};
|
|
15
|
+
export declare const Progress: ProgressCompoundProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type RadioProps = {
|
|
3
|
+
/** Label for the radio */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** If true, the radio button will be disabled */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & InputHTMLAttributes<HTMLInputElement> & {
|
|
8
|
+
ref?: Ref<HTMLInputElement>;
|
|
9
|
+
};
|
|
10
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<Pick<RadioProps, "label" | keyof InputHTMLAttributes<HTMLInputElement>> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Radio';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseEvent, HTMLAttributes } from 'react';
|
|
2
|
+
export declare type ScrimProps = {
|
|
3
|
+
/** Whether scrim can be dismissed with esc key and outside click
|
|
4
|
+
*/
|
|
5
|
+
isDismissable?: boolean;
|
|
6
|
+
/** function to handle closing scrim */
|
|
7
|
+
onClose?: (event: MouseEvent | KeyboardEvent, open: boolean) => void;
|
|
8
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare const Scrim: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
/** Whether scrim can be dismissed with esc key and outside click
|
|
11
|
+
*/
|
|
12
|
+
isDismissable?: boolean;
|
|
13
|
+
/** function to handle closing scrim */
|
|
14
|
+
onClose?: (event: MouseEvent | KeyboardEvent, open: boolean) => void;
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Scrim';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Search';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { UseMultipleSelectionStateChange } from 'downshift';
|
|
3
|
+
export declare type MultiSelectProps = {
|
|
4
|
+
/** List of options to choose from */
|
|
5
|
+
items: string[];
|
|
6
|
+
/** Label for the select element */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Array of initial selected items */
|
|
9
|
+
initialSelectedItems?: string[];
|
|
10
|
+
/** Meta text, for instance unit */
|
|
11
|
+
meta?: string;
|
|
12
|
+
/** Disabled state */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Read Only */
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
/** If this prop is used, the select will become a controlled component. Use an empty
|
|
17
|
+
* array [] if there will be no initial selected items
|
|
18
|
+
* Note that this prop replaces the need for ```initialSelectedItems```
|
|
19
|
+
* The items that should be selected. */
|
|
20
|
+
selectedOptions?: string[];
|
|
21
|
+
/** Callback for the selected item change
|
|
22
|
+
* changes.selectedItem gives the selected item
|
|
23
|
+
*/
|
|
24
|
+
handleSelectedItemsChange?: (changes: UseMultipleSelectionStateChange<string>) => void;
|
|
25
|
+
} & SelectHTMLAttributes<HTMLSelectElement>;
|
|
26
|
+
export declare const MultiSelect: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
/** List of options to choose from */
|
|
28
|
+
items: string[];
|
|
29
|
+
/** Label for the select element */
|
|
30
|
+
label: string;
|
|
31
|
+
/** Array of initial selected items */
|
|
32
|
+
initialSelectedItems?: string[];
|
|
33
|
+
/** Meta text, for instance unit */
|
|
34
|
+
meta?: string;
|
|
35
|
+
/** Disabled state */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Read Only */
|
|
38
|
+
readOnly?: boolean;
|
|
39
|
+
/** If this prop is used, the select will become a controlled component. Use an empty
|
|
40
|
+
* array [] if there will be no initial selected items
|
|
41
|
+
* Note that this prop replaces the need for ```initialSelectedItems```
|
|
42
|
+
* The items that should be selected. */
|
|
43
|
+
selectedOptions?: string[];
|
|
44
|
+
/** Callback for the selected item change
|
|
45
|
+
* changes.selectedItem gives the selected item
|
|
46
|
+
*/
|
|
47
|
+
handleSelectedItemsChange?: (changes: UseMultipleSelectionStateChange<string>) => void;
|
|
48
|
+
} & SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiSelect';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
export declare type NativeSelectProps = {
|
|
3
|
+
/** Input unique id */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Label for the select element */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Meta text, for instance unit */
|
|
8
|
+
meta?: string;
|
|
9
|
+
/** Disabled state */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** The user can choose multiple items */
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
/** Ref for the select element */
|
|
14
|
+
selectRef?: React.Ref<HTMLSelectElement>;
|
|
15
|
+
} & SelectHTMLAttributes<HTMLSelectElement>;
|
|
16
|
+
export declare const NativeSelect: import("react").ForwardRefExoticComponent<{
|
|
17
|
+
/** Input unique id */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Label for the select element */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Meta text, for instance unit */
|
|
22
|
+
meta?: string;
|
|
23
|
+
/** Disabled state */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** The user can choose multiple items */
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
/** Ref for the select element */
|
|
28
|
+
selectRef?: React.Ref<HTMLSelectElement>;
|
|
29
|
+
} & SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NativeSelect';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { UseComboboxStateChange } from 'downshift';
|
|
3
|
+
export declare type SingleSelectProps = {
|
|
4
|
+
/** List of options to choose from */
|
|
5
|
+
items: string[];
|
|
6
|
+
/** Label for the select element */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Meta text, for instance unit */
|
|
9
|
+
meta?: string;
|
|
10
|
+
/** Disabled state */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Read Only */
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/** Pass an item that should be selected when the Select is initialized. */
|
|
15
|
+
initialSelectedItem?: string;
|
|
16
|
+
/** If this prop is used, the select will become a controlled component.
|
|
17
|
+
* Note that this prop replaces the need for ```initialSelectedItem```
|
|
18
|
+
*
|
|
19
|
+
* The item that should be selected. */
|
|
20
|
+
selectedOption?: string;
|
|
21
|
+
/** Callback for the selected item change
|
|
22
|
+
* changes.selectedItem gives the selected item
|
|
23
|
+
*/
|
|
24
|
+
handleSelectedItemChange?: (changes: UseComboboxStateChange<string>) => void;
|
|
25
|
+
} & SelectHTMLAttributes<HTMLSelectElement>;
|
|
26
|
+
export declare const SingleSelect: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
/** List of options to choose from */
|
|
28
|
+
items: string[];
|
|
29
|
+
/** Label for the select element */
|
|
30
|
+
label: string;
|
|
31
|
+
/** Meta text, for instance unit */
|
|
32
|
+
meta?: string;
|
|
33
|
+
/** Disabled state */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Read Only */
|
|
36
|
+
readOnly?: boolean;
|
|
37
|
+
/** Pass an item that should be selected when the Select is initialized. */
|
|
38
|
+
initialSelectedItem?: string;
|
|
39
|
+
/** If this prop is used, the select will become a controlled component.
|
|
40
|
+
* Note that this prop replaces the need for ```initialSelectedItem```
|
|
41
|
+
*
|
|
42
|
+
* The item that should be selected. */
|
|
43
|
+
selectedOption?: string;
|
|
44
|
+
/** Callback for the selected item change
|
|
45
|
+
* changes.selectedItem gives the selected item
|
|
46
|
+
*/
|
|
47
|
+
handleSelectedItemChange?: (changes: UseComboboxStateChange<string>) => void;
|
|
48
|
+
} & SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SingleSelect';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
declare type ContainerProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
declare type StyledListItemType = {
|
|
4
|
+
highlighted: string;
|
|
5
|
+
active?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
|
|
8
|
+
export declare const PaddedInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
variant?: import("../TextField/types").Variants;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
type?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
export declare const StyledList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
16
|
+
variant?: "bullet" | "numbered";
|
|
17
|
+
start?: string;
|
|
18
|
+
} & HTMLAttributes<HTMLUListElement | HTMLOListElement> & import("react").RefAttributes<HTMLUListElement | HTMLOListElement>> & {
|
|
19
|
+
Item: import("react").ForwardRefExoticComponent<import("../List").ListItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
20
|
+
}, import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
+
export declare const StyledListItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../List").ListItemProps & import("react").RefAttributes<HTMLLIElement>>, import("styled-components").DefaultTheme, StyledListItemType, never>;
|
|
22
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
23
|
+
color?: "primary" | "secondary" | "danger";
|
|
24
|
+
variant?: "contained" | "outlined" | "ghost" | "ghost_icon";
|
|
25
|
+
href?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
as?: import("react").ElementType<any>;
|
|
28
|
+
type?: string;
|
|
29
|
+
fullWidth?: boolean;
|
|
30
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
31
|
+
export declare const StyledInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type SideSheetProps = {
|
|
3
|
+
/** Title for Side Sheet */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Variant controls width of Side Sheet */
|
|
6
|
+
variant?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
|
+
/** OnClick function (close) */
|
|
8
|
+
onClose?: (Event: any) => void;
|
|
9
|
+
/** Open / close Side Sheet */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare const SideSheet: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
/** Title for Side Sheet */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** Variant controls width of Side Sheet */
|
|
16
|
+
variant?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
17
|
+
/** OnClick function (close) */
|
|
18
|
+
onClose?: (Event: any) => void;
|
|
19
|
+
/** Open / close Side Sheet */
|
|
20
|
+
open?: boolean;
|
|
21
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
declare type SidesheetToken = ComponentToken;
|
|
3
|
+
export declare const comfortable: SidesheetToken;
|
|
4
|
+
export declare const variants: {
|
|
5
|
+
small: string;
|
|
6
|
+
medium: string;
|
|
7
|
+
large: string;
|
|
8
|
+
xlarge: string;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SideSheet';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OutputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare const Output: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** Value */
|
|
4
|
+
value: number;
|
|
5
|
+
/** HtmlFor */
|
|
6
|
+
htmlFor: string;
|
|
7
|
+
/** Children are required */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
} & OutputHTMLAttributes<HTMLOutputElement> & import("react").RefAttributes<HTMLOutputElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HTMLAttributes, MouseEvent, KeyboardEvent, FormEvent } from 'react';
|
|
2
|
+
export declare type SliderProps = {
|
|
3
|
+
/** Id for the elements that labels this slider */
|
|
4
|
+
ariaLabelledby: string;
|
|
5
|
+
/** Components value, range of numbers */
|
|
6
|
+
value: number[] | number;
|
|
7
|
+
/** Function to be called when value change */
|
|
8
|
+
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
9
|
+
/** Function to be called when value is committed by mouseup event */
|
|
10
|
+
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
11
|
+
/** Function for formatting the output, e.g. with dates */
|
|
12
|
+
outputFunction?: (text: number) => string | number;
|
|
13
|
+
/** Max value */
|
|
14
|
+
max?: number;
|
|
15
|
+
/** Min value */
|
|
16
|
+
min?: number;
|
|
17
|
+
/** Stepping interval */
|
|
18
|
+
step?: number;
|
|
19
|
+
/** Show the min and max dots or not */
|
|
20
|
+
minMaxDots?: boolean;
|
|
21
|
+
/** Show the min and max values or not */
|
|
22
|
+
minMaxValues?: boolean;
|
|
23
|
+
/** Disabled */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
26
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
/** Id for the elements that labels this slider */
|
|
28
|
+
ariaLabelledby: string;
|
|
29
|
+
/** Components value, range of numbers */
|
|
30
|
+
value: number[] | number;
|
|
31
|
+
/** Function to be called when value change */
|
|
32
|
+
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
33
|
+
/** Function to be called when value is committed by mouseup event */
|
|
34
|
+
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
35
|
+
/** Function for formatting the output, e.g. with dates */
|
|
36
|
+
outputFunction?: (text: number) => string | number;
|
|
37
|
+
/** Max value */
|
|
38
|
+
max?: number;
|
|
39
|
+
/** Min value */
|
|
40
|
+
min?: number;
|
|
41
|
+
/** Stepping interval */
|
|
42
|
+
step?: number;
|
|
43
|
+
/** Show the min and max dots or not */
|
|
44
|
+
minMaxDots?: boolean;
|
|
45
|
+
/** Show the min and max values or not */
|
|
46
|
+
minMaxValues?: boolean;
|
|
47
|
+
/** Disabled */
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare const SliderInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** Slider value */
|
|
4
|
+
value: number;
|
|
5
|
+
/** Change function , this is a controlled component */
|
|
6
|
+
onChange: (event: MouseEvent | KeyboardEvent) => void;
|
|
7
|
+
/** Mouse up handler */
|
|
8
|
+
onMouseUp: (event: MouseEvent) => void;
|
|
9
|
+
/** Key up handler */
|
|
10
|
+
onKeyUp: (event: KeyboardEvent) => void;
|
|
11
|
+
/** Min value */
|
|
12
|
+
min: number;
|
|
13
|
+
/** Max value */
|
|
14
|
+
max: number;
|
|
15
|
+
/** Id for the input element */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Step value */
|
|
18
|
+
step: number;
|
|
19
|
+
/** Disabled */
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
} & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slider';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type SnackbarProps = {
|
|
3
|
+
/** Controls the visibility of the snackbar */
|
|
4
|
+
open?: boolean;
|
|
5
|
+
/** How long will the message be visible in milliseconds */
|
|
6
|
+
autoHideDuration?: number;
|
|
7
|
+
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
/** Placement of the snackbar relative to the viewport */
|
|
10
|
+
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
11
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare const Snackbar: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
/** Controls the visibility of the snackbar */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** How long will the message be visible in milliseconds */
|
|
16
|
+
autoHideDuration?: number;
|
|
17
|
+
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
/** Placement of the snackbar relative to the viewport */
|
|
20
|
+
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
21
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SnackbarAction, SnackbarActionProps } from './SnackbarAction';
|
|
2
|
+
import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar';
|
|
3
|
+
declare type SnackbarTypes = typeof BaseComponent & {
|
|
4
|
+
Action: typeof SnackbarAction;
|
|
5
|
+
};
|
|
6
|
+
declare const Snackbar: SnackbarTypes;
|
|
7
|
+
export { Snackbar };
|
|
8
|
+
export type { SnackbarProps, SnackbarActionProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type SwitchProps = {
|
|
3
|
+
/** Label for the switch. Required to make it a11y compliant */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Switch size, use the small version with caution */
|
|
6
|
+
size?: 'default' | 'small';
|
|
7
|
+
/** If true, the switch will be disabled */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
10
|
+
ref?: Ref<HTMLInputElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<Pick<SwitchProps, "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" | "size" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "step" | "value"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const BaseInputWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const BaseInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
3
|
+
type: string;
|
|
4
|
+
}, "type">;
|