@zealicsolutions/web-ui 1.0.53-test.12 → 1.0.53-test.14

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,5 +2,7 @@ import React from 'react';
2
2
  export interface ContentWrapperProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
+ marginLeft?: string;
6
+ marginRight?: string;
5
7
  }
6
8
  export declare const ContentWrapper: React.FC<ContentWrapperProps>;
@@ -5,3 +5,6 @@ export default meta;
5
5
  declare type Story = StoryObj<typeof ContentWrapper>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithAbsoluteDrawer: Story;
8
+ export declare const WithMargins: Story;
9
+ export declare const WithMarginsAndAbsoluteDrawer: Story;
10
+ export declare const WithConditionalMargin: Story;
@@ -2,5 +2,7 @@ import React from 'react';
2
2
  export interface ContentWrapperProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
+ marginLeft?: string;
6
+ marginRight?: string;
5
7
  }
6
8
  export declare const ContentWrapper: React.FC<ContentWrapperProps>;
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as e,__assign as t}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{useLayoutContext as i}from"../../contexts/LayoutContext/useLayoutContext.js";var s,r=function(e){var n,s=e.children,r=e.className,m=i().drawer;return o(a,t({className:r,style:t({},"absolute"!==m.positionType&&(n={},n["left"===m.position?"marginLeft":"marginRight"]=m.isOpen?"".concat(m.width,"px"):0,n))},{children:s}))},a=n.div(s||(s=e(["\n flex: 1;\n position: relative;\n transition: margin 0.3s ease;\n overflow: auto;\n height: 100%;\n"],["\n flex: 1;\n position: relative;\n transition: margin 0.3s ease;\n overflow: auto;\n height: 100%;\n"])));export{r 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{useLayoutContext as n}from"../../contexts/LayoutContext/useLayoutContext.js";var s,r=function(t){var i=t.children,s=t.className,r=t.marginLeft,m=void 0===r?"0":r,l=t.marginRight,c=void 0===l?"0":l,p=n().drawer,d="absolute"!==p.positionType&&"left"===p.position&&p.isOpen?"calc(".concat(m||"0px"," + ").concat(p.width,"px)"):m,u="absolute"!==p.positionType&&"right"===p.position&&p.isOpen?"calc(".concat(c||"0px"," + ").concat(p.width,"px)"):c;return e(a,o({className:s,style:{marginLeft:d,marginRight:u}},{children:i}))},a=i.div(s||(s=t(["\n flex: 1;\n position: relative;\n transition: margin 0.3s ease;\n overflow: auto;\n height: 100%;\n"],["\n flex: 1;\n position: relative;\n transition: margin 0.3s ease;\n overflow: auto;\n height: 100%;\n"])));export{r 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","drawer","useLayoutContext","_jsx","StyledContentWrapper","__assign","style","positionType","_b","position","isOpen","concat","width","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"sWASO,MAAMA,EAAgD,SAACC,SAC5DC,EAAQD,EAAAC,SACRC,EAASF,EAAAE,UAEDC,EAAWC,WAEnB,OACEC,EAACC,EAAoBC,EAAA,CACnBL,UAAWA,EACXM,WAC8B,aAAxBL,EAAOM,eAA2BC,EAAA,CAAA,EACpCA,EAAqB,SAApBP,EAAOQ,SAAsB,aAAe,eAC3CR,EAAOS,OAAS,GAAGC,OAAAV,EAAOW,MAAS,MAAG,EACzCJ,KAGF,CAAAT,SAAAA,IAGP,EAEMK,EAAuBS,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,8GAAA,CAAA"}
1
+ {"version":3,"file":"ContentWrapper.js","sources":["../../../../../src/molecules/ContentWrapper/ContentWrapper.tsx"],"sourcesContent":[null],"names":["ContentWrapper","_a","children","className","_b","marginLeft","_c","marginRight","drawer","useLayoutContext","finalMarginLeft","positionType","position","isOpen","concat","width","finalMarginRight","_jsx","StyledContentWrapper","__assign","style","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"sWAWO,MAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAASF,EAAAE,UACTC,eAAAC,OAAa,IAAAD,EAAA,MACbE,EAAAL,EAAAM,YAAAA,OAAW,IAAAD,EAAG,IAAGA,EAETE,EAAWC,WAGbC,EACoB,aAAxBF,EAAOG,cAAmD,SAApBH,EAAOI,UAAuBJ,EAAOK,OACvE,eAAQR,GAAc,MAAW,OAAAS,OAAAN,EAAOO,MAAU,OAClDV,EAEAW,EACoB,aAAxBR,EAAOG,cAAmD,UAApBH,EAAOI,UAAwBJ,EAAOK,OACxE,eAAQN,GAAe,MAAW,OAAAO,OAAAN,EAAOO,MAAU,OACnDR,EAEN,OACEU,EAACC,EAAoBC,EAAA,CACnBhB,UAAWA,EACXiB,MAAO,CACLf,WAAYK,EACZH,YAAaS,IAGd,CAAAd,SAAAA,IAGP,EAEMgB,EAAuBG,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,8GAAA,CAAA"}
@@ -5,3 +5,6 @@ export default meta;
5
5
  declare type Story = StoryObj<typeof ContentWrapper>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithAbsoluteDrawer: Story;
8
+ export declare const WithMargins: Story;
9
+ export declare const WithMarginsAndAbsoluteDrawer: Story;
10
+ export declare const WithConditionalMargin: Story;
package/dist/index.d.ts CHANGED
@@ -1594,6 +1594,8 @@ declare const SpeedDial: react__default.FC<SpeedDialProps>;
1594
1594
  interface ContentWrapperProps {
1595
1595
  children: react__default.ReactNode;
1596
1596
  className?: string;
1597
+ marginLeft?: string;
1598
+ marginRight?: string;
1597
1599
  }
1598
1600
  declare const ContentWrapper: react__default.FC<ContentWrapperProps>;
1599
1601
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.53-test.12",
3
+ "version": "1.0.53-test.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"