@wistia/vhs 2.71.1 → 2.72.0

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.71.1
3
+ * @license @wistia/vhs v2.72.0
4
4
  *
5
5
  * Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2418,7 +2418,7 @@ var yM=Object.create;var Kl=Object.defineProperty;var bM=Object.getOwnPropertyDe
2418
2418
 
2419
2419
  /* latest versions of FF, Safari, and Chrome support dynamic viewport units; 100vh left as a fallback */
2420
2420
  height: 100vh;
2421
- overflow: auto;
2421
+ overflow: ${({overflow:e})=>e??"auto"};
2422
2422
  position: relative;
2423
2423
  width: 100vw;
2424
2424
 
@@ -2439,7 +2439,7 @@ var yM=Object.create;var Kl=Object.defineProperty;var bM=Object.getOwnPropertyDe
2439
2439
  display: flex;
2440
2440
  flex-direction: column;
2441
2441
  width: 100%;
2442
- `,ose=e=>(0,to.isNotNil)(e)&&(0,to.hasKey)(e,"current")&&(0,to.isNotNil)(e.current),ise=e=>{dO(()=>{let t=document.activeElement;if(ose(e)){let r=e.current;(0,to.isNotNil)(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},gO=ese(({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)=>{ise(d);let m=mO(null),g=eh(s,{focusSelector:a?.current});return Lu(m,()=>{u&&l&&u()}),Eh(p.isOpen),Dh("Escape",v=>{u&&u(),v.preventDefault()}),Gs(fO,{value:u,children:Gs(rse,{alignHorizontal:e,alignVertical:t,children:Gs(uO,{ref:g,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:c,...p,children:Gs(nse,{ref:m,children:r})})})})}),vO=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),(0,to.isNotUndefined)(e.className)&&n.classList.add(e.className),(0,to.isNotUndefined)(t)&&(n.id=t);let o=mO(n);return dO(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),tse(Gs(zu,{children:e.isOpen?Gs(gO,{ref:o,...r}):null}),o.current)};vO.displayName="Modal_VHS";gO.displayName="ModalContent";i();import O1 from"styled-components";import{jsx as yO}from"react/jsx-runtime";var ase=O1.div`
2442
+ `,ose=e=>(0,to.isNotNil)(e)&&(0,to.hasKey)(e,"current")&&(0,to.isNotNil)(e.current),ise=e=>{dO(()=>{let t=document.activeElement;if(ose(e)){let r=e.current;(0,to.isNotNil)(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},gO=ese(({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,overflow:p="auto",...d},m)=>{ise(m);let g=mO(null),v=eh(s,{focusSelector:a?.current});return Lu(g,()=>{u&&l&&u()}),Eh(d.isOpen),Dh("Escape",h=>{u&&u(),h.preventDefault()}),Gs(fO,{value:u,children:Gs(rse,{alignHorizontal:e,alignVertical:t,children:Gs(uO,{ref:v,"aria-modal":"true",fullHeight:o,overflow:p,role:"dialog",tabIndex:-1,width:c,...d,children:Gs(nse,{ref:g,children:r})})})})}),vO=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),(0,to.isNotUndefined)(e.className)&&n.classList.add(e.className),(0,to.isNotUndefined)(t)&&(n.id=t);let o=mO(n);return dO(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),tse(Gs(zu,{children:e.isOpen?Gs(gO,{ref:o,...r}):null}),o.current)};vO.displayName="Modal_VHS";gO.displayName="ModalContent";i();import O1 from"styled-components";import{jsx as yO}from"react/jsx-runtime";var ase=O1.div`
2443
2443
  align-items: center;
2444
2444
  display: flex;
2445
2445
  padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};