@tamagui/core 1.0.0-alpha.11 → 1.0.0-alpha.12

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.
Files changed (241) hide show
  1. package/dist/cjs/types.js.map +1 -1
  2. package/dist/esm/constants/constants.js +14 -0
  3. package/dist/esm/constants/constants.js.map +7 -0
  4. package/dist/esm/constants/platform.js +19 -0
  5. package/dist/esm/constants/platform.js.map +7 -0
  6. package/dist/esm/constants/pseudos.js +18 -0
  7. package/dist/esm/constants/pseudos.js.map +7 -0
  8. package/dist/esm/constants/rnw.js +22 -0
  9. package/dist/esm/constants/rnw.js.map +7 -0
  10. package/dist/esm/createComponent.js +464 -0
  11. package/dist/esm/createComponent.js.map +7 -0
  12. package/dist/esm/createFont.js +28 -0
  13. package/dist/esm/createFont.js.map +7 -0
  14. package/dist/esm/createShorthands.js +10 -0
  15. package/dist/esm/createShorthands.js.map +7 -0
  16. package/dist/esm/createTamagui.js +168 -0
  17. package/dist/esm/createTamagui.js.map +7 -0
  18. package/dist/esm/createTheme.js +20 -0
  19. package/dist/esm/createTheme.js.map +7 -0
  20. package/dist/esm/createTokens.js +33 -0
  21. package/dist/esm/createTokens.js.map +7 -0
  22. package/dist/esm/createVariable.js +25 -0
  23. package/dist/esm/createVariable.js.map +7 -0
  24. package/dist/esm/helpers/addStylesUsingClassname.js +57 -0
  25. package/dist/esm/helpers/addStylesUsingClassname.js.map +7 -0
  26. package/dist/esm/helpers/createMediaStyle.js +34 -0
  27. package/dist/esm/helpers/createMediaStyle.js.map +7 -0
  28. package/dist/esm/helpers/createPropMapper.js +160 -0
  29. package/dist/esm/helpers/createPropMapper.js.map +7 -0
  30. package/dist/esm/helpers/createTamaguiProvider.js +25 -0
  31. package/dist/esm/helpers/createTamaguiProvider.js.map +7 -0
  32. package/dist/esm/helpers/extendStaticConfig.js +59 -0
  33. package/dist/esm/helpers/extendStaticConfig.js.map +7 -0
  34. package/dist/esm/helpers/fixNativeShadow.js +8 -0
  35. package/dist/esm/helpers/fixNativeShadow.js.map +7 -0
  36. package/dist/esm/helpers/fixNativeShadow.native.js +30 -0
  37. package/dist/esm/helpers/fixNativeShadow.native.js.map +7 -0
  38. package/dist/esm/helpers/getSplitStyles.js +150 -0
  39. package/dist/esm/helpers/getSplitStyles.js.map +7 -0
  40. package/dist/esm/helpers/getStylesAtomic.js +83 -0
  41. package/dist/esm/helpers/getStylesAtomic.js.map +7 -0
  42. package/dist/esm/helpers/getStylesAtomic.native.js +10 -0
  43. package/dist/esm/helpers/getStylesAtomic.native.js.map +7 -0
  44. package/dist/esm/helpers/insertStyleRule.js +24 -0
  45. package/dist/esm/helpers/insertStyleRule.js.map +7 -0
  46. package/dist/esm/helpers/isObj.js +7 -0
  47. package/dist/esm/helpers/isObj.js.map +7 -0
  48. package/dist/esm/helpers/isTamaguiElement.js +10 -0
  49. package/dist/esm/helpers/isTamaguiElement.js.map +7 -0
  50. package/dist/esm/helpers/matchMedia.js +18 -0
  51. package/dist/esm/helpers/matchMedia.js.map +7 -0
  52. package/dist/esm/helpers/matchMedia.native.js +9 -0
  53. package/dist/esm/helpers/matchMedia.native.js.map +7 -0
  54. package/dist/esm/helpers/themeable.js +26 -0
  55. package/dist/esm/helpers/themeable.js.map +7 -0
  56. package/dist/esm/helpers/validate.js +60 -0
  57. package/dist/esm/helpers/validate.js.map +7 -0
  58. package/dist/esm/hooks/useConstant.js +15 -0
  59. package/dist/esm/hooks/useConstant.js.map +7 -0
  60. package/dist/esm/hooks/useFeatures.js +63 -0
  61. package/dist/esm/hooks/useFeatures.js.map +7 -0
  62. package/dist/esm/hooks/useMedia.js +173 -0
  63. package/dist/esm/hooks/useMedia.js.map +7 -0
  64. package/dist/esm/hooks/usePressable.js +13 -0
  65. package/dist/esm/hooks/usePressable.js.map +7 -0
  66. package/dist/esm/hooks/useTheme.js +89 -0
  67. package/dist/esm/hooks/useTheme.js.map +7 -0
  68. package/dist/esm/index.js +32 -0
  69. package/dist/esm/index.js.map +7 -0
  70. package/dist/esm/static/postProcessStyles.js +18 -0
  71. package/dist/esm/static/postProcessStyles.js.map +7 -0
  72. package/dist/esm/static.js +15 -0
  73. package/dist/esm/static.js.map +7 -0
  74. package/dist/esm/styled.js +21 -0
  75. package/dist/esm/styled.js.map +7 -0
  76. package/dist/esm/types.js +1 -0
  77. package/dist/esm/types.js.map +7 -0
  78. package/dist/esm/views/Animated.js +79 -0
  79. package/dist/esm/views/Animated.js.map +7 -0
  80. package/dist/esm/views/Stack.js +12 -0
  81. package/dist/esm/views/Stack.js.map +7 -0
  82. package/dist/esm/views/Text.js +60 -0
  83. package/dist/esm/views/Text.js.map +7 -0
  84. package/dist/esm/views/TextAncestorContext.js +18 -0
  85. package/dist/esm/views/TextAncestorContext.js.map +7 -0
  86. package/dist/esm/views/Theme.js +68 -0
  87. package/dist/esm/views/Theme.js.map +7 -0
  88. package/dist/esm/views/ThemeContext.js +6 -0
  89. package/dist/esm/views/ThemeContext.js.map +7 -0
  90. package/dist/esm/views/ThemeInverse.js +26 -0
  91. package/dist/esm/views/ThemeInverse.js.map +7 -0
  92. package/dist/esm/views/ThemeManagerContext.js +61 -0
  93. package/dist/esm/views/ThemeManagerContext.js.map +7 -0
  94. package/dist/esm/views/ThemeProvider.js +45 -0
  95. package/dist/esm/views/ThemeProvider.js.map +7 -0
  96. package/dist/jsx/constants/constants.js +13 -0
  97. package/dist/jsx/constants/platform.js +18 -0
  98. package/dist/jsx/constants/pseudos.js +17 -0
  99. package/dist/jsx/constants/rnw.js +21 -0
  100. package/dist/jsx/createComponent.js +458 -0
  101. package/dist/jsx/createFont.js +27 -0
  102. package/dist/jsx/createShorthands.js +9 -0
  103. package/dist/jsx/createTamagui.js +167 -0
  104. package/dist/jsx/createTheme.js +19 -0
  105. package/dist/jsx/createTokens.js +32 -0
  106. package/dist/jsx/createVariable.js +24 -0
  107. package/dist/jsx/helpers/addStylesUsingClassname.js +56 -0
  108. package/dist/jsx/helpers/createMediaStyle.js +33 -0
  109. package/dist/jsx/helpers/createPropMapper.js +159 -0
  110. package/dist/jsx/helpers/createTamaguiProvider.js +19 -0
  111. package/dist/jsx/helpers/extendStaticConfig.js +58 -0
  112. package/dist/jsx/helpers/fixNativeShadow.js +7 -0
  113. package/dist/jsx/helpers/fixNativeShadow.native.js +29 -0
  114. package/dist/jsx/helpers/getSplitStyles.js +149 -0
  115. package/dist/jsx/helpers/getStylesAtomic.js +82 -0
  116. package/dist/jsx/helpers/getStylesAtomic.native.js +9 -0
  117. package/dist/jsx/helpers/insertStyleRule.js +23 -0
  118. package/dist/jsx/helpers/isObj.js +6 -0
  119. package/dist/jsx/helpers/isTamaguiElement.js +9 -0
  120. package/dist/jsx/helpers/matchMedia.js +17 -0
  121. package/dist/jsx/helpers/matchMedia.native.js +8 -0
  122. package/dist/jsx/helpers/themeable.js +23 -0
  123. package/dist/jsx/helpers/validate.js +59 -0
  124. package/dist/jsx/hooks/useConstant.js +14 -0
  125. package/dist/jsx/hooks/useFeatures.js +57 -0
  126. package/dist/jsx/hooks/useMedia.js +172 -0
  127. package/dist/jsx/hooks/usePressable.js +12 -0
  128. package/dist/jsx/hooks/useTheme.js +88 -0
  129. package/dist/jsx/index.js +31 -0
  130. package/dist/jsx/static/postProcessStyles.js +17 -0
  131. package/dist/jsx/static.js +14 -0
  132. package/dist/jsx/styled.js +20 -0
  133. package/dist/jsx/types.js +0 -0
  134. package/dist/jsx/views/Animated.js +74 -0
  135. package/dist/jsx/views/Stack.js +11 -0
  136. package/dist/jsx/views/Text.js +59 -0
  137. package/dist/jsx/views/TextAncestorContext.js +14 -0
  138. package/dist/jsx/views/Theme.js +62 -0
  139. package/dist/jsx/views/ThemeContext.js +5 -0
  140. package/dist/jsx/views/ThemeInverse.js +22 -0
  141. package/dist/jsx/views/ThemeManagerContext.js +60 -0
  142. package/dist/jsx/views/ThemeProvider.js +39 -0
  143. package/package.json +10 -11
  144. package/src/createComponent.tsx +1 -1
  145. package/src/types.tsx +6 -6
  146. package/src/views/Text.tsx +2 -1
  147. package/types/constants/constants.d.ts +8 -0
  148. package/types/constants/constants.d.ts.map +1 -0
  149. package/types/constants/platform.d.ts +9 -0
  150. package/types/constants/platform.d.ts.map +1 -0
  151. package/types/constants/pseudos.d.ts +15 -0
  152. package/types/constants/pseudos.d.ts.map +1 -0
  153. package/types/constants/rnw.d.ts +2 -0
  154. package/types/constants/rnw.d.ts.map +1 -0
  155. package/types/createComponent.d.ts +17 -0
  156. package/types/createComponent.d.ts.map +1 -0
  157. package/types/createFont.d.ts +3 -0
  158. package/types/createFont.d.ts.map +1 -0
  159. package/types/createShorthands.d.ts +2 -0
  160. package/types/createShorthands.d.ts.map +1 -0
  161. package/types/createTamagui.d.ts +38 -0
  162. package/types/createTamagui.d.ts.map +1 -0
  163. package/types/createTheme.d.ts +5 -0
  164. package/types/createTheme.d.ts.map +1 -0
  165. package/types/createTokens.d.ts +55 -0
  166. package/types/createTokens.d.ts.map +1 -0
  167. package/types/createVariable.d.ts +15 -0
  168. package/types/createVariable.d.ts.map +1 -0
  169. package/types/helpers/addStylesUsingClassname.d.ts +3 -0
  170. package/types/helpers/addStylesUsingClassname.d.ts.map +1 -0
  171. package/types/helpers/createMediaStyle.d.ts +8 -0
  172. package/types/helpers/createMediaStyle.d.ts.map +1 -0
  173. package/types/helpers/createPropMapper.d.ts +3 -0
  174. package/types/helpers/createPropMapper.d.ts.map +1 -0
  175. package/types/helpers/createTamaguiProvider.d.ts +5 -0
  176. package/types/helpers/createTamaguiProvider.d.ts.map +1 -0
  177. package/types/helpers/extendStaticConfig.d.ts +5 -0
  178. package/types/helpers/extendStaticConfig.d.ts.map +1 -0
  179. package/types/helpers/fixNativeShadow.d.ts +2 -0
  180. package/types/helpers/fixNativeShadow.d.ts.map +1 -0
  181. package/types/helpers/fixNativeShadow.native.d.ts +2 -0
  182. package/types/helpers/fixNativeShadow.native.d.ts.map +1 -0
  183. package/types/helpers/getSplitStyles.d.ts +15 -0
  184. package/types/helpers/getSplitStyles.d.ts.map +1 -0
  185. package/types/helpers/getStylesAtomic.d.ts +3 -0
  186. package/types/helpers/getStylesAtomic.d.ts.map +1 -0
  187. package/types/helpers/getStylesAtomic.native.d.ts +2 -0
  188. package/types/helpers/getStylesAtomic.native.d.ts.map +1 -0
  189. package/types/helpers/insertStyleRule.d.ts +2 -0
  190. package/types/helpers/insertStyleRule.d.ts.map +1 -0
  191. package/types/helpers/isObj.d.ts +2 -0
  192. package/types/helpers/isObj.d.ts.map +1 -0
  193. package/types/helpers/isTamaguiElement.d.ts +3 -0
  194. package/types/helpers/isTamaguiElement.d.ts.map +1 -0
  195. package/types/helpers/matchMedia.d.ts +2 -0
  196. package/types/helpers/matchMedia.d.ts.map +1 -0
  197. package/types/helpers/matchMedia.native.d.ts +3 -0
  198. package/types/helpers/matchMedia.native.d.ts.map +1 -0
  199. package/types/helpers/themeable.d.ts +10 -0
  200. package/types/helpers/themeable.d.ts.map +1 -0
  201. package/types/helpers/validate.d.ts +4 -0
  202. package/types/helpers/validate.d.ts.map +1 -0
  203. package/types/hooks/useConstant.d.ts +2 -0
  204. package/types/hooks/useConstant.d.ts.map +1 -0
  205. package/types/hooks/useFeatures.d.ts +5 -0
  206. package/types/hooks/useFeatures.d.ts.map +1 -0
  207. package/types/hooks/useMedia.d.ts +16 -0
  208. package/types/hooks/useMedia.d.ts.map +1 -0
  209. package/types/hooks/usePressable.d.ts +3 -0
  210. package/types/hooks/usePressable.d.ts.map +1 -0
  211. package/types/hooks/useTheme.d.ts +20 -0
  212. package/types/hooks/useTheme.d.ts.map +1 -0
  213. package/types/index.d.ts +29 -0
  214. package/types/index.d.ts.map +1 -0
  215. package/types/static/postProcessStyles.d.ts +7 -0
  216. package/types/static/postProcessStyles.d.ts.map +1 -0
  217. package/types/static.d.ts +15 -0
  218. package/types/static.d.ts.map +1 -0
  219. package/types/styled.d.ts +21 -0
  220. package/types/styled.d.ts.map +1 -0
  221. package/types/types.d.ts +306 -0
  222. package/types/types.d.ts.map +1 -0
  223. package/types/views/Animated.d.ts +15 -0
  224. package/types/views/Animated.d.ts.map +1 -0
  225. package/types/views/Stack.d.ts +3 -0
  226. package/types/views/Stack.d.ts.map +1 -0
  227. package/types/views/Text.d.ts +3 -0
  228. package/types/views/Text.d.ts.map +1 -0
  229. package/types/views/TextAncestorContext.d.ts +3 -0
  230. package/types/views/TextAncestorContext.d.ts.map +1 -0
  231. package/types/views/Theme.d.ts +8 -0
  232. package/types/views/Theme.d.ts.map +1 -0
  233. package/types/views/ThemeContext.d.ts +18 -0
  234. package/types/views/ThemeContext.d.ts.map +1 -0
  235. package/types/views/ThemeInverse.d.ts +10 -0
  236. package/types/views/ThemeInverse.d.ts.map +1 -0
  237. package/types/views/ThemeManagerContext.d.ts +22 -0
  238. package/types/views/ThemeManagerContext.d.ts.map +1 -0
  239. package/types/views/ThemeProvider.d.ts +10 -0
  240. package/types/views/ThemeProvider.d.ts.map +1 -0
  241. package/types.d.ts +0 -559
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pseudos.d.ts","sourceRoot":"","sources":["../../src/constants/pseudos.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const rnw: Record<string, any>;
2
+ //# sourceMappingURL=rnw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rnw.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { ViewStyle } from 'react-native';
2
+ import { StaticComponent, StaticConfig, StaticConfigParsed } from './types';
3
+ export declare const mouseUps: Set<Function>;
4
+ declare type DefaultProps = {};
5
+ export declare function createComponent<A extends Object = DefaultProps>(configIn: Partial<StaticConfig> | StaticConfigParsed): StaticComponent<A, void, StaticConfigParsed, any>;
6
+ export declare const Spacer: StaticComponent<{
7
+ size?: number | `$${string}` | `$${number}` | undefined;
8
+ flex?: number | boolean | undefined;
9
+ }, void, StaticConfigParsed, any>;
10
+ export declare function spacedChildren({ isZStack, children, space, flexDirection, }: {
11
+ isZStack?: boolean;
12
+ children: any;
13
+ space?: any;
14
+ flexDirection?: ViewStyle['flexDirection'];
15
+ }): any;
16
+ export {};
17
+ //# sourceMappingURL=createComponent.d.ts.map
@@ -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;AAWhE,OAAO,EAEL,eAAe,EACf,YAAY,EACZ,kBAAkB,EAEnB,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AAS3C,aAAK,YAAY,GAAG,EAAE,CAAA;AAEtB,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,EAC7D,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,kBAAkB,qDAudrD;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,3 @@
1
+ import { GenericFont } from './types';
2
+ export declare const createFont: <A extends GenericFont>(font: A) => A;
3
+ //# sourceMappingURL=createFont.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export declare function createShorthands<A extends Record<string, string>>(shorthands: A): A;
2
+ //# sourceMappingURL=createShorthands.d.ts.map
@@ -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,38 @@
1
+ import { Variable } from './createVariable';
2
+ import { CreateTamaguiConfig, GenericTamaguiConfig, MediaQueryKey, TamaguiInternalConfig, TamaguiProviderProps } from './types';
3
+ export declare type CreateTamaguiProps = TamaguiProviderProps & Omit<GenericTamaguiConfig, 'themes'> & {
4
+ themes: {
5
+ [key: string]: {
6
+ [key: string]: string | number | Variable;
7
+ };
8
+ };
9
+ mediaQueryDefaultActive?: MediaQueryKey[];
10
+ };
11
+ export declare const getHasConfigured: () => boolean;
12
+ export declare const getTamagui: () => TamaguiInternalConfig<import("./types").CreateTokens<string | number | Variable>, {
13
+ [key: string]: {
14
+ bg: string | Variable;
15
+ bg2: string | Variable;
16
+ bg3: string | Variable;
17
+ bg4: string | Variable;
18
+ color: string | Variable;
19
+ color2: string | Variable;
20
+ color3: string | Variable;
21
+ color4: string | Variable;
22
+ borderColor: string | Variable;
23
+ borderColor2: string | Variable;
24
+ shadowColor: string | Variable;
25
+ shadowColor2: string | Variable;
26
+ };
27
+ }, {}, {
28
+ [x: string]: {
29
+ [key: string]: string | number;
30
+ };
31
+ }>;
32
+ export declare const getTokens: () => import("./types").CreateTokens<Variable>;
33
+ declare type ConfigListener = (conf: TamaguiInternalConfig) => void;
34
+ export declare const onConfiguredOnce: (cb: ConfigListener) => void;
35
+ 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;
36
+ export declare function getThemeParentClassName(themeName?: string | null): string;
37
+ export {};
38
+ //# sourceMappingURL=createTamagui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTamagui.d.ts","sourceRoot":"","sources":["../src/createTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAA8B,MAAM,kBAAkB,CAAA;AAIvE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAEhB,oBAAY,kBAAkB,GAAG,oBAAoB,GAGnD,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,GAAG;IACrC,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,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAE5C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;EAAc,CAAA;AACrC,eAAO,MAAM,SAAS,gDAA2B,CAAA;AAEjD,aAAK,cAAc,GAAG,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;AAE3D,eAAO,MAAM,gBAAgB,OAAQ,cAAc,SAMlD,CAAA;AAID,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,CAoIV;AAED,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,UAEhE"}
@@ -0,0 +1,5 @@
1
+ import { Variable } from './createVariable';
2
+ export declare const createTheme: <Theme extends {
3
+ [key: string]: string | Variable;
4
+ }>(theme: Theme) => { [key in keyof Theme]: Variable; };
5
+ //# 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,EAAkB,MAAM,kBAAkB,CAAA;AAE3D,eAAO,MAAM,WAAW;;uDAgBvB,CAAA"}
@@ -0,0 +1,55 @@
1
+ import { Variable } from './createVariable';
2
+ import { CreateTokens } from './types';
3
+ export declare function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T>;
4
+ export declare const mapTokensToVariables: (tokens: CreateTokens, parentPath?: string) => CreateTokens<Variable>;
5
+ declare type MakeTokens<T> = T extends {
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
+ };
15
+ color: infer E;
16
+ space: infer F;
17
+ size: infer G;
18
+ radius: infer H;
19
+ zIndex: infer J;
20
+ } ? {
21
+ font: {
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
+ };
37
+ };
38
+ color: {
39
+ [key in keyof E]: Variable;
40
+ };
41
+ space: {
42
+ [key in keyof F]: Variable;
43
+ };
44
+ size: {
45
+ [key in keyof G]: Variable;
46
+ };
47
+ radius: {
48
+ [key in keyof H]: Variable;
49
+ };
50
+ zIndex: {
51
+ [key in keyof J]: Variable;
52
+ };
53
+ } : never;
54
+ export {};
55
+ //# sourceMappingURL=createTokens.d.ts.map
@@ -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,15 @@
1
+ export declare class Variable {
2
+ name: string;
3
+ val: string | number;
4
+ variable: string | number;
5
+ constructor({ val, name }: VariableIn);
6
+ toString(): string | number;
7
+ }
8
+ declare type VariableIn = {
9
+ val: string | number;
10
+ name: string;
11
+ };
12
+ export declare const createVariable: (props: VariableIn) => Variable;
13
+ export declare function isVariable(v: Variable | any): v is Variable;
14
+ export {};
15
+ //# sourceMappingURL=createVariable.d.ts.map
@@ -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,3 @@
1
+ export declare function useStylesAsClassname(styles: any[]): string;
2
+ export declare function addStylesUsingClassname(styles: any[], onAdd?: (identifier: string, rules: string[]) => any): string;
3
+ //# sourceMappingURL=addStylesUsingClassname.d.ts.map
@@ -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"}
@@ -0,0 +1,8 @@
1
+ import { StyleObject } from '@tamagui/helpers';
2
+ import { MediaQueries } from '../types';
3
+ export declare const MEDIA_SEP = "_";
4
+ export declare const createMediaStyle: ({ identifier, rules }: StyleObject, mediaKey: string, mediaQueries: MediaQueries, negate?: boolean | undefined, importance?: number) => {
5
+ styleRule: string;
6
+ identifier: string;
7
+ };
8
+ //# sourceMappingURL=createMediaStyle.d.ts.map
@@ -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,3 @@
1
+ import { StaticConfig } from '../types';
2
+ export declare const createPropMapper: (c: StaticConfig) => (key: string, value: any, theme: any, props: any) => any;
3
+ //# sourceMappingURL=createPropMapper.d.ts.map
@@ -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"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { TamaguiProviderProps } from '../types';
3
+ import { ThemeProviderProps } from '../views/ThemeProvider';
4
+ export declare function createTamaguiProvider(themeProps: ThemeProviderProps): ({ initialWindowMetrics, fallback, children, ...themePropsProvider }: TamaguiProviderProps) => JSX.Element;
5
+ //# sourceMappingURL=createTamaguiProvider.d.ts.map
@@ -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"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StaticComponent, StaticConfig, StaticConfigParsed } from '../types';
3
+ export declare function extendStaticConfig(Component?: StaticComponent | React.Component<any>, config?: StaticConfig): StaticConfigParsed | null;
4
+ export declare const parseStaticConfig: (config: StaticConfig) => StaticConfigParsed;
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"}
@@ -0,0 +1,2 @@
1
+ export declare const fixNativeShadow: (a: any) => void;
2
+ //# sourceMappingURL=fixNativeShadow.d.ts.map
@@ -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,2 @@
1
+ export declare function fixNativeShadow(props: any): any;
2
+ //# sourceMappingURL=fixNativeShadow.native.d.ts.map
@@ -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,OAuBzC"}
@@ -0,0 +1,15 @@
1
+ import { ViewStyle } from 'react-native';
2
+ import { StaticConfigParsed, ThemeObject } from '../types';
3
+ export declare type SplitStyles = ReturnType<typeof getSplitStyles>;
4
+ export declare const getSplitStyles: (props: {
5
+ [key: string]: any;
6
+ }, staticConfig: StaticConfigParsed, theme: ThemeObject, isSplittingDefaultProps?: boolean | undefined) => {
7
+ viewProps: Record<string, any>;
8
+ style: any[];
9
+ pseudos: {
10
+ hoverStyle?: ViewStyle | undefined;
11
+ pressStyle?: ViewStyle | undefined;
12
+ } | null;
13
+ classNames: string[] | null;
14
+ };
15
+ //# sourceMappingURL=getSplitStyles.d.ts.map
@@ -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,3 @@
1
+ import { StyleObject } from '@tamagui/helpers';
2
+ export declare function getStylesAtomic(style: any, avoidCollection?: boolean): StyleObject[];
3
+ //# sourceMappingURL=getStylesAtomic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStylesAtomic.d.ts","sourceRoot":"","sources":["../../src/helpers/getStylesAtomic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAqBxD,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,eAAe,UAAQ,iBAiBlE"}
@@ -0,0 +1,2 @@
1
+ export declare function getStylesAtomic(): void;
2
+ //# sourceMappingURL=getStylesAtomic.native.d.ts.map
@@ -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,2 @@
1
+ export declare function insertStyleRule(rule: string): void;
2
+ //# sourceMappingURL=insertStyleRule.d.ts.map
@@ -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,2 @@
1
+ export declare const isObj: (x: any) => any;
2
+ //# sourceMappingURL=isObj.d.ts.map
@@ -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,3 @@
1
+ import React from 'react';
2
+ export declare const isTamaguiElement: (child: any) => child is React.ReactElement<any, string | React.JSXElementConstructor<any>>;
3
+ //# sourceMappingURL=isTamaguiElement.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export declare const matchMedia: any;
2
+ //# sourceMappingURL=matchMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchMedia.d.ts","sourceRoot":"","sources":["../../src/helpers/matchMedia.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,KAgBZ,CAAA"}
@@ -0,0 +1,3 @@
1
+ import MediaQueryList from '@expo/match-media/build/MediaQueryList.js';
2
+ export declare const matchMedia: (media: string) => MediaQueryList;
3
+ //# sourceMappingURL=matchMedia.native.d.ts.map
@@ -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"}
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ export declare type ThemeableProps = {
3
+ theme?: string | null;
4
+ themeInverse?: boolean;
5
+ };
6
+ export declare const themeable: ThemeableHOC;
7
+ export interface ThemeableHOC {
8
+ <R extends ReactElement<any, any> | null, P extends ThemeableProps = {}>(component: (props: P) => R): (props: P) => R;
9
+ }
10
+ //# sourceMappingURL=themeable.d.ts.map
@@ -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,4 @@
1
+ export declare const validateConfig: (conf: any) => void;
2
+ export declare const validateTokens: (tokens: any) => void;
3
+ export declare const validateFont: (font: any) => void;
4
+ //# sourceMappingURL=validate.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export declare function useConstant<T>(fn: () => T): T;
2
+ //# sourceMappingURL=useConstant.d.ts.map
@@ -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"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const useFeatures: (props: any, utils?: {
3
+ forceUpdate?: Function | undefined;
4
+ } | undefined) => JSX.Element[];
5
+ //# sourceMappingURL=useFeatures.d.ts.map
@@ -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"}
@@ -0,0 +1,16 @@
1
+ import { ConfigureMediaQueryOptions, MediaQueries, MediaQueryObject, MediaQueryState } from '../types';
2
+ export declare const mediaState: {
3
+ [key in keyof MediaQueryState]: boolean;
4
+ };
5
+ export declare const addMediaQueryListener: (key: string, cb: any) => void;
6
+ export declare const removeMediaQueryListener: (key: string, cb: any) => void;
7
+ export declare const mediaQueryConfig: MediaQueries;
8
+ export declare const getMedia: () => {
9
+ [x: string]: boolean;
10
+ };
11
+ export declare const configureMedia: ({ queries, defaultActive, }?: ConfigureMediaQueryOptions) => void;
12
+ export declare const useMedia: () => {
13
+ [x: string]: boolean;
14
+ };
15
+ export declare function mediaObjectToString(query: string | MediaQueryObject): string;
16
+ //# sourceMappingURL=useMedia.d.ts.map
@@ -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"}
@@ -0,0 +1,3 @@
1
+ import { PressableProps } from 'react-native';
2
+ export declare const usePressable: (props: PressableProps) => readonly [any, any];
3
+ //# sourceMappingURL=usePressable.d.ts.map
@@ -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,20 @@
1
+ import { Variable } from '../createVariable';
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: () => {
7
+ bg: string | Variable;
8
+ bg2: string | Variable;
9
+ bg3: string | Variable;
10
+ bg4: string | Variable;
11
+ color: string | Variable;
12
+ color2: string | Variable;
13
+ color3: string | Variable;
14
+ color4: string | Variable;
15
+ borderColor: string | Variable;
16
+ borderColor2: string | Variable;
17
+ shadowColor: string | Variable;
18
+ shadowColor2: string | Variable;
19
+ };
20
+ //# sourceMappingURL=useTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAsB5C,eAAO,MAAM,YAAY;;wBAWxB,CAAA;AAED,eAAO,MAAM,mBAAmB,uBAE/B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CA8DpB,CAAA"}
@@ -0,0 +1,29 @@
1
+ export * from './createComponent';
2
+ export * from './createShorthands';
3
+ export * from './createTheme';
4
+ export * from './createTamagui';
5
+ export * from './createFont';
6
+ export { createTokens } from './createTokens';
7
+ export * from './createVariable';
8
+ export * from './styled';
9
+ export * from './types';
10
+ export * from './constants/pseudos';
11
+ export * from './constants/constants';
12
+ export * from './constants/platform';
13
+ export * from './constants/rnw';
14
+ export * from './helpers/isObj';
15
+ export * from './helpers/getStylesAtomic';
16
+ export * from './helpers/matchMedia';
17
+ export * from './helpers/themeable';
18
+ export * from './helpers/isTamaguiElement';
19
+ export * from './hooks/useConstant';
20
+ export * from './hooks/useMedia';
21
+ export * from './hooks/useTheme';
22
+ export * from './views/Animated';
23
+ export * from './views/Stack';
24
+ export * from './views/Text';
25
+ export * from './views/Theme';
26
+ export * from './views/ThemeInverse';
27
+ export * from './views/ThemeProvider';
28
+ export * from './views/TextAncestorContext';
29
+ //# sourceMappingURL=index.d.ts.map
@@ -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;AAEvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAE/B,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"}
@@ -0,0 +1,7 @@
1
+ import { StaticConfigParsed, ThemeObject } from '../types';
2
+ export declare const postProcessStyles: (inStyles: any, staticConfig: StaticConfigParsed, theme: ThemeObject) => {
3
+ style: {};
4
+ viewProps: Record<string, any>;
5
+ classNames: string[] | null;
6
+ };
7
+ //# sourceMappingURL=postProcessStyles.d.ts.map
@@ -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"}
@@ -0,0 +1,15 @@
1
+ export * from './styled';
2
+ export * from './createComponent';
3
+ export * from './createFont';
4
+ export * from './createTokens';
5
+ export * from './createTamagui';
6
+ export * from './constants/constants';
7
+ export * from './hooks/useMedia';
8
+ export * from './hooks/useTheme';
9
+ export * from './helpers/isObj';
10
+ export * from './helpers/getStylesAtomic';
11
+ export * from './helpers/getSplitStyles';
12
+ export * from '@tamagui/helpers';
13
+ export * from './constants/pseudos';
14
+ export * from './static/postProcessStyles';
15
+ //# sourceMappingURL=static.d.ts.map
@@ -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 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<Omit<GetProps<ParentComponent>, keyof GetVariantProps<Variants>> & GetVariantProps<Variants> & MediaProps<GetVariantProps<Variants>>, any, 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]}` : unknown : unknown : keyof Variants[Key] extends 'true' ? boolean : 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,MAAM,OAAO,CAAA;AAIzB,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,yMAiBvC;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,GACjC,OAAO,GACT,OAAO,GACT,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,MAAM,GAClC,OAAO,GACP,MAAM,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;CAC5C,CAAA"}