@zealicsolutions/web-ui 1.0.53-test.36 → 1.0.53-test.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as t,__assign as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as o}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import n from"../../node_modules/@emotion/styled/dist/emotion-styled.esm.js";import{useRef as i,useEffect as r}from"react";import{useLayoutContext as s}from"../../contexts/LayoutContext/useLayoutContext.js";var a,m=function(t){var n=t.children,a=t.className,m=t.marginLeft,u=void 0===m?"0px":m,p=t.marginRight,d=void 0===p?"0px":p,c=s(),f=c.drawer,g=c.setDrawerContainerRef,h=i(null);r((function(){return g&&g(h.current),function(){g&&g(null)}}),[g]);var v=function(t){var e=parseFloat(t);return isNaN(e)?0:e},x=v(u),y="absolute"!==f.positionType&&"left"===f.position&&f.isOpen?"".concat(x+f.width,"px"):u,j=v(d),w="absolute"!==f.positionType&&"right"===f.position&&f.isOpen?"".concat(j+f.width,"px"):d;return o(l,e({ref:h,className:a,style:{marginLeft:y,marginRight:w}},{children:n}))},l=n.div(a||(a=t(["\n height: 100%;\n overflow: auto;\n position: relative;\n transition: margin 0.3s ease;\n"],["\n height: 100%;\n overflow: auto;\n position: relative;\n transition: margin 0.3s ease;\n"])));export{m as ContentWrapper};
1
+ import{__makeTemplateObject as t,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import i from"../../node_modules/@emotion/styled/dist/emotion-styled.esm.js";import{useRef as n,useEffect as r}from"react";import{useLayoutContext as s}from"../../contexts/LayoutContext/useLayoutContext.js";var a,m=function(t){var i=t.children,a=t.className,m=t.marginTop,p=void 0===m?"0px":m,u=t.marginLeft,d=void 0===u?"0px":u,c=t.marginRight,f=void 0===c?"0px":c,g=s(),v=g.drawer,h=g.setDrawerContainerRef,x=n(null);r((function(){return h&&h(x.current),function(){h&&h(null)}}),[h]);var y=function(t){var o=parseFloat(t);return isNaN(o)?0:o},j=y(d),w="absolute"!==v.positionType&&"left"===v.position&&v.isOpen?"".concat(j+v.width,"px"):d,b=y(f),L="absolute"!==v.positionType&&"right"===v.position&&v.isOpen?"".concat(b+v.width,"px"):f;return e(l,o({ref:x,className:a,style:{marginTop:p,marginLeft:w,marginRight:L}},{children:i}))},l=i.div(a||(a=t(["\n height: 100%;\n overflow: auto;\n position: relative;\n transition: margin 0.3s ease;\n"],["\n height: 100%;\n overflow: auto;\n position: relative;\n transition: margin 0.3s ease;\n"])));export{m as ContentWrapper};
2
2
  //# sourceMappingURL=ContentWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentWrapper.js","sources":["../../../../../src/molecules/ContentWrapper/ContentWrapper.tsx"],"sourcesContent":[null],"names":["ContentWrapper","_a","children","className","_b","marginLeft","_c","marginRight","_d","useLayoutContext","drawer","setDrawerContainerRef","rootRef","useRef","useEffect","current","extractNumericValue","margin","value","parseFloat","isNaN","marginLeftValue","finalMarginLeft","positionType","position","isOpen","concat","width","marginRightValue","finalMarginRight","_jsx","StyledContentWrapper","__assign","ref","style","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"oZAWO,MAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAASF,EAAAE,UACTC,eAAAC,OAAa,IAAAD,EAAA,QACbE,EAAAL,EAAAM,YAAAA,OAAW,IAAAD,EAAG,MAAKA,EAEbE,EAAoCC,IAAlCC,EAAMF,EAAAE,OAAEC,EAAqBH,EAAAG,sBAC/BC,EAAUC,EAAuB,MAEvCC,GAAU,WAKR,OAJIH,GACFA,EAAsBC,EAAQG,SAGzB,WACDJ,GACFA,EAAsB,KAE1B,CACF,GAAG,CAACA,IAIJ,IAAMK,EAAsB,SAACC,GAC3B,IAAMC,EAAQC,WAAWF,GACzB,OAAOG,MAAMF,GAAS,EAAIA,CAC5B,EAGMG,EAAkBL,EAAoBX,GACtCiB,EACoB,aAAxBZ,EAAOa,cAAmD,SAApBb,EAAOc,UAAuBd,EAAOe,OACvE,GAAGC,OAAAL,EAAkBX,EAAOiB,MAAS,MACrCtB,EAGAuB,EAAmBZ,EAAoBT,GACvCsB,EACoB,aAAxBnB,EAAOa,cAAmD,UAApBb,EAAOc,UAAwBd,EAAOe,OACxE,GAAGC,OAAAE,EAAmBlB,EAAOiB,MAAS,MACtCpB,EAEN,OACEuB,EAACC,EAAoBC,EAAA,CACnBC,IAAKrB,EACLT,UAAWA,EACX+B,MAAO,CACL7B,WAAYiB,EACZf,YAAasB,IAGd,CAAA3B,SAAAA,IAGP,EAEM6B,EAAuBI,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,kGAAA,CAAA"}
1
+ {"version":3,"file":"ContentWrapper.js","sources":["../../../../../src/molecules/ContentWrapper/ContentWrapper.tsx"],"sourcesContent":[null],"names":["ContentWrapper","_a","children","className","_b","marginTop","_c","marginLeft","_d","marginRight","_e","useLayoutContext","drawer","setDrawerContainerRef","rootRef","useRef","useEffect","current","extractNumericValue","margin","value","parseFloat","isNaN","marginLeftValue","finalMarginLeft","positionType","position","isOpen","concat","width","marginRightValue","finalMarginRight","_jsx","StyledContentWrapper","__assign","ref","style","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"oZAWO,MAAMA,EAAgD,SAACC,OAC5DC,EAAQD,EAAAC,SACRC,EAASF,EAAAE,UACTC,cAAAC,OAAY,IAAAD,EAAA,MAAKA,EACjBE,eAAAC,OAAa,IAAAD,EAAA,MAAKA,EAClBE,gBAAAC,OAAc,IAAAD,EAAA,MAAKA,EAEbE,EAAoCC,IAAlCC,EAAMF,EAAAE,OAAEC,EAAqBH,EAAAG,sBAC/BC,EAAUC,EAAuB,MAEvCC,GAAU,WAKR,OAJIH,GACFA,EAAsBC,EAAQG,SAGzB,WACDJ,GACFA,EAAsB,KAE1B,CACF,GAAG,CAACA,IAIJ,IAAMK,EAAsB,SAACC,GAC3B,IAAMC,EAAQC,WAAWF,GACzB,OAAOG,MAAMF,GAAS,EAAIA,CAC5B,EAGMG,EAAkBL,EAAoBX,GACtCiB,EACoB,aAAxBZ,EAAOa,cAAmD,SAApBb,EAAOc,UAAuBd,EAAOe,OACvE,GAAGC,OAAAL,EAAkBX,EAAOiB,MAAS,MACrCtB,EAGAuB,EAAmBZ,EAAoBT,GACvCsB,EACoB,aAAxBnB,EAAOa,cAAmD,UAApBb,EAAOc,UAAwBd,EAAOe,OACxE,GAAGC,OAAAE,EAAmBlB,EAAOiB,MAAS,MACtCpB,EAEN,OACEuB,EAACC,EAAoBC,EAAA,CACnBC,IAAKrB,EACLX,UAAWA,EACXiC,MAAO,CACL/B,UAAWA,EACXE,WAAYiB,EACZf,YAAasB,IAGd,CAAA7B,SAAAA,IAGP,EAEM+B,EAAuBI,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,kGAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.53-test.36",
3
+ "version": "1.0.53-test.37",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"