@tamagui/theme 1.88.1 → 1.88.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.
@@ -115,14 +115,8 @@ function insertThemeCSS(themes, batch = !1) {
115
115
  return cssRules;
116
116
  }
117
117
  function updateStyle(id, rules) {
118
- var _a;
119
118
  const existing = document.querySelector(`#${id}`), style = document.createElement("style");
120
119
  style.id = id, style.appendChild(document.createTextNode(rules.join(`
121
- `))), document.head.appendChild(style), existing && ((_a = existing.parentElement) == null || _a.removeChild(existing));
120
+ `))), document.head.appendChild(style), existing && existing.parentElement?.removeChild(existing);
122
121
  }
123
- // Annotate the CommonJS export names for ESM import in node:
124
- 0 && (module.exports = {
125
- _mutateTheme,
126
- mutateThemes
127
- });
128
122
  //# sourceMappingURL=_mutateTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/_mutateTheme.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAyB,+BAEzB,aAQO,yBACP,eAAgC;AAmBzB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,GAAG;AACL,GAMG;AACD,QAAM,mBAAgD,CAAC,GACjD,eAA4C,CAAC;AAEnD,aAAW,EAAE,MAAM,MAAM,KAAK,QAAQ;AACpC,UAAM,MAAM,aAAa;AAAA,MACvB,GAAG;AAAA,MACH;AAAA,MACA;AAAA;AAAA,MAEA,aAAa;AAAA;AAAA,MAEb,cAAc;AAAA,IAChB,CAAC;AACD,IAAI,QACF,iBAAiB,IAAI,IAAI,IAAI,OAC7B,aAAa,IAAI,IAAI,IAAI;AAAA,EAE7B;AAEA,QAAM,WAAW,YAAY,eAAe,cAAc,KAAK,IAAI,CAAC;AAEpE,2CAAgB,MAAM;AACpB,eAAW,aAAa,kBAAkB;AACxC,YAAM,QAAQ,iBAAiB,SAAS;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AE,GAC1C,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,KAAK,IACX,MAAM,YAAY,SAAS,eAAe,MAAM,KAAK;AAAA,CAAI,CAAC,CAAC,GAC3D,SAAS,KAAK,YAAY,KAAK,GAC3B,YACF,SAAS,eAAe,YAAY,QAAQ;AAEhD;",
5
5
  "names": ["theme"]
6
6
  }
@@ -21,8 +21,4 @@ var import_mutateTheme = require("./_mutateTheme");
21
21
  function addTheme(props) {
22
22
  return (0, import_mutateTheme._mutateTheme)({ ...props, insertCSS: !0, mutationType: "add" });
23
23
  }
24
- // Annotate the CommonJS export names for ESM import in node:
25
- 0 && (module.exports = {
26
- addTheme
27
- });
28
24
  //# sourceMappingURL=addTheme.js.map
package/dist/cjs/index.js CHANGED
@@ -21,11 +21,4 @@ __reExport(src_exports, require("./addTheme"), module.exports);
21
21
  __reExport(src_exports, require("./updateTheme"), module.exports);
22
22
  __reExport(src_exports, require("./replaceTheme"), module.exports);
23
23
  var import_mutateTheme = require("./_mutateTheme");
24
- // Annotate the CommonJS export names for ESM import in node:
25
- 0 && (module.exports = {
26
- mutateThemes,
27
- ...require("./addTheme"),
28
- ...require("./updateTheme"),
29
- ...require("./replaceTheme")
30
- });
31
24
  //# sourceMappingURL=index.js.map
@@ -24,8 +24,4 @@ function replaceTheme({
24
24
  }) {
25
25
  return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "replace" });
26
26
  }
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- replaceTheme
30
- });
31
27
  //# sourceMappingURL=replaceTheme.js.map
@@ -24,8 +24,4 @@ function updateTheme({
24
24
  }) {
25
25
  return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "update" });
26
26
  }
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- updateTheme
30
- });
31
27
  //# sourceMappingURL=updateTheme.js.map
@@ -1,14 +1,25 @@
1
- import { isServer } from "@tamagui/constants";
2
- import {
3
- activeThemeManagers,
4
- ensureThemeVariable,
5
- getConfig,
6
- getThemeCSSRules,
7
- proxyThemeToParents,
8
- simpleHash,
9
- updateConfig
10
- } from "@tamagui/web";
11
- import { startTransition } from "react";
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 mutateTheme_exports = {};
17
+ __export(mutateTheme_exports, {
18
+ _mutateTheme: () => _mutateTheme,
19
+ mutateThemes: () => mutateThemes
20
+ });
21
+ module.exports = __toCommonJS(mutateTheme_exports);
22
+ var import_constants = require("@tamagui/constants"), import_web = require("@tamagui/web"), import_react = require("react");
12
23
  function mutateThemes({
13
24
  themes,
14
25
  batch,
@@ -29,7 +40,7 @@ function mutateThemes({
29
40
  res && (allThemesProxied[name] = res.theme, allThemesRaw[name] = res.themeRaw);
30
41
  }
31
42
  const cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];
32
- return startTransition(() => {
43
+ return (0, import_react.startTransition)(() => {
33
44
  for (const themeName in allThemesProxied) {
34
45
  const theme = allThemesProxied[themeName];
35
46
  updateThemeConfig(themeName, theme), notifyThemeManagersOfUpdate(themeName, theme);
@@ -41,11 +52,11 @@ function mutateThemes({
41
52
  };
42
53
  }
43
54
  function _mutateTheme(props) {
44
- if (isServer) {
55
+ if (import_constants.isServer) {
45
56
  process.env.NODE_ENV === "development" && console.warn("Theme mutation is not supported on server side");
46
57
  return;
47
58
  }
48
- const config = getConfig(), { name: themeName, theme: themeIn, insertCSS, mutationType } = props;
59
+ const config = (0, import_web.getConfig)(), { name: themeName, theme: themeIn, insertCSS, mutationType } = props;
49
60
  if (process.env.NODE_ENV === "development") {
50
61
  if (!config)
51
62
  throw new Error("No config");
@@ -60,8 +71,8 @@ function _mutateTheme(props) {
60
71
  ...themeIn
61
72
  };
62
73
  for (const key in theme)
63
- ensureThemeVariable(theme, key);
64
- const themeProxied = proxyThemeToParents(themeName, theme), response = {
74
+ (0, import_web.ensureThemeVariable)(theme, key);
75
+ const themeProxied = (0, import_web.proxyThemeToParents)(themeName, theme), response = {
65
76
  themeRaw: theme,
66
77
  theme: themeProxied,
67
78
  cssRules: []
@@ -71,11 +82,11 @@ function _mutateTheme(props) {
71
82
  })), updateThemeConfig(themeName, themeProxied), notifyThemeManagersOfUpdate(themeName, themeProxied)), response;
72
83
  }
73
84
  function updateThemeConfig(themeName, theme) {
74
- const config = getConfig();
75
- config.themes[themeName] = theme, updateConfig("themes", config.themes);
85
+ const config = (0, import_web.getConfig)();
86
+ config.themes[themeName] = theme, (0, import_web.updateConfig)("themes", config.themes);
76
87
  }
77
88
  function notifyThemeManagersOfUpdate(themeName, theme) {
78
- activeThemeManagers.forEach((manager) => {
89
+ import_web.activeThemeManagers.forEach((manager) => {
79
90
  manager.state.name === themeName && manager.updateStateFromProps(
80
91
  {
81
92
  name: themeName,
@@ -89,12 +100,14 @@ function insertThemeCSS(themes, batch = !1) {
89
100
  return [];
90
101
  }
91
102
  function updateStyle(id, rules) {
103
+ var _a;
92
104
  const existing = document.querySelector(`#${id}`), style = document.createElement("style");
93
105
  style.id = id, style.appendChild(document.createTextNode(rules.join(`
94
- `))), document.head.appendChild(style), existing && existing.parentElement?.removeChild(existing);
106
+ `))), document.head.appendChild(style), existing && ((_a = existing.parentElement) == null || _a.removeChild(existing));
95
107
  }
96
- export {
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
97
110
  _mutateTheme,
98
111
  mutateThemes
99
- };
112
+ });
100
113
  //# sourceMappingURL=_mutateTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/_mutateTheme.ts"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAEzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAmBzB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,GAAG;AACL,GAMG;AACD,QAAM,mBAAgD,CAAC,GACjD,eAA4C,CAAC;AAEnD,aAAW,EAAE,MAAM,MAAM,KAAK,QAAQ;AACpC,UAAM,MAAM,aAAa;AAAA,MACvB,GAAG;AAAA,MACH;AAAA,MACA;AAAA;AAAA,MAEA,aAAa;AAAA;AAAA,MAEb,cAAc;AAAA,IAChB,CAAC;AACD,IAAI,QACF,iBAAiB,IAAI,IAAI,IAAI,OAC7B,aAAa,IAAI,IAAI,IAAI;AAAA,EAE7B;AAEA,QAAM,WAAW,YAAY,eAAe,cAAc,KAAK,IAAI,CAAC;AAEpE,yBAAgB,MAAM;AACpB,eAAW,aAAa,kBAAkB;AACxC,YAAM,QAAQ,iBAAiB,SAAS;AACxC,wBAAkB,WAAW,KAAK,GAClC,4BAA4B,WAAW,KAAK;AAAA,IAC9C;AAAA,EACF,CAAC,GAEM;AAAA,IACL,QAAQ;AAAA,IACR,WAAW;AAAA,IACX;AAAA,EACF;AACF;AAEO,SAAS,aAAa,OAAiD;AAC5E,MAAI,UAAU;AACZ,IAAI,QAAQ,IAAI,aAAa,iBAC3B,QAAQ,KAAK,gDAAgD;AAE/D;AAAA,EACF;AACA,QAAM,SAAS,UAAU,GACnB,EAAE,MAAM,WAAW,OAAO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M,YAAY,SAAS,eAAe,MAAM,KAAK;AAAA,CAAI,CAAC,CAAC,GAC3D,SAAS,KAAK,YAAY,KAAK,GAC3B,cACF,cAAS,kBAAT,WAAwB,YAAY;AAExC;",
5
5
  "names": ["theme"]
6
6
  }
@@ -1,8 +1,29 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 addTheme_exports = {};
17
+ __export(addTheme_exports, {
18
+ addTheme: () => addTheme
19
+ });
20
+ module.exports = __toCommonJS(addTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function addTheme(props) {
3
- return _mutateTheme({ ...props, insertCSS: !0, mutationType: "add" });
23
+ return (0, import_mutateTheme._mutateTheme)({ ...props, insertCSS: !0, mutationType: "add" });
4
24
  }
5
- export {
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
6
27
  addTheme
7
- };
28
+ });
8
29
  //# sourceMappingURL=addTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/addTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,SAAS,OAItB;AACD,SAAO,aAAa,EAAE,GAAG,OAAO,WAAW,IAAM,cAAc,MAAM,CAAC;AACxE;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,SAAS,OAItB;AACD,aAAO,iCAAa,EAAE,GAAG,OAAO,WAAW,IAAM,cAAc,MAAM,CAAC;AACxE;",
5
5
  "names": []
6
6
  }
@@ -1,8 +1,32 @@
1
- export * from "./addTheme";
2
- export * from "./updateTheme";
3
- export * from "./replaceTheme";
4
- import { mutateThemes } from "./_mutateTheme";
5
- export {
6
- mutateThemes
7
- };
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
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var src_exports = {};
17
+ __export(src_exports, {
18
+ mutateThemes: () => import_mutateTheme.mutateThemes
19
+ });
20
+ module.exports = __toCommonJS(src_exports);
21
+ __reExport(src_exports, require("./addTheme"), module.exports);
22
+ __reExport(src_exports, require("./updateTheme"), module.exports);
23
+ __reExport(src_exports, require("./replaceTheme"), module.exports);
24
+ var import_mutateTheme = require("./_mutateTheme");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ mutateThemes,
28
+ ...require("./addTheme"),
29
+ ...require("./updateTheme"),
30
+ ...require("./replaceTheme")
31
+ });
8
32
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAAS,oBAAoB;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,uBAAd;AACA,wBAAc,0BADd;AAEA,wBAAc,2BAFd;AAGA,yBAA6B;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,32 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 replaceTheme_exports = {};
17
+ __export(replaceTheme_exports, {
18
+ replaceTheme: () => replaceTheme
19
+ });
20
+ module.exports = __toCommonJS(replaceTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function replaceTheme({
3
23
  name,
4
24
  theme
5
25
  }) {
6
- return _mutateTheme({ name, theme, insertCSS: !0, mutationType: "replace" });
26
+ return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "replace" });
7
27
  }
8
- export {
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
9
30
  replaceTheme
10
- };
31
+ });
11
32
  //# sourceMappingURL=replaceTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/replaceTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AACF,GAGG;AAED,SADa,aAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,UAAU,CAAC;AAErF;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AACF,GAGG;AAED,aADa,iCAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,UAAU,CAAC;AAErF;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,32 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 updateTheme_exports = {};
17
+ __export(updateTheme_exports, {
18
+ updateTheme: () => updateTheme
19
+ });
20
+ module.exports = __toCommonJS(updateTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function updateTheme({
3
23
  name,
4
24
  theme
5
25
  }) {
6
- return _mutateTheme({ name, theme, insertCSS: !0, mutationType: "update" });
26
+ return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "update" });
7
27
  }
8
- export {
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
9
30
  updateTheme
10
- };
31
+ });
11
32
  //# sourceMappingURL=updateTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/updateTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AACF,GAGG;AACD,SAAO,aAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,SAAS,CAAC;AAC9E;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AACF,GAGG;AACD,aAAO,iCAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,SAAS,CAAC;AAC9E;",
5
5
  "names": []
6
6
  }
@@ -1,14 +1,25 @@
1
- import { isServer } from "@tamagui/constants";
2
- import {
3
- activeThemeManagers,
4
- ensureThemeVariable,
5
- getConfig,
6
- getThemeCSSRules,
7
- proxyThemeToParents,
8
- simpleHash,
9
- updateConfig
10
- } from "@tamagui/web";
11
- import { startTransition } from "react";
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 mutateTheme_exports = {};
17
+ __export(mutateTheme_exports, {
18
+ _mutateTheme: () => _mutateTheme,
19
+ mutateThemes: () => mutateThemes
20
+ });
21
+ module.exports = __toCommonJS(mutateTheme_exports);
22
+ var import_constants = require("@tamagui/constants"), import_web = require("@tamagui/web"), import_react = require("react");
12
23
  function mutateThemes({
13
24
  themes,
14
25
  batch,
@@ -29,7 +40,7 @@ function mutateThemes({
29
40
  res && (allThemesProxied[name] = res.theme, allThemesRaw[name] = res.themeRaw);
30
41
  }
31
42
  const cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];
32
- return startTransition(() => {
43
+ return (0, import_react.startTransition)(() => {
33
44
  for (const themeName in allThemesProxied) {
34
45
  const theme = allThemesProxied[themeName];
35
46
  updateThemeConfig(themeName, theme), notifyThemeManagersOfUpdate(themeName, theme);
@@ -41,11 +52,11 @@ function mutateThemes({
41
52
  };
42
53
  }
43
54
  function _mutateTheme(props) {
44
- if (isServer) {
55
+ if (import_constants.isServer) {
45
56
  process.env.NODE_ENV === "development" && console.warn("Theme mutation is not supported on server side");
46
57
  return;
47
58
  }
48
- const config = getConfig(), { name: themeName, theme: themeIn, insertCSS, mutationType } = props;
59
+ const config = (0, import_web.getConfig)(), { name: themeName, theme: themeIn, insertCSS, mutationType } = props;
49
60
  if (process.env.NODE_ENV === "development") {
50
61
  if (!config)
51
62
  throw new Error("No config");
@@ -60,8 +71,8 @@ function _mutateTheme(props) {
60
71
  ...themeIn
61
72
  };
62
73
  for (const key in theme)
63
- ensureThemeVariable(theme, key);
64
- const themeProxied = proxyThemeToParents(themeName, theme), response = {
74
+ (0, import_web.ensureThemeVariable)(theme, key);
75
+ const themeProxied = (0, import_web.proxyThemeToParents)(themeName, theme), response = {
65
76
  themeRaw: theme,
66
77
  theme: themeProxied,
67
78
  cssRules: []
@@ -71,11 +82,11 @@ function _mutateTheme(props) {
71
82
  })), updateThemeConfig(themeName, themeProxied), notifyThemeManagersOfUpdate(themeName, themeProxied)), response;
72
83
  }
73
84
  function updateThemeConfig(themeName, theme) {
74
- const config = getConfig();
75
- config.themes[themeName] = theme, updateConfig("themes", config.themes);
85
+ const config = (0, import_web.getConfig)();
86
+ config.themes[themeName] = theme, (0, import_web.updateConfig)("themes", config.themes);
76
87
  }
77
88
  function notifyThemeManagersOfUpdate(themeName, theme) {
78
- activeThemeManagers.forEach((manager) => {
89
+ import_web.activeThemeManagers.forEach((manager) => {
79
90
  manager.state.name === themeName && manager.updateStateFromProps(
80
91
  {
81
92
  name: themeName,
@@ -94,8 +105,9 @@ function updateStyle(id, rules) {
94
105
  style.id = id, style.appendChild(document.createTextNode(rules.join(`
95
106
  `))), document.head.appendChild(style), existing && ((_a = existing.parentElement) == null || _a.removeChild(existing));
96
107
  }
97
- export {
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
98
110
  _mutateTheme,
99
111
  mutateThemes
100
- };
112
+ });
101
113
  //# sourceMappingURL=_mutateTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/_mutateTheme.ts"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAEzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAmBzB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,GAAG;AACL,GAMG;AACD,QAAM,mBAAgD,CAAC,GACjD,eAA4C,CAAC;AAEnD,aAAW,EAAE,MAAM,MAAM,KAAK,QAAQ;AACpC,UAAM,MAAM,aAAa;AAAA,MACvB,GAAG;AAAA,MACH;AAAA,MACA;AAAA;AAAA,MAEA,aAAa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AAY,GACzC,4BAA4B,WAAW,YAAY,IAE5C;AACT;AAEA,SAAS,kBAAkB,WAAmB,OAAoB;AAChE,QAAM,aAAS,sBAAU;AACzB,SAAO,OAAO,SAAS,IAAI,WAC3B,yBAAa,UAAU,OAAO,MAAM;AACtC;AAEA,SAAS,4BAA4B,WAAmB,OAAoB;AAC1E,iCAAoB,QAAQ,CAAC,YAAY;AACvC,IAAI,QAAQ,MAAM,SAAS,aACzB,QAAQ;AAAA,MACN;AAAA,QACE,MAAM;AAAA,QACN,YAAY;AAAA,MACd;AAAA,MACA;AAAA,IACF;AAAA,EAEJ,CAAC;AACH;AAEA,SAAS,eAAe,QAAsC,QAAe,IAAO;AAEhF,SAAO,CAAC;AA8BZ;AAEA,SAAS,YAAY,IAAY,OAAiB;AA9LlD;AA+LE,QAAM,WAAW,SAAS,cAAc,IAAI,EAAE,EAAE,GAC1C,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,KAAK,IACX,MAAM,YAAY,SAAS,eAAe,MAAM,KAAK;AAAA,CAAI,CAAC,CAAC,GAC3D,SAAS,KAAK,YAAY,KAAK,GAC3B,cACF,cAAS,kBAAT,WAAwB,YAAY;AAExC;",
5
5
  "names": ["theme"]
6
6
  }
@@ -1,8 +1,29 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 addTheme_exports = {};
17
+ __export(addTheme_exports, {
18
+ addTheme: () => addTheme
19
+ });
20
+ module.exports = __toCommonJS(addTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function addTheme(props) {
3
- return _mutateTheme({ ...props, insertCSS: !0, mutationType: "add" });
23
+ return (0, import_mutateTheme._mutateTheme)({ ...props, insertCSS: !0, mutationType: "add" });
4
24
  }
5
- export {
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
6
27
  addTheme
7
- };
28
+ });
8
29
  //# sourceMappingURL=addTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/addTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,SAAS,OAItB;AACD,SAAO,aAAa,EAAE,GAAG,OAAO,WAAW,IAAM,cAAc,MAAM,CAAC;AACxE;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,SAAS,OAItB;AACD,aAAO,iCAAa,EAAE,GAAG,OAAO,WAAW,IAAM,cAAc,MAAM,CAAC;AACxE;",
5
5
  "names": []
6
6
  }
@@ -1,8 +1,32 @@
1
- export * from "./addTheme";
2
- export * from "./updateTheme";
3
- export * from "./replaceTheme";
4
- import { mutateThemes } from "./_mutateTheme";
5
- export {
6
- mutateThemes
7
- };
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
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var src_exports = {};
17
+ __export(src_exports, {
18
+ mutateThemes: () => import_mutateTheme.mutateThemes
19
+ });
20
+ module.exports = __toCommonJS(src_exports);
21
+ __reExport(src_exports, require("./addTheme"), module.exports);
22
+ __reExport(src_exports, require("./updateTheme"), module.exports);
23
+ __reExport(src_exports, require("./replaceTheme"), module.exports);
24
+ var import_mutateTheme = require("./_mutateTheme");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ mutateThemes,
28
+ ...require("./addTheme"),
29
+ ...require("./updateTheme"),
30
+ ...require("./replaceTheme")
31
+ });
8
32
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAAS,oBAAoB;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,uBAAd;AACA,wBAAc,0BADd;AAEA,wBAAc,2BAFd;AAGA,yBAA6B;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,32 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 replaceTheme_exports = {};
17
+ __export(replaceTheme_exports, {
18
+ replaceTheme: () => replaceTheme
19
+ });
20
+ module.exports = __toCommonJS(replaceTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function replaceTheme({
3
23
  name,
4
24
  theme
5
25
  }) {
6
- return _mutateTheme({ name, theme, insertCSS: !0, mutationType: "replace" });
26
+ return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "replace" });
7
27
  }
8
- export {
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
9
30
  replaceTheme
10
- };
31
+ });
11
32
  //# sourceMappingURL=replaceTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/replaceTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AACF,GAGG;AAED,SADa,aAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,UAAU,CAAC;AAErF;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AACF,GAGG;AAED,aADa,iCAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,UAAU,CAAC;AAErF;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,32 @@
1
- import { _mutateTheme } from "./_mutateTheme";
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 updateTheme_exports = {};
17
+ __export(updateTheme_exports, {
18
+ updateTheme: () => updateTheme
19
+ });
20
+ module.exports = __toCommonJS(updateTheme_exports);
21
+ var import_mutateTheme = require("./_mutateTheme");
2
22
  function updateTheme({
3
23
  name,
4
24
  theme
5
25
  }) {
6
- return _mutateTheme({ name, theme, insertCSS: !0, mutationType: "update" });
26
+ return (0, import_mutateTheme._mutateTheme)({ name, theme, insertCSS: !0, mutationType: "update" });
7
27
  }
8
- export {
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
9
30
  updateTheme
10
- };
31
+ });
11
32
  //# sourceMappingURL=updateTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/updateTheme.ts"],
4
- "mappings": "AAEA,SAAS,oBAAoB;AAEtB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AACF,GAGG;AACD,SAAO,aAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,SAAS,CAAC;AAC9E;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAA6B;AAEtB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AACF,GAGG;AACD,aAAO,iCAAa,EAAE,MAAM,OAAO,WAAW,IAAM,cAAc,SAAS,CAAC;AAC9E;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/theme",
3
- "version": "1.88.1",
3
+ "version": "1.88.2",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -21,14 +21,14 @@
21
21
  "clean:build": "tamagui-build clean:build"
22
22
  },
23
23
  "dependencies": {
24
- "@tamagui/constants": "1.88.1",
25
- "@tamagui/web": "1.88.1"
24
+ "@tamagui/constants": "1.88.2",
25
+ "@tamagui/web": "1.88.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "1.88.1",
31
+ "@tamagui/build": "1.88.2",
32
32
  "react": "^18.2.0"
33
33
  },
34
34
  "publishConfig": {