@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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.12-beta.b27f1407.ee5496a
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
  *
@@ -11807,7 +11807,6 @@ var Input = (0, import_react47.forwardRef)(
11807
11807
  autoSelect = false,
11808
11808
  leftIcon,
11809
11809
  rightIcon,
11810
- className,
11811
11810
  ...props
11812
11811
  }, externalRef) => {
11813
11812
  const internalRef = (0, import_react47.useRef)(null);
@@ -11844,7 +11843,6 @@ var Input = (0, import_react47.forwardRef)(
11844
11843
  {
11845
11844
  $fullWidth: fullWidth,
11846
11845
  $monospace: monospace,
11847
- className,
11848
11846
  "data-wui-input-container": true,
11849
11847
  children: [
11850
11848
  leftIconToDisplay ?? null,
@@ -12999,6 +12997,7 @@ var Combobox2 = ({
12999
12997
  // src/components/ContextMenu/ContextMenu.tsx
13000
12998
  var import_type_guards42 = require("@wistia/type-guards");
13001
12999
  var import_react61 = require("react");
13000
+ var import_react_dom = require("react-dom");
13002
13001
 
13003
13002
  // src/components/Menu/Menu.tsx
13004
13003
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -13688,7 +13687,10 @@ var ContextMenu = ({
13688
13687
  return () => null;
13689
13688
  }, [position, triggerRef]);
13690
13689
  const isOpen = (0, import_type_guards42.isNotNil)(position) || isRightClicked;
13691
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13690
+ if (!isOpen) {
13691
+ return null;
13692
+ }
13693
+ const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13692
13694
  Menu,
13693
13695
  {
13694
13696
  isOpen,
@@ -13716,7 +13718,11 @@ var ContextMenu = ({
13716
13718
  ),
13717
13719
  children
13718
13720
  }
13719
- ) : null;
13721
+ );
13722
+ if ((0, import_type_guards42.isNotNil)(triggerRef)) {
13723
+ return (0, import_react_dom.createPortal)(menu, document.body);
13724
+ }
13725
+ return menu;
13720
13726
  };
13721
13727
 
13722
13728
  // src/components/DataCards/DataCard.tsx