@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.mjs 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 @@ var CE=Object.create;var Xc=Object.defineProperty;var xE=Object.getOwnPropertyDe
2430
2430
  display: flex;
2431
2431
  flex-direction: column;
2432
2432
  width: 100%;
2433
- `,GK=e=>{Ew(()=>{let t=document.activeElement;return e.current.focus(),()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},_K=({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})=>{GK(c);let m=Dw(null),g=t1(!0,{focusSelector:a?.current});return di(m,()=>{s&&u&&s()}),A1(p.isOpen),S1("Escape",h=>{s&&s(),h.preventDefault()}),Ia(xw,{value:s,children:Ia(zK,{alignHorizontal:e,alignVertical:t,children:Ia(yw,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...p,children:Ia(HK,{ref:m,children:r})})})})},GIe=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),Z(e.className)&&n.classList.add(e.className),Z(e.id)&&(n.id=e.id);let o=Dw(n);return Ew(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),VK(Ia(mi,{children:e.isOpen?Ia(_K,{ref:o,...r}):null}),o.current)};i();import Fc from"styled-components";import{jsx as Tw}from"react/jsx-runtime";var YIe=Fc.div`
2433
+ `,GK=e=>{Ew(()=>{let t=document.activeElement;return e.current.focus(),()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},_K=({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})=>{GK(c);let m=Dw(null),g=t1(!0,{focusSelector:a?.current});return di(m,()=>{s&&u&&s()}),A1(p.isOpen),S1("Escape",h=>{s&&s(),h.preventDefault()}),Ia(xw,{value:s,children:Ia(zK,{alignHorizontal:e,alignVertical:t,children:Ia(yw,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...p,children:Ia(HK,{ref:m,children:r})})})})},GIe=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),Z(e.className)&&n.classList.add(e.className),Z(t)&&(n.id=t);let o=Dw(n);return Ew(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),VK(Ia(mi,{children:e.isOpen?Ia(_K,{ref:o,...r}):null}),o.current)};i();import Fc from"styled-components";import{jsx as Tw}from"react/jsx-runtime";var YIe=Fc.div`
2434
2434
  align-items: center;
2435
2435
  display: flex;
2436
2436
  padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};