@zealicsolutions/web-ui 1.0.80-beta.6 → 1.0.80-beta.8
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/contexts/LayoutContext/LayoutContext.d.ts +1 -0
- package/dist/cjs/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Drawer/styles.d.ts +4 -47
- package/dist/esm/contexts/LayoutContext/LayoutContext.d.ts +1 -0
- package/dist/esm/contexts/LayoutContext/LayoutContext.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContext.js.map +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.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 +4 -47
- package/dist/esm/molecules/Drawer/styles.js +1 -1
- package/dist/esm/molecules/Drawer/styles.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
@@ -35,27 +35,10 @@ export declare const BaseDrawer: import("@emotion/styled").StyledComponent<Drawe
|
|
35
35
|
marginLeft?: string | undefined;
|
36
36
|
positionType?: "absolute" | "normal" | undefined;
|
37
37
|
}, {}, {}>;
|
38
|
-
export declare
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
bottom?: string | number;
|
43
|
-
elevation?: number;
|
44
|
-
borderRadiusTopLeft?: string | number;
|
45
|
-
borderRadiusTopRight?: string | number;
|
46
|
-
borderRadiusBottomLeft?: string | number;
|
47
|
-
borderRadiusBottomRight?: string | number;
|
48
|
-
borderRadius?: string | number;
|
49
|
-
borderWidth?: string | number;
|
50
|
-
borderColor?: string;
|
51
|
-
borderStyle?: 'solid' | 'dashed' | 'dotted' | 'none';
|
52
|
-
backgroundColor?: string;
|
53
|
-
paddingTop?: string | number;
|
54
|
-
paddingRight?: string | number;
|
55
|
-
paddingBottom?: string | number;
|
56
|
-
paddingLeft?: string | number;
|
57
|
-
padding?: string | number;
|
58
|
-
};
|
38
|
+
export declare const DrawerWithCloseIcon: import("@emotion/styled").StyledComponent<{
|
39
|
+
theme?: import("@emotion/react").Theme | undefined;
|
40
|
+
as?: import("react").ElementType<any> | undefined;
|
41
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
59
42
|
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
60
43
|
theme?: import("@emotion/react").Theme | undefined;
|
61
44
|
as?: import("react").ElementType<any> | undefined;
|
@@ -73,29 +56,3 @@ export declare const DrawerItemsList: import("@emotion/styled").StyledComponent<
|
|
73
56
|
} & {
|
74
57
|
gap?: string | number | undefined;
|
75
58
|
}, {}, {}>;
|
76
|
-
export declare type DrawerMenuItemProps = {
|
77
|
-
backgroundColor?: string;
|
78
|
-
paddingTop?: string;
|
79
|
-
paddingRight?: string;
|
80
|
-
paddingBottom?: string;
|
81
|
-
paddingLeft?: string;
|
82
|
-
disabled?: boolean;
|
83
|
-
};
|
84
|
-
export declare const DrawerMenuItem: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
85
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
86
|
-
}, "alignItems" | "action" | "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "disableGutters" | "dense" | "divider" | "selected"> & {
|
87
|
-
theme?: import("@emotion/react").Theme | undefined;
|
88
|
-
} & DrawerMenuItemProps, {}, {}>;
|
89
|
-
export declare type DrawerMenuItemTextProps = {
|
90
|
-
textColor?: string;
|
91
|
-
fontSize?: string;
|
92
|
-
fontWeight?: 'normal' | 'bold';
|
93
|
-
fontFamily?: string;
|
94
|
-
wrap?: boolean;
|
95
|
-
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
96
|
-
};
|
97
|
-
export declare const DrawerMenuItemText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
98
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
99
|
-
}, "maxWidth" | "maxHeight" | "minWidth" | "minHeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "typography" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
100
|
-
theme?: import("@emotion/react").Theme | undefined;
|
101
|
-
} & DrawerMenuItemTextProps, {}, {}>;
|
@@ -12,6 +12,7 @@ export interface LayoutContextType {
|
|
12
12
|
setDrawerContainerRef?: (ref: Element | null) => void;
|
13
13
|
headerHeight?: string;
|
14
14
|
setHeaderHeight?: (height: string) => void;
|
15
|
+
isMobile?: boolean;
|
15
16
|
isMLR?: boolean;
|
16
17
|
}
|
17
18
|
export declare const LayoutContext: import("react").Context<LayoutContextType>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{createContext as e}from"react";var
|
1
|
+
import{createContext as e}from"react";var i=e({drawer:{width:0,position:"right",isOpen:!1,positionType:"normal"},updateDrawer:function(){},drawerContainerRef:void 0,setDrawerContainerRef:function(){},headerHeight:"0px",setHeaderHeight:function(){},isMobile:!1,isMLR:!1});export{i as LayoutContext};
|
2
2
|
//# sourceMappingURL=LayoutContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LayoutContext.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContext.ts"],"sourcesContent":[null],"names":["LayoutContext","createContext","drawer","width","position","isOpen","positionType","updateDrawer","drawerContainerRef","undefined","setDrawerContainerRef","headerHeight","setHeaderHeight","isMLR"],"mappings":"
|
1
|
+
{"version":3,"file":"LayoutContext.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContext.ts"],"sourcesContent":[null],"names":["LayoutContext","createContext","drawer","width","position","isOpen","positionType","updateDrawer","drawerContainerRef","undefined","setDrawerContainerRef","headerHeight","setHeaderHeight","isMobile","isMLR"],"mappings":"sCAuBO,IAAMA,EAAgBC,EAAiC,CAC5DC,OAAQ,CAAEC,MAAO,EAAGC,SAAU,QAASC,QAAQ,EAAOC,aAAc,UACpEC,aAAc,WAAS,EACvBC,wBAAoBC,EACpBC,sBAAuB,WAAS,EAChCC,aAAc,MACdC,gBAAiB,WAAS,EAC1BC,UAAU,EACVC,OAAO"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as i}from"../../node_modules/tslib/tslib.es6.js";import{jsx as
|
1
|
+
import{__assign as i}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{useState as t,useRef as r,useEffect as n,useMemo as o}from"react";import{LayoutContext as d}from"./LayoutContext.js";var s=function(s){var u=s.children,a=s.layoutPosition,c=void 0===a?"normal":a,h=s.drawerMaxWidthPercent,p=void 0===h?80:h,v=s.headerHeight,f=void 0===v?"0px":v,l=s.isMLR,m=void 0!==l&&l,w=s.isMobile,y=void 0!==w&&w,M=t({width:0,position:"right",isOpen:!1,positionType:c}),b=M[0],x=M[1],O=r(null),T=t(null),j=T[0],R=T[1];n((function(){x((function(e){return i(i({},e),{positionType:c})}))}),[c]),n((function(){if(O.current){var e=function(){var e;if(b.isOpen){var t=(null===(e=O.current)||void 0===e?void 0:e.clientWidth)||0,r=Math.floor(t*(p/100));b.width>r&&x((function(e){return i(i({},e),{width:r})}))}};e();var t=new ResizeObserver((function(){e()}));return t.observe(O.current),function(){t.disconnect()}}}),[b.isOpen,b.width,p]);var g=o((function(){return function(e){x((function(t){var r=void 0!==e.width?e.width:t.width;if(O.current&&(e.isOpen||t.isOpen)){var n=O.current.clientWidth,o=Math.floor(n*(p/100));r=Math.min(r,o)}var d=void 0!==e.positionType?e.positionType:t.positionType;return i(i(i({},t),e),{width:r,positionType:d})}))}}),[p]),C=o((function(){return{drawer:b,updateDrawer:g,drawerContainerRef:j,setDrawerContainerRef:R,headerHeight:f,isMobile:y,isMLR:m}}),[b,g,j,f,y,m]);return e(d.Provider,i({value:C},{children:e("div",i({ref:O,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"}},{children:u}))}))};export{s as LayoutProvider};
|
2
2
|
//# sourceMappingURL=LayoutContextProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LayoutContextProvider.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContextProvider.tsx"],"sourcesContent":[null],"names":["LayoutProvider","_a","children","_b","layoutPosition","_c","drawerMaxWidthPercent","_d","headerHeight","_e","isMLR","_f","useState","width","position","isOpen","positionType","drawer","setDrawer","containerRef","useRef","
|
1
|
+
{"version":3,"file":"LayoutContextProvider.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContextProvider.tsx"],"sourcesContent":[null],"names":["LayoutProvider","_a","children","_b","layoutPosition","_c","drawerMaxWidthPercent","_d","headerHeight","_e","isMLR","_f","isMobile","_g","useState","width","position","isOpen","positionType","drawer","setDrawer","containerRef","useRef","_h","drawerContainerRef","setDrawerContainerRef","useEffect","current","__assign","constrainDrawerWidth","containerWidth","clientWidth","maxWidth","Math","floor","resizeObserver","ResizeObserver","observe","disconnect","updateDrawer","useMemo","props","newWidth","undefined","min","newPositionType","contextValue","_jsx","LayoutContext","Provider","value","ref","style","height","overflow"],"mappings":"uSAYO,IAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAAAF,EAAAG,eAAAA,aAAiB,SAAQD,EACzBE,EAAAJ,EAAAK,sBAAAA,OAAqB,IAAAD,EAAG,GAAEA,EAC1BE,EAAAN,EAAAO,aAAAA,aAAe,MAAKD,EACpBE,EAAAR,EAAAS,MAAAA,OAAK,IAAAD,GAAQA,EACbE,EAAgBV,EAAAW,SAAhBA,O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