@tamagui/web 1.84.1 → 1.84.2

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 (57) hide show
  1. package/dist/cjs/helpers/ThemeManager.js +2 -2
  2. package/dist/cjs/helpers/ThemeManager.js.map +1 -1
  3. package/dist/cjs/helpers/ThemeManager.native.js +2 -2
  4. package/dist/cjs/helpers/ThemeManager.native.js.map +1 -1
  5. package/dist/cjs/helpers/ThemeManagerContext.js +3 -3
  6. package/dist/cjs/helpers/ThemeManagerContext.js.map +1 -1
  7. package/dist/cjs/helpers/ThemeManagerContext.native.js +3 -3
  8. package/dist/cjs/helpers/ThemeManagerContext.native.js.map +1 -1
  9. package/dist/cjs/hooks/useTheme.js +17 -8
  10. package/dist/cjs/hooks/useTheme.js.map +1 -1
  11. package/dist/cjs/hooks/useTheme.native.js +17 -8
  12. package/dist/cjs/hooks/useTheme.native.js.map +1 -1
  13. package/dist/cjs/hooks/useThemeName.js +2 -2
  14. package/dist/cjs/hooks/useThemeName.js.map +1 -1
  15. package/dist/cjs/hooks/useThemeName.native.js +2 -2
  16. package/dist/cjs/hooks/useThemeName.native.js.map +1 -1
  17. package/dist/cjs/views/Theme.js +2 -2
  18. package/dist/cjs/views/Theme.js.map +1 -1
  19. package/dist/cjs/views/Theme.native.js +2 -2
  20. package/dist/cjs/views/Theme.native.js.map +1 -1
  21. package/dist/cjs/views/ThemeDebug.js.map +1 -1
  22. package/dist/esm/helpers/ThemeManager.js +2 -2
  23. package/dist/esm/helpers/ThemeManager.js.map +1 -1
  24. package/dist/esm/helpers/ThemeManager.native.js +2 -2
  25. package/dist/esm/helpers/ThemeManager.native.js.map +1 -1
  26. package/dist/esm/helpers/ThemeManagerContext.js +2 -2
  27. package/dist/esm/helpers/ThemeManagerContext.js.map +1 -1
  28. package/dist/esm/helpers/ThemeManagerContext.native.js +2 -2
  29. package/dist/esm/helpers/ThemeManagerContext.native.js.map +1 -1
  30. package/dist/esm/hooks/useTheme.js +17 -9
  31. package/dist/esm/hooks/useTheme.js.map +1 -1
  32. package/dist/esm/hooks/useTheme.native.js +17 -9
  33. package/dist/esm/hooks/useTheme.native.js.map +1 -1
  34. package/dist/esm/hooks/useThemeName.js +3 -2
  35. package/dist/esm/hooks/useThemeName.js.map +1 -1
  36. package/dist/esm/hooks/useThemeName.native.js +3 -2
  37. package/dist/esm/hooks/useThemeName.native.js.map +1 -1
  38. package/dist/esm/views/Theme.js +3 -3
  39. package/dist/esm/views/Theme.js.map +1 -1
  40. package/dist/esm/views/Theme.native.js +3 -3
  41. package/dist/esm/views/Theme.native.js.map +1 -1
  42. package/dist/esm/views/ThemeDebug.js.map +1 -1
  43. package/package.json +13 -11
  44. package/src/helpers/ThemeManager.tsx +6 -4
  45. package/src/helpers/ThemeManagerContext.tsx +1 -2
  46. package/src/hooks/useTheme.tsx +49 -31
  47. package/src/hooks/useThemeName.tsx +3 -2
  48. package/src/views/Theme.tsx +18 -16
  49. package/src/views/ThemeDebug.tsx +0 -1
  50. package/types/helpers/ThemeManager.d.ts.map +1 -1
  51. package/types/helpers/ThemeManagerContext.d.ts +1 -2
  52. package/types/helpers/ThemeManagerContext.d.ts.map +1 -1
  53. package/types/hooks/useTheme.d.ts +1 -0
  54. package/types/hooks/useTheme.d.ts.map +1 -1
  55. package/types/hooks/useThemeName.d.ts.map +1 -1
  56. package/types/views/Theme.d.ts.map +1 -1
  57. package/types/views/ThemeDebug.d.ts.map +1 -1
