@tamagui/web 3.0.0-beta.807.1 → 3.0.0-beta.881.1
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/config.cjs +1 -1
- package/dist/cjs/config.native.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +40 -19
- package/dist/cjs/createComponent.native.cjs +42 -21
- package/dist/cjs/createComponent.native.js +42 -21
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +54 -4
- package/dist/cjs/createStyledHOC.native.cjs +55 -4
- package/dist/cjs/createStyledHOC.native.js +55 -4
- package/dist/cjs/createStyledHOC.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +1 -1
- package/dist/cjs/createTokens.native.cjs +1 -1
- package/dist/cjs/createTokens.native.js +1 -1
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/createVariable.cjs +0 -10
- package/dist/cjs/createVariable.native.cjs +0 -10
- package/dist/cjs/createVariable.native.js +0 -10
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +147 -99
- package/dist/cjs/dom/htmlRuntime.native.cjs +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +16 -13
- package/dist/cjs/dom/primitives.native.js +16 -13
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/helpers/borderComponents.cjs +62 -0
- package/dist/cjs/helpers/borderComponents.native.cjs +82 -0
- package/dist/cjs/helpers/borderComponents.native.js +84 -0
- package/dist/cjs/helpers/borderComponents.native.js.map +1 -0
- package/dist/cjs/helpers/componentDisplayName.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/cjs/helpers/createDesignSystem.cjs +0 -2
- package/dist/cjs/helpers/createStyledContext.cjs +10 -18
- package/dist/cjs/helpers/createStyledContext.native.cjs +14 -18
- package/dist/cjs/helpers/createStyledContext.native.js +14 -18
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/formatDiagnostic.cjs +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.js +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +133 -114
- package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +11 -3
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +11 -3
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.cjs +13 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.cjs +15 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +15 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
- package/dist/cjs/helpers/getDynamicVal.cjs +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.cjs +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.js +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +1063 -2168
- package/dist/cjs/helpers/getSplitStyles.native.cjs +1115 -2515
- package/dist/cjs/helpers/getSplitStyles.native.js +1115 -2515
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/grammarConfig.cjs +163 -1
- package/dist/cjs/helpers/grammarConfig.native.cjs +186 -1
- package/dist/cjs/helpers/grammarConfig.native.js +186 -1
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +5 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +7 -1
- package/dist/cjs/helpers/insertStyleRule.native.js +7 -1
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/log.cjs +9 -8
- package/dist/cjs/helpers/log.native.cjs +9 -8
- package/dist/cjs/helpers/log.native.js +9 -8
- package/dist/cjs/helpers/log.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.cjs +44 -13
- package/dist/cjs/helpers/mergeVariants.native.cjs +79 -14
- package/dist/cjs/helpers/mergeVariants.native.js +79 -14
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.cjs +34 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +36 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.js +36 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +7 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +9 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +9 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/cjs/helpers/parseBorderShorthand.native.cjs +25 -56
- package/dist/cjs/helpers/parseBorderShorthand.native.js +25 -56
- package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/parseOutlineShorthand.native.cjs +9 -49
- package/dist/cjs/helpers/parseOutlineShorthand.native.js +9 -49
- package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeArea.cjs +35 -100
- package/dist/cjs/helpers/resolveVariantStyle.cjs +57 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.cjs +67 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js +69 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
- package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
- package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
- package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/{getDefaultProps.native.cjs → styleStaticConfig.cjs} +7 -8
- package/dist/cjs/helpers/{getDefaultProps.native.js → styleStaticConfig.native.cjs} +7 -8
- package/dist/cjs/helpers/styleStaticConfig.native.js +31 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/cjs/helpers/styleStaticConfigCore.cjs +107 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +127 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js +129 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/cjs/helpers/styledDynamic.cjs +160 -0
- package/dist/cjs/helpers/styledDynamic.native.cjs +195 -0
- package/dist/cjs/helpers/styledDynamic.native.js +197 -0
- package/dist/cjs/helpers/styledDynamic.native.js.map +1 -0
- package/dist/cjs/helpers/tokenCategories.cjs +12 -74
- package/dist/cjs/helpers/tokenCategories.native.cjs +12 -76
- package/dist/cjs/helpers/tokenCategories.native.js +12 -76
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/variableValue.cjs +17 -12
- package/dist/cjs/helpers/variableValue.native.cjs +46 -23
- package/dist/cjs/helpers/variableValue.native.js +46 -23
- package/dist/cjs/helpers/variableValue.native.js.map +1 -1
- package/dist/cjs/helpers/warnOnce.cjs +5 -4
- package/dist/cjs/helpers/warnOnce.native.cjs +6 -4
- package/dist/cjs/helpers/warnOnce.native.js +6 -4
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
- package/dist/cjs/hooks/useAnimationDriver.cjs +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.cjs +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.js +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +41 -82
- package/dist/cjs/hooks/useComponentState.native.cjs +45 -84
- package/dist/cjs/hooks/useComponentState.native.js +45 -84
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +2 -2
- package/dist/cjs/hooks/useMedia.native.cjs +2 -2
- package/dist/cjs/hooks/useMedia.native.js +2 -2
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/useSplitStyles.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/cjs/{helpers/getDefaultProps.cjs → hooks/useStyle.cjs} +10 -4
- package/dist/cjs/{helpers/directStyleCSS.native.js → hooks/useStyle.native.cjs} +16 -6
- package/dist/cjs/hooks/useStyle.native.js +34 -0
- package/dist/cjs/hooks/useStyle.native.js.map +1 -0
- package/dist/cjs/hooks/useThemeState.cjs +25 -90
- package/dist/cjs/hooks/useThemeState.native.cjs +34 -94
- package/dist/cjs/hooks/useThemeState.native.js +34 -94
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -12
- package/dist/cjs/index.native.cjs +9 -12
- package/dist/cjs/index.native.js +9 -12
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +8 -7
- package/dist/cjs/internal-runtime.native.cjs +8 -7
- package/dist/cjs/internal-runtime.native.js +8 -7
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +8 -7
- package/dist/cjs/static-resolve.native.cjs +8 -7
- package/dist/cjs/static-resolve.native.js +8 -7
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/style.cjs +91 -0
- package/dist/cjs/style.native.cjs +98 -0
- package/dist/cjs/style.native.js +100 -0
- package/dist/cjs/style.native.js.map +1 -0
- package/dist/cjs/styled.cjs +15 -62
- package/dist/cjs/styled.native.cjs +15 -64
- package/dist/cjs/styled.native.js +15 -64
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/types.cjs +4 -22
- package/dist/cjs/types.native.cjs +4 -22
- package/dist/cjs/types.native.js +4 -22
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.cjs +1 -2
- package/dist/cjs/views/TamaguiProvider.native.cjs +1 -2
- package/dist/cjs/views/TamaguiProvider.native.js +1 -2
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +21 -14
- package/dist/cjs/views/Text.native.cjs +5 -2
- package/dist/cjs/views/Text.native.js +5 -2
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +2 -2
- package/dist/cjs/views/Theme.native.cjs +2 -2
- package/dist/cjs/views/Theme.native.js +2 -2
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/cjs/views/ThemeDebug.cjs +1 -4
- package/dist/cjs/views/View.cjs +4 -2
- package/dist/cjs/views/View.native.cjs +4 -2
- package/dist/cjs/views/View.native.js +4 -2
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +41 -20
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +43 -22
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createStyledHOC.mjs +55 -5
- package/dist/esm/createStyledHOC.mjs.map +1 -1
- package/dist/esm/createStyledHOC.native.js +56 -5
- package/dist/esm/createStyledHOC.native.js.map +1 -1
- package/dist/esm/createTokens.mjs +1 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createTokens.native.js +1 -1
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/createVariable.mjs +1 -9
- package/dist/esm/createVariable.mjs.map +1 -1
- package/dist/esm/createVariable.native.js +1 -9
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/dom/html.mjs +147 -99
- package/dist/esm/dom/html.mjs.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +7 -3
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +16 -13
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/helpers/borderComponents.mjs +37 -0
- package/dist/esm/helpers/borderComponents.mjs.map +1 -0
- package/dist/esm/helpers/borderComponents.native.js +55 -0
- package/dist/esm/helpers/borderComponents.native.js.map +1 -0
- package/dist/esm/helpers/componentDisplayName.mjs +1 -8
- package/dist/esm/helpers/componentDisplayName.mjs.map +1 -1
- package/dist/esm/helpers/componentDisplayName.native.js +1 -8
- package/dist/esm/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/esm/helpers/createDesignSystem.mjs +0 -2
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.mjs +10 -18
- package/dist/esm/helpers/createStyledContext.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js +14 -18
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs +8 -10
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +8 -10
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +131 -114
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.native.js +7 -4
- package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +8 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +10 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
- package/dist/esm/helpers/getDynamicVal.mjs +5 -1
- package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
- package/dist/esm/helpers/getDynamicVal.native.js +5 -1
- package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +1052 -2151
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +1090 -2481
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/grammarConfig.mjs +164 -2
- package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
- package/dist/esm/helpers/grammarConfig.native.js +187 -2
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs +5 -2
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +7 -2
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/log.mjs +9 -8
- package/dist/esm/helpers/log.mjs.map +1 -1
- package/dist/esm/helpers/log.native.js +9 -8
- package/dist/esm/helpers/log.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.mjs +44 -13
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +79 -14
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.mjs +0 -1
- package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.native.js +0 -1
- package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.mjs +34 -15
- package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.native.js +36 -15
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +7 -8
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +9 -8
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/esm/helpers/parseBorderShorthand.native.js +23 -56
- package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/esm/helpers/parseOutlineShorthand.native.js +10 -49
- package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeArea.mjs +35 -97
- package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -1
- package/dist/esm/helpers/resolveVariantStyle.mjs +38 -0
- package/dist/esm/helpers/resolveVariantStyle.mjs.map +1 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js +46 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/esm/helpers/splitStyleProps.mjs +27 -0
- package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/splitStyleProps.native.js +28 -0
- package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.mjs +8 -0
- package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.native.js +8 -0
- package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs +88 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js +106 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/esm/helpers/styledDynamic.mjs +136 -0
- package/dist/esm/helpers/styledDynamic.mjs.map +1 -0
- package/dist/esm/helpers/styledDynamic.native.js +169 -0
- package/dist/esm/helpers/styledDynamic.native.js.map +1 -0
- package/dist/esm/helpers/tokenCategories.mjs +12 -72
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js +12 -74
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/variableValue.mjs +17 -12
- package/dist/esm/helpers/variableValue.mjs.map +1 -1
- package/dist/esm/helpers/variableValue.native.js +46 -23
- package/dist/esm/helpers/variableValue.native.js.map +1 -1
- package/dist/esm/helpers/warnOnce.mjs +5 -4
- package/dist/esm/helpers/warnOnce.mjs.map +1 -1
- package/dist/esm/helpers/warnOnce.native.js +6 -4
- package/dist/esm/helpers/warnOnce.native.js.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.mjs +2 -2
- package/dist/esm/hooks/useAnimationDriver.mjs.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.native.js +2 -2
- package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +41 -82
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +45 -84
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +2 -2
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +2 -2
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/useSplitStyles.mjs +2 -2
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js +2 -2
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/esm/hooks/useStyle.mjs +11 -0
- package/dist/esm/hooks/useStyle.mjs.map +1 -0
- package/dist/esm/hooks/useStyle.native.js +11 -0
- package/dist/esm/hooks/useStyle.native.js.map +1 -0
- package/dist/esm/hooks/useThemeState.mjs +25 -90
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +34 -94
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/index.native.js +8 -8
- package/dist/esm/internal-runtime.mjs +8 -7
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +8 -7
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +11 -9
- package/dist/esm/static-resolve.mjs.map +1 -1
- package/dist/esm/static-resolve.native.js +11 -9
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/style.mjs +58 -0
- package/dist/esm/style.mjs.map +1 -0
- package/dist/esm/style.native.js +63 -0
- package/dist/esm/style.native.js.map +1 -0
- package/dist/esm/styled.mjs +17 -62
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +17 -64
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/types.mjs +3 -21
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +3 -21
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +1 -2
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js +1 -2
- package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
- package/dist/esm/views/Text.mjs +21 -14
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +4 -2
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +2 -2
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +2 -2
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/dist/esm/views/ThemeDebug.mjs +1 -4
- package/dist/esm/views/ThemeDebug.mjs.map +1 -1
- package/dist/esm/views/View.mjs +4 -2
- package/dist/esm/views/View.mjs.map +1 -1
- package/dist/esm/views/View.native.js +4 -2
- package/dist/esm/views/View.native.js.map +1 -1
- package/package.json +15 -15
- package/src/config.ts +1 -1
- package/src/createComponent.tsx +62 -31
- package/src/createStyledHOC.tsx +56 -9
- package/src/createTokens.ts +1 -1
- package/src/createVariable.ts +0 -10
- package/src/dom/html.tsx +778 -877
- package/src/dom/htmlRuntime.native.tsx +7 -3
- package/src/dom/primitives.native.tsx +30 -39
- package/src/helpers/borderComponents.ts +62 -0
- package/src/helpers/componentDisplayName.ts +0 -11
- package/src/helpers/createDesignSystem.ts +0 -2
- package/src/helpers/createStyledContext.tsx +15 -53
- package/src/helpers/formatDiagnostic.ts +11 -13
- package/src/helpers/getCSSStylesAtomic.native.ts +6 -3
- package/src/helpers/getCSSStylesAtomic.ts +197 -206
- package/src/helpers/getCSSStylesAtomicCompiled.ts +13 -1
- package/src/helpers/getDynamicVal.ts +4 -0
- package/src/helpers/getSplitStyles.tsx +2058 -4052
- package/src/helpers/grammarConfig.ts +218 -1
- package/src/helpers/insertStyleRule.tsx +4 -2
- package/src/helpers/log.ts +12 -11
- package/src/helpers/mergeVariants.ts +55 -18
- package/src/helpers/nativeOnlyProps.ts +0 -1
- package/src/helpers/nativeStyleEngine.ts +55 -14
- package/src/helpers/normalizeValueWithProperty.ts +10 -12
- package/src/helpers/parseBorderShorthand.native.ts +23 -45
- package/src/helpers/parseOutlineShorthand.native.ts +9 -40
- package/src/helpers/resolveSafeArea.ts +34 -101
- package/src/helpers/resolveVariantStyle.ts +77 -0
- package/src/helpers/splitStyleProps.ts +166 -0
- package/src/helpers/styleFrontend.ts +16 -9
- package/src/helpers/styleStaticConfig.ts +21 -0
- package/src/helpers/styleStaticConfigCore.ts +110 -0
- package/src/helpers/styledDynamic.ts +191 -0
- package/src/helpers/tokenCategories.ts +32 -88
- package/src/helpers/variableValue.ts +20 -15
- package/src/helpers/warnOnce.ts +5 -4
- package/src/hooks/useAnimationDriver.ts +6 -2
- package/src/hooks/useComponentState.ts +55 -183
- package/src/hooks/useMedia.tsx +10 -8
- package/src/hooks/useSplitStyles.tsx +17 -2
- package/src/hooks/useStyle.ts +10 -0
- package/src/hooks/useTheme.tsx +1 -1
- package/src/hooks/useThemeState.ts +51 -264
- package/src/index.ts +14 -10
- package/src/internal-runtime.ts +10 -9
- package/src/internalRuntimeTypes.ts +1 -0
- package/src/static-resolve.ts +25 -18
- package/src/style.ts +97 -0
- package/src/styled.tsx +46 -332
- package/src/types.tsx +107 -192
- package/src/views/TamaguiProvider.tsx +0 -2
- package/src/views/Text.tsx +26 -21
- package/src/views/Theme.tsx +10 -8
- package/src/views/ThemeDebug.tsx +0 -1
- package/src/views/View.tsx +6 -7
- package/types/createComponent.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts.map +1 -1
- package/types/createVariable.d.ts +0 -2
- package/types/createVariable.d.ts.map +1 -1
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/dom/primitives.native.d.ts.map +1 -1
- package/types/helpers/borderComponents.d.ts +10 -0
- package/types/helpers/borderComponents.d.ts.map +1 -0
- package/types/helpers/componentDisplayName.d.ts +0 -3
- package/types/helpers/componentDisplayName.d.ts.map +1 -1
- package/types/helpers/createDesignSystem.d.ts.map +1 -1
- package/types/helpers/createStyledContext.d.ts.map +1 -1
- package/types/helpers/formatDiagnostic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts +25 -22
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.native.d.ts +5 -0
- package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts +6 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -1
- package/types/helpers/getDynamicVal.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +9 -11
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/grammarConfig.d.ts +25 -2
- package/types/helpers/grammarConfig.d.ts.map +1 -1
- package/types/helpers/insertStyleRule.d.ts +1 -0
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/helpers/log.d.ts.map +1 -1
- package/types/helpers/mergeVariants.d.ts.map +1 -1
- package/types/helpers/nativeOnlyProps.d.ts +0 -1
- package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
- package/types/helpers/nativeStyleEngine.d.ts +6 -0
- package/types/helpers/nativeStyleEngine.d.ts.map +1 -1
- package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
- package/types/helpers/parseBorderShorthand.native.d.ts +1 -0
- package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -1
- package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -1
- package/types/helpers/resolveSafeArea.d.ts +0 -1
- package/types/helpers/resolveSafeArea.d.ts.map +1 -1
- package/types/helpers/resolveVariantStyle.d.ts +3 -0
- package/types/helpers/resolveVariantStyle.d.ts.map +1 -0
- package/types/helpers/splitStyleProps.d.ts +44 -0
- package/types/helpers/splitStyleProps.d.ts.map +1 -0
- package/types/helpers/styleFrontend.d.ts +7 -9
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleStaticConfig.d.ts +14 -0
- package/types/helpers/styleStaticConfig.d.ts.map +1 -0
- package/types/helpers/styleStaticConfigCore.d.ts +4 -0
- package/types/helpers/styleStaticConfigCore.d.ts.map +1 -0
- package/types/helpers/styledDynamic.d.ts +18 -0
- package/types/helpers/styledDynamic.d.ts.map +1 -0
- package/types/helpers/tokenCategories.d.ts +0 -1
- package/types/helpers/tokenCategories.d.ts.map +1 -1
- package/types/helpers/variableValue.d.ts.map +1 -1
- package/types/helpers/warnOnce.d.ts.map +1 -1
- package/types/helpers/webPropsToSkip.native.d.ts +68 -68
- package/types/hooks/useAnimationDriver.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/useMedia.d.ts.map +1 -1
- package/types/hooks/useSplitStyles.d.ts.map +1 -1
- package/types/hooks/useStyle.d.ts +4 -0
- package/types/hooks/useStyle.d.ts.map +1 -0
- package/types/hooks/useThemeState.d.ts +1 -11
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/index.d.ts +8 -8
- package/types/index.d.ts.map +1 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/internalRuntimeTypes.d.ts +1 -1
- package/types/internalRuntimeTypes.d.ts.map +1 -1
- package/types/static-resolve.d.ts +2 -2
- package/types/static-resolve.d.ts.map +1 -1
- package/types/style.d.ts +18 -0
- package/types/style.d.ts.map +1 -0
- package/types/styled.d.ts +12 -48
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +75 -60
- package/types/types.d.ts.map +1 -1
- package/types/views/TamaguiProvider.d.ts +1 -1
- package/types/views/TamaguiProvider.d.ts.map +1 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/Theme.d.ts.map +1 -1
- package/types/views/ThemeDebug.d.ts.map +1 -1
- package/types/views/View.d.ts.map +1 -1
- package/dist/cjs/helpers/directStyleCSS.cjs +0 -348
- package/dist/cjs/helpers/directStyleCSS.native.cjs +0 -20
- package/dist/cjs/helpers/directStyleCSS.native.js.map +0 -1
- package/dist/cjs/helpers/directStyleCSSCompiled.cjs +0 -40
- package/dist/cjs/helpers/directStyleCSSCompiled.native.cjs +0 -46
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js +0 -48
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js.map +0 -1
- package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/cjs/helpers/getVariantExtras.cjs +0 -91
- package/dist/cjs/helpers/getVariantExtras.native.cjs +0 -94
- package/dist/cjs/helpers/getVariantExtras.native.js +0 -96
- package/dist/cjs/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/cjs/helpers/themeable.cjs +0 -92
- package/dist/cjs/helpers/themeable.native.cjs +0 -95
- package/dist/cjs/helpers/themeable.native.js +0 -97
- package/dist/cjs/helpers/themeable.native.js.map +0 -1
- package/dist/cjs/hooks/useProps.cjs +0 -129
- package/dist/cjs/hooks/useProps.native.cjs +0 -135
- package/dist/cjs/hooks/useProps.native.js +0 -137
- package/dist/cjs/hooks/useProps.native.js.map +0 -1
- package/dist/esm/helpers/directStyleCSS.mjs +0 -320
- package/dist/esm/helpers/directStyleCSS.mjs.map +0 -1
- package/dist/esm/helpers/directStyleCSS.native.js +0 -1
- package/dist/esm/helpers/directStyleCSSCompiled.mjs +0 -11
- package/dist/esm/helpers/directStyleCSSCompiled.mjs.map +0 -1
- package/dist/esm/helpers/directStyleCSSCompiled.native.js +0 -15
- package/dist/esm/helpers/directStyleCSSCompiled.native.js.map +0 -1
- package/dist/esm/helpers/getDefaultProps.mjs +0 -4
- package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
- package/dist/esm/helpers/getDefaultProps.native.js +0 -6
- package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/esm/helpers/getVariantExtras.mjs +0 -69
- package/dist/esm/helpers/getVariantExtras.mjs.map +0 -1
- package/dist/esm/helpers/getVariantExtras.native.js +0 -70
- package/dist/esm/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/esm/helpers/themeable.mjs +0 -67
- package/dist/esm/helpers/themeable.mjs.map +0 -1
- package/dist/esm/helpers/themeable.native.js +0 -68
- package/dist/esm/helpers/themeable.native.js.map +0 -1
- package/dist/esm/hooks/useProps.mjs +0 -100
- package/dist/esm/hooks/useProps.mjs.map +0 -1
- package/dist/esm/hooks/useProps.native.js +0 -104
- package/dist/esm/hooks/useProps.native.js.map +0 -1
- package/src/helpers/directStyleCSS.native.ts +0 -1
- package/src/helpers/directStyleCSS.ts +0 -534
- package/src/helpers/directStyleCSSCompiled.ts +0 -32
- package/src/helpers/getDefaultProps.ts +0 -3
- package/src/helpers/getVariantExtras.tsx +0 -95
- package/src/helpers/themeable.tsx +0 -96
- package/src/hooks/useProps.tsx +0 -186
- package/types/helpers/directStyleCSS.d.ts +0 -28
- package/types/helpers/directStyleCSS.d.ts.map +0 -1
- package/types/helpers/directStyleCSS.native.d.ts +0 -2
- package/types/helpers/directStyleCSS.native.d.ts.map +0 -1
- package/types/helpers/directStyleCSSCompiled.d.ts +0 -10
- package/types/helpers/directStyleCSSCompiled.d.ts.map +0 -1
- package/types/helpers/getDefaultProps.d.ts +0 -3
- package/types/helpers/getDefaultProps.d.ts.map +0 -1
- package/types/helpers/getVariantExtras.d.ts +0 -4
- package/types/helpers/getVariantExtras.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts +0 -3
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/hooks/useProps.d.ts +0 -39
- package/types/hooks/useProps.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveSafeArea.js","names":[],"sources":["esm/helpers/resolveSafeArea.js"],"sourcesContent":["const
|
|
1
|
+
{"version":3,"file":"resolveSafeArea.js","names":[],"sources":["esm/helpers/resolveSafeArea.js"],"sourcesContent":["const allEdges = [\"top\", \"right\", \"bottom\", \"left\"];\nconst suffixEdges = {\n Horizontal: [\"left\", \"right\"],\n Inline: [\"left\", \"right\"],\n Vertical: [\"top\", \"bottom\"],\n Block: [\"top\", \"bottom\"],\n Start: [\"left\"],\n InlineStart: [\"left\"],\n End: [\"right\"],\n InlineEnd: [\"right\"],\n Top: [\"top\"],\n BlockStart: [\"top\"],\n Bottom: [\"bottom\"],\n BlockEnd: [\"bottom\"],\n Left: [\"left\"],\n Right: [\"right\"]\n};\nfunction safeAreaEdges(key) {\n if (key === \"inset\") return [\"\", allEdges];\n if (/^(top|right|bottom|left)$/.test(key)) return [\"\", [key]];\n if (key === \"start\") return [\"\", [\"left\"]];\n if (key === \"end\") return [\"\", [\"right\"]];\n const match = /^(padding|margin)(.*)$/.exec(key);\n if (!match) return;\n const edges = match[2] ? suffixEdges[match[2]] : allEdges;\n return edges && [match[1], edges];\n}\nfunction expandSafeAreaValue(key) {\n const match = safeAreaEdges(key);\n if (!match) return;\n const [base, edges] = match;\n return edges.map((edge) => [\n base ? `${base}${edge[0].toUpperCase()}${edge.slice(1)}` : edge,\n `env(safe-area-inset-${edge})`\n ]);\n}\nexport {\n expandSafeAreaValue\n};\n//# sourceMappingURL=resolveSafeArea.js.map\n"],"mappings":";AAAA,MAAM,WAAW;CAAC;CAAO;CAAS;CAAU;AAAM;AAClD,MAAM,cAAc;CAClB,YAAY,CAAC,QAAQ,OAAO;CAC5B,QAAQ,CAAC,QAAQ,OAAO;CACxB,UAAU,CAAC,OAAO,QAAQ;CAC1B,OAAO,CAAC,OAAO,QAAQ;CACvB,OAAO,CAAC,MAAM;CACd,aAAa,CAAC,MAAM;CACpB,KAAK,CAAC,OAAO;CACb,WAAW,CAAC,OAAO;CACnB,KAAK,CAAC,KAAK;CACX,YAAY,CAAC,KAAK;CAClB,QAAQ,CAAC,QAAQ;CACjB,UAAU,CAAC,QAAQ;CACnB,MAAM,CAAC,MAAM;CACb,OAAO,CAAC,OAAO;AACjB;AACA,SAAS,cAAc,KAAK;CAC1B,IAAI,QAAQ,SAAS,OAAO,CAAC,IAAI,QAAQ;CACzC,IAAI,4BAA4B,KAAK,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;CAC5D,IAAI,QAAQ,SAAS,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;CACzC,IAAI,QAAQ,OAAO,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;CACxC,MAAM,QAAQ,yBAAyB,KAAK,GAAG;CAC/C,IAAI,CAAC,OAAO;CACZ,MAAM,QAAQ,MAAM,KAAK,YAAY,MAAM,MAAM;CACjD,OAAO,SAAS,CAAC,MAAM,IAAI,KAAK;AAClC;AACA,SAAS,oBAAoB,KAAK;CAChC,MAAM,QAAQ,cAAc,GAAG;CAC/B,IAAI,CAAC,OAAO;CACZ,MAAM,CAAC,MAAM,SAAS;CACtB,OAAO,MAAM,KAAK,SAAS,CACzB,OAAO,GAAG,OAAO,KAAK,EAAE,CAAC,YAAY,IAAI,KAAK,MAAM,CAAC,MAAM,MAC3D,uBAAuB,KAAK,EAC9B,CAAC;AACH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { emitVariantStyle, walkConditionalValue } from "./getSplitStyles.mjs";
|
|
2
|
+
import { isObj } from "./isObj.mjs";
|
|
3
|
+
import { skipProps } from "./skipProps.mjs";
|
|
4
|
+
import { styleOriginalValues } from "./styleOriginalValues.mjs";
|
|
5
|
+
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.mjs";
|
|
6
|
+
import { getDynamicEnv, isStyledDynamic } from "./styledDynamic.mjs";
|
|
7
|
+
|
|
8
|
+
function resolveVariantStyle(state, variants, key, value, parentKey = key, parentCondition) {
|
|
9
|
+
const definition = variants[key];
|
|
10
|
+
if (typeof definition !== "function" && isStyledDynamic(definition)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (!(typeof value === "string" && definition && typeof definition === "object" && value in definition) && walkConditionalValue(state, key, value, parentCondition, (payload, condition) => resolveSelection(state, variants, key, payload, parentKey, condition || void 0))) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
resolveSelection(state, variants, key, value, parentKey, parentCondition);
|
|
17
|
+
}
|
|
18
|
+
function resolveSelection(state, variants, key, value, parentKey, condition) {
|
|
19
|
+
const definition = variants[key];
|
|
20
|
+
let output;
|
|
21
|
+
if (isStyledDynamic(definition) && typeof definition === "function") {
|
|
22
|
+
output = definition(value, getDynamicEnv(state));
|
|
23
|
+
} else if (definition && typeof definition === "object" && value !== void 0) {
|
|
24
|
+
output = definition[value];
|
|
25
|
+
}
|
|
26
|
+
if (!isObj(output)) return;
|
|
27
|
+
const originals = styleOriginalValues.get(output);
|
|
28
|
+
for (const outputKey in output) {
|
|
29
|
+
if (!state.styleProps.noSkip && outputKey in skipProps) continue;
|
|
30
|
+
const raw = output[outputKey];
|
|
31
|
+
if (raw == null) continue;
|
|
32
|
+
const value2 = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);
|
|
33
|
+
emitVariantStyle(state, outputKey, value2, originals?.[outputKey] ?? raw, condition, parentKey === key && outputKey === key);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { resolveVariantStyle };
|
|
38
|
+
//# sourceMappingURL=resolveVariantStyle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveVariantStyle.js","names":[],"sources":["esm/helpers/resolveVariantStyle.js"],"sourcesContent":["import { emitVariantStyle, walkConditionalValue } from \"./getSplitStyles\";\nimport { isObj } from \"./isObj\";\nimport { skipProps } from \"./skipProps\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { getDynamicEnv, isStyledDynamic } from \"./styledDynamic\";\nfunction resolveVariantStyle(state, variants, key, value, parentKey = key, parentCondition) {\n const definition = variants[key];\n if (typeof definition !== \"function\" && isStyledDynamic(definition)) {\n return;\n }\n if (!(typeof value === \"string\" && definition && typeof definition === \"object\" && value in definition) && walkConditionalValue(\n state,\n key,\n value,\n parentCondition,\n (payload, condition) => resolveSelection(state, variants, key, payload, parentKey, condition || void 0)\n )) {\n return;\n }\n resolveSelection(state, variants, key, value, parentKey, parentCondition);\n}\nfunction resolveSelection(state, variants, key, value, parentKey, condition) {\n const definition = variants[key];\n let output;\n if (isStyledDynamic(definition) && typeof definition === \"function\") {\n output = definition(value, getDynamicEnv(state));\n } else if (definition && typeof definition === \"object\" && value !== void 0) {\n output = definition[value];\n }\n if (!isObj(output)) return;\n const originals = styleOriginalValues.get(output);\n for (const outputKey in output) {\n if (!state.styleProps.noSkip && outputKey in skipProps) continue;\n const raw = output[outputKey];\n if (raw == null) continue;\n const value2 = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);\n emitVariantStyle(\n state,\n outputKey,\n value2,\n originals?.[outputKey] ?? raw,\n condition,\n parentKey === key && outputKey === key\n );\n }\n}\nexport {\n resolveVariantStyle\n};\n//# sourceMappingURL=resolveVariantStyle.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,oBAAoB,OAAO,UAAU,KAAK,OAAO,YAAY,KAAK,iBAAiB;CAC1F,MAAM,aAAa,SAAS;CAC5B,IAAI,OAAO,eAAe,cAAc,gBAAgB,UAAU,GAAG;EACnE;CACF;CACA,IAAI,EAAE,OAAO,UAAU,YAAY,cAAc,OAAO,eAAe,YAAY,SAAS,eAAe,qBACzG,OACA,KACA,OACA,kBACC,SAAS,cAAc,iBAAiB,OAAO,UAAU,KAAK,SAAS,WAAW,aAAa,KAAK,CAAC,CACxG,GAAG;EACD;CACF;CACA,iBAAiB,OAAO,UAAU,KAAK,OAAO,WAAW,eAAe;AAC1E;AACA,SAAS,iBAAiB,OAAO,UAAU,KAAK,OAAO,WAAW,WAAW;CAC3E,MAAM,aAAa,SAAS;CAC5B,IAAI;CACJ,IAAI,gBAAgB,UAAU,KAAK,OAAO,eAAe,YAAY;EACnE,SAAS,WAAW,OAAO,cAAc,KAAK,CAAC;CACjD,OAAO,IAAI,cAAc,OAAO,eAAe,YAAY,UAAU,KAAK,GAAG;EAC3E,SAAS,WAAW;CACtB;CACA,IAAI,CAAC,MAAM,MAAM,GAAG;CACpB,MAAM,YAAY,oBAAoB,IAAI,MAAM;CAChD,KAAK,MAAM,aAAa,QAAQ;EAC9B,IAAI,CAAC,MAAM,WAAW,UAAU,aAAa,WAAW;EACxD,MAAM,MAAM,OAAO;EACnB,IAAI,OAAO,MAAM;EACjB,MAAM,SAAS,MAAM,WAAW,cAAc,MAAM,2BAA2B,KAAK,MAAM,KAAK,WAAW,cAAc,SAAS;EACjI,iBACE,OACA,WACA,QACA,YAAY,cAAc,KAC1B,WACA,cAAc,OAAO,cAAc,GACrC;CACF;AACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { emitVariantStyle, walkConditionalValue } from "./getSplitStyles.native.js";
|
|
2
|
+
import { isObj } from "./isObj.native.js";
|
|
3
|
+
import { skipProps } from "./skipProps.native.js";
|
|
4
|
+
import { styleOriginalValues } from "./styleOriginalValues.native.js";
|
|
5
|
+
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.native.js";
|
|
6
|
+
import { getDynamicEnv, isStyledDynamic } from "./styledDynamic.native.js";
|
|
7
|
+
|
|
8
|
+
function _type_of(obj) {
|
|
9
|
+
"@swc/helpers - typeof";
|
|
10
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11
|
+
}
|
|
12
|
+
function resolveVariantStyle(state, variants, key, value) {
|
|
13
|
+
var parentKey = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : key, parentCondition = arguments.length > 5 ? arguments[5] : void 0;
|
|
14
|
+
var definition = variants[key];
|
|
15
|
+
if (typeof definition !== "function" && isStyledDynamic(definition)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!(typeof value === "string" && definition && (typeof definition === "undefined" ? "undefined" : _type_of(definition)) === "object" && value in definition) && walkConditionalValue(state, key, value, parentCondition, function(payload, condition) {
|
|
19
|
+
return resolveSelection(state, variants, key, payload, parentKey, condition || void 0);
|
|
20
|
+
})) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
resolveSelection(state, variants, key, value, parentKey, parentCondition);
|
|
24
|
+
}
|
|
25
|
+
function resolveSelection(state, variants, key, value, parentKey, condition) {
|
|
26
|
+
var definition = variants[key];
|
|
27
|
+
var output;
|
|
28
|
+
if (isStyledDynamic(definition) && typeof definition === "function") {
|
|
29
|
+
output = definition(value, getDynamicEnv(state));
|
|
30
|
+
} else if (definition && (typeof definition === "undefined" ? "undefined" : _type_of(definition)) === "object" && value !== void 0) {
|
|
31
|
+
output = definition[value];
|
|
32
|
+
}
|
|
33
|
+
if (!isObj(output)) return;
|
|
34
|
+
var originals = styleOriginalValues.get(output);
|
|
35
|
+
for (var outputKey in output) {
|
|
36
|
+
if (!state.styleProps.noSkip && outputKey in skipProps) continue;
|
|
37
|
+
var raw = output[outputKey];
|
|
38
|
+
if (raw == null) continue;
|
|
39
|
+
var _$value = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);
|
|
40
|
+
var _originals_outputKey;
|
|
41
|
+
emitVariantStyle(state, outputKey, _$value, (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : raw, condition, parentKey === key && outputKey === key);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { resolveVariantStyle };
|
|
46
|
+
//# sourceMappingURL=resolveVariantStyle.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveVariantStyle.native.js","names":[],"sources":["esm/helpers/resolveVariantStyle.native.js"],"sourcesContent":["import { emitVariantStyle, walkConditionalValue } from \"./getSplitStyles\";\nimport { isObj } from \"./isObj\";\nimport { skipProps } from \"./skipProps\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { getDynamicEnv, isStyledDynamic } from \"./styledDynamic\";\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction resolveVariantStyle(state, variants, key, value) {\n var parentKey = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : key, parentCondition = arguments.length > 5 ? arguments[5] : void 0;\n var definition = variants[key];\n if (typeof definition !== \"function\" && isStyledDynamic(definition)) {\n return;\n }\n if (!(typeof value === \"string\" && definition && (typeof definition === \"undefined\" ? \"undefined\" : _type_of(definition)) === \"object\" && value in definition) && walkConditionalValue(state, key, value, parentCondition, function(payload, condition) {\n return resolveSelection(state, variants, key, payload, parentKey, condition || void 0);\n })) {\n return;\n }\n resolveSelection(state, variants, key, value, parentKey, parentCondition);\n}\nfunction resolveSelection(state, variants, key, value, parentKey, condition) {\n var definition = variants[key];\n var output;\n if (isStyledDynamic(definition) && typeof definition === \"function\") {\n output = definition(value, getDynamicEnv(state));\n } else if (definition && (typeof definition === \"undefined\" ? \"undefined\" : _type_of(definition)) === \"object\" && value !== void 0) {\n output = definition[value];\n }\n if (!isObj(output)) return;\n var originals = styleOriginalValues.get(output);\n for (var outputKey in output) {\n if (!state.styleProps.noSkip && outputKey in skipProps) continue;\n var raw = output[outputKey];\n if (raw == null) continue;\n var _$value = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);\n var _originals_outputKey;\n emitVariantStyle(state, outputKey, _$value, (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : raw, condition, parentKey === key && outputKey === key);\n }\n}\nexport {\n resolveVariantStyle\n};\n//# sourceMappingURL=resolveVariantStyle.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,SAAS,oBAAoB,OAAO,UAAU,KAAK,OAAO;CACxD,IAAI,YAAY,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,KAAK,kBAAkB,UAAU,SAAS,IAAI,UAAU,KAAK,KAAK;CACnJ,IAAI,aAAa,SAAS;CAC1B,IAAI,OAAO,eAAe,cAAc,gBAAgB,UAAU,GAAG;EACnE;CACF;CACA,IAAI,EAAE,OAAO,UAAU,YAAY,eAAe,OAAO,eAAe,cAAc,cAAc,SAAS,UAAU,OAAO,YAAY,SAAS,eAAe,qBAAqB,OAAO,KAAK,OAAO,iBAAiB,SAAS,SAAS,WAAW;EACtP,OAAO,iBAAiB,OAAO,UAAU,KAAK,SAAS,WAAW,aAAa,KAAK,CAAC;CACvF,CAAC,GAAG;EACF;CACF;CACA,iBAAiB,OAAO,UAAU,KAAK,OAAO,WAAW,eAAe;AAC1E;AACA,SAAS,iBAAiB,OAAO,UAAU,KAAK,OAAO,WAAW,WAAW;CAC3E,IAAI,aAAa,SAAS;CAC1B,IAAI;CACJ,IAAI,gBAAgB,UAAU,KAAK,OAAO,eAAe,YAAY;EACnE,SAAS,WAAW,OAAO,cAAc,KAAK,CAAC;CACjD,OAAO,IAAI,eAAe,OAAO,eAAe,cAAc,cAAc,SAAS,UAAU,OAAO,YAAY,UAAU,KAAK,GAAG;EAClI,SAAS,WAAW;CACtB;CACA,IAAI,CAAC,MAAM,MAAM,GAAG;CACpB,IAAI,YAAY,oBAAoB,IAAI,MAAM;CAC9C,KAAK,IAAI,aAAa,QAAQ;EAC5B,IAAI,CAAC,MAAM,WAAW,UAAU,aAAa,WAAW;EACxD,IAAI,MAAM,OAAO;EACjB,IAAI,OAAO,MAAM;EACjB,IAAI,UAAU,MAAM,WAAW,cAAc,MAAM,2BAA2B,KAAK,MAAM,KAAK,WAAW,cAAc,SAAS;EAChI,IAAI;EACJ,iBAAiB,OAAO,WAAW,UAAU,uBAAuB,cAAc,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU,gBAAgB,QAAQ,yBAAyB,KAAK,IAAI,uBAAuB,KAAK,WAAW,cAAc,OAAO,cAAc,GAAG;CAC7Q;AACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { stylePropsAll } from "@tamagui/helpers";
|
|
2
|
+
import { getConfig } from "../config.mjs";
|
|
3
|
+
|
|
4
|
+
function splitStyleProps(props, options = {}) {
|
|
5
|
+
const styleProps = {};
|
|
6
|
+
const regularProps = {};
|
|
7
|
+
const { expandShorthands = false, filter } = options;
|
|
8
|
+
const shorthands = getConfig().shorthands;
|
|
9
|
+
const filterIsFunction = typeof filter === "function";
|
|
10
|
+
const propsRecord = props;
|
|
11
|
+
for (const originalKey in props) {
|
|
12
|
+
if (!Object.hasOwn(props, originalKey)) continue;
|
|
13
|
+
const value = propsRecord[originalKey];
|
|
14
|
+
const key = shorthands[originalKey] || originalKey;
|
|
15
|
+
const isStyleProp = key in stylePropsAll;
|
|
16
|
+
const selected = filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp;
|
|
17
|
+
if (selected) {
|
|
18
|
+
styleProps[expandShorthands ? key : originalKey] = value;
|
|
19
|
+
} else {
|
|
20
|
+
regularProps[originalKey] = value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return [styleProps, regularProps];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { splitStyleProps };
|
|
27
|
+
//# sourceMappingURL=splitStyleProps.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitStyleProps.js","names":[],"sources":["esm/helpers/splitStyleProps.js"],"sourcesContent":["import { stylePropsAll } from \"@tamagui/helpers\";\nimport { getConfig } from \"../config\";\nfunction splitStyleProps(props, options = {}) {\n const styleProps = {};\n const regularProps = {};\n const { expandShorthands = false, filter } = options;\n const shorthands = getConfig().shorthands;\n const filterIsFunction = typeof filter === \"function\";\n const propsRecord = props;\n for (const originalKey in props) {\n if (!Object.hasOwn(props, originalKey)) continue;\n const value = propsRecord[originalKey];\n const key = shorthands[originalKey] || originalKey;\n const isStyleProp = key in stylePropsAll;\n const selected = filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp;\n if (selected) {\n styleProps[expandShorthands ? key : originalKey] = value;\n } else {\n regularProps[originalKey] = value;\n }\n }\n return [styleProps, regularProps];\n}\nexport {\n splitStyleProps\n};\n//# sourceMappingURL=splitStyleProps.js.map\n"],"mappings":";;;;AAEA,SAAS,gBAAgB,OAAO,UAAU,CAAC,GAAG;CAC5C,MAAM,aAAa,CAAC;CACpB,MAAM,eAAe,CAAC;CACtB,MAAM,EAAE,mBAAmB,OAAO,WAAW;CAC7C,MAAM,aAAa,UAAU,CAAC,CAAC;CAC/B,MAAM,mBAAmB,OAAO,WAAW;CAC3C,MAAM,cAAc;CACpB,KAAK,MAAM,eAAe,OAAO;EAC/B,IAAI,CAAC,OAAO,OAAO,OAAO,WAAW,GAAG;EACxC,MAAM,QAAQ,YAAY;EAC1B,MAAM,MAAM,WAAW,gBAAgB;EACvC,MAAM,cAAc,OAAO;EAC3B,MAAM,WAAW,SAAS,mBAAmB,OAAO,KAAK,OAAO,aAAa,WAAW,IAAI,OAAO,OAAO,QAAQ,GAAG,IAAI;EACzH,IAAI,UAAU;GACZ,WAAW,mBAAmB,MAAM,eAAe;EACrD,OAAO;GACL,aAAa,eAAe;EAC9B;CACF;CACA,OAAO,CAAC,YAAY,YAAY;AAClC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { stylePropsAll } from "@tamagui/helpers";
|
|
2
|
+
import { getConfig } from "../config.native.js";
|
|
3
|
+
|
|
4
|
+
function splitStyleProps(props) {
|
|
5
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6
|
+
var styleProps = {};
|
|
7
|
+
var regularProps = {};
|
|
8
|
+
var { expandShorthands = false, filter } = options;
|
|
9
|
+
var shorthands = getConfig().shorthands;
|
|
10
|
+
var filterIsFunction = typeof filter === "function";
|
|
11
|
+
var propsRecord = props;
|
|
12
|
+
for (var originalKey in props) {
|
|
13
|
+
if (!Object.hasOwn(props, originalKey)) continue;
|
|
14
|
+
var value = propsRecord[originalKey];
|
|
15
|
+
var key = shorthands[originalKey] || originalKey;
|
|
16
|
+
var isStyleProp = key in stylePropsAll;
|
|
17
|
+
var selected = filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp;
|
|
18
|
+
if (selected) {
|
|
19
|
+
styleProps[expandShorthands ? key : originalKey] = value;
|
|
20
|
+
} else {
|
|
21
|
+
regularProps[originalKey] = value;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return [styleProps, regularProps];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { splitStyleProps };
|
|
28
|
+
//# sourceMappingURL=splitStyleProps.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitStyleProps.native.js","names":[],"sources":["esm/helpers/splitStyleProps.native.js"],"sourcesContent":["import { stylePropsAll } from \"@tamagui/helpers\";\nimport { getConfig } from \"../config\";\nfunction splitStyleProps(props) {\n var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var styleProps = {};\n var regularProps = {};\n var { expandShorthands = false, filter } = options;\n var shorthands = getConfig().shorthands;\n var filterIsFunction = typeof filter === \"function\";\n var propsRecord = props;\n for (var originalKey in props) {\n if (!Object.hasOwn(props, originalKey)) continue;\n var value = propsRecord[originalKey];\n var key = shorthands[originalKey] || originalKey;\n var isStyleProp = key in stylePropsAll;\n var selected = filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp;\n if (selected) {\n styleProps[expandShorthands ? key : originalKey] = value;\n } else {\n regularProps[originalKey] = value;\n }\n }\n return [\n styleProps,\n regularProps\n ];\n}\nexport {\n splitStyleProps\n};\n//# sourceMappingURL=splitStyleProps.js.map\n"],"mappings":";;;;AAEA,SAAS,gBAAgB,OAAO;CAC9B,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAChF,IAAI,aAAa,CAAC;CAClB,IAAI,eAAe,CAAC;CACpB,IAAI,EAAE,mBAAmB,OAAO,WAAW;CAC3C,IAAI,aAAa,UAAU,CAAC,CAAC;CAC7B,IAAI,mBAAmB,OAAO,WAAW;CACzC,IAAI,cAAc;CAClB,KAAK,IAAI,eAAe,OAAO;EAC7B,IAAI,CAAC,OAAO,OAAO,OAAO,WAAW,GAAG;EACxC,IAAI,QAAQ,YAAY;EACxB,IAAI,MAAM,WAAW,gBAAgB;EACrC,IAAI,cAAc,OAAO;EACzB,IAAI,WAAW,SAAS,mBAAmB,OAAO,KAAK,OAAO,aAAa,WAAW,IAAI,OAAO,OAAO,QAAQ,GAAG,IAAI;EACvH,IAAI,UAAU;GACZ,WAAW,mBAAmB,MAAM,eAAe;EACrD,OAAO;GACL,aAAa,eAAe;EAC9B;CACF;CACA,OAAO,CACL,YACA,YACF;AACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getConfigRevisionState } from "./grammarConfig.mjs";
|
|
2
|
+
|
|
3
|
+
function getStyleStaticConfig(staticConfig, conf) {
|
|
4
|
+
return getConfigRevisionState(conf).styleStaticConfig(staticConfig, conf);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { getStyleStaticConfig };
|
|
8
|
+
//# sourceMappingURL=styleStaticConfig.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleStaticConfig.js","names":[],"sources":["esm/helpers/styleStaticConfig.js"],"sourcesContent":["import { getConfigRevisionState } from \"./grammarConfig\";\nfunction getStyleStaticConfig(staticConfig, conf) {\n return getConfigRevisionState(conf).styleStaticConfig(staticConfig, conf);\n}\nexport {\n getStyleStaticConfig\n};\n//# sourceMappingURL=styleStaticConfig.js.map\n"],"mappings":";;;AACA,SAAS,qBAAqB,cAAc,MAAM;CAChD,OAAO,uBAAuB,IAAI,CAAC,CAAC,kBAAkB,cAAc,IAAI;AAC1E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getConfigRevisionState } from "./grammarConfig.native.js";
|
|
2
|
+
|
|
3
|
+
function getStyleStaticConfig(staticConfig, conf) {
|
|
4
|
+
return getConfigRevisionState(conf).styleStaticConfig(staticConfig, conf);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { getStyleStaticConfig };
|
|
8
|
+
//# sourceMappingURL=styleStaticConfig.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleStaticConfig.native.js","names":[],"sources":["esm/helpers/styleStaticConfig.native.js"],"sourcesContent":["import { getConfigRevisionState } from \"./grammarConfig\";\nfunction getStyleStaticConfig(staticConfig, conf) {\n return getConfigRevisionState(conf).styleStaticConfig(staticConfig, conf);\n}\nexport {\n getStyleStaticConfig\n};\n//# sourceMappingURL=styleStaticConfig.js.map\n"],"mappings":";;;AACA,SAAS,qBAAqB,cAAc,MAAM;CAChD,OAAO,uBAAuB,IAAI,CAAC,CAAC,kBAAkB,cAAc,IAAI;AAC1E"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { stylePropsInput, stylePropsText, validStyles } from "@tamagui/helpers";
|
|
2
|
+
import { createStylePiece } from "../style.mjs";
|
|
3
|
+
|
|
4
|
+
const styleStaticConfigCache = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function resolveStyleStaticConfig(staticConfig, conf, revision) {
|
|
6
|
+
let configCache = styleStaticConfigCache.get(staticConfig);
|
|
7
|
+
const cached = configCache?.get(conf);
|
|
8
|
+
if (cached?.revision === revision) return cached.value;
|
|
9
|
+
const normalized = staticConfig.styleFrontend?.normalizeStaticConfig?.(staticConfig, conf);
|
|
10
|
+
const variants = normalized ? normalized.variants : staticConfig.variants;
|
|
11
|
+
const authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;
|
|
12
|
+
const authoredDefaultProps = staticConfig.defaultProps;
|
|
13
|
+
let baseStyle;
|
|
14
|
+
let baseVariantProps;
|
|
15
|
+
let defaultProps;
|
|
16
|
+
const validStyles$1 = staticConfig.validStyles || (staticConfig.isInput ? stylePropsInput : staticConfig.isText ? stylePropsText : validStyles);
|
|
17
|
+
if (authoredDefaultProps) {
|
|
18
|
+
for (const key in authoredDefaultProps) {
|
|
19
|
+
const isVariant = Boolean(variants?.[key]);
|
|
20
|
+
const isStyle = key !== "transition" && (key in validStyles$1 || key in conf.shorthands);
|
|
21
|
+
if (isVariant || isStyle) {
|
|
22
|
+
;
|
|
23
|
+
(baseStyle ||= authoredBaseStyle ? { ...authoredBaseStyle } : {})[key] = authoredDefaultProps[key];
|
|
24
|
+
}
|
|
25
|
+
if (isVariant || !isStyle) {
|
|
26
|
+
;
|
|
27
|
+
(defaultProps ||= {})[key] = authoredDefaultProps[key];
|
|
28
|
+
}
|
|
29
|
+
if (isVariant) {
|
|
30
|
+
;
|
|
31
|
+
(baseVariantProps ||= {})[key] = authoredDefaultProps[key];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const resolvedBaseStyle = baseStyle || authoredBaseStyle;
|
|
36
|
+
let baseStylePiece;
|
|
37
|
+
let baseStylePieces;
|
|
38
|
+
if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {
|
|
39
|
+
let directBaseStyle;
|
|
40
|
+
let directBaseKeys;
|
|
41
|
+
const flushDirectBaseStyle = () => {
|
|
42
|
+
if (!directBaseStyle || !directBaseKeys) return;
|
|
43
|
+
const piece = createStylePiece(directBaseStyle, "base");
|
|
44
|
+
baseStylePiece ||= piece;
|
|
45
|
+
baseStylePieces ||= {};
|
|
46
|
+
for (const key of directBaseKeys) {
|
|
47
|
+
baseStylePieces[key] = piece;
|
|
48
|
+
}
|
|
49
|
+
directBaseStyle = void 0;
|
|
50
|
+
directBaseKeys = void 0;
|
|
51
|
+
};
|
|
52
|
+
for (const key in resolvedBaseStyle) {
|
|
53
|
+
const expanded = conf.shorthands[key] || key;
|
|
54
|
+
if (key !== "transition" && !variants?.[key] && expanded in validStyles$1) {
|
|
55
|
+
;
|
|
56
|
+
(directBaseStyle ||= {})[key] = resolvedBaseStyle[key];
|
|
57
|
+
(directBaseKeys ||= []).push(key);
|
|
58
|
+
} else {
|
|
59
|
+
flushDirectBaseStyle();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
flushDirectBaseStyle();
|
|
63
|
+
}
|
|
64
|
+
const keys = staticConfig.contextProps || staticConfig.context?.propKeys;
|
|
65
|
+
const value = {
|
|
66
|
+
baseStyle: resolvedBaseStyle,
|
|
67
|
+
baseVariantProps,
|
|
68
|
+
baseStylePiece,
|
|
69
|
+
baseStylePieces,
|
|
70
|
+
defaultProps,
|
|
71
|
+
styledContextKeys: keys ? new Set(keys) : null,
|
|
72
|
+
variants,
|
|
73
|
+
variantStyleResolver: staticConfig.variantStyleResolver,
|
|
74
|
+
passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName
|
|
75
|
+
};
|
|
76
|
+
if (!configCache) {
|
|
77
|
+
configCache = /* @__PURE__ */ new WeakMap();
|
|
78
|
+
styleStaticConfigCache.set(staticConfig, configCache);
|
|
79
|
+
}
|
|
80
|
+
configCache.set(conf, {
|
|
81
|
+
revision,
|
|
82
|
+
value
|
|
83
|
+
});
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { resolveStyleStaticConfig };
|
|
88
|
+
//# sourceMappingURL=styleStaticConfigCore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleStaticConfigCore.js","names":["validStyles","validStylesView"],"sources":["esm/helpers/styleStaticConfigCore.js"],"sourcesContent":["import {\n stylePropsInput,\n stylePropsText,\n validStyles as validStylesView\n} from \"@tamagui/helpers\";\nimport { createStylePiece } from \"../style\";\nconst styleStaticConfigCache = /* @__PURE__ */ new WeakMap();\nfunction resolveStyleStaticConfig(staticConfig, conf, revision) {\n let configCache = styleStaticConfigCache.get(staticConfig);\n const cached = configCache?.get(conf);\n if (cached?.revision === revision) return cached.value;\n const normalized = staticConfig.styleFrontend?.normalizeStaticConfig?.(\n staticConfig,\n conf\n );\n const variants = normalized ? normalized.variants : staticConfig.variants;\n const authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;\n const authoredDefaultProps = staticConfig.defaultProps;\n let baseStyle;\n let baseVariantProps;\n let defaultProps;\n const validStyles = staticConfig.validStyles || (staticConfig.isInput ? stylePropsInput : staticConfig.isText ? stylePropsText : validStylesView);\n if (authoredDefaultProps) {\n for (const key in authoredDefaultProps) {\n const isVariant = Boolean(variants?.[key]);\n const isStyle = key !== \"transition\" && (key in validStyles || key in conf.shorthands);\n if (isVariant || isStyle) {\n ;\n (baseStyle ||= authoredBaseStyle ? { ...authoredBaseStyle } : {})[key] = authoredDefaultProps[key];\n }\n if (isVariant || !isStyle) {\n ;\n (defaultProps ||= {})[key] = authoredDefaultProps[key];\n }\n if (isVariant) {\n ;\n (baseVariantProps ||= {})[key] = authoredDefaultProps[key];\n }\n }\n }\n const resolvedBaseStyle = baseStyle || authoredBaseStyle;\n let baseStylePiece;\n let baseStylePieces;\n if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {\n let directBaseStyle;\n let directBaseKeys;\n const flushDirectBaseStyle = () => {\n if (!directBaseStyle || !directBaseKeys) return;\n const piece = createStylePiece(directBaseStyle, \"base\");\n baseStylePiece ||= piece;\n baseStylePieces ||= {};\n for (const key of directBaseKeys) {\n baseStylePieces[key] = piece;\n }\n directBaseStyle = void 0;\n directBaseKeys = void 0;\n };\n for (const key in resolvedBaseStyle) {\n const expanded = conf.shorthands[key] || key;\n if (key !== \"transition\" && !variants?.[key] && expanded in validStyles) {\n ;\n (directBaseStyle ||= {})[key] = resolvedBaseStyle[key];\n (directBaseKeys ||= []).push(key);\n } else {\n flushDirectBaseStyle();\n }\n }\n flushDirectBaseStyle();\n }\n const keys = staticConfig.contextProps || staticConfig.context?.propKeys;\n const value = {\n baseStyle: resolvedBaseStyle,\n baseVariantProps,\n baseStylePiece,\n baseStylePieces,\n defaultProps,\n styledContextKeys: keys ? new Set(keys) : null,\n variants,\n variantStyleResolver: staticConfig.variantStyleResolver,\n passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName\n };\n if (!configCache) {\n configCache = /* @__PURE__ */ new WeakMap();\n styleStaticConfigCache.set(staticConfig, configCache);\n }\n configCache.set(conf, { revision, value });\n return value;\n}\nexport {\n resolveStyleStaticConfig\n};\n//# sourceMappingURL=styleStaticConfigCore.js.map\n"],"mappings":";;;;AAMA,MAAM,yCAAyC,IAAI,QAAQ;AAC3D,SAAS,yBAAyB,cAAc,MAAM,UAAU;CAC9D,IAAI,cAAc,uBAAuB,IAAI,YAAY;CACzD,MAAM,SAAS,aAAa,IAAI,IAAI;CACpC,IAAI,QAAQ,aAAa,UAAU,OAAO,OAAO;CACjD,MAAM,aAAa,aAAa,eAAe,wBAC7C,cACA,IACF;CACA,MAAM,WAAW,aAAa,WAAW,WAAW,aAAa;CACjE,MAAM,oBAAoB,aAAa,WAAW,YAAY,aAAa;CAC3E,MAAM,uBAAuB,aAAa;CAC1C,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAMA,gBAAc,aAAa,gBAAgB,aAAa,UAAU,kBAAkB,aAAa,SAAS,iBAAiBC;CACjI,IAAI,sBAAsB;EACxB,KAAK,MAAM,OAAO,sBAAsB;GACtC,MAAM,YAAY,QAAQ,WAAW,IAAI;GACzC,MAAM,UAAU,QAAQ,iBAAiB,OAAOD,iBAAe,OAAO,KAAK;GAC3E,IAAI,aAAa,SAAS;IACxB;IACA,CAAC,cAAc,oBAAoB,EAAE,GAAG,kBAAkB,IAAI,CAAC,EAAC,CAAE,OAAO,qBAAqB;GAChG;GACA,IAAI,aAAa,CAAC,SAAS;IACzB;IACA,CAAC,iBAAiB,CAAC,EAAC,CAAE,OAAO,qBAAqB;GACpD;GACA,IAAI,WAAW;IACb;IACA,CAAC,qBAAqB,CAAC,EAAC,CAAE,OAAO,qBAAqB;GACxD;EACF;CACF;CACA,MAAM,oBAAoB,aAAa;CACvC,IAAI;CACJ,IAAI;CACJ,IAAI,qBAAqB,CAAC,aAAa,uBAAuB;EAC5D,IAAI;EACJ,IAAI;EACJ,MAAM,6BAA6B;GACjC,IAAI,CAAC,mBAAmB,CAAC,gBAAgB;GACzC,MAAM,QAAQ,iBAAiB,iBAAiB,MAAM;GACtD,mBAAmB;GACnB,oBAAoB,CAAC;GACrB,KAAK,MAAM,OAAO,gBAAgB;IAChC,gBAAgB,OAAO;GACzB;GACA,kBAAkB,KAAK;GACvB,iBAAiB,KAAK;EACxB;EACA,KAAK,MAAM,OAAO,mBAAmB;GACnC,MAAM,WAAW,KAAK,WAAW,QAAQ;GACzC,IAAI,QAAQ,gBAAgB,CAAC,WAAW,QAAQ,YAAYA,eAAa;IACvE;IACA,CAAC,oBAAoB,CAAC,EAAC,CAAE,OAAO,kBAAkB;IAClD,CAAC,mBAAmB,CAAC,EAAC,CAAE,KAAK,GAAG;GAClC,OAAO;IACL,qBAAqB;GACvB;EACF;EACA,qBAAqB;CACvB;CACA,MAAM,OAAO,aAAa,gBAAgB,aAAa,SAAS;CAChE,MAAM,QAAQ;EACZ,WAAW;EACX;EACA;EACA;EACA;EACA,mBAAmB,OAAO,IAAI,IAAI,IAAI,IAAI;EAC1C;EACA,sBAAsB,aAAa;EACnC,sBAAsB,aAAa,WAAW,uBAAuB,aAAa;CACpF;CACA,IAAI,CAAC,aAAa;EAChB,8BAA8B,IAAI,QAAQ;EAC1C,uBAAuB,IAAI,cAAc,WAAW;CACtD;CACA,YAAY,IAAI,MAAM;EAAE;EAAU;CAAM,CAAC;CACzC,OAAO;AACT"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { stylePropsInput, stylePropsText, validStyles } from "@tamagui/helpers";
|
|
2
|
+
import { createStylePiece } from "../style.native.js";
|
|
3
|
+
|
|
4
|
+
var styleStaticConfigCache = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function resolveStyleStaticConfig(staticConfig, conf, revision) {
|
|
6
|
+
var _staticConfig_styleFrontend_normalizeStaticConfig, _staticConfig_styleFrontend, _staticConfig_context;
|
|
7
|
+
var configCache = styleStaticConfigCache.get(staticConfig);
|
|
8
|
+
var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(conf);
|
|
9
|
+
if ((cached === null || cached === void 0 ? void 0 : cached.revision) === revision) return cached.value;
|
|
10
|
+
var normalized = (_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : (_staticConfig_styleFrontend_normalizeStaticConfig = _staticConfig_styleFrontend.normalizeStaticConfig) === null || _staticConfig_styleFrontend_normalizeStaticConfig === void 0 ? void 0 : _staticConfig_styleFrontend_normalizeStaticConfig.call(_staticConfig_styleFrontend, staticConfig, conf);
|
|
11
|
+
var variants = normalized ? normalized.variants : staticConfig.variants;
|
|
12
|
+
var authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;
|
|
13
|
+
var authoredDefaultProps = staticConfig.defaultProps;
|
|
14
|
+
var baseStyle;
|
|
15
|
+
var baseVariantProps;
|
|
16
|
+
var defaultProps;
|
|
17
|
+
var validStyles$1 = staticConfig.validStyles || (staticConfig.isInput ? stylePropsInput : staticConfig.isText ? stylePropsText : validStyles);
|
|
18
|
+
if (authoredDefaultProps) {
|
|
19
|
+
for (var key in authoredDefaultProps) {
|
|
20
|
+
var isVariant = Boolean(variants === null || variants === void 0 ? void 0 : variants[key]);
|
|
21
|
+
var isStyle = key !== "transition" && (key in validStyles$1 || key in conf.shorthands);
|
|
22
|
+
if (isVariant || isStyle) {
|
|
23
|
+
;
|
|
24
|
+
(baseStyle || (baseStyle = authoredBaseStyle ? { ...authoredBaseStyle } : {}))[key] = authoredDefaultProps[key];
|
|
25
|
+
}
|
|
26
|
+
if (isVariant || !isStyle) {
|
|
27
|
+
;
|
|
28
|
+
(defaultProps || (defaultProps = {}))[key] = authoredDefaultProps[key];
|
|
29
|
+
}
|
|
30
|
+
if (isVariant) {
|
|
31
|
+
;
|
|
32
|
+
(baseVariantProps || (baseVariantProps = {}))[key] = authoredDefaultProps[key];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
var resolvedBaseStyle = baseStyle || authoredBaseStyle;
|
|
37
|
+
var baseStylePiece;
|
|
38
|
+
var baseStylePieces;
|
|
39
|
+
if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {
|
|
40
|
+
var directBaseStyle;
|
|
41
|
+
var directBaseKeys;
|
|
42
|
+
var flushDirectBaseStyle = function() {
|
|
43
|
+
if (!directBaseStyle || !directBaseKeys) return;
|
|
44
|
+
var piece = createStylePiece(directBaseStyle, "base");
|
|
45
|
+
baseStylePiece || (baseStylePiece = piece);
|
|
46
|
+
baseStylePieces || (baseStylePieces = {});
|
|
47
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
48
|
+
try {
|
|
49
|
+
for (var _iterator = directBaseKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
50
|
+
var key2 = _step.value;
|
|
51
|
+
baseStylePieces[key2] = piece;
|
|
52
|
+
}
|
|
53
|
+
} catch (err) {
|
|
54
|
+
_didIteratorError = true;
|
|
55
|
+
_iteratorError = err;
|
|
56
|
+
} finally {
|
|
57
|
+
try {
|
|
58
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
59
|
+
_iterator.return();
|
|
60
|
+
}
|
|
61
|
+
} finally {
|
|
62
|
+
if (_didIteratorError) {
|
|
63
|
+
throw _iteratorError;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
directBaseStyle = void 0;
|
|
68
|
+
directBaseKeys = void 0;
|
|
69
|
+
};
|
|
70
|
+
for (var key1 in resolvedBaseStyle) {
|
|
71
|
+
var expanded = conf.shorthands[key1] || key1;
|
|
72
|
+
if (key1 !== "transition" && !(variants === null || variants === void 0 ? void 0 : variants[key1]) && expanded in validStyles$1) {
|
|
73
|
+
;
|
|
74
|
+
(directBaseStyle || (directBaseStyle = {}))[key1] = resolvedBaseStyle[key1];
|
|
75
|
+
(directBaseKeys || (directBaseKeys = [])).push(key1);
|
|
76
|
+
} else {
|
|
77
|
+
flushDirectBaseStyle();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
flushDirectBaseStyle();
|
|
81
|
+
}
|
|
82
|
+
var keys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);
|
|
83
|
+
var value = {
|
|
84
|
+
baseStyle: resolvedBaseStyle,
|
|
85
|
+
baseVariantProps,
|
|
86
|
+
baseStylePiece,
|
|
87
|
+
baseStylePieces,
|
|
88
|
+
defaultProps,
|
|
89
|
+
styledContextKeys: keys ? new Set(keys) : null,
|
|
90
|
+
variants,
|
|
91
|
+
variantStyleResolver: staticConfig.variantStyleResolver,
|
|
92
|
+
passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName
|
|
93
|
+
};
|
|
94
|
+
if (!configCache) {
|
|
95
|
+
configCache = /* @__PURE__ */ new WeakMap();
|
|
96
|
+
styleStaticConfigCache.set(staticConfig, configCache);
|
|
97
|
+
}
|
|
98
|
+
configCache.set(conf, {
|
|
99
|
+
revision,
|
|
100
|
+
value
|
|
101
|
+
});
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { resolveStyleStaticConfig };
|
|
106
|
+
//# sourceMappingURL=styleStaticConfigCore.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleStaticConfigCore.native.js","names":["validStyles","validStylesView"],"sources":["esm/helpers/styleStaticConfigCore.native.js"],"sourcesContent":["import { stylePropsInput, stylePropsText, validStyles as validStylesView } from \"@tamagui/helpers\";\nimport { createStylePiece } from \"../style\";\nvar styleStaticConfigCache = /* @__PURE__ */ new WeakMap();\nfunction resolveStyleStaticConfig(staticConfig, conf, revision) {\n var _staticConfig_styleFrontend_normalizeStaticConfig, _staticConfig_styleFrontend, _staticConfig_context;\n var configCache = styleStaticConfigCache.get(staticConfig);\n var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(conf);\n if ((cached === null || cached === void 0 ? void 0 : cached.revision) === revision) return cached.value;\n var normalized = (_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : (_staticConfig_styleFrontend_normalizeStaticConfig = _staticConfig_styleFrontend.normalizeStaticConfig) === null || _staticConfig_styleFrontend_normalizeStaticConfig === void 0 ? void 0 : _staticConfig_styleFrontend_normalizeStaticConfig.call(_staticConfig_styleFrontend, staticConfig, conf);\n var variants = normalized ? normalized.variants : staticConfig.variants;\n var authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;\n var authoredDefaultProps = staticConfig.defaultProps;\n var baseStyle;\n var baseVariantProps;\n var defaultProps;\n var validStyles = staticConfig.validStyles || (staticConfig.isInput ? stylePropsInput : staticConfig.isText ? stylePropsText : validStylesView);\n if (authoredDefaultProps) {\n for (var key in authoredDefaultProps) {\n var isVariant = Boolean(variants === null || variants === void 0 ? void 0 : variants[key]);\n var isStyle = key !== \"transition\" && (key in validStyles || key in conf.shorthands);\n if (isVariant || isStyle) {\n ;\n (baseStyle || (baseStyle = authoredBaseStyle ? {\n ...authoredBaseStyle\n } : {}))[key] = authoredDefaultProps[key];\n }\n if (isVariant || !isStyle) {\n ;\n (defaultProps || (defaultProps = {}))[key] = authoredDefaultProps[key];\n }\n if (isVariant) {\n ;\n (baseVariantProps || (baseVariantProps = {}))[key] = authoredDefaultProps[key];\n }\n }\n }\n var resolvedBaseStyle = baseStyle || authoredBaseStyle;\n var baseStylePiece;\n var baseStylePieces;\n if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {\n var directBaseStyle;\n var directBaseKeys;\n var flushDirectBaseStyle = function() {\n if (!directBaseStyle || !directBaseKeys) return;\n var piece = createStylePiece(directBaseStyle, \"base\");\n baseStylePiece || (baseStylePiece = piece);\n baseStylePieces || (baseStylePieces = {});\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directBaseKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var key2 = _step.value;\n baseStylePieces[key2] = piece;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n directBaseStyle = void 0;\n directBaseKeys = void 0;\n };\n for (var key1 in resolvedBaseStyle) {\n var expanded = conf.shorthands[key1] || key1;\n if (key1 !== \"transition\" && !(variants === null || variants === void 0 ? void 0 : variants[key1]) && expanded in validStyles) {\n ;\n (directBaseStyle || (directBaseStyle = {}))[key1] = resolvedBaseStyle[key1];\n (directBaseKeys || (directBaseKeys = [])).push(key1);\n } else {\n flushDirectBaseStyle();\n }\n }\n flushDirectBaseStyle();\n }\n var keys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);\n var value = {\n baseStyle: resolvedBaseStyle,\n baseVariantProps,\n baseStylePiece,\n baseStylePieces,\n defaultProps,\n styledContextKeys: keys ? new Set(keys) : null,\n variants,\n variantStyleResolver: staticConfig.variantStyleResolver,\n passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName\n };\n if (!configCache) {\n configCache = /* @__PURE__ */ new WeakMap();\n styleStaticConfigCache.set(staticConfig, configCache);\n }\n configCache.set(conf, {\n revision,\n value\n });\n return value;\n}\nexport {\n resolveStyleStaticConfig\n};\n//# sourceMappingURL=styleStaticConfigCore.js.map\n"],"mappings":"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"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { getSetting } from "../config.mjs";
|
|
2
|
+
import { getVariableValue } from "../createVariable.mjs";
|
|
3
|
+
import { styledDynamicSymbol } from "../types.mjs";
|
|
4
|
+
|
|
5
|
+
const fontLanguageCache = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function getFontsForLanguage(fonts, language) {
|
|
7
|
+
if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
|
|
8
|
+
const next = { ...fonts };
|
|
9
|
+
for (const name in language) {
|
|
10
|
+
const lang = language[name];
|
|
11
|
+
if (lang !== "default") next[name] = fonts[`${name}_${lang}`];
|
|
12
|
+
}
|
|
13
|
+
fontLanguageCache.set(language, next);
|
|
14
|
+
return next;
|
|
15
|
+
}
|
|
16
|
+
function isStyledDynamic(value) {
|
|
17
|
+
return !!value && (typeof value === "function" || typeof value === "object") && styledDynamicSymbol in value;
|
|
18
|
+
}
|
|
19
|
+
const bareStyledDynamic = { [styledDynamicSymbol]: true };
|
|
20
|
+
const dynamicSpreadProbe = /* @__PURE__ */ Symbol("tamagui.dynamicSpreadProbe");
|
|
21
|
+
const dynamicComputedProbe = "__tamagui_dynamic_computed_key__";
|
|
22
|
+
const dynamicComputedNumberProbe = 712367821;
|
|
23
|
+
const dynamicShapeProbeValues = /* @__PURE__ */ new WeakSet();
|
|
24
|
+
function createDynamicShapeProbe() {
|
|
25
|
+
const target = function() {};
|
|
26
|
+
let probe;
|
|
27
|
+
probe = new Proxy(target, {
|
|
28
|
+
apply: () => probe,
|
|
29
|
+
construct: () => probe,
|
|
30
|
+
get: (_target, key) => {
|
|
31
|
+
if (key === Symbol.toPrimitive) {
|
|
32
|
+
return (hint) => hint === "number" ? dynamicComputedNumberProbe : dynamicComputedProbe;
|
|
33
|
+
}
|
|
34
|
+
if (key === Symbol.iterator) {
|
|
35
|
+
return function* () {
|
|
36
|
+
yield dynamicComputedProbe;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (key === dynamicSpreadProbe) return true;
|
|
40
|
+
return probe;
|
|
41
|
+
},
|
|
42
|
+
getOwnPropertyDescriptor: (target2, key) => key === dynamicSpreadProbe ? {
|
|
43
|
+
configurable: true,
|
|
44
|
+
enumerable: true,
|
|
45
|
+
value: true
|
|
46
|
+
} : Reflect.getOwnPropertyDescriptor(target2, key),
|
|
47
|
+
ownKeys: (target2) => [...Reflect.ownKeys(target2), dynamicSpreadProbe]
|
|
48
|
+
});
|
|
49
|
+
dynamicShapeProbeValues.add(probe);
|
|
50
|
+
return probe;
|
|
51
|
+
}
|
|
52
|
+
function findDynamicShapeViolation(value) {
|
|
53
|
+
if (!value || typeof value !== "object" && typeof value !== "function") return;
|
|
54
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
55
|
+
let spread = false;
|
|
56
|
+
let computed = false;
|
|
57
|
+
const visit = (current) => {
|
|
58
|
+
if (dynamicShapeProbeValues.has(current) || seen.has(current)) return;
|
|
59
|
+
seen.add(current);
|
|
60
|
+
let descriptors;
|
|
61
|
+
try {
|
|
62
|
+
descriptors = Object.getOwnPropertyDescriptors(current);
|
|
63
|
+
} catch {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
for (const key of Reflect.ownKeys(descriptors)) {
|
|
67
|
+
if (key === dynamicSpreadProbe) spread = true;
|
|
68
|
+
if (typeof key === "string" && (key.includes(dynamicComputedProbe) || key === String(dynamicComputedNumberProbe))) {
|
|
69
|
+
computed = true;
|
|
70
|
+
}
|
|
71
|
+
const nested = descriptors[key]?.value;
|
|
72
|
+
if (nested && (typeof nested === "object" || typeof nested === "function")) {
|
|
73
|
+
visit(nested);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
visit(value);
|
|
78
|
+
if (spread || computed) return {
|
|
79
|
+
spread,
|
|
80
|
+
computed
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function validateDynamicShape(fn) {
|
|
84
|
+
try {
|
|
85
|
+
const probe = createDynamicShapeProbe();
|
|
86
|
+
const warn = console.warn;
|
|
87
|
+
let output;
|
|
88
|
+
try {
|
|
89
|
+
console.warn = () => {};
|
|
90
|
+
output = fn(probe, probe);
|
|
91
|
+
} finally {
|
|
92
|
+
console.warn = warn;
|
|
93
|
+
}
|
|
94
|
+
const violation = findDynamicShapeViolation(output);
|
|
95
|
+
if (!violation) return;
|
|
96
|
+
const reasons = [violation.spread ? "a spread from a dynamic input" : "", violation.computed ? "a computed key from a dynamic input" : ""].filter(Boolean);
|
|
97
|
+
console.warn(`[tamagui] styled.dynamic${fn.name ? ` (${fn.name})` : ""} returned ${reasons.join(" and ")} during its development shape check. Dynamic style bodies require static object keys for extraction; this definition will deopt instead.`);
|
|
98
|
+
} catch {}
|
|
99
|
+
}
|
|
100
|
+
function styledDynamic(fn) {
|
|
101
|
+
if (!fn) return bareStyledDynamic;
|
|
102
|
+
if (process.env.NODE_ENV === "development") validateDynamicShape(fn);
|
|
103
|
+
fn[styledDynamicSymbol] = true;
|
|
104
|
+
return fn;
|
|
105
|
+
}
|
|
106
|
+
function getDynamicEnv(styleState) {
|
|
107
|
+
const cached = styleState.flatDynamicEnv;
|
|
108
|
+
if (cached) return cached;
|
|
109
|
+
const { props, conf, context, theme } = styleState;
|
|
110
|
+
let fonts = conf.fontsParsed;
|
|
111
|
+
if (context?.language) {
|
|
112
|
+
fonts = getFontsForLanguage(conf.fontsParsed, context.language);
|
|
113
|
+
}
|
|
114
|
+
const next = {
|
|
115
|
+
fonts,
|
|
116
|
+
tokens: conf.tokensParsed,
|
|
117
|
+
theme,
|
|
118
|
+
get fontFamily() {
|
|
119
|
+
return getVariableValue(styleState.fontFamily || props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
|
|
120
|
+
},
|
|
121
|
+
get font() {
|
|
122
|
+
const found = fonts[this.fontFamily];
|
|
123
|
+
if (found) return found;
|
|
124
|
+
const className = props.className;
|
|
125
|
+
if (typeof className === "string") {
|
|
126
|
+
const name = /(?:^|\s)font_(\S+)/.exec(className)?.[1];
|
|
127
|
+
if (name && fonts[name]) return fonts[name];
|
|
128
|
+
}
|
|
129
|
+
return fonts[conf.defaultFontToken];
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
return styleState.flatDynamicEnv = next;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { getDynamicEnv, getFontsForLanguage, isStyledDynamic, styledDynamic };
|
|
136
|
+
//# sourceMappingURL=styledDynamic.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styledDynamic.js","names":[],"sources":["esm/helpers/styledDynamic.js"],"sourcesContent":["import { getSetting } from \"../config\";\nimport { getVariableValue } from \"../createVariable\";\nimport { styledDynamicSymbol } from \"../types\";\nconst fontLanguageCache = /* @__PURE__ */ new WeakMap();\nfunction getFontsForLanguage(fonts, language) {\n if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);\n const next = { ...fonts };\n for (const name in language) {\n const lang = language[name];\n if (lang !== \"default\") next[name] = fonts[`${name}_${lang}`];\n }\n fontLanguageCache.set(language, next);\n return next;\n}\nfunction isStyledDynamic(value) {\n return !!value && (typeof value === \"function\" || typeof value === \"object\") && styledDynamicSymbol in value;\n}\nconst bareStyledDynamic = { [styledDynamicSymbol]: true };\nconst dynamicSpreadProbe = /* @__PURE__ */ Symbol(\"tamagui.dynamicSpreadProbe\");\nconst dynamicComputedProbe = \"__tamagui_dynamic_computed_key__\";\nconst dynamicComputedNumberProbe = 712367821;\nconst dynamicShapeProbeValues = /* @__PURE__ */ new WeakSet();\nfunction createDynamicShapeProbe() {\n const target = function() {\n };\n let probe;\n probe = new Proxy(target, {\n apply: () => probe,\n construct: () => probe,\n get: (_target, key) => {\n if (key === Symbol.toPrimitive) {\n return (hint) => hint === \"number\" ? dynamicComputedNumberProbe : dynamicComputedProbe;\n }\n if (key === Symbol.iterator) {\n return function* () {\n yield dynamicComputedProbe;\n };\n }\n if (key === dynamicSpreadProbe) return true;\n return probe;\n },\n getOwnPropertyDescriptor: (target2, key) => key === dynamicSpreadProbe ? { configurable: true, enumerable: true, value: true } : Reflect.getOwnPropertyDescriptor(target2, key),\n ownKeys: (target2) => [...Reflect.ownKeys(target2), dynamicSpreadProbe]\n });\n dynamicShapeProbeValues.add(probe);\n return probe;\n}\nfunction findDynamicShapeViolation(value) {\n if (!value || typeof value !== \"object\" && typeof value !== \"function\") return;\n const seen = /* @__PURE__ */ new WeakSet();\n let spread = false;\n let computed = false;\n const visit = (current) => {\n if (dynamicShapeProbeValues.has(current) || seen.has(current)) return;\n seen.add(current);\n let descriptors;\n try {\n descriptors = Object.getOwnPropertyDescriptors(current);\n } catch {\n return;\n }\n for (const key of Reflect.ownKeys(descriptors)) {\n if (key === dynamicSpreadProbe) spread = true;\n if (typeof key === \"string\" && (key.includes(dynamicComputedProbe) || key === String(dynamicComputedNumberProbe))) {\n computed = true;\n }\n const nested = descriptors[key]?.value;\n if (nested && (typeof nested === \"object\" || typeof nested === \"function\")) {\n visit(nested);\n }\n }\n };\n visit(value);\n if (spread || computed) return { spread, computed };\n}\nfunction validateDynamicShape(fn) {\n try {\n const probe = createDynamicShapeProbe();\n const warn = console.warn;\n let output;\n try {\n console.warn = () => {\n };\n output = fn(probe, probe);\n } finally {\n console.warn = warn;\n }\n const violation = findDynamicShapeViolation(output);\n if (!violation) return;\n const reasons = [\n violation.spread ? \"a spread from a dynamic input\" : \"\",\n violation.computed ? \"a computed key from a dynamic input\" : \"\"\n ].filter(Boolean);\n console.warn(\n `[tamagui] styled.dynamic${fn.name ? ` (${fn.name})` : \"\"} returned ${reasons.join(\" and \")} during its development shape check. Dynamic style bodies require static object keys for extraction; this definition will deopt instead.`\n );\n } catch {\n }\n}\nfunction styledDynamic(fn) {\n if (!fn) return bareStyledDynamic;\n if (process.env.NODE_ENV === \"development\") validateDynamicShape(fn);\n fn[styledDynamicSymbol] = true;\n return fn;\n}\nfunction getDynamicEnv(styleState) {\n const cached = styleState.flatDynamicEnv;\n if (cached) return cached;\n const { props, conf, context, theme } = styleState;\n let fonts = conf.fontsParsed;\n if (context?.language) {\n fonts = getFontsForLanguage(conf.fontsParsed, context.language);\n }\n const next = {\n fonts,\n tokens: conf.tokensParsed,\n theme,\n get fontFamily() {\n return getVariableValue(styleState.fontFamily || props.fontFamily) || props.fontFamily || getVariableValue(getSetting(\"defaultFont\"));\n },\n get font() {\n const found = fonts[this.fontFamily];\n if (found) return found;\n const className = props.className;\n if (typeof className === \"string\") {\n const name = /(?:^|\\s)font_(\\S+)/.exec(className)?.[1];\n if (name && fonts[name]) return fonts[name];\n }\n return fonts[conf.defaultFontToken];\n }\n };\n return styleState.flatDynamicEnv = next;\n}\nexport {\n getDynamicEnv,\n getFontsForLanguage,\n isStyledDynamic,\n styledDynamic\n};\n//# sourceMappingURL=styledDynamic.js.map\n"],"mappings":"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"}
|