@tamagui/web 1.88.13 → 1.89.0-1706360676826

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 (278) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/createComponent.js +1 -1
  3. package/dist/cjs/createComponent.js.map +1 -1
  4. package/dist/cjs/createTamagui.js.map +1 -1
  5. package/dist/cjs/createTamagui.native.js.map +1 -1
  6. package/dist/cjs/createVariables.js.map +1 -1
  7. package/dist/cjs/createVariables.native.js.map +1 -1
  8. package/dist/cjs/helpers/getSplitStyles.js +1 -1
  9. package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
  10. package/dist/cjs/helpers/getSplitStyles.native.js +1 -1
  11. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  12. package/dist/cjs/helpers/getStylesAtomic.js.map +1 -1
  13. package/dist/cjs/helpers/getThemeCSSRules.js.map +1 -1
  14. package/dist/cjs/helpers/propMapper.js.map +1 -1
  15. package/dist/cjs/helpers/propMapper.native.js.map +1 -1
  16. package/dist/cjs/helpers/registerCSSVariable.js.map +1 -1
  17. package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
  18. package/dist/cjs/hooks/useTheme.js.map +1 -1
  19. package/dist/cjs/hooks/useTheme.native.js.map +1 -1
  20. package/dist/cjs/insertFont.js.map +1 -1
  21. package/dist/cjs/insertFont.native.js.map +1 -1
  22. package/dist/cjs/setupHooks.js.map +1 -1
  23. package/dist/cjs/setupHooks.native.js.map +1 -1
  24. package/dist/cjs/views/FontLanguage.native.js.map +1 -1
  25. package/dist/cjs/views/Slot.js.map +1 -1
  26. package/dist/cjs/views/Slot.native.js.map +1 -1
  27. package/dist/cjs/views/Theme.js.map +1 -1
  28. package/dist/cjs/views/Theme.native.js.map +1 -1
  29. package/dist/esm/Tamagui.mjs +43 -0
  30. package/dist/esm/config.mjs +51 -0
  31. package/dist/esm/constants/accessibilityDirectMap.mjs +50 -0
  32. package/dist/esm/constants/constants.mjs +16 -0
  33. package/dist/esm/constants/isDevTools.mjs +7 -0
  34. package/dist/esm/contexts/ComponentContext.mjs +13 -0
  35. package/dist/esm/createComponent.js +1 -1
  36. package/dist/esm/createComponent.js.map +1 -1
  37. package/dist/esm/createComponent.mjs +771 -0
  38. package/dist/esm/createFont.mjs +18 -0
  39. package/dist/esm/createShorthands.mjs +4 -0
  40. package/dist/esm/createTamagui.js.map +1 -1
  41. package/dist/esm/createTamagui.mjs +206 -0
  42. package/dist/esm/createTamagui.native.js.map +1 -1
  43. package/dist/esm/createTheme.mjs +2 -0
  44. package/dist/esm/createTokens.mjs +5 -0
  45. package/dist/esm/createVariable.mjs +48 -0
  46. package/dist/esm/createVariables.js.map +1 -1
  47. package/dist/esm/createVariables.mjs +35 -0
  48. package/dist/esm/createVariables.native.js.map +1 -1
  49. package/dist/esm/defaultComponentState.mjs +16 -0
  50. package/dist/esm/helpers/ThemeManager.mjs +156 -0
  51. package/dist/esm/helpers/ThemeManagerContext.mjs +3 -0
  52. package/dist/esm/helpers/createMediaStyle.mjs +71 -0
  53. package/dist/esm/helpers/createShallowSetState.mjs +17 -0
  54. package/dist/esm/helpers/createStyledContext.mjs +35 -0
  55. package/dist/esm/helpers/defaultOffset.mjs +5 -0
  56. package/dist/esm/helpers/expandStyle.mjs +38 -0
  57. package/dist/esm/helpers/expandStyles.mjs +15 -0
  58. package/dist/esm/helpers/getExpandedShorthands.mjs +9 -0
  59. package/dist/esm/helpers/getFontLanguage.mjs +2 -0
  60. package/dist/esm/helpers/getGroupPropParts.mjs +13 -0
  61. package/dist/esm/helpers/getSplitStyles.js +1 -1
  62. package/dist/esm/helpers/getSplitStyles.js.map +1 -1
  63. package/dist/esm/helpers/getSplitStyles.mjs +643 -0
  64. package/dist/esm/helpers/getSplitStyles.native.js +1 -1
  65. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  66. package/dist/esm/helpers/getStylesAtomic.js +1 -4
  67. package/dist/esm/helpers/getStylesAtomic.js.map +1 -1
  68. package/dist/esm/helpers/getStylesAtomic.mjs +150 -0
  69. package/dist/esm/helpers/getThemeCSSRules.js.map +1 -1
  70. package/dist/esm/helpers/getThemeCSSRules.mjs +87 -0
  71. package/dist/esm/helpers/getVariantExtras.mjs +43 -0
  72. package/dist/esm/helpers/insertStyleRule.mjs +177 -0
  73. package/dist/esm/helpers/isObj.mjs +2 -0
  74. package/dist/esm/helpers/isTamaguiComponent.mjs +5 -0
  75. package/dist/esm/helpers/isTamaguiElement.mjs +4 -0
  76. package/dist/esm/helpers/log.mjs +4 -0
  77. package/dist/esm/helpers/matchMedia.mjs +11 -0
  78. package/dist/esm/helpers/mergeProps.mjs +21 -0
  79. package/dist/esm/helpers/mergeVariants.mjs +16 -0
  80. package/dist/esm/helpers/normalizeColor.mjs +17 -0
  81. package/dist/esm/helpers/normalizeShadow.mjs +23 -0
  82. package/dist/esm/helpers/normalizeStyle.mjs +23 -0
  83. package/dist/esm/helpers/normalizeStylePropKeys.mjs +2 -0
  84. package/dist/esm/helpers/normalizeValueWithProperty.mjs +32 -0
  85. package/dist/esm/helpers/objectIdentityKey.mjs +15 -0
  86. package/dist/esm/helpers/propMapper.js.map +1 -1
  87. package/dist/esm/helpers/propMapper.mjs +239 -0
  88. package/dist/esm/helpers/propMapper.native.js.map +1 -1
  89. package/dist/esm/helpers/proxyThemeToParents.mjs +36 -0
  90. package/dist/esm/helpers/proxyThemeVariables.mjs +12 -0
  91. package/dist/esm/helpers/pseudoDescriptors.mjs +34 -0
  92. package/dist/esm/helpers/registerCSSVariable.js.map +1 -1
  93. package/dist/esm/helpers/registerCSSVariable.mjs +7 -0
  94. package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
  95. package/dist/esm/helpers/themeable.mjs +33 -0
  96. package/dist/esm/helpers/themes.mjs +14 -0
  97. package/dist/esm/helpers/timer.mjs +8 -0
  98. package/dist/esm/hooks/useConfiguration.mjs +20 -0
  99. package/dist/esm/hooks/useDisableSSR.mjs +5 -0
  100. package/dist/esm/hooks/useIsTouchDevice.mjs +4 -0
  101. package/dist/esm/hooks/useMedia.mjs +146 -0
  102. package/dist/esm/hooks/useProps.mjs +40 -0
  103. package/dist/esm/hooks/useTheme.js +1 -4
  104. package/dist/esm/hooks/useTheme.js.map +1 -1
  105. package/dist/esm/hooks/useTheme.mjs +222 -0
  106. package/dist/esm/hooks/useTheme.native.js.map +1 -1
  107. package/dist/esm/hooks/useThemeName.mjs +15 -0
  108. package/dist/esm/index.mjs +61 -0
  109. package/dist/esm/inject-styles.mjs +13 -0
  110. package/dist/esm/insertFont.js.map +1 -1
  111. package/dist/esm/insertFont.mjs +44 -0
  112. package/dist/esm/insertFont.native.js.map +1 -1
  113. package/dist/esm/interfaces/CSSColorNames.mjs +0 -0
  114. package/dist/esm/interfaces/GetRef.mjs +0 -0
  115. package/dist/esm/interfaces/KeyTypes.mjs +0 -0
  116. package/dist/esm/interfaces/RNExclusiveTypes.mjs +0 -0
  117. package/dist/esm/interfaces/Role.mjs +0 -0
  118. package/dist/esm/interfaces/TamaguiComponentEvents.mjs +0 -0
  119. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs +0 -0
  120. package/dist/esm/interfaces/TamaguiComponentState.mjs +0 -0
  121. package/dist/esm/interfaces/WebOnlyPressEvents.mjs +0 -0
  122. package/dist/esm/internalWithTheme.mjs +14 -0
  123. package/dist/esm/setupHooks.js.map +1 -1
  124. package/dist/esm/setupHooks.mjs +5 -0
  125. package/dist/esm/setupHooks.native.js.map +1 -1
  126. package/dist/esm/setupReactNative.mjs +24 -0
  127. package/dist/esm/styled.mjs +56 -0
  128. package/dist/esm/type-utils.mjs +0 -0
  129. package/dist/esm/types.mjs +2 -0
  130. package/dist/esm/views/Configuration.mjs +12 -0
  131. package/dist/esm/views/FontLanguage.mjs +13 -0
  132. package/dist/esm/views/FontLanguage.native.js.map +1 -1
  133. package/dist/esm/views/FontLanguage.types.mjs +0 -0
  134. package/dist/esm/views/Slot.js.map +1 -1
  135. package/dist/esm/views/Slot.mjs +53 -0
  136. package/dist/esm/views/Slot.native.js.map +1 -1
  137. package/dist/esm/views/Stack.mjs +10 -0
  138. package/dist/esm/views/TamaguiProvider.mjs +32 -0
  139. package/dist/esm/views/Text.mjs +64 -0
  140. package/dist/esm/views/Theme.js.map +1 -1
  141. package/dist/esm/views/Theme.mjs +104 -0
  142. package/dist/esm/views/Theme.native.js.map +1 -1
  143. package/dist/esm/views/ThemeDebug.mjs +57 -0
  144. package/dist/esm/views/ThemeProvider.mjs +20 -0
  145. package/dist/esm/views/View.mjs +9 -0
  146. package/package.json +10 -10
  147. package/src/config.ts +1 -1
  148. package/src/contexts/ComponentContext.tsx +1 -1
  149. package/src/createComponent.tsx +5 -5
  150. package/src/createFont.ts +1 -1
  151. package/src/createShorthands.ts +1 -1
  152. package/src/createTamagui.ts +4 -3
  153. package/src/createTokens.ts +2 -2
  154. package/src/createVariables.ts +2 -1
  155. package/src/defaultComponentState.tsx +1 -1
  156. package/src/helpers/ThemeManager.tsx +1 -1
  157. package/src/helpers/createShallowSetState.tsx +2 -2
  158. package/src/helpers/expandStyle.ts +1 -1
  159. package/src/helpers/getExpandedShorthands.ts +1 -1
  160. package/src/helpers/getSplitStyles.tsx +5 -0
  161. package/src/helpers/getStylesAtomic.ts +4 -6
  162. package/src/helpers/getThemeCSSRules.ts +2 -1
  163. package/src/helpers/getVariantExtras.tsx +2 -2
  164. package/src/helpers/isTamaguiComponent.tsx +1 -1
  165. package/src/helpers/isTamaguiElement.tsx +1 -1
  166. package/src/helpers/matchMedia.native.ts +1 -1
  167. package/src/helpers/matchMedia.ts +1 -1
  168. package/src/helpers/propMapper.ts +2 -1
  169. package/src/helpers/proxyThemeToParents.ts +1 -1
  170. package/src/helpers/registerCSSVariable.ts +3 -2
  171. package/src/helpers/themeable.tsx +1 -1
  172. package/src/hooks/useDisableSSR.tsx +1 -1
  173. package/src/hooks/useProps.tsx +1 -1
  174. package/src/hooks/useTheme.tsx +4 -6
  175. package/src/hooks/useThemeName.tsx +1 -1
  176. package/src/insertFont.ts +4 -3
  177. package/src/interfaces/GetRef.tsx +2 -2
  178. package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +2 -2
  179. package/src/interfaces/TamaguiComponentState.tsx +1 -1
  180. package/src/interfaces/WebOnlyPressEvents.tsx +1 -1
  181. package/src/setupHooks.ts +4 -8
  182. package/src/setupReactNative.ts +1 -1
  183. package/src/styled.tsx +1 -1
  184. package/src/types.tsx +8 -8
  185. package/src/views/FontLanguage.native.tsx +0 -1
  186. package/src/views/FontLanguage.types.ts +2 -2
  187. package/src/views/Slot.tsx +2 -1
  188. package/src/views/TamaguiProvider.tsx +1 -1
  189. package/src/views/Text.tsx +1 -1
  190. package/src/views/Theme.tsx +2 -1
  191. package/src/views/ThemeDebug.native.tsx +2 -2
  192. package/src/views/ThemeDebug.tsx +2 -2
  193. package/types/config.d.ts +1 -1
  194. package/types/config.d.ts.map +1 -1
  195. package/types/contexts/ComponentContext.d.ts +1 -1
  196. package/types/contexts/ComponentContext.d.ts.map +1 -1
  197. package/types/createComponent.d.ts +1 -1
  198. package/types/createComponent.d.ts.map +1 -1
  199. package/types/createFont.d.ts +1 -1
  200. package/types/createFont.d.ts.map +1 -1
  201. package/types/createShorthands.d.ts +1 -1
  202. package/types/createShorthands.d.ts.map +1 -1
  203. package/types/createTamagui.d.ts +1 -1
  204. package/types/createTamagui.d.ts.map +1 -1
  205. package/types/createTokens.d.ts +2 -2
  206. package/types/createTokens.d.ts.map +1 -1
  207. package/types/createVariables.d.ts +1 -1
  208. package/types/createVariables.d.ts.map +1 -1
  209. package/types/defaultComponentState.d.ts +1 -1
  210. package/types/defaultComponentState.d.ts.map +1 -1
  211. package/types/helpers/ThemeManager.d.ts +1 -1
  212. package/types/helpers/ThemeManager.d.ts.map +1 -1
  213. package/types/helpers/createShallowSetState.d.ts +2 -2
  214. package/types/helpers/createShallowSetState.d.ts.map +1 -1
  215. package/types/helpers/expandStyle.d.ts +1 -1
  216. package/types/helpers/expandStyle.d.ts.map +1 -1
  217. package/types/helpers/getExpandedShorthands.d.ts +1 -1
  218. package/types/helpers/getExpandedShorthands.d.ts.map +1 -1
  219. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  220. package/types/helpers/getStylesAtomic.d.ts +2 -2
  221. package/types/helpers/getStylesAtomic.d.ts.map +1 -1
  222. package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
  223. package/types/helpers/getVariantExtras.d.ts +2 -2
  224. package/types/helpers/getVariantExtras.d.ts.map +1 -1
  225. package/types/helpers/isTamaguiComponent.d.ts +1 -1
  226. package/types/helpers/isTamaguiComponent.d.ts.map +1 -1
  227. package/types/helpers/isTamaguiElement.d.ts +1 -1
  228. package/types/helpers/isTamaguiElement.d.ts.map +1 -1
  229. package/types/helpers/matchMedia.d.ts +1 -1
  230. package/types/helpers/matchMedia.d.ts.map +1 -1
  231. package/types/helpers/matchMedia.native.d.ts +1 -1
  232. package/types/helpers/matchMedia.native.d.ts.map +1 -1
  233. package/types/helpers/propMapper.d.ts.map +1 -1
  234. package/types/helpers/proxyThemeToParents.d.ts +1 -1
  235. package/types/helpers/proxyThemeToParents.d.ts.map +1 -1
  236. package/types/helpers/registerCSSVariable.d.ts +2 -2
  237. package/types/helpers/registerCSSVariable.d.ts.map +1 -1
  238. package/types/helpers/themeable.d.ts +1 -1
  239. package/types/helpers/themeable.d.ts.map +1 -1
  240. package/types/hooks/useDisableSSR.d.ts +1 -1
  241. package/types/hooks/useDisableSSR.d.ts.map +1 -1
  242. package/types/hooks/useProps.d.ts +1 -1
  243. package/types/hooks/useProps.d.ts.map +1 -1
  244. package/types/hooks/useTheme.d.ts +3 -2
  245. package/types/hooks/useTheme.d.ts.map +1 -1
  246. package/types/hooks/useThemeName.d.ts +1 -1
  247. package/types/hooks/useThemeName.d.ts.map +1 -1
  248. package/types/insertFont.d.ts +2 -2
  249. package/types/insertFont.d.ts.map +1 -1
  250. package/types/interfaces/GetRef.d.ts +2 -2
  251. package/types/interfaces/GetRef.d.ts.map +1 -1
  252. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +2 -2
  253. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -1
  254. package/types/interfaces/TamaguiComponentState.d.ts +1 -1
  255. package/types/interfaces/TamaguiComponentState.d.ts.map +1 -1
  256. package/types/interfaces/WebOnlyPressEvents.d.ts +1 -1
  257. package/types/interfaces/WebOnlyPressEvents.d.ts.map +1 -1
  258. package/types/setupHooks.d.ts +3 -3
  259. package/types/setupHooks.d.ts.map +1 -1
  260. package/types/setupReactNative.d.ts +1 -1
  261. package/types/setupReactNative.d.ts.map +1 -1
  262. package/types/styled.d.ts +1 -1
  263. package/types/styled.d.ts.map +1 -1
  264. package/types/types.d.ts +8 -8
  265. package/types/types.d.ts.map +1 -1
  266. package/types/views/FontLanguage.native.d.ts.map +1 -1
  267. package/types/views/FontLanguage.types.d.ts +2 -2
  268. package/types/views/FontLanguage.types.d.ts.map +1 -1
  269. package/types/views/Slot.d.ts +1 -1
  270. package/types/views/Slot.d.ts.map +1 -1
  271. package/types/views/Text.d.ts +1 -1
  272. package/types/views/Text.d.ts.map +1 -1
  273. package/types/views/Theme.d.ts +1 -1
  274. package/types/views/Theme.d.ts.map +1 -1
  275. package/types/views/ThemeDebug.d.ts +2 -2
  276. package/types/views/ThemeDebug.d.ts.map +1 -1
  277. package/types/views/ThemeDebug.native.d.ts +2 -2
  278. package/types/views/ThemeDebug.native.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.88.13",
