@wistia/vhs 2.49.0-beta.e6d0ffaf.d6ed324 → 2.49.0-beta.f8276aeb.8cacb8e

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.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license VHS v2.49.0-beta.e6d0ffaf.d6ed324
3
+ * @license VHS v2.49.0-beta.f8276aeb.8cacb8e
4
4
  *
5
5
  * Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2430,7 +2430,7 @@
2430
2430
  display: flex;
2431
2431
  flex-direction: column;
2432
2432
  width: 100%;
2433
- `,uj=e=>{(0,Mi.useEffect)(()=>{let t=document.activeElement;return e.current.focus(),()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},GE=({alignHorizontal:e="center",alignVertical:t="center",children:r,className:n,fullHeight:o=!1,initialFocusRef:a,onRequestClose:s,shouldCloseOnClickOutside:u=!0,width:l,ref:c,...p})=>{uj(c);let m=(0,Mi.useRef)(null),g=ul(!0,{focusSelector:a?.current});return Wa(m,()=>{s&&u&&s()}),Jl(p.isOpen),Xl("Escape",h=>{s&&s(),h.preventDefault()}),(0,ma.jsx)(VE,{value:s,children:(0,ma.jsx)(ij,{alignHorizontal:e,alignVertical:t,children:(0,ma.jsx)(NE,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...p,children:(0,ma.jsx)(sj,{ref:m,children:r})})})})},lj=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),ee(e.className)&&n.classList.add(e.className),ee(e.id)&&(n.id=e.id);let o=(0,Mi.useRef)(n);return(0,Mi.useEffect)(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),(0,HE.createPortal)((0,ma.jsx)(ws,{children:e.isOpen?(0,ma.jsx)(GE,{ref:o,...r}):null}),o.current)};i();var Pu=_(require("styled-components"));var L3=require("react/jsx-runtime"),cj=Pu.default.div`
2433
+ `,uj=e=>{(0,Mi.useEffect)(()=>{let t=document.activeElement;return e.current.focus(),()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},GE=({alignHorizontal:e="center",alignVertical:t="center",children:r,className:n,fullHeight:o=!1,initialFocusRef:a,onRequestClose:s,shouldCloseOnClickOutside:u=!0,width:l,ref:c,...p})=>{uj(c);let m=(0,Mi.useRef)(null),g=ul(!0,{focusSelector:a?.current});return Wa(m,()=>{s&&u&&s()}),Jl(p.isOpen),Xl("Escape",h=>{s&&s(),h.preventDefault()}),(0,ma.jsx)(VE,{value:s,children:(0,ma.jsx)(ij,{alignHorizontal:e,alignVertical:t,children:(0,ma.jsx)(NE,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...p,children:(0,ma.jsx)(sj,{ref:m,children:r})})})})},lj=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),ee(e.className)&&n.classList.add(e.className),ee(t)&&(n.id=t);let o=(0,Mi.useRef)(n);return(0,Mi.useEffect)(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),(0,HE.createPortal)((0,ma.jsx)(ws,{children:e.isOpen?(0,ma.jsx)(GE,{ref:o,...r}):null}),o.current)};i();var Pu=_(require("styled-components"));var L3=require("react/jsx-runtime"),cj=Pu.default.div`
2434
2434
  align-items: center;
2435
2435
  display: flex;
2436
2436
  padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};