@wistia/ui 0.15.12-beta.b27f1407.ee5496a → 0.15.12-beta.bbcd8471.64c2d83
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 +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.12-beta.
|
|
3
|
+
* @license @wistia/ui v0.15.12-beta.bbcd8471.64c2d83
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -11633,7 +11633,6 @@ var Input = forwardRef15(
|
|
|
11633
11633
|
autoSelect = false,
|
|
11634
11634
|
leftIcon,
|
|
11635
11635
|
rightIcon,
|
|
11636
|
-
className,
|
|
11637
11636
|
...props
|
|
11638
11637
|
}, externalRef) => {
|
|
11639
11638
|
const internalRef = useRef9(null);
|
|
@@ -11670,7 +11669,6 @@ var Input = forwardRef15(
|
|
|
11670
11669
|
{
|
|
11671
11670
|
$fullWidth: fullWidth,
|
|
11672
11671
|
$monospace: monospace,
|
|
11673
|
-
className,
|
|
11674
11672
|
"data-wui-input-container": true,
|
|
11675
11673
|
children: [
|
|
11676
11674
|
leftIconToDisplay ?? null,
|
|
@@ -12837,6 +12835,7 @@ var Combobox2 = ({
|
|
|
12837
12835
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
12838
12836
|
import { isNil as isNil15, isNotNil as isNotNil24 } from "@wistia/type-guards";
|
|
12839
12837
|
import { useEffect as useEffect16, useState as useState17 } from "react";
|
|
12838
|
+
import { createPortal } from "react-dom";
|
|
12840
12839
|
|
|
12841
12840
|
// src/components/Menu/Menu.tsx
|
|
12842
12841
|
import {
|
|
@@ -13538,7 +13537,10 @@ var ContextMenu = ({
|
|
|
13538
13537
|
return () => null;
|
|
13539
13538
|
}, [position, triggerRef]);
|
|
13540
13539
|
const isOpen = isNotNil24(position) || isRightClicked;
|
|
13541
|
-
|
|
13540
|
+
if (!isOpen) {
|
|
13541
|
+
return null;
|
|
13542
|
+
}
|
|
13543
|
+
const menu = /* @__PURE__ */ jsx267(
|
|
13542
13544
|
Menu,
|
|
13543
13545
|
{
|
|
13544
13546
|
isOpen,
|
|
@@ -13566,7 +13568,11 @@ var ContextMenu = ({
|
|
|
13566
13568
|
),
|
|
13567
13569
|
children
|
|
13568
13570
|
}
|
|
13569
|
-
)
|
|
13571
|
+
);
|
|
13572
|
+
if (isNotNil24(triggerRef)) {
|
|
13573
|
+
return createPortal(menu, document.body);
|
|
13574
|
+
}
|
|
13575
|
+
return menu;
|
|
13570
13576
|
};
|
|
13571
13577
|
|
|
13572
13578
|
// src/components/DataCards/DataCard.tsx
|