@corva/ui 3.7.0-1 → 3.7.0-2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),n=require("re-resizable"),a=require("react-sizeme"),o=require("classnames"),r=require("../shared/useThrottledCallback.js"),l=require("./Handle.js"),d=require("./icons/HandleIcon.js"),s=require("./utils.js"),u=require("./styles/sliderStyles.js");require("./styles/handleStyles.js");var h=require("./constants.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(o),v="twoValuesSliderDefault",f=function(a){var o,c,f,g=a.min,p=a.max,b=a.value,_=a.onChange,w=void 0===_?function(){}:_,I=a.orientation,x=void 0===I?h.HORIZONTAL_ORIENTATION:I,R=a.valueFormatter,H=void 0===R?Math.floor:R,y=a.displayFormatter,N=void 0===y?function(e){return e}:y,A=a.editableHandles,T=void 0===A||A,j=a.onStop,M=void 0===j?function(){}:j,z=a.reversed,C=void 0!==z&&z,O=a.handlePosition,E=a.handleClasses,S=void 0===E?{}:E,P=a.minimal,L=void 0!==P&&P,q=a.dimension,W=void 0===q?"small":q,k=e.__rest(a,["min","max","value","onChange","orientation","valueFormatter","displayFormatter","editableHandles","onStop","reversed","handlePosition","handleClasses","minimal","dimension"]).size,G=void 0===k?{}:k,B=u.useSliderStyles(),F=i.useRef(null),V=i.useRef(null),X=x===h.HORIZONTAL_ORIENTATION,Y=x===h.VERTICAL_ORIENTATION,D=L?G:e.__assign(e.__assign({},G),{width:X?G.width-2*h.INPUT_WIDTH:G.width,height:Y?G.height-2*h.INPUT_HEIGHT:G.height}),Z=i.useState([H(null==b?void 0:b.at(0)),H(null==b?void 0:b.at(1))]),U=Z[0],J=Z[1],K=i.useRef(null),Q=i.useState(!1),$=Q[0],ee=Q[1],te=U[0],ie=U[1],ne=s.getSizedControls({isHorizontalOrientation:X,size:D,max:p,min:g,tail:ie,head:te}),ae=ne.headMaxWidth,oe=ne.tailMaxWidth,re=ne.headMaxHeight,le=ne.tailMaxHeight;i.useEffect((function(){if(!K.current){var e=[H(null==b?void 0:b.at(0)),H(null==b?void 0:b.at(1))],t=Math.min.apply(Math,e),i=Math.max.apply(Math,e);J([t,i])}}),[null==b?void 0:b.at(0),null==b?void 0:b.at(1)]),i.useEffect((function(){if(X){var e=D.width/(p-g)*(te-g),t=D.width/(p-g)*(p-ie);F.current.updateSize({width:C?t:e,height:D.height}),V.current.updateSize({width:C?e:t,height:D.height})}else if(Y){var i=D.height/(p-g)*(te-g),n=D.height/(p-g)*(p-ie);F.current.updateSize({width:D.width,height:C?n:i}),V.current.updateSize({width:D.width,height:C?i:n})}}),[g,p,te,ie,D.width,D.height,x]),i.useEffect((function(){var e=function(){document.removeEventListener("mousemove",ce),document.removeEventListener("mouseup",me),document.removeEventListener("touchmove",ve),document.removeEventListener("touchend",fe)};return $?(document.addEventListener("mousemove",ce),document.addEventListener("mouseup",me),document.addEventListener("touchmove",ve),document.addEventListener("touchend",fe)):(e(),M()),function(){e()}}),[$]);var de=r.useThrottledCallback((function(e,t,i){K.current="onResize Event";var n=i.clientWidth,a=i.clientHeight,o=te,r=ie;"right"===t?C?r=H(p-n/D.width*(p-g)):o=H(g+n/D.width*(p-g)):"left"===t?C?o=H(g+n/D.width*(p-g)):r=H(p-n/D.width*(p-g)):"bottom"===t?C?r=H(p-a/D.height*(p-g)):o=H(g+a/D.height*(p-g)):"top"===t&&(C?o=H(g+a/D.height*(p-g)):r=H(p-a/D.height*(p-g))),o=Math.min(o,ie),r=Math.max(r,te),J([o,r]),w([o,r])})),se=r.useThrottledCallback((function(){K.current=null,M()})),ue=function(e,t){K.current={xPos:e,yPos:t,head:te,tail:ie}},he=function(e,t){if(K.current){var i=void 0;X?i=(K.current.xPos-e)/D.width*(p-g):Y&&(i=(K.current.yPos-t)/D.height*(p-g));var n=K.current.head-i*(C?-1:1),a=K.current.tail-i*(C?-1:1),o=K.current.tail-K.current.head,r=void 0,l=void 0;n<=g?(r=g,l=g+o):a>=p?(r=p-o,l=p):(r=n,l=a),r=H(r),l=H(l),J([r,l]),w([r,l])}},ce=r.useThrottledCallback((function(e){he(e.clientX,e.clientY)})),me=r.useThrottledCallback((function(){K.current=null,ee(!1)})),ve=r.useThrottledCallback((function(e){he(e.touches[0].pageX,e.touches[0].pageY)})),fe=r.useThrottledCallback((function(){K.current=null,ee(!1)})),ge=r.useThrottledCallback((function(e){J([e,ie]),w([e,ie]),M()})),pe=r.useThrottledCallback((function(e){J([te,e]),w([te,e]),M()})),be=i.useMemo((function(){return(ie-te)/(p-g)*(Y?D.height:D.width)<30}),[g,p,te,ie]),_e=i.useMemo((function(){return(ie-te)/(p-g)*(Y?D.height:D.width)<h.INNER_GAP}),[g,p,te,ie]),we=function(e,t){return e/t*(Y?D.height:D.width)},Ie=i.useMemo((function(){var e=X?h.HORIZONTAL_MIN_GAP:h.VERTICAL_MIN_GAP;return C?{isRightArrowInvisible:we(te,p)<h.MIN_ARROW_GAP,isLeftArrowInvisible:we(p-ie,p)<h.MIN_ARROW_GAP,distance:(ie-te)/(p-g)*(Y?D.height:D.width)-e}:{isRightArrowInvisible:we(p-ie,p)<h.MIN_ARROW_GAP,isLeftArrowInvisible:we(te,p)<h.MIN_ARROW_GAP,distance:(ie-te)/(p-g)*(Y?D.height:D.width)-e}}),[g,p,te,ie,C]),xe=function(i){var n={min:g,max:ie,value:te,onChange:ge},a={min:te,max:p,value:ie,onChange:pe};return"head"===i?t.jsx(l.Handle,e.__assign({"data-testid":"".concat(v,"_handle_top"),placement:"head",dimension:W,readOnly:!T,isInsideArrowsVisible:_e,arrowsOutsideConfig:Ie,displayFormatter:N,orientation:x,classes:S,minimal:L},C?a:n)):"tail"===i?t.jsx(l.Handle,e.__assign({"data-testid":"".concat(v,"_handle_bottom"),placement:"tail",dimension:W,readOnly:!T,isInsideArrowsVisible:_e,arrowsOutsideConfig:Ie,displayFormatter:N,orientation:x,classes:S,minimal:L},C?n:a)):null};return t.jsx("div",{className:m.default(B.rootWrapper,B["".concat(x,"-").concat(W)],(o={},o[B.rootMinimal]=L,o)),children:t.jsxs("div",{className:m.default(B.root,(c={},c[B.horizontalRoot]=X,c[B.verticalRoot]=Y,c[B.minimal]=L,c)),children:[t.jsx(n.Resizable,{className:B.resizable,ref:F,minHeight:0,minWidth:0,maxWidth:C?oe:ae,maxHeight:C?le:re,enable:{right:X,bottom:Y},handleComponent:{right:xe("head"),bottom:xe("head")},onResize:de,onResizeStop:se}),t.jsx("div",{className:B.body,"data-testid":"slider-body",onMouseDown:function(e){ue(e.clientX,e.clientY),ee(!0)},onTouchStart:function(e){ue(e.touches[0].pageX,e.touches[0].pageY),ee(!0)},children:be?t.jsx("div",{className:m.default((f={},f[B.horizontalBodyHandle]=X,f[B.verticalBodyHandle]=Y,f[B.leftBodyHandle]="left"===O,f[B.rightBodyHandle]="right"===O,f[B.topBodyHandle]="top"===O,f[B.bottomBodyHandle]="bottom"===O,f)),children:t.jsx("div",{className:B.bodyHandle,"data-testid":"".concat(v,"_handle"),children:t.jsx(d.HandleIcon,{orientation:"vertical",minimal:L})})}):t.jsx("div",{className:B.bodyHandleIcon,"data-testid":"".concat(v,"_handle"),children:t.jsx(d.HandleIcon,{orientation:x,minimal:L})})}),t.jsx(n.Resizable,{className:B.resizable,ref:V,minHeight:0,minWidth:0,enable:{left:X,top:Y},handleComponent:{left:xe("tail"),top:xe("tail")},onResize:de,onResizeStop:se})]})})},g=a.withSize({monitorWidth:!0,monitorHeight:!0})(f);exports.AdvancedSlider=f,exports.default=g;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),n=require("re-resizable"),a=require("react-sizeme"),o=require("classnames"),r=require("../shared/useThrottledCallback.js"),l=require("./Handle.js"),d=require("./icons/HandleIcon.js"),s=require("./utils.js"),u=require("./styles/sliderStyles.js");require("./styles/handleStyles.js");var h=require("./constants.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(o),v="twoValuesSliderDefault",f=function(a){var o,c,f,g=a.min,p=a.max,_=a.value,b=a.onChange,x=void 0===b?function(){}:b,H=a.orientation,I=void 0===H?h.HORIZONTAL_ORIENTATION:H,R=a.valueFormatter,w=void 0===R?Math.floor:R,y=a.displayFormatter,N=void 0===y?function(e){return e}:y,T=a.editableHandles,A=void 0===T||T,j=a.onStop,M=void 0===j?function(){}:j,z=a.reversed,C=void 0!==z&&z,O=a.handlePosition,E=a.handleClasses,S=void 0===E?{}:E,P=a.minimal,L=void 0!==P&&P,q=a.dimension,W=void 0===q?"small":q,k=e.__rest(a,["min","max","value","onChange","orientation","valueFormatter","displayFormatter","editableHandles","onStop","reversed","handlePosition","handleClasses","minimal","dimension"]).size,G=void 0===k?{}:k,B=u.useSliderStyles(),F=i.useRef(null),V=i.useRef(null),X=I===h.HORIZONTAL_ORIENTATION,Y=I===h.VERTICAL_ORIENTATION,D=L?G:e.__assign(e.__assign({},G),{width:X?G.width-2*h.INPUT_WIDTH:G.width,height:Y?G.height-2*h.INPUT_HEIGHT:G.height}),Z=i.useState([w(null==_?void 0:_.at(0)),w(null==_?void 0:_.at(1))]),U=Z[0],J=Z[1],K=i.useRef(null),Q=i.useState(!1),$=Q[0],ee=Q[1],te=U[0],ie=U[1],ne=s.getSizedControls({isHorizontalOrientation:X,size:D,max:p,min:g,tail:ie,head:te}),ae=ne.headMaxWidth,oe=ne.tailMaxWidth,re=ne.headMaxHeight,le=ne.tailMaxHeight;i.useEffect((function(){if(!K.current){var e=[w(null==_?void 0:_.at(0)),w(null==_?void 0:_.at(1))],t=Math.min.apply(Math,e),i=Math.max.apply(Math,e);J([t,i])}}),[null==_?void 0:_.at(0),null==_?void 0:_.at(1)]),i.useEffect((function(){if(X){var e=D.width/(p-g)*(te-g),t=D.width/(p-g)*(p-ie);F.current.updateSize({width:C?t:e,height:D.height}),V.current.updateSize({width:C?e:t,height:D.height})}else if(Y){var i=D.height/(p-g)*(te-g),n=D.height/(p-g)*(p-ie);F.current.updateSize({width:D.width,height:C?n:i}),V.current.updateSize({width:D.width,height:C?i:n})}}),[g,p,te,ie,D.width,D.height,I]),i.useEffect((function(){var e=function(){document.removeEventListener("mousemove",ce),document.removeEventListener("mouseup",me),document.removeEventListener("touchmove",ve),document.removeEventListener("touchend",fe)};return $?(document.addEventListener("mousemove",ce),document.addEventListener("mouseup",me),document.addEventListener("touchmove",ve),document.addEventListener("touchend",fe)):(e(),M()),function(){e()}}),[$]);var de=r.useThrottledCallback((function(e,t,i){K.current="onResize Event";var n=i.clientWidth,a=i.clientHeight,o=te,r=ie;"right"===t?C?r=w(p-n/D.width*(p-g)):o=w(g+n/D.width*(p-g)):"left"===t?C?o=w(g+n/D.width*(p-g)):r=w(p-n/D.width*(p-g)):"bottom"===t?C?r=w(p-a/D.height*(p-g)):o=w(g+a/D.height*(p-g)):"top"===t&&(C?o=w(g+a/D.height*(p-g)):r=w(p-a/D.height*(p-g))),o=Math.min(o,ie),r=Math.max(r,te),J([o,r]),x([o,r])})),se=r.useThrottledCallback((function(){K.current=null,M()})),ue=function(e,t){K.current={xPos:e,yPos:t,head:te,tail:ie}},he=function(e,t){if(K.current){var i=void 0;X?i=(K.current.xPos-e)/D.width*(p-g):Y&&(i=(K.current.yPos-t)/D.height*(p-g));var n=K.current.head-i*(C?-1:1),a=K.current.tail-i*(C?-1:1),o=K.current.tail-K.current.head,r=void 0,l=void 0;n<=g?(r=g,l=g+o):a>=p?(r=p-o,l=p):(r=n,l=a),r=w(r),l=w(l),J([r,l]),x([r,l])}},ce=r.useThrottledCallback((function(e){he(e.clientX,e.clientY)})),me=r.useThrottledCallback((function(){K.current=null,ee(!1)})),ve=r.useThrottledCallback((function(e){he(e.touches[0].pageX,e.touches[0].pageY)})),fe=r.useThrottledCallback((function(){K.current=null,ee(!1)})),ge=r.useThrottledCallback((function(e){J([e,ie]),x([e,ie]),M()})),pe=r.useThrottledCallback((function(e){J([te,e]),x([te,e]),M()})),_e=i.useMemo((function(){return(ie-te)/(p-g)*(Y?D.height:D.width)<30}),[g,p,te,ie]),be=i.useMemo((function(){return(ie-te)/(p-g)*(Y?D.height:D.width)<h.INNER_GAP}),[g,p,te,ie]),xe=i.useMemo((function(){var e=Y?D.height:D.width,t=e/(p-g),i=function(e){return(e-g)*t},n=i(te),a=e-i(ie);return{isLeftArrowInvisible:C?a<h.MIN_ARROW_GAP:n<h.MIN_ARROW_GAP,isRightArrowInvisible:C?n<h.MIN_ARROW_GAP:a<h.MIN_ARROW_GAP,distance:(ie-te)/(p-g)*e-(Y?h.VERTICAL_MIN_GAP:h.HORIZONTAL_MIN_GAP)}}),[g,p,te,ie,C]),He=function(i){var n={min:g,max:ie,value:te,onChange:ge},a={min:te,max:p,value:ie,onChange:pe};return"head"===i?t.jsx(l.Handle,e.__assign({"data-testid":"".concat(v,"_handle_top"),placement:"head",dimension:W,readOnly:!A,isInsideArrowsVisible:be,arrowsOutsideConfig:xe,displayFormatter:N,orientation:I,classes:S,minimal:L},C?a:n)):"tail"===i?t.jsx(l.Handle,e.__assign({"data-testid":"".concat(v,"_handle_bottom"),placement:"tail",dimension:W,readOnly:!A,isInsideArrowsVisible:be,arrowsOutsideConfig:xe,displayFormatter:N,orientation:I,classes:S,minimal:L},C?n:a)):null};return t.jsx("div",{className:m.default(B.rootWrapper,B["".concat(I,"-").concat(W)],(o={},o[B.rootMinimal]=L,o)),children:t.jsxs("div",{className:m.default(B.root,(c={},c[B.horizontalRoot]=X,c[B.verticalRoot]=Y,c[B.minimal]=L,c)),children:[t.jsx(n.Resizable,{className:B.resizable,ref:F,minHeight:0,minWidth:0,maxWidth:C?oe:ae,maxHeight:C?le:re,enable:{right:X,bottom:Y},handleComponent:{right:He("head"),bottom:He("head")},onResize:de,onResizeStop:se}),t.jsx("div",{className:B.body,"data-testid":"slider-body",onMouseDown:function(e){ue(e.clientX,e.clientY),ee(!0)},onTouchStart:function(e){ue(e.touches[0].pageX,e.touches[0].pageY),ee(!0)},children:_e?t.jsx("div",{className:m.default((f={},f[B.horizontalBodyHandle]=X,f[B.verticalBodyHandle]=Y,f[B.leftBodyHandle]="left"===O,f[B.rightBodyHandle]="right"===O,f[B.topBodyHandle]="top"===O,f[B.bottomBodyHandle]="bottom"===O,f)),children:t.jsx("div",{className:B.bodyHandle,"data-testid":"".concat(v,"_handle"),children:t.jsx(d.HandleIcon,{orientation:"vertical",minimal:L})})}):t.jsx("div",{className:B.bodyHandleIcon,"data-testid":"".concat(v,"_handle"),children:t.jsx(d.HandleIcon,{orientation:I,minimal:L})})}),t.jsx(n.Resizable,{className:B.resizable,ref:V,minHeight:0,minWidth:0,enable:{left:X,top:Y},handleComponent:{left:He("tail"),top:He("tail")},onResize:de,onResizeStop:se})]})})},g=a.withSize({monitorWidth:!0,monitorHeight:!0})(f);exports.AdvancedSlider=f,exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),i=require("react"),o=require("@material-ui/core"),r=require("classnames");require("./styles/sliderStyles.js");var n=require("./styles/handleStyles.js"),t=require("./utils.js"),a=require("./constants.js"),l=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/Gap.js");var c=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),m=u(s),I=u(r);exports.Handle=function(e){var s,r,u,f,v=e.value,j=e.orientation,q=e.placement,h=e.dimension,R=e.readOnly,A=e.onChange,E=e.min,p=e.max,H=e.displayFormatter,b=e.isInsideArrowsVisible,N=e.arrowsOutsideConfig,_=e.classes,O=e.minimal,T=e["data-testid"],g=i.useState(!1),C=m.default(g,2),y=C[0],x=C[1],F=i.useState(v),w=m.default(F,2),S=w[0],V=w[1],M=i.useRef(null),k=j===a.HORIZONTAL_ORIENTATION,D=j===a.VERTICAL_ORIENTATION,L=q===a.HEAD_PLACEMENT,z=n.useHandleStyles({distance:null==N?void 0:N.distance,minimal:O,hoverAreaHeight:k?a.HOVER_ARREA_WIDTH_BY_DIMENSION[h]:a.HOVER_ARREA_HEIGHT,hoverAreaWidth:k?a.HOVER_ARREA_HEIGHT:a.HOVER_ARREA_WIDTH_BY_DIMENSION[h]}),G=function(e){if(!R){var s=Number(e);t.getIsInputValueValid(s)?A(t.getValidatedValue(s,E,p)):x(!0)}};return i.useEffect((function(){V(v),y&&x(!1)}),[v]),c.jsxs("div",{className:I.default(z.root,_.handleRoot,z[h],(s={},d.default(s,z.horizontalHeadRoot,k&&L),d.default(s,z.horizontalTailRoot,k&&!L),d.default(s,z.verticalHeadRoot,D&&L),d.default(s,z.verticalTailRoot,D&&!L),d.default(s,z.minimalHandleRoot,O),s)),children:[c.jsx(l.LeftIcon,{size:16,className:I.default(z.leftArrow,(r={},d.default(r,z.reversedLeftArrow,D),d.default(r,z.isInvisible,b&&!L||L&&(null==N?void 0:N.isLeftArrowInvisible)),r)),fill:"white"}),c.jsx("div",{className:I.default(z.handle,_.handle,(u={},d.default(u,z.horizontalHeadHandle,k&&L),d.default(u,z.horizontalTailHandle,k&&!L),d.default(u,z.verticalHeadHandle,D&&L),d.default(u,z.verticalTailHandle,D&&!L),d.default(u,z.minimalHandle,O),d.default(u,z.minimalVerticalHandle,O&&D),u)),"data-testid":T,children:!O&&c.jsx(o.Input,{inputProps:{"data-testid":"handle-input"},readOnly:R,inputRef:M,onKeyDown:function(e){var s=e.keyCode,i=e.target;13===s&&G(i.value)},onBlur:function(e){var s=e.target;G(s.value)},classes:{root:I.default(z.inputRoot,y&&z.hasError)},value:R?H(S):S,onChange:function(e){var s=e.target.value;(function(e){var s,i,o=null==e||null===(s=e.target)||void 0===s?void 0:s.value,r=o?parseFloat(o):0,n=r>=Number.MIN_SAFE_INTEGER&&r<Number.MAX_SAFE_INTEGER,t=null==e||null===(i=e.nativeEvent)||void 0===i?void 0:i.data,a=o.split(".").length-1;return!n||!(!t||"."===t||"-"===t||t>="0"&&t<="9")||a>1||"-"===t&&""===o})(e)||(V(s),y&&x(!1))},disableUnderline:!0,error:!(Number.isFinite(+S)&&+S>=E&&+S<=p)})}),c.jsx(l.RightIcon,{size:16,className:I.default(z.rightArrow,(f={},d.default(f,z.reversedRightArrow,D),d.default(f,z.isInvisible,b&&L||!L&&(null==N?void 0:N.isRightArrowInvisible)),f)),fill:"white"})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),i=require("react"),o=require("@material-ui/core"),r=require("classnames");require("./styles/sliderStyles.js");var n=require("./styles/handleStyles.js"),t=require("./utils.js"),a=require("./constants.js"),l=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/Gap.js");var c=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),m=u(s),I=u(r);exports.Handle=function(e){var s,r,u,f,v=e.value,j=e.orientation,q=e.placement,h=e.dimension,A=e.readOnly,E=e.onChange,R=e.min,p=e.max,H=e.displayFormatter,b=e.isInsideArrowsVisible,N=e.arrowsOutsideConfig,_=e.classes,O=e.minimal,T=e["data-testid"],g=i.useState(!1),C=m.default(g,2),y=C[0],x=C[1],F=i.useState(v),w=m.default(F,2),S=w[0],V=w[1],M=i.useRef(null),k=j===a.HORIZONTAL_ORIENTATION,D=j===a.VERTICAL_ORIENTATION,L=q===a.HEAD_PLACEMENT,z=n.useHandleStyles({distance:null==N?void 0:N.distance,minimal:O,hoverAreaHeight:k?a.HOVER_AREA_WIDTH_BY_DIMENSION[h]:a.HOVER_AREA_HEIGHT,hoverAreaWidth:k?a.HOVER_AREA_HEIGHT:a.HOVER_AREA_WIDTH_BY_DIMENSION[h]}),G=function(e){if(!A){var s=Number(e);t.getIsInputValueValid(s)?E(t.getValidatedValue(s,R,p)):x(!0)}};return i.useEffect((function(){V(v),y&&x(!1)}),[v]),c.jsxs("div",{className:I.default(z.root,_.handleRoot,z[h],(s={},d.default(s,z.horizontalHeadRoot,k&&L),d.default(s,z.horizontalTailRoot,k&&!L),d.default(s,z.verticalHeadRoot,D&&L),d.default(s,z.verticalTailRoot,D&&!L),d.default(s,z.minimalHandleRoot,O),s)),children:[c.jsx(l.LeftIcon,{size:16,className:I.default(z.leftArrow,(r={},d.default(r,z.reversedLeftArrow,D),d.default(r,z.isInvisible,b&&!L||L&&(null==N?void 0:N.isLeftArrowInvisible)),r)),fill:"white"}),c.jsx("div",{className:I.default(z.handle,_.handle,(u={},d.default(u,z.horizontalHeadHandle,k&&L),d.default(u,z.horizontalTailHandle,k&&!L),d.default(u,z.verticalHeadHandle,D&&L),d.default(u,z.verticalTailHandle,D&&!L),d.default(u,z.minimalHandle,O),d.default(u,z.minimalVerticalHandle,O&&D),u)),"data-testid":T,children:!O&&c.jsx(o.Input,{inputProps:{"data-testid":"handle-input"},readOnly:A,inputRef:M,onKeyDown:function(e){var s=e.keyCode,i=e.target;13===s&&G(i.value)},onBlur:function(e){var s=e.target;G(s.value)},classes:{root:I.default(z.inputRoot,y&&z.hasError)},value:A?H(S):S,onChange:function(e){var s=e.target.value;(function(e){var s,i,o=null==e||null===(s=e.target)||void 0===s?void 0:s.value,r=o?parseFloat(o):0,n=r>=Number.MIN_SAFE_INTEGER&&r<Number.MAX_SAFE_INTEGER,t=null==e||null===(i=e.nativeEvent)||void 0===i?void 0:i.data,a=o.split(".").length-1;return!n||!(!t||"."===t||"-"===t||t>="0"&&t<="9")||a>1||"-"===t&&""===o})(e)||(V(s),y&&x(!1))},disableUnderline:!0,error:!(Number.isFinite(+S)&&+S>=R&&+S<=p)})}),c.jsx(l.RightIcon,{size:16,className:I.default(z.rightArrow,(f={},d.default(f,z.reversedRightArrow,D),d.default(f,z.isInvisible,b&&L||!L&&(null==N?void 0:N.isRightArrowInvisible)),f)),fill:"white"})]})};
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var r,t=e(require("@babel/runtime/helpers/defineProperty")),I={small:"small",medium:"medium",large:"large"},o=(r={},t.default(r,I.small,40),t.default(r,I.medium,64),t.default(r,I.large,120),r);exports.DIMENSION=I,exports.HEAD_PLACEMENT="head",exports.HORIZONTAL_MIN_GAP=48,exports.HORIZONTAL_ORIENTATION="horizontal",exports.HOVER_ARREA_HEIGHT=40,exports.HOVER_ARREA_WIDTH_BY_DIMENSION=o,exports.INNER_GAP=24,exports.INPUT_HEIGHT=20,exports.INPUT_VALUE_REGEX=/^[0-9.-]*$/,exports.INPUT_WIDTH=47,exports.MIN_ARROW_GAP=12,exports.VERTICAL_MIN_GAP=90,exports.VERTICAL_ORIENTATION="vertical";
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var r,t=e(require("@babel/runtime/helpers/defineProperty")),I={small:"small",medium:"medium",large:"large"},o=(r={},t.default(r,I.small,40),t.default(r,I.medium,64),t.default(r,I.large,120),r);exports.DIMENSION=I,exports.HEAD_PLACEMENT="head",exports.HORIZONTAL_MIN_GAP=48,exports.HORIZONTAL_ORIENTATION="horizontal",exports.HOVER_AREA_HEIGHT=40,exports.HOVER_AREA_WIDTH_BY_DIMENSION=o,exports.INNER_GAP=24,exports.INPUT_HEIGHT=20,exports.INPUT_VALUE_REGEX=/^[0-9.-]*$/,exports.INPUT_WIDTH=47,exports.MIN_ARROW_GAP=12,exports.VERTICAL_MIN_GAP=90,exports.VERTICAL_ORIENTATION="vertical";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@babel/runtime/helpers/defineProperty"),t=require("@material-ui/core"),e=require("../utils.js");function i(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var o=i(r);function n(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,i)}return e}function a(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?n(Object(e),!0).forEach((function(t){o.default(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):n(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var d={minWidth:47,height:20,borderRadius:4},l=t.makeStyles((function(r){var t=r.isLightTheme,i=r.palette;return{root:{fontSize:"12px",position:"absolute","&:hover":{borderColor:i.primary.main},"&:active":{borderColor:i.primary.main},"&:hover $handle":{borderColor:i.primary.main},"&:active $handle":{background:i.primary.dark,borderColor:i.primary.main},"&:hover $inputRoot:not($hasError)":{background:i.primary.dark,border:"1px solid ".concat(i.primary.main)},"&:hover $inputRoot $hasError":{background:"".concat(i.background.b6," !important"),border:"1px solid ".concat(i.primary.main)},"&:active $inputRoot":{background:i.primary.dark,border:"1px solid ".concat(i.primary.main)},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center","&:hover $leftArrow, &:active $leftArrow":{visibility:"visible"},"&:hover $rightArrow, &:active $rightArrow":{visibility:"visible"}},hasError:{border:"1px solid ".concat(i.error.main," !important"),"&.Mui-focused":{background:"".concat(i.background.b6," !important")},"&:hover":{background:i.background.b6},"&:hover $inputRoot":{background:i.background.b6}},horizontalHeadRoot:{top:0,bottom:0,right:5},horizontalTailRoot:{top:0,bottom:0,left:5},verticalHeadRoot:{left:0,right:0,bottom:5},verticalTailRoot:{left:0,right:0,top:5},handle:{position:"relative",background:t?"#B1B1B1":"#414141","& > p":{fontSize:"12px",textAlign:"center",lineHeight:"20px"},display:"flex",alignItems:"center",justifyContent:"center","&:before":{position:"absolute",left:"50%",top:"50%",height:function(r){var t=r.distance,i=r.hoverAreaHeight;return e.getHoverAreaSize({inititalSize:i,distance:t})},width:function(r){var t=r.distance,i=r.hoverAreaWidth;return e.getHoverAreaSize({distance:t,inititalSize:i})},content:'""',transform:"translate(-50%, -50%)",zIndex:100}},horizontalHeadHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopLeftRadius:2,borderBottomLeftRadius:2}):d},horizontalTailHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopRightRadius:2,borderBottomRightRadius:2}):d},verticalHeadHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopLeftRadius:2,borderTopRightRadius:2}):d},verticalTailHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderBottomRightRadius:2,borderBottomLeftRadius:2}):d},inputRoot:{borderRadius:4,minWidth:47,zIndex:101,height:"20px",fontSize:"12px",border:"1px solid ".concat(i.primary.text9),"&:hover":{border:"1px solid ".concat(i.primary.main)},"&:active":{textDecoration:"underline"},"&::before":{borderWidth:0},"&::after":{borderWidth:"1px !important"},"& .MuiInputBase-input":{padding:0,height:"100%",textAlign:"center"},"&:hover::before":{borderWidth:"1px !important"},"&.Mui-focused":{textDecoration:"underline",background:i.primary.dark,border:"1px solid ".concat(i.primary.main)}},minimalHandle:{background:"".concat(i.primary.text9," !important"),width:"8px !important",minWidth:"8px !important",minHeight:18,height:"18px !important","& .MuiInput-underline.Mui-error:after":{border:0},"&:before":{width:"0px !important",height:"0px !important"},"& $horizontalHeadHandle":{borderRadius:"0px !important"}},medium:{"& $minimalHandle":{minHeight:"24px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"24px !important"}},large:{"& $minimalHandle":{minHeight:"48px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"48px !important"}},minimalVerticalHandle:{width:18,minWidth:"18px !important",minHeight:8,height:"8px !important"},minimalHandleRoot:{borderColor:i.primary.text9,zIndex:100,"&:not(:hover)":{border:"none"}},leftArrow:{visibility:"hidden",zIndex:101,position:"absolute",left:-16},rightArrow:{visibility:"hidden",zIndex:101,position:"absolute",right:-15},reversedLeftArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",top:-16},reversedRightArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",bottom:-15},isInvisible:{display:"none"}}}));exports.useHandleStyles=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@babel/runtime/helpers/defineProperty"),t=require("@material-ui/core"),e=require("../utils.js");function i(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var o=i(r);function n(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,i)}return e}function a(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?n(Object(e),!0).forEach((function(t){o.default(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):n(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var d={minWidth:47,height:20,borderRadius:4},l=t.makeStyles((function(r){var t=r.isLightTheme,i=r.palette;return{root:{fontSize:"12px",position:"absolute","&:hover":{borderColor:i.primary.main},"&:active":{borderColor:i.primary.main},"&:hover $handle":{borderColor:i.primary.main},"&:active $handle":{background:i.primary.dark,borderColor:i.primary.main},"&:hover $inputRoot:not($hasError)":{background:i.primary.dark,border:"1px solid ".concat(i.primary.main)},"&:hover $inputRoot $hasError":{background:"".concat(i.background.b6," !important"),border:"1px solid ".concat(i.primary.main)},"&:active $inputRoot":{background:i.primary.dark,border:"1px solid ".concat(i.primary.main)},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center","&:hover $leftArrow, &:active $leftArrow":{visibility:"visible"},"&:hover $rightArrow, &:active $rightArrow":{visibility:"visible"}},hasError:{border:"1px solid ".concat(i.error.main," !important"),"&.Mui-focused":{background:"".concat(i.background.b6," !important")},"&:hover":{background:i.background.b6},"&:hover $inputRoot":{background:i.background.b6}},horizontalHeadRoot:{top:0,bottom:0,right:5},horizontalTailRoot:{top:0,bottom:0,left:5},verticalHeadRoot:{left:0,right:0,bottom:5},verticalTailRoot:{left:0,right:0,top:5},handle:{position:"relative",background:t?"#B1B1B1":"#414141","& > p":{fontSize:"12px",textAlign:"center",lineHeight:"20px"},display:"flex",alignItems:"center",justifyContent:"center","&:before":{position:"absolute",left:"50%",top:"50%",height:function(r){var t=r.distance,i=r.hoverAreaHeight;return e.getHoverAreaSize({initialSize:i,distance:t})},width:function(r){var t=r.distance,i=r.hoverAreaWidth;return e.getHoverAreaSize({distance:t,initialSize:i})},content:'""',transform:"translate(-50%, -50%)",zIndex:100}},horizontalHeadHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopLeftRadius:2,borderBottomLeftRadius:2}):d},horizontalTailHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopRightRadius:2,borderBottomRightRadius:2}):d},verticalHeadHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderTopLeftRadius:2,borderTopRightRadius:2}):d},verticalTailHandle:function(r){return r.minimal?a(a({},d),{},{borderRadius:"unset",borderBottomRightRadius:2,borderBottomLeftRadius:2}):d},inputRoot:{borderRadius:4,minWidth:47,zIndex:101,height:"20px",fontSize:"12px",border:"1px solid ".concat(i.primary.text9),"&:hover":{border:"1px solid ".concat(i.primary.main)},"&:active":{textDecoration:"underline"},"&::before":{borderWidth:0},"&::after":{borderWidth:"1px !important"},"& .MuiInputBase-input":{padding:0,height:"100%",textAlign:"center"},"&:hover::before":{borderWidth:"1px !important"},"&.Mui-focused":{textDecoration:"underline",background:i.primary.dark,border:"1px solid ".concat(i.primary.main)}},minimalHandle:{background:"".concat(i.primary.text9," !important"),width:"8px !important",minWidth:"8px !important",minHeight:18,height:"18px !important","& .MuiInput-underline.Mui-error:after":{border:0},"&:before":{width:"0px !important",height:"0px !important"},"& $horizontalHeadHandle":{borderRadius:"0px !important"}},medium:{"& $minimalHandle":{minHeight:"24px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"24px !important"}},large:{"& $minimalHandle":{minHeight:"48px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"48px !important"}},minimalVerticalHandle:{width:18,minWidth:"18px !important",minHeight:8,height:"8px !important"},minimalHandleRoot:{borderColor:i.primary.text9,zIndex:100,"&:not(:hover)":{border:"none"}},leftArrow:{visibility:"hidden",zIndex:101,position:"absolute",left:-16},rightArrow:{visibility:"hidden",zIndex:101,position:"absolute",right:-15},reversedLeftArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",top:-16},reversedRightArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",bottom:-15},isInvisible:{display:"none"}}}));exports.useHandleStyles=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./constants.js");exports.getHoverAreaSize=function(t){var e=t.inititalSize,i=t.distance;return i<0?e-Math.abs(i/2):e},exports.getIsInputValueValid=function(e){return t.INPUT_VALUE_REGEX.test(e)&&!Number.isNaN(Number(e))},exports.getSizedControls=function(t){var e=t.isHorizontalOrientation,i=t.size,a=t.max,r=t.min,n=t.head,h=t.tail;return{headMaxWidth:e?i.width/(a-r)*(h-r):i.width,tailMaxWidth:e?i.width/(a-r)*(a-n):i.width,headMaxHeight:e?i.height:i.height/(a-r)*(h-r),tailMaxHeight:e?i.height:i.height/(a-r)*(a-n)}},exports.getValidatedValue=function(t,e,i){return Math.min(Math.max(t,e),i)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./constants.js");exports.getHoverAreaSize=function(t){var e=t.initialSize,i=t.distance;return i<0?e-Math.abs(i/2):e},exports.getIsInputValueValid=function(e){return t.INPUT_VALUE_REGEX.test(e)&&!Number.isNaN(Number(e))},exports.getSizedControls=function(t){var e=t.isHorizontalOrientation,i=t.size,a=t.max,r=t.min,n=t.head,h=t.tail;return{headMaxWidth:e?i.width/(a-r)*(h-r):i.width,tailMaxWidth:e?i.width/(a-r)*(a-n):i.width,headMaxHeight:e?i.height:i.height/(a-r)*(h-r),tailMaxHeight:e?i.height:i.height/(a-r)*(a-n)}},exports.getValidatedValue=function(t,e,i){return Math.min(Math.max(t,e),i)};
@@ -31,7 +31,7 @@ export type AdvancedSliderProps = {
31
31
  */
32
32
  reversed?: boolean;
33
33
  /**
34
- * Positions "floating" handle (outside of track). Positioned at the `bottom` for horisontal orientation, and at the `right` for vertical
34
+ * Positions "floating" handle (outside of track). Positioned at the `bottom` for horizontal orientation, and at the `right` for vertical
35
35
  */
36
36
  handlePosition?: 'left' | 'right' | 'top' | 'bottom';
37
37
  handleClasses?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedSlider.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EACZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAwBf,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,gLAgBxB,mBAAmB,KAAG,YA0YxB,CAAC;;AAEF,wBAGmB"}
1
+ {"version":3,"file":"AdvancedSlider.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EACZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAwBf,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,gLAgBxB,mBAAmB,KAAG,YAmYxB,CAAC;;AAEF,wBAGmB"}
@@ -1 +1 @@
1
- import{__rest as t,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useRef as o,useState as a,useEffect as r,useMemo as d}from"react";import{Resizable as l}from"re-resizable";import{withSize as h}from"react-sizeme";import s from"classnames";import{useThrottledCallback as m}from"../shared/useThrottledCallback.js";import{Handle as c}from"./Handle.js";import{HandleIcon as u}from"./icons/HandleIcon.js";import{getSizedControls as v}from"./utils.js";import{useSliderStyles as f}from"./styles/sliderStyles.js";import"./styles/handleStyles.js";import{INPUT_WIDTH as p,INPUT_HEIGHT as g,INNER_GAP as w,MIN_ARROW_GAP as b,HORIZONTAL_ORIENTATION as y,VERTICAL_ORIENTATION as H,HORIZONTAL_MIN_GAP as z,VERTICAL_MIN_GAP as x}from"./constants.js";var M="twoValuesSliderDefault",S=function(h){var S,C,L,j=h.min,E=h.max,R=h.value,I=h.onChange,N=void 0===I?function(){}:I,W=h.orientation,_=void 0===W?y:W,A=h.valueFormatter,B=void 0===A?Math.floor:A,F=h.displayFormatter,P=void 0===F?function(t){return t}:F,O=h.editableHandles,X=void 0===O||O,Y=h.onStop,V=void 0===Y?function(){}:Y,D=h.reversed,T=void 0!==D&&D,k=h.handlePosition,q=h.handleClasses,G=void 0===q?{}:q,J=h.minimal,K=void 0!==J&&J,Q=h.dimension,U=void 0===Q?"small":Q,Z=t(h,["min","max","value","onChange","orientation","valueFormatter","displayFormatter","editableHandles","onStop","reversed","handlePosition","handleClasses","minimal","dimension"]).size,$=void 0===Z?{}:Z,tt=f(),et=o(null),it=o(null),nt=_===y,ot=_===H,at=K?$:e(e({},$),{width:nt?$.width-2*p:$.width,height:ot?$.height-2*g:$.height}),rt=a([B(null==R?void 0:R.at(0)),B(null==R?void 0:R.at(1))]),dt=rt[0],lt=rt[1],ht=o(null),st=a(!1),mt=st[0],ct=st[1],ut=dt[0],vt=dt[1],ft=v({isHorizontalOrientation:nt,size:at,max:E,min:j,tail:vt,head:ut}),pt=ft.headMaxWidth,gt=ft.tailMaxWidth,wt=ft.headMaxHeight,bt=ft.tailMaxHeight;r((function(){if(!ht.current){var t=[B(null==R?void 0:R.at(0)),B(null==R?void 0:R.at(1))],e=Math.min.apply(Math,t),i=Math.max.apply(Math,t);lt([e,i])}}),[null==R?void 0:R.at(0),null==R?void 0:R.at(1)]),r((function(){if(nt){var t=at.width/(E-j)*(ut-j),e=at.width/(E-j)*(E-vt);et.current.updateSize({width:T?e:t,height:at.height}),it.current.updateSize({width:T?t:e,height:at.height})}else if(ot){var i=at.height/(E-j)*(ut-j),n=at.height/(E-j)*(E-vt);et.current.updateSize({width:at.width,height:T?n:i}),it.current.updateSize({width:at.width,height:T?i:n})}}),[j,E,ut,vt,at.width,at.height,_]),r((function(){var t=function(){document.removeEventListener("mousemove",Mt),document.removeEventListener("mouseup",St),document.removeEventListener("touchmove",Ct),document.removeEventListener("touchend",Lt)};return mt?(document.addEventListener("mousemove",Mt),document.addEventListener("mouseup",St),document.addEventListener("touchmove",Ct),document.addEventListener("touchend",Lt)):(t(),V()),function(){t()}}),[mt]);var yt=m((function(t,e,i){ht.current="onResize Event";var n=i.clientWidth,o=i.clientHeight,a=ut,r=vt;"right"===e?T?r=B(E-n/at.width*(E-j)):a=B(j+n/at.width*(E-j)):"left"===e?T?a=B(j+n/at.width*(E-j)):r=B(E-n/at.width*(E-j)):"bottom"===e?T?r=B(E-o/at.height*(E-j)):a=B(j+o/at.height*(E-j)):"top"===e&&(T?a=B(j+o/at.height*(E-j)):r=B(E-o/at.height*(E-j))),a=Math.min(a,vt),r=Math.max(r,ut),lt([a,r]),N([a,r])})),Ht=m((function(){ht.current=null,V()})),zt=function(t,e){ht.current={xPos:t,yPos:e,head:ut,tail:vt}},xt=function(t,e){if(ht.current){var i=void 0;nt?i=(ht.current.xPos-t)/at.width*(E-j):ot&&(i=(ht.current.yPos-e)/at.height*(E-j));var n=ht.current.head-i*(T?-1:1),o=ht.current.tail-i*(T?-1:1),a=ht.current.tail-ht.current.head,r=void 0,d=void 0;n<=j?(r=j,d=j+a):o>=E?(r=E-a,d=E):(r=n,d=o),r=B(r),d=B(d),lt([r,d]),N([r,d])}},Mt=m((function(t){xt(t.clientX,t.clientY)})),St=m((function(){ht.current=null,ct(!1)})),Ct=m((function(t){xt(t.touches[0].pageX,t.touches[0].pageY)})),Lt=m((function(){ht.current=null,ct(!1)})),jt=m((function(t){lt([t,vt]),N([t,vt]),V()})),Et=m((function(t){lt([ut,t]),N([ut,t]),V()})),Rt=d((function(){return(vt-ut)/(E-j)*(ot?at.height:at.width)<30}),[j,E,ut,vt]),It=d((function(){return(vt-ut)/(E-j)*(ot?at.height:at.width)<w}),[j,E,ut,vt]),Nt=function(t,e){return t/e*(ot?at.height:at.width)},Wt=d((function(){var t=nt?z:x;return T?{isRightArrowInvisible:Nt(ut,E)<b,isLeftArrowInvisible:Nt(E-vt,E)<b,distance:(vt-ut)/(E-j)*(ot?at.height:at.width)-t}:{isRightArrowInvisible:Nt(E-vt,E)<b,isLeftArrowInvisible:Nt(ut,E)<b,distance:(vt-ut)/(E-j)*(ot?at.height:at.width)-t}}),[j,E,ut,vt,T]),_t=function(t){var n={min:j,max:vt,value:ut,onChange:jt},o={min:ut,max:E,value:vt,onChange:Et};return"head"===t?i(c,e({"data-testid":"".concat(M,"_handle_top"),placement:"head",dimension:U,readOnly:!X,isInsideArrowsVisible:It,arrowsOutsideConfig:Wt,displayFormatter:P,orientation:_,classes:G,minimal:K},T?o:n)):"tail"===t?i(c,e({"data-testid":"".concat(M,"_handle_bottom"),placement:"tail",dimension:U,readOnly:!X,isInsideArrowsVisible:It,arrowsOutsideConfig:Wt,displayFormatter:P,orientation:_,classes:G,minimal:K},T?n:o)):null};return i("div",{className:s(tt.rootWrapper,tt["".concat(_,"-").concat(U)],(S={},S[tt.rootMinimal]=K,S)),children:n("div",{className:s(tt.root,(C={},C[tt.horizontalRoot]=nt,C[tt.verticalRoot]=ot,C[tt.minimal]=K,C)),children:[i(l,{className:tt.resizable,ref:et,minHeight:0,minWidth:0,maxWidth:T?gt:pt,maxHeight:T?bt:wt,enable:{right:nt,bottom:ot},handleComponent:{right:_t("head"),bottom:_t("head")},onResize:yt,onResizeStop:Ht}),i("div",{className:tt.body,"data-testid":"slider-body",onMouseDown:function(t){zt(t.clientX,t.clientY),ct(!0)},onTouchStart:function(t){zt(t.touches[0].pageX,t.touches[0].pageY),ct(!0)},children:i("div",Rt?{className:s((L={},L[tt.horizontalBodyHandle]=nt,L[tt.verticalBodyHandle]=ot,L[tt.leftBodyHandle]="left"===k,L[tt.rightBodyHandle]="right"===k,L[tt.topBodyHandle]="top"===k,L[tt.bottomBodyHandle]="bottom"===k,L)),children:i("div",{className:tt.bodyHandle,"data-testid":"".concat(M,"_handle"),children:i(u,{orientation:"vertical",minimal:K})})}:{className:tt.bodyHandleIcon,"data-testid":"".concat(M,"_handle"),children:i(u,{orientation:_,minimal:K})})}),i(l,{className:tt.resizable,ref:it,minHeight:0,minWidth:0,enable:{left:nt,top:ot},handleComponent:{left:_t("tail"),top:_t("tail")},onResize:yt,onResizeStop:Ht})]})})},C=h({monitorWidth:!0,monitorHeight:!0})(S);export{S as AdvancedSlider,C as default};
1
+ import{__rest as t,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useRef as o,useState as a,useEffect as r,useMemo as d}from"react";import{Resizable as l}from"re-resizable";import{withSize as h}from"react-sizeme";import s from"classnames";import{useThrottledCallback as m}from"../shared/useThrottledCallback.js";import{Handle as c}from"./Handle.js";import{HandleIcon as u}from"./icons/HandleIcon.js";import{getSizedControls as v}from"./utils.js";import{useSliderStyles as f}from"./styles/sliderStyles.js";import"./styles/handleStyles.js";import{INPUT_WIDTH as p,INPUT_HEIGHT as g,INNER_GAP as w,MIN_ARROW_GAP as b,VERTICAL_MIN_GAP as y,HORIZONTAL_MIN_GAP as H,HORIZONTAL_ORIENTATION as z,VERTICAL_ORIENTATION as x}from"./constants.js";var M="twoValuesSliderDefault",S=function(h){var S,C,j,E=h.min,L=h.max,N=h.value,R=h.onChange,W=void 0===R?function(){}:R,_=h.orientation,B=void 0===_?z:_,F=h.valueFormatter,I=void 0===F?Math.floor:F,P=h.displayFormatter,O=void 0===P?function(t){return t}:P,A=h.editableHandles,X=void 0===A||A,Y=h.onStop,V=void 0===Y?function(){}:Y,D=h.reversed,T=void 0!==D&&D,k=h.handlePosition,q=h.handleClasses,G=void 0===q?{}:q,J=h.minimal,K=void 0!==J&&J,Q=h.dimension,U=void 0===Q?"small":Q,Z=t(h,["min","max","value","onChange","orientation","valueFormatter","displayFormatter","editableHandles","onStop","reversed","handlePosition","handleClasses","minimal","dimension"]).size,$=void 0===Z?{}:Z,tt=f(),et=o(null),it=o(null),nt=B===z,ot=B===x,at=K?$:e(e({},$),{width:nt?$.width-2*p:$.width,height:ot?$.height-2*g:$.height}),rt=a([I(null==N?void 0:N.at(0)),I(null==N?void 0:N.at(1))]),dt=rt[0],lt=rt[1],ht=o(null),st=a(!1),mt=st[0],ct=st[1],ut=dt[0],vt=dt[1],ft=v({isHorizontalOrientation:nt,size:at,max:L,min:E,tail:vt,head:ut}),pt=ft.headMaxWidth,gt=ft.tailMaxWidth,wt=ft.headMaxHeight,bt=ft.tailMaxHeight;r((function(){if(!ht.current){var t=[I(null==N?void 0:N.at(0)),I(null==N?void 0:N.at(1))],e=Math.min.apply(Math,t),i=Math.max.apply(Math,t);lt([e,i])}}),[null==N?void 0:N.at(0),null==N?void 0:N.at(1)]),r((function(){if(nt){var t=at.width/(L-E)*(ut-E),e=at.width/(L-E)*(L-vt);et.current.updateSize({width:T?e:t,height:at.height}),it.current.updateSize({width:T?t:e,height:at.height})}else if(ot){var i=at.height/(L-E)*(ut-E),n=at.height/(L-E)*(L-vt);et.current.updateSize({width:at.width,height:T?n:i}),it.current.updateSize({width:at.width,height:T?i:n})}}),[E,L,ut,vt,at.width,at.height,B]),r((function(){var t=function(){document.removeEventListener("mousemove",Mt),document.removeEventListener("mouseup",St),document.removeEventListener("touchmove",Ct),document.removeEventListener("touchend",jt)};return mt?(document.addEventListener("mousemove",Mt),document.addEventListener("mouseup",St),document.addEventListener("touchmove",Ct),document.addEventListener("touchend",jt)):(t(),V()),function(){t()}}),[mt]);var yt=m((function(t,e,i){ht.current="onResize Event";var n=i.clientWidth,o=i.clientHeight,a=ut,r=vt;"right"===e?T?r=I(L-n/at.width*(L-E)):a=I(E+n/at.width*(L-E)):"left"===e?T?a=I(E+n/at.width*(L-E)):r=I(L-n/at.width*(L-E)):"bottom"===e?T?r=I(L-o/at.height*(L-E)):a=I(E+o/at.height*(L-E)):"top"===e&&(T?a=I(E+o/at.height*(L-E)):r=I(L-o/at.height*(L-E))),a=Math.min(a,vt),r=Math.max(r,ut),lt([a,r]),W([a,r])})),Ht=m((function(){ht.current=null,V()})),zt=function(t,e){ht.current={xPos:t,yPos:e,head:ut,tail:vt}},xt=function(t,e){if(ht.current){var i=void 0;nt?i=(ht.current.xPos-t)/at.width*(L-E):ot&&(i=(ht.current.yPos-e)/at.height*(L-E));var n=ht.current.head-i*(T?-1:1),o=ht.current.tail-i*(T?-1:1),a=ht.current.tail-ht.current.head,r=void 0,d=void 0;n<=E?(r=E,d=E+a):o>=L?(r=L-a,d=L):(r=n,d=o),r=I(r),d=I(d),lt([r,d]),W([r,d])}},Mt=m((function(t){xt(t.clientX,t.clientY)})),St=m((function(){ht.current=null,ct(!1)})),Ct=m((function(t){xt(t.touches[0].pageX,t.touches[0].pageY)})),jt=m((function(){ht.current=null,ct(!1)})),Et=m((function(t){lt([t,vt]),W([t,vt]),V()})),Lt=m((function(t){lt([ut,t]),W([ut,t]),V()})),Nt=d((function(){return(vt-ut)/(L-E)*(ot?at.height:at.width)<30}),[E,L,ut,vt]),Rt=d((function(){return(vt-ut)/(L-E)*(ot?at.height:at.width)<w}),[E,L,ut,vt]),Wt=d((function(){var t=ot?at.height:at.width,e=t/(L-E),i=function(t){return(t-E)*e},n=i(ut),o=t-i(vt);return{isLeftArrowInvisible:T?o<b:n<b,isRightArrowInvisible:T?n<b:o<b,distance:(vt-ut)/(L-E)*t-(ot?y:H)}}),[E,L,ut,vt,T]),_t=function(t){var n={min:E,max:vt,value:ut,onChange:Et},o={min:ut,max:L,value:vt,onChange:Lt};return"head"===t?i(c,e({"data-testid":"".concat(M,"_handle_top"),placement:"head",dimension:U,readOnly:!X,isInsideArrowsVisible:Rt,arrowsOutsideConfig:Wt,displayFormatter:O,orientation:B,classes:G,minimal:K},T?o:n)):"tail"===t?i(c,e({"data-testid":"".concat(M,"_handle_bottom"),placement:"tail",dimension:U,readOnly:!X,isInsideArrowsVisible:Rt,arrowsOutsideConfig:Wt,displayFormatter:O,orientation:B,classes:G,minimal:K},T?n:o)):null};return i("div",{className:s(tt.rootWrapper,tt["".concat(B,"-").concat(U)],(S={},S[tt.rootMinimal]=K,S)),children:n("div",{className:s(tt.root,(C={},C[tt.horizontalRoot]=nt,C[tt.verticalRoot]=ot,C[tt.minimal]=K,C)),children:[i(l,{className:tt.resizable,ref:et,minHeight:0,minWidth:0,maxWidth:T?gt:pt,maxHeight:T?bt:wt,enable:{right:nt,bottom:ot},handleComponent:{right:_t("head"),bottom:_t("head")},onResize:yt,onResizeStop:Ht}),i("div",{className:tt.body,"data-testid":"slider-body",onMouseDown:function(t){zt(t.clientX,t.clientY),ct(!0)},onTouchStart:function(t){zt(t.touches[0].pageX,t.touches[0].pageY),ct(!0)},children:i("div",Nt?{className:s((j={},j[tt.horizontalBodyHandle]=nt,j[tt.verticalBodyHandle]=ot,j[tt.leftBodyHandle]="left"===k,j[tt.rightBodyHandle]="right"===k,j[tt.topBodyHandle]="top"===k,j[tt.bottomBodyHandle]="bottom"===k,j)),children:i("div",{className:tt.bodyHandle,"data-testid":"".concat(M,"_handle"),children:i(u,{orientation:"vertical",minimal:K})})}:{className:tt.bodyHandleIcon,"data-testid":"".concat(M,"_handle"),children:i(u,{orientation:B,minimal:K})})}),i(l,{className:tt.resizable,ref:it,minHeight:0,minWidth:0,enable:{left:nt,top:ot},handleComponent:{left:_t("tail"),top:_t("tail")},onResize:yt,onResizeStop:Ht})]})})},C=h({monitorWidth:!0,monitorHeight:!0})(S);export{S as AdvancedSlider,C as default};
@@ -6,6 +6,7 @@ declare const meta: Meta<Props>;
6
6
  export default meta;
7
7
  export declare const Default: (props: Props) => JSX.Element;
8
8
  export declare const Sizes: () => JSX.Element;
9
+ export declare const Reversed: () => JSX.Element;
9
10
  export declare const Vertical: () => JSX.Element;
10
11
  export declare const WithCharts: () => JSX.Element;
11
12
  //# sourceMappingURL=AdvancedSlider.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedSlider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAU,MAAM,OAAO,CAAC;AAO/C,OAAuB,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAkC,CAAC;AAEvE,eAAO,MAAM,KAAK,mBAMjB,CAAC;AASF,eAAO,MAAM,QAAQ,mBAIpB,CAAC;AA4CF,eAAO,MAAM,UAAU,mBA+BtB,CAAC"}
1
+ {"version":3,"file":"AdvancedSlider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAU,MAAM,OAAO,CAAC;AAO/C,OAAuB,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAkC,CAAC;AAEvE,eAAO,MAAM,KAAK,mBAMjB,CAAC;AASF,eAAO,MAAM,QAAQ,mBAIpB,CAAC;AAKF,eAAO,MAAM,QAAQ,mBAIpB,CAAC;AA4CF,eAAO,MAAM,UAAU,mBA+BtB,CAAC"}
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as n,useEffect as t}from"react";import{Input as e}from"@material-ui/core";import r from"classnames";import"./styles/sliderStyles.js";import{useHandleStyles as c}from"./styles/handleStyles.js";import{getIsInputValueValid as a,getValidatedValue as l}from"./utils.js";import{HOVER_ARREA_WIDTH_BY_DIMENSION as m,HOVER_ARREA_HEIGHT as d,HORIZONTAL_ORIENTATION as u,VERTICAL_ORIENTATION as p,HEAD_PLACEMENT as v}from"./constants.js";import{LeftIcon as h,RightIcon as I}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import{jsxs as j,jsx as f}from"react/jsx-runtime";var b=function(b){var A,R,g,C,F=b.value,H=b.orientation,w=b.placement,y=b.dimension,E=b.readOnly,N=b.onChange,k=b.min,x=b.max,T=b.displayFormatter,z=b.isInsideArrowsVisible,O=b.arrowsOutsideConfig,S=b.classes,M=b.minimal,G=b["data-testid"],P=s(!1),_=i(P,2),L=_[0],q=_[1],D=s(F),V=i(D,2),W=V[0],B=V[1],K=n(null),U=H===u,X=H===p,Z=w===v,J=c({distance:null==O?void 0:O.distance,minimal:M,hoverAreaHeight:U?m[y]:d,hoverAreaWidth:U?d:m[y]}),Q=function(o){if(!E){var i=Number(o);a(i)?N(l(i,k,x)):q(!0)}};return t((function(){B(F),L&&q(!1)}),[F]),j("div",{className:r(J.root,S.handleRoot,J[y],(A={},o(A,J.horizontalHeadRoot,U&&Z),o(A,J.horizontalTailRoot,U&&!Z),o(A,J.verticalHeadRoot,X&&Z),o(A,J.verticalTailRoot,X&&!Z),o(A,J.minimalHandleRoot,M),A)),children:[f(h,{size:16,className:r(J.leftArrow,(R={},o(R,J.reversedLeftArrow,X),o(R,J.isInvisible,z&&!Z||Z&&(null==O?void 0:O.isLeftArrowInvisible)),R)),fill:"white"}),f("div",{className:r(J.handle,S.handle,(g={},o(g,J.horizontalHeadHandle,U&&Z),o(g,J.horizontalTailHandle,U&&!Z),o(g,J.verticalHeadHandle,X&&Z),o(g,J.verticalTailHandle,X&&!Z),o(g,J.minimalHandle,M),o(g,J.minimalVerticalHandle,M&&X),g)),"data-testid":G,children:!M&&f(e,{inputProps:{"data-testid":"handle-input"},readOnly:E,inputRef:K,onKeyDown:function(o){var i=o.keyCode,s=o.target;13===i&&Q(s.value)},onBlur:function(o){var i=o.target;Q(i.value)},classes:{root:r(J.inputRoot,L&&J.hasError)},value:E?T(W):W,onChange:function(o){var i=o.target.value;(function(o){var i,s,n=null==o||null===(i=o.target)||void 0===i?void 0:i.value,t=n?parseFloat(n):0,e=t>=Number.MIN_SAFE_INTEGER&&t<Number.MAX_SAFE_INTEGER,r=null==o||null===(s=o.nativeEvent)||void 0===s?void 0:s.data,c=n.split(".").length-1;return!e||!(!r||"."===r||"-"===r||r>="0"&&r<="9")||c>1||"-"===r&&""===n})(o)||(B(i),L&&q(!1))},disableUnderline:!0,error:!(Number.isFinite(+W)&&+W>=k&&+W<=x)})}),f(I,{size:16,className:r(J.rightArrow,(C={},o(C,J.reversedRightArrow,X),o(C,J.isInvisible,z&&Z||!Z&&(null==O?void 0:O.isRightArrowInvisible)),C)),fill:"white"})]})};export{b as Handle};
1
+ import o from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as n,useEffect as t}from"react";import{Input as e}from"@material-ui/core";import r from"classnames";import"./styles/sliderStyles.js";import{useHandleStyles as c}from"./styles/handleStyles.js";import{getIsInputValueValid as a,getValidatedValue as l}from"./utils.js";import{HOVER_AREA_WIDTH_BY_DIMENSION as m,HOVER_AREA_HEIGHT as d,HORIZONTAL_ORIENTATION as u,VERTICAL_ORIENTATION as p,HEAD_PLACEMENT as v}from"./constants.js";import{LeftIcon as h,RightIcon as I}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import{jsxs as j,jsx as f}from"react/jsx-runtime";var b=function(b){var A,R,g,C,F=b.value,H=b.orientation,w=b.placement,y=b.dimension,E=b.readOnly,N=b.onChange,k=b.min,x=b.max,T=b.displayFormatter,z=b.isInsideArrowsVisible,O=b.arrowsOutsideConfig,S=b.classes,M=b.minimal,G=b["data-testid"],P=s(!1),_=i(P,2),L=_[0],q=_[1],D=s(F),V=i(D,2),W=V[0],B=V[1],K=n(null),U=H===u,X=H===p,Z=w===v,J=c({distance:null==O?void 0:O.distance,minimal:M,hoverAreaHeight:U?m[y]:d,hoverAreaWidth:U?d:m[y]}),Q=function(o){if(!E){var i=Number(o);a(i)?N(l(i,k,x)):q(!0)}};return t((function(){B(F),L&&q(!1)}),[F]),j("div",{className:r(J.root,S.handleRoot,J[y],(A={},o(A,J.horizontalHeadRoot,U&&Z),o(A,J.horizontalTailRoot,U&&!Z),o(A,J.verticalHeadRoot,X&&Z),o(A,J.verticalTailRoot,X&&!Z),o(A,J.minimalHandleRoot,M),A)),children:[f(h,{size:16,className:r(J.leftArrow,(R={},o(R,J.reversedLeftArrow,X),o(R,J.isInvisible,z&&!Z||Z&&(null==O?void 0:O.isLeftArrowInvisible)),R)),fill:"white"}),f("div",{className:r(J.handle,S.handle,(g={},o(g,J.horizontalHeadHandle,U&&Z),o(g,J.horizontalTailHandle,U&&!Z),o(g,J.verticalHeadHandle,X&&Z),o(g,J.verticalTailHandle,X&&!Z),o(g,J.minimalHandle,M),o(g,J.minimalVerticalHandle,M&&X),g)),"data-testid":G,children:!M&&f(e,{inputProps:{"data-testid":"handle-input"},readOnly:E,inputRef:K,onKeyDown:function(o){var i=o.keyCode,s=o.target;13===i&&Q(s.value)},onBlur:function(o){var i=o.target;Q(i.value)},classes:{root:r(J.inputRoot,L&&J.hasError)},value:E?T(W):W,onChange:function(o){var i=o.target.value;(function(o){var i,s,n=null==o||null===(i=o.target)||void 0===i?void 0:i.value,t=n?parseFloat(n):0,e=t>=Number.MIN_SAFE_INTEGER&&t<Number.MAX_SAFE_INTEGER,r=null==o||null===(s=o.nativeEvent)||void 0===s?void 0:s.data,c=n.split(".").length-1;return!e||!(!r||"."===r||"-"===r||r>="0"&&r<="9")||c>1||"-"===r&&""===n})(o)||(B(i),L&&q(!1))},disableUnderline:!0,error:!(Number.isFinite(+W)&&+W>=k&&+W<=x)})}),f(I,{size:16,className:r(J.rightArrow,(C={},o(C,J.reversedRightArrow,X),o(C,J.isInvisible,z&&Z||!Z&&(null==O?void 0:O.isRightArrowInvisible)),C)),fill:"white"})]})};export{b as Handle};
@@ -13,8 +13,8 @@ export namespace DIMENSION {
13
13
  let medium: string;
14
14
  let large: string;
15
15
  }
