@wistia/vhs 2.75.3-beta.da2566aa.bcdb51e → 2.75.3-beta.ea41a2ac.c4d998e
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/components/Modal/Modal.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v2.75.3-beta.
|
|
3
|
+
* @license @wistia/vhs v2.75.3-beta.ea41a2ac.c4d998e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2476,7 +2476,7 @@ var bO=Object.create;var Eu=Object.defineProperty;var CO=Object.getOwnPropertyDe
|
|
|
2476
2476
|
margin: auto;
|
|
2477
2477
|
}
|
|
2478
2478
|
`}
|
|
2479
|
-
`,Oie=e=>F(e)&&N3(e,"current")&&F(e.current),Mie=e=>{gB(()=>{let t=document.activeElement;if(Oie(e)){let r=e.current;F(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},bB=Tie(({alignHorizontal:e="center",alignVertical:t="center",allowModalToExceedViewportBounds:r=!1,children:n,className:o,fullHeight:a=!1,initialFocusRef:s,
|
|
2479
|
+
`,Oie=e=>F(e)&&N3(e,"current")&&F(e.current),Mie=e=>{gB(()=>{let t=document.activeElement;if(Oie(e)){let r=e.current;F(r)&&r.focus()}return()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},bB=Tie(({alignHorizontal:e="center",alignVertical:t="center",allowModalToExceedViewportBounds:r=!1,children:n,className:o,fullHeight:a=!1,initialFocusRef:s,isOpen:l=!1,shouldTrapFocus:u=!0,onRequestClose:c,shouldCloseOnClickOutside:p=!0,width:d,overflow:h="auto",...g},v)=>{Mie(v);let m=vB(null),y=A0(u,{focusSelector:Q(s)?s:null});return bl(m,()=>{c&&p&&c()}),Q0(l),Z0("Escape",b=>{c&&c(),b.preventDefault()}),xs(mB,{value:c,children:xs(Rie,{$allowModalToExceedViewportBounds:r,alignHorizontal:e,alignVertical:t,children:xs(Bie,{ref:y,$allowModalToExceedViewportBounds:r,$fullHeight:a,$overflow:h,$width:d,"aria-modal":"true",role:"dialog",tabIndex:-1,...g,children:xs(Fie,{ref:m,children:n})})})})}),CB=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),Q(e.className)&&n.classList.add(e.className),Q(t)&&(n.id=t);let o=vB(n);return gB(()=>{let a=o.current;return document.body.appendChild(a),()=>a.remove()},[]),Aie(xs(xl,{children:e.isOpen?xs(bB,{ref:o,...r}):null}),o.current)};CB.displayName="Modal_VHS";bB.displayName="ModalContent";i();import l1 from"styled-components";import{jsx as xB}from"react/jsx-runtime";var Iie=l1.div`
|
|
2480
2480
|
align-items: center;
|
|
2481
2481
|
display: flex;
|
|
2482
2482
|
padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};
|