3
+ "version": "1.89.0-1706360676826",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,19 +27,19 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.88.13",
31
- "@tamagui/constants": "1.88.13",
32
- "@tamagui/helpers": "1.88.13",
33
- "@tamagui/normalize-css-color": "1.88.13",
34
- "@tamagui/timer": "1.88.13",
35
- "@tamagui/use-did-finish-ssr": "1.88.13",
36
- "@tamagui/use-event": "1.88.13",
37
- "@tamagui/use-force-update": "1.88.13",
30
+ "@tamagui/compose-refs": "1.89.0-1706360676826",
31
+ "@tamagui/constants": "1.89.0-1706360676826",
32
+ "@tamagui/helpers": "1.89.0-1706360676826",
33
+ "@tamagui/normalize-css-color": "1.89.0-1706360676826",
34
+ "@tamagui/timer": "1.89.0-1706360676826",
35
+ "@tamagui/use-did-finish-ssr": "1.89.0-1706360676826",
36
+ "@tamagui/use-event": "1.89.0-1706360676826",
37
+ "@tamagui/use-force-update": "1.89.0-1706360676826",
38
38
  "react": "^18.2.0",
39
39
  "react-dom": "^18.2.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.88.13",
42
+ "@tamagui/build": "1.89.0-1706360676826",
43
43
  "@testing-library/react": "^14.0.0",
