@wistia/vhs 2.66.3 → 2.66.4

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 @wistia/vhs v2.66.3
3
+ * @license @wistia/vhs v2.66.4
4
4
  *
5
5
  * Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2441,7 +2441,7 @@ var UO=Object.create;var Nl=Object.defineProperty;var KO=Object.getOwnPropertyDe
2441
2441
  display: flex;
2442
2442
  flex-direction: column;
2443
2443
  width: 100%;
2444
- `,Mae=e=>(0,Xn.isNotNil)(e)&&(0,Xn.hasKey)(e,"current")&&(0,Xn.isNotNil)(e.current),Iae=e=>{HB(()=>{let t=document.activeElement;if(Mae(e)){let r=e.current;(0,Xn.isNotNil)(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},_B=Rae(({alignHorizontal:e="center",alignVertical:t="center",children:r,className:n,fullHeight:o=!1,initialFocusRef:a,onRequestClose:s,shouldCloseOnClickOutside:u=!0,width:l,...c},p)=>{Iae(p);let d=GB(null),h=k0(!0,{focusSelector:a?.current});return Au(d,()=>{s&&u&&s()}),ah(c.isOpen),ih("Escape",g=>{s&&s(),g.preventDefault()}),Ms($B,{value:s,children:Ms(Bae,{alignHorizontal:e,alignVertical:t,children:Ms(NB,{ref:h,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...c,children:Ms(Oae,{ref:d,children:r})})})})}),WB=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),(0,Xn.isNotUndefined)(e.className)&&n.classList.add(e.className),(0,Xn.isNotUndefined)(t)&&(n.id=t);let o=GB(n);return HB(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),Fae(Ms(Fu,{children:e.isOpen?Ms(_B,{ref:o,...r}):null}),o.current)};WB.displayName="Modal_VHS";_B.displayName="ModalContent";i();import b1 from"styled-components";import{jsx as UB}from"react/jsx-runtime";var kae=b1.div`
2444
+ `,Mae=e=>(0,Xn.isNotNil)(e)&&(0,Xn.hasKey)(e,"current")&&(0,Xn.isNotNil)(e.current),Iae=e=>{HB(()=>{let t=document.activeElement;if(Mae(e)){let r=e.current;(0,Xn.isNotNil)(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},_B=Rae(({alignHorizontal:e="center",alignVertical:t="center",children:r,className:n,fullHeight:o=!1,initialFocusRef:a,shouldTrapFocus:s=!0,onRequestClose:u,shouldCloseOnClickOutside:l=!0,width:c,...p},d)=>{Iae(d);let h=GB(null),g=k0(s,{focusSelector:a?.current});return Au(h,()=>{u&&l&&u()}),ah(p.isOpen),ih("Escape",v=>{u&&u(),v.preventDefault()}),Ms($B,{value:u,children:Ms(Bae,{alignHorizontal:e,alignVertical:t,children:Ms(NB,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:c,...p,children:Ms(Oae,{ref:h,children:r})})})})}),WB=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),(0,Xn.isNotUndefined)(e.className)&&n.classList.add(e.className),(0,Xn.isNotUndefined)(t)&&(n.id=t);let o=GB(n);return HB(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),Fae(Ms(Fu,{children:e.isOpen?Ms(_B,{ref:o,...r}):null}),o.current)};WB.displayName="Modal_VHS";_B.displayName="ModalContent";i();import b1 from"styled-components";import{jsx as UB}from"react/jsx-runtime";var kae=b1.div`
2445
2445
  align-items: center;
2446
2446
  display: flex;
2447
2447
  padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};