@wistia/ui 0.25.6 → 0.25.7

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.d.ts CHANGED
@@ -610,7 +610,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
610
610
  * Changes the secondary icon for different use cases
611
611
  */
612
612
  variant?: "default" | "gated" | "menu-down" | "menu-up";
613
- } & Omit<ButtonAsButtonProps, "variant" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled">, "ref"> | Omit<{
613
+ } & Omit<ButtonAsButtonProps, "variant" | "size" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "unstyled">, "ref"> | Omit<{
614
614
  /**
615
615
  * @override
616
616
  * The text to display for the ActionButton
@@ -639,7 +639,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
639
639
  * Changes the secondary icon for different use cases
640
640
  */
641
641
  variant?: "default" | "gated" | "menu-down" | "menu-up";
642
- } & Omit<ButtonAsLinkProps, "variant" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
642
+ } & Omit<ButtonAsLinkProps, "variant" | "size" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "unstyled">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
643
643
  //#endregion
644
644
  //#region src/components/Avatar/Avatar.d.ts
645
645
  type AvatarInstanceType = 'image' | 'initials';
@@ -3291,7 +3291,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
3291
3291
  /**
3292
3292
  * Provides a readonly input that copies the text to the clipboard when clicked.
3293
3293
  */
3294
- declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "type" | "rightIcon" | "disabled" | "value" | "autoSelect"> & {
3294
+ declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "type" | "value" | "disabled" | "rightIcon" | "autoSelect"> & {
3295
3295
  /**
3296
3296
  * When disabled, the copy action will not be triggered
3297
3297
  */
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.25.6
3
+ * @license @wistia/ui v0.25.7
4
4
  *
5
5
  * Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9779,8 +9779,11 @@ const MenuPopup = styled(Menu$1.Popup)`
9779
9779
  */
9780
9780
  const Menu = forwardRef(({ align = "start", children, disabled = false, compact = false, trigger, label, isOpen, side = "bottom", triggerProps = {}, onOpenChange, ...props }, ref) => {
9781
9781
  const contextValue = useMemo(() => ({ compact }), [compact]);
9782
- const handleOpenChange = useCallback((nextOpen) => {
9783
- if (nextOpen !== isOpen) onOpenChange?.(nextOpen);
9782
+ const handleOpenChange = useCallback((nextOpen, eventDetails) => {
9783
+ if (nextOpen !== isOpen) {
9784
+ if (!nextOpen && eventDetails?.reason === "trigger-hover") return;
9785
+ onOpenChange?.(nextOpen);
9786
+ }
9784
9787
  }, [isOpen, onOpenChange]);
9785
9788
  let controlProps = isNotNil(onOpenChange) && isNotNil(isOpen) ? {
9786
9789
  open: isOpen,