44
44
  "csstype": "^3.0.10",
45
45
  "typescript": "^5.3.3",
package/src/config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isWeb } from '@tamagui/constants'
2
2
 
3
- import {
3
+ import type {
4
4
  ConfigListener,
5
5
  TamaguiInternalConfig,
6
6
  Token,
@@ -1,5 +1,5 @@
1
1
  import { createStyledContext } from '../helpers/createStyledContext'
2
- import { ComponentContextI, GroupStateListener } from '../types'
2
+ import type { ComponentContextI, GroupStateListener } from '../types'
3
3
 
4
4
  export const ComponentContext = createStyledContext<ComponentContextI>({
5
5
  disableSSR: undefined,
@@ -37,7 +37,7 @@ import { themeable } from './helpers/themeable'
37
37
  import { mediaKeyMatch, setMediaShouldUpdate, useMedia } from './hooks/useMedia'
38
38
  import { useThemeWithState } from './hooks/useTheme'
39
39
  import { hooks } from './setupHooks'
40
- import {
40
+ import type {
41
41
  ComponentContextI,
42
42
  DebugProp,
43
43
  DisposeFn,
@@ -62,9 +62,9 @@ import {
62
62
  UseAnimationProps,
63
63
  UseThemeWithStateProps,
64
64
  } from './types'
65
- import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
66
- import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
67
- import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
65
+ import type { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
66
+ import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
67
+ import type { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
68
68
  import { Slot } from './views/Slot'
69
69
  import { getThemedChildren } from './views/Theme'
70
70
  import { ThemeDebug } from './views/ThemeDebug'
@@ -1192,7 +1192,7 @@ export function createComponent<
1192
1192
  }
1193
1193
 
1194
1194
  if (process.env.TAMAGUI_TARGET === 'web') {
1195
- if (isReactNative && !asChild && !isHOC) {
1195
+ if (isReactNative && !asChild) {
1196
1196
  content = (
1197
1197
  <span
1198
1198
  {...(!isHydrated
package/src/createFont.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FontWeightValues, GenericFont } from './types'
1
+ import type { FontWeightValues, GenericFont } from './types'
2
2
 
3
3
  const fontWeights: FontWeightValues[] = [
4
4
  '100',
@@ -1,4 +1,4 @@
1
- import { CreateShorthands } from './types'
1
+ import type { CreateShorthands } from './types'
2
2
 
3
3
  // just a type helper util
4
4
 
@@ -1,8 +1,9 @@
1
1
  import { isWeb } from '@tamagui/constants'
2
2
 
3
3
  import { configListeners, setConfig, setTokens } from './config'
4
- import { Variable } from './createVariable'
5
- import { DeepVariableObject, createVariables } from './createVariables'
4
+ import type { Variable } from './createVariable'
5
+ import type { DeepVariableObject } from './createVariables'
6
+ import { createVariables } from './createVariables'
6
7
  import { getThemeCSSRules } from './helpers/getThemeCSSRules'
7
8
  import {
8
9
  getAllRules,
@@ -15,7 +16,7 @@ import { ensureThemeVariable } from './helpers/themes'
15
16
  import { configureMedia } from './hooks/useMedia'
16
17
  import { parseFont, registerFontVariables } from './insertFont'
17
18
  import { Tamagui } from './Tamagui'
18
- import {
19
+ import type {
19
20
  CreateTamaguiProps,
20
21
  DedupedTheme,
21
22
  DedupedThemes,
@@ -1,6 +1,6 @@
1
- import { Variable } from './createVariable'
1
+ import type { Variable } from './createVariable'
2
2
  import { createVariables } from './createVariables'
3
- import { CreateTokens } from './types'
3
+ import type { CreateTokens } from './types'
4
4
 
5
5
  // tokens.color.dark.red ===> { var: `color-dark-red`, val: '' }
6
6
  export function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T> {
@@ -1,6 +1,7 @@
1
1
  import { simpleHash } from '@tamagui/helpers'
2
2
 
3
- import { Variable, createVariable, isVariable } from './createVariable'
3
+ import type { Variable } from './createVariable'
4
+ import { createVariable, isVariable } from './createVariable'
4
5
 
5
6
  type DeepTokenObject<Val extends string | number = any> = {
6
7
  [key: string]: Val | DeepTokenObject<Val>
@@ -1,4 +1,4 @@
1
- import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
1
+ import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
2
2
 
3
3
  export const defaultComponentState: TamaguiComponentState = {
4
4
  hover: false,
@@ -2,7 +2,7 @@ import { isWeb } from '@tamagui/constants'
2
2
 
3
3
  import { getThemes } from '../config'
4
4
  import { THEME_CLASSNAME_PREFIX, THEME_NAME_SEPARATOR } from '../constants/constants'
5
- import { ColorScheme, ThemeParsed, ThemeProps } from '../types'
5
+ import type { ColorScheme, ThemeParsed, ThemeProps } from '../types'
6
6
 
7
7
  type ThemeListener = (
8
8
  name: string | null,
@@ -1,5 +1,5 @@
1
- import React from 'react'
2
- import { DebugProp } from '../types'
1
+ import type React from 'react'
2
+ import type { DebugProp } from '../types'
3
3
 
4
4
  export function createShallowSetState<State extends Object>(
5
5
  setter: React.Dispatch<React.SetStateAction<State>>,
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { isAndroid, isWeb } from '@tamagui/constants'
7
7
 
8
- import { PropMappedValue } from '../types'
8
+ import type { PropMappedValue } from '../types'
9
9
 
10
10
  export function expandStyle(key: string, value: any): PropMappedValue {
11
11
  if (process.env.TAMAGUI_TARGET === 'web') {
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from '../config'
2
- import { Shorthands } from '../types'
2
+ import type { Shorthands } from '../types'
3
3
 
4
4
  /**
5
5
  * @deprecated use useProps instead
@@ -530,6 +530,11 @@ export const getSplitStyles: StyleSplitter = (
530
530
  const shouldPassThrough = shouldPassProp || isHOCShouldPassThrough
531
531
 
532
532
  if (process.env.NODE_ENV === 'development' && debug === 'verbose') {
533
+ // fix native group nesting issues
534
+ console.groupEnd()
535
+ console.groupEnd()
536
+ // fix native group nesting issues
537
+
533
538
  console.groupCollapsed(
534
539
  ` 🔑 ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ''} ${
535
540
  shouldPassThrough ? '(pass)' : ''
@@ -3,17 +3,15 @@
3
3
  * Copyright (c) Nicolas Gallagher licensed under the MIT license.
4
4
  */
5
5
 
6
- import { StyleObject, simpleHash } from '@tamagui/helpers'
6
+ import type { StyleObject } from '@tamagui/helpers'
7
+ import { simpleHash } from '@tamagui/helpers'
7
8
 
8
9
  import { getConfig } from '../config'
9
10
  import type { DebugProp, TamaguiInternalConfig, ViewStyleWithPseudos } from '../types'
10
11
  import { defaultOffset } from './defaultOffset'
11
12
  import { normalizeValueWithProperty } from './normalizeValueWithProperty'
12
- import {
13
- PseudoDescriptor,
14
- pseudoDescriptors,
15
- pseudoDescriptorsBase,
16
- } from './pseudoDescriptors'
13
+ import type { PseudoDescriptor } from './pseudoDescriptors'
14
+ import { pseudoDescriptors, pseudoDescriptorsBase } from './pseudoDescriptors'
17
15
  import { normalizeColor } from './normalizeColor'
18
16
 
19
17
  // refactor this file away next...
@@ -1,7 +1,8 @@
1
1
  import { simpleHash } from '@tamagui/helpers'
2
2
 
3
3
  import { THEME_CLASSNAME_PREFIX } from '../constants/constants'
4
- import { Variable, variableToString } from '../createVariable'
4
+ import type { Variable } from '../createVariable'
5
+ import { variableToString } from '../createVariable'
5
6
  import type { CreateTamaguiProps, ThemeParsed } from '../types'
6
7
  import { tokensValueToVariable } from './registerCSSVariable'
7
8
 
@@ -1,6 +1,6 @@
1
1
  import { getVariableValue } from '../createVariable'
2
- import { GenericFonts, GetStyleState } from '../types'
3
- import { LanguageContextType } from '../views/FontLanguage.types'
2
+ import type { GenericFonts, GetStyleState } from '../types'
3
+ import type { LanguageContextType } from '../views/FontLanguage.types'
4
4
 
5
5
  export function getVariantExtras(styleState: GetStyleState) {
6
6
  const { curProps, conf, context, theme } = styleState
@@ -1,4 +1,4 @@
1
- import { StaticConfig } from '../types'
1
+ import type { StaticConfig } from '../types'
2
2
 
3
3
  export function isTamaguiComponent<A>(
4
4
  comp: A,
@@ -1,6 +1,6 @@
1
1
  import { isValidElement } from 'react'
2
2
 
3
- import { StaticConfig } from '../types'
3
+ import type { StaticConfig } from '../types'
4
4
  import { isTamaguiComponent } from './isTamaguiComponent'
5
5
 
6
6
  export const isTamaguiElement = (
@@ -1,4 +1,4 @@
1
- import { MatchMedia, MediaQueryList } from '../types'
1
+ import type { MatchMedia, MediaQueryList } from '../types'
2
2
 
3
3
  let matchMediaImpl: MatchMedia = matchMediaFallback
4
4
 
@@ -1,4 +1,4 @@
1
- import { MatchMedia, MediaQueryList } from '../types'
1
+ import type { MatchMedia, MediaQueryList } from '../types'
2
2
 
3
3
  export const matchMedia =
4
4
  (typeof window !== 'undefined' && window.matchMedia) || matchMediaFallback
@@ -3,7 +3,8 @@ import { tokenCategories } from '@tamagui/helpers'
3
3
 
4
4
  import { getConfig } from '../config'
5
5
  import { isDevTools } from '../constants/isDevTools'
6
- import { Variable, getVariableValue, isVariable } from '../createVariable'
6
+ import type { Variable } from '../createVariable'
7
+ import { getVariableValue, isVariable } from '../createVariable'
7
8
  import type {
8
9
  GetStyleState,
9
10
  PropMapper,
@@ -1,5 +1,5 @@
1
1
  import { getTokenObject } from '../config'
2
- import { DedupedThemes, ThemeParsed } from '../types'
2
+ import type { DedupedThemes, ThemeParsed } from '../types'
3
3
 
4
4
  const themesRaw: Record<string, ThemeParsed> = {}
5
5
 
@@ -1,5 +1,6 @@
1
- import { Variable, createCSSVariable, getVariableValue } from '../createVariable'
2
- import { VariableVal } from '../types'
1
+ import type { Variable } from '../createVariable'
2
+ import { createCSSVariable, getVariableValue } from '../createVariable'
3
+ import type { VariableVal } from '../types'
3
4
 
4
5
  export const registerCSSVariable = (v: Variable | VariableVal) => {
5
6
  tokensValueToVariable.set(getVariableValue(v), v)
@@ -1,6 +1,6 @@
1
1
  import { forwardRef } from 'react'
2
2
 
3
- import { StaticConfig, ThemeableProps } from '../types'
3
+ import type { StaticConfig, ThemeableProps } from '../types'
4
4
  import { Theme } from '../views/Theme'
5
5
 
6
6
  export function themeable<ComponentType extends (props: any) => any>(
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from '../config'
2
- import { ComponentContextI } from '../types'
2
+ import type { ComponentContextI } from '../types'
3
3
 
4
4
  export function getDisableSSR(componentContext?: ComponentContextI) {
5
5
  return componentContext?.disableSSR ?? getConfig().disableSSR
@@ -3,7 +3,7 @@ import { useContext } from 'react'
3
3
  import { ComponentContext } from '../contexts/ComponentContext'
4
4
  import { defaultComponentStateMounted } from '../defaultComponentState'
5
5
  import { useSplitStyles } from '../helpers/getSplitStyles'
6
- import {
6
+ import type {
7
7
  SplitStyleProps,
8
8
  StackStyle,
9
9
  StaticConfig,
@@ -2,13 +2,11 @@ import { isClient, isIos, isServer } from '@tamagui/constants'
2
2
  import { useContext, useEffect, useMemo, useRef, useState } from 'react'
3
3
 
4
4
  import { getConfig } from '../config'
5
- import { Variable, getVariable } from '../createVariable'
5
+ import type { Variable } from '../createVariable'
6
+ import { getVariable } from '../createVariable'
6
7
  import { isEqualShallow } from '../helpers/createShallowSetState'
7
- import {
8
- ThemeManager,
9
- ThemeManagerState,
10
- getHasThemeUpdatingProps,
11
- } from '../helpers/ThemeManager'
8
+ import type { ThemeManagerState } from '../helpers/ThemeManager'
9
+ import { ThemeManager, getHasThemeUpdatingProps } from '../helpers/ThemeManager'
12
10
  import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
13
11
  import type {
14
12
  DebugProp,
@@ -2,7 +2,7 @@ import { useIsomorphicLayoutEffect } from '@tamagui/constants'
2
2
  import { useContext, useState } from 'react'
3
3
 
4
4
  import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
5
- import { ThemeName } from '../types'
5
+ import type { ThemeName } from '../types'
6
6
  import { getThemeManager } from './useTheme'
7
7
 
8
8
  export function useThemeName(opts?: { parent?: true }): ThemeName {
package/src/insertFont.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { setConfigFont } from './config'
2
2
  import { createFont } from './createFont'
3
- import { Variable } from './createVariable'
4
- import { DeepVariableObject, createVariables } from './createVariables'
3
+ import type { Variable } from './createVariable'
4
+ import type { DeepVariableObject } from './createVariables'
5
+ import { createVariables } from './createVariables'
5
6
  import { registerCSSVariable, variableToCSS } from './helpers/registerCSSVariable'
6
- import { GenericFont } from './types'
7
+ import type { GenericFont } from './types'
7
8
 
8
9
  /**
9
10
  * Runtime dynamic insert font
@@ -1,6 +1,6 @@
1
- import { Component, JSXElementConstructor, Ref } from 'react'
1
+ import type { Component, JSXElementConstructor, Ref } from 'react'
2
2
 
3
- import { TamaguiComponent } from '../types'
3
+ import type { TamaguiComponent } from '../types'
4
4
 
5
5
  // gets the ref type of any type of react component
6
6
 
@@ -1,5 +1,5 @@
1
- import { Role } from './Role'
2
- import { DebugProp, ThemeName, GroupNames } from '../types'
1
+ import type { Role } from './Role'
2
+ import type { DebugProp, ThemeName, GroupNames } from '../types'
3
3
 
4
4
  export type TamaguiComponentPropsBaseBase = {
5
5
  target?: string
@@ -1,4 +1,4 @@
1
- import { GroupState } from '../types'
1
+ import type { GroupState } from '../types'
2
2
 
3
3
  export type TamaguiComponentState = {
4
4
  hover: boolean
@@ -1,5 +1,5 @@
1
1
  import type { PressableProps } from 'react-native'
2
- import { DivAttributes } from '../types'
2
+ import type { DivAttributes } from '../types'
3
3
 
4
4
  export interface WebOnlyPressEvents {
5
5
  onPress?: PressableProps['onPress']
package/src/setupHooks.ts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { RefObject } from 'react'
2
2
 
3
- import {
4
- GetStyleResult,
5
- StaticConfig,
6
- TamaguiComponentStateRef,
7
- TamaguiElement,
8
- } from './types'
9
- import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
10
- import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
3
+ import type { GetStyleResult, StaticConfig, TamaguiComponentStateRef } from './types'
4
+ import { TamaguiElement } from './types'
5
+ import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
6
+ import type { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
11
7
 
12
8
  export const hooks: InternalHooks = {}
13
9
 
@@ -1,4 +1,4 @@
1
- import { StaticConfig } from './types'
1
+ import type { StaticConfig } from './types'
2
2
 
3
3
  const ReactNativeStaticConfigs = new WeakMap<any, Partial<StaticConfig> | null>()
4
4
 
package/src/styled.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createComponent } from './createComponent'
2
- import { StyledContext } from './helpers/createStyledContext'
2
+ import type { StyledContext } from './helpers/createStyledContext'
3
3
  import { mergeVariants } from './helpers/mergeVariants'
4
4
  import type { GetRef } from './interfaces/GetRef'
5
5
  import { getReactNativeConfig } from './setupReactNative'
package/src/types.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { StyleObject } from '@tamagui/helpers'
2
2
  import type { Properties } from 'csstype'
3
- import {
3
+ import type {
4
4
  ComponentType,
5
5
  ForwardRefExoticComponent,
6
6
  FunctionComponent,
@@ -19,15 +19,15 @@ import type {
19
19
  } from 'react-native'
20
20
 
21
21
  import type { Variable } from './createVariable'
22
- import { StyledContext } from './helpers/createStyledContext'
23
- import { CSSColorNames } from './interfaces/CSSColorNames'
24
- import { RNOnlyProps } from './interfaces/RNExclusiveTypes'
22
+ import type { StyledContext } from './helpers/createStyledContext'
23
+ import type { CSSColorNames } from './interfaces/CSSColorNames'
24
+ import type { RNOnlyProps } from './interfaces/RNExclusiveTypes'
25
25
  import type { LanguageContextType } from './views/FontLanguage.types'
26
26
  import type { ThemeProviderProps } from './views/ThemeProvider'
27
- import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
28
- import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
29
- import { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase'
30
- import { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes'
27
+ import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
28
+ import type { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
29
+ import type { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase'
30
+ import type { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes'
31
31
 
32
32
  export * from './interfaces/KeyTypes'
33
33
  export * from './interfaces/TamaguiComponentState'
@@ -4,7 +4,6 @@ import { ComponentContext } from '../contexts/ComponentContext'
4
4
  import type { FontLanguageProps } from './FontLanguage.types'
5
5
 
6
6
  export const FontLanguage = ({ children, ...props }: FontLanguageProps) => {
7
- // eslint-disable-next-line react-hooks/exhaustive-deps
8
7
  const language = useMemo(() => props, [JSON.stringify(props)])
9
8
  return (
10
9
  <ComponentContext.Provider language={language}>{children}</ComponentContext.Provider>
@@ -1,6 +1,6 @@
1
- import React from 'react'
1
+ import type React from 'react'
2
2
 
3
- import { FontLanguages, FontTokens } from '../types'
3
+ import type { FontLanguages, FontTokens } from '../types'
4
4
 
5
5
  type FontFamilies = FontTokens extends `$${infer Token}` ? Token : never
6
6
 
@@ -3,7 +3,8 @@
3
3
  import { composeRefs } from '@tamagui/compose-refs'
4
4
  import { isWeb } from '@tamagui/constants'
5
5
  import { composeEventHandlers } from '@tamagui/helpers'
6
- import { Children, ReactNode, cloneElement, forwardRef, isValidElement } from 'react'
6
+ import type { ReactNode } from 'react'
7
+ import { Children, cloneElement, forwardRef, isValidElement } from 'react'
7
8
 
8
9
  /* -------------------------------------------------------------------------------------------------
9
10
  * Slot
@@ -16,7 +16,7 @@ export function TamaguiProvider({
16
16
 
17
17
  if (isClient) {
18
18
  // inject CSS if asked to (not SSR compliant)
19
- // eslint-disable-next-line react-hooks/rules-of-hooks
19
+
20
20
  React.useLayoutEffect(() => {
21
21
  if (!config.disableSSR) {
22
22
  // for easier support of hidden-until-js mount animations
@@ -1,7 +1,7 @@
1
1
  import { stylePropsTextOnly, validStyles } from '@tamagui/helpers'
2
2
 
3
3
  import { createComponent } from '../createComponent'
4
- import {
4
+ import type {
5
5
  TamaguiTextElement,
6
6
  TextNonStyleProps,
7
7
  TextProps,
@@ -3,7 +3,8 @@ import React, { Children, cloneElement, forwardRef, isValidElement, useRef } fro
3
3
 
4
4
  import { variableToString } from '../createVariable'
5
5
  import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
6
- import { ChangedThemeResponse, useChangeThemeEffect } from '../hooks/useTheme'
6
+ import type { ChangedThemeResponse } from '../hooks/useTheme'
7
+ import { useChangeThemeEffect } from '../hooks/useTheme'
7
8
  import type { ThemeProps } from '../types'
8
9
  import { ThemeDebug } from './ThemeDebug'
9
10
 
@@ -1,5 +1,5 @@
1
- import { ChangedThemeResponse } from '../hooks/useTheme'
2
- import { ThemeProps } from '../types'
1
+ import type { ChangedThemeResponse } from '../hooks/useTheme'
2
+ import type { ThemeProps } from '../types'
3
3
 
4
4
  export function ThemeDebug({
5
5
  themeState,
@@ -3,8 +3,8 @@ import { useForceUpdate } from '@tamagui/use-force-update'
3
3
  import { useEffect, useId, useState } from 'react'
4
4
  import { createPortal } from 'react-dom'
5
5
 
6
- import { ChangedThemeResponse } from '../hooks/useTheme'
7
- import { ThemeProps } from '../types'
6
+ import type { ChangedThemeResponse } from '../hooks/useTheme'
7
+ import type { ThemeProps } from '../types'
8
8
 
9
9
  let node
10
10
 
package/types/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConfigListener, TamaguiInternalConfig, Token, Tokens, TokensMerged } from './types';
1
+ import type { ConfigListener, TamaguiInternalConfig, Token, Tokens, TokensMerged } from './types';
2
2
  export declare const setConfig: (next: TamaguiInternalConfig) => void;
3
3
  export declare const setConfigFont: (name: string, font: any, fontParsed: any) => void;
4
4
  export declare const getConfig: () => TamaguiInternalConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,SAAS,SAAU,qBAAqB,SAEpD,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,GAAG,cAAc,GAAG,SAMrE,CAAA;AAED,eAAO,MAAM,SAAS,6BASrB,CAAA;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,QAExC;AAED,eAAO,MAAM,SAAS;IAGpB;;OAEG;;MAEI,YAQR,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,UAAU,MAAM,MAAM,6CAShE,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,UAAU,MAAM,MAAM,+BAG1D,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,UAAU,MAAM,MAAM,QAE/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;IArCpB;;OAEG;;MAEI,YAiCyB,CAAA;AAElC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAAqB,CAAA;AAE3C,eAAO,MAAM,eAAe,qBAA4B,CAAA;AAExD,eAAO,MAAM,gBAAgB,OAAQ,cAAc,SAMlD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,GAAG,SAGnD,CAAA;AAGD,eAAO,MAAM,OAAO,SAAU,MAAM,4DAQnC,CAAA;AAED,KAAK,SAAS,GAAG;IACf,UAAU,CAAC,EACP,OAAO,GACP;QACE,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACN,CAAA;AAED,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;AAE3C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAIvC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,SAAS,SAAU,qBAAqB,SAEpD,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,GAAG,cAAc,GAAG,SAMrE,CAAA;AAED,eAAO,MAAM,SAAS,6BASrB,CAAA;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,QAExC;AAED,eAAO,MAAM,SAAS;IAGpB;;OAEG;;MAEI,YAQR,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,UAAU,MAAM,MAAM,6CAShE,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,UAAU,MAAM,MAAM,+BAG1D,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,UAAU,MAAM,MAAM,QAE/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;IArCpB;;OAEG;;MAEI,YAiCyB,CAAA;AAElC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAAqB,CAAA;AAE3C,eAAO,MAAM,eAAe,qBAA4B,CAAA;AAExD,eAAO,MAAM,gBAAgB,OAAQ,cAAc,SAMlD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,GAAG,SAGnD,CAAA;AAGD,eAAO,MAAM,OAAO,SAAU,MAAM,4DAQnC,CAAA;AAED,KAAK,SAAS,GAAG;IACf,UAAU,CAAC,EACP,OAAO,GACP;QACE,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACN,CAAA;AAED,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;AAE3C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAIvC"}
@@ -1,3 +1,3 @@
1
- import { ComponentContextI } from '../types';
1
+ import type { ComponentContextI } from '../types';
2
2
  export declare const ComponentContext: import("../helpers/createStyledContext").StyledContext<ComponentContextI>;
3
3
  //# sourceMappingURL=ComponentContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ComponentContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;AAEhE,eAAO,MAAM,gBAAgB,2EAU3B,CAAA"}
1
+ {"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ComponentContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;AAErE,eAAO,MAAM,gBAAgB,2EAU3B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DebugProp, SpaceDirection, SpaceValue, SpacerProps, SpacerStyleProps, StackNonStyleProps, StaticConfig, TamaguiComponent, TamaguiElement } from './types';
2
+ import type { DebugProp, SpaceDirection, SpaceValue, SpacerProps, SpacerStyleProps, StackNonStyleProps, StaticConfig, TamaguiComponent, TamaguiElement } from './types';
3
3
  export declare const mouseUps: Set<Function>;
4
4
  export declare function createComponent<ComponentPropTypes extends Record<string, any> = {}, Ref extends TamaguiElement = TamaguiElement, BaseProps = never, BaseStyles extends Object = never>(staticConfig: StaticConfig): TamaguiComponent<ComponentPropTypes, Ref, BaseProps, BaseStyles, {}>;
5
5
  export declare function Unspaced(props: {
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,EAEL,SAAS,EAMT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,YAAY,EAEZ,gBAAgB,EAEhB,cAAc,EAMf,MAAM,SAAS,CAAA;AAiBhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AA6D3C,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,wEA0rC3B;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,OAEjD;yBAFe,QAAQ;;;AAkBxB,eAAO,MAAM,MAAM,yFA0CjB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD"}
1
+ {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,KAAK,EAEV,SAAS,EAMT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,YAAY,EAEZ,gBAAgB,EAEhB,cAAc,EAMf,MAAM,SAAS,CAAA;AAiBhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AA6D3C,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,wEA0rC3B;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,OAEjD;yBAFe,QAAQ;;;AAkBxB,eAAO,MAAM,MAAM,yFA0CjB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD"}
@@ -1,3 +1,3 @@
1
- import { GenericFont } from './types';
1
+ import type { GenericFont } from './types';
2
2
  export declare const createFont: <A extends GenericFont>(font: A) => A;
3
3
  //# sourceMappingURL=createFont.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAkCvD,eAAO,MAAM,UAAU,uCAetB,CAAA"}
1
+ {"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAkC5D,eAAO,MAAM,UAAU,uCAetB,CAAA"}