@tamagui/next-theme 3.0.0-beta.669.1 → 3.0.0-beta.728.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/NextTheme.cjs +0 -1
- package/dist/cjs/NextThemeProvider.cjs +0 -1
- package/dist/cjs/ThemeSettingContext.cjs +0 -1
- package/dist/cjs/UseThemeProps.cjs +0 -1
- package/dist/cjs/constants.cjs +0 -1
- package/dist/cjs/helpers.cjs +0 -1
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/types.cjs +0 -1
- package/dist/cjs/useRootTheme.cjs +0 -1
- package/dist/cjs/useTheme.cjs +0 -1
- package/dist/esm/NextThemeProvider.mjs.map +1 -1
- package/package.json +5 -5
package/dist/cjs/NextTheme.cjs
CHANGED
package/dist/cjs/constants.cjs
CHANGED
package/dist/cjs/helpers.cjs
CHANGED
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/types.cjs
CHANGED
package/dist/cjs/useTheme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextThemeProvider.js","names":[],"sources":["esm/NextThemeProvider.js"],"sourcesContent":["import { useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { useEvent } from \"@tamagui/use-event\";\nimport Script from \"next/script\";\nimport * as React from \"react\";\nimport { memo, useEffect, useMemo, useState } from \"react\";\nimport { MEDIA, colorSchemes } from \"./constants\";\nimport { getSystemTheme, getTheme } from \"./helpers\";\nimport { ThemeSettingContext } from \"./ThemeSettingContext\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nconst NextThemeProvider = memo(\n ({\n forcedTheme,\n disableTransitionOnChange = false,\n enableSystem = true,\n enableColorScheme = true,\n storageKey = \"theme\",\n themes = colorSchemes,\n defaultTheme = enableSystem ? \"system\" : \"light\",\n attribute = \"class\",\n skipNextHead,\n onChangeTheme,\n value = {\n dark: \"t_dark\",\n light: \"t_light\"\n },\n children\n }) => {\n const [theme, setThemeState] = useState(() => getTheme(storageKey, defaultTheme));\n const [resolvedTheme, setResolvedTheme] = useState(() => getTheme(storageKey));\n const attrs = !value ? themes : Object.values(value);\n const handleMediaQuery = useEvent((e) => {\n const _ = getSystemTheme(e);\n const update = () => setResolvedTheme(_);\n if (disableTransitionOnChange) {\n update();\n } else {\n React.startTransition(() => update());\n }\n if (theme === \"system\" && !forcedTheme) {\n handleChangeTheme(_, false);\n }\n });\n const handleChangeTheme = useEvent(\n (theme2, updateStorage = true, updateDOM = true) => {\n let name = value?.[theme2] || theme2;\n if (updateStorage) {\n try {\n localStorage.setItem(storageKey, theme2);\n } catch (e) {\n }\n }\n if (theme2 === \"system\" && enableSystem) {\n const resolved = getSystemTheme();\n name = value?.[resolved] || resolved;\n }\n onChangeTheme?.(name.replace(\"t_\", \"\"));\n if (updateDOM) {\n const d = document.documentElement;\n if (attribute === \"class\") {\n d.classList.remove(...attrs);\n d.classList.add(name);\n } else {\n d.setAttribute(attribute, name);\n }\n }\n }\n );\n useIsomorphicLayoutEffect(() => {\n const media = window.matchMedia(MEDIA);\n media.addListener(handleMediaQuery);\n handleMediaQuery(media);\n return () => {\n media.removeListener(handleMediaQuery);\n };\n }, []);\n const set = useEvent((newTheme) => {\n if (forcedTheme) {\n return;\n }\n handleChangeTheme(newTheme);\n setThemeState(newTheme);\n });\n useEffect(() => {\n const handleStorage = (e) => {\n if (e.key !== storageKey) {\n return;\n }\n const theme2 = e.newValue || defaultTheme;\n set(theme2);\n };\n window.addEventListener(\"storage\", handleStorage);\n return () => {\n window.removeEventListener(\"storage\", handleStorage);\n };\n }, [defaultTheme, set, storageKey]);\n useIsomorphicLayoutEffect(() => {\n if (!enableColorScheme) return;\n const colorScheme = (\n // If theme is forced to light or dark, use that\n forcedTheme && colorSchemes.includes(forcedTheme) ? forcedTheme : (\n // If regular theme is light or dark\n theme && colorSchemes.includes(theme) ? theme : (\n // If theme is system, use the resolved version\n theme === \"system\" ? resolvedTheme || null : null\n )\n )\n );\n const userPrefers = typeof window !== \"undefined\" && window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\";\n const wePrefer = colorScheme || \"light\";\n if (userPrefers !== wePrefer) {\n document.documentElement.style.setProperty(\"color-scheme\", colorScheme);\n }\n }, [enableColorScheme, theme, resolvedTheme, forcedTheme]);\n const toggle = useEvent(() => {\n const order = resolvedTheme === \"dark\" ? [\"system\", \"light\", \"dark\"] : [\"system\", \"dark\", \"light\"];\n const next = order[(order.indexOf(theme) + 1) % order.length];\n set(next);\n });\n const systemTheme = enableSystem ? resolvedTheme : void 0;\n const contextValue = useMemo(() => {\n const value2 = {\n current: theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme: theme === \"system\" ? resolvedTheme : theme,\n themes: enableSystem ? [...themes, \"system\"] : themes,\n systemTheme\n };\n return value2;\n }, [\n theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme,\n enableSystem,\n themes,\n systemTheme\n ]);\n return /* @__PURE__ */ jsxs(ThemeSettingContext.Provider, { value: contextValue, children: [\n /* @__PURE__ */ jsx(\n ThemeScript,\n {\n ...{\n forcedTheme,\n storageKey,\n systemTheme: resolvedTheme,\n attribute,\n value,\n enableSystem,\n defaultTheme,\n attrs,\n skipNextHead\n }\n }\n ),\n children\n ] });\n }\n);\nconst ThemeScript = memo(\n ({\n forcedTheme,\n storageKey,\n attribute,\n enableSystem,\n defaultTheme,\n value,\n attrs,\n skipNextHead\n }) => {\n const optimization = (() => {\n if (attribute === \"class\") {\n const removeClasses = attrs.map((t) => `d.remove('${t}')`).join(\";\");\n return `var d=document.documentElement.classList;${removeClasses};`;\n }\n return `var d=document.documentElement;`;\n })();\n const updateDOM = (name, literal) => {\n name = value?.[name] || name;\n const val = literal ? name : `'${name}'`;\n if (attribute === \"class\") {\n return `d.add(${val})`;\n }\n return `d.setAttribute('${attribute}', ${val})`;\n };\n const defaultSystem = defaultTheme === \"system\";\n const scriptContent = forcedTheme ? `!function(){${optimization}${updateDOM(forcedTheme)}}()` : enableSystem ? `!function(){try {${optimization}var e=localStorage.getItem('${storageKey}');if(\"system\"===e||(!e&&${defaultSystem})){var t=\"${MEDIA}\",m=window.matchMedia(t);m.media!==t||m.matches?${updateDOM(\n \"dark\"\n )}:${updateDOM(\"light\")}}else if(e){${value ? `var x=${JSON.stringify(value)};` : \"\"}${updateDOM(value ? \"x[e]\" : \"e\", true)}}${!defaultSystem ? `else{${updateDOM(defaultTheme)}}` : \"\"}}catch(e){}}()` : `!function(){try{${optimization}var e=localStorage.getItem(\"${storageKey}\");if(e){${value ? `var x=${JSON.stringify(value)};` : \"\"}${updateDOM(value ? \"x[e]\" : \"e\", true)}}else{${updateDOM(\n defaultTheme\n )};}}catch(t){}}();`;\n if (skipNextHead) {\n return /* @__PURE__ */ jsx(\n \"script\",\n {\n dangerouslySetInnerHTML: { __html: scriptContent }\n },\n \"next-themes-script\"\n );\n }\n return /* @__PURE__ */ jsx(\n Script,\n {\n id: \"next-themes-script\",\n strategy: \"beforeInteractive\",\n dangerouslySetInnerHTML: { __html: scriptContent }\n }\n );\n },\n (prevProps, nextProps) => {\n if (prevProps.forcedTheme !== nextProps.forcedTheme) return false;\n return true;\n }\n);\nexport {\n NextThemeProvider\n};\n//# sourceMappingURL=NextThemeProvider.js.map\n"],"mappings":";;;;;;;;;;;AASA,MAAM,oBAAoB,MACvB,EACC,aACA,4BAA4B,OAC5B,eAAe,MACf,oBAAoB,MACpB,aAAa,SACb,SAAS,cACT,eAAe,eAAe,WAAW,SACzC,YAAY,SACZ,cACA,eACA,QAAQ;CACN,MAAM;CACN,OAAO;AACT,GACA,eACI;CACJ,MAAM,CAAC,OAAO,iBAAiB,eAAe,SAAS,YAAY,YAAY,CAAC;CAChF,MAAM,CAAC,eAAe,oBAAoB,eAAe,SAAS,UAAU,CAAC;CAC7E,MAAM,QAAQ,CAAC,QAAQ,SAAS,OAAO,OAAO,KAAK;CACnD,MAAM,mBAAmB,UAAU,MAAM;EACvC,MAAM,I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AAE,GAAG,EAAE,KAAK,GAAG;GACnE,OAAO,4CAA4C,cAAc;EACnE;EACA,OAAO;CACT,GAAG;CACH,MAAM,aAAa,MAAM,YAAY;EACnC,OAAO,QAAQ,SAAS;EACxB,MAAM,MAAM,UAAU,OAAO,IAAI,KAAK;EACtC,IAAI,cAAc,SAAS;GACzB,OAAO,SAAS,IAAI;EACtB;EACA,OAAO,mBAAmB,UAAU,KAAK,IAAI;CAC/C;CACA,MAAM,gBAAgB,iBAAiB;CACvC,MAAM,gBAAgB,cAAc,eAAe,eAAe,UAAU,WAAW,EAAE,OAAO,eAAe,oBAAoB,aAAa,8BAA8B,WAAW,2BAA2B,cAAc,YAAY,MAAM,kDAAkD,UACpS,MACF,EAAE,GAAG,UAAU,OAAO,EAAE,cAAc,QAAQ,SAAS,KAAK,UAAU,KAAK,EAAE,KAAK,KAAK,UAAU,QAAQ,SAAS,KAAK,IAAI,EAAE,GAAG,CAAC,gBAAgB,QAAQ,UAAU,YAAY,EAAE,KAAK,GAAG,kBAAkB,mBAAmB,aAAa,8BAA8B,WAAW,WAAW,QAAQ,SAAS,KAAK,UAAU,KAAK,EAAE,KAAK,KAAK,UAAU,QAAQ,SAAS,KAAK,IAAI,EAAE,QAAQ,UAC5X,YACF,EAAE;CACF,IAAI,cAAc;EAChB,OAAuB,oBACrB,UACA,EACE,yBAAyB,EAAE,QAAQ,cAAc,EACnD,GACA,oBACF;CACF;CACA,OAAuB,oBACrB,QACA;EACE,IAAI;EACJ,UAAU;EACV,yBAAyB,EAAE,QAAQ,cAAc;CACnD,CACF;AACF,IACC,WAAW,cAAc;CACxB,IAAI,UAAU,gBAAgB,UAAU,aAAa,OAAO;CAC5D,OAAO;AACT,CACF"}
|
|
1
|
+
{"version":3,"file":"NextThemeProvider.js","names":[],"sources":["esm/NextThemeProvider.js"],"sourcesContent":["import { useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { useEvent } from \"@tamagui/use-event\";\nimport Script from \"next/script\";\nimport * as React from \"react\";\nimport { memo, useEffect, useMemo, useState } from \"react\";\nimport { MEDIA, colorSchemes } from \"./constants\";\nimport { getSystemTheme, getTheme } from \"./helpers\";\nimport { ThemeSettingContext } from \"./ThemeSettingContext\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nconst NextThemeProvider = memo(\n ({\n forcedTheme,\n disableTransitionOnChange = false,\n enableSystem = true,\n enableColorScheme = true,\n storageKey = \"theme\",\n themes = colorSchemes,\n defaultTheme = enableSystem ? \"system\" : \"light\",\n attribute = \"class\",\n skipNextHead,\n onChangeTheme,\n value = {\n dark: \"t_dark\",\n light: \"t_light\"\n },\n children\n }) => {\n const [theme, setThemeState] = useState(() => getTheme(storageKey, defaultTheme));\n const [resolvedTheme, setResolvedTheme] = useState(() => getTheme(storageKey));\n const attrs = !value ? themes : Object.values(value);\n const handleMediaQuery = useEvent((e) => {\n const _ = getSystemTheme(e);\n const update = () => setResolvedTheme(_);\n if (disableTransitionOnChange) {\n update();\n } else {\n React.startTransition(() => update());\n }\n if (theme === \"system\" && !forcedTheme) {\n handleChangeTheme(_, false);\n }\n });\n const handleChangeTheme = useEvent(\n (theme2, updateStorage = true, updateDOM = true) => {\n let name = value?.[theme2] || theme2;\n if (updateStorage) {\n try {\n localStorage.setItem(storageKey, theme2);\n } catch (e) {\n }\n }\n if (theme2 === \"system\" && enableSystem) {\n const resolved = getSystemTheme();\n name = value?.[resolved] || resolved;\n }\n onChangeTheme?.(name.replace(\"t_\", \"\"));\n if (updateDOM) {\n const d = document.documentElement;\n if (attribute === \"class\") {\n d.classList.remove(...attrs);\n d.classList.add(name);\n } else {\n d.setAttribute(attribute, name);\n }\n }\n }\n );\n useIsomorphicLayoutEffect(() => {\n const media = window.matchMedia(MEDIA);\n media.addListener(handleMediaQuery);\n handleMediaQuery(media);\n return () => {\n media.removeListener(handleMediaQuery);\n };\n }, []);\n const set = useEvent((newTheme) => {\n if (forcedTheme) {\n return;\n }\n handleChangeTheme(newTheme);\n setThemeState(newTheme);\n });\n useEffect(() => {\n const handleStorage = (e) => {\n if (e.key !== storageKey) {\n return;\n }\n const theme2 = e.newValue || defaultTheme;\n set(theme2);\n };\n window.addEventListener(\"storage\", handleStorage);\n return () => {\n window.removeEventListener(\"storage\", handleStorage);\n };\n }, [defaultTheme, set, storageKey]);\n useIsomorphicLayoutEffect(() => {\n if (!enableColorScheme) return;\n const colorScheme = (\n // If theme is forced to light or dark, use that\n forcedTheme && colorSchemes.includes(forcedTheme) ? forcedTheme : (\n // If regular theme is light or dark\n theme && colorSchemes.includes(theme) ? theme : (\n // If theme is system, use the resolved version\n theme === \"system\" ? resolvedTheme || null : null\n )\n )\n );\n const userPrefers = typeof window !== \"undefined\" && window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\";\n const wePrefer = colorScheme || \"light\";\n if (userPrefers !== wePrefer) {\n document.documentElement.style.setProperty(\"color-scheme\", colorScheme);\n }\n }, [enableColorScheme, theme, resolvedTheme, forcedTheme]);\n const toggle = useEvent(() => {\n const order = resolvedTheme === \"dark\" ? [\"system\", \"light\", \"dark\"] : [\"system\", \"dark\", \"light\"];\n const next = order[(order.indexOf(theme) + 1) % order.length];\n set(next);\n });\n const systemTheme = enableSystem ? resolvedTheme : void 0;\n const contextValue = useMemo(() => {\n const value2 = {\n current: theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme: theme === \"system\" ? resolvedTheme : theme,\n themes: enableSystem ? [...themes, \"system\"] : themes,\n systemTheme\n };\n return value2;\n }, [\n theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme,\n enableSystem,\n themes,\n systemTheme\n ]);\n return /* @__PURE__ */ jsxs(ThemeSettingContext.Provider, { value: contextValue, children: [\n /* @__PURE__ */ jsx(\n ThemeScript,\n {\n ...{\n forcedTheme,\n storageKey,\n systemTheme: resolvedTheme,\n attribute,\n value,\n enableSystem,\n defaultTheme,\n attrs,\n skipNextHead\n }\n }\n ),\n children\n ] });\n }\n);\nconst ThemeScript = memo(\n ({\n forcedTheme,\n storageKey,\n attribute,\n enableSystem,\n defaultTheme,\n value,\n attrs,\n skipNextHead\n }) => {\n const optimization = (() => {\n if (attribute === \"class\") {\n const removeClasses = attrs.map((t) => `d.remove('${t}')`).join(\";\");\n return `var d=document.documentElement.classList;${removeClasses};`;\n }\n return `var d=document.documentElement;`;\n })();\n const updateDOM = (name, literal) => {\n name = value?.[name] || name;\n const val = literal ? name : `'${name}'`;\n if (attribute === \"class\") {\n return `d.add(${val})`;\n }\n return `d.setAttribute('${attribute}', ${val})`;\n };\n const defaultSystem = defaultTheme === \"system\";\n const scriptContent = forcedTheme ? `!function(){${optimization}${updateDOM(forcedTheme)}}()` : enableSystem ? `!function(){try {${optimization}var e=localStorage.getItem('${storageKey}');if(\"system\"===e||(!e&&${defaultSystem})){var t=\"${MEDIA}\",m=window.matchMedia(t);m.media!==t||m.matches?${updateDOM(\n \"dark\"\n )}:${updateDOM(\"light\")}}else if(e){${value ? `var x=${JSON.stringify(value)};` : \"\"}${updateDOM(value ? \"x[e]\" : \"e\", true)}}${!defaultSystem ? `else{${updateDOM(defaultTheme)}}` : \"\"}}catch(e){}}()` : `!function(){try{${optimization}var e=localStorage.getItem(\"${storageKey}\");if(e){${value ? `var x=${JSON.stringify(value)};` : \"\"}${updateDOM(value ? \"x[e]\" : \"e\", true)}}else{${updateDOM(\n defaultTheme\n )};}}catch(t){}}();`;\n if (skipNextHead) {\n return /* @__PURE__ */ jsx(\n \"script\",\n {\n dangerouslySetInnerHTML: { __html: scriptContent }\n },\n \"next-themes-script\"\n );\n }\n return /* @__PURE__ */ jsx(\n Script,\n {\n id: \"next-themes-script\",\n strategy: \"beforeInteractive\",\n dangerouslySetInnerHTML: { __html: scriptContent }\n }\n );\n },\n (prevProps, nextProps) => {\n if (prevProps.forcedTheme !== nextProps.forcedTheme) return false;\n return true;\n }\n);\nexport {\n NextThemeProvider\n};\n//# sourceMappingURL=NextThemeProvider.js.map\n"],"mappings":";;;;;;;;;;;AASA,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AuB,oBACrB,UACA,EACE,yBAAyB,EAAE,QAAQ,cAAc,EACnD,GACA,oBACF;CACF;CACA,OAAuB,oBACrB,QACA;EACE,IAAI;EACJ,UAAU;EACV,yBAAyB,EAAE,QAAQ,cAAc;CACnD,CACF;AACF,IACC,WAAW,cAAc;CACxB,IAAI,UAAU,gBAAgB,UAAU,aAAa,OAAO;CAC5D,OAAO;AACT,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/next-theme",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.728.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"clean:build": "tamagui-build clean:build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
36
|
-
"@tamagui/use-event": "3.0.0-beta.
|
|
35
|
+
"@tamagui/constants": "3.0.0-beta.728.1",
|
|
36
|
+
"@tamagui/use-event": "3.0.0-beta.728.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@tamagui/build": "3.0.0-beta.
|
|
39
|
+
"@tamagui/build": "3.0.0-beta.728.1",
|
|
40
40
|
"next": "16.1.1",
|
|
41
|
-
"react": "
|
|
41
|
+
"react": "19.2.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"next": ">=14",
|