@tamagui/core 1.0.1-beta.169 → 1.0.1-beta.171
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/cjs/createComponent.js +44 -28
- package/dist/cjs/createComponent.js.map +3 -3
- package/dist/cjs/helpers/getVariantExtras.js +4 -1
- package/dist/cjs/helpers/getVariantExtras.js.map +2 -2
- package/dist/cjs/helpers/proxyThemeVariables.js +5 -1
- package/dist/cjs/helpers/proxyThemeVariables.js.map +2 -2
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/createComponent.js +44 -28
- package/dist/esm/createComponent.js.map +3 -3
- package/dist/esm/helpers/getVariantExtras.js +4 -1
- package/dist/esm/helpers/getVariantExtras.js.map +2 -2
- package/dist/esm/helpers/proxyThemeVariables.js +5 -1
- package/dist/esm/helpers/proxyThemeVariables.js.map +2 -2
- package/package.json +10 -10
- package/src/createComponent.tsx +27 -8
- package/src/helpers/getVariantExtras.tsx +5 -4
- package/src/helpers/proxyThemeVariables.tsx +6 -1
- package/src/types.tsx +5 -2
- package/types/Tamagui.d.ts +1 -1
- package/types/config.d.ts +1 -1
- package/types/helpers/expandStyles.d.ts +1 -1
- package/types/helpers/getAnimationDriver.d.ts +1 -1
- package/types/types.d.ts +3 -3
package/types/Tamagui.d.ts
CHANGED
package/types/config.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const getConfig: () => TamaguiInternalConfig<import("./types").Cr
|
|
|
11
11
|
[key: string]: string | number;
|
|
12
12
|
};
|
|
13
13
|
}, {
|
|
14
|
-
[key: string]: string | {
|
|
14
|
+
[key: string]: string | any[] | {
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
};
|
|
17
17
|
}, import("./types").GenericFonts>;
|
|
@@ -18,7 +18,7 @@ export declare function expandStyles(style: Record<string, any>, config?: import
|
|
|
18
18
|
[key: string]: string | number;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
|
-
[key: string]: string | {
|
|
21
|
+
[key: string]: string | any[] | {
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
};
|
|
24
24
|
}, import("..").GenericFonts>): Record<string, any>;
|
package/types/types.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare type GenericFonts = Record<string, GenericFont>;
|
|
|
98
98
|
declare type GenericAnimations = {
|
|
99
99
|
[key: string]: string | {
|
|
100
100
|
[key: string]: any;
|
|
101
|
-
};
|
|
101
|
+
} | any[];
|
|
102
102
|
};
|
|
103
103
|
export interface TamaguiCustomConfig {
|
|
104
104
|
}
|
|
@@ -144,7 +144,7 @@ export declare type Media = TamaguiConfig['media'];
|
|
|
144
144
|
export declare type Themes = TamaguiConfig['themes'];
|
|
145
145
|
export declare type ThemeName = GetAltThemeNames<keyof Themes>;
|
|
146
146
|
export declare type ThemeTokens = `$${ThemeKeys}`;
|
|
147
|
-
export declare type AnimationKeys =
|
|
147
|
+
export declare type AnimationKeys = TamaguiConfig['animations'] extends AnimationDriver<infer Config> ? keyof Config : string;
|
|
148
148
|
export declare type FontLanguages = ArrayIntersection<TamaguiConfig['fontLanguages']>;
|
|
149
149
|
declare type ArrayIntersection<A extends any[]> = A[keyof A];
|
|
150
150
|
declare type GetAltThemeNames<S> = (S extends `${string}_${infer Alt}` ? GetAltThemeNames<Alt> : S) | S;
|
|
@@ -203,7 +203,7 @@ export declare type TamaguiInternalConfig<A extends GenericTokens = GenericToken
|
|
|
203
203
|
parsed: boolean;
|
|
204
204
|
inverseShorthands: Record<string, string>;
|
|
205
205
|
};
|
|
206
|
-
export declare type GetAnimationKeys<A extends GenericTamaguiConfig> = keyof A['animations']
|
|
206
|
+
export declare type GetAnimationKeys<A extends GenericTamaguiConfig> = keyof A['animations'];
|
|
207
207
|
export declare type UnionableString = string & {};
|
|
208
208
|
export declare type UnionableNumber = number & {};
|
|
209
209
|
export declare type PropTypes<A extends TamaguiComponent> = A extends React.FunctionComponent<infer Props> ? Props : unknown;
|