@wistia/ui 0.15.13 → 0.15.14-beta.1e41934b.72b042b
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 +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +15 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.
|
|
3
|
+
* @license @wistia/ui v0.15.14-beta.1e41934b.72b042b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -13039,6 +13039,7 @@ var Combobox2 = ({
|
|
|
13039
13039
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
13040
13040
|
var import_type_guards43 = require("@wistia/type-guards");
|
|
13041
13041
|
var import_react61 = require("react");
|
|
13042
|
+
var import_react_dom = require("react-dom");
|
|
13042
13043
|
|
|
13043
13044
|
// src/components/Menu/Menu.tsx
|
|
13044
13045
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
@@ -13708,7 +13709,8 @@ var ContextMenu = ({
|
|
|
13708
13709
|
triggerRef,
|
|
13709
13710
|
children,
|
|
13710
13711
|
side = "bottom",
|
|
13711
|
-
onRequestClose = () => null
|
|
13712
|
+
onRequestClose = () => null,
|
|
13713
|
+
compact = false
|
|
13712
13714
|
}) => {
|
|
13713
13715
|
const [isRightClicked, setIsRightClicked] = (0, import_react61.useState)(false);
|
|
13714
13716
|
const [menuPosition, setMenuPosition] = (0, import_react61.useState)(position ?? { x: 0, y: 0 });
|
|
@@ -13728,9 +13730,13 @@ var ContextMenu = ({
|
|
|
13728
13730
|
return () => null;
|
|
13729
13731
|
}, [position, triggerRef]);
|
|
13730
13732
|
const isOpen = (0, import_type_guards43.isNotNil)(position) || isRightClicked;
|
|
13731
|
-
|
|
13733
|
+
if (!isOpen) {
|
|
13734
|
+
return null;
|
|
13735
|
+
}
|
|
13736
|
+
const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13732
13737
|
Menu,
|
|
13733
13738
|
{
|
|
13739
|
+
compact,
|
|
13734
13740
|
isOpen,
|
|
13735
13741
|
onOpenChange: (next) => {
|
|
13736
13742
|
setIsRightClicked(next);
|
|
@@ -13756,7 +13762,11 @@ var ContextMenu = ({
|
|
|
13756
13762
|
),
|
|
13757
13763
|
children
|
|
13758
13764
|
}
|
|
13759
|
-
)
|
|
13765
|
+
);
|
|
13766
|
+
if ((0, import_type_guards43.isNotNil)(triggerRef)) {
|
|
13767
|
+
return (0, import_react_dom.createPortal)(menu, document.body);
|
|
13768
|
+
}
|
|
13769
|
+
return menu;
|
|
13760
13770
|
};
|
|
13761
13771
|
|
|
13762
13772
|
// src/components/DataCards/DataCard.tsx
|
|
@@ -16987,7 +16997,6 @@ var StyledTrigger2 = (0, import_styled_components110.default)(import_react_selec
|
|
|
16987
16997
|
outline: 1px solid var(--wui-input-color-border);
|
|
16988
16998
|
outline-offset: -2px;
|
|
16989
16999
|
border-radius: var(--wui-input-border-radius);
|
|
16990
|
-
min-width: 200px;
|
|
16991
17000
|
text-align: left;
|
|
16992
17001
|
display: inline-flex;
|
|
16993
17002
|
align-items: center;
|
|
@@ -17131,6 +17140,7 @@ var StyledItem = (0, import_styled_components111.default)(import_react_select2.I
|
|
|
17131
17140
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
17132
17141
|
background-color: transparent;
|
|
17133
17142
|
display: flex;
|
|
17143
|
+
gap: var(--wui-space-01);
|
|
17134
17144
|
padding: var(--wui-select-option-padding);
|
|
17135
17145
|
justify-content: space-between;
|
|
17136
17146
|
font-size: var(--font-size);
|