@surveycake/rc 3.0.0-alpha.82 → 3.0.0-alpha.84
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/CHANGELOG.md +22 -0
- package/dist/V2/Icon/Customize/ConflictRoute.d.ts +3 -0
- package/dist/V2/Icon/Customize/index.d.ts +1 -0
- package/dist/V2/Icon/index.d.ts +1 -0
- package/dist/V2/MultiVarSelect/MultiVarSelect.stories.d.ts +4 -0
- package/dist/V2/MultiVarSelect/index.d.ts +17 -0
- package/dist/V2/MultiVarSelect/styles.d.ts +2 -0
- package/dist/V2/index.d.ts +1 -0
- package/dist/rc.cjs.development.js +128 -2
- package/dist/rc.cjs.development.js.map +1 -1
- package/dist/rc.cjs.production.min.js +1 -1
- package/dist/rc.cjs.production.min.js.map +1 -1
- package/dist/rc.esm.js +128 -2
- package/dist/rc.esm.js.map +1 -1
- package/dist/utils/useViewportWidth.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.0-alpha.84](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.83...v3.0.0-alpha.84) (2023-06-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* multiVarSelect support disabled options prop ([93e9458](https://fox.25sprout.com/surveycake/sdk/rc/commit/93e9458313945d095a0b11739083ee539d3b505a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* fix optionalChaining issue of MultiVarSelect ([c3fac88](https://fox.25sprout.com/surveycake/sdk/rc/commit/c3fac887126d6f4c81014462454ae618a83f425d))
|
|
16
|
+
|
|
17
|
+
## [3.0.0-alpha.83](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.82...v3.0.0-alpha.83) (2023-06-08)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add ConflictRoute icon ([ab1ec11](https://fox.25sprout.com/surveycake/sdk/rc/commit/ab1ec114d268904ab7e16882acb92f418bbe337c))
|
|
23
|
+
* add MultiVarSelect component ([c4195c2](https://fox.25sprout.com/surveycake/sdk/rc/commit/c4195c246ef18f1e9e9ba68e59082026897679f0))
|
|
24
|
+
|
|
25
|
+
## [3.0.0-alpha.83](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.82...v3.0.0-alpha.83) (2023-06-08)
|
|
26
|
+
|
|
5
27
|
## [3.0.0-alpha.82](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.80...v3.0.0-alpha.82) (2023-05-23)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ConflictRoute: React.ForwardRefExoticComponent<Pick<import("@material-ui/core/OverridableComponent").OverrideProps<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">, "svg">, "string" | "style" | "clipPath" | "filter" | "mask" | "className" | "classes" | "innerRef" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "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" | "children" | "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" | "css" | "key" | "htmlColor" | "titleAccess"> & React.RefAttributes<SVGSVGElement>>;
|
|
3
|
+
export default ConflictRoute;
|
|
@@ -10,6 +10,7 @@ export { default as Image } from './Image';
|
|
|
10
10
|
export { default as PieChart } from './PieChart';
|
|
11
11
|
export { default as RadarChart } from './RadarChart';
|
|
12
12
|
export { default as MailForward } from './MailForward';
|
|
13
|
+
export { default as ConflictRoute } from './ConflictRoute';
|
|
13
14
|
/**
|
|
14
15
|
* 下列客製化 icons 只出現在 @material-ui/icons >= 5
|
|
15
16
|
* 因此未來升級時需將它們刪除,並改成 import 原生的 icons
|
package/dist/V2/Icon/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const Icons: {
|
|
|
23
23
|
Computer: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
24
24
|
CreditCard: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
25
25
|
Crop: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
26
|
+
ConflictRoute: React.ForwardRefExoticComponent<Pick<import("@material-ui/core/OverridableComponent").OverrideProps<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">, "svg">, "string" | "style" | "clipPath" | "filter" | "mask" | "className" | "classes" | "innerRef" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "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" | "children" | "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" | "css" | "key" | "htmlColor" | "titleAccess"> & React.RefAttributes<SVGSVGElement>>;
|
|
26
27
|
DeleteOutline: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
27
28
|
Description: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
28
29
|
DescriptionOutlined: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core/SvgIcon").SvgIconTypeMap<{}, "svg">>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { SelectProps } from '../Select';
|
|
3
|
+
export declare type Option = {
|
|
4
|
+
optionType: 'subject' | 'var' | 'option';
|
|
5
|
+
children?: string | ReactNode;
|
|
6
|
+
value: string | number;
|
|
7
|
+
};
|
|
8
|
+
interface MultiVarSelectProps extends SelectProps {
|
|
9
|
+
/**
|
|
10
|
+
* Data structure required by MultiVarSelect
|
|
11
|
+
*/
|
|
12
|
+
options: Option[];
|
|
13
|
+
value: Array<string | number>;
|
|
14
|
+
disabledOptions?: Array<string | number>;
|
|
15
|
+
}
|
|
16
|
+
declare const MultiVarSelect: React.ForwardRefExoticComponent<Pick<MultiVarSelectProps, "classes" | "disabled" | "value" | "onChange" | "error" | "multiline" | "fullWidth" | "input" | "children" | "onKeyUp" | "onKeyDown" | "onBlur" | "onFocus" | "defaultValue" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "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" | "css" | "autoComplete" | "autoFocus" | "endAdornment" | "inputComponent" | "inputProps" | "inputRef" | "margin" | "name" | "readOnly" | "required" | "renderSuffix" | "rows" | "rowsMax" | "rowsMin" | "maxRows" | "minRows" | "startAdornment" | "type" | "innerRef" | "disableUnderline" | "options" | "disabledOptions" | "autoWidth" | "displayEmpty" | "IconComponent" | "label" | "labelId" | "labelWidth" | "MenuProps" | "multiple" | "native" | "onClose" | "onOpen" | "open" | "renderValue" | "SelectDisplayProps" | "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export default MultiVarSelect;
|
package/dist/V2/index.d.ts
CHANGED
|
@@ -64,5 +64,6 @@ export { default as Tooltip } from './Tooltip';
|
|
|
64
64
|
export { default as Typography } from './Typography';
|
|
65
65
|
export { default as VarSelect } from './VarSelect';
|
|
66
66
|
export { default as Popover } from './Popover';
|
|
67
|
+
export { default as MultiVarSelect } from './MultiVarSelect';
|
|
67
68
|
export { default as Icon } from './Icon';
|
|
68
69
|
export { exclusiveColor } from './ColorPalette/exclusiveColor';
|
|
@@ -1616,6 +1616,18 @@ React.forwardRef(function (props, ref) {
|
|
|
1616
1616
|
});
|
|
1617
1617
|
MailForward.displayName = 'MailForward';
|
|
1618
1618
|
|
|
1619
|
+
var ConflictRoute =
|
|
1620
|
+
/*#__PURE__*/
|
|
1621
|
+
React.forwardRef(function (props, ref) {
|
|
1622
|
+
return React__default.createElement(SvgIcon, Object.assign({}, props, {
|
|
1623
|
+
ref: ref,
|
|
1624
|
+
viewBox: "0 0 24 24"
|
|
1625
|
+
}), React__default.createElement("path", {
|
|
1626
|
+
d: "M11 22V17C11 16.0667 10.8583 15.375 10.575 14.925C10.2917 14.475 9.91667 14.0333 9.45 13.6L10.875 12.175C11.075 12.3583 11.2667 12.554 11.45 12.762C11.6333 12.9707 11.8167 13.1917 12 13.425C12.2333 13.1083 12.471 12.829 12.713 12.587C12.9543 12.3457 13.2 12.1083 13.45 11.875C14.0833 11.2917 14.6583 10.6167 15.175 9.85C15.6917 9.08333 15.9667 7.74167 16 5.825L14.425 7.4L13 6L17 2L21 6L19.6 7.4L18 5.825C17.9667 8.20833 17.6 9.904 16.9 10.912C16.2 11.9207 15.5 12.7417 14.8 13.375C14.2667 13.8583 13.8333 14.329 13.5 14.787C13.1667 15.2457 13 15.9833 13 17V22H11ZM6.2 8.175C6.13333 7.84167 6.08733 7.475 6.062 7.075C6.03733 6.675 6.01667 6.25833 6 5.825L4.4 7.4L3 6L7 2L11 6L9.575 7.4L8 5.85C8 6.2 8.01667 6.52933 8.05 6.838C8.08333 7.146 8.11667 7.43333 8.15 7.7L6.2 8.175ZM8.35 12.575C8.01667 12.225 7.696 11.8167 7.388 11.35C7.07933 10.8833 6.80833 10.3083 6.575 9.625L8.5 9.15C8.66667 9.6 8.85833 9.98333 9.075 10.3C9.29167 10.6167 9.525 10.9 9.775 11.15L8.35 12.575Z"
|
|
1627
|
+
}));
|
|
1628
|
+
});
|
|
1629
|
+
ConflictRoute.displayName = 'ConflictRoute';
|
|
1630
|
+
|
|
1619
1631
|
var AutoAwesomeOutlined =
|
|
1620
1632
|
/*#__PURE__*/
|
|
1621
1633
|
React.forwardRef(function (props, ref) {
|
|
@@ -2026,6 +2038,7 @@ var Icons = {
|
|
|
2026
2038
|
Computer: Computer,
|
|
2027
2039
|
CreditCard: CreditCard,
|
|
2028
2040
|
Crop: Crop,
|
|
2041
|
+
ConflictRoute: ConflictRoute,
|
|
2029
2042
|
DeleteOutline: DeleteOutline,
|
|
2030
2043
|
Description: Description,
|
|
2031
2044
|
DescriptionOutlined: DescriptionOutlined,
|
|
@@ -3106,6 +3119,118 @@ React.forwardRef(function (props, ref) {
|
|
|
3106
3119
|
});
|
|
3107
3120
|
Popover.displayName = 'Popover';
|
|
3108
3121
|
|
|
3122
|
+
var useSelectStyle$1 =
|
|
3123
|
+
/*#__PURE__*/
|
|
3124
|
+
styles$6.makeStyles(function (theme) {
|
|
3125
|
+
return {
|
|
3126
|
+
select: {
|
|
3127
|
+
padding: '3px 0 3px 5px',
|
|
3128
|
+
// marginRight: '36px', // parent padding 8px + arrow icon 20px + self padding 24px = 52px
|
|
3129
|
+
display: 'inline-flex',
|
|
3130
|
+
backgroundColor: theme.palette.common.white,
|
|
3131
|
+
height: '36px'
|
|
3132
|
+
}
|
|
3133
|
+
};
|
|
3134
|
+
});
|
|
3135
|
+
var useCustomOptionStyle$1 =
|
|
3136
|
+
/*#__PURE__*/
|
|
3137
|
+
styles$6.makeStyles(function (theme) {
|
|
3138
|
+
return {
|
|
3139
|
+
menuItem: {
|
|
3140
|
+
padding: 0,
|
|
3141
|
+
minHeight: '30px',
|
|
3142
|
+
backgroundColor: theme.palette.common.white,
|
|
3143
|
+
'&:hover': {
|
|
3144
|
+
backgroundColor: 'unset'
|
|
3145
|
+
},
|
|
3146
|
+
'&.Mui-selected': {
|
|
3147
|
+
backgroundColor: 'unset',
|
|
3148
|
+
'&:hover': {
|
|
3149
|
+
backgroundColor: 'unset'
|
|
3150
|
+
}
|
|
3151
|
+
},
|
|
3152
|
+
'&:first-child': {
|
|
3153
|
+
backgroundColor: 'unset'
|
|
3154
|
+
},
|
|
3155
|
+
'&:not(:last-child)': {
|
|
3156
|
+
marginBottom: '8px'
|
|
3157
|
+
}
|
|
3158
|
+
},
|
|
3159
|
+
// 選單內的 checkbox
|
|
3160
|
+
checkbox: {
|
|
3161
|
+
padding: 0,
|
|
3162
|
+
marginRight: '10px',
|
|
3163
|
+
color: theme.palette.grey['A400']
|
|
3164
|
+
},
|
|
3165
|
+
// 選單內的灰底元素
|
|
3166
|
+
root: {
|
|
3167
|
+
padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
|
|
3168
|
+
color: theme.palette.grey[600],
|
|
3169
|
+
backgroundColor: theme.palette.grey[100],
|
|
3170
|
+
fontSize: '0.875rem',
|
|
3171
|
+
fontWeight: 500,
|
|
3172
|
+
lineHeight: 1.5,
|
|
3173
|
+
borderRadius: theme.spacing(0.5),
|
|
3174
|
+
overflow: 'hidden',
|
|
3175
|
+
whiteSpace: 'nowrap',
|
|
3176
|
+
textOverflow: 'ellipsis',
|
|
3177
|
+
maxWidth: 'calc(100% - 16px)',
|
|
3178
|
+
transition: '0.2s',
|
|
3179
|
+
transitionProperty: 'color, background-color'
|
|
3180
|
+
},
|
|
3181
|
+
"var": {
|
|
3182
|
+
'&::before': {
|
|
3183
|
+
content: '"# "'
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
});
|
|
3188
|
+
|
|
3189
|
+
var MultiVarSelect =
|
|
3190
|
+
/*#__PURE__*/
|
|
3191
|
+
React.forwardRef(function (props, ref) {
|
|
3192
|
+
var customOptionStyle = useCustomOptionStyle$1();
|
|
3193
|
+
var selectStyle = useSelectStyle$1();
|
|
3194
|
+
|
|
3195
|
+
var options = props.options,
|
|
3196
|
+
value = props.value,
|
|
3197
|
+
disabledOptions = props.disabledOptions,
|
|
3198
|
+
onChange = props.onChange,
|
|
3199
|
+
_props$variant = props.variant,
|
|
3200
|
+
variant = _props$variant === void 0 ? 'outlined' : _props$variant,
|
|
3201
|
+
onOpen = props.onOpen,
|
|
3202
|
+
onClose = props.onClose,
|
|
3203
|
+
rest = _objectWithoutPropertiesLoose(props, ["options", "value", "disabledOptions", "placeholder", "onChange", "variant", "onOpen", "onClose"]);
|
|
3204
|
+
|
|
3205
|
+
return React__default.createElement(Select, Object.assign({}, rest, {
|
|
3206
|
+
ref: ref,
|
|
3207
|
+
value: value,
|
|
3208
|
+
onChange: onChange,
|
|
3209
|
+
variant: variant,
|
|
3210
|
+
onOpen: onOpen,
|
|
3211
|
+
onClose: onClose,
|
|
3212
|
+
fullWidth: true,
|
|
3213
|
+
multiple: true,
|
|
3214
|
+
classes: selectStyle
|
|
3215
|
+
}), options && options.map(function (opt) {
|
|
3216
|
+
var _cx;
|
|
3217
|
+
|
|
3218
|
+
return React__default.createElement(MenuItem, {
|
|
3219
|
+
className: customOptionStyle.menuItem,
|
|
3220
|
+
value: opt.value,
|
|
3221
|
+
key: opt.value,
|
|
3222
|
+
disabled: disabledOptions && disabledOptions.includes(opt.value)
|
|
3223
|
+
}, React__default.createElement(Checkbox, {
|
|
3224
|
+
color: "primary",
|
|
3225
|
+
checked: value.includes(opt.value),
|
|
3226
|
+
className: customOptionStyle.checkbox
|
|
3227
|
+
}), React__default.createElement("div", {
|
|
3228
|
+
className: emotion.cx(customOptionStyle.root, (_cx = {}, _cx[customOptionStyle["var"]] = opt.optionType === 'var', _cx))
|
|
3229
|
+
}, opt.children));
|
|
3230
|
+
}));
|
|
3231
|
+
});
|
|
3232
|
+
MultiVarSelect.displayName = 'MultiVarSelect';
|
|
3233
|
+
|
|
3109
3234
|
/**
|
|
3110
3235
|
* @deprecated since version 3.0.0-alpha.58, please use theme.palette[name] lighter or lightest keywords
|
|
3111
3236
|
*/
|
|
@@ -3221,6 +3346,7 @@ var index = {
|
|
|
3221
3346
|
Typography: Typography,
|
|
3222
3347
|
VarSelect: VarSelect,
|
|
3223
3348
|
Popover: Popover,
|
|
3349
|
+
MultiVarSelect: MultiVarSelect,
|
|
3224
3350
|
Icon: Icon,
|
|
3225
3351
|
exclusiveColor: exclusiveColor
|
|
3226
3352
|
};
|
|
@@ -4266,7 +4392,7 @@ styles$6.createStyles({
|
|
|
4266
4392
|
pointerEvents: 'none'
|
|
4267
4393
|
}
|
|
4268
4394
|
});
|
|
4269
|
-
var useCustomOptionStyle$
|
|
4395
|
+
var useCustomOptionStyle$2 =
|
|
4270
4396
|
/*#__PURE__*/
|
|
4271
4397
|
styles$6.makeStyles({
|
|
4272
4398
|
container: {
|
|
@@ -4342,7 +4468,7 @@ var GroupSelect = function GroupSelect(props) {
|
|
|
4342
4468
|
variant = _props$variant === void 0 ? 'outlined' : _props$variant,
|
|
4343
4469
|
onOpen = props.onOpen,
|
|
4344
4470
|
onClose = props.onClose;
|
|
4345
|
-
var classes = useCustomOptionStyle$
|
|
4471
|
+
var classes = useCustomOptionStyle$2();
|
|
4346
4472
|
return React__default.createElement(StyledSelect, {
|
|
4347
4473
|
value: value,
|
|
4348
4474
|
onChange: onChange,
|