@plasmicapp/react-web 0.2.398 → 0.2.399
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
type ActiveGlobalVariants = string | string[] | undefined;
|
|
1
2
|
export type GlobalVariants = {
|
|
2
|
-
[gv: string]:
|
|
3
|
+
[gv: string]: ActiveGlobalVariants;
|
|
3
4
|
};
|
|
4
5
|
export type UseGlobalVariants = () => GlobalVariants;
|
|
5
6
|
/**
|
|
@@ -25,7 +26,7 @@ export type UseGlobalVariants = () => GlobalVariants;
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare function createUseGlobalVariants<T extends {
|
|
28
|
-
[gv: string]: () =>
|
|
29
|
+
[gv: string]: () => ActiveGlobalVariants;
|
|
29
30
|
}>(globalVariantHooks: T): UseGlobalVariants;
|
|
30
31
|
/**
|
|
31
32
|
* @deprecated - new generated code should use `useGlobalVariants` instead
|
|
@@ -47,3 +48,4 @@ export declare function createUseGlobalVariants<T extends {
|
|
|
47
48
|
* ```
|
|
48
49
|
*/
|
|
49
50
|
export declare function ensureGlobalVariants<T extends GlobalVariants>(globalVariants: T): GlobalVariants;
|
|
51
|
+
export {};
|