@tamagui/theme 1.125.6 → 1.125.7

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.
@@ -2,18 +2,32 @@ import { isServer } from "@tamagui/constants";
2
2
  import { startTransition } from "@tamagui/start-transition";
3
3
  import { ensureThemeVariable, forceUpdateThemes, getConfig, getThemeCSSRules, proxyThemeToParents, simpleHash, updateConfig } from "@tamagui/web";
4
4
  function mutateThemes(param) {
5
- var { themes, batch, insertCSS = !0, ...props } = param, allThemesProxied = {}, allThemesRaw = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5
+ var {
6
+ themes,
7
+ batch,
8
+ insertCSS = !0,
9
+ ...props
10
+ } = param,
11
+ allThemesProxied = {},
12
+ allThemesRaw = {},
13
+ _iteratorNormalCompletion = !0,
14
+ _didIteratorError = !1,
15
+ _iteratorError = void 0;
6
16
  try {
7
17
  for (var _iterator = themes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
8
- var { name, theme } = _step.value, res = _mutateTheme({
9
- ...props,
10
- name,
11
- theme,
12
- // we'll do one update at the end
13
- avoidUpdate: !0,
14
- // always add which also replaces but doesnt fail first time
15
- mutationType: "add"
16
- });
18
+ var {
19
+ name,
20
+ theme
21
+ } = _step.value,
22
+ res = _mutateTheme({
23
+ ...props,
24
+ name,
25
+ theme,
26
+ // we'll do one update at the end
27
+ avoidUpdate: !0,
28
+ // always add which also replaces but doesnt fail first time
29
+ mutationType: "add"
30
+ });
17
31
  res && (allThemesProxied[name] = res.theme, allThemesRaw[name] = res.themeRaw);
18
32
  }
19
33
  } catch (err) {
@@ -22,12 +36,11 @@ function mutateThemes(param) {
22
36
  try {
23
37
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
24
38
  } finally {
25
- if (_didIteratorError)
26
- throw _iteratorError;
39
+ if (_didIteratorError) throw _iteratorError;
27
40
  }
28
41
  }
29
42
  var cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];
30
- return startTransition(function() {
43
+ return startTransition(function () {
31
44
  for (var themeName in allThemesProxied) {
32
45
  var theme2 = allThemesProxied[themeName];
33
46
  updateThemeConfig(themeName, theme2);
@@ -44,25 +57,30 @@ function _mutateTheme(props) {
44
57
  process.env.NODE_ENV === "development" && console.warn("Theme mutation is not supported on server side");
45
58
  return;
46
59
  }
47
- var config = getConfig(), { name: themeName, theme: themeIn, insertCSS, mutationType } = props;
60
+ var config = getConfig(),
61
+ {
62
+ name: themeName,
63
+ theme: themeIn,
64
+ insertCSS,
65
+ mutationType
66
+ } = props;
48
67
  if (process.env.NODE_ENV === "development") {
49
- if (!config)
50
- throw new Error("No config");
68
+ if (!config) throw new Error("No config");
51
69
  var theme = config.themes[props.name];
52
- if (mutationType !== "add" && !theme)
53
- throw new Error(`${mutationType === "replace" ? "Replace" : "Update"} theme failed! Theme ${props.name} does not exist`);
70
+ if (mutationType !== "add" && !theme) throw new Error(`${mutationType === "replace" ? "Replace" : "Update"} theme failed! Theme ${props.name} does not exist`);
54
71
  }
55
- var _config_themes_themeName, theme1 = {
56
- ...mutationType === "update" ? (_config_themes_themeName = config.themes[themeName]) !== null && _config_themes_themeName !== void 0 ? _config_themes_themeName : {} : {},
57
- ...themeIn
58
- };
59
- for (var key in theme1)
60
- ensureThemeVariable(theme1, key);
61
- var themeProxied = proxyThemeToParents(themeName, theme1), response = {
62
- themeRaw: theme1,
63
- theme: themeProxied,
64
- cssRules: []
65
- };
72
+ var _config_themes_themeName,
73
+ theme1 = {
74
+ ...(mutationType === "update" ? (_config_themes_themeName = config.themes[themeName]) !== null && _config_themes_themeName !== void 0 ? _config_themes_themeName : {} : {}),
75
+ ...themeIn
76
+ };
77
+ for (var key in theme1) ensureThemeVariable(theme1, key);
78
+ var themeProxied = proxyThemeToParents(themeName, theme1),
79
+ response = {
80
+ themeRaw: theme1,
81
+ theme: themeProxied,
82
+ cssRules: []
83
+ };
66
84
  return props.avoidUpdate || (insertCSS && (response.cssRules = insertThemeCSS({
67
85
  [themeName]: theme1
68
86
  })), updateThemeConfig(themeName, themeProxied), updateThemeStates()), response;
@@ -79,19 +97,15 @@ function insertThemeCSS(themes) {
79
97
  return [];
80
98
  var config, cssRules;
81
99
  for (var themeName in themes) {
82
- var theme = themes[themeName], rules = getThemeCSSRules({
83
- config,
84
- themeName,
85
- names: [
86
- themeName
87
- ],
88
- hasDarkLight: !0,
89
- theme
90
- });
91
- cssRules = [
92
- ...cssRules,
93
- ...rules
94
- ], batch || updateStyle(`t_theme_style_${themeName}`, rules);
100
+ var theme = themes[themeName],
101
+ rules = getThemeCSSRules({
102
+ config,
103
+ themeName,
104
+ names: [themeName],
105
+ hasDarkLight: !0,
106
+ theme
107
+ });
108
+ cssRules = [...cssRules, ...rules], batch || updateStyle(`t_theme_style_${themeName}`, rules);
95
109
  }
96
110
  if (batch) {
97
111
  var id;
@@ -99,15 +113,13 @@ function insertThemeCSS(themes) {
99
113
  }
100
114
  }
101
115
  function updateStyle(id, rules) {
102
- var existing = document.querySelector(`#${id}`), style = document.createElement("style");
116
+ var existing = document.querySelector(`#${id}`),
117
+ style = document.createElement("style");
103
118
  if (style.id = id, style.appendChild(document.createTextNode(rules.join(`
104
119
  `))), document.head.appendChild(style), existing) {
105
120
  var _existing_parentElement;
106
121
  (_existing_parentElement = existing.parentElement) === null || _existing_parentElement === void 0 || _existing_parentElement.removeChild(existing);
107
122
  }
108
123
  }
109
- export {
110
- _mutateTheme,
111
- mutateThemes
112
- };
113
- //# sourceMappingURL=_mutateTheme.js.map
124
+ export { _mutateTheme, mutateThemes };
125
+ //# sourceMappingURL=_mutateTheme.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/theme/src/_mutateTheme.ts"],
4
- "mappings": "AAAA,SAASA,gBAAgB;AACzB,SAASC,uBAAuB;AAEhC,SACEC,qBACAC,mBACAC,WACAC,kBACAC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OAAO;AACT,QAAMiC;AACND,gBAAY,iBAAiBC,EAAAA,IAAMrB,QAAAA;EACrC;AAGF;AAEA,SAASoB,YAAYC,IAAYJ,OAAe;AAC9C,MAAMK,WAAWC,SAASC,cAAc,IAAIH,EAAAA,EAAI,GAC1CI,QAAQF,SAASG,cAAc,OAAA;AAIrC,MAHAD,MAAMJ,KAAKA,IACXI,MAAME,YAAYJ,SAASK,eAAeX,MAAMY,KAAK;CAAA,CAAA,CAAA,GACrDN,SAASO,KAAKH,YAAYF,KAAAA,GACtBH,UAAU;QACZA;KAAAA,0BAAAA,SAASS,mBAAa,QAAtBT,4BAAAA,UAAAA,wBAAwBU,YAAYV,QAAAA;EACtC;AACF;",
5
- "names": ["isServer", "startTransition", "ensureThemeVariable", "forceUpdateThemes", "getConfig", "getThemeCSSRules", "proxyThemeToParents", "simpleHash", "updateConfig", "mutateThemes", "themes", "batch", "insertCSS", "props", "allThemesProxied", "allThemesRaw", "name", "theme", "res", "_mutateTheme", "avoidUpdate", "mutationType", "themeRaw", "cssRules", "insertThemeCSS", "themeName", "updateThemeConfig", "updateThemeStates", "themesRaw", "process", "env", "NODE_ENV", "console", "warn", "config", "themeIn", "Error", "key", "themeProxied", "response", "rules", "names", "hasDarkLight", "updateStyle", "id", "existing", "document", "querySelector", "style", "createElement", "appendChild", "createTextNode", "join", "head", "parentElement", "removeChild"]
6
- }
1
+ {"version":3,"names":["isServer","startTransition","ensureThemeVariable","forceUpdateThemes","getConfig","getThemeCSSRules","proxyThemeToParents","simpleHash","updateConfig","mutateThemes","param","themes","batch","insertCSS","props","allThemesProxied","allThemesRaw","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","name","theme","value","res","_mutateTheme","avoidUpdate","mutationType","themeRaw","err","return","cssRules","insertThemeCSS","themeName","theme2","updateThemeConfig","updateThemeStates","themesRaw","process","env","NODE_ENV","console","warn","config","themeIn","Error","_config_themes_themeName","theme1","key","themeProxied","response","arguments","length","rules","names","hasDarkLight","updateStyle","id","existing","document","querySelector","style","createElement","appendChild","createTextNode","join","head"],"sources":["../../src/_mutateTheme.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,eAAA,QAAuB;AAEhC,SAAAC,mBAAA,EAAAC,iBAAA,EAAAC,SAAA,EAAAC,gBAAA,EAAAC,mBAAA,EAAAC,UAAA,EAAAC,YAAA;AAAA,SACEC,aAAAC,KAAA;EACA;MAAAC,MAAA;MAAAC,KAAA;MAAAC,SAAA;MAAA,GAAAC;IAAA,IAAAJ,KAAA;IAAAK,gBAAA;IAAAC,YAAA;IAAAC,yBAAA;IAAAC,iBAAA;IAAAC,cAAA;EACA;IACA,SAAAC,SAAA,GAAAT,MAAA,CAAAU,MAAA,CAAAC,QAAA,KAAAC,KAAA,IAAAN,yBAAA,IAAAM,KAAA,GAAAH,SAAA,CAAAI,IAAA,IAAAC,IAAA,GAAAR,yBAAA;MACA;UAAAS,IAAA;UAAAC;QAAA,IAAAJ,KAAA,CAAAK,KAAA;QAAAC,GAAA,GAAAC,YAAA;UACA,GAAAhB,KAAA;UACAY,IAAA;UACKC,KAAA;UAmBA;UACLI,WAAA;UACA;UACAC,YAAY;QACT;MAMFH,GAAA,KAAAd,gBAAA,CAAAW,IAAA,IAAAG,GAAA,CAAAF,KAAA,EAAAX,YAAA,CAAAU,IAAA,IAAAG,GAAA,CAAAI,QAAA;IACD;EAEA,SAAAC,GAAW,EAAE;IACXhB,iBAAY,OAAAC,cAAa,GAAAe,GAAA;EAAA,UACpB;IAAA,IACH;MACA,CAAAjB,yBAAA,IAAAG,SAAA,CAAAe,MAAA,YAAAf,SAAA,CAAAe,MAAA;IAAA;MAEA,IAAAjB,iBAAa,QAAAC,cAAA;IAAA;EAEC;EAEhB,IAAIiB,QACF,GAAAvB,SAAA,GAAiBwB,cAAY,CAAArB,YAC7B,EAAAJ,KAAa,IAAI,EAAI;EAEzB,OAAAX,eAAA;IAEA,KAAM,IAAAq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C3B,CAAAK,cACO,CAAAX,KAAA,CAAAY,IAAA;AAEb,MAAAN,QAAA,CAAAO,IAAA,CAAAH,WAAA,CAAAF,KAAA,GAAAH,QAAA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { _mutateTheme } from "./_mutateTheme";
1
+ import { _mutateTheme } from "./_mutateTheme.native.js";
2
2
  function addTheme(props) {
3
3
  return _mutateTheme({
4
4
  ...props,
@@ -6,7 +6,5 @@ function addTheme(props) {
6
6
  mutationType: "add"
7
7
  });
8
8
  }
9
- export {
10
- addTheme
11
- };
12
- //# sourceMappingURL=addTheme.js.map
9
+ export { addTheme };
10
+ //# sourceMappingURL=addTheme.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/theme/src/addTheme.ts"],
4
- "mappings": "AAEA,SAASA,oBAAoB;AAEtB,SAASC,SAASC,OAIxB;AACC,SAAOF,aAAa;IAAE,GAAGE;IAAOC,WAAW;IAAMC,cAAc;EAAM,CAAA;AACvE;",
5
- "names": ["_mutateTheme", "addTheme", "props", "insertCSS", "mutationType"]
6
- }
1
+ {"version":3,"names":["_mutateTheme","addTheme","props"],"sources":["../../src/addTheme.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,YAAA,QAAoB;AAEtB,SAASC,SAASC,KAAA,EAItB;EACD,OAAOF,YAAA,CAAa;IACtB,GAAAE,KAAA","ignoreList":[]}
@@ -1,8 +1,6 @@
1
- export * from "./addTheme";
2
- export * from "./updateTheme";
3
- export * from "./replaceTheme";
4
- import { mutateThemes } from "./_mutateTheme";
5
- export {
6
- mutateThemes
7
- };
8
- //# sourceMappingURL=index.js.map
1
+ export * from "./addTheme.native.js";
2
+ export * from "./updateTheme.native.js";
3
+ export * from "./replaceTheme.native.js";
4
+ import { mutateThemes } from "./_mutateTheme.native.js";
5
+ export { mutateThemes };
6
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/theme/src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAASA,oBAAoB;",
5
- "names": ["mutateThemes"]
6
- }
1
+ {"version":3,"names":["mutateThemes"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAASA,YAAA,QAAoB","ignoreList":[]}
@@ -1,14 +1,16 @@
1
- import { _mutateTheme } from "./_mutateTheme";
1
+ import { _mutateTheme } from "./_mutateTheme.native.js";
2
2
  function replaceTheme(param) {
3
- var { name, theme } = param, next = _mutateTheme({
4
- name,
5
- theme,
6
- insertCSS: !0,
7
- mutationType: "replace"
8
- });
3
+ var {
4
+ name,
5
+ theme
6
+ } = param,
7
+ next = _mutateTheme({
8
+ name,
9
+ theme,
10
+ insertCSS: !0,
11
+ mutationType: "replace"
12
+ });
9
13
  return next;
10
14
  }
11
- export {
12
- replaceTheme
13
- };
14
- //# sourceMappingURL=replaceTheme.js.map
15
+ export { replaceTheme };
16
+ //# sourceMappingURL=replaceTheme.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/theme/src/replaceTheme.ts"],
4
- "mappings": "AAEA,SAASA,oBAAoB;AAEtB,SAASC,aAAa,OAM5B;MAN4B,EAC3BC,MACAC,MAAK,IAFsB,OAOrBC,OAAOJ,aAAa;IAAEE;IAAMC;IAAOE,WAAW;IAAMC,cAAc;EAAU,CAAA;AAClF,SAAOF;AACT;",
5
- "names": ["_mutateTheme", "replaceTheme", "name", "theme", "next", "insertCSS", "mutationType"]
6
- }
1
+ {"version":3,"names":["_mutateTheme","replaceTheme","param","name","theme","next","insertCSS","mutationType"],"sources":["../../src/replaceTheme.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,YAAA,QAAoB;AAEtB,SAASC,aAAaC,KAAA;EAC3B;MAAAC,IAAA;MAAAC;IAAA,IAAAF,KAAA;IAAAG,IAAA,GAAAL,YAAA;MACAG,IAAA;MAICC,KAAA;MAEDE,SADa;MAEfC,YAAA","ignoreList":[]}
@@ -1,6 +1,9 @@
1
- import { _mutateTheme } from "./_mutateTheme";
1
+ import { _mutateTheme } from "./_mutateTheme.native.js";
2
2
  function updateTheme(param) {
3
- var { name, theme } = param;
3
+ var {
4
+ name,
5
+ theme
6
+ } = param;
4
7
  return _mutateTheme({
5
8
  name,
6
9
  theme,
@@ -8,7 +11,5 @@ function updateTheme(param) {
8
11
  mutationType: "update"
9
12
  });
10
13
  }
11
- export {
12
- updateTheme
13
- };
14
- //# sourceMappingURL=updateTheme.js.map
14
+ export { updateTheme };
15
+ //# sourceMappingURL=updateTheme.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/theme/src/updateTheme.ts"],
4
- "mappings": "AAEA,SAASA,oBAAoB;AAEtB,SAASC,YAAY,OAM3B;MAN2B,EAC1BC,MACAC,MAAK,IAFqB;AAO1B,SAAOH,aAAa;IAAEE;IAAMC;IAAOC,WAAW;IAAMC,cAAc;EAAS,CAAA;AAC7E;",
5
- "names": ["_mutateTheme", "updateTheme", "name", "theme", "insertCSS", "mutationType"]
6
- }
1
+ {"version":3,"names":["_mutateTheme","updateTheme","param","name","theme","insertCSS"],"sources":["../../src/updateTheme.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,YAAA,QAAoB;AAEtB,SAASC,YAAYC,KAAA;EAC1B;IAAAC,IAAA;IAAAC;EAAA,IAAAF,KAAA;EACA,OAAAF,YAAA;IAICG,IAAA;IACDC,KAAO;IACTC,SAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/theme",
3
- "version": "1.125.6",
3
+ "version": "1.125.7",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@tamagui/constants": "1.125.6",
37
- "@tamagui/web": "1.125.6"
36
+ "@tamagui/constants": "1.125.7",
37
+ "@tamagui/web": "1.125.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "1.125.6",
40
+ "@tamagui/build": "1.125.7",
41
41
  "react": "*"
42
42
  },
43
43
  "publishConfig": {