@tamagui/core 1.0.1-beta.100 → 1.0.1-beta.103

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 (145) hide show
  1. package/dist/cjs/ThemeManager.js +9 -3
  2. package/dist/cjs/ThemeManager.js.map +2 -2
  3. package/dist/cjs/constants/platform.js +6 -6
  4. package/dist/cjs/constants/platform.js.map +2 -2
  5. package/dist/cjs/createComponent.js +9 -7
  6. package/dist/cjs/createComponent.js.map +2 -2
  7. package/dist/cjs/createTamagui.js +14 -2
  8. package/dist/cjs/createTamagui.js.map +2 -2
  9. package/dist/cjs/createTheme.js +5 -2
  10. package/dist/cjs/createTheme.js.map +2 -2
  11. package/dist/cjs/helpers/calc.js.map +2 -2
  12. package/dist/cjs/helpers/getSplitStyles.js +8 -4
  13. package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
  14. package/dist/cjs/helpers/getStylesAtomic.js.map +2 -2
  15. package/dist/cjs/helpers/matchMedia.js +6 -5
  16. package/dist/cjs/helpers/matchMedia.js.map +2 -2
  17. package/dist/cjs/helpers/startTransition.js +32 -0
  18. package/dist/cjs/helpers/startTransition.js.map +7 -0
  19. package/dist/cjs/helpers/wrapThemeManagerContext.js +5 -2
  20. package/dist/cjs/helpers/wrapThemeManagerContext.js.map +2 -2
  21. package/dist/cjs/hooks/getThemeUnwrapped.js +36 -0
  22. package/dist/cjs/hooks/getThemeUnwrapped.js.map +7 -0
  23. package/dist/cjs/hooks/useEvent.js +34 -0
  24. package/dist/cjs/hooks/useEvent.js.map +7 -0
  25. package/dist/cjs/hooks/useGet.js +39 -0
  26. package/dist/cjs/hooks/useGet.js.map +7 -0
  27. package/dist/cjs/hooks/useIsSSR.js +41 -0
  28. package/dist/cjs/hooks/useIsSSR.js.map +7 -0
  29. package/dist/cjs/hooks/useIsTouchDevice.js +8 -6
  30. package/dist/cjs/hooks/useIsTouchDevice.js.map +2 -2
  31. package/dist/cjs/hooks/useTheme.js +17 -21
  32. package/dist/cjs/hooks/useTheme.js.map +2 -2
  33. package/dist/cjs/index.js +3 -0
  34. package/dist/cjs/index.js.map +2 -2
  35. package/dist/cjs/startTransition.js +32 -0
  36. package/dist/cjs/startTransition.js.map +7 -0
  37. package/dist/cjs/types.js.map +1 -1
  38. package/dist/esm/ThemeManager.js +9 -3
  39. package/dist/esm/ThemeManager.js.map +2 -2
  40. package/dist/esm/constants/platform.js +5 -5
  41. package/dist/esm/constants/platform.js.map +2 -2
  42. package/dist/esm/createComponent.js +10 -8
  43. package/dist/esm/createComponent.js.map +2 -2
  44. package/dist/esm/createTamagui.js +14 -2
  45. package/dist/esm/createTamagui.js.map +2 -2
  46. package/dist/esm/createTheme.js +3 -1
  47. package/dist/esm/createTheme.js.map +2 -2
  48. package/dist/esm/helpers/calc.js.map +1 -1
  49. package/dist/esm/helpers/getSplitStyles.js +8 -4
  50. package/dist/esm/helpers/getSplitStyles.js.map +2 -2
  51. package/dist/esm/helpers/getStylesAtomic.js.map +2 -2
  52. package/dist/esm/helpers/matchMedia.js +6 -5
  53. package/dist/esm/helpers/matchMedia.js.map +2 -2
  54. package/dist/esm/helpers/startTransition.js +6 -0
  55. package/dist/esm/helpers/startTransition.js.map +7 -0
  56. package/dist/esm/helpers/wrapThemeManagerContext.js +5 -2
  57. package/dist/esm/helpers/wrapThemeManagerContext.js.map +2 -2
  58. package/dist/esm/hooks/getThemeUnwrapped.js +12 -0
  59. package/dist/esm/hooks/getThemeUnwrapped.js.map +7 -0
  60. package/dist/esm/hooks/useEvent.js +11 -0
  61. package/dist/esm/hooks/useEvent.js.map +7 -0
  62. package/dist/esm/hooks/useGet.js +16 -0
  63. package/dist/esm/hooks/useGet.js.map +7 -0
  64. package/dist/esm/hooks/useIsSSR.js +18 -0
  65. package/dist/esm/hooks/useIsSSR.js.map +7 -0
  66. package/dist/esm/hooks/useIsTouchDevice.js +9 -7
  67. package/dist/esm/hooks/useIsTouchDevice.js.map +2 -2
  68. package/dist/esm/hooks/useTheme.js +16 -20
  69. package/dist/esm/hooks/useTheme.js.map +2 -2
  70. package/dist/esm/index.js +3 -0
  71. package/dist/esm/index.js.map +2 -2
  72. package/dist/esm/startTransition.js +6 -0
  73. package/dist/esm/startTransition.js.map +7 -0
  74. package/package.json +8 -7
  75. package/types/Pressability.d.ts.map +1 -0
  76. package/types/Pressability.native.d.ts.map +1 -0
  77. package/types/ThemeManager.d.ts +5 -6
  78. package/types/ThemeManager.d.ts.map +1 -1
  79. package/types/constants/constants.d.ts.map +1 -0
  80. package/types/constants/platform.d.ts +1 -1
  81. package/types/constants/platform.d.ts.map +1 -0
  82. package/types/constants/rnw.native.d.ts.map +1 -0
  83. package/types/contexts/ButtonInsideButtonContext.d.ts.map +1 -0
  84. package/types/createComponent.d.ts.map +1 -1
  85. package/types/createShorthands.d.ts.map +1 -0
  86. package/types/createTamagui.d.ts.map +1 -1
  87. package/types/createTheme.d.ts +1 -0
  88. package/types/createTheme.d.ts.map +1 -0
  89. package/types/createVariable.d.ts.map +1 -0
  90. package/types/createVariables.d.ts.map +1 -0
  91. package/types/defaultComponentState.d.ts.map +1 -0
  92. package/types/helpers/RNComponents.d.ts.map +1 -0
  93. package/types/helpers/areEqualSets.d.ts.map +1 -0
  94. package/types/helpers/assignNativePropsToWeb.native.d.ts.map +1 -0
  95. package/types/helpers/createShallowUpdate.d.ts.map +1 -0
  96. package/types/helpers/createTamaguiProvider.d.ts +1 -0
  97. package/types/helpers/createTamaguiProvider.d.ts.map +1 -1
  98. package/types/helpers/fixNativeShadow.d.ts.map +1 -0
  99. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  100. package/types/helpers/getStylesAtomic.d.ts.map +1 -1
  101. package/types/helpers/getStylesAtomic.native.d.ts.map +1 -0
  102. package/types/helpers/insertStyleRule.d.ts.map +1 -0
  103. package/types/helpers/isObj.d.ts.map +1 -0
  104. package/types/helpers/matchMedia.d.ts +1 -1
  105. package/types/helpers/matchMedia.d.ts.map +1 -0
  106. package/types/helpers/matchMedia.native.d.ts.map +1 -0
  107. package/types/helpers/mergeProps.d.ts.map +1 -0
  108. package/types/helpers/mergeTransform.d.ts.map +1 -0
  109. package/types/helpers/nativeGestureHandler.native.d.ts.map +1 -0
  110. package/types/helpers/proxyThemeVariables.d.ts.map +1 -0
  111. package/types/helpers/pseudoDescriptors.d.ts.map +1 -0
  112. package/types/helpers/registerCSSVariable.d.ts.map +1 -0
  113. package/types/helpers/startTransition.d.ts +3 -0
  114. package/types/helpers/startTransition.d.ts.map +1 -0
  115. package/types/helpers/validate.d.ts.map +1 -0
  116. package/types/helpers/withStaticProperties.d.ts.map +1 -0
  117. package/types/helpers/wrapThemeManagerContext.d.ts +1 -1
  118. package/types/helpers/wrapThemeManagerContext.d.ts.map +1 -1
  119. package/types/hooks/getThemeUnwrapped.d.ts +3 -0
  120. package/types/hooks/getThemeUnwrapped.d.ts.map +1 -0
  121. package/types/hooks/useConstant.d.ts.map +1 -0
  122. package/types/hooks/useEvent.d.ts +4 -0
  123. package/types/hooks/useEvent.d.ts.map +1 -0
  124. package/types/hooks/useGet.d.ts +2 -0
  125. package/types/hooks/useGet.d.ts.map +1 -0
  126. package/types/hooks/useId.d.ts.map +1 -0
  127. package/types/hooks/useIsMounted.d.ts.map +1 -0
  128. package/types/hooks/useIsSSR.d.ts +2 -0
  129. package/types/hooks/useIsSSR.d.ts.map +1 -0
  130. package/types/hooks/useIsTouchDevice.d.ts.map +1 -0
  131. package/types/hooks/usePressable.d.ts.map +1 -0
  132. package/types/hooks/usePrevious.d.ts.map +1 -0
  133. package/types/hooks/useTheme.d.ts +6 -10
  134. package/types/hooks/useTheme.d.ts.map +1 -1
  135. package/types/hooks/useUnmountEffect.d.ts.map +1 -0
  136. package/types/index.d.ts +3 -0
  137. package/types/index.d.ts.map +1 -1
  138. package/types/startTransition.d.ts +3 -0
  139. package/types/startTransition.d.ts.map +1 -0
  140. package/types/types-rnw.d.ts.map +1 -0
  141. package/types/types.d.ts +1 -0
  142. package/types/types.d.ts.map +1 -1
  143. package/types/views/Slot.d.ts.map +1 -0
  144. package/types/views/ThemeInverse.d.ts +0 -1
  145. package/types/views/ThemeInverse.d.ts.map +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/useIsTouchDevice.tsx"],
