@bothub-chat/ui 2.17.3 → 2.17.4-develop-b4ef95c0-c364-45d4-97fe-0f731fcedbf7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useTransition as
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useTransition as l}from"@react-spring/web";import{ModalStyled as o,ModalWindow as i,ModalWindowBody as n,ModalTitle as c,ModalCloseButton as s,ModalCloseButtonIcon as t,ModalWindowBodyContent as a,ModalWindowBodyScrollbarWrapper as d,ModalContent as m}from"./styled.js";import{Backdrop as p}from"../backdrop/index.js";import{Portal as h}from"../portal/index.js";const f=({open:f,title:u=null,scrollbar:b=!1,children:j,onClose:x,images:y,className:g})=>{let k;const w=l(f,{from:{opacity:0,transform:"scale(0.9)"},enter:{opacity:1,transform:"scale(1)"},config:{duration:200}});return k=f?r(o,{children:[e(p,{open:f,onClick:x}),w(((l,o)=>o&&r(i,{style:l,className:g,children:[y,r(n,{children:[u?e(c,{children:u}):null,e(s,{onClick:x,children:e(t,{size:24})}),e(a,{children:e(d,{overflow:b?"auto":"visible",disabled:!b,disableShadows:!b,children:e(m,{children:j})})})]})]})))]}):null,e(h,{children:k})};export{f as Modal};
|
|
Binary file
|