@zealicsolutions/web-ui 1.0.53-test.8 → 1.0.54
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/components/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/cjs/containers/types/moleculeItemTypes.d.ts +9 -3
- package/dist/cjs/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/cjs/contexts/LayoutContext/LayoutContext.d.ts +6 -1
- package/dist/cjs/contexts/LayoutContext/LayoutContextProvider.d.ts +2 -0
- package/dist/cjs/index.js +1568 -1568
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Avatar/Avatar.stories.d.ts +6 -17
- package/dist/cjs/molecules/ContentWrapper/ContentWrapper.d.ts +3 -0
- package/dist/cjs/molecules/ContentWrapper/ContentWrapper.stories.d.ts +4 -0
- package/dist/cjs/molecules/Drawer/styles.d.ts +10 -3
- package/dist/cjs/molecules/Drawer/types.d.ts +27 -2
- package/dist/esm/components/Avatar/Avatar.js +1 -1
- package/dist/esm/components/Buttons/IconButton.js +1 -1
- package/dist/esm/components/Circle/Circle.js +1 -1
- package/dist/esm/components/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/RichTextViewer.js +1 -1
- package/dist/esm/components/RichTextViewer/RichTextViewer.js.map +1 -1
- package/dist/esm/components/Toast/ToastContent.js +1 -1
- package/dist/esm/containers/Container.js +1 -1
- package/dist/esm/containers/ContainerStoriesComponent.js +1 -1
- package/dist/esm/containers/FormContainer.js +1 -1
- package/dist/esm/containers/FormStepContainer.js +1 -1
- package/dist/esm/containers/OrganismItem.js +1 -1
- package/dist/esm/containers/hooks/useStateListenerValue.js +1 -1
- package/dist/esm/containers/hooks/useStateModifierHandler.js +1 -1
- package/dist/esm/containers/types/moleculeItemTypes.d.ts +9 -3
- package/dist/esm/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/esm/contexts/ApiContext/queries/useDataModelFieldOptions.js +1 -1
- package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.js +1 -1
- package/dist/esm/contexts/FormStepContext/FormStepContextProvider.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContext.d.ts +6 -1
- 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 +2 -0
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js.map +1 -1
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/molecules/Accordion/Accordion.js +1 -1
- package/dist/esm/molecules/Avatar/Avatar.js +1 -1
- package/dist/esm/molecules/Avatar/Avatar.stories.d.ts +6 -17
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
- package/dist/esm/molecules/Checklist/Checklist.js +1 -1
- package/dist/esm/molecules/Consent/ConsentCapture.js +1 -1
- package/dist/esm/molecules/Consent/ConsentMolecule.js +1 -1
- package/dist/esm/molecules/ContentWrapper/ContentWrapper.d.ts +3 -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 +4 -0
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
- package/dist/esm/molecules/CustomValidation/CustomValidation.js +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js +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 +10 -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 +27 -2
- package/dist/esm/molecules/EmailInputField/EmailInputField.js +1 -1
- package/dist/esm/molecules/Menu/Menu.js +1 -1
- package/dist/esm/molecules/NumericInputField/NumericInputField.js +1 -1
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
- package/dist/esm/molecules/PdfDocument/PdfDocument.js +1 -1
- package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js +1 -1
- package/dist/esm/molecules/Rating/Rating.js +1 -1
- package/dist/esm/molecules/Select/Select.js +1 -1
- package/dist/esm/molecules/Slider/Slider.js +1 -1
- package/dist/esm/molecules/SpeedDial/SpeedDial.js +1 -1
- package/dist/esm/molecules/Stepper/Stepper.js +1 -1
- package/dist/esm/molecules/Switch/Switch.js +1 -1
- package/dist/esm/molecules/Tabs/Tabs.js +1 -1
- package/dist/esm/molecules/ZealUIModal/ZealUIModal.js +1 -1
- package/dist/index.d.ts +48 -7
- package/package.json +1 -2
@@ -1,11 +1,16 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export interface DrawerState {
|
3
3
|
width: number;
|
4
|
-
position: 'left' | 'right';
|
4
|
+
position: 'left' | 'right' | 'top' | 'bottom';
|
5
5
|
isOpen: boolean;
|
6
|
+
positionType?: 'absolute' | 'normal';
|
6
7
|
}
|
7
8
|
export interface LayoutContextType {
|
8
9
|
drawer: DrawerState;
|
9
10
|
updateDrawer: (props: Partial<DrawerState>) => void;
|
11
|
+
drawerContainerRef?: Element | null;
|
12
|
+
setDrawerContainerRef?: (ref: Element | null) => void;
|
13
|
+
headerHeight?: string;
|
14
|
+
setHeaderHeight?: (height: string) => void;
|
10
15
|
}
|
11
16
|
export declare const LayoutContext: import("react").Context<LayoutContextType>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{createContext as
|
1
|
+
import{createContext as e}from"react";var r=e({drawer:{width:0,position:"right",isOpen:!1,positionType:"normal"},updateDrawer:function(){},drawerContainerRef:void 0,setDrawerContainerRef:function(){},headerHeight:"0px",setHeaderHeight:function(){}});export{r 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","updateDrawer"],"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"],"mappings":"sCAqBO,IAAMA,EAAgBC,EAAiC,CAC5DC,OAAQ,CAAEC,MAAO,EAAGC,SAAU,QAASC,QAAQ,EAAOC,aAAc,UACpEC,aAAc,WAAQ,EACtBC,wBAAoBC,EACpBC,sBAAuB,WAAQ,EAC/BC,aAAc,MACdC,gBAAiB,WAAQ"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
2
2
|
export interface LayoutProviderProps extends PropsWithChildren {
|
3
|
+
layoutPosition?: 'normal' | 'absolute';
|
4
|
+
headerHeight?: string;
|
3
5
|
drawerMaxWidthPercent?: number;
|
4
6
|
}
|
5
7
|
export declare const LayoutProvider: React.FC<LayoutProviderProps>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as
|
1
|
+
import{__assign as i}from"../../node_modules/tslib/tslib.es6.js";import{jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as e,useRef as r,useEffect as n,useMemo as o}from"react";import{LayoutContext as d}from"./LayoutContext.js";var u=function(u){var a=u.children,s=u.layoutPosition,c=void 0===s?"normal":s,h=u.drawerMaxWidthPercent,p=void 0===h?80:h,f=u.headerHeight,v=void 0===f?"0px":f,l=e({width:0,position:"right",isOpen:!1,positionType:c}),m=l[0],w=l[1],y=r(null),x=e(null),O=x[0],T=x[1];n((function(){w((function(t){return i(i({},t),{positionType:c})}))}),[c]),n((function(){if(y.current){var t=function(){var t;if(m.isOpen){var e=(null===(t=y.current)||void 0===t?void 0:t.clientWidth)||0,r=Math.floor(e*(p/100));m.width>r&&w((function(t){return i(i({},t),{width:r})}))}};t();var e=new ResizeObserver((function(){t()}));return e.observe(y.current),function(){e.disconnect()}}}),[m.isOpen,m.width,p]);var j=o((function(){return function(t){w((function(e){var r=void 0!==t.width?t.width:e.width;if(y.current&&(t.isOpen||e.isOpen)){var n=y.current.clientWidth,o=Math.floor(n*(p/100));r=Math.min(r,o)}var d=void 0!==t.positionType?t.positionType:e.positionType;return i(i(i({},e),t),{width:r,positionType:d})}))}}),[p]),b=o((function(){return{drawer:m,updateDrawer:j,drawerContainerRef:O,setDrawerContainerRef:T,headerHeight:v}}),[m,j,O,v]);return t(d.Provider,i({value:b},{children:t("div",i({ref:y,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"}},{children:a}))}))};export{u 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","
|
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","useState","width","position","isOpen","positionType","drawer","setDrawer","containerRef","useRef","_f","drawerContainerRef","setDrawerContainerRef","useEffect","current","__assign","constrainDrawerWidth","containerWidth","clientWidth","maxWidth","Math","floor","resizeObserver","ResizeObserver","observe","disconnect","updateDrawer","useMemo","props","newWidth","undefined","min","newPositionType","contextValue","_jsx","Layout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