@wistia/ui 0.15.13-beta.a8953353.4dacd3e → 0.15.13-beta.e65c0481.a780530
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 +4 -2
- 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 +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1634,6 +1634,10 @@ declare const Combobox: ({ placeholder, value, onChange, searchValue, onSearchVa
|
|
|
1634
1634
|
type ContextMenuProps = {
|
|
1635
1635
|
children: ReactNode;
|
|
1636
1636
|
onRequestClose?: () => void;
|
|
1637
|
+
/**
|
|
1638
|
+
* If the menu is compact
|
|
1639
|
+
*/
|
|
1640
|
+
compact?: boolean;
|
|
1637
1641
|
} & ({
|
|
1638
1642
|
position: {
|
|
1639
1643
|
x: number;
|
|
@@ -1652,7 +1656,7 @@ type ContextMenuProps = {
|
|
|
1652
1656
|
* 1. By providing a `triggerRef`, which will render the menu when the referenced element is right-clicked.
|
|
1653
1657
|
* 2. By providing a `position` prop, which will render the menu at the specified coordinates.
|
|
1654
1658
|
*/
|
|
1655
|
-
declare const ContextMenu: ({ position, triggerRef, children, side, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
1659
|
+
declare const ContextMenu: ({ position, triggerRef, children, side, onRequestClose, compact, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
1656
1660
|
|
|
1657
1661
|
type DataCardProps = ComponentPropsWithoutRef<'div'> & Partial<Pick<ButtonAsLinkProps, 'beforeAction' | 'disabled' | 'href' | 'onClick' | 'type'>> & {
|
|
1658
1662
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1634,6 +1634,10 @@ declare const Combobox: ({ placeholder, value, onChange, searchValue, onSearchVa
|
|
|
1634
1634
|
type ContextMenuProps = {
|
|
1635
1635
|
children: ReactNode;
|
|
1636
1636
|
onRequestClose?: () => void;
|
|
1637
|
+
/**
|
|
1638
|
+
* If the menu is compact
|
|
1639
|
+
*/
|
|
1640
|
+
compact?: boolean;
|
|
1637
1641
|
} & ({
|
|
1638
1642
|
position: {
|
|
1639
1643
|
x: number;
|
|
@@ -1652,7 +1656,7 @@ type ContextMenuProps = {
|
|
|
1652
1656
|
* 1. By providing a `triggerRef`, which will render the menu when the referenced element is right-clicked.
|
|
1653
1657
|
* 2. By providing a `position` prop, which will render the menu at the specified coordinates.
|
|
1654
1658
|
*/
|
|
1655
|
-
declare const ContextMenu: ({ position, triggerRef, children, side, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
1659
|
+
declare const ContextMenu: ({ position, triggerRef, children, side, onRequestClose, compact, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
1656
1660
|
|
|
1657
1661
|
type DataCardProps = ComponentPropsWithoutRef<'div'> & Partial<Pick<ButtonAsLinkProps, 'beforeAction' | 'disabled' | 'href' | 'onClick' | 'type'>> & {
|
|
1658
1662
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.13-beta.
|
|
3
|
+
* @license @wistia/ui v0.15.13-beta.e65c0481.a780530
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -13559,7 +13559,8 @@ var ContextMenu = ({
|
|
|
13559
13559
|
triggerRef,
|
|
13560
13560
|
children,
|
|
13561
13561
|
side = "bottom",
|
|
13562
|
-
onRequestClose = () => null
|
|
13562
|
+
onRequestClose = () => null,
|
|
13563
|
+
compact = false
|
|
13563
13564
|
}) => {
|
|
13564
13565
|
const [isRightClicked, setIsRightClicked] = useState17(false);
|
|
13565
13566
|
const [menuPosition, setMenuPosition] = useState17(position ?? { x: 0, y: 0 });
|
|
@@ -13585,6 +13586,7 @@ var ContextMenu = ({
|
|
|
13585
13586
|
const menu = /* @__PURE__ */ jsx267(
|
|
13586
13587
|
Menu,
|
|
13587
13588
|
{
|
|
13589
|
+
compact,
|
|
13588
13590
|
isOpen,
|
|
13589
13591
|
onOpenChange: (next) => {
|
|
13590
13592
|
setIsRightClicked(next);
|