@tamagui/web 3.0.0-beta.922.1 → 3.0.0
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/_withNativeStyle.cjs +3 -0
- package/dist/cjs/_withNativeStyle.native.cjs +3 -0
- package/dist/cjs/_withNativeStyle.native.js +3 -0
- package/dist/cjs/_withNativeStyle.native.js.map +1 -1
- package/dist/cjs/_withStableStyle.native.cjs +1 -5
- package/dist/cjs/_withStableStyle.native.js +1 -5
- package/dist/cjs/_withStableStyle.native.js.map +1 -1
- package/dist/cjs/config.cjs +6 -3
- package/dist/cjs/config.native.cjs +7 -5
- package/dist/cjs/config.native.js +7 -5
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/contexts/ComponentContext.cjs +1 -0
- package/dist/cjs/contexts/ComponentContext.native.cjs +8 -0
- package/dist/cjs/contexts/ComponentContext.native.js +8 -0
- package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +46 -32
- package/dist/cjs/createComponent.native.cjs +92 -72
- package/dist/cjs/createComponent.native.js +92 -72
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createTamagui.cjs +32 -14
- package/dist/cjs/createTamagui.native.cjs +33 -19
- package/dist/cjs/createTamagui.native.js +33 -19
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/createTokens.native.cjs +1 -5
- package/dist/cjs/createTokens.native.js +1 -5
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/createVariable.native.cjs +1 -5
- package/dist/cjs/createVariable.native.js +1 -5
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/createVariables.native.cjs +2 -6
- package/dist/cjs/createVariables.native.js +2 -6
- package/dist/cjs/createVariables.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +87 -329
- package/dist/cjs/dom/html.native.cjs +53 -2
- package/dist/cjs/dom/html.native.js +53 -2
- package/dist/cjs/dom/html.native.js.map +1 -1
- package/dist/cjs/{helpers/timer.native.js → dom/htmlReset.cjs} +6 -12
- package/dist/cjs/{helpers/timer.native.cjs → dom/htmlReset.native.cjs} +6 -8
- package/dist/cjs/dom/htmlReset.native.js +30 -0
- package/dist/cjs/dom/htmlReset.native.js.map +1 -0
- package/dist/cjs/dom/htmlRuntime.native.cjs +4 -0
- package/dist/cjs/dom/htmlRuntime.native.js +4 -0
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/htmlStaticConfig.cjs +44 -0
- package/dist/cjs/dom/htmlStaticConfig.native.cjs +46 -0
- package/dist/cjs/dom/htmlStaticConfig.native.js +48 -0
- package/dist/cjs/dom/htmlStaticConfig.native.js.map +1 -0
- package/dist/cjs/dom/primitives.native.cjs +81 -34
- package/dist/cjs/dom/primitives.native.js +81 -34
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/eventHandling.cjs +10 -4
- package/dist/cjs/eventHandling.native.cjs +52 -16
- package/dist/cjs/eventHandling.native.js +52 -16
- package/dist/cjs/eventHandling.native.js.map +1 -1
- package/dist/cjs/helpers/NativeTextBinding.cjs +36 -0
- package/dist/cjs/helpers/NativeTextBinding.native.cjs +39 -0
- package/dist/cjs/helpers/NativeTextBinding.native.js +41 -0
- package/dist/cjs/helpers/NativeTextBinding.native.js.map +1 -0
- package/dist/cjs/helpers/configVariables.native.cjs +2 -6
- package/dist/cjs/helpers/configVariables.native.js +2 -6
- package/dist/cjs/helpers/configVariables.native.js.map +1 -1
- package/dist/cjs/helpers/createDesignSystem.cjs +14 -10
- package/dist/cjs/helpers/createDesignSystem.native.cjs +5 -4
- package/dist/cjs/helpers/createDesignSystem.native.js +5 -4
- package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/cjs/helpers/createStyledContext.native.cjs +1 -5
- package/dist/cjs/helpers/createStyledContext.native.js +1 -5
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.cjs +45 -1
- package/dist/cjs/helpers/expandStyle.native.cjs +38 -2
- package/dist/cjs/helpers/expandStyle.native.js +38 -2
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyles.cjs +15 -3
- package/dist/cjs/helpers/expandStyles.native.cjs +14 -8
- package/dist/cjs/helpers/expandStyles.native.js +14 -8
- package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
- package/dist/cjs/helpers/fluid.cjs +56 -0
- package/dist/cjs/helpers/fluid.native.cjs +58 -0
- package/dist/cjs/helpers/fluid.native.js +60 -0
- package/dist/cjs/helpers/fluid.native.js.map +1 -0
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +2 -6
- package/dist/cjs/helpers/formatDiagnostic.native.js +2 -6
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +6 -6
- package/dist/cjs/helpers/getSplitStyles.cjs +366 -150
- package/dist/cjs/helpers/getSplitStyles.native.cjs +584 -184
- package/dist/cjs/helpers/getSplitStyles.native.js +584 -184
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getThemeCSSRules.cjs +37 -25
- package/dist/cjs/helpers/grammarConfig.cjs +6 -14
- package/dist/cjs/helpers/grammarConfig.native.cjs +32 -22
- package/dist/cjs/helpers/grammarConfig.native.js +32 -22
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +11 -4
- package/dist/cjs/helpers/insertStyleRule.native.cjs +8 -11
- package/dist/cjs/helpers/insertStyleRule.native.js +8 -11
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/isObj.native.cjs +1 -5
- package/dist/cjs/helpers/isObj.native.js +1 -5
- package/dist/cjs/helpers/isObj.native.js.map +1 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +48 -100
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +48 -100
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/cjs/helpers/mergeProps.cjs +18 -21
- package/dist/cjs/helpers/mergeProps.native.cjs +20 -23
- package/dist/cjs/helpers/mergeProps.native.js +20 -23
- package/dist/cjs/helpers/mergeProps.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/nativeTextMetrics.cjs +74 -0
- package/dist/cjs/helpers/nativeTextMetrics.native.cjs +77 -0
- package/dist/cjs/helpers/nativeTextMetrics.native.js +79 -0
- package/dist/cjs/helpers/nativeTextMetrics.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeColor.native.cjs +17 -2
- package/dist/cjs/helpers/normalizeColor.native.js +17 -2
- package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +2 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +3 -6
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +3 -6
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/cjs/helpers/objectIdentityKey.native.cjs +1 -5
- package/dist/cjs/helpers/objectIdentityKey.native.js +1 -5
- package/dist/cjs/helpers/objectIdentityKey.native.js.map +1 -1
- package/dist/cjs/helpers/parseNativeStyle.cjs +187 -0
- package/dist/cjs/helpers/parseNativeStyle.native.cjs +6 -4
- package/dist/cjs/helpers/parseNativeStyle.native.js +6 -4
- package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/proxyThemeToParents.cjs +9 -2
- package/dist/cjs/helpers/proxyThemeToParents.native.cjs +28 -2
- package/dist/cjs/helpers/proxyThemeToParents.native.js +28 -2
- package/dist/cjs/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/cjs/helpers/resolveAnimationDriver.native.cjs +1 -5
- package/dist/cjs/helpers/resolveAnimationDriver.native.js +1 -5
- package/dist/cjs/helpers/resolveAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/{timer.cjs → resolveNativeUnits.cjs} +12 -8
- package/dist/cjs/helpers/resolveNativeUnits.native.cjs +205 -0
- package/dist/cjs/helpers/resolveNativeUnits.native.js +207 -0
- package/dist/cjs/helpers/resolveNativeUnits.native.js.map +1 -0
- package/dist/cjs/helpers/resolveRem.native.cjs +18 -21
- package/dist/cjs/helpers/resolveRem.native.js +18 -21
- package/dist/cjs/helpers/resolveRem.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSizing.cjs +124 -0
- package/dist/cjs/helpers/resolveSizing.native.cjs +133 -0
- package/dist/cjs/helpers/resolveSizing.native.js +135 -0
- package/dist/cjs/helpers/resolveSizing.native.js.map +1 -0
- package/dist/cjs/helpers/resolveVariableValue.cjs +7 -7
- package/dist/cjs/helpers/resolveVariableValue.native.cjs +7 -9
- package/dist/cjs/helpers/resolveVariableValue.native.js +7 -9
- package/dist/cjs/helpers/resolveVariableValue.native.js.map +1 -1
- package/dist/cjs/helpers/resolveVariantStyle.native.cjs +2 -6
- package/dist/cjs/helpers/resolveVariantStyle.native.js +2 -6
- package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -1
- package/dist/cjs/helpers/skipProps.cjs +0 -1
- package/dist/cjs/helpers/skipProps.native.cjs +0 -1
- package/dist/cjs/helpers/skipProps.native.js +0 -1
- package/dist/cjs/helpers/skipProps.native.js.map +1 -1
- package/dist/cjs/helpers/styleFrontend.cjs +23 -1
- package/dist/cjs/helpers/styleFrontend.native.cjs +23 -1
- package/dist/cjs/helpers/styleFrontend.native.js +23 -1
- package/dist/cjs/helpers/styleFrontend.native.js.map +1 -1
- package/dist/cjs/helpers/styleStaticConfigCore.cjs +5 -4
- package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +7 -4
- package/dist/cjs/helpers/styleStaticConfigCore.native.js +7 -4
- package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -1
- package/dist/cjs/helpers/styledDynamic.cjs +5 -0
- package/dist/cjs/helpers/styledDynamic.native.cjs +8 -7
- package/dist/cjs/helpers/styledDynamic.native.js +8 -7
- package/dist/cjs/helpers/styledDynamic.native.js.map +1 -1
- package/dist/cjs/helpers/subscribeToContextGroup.cjs +16 -7
- package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +18 -8
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +18 -8
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/cjs/helpers/themeRef.native.cjs +1 -5
- package/dist/cjs/helpers/themeRef.native.js +1 -5
- package/dist/cjs/helpers/themeRef.native.js.map +1 -1
- package/dist/cjs/helpers/themes.cjs +26 -11
- package/dist/cjs/helpers/themes.native.cjs +26 -11
- package/dist/cjs/helpers/themes.native.js +26 -11
- package/dist/cjs/helpers/themes.native.js.map +1 -1
- package/dist/cjs/helpers/tokenCategories.cjs +2 -2
- package/dist/cjs/helpers/tokenCategories.native.cjs +2 -2
- package/dist/cjs/helpers/tokenCategories.native.js +2 -2
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/variables.cjs +1 -1
- package/dist/cjs/helpers/variables.native.cjs +4 -8
- package/dist/cjs/helpers/variables.native.js +4 -8
- package/dist/cjs/helpers/variables.native.js.map +1 -1
- package/dist/cjs/helpers/warnOnce.cjs +6 -0
- package/dist/cjs/helpers/warnOnce.native.cjs +6 -0
- package/dist/cjs/helpers/warnOnce.native.js +6 -0
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
- package/dist/cjs/helpers/webPropsToSkip.native.cjs +3 -3
- package/dist/cjs/helpers/webPropsToSkip.native.js +3 -3
- package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -1
- package/dist/cjs/helpers/wrapStyleTags.cjs +1 -1
- package/dist/cjs/helpers/wrapStyleTags.native.cjs +1 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js +1 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.native.cjs +1 -5
- package/dist/cjs/hooks/useComponentState.native.js +1 -5
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +27 -34
- package/dist/cjs/hooks/useMedia.native.cjs +45 -51
- package/dist/cjs/hooks/useMedia.native.js +45 -51
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/useSplitStyles.cjs +1 -1
- package/dist/cjs/hooks/useSplitStyles.native.cjs +1 -1
- package/dist/cjs/hooks/useSplitStyles.native.js +1 -1
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.cjs +37 -47
- package/dist/cjs/hooks/useThemeState.native.cjs +44 -50
- package/dist/cjs/hooks/useThemeState.native.js +44 -50
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -0
- package/dist/cjs/index.native.cjs +7 -0
- package/dist/cjs/index.native.js +7 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +22 -0
- package/dist/cjs/internal-runtime.native.cjs +22 -0
- package/dist/cjs/internal-runtime.native.js +22 -0
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.native.cjs +2 -9
- package/dist/cjs/static-resolve.native.js +2 -9
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/style.cjs +1 -1
- package/dist/cjs/style.native.cjs +4 -7
- package/dist/cjs/style.native.js +4 -7
- package/dist/cjs/style.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +10 -17
- package/dist/cjs/views/Theme.native.cjs +9 -11
- package/dist/cjs/views/Theme.native.js +9 -11
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/cjs/views/ThemeDebug.cjs +1 -1
- package/dist/cjs/views/ThemeUpdate.cjs +1 -1
- package/dist/cjs/views/ThemeUpdate.native.cjs +1 -1
- package/dist/cjs/views/ThemeUpdate.native.js +1 -1
- package/dist/cjs/views/ThemeUpdate.native.js.map +1 -1
- package/dist/esm/_withNativeStyle.mjs +4 -1
- package/dist/esm/_withNativeStyle.mjs.map +1 -1
- package/dist/esm/_withNativeStyle.native.js +4 -1
- package/dist/esm/_withNativeStyle.native.js.map +1 -1
- package/dist/esm/_withStableStyle.native.js +1 -5
- package/dist/esm/_withStableStyle.native.js.map +1 -1
- package/dist/esm/config.mjs +6 -3
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +7 -5
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/contexts/ComponentContext.mjs +9 -9
- package/dist/esm/contexts/ComponentContext.mjs.map +1 -1
- package/dist/esm/contexts/ComponentContext.native.js +16 -9
- package/dist/esm/contexts/ComponentContext.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +45 -42
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +93 -82
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +33 -15
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +34 -20
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/createTokens.native.js +1 -5
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/createVariable.native.js +1 -5
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/createVariables.native.js +2 -6
- package/dist/esm/createVariables.native.js.map +1 -1
- package/dist/esm/dom/html.mjs +87 -329
- package/dist/esm/dom/html.mjs.map +1 -1
- package/dist/esm/dom/html.native.js +53 -2
- package/dist/esm/dom/html.native.js.map +1 -1
- package/dist/esm/dom/htmlReset.mjs +6 -0
- package/dist/esm/dom/htmlReset.mjs.map +1 -0
- package/dist/esm/dom/htmlReset.native.js +6 -0
- package/dist/esm/dom/htmlReset.native.js.map +1 -0
- package/dist/esm/dom/htmlRuntime.native.js +4 -0
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/htmlStaticConfig.mjs +22 -0
- package/dist/esm/dom/htmlStaticConfig.mjs.map +1 -0
- package/dist/esm/dom/htmlStaticConfig.native.js +22 -0
- package/dist/esm/dom/htmlStaticConfig.native.js.map +1 -0
- package/dist/esm/dom/primitives.native.js +81 -34
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/eventHandling.mjs +10 -4
- package/dist/esm/eventHandling.mjs.map +1 -1
- package/dist/esm/eventHandling.native.js +52 -16
- package/dist/esm/eventHandling.native.js.map +1 -1
- package/dist/esm/helpers/NativeTextBinding.mjs +17 -0
- package/dist/esm/helpers/NativeTextBinding.mjs.map +1 -0
- package/dist/esm/helpers/NativeTextBinding.native.js +18 -0
- package/dist/esm/helpers/NativeTextBinding.native.js.map +1 -0
- package/dist/esm/helpers/configVariables.native.js +2 -6
- package/dist/esm/helpers/configVariables.native.js.map +1 -1
- package/dist/esm/helpers/createDesignSystem.mjs +14 -10
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
- package/dist/esm/helpers/createDesignSystem.native.js +4 -4
- package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js +1 -5
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/expandStyle.mjs +41 -1
- package/dist/esm/helpers/expandStyle.mjs.map +1 -1
- package/dist/esm/helpers/expandStyle.native.js +36 -3
- package/dist/esm/helpers/expandStyle.native.js.map +1 -1
- package/dist/esm/helpers/expandStyles.mjs +15 -3
- package/dist/esm/helpers/expandStyles.mjs.map +1 -1
- package/dist/esm/helpers/expandStyles.native.js +14 -8
- package/dist/esm/helpers/expandStyles.native.js.map +1 -1
- package/dist/esm/helpers/fluid.mjs +36 -0
- package/dist/esm/helpers/fluid.mjs.map +1 -0
- package/dist/esm/helpers/fluid.native.js +36 -0
- package/dist/esm/helpers/fluid.native.js.map +1 -0
- package/dist/esm/helpers/formatDiagnostic.native.js +2 -6
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +6 -6
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +364 -150
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +588 -188
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.mjs +37 -25
- package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
- package/dist/esm/helpers/grammarConfig.mjs +6 -14
- package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
- package/dist/esm/helpers/grammarConfig.native.js +32 -22
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs +11 -4
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +4 -4
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/isObj.native.js +1 -5
- package/dist/esm/helpers/isObj.native.js.map +1 -1
- package/dist/esm/helpers/mainThreadPressEvents.native.js +48 -100
- package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/esm/helpers/mergeProps.mjs +18 -21
- package/dist/esm/helpers/mergeProps.mjs.map +1 -1
- package/dist/esm/helpers/mergeProps.native.js +20 -23
- package/dist/esm/helpers/mergeProps.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/nativeTextMetrics.mjs +55 -0
- package/dist/esm/helpers/nativeTextMetrics.mjs.map +1 -0
- package/dist/esm/helpers/nativeTextMetrics.native.js +56 -0
- package/dist/esm/helpers/nativeTextMetrics.native.js.map +1 -0
- package/dist/esm/helpers/normalizeColor.native.js +17 -2
- package/dist/esm/helpers/normalizeColor.native.js.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +2 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +3 -6
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/esm/helpers/objectIdentityKey.native.js +1 -5
- package/dist/esm/helpers/objectIdentityKey.native.js.map +1 -1
- package/dist/esm/helpers/parseNativeStyle.mjs +168 -0
- package/dist/esm/helpers/parseNativeStyle.mjs.map +1 -0
- package/dist/esm/helpers/parseNativeStyle.native.js +4 -1
- package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.mjs +10 -2
- package/dist/esm/helpers/proxyThemeToParents.mjs.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.native.js +29 -2
- package/dist/esm/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/esm/helpers/resolveAnimationDriver.native.js +1 -5
- package/dist/esm/helpers/resolveAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/resolveNativeUnits.mjs +9 -0
- package/dist/esm/helpers/resolveNativeUnits.mjs.map +1 -0
- package/dist/esm/helpers/resolveNativeUnits.native.js +178 -0
- package/dist/esm/helpers/resolveNativeUnits.native.js.map +1 -0
- package/dist/esm/helpers/resolveRem.native.js +18 -21
- package/dist/esm/helpers/resolveRem.native.js.map +1 -1
- package/dist/esm/helpers/resolveSizing.mjs +102 -0
- package/dist/esm/helpers/resolveSizing.mjs.map +1 -0
- package/dist/esm/helpers/resolveSizing.native.js +109 -0
- package/dist/esm/helpers/resolveSizing.native.js.map +1 -0
- package/dist/esm/helpers/resolveVariableValue.mjs +7 -7
- package/dist/esm/helpers/resolveVariableValue.mjs.map +1 -1
- package/dist/esm/helpers/resolveVariableValue.native.js +7 -9
- package/dist/esm/helpers/resolveVariableValue.native.js.map +1 -1
- package/dist/esm/helpers/resolveVariantStyle.native.js +2 -6
- package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -1
- package/dist/esm/helpers/skipProps.mjs +0 -1
- package/dist/esm/helpers/skipProps.mjs.map +1 -1
- package/dist/esm/helpers/skipProps.native.js +0 -1
- package/dist/esm/helpers/skipProps.native.js.map +1 -1
- package/dist/esm/helpers/styleFrontend.mjs +20 -1
- package/dist/esm/helpers/styleFrontend.mjs.map +1 -1
- package/dist/esm/helpers/styleFrontend.native.js +20 -1
- package/dist/esm/helpers/styleFrontend.native.js.map +1 -1
- package/dist/esm/helpers/styleStaticConfigCore.mjs +5 -4
- package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -1
- package/dist/esm/helpers/styleStaticConfigCore.native.js +7 -4
- package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -1
- package/dist/esm/helpers/styledDynamic.mjs +5 -0
- package/dist/esm/helpers/styledDynamic.mjs.map +1 -1
- package/dist/esm/helpers/styledDynamic.native.js +8 -7
- package/dist/esm/helpers/styledDynamic.native.js.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.mjs +16 -7
- package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js +18 -8
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/esm/helpers/themeRef.native.js +1 -5
- package/dist/esm/helpers/themeRef.native.js.map +1 -1
- package/dist/esm/helpers/themes.mjs +20 -11
- package/dist/esm/helpers/themes.mjs.map +1 -1
- package/dist/esm/helpers/themes.native.js +20 -11
- package/dist/esm/helpers/themes.native.js.map +1 -1
- package/dist/esm/helpers/tokenCategories.mjs +2 -2
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js +2 -2
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/variables.mjs +1 -1
- package/dist/esm/helpers/variables.mjs.map +1 -1
- package/dist/esm/helpers/variables.native.js +4 -8
- package/dist/esm/helpers/variables.native.js.map +1 -1
- package/dist/esm/helpers/warnOnce.mjs +6 -1
- package/dist/esm/helpers/warnOnce.mjs.map +1 -1
- package/dist/esm/helpers/warnOnce.native.js +6 -1
- package/dist/esm/helpers/warnOnce.native.js.map +1 -1
- package/dist/esm/helpers/webPropsToSkip.native.js +3 -3
- package/dist/esm/helpers/webPropsToSkip.native.js.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.mjs +1 -1
- package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.native.js +1 -1
- package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +1 -5
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +27 -34
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +45 -51
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/useSplitStyles.mjs +1 -1
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +36 -48
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +44 -50
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.mjs +4 -1
- package/dist/esm/index.native.js +4 -1
- package/dist/esm/internal-runtime.mjs +22 -3
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +22 -3
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.native.js +2 -9
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/style.mjs +1 -1
- package/dist/esm/style.mjs.map +1 -1
- package/dist/esm/style.native.js +4 -7
- package/dist/esm/style.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +15 -14
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +15 -15
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/dist/esm/views/ThemeDebug.mjs +1 -1
- package/dist/esm/views/ThemeDebug.mjs.map +1 -1
- package/dist/esm/views/ThemeUpdate.mjs +1 -1
- package/dist/esm/views/ThemeUpdate.mjs.map +1 -1
- package/dist/esm/views/ThemeUpdate.native.js +1 -1
- package/dist/esm/views/ThemeUpdate.native.js.map +1 -1
- package/package.json +20 -18
- package/reset.css +11 -0
- package/src/_withNativeStyle.tsx +6 -1
- package/src/config.ts +6 -6
- package/src/contexts/ComponentContext.tsx +8 -0
- package/src/createComponent.tsx +177 -57
- package/src/createStyledHOC.tsx +25 -26
- package/src/createTamagui.ts +47 -28
- package/src/dom/contract.ts +4 -1
- package/src/dom/html.native.tsx +55 -2
- package/src/dom/html.tsx +189 -388
- package/src/dom/htmlReset.ts +15 -0
- package/src/dom/htmlRuntime.native.tsx +5 -0
- package/src/dom/htmlStaticConfig.ts +40 -0
- package/src/dom/primitives.native.tsx +138 -33
- package/src/dom/standalone.ts +2 -1
- package/src/dom/styleTypes.ts +82 -92
- package/src/eventHandling.native.ts +61 -11
- package/src/eventHandling.ts +19 -4
- package/src/helpers/NativeTextBinding.tsx +26 -0
- package/src/helpers/createDesignSystem.ts +24 -8
- package/src/helpers/expandStyle.ts +88 -4
- package/src/helpers/expandStyles.ts +6 -11
- package/src/helpers/fluid.ts +66 -0
- package/src/helpers/getCSSStylesAtomic.ts +11 -6
- package/src/helpers/getSplitStyles.tsx +1032 -296
- package/src/helpers/getThemeCSSRules.ts +73 -35
- package/src/helpers/grammarConfig.ts +23 -8
- package/src/helpers/insertStyleRule.tsx +14 -8
- package/src/helpers/mainThreadPressEvents.native.ts +65 -141
- package/src/helpers/mergeProps.ts +29 -62
- package/src/helpers/nativeOnlyProps.ts +0 -1
- package/src/helpers/nativeTextMetrics.ts +77 -0
- package/src/helpers/normalizeColor.native.ts +29 -4
- package/src/helpers/normalizeValueWithProperty.ts +2 -1
- package/src/helpers/{parseNativeStyle.native.ts → parseNativeStyle.ts} +8 -1
- package/src/helpers/proxyThemeToParents.ts +13 -2
- package/src/helpers/resolveNativeUnits.native.ts +247 -0
- package/src/helpers/resolveNativeUnits.ts +10 -0
- package/src/helpers/resolveRem.native.ts +25 -26
- package/src/helpers/resolveSizing.ts +167 -0
- package/src/helpers/resolveVariableValue.ts +21 -17
- package/src/helpers/skipProps.ts +0 -1
- package/src/helpers/styleFrontend.ts +39 -0
- package/src/helpers/styleProvenance.ts +1 -1
- package/src/helpers/styleStaticConfigCore.ts +15 -4
- package/src/helpers/styledDynamic.ts +3 -1
- package/src/helpers/subscribeToContextGroup.tsx +16 -7
- package/src/helpers/themes.ts +27 -11
- package/src/helpers/tokenCategories.ts +15 -3
- package/src/helpers/variables.ts +2 -2
- package/src/helpers/warnOnce.ts +6 -0
- package/src/helpers/webPropsToSkip.native.ts +9 -3
- package/src/helpers/wrapStyleTags.tsx +4 -1
- package/src/hooks/useMedia.tsx +36 -47
- package/src/hooks/useSplitStyles.tsx +4 -1
- package/src/hooks/useThemeState.ts +69 -74
- package/src/index.ts +13 -0
- package/src/interfaces/RNExclusiveTypes.ts +1 -3
- package/src/internal-runtime.ts +43 -2
- package/src/style.ts +4 -1
- package/src/styled.tsx +34 -3
- package/src/types.tsx +412 -132
- package/src/views/Theme.tsx +18 -21
- package/src/views/ThemeDebug.tsx +1 -1
- package/src/views/ThemeUpdate.tsx +1 -1
- package/types/_withNativeStyle.d.ts.map +1 -1
- package/types/config.d.ts.map +1 -1
- package/types/contexts/ComponentContext.d.ts +1 -1
- package/types/contexts/ComponentContext.d.ts.map +1 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts +5 -2
- package/types/createStyledHOC.d.ts.map +1 -1
- package/types/createTamagui.d.ts.map +1 -1
- package/types/dom/contract.d.ts +4 -1
- package/types/dom/contract.d.ts.map +1 -1
- package/types/dom/html.d.ts +60 -51
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/html.native.d.ts.map +1 -1
- package/types/dom/htmlReset.d.ts +10 -0
- package/types/dom/htmlReset.d.ts.map +1 -0
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/dom/htmlStaticConfig.d.ts +22 -0
- package/types/dom/htmlStaticConfig.d.ts.map +1 -0
- package/types/dom/primitives.native.d.ts.map +1 -1
- package/types/dom/standalone.d.ts +2 -1
- package/types/dom/standalone.d.ts.map +1 -1
- package/types/dom/styleTypes.d.ts +63 -84
- package/types/dom/styleTypes.d.ts.map +1 -1
- package/types/eventHandling.d.ts +12 -4
- package/types/eventHandling.d.ts.map +1 -1
- package/types/eventHandling.native.d.ts.map +1 -1
- package/types/helpers/NativeTextBinding.d.ts +11 -0
- package/types/helpers/NativeTextBinding.d.ts.map +1 -0
- package/types/helpers/createDesignSystem.d.ts.map +1 -1
- package/types/helpers/expandStyle.d.ts +1 -0
- package/types/helpers/expandStyle.d.ts.map +1 -1
- package/types/helpers/expandStyles.d.ts.map +1 -1
- package/types/helpers/fluid.d.ts +21 -0
- package/types/helpers/fluid.d.ts.map +1 -0
- package/types/helpers/getCSSStylesAtomic.d.ts +3 -1
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +2 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
- package/types/helpers/grammarConfig.d.ts.map +1 -1
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/helpers/mainThreadPressEvents.native.d.ts +0 -7
- package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -1
- package/types/helpers/mergeProps.d.ts +1 -15
- package/types/helpers/mergeProps.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/nativeTextMetrics.d.ts +16 -0
- package/types/helpers/nativeTextMetrics.d.ts.map +1 -0
- package/types/helpers/normalizeColor.native.d.ts +4 -1
- package/types/helpers/normalizeColor.native.d.ts.map +1 -1
- package/types/helpers/normalizeShadow.native.d.ts +3 -1
- package/types/helpers/normalizeShadow.native.d.ts.map +1 -1
- package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
- package/types/helpers/{parseNativeStyle.native.d.ts → parseNativeStyle.d.ts} +1 -1
- package/types/helpers/parseNativeStyle.d.ts.map +1 -0
- package/types/helpers/proxyThemeToParents.d.ts +1 -1
- package/types/helpers/proxyThemeToParents.d.ts.map +1 -1
- package/types/helpers/resolveNativeUnits.d.ts +6 -0
- package/types/helpers/resolveNativeUnits.d.ts.map +1 -0
- package/types/helpers/resolveNativeUnits.native.d.ts +16 -0
- package/types/helpers/resolveNativeUnits.native.d.ts.map +1 -0
- package/types/helpers/resolveRem.native.d.ts +6 -4
- package/types/helpers/resolveRem.native.d.ts.map +1 -1
- package/types/helpers/resolveSizing.d.ts +90 -0
- package/types/helpers/resolveSizing.d.ts.map +1 -0
- package/types/helpers/resolveVariableValue.d.ts.map +1 -1
- package/types/helpers/skipProps.d.ts +0 -1
- package/types/helpers/skipProps.d.ts.map +1 -1
- package/types/helpers/styleFrontend.d.ts +21 -0
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleProvenance.d.ts +1 -1
- package/types/helpers/styleProvenance.d.ts.map +1 -1
- package/types/helpers/styleStaticConfigCore.d.ts.map +1 -1
- package/types/helpers/styledDynamic.d.ts +1 -1
- package/types/helpers/styledDynamic.d.ts.map +1 -1
- package/types/helpers/themes.d.ts +4 -0
- package/types/helpers/themes.d.ts.map +1 -1
- package/types/helpers/tokenCategories.d.ts +1 -1
- package/types/helpers/tokenCategories.d.ts.map +1 -1
- package/types/helpers/warnOnce.d.ts +1 -0
- package/types/helpers/warnOnce.d.ts.map +1 -1
- package/types/helpers/webPropsToSkip.native.d.ts +6 -2
- package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
- package/types/helpers/wrapStyleTags.d.ts.map +1 -1
- package/types/hooks/useMedia.d.ts +5 -2
- package/types/hooks/useMedia.d.ts.map +1 -1
- package/types/hooks/useSplitStyles.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/index.d.ts +4 -1
- package/types/index.d.ts.map +1 -1
- package/types/interfaces/RNExclusiveTypes.d.ts +2 -3
- package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -1
- package/types/internal-runtime.d.ts +12 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/style.d.ts.map +1 -1
- package/types/styled.d.ts +7 -4
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +258 -102
- package/types/types.d.ts.map +1 -1
- package/types/views/Theme.d.ts.map +1 -1
- package/dist/cjs/helpers/timer.native.js.map +0 -1
- package/dist/esm/helpers/timer.mjs +0 -13
- package/dist/esm/helpers/timer.mjs.map +0 -1
- package/dist/esm/helpers/timer.native.js +0 -13
- package/dist/esm/helpers/timer.native.js.map +0 -1
- package/src/helpers/timer.ts +0 -9
- package/types/helpers/parseNativeStyle.native.d.ts.map +0 -1
- package/types/helpers/timer.d.ts +0 -2
- package/types/helpers/timer.d.ts.map +0 -1
|
@@ -38,8 +38,10 @@ __export(useThemeState_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(useThemeState_exports);
|
|
39
39
|
var import_constants = require("@tamagui/constants");
|
|
40
40
|
var import_react = require("react");
|
|
41
|
+
var import_helpers = require("@tamagui/helpers");
|
|
41
42
|
var import_config = require("../config.native.js");
|
|
42
43
|
var import_constants2 = require("../constants/constants.native.js");
|
|
44
|
+
var import_themes = require("../helpers/themes.native.js");
|
|
43
45
|
var ThemeStateContext = (0, import_react.createContext)("");
|
|
44
46
|
var allListeners = /* @__PURE__ */ new Map();
|
|
45
47
|
var listenersByParent = {};
|
|
@@ -47,7 +49,6 @@ var HasRenderedOnce = /* @__PURE__ */ new WeakMap();
|
|
|
47
49
|
var HadTheme = /* @__PURE__ */ new WeakMap();
|
|
48
50
|
var PendingUpdate = /* @__PURE__ */ new Map();
|
|
49
51
|
var states = /* @__PURE__ */ new Map();
|
|
50
|
-
var localStates = /* @__PURE__ */ new Map();
|
|
51
52
|
var shouldForce = false;
|
|
52
53
|
var forceUpdateThemes = function() {
|
|
53
54
|
cacheVersion++;
|
|
@@ -96,6 +97,7 @@ var incReducer = function(c) {
|
|
|
96
97
|
var useThemeState = function(props) {
|
|
97
98
|
"use no memo";
|
|
98
99
|
var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
|
|
100
|
+
var _props__themeUpdate;
|
|
99
101
|
var _ref;
|
|
100
102
|
var { disable } = props;
|
|
101
103
|
var parentId = (0, import_react.useContext)(ThemeStateContext);
|
|
@@ -108,16 +110,10 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
|
|
|
108
110
|
theme: (0, import_config.getConfig)().themes.light
|
|
109
111
|
};
|
|
110
112
|
var id = (0, import_react.useId)();
|
|
111
|
-
var propsKey =
|
|
113
|
+
var propsKey = `${props.name || ""}${props.forceClassName || ""}${((_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.key) || ""}`;
|
|
112
114
|
if (cascadeOnChange) registerThemeProviderChain(id, parentId, props);
|
|
113
115
|
var r = (_ref = (0, import_react.useRef)(null)).current || (_ref.current = {
|
|
114
116
|
id,
|
|
115
|
-
parentId,
|
|
116
|
-
props,
|
|
117
|
-
propsKey,
|
|
118
|
-
isRoot,
|
|
119
|
-
keys,
|
|
120
|
-
schemeKeys,
|
|
121
117
|
optimizeForFirstRender,
|
|
122
118
|
renderVersion: 0
|
|
123
119
|
});
|
|
@@ -135,10 +131,13 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
|
|
|
135
131
|
var renderVersion = r.renderVersion;
|
|
136
132
|
if (r.lastSnap && !states.has(r.id)) {
|
|
137
133
|
states.set(r.id, r.lastSnap);
|
|
138
|
-
|
|
134
|
+
r.state = r.lastSnap;
|
|
139
135
|
}
|
|
140
136
|
if (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);
|
|
141
|
-
if (r.unsubscribe && r.
|
|
137
|
+
if (r.unsubscribe && r.subscribedTo !== r.parentId) {
|
|
138
|
+
var _r_unsubscribe;
|
|
139
|
+
(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);
|
|
140
|
+
}
|
|
142
141
|
if (shouldSubscribeToTheme(r, cascadeOnChange)) {
|
|
143
142
|
if (!r.unsubscribe) {
|
|
144
143
|
var _listenersByParent, _pid;
|
|
@@ -159,19 +158,22 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
|
|
|
159
158
|
PendingUpdate.set(sid, forced ? "force" : true);
|
|
160
159
|
cb(forced);
|
|
161
160
|
});
|
|
162
|
-
r.
|
|
161
|
+
r.subscribedTo = pid;
|
|
163
162
|
r.unsubscribe = function() {
|
|
164
163
|
var _listenersByParent_pid;
|
|
165
164
|
allListeners.delete(sid);
|
|
166
165
|
(_listenersByParent_pid = listenersByParent[pid]) === null || _listenersByParent_pid === void 0 || _listenersByParent_pid.delete(sid);
|
|
167
|
-
|
|
166
|
+
r.state = void 0;
|
|
168
167
|
states.delete(sid);
|
|
169
168
|
PendingUpdate.delete(sid);
|
|
170
169
|
r.unsubscribe = void 0;
|
|
171
|
-
r.
|
|
170
|
+
r.subscribedTo = void 0;
|
|
172
171
|
};
|
|
173
172
|
}
|
|
174
|
-
} else if (r.unsubscribe)
|
|
173
|
+
} else if (r.unsubscribe) {
|
|
174
|
+
var _r_unsubscribe1;
|
|
175
|
+
(_r_unsubscribe1 = r.unsubscribe) === null || _r_unsubscribe1 === void 0 || _r_unsubscribe1.call(r);
|
|
176
|
+
}
|
|
175
177
|
return function() {
|
|
176
178
|
if (r.renderVersion === renderVersion) cleanupThemeState(r);
|
|
177
179
|
};
|
|
@@ -195,14 +197,10 @@ var shouldSubscribeToTheme = function(r, cascadeOnChange) {
|
|
|
195
197
|
var _r_keys_current, _r_props_needsUpdate, _r_props;
|
|
196
198
|
return Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));
|
|
197
199
|
};
|
|
198
|
-
function cleanupThemeSubscription(r) {
|
|
199
|
-
var _r_unsubscribe;
|
|
200
|
-
(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);
|
|
201
|
-
}
|
|
202
200
|
function cleanupThemeState(r) {
|
|
203
|
-
if (r.unsubscribe)
|
|
201
|
+
if (r.unsubscribe) r.unsubscribe();
|
|
204
202
|
else {
|
|
205
|
-
|
|
203
|
+
r.state = void 0;
|
|
206
204
|
states.delete(r.id);
|
|
207
205
|
PendingUpdate.delete(r.id);
|
|
208
206
|
}
|
|
@@ -211,16 +209,16 @@ function cleanupThemeState(r) {
|
|
|
211
209
|
}
|
|
212
210
|
var getSnapshotImpl = function(r) {
|
|
213
211
|
var _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;
|
|
214
|
-
var { id, parentId, props, propsKey, isRoot, keys,
|
|
215
|
-
var
|
|
212
|
+
var { id, parentId, props, propsKey, isRoot, keys, optimizeForFirstRender } = r;
|
|
213
|
+
var schemeKeys = r.schemeKeys;
|
|
214
|
+
var local = r.state;
|
|
216
215
|
var parentState = states.get(parentId);
|
|
217
216
|
if (local && !PendingUpdate.has(id)) {
|
|
218
|
-
if (parentState && local._parentName === parentState.name && local._propsKey === propsKey) return local;
|
|
217
|
+
if (parentState && local._parentName === parentState.name && local._parentSchemeAuthored === parentState.schemeAuthored && local._propsKey === propsKey) return local;
|
|
219
218
|
}
|
|
220
219
|
var isSchemeOnlyChange = !optimizeForFirstRender && import_constants.supportsDynamicColorIOS && (0, import_config.getSetting)("fastSchemeChange") && local && parentState && local.scheme !== parentState.scheme && getThemeBaseName(local.name) === getThemeBaseName(parentState.name);
|
|
221
|
-
var
|
|
222
|
-
var canSkipForSchemeChange =
|
|
223
|
-
var needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === "light" || props.name === "dark" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);
|
|
220
|
+
var canSkipForSchemeChange = Boolean(isSchemeOnlyChange && ((_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) && (schemeKeys === null || schemeKeys === void 0 ? void 0 : (_schemeKeys_current = schemeKeys.current) === null || _schemeKeys_current === void 0 ? void 0 : _schemeKeys_current.size) === keys.current.size);
|
|
221
|
+
var needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.forceClassName || props.name === "light" || props.name === "dark" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);
|
|
224
222
|
var [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
225
223
|
var next = nextRaw;
|
|
226
224
|
if (props._themeUpdate && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {
|
|
@@ -235,13 +233,14 @@ var getSnapshotImpl = function(r) {
|
|
|
235
233
|
PendingUpdate.delete(id);
|
|
236
234
|
if (!local || rerender) {
|
|
237
235
|
local = { ...next };
|
|
238
|
-
|
|
236
|
+
r.state = local;
|
|
239
237
|
}
|
|
240
238
|
if (next !== local) {
|
|
241
239
|
Object.assign(local, next);
|
|
242
240
|
local.id = id;
|
|
243
241
|
}
|
|
244
242
|
local._parentName = parentState === null || parentState === void 0 ? void 0 : parentState.name;
|
|
243
|
+
local._parentSchemeAuthored = parentState === null || parentState === void 0 ? void 0 : parentState.schemeAuthored;
|
|
245
244
|
local._propsKey = propsKey;
|
|
246
245
|
states.set(id, next);
|
|
247
246
|
return local;
|
|
@@ -249,19 +248,25 @@ var getSnapshotImpl = function(r) {
|
|
|
249
248
|
var getNextState = function(lastState, props, propsKey) {
|
|
250
249
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;
|
|
251
250
|
var parentState = states.get(parentId);
|
|
252
|
-
if (props.passThrough) return [false,
|
|
251
|
+
if (props.passThrough) return [false, parentState || lastState || { name: "" }];
|
|
253
252
|
themes || (themes = (0, import_config.getConfig)().themes);
|
|
254
253
|
var name = !propsKey && (!lastState || !lastState.isNew) ? null : getNewThemeName(parentState === null || parentState === void 0 ? void 0 : parentState.name, props, pendingUpdate === "force" ? true : !!needsUpdate);
|
|
255
|
-
var
|
|
256
|
-
var
|
|
254
|
+
var authoredName = props.name;
|
|
255
|
+
var parentSchemeAuthored = !!(parentState === null || parentState === void 0 ? void 0 : parentState.schemeAuthored);
|
|
256
|
+
var schemeAuthored = isRoot ? !!props.forceClassName : parentSchemeAuthored || !!(authoredName && (0, import_helpers.getThemeScheme)(authoredName) && authoredName in themes);
|
|
257
|
+
var intentChanged = schemeAuthored !== parentSchemeAuthored;
|
|
258
|
+
var resolvedName = name || (parentState === null || parentState === void 0 ? void 0 : parentState.name);
|
|
259
|
+
var sameAsLast = lastState && lastState.name === resolvedName && !!lastState.schemeAuthored === schemeAuthored;
|
|
260
|
+
var isSameAsParent = Boolean(parentState && resolvedName === parentState.name && !intentChanged);
|
|
261
|
+
var shouldRerender = Boolean(pendingUpdate === "force" || needsUpdate && (pendingUpdate || (lastState === null || lastState === void 0 ? void 0 : lastState.name) !== (parentState === null || parentState === void 0 ? void 0 : parentState.name) || !!(lastState === null || lastState === void 0 ? void 0 : lastState.schemeAuthored) !== schemeAuthored));
|
|
257
262
|
if (isSameAsParent) {
|
|
258
|
-
if (!shouldRerender &&
|
|
263
|
+
if (!shouldRerender && sameAsLast) return [false, lastState];
|
|
259
264
|
return [shouldRerender, {
|
|
260
265
|
...parentState,
|
|
261
266
|
isNew: false
|
|
262
267
|
}];
|
|
263
268
|
}
|
|
264
|
-
if (!
|
|
269
|
+
if (!resolvedName) {
|
|
265
270
|
var _ref, _ref1;
|
|
266
271
|
var next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
267
272
|
id,
|
|
@@ -271,25 +276,25 @@ var getNextState = function(lastState, props, propsKey) {
|
|
|
271
276
|
if (shouldRerender) return [true, { ...parentState || lastState || next }];
|
|
272
277
|
return [false, next];
|
|
273
278
|
}
|
|
274
|
-
var scheme =
|
|
279
|
+
var scheme = (0, import_themes.getAuthoredThemeScheme)(themes[resolvedName]) || (0, import_helpers.getThemeScheme)(resolvedName);
|
|
275
280
|
var _parentState_inverses;
|
|
276
281
|
var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
|
|
277
282
|
var isInverse = Boolean(parentState && scheme !== parentState.scheme);
|
|
278
283
|
var inverses = parentInverses + (isInverse ? 1 : 0);
|
|
279
284
|
var nextState = {
|
|
280
285
|
id,
|
|
281
|
-
name,
|
|
282
|
-
theme: themes[
|
|
286
|
+
name: resolvedName,
|
|
287
|
+
theme: themes[resolvedName],
|
|
283
288
|
scheme,
|
|
284
289
|
parentId,
|
|
285
290
|
parentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,
|
|
286
291
|
inverses,
|
|
287
292
|
isInverse,
|
|
293
|
+
schemeAuthored,
|
|
288
294
|
isNew: true
|
|
289
295
|
};
|
|
290
296
|
if (isRoot) rootThemeState = nextState;
|
|
291
|
-
|
|
292
|
-
return [!(pendingUpdate !== "force" && lastState && !needsUpdate && nextState.name === lastState.name), nextState];
|
|
297
|
+
return [pendingUpdate === "force" || !sameAsLast, nextState];
|
|
293
298
|
};
|
|
294
299
|
function scheduleUpdate(id) {
|
|
295
300
|
var queue = [id];
|
|
@@ -323,13 +328,6 @@ function scheduleUpdate(id) {
|
|
|
323
328
|
(_allListeners_get = allListeners.get(childId2)) === null || _allListeners_get === void 0 || _allListeners_get();
|
|
324
329
|
});
|
|
325
330
|
}
|
|
326
|
-
var validSchemes = {
|
|
327
|
-
light: "light",
|
|
328
|
-
dark: "dark"
|
|
329
|
-
};
|
|
330
|
-
function getScheme(name) {
|
|
331
|
-
return validSchemes[name.split("_")[0]];
|
|
332
|
-
}
|
|
333
331
|
function getNewThemeName() {
|
|
334
332
|
var parentName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", props = arguments.length > 1 ? arguments[1] : void 0, forceUpdate = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
335
333
|
var { name } = props;
|
|
@@ -354,7 +352,7 @@ function resolveThemeName(parentName, name, themes2) {
|
|
|
354
352
|
var parentParts = parentName ? parentName.split("_") : [];
|
|
355
353
|
var found = null;
|
|
356
354
|
if (name) {
|
|
357
|
-
var nameHasScheme =
|
|
355
|
+
var nameHasScheme = (0, import_helpers.getThemeScheme)(name);
|
|
358
356
|
if (nameHasScheme && name in themes2) found = name;
|
|
359
357
|
if (!found && !nameHasScheme) for (var i = parentParts.length; i >= 0; i--) {
|
|
360
358
|
var base = parentParts.slice(0, i).join("_");
|
|
@@ -365,13 +363,9 @@ function resolveThemeName(parentName, name, themes2) {
|
|
|
365
363
|
}
|
|
366
364
|
}
|
|
367
365
|
}
|
|
368
|
-
if (!forceUpdate && found === parentName &&
|
|
366
|
+
if (!forceUpdate && found === parentName && found !== "light" && found !== "dark") return null;
|
|
369
367
|
return found;
|
|
370
368
|
}
|
|
371
|
-
var getPropsKey = function(param) {
|
|
372
|
-
var { name, forceClassName, _themeUpdate } = param;
|
|
373
|
-
return `${name || ""}${forceClassName || ""}${(_themeUpdate === null || _themeUpdate === void 0 ? void 0 : _themeUpdate.key) || ""}`;
|
|
374
|
-
};
|
|
375
369
|
var hasThemeUpdatingProps = function(props) {
|
|
376
370
|
return "name" in props || "forceClassName" in props || "_themeUpdate" in props;
|
|
377
371
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeState.native.js","names":[],"sources":["cjs/hooks/useThemeState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useThemeState_exports = {};\n__export(useThemeState_exports, {\n\tThemeStateContext: () => ThemeStateContext,\n\tforceUpdateThemes: () => forceUpdateThemes,\n\tgetNewThemeName: () => getNewThemeName,\n\tgetRootThemeState: () => getRootThemeState,\n\tgetThemeNameCacheSize: () => getThemeNameCacheSize,\n\tgetThemeProviderChainSizes: () => getThemeProviderChainSizes,\n\tgetThemeProviderParent: () => getThemeProviderParent,\n\tgetThemeState: () => getThemeState,\n\tgetThemeUpdateLayer: () => getThemeUpdateLayer,\n\thasThemeUpdatingProps: () => hasThemeUpdatingProps,\n\tresolveThemeName: () => resolveThemeName,\n\tuseThemeState: () => useThemeState\n});\nmodule.exports = __toCommonJS(useThemeState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_config = require(\"../config\");\nvar import_constants2 = require(\"../constants/constants\");\nvar ThemeStateContext = (0, import_react.createContext)(\"\");\nvar allListeners = /* @__PURE__ */ new Map();\nvar listenersByParent = {};\nvar HasRenderedOnce = /* @__PURE__ */ new WeakMap();\nvar HadTheme = /* @__PURE__ */ new WeakMap();\nvar PendingUpdate = /* @__PURE__ */ new Map();\nvar states = /* @__PURE__ */ new Map();\nvar localStates = /* @__PURE__ */ new Map();\nvar shouldForce = false;\nvar forceUpdateThemes = function() {\n\tcacheVersion++;\n\tshouldForce = true;\n\tallListeners.forEach(function(cb) {\n\t\treturn cb();\n\t});\n\tshouldForce = false;\n};\nvar getThemeState = function(id) {\n\treturn states.get(id);\n};\nvar themeUpdateLayers = /* @__PURE__ */ new Map();\nvar themeProviderParents = /* @__PURE__ */ new Map();\nvar getThemeUpdateLayer = function(id) {\n\treturn themeUpdateLayers.get(id);\n};\nvar getThemeProviderParent = function(id) {\n\treturn themeProviderParents.get(id);\n};\nvar getThemeProviderChainSizes = function() {\n\treturn {\n\t\tlayers: themeUpdateLayers.size,\n\t\tparents: themeProviderParents.size\n\t};\n};\nvar registerThemeProviderChain = function(id, parentId, props) {\n\tthemeProviderParents.set(id, parentId);\n\tif (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);\n\telse themeUpdateLayers.delete(id);\n};\nvar cacheVersion = 0;\nvar themeNameCache = /* @__PURE__ */ new Map();\nvar themeNameCacheVer = -1;\nvar themes = null;\nvar rootThemeState = null;\nvar getRootThemeState = function() {\n\treturn rootThemeState;\n};\nvar getThemeBaseName = function(name) {\n\treturn name.replace(/^(light|dark)_/, \"\");\n};\nvar incReducer = function(c) {\n\treturn c + 1;\n};\nvar useThemeState = function(props) {\n\t\"use no memo\";\n\tvar isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar _ref;\n\tvar { disable } = props;\n\tvar parentId = (0, import_react.useContext)(ThemeStateContext);\n\tif (!parentId && !isRoot) throw new Error(process.env.NODE_ENV === \"development\" ? `${import_constants2.MISSING_THEME_MESSAGE}\n\nLooked for theme${props.name ? ` \"${props.name}\"` : \"\"}, but no parent theme context was found (parentId: ${parentId}).` : import_constants2.MISSING_THEME_MESSAGE);\n\tif (disable) return states.get(parentId) || {\n\t\tid: \"\",\n\t\tname: \"light\",\n\t\ttheme: (0, import_config.getConfig)().themes.light\n\t};\n\tvar id = (0, import_react.useId)();\n\tvar propsKey = getPropsKey(props);\n\tif (cascadeOnChange) registerThemeProviderChain(id, parentId, props);\n\tvar r = (_ref = (0, import_react.useRef)(null)).current || (_ref.current = {\n\t\tid,\n\t\tparentId,\n\t\tprops,\n\t\tpropsKey,\n\t\tisRoot,\n\t\tkeys,\n\t\tschemeKeys,\n\t\toptimizeForFirstRender,\n\t\trenderVersion: 0\n\t});\n\tr.props = props;\n\tr.propsKey = propsKey;\n\tr.isRoot = isRoot;\n\tr.keys = keys;\n\tr.schemeKeys = schemeKeys;\n\tr.parentId = parentId;\n\tr.renderVersion++;\n\tvar [, forceUpdate] = (0, import_react.useReducer)(incReducer, 0);\n\tvar state = getSnapshotImpl(r);\n\tr.lastSnap = state;\n\t(0, import_react.useEffect)(function() {\n\t\tvar renderVersion = r.renderVersion;\n\t\tif (r.lastSnap && !states.has(r.id)) {\n\t\t\tstates.set(r.id, r.lastSnap);\n\t\t\tlocalStates.set(r.id, r.lastSnap);\n\t\t}\n\t\tif (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);\n\t\tif (r.unsubscribe && r.subscribedParentId !== r.parentId) cleanupThemeSubscription(r);\n\t\tif (shouldSubscribeToTheme(r, cascadeOnChange)) {\n\t\t\tif (!r.unsubscribe) {\n\t\t\t\tvar _listenersByParent, _pid;\n\t\t\t\tvar pid = r.parentId;\n\t\t\t\tvar sid = r.id;\n\t\t\t\tvar cb = function(forced) {\n\t\t\t\t\tvar next = getSnapshotImpl(r);\n\t\t\t\t\tif (next !== r.lastSnap) {\n\t\t\t\t\t\tvar _r_props_nativeUpdate, _r_props;\n\t\t\t\t\t\tr.lastSnap = next;\n\t\t\t\t\t\tif (!forced && ((_r_props_nativeUpdate = (_r_props = r.props).nativeUpdate) === null || _r_props_nativeUpdate === void 0 ? void 0 : _r_props_nativeUpdate.call(_r_props, next))) return;\n\t\t\t\t\t\tforceUpdate();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t((_listenersByParent = listenersByParent)[_pid = pid] || (_listenersByParent[_pid] = /* @__PURE__ */ new Set())).add(sid);\n\t\t\t\tallListeners.set(sid, function() {\n\t\t\t\t\tvar forced = shouldForce;\n\t\t\t\t\tPendingUpdate.set(sid, forced ? \"force\" : true);\n\t\t\t\t\tcb(forced);\n\t\t\t\t});\n\t\t\t\tr.subscribedParentId = pid;\n\t\t\t\tr.unsubscribe = function() {\n\t\t\t\t\tvar _listenersByParent_pid;\n\t\t\t\t\tallListeners.delete(sid);\n\t\t\t\t\t(_listenersByParent_pid = listenersByParent[pid]) === null || _listenersByParent_pid === void 0 || _listenersByParent_pid.delete(sid);\n\t\t\t\t\tlocalStates.delete(sid);\n\t\t\t\t\tstates.delete(sid);\n\t\t\t\t\tPendingUpdate.delete(sid);\n\t\t\t\t\tr.unsubscribe = void 0;\n\t\t\t\t\tr.subscribedParentId = void 0;\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (r.unsubscribe) cleanupThemeSubscription(r);\n\t\treturn function() {\n\t\t\tif (r.renderVersion === renderVersion) cleanupThemeState(r);\n\t\t};\n\t});\n\tif (cascadeOnChange) (0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (!HasRenderedOnce.get(keys)) {\n\t\t\tHasRenderedOnce.set(keys, true);\n\t\t\treturn;\n\t\t}\n\t\tif (!propsKey) {\n\t\t\tif (HadTheme.get(keys)) scheduleUpdate(id);\n\t\t\tHadTheme.set(keys, false);\n\t\t\treturn;\n\t\t}\n\t\tscheduleUpdate(id);\n\t\tHadTheme.set(keys, true);\n\t}, [keys, propsKey]);\n\treturn state;\n};\nvar shouldSubscribeToTheme = function(r, cascadeOnChange) {\n\tvar _r_keys_current, _r_props_needsUpdate, _r_props;\n\treturn Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));\n};\nfunction cleanupThemeSubscription(r) {\n\tvar _r_unsubscribe;\n\t(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);\n}\nfunction cleanupThemeState(r) {\n\tif (r.unsubscribe) cleanupThemeSubscription(r);\n\telse {\n\t\tlocalStates.delete(r.id);\n\t\tstates.delete(r.id);\n\t\tPendingUpdate.delete(r.id);\n\t}\n\tthemeUpdateLayers.delete(r.id);\n\tthemeProviderParents.delete(r.id);\n}\nvar getSnapshotImpl = function(r) {\n\tvar _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;\n\tvar { id, parentId, props, propsKey, isRoot, keys, schemeKeys, optimizeForFirstRender } = r;\n\tvar local = localStates.get(id);\n\tvar parentState = states.get(parentId);\n\tif (local && !PendingUpdate.has(id)) {\n\t\tif (parentState && local._parentName === parentState.name && local._propsKey === propsKey) return local;\n\t}\n\tvar isSchemeOnlyChange = !optimizeForFirstRender && import_constants.supportsDynamicColorIOS && (0, import_config.getSetting)(\"fastSchemeChange\") && local && parentState && local.scheme !== parentState.scheme && getThemeBaseName(local.name) === getThemeBaseName(parentState.name);\n\tvar allKeysSchemeOptimized = !optimizeForFirstRender && Boolean(((_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) && (schemeKeys === null || schemeKeys === void 0 ? void 0 : (_schemeKeys_current = schemeKeys.current) === null || _schemeKeys_current === void 0 ? void 0 : _schemeKeys_current.size) === keys.current.size);\n\tvar canSkipForSchemeChange = Boolean(isSchemeOnlyChange && allKeysSchemeOptimized);\n\tvar needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === \"light\" || props.name === \"dark\" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);\n\tvar [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));\n\tvar next = nextRaw;\n\tif (props._themeUpdate && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {\n\t\tvar _states_get;\n\t\tvar parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;\n\t\tvar merged = props._themeUpdate.getTheme(parentTheme, nextRaw.name, (0, import_config.getConfig)());\n\t\tif (merged !== nextRaw.theme) next = {\n\t\t\t...nextRaw,\n\t\t\ttheme: merged\n\t\t};\n\t}\n\tPendingUpdate.delete(id);\n\tif (!local || rerender) {\n\t\tlocal = { ...next };\n\t\tlocalStates.set(id, local);\n\t}\n\tif (next !== local) {\n\t\tObject.assign(local, next);\n\t\tlocal.id = id;\n\t}\n\tlocal._parentName = parentState === null || parentState === void 0 ? void 0 : parentState.name;\n\tlocal._propsKey = propsKey;\n\tstates.set(id, next);\n\treturn local;\n};\nvar getNextState = function(lastState, props, propsKey) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;\n\tvar parentState = states.get(parentId);\n\tif (props.passThrough) return [false, lastState || parentState || { name: \"\" }];\n\tthemes || (themes = (0, import_config.getConfig)().themes);\n\tvar name = !propsKey && (!lastState || !lastState.isNew) ? null : getNewThemeName(parentState === null || parentState === void 0 ? void 0 : parentState.name, props, pendingUpdate === \"force\" ? true : !!needsUpdate);\n\tvar isSameAsParent = Boolean(parentState && (!name || name === parentState.name));\n\tvar shouldRerender = Boolean(pendingUpdate === \"force\" || needsUpdate && (pendingUpdate || (lastState === null || lastState === void 0 ? void 0 : lastState.name) !== (parentState === null || parentState === void 0 ? void 0 : parentState.name)));\n\tif (isSameAsParent) {\n\t\tif (!shouldRerender && lastState && lastState.name === parentState.name) return [false, lastState];\n\t\treturn [shouldRerender, {\n\t\t\t...parentState,\n\t\t\tisNew: false\n\t\t}];\n\t}\n\tif (!name) {\n\t\tvar _ref, _ref1;\n\t\tvar next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {\n\t\t\tid,\n\t\t\tname: \"light\",\n\t\t\ttheme: (0, import_config.getConfig)().themes.light\n\t\t};\n\t\tif (shouldRerender) return [true, { ...parentState || lastState || next }];\n\t\treturn [false, next];\n\t}\n\tvar scheme = getScheme(name);\n\tvar _parentState_inverses;\n\tvar parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;\n\tvar isInverse = Boolean(parentState && scheme !== parentState.scheme);\n\tvar inverses = parentInverses + (isInverse ? 1 : 0);\n\tvar nextState = {\n\t\tid,\n\t\tname,\n\t\ttheme: themes[name],\n\t\tscheme,\n\t\tparentId,\n\t\tparentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,\n\t\tinverses,\n\t\tisInverse,\n\t\tisNew: true\n\t};\n\tif (isRoot) rootThemeState = nextState;\n\tif (pendingUpdate !== \"force\" && lastState && lastState.name === name) return [false, nextState];\n\treturn [!(pendingUpdate !== \"force\" && lastState && !needsUpdate && nextState.name === lastState.name), nextState];\n};\nfunction scheduleUpdate(id) {\n\tvar queue = [id];\n\tvar visited = /* @__PURE__ */ new Set();\n\twhile (queue.length) {\n\t\tvar children = listenersByParent[queue.shift()];\n\t\tif (children) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar childId = _step.value;\n\t\t\t\t\tif (!visited.has(childId)) {\n\t\t\t\t\t\tvisited.add(childId);\n\t\t\t\t\t\tqueue.push(childId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvisited.forEach(function(childId2) {\n\t\tvar _allListeners_get;\n\t\t(_allListeners_get = allListeners.get(childId2)) === null || _allListeners_get === void 0 || _allListeners_get();\n\t});\n}\nvar validSchemes = {\n\tlight: \"light\",\n\tdark: \"dark\"\n};\nfunction getScheme(name) {\n\treturn validSchemes[name.split(\"_\")[0]];\n}\nfunction getNewThemeName() {\n\tvar parentName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", props = arguments.length > 1 ? arguments[1] : void 0, forceUpdate = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n\tvar { name } = props;\n\tvar cacheKey = `${parentName}|${name || \"\"}|${forceUpdate ? 1 : 0}`;\n\tif (themeNameCacheVer !== cacheVersion) {\n\t\tthemeNameCache.clear();\n\t\tthemeNameCacheVer = cacheVersion;\n\t} else {\n\t\tvar cached = themeNameCache.get(cacheKey);\n\t\tif (cached !== void 0) return cached;\n\t}\n\tvar result = resolveThemeName(parentName, name !== null && name !== void 0 ? name : void 0, (0, import_config.getConfig)().themes, forceUpdate);\n\tif (themeNameCache.size >= 1e4) themeNameCache.clear();\n\tthemeNameCache.set(cacheKey, result);\n\treturn result;\n}\nvar getThemeNameCacheSize = function() {\n\treturn themeNameCache.size;\n};\nfunction resolveThemeName(parentName, name, themes2) {\n\tvar forceUpdate = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar parentParts = parentName ? parentName.split(\"_\") : [];\n\tvar found = null;\n\tif (name) {\n\t\tvar nameHasScheme = getScheme(name);\n\t\tif (nameHasScheme && name in themes2) found = name;\n\t\tif (!found && !nameHasScheme) for (var i = parentParts.length; i >= 0; i--) {\n\t\t\tvar base = parentParts.slice(0, i).join(\"_\");\n\t\t\tvar potential = base ? `${base}_${name}` : name;\n\t\t\tif (potential in themes2) {\n\t\t\t\tfound = potential;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!forceUpdate && found === parentName && !validSchemes[found]) return null;\n\treturn found;\n}\nvar getPropsKey = function(param) {\n\tvar { name, forceClassName, _themeUpdate } = param;\n\treturn `${name || \"\"}${forceClassName || \"\"}${(_themeUpdate === null || _themeUpdate === void 0 ? void 0 : _themeUpdate.key) || \"\"}`;\n};\nvar hasThemeUpdatingProps = function(props) {\n\treturn \"name\" in props || \"forceClassName\" in props || \"_themeUpdate\" in props;\n};\n//# sourceMappingURL=useThemeState.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM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AG,cAAc,UAAS,CAAE,CAAC,CAAC,QAAQ,WAAW;CAC9I,IAAI,eAAe,QAAQ,KAAK,eAAe,MAAM;CACrD,eAAe,IAAI,UAAU,MAAM;CACnC,OAAO;AACR;AACA,IAAI,wBAAwB,WAAW;CACtC,OAAO,eAAe;AACvB;AACA,SAAS,iBAAiB,YAAY,MAAM,SAAS;CACpD,IAAI,cAAc,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACnF,IAAI,cAAc,aAAa,WAAW,MAAM,GAAG,IAAI,CAAC;CACxD,IAAI,QAAQ;CACZ,IAAI,MAAM;EACT,IAAI,gBAAgB,UAAU,IAAI;EAClC,IAAI,iBAAiB,QAAQ,SAAS,QAAQ;EAC9C,IAAI,CAAC,SAAS,CAAC,eAAe,KAAK,IAAI,IAAI,YAAY,QAAQ,KAAK,GAAG,KAAK;GAC3E,IAAI,OAAO,YAAY,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;GAC3C,IAAI,YAAY,OAAO,GAAG,KAAK,GAAG,SAAS;GAC3C,IAAI,aAAa,SAAS;IACzB,QAAQ;IACR;GACD;EACD;CACD;CACA,IAAI,CAAC,eAAe,UAAU,cAAc,CAAC,aAAa,QAAQ,OAAO;CACzE,OAAO;AACR;AACA,IAAI,cAAc,SAAS,OAAO;CACjC,IAAI,EAAE,MAAM,gBAAgB,iBAAiB;CAC7C,OAAO,GAAG,QAAQ,KAAK,kBAAkB,MAAM,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,QAAQ;AACjI;AACA,IAAI,wBAAwB,SAAS,OAAO;CAC3C,OAAO,UAAU,SAAS,oBAAoB,SAAS,kBAAkB;AAC1E"}
|
|
1
|
+
{"version":3,"file":"useThemeState.native.js","names":[],"sources":["cjs/hooks/useThemeState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useThemeState_exports = {};\n__export(useThemeState_exports, {\n\tThemeStateContext: () => ThemeStateContext,\n\tforceUpdateThemes: () => forceUpdateThemes,\n\tgetNewThemeName: () => getNewThemeName,\n\tgetRootThemeState: () => getRootThemeState,\n\tgetThemeNameCacheSize: () => getThemeNameCacheSize,\n\tgetThemeProviderChainSizes: () => getThemeProviderChainSizes,\n\tgetThemeProviderParent: () => getThemeProviderParent,\n\tgetThemeState: () => getThemeState,\n\tgetThemeUpdateLayer: () => getThemeUpdateLayer,\n\thasThemeUpdatingProps: () => hasThemeUpdatingProps,\n\tresolveThemeName: () => resolveThemeName,\n\tuseThemeState: () => useThemeState\n});\nmodule.exports = __toCommonJS(useThemeState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_config = require(\"../config\");\nvar import_constants2 = require(\"../constants/constants\");\nvar import_themes = require(\"../helpers/themes\");\nvar ThemeStateContext = (0, import_react.createContext)(\"\");\nvar allListeners = /* @__PURE__ */ new Map();\nvar listenersByParent = {};\nvar HasRenderedOnce = /* @__PURE__ */ new WeakMap();\nvar HadTheme = /* @__PURE__ */ new WeakMap();\nvar PendingUpdate = /* @__PURE__ */ new Map();\nvar states = /* @__PURE__ */ new Map();\nvar shouldForce = false;\nvar forceUpdateThemes = function() {\n\tcacheVersion++;\n\tshouldForce = true;\n\tallListeners.forEach(function(cb) {\n\t\treturn cb();\n\t});\n\tshouldForce = false;\n};\nvar getThemeState = function(id) {\n\treturn states.get(id);\n};\nvar themeUpdateLayers = /* @__PURE__ */ new Map();\nvar themeProviderParents = /* @__PURE__ */ new Map();\nvar getThemeUpdateLayer = function(id) {\n\treturn themeUpdateLayers.get(id);\n};\nvar getThemeProviderParent = function(id) {\n\treturn themeProviderParents.get(id);\n};\nvar getThemeProviderChainSizes = function() {\n\treturn {\n\t\tlayers: themeUpdateLayers.size,\n\t\tparents: themeProviderParents.size\n\t};\n};\nvar registerThemeProviderChain = function(id, parentId, props) {\n\tthemeProviderParents.set(id, parentId);\n\tif (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);\n\telse themeUpdateLayers.delete(id);\n};\nvar cacheVersion = 0;\nvar themeNameCache = /* @__PURE__ */ new Map();\nvar themeNameCacheVer = -1;\nvar themes = null;\nvar rootThemeState = null;\nvar getRootThemeState = function() {\n\treturn rootThemeState;\n};\nvar getThemeBaseName = function(name) {\n\treturn name.replace(/^(light|dark)_/, \"\");\n};\nvar incReducer = function(c) {\n\treturn c + 1;\n};\nvar useThemeState = function(props) {\n\t\"use no memo\";\n\tvar isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar _props__themeUpdate;\n\tvar _ref;\n\tvar { disable } = props;\n\tvar parentId = (0, import_react.useContext)(ThemeStateContext);\n\tif (!parentId && !isRoot) throw new Error(process.env.NODE_ENV === \"development\" ? `${import_constants2.MISSING_THEME_MESSAGE}\n\nLooked for theme${props.name ? ` \"${props.name}\"` : \"\"}, but no parent theme context was found (parentId: ${parentId}).` : import_constants2.MISSING_THEME_MESSAGE);\n\tif (disable) return states.get(parentId) || {\n\t\tid: \"\",\n\t\tname: \"light\",\n\t\ttheme: (0, import_config.getConfig)().themes.light\n\t};\n\tvar id = (0, import_react.useId)();\n\tvar propsKey = `${props.name || \"\"}${props.forceClassName || \"\"}${((_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.key) || \"\"}`;\n\tif (cascadeOnChange) registerThemeProviderChain(id, parentId, props);\n\tvar r = (_ref = (0, import_react.useRef)(null)).current || (_ref.current = {\n\t\tid,\n\t\toptimizeForFirstRender,\n\t\trenderVersion: 0\n\t});\n\tr.props = props;\n\tr.propsKey = propsKey;\n\tr.isRoot = isRoot;\n\tr.keys = keys;\n\tr.schemeKeys = schemeKeys;\n\tr.parentId = parentId;\n\tr.renderVersion++;\n\tvar [, forceUpdate] = (0, import_react.useReducer)(incReducer, 0);\n\tvar state = getSnapshotImpl(r);\n\tr.lastSnap = state;\n\t(0, import_react.useEffect)(function() {\n\t\tvar renderVersion = r.renderVersion;\n\t\tif (r.lastSnap && !states.has(r.id)) {\n\t\t\tstates.set(r.id, r.lastSnap);\n\t\t\tr.state = r.lastSnap;\n\t\t}\n\t\tif (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);\n\t\tif (r.unsubscribe && r.subscribedTo !== r.parentId) {\n\t\t\tvar _r_unsubscribe;\n\t\t\t(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);\n\t\t}\n\t\tif (shouldSubscribeToTheme(r, cascadeOnChange)) {\n\t\t\tif (!r.unsubscribe) {\n\t\t\t\tvar _listenersByParent, _pid;\n\t\t\t\tvar pid = r.parentId;\n\t\t\t\tvar sid = r.id;\n\t\t\t\tvar cb = function(forced) {\n\t\t\t\t\tvar next = getSnapshotImpl(r);\n\t\t\t\t\tif (next !== r.lastSnap) {\n\t\t\t\t\t\tvar _r_props_nativeUpdate, _r_props;\n\t\t\t\t\t\tr.lastSnap = next;\n\t\t\t\t\t\tif (!forced && ((_r_props_nativeUpdate = (_r_props = r.props).nativeUpdate) === null || _r_props_nativeUpdate === void 0 ? void 0 : _r_props_nativeUpdate.call(_r_props, next))) return;\n\t\t\t\t\t\tforceUpdate();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t((_listenersByParent = listenersByParent)[_pid = pid] || (_listenersByParent[_pid] = /* @__PURE__ */ new Set())).add(sid);\n\t\t\t\tallListeners.set(sid, function() {\n\t\t\t\t\tvar forced = shouldForce;\n\t\t\t\t\tPendingUpdate.set(sid, forced ? \"force\" : true);\n\t\t\t\t\tcb(forced);\n\t\t\t\t});\n\t\t\t\tr.subscribedTo = pid;\n\t\t\t\tr.unsubscribe = function() {\n\t\t\t\t\tvar _listenersByParent_pid;\n\t\t\t\t\tallListeners.delete(sid);\n\t\t\t\t\t(_listenersByParent_pid = listenersByParent[pid]) === null || _listenersByParent_pid === void 0 || _listenersByParent_pid.delete(sid);\n\t\t\t\t\tr.state = void 0;\n\t\t\t\t\tstates.delete(sid);\n\t\t\t\t\tPendingUpdate.delete(sid);\n\t\t\t\t\tr.unsubscribe = void 0;\n\t\t\t\t\tr.subscribedTo = void 0;\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (r.unsubscribe) {\n\t\t\tvar _r_unsubscribe1;\n\t\t\t(_r_unsubscribe1 = r.unsubscribe) === null || _r_unsubscribe1 === void 0 || _r_unsubscribe1.call(r);\n\t\t}\n\t\treturn function() {\n\t\t\tif (r.renderVersion === renderVersion) cleanupThemeState(r);\n\t\t};\n\t});\n\tif (cascadeOnChange) (0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (!HasRenderedOnce.get(keys)) {\n\t\t\tHasRenderedOnce.set(keys, true);\n\t\t\treturn;\n\t\t}\n\t\tif (!propsKey) {\n\t\t\tif (HadTheme.get(keys)) scheduleUpdate(id);\n\t\t\tHadTheme.set(keys, false);\n\t\t\treturn;\n\t\t}\n\t\tscheduleUpdate(id);\n\t\tHadTheme.set(keys, true);\n\t}, [keys, propsKey]);\n\treturn state;\n};\nvar shouldSubscribeToTheme = function(r, cascadeOnChange) {\n\tvar _r_keys_current, _r_props_needsUpdate, _r_props;\n\treturn Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));\n};\nfunction cleanupThemeState(r) {\n\tif (r.unsubscribe) r.unsubscribe();\n\telse {\n\t\tr.state = void 0;\n\t\tstates.delete(r.id);\n\t\tPendingUpdate.delete(r.id);\n\t}\n\tthemeUpdateLayers.delete(r.id);\n\tthemeProviderParents.delete(r.id);\n}\nvar getSnapshotImpl = function(r) {\n\tvar _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;\n\tvar { id, parentId, props, propsKey, isRoot, keys, optimizeForFirstRender } = r;\n\tvar schemeKeys = r.schemeKeys;\n\tvar local = r.state;\n\tvar parentState = states.get(parentId);\n\tif (local && !PendingUpdate.has(id)) {\n\t\tif (parentState && local._parentName === parentState.name && local._parentSchemeAuthored === parentState.schemeAuthored && local._propsKey === propsKey) return local;\n\t}\n\tvar isSchemeOnlyChange = !optimizeForFirstRender && import_constants.supportsDynamicColorIOS && (0, import_config.getSetting)(\"fastSchemeChange\") && local && parentState && local.scheme !== parentState.scheme && getThemeBaseName(local.name) === getThemeBaseName(parentState.name);\n\tvar canSkipForSchemeChange = Boolean(isSchemeOnlyChange && ((_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) && (schemeKeys === null || schemeKeys === void 0 ? void 0 : (_schemeKeys_current = schemeKeys.current) === null || _schemeKeys_current === void 0 ? void 0 : _schemeKeys_current.size) === keys.current.size);\n\tvar needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.forceClassName || props.name === \"light\" || props.name === \"dark\" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);\n\tvar [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));\n\tvar next = nextRaw;\n\tif (props._themeUpdate && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {\n\t\tvar _states_get;\n\t\tvar parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;\n\t\tvar merged = props._themeUpdate.getTheme(parentTheme, nextRaw.name, (0, import_config.getConfig)());\n\t\tif (merged !== nextRaw.theme) next = {\n\t\t\t...nextRaw,\n\t\t\ttheme: merged\n\t\t};\n\t}\n\tPendingUpdate.delete(id);\n\tif (!local || rerender) {\n\t\tlocal = { ...next };\n\t\tr.state = local;\n\t}\n\tif (next !== local) {\n\t\tObject.assign(local, next);\n\t\tlocal.id = id;\n\t}\n\tlocal._parentName = parentState === null || parentState === void 0 ? void 0 : parentState.name;\n\tlocal._parentSchemeAuthored = parentState === null || parentState === void 0 ? void 0 : parentState.schemeAuthored;\n\tlocal._propsKey = propsKey;\n\tstates.set(id, next);\n\treturn local;\n};\nvar getNextState = function(lastState, props, propsKey) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;\n\tvar parentState = states.get(parentId);\n\tif (props.passThrough) return [false, parentState || lastState || { name: \"\" }];\n\tthemes || (themes = (0, import_config.getConfig)().themes);\n\tvar name = !propsKey && (!lastState || !lastState.isNew) ? null : getNewThemeName(parentState === null || parentState === void 0 ? void 0 : parentState.name, props, pendingUpdate === \"force\" ? true : !!needsUpdate);\n\tvar authoredName = props.name;\n\tvar parentSchemeAuthored = !!(parentState === null || parentState === void 0 ? void 0 : parentState.schemeAuthored);\n\tvar schemeAuthored = isRoot ? !!props.forceClassName : parentSchemeAuthored || !!(authoredName && (0, import_helpers.getThemeScheme)(authoredName) && authoredName in themes);\n\tvar intentChanged = schemeAuthored !== parentSchemeAuthored;\n\tvar resolvedName = name || (parentState === null || parentState === void 0 ? void 0 : parentState.name);\n\tvar sameAsLast = lastState && lastState.name === resolvedName && !!lastState.schemeAuthored === schemeAuthored;\n\tvar isSameAsParent = Boolean(parentState && resolvedName === parentState.name && !intentChanged);\n\tvar shouldRerender = Boolean(pendingUpdate === \"force\" || needsUpdate && (pendingUpdate || (lastState === null || lastState === void 0 ? void 0 : lastState.name) !== (parentState === null || parentState === void 0 ? void 0 : parentState.name) || !!(lastState === null || lastState === void 0 ? void 0 : lastState.schemeAuthored) !== schemeAuthored));\n\tif (isSameAsParent) {\n\t\tif (!shouldRerender && sameAsLast) return [false, lastState];\n\t\treturn [shouldRerender, {\n\t\t\t...parentState,\n\t\t\tisNew: false\n\t\t}];\n\t}\n\tif (!resolvedName) {\n\t\tvar _ref, _ref1;\n\t\tvar next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {\n\t\t\tid,\n\t\t\tname: \"light\",\n\t\t\ttheme: (0, import_config.getConfig)().themes.light\n\t\t};\n\t\tif (shouldRerender) return [true, { ...parentState || lastState || next }];\n\t\treturn [false, next];\n\t}\n\tvar scheme = (0, import_themes.getAuthoredThemeScheme)(themes[resolvedName]) || (0, import_helpers.getThemeScheme)(resolvedName);\n\tvar _parentState_inverses;\n\tvar parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;\n\tvar isInverse = Boolean(parentState && scheme !== parentState.scheme);\n\tvar inverses = parentInverses + (isInverse ? 1 : 0);\n\tvar nextState = {\n\t\tid,\n\t\tname: resolvedName,\n\t\ttheme: themes[resolvedName],\n\t\tscheme,\n\t\tparentId,\n\t\tparentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,\n\t\tinverses,\n\t\tisInverse,\n\t\tschemeAuthored,\n\t\tisNew: true\n\t};\n\tif (isRoot) rootThemeState = nextState;\n\treturn [pendingUpdate === \"force\" || !sameAsLast, nextState];\n};\nfunction scheduleUpdate(id) {\n\tvar queue = [id];\n\tvar visited = /* @__PURE__ */ new Set();\n\twhile (queue.length) {\n\t\tvar children = listenersByParent[queue.shift()];\n\t\tif (children) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar childId = _step.value;\n\t\t\t\t\tif (!visited.has(childId)) {\n\t\t\t\t\t\tvisited.add(childId);\n\t\t\t\t\t\tqueue.push(childId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvisited.forEach(function(childId2) {\n\t\tvar _allListeners_get;\n\t\t(_allListeners_get = allListeners.get(childId2)) === null || _allListeners_get === void 0 || _allListeners_get();\n\t});\n}\nfunction getNewThemeName() {\n\tvar parentName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", props = arguments.length > 1 ? arguments[1] : void 0, forceUpdate = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n\tvar { name } = props;\n\tvar cacheKey = `${parentName}|${name || \"\"}|${forceUpdate ? 1 : 0}`;\n\tif (themeNameCacheVer !== cacheVersion) {\n\t\tthemeNameCache.clear();\n\t\tthemeNameCacheVer = cacheVersion;\n\t} else {\n\t\tvar cached = themeNameCache.get(cacheKey);\n\t\tif (cached !== void 0) return cached;\n\t}\n\tvar result = resolveThemeName(parentName, name !== null && name !== void 0 ? name : void 0, (0, import_config.getConfig)().themes, forceUpdate);\n\tif (themeNameCache.size >= 1e4) themeNameCache.clear();\n\tthemeNameCache.set(cacheKey, result);\n\treturn result;\n}\nvar getThemeNameCacheSize = function() {\n\treturn themeNameCache.size;\n};\nfunction resolveThemeName(parentName, name, themes2) {\n\tvar forceUpdate = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar parentParts = parentName ? parentName.split(\"_\") : [];\n\tvar found = null;\n\tif (name) {\n\t\tvar nameHasScheme = (0, import_helpers.getThemeScheme)(name);\n\t\tif (nameHasScheme && name in themes2) found = name;\n\t\tif (!found && !nameHasScheme) for (var i = parentParts.length; i >= 0; i--) {\n\t\t\tvar base = parentParts.slice(0, i).join(\"_\");\n\t\t\tvar potential = base ? `${base}_${name}` : name;\n\t\t\tif (potential in themes2) {\n\t\t\t\tfound = potential;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!forceUpdate && found === parentName && found !== \"light\" && found !== \"dark\") return null;\n\treturn found;\n}\nvar hasThemeUpdatingProps = function(props) {\n\treturn \"name\" in props || \"forceClassName\" in props || \"_themeUpdate\" in props;\n};\n//# sourceMappingURL=useThemeState.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oB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AAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACnF,IAAI,cAAc,aAAa,WAAW,MAAM,GAAG,IAAI,CAAC;CACxD,IAAI,QAAQ;CACZ,IAAI,MAAM;EACT,IAAI,iBAAiB,GAAG,eAAe,eAAc,CAAE,IAAI;EAC3D,IAAI,iBAAiB,QAAQ,SAAS,QAAQ;EAC9C,IAAI,CAAC,SAAS,CAAC,eAAe,KAAK,IAAI,IAAI,YAAY,QAAQ,KAAK,GAAG,KAAK;GAC3E,IAAI,OAAO,YAAY,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;GAC3C,IAAI,YAAY,OAAO,GAAG,KAAK,GAAG,SAAS;GAC3C,IAAI,aAAa,SAAS;IACzB,QAAQ;IACR;GACD;EACD;CACD;CACA,IAAI,CAAC,eAAe,UAAU,cAAc,UAAU,WAAW,UAAU,QAAQ,OAAO;CAC1F,OAAO;AACR;AACA,IAAI,wBAAwB,SAAS,OAAO;CAC3C,OAAO,UAAU,SAAS,oBAAoB,SAAS,kBAAkB;AAC1E"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -63,6 +63,8 @@ __export(index_exports, {
|
|
|
63
63
|
createVariable: () => import_createVariable.createVariable,
|
|
64
64
|
cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
|
|
65
65
|
currentPlatform: () => import_constants.currentPlatform,
|
|
66
|
+
defaultSizing: () => import_resolveSizing.defaultSizing,
|
|
67
|
+
fluid: () => import_fluid.fluid,
|
|
66
68
|
forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
|
|
67
69
|
formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,
|
|
68
70
|
getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,
|
|
@@ -125,6 +127,8 @@ __export(index_exports, {
|
|
|
125
127
|
px: () => import_createVariable.px,
|
|
126
128
|
removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,
|
|
127
129
|
reservedThemeProps: () => import_helpers.reservedThemeProps,
|
|
130
|
+
resolveSizing: () => import_resolveSizing.resolveSizing,
|
|
131
|
+
resolveTextMetrics: () => import_nativeTextMetrics.resolveTextMetrics,
|
|
128
132
|
resolveThemeName: () => import_useThemeState.resolveThemeName,
|
|
129
133
|
setConfig: () => import_config.setConfig,
|
|
130
134
|
setMediaState: () => import_mediaState.setMediaState,
|
|
@@ -207,9 +211,12 @@ var import_mergeSlotStyleProps = require("./helpers/mergeSlotStyleProps.cjs");
|
|
|
207
211
|
var import_splitStyleProps = require("./helpers/splitStyleProps.cjs");
|
|
208
212
|
var import_normalizeColor = require("./helpers/normalizeColor.cjs");
|
|
209
213
|
var import_normalizeStyle = require("./helpers/normalizeStyle.cjs");
|
|
214
|
+
var import_nativeTextMetrics = require("./helpers/nativeTextMetrics.cjs");
|
|
215
|
+
var import_resolveSizing = require("./helpers/resolveSizing.cjs");
|
|
210
216
|
var import_themeRef = require("./helpers/themeRef.cjs");
|
|
211
217
|
var import_wrapStyleTags = require("./helpers/wrapStyleTags.cjs");
|
|
212
218
|
var import_createFont = require("./createFont.cjs");
|
|
219
|
+
var import_fluid = require("./helpers/fluid.cjs");
|
|
213
220
|
var import_eventDetails = require("./eventDetails.cjs");
|
|
214
221
|
var import_createStyledHOC = require("./createStyledHOC.cjs");
|
|
215
222
|
var import_createShorthands = require("./createShorthands.cjs");
|
|
@@ -65,6 +65,8 @@ __export(index_exports, {
|
|
|
65
65
|
createVariable: () => import_createVariable.createVariable,
|
|
66
66
|
cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
|
|
67
67
|
currentPlatform: () => import_constants.currentPlatform,
|
|
68
|
+
defaultSizing: () => import_resolveSizing.defaultSizing,
|
|
69
|
+
fluid: () => import_fluid.fluid,
|
|
68
70
|
forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
|
|
69
71
|
formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,
|
|
70
72
|
getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,
|
|
@@ -127,6 +129,8 @@ __export(index_exports, {
|
|
|
127
129
|
px: () => import_createVariable.px,
|
|
128
130
|
removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,
|
|
129
131
|
reservedThemeProps: () => import_helpers.reservedThemeProps,
|
|
132
|
+
resolveSizing: () => import_resolveSizing.resolveSizing,
|
|
133
|
+
resolveTextMetrics: () => import_nativeTextMetrics.resolveTextMetrics,
|
|
130
134
|
resolveThemeName: () => import_useThemeState.resolveThemeName,
|
|
131
135
|
setConfig: () => import_config.setConfig,
|
|
132
136
|
setMediaState: () => import_mediaState.setMediaState,
|
|
@@ -209,9 +213,12 @@ var import_mergeSlotStyleProps = require("./helpers/mergeSlotStyleProps.native.j
|
|
|
209
213
|
var import_splitStyleProps = require("./helpers/splitStyleProps.native.js");
|
|
210
214
|
var import_normalizeColor = require("./helpers/normalizeColor.native.js");
|
|
211
215
|
var import_normalizeStyle = require("./helpers/normalizeStyle.native.js");
|
|
216
|
+
var import_nativeTextMetrics = require("./helpers/nativeTextMetrics.native.js");
|
|
217
|
+
var import_resolveSizing = require("./helpers/resolveSizing.native.js");
|
|
212
218
|
var import_themeRef = require("./helpers/themeRef.native.js");
|
|
213
219
|
var import_wrapStyleTags = require("./helpers/wrapStyleTags.native.js");
|
|
214
220
|
var import_createFont = require("./createFont.native.js");
|
|
221
|
+
var import_fluid = require("./helpers/fluid.native.js");
|
|
215
222
|
var import_eventDetails = require("./eventDetails.native.js");
|
|
216
223
|
var import_createStyledHOC = require("./createStyledHOC.native.js");
|
|
217
224
|
var import_createShorthands = require("./createShorthands.native.js");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -65,6 +65,8 @@ __export(index_exports, {
|
|
|
65
65
|
createVariable: () => import_createVariable.createVariable,
|
|
66
66
|
cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
|
|
67
67
|
currentPlatform: () => import_constants.currentPlatform,
|
|
68
|
+
defaultSizing: () => import_resolveSizing.defaultSizing,
|
|
69
|
+
fluid: () => import_fluid.fluid,
|
|
68
70
|
forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
|
|
69
71
|
formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,
|
|
70
72
|
getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,
|
|
@@ -127,6 +129,8 @@ __export(index_exports, {
|
|
|
127
129
|
px: () => import_createVariable.px,
|
|
128
130
|
removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,
|
|
129
131
|
reservedThemeProps: () => import_helpers.reservedThemeProps,
|
|
132
|
+
resolveSizing: () => import_resolveSizing.resolveSizing,
|
|
133
|
+
resolveTextMetrics: () => import_nativeTextMetrics.resolveTextMetrics,
|
|
130
134
|
resolveThemeName: () => import_useThemeState.resolveThemeName,
|
|
131
135
|
setConfig: () => import_config.setConfig,
|
|
132
136
|
setMediaState: () => import_mediaState.setMediaState,
|
|
@@ -209,9 +213,12 @@ var import_mergeSlotStyleProps = require("./helpers/mergeSlotStyleProps.native.j
|
|
|
209
213
|
var import_splitStyleProps = require("./helpers/splitStyleProps.native.js");
|
|
210
214
|
var import_normalizeColor = require("./helpers/normalizeColor.native.js");
|
|
211
215
|
var import_normalizeStyle = require("./helpers/normalizeStyle.native.js");
|
|
216
|
+
var import_nativeTextMetrics = require("./helpers/nativeTextMetrics.native.js");
|
|
217
|
+
var import_resolveSizing = require("./helpers/resolveSizing.native.js");
|
|
212
218
|
var import_themeRef = require("./helpers/themeRef.native.js");
|
|
213
219
|
var import_wrapStyleTags = require("./helpers/wrapStyleTags.native.js");
|
|
214
220
|
var import_createFont = require("./createFont.native.js");
|
|
221
|
+
var import_fluid = require("./helpers/fluid.native.js");
|
|
215
222
|
var import_eventDetails = require("./eventDetails.native.js");
|
|
216
223
|
var import_createStyledHOC = require("./createStyledHOC.native.js");
|
|
217
224
|
var import_createShorthands = require("./createShorthands.native.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n ClientOnly: () => import_use_did_finish_ssr.ClientOnly,\n ClientOnlyContext: () => import_use_did_finish_ssr.ClientOnlyContext,\n ComponentContext: () => import_ComponentContext.ComponentContext,\n Configuration: () => import_Configuration.Configuration,\n FontLanguage: () => import_FontLanguage.FontLanguage,\n GroupContext: () => import_GroupContext.GroupContext,\n Slot: () => import_Slot.Slot,\n Slottable: () => import_Slot.Slottable,\n StyleObjectIdentifier: () => import_helpers.StyleObjectIdentifier,\n StyleObjectProperty: () => import_helpers.StyleObjectProperty,\n StyleObjectPseudo: () => import_helpers.StyleObjectPseudo,\n StyleObjectRules: () => import_helpers.StyleObjectRules,\n StyleObjectValue: () => import_helpers.StyleObjectValue,\n Tamagui: () => import_Tamagui.Tamagui,\n TamaguiProvider: () => import_TamaguiProvider.TamaguiProvider,\n TamaguiRoot: () => import_TamaguiRoot.TamaguiRoot,\n Text: () => import_Text.Text,\n Theme: () => import_Theme.Theme,\n ThemeProvider: () => import_ThemeProvider.ThemeProvider,\n View: () => import_View.View,\n _disableMediaTouch: () => import_useMedia._disableMediaTouch,\n _mediaListenerStats: () => import_useMedia._mediaListenerStats,\n _withNativeStyle: () => import_withNativeStyle._withNativeStyle,\n _withStableStyle: () => import_withStableStyle._withStableStyle,\n autoVariables: () => import_registerCSSVariable.autoVariables,\n clamp: () => import_helpers.clamp,\n composeEventHandlers: () => import_helpers.composeEventHandlers,\n composeRefs: () => import_compose_refs.composeRefs,\n configureMedia: () => import_useMedia.configureMedia,\n containsThemeRef: () => import_themeRef.containsThemeRef,\n createCSSVariable: () => import_createVariable.createCSSVariable,\n createChangeEventDetails: () => import_eventDetails.createChangeEventDetails,\n createComponent: () => import_createComponent.createComponent,\n createFont: () => import_createFont.createFont,\n createRefComponent: () => import_compose_refs.createRefComponent,\n createShorthands: () => import_createShorthands.createShorthands,\n createStyledContext: () => import_createStyledContext.createStyledContext,\n createStyledHOC: () => import_createStyledHOC.createStyledHOC,\n createTamagui: () => import_createTamagui.createTamagui,\n createTokens: () => import_createTokens.createTokens,\n createVariable: () => import_createVariable.createVariable,\n cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,\n currentPlatform: () => import_constants.currentPlatform,\n forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,\n formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,\n getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,\n getCSSStylesAtomic: () => import_getCSSStylesAtomic.getCSSStylesAtomic,\n getConfig: () => import_config.getConfig,\n getExpandedShorthand: () => import_getExpandedShorthands.getExpandedShorthand,\n getMedia: () => import_mediaState.getMedia,\n getMutatedAutoVariableCSS: () => import_registerCSSVariable.getMutatedAutoVariableCSS,\n getNativeStyleEngine: () => import_nativeStyleEngine.getNativeStyleEngine,\n getPlatformDriver: () => import_constants.getPlatformDriver,\n getSetting: () => import_config.getSetting,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getStyleCompat: () => import_config.getStyleCompat,\n getStyleStaticConfig: () => import_getSplitStyles.getStyleStaticConfig,\n getStyleTags: () => import_wrapStyleTags.getStyleTags,\n getThemeClassNames: () => import_helpers.getThemeClassNames,\n getThemeProviderChainSizes: () => import_useThemeState.getThemeProviderChainSizes,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n getVariable: () => import_createVariable.getVariable,\n getVariableValue: () => import_createVariable.getVariableValue,\n hooks: () => import_setupHooks.hooks,\n html: () => import_html.html,\n insertFont: () => import_insertFont.insertFont,\n insertStyleRules: () => import_insertStyleRule.insertStyleRules,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n isAndroid: () => import_constants.isAndroid,\n isBrowser: () => import_constants.isBrowser,\n isChrome: () => import_constants.isChrome,\n isClient: () => import_constants.isClient,\n isEqualShallow: () => import_is_equal_shallow.isEqualShallow,\n isIos: () => import_constants.isIos,\n isNativeDesktop: () => import_constants.isNativeDesktop,\n isServer: () => import_constants.isServer,\n isTV: () => import_constants.isTV,\n isTamaguiComponent: () => import_isTamaguiComponent.isTamaguiComponent,\n isTamaguiElement: () => import_isTamaguiElement.isTamaguiElement,\n isTouchable: () => import_constants.isTouchable,\n isValidStyleKey: () => import_getSplitStyles.isValidStyleKey,\n isVariable: () => import_createVariable.isVariable,\n isWeb: () => import_constants.isWeb,\n isWebTouchable: () => import_constants.isWebTouchable,\n loadAnimationDriver: () => import_config.loadAnimationDriver,\n matchMedia: () => import_matchMedia.matchMedia,\n mediaKeyMatch: () => import_useMedia.mediaKeyMatch,\n mediaObjectToString: () => import_mediaObjectToString.mediaObjectToString,\n mediaQueryConfig: () => import_mediaState.mediaQueryConfig,\n mediaState: () => import_mediaState.mediaState,\n mergeIfNotShallowEqual: () => import_is_equal_shallow.mergeIfNotShallowEqual,\n mergeProps: () => import_mergeProps.mergeProps,\n mergeSlotStyleProps: () => import_mergeSlotStyleProps.mergeSlotStyleProps,\n mutatedAutoVariables: () => import_registerCSSVariable.mutatedAutoVariables,\n nonAnimatableStyleProps: () => import_helpers.nonAnimatableStyleProps,\n nonAnimatableWebTextProps: () => import_helpers.nonAnimatableWebTextProps,\n nonAnimatableWebViewProps: () => import_helpers.nonAnimatableWebViewProps,\n normalizeColor: () => import_normalizeColor.normalizeColor,\n normalizeStyle: () => import_normalizeStyle.normalizeStyle,\n px: () => import_createVariable.px,\n removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,\n reservedThemeProps: () => import_helpers.reservedThemeProps,\n resolveThemeName: () => import_useThemeState.resolveThemeName,\n setConfig: () => import_config.setConfig,\n setMediaState: () => import_mediaState.setMediaState,\n setNativeStyleEngine: () => import_nativeStyleEngine.setNativeStyleEngine,\n setNativeStyleEngineFlushListener: () => import_nativeStyleEngine.setNativeStyleEngineFlushListener,\n setNonce: () => import_insertStyleRule2.setNonce,\n setRef: () => import_compose_refs.setRef,\n setupDev: () => import_config.setupDev,\n setupHooks: () => import_setupHooks.setupHooks,\n setupMatchMedia: () => import_matchMedia.setupMatchMedia,\n setupPlatformDriver: () => import_constants.setupPlatformDriver,\n shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,\n simpleHash: () => import_helpers.simpleHash,\n splitStyleProps: () => import_splitStyleProps.splitStyleProps,\n style: () => import_style.style,\n stylePieceSymbol: () => import_types.stylePieceSymbol,\n stylePropsAll: () => import_helpers.stylePropsAll,\n stylePropsInput: () => import_helpers.stylePropsInput,\n stylePropsText: () => import_helpers.stylePropsText,\n stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,\n stylePropsTransform: () => import_helpers.stylePropsTransform,\n stylePropsUnitless: () => import_helpers.stylePropsUnitless,\n stylePropsView: () => import_helpers.stylePropsView,\n styled: () => import_styled.styled,\n supportsDynamicColorIOS: () => import_constants.supportsDynamicColorIOS,\n textStaticConfig: () => import_Text.textStaticConfig,\n themeRefKey: () => import_themeRef.themeRefKey,\n tokenCategories: () => import_helpers.tokenCategories,\n updateConfig: () => import_config.updateConfig,\n updateFont: () => import_insertFont.updateFont,\n updateMediaListeners: () => import_useMedia.updateMediaListeners,\n updateNativeStyleScope: () => import_nativeStyleEngine.updateNativeStyleScope,\n useAnimatedNumber: () => import_useAnimationDriver.useAnimatedNumber,\n useAnimatedNumberReaction: () => import_useAnimationDriver.useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => import_useAnimationDriver.useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => import_useAnimationDriver.useAnimatedNumbersStyle,\n useAnimationDriver: () => import_useAnimationDriver.useAnimationDriver,\n useClientValue: () => import_use_did_finish_ssr.useClientValue,\n useComposedRefs: () => import_compose_refs.useComposedRefs,\n useConfiguration: () => import_ComponentContext.useConfiguration,\n useCreateShallowSetState: () => import_is_equal_shallow.useCreateShallowSetState,\n useDidFinishSSR: () => import_use_did_finish_ssr.useDidFinishSSR,\n useEvent: () => import_use_event.useEvent,\n useGet: () => import_use_event.useGet,\n useIsClientOnly: () => import_use_did_finish_ssr.useIsClientOnly,\n useIsTouchDevice: () => import_useIsTouchDevice.useIsTouchDevice,\n useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,\n useMedia: () => import_useMedia.useMedia,\n usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,\n useStyle: () => import_useStyle.useStyle,\n useTheme: () => import_useTheme.useTheme,\n useThemeName: () => import_useThemeName.useThemeName,\n validStyles: () => import_helpers.validStyles,\n variableToString: () => import_createVariable.variableToString,\n viewStaticConfig: () => import_View.viewStaticConfig,\n webOnlyStylePropsText: () => import_helpers.webOnlyStylePropsText,\n webOnlyStylePropsView: () => import_helpers.webOnlyStylePropsView,\n withStaticProperties: () => import_helpers.withStaticProperties\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_ComponentContext = require(\"./contexts/ComponentContext\");\nvar import_GroupContext = require(\"./contexts/GroupContext\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_withStableStyle = require(\"./_withStableStyle\");\nvar import_withNativeStyle = require(\"./_withNativeStyle\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createStyledContext = require(\"./helpers/createStyledContext\");\nvar import_getCSSStylesAtomic = require(\"./helpers/getCSSStylesAtomic\");\nvar import_getExpandedShorthands = require(\"./helpers/getExpandedShorthands\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_nativeStyleEngine = require(\"./helpers/nativeStyleEngine\");\nvar import_registerCSSVariable = require(\"./helpers/registerCSSVariable\");\nvar import_insertStyleRule = require(\"./helpers/insertStyleRule\");\nvar import_isTamaguiComponent = require(\"./helpers/isTamaguiComponent\");\nvar import_isTamaguiElement = require(\"./helpers/isTamaguiElement\");\nvar import_matchMedia = require(\"./helpers/matchMedia\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nvar import_mergeSlotStyleProps = require(\"./helpers/mergeSlotStyleProps\");\nvar import_splitStyleProps = require(\"./helpers/splitStyleProps\");\nvar import_normalizeColor = require(\"./helpers/normalizeColor\");\nvar import_normalizeStyle = require(\"./helpers/normalizeStyle\");\nvar import_themeRef = require(\"./helpers/themeRef\");\nvar import_wrapStyleTags = require(\"./helpers/wrapStyleTags\");\nvar import_createFont = require(\"./createFont\");\nvar import_eventDetails = require(\"./eventDetails\");\nvar import_createStyledHOC = require(\"./createStyledHOC\");\nvar import_createShorthands = require(\"./createShorthands\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_createTokens = require(\"./createTokens\");\nvar import_createVariable = require(\"./createVariable\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_styled = require(\"./styled\");\nvar import_style = require(\"./style\");\nvar import_useStyle = require(\"./hooks/useStyle\");\nvar import_Tamagui = require(\"./Tamagui\");\nvar import_types = require(\"./types\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_config = require(\"./config\");\nvar import_insertStyleRule2 = require(\"./helpers/insertStyleRule\");\nvar import_useIsTouchDevice = require(\"./hooks/useIsTouchDevice\");\nvar import_useMedia = require(\"./hooks/useMedia\");\nvar import_mediaObjectToString = require(\"./helpers/mediaObjectToString\");\nvar import_mediaState = require(\"./helpers/mediaState\");\nvar import_useAnimationDriver = require(\"./hooks/useAnimationDriver\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_usePortalThemeState = require(\"./hooks/usePortalThemeState\");\nvar import_useThemeName = require(\"./hooks/useThemeName\");\nvar import_useThemeState = require(\"./hooks/useThemeState\");\nvar import_html = require(\"./dom/html\");\nvar import_Configuration = require(\"./views/Configuration\");\nvar import_TamaguiRoot = require(\"./views/TamaguiRoot\");\nvar import_FontLanguage = require(\"./views/FontLanguage\");\nvar import_Slot = require(\"./views/Slot\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_Theme = require(\"./views/Theme\");\nvar import_ThemeProvider = require(\"./views/ThemeProvider\");\nvar import_View = require(\"./views/View\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_use_event = require(\"@tamagui/use-event\");\nvar import_setupHooks = require(\"./setupHooks\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;A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cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n ClientOnly: () => import_use_did_finish_ssr.ClientOnly,\n ClientOnlyContext: () => import_use_did_finish_ssr.ClientOnlyContext,\n ComponentContext: () => import_ComponentContext.ComponentContext,\n Configuration: () => import_Configuration.Configuration,\n FontLanguage: () => import_FontLanguage.FontLanguage,\n GroupContext: () => import_GroupContext.GroupContext,\n Slot: () => import_Slot.Slot,\n Slottable: () => import_Slot.Slottable,\n StyleObjectIdentifier: () => import_helpers.StyleObjectIdentifier,\n StyleObjectProperty: () => import_helpers.StyleObjectProperty,\n StyleObjectPseudo: () => import_helpers.StyleObjectPseudo,\n StyleObjectRules: () => import_helpers.StyleObjectRules,\n StyleObjectValue: () => import_helpers.StyleObjectValue,\n Tamagui: () => import_Tamagui.Tamagui,\n TamaguiProvider: () => import_TamaguiProvider.TamaguiProvider,\n TamaguiRoot: () => import_TamaguiRoot.TamaguiRoot,\n Text: () => import_Text.Text,\n Theme: () => import_Theme.Theme,\n ThemeProvider: () => import_ThemeProvider.ThemeProvider,\n View: () => import_View.View,\n _disableMediaTouch: () => import_useMedia._disableMediaTouch,\n _mediaListenerStats: () => import_useMedia._mediaListenerStats,\n _withNativeStyle: () => import_withNativeStyle._withNativeStyle,\n _withStableStyle: () => import_withStableStyle._withStableStyle,\n autoVariables: () => import_registerCSSVariable.autoVariables,\n clamp: () => import_helpers.clamp,\n composeEventHandlers: () => import_helpers.composeEventHandlers,\n composeRefs: () => import_compose_refs.composeRefs,\n configureMedia: () => import_useMedia.configureMedia,\n containsThemeRef: () => import_themeRef.containsThemeRef,\n createCSSVariable: () => import_createVariable.createCSSVariable,\n createChangeEventDetails: () => import_eventDetails.createChangeEventDetails,\n createComponent: () => import_createComponent.createComponent,\n createFont: () => import_createFont.createFont,\n createRefComponent: () => import_compose_refs.createRefComponent,\n createShorthands: () => import_createShorthands.createShorthands,\n createStyledContext: () => import_createStyledContext.createStyledContext,\n createStyledHOC: () => import_createStyledHOC.createStyledHOC,\n createTamagui: () => import_createTamagui.createTamagui,\n createTokens: () => import_createTokens.createTokens,\n createVariable: () => import_createVariable.createVariable,\n cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,\n currentPlatform: () => import_constants.currentPlatform,\n defaultSizing: () => import_resolveSizing.defaultSizing,\n fluid: () => import_fluid.fluid,\n forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,\n formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,\n getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,\n getCSSStylesAtomic: () => import_getCSSStylesAtomic.getCSSStylesAtomic,\n getConfig: () => import_config.getConfig,\n getExpandedShorthand: () => import_getExpandedShorthands.getExpandedShorthand,\n getMedia: () => import_mediaState.getMedia,\n getMutatedAutoVariableCSS: () => import_registerCSSVariable.getMutatedAutoVariableCSS,\n getNativeStyleEngine: () => import_nativeStyleEngine.getNativeStyleEngine,\n getPlatformDriver: () => import_constants.getPlatformDriver,\n getSetting: () => import_config.getSetting,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getStyleCompat: () => import_config.getStyleCompat,\n getStyleStaticConfig: () => import_getSplitStyles.getStyleStaticConfig,\n getStyleTags: () => import_wrapStyleTags.getStyleTags,\n getThemeClassNames: () => import_helpers.getThemeClassNames,\n getThemeProviderChainSizes: () => import_useThemeState.getThemeProviderChainSizes,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n getVariable: () => import_createVariable.getVariable,\n getVariableValue: () => import_createVariable.getVariableValue,\n hooks: () => import_setupHooks.hooks,\n html: () => import_html.html,\n insertFont: () => import_insertFont.insertFont,\n insertStyleRules: () => import_insertStyleRule.insertStyleRules,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n isAndroid: () => import_constants.isAndroid,\n isBrowser: () => import_constants.isBrowser,\n isChrome: () => import_constants.isChrome,\n isClient: () => import_constants.isClient,\n isEqualShallow: () => import_is_equal_shallow.isEqualShallow,\n isIos: () => import_constants.isIos,\n isNativeDesktop: () => import_constants.isNativeDesktop,\n isServer: () => import_constants.isServer,\n isTV: () => import_constants.isTV,\n isTamaguiComponent: () => import_isTamaguiComponent.isTamaguiComponent,\n isTamaguiElement: () => import_isTamaguiElement.isTamaguiElement,\n isTouchable: () => import_constants.isTouchable,\n isValidStyleKey: () => import_getSplitStyles.isValidStyleKey,\n isVariable: () => import_createVariable.isVariable,\n isWeb: () => import_constants.isWeb,\n isWebTouchable: () => import_constants.isWebTouchable,\n loadAnimationDriver: () => import_config.loadAnimationDriver,\n matchMedia: () => import_matchMedia.matchMedia,\n mediaKeyMatch: () => import_useMedia.mediaKeyMatch,\n mediaObjectToString: () => import_mediaObjectToString.mediaObjectToString,\n mediaQueryConfig: () => import_mediaState.mediaQueryConfig,\n mediaState: () => import_mediaState.mediaState,\n mergeIfNotShallowEqual: () => import_is_equal_shallow.mergeIfNotShallowEqual,\n mergeProps: () => import_mergeProps.mergeProps,\n mergeSlotStyleProps: () => import_mergeSlotStyleProps.mergeSlotStyleProps,\n mutatedAutoVariables: () => import_registerCSSVariable.mutatedAutoVariables,\n nonAnimatableStyleProps: () => import_helpers.nonAnimatableStyleProps,\n nonAnimatableWebTextProps: () => import_helpers.nonAnimatableWebTextProps,\n nonAnimatableWebViewProps: () => import_helpers.nonAnimatableWebViewProps,\n normalizeColor: () => import_normalizeColor.normalizeColor,\n normalizeStyle: () => import_normalizeStyle.normalizeStyle,\n px: () => import_createVariable.px,\n removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,\n reservedThemeProps: () => import_helpers.reservedThemeProps,\n resolveSizing: () => import_resolveSizing.resolveSizing,\n resolveTextMetrics: () => import_nativeTextMetrics.resolveTextMetrics,\n resolveThemeName: () => import_useThemeState.resolveThemeName,\n setConfig: () => import_config.setConfig,\n setMediaState: () => import_mediaState.setMediaState,\n setNativeStyleEngine: () => import_nativeStyleEngine.setNativeStyleEngine,\n setNativeStyleEngineFlushListener: () => import_nativeStyleEngine.setNativeStyleEngineFlushListener,\n setNonce: () => import_insertStyleRule2.setNonce,\n setRef: () => import_compose_refs.setRef,\n setupDev: () => import_config.setupDev,\n setupHooks: () => import_setupHooks.setupHooks,\n setupMatchMedia: () => import_matchMedia.setupMatchMedia,\n setupPlatformDriver: () => import_constants.setupPlatformDriver,\n shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,\n simpleHash: () => import_helpers.simpleHash,\n splitStyleProps: () => import_splitStyleProps.splitStyleProps,\n style: () => import_style.style,\n stylePieceSymbol: () => import_types.stylePieceSymbol,\n stylePropsAll: () => import_helpers.stylePropsAll,\n stylePropsInput: () => import_helpers.stylePropsInput,\n stylePropsText: () => import_helpers.stylePropsText,\n stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,\n stylePropsTransform: () => import_helpers.stylePropsTransform,\n stylePropsUnitless: () => import_helpers.stylePropsUnitless,\n stylePropsView: () => import_helpers.stylePropsView,\n styled: () => import_styled.styled,\n supportsDynamicColorIOS: () => import_constants.supportsDynamicColorIOS,\n textStaticConfig: () => import_Text.textStaticConfig,\n themeRefKey: () => import_themeRef.themeRefKey,\n tokenCategories: () => import_helpers.tokenCategories,\n updateConfig: () => import_config.updateConfig,\n updateFont: () => import_insertFont.updateFont,\n updateMediaListeners: () => import_useMedia.updateMediaListeners,\n updateNativeStyleScope: () => import_nativeStyleEngine.updateNativeStyleScope,\n useAnimatedNumber: () => import_useAnimationDriver.useAnimatedNumber,\n useAnimatedNumberReaction: () => import_useAnimationDriver.useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => import_useAnimationDriver.useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => import_useAnimationDriver.useAnimatedNumbersStyle,\n useAnimationDriver: () => import_useAnimationDriver.useAnimationDriver,\n useClientValue: () => import_use_did_finish_ssr.useClientValue,\n useComposedRefs: () => import_compose_refs.useComposedRefs,\n useConfiguration: () => import_ComponentContext.useConfiguration,\n useCreateShallowSetState: () => import_is_equal_shallow.useCreateShallowSetState,\n useDidFinishSSR: () => import_use_did_finish_ssr.useDidFinishSSR,\n useEvent: () => import_use_event.useEvent,\n useGet: () => import_use_event.useGet,\n useIsClientOnly: () => import_use_did_finish_ssr.useIsClientOnly,\n useIsTouchDevice: () => import_useIsTouchDevice.useIsTouchDevice,\n useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,\n useMedia: () => import_useMedia.useMedia,\n usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,\n useStyle: () => import_useStyle.useStyle,\n useTheme: () => import_useTheme.useTheme,\n useThemeName: () => import_useThemeName.useThemeName,\n validStyles: () => import_helpers.validStyles,\n variableToString: () => import_createVariable.variableToString,\n viewStaticConfig: () => import_View.viewStaticConfig,\n webOnlyStylePropsText: () => import_helpers.webOnlyStylePropsText,\n webOnlyStylePropsView: () => import_helpers.webOnlyStylePropsView,\n withStaticProperties: () => import_helpers.withStaticProperties\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_ComponentContext = require(\"./contexts/ComponentContext\");\nvar import_GroupContext = require(\"./contexts/GroupContext\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_withStableStyle = require(\"./_withStableStyle\");\nvar import_withNativeStyle = require(\"./_withNativeStyle\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createStyledContext = require(\"./helpers/createStyledContext\");\nvar import_getCSSStylesAtomic = require(\"./helpers/getCSSStylesAtomic\");\nvar import_getExpandedShorthands = require(\"./helpers/getExpandedShorthands\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_nativeStyleEngine = require(\"./helpers/nativeStyleEngine\");\nvar import_registerCSSVariable = require(\"./helpers/registerCSSVariable\");\nvar import_insertStyleRule = require(\"./helpers/insertStyleRule\");\nvar import_isTamaguiComponent = require(\"./helpers/isTamaguiComponent\");\nvar import_isTamaguiElement = require(\"./helpers/isTamaguiElement\");\nvar import_matchMedia = require(\"./helpers/matchMedia\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nvar import_mergeSlotStyleProps = require(\"./helpers/mergeSlotStyleProps\");\nvar import_splitStyleProps = require(\"./helpers/splitStyleProps\");\nvar import_normalizeColor = require(\"./helpers/normalizeColor\");\nvar import_normalizeStyle = require(\"./helpers/normalizeStyle\");\nvar import_nativeTextMetrics = require(\"./helpers/nativeTextMetrics\");\nvar import_resolveSizing = require(\"./helpers/resolveSizing\");\nvar import_themeRef = require(\"./helpers/themeRef\");\nvar import_wrapStyleTags = require(\"./helpers/wrapStyleTags\");\nvar import_createFont = require(\"./createFont\");\nvar import_fluid = require(\"./helpers/fluid\");\nvar import_eventDetails = require(\"./eventDetails\");\nvar import_createStyledHOC = require(\"./createStyledHOC\");\nvar import_createShorthands = require(\"./createShorthands\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_createTokens = require(\"./createTokens\");\nvar import_createVariable = require(\"./createVariable\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_styled = require(\"./styled\");\nvar import_style = require(\"./style\");\nvar import_useStyle = require(\"./hooks/useStyle\");\nvar import_Tamagui = require(\"./Tamagui\");\nvar import_types = require(\"./types\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_config = require(\"./config\");\nvar import_insertStyleRule2 = require(\"./helpers/insertStyleRule\");\nvar import_useIsTouchDevice = require(\"./hooks/useIsTouchDevice\");\nvar import_useMedia = require(\"./hooks/useMedia\");\nvar import_mediaObjectToString = require(\"./helpers/mediaObjectToString\");\nvar import_mediaState = require(\"./helpers/mediaState\");\nvar import_useAnimationDriver = require(\"./hooks/useAnimationDriver\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_usePortalThemeState = require(\"./hooks/usePortalThemeState\");\nvar import_useThemeName = require(\"./hooks/useThemeName\");\nvar import_useThemeState = require(\"./hooks/useThemeState\");\nvar import_html = require(\"./dom/html\");\nvar import_Configuration = require(\"./views/Configuration\");\nvar import_TamaguiRoot = require(\"./views/TamaguiRoot\");\nvar import_FontLanguage = require(\"./views/FontLanguage\");\nvar import_Slot = require(\"./views/Slot\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_Theme = require(\"./views/Theme\");\nvar import_ThemeProvider = require(\"./views/ThemeProvider\");\nvar import_View = require(\"./views/View\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_use_event = require(\"@tamagui/use-event\");\nvar import_setupHooks = require(\"./setupHooks\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,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