@tamagui/core 1.0.1-beta.205 → 1.0.1-beta.207

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.
@@ -11,10 +11,10 @@ export interface ThemeProps {
11
11
  }
12
12
  export declare const useTheme: (themeName?: string | null, componentName?: string, props?: ThemeProps, forceUpdate?: any) => ThemeParsed;
13
13
  export declare const getThemeManager: (theme: any) => ThemeManager | undefined;
14
- export declare const useThemeName: (opts?: {
14
+ export declare function useThemeName(opts?: {
15
15
  parent?: true;
16
- }) => string;
17
- export declare const useDefaultThemeName: () => ThemeName | undefined;
16
+ }): ThemeName;
17
+ export declare const useDefaultThemeName: () => string | undefined;
18
18
  export declare const activeThemeManagers: Set<ThemeManager>;
19
19
  export declare const useChangeThemeEffect: (name?: string | null, componentName?: string, props?: ThemeProps, forceUpdateProp?: any, uuid?: Object) => {
20
20
  themes: Record<string, ThemeParsed>;
package/types/types.d.ts CHANGED
@@ -147,7 +147,7 @@ export declare type Tokens = TamaguiConfig['tokens'];
147
147
  export declare type Shorthands = TamaguiConfig['shorthands'];
148
148
  export declare type Media = TamaguiConfig['media'];
149
149
  export declare type Themes = TamaguiConfig['themes'];
150
- export declare type ThemeName = GetAltThemeNames<keyof Themes>;
150
+ export declare type ThemeName = Exclude<GetAltThemeNames<keyof Themes>, number>;
151
151
  export declare type ThemeTokens = `$${ThemeKeys}`;
152
152
  export declare type AnimationKeys = TamaguiConfig['animations'] extends AnimationDriver<infer Config> ? keyof Config : string;
153
153
  export declare type FontLanguages = ArrayIntersection<TamaguiConfig['fontLanguages']>;
@@ -172,7 +172,6 @@ export declare type CreateTamaguiProps = {
172
172
  [key: string]: string | number | Variable;
173
173
  };
174
174
  };
175
- defaultTheme?: string;
176
175
  /**
177
176
  * *Advanced use case* For all CSS extracted views, this has no effect.
178
177
  *