4
- "sourcesContent": ["import { useState } from 'react'\n\nimport { isTouchable, useIsomorphicLayoutEffect } from '../constants/platform'\n\n// ssr friendly\n\nexport const useIsTouchDevice = () => {\n const [touchOnly, setTouchOnly] = useState(false)\n\n useIsomorphicLayoutEffect(() => {\n if (isTouchable) {\n setTouchOnly(true)\n }\n }, [])\n\n return touchOnly\n}\n"],
5
- "mappings": "AAAA;AAEA;AAIO,MAAM,mBAAmB,MAAM;AACpC,QAAM,CAAC,WAAW,gBAAgB,SAAS,KAAK;AAEhD,4BAA0B,MAAM;AAC9B,QAAI,aAAa;AACf,mBAAa,IAAI;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SAAO;AACT;",
4
+ "sourcesContent": ["import { useState } from 'react'\n\nimport { isSSR, isTouchable, isWeb, useIsomorphicLayoutEffect } from '../constants/platform'\n\n// ssr friendly\n\nexport const useIsTouchDevice = () => {\n const [touchOnly, setTouchOnly] = useState(isTouchable)\n\n if (isWeb && !isSSR) {\n // only ever false on web SSR (env), so run effect conditionally\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useIsomorphicLayoutEffect(() => {\n if (isTouchable) {\n setTouchOnly(true)\n }\n }, [])\n }\n\n return touchOnly\n}\n"],
5
+ "mappings": "AAAA;AAEA;AAIO,MAAM,mBAAmB,MAAM;AACpC,QAAM,CAAC,WAAW,gBAAgB,SAAS,WAAW;AAEtD,MAAI,SAAS,CAAC,OAAO;AAGnB,8BAA0B,MAAM;AAC9B,UAAI,aAAa;AACf,qBAAa,IAAI;AAAA,MACnB;AAAA,IACF,GAAG,CAAC,CAAC;AAAA,EACP;AAEA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -24,9 +24,10 @@ import { isWeb, useIsomorphicLayoutEffect } from "../constants/platform";
24
24
  import { areEqualSets } from "../helpers/areEqualSets";
