@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.
- package/dist/CodeBlock.highlighter-CCgHF2oe.cjs +1 -0
- package/dist/CodeBlock.highlighter-CfSV1CLY.js +5 -0
- package/dist/bin/{cli.js → cli.mjs} +15 -15
- package/dist/chunk-Dh2uaMuV.cjs +1 -0
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +3 -1
- package/dist/unity-ui.d.ts +11 -2
- package/dist/unity-ui.es.js +745 -2441
- package/package.json +28 -38
- package/dist/CodeBlock.highlighter-CbWctdYM.cjs +0 -1
- package/dist/CodeBlock.highlighter-Cw8EVSIW.js +0 -6
- package/dist/bin/templates/doc.mdx +0 -36
- /package/dist/bin/{templates → bin/templates}/component.tsx +0 -0
- /package/dist/bin/{templates → bin/templates}/index.ts +0 -0
- /package/dist/bin/{templates → bin/templates}/stories.tsx +0 -0
- /package/dist/bin/{templates → bin/templates}/styled.ts +0 -0
- /package/dist/bin/{templates → bin/templates}/test.tsx +0 -0
- /package/dist/bin/{templates → bin/templates}/types.ts +0 -0
- /package/dist/bin/{generate-skills.js → generate-skills.mjs} +0 -0
package/dist/unity-ui.d.ts
CHANGED
|
@@ -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;
|