@wistia/vhs 2.11.0-beta.541dc90e.eb72f6a → 2.11.0-beta.7870a8bc.0101acb
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.11.0-beta.
|
|
3
|
+
* @license VHS v2.11.0-beta.7870a8bc.0101acb
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2023, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2595,7 +2595,7 @@
|
|
|
2595
2595
|
gap: ${({theme:e})=>e.spacing.space01};
|
|
2596
2596
|
`,E$=e=>{switch(e){case"ArrowDown":return"\u2193";case"ArrowLeft":return"\u2190";case"ArrowRight":return"\u2192";case"ArrowUp":return"\u2191";case"Alt":return"Alt";case"Cmd":case"Meta":return/Mac|iPhone|iPad/.test(window.navigator.userAgent)?"\u2318":window.navigator.userAgent.includes("Win")?"\u229E":"^";case"Ctrl":return"Ctrl";case"Option":return"\u2325";case"Shift":return"\u21E7";case"Enter":return"\u21B5";case"Space":return"Space";case"Tab":return"Tab";case"Backspace":return"Del";case"Esc":return"Esc";default:return e.toUpperCase()}},Sd=({label:e,keyboardKeys:t,fullWidth:r=!1,componentStyle:n="dark",...o})=>(0,Ya.jsxs)(C$,{componentStyle:n,fullWidth:r,...o,children:[M(e)&&(0,Ya.jsx)(D$,{componentStyle:n,children:e}),(0,Ya.jsx)(x$,{children:[...t].map(a=>(0,Ya.jsx)(y$,{componentStyle:n,children:E$(a)},a))})]});Sd.displayName="KeyboardShortcut_VHS";i();var Il=require("react"),Gb=z(require("styled-components")),qb=require("react/jsx-runtime"),w$=Gb.default.div`
|
|
2597
2597
|
cursor: pointer;
|
|
2598
|
-
`,Td=(0,Il.forwardRef)(({
|
|
2598
|
+
`,Td=(0,Il.forwardRef)(({renderAs:e="div",className:t,onClick:r,targetRef:n,...o},a)=>{let s=(0,Il.useCallback)(u=>{let l=n.current;l!==null&&(u.defaultPrevented||(l.contains(u.target)?r&&r(u):(u.stopPropagation(),u.preventDefault(),l.focus(),l.click())))},[r,n]);return(0,qb.jsx)(w$,{ref:a,as:e,role:"presentation",...o,onClick:s})});Td.displayName="ClickArea_VHS";
|
|
2599
2599
|
/*! Bundled license information:
|
|
2600
2600
|
|
|
2601
2601
|
escape-html/index.js:
|