@wistia/vhs 2.62.0-beta.0777e663.cd76af5 → 2.62.0-beta.ffea4920.a5080dd
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license VHS v2.62.0-beta.
|
|
3
|
+
* @license VHS v2.62.0-beta.ffea4920.a5080dd
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1389,7 +1389,7 @@ var zO=Object.create;var Nl=Object.defineProperty;var HO=Object.getOwnPropertyDe
|
|
|
1389
1389
|
${({forceState:e,hasError:t})=>e==="focus"&&t&&vS};
|
|
1390
1390
|
${({forceState:e,hasError:t})=>e==="hover"&&t&&NK};
|
|
1391
1391
|
`;import{Fragment as HK,jsx as Eh,jsxs as bS}from"react/jsx-runtime";var Ep=LK(({checked:e,direction:t="column",disabled:r=!1,forceState:n,hasError:o=!1,id:a="default",label:s="default",labelDescription:u,name:l,onChange:c,required:p=!1,value:d="false",...h},g)=>{let[v,m]=$K(!1);return bS(Sp,{ref:g,"aria-invalid":(0,Dp.isNotUndefined)(o)&&o?"true":"false",direction:t,disabled:r,forceState:n,hasError:o,isFocused:v,...h,children:[Eh(Cp,{"aria-checked":e,checked:e,"data-testid":"checkbox-option-wrapper",disabled:r,id:a,name:l,onBlur:()=>m(!1),onChange:c,onFocus:()=>m(!0),required:p,type:"checkbox",value:d}),bS(xp,{children:[Eh(HK,{children:s}),(0,Dp.isNonEmptyString)(u)||zK(u)?Eh(wp,{"data-testid":"checkbox-option-sub-label",children:u}):null]})]})});Ep.displayName="Checkbox_VHS";i();i();var SS=U(Z());import oq from"styled-components";i();i();import tq from"styled-components";i();i();import GK,{css as xS}from"styled-components";import{jsx as UK}from"react/jsx-runtime";var jK=xS`
|
|
1392
|
-
|
|
1392
|
+
::after {
|
|
1393
1393
|
color: red;
|
|
1394
1394
|
content: ' *';
|
|
1395
1395
|
}
|
|
@@ -1460,11 +1460,11 @@ var zO=Object.create;var Nl=Object.defineProperty;var HO=Object.getOwnPropertyDe
|
|
|
1460
1460
|
padding: 0;
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
|
-
|
|
1463
|
+
:focus {
|
|
1464
1464
|
outline: thin dotted ${({theme:e})=>e.color.grey500};
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
-
|
|
1467
|
+
:hover {
|
|
1468
1468
|
color: ${({theme:e})=>e.color.grey900};
|
|
1469
1469
|
}
|
|
1470
1470
|
`,TS=({onClick:e,...t})=>PS(pq,{onClick:e,title:"Close",...t,children:PS(Fp,{})});TS.displayName="CloseButton_VHS";i();i();import{useEffect as AS,useLayoutEffect as dq,useState as Ah}from"react";import bi,{css as mq}from"styled-components";var yi=U(Z());import{jsx as Oo,jsxs as BS}from"react/jsx-runtime";var hq=.08,Bp=48,OS=16,RS=16,MS=16,Rh="0.2s",Fh="brandblue",gq="up",IS="down",vq="left",kS="right",yq=bi.div`
|
|
@@ -1571,7 +1571,7 @@ var zO=Object.create;var Nl=Object.defineProperty;var HO=Object.getOwnPropertyDe
|
|
|
1571
1571
|
|
|
1572
1572
|
/* capture clicks with a large positioned file input with 0 opacity */
|
|
1573
1573
|
input[type='file'] {
|
|
1574
|
-
|
|
1574
|
+
::-webkit-file-upload-button {
|
|
1575
1575
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
1576
1576
|
}
|
|
1577
1577
|
|
|
@@ -1925,7 +1925,7 @@ var zO=Object.create;var Nl=Object.defineProperty;var HO=Object.getOwnPropertyDe
|
|
|
1925
1925
|
top: ${({theme:e})=>e.spacing.space05};
|
|
1926
1926
|
width: 42px;
|
|
1927
1927
|
|
|
1928
|
-
|
|
1928
|
+
:hover {
|
|
1929
1929
|
color: ${({theme:e})=>e.color.grey900};
|
|
1930
1930
|
}
|
|
1931
1931
|
`,tA=({content:e,toggle:t,backgroundColor:r,initialShownState:n=!1,onBeforeHide:o,onHide:a})=>{let s=Oe("grey100");return pg(Ya,{initialShownState:n,onBeforeHide:o,onHide:a,render:u=>yre(tn,{backgroundColor:(0,eA.isNonEmptyString)(r)?r:s,children:[pg(vre,{noStyle:!0,onClick:u,title:"Close",children:pg(Fp,{})}),e(u)]}),toggle:t})};tA.displayName="FullScreenModal_VHS";i();i();import bre from"styled-components";import{jsx as wre}from"react/jsx-runtime";var Cre=e=>{if(e==="horizontal")return"width: 100%;";if(e==="vertical")return"height: 100%;";if(e===!0)return`
|