profinansy-ui-lib 3.8.17 → 3.8.18

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(M,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}},Ch=(e,t)=>{const[n,r]=m.useState(!1),[o,i]=m.useState(0),a=m.useRef(null);return m.useEffect(()=>{e&&t&&r(!0)},[e,t]),m.useEffect(()=>{if(console.log("ref",!a.current),!n||!a.current)return;const l=new ResizeObserver(()=>{console.log("here"),i(a.current.clientHeight)});return l.observe(a.current),()=>{l.disconnect()}},[n]),{bottomRef:a,bottomHeight:o}},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(vh,{...e,onClose:o,animation:t,children:r}):null},vh=({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:L})=>{const S=()=>{b||D()},D=()=>{e&&e()};vi(S);const{isExistStack:j}=gh(),{bottomHeight:B,bottomRef:R}=Ch(w,L),{mode:V}=te();return s.jsx(Qr,{id:$,children:s.jsx(h.ThemeProvider,{theme:J[V],children:s.jsxs(eh,{className:Be(l,"modal-wrapper",C),$open:v,style:u,$isOverflowAuto:y,children:[!j&&s.jsx(th,{className:f,onClick:S,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:B,$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:R,children:w})]})})]})})})},bh=h.styled.div`
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}},Ch=(e,t)=>{const[n,r]=m.useState(!1),[o,i]=m.useState(0),a=m.useRef(null);return m.useEffect(()=>{e&&t&&r(!0)},[e,t]),m.useEffect(()=>{if(!n||!a.current)return;const l=new ResizeObserver(()=>{i(a.current.clientHeight)});return l.observe(a.current),()=>{l.disconnect()}},[n]),{bottomRef:a,bottomHeight:o}},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(vh,{...e,onClose:o,animation:t,children:r}):null},vh=({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:L})=>{const S=()=>{b||D()},D=()=>{e&&e()};vi(S);const{isExistStack:j}=gh(),{bottomHeight:B,bottomRef:R}=Ch(w,L),{mode:V}=te();return s.jsx(Qr,{id:$,children:s.jsx(h.ThemeProvider,{theme:J[V],children:s.jsxs(eh,{className:Be(l,"modal-wrapper",C),$open:v,style:u,$isOverflowAuto:y,children:[!j&&s.jsx(th,{className:f,onClick:S,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:B,$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:R,children:w})]})})]})})})},bh=h.styled.div`
578
578
  display: flex;
579
579
  font-family: 'Manrope', sans-serif;
580
580
  max-width: 900px;