@tamagui/web 1.5.7 → 1.5.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.js +3 -3
- package/dist/cjs/Tamagui.js.map +2 -2
- package/dist/cjs/addTheme.js +3 -3
- package/dist/cjs/addTheme.js.map +1 -1
- package/dist/cjs/config.js.map +1 -1
- package/dist/cjs/contexts/FontLanguageContext.js.map +1 -1
- package/dist/cjs/contexts/TextAncestorContext.js.map +2 -2
- package/dist/cjs/createComponent.js +17 -17
- package/dist/cjs/createComponent.js.map +1 -1
- package/dist/cjs/createFont.js.map +1 -1
- package/dist/cjs/createShorthands.js.map +1 -1
- package/dist/cjs/createTamagui.js +9 -9
- package/dist/cjs/createTamagui.js.map +1 -1
- package/dist/cjs/createTheme.js.map +1 -1
- package/dist/cjs/createTokens.js +1 -1
- package/dist/cjs/createTokens.js.map +1 -1
- package/dist/cjs/createVariable.js +1 -1
- package/dist/cjs/createVariable.js.map +1 -1
- package/dist/cjs/createVariables.js +1 -1
- package/dist/cjs/createVariables.js.map +1 -1
- package/dist/cjs/helpers/ThemeManager.js +6 -4
- package/dist/cjs/helpers/ThemeManager.js.map +2 -2
- package/dist/cjs/helpers/ThemeManagerContext.js.map +1 -1
- package/dist/cjs/helpers/createMediaStyle.js +1 -1
- package/dist/cjs/helpers/createMediaStyle.js.map +1 -1
- package/dist/cjs/helpers/createPropMapper.js +8 -8
- package/dist/cjs/helpers/createPropMapper.js.map +2 -2
- package/dist/cjs/helpers/expandStyles.js +4 -4
- package/dist/cjs/helpers/expandStyles.js.map +1 -1
- package/dist/cjs/helpers/extendStaticConfig.js +2 -2
- package/dist/cjs/helpers/extendStaticConfig.js.map +1 -1
- package/dist/cjs/helpers/getAnimationDriver.js +1 -1
- package/dist/cjs/helpers/getAnimationDriver.js.map +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.js +2 -3
- package/dist/cjs/helpers/getExpandedShorthands.js.map +2 -2
- package/dist/cjs/helpers/getSplitStyles.js +9 -9
- package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
- package/dist/cjs/helpers/getStylesAtomic.js +3 -3
- package/dist/cjs/helpers/getStylesAtomic.js.map +1 -1
- package/dist/cjs/helpers/getThemeCSSRules.js +3 -3
- package/dist/cjs/helpers/getThemeCSSRules.js.map +1 -1
- package/dist/cjs/helpers/getVariantExtras.js +2 -2
- package/dist/cjs/helpers/getVariantExtras.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiComponent.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiElement.js +1 -1
- package/dist/cjs/helpers/isTamaguiElement.js.map +1 -1
- package/dist/cjs/helpers/matchMedia.js.map +1 -1
- package/dist/cjs/helpers/matchMedia.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeShadow.js +1 -1
- package/dist/cjs/helpers/normalizeShadow.js.map +1 -1
- package/dist/cjs/helpers/normalizeShadow.native.js +2 -2
- package/dist/cjs/helpers/normalizeShadow.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.js +3 -3
- package/dist/cjs/helpers/normalizeValueWithProperty.js.map +1 -1
- package/dist/cjs/helpers/proxyThemeVariables.js +1 -1
- package/dist/cjs/helpers/proxyThemeVariables.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.js +1 -1
- package/dist/cjs/helpers/registerCSSVariable.js.map +1 -1
- package/dist/cjs/helpers/themeable.js +1 -1
- package/dist/cjs/helpers/themeable.js.map +1 -1
- package/dist/cjs/helpers/themes.js +2 -2
- package/dist/cjs/helpers/themes.js.map +1 -1
- package/dist/cjs/helpers/useShallowSetState.js.map +2 -2
- package/dist/cjs/hooks/useMedia.js +4 -4
- package/dist/cjs/hooks/useMedia.js.map +1 -1
- package/dist/cjs/hooks/useStyle.js +5 -5
- package/dist/cjs/hooks/useStyle.js.map +1 -1
- package/dist/cjs/hooks/useTheme.js +7 -7
- package/dist/cjs/hooks/useTheme.js.map +1 -1
- package/dist/cjs/hooks/useThemeName.js +2 -2
- package/dist/cjs/hooks/useThemeName.js.map +1 -1
- package/dist/cjs/index.js +49 -49
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/insertFont.js +4 -4
- package/dist/cjs/insertFont.js.map +1 -1
- package/dist/cjs/setupReactNative.js.map +1 -1
- package/dist/cjs/styled.js +2 -2
- package/dist/cjs/styled.js.map +1 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/updateTheme.js +2 -2
- package/dist/cjs/updateTheme.js.map +1 -1
- package/dist/cjs/views/FontLanguage.js.map +1 -1
- package/dist/cjs/views/FontLanguage.native.js +1 -1
- package/dist/cjs/views/FontLanguage.native.js.map +2 -2
- package/dist/cjs/views/Stack.js +2 -2
- package/dist/cjs/views/Stack.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.js +4 -4
- package/dist/cjs/views/TamaguiProvider.js.map +1 -1
- package/dist/cjs/views/Text.js +1 -1
- package/dist/cjs/views/Text.js.map +1 -1
- package/dist/cjs/views/Theme.js +4 -4
- package/dist/cjs/views/Theme.js.map +1 -1
- package/dist/cjs/views/ThemeProvider.js +2 -2
- package/dist/cjs/views/ThemeProvider.js.map +1 -1
- package/dist/esm/Tamagui.js +7 -3
- package/dist/esm/Tamagui.js.map +2 -2
- package/dist/esm/Tamagui.mjs +7 -3
- package/dist/esm/Tamagui.mjs.map +2 -2
- package/dist/esm/addTheme.js +3 -3
- package/dist/esm/addTheme.js.map +1 -1
- package/dist/esm/addTheme.mjs +3 -3
- package/dist/esm/addTheme.mjs.map +1 -1
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/contexts/FontLanguageContext.js.map +1 -1
- package/dist/esm/contexts/FontLanguageContext.mjs.map +1 -1
- package/dist/esm/contexts/TextAncestorContext.js.map +2 -2
- package/dist/esm/contexts/TextAncestorContext.mjs.map +2 -2
- package/dist/esm/createComponent.js +17 -17
- package/dist/esm/createComponent.js.map +1 -1
- package/dist/esm/createComponent.mjs +17 -17
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createFont.js.map +1 -1
- package/dist/esm/createFont.mjs.map +1 -1
- package/dist/esm/createShorthands.js.map +1 -1
- package/dist/esm/createShorthands.mjs.map +1 -1
- package/dist/esm/createTamagui.js +9 -9
- package/dist/esm/createTamagui.js.map +1 -1
- package/dist/esm/createTamagui.mjs +9 -9
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTheme.js.map +1 -1
- package/dist/esm/createTheme.mjs.map +1 -1
- package/dist/esm/createTokens.js +1 -1
- package/dist/esm/createTokens.js.map +1 -1
- package/dist/esm/createTokens.mjs +1 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createVariable.js +1 -1
- package/dist/esm/createVariable.js.map +1 -1
- package/dist/esm/createVariable.mjs +1 -1
- package/dist/esm/createVariable.mjs.map +1 -1
- package/dist/esm/createVariables.js +1 -1
- package/dist/esm/createVariables.js.map +1 -1
- package/dist/esm/createVariables.mjs +1 -1
- package/dist/esm/createVariables.mjs.map +1 -1
- package/dist/esm/helpers/ThemeManager.js +6 -4
- package/dist/esm/helpers/ThemeManager.js.map +2 -2
- package/dist/esm/helpers/ThemeManager.mjs +6 -4
- package/dist/esm/helpers/ThemeManager.mjs.map +2 -2
- package/dist/esm/helpers/ThemeManagerContext.js.map +1 -1
- package/dist/esm/helpers/ThemeManagerContext.mjs.map +1 -1
- package/dist/esm/helpers/createMediaStyle.js +1 -1
- package/dist/esm/helpers/createMediaStyle.js.map +1 -1
- package/dist/esm/helpers/createMediaStyle.mjs +1 -1
- package/dist/esm/helpers/createMediaStyle.mjs.map +1 -1
- package/dist/esm/helpers/createPropMapper.js +8 -8
- package/dist/esm/helpers/createPropMapper.js.map +2 -2
- package/dist/esm/helpers/createPropMapper.mjs +8 -8
- package/dist/esm/helpers/createPropMapper.mjs.map +2 -2
- package/dist/esm/helpers/expandStyles.js +4 -4
- package/dist/esm/helpers/expandStyles.js.map +1 -1
- package/dist/esm/helpers/expandStyles.mjs +4 -4
- package/dist/esm/helpers/expandStyles.mjs.map +1 -1
- package/dist/esm/helpers/extendStaticConfig.js +2 -2
- package/dist/esm/helpers/extendStaticConfig.js.map +1 -1
- package/dist/esm/helpers/extendStaticConfig.mjs +2 -2
- package/dist/esm/helpers/extendStaticConfig.mjs.map +1 -1
- package/dist/esm/helpers/getAnimationDriver.js +1 -1
- package/dist/esm/helpers/getAnimationDriver.js.map +1 -1
- package/dist/esm/helpers/getAnimationDriver.mjs +1 -1
- package/dist/esm/helpers/getAnimationDriver.mjs.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.js +2 -3
- package/dist/esm/helpers/getExpandedShorthands.js.map +2 -2
- package/dist/esm/helpers/getExpandedShorthands.mjs +2 -3
- package/dist/esm/helpers/getExpandedShorthands.mjs.map +2 -2
- package/dist/esm/helpers/getSplitStyles.js +9 -9
- package/dist/esm/helpers/getSplitStyles.js.map +2 -2
- package/dist/esm/helpers/getSplitStyles.mjs +9 -9
- package/dist/esm/helpers/getSplitStyles.mjs.map +2 -2
- package/dist/esm/helpers/getStylesAtomic.js +3 -3
- package/dist/esm/helpers/getStylesAtomic.js.map +1 -1
- package/dist/esm/helpers/getStylesAtomic.mjs +3 -3
- package/dist/esm/helpers/getStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.js +3 -3
- package/dist/esm/helpers/getThemeCSSRules.js.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.mjs +3 -3
- package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
- package/dist/esm/helpers/getVariantExtras.js +2 -2
- package/dist/esm/helpers/getVariantExtras.js.map +1 -1
- package/dist/esm/helpers/getVariantExtras.mjs +2 -2
- package/dist/esm/helpers/getVariantExtras.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/isTamaguiComponent.js.map +1 -1
- package/dist/esm/helpers/isTamaguiComponent.mjs.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.js +1 -1
- package/dist/esm/helpers/isTamaguiElement.js.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.mjs +1 -1
- package/dist/esm/helpers/isTamaguiElement.mjs.map +1 -1
- package/dist/esm/helpers/matchMedia.js.map +1 -1
- package/dist/esm/helpers/matchMedia.mjs.map +1 -1
- package/dist/esm/helpers/matchMedia.native.js.map +1 -1
- package/dist/esm/helpers/matchMedia.native.mjs.map +1 -1
- package/dist/esm/helpers/normalizeShadow.js +1 -1
- package/dist/esm/helpers/normalizeShadow.js.map +1 -1
- package/dist/esm/helpers/normalizeShadow.mjs +1 -1
- package/dist/esm/helpers/normalizeShadow.mjs.map +1 -1
- package/dist/esm/helpers/normalizeShadow.native.js +2 -2
- package/dist/esm/helpers/normalizeShadow.native.js.map +1 -1
- package/dist/esm/helpers/normalizeShadow.native.mjs +2 -2
- package/dist/esm/helpers/normalizeShadow.native.mjs.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.js +3 -3
- package/dist/esm/helpers/normalizeValueWithProperty.js.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +3 -3
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/helpers/proxyThemeVariables.js +1 -1
- package/dist/esm/helpers/proxyThemeVariables.js.map +1 -1
- package/dist/esm/helpers/proxyThemeVariables.mjs +1 -1
- package/dist/esm/helpers/proxyThemeVariables.mjs.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.js +1 -1
- package/dist/esm/helpers/registerCSSVariable.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
- package/dist/esm/helpers/themeable.js +1 -1
- package/dist/esm/helpers/themeable.js.map +1 -1
- package/dist/esm/helpers/themeable.mjs +1 -1
- package/dist/esm/helpers/themeable.mjs.map +1 -1
- package/dist/esm/helpers/themes.js +2 -2
- package/dist/esm/helpers/themes.js.map +1 -1
- package/dist/esm/helpers/themes.mjs +2 -2
- package/dist/esm/helpers/themes.mjs.map +1 -1
- package/dist/esm/helpers/useShallowSetState.js.map +2 -2
- package/dist/esm/helpers/useShallowSetState.mjs.map +2 -2
- package/dist/esm/hooks/useMedia.js +4 -4
- package/dist/esm/hooks/useMedia.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +4 -4
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useStyle.js +5 -5
- package/dist/esm/hooks/useStyle.js.map +1 -1
- package/dist/esm/hooks/useStyle.mjs +5 -5
- package/dist/esm/hooks/useStyle.mjs.map +1 -1
- package/dist/esm/hooks/useTheme.js +7 -7
- package/dist/esm/hooks/useTheme.js.map +1 -1
- package/dist/esm/hooks/useTheme.mjs +7 -7
- package/dist/esm/hooks/useTheme.mjs.map +1 -1
- package/dist/esm/hooks/useThemeName.js +2 -2
- package/dist/esm/hooks/useThemeName.js.map +1 -1
- package/dist/esm/hooks/useThemeName.mjs +2 -2
- package/dist/esm/hooks/useThemeName.mjs.map +1 -1
- package/dist/esm/index.js +49 -49
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +49 -49
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/insertFont.js +4 -4
- package/dist/esm/insertFont.js.map +1 -1
- package/dist/esm/insertFont.mjs +4 -4
- package/dist/esm/insertFont.mjs.map +1 -1
- package/dist/esm/setupReactNative.js.map +1 -1
- package/dist/esm/setupReactNative.mjs.map +1 -1
- package/dist/esm/styled.js +2 -2
- package/dist/esm/styled.js.map +1 -1
- package/dist/esm/styled.mjs +2 -2
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/updateTheme.js +2 -2
- package/dist/esm/updateTheme.js.map +1 -1
- package/dist/esm/updateTheme.mjs +2 -2
- package/dist/esm/updateTheme.mjs.map +1 -1
- package/dist/esm/views/FontLanguage.js.map +1 -1
- package/dist/esm/views/FontLanguage.mjs.map +1 -1
- package/dist/esm/views/FontLanguage.native.js +1 -1
- package/dist/esm/views/FontLanguage.native.js.map +2 -2
- package/dist/esm/views/FontLanguage.native.mjs +1 -1
- package/dist/esm/views/FontLanguage.native.mjs.map +2 -2
- package/dist/esm/views/Stack.js +2 -2
- package/dist/esm/views/Stack.js.map +1 -1
- package/dist/esm/views/Stack.mjs +2 -2
- package/dist/esm/views/Stack.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.js +4 -4
- package/dist/esm/views/TamaguiProvider.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +4 -4
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/Text.js +1 -1
- package/dist/esm/views/Text.js.map +1 -1
- package/dist/esm/views/Text.mjs +1 -1
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Theme.js +4 -4
- package/dist/esm/views/Theme.js.map +1 -1
- package/dist/esm/views/Theme.mjs +4 -4
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/ThemeProvider.js +2 -2
- package/dist/esm/views/ThemeProvider.js.map +1 -1
- package/dist/esm/views/ThemeProvider.mjs +2 -2
- package/dist/esm/views/ThemeProvider.mjs.map +1 -1
- package/package.json +9 -9
- package/src/Tamagui.ts +7 -3
- package/src/addTheme.ts +4 -4
- package/src/config.ts +1 -1
- package/src/contexts/FontLanguageContext.tsx +1 -1
- package/src/contexts/TextAncestorContext.tsx +1 -1
- package/src/createComponent.tsx +17 -17
- package/src/createFont.ts +1 -1
- package/src/createShorthands.ts +1 -1
- package/src/createTamagui.ts +10 -10
- package/src/createTheme.ts +1 -1
- package/src/createTokens.ts +3 -3
- package/src/createVariable.ts +1 -1
- package/src/createVariables.ts +1 -1
- package/src/helpers/ThemeManager.tsx +11 -5
- package/src/helpers/ThemeManagerContext.tsx +1 -1
- package/src/helpers/createMediaStyle.ts +2 -2
- package/src/helpers/createPropMapper.ts +13 -11
- package/src/helpers/expandStyles.ts +4 -4
- package/src/helpers/extendStaticConfig.ts +3 -3
- package/src/helpers/getAnimationDriver.tsx +1 -1
- package/src/helpers/getExpandedShorthands.ts +4 -6
- package/src/helpers/getSplitStyles.tsx +14 -11
- package/src/helpers/getStylesAtomic.ts +4 -4
- package/src/helpers/getThemeCSSRules.ts +4 -4
- package/src/helpers/getVariantExtras.tsx +4 -4
- package/src/helpers/insertStyleRule.tsx +1 -1
- package/src/helpers/isTamaguiComponent.tsx +1 -1
- package/src/helpers/isTamaguiElement.tsx +2 -2
- package/src/helpers/matchMedia.native.ts +1 -1
- package/src/helpers/matchMedia.ts +1 -1
- package/src/helpers/normalizeShadow.native.ts +2 -2
- package/src/helpers/normalizeShadow.ts +1 -1
- package/src/helpers/normalizeValueWithProperty.ts +3 -3
- package/src/helpers/proxyThemeVariables.tsx +1 -1
- package/src/helpers/registerCSSVariable.ts +1 -1
- package/src/helpers/themeable.tsx +2 -2
- package/src/helpers/themes.ts +3 -3
- package/src/helpers/useShallowSetState.tsx +1 -2
- package/src/hooks/useMedia.tsx +5 -5
- package/src/hooks/useStyle.tsx +5 -5
- package/src/hooks/useTheme.tsx +8 -8
- package/src/hooks/useThemeName.tsx +3 -3
- package/src/index.ts +49 -49
- package/src/insertFont.ts +6 -6
- package/src/setupReactNative.ts +1 -1
- package/src/styled.tsx +4 -4
- package/src/types.tsx +4 -4
- package/src/updateTheme.ts +3 -3
- package/src/views/FontLanguage.native.tsx +3 -3
- package/src/views/FontLanguage.tsx +1 -1
- package/src/views/Stack.tsx +3 -3
- package/src/views/TamaguiProvider.tsx +5 -5
- package/src/views/Text.tsx +2 -2
- package/src/views/Theme.tsx +5 -5
- package/src/views/ThemeProvider.tsx +2 -2
- package/types/Tamagui.d.ts +5 -5
- package/types/addTheme.d.ts +18 -18
- package/types/config.d.ts +24 -24
- package/types/contexts/FontLanguageContext.d.ts +1 -1
- package/types/contexts/TextAncestorContext.d.ts +2 -2
- package/types/createFont.d.ts +1 -1
- package/types/createShorthands.d.ts +1 -1
- package/types/createTamagui.d.ts +1 -1
- package/types/createTheme.d.ts +1 -1
- package/types/createTokens.d.ts +2 -2
- package/types/createVariables.d.ts +1 -1
- package/types/helpers/ThemeManager.d.ts +2 -2
- package/types/helpers/ThemeManagerContext.d.ts +1 -1
- package/types/helpers/createMediaStyle.d.ts +1 -1
- package/types/helpers/createPropMapper.d.ts +1 -1
- package/types/helpers/expandStyles.d.ts +5 -5
- package/types/helpers/extendStaticConfig.d.ts +1 -1
- package/types/helpers/getAnimationDriver.d.ts +1 -1
- package/types/helpers/getExpandedShorthands.d.ts +1 -1
- package/types/helpers/getSplitStyles.d.ts +2 -2
- package/types/helpers/getStylesAtomic.d.ts +1 -1
- package/types/helpers/getThemeCSSRules.d.ts +1 -1
- package/types/helpers/getVariantExtras.d.ts +2 -2
- package/types/helpers/insertStyleRule.d.ts +1 -1
- package/types/helpers/isTamaguiComponent.d.ts +1 -1
- package/types/helpers/isTamaguiElement.d.ts +1 -1
- package/types/helpers/matchMedia.d.ts +1 -1
- package/types/helpers/matchMedia.native.d.ts +1 -1
- package/types/helpers/registerCSSVariable.d.ts +1 -1
- package/types/helpers/themeable.d.ts +1 -1
- package/types/helpers/themes.d.ts +1 -1
- package/types/helpers/useShallowSetState.d.ts +1 -2
- package/types/hooks/useMedia.d.ts +1 -1
- package/types/hooks/useTheme.d.ts +2 -2
- package/types/hooks/useThemeName.d.ts +1 -1
- package/types/index.d.ts +49 -49
- package/types/insertFont.d.ts +2 -2
- package/types/setupReactNative.d.ts +1 -1
- package/types/styled.d.ts +1 -1
- package/types/types.d.ts +4 -4
- package/types/updateTheme.d.ts +18 -18
- package/types/views/FontLanguage.d.ts +1 -1
- package/types/views/FontLanguage.native.d.ts +1 -1
- package/types/views/Stack.d.ts +2 -2
- package/types/views/TamaguiProvider.d.ts +1 -1
- package/types/views/Text.d.ts +2 -2
- package/types/views/Theme.d.ts +2 -2
- package/types/Tamagui.d.ts.map +0 -1
- package/types/addTheme.d.ts.map +0 -1
- package/types/config.d.ts.map +0 -1
- package/types/constants/constants.d.ts.map +0 -1
- package/types/constants/isDevTools.d.ts.map +0 -1
- package/types/contexts/ButtonNestingContext.d.ts.map +0 -1
- package/types/contexts/FontLanguageContext.d.ts.map +0 -1
- package/types/contexts/TextAncestorContext.d.ts.map +0 -1
- package/types/createComponent.d.ts.map +0 -1
- package/types/createFont.d.ts.map +0 -1
- package/types/createShorthands.d.ts.map +0 -1
- package/types/createTamagui.d.ts.map +0 -1
- package/types/createTheme.d.ts.map +0 -1
- package/types/createTokens.d.ts.map +0 -1
- package/types/createVariable.d.ts.map +0 -1
- package/types/createVariables.d.ts.map +0 -1
- package/types/helpers/RNComponents.d.ts.map +0 -1
- package/types/helpers/ThemeManager.d.ts.map +0 -1
- package/types/helpers/ThemeManagerContext.d.ts.map +0 -1
- package/types/helpers/createMediaStyle.d.ts.map +0 -1
- package/types/helpers/createPropMapper.d.ts.map +0 -1
- package/types/helpers/createProxy.d.ts.map +0 -1
- package/types/helpers/expandStyle.d.ts.map +0 -1
- package/types/helpers/expandStyles.d.ts.map +0 -1
- package/types/helpers/extendStaticConfig.d.ts.map +0 -1
- package/types/helpers/getAnimationDriver.d.ts.map +0 -1
- package/types/helpers/getExpandedShorthands.d.ts.map +0 -1
- package/types/helpers/getFontLanguage.d.ts.map +0 -1
- package/types/helpers/getSplitStyles.d.ts.map +0 -1
- package/types/helpers/getStylesAtomic.d.ts.map +0 -1
- package/types/helpers/getStylesAtomic.native.d.ts.map +0 -1
- package/types/helpers/getThemeCSSRules.d.ts.map +0 -1
- package/types/helpers/getThemeCSSRules.native.d.ts.map +0 -1
- package/types/helpers/getVariantExtras.d.ts.map +0 -1
- package/types/helpers/insertStyleRule.d.ts.map +0 -1
- package/types/helpers/isObj.d.ts.map +0 -1
- package/types/helpers/isTamaguiComponent.d.ts.map +0 -1
- package/types/helpers/isTamaguiElement.d.ts.map +0 -1
- package/types/helpers/matchMedia.d.ts.map +0 -1
- package/types/helpers/matchMedia.native.d.ts.map +0 -1
- package/types/helpers/mergeProps.d.ts.map +0 -1
- package/types/helpers/mergeTransform.d.ts.map +0 -1
- package/types/helpers/normalizeColor.d.ts.map +0 -1
- package/types/helpers/normalizeShadow.d.ts.map +0 -1
- package/types/helpers/normalizeShadow.native.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.native.d.ts.map +0 -1
- package/types/helpers/normalizeValueWithProperty.d.ts.map +0 -1
- package/types/helpers/proxyThemeVariables.d.ts.map +0 -1
- package/types/helpers/pseudoDescriptors.d.ts.map +0 -1
- package/types/helpers/registerCSSVariable.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/helpers/themes.d.ts.map +0 -1
- package/types/helpers/timer.d.ts.map +0 -1
- package/types/helpers/useShallowSetState.d.ts.map +0 -1
- package/types/helpers/warnOnce.d.ts.map +0 -1
- package/types/helpers/withStaticProperties.d.ts.map +0 -1
- package/types/hooks/getThemeUnwrapped.d.ts.map +0 -1
- package/types/hooks/useId.d.ts.map +0 -1
- package/types/hooks/useIsTouchDevice.d.ts.map +0 -1
- package/types/hooks/useMedia.d.ts.map +0 -1
- package/types/hooks/useSafeRef.d.ts.map +0 -1
- package/types/hooks/useServerHooks.d.ts.map +0 -1
- package/types/hooks/useStyle.d.ts.map +0 -1
- package/types/hooks/useTheme.d.ts.map +0 -1
- package/types/hooks/useThemeName.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/inject-styles.d.ts.map +0 -1
- package/types/insertFont.d.ts.map +0 -1
- package/types/setupHooks.d.ts.map +0 -1
- package/types/setupReactNative.d.ts.map +0 -1
- package/types/styled.d.ts.map +0 -1
- package/types/types.d.ts.map +0 -1
- package/types/updateTheme.d.ts.map +0 -1
- package/types/views/FontLanguage.d.ts.map +0 -1
- package/types/views/FontLanguage.native.d.ts.map +0 -1
- package/types/views/FontLanguage.types.d.ts.map +0 -1
- package/types/views/Slot.d.ts.map +0 -1
- package/types/views/Stack.d.ts.map +0 -1
- package/types/views/TamaguiProvider.d.ts.map +0 -1
- package/types/views/Text.d.ts.map +0 -1
- package/types/views/Theme.d.ts.map +0 -1
- package/types/views/ThemeProvider.d.ts.map +0 -1
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
import { useInsertionEffect } from 'react'
|
|
16
16
|
import type { TextStyle, ViewStyle } from 'react-native'
|
|
17
17
|
|
|
18
|
-
import { getConfig, getFont } from '../config'
|
|
19
|
-
import { isDevTools } from '../constants/isDevTools'
|
|
18
|
+
import { getConfig, getFont } from '../config.js'
|
|
19
|
+
import { isDevTools } from '../constants/isDevTools.js'
|
|
20
20
|
import {
|
|
21
21
|
getMediaImportanceIfMoreImportant,
|
|
22
22
|
mediaState as globalMediaState,
|
|
23
23
|
mediaKeysWithAndWithout$,
|
|
24
24
|
mediaQueryConfig,
|
|
25
25
|
mergeMediaByImportance,
|
|
26
|
-
} from '../hooks/useMedia'
|
|
26
|
+
} from '../hooks/useMedia.js'
|
|
27
27
|
import type {
|
|
28
28
|
ClassNamesObject,
|
|
29
29
|
DebugProp,
|
|
@@ -38,24 +38,27 @@ import type {
|
|
|
38
38
|
StaticConfigParsed,
|
|
39
39
|
TamaguiInternalConfig,
|
|
40
40
|
ThemeParsed,
|
|
41
|
-
} from '../types'
|
|
42
|
-
import {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
import {
|
|
41
|
+
} from '../types.js'
|
|
42
|
+
import type {
|
|
43
|
+
FontLanguageProps,
|
|
44
|
+
LanguageContextType,
|
|
45
|
+
} from '../views/FontLanguage.types.js'
|
|
46
|
+
import { createMediaStyle } from './createMediaStyle.js'
|
|
47
|
+
import { getPropMappedFontFamily } from './createPropMapper.js'
|
|
48
|
+
import { fixStyles } from './expandStyles.js'
|
|
49
|
+
import { getAtomicStyle, getStylesAtomic, styleToCSS } from './getStylesAtomic.js'
|
|
47
50
|
import {
|
|
48
51
|
insertStyleRules,
|
|
49
52
|
insertedTransforms,
|
|
50
53
|
scanAllSheets,
|
|
51
54
|
shouldInsertStyleRules,
|
|
52
55
|
updateRules,
|
|
53
|
-
} from './insertStyleRule'
|
|
56
|
+
} from './insertStyleRule.js'
|
|
54
57
|
import {
|
|
55
58
|
normalizeValueWithProperty,
|
|
56
59
|
reverseMapClassNameToValue,
|
|
57
60
|
} from './normalizeValueWithProperty.js'
|
|
58
|
-
import { pseudoDescriptors } from './pseudoDescriptors'
|
|
61
|
+
import { pseudoDescriptors } from './pseudoDescriptors.js'
|
|
59
62
|
|
|
60
63
|
type GetStyleState = {
|
|
61
64
|
style: ViewStyle
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
import { StyleObject, simpleHash } from '@tamagui/helpers'
|
|
7
7
|
import type { TextStyle, ViewStyle } from 'react-native'
|
|
8
8
|
|
|
9
|
-
import { getConfig } from '../config'
|
|
10
|
-
import { TamaguiInternalConfig } from '../types'
|
|
11
|
-
import { defaultOffset } from './expandStyles'
|
|
9
|
+
import { getConfig } from '../config.js'
|
|
10
|
+
import type { TamaguiInternalConfig } from '../types.js'
|
|
11
|
+
import { defaultOffset } from './expandStyles.js'
|
|
12
12
|
import { normalizeValueWithProperty } from './normalizeValueWithProperty.js'
|
|
13
|
-
import { PseudoDescriptor, pseudoDescriptors } from './pseudoDescriptors'
|
|
13
|
+
import { PseudoDescriptor, pseudoDescriptors } from './pseudoDescriptors.js'
|
|
14
14
|
|
|
15
15
|
// refactor this file away next...
|
|
16
16
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { simpleHash } from '@tamagui/helpers'
|
|
2
2
|
|
|
3
|
-
import { THEME_CLASSNAME_PREFIX } from '../constants/constants'
|
|
4
|
-
import { Variable, variableToString } from '../createVariable'
|
|
5
|
-
import { CreateTamaguiProps, ThemeParsed } from '../types'
|
|
6
|
-
import { tokensValueToVariable } from './registerCSSVariable'
|
|
3
|
+
import { THEME_CLASSNAME_PREFIX } from '../constants/constants.js'
|
|
4
|
+
import { Variable, variableToString } from '../createVariable.js'
|
|
5
|
+
import type { CreateTamaguiProps, ThemeParsed } from '../types.js'
|
|
6
|
+
import { tokensValueToVariable } from './registerCSSVariable.js'
|
|
7
7
|
|
|
8
8
|
export function getThemeCSSRules({
|
|
9
9
|
config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getConfig } from '../config'
|
|
2
|
-
import { GenericFonts } from '../types'
|
|
3
|
-
import { LanguageContextType } from '../views/FontLanguage.types'
|
|
4
|
-
import { createProxy } from './createProxy'
|
|
1
|
+
import { getConfig } from '../config.js'
|
|
2
|
+
import { GenericFonts } from '../types.js'
|
|
3
|
+
import { LanguageContextType } from '../views/FontLanguage.types.js'
|
|
4
|
+
import { createProxy } from './createProxy.js'
|
|
5
5
|
|
|
6
6
|
const extrasCache = new WeakMap()
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StyleObject } from '@tamagui/helpers'
|
|
2
2
|
|
|
3
|
-
import { PartialStyleObject, RulesToInsert } from '../types'
|
|
3
|
+
import { PartialStyleObject, RulesToInsert } from '../types.js'
|
|
4
4
|
|
|
5
5
|
const allSelectors: Record<string, string> = {}
|
|
6
6
|
const allRules: Record<string, string> = {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isValidElement } from 'react'
|
|
2
2
|
|
|
3
|
-
import { TamaguiReactElement } from '../types'
|
|
4
|
-
import { isTamaguiComponent } from './isTamaguiComponent'
|
|
3
|
+
import { TamaguiReactElement } from '../types.js'
|
|
4
|
+
import { isTamaguiComponent } from './isTamaguiComponent.js'
|
|
5
5
|
|
|
6
6
|
export const isTamaguiElement = (
|
|
7
7
|
child: any,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizeCSSColor } from '@tamagui/normalize-css-color'
|
|
2
2
|
|
|
3
|
-
import { defaultOffset } from './expandStyles'
|
|
4
|
-
import { rgba } from './normalizeColor'
|
|
3
|
+
import { defaultOffset } from './expandStyles.js'
|
|
4
|
+
import { rgba } from './normalizeColor.js'
|
|
5
5
|
import { normalizeValueWithProperty } from './normalizeValueWithProperty.js'
|
|
6
6
|
|
|
7
7
|
export function normalizeShadow({
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import { isWeb } from '@tamagui/constants'
|
|
7
7
|
|
|
8
|
-
import { getAllSelectors } from './insertStyleRule'
|
|
9
|
-
import { names, normalizeColor } from './normalizeColor'
|
|
10
|
-
import { normalizeStylePropKeys } from './normalizeStylePropKeys'
|
|
8
|
+
import { getAllSelectors } from './insertStyleRule.js'
|
|
9
|
+
import { names, normalizeColor } from './normalizeColor.js'
|
|
10
|
+
import { normalizeStylePropKeys } from './normalizeStylePropKeys.js'
|
|
11
11
|
|
|
12
12
|
const colorCache = {}
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef, useId } from 'react'
|
|
2
2
|
|
|
3
|
-
import { DebugProp, ThemeName } from '../types'
|
|
4
|
-
import { Theme } from '../views/Theme'
|
|
3
|
+
import { DebugProp, ThemeName } from '../types.js'
|
|
4
|
+
import { Theme } from '../views/Theme.js'
|
|
5
5
|
|
|
6
6
|
export interface ThemeableProps {
|
|
7
7
|
theme?: ThemeName | null
|
package/src/helpers/themes.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createVariable, isVariable } from '../createVariable'
|
|
2
|
-
import { GetThemeUnwrapped } from '../hooks/getThemeUnwrapped'
|
|
3
|
-
import { CreateTamaguiProps } from '../types'
|
|
1
|
+
import { createVariable, isVariable } from '../createVariable.js'
|
|
2
|
+
import { GetThemeUnwrapped } from '../hooks/getThemeUnwrapped.js'
|
|
3
|
+
import { CreateTamaguiProps } from '../types.js'
|
|
4
4
|
|
|
5
5
|
// mutates, freeze after
|
|
6
6
|
// shared by createTamagui so extracted here
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { startTransition, useCallback } from 'react'
|
|
2
2
|
|
|
3
|
-
import { DebugProp } from '../types'
|
|
4
|
-
import { TamaguiComponentState } from '..'
|
|
3
|
+
import { DebugProp, TamaguiComponentState } from '../types.js'
|
|
5
4
|
|
|
6
5
|
export function useShallowSetState<State extends TamaguiComponentState>(
|
|
7
6
|
setter: React.Dispatch<React.SetStateAction<State>>,
|
package/src/hooks/useMedia.tsx
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { startTransition, useEffect, useMemo, useSyncExternalStore } from 'react'
|
|
2
2
|
|
|
3
|
-
import { getConfig } from '../config'
|
|
4
|
-
import { createProxy } from '../helpers/createProxy'
|
|
5
|
-
import { matchMedia } from '../helpers/matchMedia'
|
|
3
|
+
import { getConfig } from '../config.js'
|
|
4
|
+
import { createProxy } from '../helpers/createProxy.js'
|
|
5
|
+
import { matchMedia } from '../helpers/matchMedia.js'
|
|
6
6
|
import {
|
|
7
7
|
MediaQueries,
|
|
8
8
|
MediaQueryKey,
|
|
9
9
|
MediaQueryObject,
|
|
10
10
|
MediaQueryState,
|
|
11
11
|
TamaguiInternalConfig,
|
|
12
|
-
} from '../types'
|
|
13
|
-
import { useSafeRef } from './useSafeRef'
|
|
12
|
+
} from '../types.js'
|
|
13
|
+
import { useSafeRef } from './useSafeRef.js'
|
|
14
14
|
|
|
15
15
|
export let mediaState: MediaQueryState =
|
|
16
16
|
// development only safeguard
|
package/src/hooks/useStyle.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isRSC, isWeb } from '@tamagui/constants'
|
|
2
2
|
import { useContext } from 'react'
|
|
3
3
|
|
|
4
|
-
import { FontLanguageContext } from '../contexts/FontLanguageContext'
|
|
5
|
-
import { TextAncestorContext } from '../contexts/TextAncestorContext'
|
|
6
|
-
import { useSplitStyles } from '../helpers/getSplitStyles'
|
|
4
|
+
import { FontLanguageContext } from '../contexts/FontLanguageContext.js'
|
|
5
|
+
import { TextAncestorContext } from '../contexts/TextAncestorContext.js'
|
|
6
|
+
import { useSplitStyles } from '../helpers/getSplitStyles.js'
|
|
7
7
|
import {
|
|
8
8
|
DebugProp,
|
|
9
9
|
GetProps,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
TamaguiComponent,
|
|
12
12
|
TextNonStyleProps,
|
|
13
13
|
} from '../types'
|
|
14
|
-
import { useMedia } from './useMedia'
|
|
15
|
-
import { useTheme } from './useTheme'
|
|
14
|
+
import { useMedia } from './useMedia.js'
|
|
15
|
+
import { useTheme } from './useTheme.js'
|
|
16
16
|
|
|
17
17
|
export function useStyle<
|
|
18
18
|
Component extends TamaguiComponent,
|
package/src/hooks/useTheme.tsx
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { isClient, isRSC, isServer, isWeb } from '@tamagui/constants'
|
|
3
3
|
import { useContext, useEffect, useMemo, useState } from 'react'
|
|
4
4
|
|
|
5
|
-
import { getConfig } from '../config'
|
|
6
|
-
import { isDevTools } from '../constants/isDevTools'
|
|
7
|
-
import { createProxy } from '../helpers/createProxy'
|
|
5
|
+
import { getConfig } from '../config.js'
|
|
6
|
+
import { isDevTools } from '../constants/isDevTools.js'
|
|
7
|
+
import { createProxy } from '../helpers/createProxy.js'
|
|
8
8
|
import {
|
|
9
9
|
ThemeManager,
|
|
10
10
|
ThemeManagerState,
|
|
11
11
|
hasNoThemeUpdatingProps,
|
|
12
|
-
} from '../helpers/ThemeManager'
|
|
13
|
-
import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
|
|
14
|
-
import { ThemeParsed, ThemeProps } from '../types'
|
|
15
|
-
import { GetThemeUnwrapped } from './getThemeUnwrapped'
|
|
16
|
-
import { useServerRef } from './useServerHooks'
|
|
12
|
+
} from '../helpers/ThemeManager.js'
|
|
13
|
+
import { ThemeManagerContext } from '../helpers/ThemeManagerContext.js'
|
|
14
|
+
import type { ThemeParsed, ThemeProps } from '../types.js'
|
|
15
|
+
import { GetThemeUnwrapped } from './getThemeUnwrapped.js'
|
|
16
|
+
import { useServerRef } from './useServerHooks.js'
|
|
17
17
|
|
|
18
18
|
export type ChangedThemeResponse = {
|
|
19
19
|
themeManager: ThemeManager | null
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isRSC, useIsomorphicLayoutEffect } from '@tamagui/constants'
|
|
2
2
|
import { useContext, useState } from 'react'
|
|
3
3
|
|
|
4
|
-
import { getConfig } from '../config'
|
|
5
|
-
import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
|
|
6
|
-
import { ThemeName } from '../types'
|
|
4
|
+
import { getConfig } from '../config.js'
|
|
5
|
+
import { ThemeManagerContext } from '../helpers/ThemeManagerContext.js'
|
|
6
|
+
import { ThemeName } from '../types.js'
|
|
7
7
|
|
|
8
8
|
export function useThemeName(opts?: { parent?: true }): ThemeName {
|
|
9
9
|
if (isRSC) {
|
package/src/index.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export * from './Tamagui'
|
|
2
|
-
export * from './createComponent'
|
|
3
|
-
export * from './createShorthands'
|
|
4
|
-
export * from './createTheme'
|
|
5
|
-
export * from './createTamagui'
|
|
6
|
-
export * from './createFont'
|
|
7
|
-
export * from './createTokens'
|
|
8
|
-
export * from './createVariable'
|
|
9
|
-
export * from './createVariables'
|
|
10
|
-
export * from './insertFont'
|
|
11
|
-
export * from './addTheme'
|
|
12
|
-
export * from './updateTheme'
|
|
13
|
-
export * from './styled'
|
|
14
|
-
export * from './types'
|
|
15
|
-
export * from './setupReactNative'
|
|
1
|
+
export * from './Tamagui.js'
|
|
2
|
+
export * from './createComponent.js'
|
|
3
|
+
export * from './createShorthands.js'
|
|
4
|
+
export * from './createTheme.js'
|
|
5
|
+
export * from './createTamagui.js'
|
|
6
|
+
export * from './createFont.js'
|
|
7
|
+
export * from './createTokens.js'
|
|
8
|
+
export * from './createVariable.js'
|
|
9
|
+
export * from './createVariables.js'
|
|
10
|
+
export * from './insertFont.js'
|
|
11
|
+
export * from './addTheme.js'
|
|
12
|
+
export * from './updateTheme.js'
|
|
13
|
+
export * from './styled.js'
|
|
14
|
+
export * from './types.js'
|
|
15
|
+
export * from './setupReactNative.js'
|
|
16
16
|
|
|
17
|
-
export { getConfig, getThemes, getTokens, onConfiguredOnce } from './config'
|
|
17
|
+
export { getConfig, getThemes, getTokens, onConfiguredOnce } from './config.js'
|
|
18
18
|
|
|
19
|
-
export * from './constants/constants'
|
|
19
|
+
export * from './constants/constants.js'
|
|
20
20
|
|
|
21
|
-
export * from './helpers/useShallowSetState'
|
|
22
|
-
export * from './helpers/getVariantExtras'
|
|
23
|
-
export * from './helpers/getAnimationDriver'
|
|
24
|
-
export * from './helpers/getExpandedShorthands'
|
|
25
|
-
export * from './helpers/getSplitStyles'
|
|
26
|
-
export * from './helpers/getStylesAtomic'
|
|
27
|
-
export * from './helpers/pseudoDescriptors'
|
|
28
|
-
export * from './helpers/mergeProps'
|
|
29
|
-
export * from './helpers/expandStyles'
|
|
30
|
-
export * from './helpers/isTamaguiElement'
|
|
31
|
-
export * from './helpers/isTamaguiComponent'
|
|
32
|
-
export * from './helpers/matchMedia'
|
|
33
|
-
export * from './helpers/proxyThemeVariables'
|
|
34
|
-
export * from './helpers/themeable'
|
|
35
|
-
export * from './helpers/withStaticProperties'
|
|
21
|
+
export * from './helpers/useShallowSetState.js'
|
|
22
|
+
export * from './helpers/getVariantExtras.js'
|
|
23
|
+
export * from './helpers/getAnimationDriver.js'
|
|
24
|
+
export * from './helpers/getExpandedShorthands.js'
|
|
25
|
+
export * from './helpers/getSplitStyles.js'
|
|
26
|
+
export * from './helpers/getStylesAtomic.js'
|
|
27
|
+
export * from './helpers/pseudoDescriptors.js'
|
|
28
|
+
export * from './helpers/mergeProps.js'
|
|
29
|
+
export * from './helpers/expandStyles.js'
|
|
30
|
+
export * from './helpers/isTamaguiElement.js'
|
|
31
|
+
export * from './helpers/isTamaguiComponent.js'
|
|
32
|
+
export * from './helpers/matchMedia.js'
|
|
33
|
+
export * from './helpers/proxyThemeVariables.js'
|
|
34
|
+
export * from './helpers/themeable.js'
|
|
35
|
+
export * from './helpers/withStaticProperties.js'
|
|
36
36
|
|
|
37
|
-
export * from './contexts/ButtonNestingContext'
|
|
37
|
+
export * from './contexts/ButtonNestingContext.js'
|
|
38
38
|
|
|
39
|
-
export * from './hooks/useId'
|
|
40
|
-
export * from './hooks/useIsTouchDevice'
|
|
39
|
+
export * from './hooks/useId.js'
|
|
40
|
+
export * from './hooks/useIsTouchDevice.js'
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
43
|
configureMedia,
|
|
@@ -47,20 +47,20 @@ export {
|
|
|
47
47
|
useMediaPropsActive,
|
|
48
48
|
mediaObjectToString,
|
|
49
49
|
mediaQueryConfig,
|
|
50
|
-
} from './hooks/useMedia'
|
|
51
|
-
export * from './hooks/useTheme'
|
|
52
|
-
export * from './hooks/useThemeName'
|
|
53
|
-
export * from './hooks/useSafeRef'
|
|
54
|
-
export * from './hooks/useStyle'
|
|
50
|
+
} from './hooks/useMedia.js'
|
|
51
|
+
export * from './hooks/useTheme.js'
|
|
52
|
+
export * from './hooks/useThemeName.js'
|
|
53
|
+
export * from './hooks/useSafeRef.js'
|
|
54
|
+
export * from './hooks/useStyle.js'
|
|
55
55
|
|
|
56
|
-
export * from './views/Slot'
|
|
57
|
-
export * from './views/Stack'
|
|
58
|
-
export * from './views/Text'
|
|
59
|
-
export * from './contexts/TextAncestorContext'
|
|
60
|
-
export * from './views/Theme'
|
|
61
|
-
export * from './views/ThemeProvider'
|
|
62
|
-
export * from './views/FontLanguage'
|
|
63
|
-
export * from './views/TamaguiProvider'
|
|
56
|
+
export * from './views/Slot.js'
|
|
57
|
+
export * from './views/Stack.js'
|
|
58
|
+
export * from './views/Text.js'
|
|
59
|
+
export * from './contexts/TextAncestorContext.js'
|
|
60
|
+
export * from './views/Theme.js'
|
|
61
|
+
export * from './views/ThemeProvider.js'
|
|
62
|
+
export * from './views/FontLanguage.js'
|
|
63
|
+
export * from './views/TamaguiProvider.js'
|
|
64
64
|
|
|
65
65
|
export * from '@tamagui/use-force-update'
|
|
66
66
|
export * from '@tamagui/use-did-finish-ssr'
|
|
@@ -69,4 +69,4 @@ export * from '@tamagui/compose-refs'
|
|
|
69
69
|
export * from '@tamagui/helpers'
|
|
70
70
|
export * from '@tamagui/constants'
|
|
71
71
|
|
|
72
|
-
export * from './setupHooks'
|
|
72
|
+
export * from './setupHooks.js'
|
package/src/insertFont.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { setConfigFont } from './config'
|
|
2
|
-
import { createFont } from './createFont'
|
|
3
|
-
import { Variable } from './createVariable'
|
|
4
|
-
import { DeepVariableObject, createVariables } from './createVariables'
|
|
5
|
-
import { registerCSSVariable, variableToCSS } from './helpers/registerCSSVariable'
|
|
6
|
-
import { GenericFont } from './types'
|
|
1
|
+
import { setConfigFont } from './config.js'
|
|
2
|
+
import { createFont } from './createFont.js'
|
|
3
|
+
import { Variable } from './createVariable.js'
|
|
4
|
+
import { DeepVariableObject, createVariables } from './createVariables.js'
|
|
5
|
+
import { registerCSSVariable, variableToCSS } from './helpers/registerCSSVariable.js'
|
|
6
|
+
import { GenericFont } from './types.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Runtime dynamic insert font
|
package/src/setupReactNative.ts
CHANGED
package/src/styled.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { stylePropsAll } from '@tamagui/helpers'
|
|
2
2
|
|
|
3
|
-
import { createComponent } from './createComponent'
|
|
4
|
-
import { ReactNativeStaticConfigs } from './setupReactNative'
|
|
5
|
-
import {
|
|
3
|
+
import { createComponent } from './createComponent.js'
|
|
4
|
+
import { ReactNativeStaticConfigs } from './setupReactNative.js'
|
|
5
|
+
import type {
|
|
6
6
|
GetProps,
|
|
7
7
|
GetVariantValues,
|
|
8
8
|
MediaProps,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
TamaguiElement,
|
|
14
14
|
VariantDefinitions,
|
|
15
15
|
VariantSpreadFunction,
|
|
16
|
-
} from './types'
|
|
16
|
+
} from './types.js'
|
|
17
17
|
|
|
18
18
|
// TODO may be able to use this in the options?: arg below directly
|
|
19
19
|
export type StyledOptions<ParentComponent extends StylableComponent> =
|
package/src/types.tsx
CHANGED
|
@@ -24,10 +24,10 @@ import type {
|
|
|
24
24
|
ViewStyle,
|
|
25
25
|
} from 'react-native'
|
|
26
26
|
|
|
27
|
-
import type { Variable } from './createVariable'
|
|
28
|
-
import type { ResolveVariableTypes } from './helpers/createPropMapper'
|
|
29
|
-
import type { FontLanguageProps } from './views/FontLanguage.types'
|
|
30
|
-
import type { ThemeProviderProps } from './views/ThemeProvider'
|
|
27
|
+
import type { Variable } from './createVariable.js'
|
|
28
|
+
import type { ResolveVariableTypes } from './helpers/createPropMapper.js'
|
|
29
|
+
import type { FontLanguageProps } from './views/FontLanguage.types.js'
|
|
30
|
+
import type { ThemeProviderProps } from './views/ThemeProvider.js'
|
|
31
31
|
|
|
32
32
|
export type SpaceDirection = 'vertical' | 'horizontal' | 'both'
|
|
33
33
|
|
package/src/updateTheme.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { addTheme } from './addTheme'
|
|
2
|
-
import { activeThemeManagers } from './hooks/useTheme'
|
|
3
|
-
import { ThemeDefinition } from './types'
|
|
1
|
+
import { addTheme } from './addTheme.js'
|
|
2
|
+
import { activeThemeManagers } from './hooks/useTheme.js'
|
|
3
|
+
import type { ThemeDefinition } from './types.js'
|
|
4
4
|
|
|
5
5
|
export function updateTheme({
|
|
6
6
|
name,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo } from 'react'
|
|
2
2
|
|
|
3
|
-
import { FontLanguageContext } from '../contexts/FontLanguageContext'
|
|
4
|
-
import { FontLanguageProps } from './FontLanguage.types'
|
|
3
|
+
import { FontLanguageContext } from '../contexts/FontLanguageContext.js'
|
|
4
|
+
import type { FontLanguageProps } from './FontLanguage.types.js'
|
|
5
5
|
|
|
6
6
|
export const FontLanguage = ({ children, ...props }: FontLanguageProps) => {
|
|
7
7
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
package/src/views/Stack.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { View } from 'react-native'
|
|
2
2
|
|
|
3
|
-
import { stackDefaultStyles } from '../constants/constants'
|
|
4
|
-
import { createComponent } from '../createComponent'
|
|
5
|
-
import { StackProps, StackPropsBase } from '../types'
|
|
3
|
+
import { stackDefaultStyles } from '../constants/constants.js'
|
|
4
|
+
import { createComponent } from '../createComponent.js'
|
|
5
|
+
import type { StackProps, StackPropsBase } from '../types.js'
|
|
6
6
|
|
|
7
7
|
export const Stack = createComponent<StackProps, View, StackPropsBase>({
|
|
8
8
|
componentName: 'Stack',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isClient, isRSC, isServer, isWeb } from '@tamagui/constants'
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { ButtonNestingContext } from '../contexts/ButtonNestingContext'
|
|
5
|
-
import { TextAncestorContext } from '../contexts/TextAncestorContext'
|
|
6
|
-
import { useMediaListeners } from '../hooks/useMedia'
|
|
7
|
-
import type { TamaguiProviderProps } from '../types'
|
|
8
|
-
import { ThemeProvider } from './ThemeProvider'
|
|
4
|
+
import { ButtonNestingContext } from '../contexts/ButtonNestingContext.js'
|
|
5
|
+
import { TextAncestorContext } from '../contexts/TextAncestorContext.js'
|
|
6
|
+
import { useMediaListeners } from '../hooks/useMedia.js'
|
|
7
|
+
import type { TamaguiProviderProps } from '../types.js'
|
|
8
|
+
import { ThemeProvider } from './ThemeProvider.js'
|
|
9
9
|
|
|
10
10
|
export function TamaguiProvider({
|
|
11
11
|
children,
|
package/src/views/Text.tsx
CHANGED
|
@@ -2,8 +2,8 @@ import { isWeb } from '@tamagui/constants'
|
|
|
2
2
|
import { stylePropsTextOnly, validStyles } from '@tamagui/helpers'
|
|
3
3
|
import type { Text as TextView } from 'react-native'
|
|
4
4
|
|
|
5
|
-
import { createComponent } from '../createComponent'
|
|
6
|
-
import { TextProps, TextPropsBase } from '../types'
|
|
5
|
+
import { createComponent } from '../createComponent.js'
|
|
6
|
+
import { TextProps, TextPropsBase } from '../types.js'
|
|
7
7
|
|
|
8
8
|
const ellipseStyle = {
|
|
9
9
|
maxWidth: '100%',
|
package/src/views/Theme.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isWeb } from '@tamagui/constants'
|
|
2
2
|
import { Children, cloneElement } from 'react'
|
|
3
3
|
|
|
4
|
-
import { variableToString } from '../createVariable'
|
|
5
|
-
import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
|
|
6
|
-
import { useServerRef } from '../hooks/useServerHooks'
|
|
7
|
-
import { ChangedThemeResponse, useChangeThemeEffect } from '../hooks/useTheme'
|
|
8
|
-
import { ThemeProps } from '../types'
|
|
4
|
+
import { variableToString } from '../createVariable.js'
|
|
5
|
+
import { ThemeManagerContext } from '../helpers/ThemeManagerContext.js'
|
|
6
|
+
import { useServerRef } from '../hooks/useServerHooks.js'
|
|
7
|
+
import { ChangedThemeResponse, useChangeThemeEffect } from '../hooks/useTheme.js'
|
|
8
|
+
import type { ThemeProps } from '../types.js'
|
|
9
9
|
|
|
10
10
|
export function Theme(props: ThemeProps) {
|
|
11
11
|
// @ts-expect-error only for internal views
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isClient } from '@tamagui/constants'
|
|
2
2
|
import { createContext, useLayoutEffect, useMemo } from 'react'
|
|
3
3
|
|
|
4
|
-
import { THEME_CLASSNAME_PREFIX } from '../constants/constants'
|
|
5
|
-
import { Theme } from './Theme'
|
|
4
|
+
import { THEME_CLASSNAME_PREFIX } from '../constants/constants.js'
|
|
5
|
+
import { Theme } from './Theme.js'
|
|
6
6
|
|
|
7
7
|
export type ThemeProviderProps = {
|
|
8
8
|
className?: string
|
package/types/Tamagui.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ declare class TamaguiManager {
|
|
|
5
5
|
[x: string]: boolean;
|
|
6
6
|
[x: number]: boolean;
|
|
7
7
|
};
|
|
8
|
-
get config(): import("./types").TamaguiInternalConfig<import("./types").CreateTokens<import("./types").VariableVal>, {
|
|
9
|
-
[key: string]: Partial<import("./types").TamaguiBaseTheme> & {
|
|
10
|
-
[key: string]: import("./types").VariableVal;
|
|
8
|
+
get config(): import("./types.js").TamaguiInternalConfig<import("./types.js").CreateTokens<import("./types.js").VariableVal>, {
|
|
9
|
+
[key: string]: Partial<import("./types.js").TamaguiBaseTheme> & {
|
|
10
|
+
[key: string]: import("./types.js").VariableVal;
|
|
11
11
|
};
|
|
12
|
-
}, import("./types").GenericShorthands, {
|
|
12
|
+
}, import("./types.js").GenericShorthands, {
|
|
13
13
|
[key: string]: {
|
|
14
14
|
[key: string]: string | number;
|
|
15
15
|
};
|
|
@@ -17,7 +17,7 @@ declare class TamaguiManager {
|
|
|
17
17
|
[key: string]: string | any[] | {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
20
|
-
}, import("./types").GenericFonts>;
|
|
20
|
+
}, import("./types.js").GenericFonts>;
|
|
21
21
|
get insertedRules(): string[];
|
|
22
22
|
get allSelectors(): Record<string, string>;
|
|
23
23
|
get allTransforms(): {};
|