profinansy-ui-lib 3.8.19 → 3.8.22
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.
|
@@ -4,7 +4,7 @@ export declare const Wrapper: import("styled-components/dist/types").IStyledComp
|
|
|
4
4
|
$isOverflowAuto: boolean;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const Layout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const CenterBlock: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
8
|
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
9
|
$open: boolean;
|
|
10
10
|
$showCloseButton: boolean;
|
|
@@ -471,7 +471,8 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
471
471
|
justify-content: center;
|
|
472
472
|
`,rh=h.styled.div`
|
|
473
473
|
position: relative;
|
|
474
|
-
|
|
474
|
+
display: flex;
|
|
475
|
+
flex-direction: column;
|
|
475
476
|
border-radius: 24px;
|
|
476
477
|
box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.2);
|
|
477
478
|
background: ${e=>e.theme.background.content};
|
|
@@ -485,7 +486,6 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
485
486
|
`};
|
|
486
487
|
@media (max-width: ${ae}px) {
|
|
487
488
|
border-radius: 24px 24px 0 0;
|
|
488
|
-
padding: 16px 8px;
|
|
489
489
|
max-width: 100%;
|
|
490
490
|
width: 100%;
|
|
491
491
|
position: fixed;
|
|
@@ -498,14 +498,14 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
498
498
|
`};
|
|
499
499
|
}
|
|
500
500
|
`,oh=h.styled.div`
|
|
501
|
-
height: 100%;
|
|
502
|
-
max-height: ${e=>e.$isOverflowAuto?"auto":"calc(100dvh - 78px)"};
|
|
503
501
|
overflow-y: ${e=>e.$isOverflowAuto?"visible":"auto"};
|
|
504
502
|
padding: 0 8px;
|
|
503
|
+
margin: 24px 16px;
|
|
504
|
+
flex: 1;
|
|
505
505
|
${Et};
|
|
506
506
|
@media (max-width: ${ae}px) {
|
|
507
|
-
max-height: calc(90dvh - 48px);
|
|
508
507
|
overflow-y: auto;
|
|
508
|
+
margin: 16px 8px;
|
|
509
509
|
${m3}
|
|
510
510
|
}
|
|
511
511
|
`,ih=h.styled.div`
|
|
@@ -540,10 +540,10 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
540
540
|
position: sticky;
|
|
541
541
|
border-top: 0.5px solid ${e=>e.theme.stroke.tertiary};
|
|
542
542
|
background: ${e=>e.theme.background.content};
|
|
543
|
-
padding
|
|
544
|
-
|
|
543
|
+
padding: 24px;
|
|
544
|
+
border-radius: 0 0 24px 24px;
|
|
545
545
|
@media (max-width: ${ae}px) {
|
|
546
|
-
padding
|
|
546
|
+
padding: 16px;
|
|
547
547
|
}
|
|
548
548
|
`,uh=h.styled.button`
|
|
549
549
|
display: flex;
|
|
@@ -573,7 +573,7 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
573
573
|
Copyright (c) 2018 Jed Watson.
|
|
574
574
|
Licensed under the MIT License (MIT), see
|
|
575
575
|
http://jedwatson.github.io/classnames
|
|
576
|
-
*/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})=>{const L=()=>{b||S()},S=()=>{e&&e()};vi(L);const{isExistStack:D}=gh(),{mode:j}=te();return s.jsx(Q1,{id:$,children:s.jsx(h.ThemeProvider,{theme:J[j],children:s.jsxs(eh,{className:Be(l,"modal-wrapper",C),$open:v,style:u,$isOverflowAuto:y,children:[!D&&s.jsx(th,{className:f,onClick:L,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,{$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,{children:w})]})
|
|
576
|
+
*/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})=>{const L=()=>{b||S()},S=()=>{e&&e()};vi(L);const{isExistStack:D}=gh(),{mode:j}=te();return s.jsx(Q1,{id:$,children:s.jsx(h.ThemeProvider,{theme:J[j],children:s.jsxs(eh,{className:Be(l,"modal-wrapper",C),$open:v,style:u,$isOverflowAuto:y,children:[!D&&s.jsx(th,{className:f,onClick:L,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,{$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,{className:"modal-bottomContent",children:w})]})})]})})})},vh=h.styled.div`
|
|
577
577
|
display: flex;
|
|
578
578
|
font-family: 'Manrope', sans-serif;
|
|
579
579
|
max-width: 900px;
|