@@ -9,7 +9,7 @@ import {
9
9
  ThemeManagerState,
10
10
  getHasThemeUpdatingProps,
11
11
  } from '../helpers/ThemeManager'
12
- import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
12
+ import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
13
13
  import type {
14
14
  DebugProp,
15
15
  ThemeParsed,
@@ -57,12 +57,12 @@ export type ThemeGettable<Val> = Val & {
57
57
  ) =>
58
58
  | string
59
59
  | (Val extends Variable<infer X>
60
- ? X extends VariableValGeneric
61
- ? any
62
- : Exclude<X, Variable>
63
- : Val extends VariableVal
64
- ? string | number
65
- : unknown)
60
+ ? X extends VariableValGeneric
61
+ ? any
62
+ : Exclude<X, Variable>
63
+ : Val extends VariableVal
64
+ ? string | number
65
+ : unknown)
66
66
  }
67
67
 
68
68
  export type UseThemeResult = {
@@ -86,28 +86,28 @@ export const useThemeWithState = (
86
86
  keys.current,
87
87
  !isServer
88
88
  ? () => {
89
- const next =
90
- props.shouldUpdate?.() ?? (keys.current.length > 0 ? true : undefined)
91
-
92
- if (
93
- process.env.NODE_ENV === 'development' &&
94
- props.debug &&
95
- props.debug !== 'profile'
96
- ) {
97
- console.info(` 🎨 useTheme() shouldUpdate?`, next, {
98
- shouldUpdateProp: props.shouldUpdate?.(),
99
- keys: [...keys.current],
100
- })
101
- }
102
- return next
89
+ const next =
90
+ props.shouldUpdate?.() ?? (keys.current.length > 0 ? true : undefined)
91
+
92
+ if (
93
+ process.env.NODE_ENV === 'development' &&
94
+ props.debug &&
95
+ props.debug !== 'profile'
96
+ ) {
97
+ console.info(` 🎨 useTheme() shouldUpdate?`, next, {
98
+ shouldUpdateProp: props.shouldUpdate?.(),
99
+ keys: [...keys.current],
100
+ })
103
101
  }
102
+ return next
103
+ }
104
104
  : undefined
105
105
  )
106
106
 
107
107
  const { themeManager, state } = changedThemeState
108
108
 
109
- if (!state?.theme) {
110
- if (process.env.NODE_ENV === 'development') {
109
+ if (process.env.NODE_ENV === 'development') {
110
+ if (!state?.theme) {
111
111
  if (process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== '1') {
112
112
  console.warn(
113
113
  `[tamagui] No theme found, this could be due to an invalid theme name (given theme props ${JSON.stringify(
@@ -263,6 +263,21 @@ function someParentIsInversed(manager?: ThemeManager) {
263
263
 
264
264
  export const activeThemeManagers = new Set<ThemeManager>()
265
265
 
266
+ const _uidToManager = new WeakMap<Object, ThemeManager>()
267
+ const _idToUID: Record<number, Object> = {}
268
+ const getId = (id: number) => _idToUID[id]
269
+
270
+ export const getThemeManager = (id: number) => {
271
+ return _uidToManager.get(getId(id)!)
272
+ }
273
+
274
+ const registerThemeManager = (t: ThemeManager) => {
275
+ if (!_idToUID[t.id]) {
276
+ const id = _idToUID[t.id] = {}
277
+ _uidToManager.set(id, t)
278
+ }
279
+ }
280
+
266
281
  export const useChangeThemeEffect = (
267
282
  props: UseThemeWithStateProps,
268
283
  isRoot = false,
@@ -270,8 +285,8 @@ export const useChangeThemeEffect = (
270
285
  shouldUpdate?: () => boolean | undefined
271
286
  ): ChangedThemeResponse => {
272
287
  const { disable } = props
273
-
274
- const parentManager = useContext(ThemeManagerContext)
288
+ const parentManagerId = useContext(ThemeManagerIDContext)
289
+ const parentManager = getThemeManager(parentManagerId)
275
290
 
276
291
  if ((!isRoot && !parentManager) || disable) {
277
292
  return {
@@ -335,11 +350,8 @@ export const useChangeThemeEffect = (
335
350
  return
336
351
  }
337
352
 
338
- if (isNewTheme && themeManager) {
339
- activeThemeManagers.add(themeManager)
340
- }
341
-
342
353
  if (isNewTheme || getShouldUpdateTheme(themeManager)) {
354
+ activeThemeManagers.add(themeManager)
343
355
  setThemeState(createState)
344
356
  }
345
357
 
@@ -378,7 +390,9 @@ export const useChangeThemeEffect = (
378
390
  return () => {
379
391
  selfListenerDispose()
380
392
  disposeChangeListener?.()
381
- activeThemeManagers.delete(themeManager)
393
+ if (isNewTheme) {
394
+ activeThemeManagers.delete(themeManager)
395
+ }
382
396
  }
383
397
  }, [
384
398
  themeManager,
@@ -479,6 +493,10 @@ export const useChangeThemeEffect = (
479
493
 
480
494
  const isNewTheme = Boolean(themeManager !== parentManager || props.inverse)
481
495
 
496
+ if (isNewTheme) {
497
+ registerThemeManager(themeManager)
498
+ }
499
+
482
500
  // only inverse relies on this for ssr
483
501
  const mounted = !props.inverse ? true : isRoot || prev?.mounted
484
502
 
@@ -503,8 +521,8 @@ export const useChangeThemeEffect = (
503
521
  }
504
522
 
505
523
  const shouldReturnPrev =
506
- !force &&
507
524
  prev &&
525
+ !force &&
508
526
  // isEqualShallow uses the second arg as the keys so this should compare without state first...
509
527
  isEqualShallow(prev, response) &&
510
528
  // ... and then compare just the state, because we make a new state obj but is likely the same
@@ -1,11 +1,12 @@
1
1
  import { useIsomorphicLayoutEffect } from '@tamagui/constants'
2
2
  import { useContext, useState } from 'react'
3
3
 
4
- import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
4
+ import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
5
5
  import { ThemeName } from '../types'
6
+ import { getThemeManager } from './useTheme'
6
7
 
7
8
  export function useThemeName(opts?: { parent?: true }): ThemeName {
8
- const manager = useContext(ThemeManagerContext)
9
+ const manager = getThemeManager(useContext(ThemeManagerIDContext)!)
9
10
  const [name, setName] = useState(manager?.state.name || '')
10
11
 
11
12
  useIsomorphicLayoutEffect(() => {
@@ -2,7 +2,7 @@ import { isWeb } from '@tamagui/constants'
2
2
  import React, { Children, cloneElement, forwardRef, isValidElement, useRef } from 'react'
3
3
 
4
4
  import { variableToString } from '../createVariable'
5
- import { ThemeManagerContext } from '../helpers/ThemeManagerContext'
5
+ import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
6
6
  import { ChangedThemeResponse, useChangeThemeEffect } from '../hooks/useTheme'
7
7
  import type { ThemeProps } from '../types'
8
8
  import { ThemeDebug } from './ThemeDebug'
@@ -19,8 +19,8 @@ export const Theme = forwardRef(function Theme({ children, ...props }: ThemeProp
19
19
 
20
20
  let finalChildren = disableDirectChildTheme
21
21
  ? Children.map(children, (child) =>
22
- cloneElement(child, { ['data-disable-theme']: true })
23
- )
22
+ cloneElement(child, { ['data-disable-theme']: true })
23
+ )
24
24
  : children
25
25
 
26
26
  if (ref) {
@@ -56,7 +56,9 @@ export function getThemedChildren(
56
56
  const { themeManager, isNewTheme } = themeState
57
57
 
58
58
  // its always there.. should fix type
59
- if (!themeManager) throw `❌`
59
+ if (!themeManager) {
60
+ throw new Error(process.env.NODE_ENV === 'development' ? `❌ No theme found, either incorrect name, potential duplicate tamagui deps, or TamaguiProvider not providing themes.` : `❌`)
61
+ }
60
62
 
61
63
  const { shallow, forceClassName } = props
62
64
  const hasEverThemed = useRef(false)
@@ -78,20 +80,20 @@ export function getThemedChildren(
78
80
  next = Children.toArray(children).map((child) => {
79
81
  return isValidElement(child)
80
82
  ? cloneElement(
81
- child,
82
- undefined,
83
- <Theme name={themeManager.state.parentName}>
84
- {(child as any).props.children}
85
- </Theme>
86
- )
83
+ child,
84
+ undefined,
85
+ <Theme name={themeManager.state.parentName}>
86
+ {(child as any).props.children}
87
+ </Theme>
88
+ )
87
89
  : child
88
90
  })
89
91
  }
90
92
 
91
93
  const elementsWithContext = (
92
- <ThemeManagerContext.Provider value={themeManager}>
94
+ <ThemeManagerIDContext.Provider value={themeManager.id}>
93
95
  {next}
94
- </ThemeManagerContext.Provider>
96
+ </ThemeManagerIDContext.Provider>
95
97
  )
96
98
 
97
99
  if (forceClassName === false) {
@@ -142,8 +144,8 @@ function wrapThemeElements({
142
144
  const inverseClassName = name.startsWith('light')
143
145
  ? 't_light is_inversed'
144
146
  : name.startsWith('dark')
145
- ? 't_dark is_inversed'
146
- : ''
147
+ ? 't_dark is_inversed'
148
+ : ''
147
149
  themedChildren = (
148
150
  <span className={`${inverse ? inverseClassName : ''} _dsp_contents`}>
149
151
  {themedChildren}
@@ -169,8 +171,8 @@ function getThemeClassNameAndStyle(themeState: ChangedThemeResponse, isRoot = fa
169
171
 
170
172
  const style = themeColor
171
173
  ? {
172
- color: themeColor,
173
- }
174
+ color: themeColor,
175
+ }
174
176
  : undefined
175
177
 
176
178
  let className = themeState.state?.className || ''
@@ -1,4 +1,3 @@
1
- import { isServer } from '@tamagui/constants'
2
1
  import { useDidFinishSSR } from '@tamagui/use-did-finish-ssr'
3
2
  import { useForceUpdate } from '@tamagui/use-force-update'
4
3
  import { useEffect, useId, useState } from 'react'
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeManager.d.ts","sourceRoot":"","sources":["../../src/help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AW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,CAAA;AAID,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,UAAU,WAEzD;AAID,qBAAa,YAAY;IAOd,KAAK,EAAE,UAAU;IAN1B,EAAE,SAAI;IACN,cAAc,qBAA2B;IACzC,aAAa,EAAE,YAAY,GAAG,IAAI,CAAO;IACzC,KAAK,EAAE,iBAAiB,CAAa;gBAG5B,KAAK,GAAE,UAAe,EAC7B,aAAa,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;IA6B1D,oBAAoB,CAClB,KAAK,GAAE,UAAU,GAAG;QAAE,UAAU,CAAC,EAAE,WAAW,CAAA;KAAqB,EACnE,YAAY,UAAO;IAkBrB,WAAW,CAAC,SAAS,EAAE,iBAAiB,EAAE,YAAY,UAAO;IAoB7D,iBAAiB,CACf,KAAK,aAAa,EAClB,KAAK,GAAE,iBAAiB,GAAG,IAAiB,EAC5C,aAAa,sBAAqB;IAapC,oBAAoB,CAClB,SAAS,EAAE,iBAAiB,GAAG,IAAI,EACnC,KAAK,GAAE,iBAAiB,GAAG,IAAiB;IAQ9C,QAAQ,CAAC,KAAK,aAAa,EAAE,aAAa,sBAAqB;IAO/D,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAO;IACnC,IAAI,OAAO,gBAMV;IAED,MAAM,CAAC,MAAM,UAAQ;IAIrB,aAAa,CAAC,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,MAAM;CAalD;AAgLD,KAAK,iBAAiB,GAAG,YAAY,GAAG,SAAS,CAAA;AAKjD,wBAAgB,WAAW,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,uDAY7D"}
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ThemeManager } from './ThemeManager';
3
- export declare const ThemeManagerContext: import("react").Context<ThemeManager | null>;
2
+ export declare const ThemeManagerIDContext: import("react").Context<number>;
4
3
  //# sourceMappingURL=ThemeManagerContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeManagerContext.d.ts","sourceRoot":"","sources":["../../src/helpers/ThemeManagerContext.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAO,MAAM,mBAAmB,8CAA2C,CAAA"}
1
+ {"version":3,"file":"ThemeManagerContext.d.ts","sourceRoot":"","sources":["../../src/helpers/ThemeManagerContext.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,qBAAqB,iCAA2B,CAAA"}
@@ -28,5 +28,6 @@ export declare const useTheme: (props?: ThemeProps) => UseThemeResult;
28
28
  export declare const useThemeWithState: (props: UseThemeWithStateProps) => [ChangedThemeResponse, ThemeParsed];
29
29
  export declare function getThemeProxied({ theme, name, scheme }: ThemeManagerState, deopt?: boolean, themeManager?: ThemeManager, keys?: string[], debug?: DebugProp): UseThemeResult;
30
30
  export declare const activeThemeManagers: Set<ThemeManager>;
31
+ export declare const getThemeManager: (id: number) => ThemeManager | undefined;
31
32
  export declare const useChangeThemeEffect: (props: UseThemeWithStateProps, isRoot?: boolean, keys?: string[], shouldUpdate?: () => boolean | undefined) => ChangedThemeResponse;
32
33
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EACL,YAAY,EACZ,iBAAiB,EAElB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CA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,EACb,YAAY,CAAC,EAAE,YAAY,EAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,KAAK,CAAC,EAAE,SAAS,GAChB,cAAc,CA0GhB;AAeD,eAAO,MAAM,mBAAmB,mBAA0B,CAAA;AAM1D,eAAO,MAAM,eAAe,OAAQ,MAAM,6BAEzC,CAAA;AASD,eAAO,MAAM,oBAAoB,UACxB,sBAAsB,2BAEtB,MAAM,EAAE,iBACA,MAAM,OAAO,GAAG,SAAS,KACvC,oBA+QF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeName.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeName.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,CAAA;CAAE,GAAG,SAAS,CAehE"}
1
+ {"version":3,"file":"useThemeName.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeName.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGpC,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,CAAA;CAAE,GAAG,SAAS,CAehE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/views/Theme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqE,MAAM,OAAO,CAAA;AAIzF,OAAO,EAAE,oBAAoB,EAAwB,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,KAAK,4EAoChB,CAAA;AAIF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,UAAU,EACjB,MAAM,UAAQ,OAyDf"}
1
+ {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/views/Theme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqE,MAAM,OAAO,CAAA;AAIzF,OAAO,EAAE,oBAAoB,EAAwB,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,KAAK,4EAoChB,CAAA;AAIF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,UAAU,EACjB,MAAM,UAAQ,OA2Df"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeDebug.d.ts","sourceRoot":"","sources":["../../src/views/ThemeDebug.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAIrC,wBAAgB,UAAU,CAAC,EACzB,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,oBAAoB,CAAA;IAChC,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,GAAG,CAAA;CACd,OAoFA"}
1
+ {"version":3,"file":"ThemeDebug.d.ts","sourceRoot":"","sources":["../../src/views/ThemeDebug.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAIrC,wBAAgB,UAAU,CAAC,EACzB,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,oBAAoB,CAAA;IAChC,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,GAAG,CAAA;CACd,OAoFA"}