@wistia/vhs 2.62.0-beta.8b159dd5.e739534 → 2.62.0-beta.e5155dc8.a66929e

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.
@@ -9,7 +9,7 @@ type MenuItemPropsWithLabelDescription = {
9
9
  icon?: ReactNode;
10
10
  indicator?: ReactNode;
11
11
  renderAs?: ElementType;
12
- target?: '_blank' | '_parent' | '_self' | '_top' | '_unfencedTop';
12
+ target?: HTMLAnchorElement['target'];
13
13
  variant?: 'dangerous' | 'primary';
14
14
  };
15
15
  type MenuItemPropsWithChildren = {
@@ -21,7 +21,7 @@ type MenuItemPropsWithChildren = {
21
21
  icon?: never;
22
22
  indicator?: ReactNode;
23
23
  renderAs?: ElementType;
24
- target?: '_blank' | '_parent' | '_self' | '_top' | '_unfencedTop';
24
+ target?: HTMLAnchorElement['target'];
25
25
  variant?: 'dangerous' | 'primary';
26
26
  };
27
27
  export type MenuItemProps = DropdownMenuItemProps & (MenuItemPropsWithChildren | MenuItemPropsWithLabelDescription);
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOpD,KAAK,iCAAiC,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IACjC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,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0BAA0B,GACzD,CAAC,yBAAyB,GAAG,iCAAiC,CAAC,CAAC;AA+ElE,eAAO,MAAM,QAAQ,6FAWlB,aAAa,4CAkCf,CAAC;AAEF,eAAO,MAAM,gBAAgB,uEAa1B,qBAAqB,4CAsBvB,CAAC;AAEF,eAAO,MAAM,aAAa,uEAavB,kBAAkB,4CAsBpB,CAAC;AAUF,eAAO,MAAM,cAAc,4DAOxB,aAAa,4CA8Bf,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license VHS v2.62.0-beta.8b159dd5.e739534
3
+ * @license VHS v2.62.0-beta.e5155dc8.a66929e
4
4
  *
5
5
  * Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2186,7 +2186,7 @@
2186
2186
  grid-row: span 2;
2187
2187
  text-align: center;
2188
2188
  width: 0;
2189
- `,zre=({children:e,label:t,description:r,badge:n,icon:o,renderAs:a,href:s,target:u,variant:l="primary",...c})=>{let p=a;return(0,ft.isUndefined)(a)&&(p=(0,ft.isNotUndefined)(s)?"a":"div"),(0,De.jsx)(Zm,{style:{outline:"none"},...c,asChild:!0,children:(0,De.jsx)(e0,{as:p,href:s,variant:l,...p==="a"&&(0,ft.isNonEmptyString)(u)?{target:u}:{},children:(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)&&(0,De.jsx)(n0,{children:o}),(0,De.jsxs)(r0,{children:[t," ",n]}),(0,ft.isNotUndefined)(r)?(0,De.jsx)(nr,{variant:"caption",children:r}):null]})})})},Hre=({children:e,label:t,description:r,badge:n,icon:o,indicator:a=(0,De.jsx)(Pe,{size:"sm",type:"checkmark"}),...s})=>(0,De.jsx)(_4,{...s,asChild:!0,children:(0,De.jsxs)(e0,{children:[(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)?(0,De.jsx)(n0,{children:o}):(0,De.jsx)(X4,{}),(0,De.jsxs)(r0,{children:[t," ",n]}),(0,ft.isNotUndefined)(r)?(0,De.jsx)(nr,{variant:"caption",children:r}):null]}),(0,De.jsx)(Qm,{children:a})]})}),Gre=({children:e,label:t,badge:r,description:n,icon:o,indicator:a=(0,De.jsx)(Pe,{size:"sm",type:"checkmark"}),...s})=>(0,De.jsx)(U4,{...s,asChild:!0,children:(0,De.jsxs)(e0,{children:[(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)?(0,De.jsx)(n0,{children:o}):(0,De.jsx)(X4,{}),(0,De.jsxs)(r0,{children:[t," ",r]})," ",(0,ft.isNotUndefined)(n)?(0,De.jsx)(nr,{variant:"caption",children:n}):null]}),(0,De.jsx)(Qm,{children:a})]})}),jre=(0,wo.default)(K4)`
2189
+ `,zre=({children:e,label:t,description:r,badge:n,icon:o,renderAs:a,href:s,target:u,variant:l="primary",...c})=>{let p=a;(0,ft.isUndefined)(a)&&(p=(0,ft.isNotUndefined)(s)?"a":"div");let d=p==="a"&&(0,ft.isNonEmptyString)(u)?{target:u}:{};return(0,De.jsx)(Zm,{style:{outline:"none"},...c,asChild:!0,children:(0,De.jsx)(e0,{as:p,href:s,variant:l,...d,children:(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)&&(0,De.jsx)(n0,{children:o}),(0,De.jsxs)(r0,{children:[t," ",n]}),(0,ft.isNotUndefined)(r)?(0,De.jsx)(nr,{variant:"caption",children:r}):null]})})})},Hre=({children:e,label:t,description:r,badge:n,icon:o,indicator:a=(0,De.jsx)(Pe,{size:"sm",type:"checkmark"}),...s})=>(0,De.jsx)(_4,{...s,asChild:!0,children:(0,De.jsxs)(e0,{children:[(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)?(0,De.jsx)(n0,{children:o}):(0,De.jsx)(X4,{}),(0,De.jsxs)(r0,{children:[t," ",n]}),(0,ft.isNotUndefined)(r)?(0,De.jsx)(nr,{variant:"caption",children:r}):null]}),(0,De.jsx)(Qm,{children:a})]})}),Gre=({children:e,label:t,badge:r,description:n,icon:o,indicator:a=(0,De.jsx)(Pe,{size:"sm",type:"checkmark"}),...s})=>(0,De.jsx)(U4,{...s,asChild:!0,children:(0,De.jsxs)(e0,{children:[(0,ft.isNotUndefined)(e)?e:(0,De.jsxs)(t0,{children:[(0,ft.isNotUndefined)(o)?(0,De.jsx)(n0,{children:o}):(0,De.jsx)(X4,{}),(0,De.jsxs)(r0,{children:[t," ",r]})," ",(0,ft.isNotUndefined)(n)?(0,De.jsx)(nr,{variant:"caption",children:n}):null]}),(0,De.jsx)(Qm,{children:a})]})}),jre=(0,wo.default)(K4)`
2190
2190
  outline: none;
2191
2191
 
2192
2192
  &[data-state='open'],