@wistia/vhs 2.35.0-beta.df7e09b0.c592400 → 2.35.0-beta.fef76343.5b91aee
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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license VHS v2.35.0-beta.
|
|
3
|
+
* @license VHS v2.35.0-beta.fef76343.5b91aee
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1615,11 +1615,7 @@
|
|
|
1615
1615
|
right: 0;
|
|
1616
1616
|
top: 0;
|
|
1617
1617
|
}
|
|
1618
|
-
|
|
1619
|
-
&:focus-within {
|
|
1620
|
-
box-shadow: 0 0 0 2px ${({theme:e})=>e.color.brandBlue500};
|
|
1621
|
-
}
|
|
1622
|
-
`,C1=(0,lx.forwardRef)(({accept:e,children:t,disabled:r=!1,id:n,maxSize:o=TH,multiple:a=!1,name:s="file-upload",onClick:u,onChange:l,onError:c,...d},m)=>(0,x1.jsxs)(PH,{ariaControls:"filename",disabled:r,htmlFor:n,...d,children:[t,(0,x1.jsx)("input",{ref:m,accept:e,"data-testid":"file-select-input",disabled:r,id:n,multiple:a,name:s,onChange:g=>{let{files:v}=g.target;if(o&&v){let p=o*1024*1024;if(Array.from(v).some(C=>C.size>p))return c&&c(new Error(`File not accepted. Please choose a file under ${o}MB.`)),!1}return l&&l(g),!0},onClick:u,type:"file"})]}));C1.displayName="FileSelect_VHS";i();i();var mo=require("react");i();i();var fx=require("react");var ki=G(require("styled-components"));var Sn=require("react/jsx-runtime"),AH=ki.default.div`
|
|
1618
|
+
`,C1=(0,lx.forwardRef)(({accept:e,children:t,disabled:r=!1,id:n,maxSize:o=TH,multiple:a=!1,name:s="file-upload",onClick:u,onChange:l,onError:c,...d},m)=>(0,x1.jsxs)(PH,{ariaControls:"filename",disabled:r,htmlFor:n,...d,children:[t,(0,x1.jsx)("input",{ref:m,accept:e,"data-testid":"file-select-input",disabled:r,id:n,multiple:a,name:s,onChange:g=>{let{files:v}=g.target;if(o&&v){let p=o*1024*1024;if(Array.from(v).some(C=>C.size>p))return c&&c(new Error(`File not accepted. Please choose a file under ${o}MB.`)),!1}return l&&l(g),!0},onClick:u,tabIndex:-1,type:"file"})]}));C1.displayName="FileSelect_VHS";i();i();var mo=require("react");i();i();var fx=require("react");var ki=G(require("styled-components"));var Sn=require("react/jsx-runtime"),AH=ki.default.div`
|
|
1623
1619
|
border-left: 4px solid;
|
|
1624
1620
|
border-left-color: ${({theme:e})=>e.color.red500};
|
|
1625
1621
|
margin-bottom: ${({theme:e})=>e.spacing.space07};
|