16
- export const HOVER_ARREA_WIDTH_BY_DIMENSION: {
16
+ export const HOVER_AREA_WIDTH_BY_DIMENSION: {
17
17
  [x: string]: number;
18
18
  };
19
- export const HOVER_ARREA_HEIGHT: 40;
19
+ export const HOVER_AREA_HEIGHT: 40;
20
20
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/constants.js"],"names":[],"mappings":"AAAA,uCAA8C;AAE9C,8CAA+C;AAC/C,kDAAmD;AACnD,oCAAqC;AAErC,6BAA8B;AAC9B,8BAA+B;AAC/B,+BAAgC;AAChC,2BAA4B;AAE5B,kCAAmC;AACnC,oCAAqC;;;;;;AAQrC;;EAIE;AAEF,oCAAqC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/constants.js"],"names":[],"mappings":"AAAA,uCAA8C;AAE9C,8CAA+C;AAC/C,kDAAmD;AACnD,oCAAqC;AAErC,6BAA8B;AAC9B,8BAA+B;AAC/B,+BAAgC;AAChC,2BAA4B;AAE5B,kCAAmC;AACnC,oCAAqC;;;;;;AAQrC;;EAIE;AAEF,mCAAoC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";var l,r=/^[0-9.-]*$/,m="vertical",a="horizontal",i="head",o=47,t=20,d=12,p=24,s=90,u=48,g={small:"small",medium:"medium",large:"large"},h=(e(l={},g.small,40),e(l,g.medium,64),e(l,g.large,120),l),n=40;export{g as DIMENSION,i as HEAD_PLACEMENT,u as HORIZONTAL_MIN_GAP,a as HORIZONTAL_ORIENTATION,n as HOVER_ARREA_HEIGHT,h as HOVER_ARREA_WIDTH_BY_DIMENSION,p as INNER_GAP,t as INPUT_HEIGHT,r as INPUT_VALUE_REGEX,o as INPUT_WIDTH,d as MIN_ARROW_GAP,s as VERTICAL_MIN_GAP,m as VERTICAL_ORIENTATION};
1
+ import e from"@babel/runtime/helpers/defineProperty";var l,r=/^[0-9.-]*$/,m="vertical",a="horizontal",i="head",o=47,t=20,d=12,p=24,s=90,u=48,g={small:"small",medium:"medium",large:"large"},h=(e(l={},g.small,40),e(l,g.medium,64),e(l,g.large,120),l),n=40;export{g as DIMENSION,i as HEAD_PLACEMENT,u as HORIZONTAL_MIN_GAP,a as HORIZONTAL_ORIENTATION,n as HOVER_AREA_HEIGHT,h as HOVER_AREA_WIDTH_BY_DIMENSION,p as INNER_GAP,t as INPUT_HEIGHT,r as INPUT_VALUE_REGEX,o as INPUT_WIDTH,d as MIN_ARROW_GAP,s as VERTICAL_MIN_GAP,m as VERTICAL_ORIENTATION};
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as t}from"@material-ui/core";import{getHoverAreaSize as i}from"../utils.js";function e(r,t){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.push.apply(i,e)}return i}function o(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?e(Object(o),!0).forEach((function(i){r(t,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var n={minWidth:47,height:20,borderRadius:4},a=t((function(r){var t=r.isLightTheme,e=r.palette;return{root:{fontSize:"12px",position:"absolute","&:hover":{borderColor:e.primary.main},"&:active":{borderColor:e.primary.main},"&:hover $handle":{borderColor:e.primary.main},"&:active $handle":{background:e.primary.dark,borderColor:e.primary.main},"&:hover $inputRoot:not($hasError)":{background:e.primary.dark,border:"1px solid ".concat(e.primary.main)},"&:hover $inputRoot $hasError":{background:"".concat(e.background.b6," !important"),border:"1px solid ".concat(e.primary.main)},"&:active $inputRoot":{background:e.primary.dark,border:"1px solid ".concat(e.primary.main)},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center","&:hover $leftArrow, &:active $leftArrow":{visibility:"visible"},"&:hover $rightArrow, &:active $rightArrow":{visibility:"visible"}},hasError:{border:"1px solid ".concat(e.error.main," !important"),"&.Mui-focused":{background:"".concat(e.background.b6," !important")},"&:hover":{background:e.background.b6},"&:hover $inputRoot":{background:e.background.b6}},horizontalHeadRoot:{top:0,bottom:0,right:5},horizontalTailRoot:{top:0,bottom:0,left:5},verticalHeadRoot:{left:0,right:0,bottom:5},verticalTailRoot:{left:0,right:0,top:5},handle:{position:"relative",background:t?"#B1B1B1":"#414141","& > p":{fontSize:"12px",textAlign:"center",lineHeight:"20px"},display:"flex",alignItems:"center",justifyContent:"center","&:before":{position:"absolute",left:"50%",top:"50%",height:function(r){var t=r.distance,e=r.hoverAreaHeight;return i({inititalSize:e,distance:t})},width:function(r){var t=r.distance,e=r.hoverAreaWidth;return i({distance:t,inititalSize:e})},content:'""',transform:"translate(-50%, -50%)",zIndex:100}},horizontalHeadHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopLeftRadius:2,borderBottomLeftRadius:2}):n},horizontalTailHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopRightRadius:2,borderBottomRightRadius:2}):n},verticalHeadHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopLeftRadius:2,borderTopRightRadius:2}):n},verticalTailHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderBottomRightRadius:2,borderBottomLeftRadius:2}):n},inputRoot:{borderRadius:4,minWidth:47,zIndex:101,height:"20px",fontSize:"12px",border:"1px solid ".concat(e.primary.text9),"&:hover":{border:"1px solid ".concat(e.primary.main)},"&:active":{textDecoration:"underline"},"&::before":{borderWidth:0},"&::after":{borderWidth:"1px !important"},"& .MuiInputBase-input":{padding:0,height:"100%",textAlign:"center"},"&:hover::before":{borderWidth:"1px !important"},"&.Mui-focused":{textDecoration:"underline",background:e.primary.dark,border:"1px solid ".concat(e.primary.main)}},minimalHandle:{background:"".concat(e.primary.text9," !important"),width:"8px !important",minWidth:"8px !important",minHeight:18,height:"18px !important","& .MuiInput-underline.Mui-error:after":{border:0},"&:before":{width:"0px !important",height:"0px !important"},"& $horizontalHeadHandle":{borderRadius:"0px !important"}},medium:{"& $minimalHandle":{minHeight:"24px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"24px !important"}},large:{"& $minimalHandle":{minHeight:"48px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"48px !important"}},minimalVerticalHandle:{width:18,minWidth:"18px !important",minHeight:8,height:"8px !important"},minimalHandleRoot:{borderColor:e.primary.text9,zIndex:100,"&:not(:hover)":{border:"none"}},leftArrow:{visibility:"hidden",zIndex:101,position:"absolute",left:-16},rightArrow:{visibility:"hidden",zIndex:101,position:"absolute",right:-15},reversedLeftArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",top:-16},reversedRightArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",bottom:-15},isInvisible:{display:"none"}}}));export{a as useHandleStyles};
1
+ import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as t}from"@material-ui/core";import{getHoverAreaSize as i}from"../utils.js";function e(r,t){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.push.apply(i,e)}return i}function o(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?e(Object(o),!0).forEach((function(i){r(t,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var n={minWidth:47,height:20,borderRadius:4},a=t((function(r){var t=r.isLightTheme,e=r.palette;return{root:{fontSize:"12px",position:"absolute","&:hover":{borderColor:e.primary.main},"&:active":{borderColor:e.primary.main},"&:hover $handle":{borderColor:e.primary.main},"&:active $handle":{background:e.primary.dark,borderColor:e.primary.main},"&:hover $inputRoot:not($hasError)":{background:e.primary.dark,border:"1px solid ".concat(e.primary.main)},"&:hover $inputRoot $hasError":{background:"".concat(e.background.b6," !important"),border:"1px solid ".concat(e.primary.main)},"&:active $inputRoot":{background:e.primary.dark,border:"1px solid ".concat(e.primary.main)},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center","&:hover $leftArrow, &:active $leftArrow":{visibility:"visible"},"&:hover $rightArrow, &:active $rightArrow":{visibility:"visible"}},hasError:{border:"1px solid ".concat(e.error.main," !important"),"&.Mui-focused":{background:"".concat(e.background.b6," !important")},"&:hover":{background:e.background.b6},"&:hover $inputRoot":{background:e.background.b6}},horizontalHeadRoot:{top:0,bottom:0,right:5},horizontalTailRoot:{top:0,bottom:0,left:5},verticalHeadRoot:{left:0,right:0,bottom:5},verticalTailRoot:{left:0,right:0,top:5},handle:{position:"relative",background:t?"#B1B1B1":"#414141","& > p":{fontSize:"12px",textAlign:"center",lineHeight:"20px"},display:"flex",alignItems:"center",justifyContent:"center","&:before":{position:"absolute",left:"50%",top:"50%",height:function(r){var t=r.distance,e=r.hoverAreaHeight;return i({initialSize:e,distance:t})},width:function(r){var t=r.distance,e=r.hoverAreaWidth;return i({distance:t,initialSize:e})},content:'""',transform:"translate(-50%, -50%)",zIndex:100}},horizontalHeadHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopLeftRadius:2,borderBottomLeftRadius:2}):n},horizontalTailHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopRightRadius:2,borderBottomRightRadius:2}):n},verticalHeadHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderTopLeftRadius:2,borderTopRightRadius:2}):n},verticalTailHandle:function(r){return r.minimal?o(o({},n),{},{borderRadius:"unset",borderBottomRightRadius:2,borderBottomLeftRadius:2}):n},inputRoot:{borderRadius:4,minWidth:47,zIndex:101,height:"20px",fontSize:"12px",border:"1px solid ".concat(e.primary.text9),"&:hover":{border:"1px solid ".concat(e.primary.main)},"&:active":{textDecoration:"underline"},"&::before":{borderWidth:0},"&::after":{borderWidth:"1px !important"},"& .MuiInputBase-input":{padding:0,height:"100%",textAlign:"center"},"&:hover::before":{borderWidth:"1px !important"},"&.Mui-focused":{textDecoration:"underline",background:e.primary.dark,border:"1px solid ".concat(e.primary.main)}},minimalHandle:{background:"".concat(e.primary.text9," !important"),width:"8px !important",minWidth:"8px !important",minHeight:18,height:"18px !important","& .MuiInput-underline.Mui-error:after":{border:0},"&:before":{width:"0px !important",height:"0px !important"},"& $horizontalHeadHandle":{borderRadius:"0px !important"}},medium:{"& $minimalHandle":{minHeight:"24px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"24px !important"}},large:{"& $minimalHandle":{minHeight:"48px !important"},"& $minimalVerticalHandle":{minHeight:"8px !important",minWidth:"48px !important"}},minimalVerticalHandle:{width:18,minWidth:"18px !important",minHeight:8,height:"8px !important"},minimalHandleRoot:{borderColor:e.primary.text9,zIndex:100,"&:not(:hover)":{border:"none"}},leftArrow:{visibility:"hidden",zIndex:101,position:"absolute",left:-16},rightArrow:{visibility:"hidden",zIndex:101,position:"absolute",right:-15},reversedLeftArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",top:-16},reversedRightArrow:{left:"50%",transform:"translateX(-50%) rotate(90deg)",bottom:-15},isInvisible:{display:"none"}}}));export{a as useHandleStyles};
@@ -1,7 +1,7 @@
1
1
  export function getValidatedValue(value: any, min: any, max: any): number;
2
2
  export function getIsInputValueValid(inputValue: any): boolean;
3
- export function getHoverAreaSize({ inititalSize, distance }: {
4
- inititalSize: any;
3
+ export function getHoverAreaSize({ initialSize, distance }: {
4
+ initialSize: any;
5
5
  distance: any;
6
6
  }): any;
7
7
  export function getSizedControls({ isHorizontalOrientation, size, max, min, head, tail }: {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/utils.js"],"names":[],"mappings":"AAEO,0EAAkF;AAElF,+DACkE;AAElE;;;QAC8D;AAE9D;;;;;;;;;;;;EASL"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/utils.js"],"names":[],"mappings":"AAEO,0EAAkF;AAElF,+DACkE;AAElE;;;QAC4D;AAE5D;;;;;;;;;;;;EASL"}
@@ -1 +1 @@
1
- import{INPUT_VALUE_REGEX as t}from"./constants.js";var i=function(t,i,a){return Math.min(Math.max(t,i),a)},a=function(i){return t.test(i)&&!Number.isNaN(Number(i))},h=function(t){var i=t.inititalSize,a=t.distance;return a<0?i-Math.abs(a/2):i},e=function(t){var i=t.isHorizontalOrientation,a=t.size,h=t.max,e=t.min,n=t.head,r=t.tail;return{headMaxWidth:i?a.width/(h-e)*(r-e):a.width,tailMaxWidth:i?a.width/(h-e)*(h-n):a.width,headMaxHeight:i?a.height:a.height/(h-e)*(r-e),tailMaxHeight:i?a.height:a.height/(h-e)*(h-n)}};export{h as getHoverAreaSize,a as getIsInputValueValid,e as getSizedControls,i as getValidatedValue};
1
+ import{INPUT_VALUE_REGEX as t}from"./constants.js";var i=function(t,i,a){return Math.min(Math.max(t,i),a)},a=function(i){return t.test(i)&&!Number.isNaN(Number(i))},h=function(t){var i=t.initialSize,a=t.distance;return a<0?i-Math.abs(a/2):i},e=function(t){var i=t.isHorizontalOrientation,a=t.size,h=t.max,e=t.min,n=t.head,r=t.tail;return{headMaxWidth:i?a.width/(h-e)*(r-e):a.width,tailMaxWidth:i?a.width/(h-e)*(h-n):a.width,headMaxHeight:i?a.height:a.height/(h-e)*(r-e),tailMaxHeight:i?a.height:a.height/(h-e)*(h-n)}};export{h as getHoverAreaSize,a as getIsInputValueValid,e as getSizedControls,i as getValidatedValue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.7.0-1",
3
+ "version": "3.7.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"