@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.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Drawer/styles.d.ts +8 -3
- package/dist/cjs/molecules/Drawer/types.d.ts +5 -0
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.js +1 -1
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.js.map +1 -1
- package/dist/esm/molecules/Drawer/Drawer.js +1 -1
- package/dist/esm/molecules/Drawer/Drawer.js.map +1 -1
- package/dist/esm/molecules/Drawer/styles.d.ts +8 -3
- package/dist/esm/molecules/Drawer/styles.js +1 -1
- package/dist/esm/molecules/Drawer/styles.js.map +1 -1
- package/dist/esm/molecules/Drawer/types.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
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"}
|