25
25
  import { ThemeContext } from "../ThemeContext";
26
26
  import { ThemeManager, ThemeManagerContext, emptyManager } from "../ThemeManager";
27
+ import { GetThemeUnwrapped } from "./getThemeUnwrapped";
27
28
  import { useConstant } from "./useConstant";
28
29
  const useTheme = (themeName, componentName, props, forceUpdate) => {
29
- const { name, theme, themes, themeManager, className, didChangeTheme } = useChangeThemeEffect(themeName, componentName, props, forceUpdate);
30
+ const { name, theme, themes, themeManager, className } = useChangeThemeEffect(themeName, componentName, props, forceUpdate);
30
31
  if (process.env.NODE_ENV === "development") {
31
32
  if ((props == null ? void 0 : props.debug) === "verbose") {
32
33
  console.log(" \xBB useTheme", { themeName, componentName, name, className });
@@ -66,19 +67,11 @@ const useTheme = (themeName, componentName, props, forceUpdate) => {
66
67
  return Reflect.has(theme, key);
67
68
  },
68
69
  get(_, key) {
69
- if (!name || key === "__proto__" || typeof key === "symbol") {
70
- if (key === GetThemeManager) {
71
- if (process.env.NODE_ENV === "development" && (props == null ? void 0 : props.debug) && typeof window !== "undefined") {
72
- console.log(">>", { themeName, didChangeTheme, name, componentName }, themeManager);
73
- }
74
- if (!didChangeTheme)
75
- return null;
76
- return themeManager;
77
- }
78
- return Reflect.get(_, key);
70
+ if (key === GetThemeUnwrapped) {
71
+ return theme;
79
72
  }
80
- if (typeof key !== "string" || key === "$typeof") {
81
- return Reflect.get(_, key);
73
+ if (key === GetThemeManager) {
74
+ return themeManager;
82
75
  }
83
76
  if (key === "name") {
84
77
  return name;
@@ -86,6 +79,9 @@ const useTheme = (themeName, componentName, props, forceUpdate) => {
86
79
  if (key === "className") {
87
80
  return className;
88
81
  }
82
+ if (!name || key === "__proto__" || typeof key === "symbol" || key === "$typeof") {
83
+ return Reflect.get(_, key);
84
+ }
89
85
  if (!themeManager) {
90
86
  console.error("No themeManager");
91
87
  return;
@@ -107,11 +103,13 @@ const useTheme = (themeName, componentName, props, forceUpdate) => {
107
103
  }
108
104
  }
109
105
  });
110
- }, [name, theme, className, didChangeTheme]);
106
+ }, [name, theme, className]);
111
107
  };
112
- const GetThemeManager = Symbol("GetThemeManager");
113
- const getThemeManagerIfChanged = (theme) => {
114
- return theme == null ? void 0 : theme[GetThemeManager];
108
+ const GetThemeManager = Symbol();
109
+ const getThemeManager = (theme) => {
110
+ if (!theme)
111
+ return;
112
+ return theme[GetThemeManager];
115
113
  };
116
114
  const useThemeName = (opts) => {
117
115
  const parent = useContext(ThemeManagerContext);
@@ -162,18 +160,16 @@ const useChangeThemeEffect = (name, componentName, props, forceUpdateProp) => {
162
160
  });
163
161
  }, [themes, name, componentName, debug, next == null ? void 0 : next.name]);
164
162
  }
165
- const didChangeTheme = next && parentManager && next.name !== parentManager.fullName;
166
163
  return __spreadProps(__spreadValues(__spreadValues({}, parentManager && {
167
164
  name: parentManager.name,
168
165
  theme: parentManager.theme
169
166
  }), next), {
170
- didChangeTheme,
171
167
  themes,
172
168
  themeManager
173
169
  });
174
170
  };
