@purple/phoenix-components 5.28.1 → 5.28.2

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.
@@ -723,7 +723,7 @@
723
723
  right: initial;
724
724
  left: 1rem;
725
725
  }
726
- `,gl=({testId:t="Modal",size:l="md",center:n=!0,animate:i=!0,showCloseButton:r=!0,closeOnOverlayClick:o=!0,container:a,open:C,onClose:d,children:s,...c})=>{const[p,u]=e.useState(C),[g,h]=e.useState(C),m=e.useRef(null);if(e.useEffect((()=>{C?u(!0):(h(!1),i?m.current?.addEventListener("transitionend",(()=>u(!1))):u(!1))}),[C]),e.useEffect((()=>{p&&setTimeout((()=>h(!0)),1)}),[p]),!p&&!C)return null;const D={visible:g,animate:i},f=b.default.createElement(sl,{...D,onClick:e=>{e.stopPropagation(),!m.current?.contains(e.target)&&d&&o&&d()},"data-testid":t},b.default.createElement(cl,{center:n},b.default.createElement(pl,{ref:m,$size:l,my:"3xl",p:"md",...D,...c},r&&b.default.createElement(ul,{minimal:!0,size:"lg",icon:"cross",onClick:d,colorTheme:"neutral"}),s)));return a?H.default.createPortal(f,a):f},hl=w.default(_e)`
726
+ `,gl=({testId:t="Modal",size:l="md",center:n=!0,animate:i=!0,showCloseButton:r=!0,closeOnOverlayClick:o=!0,container:a,open:C,onClose:d,children:s,...c})=>{const[p,u]=e.useState(C),[g,h]=e.useState(C),m=e.useRef(null);if(e.useEffect((()=>{C?u(!0):(h(!1),i?m.current?.addEventListener("transitionend",(()=>u(!1))):u(!1))}),[C]),e.useEffect((()=>{p&&setTimeout((()=>h(!0)),1)}),[p]),!p&&!C)return null;const D={visible:g,animate:i},f=b.default.createElement(sl,{...D,onClick:e=>{e.stopPropagation(),!m.current?.contains(e.target)&&d&&o&&d()},"data-testid":t},b.default.createElement(cl,{center:n},b.default.createElement(pl,{$size:l,my:"3xl",p:"md",...D,...c,ref:m},r&&b.default.createElement(ul,{minimal:!0,size:"lg",icon:"cross",onClick:d,colorTheme:"neutral"}),s)));return a?H.default.createPortal(f,a):f},hl=w.default(_e)`
727
727
  grid-area: button;
728
728
  background: #fff;
729
729
  color: ${({theme:e})=>e.tokens.color.text.primary};