@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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/ContentWrapper/ContentWrapper.d.ts +1 -0
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.d.ts +1 -0
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.js +1 -1
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__makeTemplateObject as t,__assign as
|
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","
|
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
|
}
|