@corva/ui 0.87.0-2 → 0.87.0-20
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/cjs-bundle/components/AdvancedSlider/AdvancedSlider.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/constants.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/styles/handleStyles.js +1 -1
- package/cjs-bundle/components/Button/components/Button/index.js +1 -1
- package/cjs-bundle/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicketUtils.js +1 -0
- package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.styles.js +1 -1
- package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.css.js +1 -1
- package/cjs-bundle/components/Tabs/Tabs.js +1 -1
- package/cjs-bundle/config/theme/fabOverrides.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/config/theme/toggleButtonsGroupOverrides.js +1 -1
- package/cjs-bundle/styles/index.global.css.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.d.ts.map +1 -1
- package/components/AdvancedSlider/AdvancedSlider.js +1 -1
- package/components/AdvancedSlider/Handle.d.ts +2 -1
- package/components/AdvancedSlider/Handle.d.ts.map +1 -1
- package/components/AdvancedSlider/Handle.js +1 -1
- package/components/AdvancedSlider/chartOptions.d.ts +39 -0
- package/components/AdvancedSlider/chartOptions.d.ts.map +1 -0
- package/components/AdvancedSlider/constants.d.ts +9 -2
- package/components/AdvancedSlider/constants.d.ts.map +1 -1
- package/components/AdvancedSlider/constants.js +1 -1
- package/components/AdvancedSlider/styles/handleStyles.d.ts +1 -1
- package/components/AdvancedSlider/styles/handleStyles.d.ts.map +1 -1
- package/components/AdvancedSlider/styles/handleStyles.js +1 -1
- package/components/Button/components/Button/index.d.ts.map +1 -1
- package/components/Button/components/Button/index.js +1 -1
- package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js +1 -1
- package/components/Button/components/LiveButton/index.d.ts +3 -2
- package/components/Button/components/LiveButton/index.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/ColorPicketUtils.d.ts +4 -0
- package/components/ColorPicker/ColorPicketUtils.d.ts.map +1 -0
- package/components/ColorPicker/ColorPicketUtils.js +1 -0
- package/components/ColorPicker/__tests__/ColorPicketUtils.test.d.ts +2 -0
- package/components/ColorPicker/__tests__/ColorPicketUtils.test.d.ts.map +1 -0
- package/components/GradientManager/GradientManager.d.ts.map +1 -1
- package/components/GradientManager/GradientManager.js +1 -1
- package/components/GradientManager/GradientManagerProps.d.ts +1 -0
- package/components/GradientManager/GradientManagerProps.d.ts.map +1 -1
- package/components/GradientManager/GradientSelect.d.ts.map +1 -1
- package/components/GradientManager/GradientSelect.js +1 -1
- package/components/GradientManager/GradientSelect.styles.d.ts.map +1 -1
- package/components/GradientManager/GradientSelect.styles.js +1 -1
- package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
- package/components/GradientPicker/GradientPicker.js +1 -1
- package/components/Modal/CorvaModal.css.js +1 -1
- package/components/Tabs/Tabs.d.ts.map +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/config/theme/fabOverrides.d.ts +8 -3
- package/config/theme/fabOverrides.js +1 -1
- package/config/theme/index.d.ts +2 -2
- package/config/theme/index.d.ts.map +1 -1
- package/config/theme/index.js +1 -1
- package/config/theme/toggleButtonsGroupOverrides.d.ts +0 -1
- package/config/theme/toggleButtonsGroupOverrides.js +1 -1
- package/package.json +1 -1
- package/styles/index.global.css +1 -1
- package/styles/index.global.css.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/helpers/defineProperty"),i=require("react"),n=require("re-resizable"),a=require("react-sizeme"),r=require("classnames"),o=require("lodash"),l=require("../shared/useThrottledCallback.js"),d=require("./Handle.js"),s=require("./icons/HandleIcon.js"),u=require("./utils.js"),h=require("./styles/sliderStyles.js");require("./styles/handleStyles.js");var c=require("./constants.js"),m=require("react/jsx-runtime");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=f(e),p=f(t),b=f(r);function g(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?g(Object(i),!0).forEach((function(t){p.default(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var w="twoValuesSliderDefault",O=function(e){var t,a,r=e.min,o=e.max,f=e.value,g=e.size,O=e.orientation,j=e.valueFormatter,I=e.displayFormatter,R=e.editableHandles,x=e.onChange,H=e.onStop,A=e.reversed,N=e.handlePosition,T=e.handleClasses,_=e.minimal,P=e.dimension,M=h.useSliderStyles(),z=i.useRef(null),C=i.useRef(null),E=O===c.HORIZONTAL_ORIENTATION,S=O===c.VERTICAL_ORIENTATION,q=_?g:y(y({},g),{},{width:E?g.width-2*c.INPUT_WIDTH:g.width,height:S?g.height-2*c.INPUT_HEIGHT:g.height}),L=i.useState([j(null==f?void 0:f.at(0)),j(null==f?void 0:f.at(1))]),W=v.default(L,2),k=W[0],G=W[1],D=i.useRef(null),B=i.useState(!1),F=v.default(B,2),V=F[0],X=F[1],Y=v.default(k,2),Z=Y[0],U=Y[1],J=u.getSizedControls({isHorizontalOrientation:E,size:q,max:o,min:r,tail:U,head:Z}),K=J.headMaxWidth,Q=J.tailMaxWidth,$=J.headMaxHeight,ee=J.tailMaxHeight;i.useEffect((function(){if(!D.current){var e=[j(null==f?void 0:f.at(0)),j(null==f?void 0:f.at(1))],t=Math.min.apply(Math,e),i=Math.max.apply(Math,e);G([t,i])}}),[null==f?void 0:f.at(0),null==f?void 0:f.at(1)]),i.useEffect((function(){if(E){var e=q.width/(o-r)*(Z-r),t=q.width/(o-r)*(o-U);z.current.updateSize({width:A?t:e,height:q.height}),C.current.updateSize({width:A?e:t,height:q.height})}else if(S){var i=q.height/(o-r)*(Z-r),n=q.height/(o-r)*(o-U);z.current.updateSize({width:q.width,height:A?n:i}),C.current.updateSize({width:q.width,height:A?i:n})}}),[r,o,Z,U,q.width,q.height,O]),i.useEffect((function(){var e=function(){document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",oe),document.removeEventListener("touchmove",le),document.removeEventListener("touchend",de)};return V?(document.addEventListener("mousemove",re),document.addEventListener("mouseup",oe),document.addEventListener("touchmove",le),document.addEventListener("touchend",de)):(e(),H()),function(){e()}}),[V]);var te=l.useThrottledCallback((function(e,t,i){D.current="onResize Event";var n=i.clientWidth,a=i.clientHeight,l=Z,d=U;"right"===t?A?d=j(o-n/q.width*(o-r)):l=j(r+n/q.width*(o-r)):"left"===t?A?l=j(r+n/q.width*(o-r)):d=j(o-n/q.width*(o-r)):"bottom"===t?A?d=j(o-a/q.height*(o-r)):l=j(r+a/q.height*(o-r)):"top"===t&&(A?l=j(r+a/q.height*(o-r)):d=j(o-a/q.height*(o-r))),l=Math.min(l,U),d=Math.max(d,Z),G([l,d]),x([l,d])})),ie=l.useThrottledCallback((function(){D.current=null,H()})),ne=function(e,t){D.current={xPos:e,yPos:t,head:Z,tail:U}},ae=function(e,t){if(D.current){var i;E?i=(D.current.xPos-e)/q.width*(o-r):S&&(i=(D.current.yPos-t)/q.height*(o-r));var n,a,l=D.current.head-i*(A?-1:1),d=D.current.tail-i*(A?-1:1),s=D.current.tail-D.current.head;l<=r?(n=r,a=r+s):d>=o?(n=o-s,a=o):(n=l,a=d),n=j(n),a=j(a),G([n,a]),x([n,a])}},re=l.useThrottledCallback((function(e){ae(e.clientX,e.clientY)})),oe=l.useThrottledCallback((function(){D.current=null,X(!1)})),le=l.useThrottledCallback((function(e){ae(e.touches[0].pageX,e.touches[0].pageY)})),de=l.useThrottledCallback((function(){D.current=null,X(!1)})),se=l.useThrottledCallback((function(e){G([e,U]),x([e,U])})),ue=l.useThrottledCallback((function(e){G([Z,e]),x([Z,e])})),he=i.useMemo((function(){return(U-Z)/(o-r)*(S?q.height:q.width)<30}),[r,o,Z,U]),ce=i.useMemo((function(){return(U-Z)/(o-r)*(S?q.height:q.width)<c.INNER_GAP}),[r,o,Z,U]),me=function(e,t){return e/t*(S?q.height:q.width)},fe=i.useMemo((function(){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/helpers/defineProperty"),i=require("react"),n=require("re-resizable"),a=require("react-sizeme"),r=require("classnames"),o=require("lodash"),l=require("../shared/useThrottledCallback.js"),d=require("./Handle.js"),s=require("./icons/HandleIcon.js"),u=require("./utils.js"),h=require("./styles/sliderStyles.js");require("./styles/handleStyles.js");var c=require("./constants.js"),m=require("react/jsx-runtime");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=f(e),p=f(t),b=f(r);function g(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?g(Object(i),!0).forEach((function(t){p.default(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var w="twoValuesSliderDefault",O=function(e){var t,a,r=e.min,o=e.max,f=e.value,g=e.size,O=e.orientation,j=e.valueFormatter,I=e.displayFormatter,R=e.editableHandles,x=e.onChange,H=e.onStop,A=e.reversed,N=e.handlePosition,T=e.handleClasses,_=e.minimal,P=e.dimension,M=h.useSliderStyles(),z=i.useRef(null),C=i.useRef(null),E=O===c.HORIZONTAL_ORIENTATION,S=O===c.VERTICAL_ORIENTATION,q=_?g:y(y({},g),{},{width:E?g.width-2*c.INPUT_WIDTH:g.width,height:S?g.height-2*c.INPUT_HEIGHT:g.height}),L=i.useState([j(null==f?void 0:f.at(0)),j(null==f?void 0:f.at(1))]),W=v.default(L,2),k=W[0],G=W[1],D=i.useRef(null),B=i.useState(!1),F=v.default(B,2),V=F[0],X=F[1],Y=v.default(k,2),Z=Y[0],U=Y[1],J=u.getSizedControls({isHorizontalOrientation:E,size:q,max:o,min:r,tail:U,head:Z}),K=J.headMaxWidth,Q=J.tailMaxWidth,$=J.headMaxHeight,ee=J.tailMaxHeight;i.useEffect((function(){if(!D.current){var e=[j(null==f?void 0:f.at(0)),j(null==f?void 0:f.at(1))],t=Math.min.apply(Math,e),i=Math.max.apply(Math,e);G([t,i])}}),[null==f?void 0:f.at(0),null==f?void 0:f.at(1)]),i.useEffect((function(){if(E){var e=q.width/(o-r)*(Z-r),t=q.width/(o-r)*(o-U);z.current.updateSize({width:A?t:e,height:q.height}),C.current.updateSize({width:A?e:t,height:q.height})}else if(S){var i=q.height/(o-r)*(Z-r),n=q.height/(o-r)*(o-U);z.current.updateSize({width:q.width,height:A?n:i}),C.current.updateSize({width:q.width,height:A?i:n})}}),[r,o,Z,U,q.width,q.height,O]),i.useEffect((function(){var e=function(){document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",oe),document.removeEventListener("touchmove",le),document.removeEventListener("touchend",de)};return V?(document.addEventListener("mousemove",re),document.addEventListener("mouseup",oe),document.addEventListener("touchmove",le),document.addEventListener("touchend",de)):(e(),H()),function(){e()}}),[V]);var te=l.useThrottledCallback((function(e,t,i){D.current="onResize Event";var n=i.clientWidth,a=i.clientHeight,l=Z,d=U;"right"===t?A?d=j(o-n/q.width*(o-r)):l=j(r+n/q.width*(o-r)):"left"===t?A?l=j(r+n/q.width*(o-r)):d=j(o-n/q.width*(o-r)):"bottom"===t?A?d=j(o-a/q.height*(o-r)):l=j(r+a/q.height*(o-r)):"top"===t&&(A?l=j(r+a/q.height*(o-r)):d=j(o-a/q.height*(o-r))),l=Math.min(l,U),d=Math.max(d,Z),G([l,d]),x([l,d])})),ie=l.useThrottledCallback((function(){D.current=null,H()})),ne=function(e,t){D.current={xPos:e,yPos:t,head:Z,tail:U}},ae=function(e,t){if(D.current){var i;E?i=(D.current.xPos-e)/q.width*(o-r):S&&(i=(D.current.yPos-t)/q.height*(o-r));var n,a,l=D.current.head-i*(A?-1:1),d=D.current.tail-i*(A?-1:1),s=D.current.tail-D.current.head;l<=r?(n=r,a=r+s):d>=o?(n=o-s,a=o):(n=l,a=d),n=j(n),a=j(a),G([n,a]),x([n,a])}},re=l.useThrottledCallback((function(e){ae(e.clientX,e.clientY)})),oe=l.useThrottledCallback((function(){D.current=null,X(!1)})),le=l.useThrottledCallback((function(e){ae(e.touches[0].pageX,e.touches[0].pageY)})),de=l.useThrottledCallback((function(){D.current=null,X(!1)})),se=l.useThrottledCallback((function(e){G([e,U]),x([e,U]),H()})),ue=l.useThrottledCallback((function(e){G([Z,e]),x([Z,e]),H()})),he=i.useMemo((function(){return(U-Z)/(o-r)*(S?q.height:q.width)<30}),[r,o,Z,U]),ce=i.useMemo((function(){return(U-Z)/(o-r)*(S?q.height:q.width)<c.INNER_GAP}),[r,o,Z,U]),me=function(e,t){return e/t*(S?q.height:q.width)},fe=i.useMemo((function(){var e=E?c.HORIZONTAL_MIN_GAP:c.VERTICAL_MIN_GAP;return A?{isRightArrowInvisible:me(Z,o)<c.MIN_ARROW_GAP,isLeftArrowInvisible:me(o-U,o)<c.MIN_ARROW_GAP,distance:(U-Z)/(o-r)*(S?q.height:q.width)-e}:{isRightArrowInvisible:me(o-U,o)<c.MIN_ARROW_GAP,isLeftArrowInvisible:me(Z,o)<c.MIN_ARROW_GAP,distance:(U-Z)/(o-r)*(S?q.height:q.width)-e}}),[r,o,Z,U,A]),ve=function(e){var t={min:r,max:U,value:Z,onChange:se},i={min:Z,max:o,value:U,onChange:ue};return"head"===e?m.jsx(d.Handle,y({"data-testid":"".concat(w,"_handle_top"),placement:"head",dimension:P,readOnly:!R,isInsideArrowsVisible:ce,arrowsOutsideConfig:fe,displayFormatter:I,orientation:O,classes:T,minimal:_},A?i:t)):"tail"===e?m.jsx(d.Handle,y({"data-testid":"".concat(w,"_handle_bottom"),placement:"tail",dimension:P,readOnly:!R,isInsideArrowsVisible:ce,arrowsOutsideConfig:fe,displayFormatter:I,orientation:O,classes:T,minimal:_},A?t:i)):null};return m.jsx("div",{className:b.default(M.rootWrapper,M["".concat(O,"-").concat(P)],p.default({},M.rootMinimal,_)),children:m.jsxs("div",{className:b.default(M.root,(t={},p.default(t,M.horizontalRoot,E),p.default(t,M.verticalRoot,S),p.default(t,M.minimal,_),t)),children:[m.jsx(n.Resizable,{className:M.resizable,ref:z,minHeight:0,minWidth:0,maxWidth:A?Q:K,maxHeight:A?ee:$,enable:{right:E,bottom:S},handleComponent:{right:ve("head"),bottom:ve("head")},onResize:te,onResizeStop:ie}),m.jsx("div",{className:M.body,"data-testid":"slider-body",onMouseDown:function(e){ne(e.clientX,e.clientY),X(!0)},onTouchStart:function(e){ne(e.touches[0].pageX,e.touches[0].pageY),X(!0)},children:he?m.jsx("div",{className:b.default((a={},p.default(a,M.horizontalBodyHandle,E),p.default(a,M.verticalBodyHandle,S),p.default(a,M.leftBodyHandle,"left"===N),p.default(a,M.rightBodyHandle,"right"===N),p.default(a,M.topBodyHandle,"top"===N),p.default(a,M.bottomBodyHandle,"bottom"===N),a)),children:m.jsx("div",{className:M.bodyHandle,"data-testid":"".concat(w,"_handle"),children:m.jsx(s.HandleIcon,{orientation:"vertical",minimal:_})})}):m.jsx("div",{className:M.bodyHandleIcon,"data-testid":"".concat(w,"_handle"),children:m.jsx(s.HandleIcon,{orientation:O,minimal:_})})}),m.jsx(n.Resizable,{className:M.resizable,ref:C,minHeight:0,minWidth:0,enable:{left:E,top:S},handleComponent:{left:ve("tail"),top:ve("tail")},onResize:te,onResizeStop:ie})]})})};O.defaultProps={orientation:c.HORIZONTAL_ORIENTATION,valueFormatter:Math.floor,displayFormatter:function(e){return e},onChange:o.noop,onStop:o.noop,reversed:!1,editableHandles:!0,handleClasses:{},minimal:!1,dimension:"small"};var j=a.withSize({monitorWidth:!0,monitorHeight:!0})(O);exports.AdvancedSlider=O,exports.default=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),i=require("@babel/runtime/helpers/slicedToArray"),s=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),i=require("@babel/runtime/helpers/slicedToArray"),s=require("react"),r=require("@material-ui/core"),t=require("classnames"),a=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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("./styles/sliderStyles.js");var n=require("./styles/handleStyles.js"),l=require("./utils.js"),o=require("./constants.js"),u=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(e),f=d(i),m=d(t);exports.Handle=function(e){var i,t,d,I,v=e.value,R=e.orientation,h=e.placement,A=e.dimension,H=e.readOnly,j=e.onChange,q=e.min,E=e.max,p=e.displayFormatter,O=e.isInsideArrowsVisible,_=e.arrowsOutsideConfig,N=e.classes,T=e.minimal,b=e["data-testid"],g=s.useState(!1),y=f.default(g,2),w=y[0],V=y[1],x=s.useState(v),C=f.default(x,2),S=C[0],L=C[1],z=s.useRef(null),D=R===o.HORIZONTAL_ORIENTATION,M=R===o.VERTICAL_ORIENTATION,P=h===o.HEAD_PLACEMENT,F=n.useHandleStyles({distance:null==_?void 0:_.distance,minimal:T,hoverAreaHeight:D?o.HOVER_ARREA_WIDTH_BY_DIMENSION[A]:o.HOVER_ARREA_HEIGHT,hoverAreaWidth:D?o.HOVER_ARREA_HEIGHT:o.HOVER_ARREA_WIDTH_BY_DIMENSION[A]}),W=function(e){if(!H){var i=Number(e);l.getIsInputValueValid(i)?j(l.getValidatedValue(i,q,E)):V(!0)}};return s.useEffect((function(){L(v),w&&V(!1)}),[v]),u.jsxs("div",{className:m.default(F.root,N.handleRoot,F[A],(i={},c.default(i,F.horizontalHeadRoot,D&&P),c.default(i,F.horizontalTailRoot,D&&!P),c.default(i,F.verticalHeadRoot,M&&P),c.default(i,F.verticalTailRoot,M&&!P),c.default(i,F.minimalHandleRoot,T),i)),children:[u.jsx(a.LeftIcon,{size:16,className:m.default(F.leftArrow,(t={},c.default(t,F.reversedLeftArrow,M),c.default(t,F.isInvisible,O&&!P||P&&(null==_?void 0:_.isLeftArrowInvisible)),t)),fill:"white"}),u.jsx("div",{className:m.default(F.handle,N.handle,(d={},c.default(d,F.horizontalHeadHandle,D&&P),c.default(d,F.horizontalTailHandle,D&&!P),c.default(d,F.verticalHeadHandle,M&&P),c.default(d,F.verticalTailHandle,M&&!P),c.default(d,F.minimalHandle,T),c.default(d,F.minimalVerticalHandle,T&&M),d)),"data-testid":b,children:!T&&u.jsx(r.Input,{inputProps:{"data-testid":"handle-input"},readOnly:H,inputRef:z,onKeyDown:function(e){var i=e.keyCode,s=e.target;13===i&&W(s.value)},onBlur:function(e){var i=e.target;W(i.value)},classes:{root:m.default(F.inputRoot,w&&F.hasError)},value:H?p(S):S,onChange:function(e){var i=e.target.value;L(i),w&&V(!1)},disableUnderline:!0,error:!(Number.isFinite(+S)&&+S>=q&&+S<=E)})}),u.jsx(a.RightIcon,{size:16,className:m.default(F.rightArrow,(I={},c.default(I,F.reversedRightArrow,M),c.default(I,F.isInvisible,O&&P||!P&&(null==_?void 0:_.isRightArrowInvisible)),I)),fill:"white"})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.HEAD_PLACEMENT="head",exports.HORIZONTAL_MIN_GAP=48,exports.HORIZONTAL_ORIENTATION="horizontal",exports.
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@babel/runtime/helpers/defineProperty"),t=require("@material-ui/core"),e=require("../
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";var r=require('./../../../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),e=require("react"),o=require("@material-ui/core");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(require("classnames")),i=o.makeStyles((function(r){return{dangerPrimary:{color:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),l=e.forwardRef((function(e,t){var l=e.classes,c=void 0===l?{}:l,
|
|
1
|
+
"use strict";var r=require('./../../../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),e=require("react"),o=require("@material-ui/core");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(require("classnames")),i=o.makeStyles((function(r){return{label:{whiteSpace:"nowrap"},dangerPrimary:{color:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),l=e.forwardRef((function(e,t){var l=e.classes,c=void 0===l?{}:l,d=e.variation,s=r.__rest(e,["classes","variation"]),u=i(),b=r.__assign(r.__assign({},c),{root:n.default(null==u?void 0:u[d],c.root),label:n.default(null==u?void 0:u.label,c.label),disabled:n.default(null==u?void 0:u["".concat(d,"Disabled")],c.disabled)}),p=r.__assign(r.__assign(r.__assign({classes:b},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(e.variation)),s),{ref:t});return a.jsx(o.Button,r.__assign({"data-testid":"Button_".concat(e.children)},p))}));l.defaultProps={variation:"default"};var c=e.memo(l);module.exports=c;
|
|
@@ -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"),r=require("@material-ui/core/styles"),a=require("../../constants.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(i),n=r.makeStyles((function(e){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:
|
|
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"),r=require("@material-ui/core/styles"),a=require("../../constants.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(i),n=r.makeStyles((function(e){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:8,position:"relative",transform:"translateX(-50%) translateY(-50%)",width:8,height:8,"&:before":{content:'""',position:"relative",display:"block",width:"150%",height:"150%",boxSizing:"border-box",marginTop:"-2px",marginLeft:"-2px",borderRadius:"45px",backgroundColor:e.palette.success.bright,animation:"$pulseRing 3.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite"},"&:after":{content:'""',position:"absolute",left:0,top:0,display:"block",width:"100%",height:"100%",backgroundColor:e.palette.success.bright,borderRadius:"15px",boxShadow:"0 0 8px rgba(0,0,0,.3)",animation:"$pulseDot 3.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite"}},"@keyframes pulseRing":{"0%":{opacity:0,transform:"scale(.55)"},"50%":{opacity:.5},"100%":{opacity:0}},"@keyframes pulseDot":{"0%":{transform:"scale(.6)",opacity:.5},"50%":{transform:"scale(.7)",opacity:1},"100%":{transform:"scale(.6)",opacity:.5}}}})),l=s.default.memo((function(i){var r=i.state,o=n();return r===a.LiveButtonState.Default?null:r===a.LiveButtonState.Live?t.jsx("div",{className:o.livePulsed,"aria-label":"Live indicator"}):t.jsxs("svg",e.__assign({className:o.offline,fill:"none",height:"8",viewBox:"0 0 8 8",width:"8",xmlns:"http://www.w3.org/2000/svg","aria-label":"Idle indicator"},{children:[t.jsx("circle",{opacity:"0.4",cx:"4",cy:"4",r:"4",fill:"#616161"}),t.jsx("circle",{cx:"4",cy:"4",r:"2",fill:"#616161"})]}))}));exports.LiveButtonStateIndicator=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("react"),
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("react"),t=require("@material-ui/core"),n=require("chroma-js"),i=require("classnames"),s=require("./PaletteChromePicker/PaletteChromePicker.js"),a=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var c=require("./ColorPicketUtils.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(n),d=l(i),g={rgba:function(e){return"rgba(".concat(e.rgb.r,", ").concat(e.rgb.g,", ").concat(e.rgb.b,", ").concat(e.rgb.a,")")},rgb:function(e){return"rgb(".concat(e.rgb.r,", ").concat(e.rgb.g,", ").concat(e.rgb.b,")")},hex:function(e){return e.hex},rgba_rgb:function(e){return 1===e.rgb.a?g.rgb(e):g.rgba(e)},rgba_hex:function(e){return 1===e.rgb.a?g.hex(e):g.rgba(e)}},p=t.makeStyles({root:{position:"relative",display:"flex"},topLabelRoot:{flexDirection:"column"},rightLabelRoot:{flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"},button:{width:"36px",height:"24px",boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.161)",borderRadius:"5px",fontSize:"1rem"},buttonTransparent:{position:"relative",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"3px",background:"#FF0000",transform:"rotate(148deg)",borderRadius:"2px"}},colorLensIcon:{position:"relative",zIndex:2},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}});module.exports=function(n){var i,l,b,h=n.label,f=void 0===h?"Color":h,m=n.value,x=n.converter,v=void 0===x?"rgba_hex":x,j=n.onChange,q=n.buttonClassName,C=n.popoverAnchorOrigin,I=void 0===C?{vertical:"bottom",horizontal:"left"}:C,k=n.popoverTransformOrigin,P=void 0===k?{vertical:"top",horizontal:"left"}:k,_=n.labelPosition,L=void 0===_?"top":_,S=n.hideLabel,z=void 0!==S&&S,B=n.pickerComponent,R=void 0===B?s:B,y=n.lensColor,T=n.enableTransparencyPalette,O=void 0!==T&&T,w=n["data-testid"],D=void 0===w?"ColorPicker":w,E=n.tooltipProps,N=void 0===E?{title:"Change color",children:null}:E,F=p(),A=r.useState(null),M=A[0],V=A[1],G=r.useState((function(){return c.getValidColor(m)||"#03BCD4"})),H=G[0],U=G[1],W=r.useRef(),J=r.useState(null),K=J[0],Q=J[1],X=y||c.getButtonStrokeColor(K,m);r.useEffect((function(){var e=c.getValidColor(m);e?U(e):console.error("The color value(".concat(m,") is not valid, please check it."))}),[m]);return o.jsxs("div",e.__assign({className:d.default(F.root,(i={},i[F.topLabelRoot]="top"===L,i[F.rightLabelRoot]="right"===L,i)),ref:function(e){return Q(c.findParentBackground(e))}},{children:[!z&&o.jsx(t.InputLabel,e.__assign({className:d.default((l={},l[F.topLabel]="top"===L,l[F.rightLabel]="right"===L,l)),shrink:!0},{children:f})),o.jsx(t.Tooltip,e.__assign({title:N.title},N,{children:o.jsx(t.IconButton,e.__assign({"data-testid":"".concat(D,"_icon_").concat(f),className:d.default(F.button,q,(b={},b[F.buttonTransparent]=0===u.default(H).alpha(),b)),disableRipple:!0,style:{backgroundColor:H,color:X},onClick:function(e){V(e.currentTarget)},size:"small"},{children:o.jsx(a.PaletteIcon,{size:16,className:F.colorLensIcon})}))})),o.jsx(t.Popover,e.__assign({id:"colors-popper",action:W,open:Boolean(M),anchorEl:M,onClose:function(){V(null)},anchorOrigin:I,transformOrigin:P},{children:o.jsx(R,{color:H,onChange:function(e){var o=g[v](e);U(o),j(o)},onSizeChange:function(){W.current&&W.current.updatePosition()},enableTransparencyPalette:O})}))]}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chroma-js"),r=require("validate-color");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),n=t(r);exports.findParentBackground=function(e){for(var r=e;r;){var t=getComputedStyle(r).backgroundColor;if(t&&"transparent"!==t&&"rgba(0, 0, 0, 0)"!==t)return t;r=r.parentElement}},exports.getButtonStrokeColor=function(e,r){if(!r)return"#fff";var t=a.default(r),n=Number(a.default(t).alpha());return 0===n||a.default.mix(e||"#414141",t.alpha(1),n).luminance()>.7?"#00000060":"#fff"},exports.getValidColor=function(e){var r=null==e?void 0:e.trim();return r&&n.default(r)?r:null};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),i=require("@material-ui/core"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),i=require("@material-ui/core"),s=require("lodash"),t=require("react"),a=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var o=require("../IconButton/index.js"),r=require("../GradientPicker/GradientPicker.js"),d=require("./configuration/constants.js"),l=require("./GradientList.js"),c=require("./GradientSelect.js"),u=require("./GradientManager.styles.js");exports.GradientManager=function(g){var m,p=g.gradientId,_=g.onGradientEditStateChange,v=void 0===_?s.noop:_,j=g.onChange,I=void 0===j?s.noop:j,x=g.defaultGradients,f=void 0===x?d.DEFAULT_GRADIENTS:x,S=g.defaultGradientStops,G=void 0===S?d.DEFAULT_GRADIENT_STOPS:S,h=g.allowNoname,q=g.scaleOptions,E=void 0===q?{scaleFrom:0,scaleTo:100}:q,b=g.className,C=u.useStyles(),y=new l.GradientList(g.gradients||[],f,g.onGradientsChange),N=t.useState(null),T=N[0],D=N[1],P=g.disableGradientsManagement||!g.onGradientsChange,k=y.getHelperText({name:null==T?void 0:T.name,allowNoname:h,gradientId:p});t.useEffect((function(){v(Boolean(T))}),[Boolean(T)]);var A=(null===(m=y.getById(p))||void 0===m?void 0:m.gradientStops)||g.gradientStops||G,F=function(){if(s.isEmpty(k)){var e=T.gradientStops,n=s.trim(T.name);if(D(null),n){if(y.getById(T.id||p))return y.update(p,{gradientStops:e,name:n}),void I({gradientId:p,gradientStops:e});var i=y.add(n,e);I({gradientId:null==i?void 0:i.id,gradientStops:e})}else h&&I({gradientStops:e,gradientId:null})}},M=function(e){e===p&&(I({gradientId:null,gradientStops:A}),D(null)),y.remove(e)},B=function(n){var i=n.trimStart().substring(0,d.GRADIENT_MAX_NAME_LENGTH);D(e.__assign(e.__assign({},T),{name:i}))};return n.jsxs(i.Grid,e.__assign({container:!0,className:b},{children:[n.jsx(i.Grid,e.__assign({item:!0,xs:6},{children:T?n.jsx(i.TextField,e.__assign({InputLabelProps:{shrink:!0},className:C.customGradientName,label:"Gradient Name",value:T.name,onChange:function(e){return B(e.target.value)},onFocus:function(e){e.target.select()},onKeyDown:function(e){var n;if("Enter"===e.key){var i=null===(n=e.target)||void 0===n?void 0:n.value;i&&(B(i),F())}},autoFocus:!0,fullWidth:!0},k)):n.jsx(c.GradientSelect,{value:p,gradients:g.gradients||[],onChange:function(e){var n,i=y.getById(e);I({gradientId:e,gradientStops:null!==(n=null==i?void 0:i.gradientStops)&&void 0!==n?n:G})},defaultGradients:f,onAction:function(e,n){switch(e){case"add":D({name:"",gradientStops:G,id:d.TEMP_GRADIENT_ID});break;case"delete":M(n)}},readonly:P})})),n.jsx(i.Grid,e.__assign({item:!0,xs:6},{children:n.jsx(i.Box,e.__assign({display:"flex",alignItems:"center",height:"100%"},{children:n.jsx(i.Box,e.__assign({display:"flex",paddingLeft:1},{children:T?n.jsxs(n.Fragment,{children:[n.jsx(o,e.__assign({"data-testid":"save-gradient-btn",onClick:F,tooltipProps:{title:"Save"},disabled:!!k||P},{children:n.jsx(a.CheckSmallIcon,{})})),n.jsx(o,e.__assign({"data-testid":"cancel-edit-btn",onClick:function(){D(null)},tooltipProps:{title:"Cancel"}},{children:n.jsx(a.CloseSmallIcon,{})}))]}):n.jsxs(n.Fragment,{children:[n.jsx(o,e.__assign({"data-testid":"edit-gradient-btn",onClick:function(){var e;y.isDefault(p)?D({name:y.newName(),gradientStops:A,id:d.TEMP_GRADIENT_ID}):D({name:(null===(e=y.getById(p))||void 0===e?void 0:e.name)||"",gradientStops:A})},tooltipProps:{title:"Edit"},disabled:P},{children:n.jsx(a.WriteIcon,{})})),!!y.getById(p)&&!y.isDefault(p)&&n.jsx(o,e.__assign({"data-testid":"delete-gradient-btn",onClick:function(){return M(p)},tooltipProps:{title:"Remove"},disabled:P},{children:n.jsx(a.DeleteFourIcon,{})}))]})}))}))})),n.jsx(i.Grid,e.__assign({item:!0,xs:12},{children:n.jsx(r.GradientPicker,{from:null==E?void 0:E.scaleFrom,to:null==E?void 0:E.scaleTo,unit:null==E?void 0:E.scaleUnit,noScale:!0,gradientStops:(null==T?void 0:T.gradientStops)||A,onChange:function(n){D(e.__assign(e.__assign({},T),{gradientStops:n}))},readonly:!T,isMoveInputVisible:!0})}))]}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),r=require("@material-ui/core"),i=require("@material-ui/icons/AddCircle"),n=require("react"),t=require("classnames"),a=require("lodash"),o=require("./GradientPreview/GradientPreview.js"),c=require("../Select/index.js"),u=require("../IconButton/index.js"),d=require("./GradientSelect.styles.js"),l=require("../../icons/iconParkIcons.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var j=m(i),p=m(t);exports.GradientSelect=function(i){var t=i.value,m=i.gradients,q=i.onChange,v=i.defaultGradients,g=i.onAction,f=i.readonly,h=d.useStyles(),I=n.useState(!1),x=I[0],_=I[1],G=function(e){var s,r;if(e.stopPropagation(),!f){var i=null===(r=null===(s=e.currentTarget.closest("li"))||void 0===s?void 0:s.dataset)||void 0===r?void 0:r.value;t===i&&_(!1),g("delete",i)}},b=a.isEmpty(m)&&f;return s.jsxs(c,e.__assign({"data-testid":"gradient-select",label:"Gradients",value:t||"",className:h.select,onChange:function(e){var s=e.target;s.value&&q(s.value)},open:x,onClose:function(){return _(!1)},onOpen:function(){return _(!0)},inputProps:{name:"gradientId",id:"gradientId"},FormControlProps:{fullWidth:!0},fullWidth:!0,defaultValue:"",InputLabelProps:{shrink:!0}},{children:[s.jsx(r.ListSubheader,e.__assign({className:h.listHeader},{children:"Gradients"})),!b&&s.jsxs(r.ListSubheader,e.__assign({className:h.subHeader},{children:["My Gradients",!f&&s.jsx(u,e.__assign({color:"primary","data-testid":"add-gradient-btn",className:h.addButton,onClick:function(){return g("add")},tooltipProps:{title:"Create Custom Gradient"}},{children:s.jsx(j.default,{color:"primary"})}))]})),m.map((function(i){var n=i.id,t=i.name,a=i.gradientStops;return s.jsxs(r.MenuItem,e.__assign({value:n,className:h.customGradientListItem},{children:[s.jsx(o.GradientPreview,{gradientStops:a}),s.jsx("span",{children:t}),s.jsx(u,e.__assign({className:p.default({disabled:f}),onClick:G,tooltipProps:{title:"Remove Gradient"},size:"medium"},{children:s.jsx(l.DeleteFourIcon,{})}))]}),n)})),!a.isEmpty(v)&&s.jsx(r.ListSubheader,e.__assign({className:h.subHeader},{children:"Default Gradients"})),v.map((function(i){var n=i.id,t=i.name,a=i.gradientStops;return s.jsxs(r.MenuItem,e.__assign({value:n,className:h.customGradientListItem},{children:[s.jsx(o.GradientPreview,{gradientStops:a}),s.jsx("span",{children:t})]}),n)}))]}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@material-ui/core").makeStyles((function(e){var t=e.palette;return{select:{"& > .MuiSelect-root":{display:"flex",gap:"8px",flexShrink:0,paddingRight:0
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@material-ui/core").makeStyles((function(e){var t=e.palette;return{select:{"& > .MuiSelect-root":{display:"flex",gap:"8px",flexShrink:0,paddingRight:0,"& > button":{display:"none"},"& > span":{paddingRight:16,overflow:"hidden",textOverflow:"ellipsis"}},width:"100%",marginBottom:20},customGradientListItem:{width:"320px",display:"flex",gap:8,"& > span":{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"& button":{visibility:"hidden"},"&:hover button":{visibility:"visible"},"&:hover button.disabled":{opacity:.3}},listHeader:{pointerEvents:"none",userSelect:"none",fontSize:"20px",fontStyle:"normal",fontWeight:400,color:t.common.white},subHeader:{pointerEvents:"none",userSelect:"none",fontSize:"10px",color:t.primary.text7,textTransform:"uppercase",display:"flex",alignItems:"center"},addButton:{pointerEvents:"all","&:hover":{background:"transparent"}}}}));exports.useStyles=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),t=require("react"),r=require("react-sizeme"),o=require("classnames"),i=require("react-draggable"),s=require("lodash"),a=require("tinygradient"),c=require("uuid"),u=require("@material-ui/core"),l=require("@material-ui/icons"),d=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var p=require("../ColorPicker/PaletteChromePicker/PaletteChromePicker.js"),m=require("./GradientPicker.utils.js"),g=require("../shared/useThrottledCallback.js"),f=require("../IconButton/index.js"),_=require("./GradientPicker.styles.js");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=v(o),j=v(i),x=v(a),y=r.withSize()((function(r){var o=r.size,i=r.from,a=void 0===i?0:i,v=r.to,y=void 0===v?100:v,q=r.unit,b=r.gradientStops,C=r.onChange,I=r.style,k=r.isMoveInputVisible,N=r.readonly,P=r.noScale,S=r["data-testid"],T=void 0===S?"GradientPicker":S,F=t.useRef(),M=t.useState([]),A=M[0],B=M[1],O=t.useState(null),z=O[0],E=O[1],G=t.useState(null),R=G[0],D=G[1],w=t.useState(null),L=w[0],V=w[1],W=_.useStyles({readonly:N}),H=Number.isFinite(a)?Number(a):0,K=Number.isFinite(y)?Number(y):100,X=K-H;t.useEffect((function(){var n=b.length!==(null==A?void 0:A.length)||b.some((function(e,n){return e.color!==A[n].color||e.pos!==A[n].pos}));n&&B(b.map((function(n){return e.__assign(e.__assign({},n),{id:c.v4()})})))}),[b]);var J=t.useMemo((function(){return m.calcGradientStyle(A)}),[A]),Q=t.useMemo((function(){var e;return null===(e=F.current)||void 0===e?void 0:e.clientWidth}),[o.width,F.current]),U=function(e){var n=s.sortBy(e,"pos");B(n),C&&C(n.map((function(e){return s.omit(e,"id")})))},Y=function(e){if(e.target===e.currentTarget){var n=e.currentTarget.getBoundingClientRect(),t=e.clientX-n.left;V(Number.isFinite(t)?t:null)}else V(null)},Z=g.useThrottledCallback((function(n,t,r,o){if(void 0===o&&(o=!1),!z){var i=t/Q*100,a=s.find(A,{id:n});if(r>=40||r<=-50)ee();else{var c=e.__assign(e.__assign({},a),{pos:i}),u=s.sortBy(e.__spreadArray(e.__spreadArray([],s.reject(A,{id:n}),!0),[c],!1),"pos");if(o)return U(u),void D(null);B(u),te||D(n)}}}),0),$=function(){U(A),D(null),E(null)},ee=function(){A.length>2&&(U(s.reject(A,{id:R})),E(null),D(null))},ne=!z&&Number.isFinite(L)&&!N,te=s.find(A,{id:R}),re=m.getRangeStep(X),oe=function(e){if(!e)return null;var n=H+(null==e?void 0:e.pos)/100*X;return m.roundToStep(n,re/100)}(te);return n.jsxs("div",e.__assign({className:W.root,style:I},{children:[!P&&n.jsxs("div",e.__assign({className:W.indicatorContainer},{children:[n.jsx("div",{children:n.jsxs(u.Typography,e.__assign({"data-testid":"".concat(T,"_from"),className:W.indicator},{children:[H," ",q]}))}),n.jsx("div",{children:n.jsxs(u.Typography,e.__assign({"data-testid":"".concat(T,"_to"),className:W.indicator},{children:[K," ",q]}))})]})),n.jsxs("div",e.__assign({onMouseEnter:Y,onMouseMove:Y,onMouseLeave:function(){return V(null)},onClick:function(n){var t=L/Q*100,r=x.default(A.map((function(e){return{color:e.color,pos:e.pos/100}}))),o="#".concat(r.rgbAt(t/100).toHex()),i={id:c.v4(),pos:t,color:o};U(e.__spreadArray(e.__spreadArray([],A,!0),[i],!1))},"data-testid":"".concat(T,"_track"),className:W.mainBar,style:{background:"linear-gradient(90deg, ".concat(J,")")},ref:F},{children:[ne&&n.jsx("div",e.__assign({"data-testid":"".concat(T,"_addCircle"),className:W.addCircle,style:{left:L-12}},{children:n.jsx(l.Add,{fontSize:"small",className:W.addIcon})})),!!Q&&A.map((function(t,r){var o,i=t.pos,s=t.color,a=t.id;return n.jsx(j.default,e.__assign({disabled:N,axis:"x",bounds:{left:-12,right:Q-12,top:-50,bottom:40},onDrag:function(e,n){return Z(a,n.x+12,n.y,!1)},onStop:function(e,n){return Z(a,n.x+12,n.y,!0)},position:{x:Q*i/100-12,y:-4}},{children:n.jsx("div",e.__assign({onClick:function(e){return function(e,n){e.stopPropagation(),N||R||(D(n),E(e.currentTarget))}(e,a)},"data-testid":"".concat(T,"_stop_").concat(r),className:h.default(W.circle,{highlight:R===a}),style:{backgroundColor:s}},{children:n.jsx(u.Tooltip,e.__assign({title:(o=i,m.getStopText(o,{fromValue:H,toValue:K})),placement:"top"},{children:n.jsx("div",{style:{height:"100%"}})}))}))}),a)}))]})),Boolean(z)&&n.jsxs(u.Popover,e.__assign({id:"colors-popper",open:Boolean(z),anchorEl:z,onClose:$,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[n.jsx(p,{color:null==te?void 0:te.color,onChange:function(n){var t=n.hex;B(A.map((function(n){return n.id===R?e.__assign(e.__assign({},n),{color:t}):n})))},onSizeChange:s.noop,enableTransparencyPalette:!1}),n.jsx(f,e.__assign({"data-testid":"".concat(T,"_stopDelete"),className:W.removeButton,onClick:ee},{children:n.jsx(d.DeleteFourIcon,{className:W.deleteIcon})})),k&&n.jsx(u.TextField,{"data-testid":"".concat(T,"_moveInput"),type:"number",variant:"outlined",value:oe,classes:{root:W.posTextfield},InputProps:{inputProps:{min:H,max:K,step:re,maxLength:10},classes:{root:W.posOutlinedRoot,input:W.posOutlinedInput}},autoFocus:!0,onFocus:function(e){return e.target.select()},onChange:function(n){if(""===n.target.value){var t=n.target;setTimeout((function(){return null==t?void 0:t.select()}))}var r=s.clamp(Number(n.target.value),H,K);r||n.target.select();var o=(r-H)/X*100;B(A.map((function(n){return n.id===R?e.__assign(e.__assign({},n),{pos:o}):n})))},onKeyDown:function(e){return"Enter"===e.key&&$()}})]}))]}))}));exports.GradientPicker=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),t=require("react"),r=require("react-sizeme"),o=require("classnames"),i=require("react-draggable"),s=require("lodash"),a=require("tinygradient"),c=require("uuid"),u=require("@material-ui/core"),l=require("@material-ui/icons"),d=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var p=require("../ColorPicker/PaletteChromePicker/PaletteChromePicker.js"),m=require("./GradientPicker.utils.js"),g=require("../shared/useThrottledCallback.js"),f=require("../IconButton/index.js"),_=require("./GradientPicker.styles.js");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=v(o),j=v(i),x=v(a),y=r.withSize()((function(r){var o=r.size,i=r.from,a=void 0===i?0:i,v=r.to,y=void 0===v?100:v,q=r.unit,b=r.gradientStops,C=r.onChange,I=r.style,k=r.isMoveInputVisible,N=r.readonly,P=r.noScale,S=r["data-testid"],T=void 0===S?"GradientPicker":S,F=t.useRef(),M=t.useState([]),A=M[0],B=M[1],O=t.useState(null),z=O[0],E=O[1],G=t.useState(null),R=G[0],D=G[1],w=t.useState(null),L=w[0],V=w[1],W=_.useStyles({readonly:N}),H=Number.isFinite(a)?Number(a):0,K=Number.isFinite(y)?Number(y):100,X=K-H;t.useEffect((function(){var n=b.length!==(null==A?void 0:A.length)||b.some((function(e,n){return e.color!==A[n].color||e.pos!==A[n].pos}));n&&B(b.map((function(n){return e.__assign(e.__assign({},n),{id:c.v4()})})))}),[b]);var J=t.useMemo((function(){return m.calcGradientStyle(A)}),[A]),Q=t.useMemo((function(){var e;return null===(e=F.current)||void 0===e?void 0:e.clientWidth}),[o.width,F.current]),U=function(e){var n=s.sortBy(e,"pos");B(n),C&&C(n.map((function(e){return s.omit(e,"id")})))},Y=function(e){if(e.target===e.currentTarget){var n=e.currentTarget.getBoundingClientRect(),t=e.clientX-n.left;V(Number.isFinite(t)?t:null)}else V(null)},Z=g.useThrottledCallback((function(n,t,r,o){if(void 0===o&&(o=!1),!z){var i=t/Q*100,a=s.find(A,{id:n});if(r>=40||r<=-50)ee();else{var c=e.__assign(e.__assign({},a),{pos:i}),u=s.sortBy(e.__spreadArray(e.__spreadArray([],s.reject(A,{id:n}),!0),[c],!1),"pos");if(o)return U(u),void D(null);B(u),te||D(n)}}}),0),$=function(){U(A),D(null),E(null)},ee=function(){A.length>2&&(U(s.reject(A,{id:R})),E(null),D(null))},ne=!z&&Number.isFinite(L)&&!N,te=s.find(A,{id:R}),re=m.getRangeStep(X),oe=function(e){if(!e)return null;var n=H+(null==e?void 0:e.pos)/100*X;return m.roundToStep(n,re/100)}(te);return n.jsxs("div",e.__assign({className:W.root,style:I},{children:[!P&&n.jsxs("div",e.__assign({className:W.indicatorContainer},{children:[n.jsx("div",{children:n.jsxs(u.Typography,e.__assign({"data-testid":"".concat(T,"_from"),className:W.indicator},{children:[H," ",q]}))}),n.jsx("div",{children:n.jsxs(u.Typography,e.__assign({"data-testid":"".concat(T,"_to"),className:W.indicator},{children:[K," ",q]}))})]})),n.jsxs("div",e.__assign({onMouseEnter:Y,onMouseMove:Y,onMouseLeave:function(){return V(null)},onClick:function(n){if(!N){var t=L/Q*100,r=x.default(A.map((function(e){return{color:e.color,pos:e.pos/100}}))),o="#".concat(r.rgbAt(t/100).toHex()),i={id:c.v4(),pos:t,color:o};U(e.__spreadArray(e.__spreadArray([],A,!0),[i],!1))}},"data-testid":"".concat(T,"_track"),className:W.mainBar,style:{background:"linear-gradient(90deg, ".concat(J,")")},ref:F},{children:[ne&&n.jsx("div",e.__assign({"data-testid":"".concat(T,"_addCircle"),className:W.addCircle,style:{left:L-12}},{children:n.jsx(l.Add,{fontSize:"small",className:W.addIcon})})),!!Q&&A.map((function(t,r){var o,i=t.pos,s=t.color,a=t.id;return n.jsx(j.default,e.__assign({disabled:N,axis:"x",bounds:{left:-12,right:Q-12,top:-50,bottom:40},onDrag:function(e,n){return Z(a,n.x+12,n.y,!1)},onStop:function(e,n){return Z(a,n.x+12,n.y,!0)},position:{x:Q*i/100-12,y:-4}},{children:n.jsx("div",e.__assign({onClick:function(e){return function(e,n){e.stopPropagation(),N||R||(D(n),E(e.currentTarget))}(e,a)},"data-testid":"".concat(T,"_stop_").concat(r),className:h.default(W.circle,{highlight:R===a}),style:{backgroundColor:s}},{children:n.jsx(u.Tooltip,e.__assign({title:(o=i,m.getStopText(o,{fromValue:H,toValue:K})),placement:"top"},{children:n.jsx("div",{style:{height:"100%"}})}))}))}),a)}))]})),Boolean(z)&&n.jsxs(u.Popover,e.__assign({id:"colors-popper",open:Boolean(z),anchorEl:z,onClose:$,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[n.jsx(p,{color:null==te?void 0:te.color,onChange:function(n){var t=n.hex;B(A.map((function(n){return n.id===R?e.__assign(e.__assign({},n),{color:t}):n})))},onSizeChange:s.noop,enableTransparencyPalette:!1}),n.jsx(f,e.__assign({"data-testid":"".concat(T,"_stopDelete"),className:W.removeButton,onClick:ee},{children:n.jsx(d.DeleteFourIcon,{className:W.deleteIcon})})),k&&n.jsx(u.TextField,{"data-testid":"".concat(T,"_moveInput"),type:"number",variant:"outlined",value:oe,classes:{root:W.posTextfield},InputProps:{inputProps:{min:H,max:K,step:re,maxLength:10},classes:{root:W.posOutlinedRoot,input:W.posOutlinedInput}},autoFocus:!0,onFocus:function(e){return e.target.select()},onChange:function(n){if(""===n.target.value){var t=n.target;setTimeout((function(){return null==t?void 0:t.select()}))}var r=s.clamp(Number(n.target.value),H,K);r||n.target.select();var o=(r-H)/X*100;B(A.map((function(n){return n.id===R?e.__assign(e.__assign({},n),{pos:o}):n})))},onKeyDown:function(e){return"Enter"===e.key&&$()}})]}))]}))}));exports.GradientPicker=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".CorvaModal_small__mNfAD{width:416px}.CorvaModal_medium__hZ6dU{width:552px}.CorvaModal_large__TDl42{width:768px}.CorvaModal_extraLarge__0TL4F{height:calc(100% - 32px);max-width:1152px;width:80%}.CorvaModal_modalWrapper__QCxRq{display:flex;height:100%;width:100%}.CorvaModal_modalContainer__rU-tZ{background-color:var(--palette-background-b-
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".CorvaModal_small__mNfAD{width:416px}.CorvaModal_medium__hZ6dU{width:552px}.CorvaModal_large__TDl42{width:768px}.CorvaModal_extraLarge__0TL4F{height:calc(100% - 32px);max-width:1152px;width:80%}.CorvaModal_modalWrapper__QCxRq{display:flex;height:100%;width:100%}.CorvaModal_modalContainer__rU-tZ{background-color:var(--palette-background-b-7);border-radius:8px;box-shadow:0 8px 24px 0 #0000003d;display:flex;flex-direction:column;margin:auto;max-height:calc(100% - 32px);max-width:80%;outline:none;overflow:hidden;position:relative}.CorvaModal_modalContainerMobile__B-NqD{max-height:calc(100% - 16px);max-width:calc(100% - 16px);min-height:calc(100% - 16px);min-width:calc(100% - 16px)}.CorvaModal_title__hXADg{align-items:center;background-color:var(--palette-background-b-7);border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 8px 10px var(--palette-background-b-7);display:flex;justify-content:space-between;line-height:28px;padding:40px 40px 0;width:100%;z-index:1}.CorvaModal_titleMobile__I5oX3{padding:12px 16px}.CorvaModal_titleText__JTkfo{color:#fff;font-size:20px}.CorvaModal_modalContent__Du0Oe{overflow-y:auto;padding:16px 40px}.CorvaModal_modalContentMobile__4bB1d{background-color:inherit;overflow-y:scroll;padding:16px}.CorvaModal_modalActions__KJ3N4{align-items:center;background:var(--palette-background-b-7);border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-shadow:0 -8px 10px var(--palette-background-b-7);display:flex;margin-top:auto;padding:16px 40px 40px;width:100%;z-index:1000}.CorvaModal_modalActionsMobile__1IQfD{padding:8px 16px}"),module.exports={small:"CorvaModal_small__mNfAD",medium:"CorvaModal_medium__hZ6dU",large:"CorvaModal_large__TDl42",extraLarge:"CorvaModal_extraLarge__0TL4F",modalWrapper:"CorvaModal_modalWrapper__QCxRq",modalContainer:"CorvaModal_modalContainer__rU-tZ",modalContainerMobile:"CorvaModal_modalContainerMobile__B-NqD",title:"CorvaModal_title__hXADg",titleMobile:"CorvaModal_titleMobile__I5oX3",titleText:"CorvaModal_titleText__JTkfo",modalContent:"CorvaModal_modalContent__Du0Oe",modalContentMobile:"CorvaModal_modalContentMobile__4bB1d",modalActions:"CorvaModal_modalActions__KJ3N4",modalActionsMobile:"CorvaModal_modalActionsMobile__1IQfD"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("@material-ui/core"),e=require("classnames"),a=require("prop-types");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=i(e),n=i(a),p=r.makeStyles((function(t){return{root:{"& .MuiTab-root":{minHeight:40,paddingLeft:16,paddingRight:16,minWidth:0,fontSize:16,marginRight:8,"&.Mui-disabled":{opacity:.4,color:t.palette.primary.text6}}},rootCompact:{height:32,minHeight:"32px !important","& .MuiTab-root":{minWidth:0,fontSize:16,padding:"6px 10px",height:32,minHeight:"32px !important"}},root_filled:{minHeight:40,backgroundColor:t.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:t.palette.primary.text6,"&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:t.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main,backgroundColor:"transparent"}},"&:hover":{
|
|
1
|
+
"use strict";var t=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("@material-ui/core"),e=require("classnames"),a=require("prop-types");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=i(e),n=i(a),p=r.makeStyles((function(t){return{root:{"& .MuiTab-root":{minHeight:40,paddingLeft:16,paddingRight:16,borderRadius:8,minWidth:0,fontSize:16,marginRight:8,"&.Mui-disabled":{opacity:.4,color:t.palette.primary.text6}},"& .MuiTab-wrapper":{flexDirection:"row",justifyContent:"initial"},"& .MuiTab-wrapper > .i-icon":{marginBottom:"0px !important",marginRight:8},"&.MuiTabs-vertical":{"& .MuiTab-root":{marginRight:0,minHeight:"unset","&:not(:last-child)":{marginBottom:8}}}},rootCompact:{height:32,minHeight:"32px !important","& .MuiTab-root":{minWidth:0,fontSize:16,padding:"6px 10px",height:32,minHeight:"32px !important"},"&.MuiTabs-vertical":{height:"unset",minHeight:"unset"},"& .MuiTab-wrapper > .i-icon, & .MuiTab-wrapper > .i-icon > svg":{width:20,height:20}},root_filled:{minHeight:40,backgroundColor:t.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:t.palette.primary.text6,"&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:t.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main,backgroundColor:"transparent"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"}}},root_filledTab:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,fontSize:16,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)","&:hover":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"},"&.Mui-disabled":{color:t.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:t.palette.background.b9,height:40,zIndex:1,"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:t.palette.primary.text6}}}})),c=function(e){var a,i,n,c=e.compact,s=e.type,d=t.__rest(e,["compact","type"]),u=p(),g=d.classes,b=d.TabIndicatorProps;return o.jsx(r.Tabs,t.__assign({},d,{classes:t.__assign(t.__assign({},g),{root:l.default(null==g?void 0:g.root,u.root,u["root_".concat(s)],(a={},a[u.rootCompact]=c,a)),scrollButtons:l.default(null==g?void 0:g.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:t.__assign(t.__assign({},b),{classes:{root:l.default(null===(n=null==b?void 0:b.classes)||void 0===n?void 0:n.root,u.tabIndicatorRoot,(i={},i[u.tabIndicatorFilledTab]="filledTab"===s,i))}})}))};c.propTypes={type:n.default.oneOf(["default","filled","filledTab"]),compact:n.default.bool},c.defaultProps={type:"default",compact:!1},module.exports=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i={MuiFab:{root:{width:40,height:40,
|
|
1
|
+
"use strict";var o=require("./palette.mjs.js").primary,i={MuiFab:{root:{width:40,height:40,borderRadius:8,boxShadow:"none !important",color:"#141414","&.Mui-disabled":{backgroundColor:o.main,color:"#141414",opacity:"0.4"}},primary:{color:"#141414","&:hover":{backgroundColor:o.light}},sizeSmall:{width:32,height:32,minHeight:32,"& .MuiSvgIcon-root":{fontSize:16}},sizeMedium:{width:36,height:36}}};module.exports=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core"),o=require("@material-ui/icons/Close"),i=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var t=require("./dateTimePickerThemeOverrides.js"),s=require("./accordionOverrides.js"),c=require("./buttonOverrides.js"),n=require("./checkboxOverrides.js"),u=require("./chipOverrides.js"),a=require("./fabOverrides.js"),p=require("./formControlLabelOverrides.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core/styles"),o=require("@material-ui/icons/Close"),i=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/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.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");var t=require("./dateTimePickerThemeOverrides.js"),s=require("./accordionOverrides.js"),c=require("./buttonOverrides.js"),n=require("./checkboxOverrides.js"),u=require("./chipOverrides.js"),a=require("./fabOverrides.js"),p=require("./formControlLabelOverrides.js"),l=require("./formGroupOverrides.js"),d=require("./palette.mjs.js"),m=require("./radioOverrides.js"),x=require("./tableOverrides.js"),j=require("./textFieldOverrides.js"),b=require("./tooltipOverrides.js"),h=require("./themeVariables.mjs.js"),g=require("./toggleButtonsGroupOverrides.js"),O=require("react/jsx-runtime");function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=q(e),y=q(o);function M(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,i)}return o}function v(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?M(Object(o),!0).forEach((function(r){f.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):M(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var k=d.primary,I=k.text7,T=k.text9,C={overrides:v(v(v(v(v(v(v(v(v(v(v(v(v({MuiPopover:{paper:{borderRadius:8,boxShadow:"0px 8px 24px 0px #0000003D"}},MuiSelect:{icon:{top:"calc(50% - 8px)"}},MuiMenu:{paper:{borderRadius:8,boxShadow:"0px 8px 24px 0px #0000003D",root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:d.background.b9,"&$selected":{backgroundColor:d.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:d.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:d.background.b9}},MuiSwitch:{switchBase:{color:I},track:{backgroundColor:T,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:d.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialog:{paper:{backgroundColor:"#333333"}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},s),c),n),u),t.dateTimePickerThemeOverrides),a),p),l),m),x),j),b),g)},D={MuiFab:{color:"primary"},MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:O.jsx(y.default,{})},MuiSelect:{IconComponent:function(e){return O.jsx(i.DownOneIcon,v({theme:"filled",fill:"#BDBDBD",size:16},e))}}},P=r.createMuiTheme(v(v(v({props:D},h.lightThemeVariables),C),{},{isLightTheme:!0})),w=r.createMuiTheme(v(v(v({props:D},h.darkThemeVariables),{},{palette:v(v({},h.darkThemeVariables.palette),{},{type:"dark"})},C),{},{isLightTheme:!1}));exports.darkTheme=w,exports.lightTheme=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=require("./palette.mjs.js"),t={MuiToggleButtonGroup:{root:{"&>:first-child":{borderRadius:"8px 0px 0px 8px"},"&>:last-child":{borderRadius:"0px 8px 8px 0px"},"& .MuiToggleButton-root":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px",backgroundColor:"rgba(255, 255, 255, 0.08)",marginRight:1,borderLeft:"none !important",borderRight:"none !important",borderTop:"none !important",borderBottom:"none !important",
|
|
1
|
+
"use strict";var o=require("./palette.mjs.js"),t={MuiToggleButtonGroup:{root:{"&>:first-child":{borderRadius:"8px 0px 0px 8px"},"&>:last-child":{borderRadius:"0px 8px 8px 0px"},"& .MuiToggleButton-root":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px",backgroundColor:"rgba(255, 255, 255, 0.08)",marginRight:1,borderLeft:"none !important",borderRight:"none !important",borderTop:"none !important",borderBottom:"none !important",color:o.primary.text6,"&:hover":{color:o.primary.contrastText,background:"rgba(255, 255, 255, 0.12)"}},"& .MuiToggleButton-root.Mui-selected":{backgroundColor:"rgba(3, 188, 212, 0.10)",color:o.primary.main,"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.10)",color:o.primary.main}},"& .MuiToggleButton-root.Mui-disabled":{color:o.primary.text6,opacity:.4,pointerEvents:"all",backgroundColor:"rgba(255, 255, 255, 0.08)","&:hover":{color:o.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)"},"&.Mui-selected":{color:o.primary.contrastText}},"& .MuiToggleButton-root.MuiToggleButton-sizeLarge":{height:40,minHeight:40,fontWeight:500,fontSize:18,padding:"11px 16px"},"& .MuiToggleButton-root.MuiToggleButton-sizeMedium":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px"},"& .MuiToggleButton-root.MuiToggleButton-sizeSmall":{height:32,minHeight:32,fontWeight:500,fontSize:16,padding:"8px 12px","& .i-icon, & .i-icon svg":{width:"20px !important",height:"20px !important"}},"& .MuiToggleButton-label":{textTransform:"none"}}}};module.exports=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../ext-esm/style-inject/dist/style-inject.es.js')("html{box-sizing:border-box}body,html{height:100%}body{background-color:#
|
|
1
|
+
"use strict";require('./../ext-esm/style-inject/dist/style-inject.es.js')("html{box-sizing:border-box}body,html{height:100%}body{background-color:#212121;color:#fff;font-family:Roboto,sans-serif;margin:0}*,:after,:before{box-sizing:inherit}a{color:#039be5;text-decoration:none}#root{height:100%}.ReactModal__Body--open{height:100%;overflow:hidden;position:fixed;width:100%}.highcharts-tooltip-container{z-index:501!important}.emoji-mart-dark,.emoji-mart-dark .emoji-mart-category-label span{background-color:#414141}.grecaptcha-badge{visibility:hidden}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSlider.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.js"],"names":[],"mappings":"AAyCO,
|
|
1
|
+
{"version":3,"file":"AdvancedSlider.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/AdvancedSlider.js"],"names":[],"mappings":"AAyCO,wDA2ZN;;;;;QAKmB,kDAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/defineProperty";import{useRef as i,useState as n,useEffect as o,useMemo as r}from"react";import{Resizable as a}from"re-resizable";import{withSize as l}from"react-sizeme";import d from"classnames";import{noop as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/defineProperty";import{useRef as i,useState as n,useEffect as o,useMemo as r}from"react";import{Resizable as a}from"re-resizable";import{withSize as l}from"react-sizeme";import d from"classnames";import{noop as s}from"lodash";import{useThrottledCallback as h}from"../shared/useThrottledCallback.js";import{Handle as c}from"./Handle.js";import{HandleIcon as m}from"./icons/HandleIcon.js";import{getSizedControls as u}from"./utils.js";import{useSliderStyles as f}from"./styles/sliderStyles.js";import"./styles/handleStyles.js";import{HORIZONTAL_ORIENTATION as p,INPUT_WIDTH as v,INPUT_HEIGHT as g,INNER_GAP as b,MIN_ARROW_GAP as w,VERTICAL_ORIENTATION as y,HORIZONTAL_MIN_GAP as O,VERTICAL_MIN_GAP as H}from"./constants.js";import{jsx as j,jsxs as z}from"react/jsx-runtime";function x(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function P(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?x(Object(n),!0).forEach((function(i){e(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S="twoValuesSliderDefault",M=function(l){var s,x,M=l.min,C=l.max,E=l.value,L=l.size,R=l.orientation,I=l.valueFormatter,N=l.displayFormatter,W=l.editableHandles,A=l.onChange,B=l.onStop,D=l.reversed,F=l.handlePosition,_=l.handleClasses,X=l.minimal,Y=l.dimension,T=f(),V=i(null),k=i(null),q=R===p,G=R===y,J=X?L:P(P({},L),{},{width:q?L.width-2*v:L.width,height:G?L.height-2*g:L.height}),K=n([I(null==E?void 0:E.at(0)),I(null==E?void 0:E.at(1))]),Q=t(K,2),U=Q[0],Z=Q[1],$=i(null),tt=n(!1),et=t(tt,2),it=et[0],nt=et[1],ot=t(U,2),rt=ot[0],at=ot[1],lt=u({isHorizontalOrientation:q,size:J,max:C,min:M,tail:at,head:rt}),dt=lt.headMaxWidth,st=lt.tailMaxWidth,ht=lt.headMaxHeight,ct=lt.tailMaxHeight;o((function(){if(!$.current){var t=[I(null==E?void 0:E.at(0)),I(null==E?void 0:E.at(1))],e=Math.min.apply(Math,t),i=Math.max.apply(Math,t);Z([e,i])}}),[null==E?void 0:E.at(0),null==E?void 0:E.at(1)]),o((function(){if(q){var t=J.width/(C-M)*(rt-M),e=J.width/(C-M)*(C-at);V.current.updateSize({width:D?e:t,height:J.height}),k.current.updateSize({width:D?t:e,height:J.height})}else if(G){var i=J.height/(C-M)*(rt-M),n=J.height/(C-M)*(C-at);V.current.updateSize({width:J.width,height:D?n:i}),k.current.updateSize({width:J.width,height:D?i:n})}}),[M,C,rt,at,J.width,J.height,R]),o((function(){var t=function(){document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",gt),document.removeEventListener("touchmove",bt),document.removeEventListener("touchend",wt)};return it?(document.addEventListener("mousemove",vt),document.addEventListener("mouseup",gt),document.addEventListener("touchmove",bt),document.addEventListener("touchend",wt)):(t(),B()),function(){t()}}),[it]);var mt=h((function(t,e,i){$.current="onResize Event";var n=i.clientWidth,o=i.clientHeight,r=rt,a=at;"right"===e?D?a=I(C-n/J.width*(C-M)):r=I(M+n/J.width*(C-M)):"left"===e?D?r=I(M+n/J.width*(C-M)):a=I(C-n/J.width*(C-M)):"bottom"===e?D?a=I(C-o/J.height*(C-M)):r=I(M+o/J.height*(C-M)):"top"===e&&(D?r=I(M+o/J.height*(C-M)):a=I(C-o/J.height*(C-M))),r=Math.min(r,at),a=Math.max(a,rt),Z([r,a]),A([r,a])})),ut=h((function(){$.current=null,B()})),ft=function(t,e){$.current={xPos:t,yPos:e,head:rt,tail:at}},pt=function(t,e){if($.current){var i;q?i=($.current.xPos-t)/J.width*(C-M):G&&(i=($.current.yPos-e)/J.height*(C-M));var n,o,r=$.current.head-i*(D?-1:1),a=$.current.tail-i*(D?-1:1),l=$.current.tail-$.current.head;r<=M?(n=M,o=M+l):a>=C?(n=C-l,o=C):(n=r,o=a),n=I(n),o=I(o),Z([n,o]),A([n,o])}},vt=h((function(t){pt(t.clientX,t.clientY)})),gt=h((function(){$.current=null,nt(!1)})),bt=h((function(t){pt(t.touches[0].pageX,t.touches[0].pageY)})),wt=h((function(){$.current=null,nt(!1)})),yt=h((function(t){Z([t,at]),A([t,at]),B()})),Ot=h((function(t){Z([rt,t]),A([rt,t]),B()})),Ht=r((function(){return(at-rt)/(C-M)*(G?J.height:J.width)<30}),[M,C,rt,at]),jt=r((function(){return(at-rt)/(C-M)*(G?J.height:J.width)<b}),[M,C,rt,at]),zt=function(t,e){return t/e*(G?J.height:J.width)},xt=r((function(){var t=q?O:H;return D?{isRightArrowInvisible:zt(rt,C)<w,isLeftArrowInvisible:zt(C-at,C)<w,distance:(at-rt)/(C-M)*(G?J.height:J.width)-t}:{isRightArrowInvisible:zt(C-at,C)<w,isLeftArrowInvisible:zt(rt,C)<w,distance:(at-rt)/(C-M)*(G?J.height:J.width)-t}}),[M,C,rt,at,D]),Pt=function(t){var e={min:M,max:at,value:rt,onChange:yt},i={min:rt,max:C,value:at,onChange:Ot};return"head"===t?j(c,P({"data-testid":"".concat(S,"_handle_top"),placement:"head",dimension:Y,readOnly:!W,isInsideArrowsVisible:jt,arrowsOutsideConfig:xt,displayFormatter:N,orientation:R,classes:_,minimal:X},D?i:e)):"tail"===t?j(c,P({"data-testid":"".concat(S,"_handle_bottom"),placement:"tail",dimension:Y,readOnly:!W,isInsideArrowsVisible:jt,arrowsOutsideConfig:xt,displayFormatter:N,orientation:R,classes:_,minimal:X},D?e:i)):null};return j("div",{className:d(T.rootWrapper,T["".concat(R,"-").concat(Y)],e({},T.rootMinimal,X)),children:z("div",{className:d(T.root,(s={},e(s,T.horizontalRoot,q),e(s,T.verticalRoot,G),e(s,T.minimal,X),s)),children:[j(a,{className:T.resizable,ref:V,minHeight:0,minWidth:0,maxWidth:D?st:dt,maxHeight:D?ct:ht,enable:{right:q,bottom:G},handleComponent:{right:Pt("head"),bottom:Pt("head")},onResize:mt,onResizeStop:ut}),j("div",{className:T.body,"data-testid":"slider-body",onMouseDown:function(t){ft(t.clientX,t.clientY),nt(!0)},onTouchStart:function(t){ft(t.touches[0].pageX,t.touches[0].pageY),nt(!0)},children:j("div",Ht?{className:d((x={},e(x,T.horizontalBodyHandle,q),e(x,T.verticalBodyHandle,G),e(x,T.leftBodyHandle,"left"===F),e(x,T.rightBodyHandle,"right"===F),e(x,T.topBodyHandle,"top"===F),e(x,T.bottomBodyHandle,"bottom"===F),x)),children:j("div",{className:T.bodyHandle,"data-testid":"".concat(S,"_handle"),children:j(m,{orientation:"vertical",minimal:X})})}:{className:T.bodyHandleIcon,"data-testid":"".concat(S,"_handle"),children:j(m,{orientation:R,minimal:X})})}),j(a,{className:T.resizable,ref:k,minHeight:0,minWidth:0,enable:{left:q,top:G},handleComponent:{left:Pt("tail"),top:Pt("tail")},onResize:mt,onResizeStop:ut})]})})};M.defaultProps={orientation:p,valueFormatter:Math.floor,displayFormatter:function(t){return t},onChange:s,onStop:s,reversed:!1,editableHandles:!0,handleClasses:{},minimal:!1,dimension:"small"};var C=l({monitorWidth:!0,monitorHeight:!0})(M);export{M as AdvancedSlider,C as default};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export function Handle({ value, orientation, placement, readOnly, onChange, min, max, displayFormatter, isInsideArrowsVisible, arrowsOutsideConfig, classes, minimal, "data-testid": dataTestId, }: {
|
|
1
|
+
export function Handle({ value, orientation, placement, dimension, readOnly, onChange, min, max, displayFormatter, isInsideArrowsVisible, arrowsOutsideConfig, classes, minimal, "data-testid": dataTestId, }: {
|
|
2
2
|
value: any;
|
|
3
3
|
orientation: any;
|
|
4
4
|
placement: any;
|
|
5
|
+
dimension: any;
|
|
5
6
|
readOnly: any;
|
|
6
7
|
onChange: any;
|
|
7
8
|
min: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Handle.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/Handle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Handle.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/Handle.js"],"names":[],"mappings":"AA0BO;;;;;;;;;;;;;;;gBAqIN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as e,useEffect as r}from"react";import{Input as n}from"@material-ui/core";import t from"classnames";import{LeftIcon as a,RightIcon as l}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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"./styles/sliderStyles.js";import{useHandleStyles as c}from"./styles/handleStyles.js";import{getIsInputValueValid as m,getValidatedValue as d}from"./utils.js";import{
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as e,useEffect as r}from"react";import{Input as n}from"@material-ui/core";import t from"classnames";import{LeftIcon as a,RightIcon as l}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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"./styles/sliderStyles.js";import{useHandleStyles as c}from"./styles/handleStyles.js";import{getIsInputValueValid as m,getValidatedValue as d}from"./utils.js";import{HOVER_ARREA_WIDTH_BY_DIMENSION as u,HOVER_ARREA_HEIGHT as p,HORIZONTAL_ORIENTATION as v,VERTICAL_ORIENTATION as h,HEAD_PLACEMENT as f}from"./constants.js";import{jsxs as j,jsx as I}from"react/jsx-runtime";var b=function(b){var A,H,g,w,y=b.value,R=b.orientation,z=b.placement,C=b.dimension,N=b.readOnly,O=b.onChange,T=b.min,x=b.max,E=b.displayFormatter,F=b.isInsideArrowsVisible,L=b.arrowsOutsideConfig,P=b.classes,S=b.minimal,k=b["data-testid"],q=s(!1),M=i(q,2),V=M[0],W=M[1],B=s(y),D=i(B,2),G=D[0],K=D[1],U=e(null),J=R===v,Q=R===h,X=z===f,Y=c({distance:null==L?void 0:L.distance,minimal:S,hoverAreaHeight:J?u[C]:p,hoverAreaWidth:J?p:u[C]}),Z=function(o){if(!N){var i=Number(o);m(i)?O(d(i,T,x)):W(!0)}};return r((function(){K(y),V&&W(!1)}),[y]),j("div",{className:t(Y.root,P.handleRoot,Y[C],(A={},o(A,Y.horizontalHeadRoot,J&&X),o(A,Y.horizontalTailRoot,J&&!X),o(A,Y.verticalHeadRoot,Q&&X),o(A,Y.verticalTailRoot,Q&&!X),o(A,Y.minimalHandleRoot,S),A)),children:[I(a,{size:16,className:t(Y.leftArrow,(H={},o(H,Y.reversedLeftArrow,Q),o(H,Y.isInvisible,F&&!X||X&&(null==L?void 0:L.isLeftArrowInvisible)),H)),fill:"white"}),I("div",{className:t(Y.handle,P.handle,(g={},o(g,Y.horizontalHeadHandle,J&&X),o(g,Y.horizontalTailHandle,J&&!X),o(g,Y.verticalHeadHandle,Q&&X),o(g,Y.verticalTailHandle,Q&&!X),o(g,Y.minimalHandle,S),o(g,Y.minimalVerticalHandle,S&&Q),g)),"data-testid":k,children:!S&&I(n,{inputProps:{"data-testid":"handle-input"},readOnly:N,inputRef:U,onKeyDown:function(o){var i=o.keyCode,s=o.target;13===i&&Z(s.value)},onBlur:function(o){var i=o.target;Z(i.value)},classes:{root:t(Y.inputRoot,V&&Y.hasError)},value:N?E(G):G,onChange:function(o){var i=o.target.value;K(i),V&&W(!1)},disableUnderline:!0,error:!(Number.isFinite(+G)&&+G>=T&&+G<=x)})}),I(l,{size:16,className:t(Y.rightArrow,(w={},o(w,Y.reversedRightArrow,Q),o(w,Y.isInvisible,F&&X||!X&&(null==L?void 0:L.isRightArrowInvisible)),w)),fill:"white"})]})};export{b as Handle};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export namespace chartOptions {
|
|
2
|
+
namespace chart {
|
|
3
|
+
const type: string;
|
|
4
|
+
const height: number;
|
|
5
|
+
const width: number;
|
|
6
|
+
const backgroundColor: string;
|
|
7
|
+
}
|
|
8
|
+
namespace title {
|
|
9
|
+
const text: any;
|
|
10
|
+
}
|
|
11
|
+
namespace credits {
|
|
12
|
+
const enabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
namespace xAxis {
|
|
15
|
+
const visible: boolean;
|
|
16
|
+
}
|
|
17
|
+
namespace yAxis {
|
|
18
|
+
const visible_1: boolean;
|
|
19
|
+
export { visible_1 as visible };
|
|
20
|
+
}
|
|
21
|
+
const series: {
|
|
22
|
+
name: string;
|
|
23
|
+
data: number[];
|
|
24
|
+
}[];
|
|
25
|
+
namespace legend {
|
|
26
|
+
const enabled_1: boolean;
|
|
27
|
+
export { enabled_1 as enabled };
|
|
28
|
+
}
|
|
29
|
+
namespace plotOptions {
|
|
30
|
+
export namespace series_1 {
|
|
31
|
+
namespace marker {
|
|
32
|
+
const enabled_2: boolean;
|
|
33
|
+
export { enabled_2 as enabled };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export { series_1 as series };
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=chartOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartOptions.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSlider/chartOptions.js"],"names":[],"mappings":""}
|
|
@@ -8,6 +8,13 @@ export const MIN_ARROW_GAP: 12;
|
|
|
8
8
|
export const INNER_GAP: 24;
|
|
9
9
|
export const VERTICAL_MIN_GAP: 90;
|
|
10
10
|
export const HORIZONTAL_MIN_GAP: 48;
|
|
11
|
-
export
|
|
12
|
-
|
|
11
|
+
export namespace DIMENSION {
|
|
12
|
+
const small: string;
|
|
13
|
+
const medium: string;
|
|
14
|
+
const large: string;
|
|
15
|
+
}
|
|
16
|
+
export const HOVER_ARREA_WIDTH_BY_DIMENSION: {
|
|
17
|
+
[x: string]: number;
|
|
18
|
+
};
|
|
19
|
+
export const HOVER_ARREA_HEIGHT: 40;
|
|
13
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;
|
|
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 +1 @@
|
|
|
1
|
-
var
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export const useHandleStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"handle" | "root" | "inputRoot" | "hasError" | "horizontalHeadRoot" | "horizontalTailRoot" | "verticalHeadRoot" | "verticalTailRoot" | "horizontalHeadHandle" | "horizontalTailHandle" | "verticalHeadHandle" | "verticalTailHandle" | "minimalHandle" | "minimalVerticalHandle" | "minimalHandleRoot" | "leftArrow" | "rightArrow" | "reversedLeftArrow" | "reversedRightArrow" | "isInvisible">;
|
|
1
|
+
export const useHandleStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"large" | "medium" | "handle" | "root" | "inputRoot" | "hasError" | "horizontalHeadRoot" | "horizontalTailRoot" | "verticalHeadRoot" | "verticalTailRoot" | "horizontalHeadHandle" | "horizontalTailHandle" | "verticalHeadHandle" | "verticalTailHandle" | "minimalHandle" | "minimalVerticalHandle" | "minimalHandleRoot" | "leftArrow" | "rightArrow" | "reversedLeftArrow" | "reversedRightArrow" | "isInvisible">;
|
|
2
2
|
//# sourceMappingURL=handleStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedSlider/styles/handleStyles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handleStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedSlider/styles/handleStyles.js"],"names":[],"mappings":"AAYA,ifA0OI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as t}from"@material-ui/core";import{
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/Button/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGzE,aAAK,SAAS,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/Button/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGzE,aAAK,SAAS,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;AAyDd,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;;AA4BD,wBAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as a}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,memo as e}from"react";import{makeStyles as n,Button as
|
|
1
|
+
import{__rest as r,__assign as a}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,memo as e}from"react";import{makeStyles as n,Button as l}from"@material-ui/core";import i from"classnames";var c=n((function(r){return{label:{whiteSpace:"nowrap"},dangerPrimary:{color:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),d=t((function(t,e){var n=t.classes,d=void 0===n?{}:n,s=t.variation,m=r(t,["classes","variation"]),p=c(),u=a(a({},d),{root:i(null==p?void 0:p[s],d.root),label:i(null==p?void 0:p.label,d.label),disabled:i(null==p?void 0:p["".concat(s,"Disabled")],d.disabled)}),b=a(a(a({classes:u},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),m),{ref:e});return o(l,a({"data-testid":"Button_".concat(t.children)},b))}));d.defaultProps={variation:"default"};var s=e(d);export{s as default};
|
package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as i}from'./../../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as t}from"react/jsx-runtime";import o from"react";import{makeStyles as r}from"@material-ui/core/styles";import{LiveButtonState as a}from"../../constants.js";var s=r((function(i){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:
|
|
1
|
+
import{__assign as i}from'./../../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as t}from"react/jsx-runtime";import o from"react";import{makeStyles as r}from"@material-ui/core/styles";import{LiveButtonState as a}from"../../constants.js";var s=r((function(i){return{offline:{marginLeft:4,position:"relative",top:-4},livePulsed:{marginLeft:8,position:"relative",transform:"translateX(-50%) translateY(-50%)",width:8,height:8,"&:before":{content:'""',position:"relative",display:"block",width:"150%",height:"150%",boxSizing:"border-box",marginTop:"-2px",marginLeft:"-2px",borderRadius:"45px",backgroundColor:i.palette.success.bright,animation:"$pulseRing 3.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite"},"&:after":{content:'""',position:"absolute",left:0,top:0,display:"block",width:"100%",height:"100%",backgroundColor:i.palette.success.bright,borderRadius:"15px",boxShadow:"0 0 8px rgba(0,0,0,.3)",animation:"$pulseDot 3.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite"}},"@keyframes pulseRing":{"0%":{opacity:0,transform:"scale(.55)"},"50%":{opacity:.5},"100%":{opacity:0}},"@keyframes pulseDot":{"0%":{transform:"scale(.6)",opacity:.5},"50%":{transform:"scale(.7)",opacity:1},"100%":{transform:"scale(.6)",opacity:.5}}}})),l=o.memo((function(o){var r=o.state,l=s();return r===a.Default?null:r===a.Live?e("div",{className:l.livePulsed,"aria-label":"Live indicator"}):t("svg",i({className:l.offline,fill:"none",height:"8",viewBox:"0 0 8 8",width:"8",xmlns:"http://www.w3.org/2000/svg","aria-label":"Idle indicator"},{children:[e("circle",{opacity:"0.4",cx:"4",cy:"4",r:"4",fill:"#616161"}),e("circle",{cx:"4",cy:"4",r:"2",fill:"#616161"})]}))}));export{l as LiveButtonStateIndicator};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
2
3
|
import { LiveButtonState, LiveButtonStateType } from './constants';
|
|
3
|
-
export interface LiveButtonProps {
|
|
4
|
+
export interface LiveButtonProps extends ButtonProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
lastActiveAt?: string;
|
|
@@ -9,7 +10,7 @@ export interface LiveButtonProps {
|
|
|
9
10
|
state?: LiveButtonStateType;
|
|
10
11
|
tooltipProps?: Record<string, any>;
|
|
11
12
|
}
|
|
12
|
-
export declare const getTooltipText: (state: LiveButtonStateType, lastActiveAt
|
|
13
|
+
export declare const getTooltipText: (state: LiveButtonStateType, lastActiveAt?: string) => JSX.Element | "Go to Live data" | "Data receiving in real-time";
|
|
13
14
|
export declare const LiveButton: React.FC<LiveButtonProps>;
|
|
14
15
|
export { LiveButtonState };
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/LiveButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/LiveButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAInE,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,cAAc,UAAW,mBAAmB,iBAAiB,MAAM,oEAW/E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyChD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAKL,aAAa,EACb,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAY3B,QAAA,MAAM,UAAU;;;;;;CAMf,CAAC;AA4DF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IACpC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,sBAAsB,CAAC,EAAE,aAAa,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAKL,aAAa,EACb,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAY3B,QAAA,MAAM,UAAU;;;;;;CAMf,CAAC;AA4DF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IACpC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,sBAAsB,CAAC,EAAE,aAAa,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAqGrC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as e,useEffect as i}from"react";import{makeStyles as c,InputLabel as a,Tooltip as s,IconButton as l,Popover as p}from"@material-ui/core";import
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as e,useEffect as i}from"react";import{makeStyles as c,InputLabel as a,Tooltip as s,IconButton as l,Popover as p}from"@material-ui/core";import u from"chroma-js";import m from"classnames";import b from"./PaletteChromePicker/PaletteChromePicker.js";import{PaletteIcon as d}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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{getValidColor as g,getButtonStrokeColor as h,findParentBackground as f}from"./ColorPicketUtils.js";var v={rgba:function(o){return"rgba(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,", ").concat(o.rgb.a,")")},rgb:function(o){return"rgb(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,")")},hex:function(o){return o.hex},rgba_rgb:function(o){return 1===o.rgb.a?v.rgb(o):v.rgba(o)},rgba_hex:function(o){return 1===o.rgb.a?v.hex(o):v.rgba(o)}},x=c({root:{position:"relative",display:"flex"},topLabelRoot:{flexDirection:"column"},rightLabelRoot:{flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"},button:{width:"36px",height:"24px",boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.161)",borderRadius:"5px",fontSize:"1rem"},buttonTransparent:{position:"relative",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"3px",background:"#FF0000",transform:"rotate(148deg)",borderRadius:"2px"}},colorLensIcon:{position:"relative",zIndex:2},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}}),C=function(c){var C,j,I,k=c.label,L=void 0===k?"Color":k,P=c.value,z=c.converter,S=void 0===z?"rgba_hex":z,R=c.onChange,O=c.buttonClassName,T=c.popoverAnchorOrigin,w=void 0===T?{vertical:"bottom",horizontal:"left"}:T,y=c.popoverTransformOrigin,B=void 0===y?{vertical:"top",horizontal:"left"}:y,D=c.labelPosition,_=void 0===D?"top":D,N=c.hideLabel,E=void 0!==N&&N,F=c.pickerComponent,A=void 0===F?b:F,q=c.lensColor,M=c.enableTransparencyPalette,G=void 0!==M&&M,H=c["data-testid"],U=void 0===H?"ColorPicker":H,W=c.tooltipProps,J=void 0===W?{title:"Change color",children:null}:W,K=x(),Q=n(null),V=Q[0],X=Q[1],Y=n((function(){return g(P)||"#03BCD4"})),Z=Y[0],$=Y[1],oo=e(),ro=n(null),to=ro[0],no=ro[1],eo=q||h(to,P);i((function(){var o=g(P);o?$(o):console.error("The color value(".concat(P,") is not valid, please check it."))}),[P]);return r("div",o({className:m(K.root,(C={},C[K.topLabelRoot]="top"===_,C[K.rightLabelRoot]="right"===_,C)),ref:function(o){return no(f(o))}},{children:[!E&&t(a,o({className:m((j={},j[K.topLabel]="top"===_,j[K.rightLabel]="right"===_,j)),shrink:!0},{children:L})),t(s,o({title:J.title},J,{children:t(l,o({"data-testid":"".concat(U,"_icon_").concat(L),className:m(K.button,O,(I={},I[K.buttonTransparent]=0===u(Z).alpha(),I)),disableRipple:!0,style:{backgroundColor:Z,color:eo},onClick:function(o){X(o.currentTarget)},size:"small"},{children:t(d,{size:16,className:K.colorLensIcon})}))})),t(p,o({id:"colors-popper",action:oo,open:Boolean(V),anchorEl:V,onClose:function(){X(null)},anchorOrigin:w,transformOrigin:B},{children:t(A,{color:Z,onChange:function(o){var r=v[S](o);$(r),R(r)},onSizeChange:function(){oo.current&&oo.current.updatePosition()},enableTransparencyPalette:G})}))]}))};export{C as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const findParentBackground: (el: HTMLElement | null) => string;
|
|
2
|
+
export declare const getButtonStrokeColor: (bgColor: string, buttonColor: string) => string;
|
|
3
|
+
export declare const getValidColor: (color: string) => string | null;
|
|
4
|
+
//# sourceMappingURL=ColorPicketUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicketUtils.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicketUtils.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB,OAAQ,WAAW,GAAG,IAAI,KAAG,MAS7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa,MAAM,eAAe,MAAM,KAAG,MAiB3E,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,MAAM,KAAG,MAAM,GAAG,IAMtD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"chroma-js";import n from"validate-color";var t=function(r){for(var n=r;n;){var t=getComputedStyle(n).backgroundColor;if(t&&"transparent"!==t&&"rgba(0, 0, 0, 0)"!==t)return t;n=n.parentElement}},a=function(n,t){if(!t)return"#fff";var a=r(t),o=Number(r(a).alpha());return 0===o||r.mix(n||"#414141",a.alpha(1),o).luminance()>.7?"#00000060":"#fff"},o=function(r){var t=null==r?void 0:r.trim();return t&&n(t)?t:null};export{t as findParentBackground,a as getButtonStrokeColor,o as getValidColor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicketUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ColorPicker/__tests__/ColorPicketUtils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientManager.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientManager.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"GradientManager.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientManager.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiQ1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import{Grid as o,TextField as a,Box as s}from"@material-ui/core";import{noop as r,isEmpty as d,trim as l}from"lodash";import{useState as c,useEffect as m}from"react";import{CheckSmallIcon as u,CloseSmallIcon as p,WriteIcon as g,DeleteFourIcon as f}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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 v from"../IconButton/index.js";import{GradientPicker as I}from"../GradientPicker/GradientPicker.js";import{DEFAULT_GRADIENTS as h,DEFAULT_GRADIENT_STOPS as S,TEMP_GRADIENT_ID as j,GRADIENT_MAX_NAME_LENGTH as b}from"./configuration/constants.js";import{GradientList as G}from"./GradientList.js";import{GradientSelect as C}from"./GradientSelect.js";import{useStyles as y}from"./GradientManager.styles.js";var k=function(k){var x,B=k.gradientId,N=k.onGradientEditStateChange,P=void 0===N?r:N,w=k.onChange,E=void 0===w?r:w,F=k.defaultGradients,M=void 0===F?h:F,L=k.defaultGradientStops,O=void 0===L?S:L,A=k.allowNoname,D=k.scaleOptions,T=void 0===D?{scaleFrom:0,scaleTo:100}:D,q=k.className,R=y(),W=new G(k.gradients||[],M,k.onGradientsChange),H=c(null),K=H[0],U=H[1],V=k.disableGradientsManagement||!k.onGradientsChange,_=W.getHelperText({name:null==K?void 0:K.name,allowNoname:A,gradientId:B});m((function(){P(Boolean(K))}),[Boolean(K)]);var z=(null===(x=W.getById(B))||void 0===x?void 0:x.gradientStops)||k.gradientStops||O,J=function(){if(d(_)){var n=K.gradientStops,t=l(K.name);if(U(null),t){if(W.getById(K.id||B))return W.update(B,{gradientStops:n,name:t}),void E({gradientId:B,gradientStops:n});var e=W.add(t,n);E({gradientId:null==e?void 0:e.id,gradientStops:n})}else A&&E({gradientStops:n,gradientId:null})}},Q=function(n){n===B&&(E({gradientId:null,gradientStops:z}),U(null)),W.remove(n)},X=function(t){var e=t.trimStart().substring(0,b);U(n(n({},K),{name:e}))};return t(o,n({container:!0,className:q},{children:[e(o,n({item:!0,xs:6},{children:K?e(a,n({InputLabelProps:{shrink:!0},className:R.customGradientName,label:"Gradient Name",value:K.name,onChange:function(n){return X(n.target.value)},onFocus:function(n){n.target.select()},onKeyDown:function(n){var t;if("Enter"===n.key){var e=null===(t=n.target)||void 0===t?void 0:t.value;e&&(X(e),J())}},autoFocus:!0,fullWidth:!0},_)):e(C,{value:B,gradients:k.gradients||[],onChange:function(n){var t,e=W.getById(n);E({gradientId:n,gradientStops:null!==(t=null==e?void 0:e.gradientStops)&&void 0!==t?t:O})},defaultGradients:M,onAction:function(n,t){switch(n){case"add":U({name:"",gradientStops:O,id:j});break;case"delete":Q(t)}},readonly:V})})),e(o,n({item:!0,xs:6},{children:e(s,n({display:"flex",alignItems:"center",height:"100%"},{children:e(s,n({display:"flex",paddingLeft:1},{children:t(i,K?{children:[e(v,n({"data-testid":"save-gradient-btn",onClick:J,tooltipProps:{title:"Save"},disabled:!!_||V},{children:e(u,{})})),e(v,n({"data-testid":"cancel-edit-btn",onClick:function(){U(null)},tooltipProps:{title:"Cancel"}},{children:e(p,{})}))]}:{children:[e(v,n({"data-testid":"edit-gradient-btn",onClick:function(){var n;W.isDefault(B)?U({name:W.newName(),gradientStops:z,id:j}):U({name:(null===(n=W.getById(B))||void 0===n?void 0:n.name)||"",gradientStops:z})},tooltipProps:{title:"Edit"},disabled:V},{children:e(g,{})})),!!W.getById(B)&&!W.isDefault(B)&&e(v,n({"data-testid":"delete-gradient-btn",onClick:function(){return Q(B)},tooltipProps:{title:"Remove"},disabled:V},{children:e(f,{})}))]})}))}))})),e(o,n({item:!0,xs:12},{children:e(I,{from:null==T?void 0:T.scaleFrom,to:null==T?void 0:T.scaleTo,unit:null==T?void 0:T.scaleUnit,noScale:!0,gradientStops:(null==K?void 0:K.gradientStops)||z,onChange:function(t){U(n(n({},K),{gradientStops:t}))},readonly:!K,isMoveInputVisible:!0})}))]}))};export{k as GradientManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientManagerProps.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientManagerProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEnC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,gBAAgB,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEvF;;;OAGG;IACH,SAAS,EAAE,cAAc,EAAE,CAAC;IAE5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAE1D;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;IAEpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE1C;;;OAGG;IACH,yBAAyB,CAAC,EAAE,CAAC,oBAAoB,EAAE,OAAO,KAAK,IAAI,CAAC;IAEpE;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"GradientManagerProps.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientManagerProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEnC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,gBAAgB,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEvF;;;OAGG;IACH,SAAS,EAAE,cAAc,EAAE,CAAC;IAE5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAE1D;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;IAEpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE1C;;;OAGG;IACH,yBAAyB,CAAC,EAAE,CAAC,oBAAoB,EAAE,OAAO,KAAK,IAAI,CAAC;IAEpE;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientSelect.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GradientSelect.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsGxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e}from"react/jsx-runtime";import{ListSubheader as s,MenuItem as i}from"@material-ui/core";import n from"@material-ui/icons/AddCircle";import{useState as r}from"react";import a from"classnames";import{isEmpty as c}from"lodash";import{GradientPreview as l}from"./GradientPreview/GradientPreview.js";import d from"../Select/index.js";import m from"../IconButton/index.js";import{useStyles as u}from"./GradientSelect.styles.js";import{DeleteFourIcon as p}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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";var f=function(f){var v=f.value,
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e}from"react/jsx-runtime";import{ListSubheader as s,MenuItem as i}from"@material-ui/core";import n from"@material-ui/icons/AddCircle";import{useState as r}from"react";import a from"classnames";import{isEmpty as c}from"lodash";import{GradientPreview as l}from"./GradientPreview/GradientPreview.js";import d from"../Select/index.js";import m from"../IconButton/index.js";import{useStyles as u}from"./GradientSelect.styles.js";import{DeleteFourIcon as p}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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";var f=function(f){var v=f.value,h=f.gradients,j=f.onChange,I=f.defaultGradients,g=f.onAction,G=f.readonly,C=u(),b=r(!1),P=b[0],N=b[1],S=function(o){var t,e;if(o.stopPropagation(),!G){var s=null===(e=null===(t=o.currentTarget.closest("li"))||void 0===t?void 0:t.dataset)||void 0===e?void 0:e.value;v===s&&N(!1),g("delete",s)}},x=c(h)&&G;return t(d,o({"data-testid":"gradient-select",label:"Gradients",value:v||"",className:C.select,onChange:function(o){var t=o.target;t.value&&j(t.value)},open:P,onClose:function(){return N(!1)},onOpen:function(){return N(!0)},inputProps:{name:"gradientId",id:"gradientId"},FormControlProps:{fullWidth:!0},fullWidth:!0,defaultValue:"",InputLabelProps:{shrink:!0}},{children:[e(s,o({className:C.listHeader},{children:"Gradients"})),!x&&t(s,o({className:C.subHeader},{children:["My Gradients",!G&&e(m,o({color:"primary","data-testid":"add-gradient-btn",className:C.addButton,onClick:function(){return g("add")},tooltipProps:{title:"Create Custom Gradient"}},{children:e(n,{color:"primary"})}))]})),h.map((function(s){var n=s.id,r=s.name,c=s.gradientStops;return t(i,o({value:n,className:C.customGradientListItem},{children:[e(l,{gradientStops:c}),e("span",{children:r}),e(m,o({className:a({disabled:G}),onClick:S,tooltipProps:{title:"Remove Gradient"},size:"medium"},{children:e(p,{})}))]}),n)})),!c(I)&&e(s,o({className:C.subHeader},{children:"Default Gradients"})),I.map((function(s){var n=s.id,r=s.name,a=s.gradientStops;return t(i,o({value:n,className:C.customGradientListItem},{children:[e(l,{gradientStops:a}),e("span",{children:r})]}),n)}))]}))};export{f as GradientSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.styles.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"GradientSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.styles.js"],"names":[],"mappings":"AAEA,oKA6DI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as e}from"@material-ui/core";var t=e((function(e){var t=e.palette;return{select:{"& > .MuiSelect-root":{display:"flex",gap:"8px",flexShrink:0,paddingRight:0
|
|
1
|
+
import{makeStyles as e}from"@material-ui/core";var t=e((function(e){var t=e.palette;return{select:{"& > .MuiSelect-root":{display:"flex",gap:"8px",flexShrink:0,paddingRight:0,"& > button":{display:"none"},"& > span":{paddingRight:16,overflow:"hidden",textOverflow:"ellipsis"}},width:"100%",marginBottom:20},customGradientListItem:{width:"320px",display:"flex",gap:8,"& > span":{flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"& button":{visibility:"hidden"},"&:hover button":{visibility:"visible"},"&:hover button.disabled":{opacity:.3}},listHeader:{pointerEvents:"none",userSelect:"none",fontSize:"20px",fontStyle:"normal",fontWeight:400,color:t.common.white},subHeader:{pointerEvents:"none",userSelect:"none",fontSize:"10px",color:t.primary.text7,textTransform:"uppercase",display:"flex",alignItems:"center"},addButton:{pointerEvents:"all","&:hover":{background:"transparent"}}}}));export{t as useStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientPicker.d.ts","sourceRoot":"","sources":["../../../src/components/GradientPicker/GradientPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAevF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"GradientPicker.d.ts","sourceRoot":"","sources":["../../../src/components/GradientPicker/GradientPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAevF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAoUrE,eAAO,MAAM,cAAc,+DAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as e}from"react/jsx-runtime";import{useRef as i,useState as r,useEffect as c,useMemo as s}from"react";import{withSize as a}from"react-sizeme";import l from"classnames";import u from"react-draggable";import{find as d,noop as m,sortBy as p,reject as f,clamp as v,omit as h}from"lodash";import g from"tinygradient";import{v4 as b}from"uuid";import{Typography as j,Tooltip as C,Popover as I,TextField as y}from"@material-ui/core";import{Add as N}from"@material-ui/icons";import{DeleteFourIcon as k}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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 x from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as _,roundToStep as F,getRangeStep as M}from"./GradientPicker.utils.js";import{useThrottledCallback as O}from"../shared/useThrottledCallback.js";import T from"../IconButton/index.js";import{useStyles as z}from"./GradientPicker.styles.js";var B=a()((function(a){var B=a.size,E=a.from,S=void 0===E?0:E,G=a.to,A=void 0===G?100:G,D=a.unit,L=a.gradientStops,R=a.onChange,V=a.style,q=a.isMoveInputVisible,w=a.readonly,W=a.noScale,H=a["data-testid"],K=void 0===H?"GradientPicker":H,X=i(),J=r([]),Q=J[0],U=J[1],Y=r(null),Z=Y[0],$=Y[1],oo=r(null),to=oo[0],no=oo[1],eo=r(null),io=eo[0],ro=eo[1],co=z({readonly:w}),so=Number.isFinite(S)?Number(S):0,ao=Number.isFinite(A)?Number(A):100,lo=ao-so;c((function(){(L.length!==(null==Q?void 0:Q.length)||L.some((function(o,t){return o.color!==Q[t].color||o.pos!==Q[t].pos})))&&U(L.map((function(t){return o(o({},t),{id:b()})})))}),[L]);var uo=s((function(){return P(Q)}),[Q]),mo=s((function(){var o;return null===(o=X.current)||void 0===o?void 0:o.clientWidth}),[B.width,X.current]),po=function(o){var t=p(o,"pos");U(t),R&&R(t.map((function(o){return h(o,"id")})))},fo=function(o){if(o.target===o.currentTarget){var t=o.currentTarget.getBoundingClientRect(),n=o.clientX-t.left;ro(Number.isFinite(n)?n:null)}else ro(null)},vo=O((function(n,e,i,r){if(void 0===r&&(r=!1),!Z){var c=e/mo*100,s=d(Q,{id:n});if(i>=40||i<=-50)go();else{var a=o(o({},s),{pos:c}),l=p(t(t([],f(Q,{id:n}),!0),[a],!1),"pos");if(r)return po(l),void no(null);U(l),jo||no(n)}}}),0),ho=function(){po(Q),no(null),$(null)},go=function(){Q.length>2&&(po(f(Q,{id:to})),$(null),no(null))},bo=!Z&&Number.isFinite(io)&&!w,jo=d(Q,{id:to}),Co=M(lo),Io=function(o){if(!o)return null;var t=so+(null==o?void 0:o.pos)/100*lo;return F(t,Co/100)}(jo);return n("div",o({className:co.root,style:V},{children:[!W&&n("div",o({className:co.indicatorContainer},{children:[e("div",{children:n(j,o({"data-testid":"".concat(K,"_from"),className:co.indicator},{children:[so," ",D]}))}),e("div",{children:n(j,o({"data-testid":"".concat(K,"_to"),className:co.indicator},{children:[ao," ",D]}))})]})),n("div",o({onMouseEnter:fo,onMouseMove:fo,onMouseLeave:function(){return ro(null)},onClick:function(o){var n=io/mo*100,e=g(Q.map((function(o){return{color:o.color,pos:o.pos/100}}))),i="#".concat(e.rgbAt(n/100).toHex()),r={id:b(),pos:n,color:i};po(t(t([],Q,!0),[r],!1))},"data-testid":"".concat(K,"_track"),className:co.mainBar,style:{background:"linear-gradient(90deg, ".concat(uo,")")},ref:X},{children:[bo&&e("div",o({"data-testid":"".concat(K,"_addCircle"),className:co.addCircle,style:{left:io-12}},{children:e(N,{fontSize:"small",className:co.addIcon})})),!!mo&&Q.map((function(t,n){var i,r=t.pos,c=t.color,s=t.id;return e(u,o({disabled:w,axis:"x",bounds:{left:-12,right:mo-12,top:-50,bottom:40},onDrag:function(o,t){return vo(s,t.x+12,t.y,!1)},onStop:function(o,t){return vo(s,t.x+12,t.y,!0)},position:{x:mo*r/100-12,y:-4}},{children:e("div",o({onClick:function(o){return function(o,t){o.stopPropagation(),w||to||(no(t),$(o.currentTarget))}(o,s)},"data-testid":"".concat(K,"_stop_").concat(n),className:l(co.circle,{highlight:to===s}),style:{backgroundColor:c}},{children:e(C,o({title:(i=r,_(i,{fromValue:so,toValue:ao})),placement:"top"},{children:e("div",{style:{height:"100%"}})}))}))}),s)}))]})),Boolean(Z)&&n(I,o({id:"colors-popper",open:Boolean(Z),anchorEl:Z,onClose:ho,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[e(x,{color:null==jo?void 0:jo.color,onChange:function(t){var n=t.hex;U(Q.map((function(t){return t.id===to?o(o({},t),{color:n}):t})))},onSizeChange:m,enableTransparencyPalette:!1}),e(T,o({"data-testid":"".concat(K,"_stopDelete"),className:co.removeButton,onClick:go},{children:e(k,{className:co.deleteIcon})})),q&&e(y,{"data-testid":"".concat(K,"_moveInput"),type:"number",variant:"outlined",value:Io,classes:{root:co.posTextfield},InputProps:{inputProps:{min:so,max:ao,step:Co,maxLength:10},classes:{root:co.posOutlinedRoot,input:co.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(t){if(""===t.target.value){var n=t.target;setTimeout((function(){return null==n?void 0:n.select()}))}var e=v(Number(t.target.value),so,ao);e||t.target.select();var i=(e-so)/lo*100;U(Q.map((function(t){return t.id===to?o(o({},t),{pos:i}):t})))},onKeyDown:function(o){return"Enter"===o.key&&ho()}})]}))]}))}));export{B as GradientPicker};
|
|
1
|
+
import{__assign as o,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as e}from"react/jsx-runtime";import{useRef as i,useState as r,useEffect as c,useMemo as s}from"react";import{withSize as a}from"react-sizeme";import l from"classnames";import u from"react-draggable";import{find as d,noop as m,sortBy as p,reject as f,clamp as v,omit as h}from"lodash";import g from"tinygradient";import{v4 as b}from"uuid";import{Typography as j,Tooltip as C,Popover as I,TextField as y}from"@material-ui/core";import{Add as N}from"@material-ui/icons";import{DeleteFourIcon as k}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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 x from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as _,roundToStep as F,getRangeStep as M}from"./GradientPicker.utils.js";import{useThrottledCallback as O}from"../shared/useThrottledCallback.js";import T from"../IconButton/index.js";import{useStyles as z}from"./GradientPicker.styles.js";var B=a()((function(a){var B=a.size,E=a.from,S=void 0===E?0:E,G=a.to,A=void 0===G?100:G,D=a.unit,L=a.gradientStops,R=a.onChange,V=a.style,q=a.isMoveInputVisible,w=a.readonly,W=a.noScale,H=a["data-testid"],K=void 0===H?"GradientPicker":H,X=i(),J=r([]),Q=J[0],U=J[1],Y=r(null),Z=Y[0],$=Y[1],oo=r(null),to=oo[0],no=oo[1],eo=r(null),io=eo[0],ro=eo[1],co=z({readonly:w}),so=Number.isFinite(S)?Number(S):0,ao=Number.isFinite(A)?Number(A):100,lo=ao-so;c((function(){(L.length!==(null==Q?void 0:Q.length)||L.some((function(o,t){return o.color!==Q[t].color||o.pos!==Q[t].pos})))&&U(L.map((function(t){return o(o({},t),{id:b()})})))}),[L]);var uo=s((function(){return P(Q)}),[Q]),mo=s((function(){var o;return null===(o=X.current)||void 0===o?void 0:o.clientWidth}),[B.width,X.current]),po=function(o){var t=p(o,"pos");U(t),R&&R(t.map((function(o){return h(o,"id")})))},fo=function(o){if(o.target===o.currentTarget){var t=o.currentTarget.getBoundingClientRect(),n=o.clientX-t.left;ro(Number.isFinite(n)?n:null)}else ro(null)},vo=O((function(n,e,i,r){if(void 0===r&&(r=!1),!Z){var c=e/mo*100,s=d(Q,{id:n});if(i>=40||i<=-50)go();else{var a=o(o({},s),{pos:c}),l=p(t(t([],f(Q,{id:n}),!0),[a],!1),"pos");if(r)return po(l),void no(null);U(l),jo||no(n)}}}),0),ho=function(){po(Q),no(null),$(null)},go=function(){Q.length>2&&(po(f(Q,{id:to})),$(null),no(null))},bo=!Z&&Number.isFinite(io)&&!w,jo=d(Q,{id:to}),Co=M(lo),Io=function(o){if(!o)return null;var t=so+(null==o?void 0:o.pos)/100*lo;return F(t,Co/100)}(jo);return n("div",o({className:co.root,style:V},{children:[!W&&n("div",o({className:co.indicatorContainer},{children:[e("div",{children:n(j,o({"data-testid":"".concat(K,"_from"),className:co.indicator},{children:[so," ",D]}))}),e("div",{children:n(j,o({"data-testid":"".concat(K,"_to"),className:co.indicator},{children:[ao," ",D]}))})]})),n("div",o({onMouseEnter:fo,onMouseMove:fo,onMouseLeave:function(){return ro(null)},onClick:function(o){if(!w){var n=io/mo*100,e=g(Q.map((function(o){return{color:o.color,pos:o.pos/100}}))),i="#".concat(e.rgbAt(n/100).toHex()),r={id:b(),pos:n,color:i};po(t(t([],Q,!0),[r],!1))}},"data-testid":"".concat(K,"_track"),className:co.mainBar,style:{background:"linear-gradient(90deg, ".concat(uo,")")},ref:X},{children:[bo&&e("div",o({"data-testid":"".concat(K,"_addCircle"),className:co.addCircle,style:{left:io-12}},{children:e(N,{fontSize:"small",className:co.addIcon})})),!!mo&&Q.map((function(t,n){var i,r=t.pos,c=t.color,s=t.id;return e(u,o({disabled:w,axis:"x",bounds:{left:-12,right:mo-12,top:-50,bottom:40},onDrag:function(o,t){return vo(s,t.x+12,t.y,!1)},onStop:function(o,t){return vo(s,t.x+12,t.y,!0)},position:{x:mo*r/100-12,y:-4}},{children:e("div",o({onClick:function(o){return function(o,t){o.stopPropagation(),w||to||(no(t),$(o.currentTarget))}(o,s)},"data-testid":"".concat(K,"_stop_").concat(n),className:l(co.circle,{highlight:to===s}),style:{backgroundColor:c}},{children:e(C,o({title:(i=r,_(i,{fromValue:so,toValue:ao})),placement:"top"},{children:e("div",{style:{height:"100%"}})}))}))}),s)}))]})),Boolean(Z)&&n(I,o({id:"colors-popper",open:Boolean(Z),anchorEl:Z,onClose:ho,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[e(x,{color:null==jo?void 0:jo.color,onChange:function(t){var n=t.hex;U(Q.map((function(t){return t.id===to?o(o({},t),{color:n}):t})))},onSizeChange:m,enableTransparencyPalette:!1}),e(T,o({"data-testid":"".concat(K,"_stopDelete"),className:co.removeButton,onClick:go},{children:e(k,{className:co.deleteIcon})})),q&&e(y,{"data-testid":"".concat(K,"_moveInput"),type:"number",variant:"outlined",value:Io,classes:{root:co.posTextfield},InputProps:{inputProps:{min:so,max:ao,step:Co,maxLength:10},classes:{root:co.posOutlinedRoot,input:co.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(t){if(""===t.target.value){var n=t.target;setTimeout((function(){return null==n?void 0:n.select()}))}var e=v(Number(t.target.value),so,ao);e||t.target.select();var i=(e-so)/lo*100;U(Q.map((function(t){return t.id===to?o(o({},t),{pos:i}):t})))},onKeyDown:function(o){return"Enter"===o.key&&ho()}})]}))]}))}));export{B as GradientPicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={small:"CorvaModal_small__mNfAD",medium:"CorvaModal_medium__hZ6dU",large:"CorvaModal_large__TDl42",extraLarge:"CorvaModal_extraLarge__0TL4F",modalWrapper:"CorvaModal_modalWrapper__QCxRq",modalContainer:"CorvaModal_modalContainer__rU-tZ",modalContainerMobile:"CorvaModal_modalContainerMobile__B-NqD",title:"CorvaModal_title__hXADg",titleMobile:"CorvaModal_titleMobile__I5oX3",titleText:"CorvaModal_titleText__JTkfo",modalContent:"CorvaModal_modalContent__Du0Oe",modalContentMobile:"CorvaModal_modalContentMobile__4bB1d",modalActions:"CorvaModal_modalActions__KJ3N4",modalActionsMobile:"CorvaModal_modalActionsMobile__1IQfD"};o(".CorvaModal_small__mNfAD{width:416px}.CorvaModal_medium__hZ6dU{width:552px}.CorvaModal_large__TDl42{width:768px}.CorvaModal_extraLarge__0TL4F{height:calc(100% - 32px);max-width:1152px;width:80%}.CorvaModal_modalWrapper__QCxRq{display:flex;height:100%;width:100%}.CorvaModal_modalContainer__rU-tZ{background-color:var(--palette-background-b-
|
|
1
|
+
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={small:"CorvaModal_small__mNfAD",medium:"CorvaModal_medium__hZ6dU",large:"CorvaModal_large__TDl42",extraLarge:"CorvaModal_extraLarge__0TL4F",modalWrapper:"CorvaModal_modalWrapper__QCxRq",modalContainer:"CorvaModal_modalContainer__rU-tZ",modalContainerMobile:"CorvaModal_modalContainerMobile__B-NqD",title:"CorvaModal_title__hXADg",titleMobile:"CorvaModal_titleMobile__I5oX3",titleText:"CorvaModal_titleText__JTkfo",modalContent:"CorvaModal_modalContent__Du0Oe",modalContentMobile:"CorvaModal_modalContentMobile__4bB1d",modalActions:"CorvaModal_modalActions__KJ3N4",modalActionsMobile:"CorvaModal_modalActionsMobile__1IQfD"};o(".CorvaModal_small__mNfAD{width:416px}.CorvaModal_medium__hZ6dU{width:552px}.CorvaModal_large__TDl42{width:768px}.CorvaModal_extraLarge__0TL4F{height:calc(100% - 32px);max-width:1152px;width:80%}.CorvaModal_modalWrapper__QCxRq{display:flex;height:100%;width:100%}.CorvaModal_modalContainer__rU-tZ{background-color:var(--palette-background-b-7);border-radius:8px;box-shadow:0 8px 24px 0 #0000003d;display:flex;flex-direction:column;margin:auto;max-height:calc(100% - 32px);max-width:80%;outline:none;overflow:hidden;position:relative}.CorvaModal_modalContainerMobile__B-NqD{max-height:calc(100% - 16px);max-width:calc(100% - 16px);min-height:calc(100% - 16px);min-width:calc(100% - 16px)}.CorvaModal_title__hXADg{align-items:center;background-color:var(--palette-background-b-7);border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 8px 10px var(--palette-background-b-7);display:flex;justify-content:space-between;line-height:28px;padding:40px 40px 0;width:100%;z-index:1}.CorvaModal_titleMobile__I5oX3{padding:12px 16px}.CorvaModal_titleText__JTkfo{color:#fff;font-size:20px}.CorvaModal_modalContent__Du0Oe{overflow-y:auto;padding:16px 40px}.CorvaModal_modalContentMobile__4bB1d{background-color:inherit;overflow-y:scroll;padding:16px}.CorvaModal_modalActions__KJ3N4{align-items:center;background:var(--palette-background-b-7);border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-shadow:0 -8px 10px var(--palette-background-b-7);display:flex;margin-top:auto;padding:16px 40px 40px;width:100%;z-index:1000}.CorvaModal_modalActionsMobile__1IQfD{padding:8px 16px}");export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAsC,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAsC,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,SAAS,MAAM,YAAY,CAAC;AAiKnC,UAAU,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,mBAAmB,CAAC;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;QAClE,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH;AAED,QAAA,MAAM,IAAI;kDAAiD,WAAW;;;;;;;;;CA2BrE,CAAC;AAYF,eAAe,IAAI,CAAC"}
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as t,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as a,Tabs as i}from"@material-ui/core";import e from"classnames";import l from"prop-types";var n=a((function(t){return{root:{"& .MuiTab-root":{minHeight:40,paddingLeft:16,paddingRight:16,borderRadius:8,minWidth:0,fontSize:16,marginRight:8,"&.Mui-disabled":{opacity:.4,color:t.palette.primary.text6}},"& .MuiTab-wrapper":{flexDirection:"row",justifyContent:"initial"},"& .MuiTab-wrapper > .i-icon":{marginBottom:"0px !important",marginRight:8},"&.MuiTabs-vertical":{"& .MuiTab-root":{marginRight:0,minHeight:"unset","&:not(:last-child)":{marginBottom:8}}}},rootCompact:{height:32,minHeight:"32px !important","& .MuiTab-root":{minWidth:0,fontSize:16,padding:"6px 10px",height:32,minHeight:"32px !important"},"&.MuiTabs-vertical":{height:"unset",minHeight:"unset"},"& .MuiTab-wrapper > .i-icon, & .MuiTab-wrapper > .i-icon > svg":{width:20,height:20}},root_filled:{minHeight:40,backgroundColor:t.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:t.palette.primary.text6,"&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:t.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main,backgroundColor:"transparent"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"}}},root_filledTab:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,fontSize:16,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)","&:hover":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"},"&.Mui-disabled":{color:t.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:t.palette.background.b9,height:40,zIndex:1,"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:t.palette.primary.text6}}}})),p=function(a){var l,p,c,d=a.compact,s=a.type,m=t(a,["compact","type"]),b=n(),g=m.classes,u=m.TabIndicatorProps;return r(i,o({},m,{classes:o(o({},g),{root:e(null==g?void 0:g.root,b.root,b["root_".concat(s)],(l={},l[b.rootCompact]=d,l)),scrollButtons:e(null==g?void 0:g.scrollButtons,b.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:o(o({},u),{classes:{root:e(null===(c=null==u?void 0:u.classes)||void 0===c?void 0:c.root,b.tabIndicatorRoot,(p={},p[b.tabIndicatorFilledTab]="filledTab"===s,p))}})}))};p.propTypes={type:l.oneOf(["default","filled","filledTab"]),compact:l.bool},p.defaultProps={type:"default",compact:!1};export{p as default};
|
|
@@ -3,16 +3,21 @@ declare namespace _default {
|
|
|
3
3
|
const root: {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
6
|
-
|
|
7
|
-
boxShadow: string;
|
|
8
|
-
};
|
|
6
|
+
borderRadius: number;
|
|
9
7
|
boxShadow: string;
|
|
8
|
+
color: string;
|
|
10
9
|
'&.Mui-disabled': {
|
|
11
10
|
backgroundColor: string;
|
|
12
11
|
color: string;
|
|
13
12
|
opacity: string;
|
|
14
13
|
};
|
|
15
14
|
};
|
|
15
|
+
const primary: {
|
|
16
|
+
color: string;
|
|
17
|
+
'&:hover': {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
16
21
|
const sizeSmall: {
|
|
17
22
|
width: number;
|
|
18
23
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"./palette.mjs.js";var i=o.primary,r={MuiFab:{root:{width:40,height:40,borderRadius:8,boxShadow:"none !important",color:"#141414","&.Mui-disabled":{backgroundColor:i.main,color:"#141414",opacity:"0.4"}},primary:{color:"#141414","&:hover":{backgroundColor:i.light}},sizeSmall:{width:32,height:32,minHeight:32,"& .MuiSvgIcon-root":{fontSize:16}},sizeMedium:{width:36,height:36}}};export{r as default};
|
package/config/theme/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const lightTheme: import("@material-ui/core").Theme;
|
|
2
|
-
export const darkTheme: import("@material-ui/core").Theme;
|
|
1
|
+
export const lightTheme: import("@material-ui/core/styles").Theme;
|
|
2
|
+
export const darkTheme: import("@material-ui/core/styles").Theme;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/theme/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/theme/index.js"],"names":[],"mappings":"AAgJA,kEAKG;AAEH,iEASG"}
|
package/config/theme/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import{createMuiTheme as r}from"@material-ui/core";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import{createMuiTheme as r}from"@material-ui/core/styles";import e from"@material-ui/icons/Close";import{DownOneIcon as t}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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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{dateTimePickerThemeOverrides as i}from"./dateTimePickerThemeOverrides.js";import s from"./accordionOverrides.js";import c from"./buttonOverrides.js";import n from"./checkboxOverrides.js";import p from"./chipOverrides.js";import m from"./fabOverrides.js";import a from"./formControlLabelOverrides.js";import l from"./formGroupOverrides.js";import u from"./palette.mjs.js";import d from"./radioOverrides.js";import f from"./tableOverrides.js";import x from"./textFieldOverrides.js";import j from"./tooltipOverrides.js";import{lightThemeVariables as b,darkThemeVariables as g}from"./themeVariables.mjs.js";import h from"./toggleButtonsGroupOverrides.js";import{jsx as O}from"react/jsx-runtime";function y(o,r){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable}))),e.push.apply(e,t)}return e}function M(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?y(Object(t),!0).forEach((function(e){o(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))}))}return r}var v=u.primary,k=v.text7,I=v.text9,C={overrides:M(M(M(M(M(M(M(M(M(M(M(M(M({MuiPopover:{paper:{borderRadius:8,boxShadow:"0px 8px 24px 0px #0000003D"}},MuiSelect:{icon:{top:"calc(50% - 8px)"}},MuiMenu:{paper:{borderRadius:8,boxShadow:"0px 8px 24px 0px #0000003D",root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:u.background.b9,"&$selected":{backgroundColor:u.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:u.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:u.background.b9}},MuiSwitch:{switchBase:{color:k},track:{backgroundColor:I,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:u.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialog:{paper:{backgroundColor:"#333333"}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},s),c),n),p),i),m),a),l),d),f),x),j),h)},D={MuiFab:{color:"primary"},MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:O(e,{})},MuiSelect:{IconComponent:function(o){return O(t,M({theme:"filled",fill:"#BDBDBD",size:16},o))}}},w=r(M(M(M({props:D},b),C),{},{isLightTheme:!0})),P=r(M(M(M({props:D},g),{},{palette:M(M({},g.palette),{},{type:"dark"})},C),{},{isLightTheme:!1}));export{P as darkTheme,w as lightTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./palette.mjs.js";var t={MuiToggleButtonGroup:{root:{"&>:first-child":{borderRadius:"8px 0px 0px 8px"},"&>:last-child":{borderRadius:"0px 8px 8px 0px"},"& .MuiToggleButton-root":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px",backgroundColor:"rgba(255, 255, 255, 0.08)",marginRight:1,borderLeft:"none !important",borderRight:"none !important",borderTop:"none !important",borderBottom:"none !important",
|
|
1
|
+
import o from"./palette.mjs.js";var t={MuiToggleButtonGroup:{root:{"&>:first-child":{borderRadius:"8px 0px 0px 8px"},"&>:last-child":{borderRadius:"0px 8px 8px 0px"},"& .MuiToggleButton-root":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px",backgroundColor:"rgba(255, 255, 255, 0.08)",marginRight:1,borderLeft:"none !important",borderRight:"none !important",borderTop:"none !important",borderBottom:"none !important",color:o.primary.text6,"&:hover":{color:o.primary.contrastText,background:"rgba(255, 255, 255, 0.12)"}},"& .MuiToggleButton-root.Mui-selected":{backgroundColor:"rgba(3, 188, 212, 0.10)",color:o.primary.main,"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.10)",color:o.primary.main}},"& .MuiToggleButton-root.Mui-disabled":{color:o.primary.text6,opacity:.4,pointerEvents:"all",backgroundColor:"rgba(255, 255, 255, 0.08)","&:hover":{color:o.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)"},"&.Mui-selected":{color:o.primary.contrastText}},"& .MuiToggleButton-root.MuiToggleButton-sizeLarge":{height:40,minHeight:40,fontWeight:500,fontSize:18,padding:"11px 16px"},"& .MuiToggleButton-root.MuiToggleButton-sizeMedium":{height:36,minHeight:36,fontWeight:500,fontSize:16,padding:"10px 16px"},"& .MuiToggleButton-root.MuiToggleButton-sizeSmall":{height:32,minHeight:32,fontWeight:500,fontSize:16,padding:"8px 12px","& .i-icon, & .i-icon svg":{width:"20px !important",height:"20px !important"}},"& .MuiToggleButton-label":{textTransform:"none"}}}};export{t as default};
|
package/package.json
CHANGED
package/styles/index.global.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from'./../ext-esm/style-inject/dist/style-inject.es.js';o("html{box-sizing:border-box}body,html{height:100%}body{background-color:#
|
|
1
|
+
import o from'./../ext-esm/style-inject/dist/style-inject.es.js';o("html{box-sizing:border-box}body,html{height:100%}body{background-color:#212121;color:#fff;font-family:Roboto,sans-serif;margin:0}*,:after,:before{box-sizing:inherit}a{color:#039be5;text-decoration:none}#root{height:100%}.ReactModal__Body--open{height:100%;overflow:hidden;position:fixed;width:100%}.highcharts-tooltip-container{z-index:501!important}.emoji-mart-dark,.emoji-mart-dark .emoji-mart-category-label span{background-color:#414141}.grecaptcha-badge{visibility:hidden}");
|