@tamagui/web 3.0.0-beta.807.1 → 3.0.0-beta.881.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config.cjs +1 -1
- package/dist/cjs/config.native.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +40 -19
- package/dist/cjs/createComponent.native.cjs +42 -21
- package/dist/cjs/createComponent.native.js +42 -21
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +54 -4
- package/dist/cjs/createStyledHOC.native.cjs +55 -4
- package/dist/cjs/createStyledHOC.native.js +55 -4
- package/dist/cjs/createStyledHOC.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +1 -1
- package/dist/cjs/createTokens.native.cjs +1 -1
- package/dist/cjs/createTokens.native.js +1 -1
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/createVariable.cjs +0 -10
- package/dist/cjs/createVariable.native.cjs +0 -10
- package/dist/cjs/createVariable.native.js +0 -10
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +147 -99
- package/dist/cjs/dom/htmlRuntime.native.cjs +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +16 -13
- package/dist/cjs/dom/primitives.native.js +16 -13
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/helpers/borderComponents.cjs +62 -0
- package/dist/cjs/helpers/borderComponents.native.cjs +82 -0
- package/dist/cjs/helpers/borderComponents.native.js +84 -0
- package/dist/cjs/helpers/borderComponents.native.js.map +1 -0
- package/dist/cjs/helpers/componentDisplayName.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/cjs/helpers/createDesignSystem.cjs +0 -2
- package/dist/cjs/helpers/createStyledContext.cjs +10 -18
- package/dist/cjs/helpers/createStyledContext.native.cjs +14 -18
- package/dist/cjs/helpers/createStyledContext.native.js +14 -18
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/formatDiagnostic.cjs +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.js +8 -10
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +133 -114
- package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +11 -3
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +11 -3
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.cjs +13 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.cjs +15 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +15 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
- package/dist/cjs/helpers/getDynamicVal.cjs +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.cjs +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.js +5 -1
- package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +1063 -2168
- package/dist/cjs/helpers/getSplitStyles.native.cjs +1115 -2515
- package/dist/cjs/helpers/getSplitStyles.native.js +1115 -2515
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/grammarConfig.cjs +163 -1
- package/dist/cjs/helpers/grammarConfig.native.cjs +186 -1
- package/dist/cjs/helpers/grammarConfig.native.js +186 -1
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +5 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +7 -1
- package/dist/cjs/helpers/insertStyleRule.native.js +7 -1
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/log.cjs +9 -8
- package/dist/cjs/helpers/log.native.cjs +9 -8
- package/dist/cjs/helpers/log.native.js +9 -8
- package/dist/cjs/helpers/log.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.cjs +44 -13
- package/dist/cjs/helpers/mergeVariants.native.cjs +79 -14
- package/dist/cjs/helpers/mergeVariants.native.js +79 -14
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.cjs +34 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +36 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.js +36 -14
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +7 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +9 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +9 -8
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/cjs/helpers/parseBorderShorthand.native.cjs +25 -56
- package/dist/cjs/helpers/parseBorderShorthand.native.js +25 -56
- package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/parseOutlineShorthand.native.cjs +9 -49
- package/dist/cjs/helpers/parseOutlineShorthand.native.js +9 -49
- package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeArea.cjs +35 -100
- package/dist/cjs/helpers/resolveVariantStyle.cjs +57 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.cjs +67 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js +69 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
- package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
- package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
- package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/{getDefaultProps.native.cjs → styleStaticConfig.cjs} +7 -8
- package/dist/cjs/helpers/{getDefaultProps.native.js → styleStaticConfig.native.cjs} +7 -8
- package/dist/cjs/helpers/styleStaticConfig.native.js +31 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/cjs/helpers/styleStaticConfigCore.cjs +107 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +127 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js +129 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/cjs/helpers/styledDynamic.cjs +160 -0
- package/dist/cjs/helpers/styledDynamic.native.cjs +195 -0
- package/dist/cjs/helpers/styledDynamic.native.js +197 -0
- package/dist/cjs/helpers/styledDynamic.native.js.map +1 -0
- package/dist/cjs/helpers/tokenCategories.cjs +12 -74
- package/dist/cjs/helpers/tokenCategories.native.cjs +12 -76
- package/dist/cjs/helpers/tokenCategories.native.js +12 -76
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/variableValue.cjs +17 -12
- package/dist/cjs/helpers/variableValue.native.cjs +46 -23
- package/dist/cjs/helpers/variableValue.native.js +46 -23
- package/dist/cjs/helpers/variableValue.native.js.map +1 -1
- package/dist/cjs/helpers/warnOnce.cjs +5 -4
- package/dist/cjs/helpers/warnOnce.native.cjs +6 -4
- package/dist/cjs/helpers/warnOnce.native.js +6 -4
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
- package/dist/cjs/hooks/useAnimationDriver.cjs +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.cjs +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.js +2 -2
- package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +41 -82
- package/dist/cjs/hooks/useComponentState.native.cjs +45 -84
- package/dist/cjs/hooks/useComponentState.native.js +45 -84
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +2 -2
- package/dist/cjs/hooks/useMedia.native.cjs +2 -2
- package/dist/cjs/hooks/useMedia.native.js +2 -2
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/useSplitStyles.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/cjs/{helpers/getDefaultProps.cjs → hooks/useStyle.cjs} +10 -4
- package/dist/cjs/{helpers/directStyleCSS.native.js → hooks/useStyle.native.cjs} +16 -6
- package/dist/cjs/hooks/useStyle.native.js +34 -0
- package/dist/cjs/hooks/useStyle.native.js.map +1 -0
- package/dist/cjs/hooks/useThemeState.cjs +25 -90
- package/dist/cjs/hooks/useThemeState.native.cjs +34 -94
- package/dist/cjs/hooks/useThemeState.native.js +34 -94
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -12
- package/dist/cjs/index.native.cjs +9 -12
- package/dist/cjs/index.native.js +9 -12
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +8 -7
- package/dist/cjs/internal-runtime.native.cjs +8 -7
- package/dist/cjs/internal-runtime.native.js +8 -7
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +8 -7
- package/dist/cjs/static-resolve.native.cjs +8 -7
- package/dist/cjs/static-resolve.native.js +8 -7
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/style.cjs +91 -0
- package/dist/cjs/style.native.cjs +98 -0
- package/dist/cjs/style.native.js +100 -0
- package/dist/cjs/style.native.js.map +1 -0
- package/dist/cjs/styled.cjs +15 -62
- package/dist/cjs/styled.native.cjs +15 -64
- package/dist/cjs/styled.native.js +15 -64
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/types.cjs +4 -22
- package/dist/cjs/types.native.cjs +4 -22
- package/dist/cjs/types.native.js +4 -22
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.cjs +1 -2
- package/dist/cjs/views/TamaguiProvider.native.cjs +1 -2
- package/dist/cjs/views/TamaguiProvider.native.js +1 -2
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +21 -14
- package/dist/cjs/views/Text.native.cjs +5 -2
- package/dist/cjs/views/Text.native.js +5 -2
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +2 -2
- package/dist/cjs/views/Theme.native.cjs +2 -2
- package/dist/cjs/views/Theme.native.js +2 -2
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/cjs/views/ThemeDebug.cjs +1 -4
- package/dist/cjs/views/View.cjs +4 -2
- package/dist/cjs/views/View.native.cjs +4 -2
- package/dist/cjs/views/View.native.js +4 -2
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +41 -20
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +43 -22
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createStyledHOC.mjs +55 -5
- package/dist/esm/createStyledHOC.mjs.map +1 -1
- package/dist/esm/createStyledHOC.native.js +56 -5
- package/dist/esm/createStyledHOC.native.js.map +1 -1
- package/dist/esm/createTokens.mjs +1 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createTokens.native.js +1 -1
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/createVariable.mjs +1 -9
- package/dist/esm/createVariable.mjs.map +1 -1
- package/dist/esm/createVariable.native.js +1 -9
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/dom/html.mjs +147 -99
- package/dist/esm/dom/html.mjs.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +7 -3
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +16 -13
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/helpers/borderComponents.mjs +37 -0
- package/dist/esm/helpers/borderComponents.mjs.map +1 -0
- package/dist/esm/helpers/borderComponents.native.js +55 -0
- package/dist/esm/helpers/borderComponents.native.js.map +1 -0
- package/dist/esm/helpers/componentDisplayName.mjs +1 -8
- package/dist/esm/helpers/componentDisplayName.mjs.map +1 -1
- package/dist/esm/helpers/componentDisplayName.native.js +1 -8
- package/dist/esm/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/esm/helpers/createDesignSystem.mjs +0 -2
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.mjs +10 -18
- package/dist/esm/helpers/createStyledContext.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js +14 -18
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs +8 -10
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +8 -10
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +131 -114
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.native.js +7 -4
- package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +8 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +10 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
- package/dist/esm/helpers/getDynamicVal.mjs +5 -1
- package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
- package/dist/esm/helpers/getDynamicVal.native.js +5 -1
- package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +1052 -2151
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +1090 -2481
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/grammarConfig.mjs +164 -2
- package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
- package/dist/esm/helpers/grammarConfig.native.js +187 -2
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs +5 -2
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +7 -2
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/log.mjs +9 -8
- package/dist/esm/helpers/log.mjs.map +1 -1
- package/dist/esm/helpers/log.native.js +9 -8
- package/dist/esm/helpers/log.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.mjs +44 -13
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +79 -14
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.mjs +0 -1
- package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.native.js +0 -1
- package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.mjs +34 -15
- package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.native.js +36 -15
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +7 -8
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +9 -8
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/esm/helpers/parseBorderShorthand.native.js +23 -56
- package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/esm/helpers/parseOutlineShorthand.native.js +10 -49
- package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeArea.mjs +35 -97
- package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -1
- package/dist/esm/helpers/resolveVariantStyle.mjs +38 -0
- package/dist/esm/helpers/resolveVariantStyle.mjs.map +1 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js +46 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/esm/helpers/splitStyleProps.mjs +27 -0
- package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/splitStyleProps.native.js +28 -0
- package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.mjs +8 -0
- package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.native.js +8 -0
- package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs +88 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js +106 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/esm/helpers/styledDynamic.mjs +136 -0
- package/dist/esm/helpers/styledDynamic.mjs.map +1 -0
- package/dist/esm/helpers/styledDynamic.native.js +169 -0
- package/dist/esm/helpers/styledDynamic.native.js.map +1 -0
- package/dist/esm/helpers/tokenCategories.mjs +12 -72
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js +12 -74
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/variableValue.mjs +17 -12
- package/dist/esm/helpers/variableValue.mjs.map +1 -1
- package/dist/esm/helpers/variableValue.native.js +46 -23
- package/dist/esm/helpers/variableValue.native.js.map +1 -1
- package/dist/esm/helpers/warnOnce.mjs +5 -4
- package/dist/esm/helpers/warnOnce.mjs.map +1 -1
- package/dist/esm/helpers/warnOnce.native.js +6 -4
- package/dist/esm/helpers/warnOnce.native.js.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.mjs +2 -2
- package/dist/esm/hooks/useAnimationDriver.mjs.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.native.js +2 -2
- package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +41 -82
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +45 -84
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +2 -2
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +2 -2
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/useSplitStyles.mjs +2 -2
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js +2 -2
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/esm/hooks/useStyle.mjs +11 -0
- package/dist/esm/hooks/useStyle.mjs.map +1 -0
- package/dist/esm/hooks/useStyle.native.js +11 -0
- package/dist/esm/hooks/useStyle.native.js.map +1 -0
- package/dist/esm/hooks/useThemeState.mjs +25 -90
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +34 -94
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/index.native.js +8 -8
- package/dist/esm/internal-runtime.mjs +8 -7
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +8 -7
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +11 -9
- package/dist/esm/static-resolve.mjs.map +1 -1
- package/dist/esm/static-resolve.native.js +11 -9
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/style.mjs +58 -0
- package/dist/esm/style.mjs.map +1 -0
- package/dist/esm/style.native.js +63 -0
- package/dist/esm/style.native.js.map +1 -0
- package/dist/esm/styled.mjs +17 -62
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +17 -64
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/types.mjs +3 -21
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +3 -21
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +1 -2
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js +1 -2
- package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
- package/dist/esm/views/Text.mjs +21 -14
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +4 -2
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +2 -2
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +2 -2
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/dist/esm/views/ThemeDebug.mjs +1 -4
- package/dist/esm/views/ThemeDebug.mjs.map +1 -1
- package/dist/esm/views/View.mjs +4 -2
- package/dist/esm/views/View.mjs.map +1 -1
- package/dist/esm/views/View.native.js +4 -2
- package/dist/esm/views/View.native.js.map +1 -1
- package/package.json +15 -15
- package/src/config.ts +1 -1
- package/src/createComponent.tsx +62 -31
- package/src/createStyledHOC.tsx +56 -9
- package/src/createTokens.ts +1 -1
- package/src/createVariable.ts +0 -10
- package/src/dom/html.tsx +778 -877
- package/src/dom/htmlRuntime.native.tsx +7 -3
- package/src/dom/primitives.native.tsx +30 -39
- package/src/helpers/borderComponents.ts +62 -0
- package/src/helpers/componentDisplayName.ts +0 -11
- package/src/helpers/createDesignSystem.ts +0 -2
- package/src/helpers/createStyledContext.tsx +15 -53
- package/src/helpers/formatDiagnostic.ts +11 -13
- package/src/helpers/getCSSStylesAtomic.native.ts +6 -3
- package/src/helpers/getCSSStylesAtomic.ts +197 -206
- package/src/helpers/getCSSStylesAtomicCompiled.ts +13 -1
- package/src/helpers/getDynamicVal.ts +4 -0
- package/src/helpers/getSplitStyles.tsx +2058 -4052
- package/src/helpers/grammarConfig.ts +218 -1
- package/src/helpers/insertStyleRule.tsx +4 -2
- package/src/helpers/log.ts +12 -11
- package/src/helpers/mergeVariants.ts +55 -18
- package/src/helpers/nativeOnlyProps.ts +0 -1
- package/src/helpers/nativeStyleEngine.ts +55 -14
- package/src/helpers/normalizeValueWithProperty.ts +10 -12
- package/src/helpers/parseBorderShorthand.native.ts +23 -45
- package/src/helpers/parseOutlineShorthand.native.ts +9 -40
- package/src/helpers/resolveSafeArea.ts +34 -101
- package/src/helpers/resolveVariantStyle.ts +77 -0
- package/src/helpers/splitStyleProps.ts +166 -0
- package/src/helpers/styleFrontend.ts +16 -9
- package/src/helpers/styleStaticConfig.ts +21 -0
- package/src/helpers/styleStaticConfigCore.ts +110 -0
- package/src/helpers/styledDynamic.ts +191 -0
- package/src/helpers/tokenCategories.ts +32 -88
- package/src/helpers/variableValue.ts +20 -15
- package/src/helpers/warnOnce.ts +5 -4
- package/src/hooks/useAnimationDriver.ts +6 -2
- package/src/hooks/useComponentState.ts +55 -183
- package/src/hooks/useMedia.tsx +10 -8
- package/src/hooks/useSplitStyles.tsx +17 -2
- package/src/hooks/useStyle.ts +10 -0
- package/src/hooks/useTheme.tsx +1 -1
- package/src/hooks/useThemeState.ts +51 -264
- package/src/index.ts +14 -10
- package/src/internal-runtime.ts +10 -9
- package/src/internalRuntimeTypes.ts +1 -0
- package/src/static-resolve.ts +25 -18
- package/src/style.ts +97 -0
- package/src/styled.tsx +46 -332
- package/src/types.tsx +107 -192
- package/src/views/TamaguiProvider.tsx +0 -2
- package/src/views/Text.tsx +26 -21
- package/src/views/Theme.tsx +10 -8
- package/src/views/ThemeDebug.tsx +0 -1
- package/src/views/View.tsx +6 -7
- package/types/createComponent.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts.map +1 -1
- package/types/createVariable.d.ts +0 -2
- package/types/createVariable.d.ts.map +1 -1
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/dom/primitives.native.d.ts.map +1 -1
- package/types/helpers/borderComponents.d.ts +10 -0
- package/types/helpers/borderComponents.d.ts.map +1 -0
- package/types/helpers/componentDisplayName.d.ts +0 -3
- package/types/helpers/componentDisplayName.d.ts.map +1 -1
- package/types/helpers/createDesignSystem.d.ts.map +1 -1
- package/types/helpers/createStyledContext.d.ts.map +1 -1
- package/types/helpers/formatDiagnostic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts +25 -22
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.native.d.ts +5 -0
- package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts +6 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -1
- package/types/helpers/getDynamicVal.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +9 -11
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/grammarConfig.d.ts +25 -2
- package/types/helpers/grammarConfig.d.ts.map +1 -1
- package/types/helpers/insertStyleRule.d.ts +1 -0
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/helpers/log.d.ts.map +1 -1
- package/types/helpers/mergeVariants.d.ts.map +1 -1
- package/types/helpers/nativeOnlyProps.d.ts +0 -1
- package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
- package/types/helpers/nativeStyleEngine.d.ts +6 -0
- package/types/helpers/nativeStyleEngine.d.ts.map +1 -1
- package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
- package/types/helpers/parseBorderShorthand.native.d.ts +1 -0
- package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -1
- package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -1
- package/types/helpers/resolveSafeArea.d.ts +0 -1
- package/types/helpers/resolveSafeArea.d.ts.map +1 -1
- package/types/helpers/resolveVariantStyle.d.ts +3 -0
- package/types/helpers/resolveVariantStyle.d.ts.map +1 -0
- package/types/helpers/splitStyleProps.d.ts +44 -0
- package/types/helpers/splitStyleProps.d.ts.map +1 -0
- package/types/helpers/styleFrontend.d.ts +7 -9
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleStaticConfig.d.ts +14 -0
- package/types/helpers/styleStaticConfig.d.ts.map +1 -0
- package/types/helpers/styleStaticConfigCore.d.ts +4 -0
- package/types/helpers/styleStaticConfigCore.d.ts.map +1 -0
- package/types/helpers/styledDynamic.d.ts +18 -0
- package/types/helpers/styledDynamic.d.ts.map +1 -0
- package/types/helpers/tokenCategories.d.ts +0 -1
- package/types/helpers/tokenCategories.d.ts.map +1 -1
- package/types/helpers/variableValue.d.ts.map +1 -1
- package/types/helpers/warnOnce.d.ts.map +1 -1
- package/types/helpers/webPropsToSkip.native.d.ts +68 -68
- package/types/hooks/useAnimationDriver.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/useMedia.d.ts.map +1 -1
- package/types/hooks/useSplitStyles.d.ts.map +1 -1
- package/types/hooks/useStyle.d.ts +4 -0
- package/types/hooks/useStyle.d.ts.map +1 -0
- package/types/hooks/useThemeState.d.ts +1 -11
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/index.d.ts +8 -8
- package/types/index.d.ts.map +1 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/internalRuntimeTypes.d.ts +1 -1
- package/types/internalRuntimeTypes.d.ts.map +1 -1
- package/types/static-resolve.d.ts +2 -2
- package/types/static-resolve.d.ts.map +1 -1
- package/types/style.d.ts +18 -0
- package/types/style.d.ts.map +1 -0
- package/types/styled.d.ts +12 -48
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +75 -60
- package/types/types.d.ts.map +1 -1
- package/types/views/TamaguiProvider.d.ts +1 -1
- package/types/views/TamaguiProvider.d.ts.map +1 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/Theme.d.ts.map +1 -1
- package/types/views/ThemeDebug.d.ts.map +1 -1
- package/types/views/View.d.ts.map +1 -1
- package/dist/cjs/helpers/directStyleCSS.cjs +0 -348
- package/dist/cjs/helpers/directStyleCSS.native.cjs +0 -20
- package/dist/cjs/helpers/directStyleCSS.native.js.map +0 -1
- package/dist/cjs/helpers/directStyleCSSCompiled.cjs +0 -40
- package/dist/cjs/helpers/directStyleCSSCompiled.native.cjs +0 -46
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js +0 -48
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js.map +0 -1
- package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/cjs/helpers/getVariantExtras.cjs +0 -91
- package/dist/cjs/helpers/getVariantExtras.native.cjs +0 -94
- package/dist/cjs/helpers/getVariantExtras.native.js +0 -96
- package/dist/cjs/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/cjs/helpers/themeable.cjs +0 -92
- package/dist/cjs/helpers/themeable.native.cjs +0 -95
- package/dist/cjs/helpers/themeable.native.js +0 -97
- package/dist/cjs/helpers/themeable.native.js.map +0 -1
- package/dist/cjs/hooks/useProps.cjs +0 -129
- package/dist/cjs/hooks/useProps.native.cjs +0 -135
- package/dist/cjs/hooks/useProps.native.js +0 -137
- package/dist/cjs/hooks/useProps.native.js.map +0 -1
- package/dist/esm/helpers/directStyleCSS.mjs +0 -320
- package/dist/esm/helpers/directStyleCSS.mjs.map +0 -1
- package/dist/esm/helpers/directStyleCSS.native.js +0 -1
- package/dist/esm/helpers/directStyleCSSCompiled.mjs +0 -11
- package/dist/esm/helpers/directStyleCSSCompiled.mjs.map +0 -1
- package/dist/esm/helpers/directStyleCSSCompiled.native.js +0 -15
- package/dist/esm/helpers/directStyleCSSCompiled.native.js.map +0 -1
- package/dist/esm/helpers/getDefaultProps.mjs +0 -4
- package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
- package/dist/esm/helpers/getDefaultProps.native.js +0 -6
- package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/esm/helpers/getVariantExtras.mjs +0 -69
- package/dist/esm/helpers/getVariantExtras.mjs.map +0 -1
- package/dist/esm/helpers/getVariantExtras.native.js +0 -70
- package/dist/esm/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/esm/helpers/themeable.mjs +0 -67
- package/dist/esm/helpers/themeable.mjs.map +0 -1
- package/dist/esm/helpers/themeable.native.js +0 -68
- package/dist/esm/helpers/themeable.native.js.map +0 -1
- package/dist/esm/hooks/useProps.mjs +0 -100
- package/dist/esm/hooks/useProps.mjs.map +0 -1
- package/dist/esm/hooks/useProps.native.js +0 -104
- package/dist/esm/hooks/useProps.native.js.map +0 -1
- package/src/helpers/directStyleCSS.native.ts +0 -1
- package/src/helpers/directStyleCSS.ts +0 -534
- package/src/helpers/directStyleCSSCompiled.ts +0 -32
- package/src/helpers/getDefaultProps.ts +0 -3
- package/src/helpers/getVariantExtras.tsx +0 -95
- package/src/helpers/themeable.tsx +0 -96
- package/src/hooks/useProps.tsx +0 -186
- package/types/helpers/directStyleCSS.d.ts +0 -28
- package/types/helpers/directStyleCSS.d.ts.map +0 -1
- package/types/helpers/directStyleCSS.native.d.ts +0 -2
- package/types/helpers/directStyleCSS.native.d.ts.map +0 -1
- package/types/helpers/directStyleCSSCompiled.d.ts +0 -10
- package/types/helpers/directStyleCSSCompiled.d.ts.map +0 -1
- package/types/helpers/getDefaultProps.d.ts +0 -3
- package/types/helpers/getDefaultProps.d.ts.map +0 -1
- package/types/helpers/getVariantExtras.d.ts +0 -4
- package/types/helpers/getVariantExtras.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts +0 -3
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/hooks/useProps.d.ts +0 -39
- package/types/hooks/useProps.d.ts.map +0 -1
|
@@ -21,88 +21,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
21
|
};
|
|
22
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
23
|
var tokenCategories_exports = {};
|
|
24
|
-
__export(tokenCategories_exports, {
|
|
25
|
-
getTokenCategoryForProperty: () => getTokenCategoryForProperty,
|
|
26
|
-
tokenCategoryByProperty: () => tokenCategoryByProperty
|
|
27
|
-
});
|
|
24
|
+
__export(tokenCategories_exports, { getTokenCategoryForProperty: () => getTokenCategoryForProperty });
|
|
28
25
|
module.exports = __toCommonJS(tokenCategories_exports);
|
|
29
|
-
var import_helpers = require("@tamagui/helpers");
|
|
30
|
-
function mapTokenCategory(keys, category) {
|
|
31
|
-
return Object.fromEntries(Object.keys(keys).map(function(key) {
|
|
32
|
-
return [key, category];
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
var tokenCategoryByProperty = {
|
|
36
|
-
...mapTokenCategory(import_helpers.tokenCategories.size, "size"),
|
|
37
|
-
...mapTokenCategory(import_helpers.tokenCategories.radius, "radius"),
|
|
38
|
-
...mapTokenCategory(import_helpers.tokenCategories.zIndex, "zIndex"),
|
|
39
|
-
x: "space",
|
|
40
|
-
y: "space",
|
|
41
|
-
fontSize: "fontSize",
|
|
42
|
-
borderWidth: "space",
|
|
43
|
-
borderTopWidth: "space",
|
|
44
|
-
borderRightWidth: "space",
|
|
45
|
-
borderBottomWidth: "space",
|
|
46
|
-
borderLeftWidth: "space",
|
|
47
|
-
borderBlockWidth: "space",
|
|
48
|
-
borderBlockStartWidth: "space",
|
|
49
|
-
borderBlockEndWidth: "space",
|
|
50
|
-
borderInlineWidth: "space",
|
|
51
|
-
borderInlineStartWidth: "space",
|
|
52
|
-
borderInlineEndWidth: "space",
|
|
53
|
-
outlineOffset: "space",
|
|
54
|
-
outlineWidth: "space",
|
|
55
|
-
gap: "space",
|
|
56
|
-
rowGap: "space",
|
|
57
|
-
columnGap: "space",
|
|
58
|
-
top: "space",
|
|
59
|
-
right: "space",
|
|
60
|
-
bottom: "space",
|
|
61
|
-
left: "space",
|
|
62
|
-
inset: "space",
|
|
63
|
-
insetBlock: "space",
|
|
64
|
-
insetBlockEnd: "space",
|
|
65
|
-
insetBlockStart: "space",
|
|
66
|
-
insetInline: "space",
|
|
67
|
-
insetInlineEnd: "space",
|
|
68
|
-
insetInlineStart: "space",
|
|
69
|
-
margin: "space",
|
|
70
|
-
marginBlock: "space",
|
|
71
|
-
marginBlockEnd: "space",
|
|
72
|
-
marginBlockStart: "space",
|
|
73
|
-
marginInline: "space",
|
|
74
|
-
marginInlineEnd: "space",
|
|
75
|
-
marginInlineStart: "space",
|
|
76
|
-
marginTop: "space",
|
|
77
|
-
marginRight: "space",
|
|
78
|
-
marginBottom: "space",
|
|
79
|
-
marginEnd: "space",
|
|
80
|
-
marginLeft: "space",
|
|
81
|
-
marginHorizontal: "space",
|
|
82
|
-
marginStart: "space",
|
|
83
|
-
marginVertical: "space",
|
|
84
|
-
padding: "space",
|
|
85
|
-
paddingBlock: "space",
|
|
86
|
-
paddingBlockEnd: "space",
|
|
87
|
-
paddingBlockStart: "space",
|
|
88
|
-
paddingInline: "space",
|
|
89
|
-
paddingInlineEnd: "space",
|
|
90
|
-
paddingInlineStart: "space",
|
|
91
|
-
paddingTop: "space",
|
|
92
|
-
paddingRight: "space",
|
|
93
|
-
paddingBottom: "space",
|
|
94
|
-
paddingEnd: "space",
|
|
95
|
-
paddingLeft: "space",
|
|
96
|
-
paddingHorizontal: "space",
|
|
97
|
-
paddingStart: "space",
|
|
98
|
-
paddingVertical: "space"
|
|
99
|
-
};
|
|
100
26
|
function getTokenCategoryForProperty(property) {
|
|
101
27
|
if (property === "fontFamily") return "fontFamily";
|
|
102
28
|
if (property === "fontSize" || property === "fontWeight" || property === "lineHeight" || property === "letterSpacing") {
|
|
103
29
|
return "font";
|
|
104
30
|
}
|
|
105
|
-
|
|
31
|
+
if (property === "zIndex") return "zIndex";
|
|
32
|
+
if (property === "color" || property.endsWith("Color")) return "color";
|
|
33
|
+
if (property.endsWith("Radius")) {
|
|
34
|
+
return property === "shadowRadius" ? "size" : "radius";
|
|
35
|
+
}
|
|
36
|
+
if (/^(?:width|height|(?:min|max)(?:Width|Height))$/.test(property) || property.endsWith("BlockSize") || property.endsWith("InlineSize") || property === "blockSize" || property === "inlineSize") {
|
|
37
|
+
return "size";
|
|
38
|
+
}
|
|
39
|
+
if (property === "x" || property === "y" || property === "top" || property === "right" || property === "bottom" || property === "left" || property === "outlineOffset" || property === "gap" || property.endsWith("Gap") || property.startsWith("margin") || property.startsWith("padding") || property.startsWith("inset") || (property.startsWith("border") || property === "outlineWidth") && property.endsWith("Width")) {
|
|
40
|
+
return "space";
|
|
41
|
+
}
|
|
106
42
|
}
|
|
107
43
|
|
|
108
44
|
//# sourceMappingURL=tokenCategories.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenCategories.native.js","names":[],"sources":["cjs/helpers/tokenCategories.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 tokenCategories_exports = {};\n__export(tokenCategories_exports, {\n getTokenCategoryForProperty: () => getTokenCategoryForProperty
|
|
1
|
+
{"version":3,"file":"tokenCategories.native.js","names":[],"sources":["cjs/helpers/tokenCategories.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 tokenCategories_exports = {};\n__export(tokenCategories_exports, {\n getTokenCategoryForProperty: () => getTokenCategoryForProperty\n});\nmodule.exports = __toCommonJS(tokenCategories_exports);\nfunction getTokenCategoryForProperty(property) {\n if (property === \"fontFamily\") return \"fontFamily\";\n if (property === \"fontSize\" || property === \"fontWeight\" || property === \"lineHeight\" || property === \"letterSpacing\") {\n return \"font\";\n }\n if (property === \"zIndex\") return \"zIndex\";\n if (property === \"color\" || property.endsWith(\"Color\")) return \"color\";\n if (property.endsWith(\"Radius\")) {\n return property === \"shadowRadius\" ? \"size\" : \"radius\";\n }\n if (/^(?:width|height|(?:min|max)(?:Width|Height))$/.test(property) || property.endsWith(\"BlockSize\") || property.endsWith(\"InlineSize\") || property === \"blockSize\" || property === \"inlineSize\") {\n return \"size\";\n }\n if (property === \"x\" || property === \"y\" || property === \"top\" || property === \"right\" || property === \"bottom\" || property === \"left\" || property === \"outlineOffset\" || property === \"gap\" || property.endsWith(\"Gap\") || property.startsWith(\"margin\") || property.startsWith(\"padding\") || property.startsWith(\"inset\") || (property.startsWith(\"border\") || property === \"outlineWidth\") && property.endsWith(\"Width\")) {\n return \"space\";\n }\n}\n//# sourceMappingURL=tokenCategories.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;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,mCAAmC,4BACrC,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,SAAS,4BAA4B,UAAU;CAC7C,IAAI,aAAa,cAAc,OAAO;CACtC,IAAI,aAAa,cAAc,aAAa,gBAAgB,aAAa,gBAAgB,aAAa,iBAAiB;EACrH,OAAO;CACT;CACA,IAAI,aAAa,UAAU,OAAO;CAClC,IAAI,aAAa,WAAW,SAAS,SAAS,OAAO,GAAG,OAAO;CAC/D,IAAI,SAAS,SAAS,QAAQ,GAAG;EAC/B,OAAO,aAAa,iBAAiB,SAAS;CAChD;CACA,IAAI,iDAAiD,KAAK,QAAQ,KAAK,SAAS,SAAS,WAAW,KAAK,SAAS,SAAS,YAAY,KAAK,aAAa,eAAe,aAAa,cAAc;EACjM,OAAO;CACT;CACA,IAAI,aAAa,OAAO,aAAa,OAAO,aAAa,SAAS,aAAa,WAAW,aAAa,YAAY,aAAa,UAAU,aAAa,mBAAmB,aAAa,SAAS,SAAS,SAAS,KAAK,KAAK,SAAS,WAAW,QAAQ,KAAK,SAAS,WAAW,SAAS,KAAK,SAAS,WAAW,OAAO,MAAM,SAAS,WAAW,QAAQ,KAAK,aAAa,mBAAmB,SAAS,SAAS,OAAO,GAAG;EAC3Z,OAAO;CACT;AACF"}
|
|
@@ -48,19 +48,24 @@ const tokenCategoryOrder = [
|
|
|
48
48
|
"zIndex"
|
|
49
49
|
];
|
|
50
50
|
const findVariableToken = (tokensParsed, name) => {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
if (process.env.NODE_ENV === "development") {
|
|
52
|
+
let found;
|
|
53
|
+
let foundCategory;
|
|
54
|
+
for (const category of tokenCategoryOrder) {
|
|
55
|
+
const token = tokensParsed[category]?.[name];
|
|
56
|
+
if (!token) continue;
|
|
57
|
+
if (!found) {
|
|
58
|
+
found = token;
|
|
59
|
+
foundCategory = category;
|
|
60
|
+
} else {
|
|
61
|
+
(0, import_warnOnce.warnOnce)(`ambiguous:${name}`, `Theme inline value: "${name}" exists in multiple token categories; using "${foundCategory}". Rename one of the colliding tokens.`);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return found;
|
|
66
|
+
}
|
|
53
67
|
for (const category of tokenCategoryOrder) {
|
|
54
68
|
const token = tokensParsed[category]?.[name];
|
|
55
|
-
if (
|
|
56
|
-
if (!found) {
|
|
57
|
-
found = token;
|
|
58
|
-
foundCategory = category;
|
|
59
|
-
if (process.env.NODE_ENV !== "development") break;
|
|
60
|
-
} else {
|
|
61
|
-
(0, import_warnOnce.warnOnce)(`ambiguous:${name}`, `Theme inline value: "${name}" exists in multiple token categories; using "${foundCategory}". Rename one of the colliding tokens.`);
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
69
|
+
if (token) return token;
|
|
64
70
|
}
|
|
65
|
-
return found;
|
|
66
71
|
};
|
|
@@ -52,37 +52,60 @@ var tokenCategoryOrder = [
|
|
|
52
52
|
"zIndex"
|
|
53
53
|
];
|
|
54
54
|
var findVariableToken = function(tokensParsed, name) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
found
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
if (process.env.NODE_ENV === "development") {
|
|
56
|
+
var found;
|
|
57
|
+
var foundCategory;
|
|
58
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
59
|
+
try {
|
|
60
|
+
for (var _iterator = tokenCategoryOrder[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
61
|
+
var category = _step.value;
|
|
62
|
+
var _tokensParsed_category;
|
|
63
|
+
var token = (_tokensParsed_category = tokensParsed[category]) === null || _tokensParsed_category === void 0 ? void 0 : _tokensParsed_category[name];
|
|
64
|
+
if (!token) continue;
|
|
65
|
+
if (!found) {
|
|
66
|
+
found = token;
|
|
67
|
+
foundCategory = category;
|
|
68
|
+
} else {
|
|
69
|
+
(0, import_warnOnce.warnOnce)(`ambiguous:${name}`, `Theme inline value: "${name}" exists in multiple token categories; using "${foundCategory}". Rename one of the colliding tokens.`);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} catch (err) {
|
|
74
|
+
_didIteratorError = true;
|
|
75
|
+
_iteratorError = err;
|
|
76
|
+
} finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
79
|
+
_iterator.return();
|
|
80
|
+
}
|
|
81
|
+
} finally {
|
|
82
|
+
if (_didIteratorError) {
|
|
83
|
+
throw _iteratorError;
|
|
84
|
+
}
|
|
71
85
|
}
|
|
72
86
|
}
|
|
87
|
+
return found;
|
|
88
|
+
}
|
|
89
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
90
|
+
try {
|
|
91
|
+
for (var _iterator1 = tokenCategoryOrder[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
92
|
+
var category1 = _step1.value;
|
|
93
|
+
var _tokensParsed_category1;
|
|
94
|
+
var token1 = (_tokensParsed_category1 = tokensParsed[category1]) === null || _tokensParsed_category1 === void 0 ? void 0 : _tokensParsed_category1[name];
|
|
95
|
+
if (token1) return token1;
|
|
96
|
+
}
|
|
73
97
|
} catch (err) {
|
|
74
|
-
|
|
75
|
-
|
|
98
|
+
_didIteratorError1 = true;
|
|
99
|
+
_iteratorError1 = err;
|
|
76
100
|
} finally {
|
|
77
101
|
try {
|
|
78
|
-
if (!
|
|
79
|
-
|
|
102
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
103
|
+
_iterator1.return();
|
|
80
104
|
}
|
|
81
105
|
} finally {
|
|
82
|
-
if (
|
|
83
|
-
throw
|
|
106
|
+
if (_didIteratorError1) {
|
|
107
|
+
throw _iteratorError1;
|
|
84
108
|
}
|
|
85
109
|
}
|
|
86
110
|
}
|
|
87
|
-
return found;
|
|
88
111
|
};
|
|
@@ -52,39 +52,62 @@ var tokenCategoryOrder = [
|
|
|
52
52
|
"zIndex"
|
|
53
53
|
];
|
|
54
54
|
var findVariableToken = function(tokensParsed, name) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
found
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
if (process.env.NODE_ENV === "development") {
|
|
56
|
+
var found;
|
|
57
|
+
var foundCategory;
|
|
58
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
59
|
+
try {
|
|
60
|
+
for (var _iterator = tokenCategoryOrder[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
61
|
+
var category = _step.value;
|
|
62
|
+
var _tokensParsed_category;
|
|
63
|
+
var token = (_tokensParsed_category = tokensParsed[category]) === null || _tokensParsed_category === void 0 ? void 0 : _tokensParsed_category[name];
|
|
64
|
+
if (!token) continue;
|
|
65
|
+
if (!found) {
|
|
66
|
+
found = token;
|
|
67
|
+
foundCategory = category;
|
|
68
|
+
} else {
|
|
69
|
+
(0, import_warnOnce.warnOnce)(`ambiguous:${name}`, `Theme inline value: "${name}" exists in multiple token categories; using "${foundCategory}". Rename one of the colliding tokens.`);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
} catch (err) {
|
|
74
|
+
_didIteratorError = true;
|
|
75
|
+
_iteratorError = err;
|
|
76
|
+
} finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
79
|
+
_iterator.return();
|
|
80
|
+
}
|
|
81
|
+
} finally {
|
|
82
|
+
if (_didIteratorError) {
|
|
83
|
+
throw _iteratorError;
|
|
84
|
+
}
|
|
71
85
|
}
|
|
72
86
|
}
|
|
87
|
+
return found;
|
|
88
|
+
}
|
|
89
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
90
|
+
try {
|
|
91
|
+
for (var _iterator1 = tokenCategoryOrder[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
92
|
+
var category1 = _step1.value;
|
|
93
|
+
var _tokensParsed_category1;
|
|
94
|
+
var token1 = (_tokensParsed_category1 = tokensParsed[category1]) === null || _tokensParsed_category1 === void 0 ? void 0 : _tokensParsed_category1[name];
|
|
95
|
+
if (token1) return token1;
|
|
96
|
+
}
|
|
73
97
|
} catch (err) {
|
|
74
|
-
|
|
75
|
-
|
|
98
|
+
_didIteratorError1 = true;
|
|
99
|
+
_iteratorError1 = err;
|
|
76
100
|
} finally {
|
|
77
101
|
try {
|
|
78
|
-
if (!
|
|
79
|
-
|
|
102
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
103
|
+
_iterator1.return();
|
|
80
104
|
}
|
|
81
105
|
} finally {
|
|
82
|
-
if (
|
|
83
|
-
throw
|
|
106
|
+
if (_didIteratorError1) {
|
|
107
|
+
throw _iteratorError1;
|
|
84
108
|
}
|
|
85
109
|
}
|
|
86
110
|
}
|
|
87
|
-
return found;
|
|
88
111
|
};
|
|
89
112
|
|
|
90
113
|
//# sourceMappingURL=variableValue.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableValue.native.js","names":[],"sources":["cjs/helpers/variableValue.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 variableValue_exports = {};\n__export(variableValue_exports, {\n findVariableToken: () => findVariableToken,\n isUnitlessVariableKey: () => isUnitlessVariableKey\n});\nmodule.exports = __toCommonJS(variableValue_exports);\nvar import_warnOnce = require(\"./warnOnce\");\nvar unitlessSuffixes = [\n \"opacity\",\n \"scale\",\n \"zindex\",\n \"weight\",\n \"flex\",\n \"grow\",\n \"shrink\",\n \"ratio\",\n \"elevation\"\n];\nvar isUnitlessVariableKey = function(key) {\n var lower = key.toLowerCase();\n return unitlessSuffixes.some(function(suffix) {\n return lower.endsWith(suffix);\n });\n};\nvar tokenCategoryOrder = [\n \"color\",\n \"space\",\n \"size\",\n \"radius\",\n \"zIndex\"\n];\nvar findVariableToken = function(tokensParsed, name) {\n var found;\n
|
|
1
|
+
{"version":3,"file":"variableValue.native.js","names":[],"sources":["cjs/helpers/variableValue.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 variableValue_exports = {};\n__export(variableValue_exports, {\n findVariableToken: () => findVariableToken,\n isUnitlessVariableKey: () => isUnitlessVariableKey\n});\nmodule.exports = __toCommonJS(variableValue_exports);\nvar import_warnOnce = require(\"./warnOnce\");\nvar unitlessSuffixes = [\n \"opacity\",\n \"scale\",\n \"zindex\",\n \"weight\",\n \"flex\",\n \"grow\",\n \"shrink\",\n \"ratio\",\n \"elevation\"\n];\nvar isUnitlessVariableKey = function(key) {\n var lower = key.toLowerCase();\n return unitlessSuffixes.some(function(suffix) {\n return lower.endsWith(suffix);\n });\n};\nvar tokenCategoryOrder = [\n \"color\",\n \"space\",\n \"size\",\n \"radius\",\n \"zIndex\"\n];\nvar findVariableToken = function(tokensParsed, name) {\n if (process.env.NODE_ENV === \"development\") {\n var found;\n var foundCategory;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = tokenCategoryOrder[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var category = _step.value;\n var _tokensParsed_category;\n var token = (_tokensParsed_category = tokensParsed[category]) === null || _tokensParsed_category === void 0 ? void 0 : _tokensParsed_category[name];\n if (!token) continue;\n if (!found) {\n found = token;\n foundCategory = category;\n } else {\n (0, import_warnOnce.warnOnce)(`ambiguous:${name}`, `Theme inline value: \"${name}\" exists in multiple token categories; using \"${foundCategory}\". Rename one of the colliding tokens.`);\n break;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return found;\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = tokenCategoryOrder[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var category1 = _step1.value;\n var _tokensParsed_category1;\n var token1 = (_tokensParsed_category1 = tokensParsed[category1]) === null || _tokensParsed_category1 === void 0 ? void 0 : _tokensParsed_category1[name];\n if (token1) return token1;\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n};\n//# sourceMappingURL=variableValue.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;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB;CAC9B,yBAAyB;CACzB,6BAA6B;AAC/B,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,kBAAkB,QAAQ,sBAAY;AAC1C,IAAI,mBAAmB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,wBAAwB,SAAS,KAAK;CACxC,IAAI,QAAQ,IAAI,YAAY;CAC5B,OAAO,iBAAiB,KAAK,SAAS,QAAQ;EAC5C,OAAO,MAAM,SAAS,MAAM;CAC9B,CAAC;AACH;AACA,IAAI,qBAAqB;CACvB;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,oBAAoB,SAAS,cAAc,MAAM;CACnD,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;EACJ,IAAI;EACJ,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,mBAAmB,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IACnK,IAAI,WAAW,MAAM;IACrB,IAAI;IACJ,IAAI,SAAS,yBAAyB,aAAa,eAAe,QAAQ,2BAA2B,KAAK,IAAI,KAAK,IAAI,uBAAuB;IAC9I,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,OAAO;KACV,QAAQ;KACR,gBAAgB;IAClB,OAAO;KACL,CAAC,GAAG,gBAAgB,SAAQ,CAAE,aAAa,QAAQ,wBAAwB,KAAK,gDAAgD,cAAc,uCAAuC;KACrL;IACF;GACF;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;GACR,IAAI;IACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;KAC1D,UAAU,OAAO;IACnB;GACF,UAAU;IACR,IAAI,mBAAmB;KACrB,MAAM;IACR;GACF;EACF;EACA,OAAO;CACT;CACA,IAAI,6BAA6B,MAAM,qBAAqB,OAAO,kBAAkB,KAAK;CAC1F,IAAI;EACF,KAAK,IAAI,aAAa,mBAAmB,OAAO,SAAS,CAAC,GAAG,QAAQ,EAAE,8BAA8B,SAAS,WAAW,KAAK,EAAC,CAAE,OAAO,6BAA6B,MAAM;GACzK,IAAI,YAAY,OAAO;GACvB,IAAI;GACJ,IAAI,UAAU,0BAA0B,aAAa,gBAAgB,QAAQ,4BAA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB;GACnJ,IAAI,QAAQ,OAAO;EACrB;CACF,SAAS,KAAK;EACZ,qBAAqB;EACrB,kBAAkB;CACpB,UAAU;EACR,IAAI;GACF,IAAI,CAAC,8BAA8B,WAAW,UAAU,MAAM;IAC5D,WAAW,OAAO;GACpB;EACF,UAAU;GACR,IAAI,oBAAoB;IACtB,MAAM;GACR;EACF;CACF;AACF"}
|
|
@@ -27,10 +27,11 @@ module.exports = __toCommonJS(warnOnce_exports);
|
|
|
27
27
|
const warnLimit = 500;
|
|
28
28
|
const warned = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ new Set() : null;
|
|
29
29
|
function warnOnce(key, message = key) {
|
|
30
|
-
if (process.env.NODE_ENV
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
if (process.env.NODE_ENV === "development") {
|
|
31
|
+
if (warned?.has(key) || (warned?.size ?? 0) >= warnLimit) return;
|
|
32
|
+
warned?.add(key);
|
|
33
|
+
console.warn(`[tamagui] ${message}`);
|
|
34
|
+
}
|
|
34
35
|
}
|
|
35
36
|
function warnRefusedValue(property, value, reason) {
|
|
36
37
|
warnOnce(`refused:${property}=${value}`, `${property}="${value}" had a segment dropped: ${reason}`);
|
|
@@ -30,10 +30,12 @@ var warnLimit = 500;
|
|
|
30
30
|
var warned = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ new Set() : null;
|
|
31
31
|
function warnOnce(key) {
|
|
32
32
|
var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;
|
|
33
|
-
if (process.env.NODE_ENV
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
if (process.env.NODE_ENV === "development") {
|
|
34
|
+
var _warned_size;
|
|
35
|
+
if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_warned_size = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _warned_size !== void 0 ? _warned_size : 0) >= warnLimit) return;
|
|
36
|
+
warned === null || warned === void 0 ? void 0 : warned.add(key);
|
|
37
|
+
console.warn(`[tamagui] ${message}`);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
function warnRefusedValue(property, value, reason) {
|
|
39
41
|
warnOnce(`refused:${property}=${value}`, `${property}="${value}" had a segment dropped: ${reason}`);
|
|
@@ -30,10 +30,12 @@ var warnLimit = 500;
|
|
|
30
30
|
var warned = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ new Set() : null;
|
|
31
31
|
function warnOnce(key) {
|
|
32
32
|
var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;
|
|
33
|
-
if (process.env.NODE_ENV
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
if (process.env.NODE_ENV === "development") {
|
|
34
|
+
var _warned_size;
|
|
35
|
+
if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_warned_size = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _warned_size !== void 0 ? _warned_size : 0) >= warnLimit) return;
|
|
36
|
+
warned === null || warned === void 0 ? void 0 : warned.add(key);
|
|
37
|
+
console.warn(`[tamagui] ${message}`);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
function warnRefusedValue(property, value, reason) {
|
|
39
41
|
warnOnce(`refused:${property}=${value}`, `${property}="${value}" had a segment dropped: ${reason}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warnOnce.native.js","names":[],"sources":["cjs/helpers/warnOnce.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 warnOnce_exports = {};\n__export(warnOnce_exports, {\n warnOnce: () => warnOnce,\n warnRefusedValue: () => warnRefusedValue\n});\nmodule.exports = __toCommonJS(warnOnce_exports);\nvar warnLimit = 500;\nvar warned = process.env.NODE_ENV !== \"production\" ? /* @__PURE__ */ new Set() : null;\nfunction warnOnce(key) {\n var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;\n if (process.env.NODE_ENV
|
|
1
|
+
{"version":3,"file":"warnOnce.native.js","names":[],"sources":["cjs/helpers/warnOnce.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 warnOnce_exports = {};\n__export(warnOnce_exports, {\n warnOnce: () => warnOnce,\n warnRefusedValue: () => warnRefusedValue\n});\nmodule.exports = __toCommonJS(warnOnce_exports);\nvar warnLimit = 500;\nvar warned = process.env.NODE_ENV !== \"production\" ? /* @__PURE__ */ new Set() : null;\nfunction warnOnce(key) {\n var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;\n if (process.env.NODE_ENV === \"development\") {\n var _warned_size;\n if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_warned_size = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _warned_size !== void 0 ? _warned_size : 0) >= warnLimit) return;\n warned === null || warned === void 0 ? void 0 : warned.add(key);\n console.warn(`[tamagui] ${message}`);\n }\n}\nfunction warnRefusedValue(property, value, reason) {\n warnOnce(`refused:${property}=${value}`, `${property}=\"${value}\" had a segment dropped: ${reason}`);\n}\n//# sourceMappingURL=warnOnce.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;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB;CACzB,gBAAgB;CAChB,wBAAwB;AAC1B,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,YAAY;AAChB,IAAI,SAAS,QAAQ,IAAI,aAAa,+BAA+B,IAAI,IAAI,IAAI;AACjF,SAAS,SAAS,KAAK;CACrB,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC/E,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;EACJ,KAAK,WAAW,QAAQ,WAAW,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,GAAG,QAAQ,eAAe,WAAW,QAAQ,WAAW,KAAK,IAAI,KAAK,IAAI,OAAO,UAAU,QAAQ,iBAAiB,KAAK,IAAI,eAAe,MAAM,WAAW;EAC7N,WAAW,QAAQ,WAAW,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,GAAG;EAC9D,QAAQ,KAAK,aAAa,SAAS;CACrC;AACF;AACA,SAAS,iBAAiB,UAAU,OAAO,QAAQ;CACjD,SAAS,WAAW,SAAS,GAAG,SAAS,GAAG,SAAS,IAAI,MAAM,2BAA2B,QAAQ;AACpG"}
|
|
@@ -31,7 +31,7 @@ var import_ComponentContext = require("../contexts/ComponentContext.cjs");
|
|
|
31
31
|
function useAnimationDriver() {
|
|
32
32
|
const { animationDriver } = (0, import_ComponentContext.useConfiguration)();
|
|
33
33
|
if (!animationDriver || animationDriver.isStub) {
|
|
34
|
-
throw new Error(`No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
|
|
34
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
|
|
35
35
|
}
|
|
36
36
|
return animationDriver;
|
|
37
37
|
}
|
|
@@ -39,7 +39,7 @@ function useAnimatedNumberDriver() {
|
|
|
39
39
|
const driver = useAnimationDriver();
|
|
40
40
|
const animatedDriver = driver;
|
|
41
41
|
if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") {
|
|
42
|
-
throw new Error(`The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css`);
|
|
42
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
|
|
43
43
|
}
|
|
44
44
|
return animatedDriver;
|
|
45
45
|
}
|
|
@@ -33,7 +33,7 @@ var import_ComponentContext = require("../contexts/ComponentContext.native.js");
|
|
|
33
33
|
function useAnimationDriver() {
|
|
34
34
|
var { animationDriver } = (0, import_ComponentContext.useConfiguration)();
|
|
35
35
|
if (!animationDriver || animationDriver.isStub) {
|
|
36
|
-
throw new Error(`No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
|
|
36
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
|
|
37
37
|
}
|
|
38
38
|
return animationDriver;
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@ function useAnimatedNumberDriver() {
|
|
|
41
41
|
var driver = useAnimationDriver();
|
|
42
42
|
var animatedDriver = driver;
|
|
43
43
|
if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") {
|
|
44
|
-
throw new Error(`The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css`);
|
|
44
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
|
|
45
45
|
}
|
|
46
46
|
return animatedDriver;
|
|
47
47
|
}
|
|
@@ -33,7 +33,7 @@ var import_ComponentContext = require("../contexts/ComponentContext.native.js");
|
|
|
33
33
|
function useAnimationDriver() {
|
|
34
34
|
var { animationDriver } = (0, import_ComponentContext.useConfiguration)();
|
|
35
35
|
if (!animationDriver || animationDriver.isStub) {
|
|
36
|
-
throw new Error(`No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
|
|
36
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
|
|
37
37
|
}
|
|
38
38
|
return animationDriver;
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@ function useAnimatedNumberDriver() {
|
|
|
41
41
|
var driver = useAnimationDriver();
|
|
42
42
|
var animatedDriver = driver;
|
|
43
43
|
if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") {
|
|
44
|
-
throw new Error(`The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css`);
|
|
44
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
|
|
45
45
|
}
|
|
46
46
|
return animatedDriver;
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimationDriver.native.js","names":[],"sources":["cjs/hooks/useAnimationDriver.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 useAnimationDriver_exports = {};\n__export(useAnimationDriver_exports, {\n useAnimatedNumber: () => useAnimatedNumber,\n useAnimatedNumberReaction: () => useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => useAnimatedNumbersStyle,\n useAnimationDriver: () => useAnimationDriver\n});\nmodule.exports = __toCommonJS(useAnimationDriver_exports);\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nfunction useAnimationDriver() {\n var { animationDriver } = (0, import_ComponentContext.useConfiguration)();\n if (!animationDriver || animationDriver.isStub) {\n throw new Error(`No animation driver configured. Pass \\`animations\\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);\n }\n return animationDriver;\n}\nfunction useAnimatedNumberDriver() {\n var driver = useAnimationDriver();\n var animatedDriver = driver;\n if (typeof animatedDriver.useAnimatedNumber !== \"function\" || typeof animatedDriver.useAnimatedNumberStyle !== \"function\" || typeof animatedDriver.useAnimatedNumbersStyle !== \"function\" || typeof animatedDriver.useAnimatedNumberReaction !== \"function\") {\n throw new Error(`The configured animation driver does not include animated-number hooks. When using the CSS driver, import \\`createAnimations\\` from \\`@tamagui/animations-css/extras\\` instead of \\`@tamagui/animations-css\\`. See: https://tamagui.dev/docs/core/animations-css`);\n }\n return animatedDriver;\n}\nfunction useAnimatedNumber(initial) {\n return useAnimatedNumberDriver().useAnimatedNumber(initial);\n}\nvar useAnimatedNumberStyle = function(value, getStyle) {\n return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);\n};\nvar useAnimatedNumbersStyle = function(values, getStyle) {\n return useAnimatedNumberDriver().useAnimatedNumbersStyle(values, getStyle);\n};\nvar useAnimatedNumberReaction = function(opts, onValue) {\n return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);\n};\n//# sourceMappingURL=useAnimationDriver.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;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,6BAA6B,CAAC;AAClC,SAAS,4BAA4B;CACnC,yBAAyB;CACzB,iCAAiC;CACjC,8BAA8B;CAC9B,+BAA+B;CAC/B,0BAA0B;AAC5B,CAAC;AACD,OAAO,UAAU,aAAa,0BAA0B;AACxD,IAAI,0BAA0B,QAAQ,wCAA8B;AACpE,SAAS,qBAAqB;CAC5B,IAAI,EAAE,qBAAqB,GAAG,wBAAwB,iBAAgB,CAAE;CACxE,IAAI,CAAC,mBAAmB,gBAAgB,QAAQ;EAC9C,MAAM,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"useAnimationDriver.native.js","names":[],"sources":["cjs/hooks/useAnimationDriver.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 useAnimationDriver_exports = {};\n__export(useAnimationDriver_exports, {\n useAnimatedNumber: () => useAnimatedNumber,\n useAnimatedNumberReaction: () => useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => useAnimatedNumbersStyle,\n useAnimationDriver: () => useAnimationDriver\n});\nmodule.exports = __toCommonJS(useAnimationDriver_exports);\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nfunction useAnimationDriver() {\n var { animationDriver } = (0, import_ComponentContext.useConfiguration)();\n if (!animationDriver || animationDriver.isStub) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `No animation driver configured. Pass \\`animations\\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : \"\\u274C Error 011\");\n }\n return animationDriver;\n}\nfunction useAnimatedNumberDriver() {\n var driver = useAnimationDriver();\n var animatedDriver = driver;\n if (typeof animatedDriver.useAnimatedNumber !== \"function\" || typeof animatedDriver.useAnimatedNumberStyle !== \"function\" || typeof animatedDriver.useAnimatedNumbersStyle !== \"function\" || typeof animatedDriver.useAnimatedNumberReaction !== \"function\") {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \\`createAnimations\\` from \\`@tamagui/animations-css/extras\\` instead of \\`@tamagui/animations-css\\`. See: https://tamagui.dev/docs/core/animations-css` : \"\\u274C Error 012\");\n }\n return animatedDriver;\n}\nfunction useAnimatedNumber(initial) {\n return useAnimatedNumberDriver().useAnimatedNumber(initial);\n}\nvar useAnimatedNumberStyle = function(value, getStyle) {\n return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);\n};\nvar useAnimatedNumbersStyle = function(values, getStyle) {\n return useAnimatedNumberDriver().useAnimatedNumbersStyle(values, getStyle);\n};\nvar useAnimatedNumberReaction = function(opts, onValue) {\n return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);\n};\n//# sourceMappingURL=useAnimationDriver.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;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,6BAA6B,CAAC;AAClC,SAAS,4BAA4B;CACnC,yBAAyB;CACzB,iCAAiC;CACjC,8BAA8B;CAC9B,+BAA+B;CAC/B,0BAA0B;AAC5B,CAAC;AACD,OAAO,UAAU,aAAa,0BAA0B;AACxD,IAAI,0BAA0B,QAAQ,wCAA8B;AACpE,SAAS,qBAAqB;CAC5B,IAAI,EAAE,qBAAqB,GAAG,wBAAwB,iBAAgB,CAAE;CACxE,IAAI,CAAC,mBAAmB,gBAAgB,QAAQ;EAC9C,MAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,wHAAwH,aAAkB;CACpM;CACA,OAAO;AACT;AACA,SAAS,0BAA0B;CACjC,IAAI,SAAS,mBAAmB;CAChC,IAAI,iBAAiB;CACrB,IAAI,OAAO,eAAe,sBAAsB,cAAc,OAAO,eAAe,2BAA2B,cAAc,OAAO,eAAe,4BAA4B,cAAc,OAAO,eAAe,8BAA8B,YAAY;EAC3P,MAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,qQAAqQ,aAAkB;CACjV;CACA,OAAO;AACT;AACA,SAAS,kBAAkB,SAAS;CAClC,OAAO,wBAAwB,CAAC,CAAC,kBAAkB,OAAO;AAC5D;AACA,IAAI,yBAAyB,SAAS,OAAO,UAAU;CACrD,OAAO,wBAAwB,CAAC,CAAC,uBAAuB,OAAO,QAAQ;AACzE;AACA,IAAI,0BAA0B,SAAS,QAAQ,UAAU;CACvD,OAAO,wBAAwB,CAAC,CAAC,wBAAwB,QAAQ,QAAQ;AAC3E;AACA,IAAI,4BAA4B,SAAS,MAAM,SAAS;CACtD,OAAO,wBAAwB,CAAC,CAAC,0BAA0B,MAAM,OAAO;AAC1E"}
|