175
171
  export {
176
- getThemeManagerIfChanged,
172
+ getThemeManager,
177
173
  useChangeThemeEffect,
178
174
  useDefaultThemeName,
179
175
  useTheme,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/useTheme.tsx"],
4
- "sourcesContent": ["import { useForceUpdate } from '@tamagui/use-force-update'\nimport React, { useContext, useLayoutEffect, useMemo, useRef, useState } from 'react'\n\nimport { getConfig } from '../conf'\nimport { isWeb, useIsomorphicLayoutEffect } from '../constants/platform'\nimport { areEqualSets } from '../helpers/areEqualSets'\nimport { ThemeContext } from '../ThemeContext'\nimport { GetNextThemeProps, ThemeManager, ThemeManagerContext, emptyManager } from '../ThemeManager'\nimport { ThemeName, ThemeObject } from '../types'\nimport { useConstant } from './useConstant'\n\nexport type ThemeProps = {\n className?: string\n disableThemeClass?: boolean\n name: Exclude<ThemeName, number> | null\n componentName?: string\n children?: any\n reset?: boolean\n debug?: boolean | 'verbose'\n}\n\ntype UseThemeState = {\n uuid: Object\n keys: Set<string>\n isRendering: boolean\n}\n\nexport const useTheme = (\n themeName?: string | null,\n componentName?: string,\n props?: ThemeProps,\n forceUpdate?: any\n): ThemeObject => {\n const { name, theme, themes, themeManager, className, didChangeTheme } = useChangeThemeEffect(\n themeName,\n componentName,\n props,\n forceUpdate\n )\n\n if (process.env.NODE_ENV === 'development') {\n if (props?.debug === 'verbose') {\n console.log(' \u00BB useTheme', { themeName, componentName, name, className })\n }\n }\n\n const state = useRef() as React.MutableRefObject<UseThemeState>\n if (!state.current) {\n state.current = {\n uuid: {},\n keys: new Set(),\n isRendering: true,\n }\n }\n state.current.isRendering = true\n\n // track usage\n useIsomorphicLayoutEffect(() => {\n const st = state.current\n st.isRendering = false\n const cur = themeManager?.keys.get(st.uuid)\n if (!cur || !areEqualSets(st.keys, cur)) {\n themeManager?.track(st.uuid, st.keys)\n }\n })\n\n return useMemo(() => {\n if (!theme) {\n if (process.env.NODE_ENV === 'development') {\n console.warn('No theme', { themeName, theme, componentName, className })\n }\n return themes[getConfig().defaultTheme || 'light' || Object.keys(themes)[0]]\n }\n return new Proxy(theme, {\n has(_, key) {\n if (typeof key === 'string') {\n if (key[0] === '$') {\n key = key.slice(1)\n }\n }\n return Reflect.has(theme, key)\n },\n get(_, key) {\n if (!name || key === '__proto__' || typeof key === 'symbol') {\n // TODO make this pattern better\n if (key === GetThemeManager) {\n if (\n process.env.NODE_ENV === 'development' &&\n props?.debug &&\n typeof window !== 'undefined'\n ) {\n console.log('>>', { themeName, didChangeTheme, name, componentName }, themeManager)\n }\n if (!didChangeTheme) return null\n return themeManager\n }\n return Reflect.get(_, key)\n }\n if (typeof key !== 'string' || key === '$typeof') {\n return Reflect.get(_, key)\n }\n if (key === 'name') {\n return name\n }\n if (key === 'className') {\n return className\n }\n if (!themeManager) {\n console.error('No themeManager')\n return\n }\n // auto convert variables to plain\n if (key[0] === '$') {\n key = key.slice(1)\n }\n const val = themeManager.getValue(key)\n if (val) {\n if (state.current.isRendering) {\n state.current.keys.add(key)\n if (process.env.NODE_ENV === 'development') {\n if (props?.['debug'] === 'verbose') {\n console.log(' \u00BB tracking theme key', key)\n }\n }\n }\n return val\n }\n },\n })\n }, [name, theme, className, didChangeTheme])\n}\n\nconst GetThemeManager = Symbol('GetThemeManager')\n\nexport const getThemeManagerIfChanged = (theme: any) => {\n return theme?.[GetThemeManager]\n}\n\nexport const useThemeName = (opts?: { parent?: true }) => {\n const parent = useContext(ThemeManagerContext)\n const [name, setName] = useState(parent?.name || '')\n\n useIsomorphicLayoutEffect(() => {\n if (!parent) return\n return parent.onChangeTheme((next, manager) => {\n const name = opts?.parent ? manager.parentName || next : next\n if (!name) return\n setName(name)\n })\n }, [parent])\n\n return name\n}\n\nexport const useDefaultThemeName = () => {\n return useContext(ThemeContext)?.defaultTheme\n}\n\nexport const useChangeThemeEffect = (\n name?: string | null,\n componentName?: string,\n props?: ThemeProps,\n forceUpdateProp?: any\n) => {\n const debug = props && props['debug']\n const parentManager = useContext(ThemeManagerContext) || emptyManager\n const { themes } = useContext(ThemeContext)!\n const reset = props?.reset || false\n const getThemeProps: GetNextThemeProps = { name, componentName, themes, reset }\n const next = parentManager.getNextTheme(getThemeProps, debug)\n const forceUpdate = forceUpdateProp || useForceUpdate()\n const themeManager = useConstant<ThemeManager | null>(() => {\n if (!next) return null\n return new ThemeManager(next.name, next.theme, parentManager, reset)\n })\n\n if (!isWeb || typeof document !== 'undefined') {\n useLayoutEffect(() => {\n if (!themeManager) return\n if (next?.name) {\n themeManager.update(next)\n }\n return parentManager.onChangeTheme(() => {\n const next = parentManager.getNextTheme(getThemeProps, debug)\n if (!next) return\n if (themeManager.update(next)) {\n forceUpdate()\n }\n })\n }, [themes, name, componentName, debug, next?.name])\n }\n\n const didChangeTheme = next && parentManager && next.name !== parentManager.fullName\n\n return {\n ...(parentManager && {\n name: parentManager.name,\n theme: parentManager.theme,\n }),\n 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ACH,GAAG,CAAC,QAAQ,MAAM,eAAe,OAAO,6BAAM,IAAI,CAAC;AAAA,EACrD;AAEA,QAAM,iBAAiB,QAAQ,iBAAiB,KAAK,SAAS,cAAc;AAE5E,SAAO,gDACD,iBAAiB;AAAA,IACnB,MAAM,cAAc;AAAA,IACpB,OAAO,cAAc;AAAA,EACvB,IACG,OALE;AAAA,IAML;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import { useForceUpdate } from '@tamagui/use-force-update'\nimport React, { useContext, useLayoutEffect, useMemo, useRef, useState } from 'react'\n\nimport { getConfig } from '../conf'\nimport { isWeb, useIsomorphicLayoutEffect } from '../constants/platform'\nimport { areEqualSets } from '../helpers/areEqualSets'\nimport { ThemeContext } from '../ThemeContext'\nimport { GetNextThemeProps, ThemeManager, ThemeManagerContext, emptyManager } from '../ThemeManager'\nimport { ThemeName, ThemeObject } from '../types'\nimport { GetThemeUnwrapped } from './getThemeUnwrapped'\nimport { useConstant } from './useConstant'\n\nexport type ThemeProps = {\n className?: string\n disableThemeClass?: boolean\n name: Exclude<ThemeName, number> | null\n componentName?: string\n children?: any\n reset?: boolean\n debug?: boolean | 'verbose'\n}\n\ntype UseThemeState = {\n uuid: Object\n keys: Set<string>\n isRendering: boolean\n}\n\nexport const useTheme = (\n themeName?: string | null,\n componentName?: string,\n props?: ThemeProps,\n forceUpdate?: any\n): ThemeObject => {\n const { name, theme, themes, themeManager, className } = useChangeThemeEffect(\n themeName,\n componentName,\n props,\n forceUpdate\n )\n\n if (process.env.NODE_ENV === 'development') {\n if (props?.debug === 'verbose') {\n console.log(' \u00BB useTheme', { themeName, componentName, name, className })\n }\n }\n\n const state = useRef() as React.MutableRefObject<UseThemeState>\n if (!state.current) {\n state.current = {\n uuid: {},\n keys: new Set(),\n isRendering: true,\n }\n }\n state.current.isRendering = true\n\n // track usage\n useIsomorphicLayoutEffect(() => {\n const st = state.current\n st.isRendering = false\n const cur = themeManager?.keys.get(st.uuid)\n if (!cur || !areEqualSets(st.keys, cur)) {\n themeManager?.track(st.uuid, st.keys)\n }\n })\n\n return useMemo(() => {\n if (!theme) {\n if (process.env.NODE_ENV === 'development') {\n console.warn('No theme', { themeName, theme, componentName, className })\n }\n return themes[getConfig().defaultTheme || 'light' || Object.keys(themes)[0]]\n }\n return new Proxy(theme, {\n has(_, key) {\n if (typeof key === 'string') {\n if (key[0] === '$') {\n key = key.slice(1)\n }\n }\n return Reflect.has(theme, key)\n },\n get(_, key) {\n if (key === GetThemeUnwrapped) {\n return theme\n }\n if (key === GetThemeManager) {\n return themeManager\n }\n if (key === 'name') {\n return name\n }\n if (key === 'className') {\n return className\n }\n if (!name || key === '__proto__' || typeof key === 'symbol' || key === '$typeof') {\n return Reflect.get(_, key)\n }\n if (!themeManager) {\n console.error('No themeManager')\n return\n }\n // auto convert variables to plain\n if (key[0] === '$') {\n key = key.slice(1)\n }\n const val = themeManager.getValue(key)\n if (val) {\n if (state.current.isRendering) {\n state.current.keys.add(key)\n if (process.env.NODE_ENV === 'development') {\n if (props?.['debug'] === 'verbose') {\n console.log(' \u00BB tracking theme key', key)\n }\n }\n }\n return val\n }\n },\n })\n }, [name, theme, className])\n}\n\nconst GetThemeManager = Symbol()\n\nexport const getThemeManager = (theme: any): ThemeManager | undefined => {\n if (!theme) return\n return theme[GetThemeManager]\n}\n\nexport const useThemeName = (opts?: { parent?: true }) => {\n const parent = useContext(ThemeManagerContext)\n const [name, setName] = useState(parent?.name || '')\n\n useIsomorphicLayoutEffect(() => {\n if (!parent) return\n return parent.onChangeTheme((next, manager) => {\n const name = opts?.parent ? manager.parentName || next : next\n if (!name) return\n setName(name)\n })\n }, [parent])\n\n return name\n}\n\nexport const useDefaultThemeName = () => {\n return useContext(ThemeContext)?.defaultTheme\n}\n\nexport const useChangeThemeEffect = (\n name?: string | null,\n componentName?: string,\n props?: ThemeProps,\n forceUpdateProp?: any\n) => {\n const debug = props && props['debug']\n const parentManager = useContext(ThemeManagerContext) || emptyManager\n const { themes } = useContext(ThemeContext)!\n const reset = props?.reset || false\n const getThemeProps: GetNextThemeProps = { name, componentName, themes, reset }\n const next = parentManager.getNextTheme(getThemeProps, debug)\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const forceUpdate = forceUpdateProp || useForceUpdate()\n const themeManager = useConstant<ThemeManager | null>(() => {\n if (!next) return null\n return new ThemeManager(next.name, next.theme, parentManager, reset)\n })\n\n if (!isWeb || typeof document !== 'undefined') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useLayoutEffect(() => {\n if (!themeManager) return\n if (next?.name) {\n themeManager.update(next)\n }\n return parentManager.onChangeTheme(() => {\n const next = parentManager.getNextTheme(getThemeProps, debug)\n if (!next) return\n if (themeManager.update(next)) {\n forceUpdate()\n }\n })\n }, [themes, name, componentName, debug, next?.name])\n }\n\n return {\n ...(parentManager && {\n name: parentManager.name,\n theme: parentManager.theme,\n }),\n ...next,\n themes,\n themeManager,\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAkBO,MAAM,WAAW,CACtB,WACA,eACA,OACA,gBACgB;AAChB,QAAM,EAAE,MAAM,OAAO,QAAQ,cAAc,cAAc,qBACvD,WACA,eACA,OACA,WACF;AAEA,MAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,QAAI,gCAAO,WAAU,WAAW;AAC9B,cAAQ,IAAI,mBAAgB,EAAE,WAAW,eAAe,MAAM,UAAU,CAAC;AAAA,IAC3E;AAAA,EACF;AAEA,QAAM,QAAQ,OAAO;AACrB,MAAI,CAAC,MAAM,SAAS;AAClB,UAAM,UAAU;AAAA,MACd,MAAM,CAAC;AAAA,MACP,MAAM,oBAAI,IAAI;AAAA,MACd,aAAa;AAAA,IACf;AAAA,EACF;AACA,QAAM,QAAQ,cAAc;AAG5B,4BAA0B,MAAM;AAC9B,UAAM,KAAK,MAAM;AACjB,OAAG,cAAc;AACjB,UAAM,MAAM,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EACrE,CAAC;AAED,MAAI,CAAC,SAAS,OAAO,aAAa,aAAa;AAE7C,oBAAgB,MAAM;AACpB,UAAI,CAAC;AAAc;AACnB,UAAI,6BAAM,MAAM;AACd,qBAAa,OAAO,IAAI;AAAA,MAC1B;AACA,aAAO,cAAc,cAAc,MAAM;AACvC,cAAM,QAAO,cAAc,aAAa,eAAe,KAAK;AAC5D,YAAI,CAAC;AAAM;AACX,YAAI,aAAa,OAAO,KAAI,GAAG;AAC7B,sBAAY;AAAA,QACd;AAAA,MACF,CAAC;AAAA,IACH,GAAG,CAAC,QAAQ,MAAM,eAAe,OAAO,6BAAM,IAAI,CAAC;AAAA,EACrD;AAEA,SAAO,gDACD,iBAAiB;AAAA,IACnB,MAAM,cAAc;AAAA,IACpB,OAAO,cAAc;AAAA,EACvB,IACG,OALE;AAAA,IAML;AAAA,IACA;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -30,6 +30,7 @@ export * from "./helpers/isObj";
30
30
  export * from "./helpers/isTamaguiElement";
31
31
  export * from "./helpers/isTamaguiComponent";
32
32
  export * from "./helpers/matchMedia";
33
+ export * from "./helpers/startTransition";
33
34
  export * from "./helpers/themeable";
34
35
  export * from "./helpers/withStaticProperties";
35
36
  export * from "./contexts/ButtonInsideButtonContext";
@@ -40,6 +41,7 @@ export * from "./hooks/useIsTouchDevice";
40
41
  export * from "./hooks/useMedia";
41
42
  export * from "./hooks/usePressable";
42
43
  export * from "./hooks/useTheme";
44
+ export * from "./hooks/useIsSSR";
43
45
  export * from "./hooks/useUnmountEffect";
44
46
  export * from "./views/Slot";
45
47
  export * from "./views/Stack";
@@ -50,6 +52,7 @@ export * from "./views/ThemeInverse";
50
52
  export * from "./views/ThemeProvider";
51
53
  export * from "./views/ThemeReset";
52
54
  export * from "@tamagui/use-force-update";
55
+ export * from "@tamagui/use-event";
53
56
  export * from "@tamagui/helpers";
54
57
  export {
55
58
  TextAncestorContext,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport type { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport { createDOMProps } from '@tamagui/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport * from './helpers/expandStyles'\nexport * from './helpers/getFont'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport { TextAncestorProvider, TextAncestorContext } from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/helpers'\n"],
5
- "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;",
4
+ "sourcesContent": ["export * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport type { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport { createDOMProps } from '@tamagui/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport * from './helpers/expandStyles'\nexport * from './helpers/getFont'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/startTransition'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useIsSSR'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport { TextAncestorProvider, TextAncestorContext } from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/use-event'\nexport * from '@tamagui/helpers'\n"],
5
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ const startTransition = React.startTransition || ((cb) => cb());
3
+ export {
4
+ startTransition
5
+ };
6
+ //# sourceMappingURL=startTransition.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/startTransition.ts"],
4
+ "sourcesContent": ["import React from 'react'\n\n// backwards compat\nexport const startTransition = React.startTransition || ((cb) => cb())\n"],
5
+ "mappings": "AAAA;AAGO,MAAM,kBAAkB,MAAM,mBAAoB,EAAC,OAAO,GAAG;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "1.0.1-beta.100",
3
+ "version": "1.0.1-beta.103",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -21,12 +21,13 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@expo/match-media": "^0.3.0",
24
- "@tamagui/compose-refs": "^1.0.1-beta.100",
25
- "@tamagui/helpers": "^1.0.1-beta.100",
24
+ "@tamagui/compose-refs": "^1.0.1-beta.103",
25
+ "@tamagui/helpers": "^1.0.1-beta.103",
26
26
  "@tamagui/ow": "^0.28.1",
27
- "@tamagui/rnw": "^1.0.1-beta.100",
28
- "@tamagui/use-debounce": "^1.0.1-beta.100",
29
- "@tamagui/use-force-update": "^1.0.1-beta.100",
27
+ "@tamagui/rnw": "^1.0.1-beta.103",
28
+ "@tamagui/use-debounce": "^1.0.1-beta.103",
29
+ "@tamagui/use-event": "^1.0.1-beta.103",
30
+ "@tamagui/use-force-update": "^1.0.1-beta.103",
30
31
  "expo-screen-orientation": "^4.2.0",
31
32
  "hyphenate-style-name": "^1.0.4",
32
33
  "normalize-css-color": "^1.0.2",
@@ -37,7 +38,7 @@
37
38
  "react-native-web": "*"
38
39
  },
39
40
  "devDependencies": {
40
- "@tamagui/build": "^1.0.1-beta.100",
41
+ "@tamagui/build": "^1.0.1-beta.103",
41
42
  "@types/react": "^18.0.14",
42
43
  "csstype": "^3.0.10",
43
44
  "esbuild": "^0.14.48",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pressability.d.ts","sourceRoot":"","sources":["../src/Pressability.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAY,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pressability.native.d.ts","sourceRoot":"","sources":["../src/Pressability.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAsE,CAAA"}
@@ -23,22 +23,21 @@ export declare class ThemeManager {
23
23
  themeListeners: Set<ThemeListener>;
24
24
  className: string | null;
25
25
  constructor(name?: string, theme?: ThemeObject | null, parentManager?: ThemeManager | null, reset?: boolean);
26
+ get didChangeTheme(): boolean | null;
26
27
  get parentName(): string | null;
27
28
  get fullName(): string;
28
29
  getValue(key: string): import("./types").VariableVal | undefined;
29
30
  update({ name, theme, className }?: SetActiveThemeProps): boolean;
30
31
  getNextTheme(props?: GetNextThemeProps, debug?: any): {
31
- name: string;
32
- theme: Partial<import("./types").TamaguiBaseTheme> & {
33
- [key: string]: import("./types").VariableVal;
34
- };
35
- className: string;
36
- } | {
37
32
  name: string;
38
33
  theme: (Partial<import("./types").TamaguiBaseTheme> & {
39
34
  [key: string]: import("./types").VariableVal;
40
35
  }) | null;
41
36
  className?: undefined;
37
+ } | {
38
+ name: string;
39
+ theme: any;
40
+ className: string;
42
41
  };
43
42
  getClassName(name: string): string;
44
43
  track(uuid: any, keys: Set<string>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeManager.d.ts","sourceRoot":"","sources":["../src/ThemeManager.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAE7C,aAAK,aAAa,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,YAAY,KAAK,IAAI,CAAA;AAE9E,oBAAY,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,qBAAa,YAAY;IAOd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,WAAW,GAAG,IAAI;IACzB,aAAa,EAAE,YAAY,GAAG,IAAI;IAClC,KAAK,EAAE,OAAO;IATvB,IAAI,wBAA8B;IAClC,SAAS,qBAA2B;IACpC,cAAc,qBAA2B;IACzC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;gBAGtB,IAAI,GAAE,MAAW,EACjB,KAAK,GAAE,WAAW,GA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M,kBAAkB;;;;;;CAS9B,CAAA"}
@@ -2,11 +2,11 @@ import { useEffect } from 'react';
2
2
  export declare const isAndroid: boolean;
3
3
  export declare const isIOS: boolean;
4
4
  export declare const isWeb: boolean;
5
+ export declare const isWindowDefined: boolean;
5
6
  export declare const isSSR: boolean;
6
7
  export declare const isClient: boolean;
7
8
  export declare const useIsomorphicLayoutEffect: typeof useEffect;
8
9
  export declare const isChrome: boolean;
9
10
  export declare const isWebTouchable: boolean;
10
11
  export declare const isTouchable: boolean;
11
- export declare const isWebIOS: boolean;
12
12
  //# sourceMappingURL=platform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/constants/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAA;AAGlD,eAAO,MAAM,SAAS,SAA6B,CAAA;AACnD,eAAO,MAAM,KAAK,SAAyB,CAAA;AAC3C,eAAO,MAAM,KAAK,SAAuC,CAAA;AACzD,eAAO,MAAM,eAAe,SAAgC,CAAA;AAC5D,eAAO,MAAM,KAAK,SAA4B,CAAA;AAC9C,eAAO,MAAM,QAAQ,SAA2B,CAAA;AAChD,eAAO,MAAM,yBAAyB,kBAAsC,CAAA;AAC5E,eAAO,MAAM,QAAQ,SAA+E,CAAA;AACpG,eAAO,MAAM,cAAc,SAAuC,CAAA;AAClE,eAAO,MAAM,WAAW,SAA2B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rnw.native.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,KAAY,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonInsideButtonContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ButtonInsideButtonContext.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,yBAAyB,kCAAuB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.d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AQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC5B,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,SAAS,EACT,SAAS,GACV,EAAE,mBAAmB,mBA6ErB;AAsBD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAMjE;AASD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAE1E;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAatC,CAAA"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"createTamagui.d.ts","sourceRoot":"","sources":["../src/createTamagui.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAA8B,MAAM,kBAAkB,CAAA;AAYvE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,SAAS,EAEV,MAAM,SAAS,CAAA;AAEhB,oBAAY,kBAAkB,GAE5B,OAAO,CA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AAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAC1E,GACG,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GACvC,OAAO,CAAA;AAEX,wBAAgB,aAAa,CAAC,IAAI,SAAS,kBAAkB,EAC3D,MAAM,EAAE,IAAI,GACX,kBAAkB,CAAC,IAAI,CAAC,CA+Q1B;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAA"}
@@ -2,6 +2,7 @@ import { Variable } from './createVariable';
2
2
  declare type GenericTheme = {
3
3
  [key: string]: string | Variable;
4
4
  };
5
+ export declare const themeToVariableToValueMap: WeakMap<any, Record<string, string>>;
5
6
  export declare const createTheme: <Theme extends GenericTheme>(theme: Theme) => { [K in keyof Theme]: string | Variable<any> | Theme[K]; };
6
7
  export {};
7
8
  //# 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,yBAAyB,sCAA6C,CAAA;AAEnF,eAAO,MAAM,WAAW,0GAMvB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createVariable.d.ts","sourceRoot":"","sources":["../src/createVariable.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,mBAAmB,CAAA;AAE3C,aAAK,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG,IAAI;IACjD,GAAG,EAAE,CAAC,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CA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AG,CAAC,SAAS,eAAe,GAC9B,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACV,CAAA;AAED,eAAO,MAAM,eAAe,2FA+B3B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultComponentState.d.ts","sourceRoot":"","sources":["../src/defaultComponentState.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNComponents.d.ts","sourceRoot":"","sources":["../../src/helpers/RNComponents.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,sBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areEqualSets.d.ts","sourceRoot":"","sources":["../../src/helpers/areEqualSets.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,MAAO,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,YAQ1D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignNativePropsToWeb.native.d.ts","sourceRoot":"","sources":["../../src/helpers/assignNativePropsToWeb.native.tsx"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,QAAI"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createShallowUpdate.d.ts","sourceRoot":"","sources":["../../src/helpers/createShallowUpdate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAE1C,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,EACtD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,UAG1C,QAAQ,KAAK,CAAC,UAYxB"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TamaguiInternalConfig, TamaguiProviderProps } from '../types';
2
3
  export declare function createTamaguiProvider(config: TamaguiInternalConfig): ({ disableInjectCSS, children, ...themePropsProvider }: TamaguiProviderProps) => JSX.Element;
3
4
  //# sourceMappingURL=createTamaguiProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTamaguiProvider.d.ts","sourceRoot":"","sources":["../../src/helpers/createTamaguiProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAItE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,2DAK9D,oBAAoB,iBA8BxB"}
1
+ {"version":3,"file":"createTamaguiProvider.d.ts","sourceRoot":"","sources":["../../src/helpers/createTamaguiProvider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAItE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,2DAK9D,oBAAoB,iBA8BxB"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,OAAO,EACL,SAAS,EACT,SAAS,EAGT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACZ,MAAM,UAAU,CAAA;AAcjB,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,oBAAY,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AACrD,oBAAY,gBAAgB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AA2BhE,aAAK,aAAa,GAAG,CACnB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,MAAM,CAAA;AAClD,oBAAY,KAAK,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAAA"}
@@ -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":"insertStyleRule.d.ts","sourceRoot":"","sources":["../../src/helpers/insertStyleRule.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,IAAK,CAAA;AAEpC,eAAO,MAAM,eAAe,UAAqB,CAAA;AACjD,eAAO,MAAM,gBAAgB,iBAAyC,CAAA;AACtE,eAAO,MAAM,gBAAgB,UAA2B,CAAA;AAyCxD,wBAAgB,cAAc,SA8B7B;AA4BD,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAOnE;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAK/D"}
@@ -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"}
@@ -1,2 +1,2 @@
1
- export declare const matchMedia: any;
1
+ export declare const matchMedia: ((query: string) => MediaQueryList) & typeof globalThis.matchMedia;
2
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,oEAA6E,CAAA"}
@@ -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 @@
1
+ {"version":3,"file":"mergeProps.d.ts","sourceRoot":"","sources":["../../src/helpers/mergeProps.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,MAAO,MAAM,KAAK,MAAM,4FAuB9C,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeTransform.d.ts","sourceRoot":"","sources":["../../src/helpers/mergeTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,cAAc,QAAS,SAAS,OAAO,MAAM,OAAO,GAAG,8BAGnE,CAAA;AAKD,eAAO,MAAM,sBAAsB;;;CAGlC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeGestureHandler.native.d.ts","sourceRoot":"","sources":["../../src/helpers/nativeGestureHandler.native.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyThemeVariables.d.ts","sourceRoot":"","sources":["../../src/helpers/proxyThemeVariables.tsx"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAS/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pseudoDescriptors.d.ts","sourceRoot":"","sources":["../../src/helpers/pseudoDescriptors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAapB,CAAA;AAEV,oBAAY,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerCSSVariable.d.ts","sourceRoot":"","sources":["../../src/helpers/registerCSSVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,mBAAmB,CAAA;AAE/D,eAAO,MAAM,mBAAmB,MAAO,QAAQ,WAO9C,CAAA;AAED,eAAO,MAAM,qBAAqB,4BAA8B,CAAA;AAChE,eAAO,MAAM,UAAU,aAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const startTransition: typeof React.startTransition;
3
+ //# sourceMappingURL=startTransition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startTransition.d.ts","sourceRoot":"","sources":["../../src/helpers/startTransition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,eAAe,8BAA0C,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/helpers/validate.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,SAAU,GAAG,SAUvC,CAAA;AAED,eAAO,MAAM,cAAc,WAAY,GAAG,SAMzC,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,GAAG,SAQrC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../../src/helpers/withStaticProperties.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gEAMhC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { ThemeManager } from '../ThemeManager';
2
- export declare function wrapThemeManagerContext(children: any, themeManager?: ThemeManager | null): any;
2
+ export declare function wrapThemeManagerContext(children: any, themeManager?: ThemeManager | null, shouldSetChildrenThemeToParent?: boolean): any;
3
3
  //# sourceMappingURL=wrapThemeManagerContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapThemeManagerContext.d.ts","sourceRoot":"","sources":["../../src/helpers/wrapThemeManagerContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,iBAAiB,CAAA;AAEnE,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,OAMxF"}
1
+ {"version":3,"file":"wrapThemeManagerContext.d.ts","sourceRoot":"","sources":["../../src/helpers/wrapThemeManagerContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,iBAAiB,CAAA;AAGnE,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,GAAG,EACb,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,EAClC,8BAA8B,CAAC,EAAE,OAAO,OAazC"}
@@ -0,0 +1,3 @@
1
+ export declare const getThemeUnwrapped: (theme: any) => any;
2
+ export declare const GetThemeUnwrapped: unique symbol;
3
+ //# sourceMappingURL=getThemeUnwrapped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThemeUnwrapped.d.ts","sourceRoot":"","sources":["../../src/hooks/getThemeUnwrapped.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAAW,GAAG,QAI3C,CAAA;AAED,eAAO,MAAM,iBAAiB,eAAW,CAAA"}
@@ -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,4 @@
1
+ declare type AnyFunction = (...args: any[]) => any;
2
+ export declare function useEvent<T extends AnyFunction>(callback?: T): T;
3
+ export {};
4
+ //# sourceMappingURL=useEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useEvent.tsx"],"names":[],"mappings":"AAEA,aAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAE/D"}
@@ -0,0 +1,2 @@
1
+ export declare function useGet<A>(currentValue: A, initialValue?: any, forwardToFunction?: boolean): () => A;
2
+ //# sourceMappingURL=useGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGet.d.ts","sourceRoot":"","sources":["../../src/hooks/useGet.tsx"],"names":[],"mappings":"AAMA,wBAAgB,MAAM,CAAC,CAAC,EACtB,YAAY,EAAE,CAAC,EACf,YAAY,CAAC,EAAE,GAAG,EAClB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,MAAM,CAAC,CAUT"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../src/hooks/useId.tsx"],"names":[],"mappings":"AA+EA,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;AAC3C,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;AAC3C,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAC7D,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;AAC1E,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;AAC1E,iBAAS,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAC5F,iBAAS,KAAK,IAAI,MAAM,GAAG,SAAS,CAAA;AA0CpC,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMounted.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMounted.ts"],"names":[],"mappings":";AAIA,wBAAgB,YAAY,8CAY3B"}
@@ -0,0 +1,2 @@
1
+ export declare const useIsSSR: () => boolean;
2
+ //# sourceMappingURL=useIsSSR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsSSR.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsSSR.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ,eAYpB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsTouchDevice.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsTouchDevice.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,eAc5B,CAAA"}
@@ -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 @@
1
+ {"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrevious.tsx"],"names":[],"mappings":""}