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

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.
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface ContentWrapperProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
+ marginTop?: string;
5
6
  marginLeft?: string;
6
7
  marginRight?: string;
7
8
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface ContentWrapperProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
+ marginTop?: string;
5
6
  marginLeft?: string;
6
7
  marginRight?: string;
7
8
  }
@@ -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":"oZAYO,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/dist/index.d.ts CHANGED
@@ -1621,6 +1621,7 @@ declare const SpeedDial: react__default.FC<SpeedDialProps>;
1621
1621
  interface ContentWrapperProps {
1622
1622
  children: react__default.ReactNode;
1623
1623
  className?: string;
1624
+ marginTop?: string;
1624
1625
  marginLeft?: string;
1625
1626
  marginRight?: string;
1626
1627
  }
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.38",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"