@wistia/vhs 3.0.0-beta.083cd57a.c5eb682 → 3.0.0-beta.1de6da3e.9c265e4
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 +28 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +34 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v3.0.0-beta.
|
|
3
|
+
* @license @wistia/vhs v3.0.0-beta.1de6da3e.9c265e4
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -11075,7 +11075,10 @@ var MenuItem = ({
|
|
|
11075
11075
|
variant = "primary",
|
|
11076
11076
|
...props
|
|
11077
11077
|
}) => {
|
|
11078
|
-
|
|
11078
|
+
let as = renderAs;
|
|
11079
|
+
if ((0, import_type_guards58.isUndefined)(renderAs)) {
|
|
11080
|
+
as = (0, import_type_guards58.isNotUndefined)(href) ? "a" : "div";
|
|
11081
|
+
}
|
|
11079
11082
|
const targetProp = as === "a" && (0, import_type_guards58.isNonEmptyString)(target) ? { target } : {};
|
|
11080
11083
|
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
11081
11084
|
import_react_dropdown_menu2.DropdownMenuItem,
|
|
@@ -13476,26 +13479,32 @@ var Slider = ({
|
|
|
13476
13479
|
);
|
|
13477
13480
|
},
|
|
13478
13481
|
renderThumb: (thumbProps, thumbState) => {
|
|
13479
|
-
const { key,
|
|
13480
|
-
return
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13482
|
+
const { key, ...restProps } = thumbProps;
|
|
13483
|
+
return (
|
|
13484
|
+
// @ts-expect-error complains about styled-components `as` prop
|
|
13485
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
13486
|
+
StyledThumb,
|
|
13487
|
+
{
|
|
13488
|
+
...restProps,
|
|
13489
|
+
"data-testid": `${dataTestId}-thumb-${thumbState.index}`
|
|
13490
|
+
},
|
|
13491
|
+
key
|
|
13492
|
+
)
|
|
13487
13493
|
);
|
|
13488
13494
|
},
|
|
13489
13495
|
renderTrack: (trackProps, trackState) => {
|
|
13490
|
-
const { key,
|
|
13491
|
-
return
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13496
|
+
const { key, ...restProps } = trackProps;
|
|
13497
|
+
return (
|
|
13498
|
+
// @ts-expect-error complains about styled-components `as` prop
|
|
13499
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
13500
|
+
StyledTrack,
|
|
13501
|
+
{
|
|
13502
|
+
...restProps,
|
|
13503
|
+
$isFilledTrack: checkIfFilledTrack(trackState),
|
|
13504
|
+
"data-testid": `${dataTestId}-track-${trackState.index}`
|
|
13505
|
+
},
|
|
13506
|
+
key
|
|
13507
|
+
)
|
|
13499
13508
|
);
|
|
13500
13509
|
},
|
|
13501
13510
|
step,
|