@equinor/eds-core-react 0.29.2-dev14022023 → 0.31.0
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/README.md +9 -6
- package/dist/eds-core-react.cjs.js +805 -427
- package/dist/esm/components/Accordion/AccordionItem.js +17 -7
- package/dist/esm/components/Autocomplete/Autocomplete.js +21 -6
- package/dist/esm/components/Autocomplete/Autocomplete.tokens.js +1 -1
- package/dist/esm/components/Autocomplete/Option.js +17 -13
- package/dist/esm/components/Breadcrumbs/Breadcrumb.js +4 -3
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +18 -9
- package/dist/esm/components/Button/tokens/contained.js +1 -1
- package/dist/esm/components/Button/tokens/contained_icon.js +1 -1
- package/dist/esm/components/Button/tokens/ghost.js +1 -1
- package/dist/esm/components/Button/tokens/icon.js +1 -1
- package/dist/esm/components/Button/tokens/outlined.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.tokens.js +4 -0
- package/dist/esm/components/Checkbox/Input.js +12 -9
- package/dist/esm/components/Dialog/DialogHeader.js +1 -1
- package/dist/esm/components/Input/Input.js +1 -1
- package/dist/esm/components/Input/Input.tokens.js +1 -1
- package/dist/esm/components/InputWrapper/InputWrapper.tokens.js +1 -1
- package/dist/esm/components/Menu/Menu.js +20 -5
- package/dist/esm/components/Menu/MenuItem.js +8 -5
- package/dist/esm/components/Radio/Radio.js +12 -9
- package/dist/esm/components/Radio/Radio.tokens.js +4 -0
- package/dist/esm/components/Select/NativeSelect/NativeSelect.js +2 -1
- package/dist/esm/components/SideBar/SideBar.js +1 -1
- package/dist/esm/components/SideBar/SideBarAccordion/index.js +228 -0
- package/dist/esm/components/SideBar/SideBarAccordionItem/index.js +71 -0
- package/dist/esm/components/SideBar/SidebarLink/index.js +1 -1
- package/dist/esm/components/SideBar/index.js +6 -0
- package/dist/esm/components/Slider/Output.js +8 -9
- package/dist/esm/components/Slider/Slider.js +98 -61
- package/dist/esm/components/Switch/Switch.js +16 -12
- package/dist/esm/components/Switch/Switch.styles.js +3 -5
- package/dist/esm/components/Switch/Switch.tokens.js +2 -10
- package/dist/esm/components/Switch/SwitchDefault.js +1 -1
- package/dist/esm/components/Table/DataCell/DataCell.tokens.js +1 -1
- package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/mergeWithKey.js +2 -0
- package/dist/types/components/Accordion/AccordionItem.d.ts +12 -2
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +71 -15
- package/dist/types/components/Autocomplete/Option.d.ts +11 -4
- package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Input/Input.tokens.d.ts +10 -5
- package/dist/types/components/InputWrapper/InputWrapper.tokens.d.ts +10 -5
- package/dist/types/components/Menu/Menu.d.ts +4 -0
- package/dist/types/components/Menu/MenuItem.d.ts +16 -14
- package/dist/types/components/Progress/Circular/CircularProgress.d.ts +1 -1
- package/dist/types/components/Progress/Dots/DotProgress.d.ts +1 -1
- package/dist/types/components/Progress/Star/StarProgress.d.ts +1 -1
- package/dist/types/components/SideBar/SideBarAccordion/index.d.ts +38 -0
- package/dist/types/components/SideBar/SideBarAccordionItem/index.d.ts +15 -0
- package/dist/types/components/SideBar/index.d.ts +4 -0
- package/package.json +17 -17
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_curry1.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_curry2.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_curry3.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_has.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_isObject.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/internal/_isPlaceholder.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/mergeDeepRight.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ramda@0.28.0 → ramda@0.29.0}/node_modules/ramda/es/mergeDeepWithKey.js +0 -0
|
@@ -7,5 +7,5 @@ export type DotProgressProps = {
|
|
|
7
7
|
/** @ignore */
|
|
8
8
|
ref?: Ref<SVGSVGElement>;
|
|
9
9
|
} & SVGProps<SVGSVGElement>;
|
|
10
|
-
declare const DotProgress: import("react").ForwardRefExoticComponent<Pick<DotProgressProps, "string" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "fontStyle" | "textDecoration" | "width" | "style" | "radius" | "x" | "y" | "
|
|
10
|
+
declare const DotProgress: import("react").ForwardRefExoticComponent<Pick<DotProgressProps, "string" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "fontStyle" | "textDecoration" | "width" | "style" | "radius" | "x" | "y" | "height" | "type" | "offset" | "clipPath" | "filter" | "mask" | "path" | "children" | "className" | "id" | "lang" | "tabIndex" | "role" | "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" | "fill" | "values" | "name" | "max" | "media" | "method" | "min" | "target" | "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" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "format" | "fr" | "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" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "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" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "size"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
11
|
export { DotProgress };
|
|
@@ -10,5 +10,5 @@ export type StarProgressProps = {
|
|
|
10
10
|
/** @ignore */
|
|
11
11
|
ref?: Ref<SVGSVGElement>;
|
|
12
12
|
} & SVGProps<SVGSVGElement>;
|
|
13
|
-
declare const StarProgress: import("react").ForwardRefExoticComponent<Pick<StarProgressProps, "string" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "fontStyle" | "textDecoration" | "width" | "style" | "radius" | "x" | "y" | "
|
|
13
|
+
declare const StarProgress: import("react").ForwardRefExoticComponent<Pick<StarProgressProps, "string" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "fontStyle" | "textDecoration" | "width" | "style" | "radius" | "x" | "y" | "height" | "type" | "offset" | "clipPath" | "filter" | "mask" | "path" | "children" | "className" | "id" | "lang" | "tabIndex" | "role" | "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" | "fill" | "values" | "value" | "name" | "max" | "media" | "method" | "min" | "target" | "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" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "format" | "fr" | "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" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "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" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "size" | "variant"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
14
|
export { StarProgress };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconData } from '@equinor/eds-icons';
|
|
3
|
+
export type SidebarAccordionProps = {
|
|
4
|
+
/** Label text */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Icon */
|
|
7
|
+
icon: IconData;
|
|
8
|
+
/** Optional unique id for Accordion */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** Active/current url */
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/** Is the accordion expanded - use it if the accordion is controlled */
|
|
13
|
+
isExpanded?: boolean;
|
|
14
|
+
/** Toggle accordion expanded - use it if you want to make the accordion controlled */
|
|
15
|
+
toggleExpand?: () => void;
|
|
16
|
+
/** When menu item is clicked */
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
/** Optionally disable component */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
} & HTMLAttributes<HTMLButtonElement>;
|
|
21
|
+
export declare const SideBarAccordion: import("react").ForwardRefExoticComponent<{
|
|
22
|
+
/** Label text */
|
|
23
|
+
label: string;
|
|
24
|
+
/** Icon */
|
|
25
|
+
icon: IconData;
|
|
26
|
+
/** Optional unique id for Accordion */
|
|
27
|
+
id?: string;
|
|
28
|
+
/** Active/current url */
|
|
29
|
+
active?: boolean;
|
|
30
|
+
/** Is the accordion expanded - use it if the accordion is controlled */
|
|
31
|
+
isExpanded?: boolean;
|
|
32
|
+
/** Toggle accordion expanded - use it if you want to make the accordion controlled */
|
|
33
|
+
toggleExpand?: () => void;
|
|
34
|
+
/** When menu item is clicked */
|
|
35
|
+
onClick?: () => void;
|
|
36
|
+
/** Optionally disable component */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
} & HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ElementType } from 'react';
|
|
2
|
+
import { OverridableComponent } from '@equinor/eds-utils';
|
|
3
|
+
type OverridableSubComponent = OverridableComponent<AccordionItemProps, HTMLAnchorElement> & {
|
|
4
|
+
displayName?: string;
|
|
5
|
+
};
|
|
6
|
+
export type AccordionItemProps = {
|
|
7
|
+
/** Label text */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Active/current url */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
as?: ElementType;
|
|
13
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
|
+
export declare const SideBarAccordionItem: OverridableSubComponent;
|
|
15
|
+
export {};
|
|
@@ -5,12 +5,16 @@ import { SideBarContent } from './SideBarContent';
|
|
|
5
5
|
import { SideBarFooter } from './SideBarFooter';
|
|
6
6
|
import { SideBarToggle } from './SideBarToggle';
|
|
7
7
|
import { SideBarButton } from './SideBarButton';
|
|
8
|
+
import { SideBarAccordion } from './SideBarAccordion';
|
|
9
|
+
import { SideBarAccordionItem } from './SideBarAccordionItem';
|
|
8
10
|
type SidebarType = typeof BaseSideBar & {
|
|
9
11
|
Link: typeof SidebarLink;
|
|
10
12
|
Content: typeof SideBarContent;
|
|
11
13
|
Footer: typeof SideBarFooter;
|
|
12
14
|
Toggle: typeof SideBarToggle;
|
|
13
15
|
Button: typeof SideBarButton;
|
|
16
|
+
Accordion: typeof SideBarAccordion;
|
|
17
|
+
AccordionItem: typeof SideBarAccordionItem;
|
|
14
18
|
};
|
|
15
19
|
declare const SideBar: SidebarType;
|
|
16
20
|
export { SideBar, useSideBar };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-core-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "The React implementation of the Equinor Design System",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -44,31 +44,31 @@
|
|
|
44
44
|
"@storybook/client-api": "^6.5.15",
|
|
45
45
|
"@storybook/manager-webpack5": "^6.5.15",
|
|
46
46
|
"@storybook/react": "^6.5.15",
|
|
47
|
-
"@testing-library/dom": "^
|
|
47
|
+
"@testing-library/dom": "^9.2.0",
|
|
48
48
|
"@testing-library/jest-dom": "^5.16.5",
|
|
49
|
-
"@testing-library/react": "
|
|
49
|
+
"@testing-library/react": "14.0.0",
|
|
50
50
|
"@testing-library/user-event": "14.4.3",
|
|
51
|
-
"@types/jest": "^29.
|
|
52
|
-
"@types/ramda": "^0.28.
|
|
51
|
+
"@types/jest": "^29.5.0",
|
|
52
|
+
"@types/ramda": "^0.28.24",
|
|
53
53
|
"@types/react": "^18.0.21",
|
|
54
54
|
"@types/react-dom": "^18.0.10",
|
|
55
55
|
"@types/styled-components": "^5.1.26",
|
|
56
56
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
57
57
|
"babel-loader": "^9.1.2",
|
|
58
|
-
"babel-plugin-styled-components": "^2.
|
|
59
|
-
"jest": "^29.
|
|
60
|
-
"jest-environment-jsdom": "^29.
|
|
58
|
+
"babel-plugin-styled-components": "^2.1.1",
|
|
59
|
+
"jest": "^29.5.0",
|
|
60
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
61
61
|
"jest-styled-components": "^7.1.1",
|
|
62
62
|
"js-file-download": "^0.4.12",
|
|
63
63
|
"postcss": "^8.4.21",
|
|
64
|
-
"ramda": "^0.
|
|
64
|
+
"ramda": "^0.29.0",
|
|
65
65
|
"react": "^18.2.0",
|
|
66
66
|
"react-dom": "^18.2.0",
|
|
67
|
-
"react-hook-form": "^7.
|
|
67
|
+
"react-hook-form": "^7.43.9",
|
|
68
68
|
"rollup": "^2.79.1",
|
|
69
69
|
"rollup-plugin-delete": "^2.0.0",
|
|
70
70
|
"rollup-plugin-postcss": "^4.0.2",
|
|
71
|
-
"styled-components": "5.3.
|
|
71
|
+
"styled-components": "5.3.9",
|
|
72
72
|
"tsc-watch": "^6.0.0",
|
|
73
73
|
"typescript": "^4.9.4"
|
|
74
74
|
},
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"styled-components": ">=4.2"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@babel/runtime": "^7.
|
|
82
|
-
"@floating-ui/react": "^0.
|
|
83
|
-
"@tanstack/react-virtual": "3.0.0-beta.
|
|
84
|
-
"downshift": "^7.
|
|
85
|
-
"@equinor/eds-icons": "0.
|
|
86
|
-
"@equinor/eds-tokens": "0.9.
|
|
81
|
+
"@babel/runtime": "^7.21.0",
|
|
82
|
+
"@floating-ui/react": "^0.23.0",
|
|
83
|
+
"@tanstack/react-virtual": "3.0.0-beta.54",
|
|
84
|
+
"downshift": "^7.6.0",
|
|
85
|
+
"@equinor/eds-icons": "0.19.1",
|
|
86
|
+
"@equinor/eds-tokens": "0.9.1",
|
|
87
87
|
"@equinor/eds-utils": "0.7.0"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|