@tamagui/web
Advanced tools
Comparing version 1.30.23 to 1.30.24
@@ -223,2 +223,5 @@ "use strict"; | ||
); | ||
if (!variantOut) { | ||
continue; | ||
} | ||
const { pressStyle, hoverStyle, focusStyle, enterStyle, exitStyle, ...rest } = Object.fromEntries(variantOut); | ||
@@ -225,0 +228,0 @@ const subs = { pressStyle, hoverStyle, focusStyle, enterStyle, exitStyle }; |
@@ -198,2 +198,5 @@ import { isAndroid, isWeb } from "@tamagui/constants"; | ||
); | ||
if (!variantOut) { | ||
continue; | ||
} | ||
const { pressStyle, hoverStyle, focusStyle, enterStyle, exitStyle, ...rest } = Object.fromEntries(variantOut); | ||
@@ -200,0 +203,0 @@ const subs = { pressStyle, hoverStyle, focusStyle, enterStyle, exitStyle }; |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.30.23", | ||
"version": "1.30.24", | ||
"source": "src/index.ts", | ||
@@ -30,9 +30,9 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.30.23", | ||
"@tamagui/constants": "1.30.23", | ||
"@tamagui/helpers": "1.30.23", | ||
"@tamagui/normalize-css-color": "1.30.23", | ||
"@tamagui/use-did-finish-ssr": "1.30.23", | ||
"@tamagui/use-event": "1.30.23", | ||
"@tamagui/use-force-update": "1.30.23" | ||
"@tamagui/compose-refs": "1.30.24", | ||
"@tamagui/constants": "1.30.24", | ||
"@tamagui/helpers": "1.30.24", | ||
"@tamagui/normalize-css-color": "1.30.24", | ||
"@tamagui/use-did-finish-ssr": "1.30.24", | ||
"@tamagui/use-event": "1.30.24", | ||
"@tamagui/use-force-update": "1.30.24" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "1.30.23", | ||
"@tamagui/build": "1.30.24", | ||
"@testing-library/react": "^13.4.0", | ||
@@ -46,0 +46,0 @@ "csstype": "^3.0.10", |
@@ -12,2 +12,3 @@ import { isAndroid, isWeb } from '@tamagui/constants' | ||
StaticConfigParsed, | ||
StyleResolver, | ||
TamaguiInternalConfig, | ||
@@ -134,19 +135,2 @@ VariantSpreadFunction, | ||
type StyleResolver = ( | ||
key: string, | ||
value: any, | ||
props: Record<string, any>, | ||
defaultProps: any, | ||
theme: any, | ||
variants: GenericVariantDefinitions, | ||
fontFamily: string, | ||
conf: TamaguiInternalConfig, | ||
returnVariablesAs: 'auto' | 'value' | 'non-color-value', | ||
staticConfig: StaticConfigParsed, | ||
parentVariantKey: string, | ||
languageContext?: LanguageContextType, | ||
avoidDefaultProps?: boolean, | ||
debug?: DebugProp | ||
) => any | ||
const resolveVariants: StyleResolver = ( | ||
@@ -298,3 +282,3 @@ key, | ||
const resolveTokensAndVariants: StyleResolver = ( | ||
const resolveTokensAndVariants: StyleResolver<Object> = ( | ||
key, // we dont use key assume value is object instead | ||
@@ -343,2 +327,6 @@ value, | ||
if (!variantOut) { | ||
continue | ||
} | ||
const { pressStyle, hoverStyle, focusStyle, enterStyle, exitStyle, ...rest } = | ||
@@ -345,0 +333,0 @@ Object.fromEntries(variantOut) |
@@ -8,3 +8,5 @@ /** | ||
export function expandStyle(key: string, value: any) { | ||
import { PropMappedValue } from '../types' | ||
export function expandStyle(key: string, value: any): PropMappedValue { | ||
if (process.env.TAMAGUI_TARGET === 'web') { | ||
@@ -11,0 +13,0 @@ if (key === 'flex') { |
@@ -5,3 +5,4 @@ /** | ||
*/ | ||
export declare function expandStyle(key: string, value: any): any[][] | undefined; | ||
import { PropMappedValue } from '../types'; | ||
export declare function expandStyle(key: string, value: any): PropMappedValue; | ||
//# sourceMappingURL=expandStyle.d.ts.map |
@@ -8,3 +8,3 @@ import type { StyleObject } from '@tamagui/helpers'; | ||
import { StyledContext } from './helpers/createStyledContext'; | ||
import type { FontLanguageProps } from './views/FontLanguage.types'; | ||
import type { FontLanguageProps, LanguageContextType } from './views/FontLanguage.types'; | ||
import type { ThemeProviderProps } from './views/ThemeProvider'; | ||
@@ -532,3 +532,5 @@ export type { MediaStyleObject, StyleObject } from '@tamagui/helpers'; | ||
}; | ||
export type PropMapper = (key: string, value: any, theme: ThemeParsed, props: Record<string, any>, state: Partial<SplitStyleState>, languageContext?: FontLanguageProps, avoidDefaultProps?: boolean, debug?: DebugProp) => undefined | [string, any][]; | ||
export type PropMappedValue = [string, any][] | undefined; | ||
export type StyleResolver<Response = PropMappedValue> = (key: string, value: any, props: Record<string, any>, defaultProps: any, theme: any, variants: GenericVariantDefinitions, fontFamily: string, conf: TamaguiInternalConfig, returnVariablesAs: 'auto' | 'value' | 'non-color-value', staticConfig: StaticConfigParsed, parentVariantKey: string, languageContext?: LanguageContextType, avoidDefaultProps?: boolean, debug?: DebugProp) => Response; | ||
export type PropMapper = (key: string, value: any, theme: ThemeParsed, props: Record<string, any>, state: Partial<SplitStyleState>, languageContext?: FontLanguageProps, avoidDefaultProps?: boolean, debug?: DebugProp) => PropMappedValue; | ||
export type StaticConfigParsed = StaticConfig & { | ||
@@ -848,9 +850,8 @@ parsed: true; | ||
* `StyleProp` copied from React Native: | ||
* Exported to fix https://github.com/tamagui/tamagui/issues/1258 | ||
*/ | ||
export type Falsy = undefined | null | false; | ||
export interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> { | ||
type Falsy = undefined | null | false; | ||
interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> { | ||
} | ||
/** Keep a brand of 'T' so that calls to `StyleSheet.flatten` can take `RegisteredStyle<T>` and return `T`. */ | ||
export type RegisteredStyle<T> = number & { | ||
type RegisteredStyle<T> = number & { | ||
__registeredStyleBrand: T; | ||
@@ -857,0 +858,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1177025
24875
+ Added@tamagui/compose-refs@1.30.24(transitive)
+ Added@tamagui/constants@1.30.24(transitive)
+ Added@tamagui/helpers@1.30.24(transitive)
+ Added@tamagui/normalize-css-color@1.30.24(transitive)
+ Added@tamagui/simple-hash@1.30.24(transitive)
+ Added@tamagui/use-did-finish-ssr@1.30.24(transitive)
+ Added@tamagui/use-event@1.30.24(transitive)
+ Added@tamagui/use-force-update@1.30.24(transitive)
- Removed@tamagui/compose-refs@1.30.23(transitive)
- Removed@tamagui/constants@1.30.23(transitive)
- Removed@tamagui/helpers@1.30.23(transitive)
- Removed@tamagui/normalize-css-color@1.30.23(transitive)
- Removed@tamagui/simple-hash@1.30.23(transitive)
- Removed@tamagui/use-did-finish-ssr@1.30.23(transitive)
- Removed@tamagui/use-event@1.30.23(transitive)
- Removed@tamagui/use-force-update@1.30.23(transitive)
Updated@tamagui/constants@1.30.24
Updated@tamagui/helpers@1.30.24
Updated@tamagui/use-event@1.30.24