@tamagui/next-theme 1.135.2 → 1.135.4

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 (61) hide show
  1. package/package.json +16 -7
  2. package/types/NextTheme.d.ts +12 -0
  3. package/types/NextTheme.d.ts.map +11 -0
  4. package/types/NextThemeProvider.d.ts +5 -0
  5. package/types/NextThemeProvider.d.ts.map +13 -0
  6. package/types/ThemeSettingContext.d.ts +5 -0
  7. package/types/ThemeSettingContext.d.ts.map +13 -0
  8. package/types/UseThemeProps.d.ts +45 -0
  9. package/types/UseThemeProps.d.ts.map +14 -0
  10. package/types/constants.d.ts +5 -0
  11. package/types/constants.d.ts.map +11 -0
  12. package/types/helpers.d.ts +6 -0
  13. package/types/helpers.d.ts.map +15 -0
  14. package/types/index.d.ts +4 -0
  15. package/types/index.d.ts.map +11 -0
  16. package/types/types.d.ts +6 -0
  17. package/types/types.d.ts.map +11 -0
  18. package/types/useRootTheme.d.ts +7 -0
  19. package/types/useRootTheme.d.ts.map +11 -0
  20. package/types/useTheme.d.ts +8 -0
  21. package/types/useTheme.d.ts.map +11 -0
  22. package/dist/cjs/NextTheme.native.js +0 -34
  23. package/dist/cjs/NextTheme.native.js.map +0 -6
  24. package/dist/cjs/NextThemeProvider.native.js +0 -215
  25. package/dist/cjs/NextThemeProvider.native.js.map +0 -6
  26. package/dist/cjs/ThemeSettingContext.native.js +0 -40
  27. package/dist/cjs/ThemeSettingContext.native.js.map +0 -6
  28. package/dist/cjs/UseThemeProps.native.js +0 -15
  29. package/dist/cjs/UseThemeProps.native.js.map +0 -6
  30. package/dist/cjs/constants.native.js +0 -33
  31. package/dist/cjs/constants.native.js.map +0 -6
  32. package/dist/cjs/helpers.native.js +0 -43
  33. package/dist/cjs/helpers.native.js.map +0 -6
  34. package/dist/cjs/index.native.js +0 -22
  35. package/dist/cjs/index.native.js.map +0 -6
  36. package/dist/cjs/types.native.js +0 -15
  37. package/dist/cjs/types.native.js.map +0 -6
  38. package/dist/cjs/useRootTheme.native.js +0 -43
  39. package/dist/cjs/useRootTheme.native.js.map +0 -6
  40. package/dist/cjs/useTheme.native.js +0 -40
  41. package/dist/cjs/useTheme.native.js.map +0 -6
  42. package/dist/esm/NextTheme.native.js +0 -9
  43. package/dist/esm/NextTheme.native.js.map +0 -1
  44. package/dist/esm/NextThemeProvider.native.js +0 -185
  45. package/dist/esm/NextThemeProvider.native.js.map +0 -1
  46. package/dist/esm/ThemeSettingContext.native.js +0 -8
  47. package/dist/esm/ThemeSettingContext.native.js.map +0 -1
  48. package/dist/esm/UseThemeProps.native.js +0 -2
  49. package/dist/esm/UseThemeProps.native.js.map +0 -1
  50. package/dist/esm/constants.native.js +0 -5
  51. package/dist/esm/constants.native.js.map +0 -1
  52. package/dist/esm/helpers.native.js +0 -19
  53. package/dist/esm/helpers.native.js.map +0 -1
  54. package/dist/esm/index.native.js +0 -3
  55. package/dist/esm/index.native.js.map +0 -1
  56. package/dist/esm/types.native.js +0 -2
  57. package/dist/esm/types.native.js.map +0 -1
  58. package/dist/esm/useRootTheme.native.js +0 -15
  59. package/dist/esm/useRootTheme.native.js.map +0 -1
  60. package/dist/esm/useTheme.native.js +0 -10
  61. package/dist/esm/useTheme.native.js.map +0 -1
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var ThemeSettingContext_exports = {};
25
- __export(ThemeSettingContext_exports, {
26
- ThemeSettingContext: () => ThemeSettingContext
27
- });
28
- module.exports = __toCommonJS(ThemeSettingContext_exports);
29
- var import_react = __toESM(require("react")), ThemeSettingContext = /* @__PURE__ */ import_react.default.createContext({
30
- toggle: function() {
31
- },
32
- set: function(_) {
33
- },
34
- themes: []
35
- });
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {
38
- ThemeSettingContext
39
- });
40
- //# sourceMappingURL=ThemeSettingContext.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/ThemeSettingContext.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BACP,sBAAoC,6BAAAA,QAAM,cAAc;AAAA,EAC/D,QAAQ,WAAW;AAAA,EAAC;AAAA,EACpB,KAAK,SAAS,GAAG;AAAA,EAAC;AAAA,EAClB,QAAQ,CAAC;AACb,CAAC;",
5
- "names": ["React"]
6
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var UseThemeProps_exports = {};
14
- module.exports = __toCommonJS(UseThemeProps_exports);
15
- //# sourceMappingURL=UseThemeProps.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/UseThemeProps.tsx"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
- "names": []
6
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var constants_exports = {};
17
- __export(constants_exports, {
18
- MEDIA: () => MEDIA,
19
- colorSchemes: () => colorSchemes,
20
- constants: () => constants
21
- });
22
- module.exports = __toCommonJS(constants_exports);
23
- var constants = {}, colorSchemes = [
24
- "light",
25
- "dark"
26
- ], MEDIA = "(prefers-color-scheme: dark)";
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- MEDIA,
30
- colorSchemes,
31
- constants
32
- });
33
- //# sourceMappingURL=constants.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAI,YAAY,CAAC,GACb,eAAe;AAAA,EACtB;AAAA,EACA;AACJ,GACW,QAAQ;",
5
- "names": []
6
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var helpers_exports = {};
17
- __export(helpers_exports, {
18
- getSystemTheme: () => getSystemTheme,
19
- getTheme: () => getTheme,
20
- helpers: () => helpers
21
- });
22
- module.exports = __toCommonJS(helpers_exports);
23
- var import_constants = require("./constants"), helpers = {}, getTheme = function(key, fallback) {
24
- if (!(typeof window > "u")) {
25
- var theme;
26
- try {
27
- theme = localStorage.getItem(key) || void 0;
28
- } catch {
29
- }
30
- return theme || fallback;
31
- }
32
- }, getSystemTheme = function(e) {
33
- e || (e = window.matchMedia(import_constants.MEDIA));
34
- var isDark = e.matches, systemTheme = isDark ? "dark" : "light";
35
- return systemTheme;
36
- };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- getSystemTheme,
40
- getTheme,
41
- helpers
42
- });
43
- //# sourceMappingURL=helpers.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/helpers.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAsB,wBACX,UAAU,CAAC,GAEX,WAAW,SAAS,KAAK,UAAU;AAC1C,MAAI,SAAO,SAAW,MACtB;AAAA,QAAI;AACJ,QAAI;AACA,cAAQ,aAAa,QAAQ,GAAG,KAAK;AAAA,IACzC,QAAY;AAAA,IAAC;AAEb,WAAO,SAAS;AAAA;AACpB,GACW,iBAAiB,SAAS,GAAG;AACpC,EAAK,MACD,IAAI,OAAO,WAAW,sBAAK;AAE/B,MAAI,SAAS,EAAE,SACX,cAAc,SAAS,SAAS;AACpC,SAAO;AACX;",
5
- "names": []
6
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var index_exports = {};
14
- module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./NextTheme"), module.exports);
16
- __reExport(index_exports, require("./types"), module.exports);
17
- // Annotate the CommonJS export names for ESM import in node:
18
- 0 && (module.exports = {
19
- ...require("./NextTheme"),
20
- ...require("./types")
21
- });
22
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,wBAAd;AACA,0BAAc,oBADd;",
5
- "names": []
6
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var types_exports = {};
14
- module.exports = __toCommonJS(types_exports);
15
- //# sourceMappingURL=types.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/types.tsx"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
- "names": []
6
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var useRootTheme_exports = {};
25
- __export(useRootTheme_exports, {
26
- useRootTheme: () => useRootTheme
27
- });
28
- module.exports = __toCommonJS(useRootTheme_exports);
29
- var import_react = __toESM(require("react")), import_constants = require("@tamagui/constants"), useRootTheme = function() {
30
- var { fallback = "light" } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, initialVal = fallback;
31
- if (import_constants.isClient) {
32
- var classes = [
33
- ...document.documentElement.classList
34
- ];
35
- initialVal = classes.includes("t_dark") ? "dark" : classes.includes("t_light") ? "light" : fallback;
36
- }
37
- return import_react.default.useState(initialVal);
38
- };
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- useRootTheme
42
- });
43
- //# sourceMappingURL=useRootTheme.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useRootTheme.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,mBAAyB,+BACd,eAAe,WAAW;AACjC,MAAI,EAAE,WAAW,QAAQ,IAAI,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI,CAAC,GAC3F,aAAa;AACjB,MAAI,2BAAU;AAEV,QAAI,UAAU;AAAA,MACV,GAAG,SAAS,gBAAgB;AAAA,IAChC;AACA,iBAAa,QAAQ,SAAS,QAAQ,IAAI,SAAS,QAAQ,SAAS,SAAS,IAAI,UAAU;AAAA,EAC/F;AACA,SAAO,aAAAA,QAAM,SAAS,UAAU;AACpC;",
5
- "names": ["React"]
6
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var useTheme_exports = {};
25
- __export(useTheme_exports, {
26
- useTheme: () => useTheme,
27
- useThemeSetting: () => useThemeSetting
28
- });
29
- module.exports = __toCommonJS(useTheme_exports);
30
- var import_react = __toESM(require("react")), import_ThemeSettingContext = require("./ThemeSettingContext"), useTheme = function() {
31
- return import_react.default.useContext(import_ThemeSettingContext.ThemeSettingContext);
32
- }, useThemeSetting = function() {
33
- return import_react.default.useContext(import_ThemeSettingContext.ThemeSettingContext);
34
- };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- useTheme,
38
- useThemeSetting
39
- });
40
- //# sourceMappingURL=useTheme.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useTheme.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,6BAAoC,kCAGrB,WAAW,WAAW;AACjC,SAAO,aAAAA,QAAM,WAAW,8CAAmB;AAC/C,GACW,kBAAkB,WAAW;AACpC,SAAO,aAAAA,QAAM,WAAW,8CAAmB;AAC/C;",
5
- "names": ["React"]
6
- }
@@ -1,9 +0,0 @@
1
- export * from "./NextThemeProvider.native.js";
2
- export * from "./ThemeSettingContext.native.js";
3
- export * from "./UseThemeProps.native.js";
4
- export * from "./helpers.native.js";
5
- export * from "./constants.native.js";
6
- export * from "./useTheme.native.js";
7
- export * from "./types.native.js";
8
- export * from "./useRootTheme.native.js";
9
- //# sourceMappingURL=NextTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/NextTheme.tsx"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1,185 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useIsomorphicLayoutEffect } from "@tamagui/constants";
3
- import { useEvent } from "@tamagui/use-event";
4
- import NextHead from "next/head";
5
- import * as React from "react";
6
- import { memo, useEffect, useMemo, useState } from "react";
7
- import { MEDIA, colorSchemes } from "./constants.native.js";
8
- import { getSystemTheme, getTheme } from "./helpers.native.js";
9
- import { ThemeSettingContext } from "./ThemeSettingContext.native.js";
10
- var NextThemeProvider = /* @__PURE__ */memo(function (param) {
11
- var {
12
- forcedTheme,
13
- disableTransitionOnChange = !1,
14
- enableSystem = !0,
15
- enableColorScheme = !0,
16
- storageKey = "theme",
17
- themes = colorSchemes,
18
- defaultTheme = enableSystem ? "system" : "light",
19
- attribute = "class",
20
- skipNextHead,
21
- onChangeTheme,
22
- value = {
23
- dark: "t_dark",
24
- light: "t_light"
25
- },
26
- children
27
- } = param,
28
- [theme, setThemeState] = useState(function () {
29
- return getTheme(storageKey, defaultTheme);
30
- }),
31
- [resolvedTheme, setResolvedTheme] = useState(function () {
32
- return getTheme(storageKey);
33
- }),
34
- attrs = value ? Object.values(value) : themes,
35
- handleMediaQuery = useEvent(function (e) {
36
- var _ = getSystemTheme(e),
37
- update = function () {
38
- return setResolvedTheme(_);
39
- };
40
- disableTransitionOnChange ? update() : React.startTransition(function () {
41
- return update();
42
- }), theme === "system" && !forcedTheme && handleChangeTheme(_, !1);
43
- }),
44
- handleChangeTheme = useEvent(function (theme2) {
45
- var updateStorage = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
46
- updateDOM = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0,
47
- name = value?.[theme2] || theme2;
48
- if (updateStorage) try {
49
- localStorage.setItem(storageKey, theme2);
50
- } catch {}
51
- if (theme2 === "system" && enableSystem) {
52
- var resolved = getSystemTheme();
53
- name = value?.[resolved] || resolved;
54
- }
55
- if (onChangeTheme?.(name.replace("t_", "")), updateDOM) {
56
- var d = document.documentElement;
57
- attribute === "class" ? (d.classList.remove(...attrs), d.classList.add(name)) : d.setAttribute(attribute, name);
58
- }
59
- });
60
- useIsomorphicLayoutEffect(function () {
61
- var media = window.matchMedia(MEDIA);
62
- return media.addListener(handleMediaQuery), handleMediaQuery(media), function () {
63
- media.removeListener(handleMediaQuery);
64
- };
65
- }, []);
66
- var set = useEvent(function (newTheme) {
67
- forcedTheme ? handleChangeTheme(newTheme, !0, !1) : handleChangeTheme(newTheme), setThemeState(newTheme);
68
- });
69
- useEffect(function () {
70
- var handleStorage = function (e) {
71
- if (e.key === storageKey) {
72
- var theme2 = e.newValue || defaultTheme;
73
- set(theme2);
74
- }
75
- };
76
- return window.addEventListener("storage", handleStorage), function () {
77
- window.removeEventListener("storage", handleStorage);
78
- };
79
- }, [defaultTheme, set, storageKey]), useIsomorphicLayoutEffect(function () {
80
- if (enableColorScheme) {
81
- var colorScheme =
82
- // If theme is forced to light or dark, use that
83
- forcedTheme && colorSchemes.includes(forcedTheme) ? forcedTheme :
84
- // If regular theme is light or dark
85
- theme && colorSchemes.includes(theme) ? theme :
86
- // If theme is system, use the resolved version
87
- theme === "system" && resolvedTheme || null,
88
- userPrefers = typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light",
89
- wePrefer = colorScheme || "light";
90
- userPrefers !== wePrefer && document.documentElement.style.setProperty("color-scheme", colorScheme);
91
- }
92
- }, [enableColorScheme, theme, resolvedTheme, forcedTheme]);
93
- var toggle = useEvent(function () {
94
- var order = resolvedTheme === "dark" ? ["system", "light", "dark"] : ["system", "dark", "light"],
95
- next = order[(order.indexOf(theme) + 1) % order.length];
96
- set(next);
97
- }),
98
- systemTheme = enableSystem ? resolvedTheme : void 0,
99
- contextValue = useMemo(function () {
100
- var value2 = {
101
- theme,
102
- current: theme,
103
- set,
104
- toggle,
105
- forcedTheme,
106
- resolvedTheme: theme === "system" ? resolvedTheme : theme,
107
- themes: enableSystem ? [...themes, "system"] : themes,
108
- systemTheme
109
- };
110
- return value2;
111
- }, [theme, set, toggle, forcedTheme, resolvedTheme, enableSystem, themes, systemTheme]);
112
- return /* @__PURE__ */_jsxs(ThemeSettingContext.Provider, {
113
- value: contextValue,
114
- children: [/* @__PURE__ */_jsx(ThemeScript, {
115
- forcedTheme,
116
- storageKey,
117
- systemTheme: resolvedTheme,
118
- attribute,
119
- value,
120
- enableSystem,
121
- defaultTheme,
122
- attrs,
123
- skipNextHead
124
- }), /* because on SSR we re-run and can avoid whole tree re-render */
125
- useMemo(function () {
126
- return children;
127
- }, [children])]
128
- });
129
- }),
130
- ThemeScript = /* @__PURE__ */memo(function (param) {
131
- var {
132
- forcedTheme,
133
- storageKey,
134
- attribute,
135
- enableSystem,
136
- defaultTheme,
137
- value,
138
- attrs,
139
- skipNextHead
140
- } = param,
141
- optimization = function () {
142
- if (attribute === "class") {
143
- var removeClasses = attrs.map(function (t) {
144
- return `d.remove('${t}')`;
145
- }).join(";");
146
- return `var d=document.documentElement.classList;${removeClasses};`;
147
- }
148
- return "var d=document.documentElement;";
149
- }(),
150
- updateDOM = function (name, literal) {
151
- name = value?.[name] || name;
152
- var val = literal ? name : `'${name}'`;
153
- return attribute === "class" ? `d.add(${val})` : `d.setAttribute('${attribute}', ${val})`;
154
- },
155
- defaultSystem = defaultTheme === "system",
156
- contents = /* @__PURE__ */_jsx(_Fragment, {
157
- children: forcedTheme ? /* @__PURE__ */_jsx("script", {
158
- dangerouslySetInnerHTML: {
159
- // These are minified via Terser and then updated by hand, don't recommend
160
- __html: `!function(){${optimization}${updateDOM(forcedTheme)}}()`
161
- }
162
- },
163
- // nonce={nonce}
164
- "next-themes-script") : enableSystem ? /* @__PURE__ */_jsx("script", {
165
- dangerouslySetInnerHTML: {
166
- __html: `!function(){try {${optimization}var e=localStorage.getItem('${storageKey}');${defaultSystem ? "" : updateDOM(defaultTheme) + ";"}if("system"===e||(!e&&${defaultSystem})){var t="${MEDIA}",m=window.matchMedia(t);m.media!==t||m.matches?${updateDOM("dark")}:${updateDOM("light")}}else if(e) ${value ? `var x=${JSON.stringify(value)};` : ""}${updateDOM(value ? "x[e]" : "e", !0)}}catch(e){}}()`
167
- }
168
- },
169
- // nonce={nonce}
170
- "next-themes-script") : /* @__PURE__ */_jsx("script", {
171
- dangerouslySetInnerHTML: {
172
- __html: `!function(){try{${optimization}var e=localStorage.getItem("${storageKey}");if(e){${value ? `var x=${JSON.stringify(value)};` : ""}${updateDOM(value ? "x[e]" : "e", !0)}}else{${updateDOM(defaultTheme)};}}catch(t){}}();`
173
- }
174
- },
175
- // nonce={nonce}
176
- "next-themes-script")
177
- });
178
- return skipNextHead ? contents : /* @__PURE__ */_jsx(NextHead, {
179
- children: contents
180
- });
181
- }, function (prevProps, nextProps) {
182
- return prevProps.forcedTheme === nextProps.forcedTheme;
183
- });
184
- export { NextThemeProvider };
185
- //# sourceMappingURL=NextThemeProvider.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","useIsomorphicLayoutEffect","useEvent","NextHead","React","memo","useEffect","useMemo","useState","MEDIA","colorSchemes","getSystemTheme","getTheme","ThemeSettingContext","NextThemeProvider","param","forcedTheme","disableTransitionOnChange","enableSystem","enableColorScheme","storageKey","themes","defaultTheme","attribute","skipNextHead","onChangeTheme","value","dark","light","children","theme","setThemeState","resolvedTheme","setResolvedTheme","attrs","Object","values","handleMediaQuery","e","_","update","startTransition","handleChangeTheme","theme2","updateStorage","arguments","length","updateDOM","name","localStorage","setItem","resolved","replace","d","document","documentElement","classList","remove","add","setAttribute","media","window","matchMedia","addListener","removeListener","set","newTheme","handleStorage","key","newValue","addEventListener","removeEventListener","colorScheme","includes","userPrefers","matches","wePrefer","style","setProperty","toggle","order","next","indexOf","systemTheme","contextValue","value2","current","Provider","ThemeScript","optimization","removeClasses","map","t","join","literal","val","defaultSystem","contents","dangerouslySetInnerHTML","__html","JSON","stringify"],"sources":["../../src/NextThemeProvider.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAiC,IAAAC,SAAA;AAC1C,SAASC,yBAAgB;AACzB,SAAOC,QAAA,QAAc;AACrB,OAAAC,QAAY,iBAAW;AACvB,YAASC,KAAM,aAAW;AAE1B,SAASC,IAAA,EAAAC,SAAO,EAAAC,OAAA,EAAAC,QAAoB;AACpC,SAASC,KAAA,EAAAC,YAAgB,+BAAgB;AACzC,SAASC,cAAA,EAAAC,QAAA,QAA2B;AAiL9B,SAgEAC,mBAhEA;AA7KC,IAAAC,iBAAM,kBAAiET,IAAA,WAAAU,KAAA;IAC5E,IAAC;QAAAC,WAAA;QAAAC,yBAAA;QAAAC,YAAA;QAAAC,iBAAA;QAAAC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,SAAA,CAAA3E,KAAA,YAAAqB,SAAA,CAAArB,KAAA","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- var ThemeSettingContext = /* @__PURE__ */React.createContext({
3
- toggle: function () {},
4
- set: function (_) {},
5
- themes: []
6
- });
7
- export { ThemeSettingContext };
8
- //# sourceMappingURL=ThemeSettingContext.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","ThemeSettingContext","createContext","toggle","set","_","themes"],"sources":["../../src/ThemeSettingContext.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAIX,IAAAC,mBAAM,kBACLD,KAAA,CAA6BE,aAAA;EACjCC,MAAA,EAAQ,SAAAA,CAAA,EAAM,CAAC;EACfC,GAAA,EAAK,SAAAA,CAAOC,CAAA,GAAC;EACbC,MAAA,EAAQ;AACV,CAAC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=UseThemeProps.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- var constants = {},
2
- colorSchemes = ["light", "dark"],
3
- MEDIA = "(prefers-color-scheme: dark)";
4
- export { MEDIA, colorSchemes, constants };
5
- //# sourceMappingURL=constants.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["constants","colorSchemes"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,SAAM,KAAY;EAACC,YACb,I","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- import { MEDIA } from "./constants.native.js";
2
- var helpers = {},
3
- getTheme = function (key, fallback) {
4
- if (!(typeof window > "u")) {
5
- var theme;
6
- try {
7
- theme = localStorage.getItem(key) || void 0;
8
- } catch {}
9
- return theme || fallback;
10
- }
11
- },
12
- getSystemTheme = function (e) {
13
- e || (e = window.matchMedia(MEDIA));
14
- var isDark = e.matches,
15
- systemTheme = isDark ? "dark" : "light";
16
- return systemTheme;
17
- };
18
- export { getSystemTheme, getTheme, helpers };
19
- //# sourceMappingURL=helpers.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["MEDIA","helpers","getTheme","key","fallback","window","theme","localStorage","getItem"],"sources":["../../src/helpers.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,QAAa;AAEf,IAAAC,OAAM,KAAU;EAACC,QAGX,YAAAA,CAAyBC,GAAA,EAAAC,QAA2B;IAC/D,IAAI,SAAOC,MAAA,GAAW,GAAa;MACnC,IAAIC,KAAA;MACJ,IAAI;QACFA,KAAA,GAAQC,YAAa,CAAAC,OAAQ,CAAAL,GAAG,KAAK;MACvC,QAAY,CAEZ;MACA,OAAOG,KAAA,IAASF,QAAA;IAClB","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export * from "./NextTheme.native.js";
2
- export * from "./types.native.js";
3
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { isClient } from "@tamagui/constants";
3
- var useRootTheme = function () {
4
- var {
5
- fallback = "light"
6
- } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
7
- initialVal = fallback;
8
- if (isClient) {
9
- var classes = [...document.documentElement.classList];
10
- initialVal = classes.includes("t_dark") ? "dark" : classes.includes("t_light") ? "light" : fallback;
11
- }
12
- return React.useState(initialVal);
13
- };
14
- export { useRootTheme };
15
- //# sourceMappingURL=useRootTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","isClient","useRootTheme","fallback","arguments","length","initialVal","classes","document","documentElement","classList","includes","useState"],"sources":["../../src/useRootTheme.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAClB,SAASC,QAAA,QAAgB;AAIlB,IAAAC,YAAM,YAAAA,CAAA,EAAgB;EAC3B;MAAAC,QAAW;IAAA,IAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;IAAAE,UAAA,GAAAH,QAAA;EACb,IAAiCF,QAG5B;IACH,IAAIM,OAAA,IAEA,GAAAC,QAAU,CAAAC,eAAA,CAAAC,SAAA,CAEZ;IACAJ,UAAA,GAAaC,OAAA,CAAQI,QAAA,CAAS,QAAQ,IAClC,SACAJ,OAAA,CAAQI,QAAA,CAAS,SAAS,IACxB,UACAR,QAAA;EACR;EAEA,OAAOH,KAAA,CAAMY,QAAA,CAAsBN,UAAU;AAC/C","ignoreList":[]}