@tamagui/web 3.0.7 → 3.0.9
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/Tamagui.native.cjs +4 -8
- package/dist/cjs/Tamagui.native.js +4 -8
- package/dist/cjs/Tamagui.native.js.map +1 -1
- package/dist/cjs/_withNativeStyle.cjs +2 -2
- package/dist/cjs/_withNativeStyle.native.cjs +7 -7
- package/dist/cjs/_withNativeStyle.native.js +7 -7
- package/dist/cjs/_withNativeStyle.native.js.map +1 -1
- package/dist/cjs/_withStableStyle.native.cjs +2 -2
- package/dist/cjs/_withStableStyle.native.js +2 -2
- package/dist/cjs/_withStableStyle.native.js.map +1 -1
- package/dist/cjs/config.native.cjs +17 -17
- package/dist/cjs/config.native.js +17 -17
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants/isDevTools.native.cjs +1 -1
- package/dist/cjs/constants/isDevTools.native.js +1 -1
- package/dist/cjs/constants/isDevTools.native.js.map +1 -1
- package/dist/cjs/contexts/ComponentContext.native.cjs +1 -1
- package/dist/cjs/contexts/ComponentContext.native.js +1 -1
- package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
- package/dist/cjs/createComponent.native.cjs +31 -34
- package/dist/cjs/createComponent.native.js +31 -34
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createFont.native.cjs +3 -3
- package/dist/cjs/createFont.native.js +3 -3
- package/dist/cjs/createFont.native.js.map +1 -1
- package/dist/cjs/createTamagui.native.cjs +2 -2
- package/dist/cjs/createTamagui.native.js +2 -2
- package/dist/cjs/createTamagui.native.js.map +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.native.cjs +6 -6
- package/dist/cjs/createVariable.native.js +6 -6
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/createVariables.native.cjs +1 -1
- package/dist/cjs/createVariables.native.js +1 -1
- package/dist/cjs/createVariables.native.js.map +1 -1
- package/dist/cjs/dom/adapters.native.cjs +9 -9
- package/dist/cjs/dom/adapters.native.js +9 -9
- package/dist/cjs/dom/adapters.native.js.map +1 -1
- package/dist/cjs/dom/html.native.cjs +1 -1
- package/dist/cjs/dom/html.native.js +1 -1
- package/dist/cjs/dom/html.native.js.map +1 -1
- package/dist/cjs/dom/htmlRuntime.native.cjs +3 -4
- package/dist/cjs/dom/htmlRuntime.native.js +3 -4
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +10 -10
- package/dist/cjs/dom/primitives.native.js +10 -10
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/dom/standalone.native.cjs +2 -2
- package/dist/cjs/dom/standalone.native.js +2 -2
- package/dist/cjs/dom/standalone.native.js.map +1 -1
- package/dist/cjs/eventHandling.native.cjs +6 -6
- package/dist/cjs/eventHandling.native.js +6 -6
- package/dist/cjs/eventHandling.native.js.map +1 -1
- package/dist/cjs/helpers/configVariables.native.cjs +1 -1
- package/dist/cjs/helpers/configVariables.native.js +1 -1
- package/dist/cjs/helpers/configVariables.native.js.map +1 -1
- package/dist/cjs/helpers/consoleLog.native.cjs +1 -1
- package/dist/cjs/helpers/consoleLog.native.js +1 -1
- package/dist/cjs/helpers/consoleLog.native.js.map +1 -1
- package/dist/cjs/helpers/createStyledContext.native.cjs +4 -4
- package/dist/cjs/helpers/createStyledContext.native.js +4 -4
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/defaultAnimationDriver.native.cjs +5 -5
- package/dist/cjs/helpers/defaultAnimationDriver.native.js +5 -5
- package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.native.cjs +2 -2
- package/dist/cjs/helpers/expandStyle.native.js +2 -2
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +1 -1
- package/dist/cjs/helpers/formatDiagnostic.native.js +1 -1
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.cjs +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.js +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/cjs/helpers/getShorthandValue.native.cjs +2 -2
- package/dist/cjs/helpers/getShorthandValue.native.js +2 -2
- package/dist/cjs/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.cjs +26 -36
- package/dist/cjs/helpers/getSplitStyles.native.js +26 -36
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/grammarConfig.native.cjs +7 -7
- package/dist/cjs/helpers/grammarConfig.native.js +7 -7
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +4 -4
- package/dist/cjs/helpers/insertStyleRule.native.js +4 -4
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/isObj.native.cjs +1 -1
- package/dist/cjs/helpers/isObj.native.js +1 -1
- package/dist/cjs/helpers/isObj.native.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiElement.native.cjs +1 -1
- package/dist/cjs/helpers/isTamaguiElement.native.js +1 -1
- package/dist/cjs/helpers/isTamaguiElement.native.js.map +1 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +2 -2
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +2 -2
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/cjs/helpers/matchMedia.native.cjs +4 -4
- package/dist/cjs/helpers/matchMedia.native.js +4 -4
- package/dist/cjs/helpers/matchMedia.native.js.map +1 -1
- package/dist/cjs/helpers/mediaState.native.cjs +2 -2
- package/dist/cjs/helpers/mediaState.native.js +2 -2
- package/dist/cjs/helpers/mediaState.native.js.map +1 -1
- package/dist/cjs/helpers/mergeProps.native.cjs +3 -3
- package/dist/cjs/helpers/mergeProps.native.js +3 -3
- package/dist/cjs/helpers/mergeProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.native.cjs +3 -3
- package/dist/cjs/helpers/mergeVariants.native.js +3 -3
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +3 -3
- package/dist/cjs/helpers/nativeStyleEngine.native.js +3 -3
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeColor.native.cjs +4 -4
- package/dist/cjs/helpers/normalizeColor.native.js +4 -4
- package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
- package/dist/cjs/helpers/pointerEvents.native.cjs +4 -4
- package/dist/cjs/helpers/pointerEvents.native.js +4 -4
- package/dist/cjs/helpers/pointerEvents.native.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.native.cjs +10 -10
- package/dist/cjs/helpers/registerCSSVariable.native.js +10 -10
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/cjs/helpers/resolveNativeUnits.native.cjs +4 -4
- package/dist/cjs/helpers/resolveNativeUnits.native.js +4 -4
- package/dist/cjs/helpers/resolveNativeUnits.native.js.map +1 -1
- package/dist/cjs/helpers/resolveRem.native.cjs +1 -1
- package/dist/cjs/helpers/resolveRem.native.js +1 -1
- package/dist/cjs/helpers/resolveRem.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.cjs +2 -2
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js +2 -2
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSizing.native.cjs +6 -9
- package/dist/cjs/helpers/resolveSizing.native.js +6 -9
- package/dist/cjs/helpers/resolveSizing.native.js.map +1 -1
- package/dist/cjs/helpers/resolveVariantStyle.native.cjs +2 -2
- package/dist/cjs/helpers/resolveVariantStyle.native.js +2 -2
- package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -1
- package/dist/cjs/helpers/sortString.native.cjs +1 -1
- package/dist/cjs/helpers/sortString.native.js +1 -1
- package/dist/cjs/helpers/sortString.native.js.map +1 -1
- package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +1 -1
- package/dist/cjs/helpers/styleStaticConfigCore.native.js +1 -1
- package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -1
- package/dist/cjs/helpers/styledDynamic.native.cjs +8 -8
- package/dist/cjs/helpers/styledDynamic.native.js +8 -8
- package/dist/cjs/helpers/styledDynamic.native.js.map +1 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +4 -4
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +4 -4
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/cjs/helpers/variableValue.native.cjs +2 -2
- package/dist/cjs/helpers/variableValue.native.js +2 -2
- package/dist/cjs/helpers/variableValue.native.js.map +1 -1
- package/dist/cjs/helpers/variables.native.cjs +19 -19
- package/dist/cjs/helpers/variables.native.js +19 -19
- package/dist/cjs/helpers/variables.native.js.map +1 -1
- package/dist/cjs/helpers/warnOnce.native.cjs +2 -2
- package/dist/cjs/helpers/warnOnce.native.js +2 -2
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.cjs +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.js +1 -1
- package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/cjs/hooks/useAnimationDriver.native.cjs +3 -3
- package/dist/cjs/hooks/useAnimationDriver.native.js +3 -3
- package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.native.cjs +6 -9
- package/dist/cjs/hooks/useComponentState.native.js +6 -9
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useDisableSSR.native.cjs +2 -2
- package/dist/cjs/hooks/useDisableSSR.native.js +2 -2
- package/dist/cjs/hooks/useDisableSSR.native.js.map +1 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.cjs +1 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.js +1 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.native.cjs +3 -3
- package/dist/cjs/hooks/useMedia.native.js +3 -3
- package/dist/cjs/hooks/useMedia.native.js.map +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/useTheme.native.cjs +2 -2
- package/dist/cjs/hooks/useTheme.native.js +2 -2
- package/dist/cjs/hooks/useTheme.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeName.native.cjs +1 -1
- package/dist/cjs/hooks/useThemeName.native.js +1 -1
- package/dist/cjs/hooks/useThemeName.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.native.cjs +21 -21
- package/dist/cjs/hooks/useThemeState.native.js +21 -21
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/inject-styles.native.cjs +1 -1
- package/dist/cjs/inject-styles.native.js +1 -1
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/internal-runtime.native.cjs +1 -1
- package/dist/cjs/internal-runtime.native.js +1 -1
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.native.cjs +7 -7
- package/dist/cjs/static-resolve.native.js +7 -7
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/styled.native.cjs +2 -2
- package/dist/cjs/styled.native.js +2 -2
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.cjs +1 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.js +1 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.js.map +1 -1
- package/dist/cjs/views/Configuration.native.cjs +2 -2
- package/dist/cjs/views/Configuration.native.js +2 -2
- package/dist/cjs/views/Configuration.native.js.map +1 -1
- package/dist/cjs/views/Slot.native.cjs +1 -1
- package/dist/cjs/views/Slot.native.js +1 -1
- package/dist/cjs/views/Slot.native.js.map +1 -1
- package/dist/cjs/views/ThemeProvider.native.cjs +1 -1
- package/dist/cjs/views/ThemeProvider.native.js +1 -1
- package/dist/cjs/views/ThemeProvider.native.js.map +1 -1
- package/dist/esm/Tamagui.native.js +4 -8
- package/dist/esm/Tamagui.native.js.map +1 -1
- package/dist/esm/_withNativeStyle.mjs +2 -2
- package/dist/esm/_withNativeStyle.mjs.map +1 -1
- package/dist/esm/_withNativeStyle.native.js +7 -7
- package/dist/esm/_withNativeStyle.native.js.map +1 -1
- package/dist/esm/_withStableStyle.native.js +2 -2
- package/dist/esm/_withStableStyle.native.js.map +1 -1
- package/dist/esm/config.native.js +17 -17
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants/isDevTools.native.js +1 -1
- package/dist/esm/constants/isDevTools.native.js.map +1 -1
- package/dist/esm/contexts/ComponentContext.native.js +1 -1
- package/dist/esm/contexts/ComponentContext.native.js.map +1 -1
- package/dist/esm/createComponent.native.js +31 -34
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createFont.native.js +3 -3
- package/dist/esm/createFont.native.js.map +1 -1
- package/dist/esm/createTamagui.native.js +2 -2
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/createTokens.native.js +1 -1
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/createVariable.native.js +6 -6
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/createVariables.native.js +1 -1
- package/dist/esm/createVariables.native.js.map +1 -1
- package/dist/esm/dom/adapters.native.js +9 -9
- package/dist/esm/dom/adapters.native.js.map +1 -1
- package/dist/esm/dom/html.native.js +1 -1
- package/dist/esm/dom/html.native.js.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +3 -4
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +10 -10
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/dom/standalone.native.js +2 -2
- package/dist/esm/dom/standalone.native.js.map +1 -1
- package/dist/esm/eventHandling.native.js +6 -6
- package/dist/esm/eventHandling.native.js.map +1 -1
- package/dist/esm/helpers/configVariables.native.js +1 -1
- package/dist/esm/helpers/configVariables.native.js.map +1 -1
- package/dist/esm/helpers/consoleLog.native.js +1 -1
- package/dist/esm/helpers/consoleLog.native.js.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js +4 -4
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.native.js +5 -5
- package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/expandStyle.native.js +2 -2
- package/dist/esm/helpers/expandStyle.native.js.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.native.js +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js +1 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/esm/helpers/getShorthandValue.native.js +2 -2
- package/dist/esm/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +26 -36
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/grammarConfig.native.js +7 -7
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +3 -3
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/isObj.native.js +1 -1
- package/dist/esm/helpers/isObj.native.js.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.native.js +1 -1
- package/dist/esm/helpers/isTamaguiElement.native.js.map +1 -1
- package/dist/esm/helpers/mainThreadPressEvents.native.js +2 -2
- package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/esm/helpers/matchMedia.native.js +4 -4
- package/dist/esm/helpers/matchMedia.native.js.map +1 -1
- package/dist/esm/helpers/mediaState.native.js +2 -2
- package/dist/esm/helpers/mediaState.native.js.map +1 -1
- package/dist/esm/helpers/mergeProps.native.js +3 -3
- package/dist/esm/helpers/mergeProps.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +3 -3
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.native.js +3 -3
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/esm/helpers/normalizeColor.native.js +4 -4
- package/dist/esm/helpers/normalizeColor.native.js.map +1 -1
- package/dist/esm/helpers/pointerEvents.native.js +4 -4
- package/dist/esm/helpers/pointerEvents.native.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.native.js +10 -10
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/esm/helpers/resolveNativeUnits.native.js +4 -4
- package/dist/esm/helpers/resolveNativeUnits.native.js.map +1 -1
- package/dist/esm/helpers/resolveRem.native.js +1 -1
- package/dist/esm/helpers/resolveRem.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeAreaVariable.native.js +2 -2
- package/dist/esm/helpers/resolveSafeAreaVariable.native.js.map +1 -1
- package/dist/esm/helpers/resolveSizing.native.js +6 -9
- package/dist/esm/helpers/resolveSizing.native.js.map +1 -1
- package/dist/esm/helpers/resolveVariantStyle.native.js +2 -2
- package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -1
- package/dist/esm/helpers/sortString.native.js +1 -1
- package/dist/esm/helpers/sortString.native.js.map +1 -1
- package/dist/esm/helpers/styleStaticConfigCore.native.js +1 -1
- package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -1
- package/dist/esm/helpers/styledDynamic.native.js +8 -8
- package/dist/esm/helpers/styledDynamic.native.js.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js +4 -4
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/esm/helpers/variableValue.native.js +2 -2
- package/dist/esm/helpers/variableValue.native.js.map +1 -1
- package/dist/esm/helpers/variables.native.js +19 -19
- package/dist/esm/helpers/variables.native.js.map +1 -1
- package/dist/esm/helpers/warnOnce.native.js +2 -2
- package/dist/esm/helpers/warnOnce.native.js.map +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.native.js +3 -3
- package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +6 -9
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useDisableSSR.native.js +2 -2
- package/dist/esm/hooks/useDisableSSR.native.js.map +1 -1
- package/dist/esm/hooks/useIsTouchDevice.native.js +1 -1
- package/dist/esm/hooks/useIsTouchDevice.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +3 -3
- package/dist/esm/hooks/useMedia.native.js.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/useTheme.native.js +2 -2
- package/dist/esm/hooks/useTheme.native.js.map +1 -1
- package/dist/esm/hooks/useThemeName.native.js +1 -1
- package/dist/esm/hooks/useThemeName.native.js.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +21 -21
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/inject-styles.native.js +1 -1
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/esm/internal-runtime.native.js +1 -1
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.native.js +7 -7
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/styled.native.js +2 -2
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/views/ConfigRevisionCheck.native.js +1 -1
- package/dist/esm/views/ConfigRevisionCheck.native.js.map +1 -1
- package/dist/esm/views/Configuration.native.js +2 -2
- package/dist/esm/views/Configuration.native.js.map +1 -1
- package/dist/esm/views/Slot.native.js +1 -1
- package/dist/esm/views/Slot.native.js.map +1 -1
- package/dist/esm/views/ThemeProvider.native.js +1 -1
- package/dist/esm/views/ThemeProvider.native.js.map +1 -1
- package/package.json +17 -17
- package/src/_withNativeStyle.tsx +5 -7
- package/types/_withNativeStyle.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.native.js","names":[],"sources":["cjs/config.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 config_exports = {};\n__export(config_exports, {\n devConfig: () => devConfig,\n getConfig: () => getConfig,\n getConfigMaybe: () => getConfigMaybe,\n getFont: () => getFont,\n getSetting: () => getSetting,\n getStyleCompat: () => getStyleCompat,\n getThemes: () => getThemes,\n getToken: () => getToken,\n getTokenObject: () => getTokenObject,\n getTokenValue: () => getTokenValue,\n getTokens: () => getTokens,\n loadAnimationDriver: () => loadAnimationDriver,\n setConfig: () => setConfig,\n setConfigFont: () => setConfigFont,\n setTokens: () => setTokens,\n setupDev: () => setupDev,\n updateConfig: () => updateConfig,\n useTokens: () => useTokens\n});\nmodule.exports = __toCommonJS(config_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_constants2 = require(\"./constants/constants\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_grammarConfig = require(\"./helpers/grammarConfig\");\nvar conf;\nvar setConfigCalledByThisInstance = false;\nvar haventCalledErrorMessage = process.env.NODE_ENV === \"development\" ? `\nHaven't called createTamagui yet. ${import_constants2.MISSING_THEME_MESSAGE}\n` : `\\u274C Error 001`;\nvar getConfigFromGlobalOrLocal = function() {\n if (conf) {\n return conf;\n }\n if (globalThis.__tamaguiConfig) {\n if (process.env.NODE_ENV === \"development\" && globalThis.__tamaguiEvaluationConfig !== globalThis.__tamaguiConfig && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck) {\n globalThis.__tamaguiPendingCheck = true;\n setTimeout(function() {\n if (!setConfigCalledByThisInstance && !globalThis.__tamaguiHasWarnedGlobalFallback) {\n globalThis.__tamaguiHasWarnedGlobalFallback = true;\n console.warn(`\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\n\nTamagui: Using global config fallback. This may indicate duplicate tamagui instances (e.g., from Vite SSR bundling). This is handled automatically, but likely causes issues!\n\n\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F`);\n }\n globalThis.__tamaguiPendingCheck = false;\n }, 500);\n }\n return globalThis.__tamaguiConfig;\n }\n return null;\n};\nvar getSetting = function(key) {\n var config = getConfigFromGlobalOrLocal();\n if (process.env.NODE_ENV === \"development\") {\n if (!config) throw new Error(haventCalledErrorMessage);\n }\n return config.settings[key];\n};\nfunction getStyleCompat() {\n var _config_settings;\n var config = getConfigFromGlobalOrLocal();\n return (config === null || config === void 0 ? void 0 : (_config_settings = config.settings) === null || _config_settings === void 0 ? void 0 : _config_settings.styleCompat) || \"web\";\n}\nvar setConfig = function(next) {\n setConfigCalledByThisInstance = true;\n var previous = conf;\n var previousGlobal = globalThis.__tamaguiConfig;\n (0, import_grammarConfig.prepareConfigRevision)(next);\n if (conf !== previous || globalThis.__tamaguiConfig !== previousGlobal) return;\n conf = next;\n globalThis.__tamaguiConfig = next;\n if (process.env.TAMAGUI_ENVIRONMENT === \"tamagui\") {\n globalThis.__tamaguiEvaluationConfig = next;\n }\n};\nvar setConfigFont = function(name, font, fontParsed) {\n var config = getConfigFromGlobalOrLocal();\n if (process.env.NODE_ENV === \"development\") {\n if (!config) throw new Error(haventCalledErrorMessage);\n }\n config.fonts[name] = font;\n config.fontsParsed[name] = fontParsed;\n (0, import_grammarConfig.prepareConfigRevision)(config);\n};\nvar getConfig = function() {\n var config = getConfigFromGlobalOrLocal();\n if (!config) {\n throw new Error((0, import_formatDiagnostic.formatDiagnostic)(\"Err0\", \"TamaguiConfig\", \"no config is available\", \"Call createTamagui before rendering and deduplicate Tamagui package versions\", \"config\", config));\n }\n return config;\n};\nvar getConfigMaybe = function() {\n return getConfigFromGlobalOrLocal();\n};\nvar tokens;\nfunction setTokens(next) {\n tokens = next;\n}\nvar getTokensParsed = function() {\n var _getConfigFromGlobalOrLocal;\n var _getConfigFromGlobalOrLocal_tokensParsed;\n return (_getConfigFromGlobalOrLocal_tokensParsed = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _getConfigFromGlobalOrLocal_tokensParsed !== void 0 ? _getConfigFromGlobalOrLocal_tokensParsed : tokens;\n};\nvar getTokens = function() {\n if (process.env.NODE_ENV === \"development\") {\n if (!getConfigFromGlobalOrLocal()) throw new Error(haventCalledErrorMessage);\n }\n return getTokensParsed();\n};\nvar getTokenObject = function(value, group) {\n var _tokens_group, _tokens_;\n var tokens2 = getTokensParsed();\n return group ? (_tokens_group = tokens2[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[value] : (_tokens_ = tokens2[Object.keys(tokens2).find(function(cat) {\n return tokens2[cat][value];\n }) || \"\"]) === null || _tokens_ === void 0 ? void 0 : _tokens_[value];\n};\nvar getToken = function(value, group) {\n var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb;\n var token = getTokenObject(value, group);\n return useVariable ? token === null || token === void 0 ? void 0 : token.variable : token === null || token === void 0 ? void 0 : token.val;\n};\nvar getTokenValue = function(value, group) {\n if (value === \"unset\" || value === \"auto\") return;\n return getToken(value, group, false);\n};\nvar useTokens = getTokens;\nvar getThemes = function() {\n return getConfigFromGlobalOrLocal().themes;\n};\nvar updateConfig = function(key, value) {\n var config = getConfigFromGlobalOrLocal();\n if (!config || key === \"__proto__\" || !(key in config)) {\n return;\n }\n Object.assign(config[key], value);\n (0, import_grammarConfig.prepareConfigRevision)(config);\n};\nvar getFont = function(name) {\n var _Object_entries_find;\n var conf2 = getConfig();\n var _conf_fontsParsed_name;\n return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {\n var [k] = param;\n var _conf_fontsParsed_k_family, _conf_fontsParsed_k;\n return ((_conf_fontsParsed_k = conf2.fontsParsed[k]) === null || _conf_fontsParsed_k === void 0 ? void 0 : (_conf_fontsParsed_k_family = _conf_fontsParsed_k.family) === null || _conf_fontsParsed_k_family === void 0 ? void 0 : _conf_fontsParsed_k_family[\"val\"]) === name;\n })) === null || _Object_entries_find === void 0 ? void 0 : _Object_entries_find[1];\n};\nvar devConfig;\nfunction setupDev(conf2) {\n if (process.env.NODE_ENV === \"development\") {\n devConfig = conf2;\n }\n}\nfunction loadAnimationDriver(name, driver) {\n var config = getConfigFromGlobalOrLocal();\n if (!config) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"loadAnimationDriver called before createTamagui\");\n }\n return;\n }\n if (config.animations && !(\"default\" in config.animations)) {\n ;\n config.animations = {\n default: config.animations\n };\n }\n if (config.animations) {\n ;\n config.animations[name] = driver;\n } else {\n ;\n config.animations = {\n default: driver,\n [name]: driver\n };\n }\n}\n//# sourceMappingURL=config.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,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,iBAAiB;CACjB,iBAAiB;CACjB,sBAAsB;CACtB,eAAe;CACf,kBAAkB;CAClB,sBAAsB;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M,WAAW,CAAC,CAAC,KAAK,SAAS,OAAO;EAChN,IAAI,CAAC,KAAK;EACV,IAAI,4BAA4B;EAChC,SAAS,sBAAsB,MAAM,YAAY,QAAQ,QAAQ,wBAAwB,KAAK,IAAI,KAAK,KAAK,6BAA6B,oBAAoB,YAAY,QAAQ,+BAA+B,KAAK,IAAI,KAAK,IAAI,2BAA2B,YAAY;CAC3Q,CAAC,OAAO,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB;AAClF;AACA,IAAI;AACJ,SAAS,SAAS,OAAO;CACvB,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,YAAY;CACd;AACF;AACA,SAAS,oBAAoB,MAAM,QAAQ;CACzC,IAAI,SAAS,2BAA2B;CACxC,IAAI,CAAC,QAAQ;EACX,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,iDAAiD;EAChE;EACA;CACF;CACA,IAAI,OAAO,cAAc,EAAE,aAAa,OAAO,aAAa;EAC1D;EACA,OAAO,aAAa,EAClB,SAAS,OAAO,WAClB;CACF;CACA,IAAI,OAAO,YAAY;EACrB;EACA,OAAO,WAAW,QAAQ;CAC5B,OAAO;EACL;EACA,OAAO,aAAa;GAClB,SAAS;IACR,OAAO;EACV;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"config.native.js","names":[],"sources":["cjs/config.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 config_exports = {};\n__export(config_exports, {\n devConfig: () => devConfig,\n getConfig: () => getConfig,\n getConfigMaybe: () => getConfigMaybe,\n getFont: () => getFont,\n getSetting: () => getSetting,\n getStyleCompat: () => getStyleCompat,\n getThemes: () => getThemes,\n getToken: () => getToken,\n getTokenObject: () => getTokenObject,\n getTokenValue: () => getTokenValue,\n getTokens: () => getTokens,\n loadAnimationDriver: () => loadAnimationDriver,\n setConfig: () => setConfig,\n setConfigFont: () => setConfigFont,\n setTokens: () => setTokens,\n setupDev: () => setupDev,\n updateConfig: () => updateConfig,\n useTokens: () => useTokens\n});\nmodule.exports = __toCommonJS(config_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_constants2 = require(\"./constants/constants\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_grammarConfig = require(\"./helpers/grammarConfig\");\nvar conf;\nvar setConfigCalledByThisInstance = false;\nvar haventCalledErrorMessage = process.env.NODE_ENV === \"development\" ? `\nHaven't called createTamagui yet. ${import_constants2.MISSING_THEME_MESSAGE}\n` : `\\u274C Error 001`;\nvar getConfigFromGlobalOrLocal = function getConfigFromGlobalOrLocal2() {\n if (conf) {\n return conf;\n }\n if (globalThis.__tamaguiConfig) {\n if (process.env.NODE_ENV === \"development\" && globalThis.__tamaguiEvaluationConfig !== globalThis.__tamaguiConfig && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck) {\n globalThis.__tamaguiPendingCheck = true;\n setTimeout(function() {\n if (!setConfigCalledByThisInstance && !globalThis.__tamaguiHasWarnedGlobalFallback) {\n globalThis.__tamaguiHasWarnedGlobalFallback = true;\n console.warn(`\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\n\nTamagui: Using global config fallback. This may indicate duplicate tamagui instances (e.g., from Vite SSR bundling). This is handled automatically, but likely causes issues!\n\n\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F\\u26A0\\uFE0F`);\n }\n globalThis.__tamaguiPendingCheck = false;\n }, 500);\n }\n return globalThis.__tamaguiConfig;\n }\n return null;\n};\nvar getSetting = function getSetting2(key) {\n var config = getConfigFromGlobalOrLocal();\n if (process.env.NODE_ENV === \"development\") {\n if (!config) throw new Error(haventCalledErrorMessage);\n }\n return config.settings[key];\n};\nfunction getStyleCompat() {\n var _config_settings;\n var config = getConfigFromGlobalOrLocal();\n return (config === null || config === void 0 ? void 0 : (_config_settings = config.settings) === null || _config_settings === void 0 ? void 0 : _config_settings.styleCompat) || \"web\";\n}\nvar setConfig = function setConfig2(next) {\n setConfigCalledByThisInstance = true;\n var previous = conf;\n var previousGlobal = globalThis.__tamaguiConfig;\n (0, import_grammarConfig.prepareConfigRevision)(next);\n if (conf !== previous || globalThis.__tamaguiConfig !== previousGlobal) return;\n conf = next;\n globalThis.__tamaguiConfig = next;\n if (process.env.TAMAGUI_ENVIRONMENT === \"tamagui\") {\n globalThis.__tamaguiEvaluationConfig = next;\n }\n};\nvar setConfigFont = function setConfigFont2(name, font, fontParsed) {\n var config = getConfigFromGlobalOrLocal();\n if (process.env.NODE_ENV === \"development\") {\n if (!config) throw new Error(haventCalledErrorMessage);\n }\n config.fonts[name] = font;\n config.fontsParsed[name] = fontParsed;\n (0, import_grammarConfig.prepareConfigRevision)(config);\n};\nvar getConfig = function getConfig2() {\n var config = getConfigFromGlobalOrLocal();\n if (!config) {\n throw new Error((0, import_formatDiagnostic.formatDiagnostic)(\"Err0\", \"TamaguiConfig\", \"no config is available\", \"Call createTamagui before rendering and deduplicate Tamagui package versions\", \"config\", config));\n }\n return config;\n};\nvar getConfigMaybe = function getConfigMaybe2() {\n return getConfigFromGlobalOrLocal();\n};\nvar tokens;\nfunction setTokens(next) {\n tokens = next;\n}\nvar getTokensParsed = function getTokensParsed2() {\n var _ref;\n var _getConfigFromGlobalOrLocal;\n return (_ref = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _ref !== void 0 ? _ref : tokens;\n};\nvar getTokens = function getTokens2() {\n if (process.env.NODE_ENV === \"development\") {\n if (!getConfigFromGlobalOrLocal()) throw new Error(haventCalledErrorMessage);\n }\n return getTokensParsed();\n};\nvar getTokenObject = function getTokenObject2(value, group) {\n var _tokens_group, _tokens_;\n var tokens2 = getTokensParsed();\n return group ? (_tokens_group = tokens2[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[value] : (_tokens_ = tokens2[Object.keys(tokens2).find(function(cat) {\n return tokens2[cat][value];\n }) || \"\"]) === null || _tokens_ === void 0 ? void 0 : _tokens_[value];\n};\nvar getToken = function getToken2(value, group) {\n var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants.isWeb;\n var token = getTokenObject(value, group);\n return useVariable ? token === null || token === void 0 ? void 0 : token.variable : token === null || token === void 0 ? void 0 : token.val;\n};\nvar getTokenValue = function getTokenValue2(value, group) {\n if (value === \"unset\" || value === \"auto\") return;\n return getToken(value, group, false);\n};\nvar useTokens = getTokens;\nvar getThemes = function getThemes2() {\n return getConfigFromGlobalOrLocal().themes;\n};\nvar updateConfig = function updateConfig2(key, value) {\n var config = getConfigFromGlobalOrLocal();\n if (!config || key === \"__proto__\" || !(key in config)) {\n return;\n }\n Object.assign(config[key], value);\n (0, import_grammarConfig.prepareConfigRevision)(config);\n};\nvar getFont = function getFont2(name) {\n var _conf_fontsParsed_name;\n var _Object_entries_find;\n var conf2 = getConfig();\n return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {\n var [k] = param;\n var _conf_fontsParsed_k_family, _conf_fontsParsed_k;\n return ((_conf_fontsParsed_k = conf2.fontsParsed[k]) === null || _conf_fontsParsed_k === void 0 ? void 0 : (_conf_fontsParsed_k_family = _conf_fontsParsed_k.family) === null || _conf_fontsParsed_k_family === void 0 ? void 0 : _conf_fontsParsed_k_family[\"val\"]) === name;\n })) === null || _Object_entries_find === void 0 ? void 0 : _Object_entries_find[1];\n};\nvar devConfig;\nfunction setupDev(conf2) {\n if (process.env.NODE_ENV === \"development\") {\n devConfig = conf2;\n }\n}\nfunction loadAnimationDriver(name, driver) {\n var config = getConfigFromGlobalOrLocal();\n if (!config) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"loadAnimationDriver called before createTamagui\");\n }\n return;\n }\n if (config.animations && !(\"default\" in config.animations)) {\n ;\n config.animations = {\n default: config.animations\n };\n }\n if (config.animations) {\n ;\n config.animations[name] = driver;\n } else {\n ;\n config.animations = {\n default: driver,\n [name]: driver\n };\n }\n}\n//# sourceMappingURL=config.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,c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AAO,MAAM,KAAK;CAChC,CAAC,GAAG,qBAAqB,sBAAqB,CAAE,MAAM;AACxD;AACA,IAAI,UAAU,SAAS,SAAS,MAAM;CACpC,IAAI;CACJ,IAAI;CACJ,IAAI,QAAQ,UAAU;CACtB,QAAQ,yBAAyB,MAAM,YAAY,WAAW,QAAQ,2BAA2B,KAAK,IAAI,0BAA0B,uBAAuB,OAAO,QAAQ,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,OAAO;EAChN,IAAI,CAAC,KAAK;EACV,IAAI,4BAA4B;EAChC,SAAS,sBAAsB,MAAM,YAAY,QAAQ,QAAQ,wBAAwB,KAAK,IAAI,KAAK,KAAK,6BAA6B,oBAAoB,YAAY,QAAQ,+BAA+B,KAAK,IAAI,KAAK,IAAI,2BAA2B,YAAY;CAC3Q,CAAC,OAAO,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB;AAClF;AACA,IAAI;AACJ,SAAS,SAAS,OAAO;CACvB,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,YAAY;CACd;AACF;AACA,SAAS,oBAAoB,MAAM,QAAQ;CACzC,IAAI,SAAS,2BAA2B;CACxC,IAAI,CAAC,QAAQ;EACX,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,iDAAiD;EAChE;EACA;CACF;CACA,IAAI,OAAO,cAAc,EAAE,aAAa,OAAO,aAAa;EAC1D;EACA,OAAO,aAAa,EAClB,SAAS,OAAO,WAClB;CACF;CACA,IAAI,OAAO,YAAY;EACrB;EACA,OAAO,WAAW,QAAQ;CAC5B,OAAO;EACL;EACA,OAAO,aAAa;GAClB,SAAS;IACR,OAAO;EACV;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDevTools.native.js","names":[],"sources":["cjs/constants/isDevTools.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 isDevTools_exports = {};\n__export(isDevTools_exports, {\n isDevTools: () => isDevTools\n});\nmodule.exports = __toCommonJS(isDevTools_exports);\nvar isDevTools = (function() {\n if (process.env.NODE_ENV === \"development\") {\n try {\n return new Function(\"try {return this===window;}catch(e){ return false;}\")();\n } catch (
|
|
1
|
+
{"version":3,"file":"isDevTools.native.js","names":[],"sources":["cjs/constants/isDevTools.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 isDevTools_exports = {};\n__export(isDevTools_exports, {\n isDevTools: () => isDevTools\n});\nmodule.exports = __toCommonJS(isDevTools_exports);\nvar isDevTools = (function() {\n if (process.env.NODE_ENV === \"development\") {\n try {\n return new Function(\"try {return this===window;}catch(e){ return false;}\")();\n } catch (unused) {\n }\n }\n return false;\n})();\n//# sourceMappingURL=isDevTools.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,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,cAAc,WAAW;CAC3B,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;GACF,OAAO,IAAI,SAAS,qDAAqD,CAAC,CAAC;EAC7E,SAAS,QAAQ,CACjB;CACF;CACA,OAAO;AACT,EAAC,CAAE"}
|
|
@@ -52,6 +52,6 @@ var ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
|
52
52
|
setParentFocusState: null,
|
|
53
53
|
insets: null
|
|
54
54
|
}, { keys: componentContextKeys });
|
|
55
|
-
var useConfiguration = function() {
|
|
55
|
+
var useConfiguration = function useConfiguration2() {
|
|
56
56
|
return (0, import_react.useContext)(ComponentContext);
|
|
57
57
|
};
|
|
@@ -52,7 +52,7 @@ var ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
|
52
52
|
setParentFocusState: null,
|
|
53
53
|
insets: null
|
|
54
54
|
}, { keys: componentContextKeys });
|
|
55
|
-
var useConfiguration = function() {
|
|
55
|
+
var useConfiguration = function useConfiguration2() {
|
|
56
56
|
return (0, import_react.useContext)(ComponentContext);
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentContext.native.js","names":[],"sources":["cjs/contexts/ComponentContext.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 ComponentContext_exports = {};\n__export(ComponentContext_exports, {\n\tComponentContext: () => ComponentContext,\n\tuseConfiguration: () => useConfiguration\n});\nmodule.exports = __toCommonJS(ComponentContext_exports);\nvar import_react = require(\"react\");\nvar import_createStyledContext = require(\"../helpers/createStyledContext\");\nvar componentContextKeys = [\n\t\"disableSSR\",\n\t\"inText\",\n\t...[\n\t\t\"parentFontSize\",\n\t\t\"parentLineHeight\",\n\t\t\"animatedText\"\n\t],\n\t\"language\",\n\t\"animationDriver\",\n\t\"setParentFocusState\",\n\t\"insets\"\n];\nvar ComponentContext = (0, import_createStyledContext.createStyledContext)({\n\tdisableSSR: void 0,\n\tinText: false,\n\tparentFontSize: void 0,\n\tparentLineHeight: void 0,\n\tanimatedText: null,\n\tlanguage: null,\n\tanimationDriver: null,\n\tsetParentFocusState: null,\n\tinsets: null\n}, { keys: componentContextKeys });\nvar useConfiguration = function() {\n\treturn (0, import_react.useContext)(ComponentContext);\n};\n//# sourceMappingURL=ComponentContext.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,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,2BAA2B,CAAC;AAChC,SAAS,0BAA0B;CAClC,wBAAwB;CACxB,wBAAwB;AACzB,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,6BAA6B,QAAQ,0CAAgC;AACzE,IAAI,uBAAuB;CAC1B;CACA;CACA,GAAG;EACF;EACA;EACA;CACD;CACA;CACA;CACA;CACA;AACD;AACA,IAAI,oBAAoB,GAAG,2BAA2B,oBAAmB,CAAE;CAC1E,YAAY,KAAK;CACjB,QAAQ;CACR,gBAAgB,KAAK;CACrB,kBAAkB,KAAK;CACvB,cAAc;CACd,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,QAAQ;AACT,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACjC,IAAI,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ComponentContext.native.js","names":[],"sources":["cjs/contexts/ComponentContext.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 ComponentContext_exports = {};\n__export(ComponentContext_exports, {\n\tComponentContext: () => ComponentContext,\n\tuseConfiguration: () => useConfiguration\n});\nmodule.exports = __toCommonJS(ComponentContext_exports);\nvar import_react = require(\"react\");\nvar import_createStyledContext = require(\"../helpers/createStyledContext\");\nvar componentContextKeys = [\n\t\"disableSSR\",\n\t\"inText\",\n\t...[\n\t\t\"parentFontSize\",\n\t\t\"parentLineHeight\",\n\t\t\"animatedText\"\n\t],\n\t\"language\",\n\t\"animationDriver\",\n\t\"setParentFocusState\",\n\t\"insets\"\n];\nvar ComponentContext = (0, import_createStyledContext.createStyledContext)({\n\tdisableSSR: void 0,\n\tinText: false,\n\tparentFontSize: void 0,\n\tparentLineHeight: void 0,\n\tanimatedText: null,\n\tlanguage: null,\n\tanimationDriver: null,\n\tsetParentFocusState: null,\n\tinsets: null\n}, { keys: componentContextKeys });\nvar useConfiguration = function useConfiguration2() {\n\treturn (0, import_react.useContext)(ComponentContext);\n};\n//# sourceMappingURL=ComponentContext.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,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,2BAA2B,CAAC;AAChC,SAAS,0BAA0B;CAClC,wBAAwB;CACxB,wBAAwB;AACzB,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,6BAA6B,QAAQ,0CAAgC;AACzE,IAAI,uBAAuB;CAC1B;CACA;CACA,GAAG;EACF;EACA;EACA;CACD;CACA;CACA;CACA;CACA;AACD;AACA,IAAI,oBAAoB,GAAG,2BAA2B,oBAAmB,CAAE;CAC1E,YAAY,KAAK;CACjB,QAAQ;CACR,gBAAgB,KAAK;CACrB,kBAAkB,KAAK;CACvB,cAAc;CACd,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,QAAQ;AACT,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACjC,IAAI,mBAAmB,SAAS,oBAAoB;CACnD,QAAQ,GAAG,aAAa,WAAU,CAAE,gBAAgB;AACrD"}
|
|
@@ -122,10 +122,10 @@ function createComponent(staticConfig) {
|
|
|
122
122
|
var { Component, isText, isHOC } = staticConfig;
|
|
123
123
|
var res;
|
|
124
124
|
var { displayName } = staticConfig;
|
|
125
|
-
var component = function(propsInWithRef) {
|
|
125
|
+
var component = function component2(propsInWithRef) {
|
|
126
126
|
"use no memo";
|
|
127
|
+
var _stateRef_current, _avoidReRenders, _ref, _ref1;
|
|
127
128
|
var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
|
|
128
|
-
var _stateRef_current;
|
|
129
129
|
var forwardedRef = propsInWithRef.ref;
|
|
130
130
|
var propsIn = propsInWithRef;
|
|
131
131
|
config = config || (0, import_config.getConfig)();
|
|
@@ -186,14 +186,14 @@ function createComponent(staticConfig) {
|
|
|
186
186
|
if (process.env.NODE_ENV === "development" && import_constants.isClient) import_react.default.useEffect(function() {
|
|
187
187
|
var node;
|
|
188
188
|
var overlay = null;
|
|
189
|
-
var remove = function() {
|
|
189
|
+
var remove = function remove2() {
|
|
190
190
|
if (overlay) try {
|
|
191
191
|
var _overlay_parentNode;
|
|
192
192
|
(_overlay_parentNode = overlay.parentNode) === null || _overlay_parentNode === void 0 || _overlay_parentNode.removeChild(overlay);
|
|
193
193
|
overlay = null;
|
|
194
|
-
} catch (
|
|
194
|
+
} catch (unused) {}
|
|
195
195
|
};
|
|
196
|
-
var debugVisualizerHandler = function() {
|
|
196
|
+
var debugVisualizerHandler = function debugVisualizerHandler2() {
|
|
197
197
|
var show = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
198
198
|
node = stateRef.current.host;
|
|
199
199
|
if (!node) return;
|
|
@@ -233,12 +233,12 @@ function createComponent(staticConfig) {
|
|
|
233
233
|
}, [displayName]);
|
|
234
234
|
var groupContextParent = import_react.default.useContext(import_GroupContext.GroupContext);
|
|
235
235
|
var animationDriver = (function() {
|
|
236
|
+
var _ref9, _componentContext_animationDriver;
|
|
236
237
|
if (props.animatedBy && config) {
|
|
237
238
|
if (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;
|
|
238
239
|
return props.animatedBy === "default" ? config.animations : null;
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
return (_ref5 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref5 !== void 0 ? _ref5 : null;
|
|
241
|
+
return (_ref9 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref9 !== void 0 ? _ref9 : null;
|
|
242
242
|
})();
|
|
243
243
|
var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
|
|
244
244
|
var componentState = (0, import_useComponentState.useComponentState)(props, (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig, config);
|
|
@@ -246,7 +246,6 @@ function createComponent(staticConfig) {
|
|
|
246
246
|
var { groupName } = componentState;
|
|
247
247
|
var { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;
|
|
248
248
|
props = componentState.props;
|
|
249
|
-
var _avoidReRenders;
|
|
250
249
|
(_avoidReRenders = (_stateRef_current = stateRef.current).avoidReRenders) !== null && _avoidReRenders !== void 0 || (_stateRef_current.avoidReRenders = !!(animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders));
|
|
251
250
|
if (stateRef.current.avoidReRenders) (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
252
251
|
var emitted = stateRef.current.prevPseudoState;
|
|
@@ -296,9 +295,9 @@ function createComponent(staticConfig) {
|
|
|
296
295
|
var _stateRef_current1;
|
|
297
296
|
themeStateProps.deopt = willBeAnimated;
|
|
298
297
|
themeStateProps.nativeUpdate = (_stateRef_current1 = stateRef.current).nativeUpdateProxy || (_stateRef_current1.nativeUpdateProxy = function(next) {
|
|
298
|
+
var _ref9;
|
|
299
299
|
var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
|
|
300
|
-
|
|
301
|
-
return (_stateRef_current_nativeStyleUpdate1 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _stateRef_current_nativeStyleUpdate1 !== void 0 ? _stateRef_current_nativeStyleUpdate1 : false;
|
|
300
|
+
return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
302
301
|
});
|
|
303
302
|
if (process.env.NODE_ENV === "development") {
|
|
304
303
|
if (debugProp && debugProp !== "profile") {
|
|
@@ -392,10 +391,8 @@ ${banner}
|
|
|
392
391
|
willBeAnimated = finalizedComponentState.willBeAnimated;
|
|
393
392
|
willBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;
|
|
394
393
|
platformPseudo = finalizedComponentState.platformPseudo;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
var _splitStyles_frontendContainer;
|
|
398
|
-
var containerProp = (_splitStyles_frontendContainer = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _splitStyles_frontendContainer !== void 0 ? _splitStyles_frontendContainer : props.container;
|
|
394
|
+
groupName = (_ref = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _ref !== void 0 ? _ref : groupName;
|
|
395
|
+
var containerProp = (_ref1 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _ref1 !== void 0 ? _ref1 : props.container;
|
|
399
396
|
var containerName = props.containerName || (typeof containerProp === "string" ? containerProp : void 0);
|
|
400
397
|
var containerType = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainerType) || props.containerType || (containerProp ? "inline-size" : void 0);
|
|
401
398
|
var isContainer = !!containerType && containerType !== "normal";
|
|
@@ -422,7 +419,7 @@ ${banner}
|
|
|
422
419
|
};
|
|
423
420
|
var entry = {
|
|
424
421
|
state: { pseudo: import_defaultComponentState.defaultComponentStateMounted },
|
|
425
|
-
subscribe: function(listener) {
|
|
422
|
+
subscribe: function subscribe(listener) {
|
|
426
423
|
var _stateRef_current_group2;
|
|
427
424
|
var dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
|
|
428
425
|
return function() {
|
|
@@ -579,6 +576,7 @@ ${banner}
|
|
|
579
576
|
var _stateRef_current2;
|
|
580
577
|
var ogSetStateShallow = setStateShallow;
|
|
581
578
|
stateRef.current.updateStyleListener = function() {
|
|
579
|
+
var _ref9, _ref12;
|
|
582
580
|
var useStyleListener = stateRef.current.useStyleListener;
|
|
583
581
|
if (!useStyleListener) {
|
|
584
582
|
var pendingState = stateRef.current.nextState;
|
|
@@ -591,8 +589,7 @@ ${banner}
|
|
|
591
589
|
...styleProps,
|
|
592
590
|
mediaState: mediaState2
|
|
593
591
|
} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
|
|
594
|
-
var
|
|
595
|
-
var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
|
|
592
|
+
var effectiveTransition2 = (_ref9 = (_ref12 = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _ref12 !== void 0 ? _ref12 : props.transition) !== null && _ref9 !== void 0 ? _ref9 : platformPseudo ? "0ms" : void 0;
|
|
596
593
|
stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(updatedState);
|
|
597
594
|
var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
|
|
598
595
|
useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
|
|
@@ -642,7 +639,7 @@ ${banner}
|
|
|
642
639
|
ogSetStateShallow(next);
|
|
643
640
|
}
|
|
644
641
|
};
|
|
645
|
-
setStateShallow = function(state2) {
|
|
642
|
+
setStateShallow = function setStateShallow2(state2) {
|
|
646
643
|
var _stateRef_current_setStateShallow, _stateRef_current3;
|
|
647
644
|
(_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
|
|
648
645
|
};
|
|
@@ -677,12 +674,12 @@ ${banner}
|
|
|
677
674
|
var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
|
|
678
675
|
var animatedRef;
|
|
679
676
|
if (shouldUseAnimation) {
|
|
677
|
+
var _ref2, _ref3;
|
|
680
678
|
var _splitStyles_nativeTextMetrics;
|
|
681
679
|
var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
|
|
682
680
|
stateRef.current.useStyleListener = listener;
|
|
683
681
|
} : void 0;
|
|
684
|
-
var
|
|
685
|
-
var effectiveTransition = (_ref = (_splitStyles_effectiveTransition = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _splitStyles_effectiveTransition !== void 0 ? _splitStyles_effectiveTransition : props.transition) !== null && _ref !== void 0 ? _ref : platformPseudo ? "0ms" : void 0;
|
|
682
|
+
var effectiveTransition = (_ref2 = (_ref3 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _ref3 !== void 0 ? _ref3 : props.transition) !== null && _ref2 !== void 0 ? _ref2 : platformPseudo ? "0ms" : void 0;
|
|
686
683
|
if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
|
|
687
684
|
stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(state);
|
|
688
685
|
var animations = useAnimations({
|
|
@@ -749,7 +746,7 @@ ${banner}
|
|
|
749
746
|
});
|
|
750
747
|
}
|
|
751
748
|
if (process.env.NODE_ENV === "development" && time) time`events-hooks`;
|
|
752
|
-
var unPress = function() {
|
|
749
|
+
var unPress = function unPress2() {
|
|
753
750
|
setStateShallow({
|
|
754
751
|
press: false,
|
|
755
752
|
pressIn: false
|
|
@@ -802,7 +799,7 @@ ${banner}
|
|
|
802
799
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
803
800
|
var disposeSafeArea;
|
|
804
801
|
if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
|
|
805
|
-
var updateSafeArea = function() {
|
|
802
|
+
var updateSafeArea = function updateSafeArea2() {
|
|
806
803
|
setState(function(previous) {
|
|
807
804
|
return { ...previous };
|
|
808
805
|
});
|
|
@@ -870,7 +867,7 @@ ${banner}
|
|
|
870
867
|
onMouseUp === null || onMouseUp === void 0 || onMouseUp(e);
|
|
871
868
|
} : void 0,
|
|
872
869
|
...(attachHover || attachPress) && {
|
|
873
|
-
onMouseEnter: function(e) {
|
|
870
|
+
onMouseEnter: function onMouseEnter1(e) {
|
|
874
871
|
var next = {};
|
|
875
872
|
if (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;
|
|
876
873
|
if (needsPressState) {
|
|
@@ -880,7 +877,7 @@ ${banner}
|
|
|
880
877
|
onHoverIn === null || onHoverIn === void 0 || onHoverIn(e);
|
|
881
878
|
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
|
|
882
879
|
},
|
|
883
|
-
onMouseLeave: function(e) {
|
|
880
|
+
onMouseLeave: function onMouseLeave1(e) {
|
|
884
881
|
var next = {};
|
|
885
882
|
if (needsHoverState) next.hover = false;
|
|
886
883
|
if (needsPressState) {
|
|
@@ -905,12 +902,12 @@ ${banner}
|
|
|
905
902
|
unPress();
|
|
906
903
|
onPress === null || onPress === void 0 || onPress(e);
|
|
907
904
|
} : void 0,
|
|
908
|
-
...attachPress && onLongPress && { onLongPress: function(e) {
|
|
905
|
+
...attachPress && onLongPress && { onLongPress: function onLongPress1(e) {
|
|
909
906
|
unPress();
|
|
910
907
|
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
911
908
|
} },
|
|
912
909
|
...attachFocus && {
|
|
913
|
-
onFocus: function(e) {
|
|
910
|
+
onFocus: function onFocus1(e) {
|
|
914
911
|
var next = {};
|
|
915
912
|
if (componentContext.setParentFocusState) {
|
|
916
913
|
componentContext.setParentFocusState({ focusWithin: true });
|
|
@@ -922,7 +919,7 @@ ${banner}
|
|
|
922
919
|
setStateShallow(next);
|
|
923
920
|
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
924
921
|
},
|
|
925
|
-
onBlur: function(e) {
|
|
922
|
+
onBlur: function onBlur1(e) {
|
|
926
923
|
if (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });
|
|
927
924
|
setStateShallow({
|
|
928
925
|
focus: false,
|
|
@@ -962,10 +959,10 @@ ${banner}
|
|
|
962
959
|
});
|
|
963
960
|
var hasRealPressEvents = false;
|
|
964
961
|
var pressGesture = null;
|
|
962
|
+
var _ref4, _ref5, _ref6, _ref7, _props_testID;
|
|
965
963
|
var propsWithHref = props;
|
|
966
964
|
var propsInWithHref = propsIn;
|
|
967
|
-
var _props_testID
|
|
968
|
-
var pressDebugDetail = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref1 !== void 0 ? _ref1 : props.accessibilityLabel) !== null && _ref2 !== void 0 ? _ref2 : propsIn.accessibilityLabel) !== null && _ref3 !== void 0 ? _ref3 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
965
|
+
var pressDebugDetail = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref7 !== void 0 ? _ref7 : props.accessibilityLabel) !== null && _ref6 !== void 0 ? _ref6 : propsIn.accessibilityLabel) !== null && _ref5 !== void 0 ? _ref5 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
969
966
|
var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
|
|
970
967
|
hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
|
|
971
968
|
pressGesture = (0, import_eventHandling.useEvents)(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
|
|
@@ -1025,11 +1022,11 @@ ${banner}
|
|
|
1025
1022
|
var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
|
|
1026
1023
|
var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
|
|
1027
1024
|
if (provideText || provideFocus) {
|
|
1028
|
-
var
|
|
1025
|
+
var _ref8;
|
|
1029
1026
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
1030
1027
|
...componentContext,
|
|
1031
1028
|
inText: provideText || componentContext.inText,
|
|
1032
|
-
parentFontSize: (
|
|
1029
|
+
parentFontSize: (_ref8 = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _ref8 !== void 0 ? _ref8 : componentContext.parentFontSize,
|
|
1033
1030
|
parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
|
|
1034
1031
|
animatedText,
|
|
1035
1032
|
setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
|
|
@@ -1092,7 +1089,7 @@ ${banner}
|
|
|
1092
1089
|
willBeAnimated,
|
|
1093
1090
|
startedUnhydrated
|
|
1094
1091
|
});
|
|
1095
|
-
} catch (
|
|
1092
|
+
} catch (unused) {} finally {
|
|
1096
1093
|
console.groupEnd();
|
|
1097
1094
|
}
|
|
1098
1095
|
}
|
|
@@ -1149,12 +1146,12 @@ ${banner}
|
|
|
1149
1146
|
}
|
|
1150
1147
|
return res;
|
|
1151
1148
|
}
|
|
1152
|
-
var fromPx = function(val) {
|
|
1149
|
+
var fromPx = function fromPx2(val) {
|
|
1153
1150
|
if (typeof val === "number") return val;
|
|
1154
1151
|
if (typeof val === "string") return +val.replace("px", "");
|
|
1155
1152
|
return 0;
|
|
1156
1153
|
};
|
|
1157
|
-
var getCustomRender = function(renderProp, content, viewProps, state) {
|
|
1154
|
+
var getCustomRender = function getCustomRender2(renderProp, content, viewProps, state) {
|
|
1158
1155
|
if (typeof renderProp === "function") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));
|
|
1159
1156
|
if (renderProp) {
|
|
1160
1157
|
if (typeof renderProp === "object" && /* @__PURE__ */ import_react.default.isValidElement(renderProp)) {
|
|
@@ -122,10 +122,10 @@ function createComponent(staticConfig) {
|
|
|
122
122
|
var { Component, isText, isHOC } = staticConfig;
|
|
123
123
|
var res;
|
|
124
124
|
var { displayName } = staticConfig;
|
|
125
|
-
var component = function(propsInWithRef) {
|
|
125
|
+
var component = function component2(propsInWithRef) {
|
|
126
126
|
"use no memo";
|
|
127
|
+
var _stateRef_current, _avoidReRenders, _ref, _ref1;
|
|
127
128
|
var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
|
|
128
|
-
var _stateRef_current;
|
|
129
129
|
var forwardedRef = propsInWithRef.ref;
|
|
130
130
|
var propsIn = propsInWithRef;
|
|
131
131
|
config = config || (0, import_config.getConfig)();
|
|
@@ -186,14 +186,14 @@ function createComponent(staticConfig) {
|
|
|
186
186
|
if (process.env.NODE_ENV === "development" && import_constants.isClient) import_react.default.useEffect(function() {
|
|
187
187
|
var node;
|
|
188
188
|
var overlay = null;
|
|
189
|
-
var remove = function() {
|
|
189
|
+
var remove = function remove2() {
|
|
190
190
|
if (overlay) try {
|
|
191
191
|
var _overlay_parentNode;
|
|
192
192
|
(_overlay_parentNode = overlay.parentNode) === null || _overlay_parentNode === void 0 || _overlay_parentNode.removeChild(overlay);
|
|
193
193
|
overlay = null;
|
|
194
|
-
} catch (
|
|
194
|
+
} catch (unused) {}
|
|
195
195
|
};
|
|
196
|
-
var debugVisualizerHandler = function() {
|
|
196
|
+
var debugVisualizerHandler = function debugVisualizerHandler2() {
|
|
197
197
|
var show = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
198
198
|
node = stateRef.current.host;
|
|
199
199
|
if (!node) return;
|
|
@@ -233,12 +233,12 @@ function createComponent(staticConfig) {
|
|
|
233
233
|
}, [displayName]);
|
|
234
234
|
var groupContextParent = import_react.default.useContext(import_GroupContext.GroupContext);
|
|
235
235
|
var animationDriver = (function() {
|
|
236
|
+
var _ref9, _componentContext_animationDriver;
|
|
236
237
|
if (props.animatedBy && config) {
|
|
237
238
|
if (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;
|
|
238
239
|
return props.animatedBy === "default" ? config.animations : null;
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
return (_ref5 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref5 !== void 0 ? _ref5 : null;
|
|
241
|
+
return (_ref9 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref9 !== void 0 ? _ref9 : null;
|
|
242
242
|
})();
|
|
243
243
|
var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
|
|
244
244
|
var componentState = (0, import_useComponentState.useComponentState)(props, (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig, config);
|
|
@@ -246,7 +246,6 @@ function createComponent(staticConfig) {
|
|
|
246
246
|
var { groupName } = componentState;
|
|
247
247
|
var { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;
|
|
248
248
|
props = componentState.props;
|
|
249
|
-
var _avoidReRenders;
|
|
250
249
|
(_avoidReRenders = (_stateRef_current = stateRef.current).avoidReRenders) !== null && _avoidReRenders !== void 0 || (_stateRef_current.avoidReRenders = !!(animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders));
|
|
251
250
|
if (stateRef.current.avoidReRenders) (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
252
251
|
var emitted = stateRef.current.prevPseudoState;
|
|
@@ -296,9 +295,9 @@ function createComponent(staticConfig) {
|
|
|
296
295
|
var _stateRef_current1;
|
|
297
296
|
themeStateProps.deopt = willBeAnimated;
|
|
298
297
|
themeStateProps.nativeUpdate = (_stateRef_current1 = stateRef.current).nativeUpdateProxy || (_stateRef_current1.nativeUpdateProxy = function(next) {
|
|
298
|
+
var _ref9;
|
|
299
299
|
var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
|
|
300
|
-
|
|
301
|
-
return (_stateRef_current_nativeStyleUpdate1 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _stateRef_current_nativeStyleUpdate1 !== void 0 ? _stateRef_current_nativeStyleUpdate1 : false;
|
|
300
|
+
return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
302
301
|
});
|
|
303
302
|
if (process.env.NODE_ENV === "development") {
|
|
304
303
|
if (debugProp && debugProp !== "profile") {
|
|
@@ -392,10 +391,8 @@ ${banner}
|
|
|
392
391
|
willBeAnimated = finalizedComponentState.willBeAnimated;
|
|
393
392
|
willBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;
|
|
394
393
|
platformPseudo = finalizedComponentState.platformPseudo;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
var _splitStyles_frontendContainer;
|
|
398
|
-
var containerProp = (_splitStyles_frontendContainer = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _splitStyles_frontendContainer !== void 0 ? _splitStyles_frontendContainer : props.container;
|
|
394
|
+
groupName = (_ref = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _ref !== void 0 ? _ref : groupName;
|
|
395
|
+
var containerProp = (_ref1 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _ref1 !== void 0 ? _ref1 : props.container;
|
|
399
396
|
var containerName = props.containerName || (typeof containerProp === "string" ? containerProp : void 0);
|
|
400
397
|
var containerType = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainerType) || props.containerType || (containerProp ? "inline-size" : void 0);
|
|
401
398
|
var isContainer = !!containerType && containerType !== "normal";
|
|
@@ -422,7 +419,7 @@ ${banner}
|
|
|
422
419
|
};
|
|
423
420
|
var entry = {
|
|
424
421
|
state: { pseudo: import_defaultComponentState.defaultComponentStateMounted },
|
|
425
|
-
subscribe: function(listener) {
|
|
422
|
+
subscribe: function subscribe(listener) {
|
|
426
423
|
var _stateRef_current_group2;
|
|
427
424
|
var dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
|
|
428
425
|
return function() {
|
|
@@ -579,6 +576,7 @@ ${banner}
|
|
|
579
576
|
var _stateRef_current2;
|
|
580
577
|
var ogSetStateShallow = setStateShallow;
|
|
581
578
|
stateRef.current.updateStyleListener = function() {
|
|
579
|
+
var _ref9, _ref12;
|
|
582
580
|
var useStyleListener = stateRef.current.useStyleListener;
|
|
583
581
|
if (!useStyleListener) {
|
|
584
582
|
var pendingState = stateRef.current.nextState;
|
|
@@ -591,8 +589,7 @@ ${banner}
|
|
|
591
589
|
...styleProps,
|
|
592
590
|
mediaState: mediaState2
|
|
593
591
|
} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
|
|
594
|
-
var
|
|
595
|
-
var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
|
|
592
|
+
var effectiveTransition2 = (_ref9 = (_ref12 = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _ref12 !== void 0 ? _ref12 : props.transition) !== null && _ref9 !== void 0 ? _ref9 : platformPseudo ? "0ms" : void 0;
|
|
596
593
|
stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(updatedState);
|
|
597
594
|
var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
|
|
598
595
|
useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
|
|
@@ -642,7 +639,7 @@ ${banner}
|
|
|
642
639
|
ogSetStateShallow(next);
|
|
643
640
|
}
|
|
644
641
|
};
|
|
645
|
-
setStateShallow = function(state2) {
|
|
642
|
+
setStateShallow = function setStateShallow2(state2) {
|
|
646
643
|
var _stateRef_current_setStateShallow, _stateRef_current3;
|
|
647
644
|
(_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
|
|
648
645
|
};
|
|
@@ -677,12 +674,12 @@ ${banner}
|
|
|
677
674
|
var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
|
|
678
675
|
var animatedRef;
|
|
679
676
|
if (shouldUseAnimation) {
|
|
677
|
+
var _ref2, _ref3;
|
|
680
678
|
var _splitStyles_nativeTextMetrics;
|
|
681
679
|
var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
|
|
682
680
|
stateRef.current.useStyleListener = listener;
|
|
683
681
|
} : void 0;
|
|
684
|
-
var
|
|
685
|
-
var effectiveTransition = (_ref = (_splitStyles_effectiveTransition = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _splitStyles_effectiveTransition !== void 0 ? _splitStyles_effectiveTransition : props.transition) !== null && _ref !== void 0 ? _ref : platformPseudo ? "0ms" : void 0;
|
|
682
|
+
var effectiveTransition = (_ref2 = (_ref3 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _ref3 !== void 0 ? _ref3 : props.transition) !== null && _ref2 !== void 0 ? _ref2 : platformPseudo ? "0ms" : void 0;
|
|
686
683
|
if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
|
|
687
684
|
stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(state);
|
|
688
685
|
var animations = useAnimations({
|
|
@@ -749,7 +746,7 @@ ${banner}
|
|
|
749
746
|
});
|
|
750
747
|
}
|
|
751
748
|
if (process.env.NODE_ENV === "development" && time) time`events-hooks`;
|
|
752
|
-
var unPress = function() {
|
|
749
|
+
var unPress = function unPress2() {
|
|
753
750
|
setStateShallow({
|
|
754
751
|
press: false,
|
|
755
752
|
pressIn: false
|
|
@@ -802,7 +799,7 @@ ${banner}
|
|
|
802
799
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
803
800
|
var disposeSafeArea;
|
|
804
801
|
if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
|
|
805
|
-
var updateSafeArea = function() {
|
|
802
|
+
var updateSafeArea = function updateSafeArea2() {
|
|
806
803
|
setState(function(previous) {
|
|
807
804
|
return { ...previous };
|
|
808
805
|
});
|
|
@@ -870,7 +867,7 @@ ${banner}
|
|
|
870
867
|
onMouseUp === null || onMouseUp === void 0 || onMouseUp(e);
|
|
871
868
|
} : void 0,
|
|
872
869
|
...(attachHover || attachPress) && {
|
|
873
|
-
onMouseEnter: function(e) {
|
|
870
|
+
onMouseEnter: function onMouseEnter1(e) {
|
|
874
871
|
var next = {};
|
|
875
872
|
if (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;
|
|
876
873
|
if (needsPressState) {
|
|
@@ -880,7 +877,7 @@ ${banner}
|
|
|
880
877
|
onHoverIn === null || onHoverIn === void 0 || onHoverIn(e);
|
|
881
878
|
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
|
|
882
879
|
},
|
|
883
|
-
onMouseLeave: function(e) {
|
|
880
|
+
onMouseLeave: function onMouseLeave1(e) {
|
|
884
881
|
var next = {};
|
|
885
882
|
if (needsHoverState) next.hover = false;
|
|
886
883
|
if (needsPressState) {
|
|
@@ -905,12 +902,12 @@ ${banner}
|
|
|
905
902
|
unPress();
|
|
906
903
|
onPress === null || onPress === void 0 || onPress(e);
|
|
907
904
|
} : void 0,
|
|
908
|
-
...attachPress && onLongPress && { onLongPress: function(e) {
|
|
905
|
+
...attachPress && onLongPress && { onLongPress: function onLongPress1(e) {
|
|
909
906
|
unPress();
|
|
910
907
|
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
911
908
|
} },
|
|
912
909
|
...attachFocus && {
|
|
913
|
-
onFocus: function(e) {
|
|
910
|
+
onFocus: function onFocus1(e) {
|
|
914
911
|
var next = {};
|
|
915
912
|
if (componentContext.setParentFocusState) {
|
|
916
913
|
componentContext.setParentFocusState({ focusWithin: true });
|
|
@@ -922,7 +919,7 @@ ${banner}
|
|
|
922
919
|
setStateShallow(next);
|
|
923
920
|
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
924
921
|
},
|
|
925
|
-
onBlur: function(e) {
|
|
922
|
+
onBlur: function onBlur1(e) {
|
|
926
923
|
if (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });
|
|
927
924
|
setStateShallow({
|
|
928
925
|
focus: false,
|
|
@@ -962,10 +959,10 @@ ${banner}
|
|
|
962
959
|
});
|
|
963
960
|
var hasRealPressEvents = false;
|
|
964
961
|
var pressGesture = null;
|
|
962
|
+
var _ref4, _ref5, _ref6, _ref7, _props_testID;
|
|
965
963
|
var propsWithHref = props;
|
|
966
964
|
var propsInWithHref = propsIn;
|
|
967
|
-
var _props_testID
|
|
968
|
-
var pressDebugDetail = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref1 !== void 0 ? _ref1 : props.accessibilityLabel) !== null && _ref2 !== void 0 ? _ref2 : propsIn.accessibilityLabel) !== null && _ref3 !== void 0 ? _ref3 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
965
|
+
var pressDebugDetail = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref7 !== void 0 ? _ref7 : props.accessibilityLabel) !== null && _ref6 !== void 0 ? _ref6 : propsIn.accessibilityLabel) !== null && _ref5 !== void 0 ? _ref5 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
969
966
|
var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
|
|
970
967
|
hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
|
|
971
968
|
pressGesture = (0, import_eventHandling.useEvents)(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
|
|
@@ -1025,11 +1022,11 @@ ${banner}
|
|
|
1025
1022
|
var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
|
|
1026
1023
|
var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
|
|
1027
1024
|
if (provideText || provideFocus) {
|
|
1028
|
-
var
|
|
1025
|
+
var _ref8;
|
|
1029
1026
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
1030
1027
|
...componentContext,
|
|
1031
1028
|
inText: provideText || componentContext.inText,
|
|
1032
|
-
parentFontSize: (
|
|
1029
|
+
parentFontSize: (_ref8 = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _ref8 !== void 0 ? _ref8 : componentContext.parentFontSize,
|
|
1033
1030
|
parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
|
|
1034
1031
|
animatedText,
|
|
1035
1032
|
setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
|
|
@@ -1092,7 +1089,7 @@ ${banner}
|
|
|
1092
1089
|
willBeAnimated,
|
|
1093
1090
|
startedUnhydrated
|
|
1094
1091
|
});
|
|
1095
|
-
} catch (
|
|
1092
|
+
} catch (unused) {} finally {
|
|
1096
1093
|
console.groupEnd();
|
|
1097
1094
|
}
|
|
1098
1095
|
}
|
|
@@ -1149,12 +1146,12 @@ ${banner}
|
|
|
1149
1146
|
}
|
|
1150
1147
|
return res;
|
|
1151
1148
|
}
|
|
1152
|
-
var fromPx = function(val) {
|
|
1149
|
+
var fromPx = function fromPx2(val) {
|
|
1153
1150
|
if (typeof val === "number") return val;
|
|
1154
1151
|
if (typeof val === "string") return +val.replace("px", "");
|
|
1155
1152
|
return 0;
|
|
1156
1153
|
};
|
|
1157
|
-
var getCustomRender = function(renderProp, content, viewProps, state) {
|
|
1154
|
+
var getCustomRender = function getCustomRender2(renderProp, content, viewProps, state) {
|
|
1158
1155
|
if (typeof renderProp === "function") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));
|
|
1159
1156
|
if (renderProp) {
|
|
1160
1157
|
if (typeof renderProp === "object" && /* @__PURE__ */ import_react.default.isValidElement(renderProp)) {
|