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