@ynput/ayon-react-components 1.12.0 → 1.13.1

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.
@@ -6,6 +6,7 @@ export interface SearchFilterItemProps extends Omit<React.HTMLAttributes<HTMLDiv
6
6
  isEditing?: boolean;
7
7
  isInvertedAllowed?: boolean;
8
8
  isDisabled?: boolean;
9
+ isCompact?: boolean;
9
10
  onEdit?: (id: string) => void;
10
11
  onRemove?: (id: string) => void;
11
12
  onInvert?: (id: string) => void;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ interface UseCompactDisplayProps {
3
+ containerRef: React.RefObject<HTMLElement>;
4
+ contentRef: React.RefObject<HTMLElement>;
5
+ threshold?: number;
6
+ buttonSpace?: number;
7
+ hysteresis?: number;
8
+ dependencies?: any[];
9
+ }
10
+ /**
11
+ * A hook that tracks element widths and determines if a compact display mode should be used
12
+ * based on available space.
13
+ */
14
+ export declare const useCompactDisplay: ({ containerRef, contentRef, threshold, buttonSpace, hysteresis, dependencies, }: UseCompactDisplayProps) => boolean;
15
+ export {};