@zvoove/unity-ui 2.26.1 → 2.26.3

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.
@@ -1441,6 +1441,15 @@ export declare type GenericResponsiveKeys<T extends string> = {
1441
1441
  [key in Viewport]: Record<T, string>;
1442
1442
  };
1443
1443
 
1444
+ /**
1445
+ * Determines the breakpoint based on window width.
1446
+ * Checks breakpoints in descending order (desktop to minimum).
1447
+ *
1448
+ * @param width - The window width in pixels
1449
+ * @returns The corresponding viewport breakpoint
1450
+ */
1451
+ export declare const getBreakpoint: (width: number) => Viewport;
1452
+
1444
1453
  export declare type GetGenericPropsReturnType<Attr extends string, T extends string> = {
1445
1454
  [K in GenerateSimpleResponsiveStyleKeys<Attr>]: T | undefined;
1446
1455
  };
@@ -1976,7 +1985,7 @@ declare type LabelStates = {
1976
1985
  };
1977
1986
 
1978
1987
  export declare const ListMenu: {
1979
- <T extends default_2.ElementType = "a">({ items, activeItem, open, variant, linkComponent, onItemClick, }: ListMenuProps<T>): JSX.Element;
1988
+ <T extends default_2.ElementType = "a">({ items, activeItem, open, variant, linkComponent: LinkComponent, onItemClick, }: ListMenuProps<T>): JSX.Element;
1980
1989
  displayName: string;
1981
1990
  };
1982
1991
 
@@ -2170,7 +2179,7 @@ export declare type MidSection<T extends ElementType = 'a'> = {
2170
2179
  * On hover, a PopUpMenu opens revealing the section items.
2171
2180
  */
2172
2181
  replaceWithIconOnClose?: CommonIconNames;
2173
- };
2182
+ } & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
2174
2183
 
2175
2184
  export declare const MidSectionMenus: {
2176
2185
  <T extends ElementType = "a">({ sections, open, variant, activeItem, linkComponent: LinkComponent, onItemClick, }: MidSectionMenusProps<T>): JSX.Element | null;