@tamagui/core 1.0.0-alpha.4 → 1.0.0-alpha.43
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/conf.js +52 -0
- package/dist/cjs/conf.js.map +7 -0
- package/dist/cjs/constants/constants.js +55 -0
- package/dist/cjs/constants/constants.js.map +7 -0
- package/dist/cjs/constants/platform.js +44 -0
- package/dist/cjs/constants/platform.js.map +7 -0
- package/dist/cjs/constants/pseudos.js +42 -0
- package/dist/cjs/constants/pseudos.js.map +7 -0
- package/dist/cjs/constants/rnw.js +45 -0
- package/{_ → dist/cjs}/constants/rnw.js.map +2 -2
- package/dist/cjs/createComponent.js +539 -0
- package/dist/cjs/createComponent.js.map +7 -0
- package/dist/cjs/createFont.js +51 -0
- package/dist/cjs/createFont.js.map +7 -0
- package/dist/cjs/createShorthands.js +33 -0
- package/{_ → dist/cjs}/createShorthands.js.map +2 -2
- package/dist/cjs/createTamagui.js +205 -0
- package/dist/cjs/createTamagui.js.map +7 -0
- package/dist/cjs/createTheme.js +30 -0
- package/dist/cjs/createTheme.js.map +7 -0
- package/dist/cjs/createTokens.js +56 -0
- package/dist/cjs/createTokens.js.map +7 -0
- package/dist/cjs/createVariable.js +48 -0
- package/dist/cjs/createVariable.js.map +7 -0
- package/dist/cjs/getThemeParentClassName.js +34 -0
- package/dist/cjs/getThemeParentClassName.js.map +7 -0
- package/dist/cjs/helpers/addStylesUsingClassname.js +80 -0
- package/dist/cjs/helpers/addStylesUsingClassname.js.map +7 -0
- package/dist/cjs/helpers/createMediaStyle.js +57 -0
- package/dist/{helpers → cjs/helpers}/createMediaStyle.js.map +2 -2
- package/dist/cjs/helpers/createPropMapper.js +201 -0
- package/dist/cjs/helpers/createPropMapper.js.map +7 -0
- package/dist/cjs/helpers/createTamaguiProvider.js +80 -0
- package/dist/cjs/helpers/createTamaguiProvider.js.map +7 -0
- package/dist/cjs/helpers/extendStaticConfig.js +83 -0
- package/dist/{helpers → cjs/helpers}/extendStaticConfig.js.map +2 -2
- package/dist/cjs/helpers/fixNativeShadow.js +31 -0
- package/dist/cjs/helpers/fixNativeShadow.js.map +7 -0
- package/dist/cjs/helpers/fixNativeShadow.native.js +57 -0
- package/dist/cjs/helpers/fixNativeShadow.native.js.map +7 -0
- package/dist/cjs/helpers/getSplitStyles.js +181 -0
- package/dist/cjs/helpers/getSplitStyles.js.map +7 -0
- package/dist/cjs/helpers/getStylesAtomic.js +118 -0
- package/dist/cjs/helpers/getStylesAtomic.js.map +7 -0
- package/dist/cjs/helpers/getStylesAtomic.native.js +33 -0
- package/dist/cjs/helpers/getStylesAtomic.native.js.map +7 -0
- package/dist/cjs/helpers/getThemeParentClassName.js +34 -0
- package/dist/cjs/helpers/getThemeParentClassName.js.map +7 -0
- package/dist/cjs/helpers/insertStyleRule.js +47 -0
- package/dist/{helpers → cjs/helpers}/insertStyleRule.js.map +2 -2
- package/dist/cjs/helpers/isObj.js +30 -0
- package/dist/cjs/helpers/isObj.js.map +7 -0
- package/dist/cjs/helpers/isTamaguiElement.js +34 -0
- package/dist/cjs/helpers/isTamaguiElement.js.map +7 -0
- package/dist/cjs/helpers/matchMedia.js +41 -0
- package/dist/cjs/helpers/matchMedia.js.map +7 -0
- package/dist/cjs/helpers/matchMedia.native.js +37 -0
- package/dist/cjs/helpers/matchMedia.native.js.map +7 -0
- package/dist/cjs/helpers/themeable.js +84 -0
- package/dist/{helpers → cjs/helpers}/themeable.js.map +2 -2
- package/dist/cjs/helpers/validate.js +88 -0
- package/dist/cjs/helpers/validate.js.map +7 -0
- package/dist/cjs/hooks/useConstant.js +38 -0
- package/dist/{hooks → cjs/hooks}/useConstant.js.map +2 -2
- package/dist/cjs/hooks/useFeatures.js +106 -0
- package/dist/cjs/hooks/useFeatures.js.map +7 -0
- package/dist/cjs/hooks/useMedia.js +208 -0
- package/dist/cjs/hooks/useMedia.js.map +7 -0
- package/dist/cjs/hooks/usePressable.js +51 -0
- package/dist/{hooks → cjs/hooks}/usePressable.js.map +2 -2
- package/dist/cjs/hooks/useTheme.js +119 -0
- package/dist/cjs/hooks/useTheme.js.map +7 -0
- package/dist/cjs/index.js +64 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/static/postProcessStyles.js +41 -0
- package/dist/{static → cjs/static}/postProcessStyles.js.map +2 -2
- package/dist/cjs/static.js +35 -0
- package/dist/cjs/static.js.map +7 -0
- package/dist/cjs/styled.js +73 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/cjs/types.js +21 -0
- package/dist/cjs/types.js.map +7 -0
- package/dist/cjs/views/Animated.js +135 -0
- package/dist/{views → cjs/views}/Animated.js.map +2 -2
- package/dist/cjs/views/Stack.js +52 -0
- package/dist/{views → cjs/views}/Stack.js.map +2 -2
- package/dist/cjs/views/Text.js +94 -0
- package/dist/cjs/views/Text.js.map +7 -0
- package/dist/cjs/views/TextAncestorContext.js +46 -0
- package/dist/cjs/views/TextAncestorContext.js.map +7 -0
- package/dist/cjs/views/Theme.js +97 -0
- package/dist/cjs/views/Theme.js.map +7 -0
- package/dist/cjs/views/ThemeContext.js +30 -0
- package/dist/{views → cjs/views}/ThemeContext.js.map +2 -2
- package/dist/cjs/views/ThemeInverse.js +54 -0
- package/dist/{views → cjs/views}/ThemeInverse.js.map +3 -3
- package/dist/cjs/views/ThemeManagerContext.js +85 -0
- package/dist/cjs/views/ThemeManagerContext.js.map +7 -0
- package/dist/cjs/views/ThemeProvider.js +73 -0
- package/dist/cjs/views/ThemeProvider.js.map +7 -0
- package/dist/esm/conf.js +29 -0
- package/dist/esm/conf.js.map +7 -0
- package/{_ → dist/esm}/constants/constants.js +4 -0
- package/dist/esm/constants/constants.js.map +7 -0
- package/{_ → dist/esm}/constants/platform.js +1 -1
- package/dist/{constants → esm/constants}/platform.js.map +2 -2
- package/{_ → dist/esm}/constants/pseudos.js +0 -0
- package/{_ → dist/esm}/constants/pseudos.js.map +1 -1
- package/{_ → dist/esm}/constants/rnw.js +0 -0
- package/dist/{constants → esm/constants}/rnw.js.map +1 -1
- package/dist/{createComponent.js → esm/createComponent.js} +88 -64
- package/dist/esm/createComponent.js.map +7 -0
- package/dist/{createFont.js → esm/createFont.js} +4 -0
- package/dist/esm/createFont.js.map +7 -0
- package/{_ → dist/esm}/createShorthands.js +0 -0
- package/dist/{createShorthands.js.map → esm/createShorthands.js.map} +1 -1
- package/dist/esm/createTamagui.js +166 -0
- package/dist/esm/createTamagui.js.map +7 -0
- package/dist/esm/createTheme.js +7 -0
- package/dist/esm/createTheme.js.map +7 -0
- package/dist/{createTokens.js → esm/createTokens.js} +4 -0
- package/dist/esm/createTokens.js.map +7 -0
- package/dist/{createVariable.js → esm/createVariable.js} +3 -0
- package/dist/{createVariable.js.map → esm/createVariable.js.map} +3 -3
- package/dist/esm/getThemeParentClassName.js +11 -0
- package/dist/esm/getThemeParentClassName.js.map +7 -0
- package/dist/{helpers → esm/helpers}/addStylesUsingClassname.js +1 -1
- package/dist/{helpers → esm/helpers}/addStylesUsingClassname.js.map +2 -2
- package/{_ → dist/esm}/helpers/createMediaStyle.js +0 -0
- package/{_ → dist/esm}/helpers/createMediaStyle.js.map +1 -1
- package/dist/{helpers → esm/helpers}/createPropMapper.js +28 -16
- package/dist/esm/helpers/createPropMapper.js.map +7 -0
- package/dist/{helpers → esm/helpers}/createTamaguiProvider.js +0 -0
- package/dist/{helpers → esm/helpers}/createTamaguiProvider.js.map +1 -1
- package/dist/{helpers → esm/helpers}/extendStaticConfig.js +3 -2
- package/dist/esm/helpers/extendStaticConfig.js.map +7 -0
- package/{_ → dist/esm}/helpers/fixNativeShadow.js +0 -0
- package/dist/{helpers → esm/helpers}/fixNativeShadow.js.map +1 -1
- package/dist/esm/helpers/fixNativeShadow.native.js +34 -0
- package/dist/esm/helpers/fixNativeShadow.native.js.map +7 -0
- package/dist/{helpers → esm/helpers}/getSplitStyles.js +13 -23
- package/dist/esm/helpers/getSplitStyles.js.map +7 -0
- package/{_ → dist/esm}/helpers/getStylesAtomic.js +0 -0
- package/dist/esm/helpers/getStylesAtomic.js.map +7 -0
- package/{_ → dist/esm}/helpers/getStylesAtomic.native.js +0 -0
- package/{_ → dist/esm}/helpers/getStylesAtomic.native.js.map +1 -1
- package/dist/esm/helpers/getThemeParentClassName.js +11 -0
- package/dist/esm/helpers/getThemeParentClassName.js.map +7 -0
- package/{_ → dist/esm}/helpers/insertStyleRule.js +0 -0
- package/{_ → dist/esm}/helpers/insertStyleRule.js.map +1 -1
- package/dist/{helpers → esm/helpers}/isObj.js +0 -0
- package/dist/{helpers → esm/helpers}/isObj.js.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.js +11 -0
- package/dist/esm/helpers/isTamaguiElement.js.map +7 -0
- package/{_ → dist/esm}/helpers/matchMedia.js +3 -0
- package/dist/esm/helpers/matchMedia.js.map +7 -0
- package/dist/{helpers → esm/helpers}/matchMedia.native.js +1 -0
- package/{_ → dist/esm}/helpers/matchMedia.native.js.map +3 -3
- package/{_ → dist/esm}/helpers/themeable.js +0 -0
- package/{_ → dist/esm}/helpers/themeable.js.map +1 -1
- package/dist/esm/helpers/validate.js +60 -0
- package/dist/esm/helpers/validate.js.map +7 -0
- package/{_ → dist/esm}/hooks/useConstant.js +0 -0
- package/{_ → dist/esm}/hooks/useConstant.js.map +1 -1
- package/{_ → dist/esm}/hooks/useFeatures.js +39 -51
- package/dist/esm/hooks/useFeatures.js.map +7 -0
- package/{_ → dist/esm}/hooks/useMedia.js +8 -6
- package/dist/esm/hooks/useMedia.js.map +7 -0
- package/{_ → dist/esm}/hooks/usePressable.js +0 -0
- package/{_ → dist/esm}/hooks/usePressable.js.map +1 -1
- package/{_ → dist/esm}/hooks/useTheme.js +16 -13
- package/dist/esm/hooks/useTheme.js.map +7 -0
- package/dist/{index.js → esm/index.js} +17 -2
- package/dist/esm/index.js.map +7 -0
- package/{_ → dist/esm}/static/postProcessStyles.js +0 -0
- package/{_ → dist/esm}/static/postProcessStyles.js.map +1 -1
- package/dist/{static.js → esm/static.js} +0 -0
- package/dist/{static.js.map → esm/static.js.map} +1 -1
- package/dist/{styled.js → esm/styled.js} +0 -0
- package/dist/esm/styled.js.map +7 -0
- package/{_ → dist/esm}/types.js +0 -0
- package/{_ → dist/esm}/types.js.map +0 -0
- package/{_ → dist/esm}/views/Animated.js +0 -0
- package/{_ → dist/esm}/views/Animated.js.map +1 -1
- package/{_ → dist/esm}/views/Stack.js +0 -0
- package/{_ → dist/esm}/views/Stack.js.map +1 -1
- package/dist/{views → esm/views}/Text.js +2 -2
- package/dist/esm/views/Text.js.map +7 -0
- package/dist/esm/views/TextAncestorContext.js +18 -0
- package/dist/esm/views/TextAncestorContext.js.map +7 -0
- package/{_ → dist/esm}/views/Theme.js +26 -14
- package/dist/esm/views/Theme.js.map +7 -0
- package/{_ → dist/esm}/views/ThemeContext.js +0 -0
- package/{_ → dist/esm}/views/ThemeContext.js.map +1 -1
- package/{_ → dist/esm}/views/ThemeInverse.js +0 -1
- package/{_ → dist/esm}/views/ThemeInverse.js.map +3 -3
- package/{_ → dist/esm}/views/ThemeManagerContext.js +13 -7
- package/dist/esm/views/ThemeManagerContext.js.map +7 -0
- package/dist/{views → esm/views}/ThemeProvider.js +3 -3
- package/dist/esm/views/ThemeProvider.js.map +7 -0
- package/dist/jsx/conf.js +28 -0
- package/dist/{constants → jsx/constants}/constants.js +4 -1
- package/dist/{constants → jsx/constants}/platform.js +2 -2
- package/dist/{constants → jsx/constants}/pseudos.js +0 -1
- package/dist/{constants → jsx/constants}/rnw.js +0 -1
- package/{_ → dist/jsx}/createComponent.js +110 -74
- package/dist/jsx/createFont.js +27 -0
- package/dist/{createShorthands.js → jsx/createShorthands.js} +0 -1
- package/dist/jsx/createTamagui.js +165 -0
- package/dist/jsx/createTheme.js +6 -0
- package/{_ → dist/jsx}/createTokens.js +4 -1
- package/{_ → dist/jsx}/createVariable.js +3 -1
- package/dist/jsx/getThemeParentClassName.js +10 -0
- package/dist/jsx/helpers/addStylesUsingClassname.js +56 -0
- package/dist/{helpers → jsx/helpers}/createMediaStyle.js +0 -1
- package/dist/jsx/helpers/createPropMapper.js +164 -0
- package/dist/jsx/helpers/createTamaguiProvider.js +19 -0
- package/dist/jsx/helpers/extendStaticConfig.js +59 -0
- package/dist/{helpers → jsx/helpers}/fixNativeShadow.js +0 -1
- package/dist/jsx/helpers/fixNativeShadow.native.js +33 -0
- package/{_ → dist/jsx}/helpers/getSplitStyles.js +18 -29
- package/dist/{helpers → jsx/helpers}/getStylesAtomic.js +2 -2
- package/dist/{helpers → jsx/helpers}/getStylesAtomic.native.js +0 -1
- package/dist/jsx/helpers/getThemeParentClassName.js +10 -0
- package/dist/{helpers → jsx/helpers}/insertStyleRule.js +0 -1
- package/dist/jsx/helpers/isObj.js +6 -0
- package/dist/jsx/helpers/isTamaguiElement.js +10 -0
- package/dist/{helpers → jsx/helpers}/matchMedia.js +3 -1
- package/{_ → dist/jsx}/helpers/matchMedia.native.js +1 -1
- package/dist/{helpers → jsx/helpers}/themeable.js +3 -6
- package/dist/jsx/helpers/validate.js +59 -0
- package/dist/{hooks → jsx/hooks}/useConstant.js +0 -1
- package/dist/jsx/hooks/useFeatures.js +57 -0
- package/dist/{hooks → jsx/hooks}/useMedia.js +10 -7
- package/dist/{hooks → jsx/hooks}/usePressable.js +2 -2
- package/dist/{hooks → jsx/hooks}/useTheme.js +17 -14
- package/{_ → dist/jsx}/index.js +19 -3
- package/dist/{static → jsx/static}/postProcessStyles.js +0 -1
- package/{_ → dist/jsx}/static.js +3 -1
- package/{_ → dist/jsx}/styled.js +2 -3
- package/dist/jsx/types.js +0 -0
- package/dist/{views → jsx/views}/Animated.js +2 -7
- package/dist/{views → jsx/views}/Stack.js +0 -1
- package/{_ → dist/jsx}/views/Text.js +2 -3
- package/dist/jsx/views/TextAncestorContext.js +15 -0
- package/dist/jsx/views/Theme.js +63 -0
- package/dist/{views → jsx/views}/ThemeContext.js +0 -1
- package/dist/{views → jsx/views}/ThemeInverse.js +1 -6
- package/dist/{views → jsx/views}/ThemeManagerContext.js +15 -9
- package/{_ → dist/jsx}/views/ThemeProvider.js +5 -11
- package/package.json +18 -16
- package/types/conf.d.ts +45 -0
- package/types/conf.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/constants/constants.d.ts +2 -0
- package/types/constants/constants.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/constants/platform.d.ts +0 -0
- package/types/constants/platform.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/constants/pseudos.d.ts +0 -0
- package/types/constants/pseudos.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/constants/rnw.d.ts +0 -0
- package/types/constants/rnw.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/createComponent.d.ts +3 -2
- package/types/createComponent.d.ts.map +1 -0
- package/types/createFont.d.ts +3 -0
- package/types/createFont.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/createShorthands.d.ts +0 -0
- package/types/createShorthands.d.ts.map +1 -0
- package/types/createTamagui.d.ts +13 -0
- package/types/createTamagui.d.ts.map +1 -0
- package/types/createTheme.d.ts +7 -0
- package/types/createTheme.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/createTokens.d.ts +24 -14
- package/types/createTokens.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/createVariable.d.ts +1 -0
- package/types/createVariable.d.ts.map +1 -0
- package/types/helpers/addStylesUsingClassname.d.ts +3 -0
- package/types/helpers/addStylesUsingClassname.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/createMediaStyle.d.ts +0 -0
- package/types/helpers/createMediaStyle.d.ts.map +1 -0
- package/types/helpers/createPropMapper.d.ts +3 -0
- package/types/helpers/createPropMapper.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/createTamaguiProvider.d.ts +0 -0
- package/types/helpers/createTamaguiProvider.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/extendStaticConfig.d.ts +1 -1
- package/types/helpers/extendStaticConfig.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/fixNativeShadow.d.ts +0 -0
- package/types/helpers/fixNativeShadow.d.ts.map +1 -0
- package/types/helpers/fixNativeShadow.native.d.ts +2 -0
- package/types/helpers/fixNativeShadow.native.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/getSplitStyles.d.ts +0 -0
- package/types/helpers/getSplitStyles.d.ts.map +1 -0
- package/types/helpers/getStylesAtomic.d.ts +3 -0
- package/types/helpers/getStylesAtomic.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/getStylesAtomic.native.d.ts +0 -0
- package/types/helpers/getStylesAtomic.native.d.ts.map +1 -0
- package/types/helpers/getThemeParentClassName.d.ts +2 -0
- package/types/helpers/getThemeParentClassName.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/insertStyleRule.d.ts +0 -0
- package/types/helpers/insertStyleRule.d.ts.map +1 -0
- package/types/helpers/isObj.d.ts +2 -0
- package/types/helpers/isObj.d.ts.map +1 -0
- package/types/helpers/isTamaguiElement.d.ts +3 -0
- package/types/helpers/isTamaguiElement.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/matchMedia.d.ts +0 -0
- package/types/helpers/matchMedia.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/matchMedia.native.d.ts +0 -0
- package/types/helpers/matchMedia.native.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/helpers/themeable.d.ts +0 -0
- package/types/helpers/themeable.d.ts.map +1 -0
- package/types/helpers/validate.d.ts +4 -0
- package/types/helpers/validate.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/hooks/useConstant.d.ts +0 -0
- package/types/hooks/useConstant.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/hooks/useFeatures.d.ts +0 -0
- package/types/hooks/useFeatures.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/hooks/useMedia.d.ts +0 -0
- package/types/hooks/useMedia.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/hooks/usePressable.d.ts +0 -0
- package/types/hooks/usePressable.d.ts.map +1 -0
- package/types/hooks/useTheme.d.ts +7 -0
- package/types/hooks/useTheme.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/index.d.ts +5 -1
- package/types/index.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/static/postProcessStyles.d.ts +0 -0
- package/types/static/postProcessStyles.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/static.d.ts +3 -0
- package/types/static.d.ts.map +1 -0
- package/types/styled.d.ts +21 -0
- package/types/styled.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/types.d.ts +79 -70
- package/types/types.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/Animated.d.ts +0 -0
- package/types/views/Animated.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/Stack.d.ts +0 -0
- package/types/views/Stack.d.ts.map +1 -0
- package/types/views/Text.d.ts +3 -0
- package/types/views/Text.d.ts.map +1 -0
- package/types/views/TextAncestorContext.d.ts +5 -0
- package/types/views/TextAncestorContext.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/Theme.d.ts +1 -1
- package/types/views/Theme.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/ThemeContext.d.ts +0 -0
- package/types/views/ThemeContext.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/ThemeInverse.d.ts +0 -0
- package/types/views/ThemeInverse.d.ts.map +1 -0
- package/types/views/ThemeManagerContext.d.ts +22 -0
- package/types/views/ThemeManagerContext.d.ts.map +1 -0
- package/{dist/packages/core/src → types}/views/ThemeProvider.d.ts +0 -1
- package/types/views/ThemeProvider.d.ts.map +1 -0
- package/.ultra.cache.json +0 -1
- package/_/constants/constants.js.map +0 -7
- package/_/constants/platform.js.map +0 -7
- package/_/createComponent.js.map +0 -7
- package/_/createTamagui.js +0 -122
- package/_/createTamagui.js.map +0 -7
- package/_/createTheme.js +0 -20
- package/_/createTheme.js.map +0 -7
- package/_/createTokens.js.map +0 -7
- package/_/createVariable.js.map +0 -7
- package/_/helpers/addStylesUsingClassname.js +0 -32
- package/_/helpers/addStylesUsingClassname.js.map +0 -7
- package/_/helpers/createTamaguiProvider.js +0 -42
- package/_/helpers/createTamaguiProvider.js.map +0 -7
- package/_/helpers/extendStaticConfig.js +0 -176
- package/_/helpers/extendStaticConfig.js.map +0 -7
- package/_/helpers/fixNativeShadow.js.map +0 -7
- package/_/helpers/fixNativeShadow.native.js +0 -30
- package/_/helpers/fixNativeShadow.native.js.map +0 -7
- package/_/helpers/getSplitStyles.js.map +0 -7
- package/_/helpers/getStylesAtomic.js.map +0 -7
- package/_/helpers/matchMedia.js.map +0 -7
- package/_/hooks/useFeatures.js.map +0 -7
- package/_/hooks/useForceUpdate.js +0 -28
- package/_/hooks/useForceUpdate.js.map +0 -7
- package/_/hooks/useMedia.js.map +0 -7
- package/_/hooks/useTheme.js.map +0 -7
- package/_/index.js.map +0 -7
- package/_/static.js.map +0 -7
- package/_/styled.js.map +0 -7
- package/_/views/Text.js.map +0 -7
- package/_/views/TextAncestorContext.js +0 -19
- package/_/views/TextAncestorContext.js.map +0 -7
- package/_/views/Theme.js.map +0 -7
- package/_/views/ThemeManagerContext.js.map +0 -7
- package/_/views/ThemeProvider.js.map +0 -7
- package/dist/constants/constants.js.map +0 -7
- package/dist/constants/pseudos.js.map +0 -7
- package/dist/constants/styleConstants.js +0 -46
- package/dist/constants/styleConstants.js.map +0 -7
- package/dist/createComponent.js.map +0 -7
- package/dist/createFont.js.map +0 -7
- package/dist/createTamagui.js +0 -159
- package/dist/createTamagui.js.map +0 -7
- package/dist/createTheme.js +0 -20
- package/dist/createTheme.js.map +0 -7
- package/dist/createTokens.js.map +0 -7
- package/dist/helpers/createPropMapper.js.map +0 -7
- package/dist/helpers/fixNativeShadow.native.js +0 -30
- package/dist/helpers/fixNativeShadow.native.js.map +0 -7
- package/dist/helpers/getSplitStyles.js.map +0 -7
- package/dist/helpers/getStylesAtomic.js.map +0 -7
- package/dist/helpers/getStylesAtomic.native.js.map +0 -7
- package/dist/helpers/matchMedia.js.map +0 -7
- package/dist/helpers/matchMedia.native.js.map +0 -7
- package/dist/helpers/pseudos.js +0 -1
- package/dist/helpers/pseudos.js.map +0 -7
- package/dist/hooks/useFeatures.js +0 -75
- package/dist/hooks/useFeatures.js.map +0 -7
- package/dist/hooks/useForceUpdate.js +0 -28
- package/dist/hooks/useForceUpdate.js.map +0 -7
- package/dist/hooks/useMedia.js.map +0 -7
- package/dist/hooks/useTheme.js.map +0 -7
- package/dist/index.cjs +0 -2103
- package/dist/index.cjs.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/packages/core/src/constants/constants.d.ts.map +0 -1
- package/dist/packages/core/src/constants/platform.d.ts.map +0 -1
- package/dist/packages/core/src/constants/pseudos.d.ts.map +0 -1
- package/dist/packages/core/src/constants/rnw.d.ts.map +0 -1
- package/dist/packages/core/src/createComponent.d.ts.map +0 -1
- package/dist/packages/core/src/createShorthands.d.ts.map +0 -1
- package/dist/packages/core/src/createTamagui.d.ts +0 -37
- package/dist/packages/core/src/createTamagui.d.ts.map +0 -1
- package/dist/packages/core/src/createTheme.d.ts +0 -5
- package/dist/packages/core/src/createTheme.d.ts.map +0 -1
- package/dist/packages/core/src/createTokens.d.ts.map +0 -1
- package/dist/packages/core/src/createVariable.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/addStylesUsingClassname.d.ts +0 -2
- package/dist/packages/core/src/helpers/addStylesUsingClassname.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/createMediaStyle.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/createTamaguiProvider.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/extendStaticConfig.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/fixNativeShadow.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/fixNativeShadow.native.d.ts +0 -2
- package/dist/packages/core/src/helpers/fixNativeShadow.native.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/getSplitStyles.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/getStylesAtomic.d.ts +0 -3
- package/dist/packages/core/src/helpers/getStylesAtomic.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/getStylesAtomic.native.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/insertStyleRule.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/matchMedia.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/matchMedia.native.d.ts.map +0 -1
- package/dist/packages/core/src/helpers/themeable.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useConstant.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useFeatures.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useForceUpdate.d.ts +0 -2
- package/dist/packages/core/src/hooks/useForceUpdate.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useMedia.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/usePressable.d.ts.map +0 -1
- package/dist/packages/core/src/hooks/useTheme.d.ts +0 -18
- package/dist/packages/core/src/hooks/useTheme.d.ts.map +0 -1
- package/dist/packages/core/src/index.d.ts.map +0 -1
- package/dist/packages/core/src/static/postProcessStyles.d.ts.map +0 -1
- package/dist/packages/core/src/static.d.ts.map +0 -1
- package/dist/packages/core/src/styled.d.ts +0 -16
- package/dist/packages/core/src/styled.d.ts.map +0 -1
- package/dist/packages/core/src/types.d.ts.map +0 -1
- package/dist/packages/core/src/views/Animated.d.ts.map +0 -1
- package/dist/packages/core/src/views/Stack.d.ts.map +0 -1
- package/dist/packages/core/src/views/Text.d.ts +0 -3
- package/dist/packages/core/src/views/Text.d.ts.map +0 -1
- package/dist/packages/core/src/views/TextAncestorContext.d.ts +0 -3
- package/dist/packages/core/src/views/TextAncestorContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/Theme.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeInverse.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeManagerContext.d.ts +0 -15
- package/dist/packages/core/src/views/ThemeManagerContext.d.ts.map +0 -1
- package/dist/packages/core/src/views/ThemeProvider.d.ts.map +0 -1
- package/dist/packages/helpers/src/AllRules.d.ts +0 -3
- package/dist/packages/helpers/src/AllRules.d.ts.map +0 -1
- package/dist/packages/helpers/src/concatClassName.d.ts +0 -2
- package/dist/packages/helpers/src/concatClassName.d.ts.map +0 -1
- package/dist/packages/helpers/src/index.d.ts +0 -5
- package/dist/packages/helpers/src/index.d.ts.map +0 -1
- package/dist/packages/helpers/src/types.d.ts +0 -8
- package/dist/packages/helpers/src/types.d.ts.map +0 -1
- package/dist/packages/helpers/src/validStyleProps.d.ts +0 -475
- package/dist/packages/helpers/src/validStyleProps.d.ts.map +0 -1
- package/dist/styled.js.map +0 -7
- package/dist/types.js +0 -1
- package/dist/types.js.map +0 -7
- package/dist/views/SafeAreaProvider.js +0 -30
- package/dist/views/SafeAreaProvider.js.map +0 -7
- package/dist/views/Text.js.map +0 -7
- package/dist/views/TextAncestorContext.js +0 -18
- package/dist/views/TextAncestorContext.js.map +0 -7
- package/dist/views/Theme.js +0 -56
- package/dist/views/Theme.js.map +0 -7
- package/dist/views/ThemeManagerContext.js.map +0 -7
- package/dist/views/ThemeProvider.js.map +0 -7
- package/src/constants/constants.ts +0 -12
- package/src/constants/platform.ts +0 -15
- package/src/constants/pseudos.ts +0 -14
- package/src/constants/rnw.tsx +0 -20
- package/src/createComponent.tsx +0 -597
- package/src/createFont.ts +0 -26
- package/src/createShorthands.ts +0 -5
- package/src/createTamagui.ts +0 -207
- package/src/createTheme.ts +0 -19
- package/src/createTokens.ts +0 -83
- package/src/createVariable.ts +0 -22
- package/src/helpers/addStylesUsingClassname.tsx +0 -60
- package/src/helpers/createMediaStyle.ts +0 -46
- package/src/helpers/createPropMapper.ts +0 -184
- package/src/helpers/createTamaguiProvider.tsx +0 -22
- package/src/helpers/extendStaticConfig.ts +0 -68
- package/src/helpers/fixNativeShadow.native.tsx +0 -27
- package/src/helpers/fixNativeShadow.tsx +0 -2
- package/src/helpers/getSplitStyles.tsx +0 -210
- package/src/helpers/getStylesAtomic.native.ts +0 -3
- package/src/helpers/getStylesAtomic.ts +0 -103
- package/src/helpers/insertStyleRule.tsx +0 -18
- package/src/helpers/isObj.ts +0 -1
- package/src/helpers/matchMedia.native.ts +0 -3
- package/src/helpers/matchMedia.ts +0 -9
- package/src/helpers/themeable.tsx +0 -42
- package/src/hooks/useConstant.tsx +0 -10
- package/src/hooks/useFeatures.tsx +0 -78
- package/src/hooks/useMedia.tsx +0 -194
- package/src/hooks/usePressable.tsx +0 -9
- package/src/hooks/useTheme.tsx +0 -107
- package/src/index.ts +0 -32
- package/src/static/postProcessStyles.tsx +0 -20
- package/src/static.ts +0 -22
- package/src/styled.ts +0 -82
- package/src/types.tsx +0 -561
- package/src/views/Animated.tsx +0 -121
- package/src/views/SafeAreaProvider.tsx +0 -33
- package/src/views/Stack.tsx +0 -21
- package/src/views/Text.tsx +0 -66
- package/src/views/TextAncestorContext.tsx +0 -12
- package/src/views/Theme.tsx +0 -73
- package/src/views/ThemeContext.tsx +0 -5
- package/src/views/ThemeInverse.tsx +0 -23
- package/src/views/ThemeManagerContext.tsx +0 -50
- package/src/views/ThemeProvider.tsx +0 -52
- package/tsconfig.json +0 -8
- package/types.d.ts +0 -557
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAA;AAYhE,OAAO,EAEL,eAAe,EACf,YAAY,EACZ,kBAAkB,EAEnB,MAAM,SAAS,CAAA;AAGhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AAS3C,aAAK,YAAY,GAAG,EAAE,CAAA;AAuBtB,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,EAC7D,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,kBAAkB,qDAqcrD;AAOD,eAAO,MAAM,MAAM;;;iCAyBjB,CAAA;AAEF,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,aAAa,GACd,EAAE;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,GAAG,CAAA;IACb,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;CAC3C,OAwCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,eAAO,MAAM,UAAU,uCA2BtB,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createShorthands.d.ts","sourceRoot":"","sources":["../src/createShorthands.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAEnF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Variable } from './createVariable';
|
|
2
|
+
import { CreateTamaguiConfig, GenericTamaguiConfig, MediaQueryKey, TamaguiInternalConfig, TamaguiProviderProps } from './types';
|
|
3
|
+
export declare type CreateTamaguiProps = TamaguiProviderProps & Partial<Omit<GenericTamaguiConfig, 'themes' | 'tokens'>> & {
|
|
4
|
+
tokens: GenericTamaguiConfig['tokens'];
|
|
5
|
+
themes: {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
[key: string]: string | number | Variable;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
mediaQueryDefaultActive?: MediaQueryKey[];
|
|
11
|
+
};
|
|
12
|
+
export declare function createTamagui<Conf extends CreateTamaguiProps>(config: Conf): Conf extends CreateTamaguiConfig<infer A, infer B, infer C, infer D> ? TamaguiInternalConfig<A, B, C, D> : unknown;
|
|
13
|
+
//# sourceMappingURL=createTamagui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTamagui.d.ts","sourceRoot":"","sources":["../src/createTamagui.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAkB,MAAM,kBAAkB,CAAA;AAG3D,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAEhB,oBAAY,kBAAkB,GAAG,oBAAoB,GAEnD,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC,GAAG;IACzD,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAA;IACtC,MAAM,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;SAC1C,CAAA;KACF,CAAA;IAED,uBAAuB,CAAC,EAAE,aAAa,EAAE,CAAA;CAC1C,CAAA;AAIH,wBAAgB,aAAa,CAAC,IAAI,SAAS,kBAAkB,EAC3D,MAAM,EAAE,IAAI,GACX,IAAI,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GACnE,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GACjC,OAAO,CAyIV"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Variable } from './createVariable';
|
|
2
|
+
declare type GenericTheme = {
|
|
3
|
+
[key: string]: string | Variable;
|
|
4
|
+
};
|
|
5
|
+
export declare const createTheme: <Theme extends GenericTheme>(theme: Theme) => { [K in keyof Theme]: string | Variable | Theme[K]; };
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=createTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../src/createTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,aAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,WAAW,qGAId,CAAA"}
|
|
@@ -3,10 +3,15 @@ import { CreateTokens } from './types';
|
|
|
3
3
|
export declare function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T>;
|
|
4
4
|
export declare const mapTokensToVariables: (tokens: CreateTokens, parentPath?: string) => CreateTokens<Variable>;
|
|
5
5
|
declare type MakeTokens<T> = T extends {
|
|
6
|
-
font:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
font: {
|
|
7
|
+
[key in infer A]: {
|
|
8
|
+
size: infer B;
|
|
9
|
+
lineHeight: infer C;
|
|
10
|
+
letterSpacing: infer D;
|
|
11
|
+
weight: infer Z;
|
|
12
|
+
family: infer Y;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
10
15
|
color: infer E;
|
|
11
16
|
space: infer F;
|
|
12
17
|
size: infer G;
|
|
@@ -14,16 +19,21 @@ declare type MakeTokens<T> = T extends {
|
|
|
14
19
|
zIndex: infer J;
|
|
15
20
|
} ? {
|
|
16
21
|
font: {
|
|
17
|
-
[key in
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
[key in A]: {
|
|
23
|
+
size: {
|
|
24
|
+
[key in keyof B]: Variable;
|
|
25
|
+
};
|
|
26
|
+
lineHeight: {
|
|
27
|
+
[key in keyof C]: Variable;
|
|
28
|
+
};
|
|
29
|
+
letterSpacing: {
|
|
30
|
+
[key in keyof D]: Variable;
|
|
31
|
+
};
|
|
32
|
+
weight: {
|
|
33
|
+
[key in keyof Z]: Variable;
|
|
34
|
+
};
|
|
35
|
+
family: Y;
|
|
36
|
+
};
|
|
27
37
|
};
|
|
28
38
|
color: {
|
|
29
39
|
[key in keyof E]: Variable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTokens.d.ts","sourceRoot":"","sources":["../src/createTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,kBAAkB,CAAA;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAItC,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAM7E;AAMD,eAAO,MAAM,oBAAoB,WACvB,YAAY,0BAEnB,aAAa,QAAQ,CAavB,CAAA;AAGD,aAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS;IAC7B,IAAI,EAAE;SACH,GAAG,IAAI,MAAM,CAAC,GAAG;YAChB,IAAI,EAAE,MAAM,CAAC,CAAA;YACb,UAAU,EAAE,MAAM,CAAC,CAAA;YACnB,aAAa,EAAE,MAAM,CAAC,CAAA;YACtB,MAAM,EAAE,MAAM,CAAC,CAAA;YACf,MAAM,EAAE,MAAM,CAAC,CAAA;SAChB;KACF,CAAA;IACD,KAAK,EAAE,MAAM,CAAC,CAAA;IACd,KAAK,EAAE,MAAM,CAAC,CAAA;IACd,IAAI,EAAE,MAAM,CAAC,CAAA;IACb,MAAM,EAAE,MAAM,CAAC,CAAA;IACf,MAAM,EAAE,MAAM,CAAC,CAAA;CAChB,GACG;IACE,IAAI,EAAE;SACH,GAAG,IAAI,CAAC,GAAG;YACV,IAAI,EAAE;iBACH,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;aAC3B,CAAA;YACD,UAAU,EAAE;iBACT,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;aAC3B,CAAA;YACD,aAAa,EAAE;iBACZ,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;aAC3B,CAAA;YACD,MAAM,EAAE;iBACL,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;aAC3B,CAAA;YACD,MAAM,EAAE,CAAC,CAAA;SACV;KACF,CAAA;IACD,KAAK,EAAE;SACJ,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;KAC3B,CAAA;IACD,KAAK,EAAE;SACJ,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;KAC3B,CAAA;IACD,IAAI,EAAE;SACH,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;KAC3B,CAAA;IACD,MAAM,EAAE;SACL,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;KAC3B,CAAA;IACD,MAAM,EAAE;SACL,GAAG,IAAI,MAAM,CAAC,GAAG,QAAQ;KAC3B,CAAA;CACF,GACD,KAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createVariable.d.ts","sourceRoot":"","sources":["../src/createVariable.ts"],"names":[],"mappings":"AAEA,qBAAa,QAAQ;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;gBAEb,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,UAAU;IAOrC,QAAQ;CAGT;AAED,aAAK,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,cAAc,UAAW,UAAU,aAAwB,CAAA;AAExE,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,GAAG,GAAG,GAAG,CAAC,IAAI,QAAQ,CAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addStylesUsingClassname.d.ts","sourceRoot":"","sources":["../../src/helpers/addStylesUsingClassname.tsx"],"names":[],"mappings":"AAWA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,UAmBjD;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,GAAG,EAAE,EACb,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,UAyBrD"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMediaStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/createMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAKvC,eAAO,MAAM,SAAS,MAAM,CAAA;AAE5B,eAAO,MAAM,gBAAgB,0BACJ,WAAW,YACxB,MAAM,gBACF,YAAY;;;CAgC3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPropMapper.d.ts","sourceRoot":"","sources":["../../src/helpers/createPropMapper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAyB,MAAM,UAAU,CAAA;AAG9D,eAAO,MAAM,gBAAgB,MAAO,YAAY,WAKjC,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QA2DxD,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTamaguiProvider.d.ts","sourceRoot":"","sources":["../../src/helpers/createTamaguiProvider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAiB,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE1E,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,kBAAkB,yEAM/D,oBAAoB,iBASxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StaticComponent, StaticConfig, StaticConfigParsed } from '../types';
|
|
3
3
|
export declare function extendStaticConfig(Component?: StaticComponent | React.Component<any>, config?: StaticConfig): StaticConfigParsed | null;
|
|
4
|
-
export declare
|
|
4
|
+
export declare const parseStaticConfig: (config: StaticConfig) => StaticConfigParsed;
|
|
5
5
|
//# sourceMappingURL=extendStaticConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extendStaticConfig.d.ts","sourceRoot":"","sources":["../../src/helpers/extendStaticConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAG5E,wBAAgB,kBAAkB,CAGhC,SAAS,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAClD,MAAM,GAAE,YAAiB,GACxB,kBAAkB,GAAG,IAAI,CAiD3B;AAED,eAAO,MAAM,iBAAiB,WAAY,YAAY,KAAG,kBAMxD,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixNativeShadow.d.ts","sourceRoot":"","sources":["../../src/helpers/fixNativeShadow.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,MAAO,GAAG,SAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixNativeShadow.native.d.ts","sourceRoot":"","sources":["../../src/helpers/fixNativeShadow.native.tsx"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,QA4BzC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIxC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAM1D,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAI3D,eAAO,MAAM,cAAc;;iBAEX,kBAAkB,SACzB,WAAW;;;;;;;;CAuInB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStylesAtomic.d.ts","sourceRoot":"","sources":["../../src/helpers/getStylesAtomic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAqBnD,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,eAAe,UAAQ,iBAiBlE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStylesAtomic.native.d.ts","sourceRoot":"","sources":["../../src/helpers/getStylesAtomic.native.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,SAE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThemeParentClassName.d.ts","sourceRoot":"","sources":["../../src/helpers/getThemeParentClassName.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,UAEhE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertStyleRule.d.ts","sourceRoot":"","sources":["../../src/helpers/insertStyleRule.tsx"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,QAe3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObj.d.ts","sourceRoot":"","sources":["../../src/helpers/isObj.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,MAAO,GAAG,QAAoD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTamaguiElement.d.ts","sourceRoot":"","sources":["../../src/helpers/isTamaguiElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAE7C,eAAO,MAAM,gBAAgB,UAAW,GAAG,gFAE1C,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMedia.d.ts","sourceRoot":"","sources":["../../src/helpers/matchMedia.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,KAgBZ,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMedia.native.d.ts","sourceRoot":"","sources":["../../src/helpers/matchMedia.native.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,2CAA2C,CAAA;AAEtE,eAAO,MAAM,UAAU,UAAW,MAAM,mBAA8B,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeable.d.ts","sourceRoot":"","sources":["../../src/helpers/themeable.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAc,MAAM,OAAO,CAAA;AAKvD,oBAAY,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,YAyBvB,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,SAAS,cAAc,GAAG,EAAE,EACrE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GACzB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/helpers/validate.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,SAAU,GAAG,SAWvC,CAAA;AA4BD,eAAO,MAAM,cAAc,WAAY,GAAG,SAOzC,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,GAAG,SAOrC,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConstant.d.ts","sourceRoot":"","sources":["../../src/hooks/useConstant.tsx"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAM7C"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFeatures.d.ts","sourceRoot":"","sources":["../../src/hooks/useFeatures.tsx"],"names":[],"mappings":";AAuBA,eAAO,MAAM,WAAW,UAAW,GAAG;;+BAYrC,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMedia.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedia.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAChB,eAAe,EAChB,MAAM,UAAU,CAAA;AAGjB,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,MAAM,eAAe,GAAG,OAAO;CAAc,CAAA;AAGhF,eAAO,MAAM,qBAAqB,QAAS,MAAM,MAAM,GAAG,SAGzD,CAAA;AAED,eAAO,MAAM,wBAAwB,QAAS,MAAM,MAAM,GAAG,SAE5D,CAAA;AAID,eAAO,MAAM,gBAAgB,cAqB3B,CAAA;AAEF,eAAO,MAAM,QAAQ;;CAKpB,CAAA;AAED,eAAO,MAAM,cAAc,iCAGxB,0BAA0B,SAuC5B,CAAA;AASD,eAAO,MAAM,QAAQ;;CAiEpB,CAAA;AAMD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,UAgBnE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePressable.d.ts","sourceRoot":"","sources":["../../src/hooks/usePressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAA;AAIxD,eAAO,MAAM,YAAY,UAAW,cAAc,wBAIjD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ThemeObject } from '../types';
|
|
2
|
+
export declare const useThemeName: (opts?: {
|
|
3
|
+
parent?: true | undefined;
|
|
4
|
+
} | undefined) => string;
|
|
5
|
+
export declare const useDefaultThemeName: () => string | number;
|
|
6
|
+
export declare const useTheme: () => ThemeObject;
|
|
7
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAa,WAAW,EAAE,MAAM,UAAU,CAAA;AAoBjD,eAAO,MAAM,YAAY;;wBAWxB,CAAA;AAED,eAAO,MAAM,mBAAmB,uBAE/B,CAAA;AAED,eAAO,MAAM,QAAQ,QAAO,WAmE3B,CAAA"}
|
|
@@ -2,19 +2,23 @@ export * from './createComponent';
|
|
|
2
2
|
export * from './createShorthands';
|
|
3
3
|
export * from './createTheme';
|
|
4
4
|
export * from './createTamagui';
|
|
5
|
+
export * from './createFont';
|
|
5
6
|
export { createTokens } from './createTokens';
|
|
6
7
|
export * from './createVariable';
|
|
7
8
|
export * from './styled';
|
|
8
9
|
export * from './types';
|
|
10
|
+
export { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce, ConfigListener, } from './conf';
|
|
9
11
|
export * from './constants/pseudos';
|
|
10
12
|
export * from './constants/constants';
|
|
11
13
|
export * from './constants/platform';
|
|
12
14
|
export * from './constants/rnw';
|
|
15
|
+
export * from './helpers/getThemeParentClassName';
|
|
16
|
+
export * from './helpers/isObj';
|
|
13
17
|
export * from './helpers/getStylesAtomic';
|
|
14
18
|
export * from './helpers/matchMedia';
|
|
15
19
|
export * from './helpers/themeable';
|
|
20
|
+
export * from './helpers/isTamaguiElement';
|
|
16
21
|
export * from './hooks/useConstant';
|
|
17
|
-
export * from './hooks/useForceUpdate';
|
|
18
22
|
export * from './hooks/useMedia';
|
|
19
23
|
export * from './hooks/useTheme';
|
|
20
24
|
export * from './views/Animated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,cAAc,GACf,MAAM,QAAQ,CAAA;AAEf,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAE/B,cAAc,mCAAmC,CAAA;AACjD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAE1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postProcessStyles.d.ts","sourceRoot":"","sources":["../../src/static/postProcessStyles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAyB,WAAW,EAAE,MAAM,UAAU,CAAA;AAIjF,eAAO,MAAM,iBAAiB,aAClB,GAAG,gBACC,kBAAkB,SACzB,WAAW;;;;CAWnB,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export * from './styled';
|
|
2
2
|
export * from './createComponent';
|
|
3
|
+
export * from './createFont';
|
|
4
|
+
export * from './createTokens';
|
|
3
5
|
export * from './createTamagui';
|
|
4
6
|
export * from './constants/constants';
|
|
5
7
|
export * from './hooks/useMedia';
|
|
6
8
|
export * from './hooks/useTheme';
|
|
9
|
+
export * from './helpers/isObj';
|
|
7
10
|
export * from './helpers/getStylesAtomic';
|
|
8
11
|
export * from './helpers/getSplitStyles';
|
|
9
12
|
export * from '@tamagui/helpers';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../src/static.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AAErC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,qBAAqB,CAAA;AAInC,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MediaProps, StaticComponent, StaticConfig, TamaguiConfig, Themes, Tokens } from './types';
|
|
3
|
+
export declare function styled<ParentComponent extends StaticComponent | React.Component<any>, Variants extends GetVariants<ParentComponent>>(Component: ParentComponent, options?: GetProps<ParentComponent> & {
|
|
4
|
+
variants?: Variants;
|
|
5
|
+
}, staticExtractionOptions?: StaticConfig): StaticComponent<keyof GetVariantProps<Variants> extends never ? GetProps<ParentComponent> : Omit<GetProps<ParentComponent>, keyof GetVariantProps<Variants>> & GetVariantProps<Variants> & MediaProps<GetVariantProps<Variants>>, void, import("./types").StaticConfigParsed, any>;
|
|
6
|
+
export declare type GetProps<A> = A extends StaticComponent<infer Props> ? Props : A extends React.Component<infer Props> ? Props : {};
|
|
7
|
+
export declare type GetVariants<ParentComponent extends StaticComponent | React.Component<any>> = void | {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: Partial<GetProps<ParentComponent>> | ((val: any, config: {
|
|
10
|
+
tokens: TamaguiConfig['tokens'];
|
|
11
|
+
theme: Themes extends {
|
|
12
|
+
[key: string]: infer B;
|
|
13
|
+
} ? B : unknown;
|
|
14
|
+
props: GetProps<ParentComponent>;
|
|
15
|
+
}) => Partial<GetProps<ParentComponent>>);
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare type GetVariantProps<Variants> = Variants extends void ? {} : {
|
|
19
|
+
[Key in keyof Variants]?: keyof Variants[Key] extends `...${infer VariantSpread}` ? VariantSpread extends keyof Tokens ? keyof Tokens[VariantSpread] extends string | number ? `$${keyof Tokens[VariantSpread]}` | null : unknown : unknown : keyof Variants[Key] extends 'true' ? boolean | null : keyof Exclude<Variants[Key], undefined>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../src/styled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAElG,wBAAgB,MAAM,CACpB,eAAe,SAAS,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAC9D,QAAQ,SAAS,WAAW,CAAC,eAAe,CAAC,EAE7C,SAAS,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG;IACpC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,EACD,uBAAuB,CAAC,EAAE,YAAY,sRAsBvC;AAID,oBAAY,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,MAAM,KAAK,CAAC,GAC5D,KAAK,GACL,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,GACtC,KAAK,GACL,EAAE,CAAA;AAEN,oBAAY,WAAW,CAAC,eAAe,SAAS,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG;IAC/F,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,CAAC,GAAG,EAAE,MAAM,GACR,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAClC,CAAC,CACC,GAAG,EAAE,GAAG,EACR,MAAM,EAAE;YACN,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;YAC/B,KAAK,EAAE,MAAM,SAAS;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;aAAE,GAAG,CAAC,GAAG,OAAO,CAAA;YAC9D,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAA;SACjC,KACE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;KAC7C,CAAA;CACF,CAAA;AAED,oBAAY,eAAe,CAAC,QAAQ,IAAI,QAAQ,SAAS,IAAI,GACzD,EAAE,GACF;KAEG,GAAG,IAAI,MAAM,QAAQ,CAAC,CAAC,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,MAAM,MAAM,aAAa,EAAE,GAC7E,aAAa,SAAS,MAAM,MAAM,GAChC,MAAM,MAAM,CAAC,aAAa,CAAC,SAAS,MAAM,GAAG,MAAM,GACjD,IAAI,MAAM,MAAM,CAAC,aAAa,CAAC,EAAE,GAAG,IAAI,GACxC,OAAO,GACT,OAAO,GACT,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,MAAM,GAClC,OAAO,GAAG,IAAI,GACd,MAAM,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;CAC5C,CAAA"}
|
|
@@ -3,11 +3,26 @@ import { TextProps as ReactTextProps, TextStyle } from 'react-native';
|
|
|
3
3
|
import { GestureResponderEvent, View, ViewProps, ViewStyle } from 'react-native';
|
|
4
4
|
import { Variable } from './createVariable';
|
|
5
5
|
import { ThemeProviderProps } from './views/ThemeProvider';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export interface CreateTokens<Val extends number | string | Variable = number | string | Variable> {
|
|
7
|
+
font: {
|
|
8
|
+
[key: string]: GenericFont;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
[key: string]: Val;
|
|
12
|
+
};
|
|
13
|
+
space: {
|
|
14
|
+
[key: string]: Val;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
[key: string]: Val;
|
|
18
|
+
};
|
|
19
|
+
radius: {
|
|
20
|
+
[key: string]: Val;
|
|
21
|
+
};
|
|
22
|
+
zIndex: {
|
|
23
|
+
[key: string]: Val;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
11
26
|
declare type GenericTokens = CreateTokens;
|
|
12
27
|
declare type GenericThemes = {
|
|
13
28
|
[key: string]: {
|
|
@@ -47,7 +62,7 @@ export declare type Tokens = TamaguiConfig['tokens'];
|
|
|
47
62
|
export declare type Shorthands = TamaguiConfig['shorthands'];
|
|
48
63
|
export declare type Media = TamaguiConfig['media'];
|
|
49
64
|
export declare type Themes = TamaguiConfig['themes'];
|
|
50
|
-
export declare type ThemeName = keyof Themes;
|
|
65
|
+
export declare type ThemeName = keyof Themes extends `${infer Prefix}-${string}` ? Prefix | keyof Themes : keyof Themes;
|
|
51
66
|
export declare type ThemeKeys = keyof ThemeObject;
|
|
52
67
|
export declare type ThemeKeyVariables = `$${ThemeKeys}`;
|
|
53
68
|
export declare type TamaguiInternalConfig<A extends GenericTokens = GenericTokens, B extends GenericThemes = GenericThemes, C extends GenericShorthands = GenericShorthands, D extends GenericMedia = GenericMedia> = CreateTamaguiConfig<A, B, C, D> & {
|
|
@@ -58,39 +73,26 @@ export declare type TamaguiInternalConfig<A extends GenericTokens = GenericToken
|
|
|
58
73
|
tokensParsed: CreateTokens<Variable>;
|
|
59
74
|
themeConfig: any;
|
|
60
75
|
getCSS: () => string;
|
|
76
|
+
parsed: boolean;
|
|
61
77
|
};
|
|
62
78
|
export declare type UnionableString = string & {};
|
|
63
79
|
export declare type UnionableNumber = number & {};
|
|
64
80
|
export declare type PropTypes<A extends StaticComponent> = A extends React.FunctionComponent<infer Props> ? Props : unknown;
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
[key
|
|
68
|
-
};
|
|
69
|
-
fontSize: {
|
|
70
|
-
[key in TextKeys]: Val;
|
|
81
|
+
export declare type GenericFont = {
|
|
82
|
+
size: {
|
|
83
|
+
[key: string | number]: number | Variable;
|
|
71
84
|
};
|
|
72
85
|
lineHeight: {
|
|
73
|
-
[key
|
|
74
|
-
};
|
|
75
|
-
letterSpace: {
|
|
76
|
-
[key in TextKeys]: Val;
|
|
77
|
-
};
|
|
78
|
-
color: {
|
|
79
|
-
[key: string]: Val;
|
|
86
|
+
[key: string | number]: number | Variable;
|
|
80
87
|
};
|
|
81
|
-
|
|
82
|
-
[key: string]:
|
|
83
|
-
};
|
|
84
|
-
size: {
|
|
85
|
-
[key: string]: Val;
|
|
86
|
-
};
|
|
87
|
-
radius: {
|
|
88
|
-
[key: string]: Val;
|
|
88
|
+
letterSpacing: {
|
|
89
|
+
[key: string | number]: number | Variable;
|
|
89
90
|
};
|
|
90
|
-
|
|
91
|
-
[key: string]:
|
|
91
|
+
weight: {
|
|
92
|
+
[key: string | number]: string | Variable;
|
|
92
93
|
};
|
|
93
|
-
|
|
94
|
+
family: string | Variable;
|
|
95
|
+
};
|
|
94
96
|
export declare type MediaKeys = keyof Media;
|
|
95
97
|
export declare type MediaQueryObject = {
|
|
96
98
|
[key: string]: string | number | string;
|
|
@@ -124,26 +126,10 @@ export declare type TransformStyleProps = {
|
|
|
124
126
|
rotateX?: string;
|
|
125
127
|
rotateZ?: string;
|
|
126
128
|
};
|
|
127
|
-
declare type
|
|
128
|
-
|
|
129
|
-
export declare type WithThemeValues<T extends object> = {
|
|
130
|
-
[K in keyof T]: ThemeValue<T[K]> | (K extends ColorableKeys ? ThemeKeyVariables : K extends SizeKeys ? `$${keyof Tokens['size']}` : K extends FontKeys ? `$${keyof Tokens['font']}` : K extends FontSizeKeys ? `$${keyof Tokens['fontSize']}` : K extends SpaceKeys ? `$${keyof Tokens['space']}` : K extends ColorKeys ? `$${keyof Tokens['color']}` : K extends ZIndexKeys ? `$${keyof Tokens['zIndex']}` : K extends LineHeightKeys ? `$${keyof Tokens['lineHeight']}` : {});
|
|
131
|
-
};
|
|
132
|
-
export declare type TamaguiThemedStackStyleProps = WithThemeValues<TamaguiStylesBase>;
|
|
133
|
-
export declare type ShorthandStyleProps = {
|
|
134
|
-
[key in ShortKeysView]?: Shorthands[ShortKeysView] extends keyof TamaguiThemedStackStyleProps ? TamaguiThemedStackStyleProps[Shorthands[ShortKeysView]] | null : {};
|
|
135
|
-
};
|
|
136
|
-
declare type StackStylePropsBase = TamaguiThemedStackStyleProps & ShorthandStyleProps;
|
|
137
|
-
export declare type StackStyleProps = StackStylePropsBase & {
|
|
138
|
-
hoverStyle?: StackStylePropsBase | null;
|
|
139
|
-
pressStyle?: StackStylePropsBase | null;
|
|
140
|
-
};
|
|
141
|
-
export declare type StackProps = Omit<RNWInternalProps, 'children'> & MediaProps<StackStyleProps> & StackStyleProps & Omit<ViewProps, 'display' | 'children'> & {
|
|
129
|
+
declare type ComponentPropsBase = {
|
|
130
|
+
className?: string;
|
|
142
131
|
tag?: string;
|
|
143
|
-
ref?: RefObject<View | HTMLElement> | ((node: View | HTMLElement) => any);
|
|
144
132
|
animated?: boolean;
|
|
145
|
-
fullscreen?: boolean;
|
|
146
|
-
children?: any | any[];
|
|
147
133
|
onHoverIn?: (e: MouseEvent) => any;
|
|
148
134
|
onHoverOut?: (e: MouseEvent) => any;
|
|
149
135
|
onPress?: (e: GestureResponderEvent) => any;
|
|
@@ -153,28 +139,53 @@ export declare type StackProps = Omit<RNWInternalProps, 'children'> & MediaProps
|
|
|
153
139
|
onMouseLeave?: (e: GestureResponderEvent) => any;
|
|
154
140
|
space?: Tokens['space'][keyof Tokens['space']] | boolean | string | number;
|
|
155
141
|
pointerEvents?: string;
|
|
156
|
-
userSelect?: string;
|
|
157
|
-
className?: string;
|
|
158
|
-
disabled?: boolean;
|
|
159
142
|
};
|
|
160
|
-
declare type
|
|
161
|
-
export declare type
|
|
162
|
-
export declare type
|
|
163
|
-
|
|
164
|
-
|
|
143
|
+
declare type GetTokenFontKeysFor<A extends 'size' | 'weight' | 'letterSpacing' | 'family' | 'lineHeight'> = keyof Tokens['font'][keyof Tokens['font']][A];
|
|
144
|
+
export declare type SizeTokens = `$${keyof Tokens['size']}`;
|
|
145
|
+
export declare type FontTokens = `$${keyof Tokens['font']}`;
|
|
146
|
+
export declare type FontSizeTokens = `$${GetTokenFontKeysFor<'size'>}`;
|
|
147
|
+
export declare type FontLineHeightTokens = `$${GetTokenFontKeysFor<'lineHeight'>}`;
|
|
148
|
+
export declare type FontWeightTokens = `$${GetTokenFontKeysFor<'weight'>}`;
|
|
149
|
+
export declare type FontLetterSpacingTokens = `$${GetTokenFontKeysFor<'letterSpacing'>}`;
|
|
150
|
+
export declare type SpaceTokens = `$${keyof Tokens['space']}`;
|
|
151
|
+
export declare type ColorTokens = `$${keyof Tokens['color']}`;
|
|
152
|
+
export declare type ZIndexTokens = `$${keyof Tokens['zIndex']}`;
|
|
153
|
+
declare type ThemeValue<A> = Omit<A, string> | UnionableString | Variable;
|
|
154
|
+
export declare type WithThemeValues<T extends object> = {
|
|
155
|
+
[K in keyof T]: ThemeValue<T[K]> | (K extends ColorableKeys ? ThemeKeyVariables : K extends SizeKeys ? SizeTokens : K extends FontKeys ? FontTokens : K extends FontSizeKeys ? FontSizeTokens : K extends SpaceKeys ? SpaceTokens : K extends ColorKeys ? ColorTokens : K extends ZIndexKeys ? ZIndexTokens : K extends LineHeightKeys ? FontLineHeightTokens : K extends FontWeightKeys ? FontWeightTokens : K extends FontLetterSpacingKeys ? FontLetterSpacingTokens : {});
|
|
165
156
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
157
|
+
declare type WithShorthands<StyleProps> = {
|
|
158
|
+
[Key in keyof Shorthands]?: Shorthands[Key] extends keyof StyleProps ? StyleProps[Shorthands[Key]] | null : undefined;
|
|
159
|
+
};
|
|
160
|
+
declare type WithThemeAndShorthands<A extends object> = WithThemeValues<A> & WithShorthands<WithThemeValues<A>>;
|
|
161
|
+
declare type WithThemeShorthandsAndPseudos<A extends object> = WithThemeAndShorthands<A> & {
|
|
162
|
+
hoverStyle?: WithThemeAndShorthands<A> | null;
|
|
163
|
+
pressStyle?: WithThemeAndShorthands<A> | null;
|
|
164
|
+
};
|
|
165
|
+
declare type WithThemeShorthandsPseudosAndMedia<A extends object> = WithThemeShorthandsAndPseudos<A> & MediaProps<WithThemeShorthandsAndPseudos<A>>;
|
|
166
|
+
declare type WebOnlyStyleProps = {
|
|
167
|
+
cursor?: string;
|
|
168
|
+
contain?: 'none' | 'strict' | 'content' | 'size' | 'layout' | 'paint' | string;
|
|
169
|
+
display?: 'inherit' | 'none' | 'inline' | 'block' | 'contents' | 'flex' | 'inline-flex';
|
|
170
|
+
pointerEvents?: ViewProps['pointerEvents'];
|
|
171
|
+
};
|
|
172
|
+
export declare type StackStylePropsBase = Omit<ViewStyle, 'display' | 'backfaceVisibility' | 'elevation'> & TransformStyleProps & WebOnlyStyleProps;
|
|
173
|
+
export declare type StackStyleProps = WithThemeShorthandsPseudosAndMedia<StackStylePropsBase>;
|
|
174
|
+
export declare type StackProps = Omit<RNWInternalProps, 'children'> & Omit<ViewProps, 'display' | 'children'> & StackStyleProps & ComponentPropsBase & {
|
|
175
|
+
ref?: RefObject<View | HTMLElement> | ((node: View | HTMLElement) => any);
|
|
176
|
+
children?: any | any[];
|
|
177
|
+
};
|
|
178
|
+
declare type TextStyleProps = WithThemeShorthandsPseudosAndMedia<Omit<TextStyle, 'display' | 'backfaceVisibility'> & TransformStyleProps & WebOnlyStyleProps>;
|
|
179
|
+
export declare type TextProps = ReactTextProps & TextStyleProps & ComponentPropsBase & {
|
|
169
180
|
ellipse?: boolean;
|
|
170
181
|
selectable?: boolean;
|
|
171
|
-
children?: any;
|
|
172
|
-
className?: string;
|
|
173
|
-
pointerEvents?: string;
|
|
174
|
-
cursor?: string;
|
|
175
|
-
userSelect?: string;
|
|
176
182
|
textDecorationDistance?: number;
|
|
177
183
|
};
|
|
184
|
+
export declare type StaticComponent<Props = any, VariantProps = any, StaticConfParsed = StaticConfigParsed, ParentVariantProps = any> = React.FunctionComponent<Props> & {
|
|
185
|
+
staticConfig: StaticConfParsed;
|
|
186
|
+
variantProps?: VariantProps;
|
|
187
|
+
extractable: <X>(a: X, opts?: StaticConfig) => X;
|
|
188
|
+
};
|
|
178
189
|
export declare type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>> & {
|
|
179
190
|
initialWindowMetrics?: any;
|
|
180
191
|
fallback?: any;
|
|
@@ -254,14 +265,9 @@ export declare type RNWInternalProps = {
|
|
|
254
265
|
target?: string;
|
|
255
266
|
};
|
|
256
267
|
};
|
|
257
|
-
export declare type StaticComponent<Props = any, VariantProps = any, StaticConfParsed = StaticConfigParsed, ParentVariantProps = any> = React.FunctionComponent<Props> & {
|
|
258
|
-
staticConfig: StaticConfParsed;
|
|
259
|
-
variantProps?: VariantProps;
|
|
260
|
-
extractable: <X>(a: X) => X;
|
|
261
|
-
};
|
|
262
268
|
export declare type StaticConfigParsed = StaticConfig & {
|
|
263
269
|
parsed: true;
|
|
264
|
-
propMapper: (key: string, value: any, theme: ThemeObject) => undefined | boolean | {
|
|
270
|
+
propMapper: (key: string, value: any, theme: ThemeObject, props: any) => undefined | boolean | {
|
|
265
271
|
[key: string]: any;
|
|
266
272
|
};
|
|
267
273
|
variantsParsed?: {
|
|
@@ -292,11 +298,14 @@ export declare type StaticConfig = {
|
|
|
292
298
|
ensureOverriddenProp?: {
|
|
293
299
|
[key: string]: boolean;
|
|
294
300
|
};
|
|
301
|
+
isZStack?: boolean;
|
|
295
302
|
};
|
|
296
303
|
declare type ColorableKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderTopColor' | 'borderBottomColor' | 'borderLeftColor' | 'borderRightColor' | 'shadowColor';
|
|
297
304
|
declare type SizeKeys = 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight';
|
|
298
305
|
declare type FontKeys = 'fontFamily';
|
|
299
306
|
declare type FontSizeKeys = 'fontSize';
|
|
307
|
+
declare type FontWeightKeys = 'fontWeight';
|
|
308
|
+
declare type FontLetterSpacingKeys = 'letterSpacing';
|
|
300
309
|
declare type LineHeightKeys = 'lineHeight';
|
|
301
310
|
declare type ZIndexKeys = 'zIndex';
|
|
302
311
|
declare type ColorKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderTopColor' | 'borderLeftColor' | 'borderRightColor';
|