@wistia/ui 0.15.2-beta.f16ddbc2.511b369 → 0.15.2
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 +8 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -13
- package/dist/index.d.ts +7 -13
- package/dist/index.mjs +8 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.2
|
|
3
|
+
* @license @wistia/ui v0.15.2
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2992,26 +2992,11 @@ var useForceUpdate = () => {
|
|
|
2992
2992
|
var import_react11 = require("react");
|
|
2993
2993
|
var useIsHovered = () => {
|
|
2994
2994
|
const [isHovered, setIsHovered] = (0, import_react11.useState)(false);
|
|
2995
|
-
const onFocus = (
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
const
|
|
3000
|
-
if (event.target !== event.currentTarget) return;
|
|
3001
|
-
setIsHovered(true);
|
|
3002
|
-
};
|
|
3003
|
-
const onMouseMove = (event) => {
|
|
3004
|
-
if (event.target !== event.currentTarget) return;
|
|
3005
|
-
setIsHovered(true);
|
|
3006
|
-
};
|
|
3007
|
-
const onBlur = (event) => {
|
|
3008
|
-
if (event.target !== event.currentTarget) return;
|
|
3009
|
-
setIsHovered(false);
|
|
3010
|
-
};
|
|
3011
|
-
const onMouseLeave = (event) => {
|
|
3012
|
-
if (event.target !== event.currentTarget) return;
|
|
3013
|
-
setIsHovered(false);
|
|
3014
|
-
};
|
|
2995
|
+
const onFocus = () => setIsHovered(true);
|
|
2996
|
+
const onMouseEnter = () => setIsHovered(true);
|
|
2997
|
+
const onMouseMove = () => setIsHovered(true);
|
|
2998
|
+
const onBlur = () => setIsHovered(false);
|
|
2999
|
+
const onMouseLeave = () => setIsHovered(false);
|
|
3015
3000
|
const hoverProps = {
|
|
3016
3001
|
onFocus,
|
|
3017
3002
|
onMouseEnter,
|
|
@@ -16513,7 +16498,7 @@ var Container10 = import_styled_components106.default.div`
|
|
|
16513
16498
|
flex: 1 1 auto;
|
|
16514
16499
|
`;
|
|
16515
16500
|
var ScrollContainer = import_styled_components106.default.div`
|
|
16516
|
-
overflow:
|
|
16501
|
+
overflow: auto;
|
|
16517
16502
|
height: 100%;
|
|
16518
16503
|
width: 100%;
|
|
16519
16504
|
`;
|
|
@@ -16553,7 +16538,7 @@ var ShadowAtRight = (0, import_styled_components106.default)(Shadow)`
|
|
|
16553
16538
|
width: 0;
|
|
16554
16539
|
`;
|
|
16555
16540
|
var ScrollArea = (0, import_react85.forwardRef)(
|
|
16556
|
-
({ children, onScroll, style,
|
|
16541
|
+
({ children, onScroll, style, ...props }, forwardedRef) => {
|
|
16557
16542
|
const scrollContainerRefInternal = (0, import_react85.useRef)(null);
|
|
16558
16543
|
const [shadowState, setShadowState] = (0, import_react85.useState)({
|
|
16559
16544
|
canScrollUp: false,
|
|
@@ -16594,7 +16579,6 @@ var ScrollArea = (0, import_react85.forwardRef)(
|
|
|
16594
16579
|
ScrollContainer,
|
|
16595
16580
|
{
|
|
16596
16581
|
ref: scrollContainerRef,
|
|
16597
|
-
$locked: locked,
|
|
16598
16582
|
onScroll: onScrollScrollContainer,
|
|
16599
16583
|
...props,
|
|
16600
16584
|
children
|