@zealicsolutions/web-ui 1.0.53-test.19 → 1.0.53-test.20

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,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { DrawerProps as DrawerComponentProps } from '@mui/material';
3
- import { SizesTypes } from 'theme/types';
4
3
  import { Anchor, DrawerVariant } from './types';
5
4
  export declare type StyledDrawerProps = DrawerComponentProps & {
6
5
  anchor: Anchor;
7
6
  variant?: DrawerVariant;
8
- padding?: SizesTypes | number | string;
7
+ paddingTop?: string;
8
+ paddingRight?: string;
9
+ paddingBottom?: string;
10
+ paddingLeft?: string;
9
11
  height?: number | string;
10
12
  width?: number | string;
11
13
  backgroundColor?: string;
@@ -21,7 +23,10 @@ export declare const BaseDrawer: import("@emotion/styled").StyledComponent<Drawe
21
23
  } & {
22
24
  anchor: Anchor;
23
25
  variant?: DrawerVariant | undefined;
24
- padding?: string | number | undefined;
26
+ paddingTop?: string | undefined;
27
+ paddingRight?: string | undefined;
28
+ paddingBottom?: string | undefined;
29
+ paddingLeft?: string | undefined;
25
30
  height?: string | number | undefined;
26
31
  width?: string | number | undefined;
27
32
  backgroundColor?: string | undefined;
@@ -66,6 +66,10 @@ export interface DrawerProps {
66
66
  onClose?: (event: React.KeyboardEvent | React.MouseEvent, reason: string) => void;
67
67
  items?: DrawerItem[];
68
68
  padding?: SizesTypes | number | string;
69
+ paddingTop?: string;
70
+ paddingRight?: string;
71
+ paddingBottom?: string;
72
+ paddingLeft?: string;
69
73
  height?: number | string;
70
74
  width?: number | string;
71
75
  backgroundColor?: string;
@@ -83,6 +87,7 @@ export interface DrawerProps {
83
87
  buttonFontWeight?: 'normal' | 'bold';
84
88
  buttonFontFamily?: string;
85
89
  buttonDisabled?: boolean;
90
+ buttonDisabledColor?: string;
86
91
  buttonGap?: number | string;
87
92
  buttonStartIcon?: string;
88
93
  buttonEndIcon?: string;
@@ -1,2 +1,2 @@
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?"0px":r,l=t.marginRight,c=void 0===l?"0px":l,d=n().drawer,p="absolute"!==d.positionType&&"left"===d.position&&d.isOpen?"calc(".concat(m," + ").concat(d.width,"px)"):m,f="absolute"!==d.positionType&&"right"===d.position&&d.isOpen?"calc(".concat(c," + ").concat(d.width,"px)"):c;return console.log({finalMarginLeft:p,drawer:d,marginLeft:m}),e(a,o({className:s,style:{marginLeft:p,marginRight:f}},{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};
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 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?"0px":r,l=t.marginRight,p=void 0===l?"0px":l,d=n().drawer,f=function(t){var e=parseFloat(t);return isNaN(e)?0:e},u=f(m),c="absolute"!==d.positionType&&"left"===d.position&&d.isOpen?"".concat(u+d.width,"px"):m,g=f(p),x="absolute"!==d.positionType&&"right"===d.position&&d.isOpen?"".concat(g+d.width,"px"):p;return console.log({finalMarginLeft:c,drawer:d,marginLeft:m}),o(a,e({className:s,style:{marginLeft:c,marginRight:x}},{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","_b","marginLeft","_c","marginRight","drawer","useLayoutContext","finalMarginLeft","positionType","position","isOpen","concat","width","finalMarginRight","console","log","_jsx","StyledContentWrapper","__assign","style","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"sWAWO,MAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAASF,EAAAE,UACTC,eAAAC,OAAa,IAAAD,EAAA,QACbE,EAAAL,EAAAM,YAAAA,OAAW,IAAAD,EAAG,MAAKA,EAEXE,EAAWC,WAGbC,EACoB,aAAxBF,EAAOG,cAAmD,SAApBH,EAAOI,UAAuBJ,EAAOK,OACvE,QAAQC,OAAAT,gBAAgBG,EAAOO,MAAU,OACzCV,EAEAW,EACoB,aAAxBR,EAAOG,cAAmD,UAApBH,EAAOI,UAAwBJ,EAAOK,OACxE,QAAQC,OAAAP,gBAAiBC,EAAOO,MAAU,OAC1CR,EAIN,OAFAU,QAAQC,IAAI,CAAER,gBAAeA,EAAEF,OAAMA,EAAEH,WAAUA,IAG/Cc,EAACC,EAAoBC,EAAA,CACnBlB,UAAWA,EACXmB,MAAO,CACLjB,WAAYK,EACZH,YAAaS,IAGd,CAAAd,SAAAA,IAGP,EAEMkB,EAAuBG,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","extractNumericValue","margin","value","parseFloat","isNaN","marginLeftValue","finalMarginLeft","positionType","position","isOpen","concat","width","marginRightValue","finalMarginRight","console","log","_jsx","StyledContentWrapper","__assign","style","styled","div","templateObject_1","__makeTemplateObject"],"mappings":"sWAWO,MAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAASF,EAAAE,UACTC,eAAAC,OAAa,IAAAD,EAAA,QACbE,EAAAL,EAAAM,YAAAA,OAAW,IAAAD,EAAG,MAAKA,EAEXE,EAAWC,WAIbC,EAAsB,SAACC,GAC3B,IAAMC,EAAQC,WAAWF,GACzB,OAAOG,MAAMF,GAAS,EAAIA,CAC5B,EAGMG,EAAkBL,EAAoBL,GACtCW,EACoB,aAAxBR,EAAOS,cAAmD,SAApBT,EAAOU,UAAuBV,EAAOW,OACvE,GAAGC,OAAAL,EAAkBP,EAAOa,MAAS,MACrChB,EAGAiB,EAAmBZ,EAAoBH,GACvCgB,EACoB,aAAxBf,EAAOS,cAAmD,UAApBT,EAAOU,UAAwBV,EAAOW,OACxE,GAAGC,OAAAE,EAAmBd,EAAOa,MAAS,MACtCd,EAIN,OAFAiB,QAAQC,IAAI,CAAET,gBAAeA,EAAER,OAAMA,EAAEH,WAAUA,IAG/CqB,EAACC,EAAoBC,EAAA,CACnBzB,UAAWA,EACX0B,MAAO,CACLxB,WAAYW,EACZT,YAAagB,IAGd,CAAArB,SAAAA,IAGP,EAEMyB,EAAuBG,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,8GAAA,CAAA"}