profinansy-ui-lib 3.8.14 → 3.8.15
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.
|
@@ -574,7 +574,7 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(L,G){{if(
|
|
|
574
574
|
Copyright (c) 2018 Jed Watson.
|
|
575
575
|
Licensed under the MIT License (MIT), see
|
|
576
576
|
http://jedwatson.github.io/classnames
|
|
577
|
-
*/var Ol;function hh(){return Ol||(Ol=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ea)),ea.exports}var mh=hh();const Be=y9(mh),gh=()=>{const[e,t]=m.useState(!1);return m.useEffect(()=>{const n=document.getElementById(x3);if(!n)return;const r=n.children[n.children.length-1];if(!r)return;const o=Array.from(r.children).filter(a=>a instanceof HTMLDivElement),i=o[o.length-1];return t(!0),i.style.display="none",()=>{i&&(i.style.display="flex")}},[]),{isExistStack:e}},x3="react-modals",Nt=e=>{const{animation:t,showModal:n,content:r,handleClose:o}=bi({isOpen:e.open,children:e.children,onClose:e.onClose});return n?s.jsx(Ch,{...e,onClose:o,animation:t,children:r}):null},Ch=({onClose:e,children:t,title:n,subtitle:r,showCloseButton:o=!0,styleContent:i,styleContentInside:a,classNameWrapper:l,styleBackground:c,styleWrapper:u,classNameBackground:f,classNameContent:p,className:C,classNameHeader:g,animation:v,disableClosing:b=!1,titlePosition:x="left",isOverflowAuto:y=!1,rightContent:E,bottomContent:w,adaptiveRightContent:I,maxWidth:k,containerId:$=x3,open:M})=>{const[S,D]=m.useState(0),j=m.useRef(null),F=()=>{b||R()};
|
|
577
|
+
*/var Ol;function hh(){return Ol||(Ol=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ea)),ea.exports}var mh=hh();const Be=y9(mh),gh=()=>{const[e,t]=m.useState(!1);return m.useEffect(()=>{const n=document.getElementById(x3);if(!n)return;const r=n.children[n.children.length-1];if(!r)return;const o=Array.from(r.children).filter(a=>a instanceof HTMLDivElement),i=o[o.length-1];return t(!0),i.style.display="none",()=>{i&&(i.style.display="flex")}},[]),{isExistStack:e}},x3="react-modals",Nt=e=>{const{animation:t,showModal:n,content:r,handleClose:o}=bi({isOpen:e.open,children:e.children,onClose:e.onClose});return n?s.jsx(Ch,{...e,onClose:o,animation:t,children:r}):null},Ch=({onClose:e,children:t,title:n,subtitle:r,showCloseButton:o=!0,styleContent:i,styleContentInside:a,classNameWrapper:l,styleBackground:c,styleWrapper:u,classNameBackground:f,classNameContent:p,className:C,classNameHeader:g,animation:v,disableClosing:b=!1,titlePosition:x="left",isOverflowAuto:y=!1,rightContent:E,bottomContent:w,adaptiveRightContent:I,maxWidth:k,containerId:$=x3,open:M})=>{const[S,D]=m.useState(0),j=m.useRef(null),F=()=>{b||R()};console.log("common",!M||!j.current||!w),console.log("open",!M),console.log("ref",!j.current),console.log("bottomContent",!w),console.log("bottomContent",w),m.useLayoutEffect(()=>{if(!M||!j.current||!w)return;const B=new ResizeObserver(()=>{console.log("here"),D(j.current.clientHeight)});return B.observe(j.current),()=>{B.disconnect()}},[j.current,w,M]);const R=()=>{e&&e()};vi(F);const{isExistStack:V}=gh(),{mode:H}=te();return s.jsx(Qr,{id:$,children:s.jsx(h.ThemeProvider,{theme:J[H],children:s.jsxs(eh,{className:Be(l,"modal-wrapper",C),$open:v,style:u,$isOverflowAuto:y,children:[!V&&s.jsx(th,{className:f,onClick:F,style:c}),s.jsx(nh,{children:s.jsxs(rh,{$isOverflowAuto:y,$maxWidth:k,$open:v,$showCloseButton:o,className:Be(p,"modal-content"),style:i,children:[o&&s.jsx(uh,{onClick:e,children:s.jsx(b3,{className:"modal-closeBtn"})}),s.jsxs(oh,{$bottomHeight:S,$isOverflowAuto:y,style:a,className:"modal-contentInside",children:[!!n&&s.jsxs(ih,{className:Be(g,"modal-header"),children:[s.jsxs(ah,{adaptiveRightContent:I,children:[s.jsx(sh,{titlePosition:x,tag:"h5",variant:"header5-Bold",children:n}),E||null]}),!!r&&s.jsx(lh,{tag:"span",variant:"text-Regular",children:r})]}),t]}),w&&s.jsx(ch,{ref:j,children:w})]})})]})})})},vh=h.styled.div`
|
|
578
578
|
display: flex;
|
|
579
579
|
font-family: 'Manrope', sans-serif;
|
|
580
580
|
max-width: 900px;
|