@hanzogui/theme 8.3.1 → 8.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/cjs/_mutateTheme.js +135 -0
  2. package/dist/cjs/_mutateTheme.js.map +1 -0
  3. package/dist/cjs/addTheme.js +8 -0
  4. package/dist/cjs/addTheme.js.map +1 -0
  5. package/dist/cjs/index.js +10 -0
  6. package/dist/cjs/index.js.map +1 -0
  7. package/dist/cjs/package.json +1 -0
  8. package/dist/cjs/replaceTheme.js +9 -0
  9. package/dist/cjs/replaceTheme.js.map +1 -0
  10. package/dist/cjs/updateTheme.js +8 -0
  11. package/dist/cjs/updateTheme.js.map +1 -0
  12. package/dist/esm/_mutateTheme.js +131 -0
  13. package/dist/esm/_mutateTheme.js.map +1 -0
  14. package/dist/esm/addTheme.js +5 -0
  15. package/dist/esm/addTheme.js.map +1 -0
  16. package/dist/esm/index.js +5 -6
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/replaceTheme.js +6 -0
  19. package/dist/esm/replaceTheme.js.map +1 -0
  20. package/dist/esm/updateTheme.js +5 -0
  21. package/dist/esm/updateTheme.js.map +1 -0
  22. package/package.json +21 -16
  23. package/src/addTheme.ts +1 -1
  24. package/src/index.ts +5 -5
  25. package/src/replaceTheme.ts +1 -1
  26. package/src/updateTheme.ts +1 -1
  27. package/types/index.d.ts +5 -5
  28. package/types/index.d.ts.map +1 -1
  29. package/dist/cjs/_mutateTheme.cjs +0 -141
  30. package/dist/cjs/_mutateTheme.native.js +0 -137
  31. package/dist/cjs/_mutateTheme.native.js.map +0 -1
  32. package/dist/cjs/addTheme.cjs +0 -35
  33. package/dist/cjs/addTheme.native.js +0 -38
  34. package/dist/cjs/addTheme.native.js.map +0 -1
  35. package/dist/cjs/index.cjs +0 -32
  36. package/dist/cjs/index.native.js +0 -35
  37. package/dist/cjs/index.native.js.map +0 -1
  38. package/dist/cjs/replaceTheme.cjs +0 -40
  39. package/dist/cjs/replaceTheme.native.js +0 -44
  40. package/dist/cjs/replaceTheme.native.js.map +0 -1
  41. package/dist/cjs/updateTheme.cjs +0 -39
  42. package/dist/cjs/updateTheme.native.js +0 -43
  43. package/dist/cjs/updateTheme.native.js.map +0 -1
  44. package/dist/esm/_mutateTheme.mjs +0 -115
  45. package/dist/esm/_mutateTheme.mjs.map +0 -1
  46. package/dist/esm/_mutateTheme.native.js +0 -108
  47. package/dist/esm/_mutateTheme.native.js.map +0 -1
  48. package/dist/esm/addTheme.mjs +0 -10
  49. package/dist/esm/addTheme.mjs.map +0 -1
  50. package/dist/esm/addTheme.native.js +0 -10
  51. package/dist/esm/addTheme.native.js.map +0 -1
  52. package/dist/esm/index.mjs +0 -6
  53. package/dist/esm/index.mjs.map +0 -1
  54. package/dist/esm/index.native.js +0 -6
  55. package/dist/esm/index.native.js.map +0 -1
  56. package/dist/esm/replaceTheme.mjs +0 -15
  57. package/dist/esm/replaceTheme.mjs.map +0 -1
  58. package/dist/esm/replaceTheme.native.js +0 -16
  59. package/dist/esm/replaceTheme.native.js.map +0 -1
  60. package/dist/esm/updateTheme.mjs +0 -14
  61. package/dist/esm/updateTheme.mjs.map +0 -1
  62. package/dist/esm/updateTheme.native.js +0 -15
  63. package/dist/esm/updateTheme.native.js.map +0 -1
@@ -1,141 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var mutateTheme_exports = {};
24
- __export(mutateTheme_exports, {
25
- _mutateTheme: () => _mutateTheme,
26
- mutateThemes: () => mutateThemes
27
- });
28
- module.exports = __toCommonJS(mutateTheme_exports);
29
- var import_constants = require("@hanzogui/constants");
30
- var import_start_transition = require("@hanzogui/start-transition");
31
- var import_web = require("@hanzogui/web");
32
- function mutateThemes({
33
- themes,
34
- batch,
35
- insertCSS = true,
36
- ...props
37
- }) {
38
- const allThemesProxied = {};
39
- const allThemesRaw = {};
40
- for (const {
41
- name,
42
- theme
43
- } of themes) {
44
- const res = _mutateTheme({
45
- ...props,
46
- name,
47
- theme,
48
- avoidUpdate: true,
49
- mutationType: "add"
50
- });
51
- if (res) {
52
- allThemesProxied[name] = res.theme;
53
- allThemesRaw[name] = res.themeRaw;
54
- }
55
- }
56
- const cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];
57
- (0, import_start_transition.startTransition)(() => {
58
- for (const themeName in allThemesProxied) {
59
- const theme = allThemesProxied[themeName];
60
- updateThemeConfig(themeName, theme);
61
- }
62
- updateThemeStates();
63
- });
64
- return {
65
- themes: allThemesProxied,
66
- themesRaw: allThemesRaw,
67
- cssRules
68
- };
69
- }
70
- function _mutateTheme(props) {
71
- if (import_constants.isServer) {
72
- if (process.env.NODE_ENV === "development") console.warn("Theme mutation is not supported on server side");
73
- return;
74
- }
75
- const config = (0, import_web.getConfig)();
76
- const {
77
- name: themeName,
78
- theme: themeIn,
79
- insertCSS,
80
- mutationType
81
- } = props;
82
- if (process.env.NODE_ENV === "development") {
83
- if (!config) throw new Error("No config");
84
- const theme2 = config.themes[props.name];
85
- if (mutationType !== "add" && !theme2) throw new Error(`${mutationType === "replace" ? "Replace" : "Update"} theme failed! Theme ${props.name} does not exist`);
86
- }
87
- const theme = {
88
- ...(mutationType === "update" ? config.themes[themeName] ?? {} : {}),
89
- ...themeIn
90
- };
91
- for (const key in theme) (0, import_web.ensureThemeVariable)(theme, key);
92
- const themeProxied = (0, import_web.proxyThemeToParents)(themeName, theme);
93
- const response = {
94
- themeRaw: theme,
95
- theme: themeProxied,
96
- cssRules: []
97
- };
98
- if (props.avoidUpdate) return response;
99
- if (insertCSS) response.cssRules = insertThemeCSS({
100
- [themeName]: theme
101
- });
102
- updateThemeConfig(themeName, themeProxied);
103
- updateThemeStates();
104
- return response;
105
- }
106
- function updateThemeConfig(themeName, theme) {
107
- const config = (0, import_web.getConfig)();
108
- config.themes[themeName] = theme;
109
- (0, import_web.updateConfig)("themes", config.themes);
110
- }
111
- function updateThemeStates() {
112
- (0, import_web.forceUpdateThemes)();
113
- }
114
- function insertThemeCSS(themes, batch = false) {
115
- const config = (0, import_web.getConfig)();
116
- let cssRules = [];
117
- for (const themeName in themes) {
118
- const theme = themes[themeName];
119
- const rules = (0, import_web.getThemeCSSRules)({
120
- config,
121
- themeName,
122
- names: [themeName],
123
- hasDarkLight: true,
124
- theme,
125
- useMutatedVariables: true
126
- });
127
- cssRules = [...cssRules, ...rules];
128
- if (!batch) updateStyle(`t_theme_style_${themeName}`, rules);
129
- }
130
- if (import_web.mutatedAutoVariables.length > 0) updateStyle(`t_mutate_vars`, [`:root{${import_web.mutatedAutoVariables.map(v => `--${v.name}:${v.val}`).join(";")}}`]);
131
- if (batch) updateStyle(`t_theme_style_${typeof batch == "string" ? batch : (0, import_web.simpleHash)(Object.keys(themes).join(""))}`, cssRules);
132
- return cssRules;
133
- }
134
- function updateStyle(id, rules) {
135
- const existing = document.querySelector(`#${id}`);
136
- const style = document.createElement("style");
137
- style.id = id;
138
- style.appendChild(document.createTextNode(rules.join("\n")));
139
- document.head.appendChild(style);
140
- if (existing) existing.parentElement?.removeChild(existing);
141
- }
@@ -1,137 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var mutateTheme_exports = {};
26
- __export(mutateTheme_exports, {
27
- _mutateTheme: () => _mutateTheme,
28
- mutateThemes: () => mutateThemes
29
- });
30
- module.exports = __toCommonJS(mutateTheme_exports);
31
- var import_constants = require("@hanzogui/constants");
32
- var import_start_transition = require("@hanzogui/start-transition");
33
- var import_web = require("@hanzogui/web");
34
- function mutateThemes(param) {
35
- var {
36
- themes,
37
- batch,
38
- insertCSS = true,
39
- ...props
40
- } = param;
41
- var allThemesProxied = {};
42
- var allThemesRaw = {};
43
- var _iteratorNormalCompletion = true,
44
- _didIteratorError = false,
45
- _iteratorError = void 0;
46
- try {
47
- for (var _iterator = themes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
48
- var {
49
- name,
50
- theme
51
- } = _step.value;
52
- var res = _mutateTheme({
53
- ...props,
54
- name,
55
- theme,
56
- avoidUpdate: true,
57
- mutationType: "add"
58
- });
59
- if (res) {
60
- allThemesProxied[name] = res.theme;
61
- allThemesRaw[name] = res.themeRaw;
62
- }
63
- }
64
- } catch (err) {
65
- _didIteratorError = true;
66
- _iteratorError = err;
67
- } finally {
68
- try {
69
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
70
- } finally {
71
- if (_didIteratorError) throw _iteratorError;
72
- }
73
- }
74
- var cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];
75
- (0, import_start_transition.startTransition)(function () {
76
- for (var themeName in allThemesProxied) {
77
- var theme2 = allThemesProxied[themeName];
78
- updateThemeConfig(themeName, theme2);
79
- }
80
- updateThemeStates();
81
- });
82
- return {
83
- themes: allThemesProxied,
84
- themesRaw: allThemesRaw,
85
- cssRules
86
- };
87
- }
88
- function _mutateTheme(props) {
89
- if (import_constants.isServer) {
90
- if (process.env.NODE_ENV === "development") console.warn("Theme mutation is not supported on server side");
91
- return;
92
- }
93
- var config = (0, import_web.getConfig)();
94
- var {
95
- name: themeName,
96
- theme: themeIn,
97
- insertCSS,
98
- mutationType
99
- } = props;
100
- if (process.env.NODE_ENV === "development") {
101
- if (!config) throw new Error("No config");
102
- var theme = config.themes[props.name];
103
- if (mutationType !== "add" && !theme) throw new Error(`${mutationType === "replace" ? "Replace" : "Update"} theme failed! Theme ${props.name} does not exist`);
104
- }
105
- var _config_themes_themeName;
106
- var theme1 = {
107
- ...(mutationType === "update" ? (_config_themes_themeName = config.themes[themeName]) !== null && _config_themes_themeName !== void 0 ? _config_themes_themeName : {} : {}),
108
- ...themeIn
109
- };
110
- for (var key in theme1) (0, import_web.ensureThemeVariable)(theme1, key);
111
- var themeProxied = (0, import_web.proxyThemeToParents)(themeName, theme1);
112
- var response = {
113
- themeRaw: theme1,
114
- theme: themeProxied,
115
- cssRules: []
116
- };
117
- if (props.avoidUpdate) return response;
118
- if (insertCSS) response.cssRules = insertThemeCSS({
119
- [themeName]: theme1
120
- });
121
- updateThemeConfig(themeName, themeProxied);
122
- updateThemeStates();
123
- return response;
124
- }
125
- function updateThemeConfig(themeName, theme) {
126
- var config = (0, import_web.getConfig)();
127
- config.themes[themeName] = theme;
128
- (0, import_web.updateConfig)("themes", config.themes);
129
- }
130
- function updateThemeStates() {
131
- (0, import_web.forceUpdateThemes)();
132
- }
133
- function insertThemeCSS(themes) {
134
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
135
- return [];
136
- }
137
- //# sourceMappingURL=_mutateTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","mutateTheme_exports","_mutateTheme","mutateThemes","module","exports","import_constants","require","import_start_transition","import_web","param","themes","batch","insertCSS","props","allThemesProxied","allThemesRaw","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","theme","res","avoidUpdate","mutationType","themeRaw","err","return","cssRules","insertThemeCSS","startTransition","themeName","theme2","updateThemeConfig","updateThemeStates","themesRaw","isServer","process","env","NODE_ENV","console","warn","config","getConfig","themeIn","Error","_config_themes_themeName","theme1","ensureThemeVariable","themeProxied","proxyThemeToParents","response","updateConfig","forceUpdateThemes","arguments","length"],"sources":["_mutateTheme.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar mutateTheme_exports = {};\n__export(mutateTheme_exports, {\n\t_mutateTheme: () => _mutateTheme,\n\tmutateThemes: () => mutateThemes\n});\nmodule.exports = __toCommonJS(mutateTheme_exports);\nvar import_constants = require(\"@hanzogui/constants\");\nvar import_start_transition = require(\"@hanzogui/start-transition\");\nvar import_web = require(\"@hanzogui/web\");\nfunction mutateThemes(param) {\n\tvar { themes, batch, insertCSS = true, ...props } = param;\n\tvar allThemesProxied = {};\n\tvar allThemesRaw = {};\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = themes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar { name, theme } = _step.value;\n\t\t\tvar res = _mutateTheme({\n\t\t\t\t...props,\n\t\t\t\tname,\n\t\t\t\ttheme,\n\t\t\t\tavoidUpdate: true,\n\t\t\t\tmutationType: \"add\"\n\t\t\t});\n\t\t\tif (res) {\n\t\t\t\tallThemesProxied[name] = res.theme;\n\t\t\t\tallThemesRaw[name] = res.themeRaw;\n\t\t\t}\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tvar cssRules = insertCSS ? insertThemeCSS(allThemesRaw, batch) : [];\n\t(0, import_start_transition.startTransition)(function() {\n\t\tfor (var themeName in allThemesProxied) {\n\t\t\tvar theme2 = allThemesProxied[themeName];\n\t\t\tupdateThemeConfig(themeName, theme2);\n\t\t}\n\t\tupdateThemeStates();\n\t});\n\treturn {\n\t\tthemes: allThemesProxied,\n\t\tthemesRaw: allThemesRaw,\n\t\tcssRules\n\t};\n}\nfunction _mutateTheme(props) {\n\tif (import_constants.isServer) {\n\t\tif (process.env.NODE_ENV === \"development\") console.warn(\"Theme mutation is not supported on server side\");\n\t\treturn;\n\t}\n\tvar config = (0, import_web.getConfig)();\n\tvar { name: themeName, theme: themeIn, insertCSS, mutationType } = props;\n\tif (process.env.NODE_ENV === \"development\") {\n\t\tif (!config) throw new Error(\"No config\");\n\t\tvar theme = config.themes[props.name];\n\t\tif (mutationType !== \"add\" && !theme) throw new Error(`${mutationType === \"replace\" ? \"Replace\" : \"Update\"} theme failed! Theme ${props.name} does not exist`);\n\t}\n\tvar _config_themes_themeName;\n\tvar theme1 = {\n\t\t...mutationType === \"update\" ? (_config_themes_themeName = config.themes[themeName]) !== null && _config_themes_themeName !== void 0 ? _config_themes_themeName : {} : {},\n\t\t...themeIn\n\t};\n\tfor (var key in theme1) (0, import_web.ensureThemeVariable)(theme1, key);\n\tvar themeProxied = (0, import_web.proxyThemeToParents)(themeName, theme1);\n\tvar response = {\n\t\tthemeRaw: theme1,\n\t\ttheme: themeProxied,\n\t\tcssRules: []\n\t};\n\tif (props.avoidUpdate) return response;\n\tif (insertCSS) response.cssRules = insertThemeCSS({ [themeName]: theme1 });\n\tupdateThemeConfig(themeName, themeProxied);\n\tupdateThemeStates();\n\treturn response;\n}\nfunction updateThemeConfig(themeName, theme) {\n\tvar config = (0, import_web.getConfig)();\n\tconfig.themes[themeName] = theme;\n\t(0, import_web.updateConfig)(\"themes\", config.themes);\n}\nfunction updateThemeStates() {\n\t(0, import_web.forceUpdateThemes)();\n}\nfunction insertThemeCSS(themes) {\n\targuments.length > 1 && arguments[1] !== void 0 && arguments[1];\n\treturn [];\n}\n//# sourceMappingURL=_mutateTheme.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC/B,KAAK,IAAIC,IA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iBAAiBA,CAAA,EAAG;EAC5B,CAAC,CAAC,EAAE9B,UAAU,CAACiD,iBAAiB,EAAE,CAAC;AACpC;AACA,SAASxB,cAAcA,CAACvB,MAAM,EAAE;EAC/BgD,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAIA,SAAS,CAAC,CAAC,CAAC;EAC/D,OAAO,EAAE;AACV","ignoreList":[]}
@@ -1,35 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var addTheme_exports = {};
24
- __export(addTheme_exports, {
25
- addTheme: () => addTheme
26
- });
27
- module.exports = __toCommonJS(addTheme_exports);
28
- var import_mutateTheme = require("./_mutateTheme.cjs");
29
- function addTheme(props) {
30
- return (0, import_mutateTheme._mutateTheme)({
31
- ...props,
32
- insertCSS: true,
33
- mutationType: "add"
34
- });
35
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var addTheme_exports = {};
26
- __export(addTheme_exports, {
27
- addTheme: () => addTheme
28
- });
29
- module.exports = __toCommonJS(addTheme_exports);
30
- var import_mutateTheme = require("./_mutateTheme.native.js");
31
- function addTheme(props) {
32
- return (0, import_mutateTheme._mutateTheme)({
33
- ...props,
34
- insertCSS: true,
35
- mutationType: "add"
36
- });
37
- }
38
- //# sourceMappingURL=addTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","addTheme_exports","addTheme","module","exports","import_mutateTheme","require","props","_mutateTheme","insertCSS","mutationType"],"sources":["addTheme.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar addTheme_exports = {};\n__export(addTheme_exports, {\n addTheme: () => addTheme\n});\nmodule.exports = __toCommonJS(addTheme_exports);\nvar import_mutateTheme = require(\"./_mutateTheme\");\nfunction addTheme(props) {\n return (0, import_mutateTheme._mutateTheme)({\n ...props,\n insertCSS: true,\n mutationType: \"add\"\n });\n}\n//# sourceMappingURL=addTheme.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,gBAAgB,GAAG,CAAC,CAAC;AACzBhB,QAAQ,CAACgB,gBAAgB,EAAE;EACzBC,QAAQ,EAAEA,CAAA,KAAMA;AAClB,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACG,gBAAgB,CAAC;AAC/C,IAAII,kBAAkB,GAAGC,OAAO,CAAC,0BAAgB,CAAC;AAClD,SAASJ,QAAQA,CAACK,KAAK,EAAE;EACvB,OAAO,CAAC,CAAC,EAAEF,kBAAkB,CAACG,YAAY,EAAE;IAC1C,GAAGD,KAAK;IACRE,SAAS,EAAE,IAAI;IACfC,YAAY,EAAE;EAChB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
24
- var index_exports = {};
25
- __export(index_exports, {
26
- mutateThemes: () => import_mutateTheme.mutateThemes
27
- });
28
- module.exports = __toCommonJS(index_exports);
29
- __reExport(index_exports, require("./addTheme.cjs"), module.exports);
30
- __reExport(index_exports, require("./updateTheme.cjs"), module.exports);
31
- __reExport(index_exports, require("./replaceTheme.cjs"), module.exports);
32
- var import_mutateTheme = require("./_mutateTheme.cjs");
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
- value: true
25
- }), mod);
26
- var index_exports = {};
27
- __export(index_exports, {
28
- mutateThemes: () => import_mutateTheme.mutateThemes
29
- });
30
- module.exports = __toCommonJS(index_exports);
31
- __reExport(index_exports, require("./addTheme.native.js"), module.exports);
32
- __reExport(index_exports, require("./updateTheme.native.js"), module.exports);
33
- __reExport(index_exports, require("./replaceTheme.native.js"), module.exports);
34
- var import_mutateTheme = require("./_mutateTheme.native.js");
35
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__reExport","mod","secondTarget","__toCommonJS","value","index_exports","mutateThemes","import_mutateTheme","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n mutateThemes: () => import_mutateTheme.mutateThemes\n});\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./addTheme\"), module.exports);\n__reExport(index_exports, require(\"./updateTheme\"), module.exports);\n__reExport(index_exports, require(\"./replaceTheme\"), module.exports);\nvar import_mutateTheme = require(\"./_mutateTheme\");\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA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AAY,EAAEA,CAAA,KAAMC,kBAAkB,CAACD;AACzC,CAAC,CAAC;AACFE,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACE,aAAa,CAAC;AAC5CL,UAAU,CAACK,aAAa,EAAEK,OAAO,CAAC,sBAAY,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AAChET,UAAU,CAACK,aAAa,EAAEK,OAAO,CAAC,yBAAe,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACnET,UAAU,CAACK,aAAa,EAAEK,OAAO,CAAC,0BAAgB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACpE,IAAIF,kBAAkB,GAAGG,OAAO,CAAC,0BAAgB,CAAC","ignoreList":[]}
@@ -1,40 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var replaceTheme_exports = {};
24
- __export(replaceTheme_exports, {
25
- replaceTheme: () => replaceTheme
26
- });
27
- module.exports = __toCommonJS(replaceTheme_exports);
28
- var import_mutateTheme = require("./_mutateTheme.cjs");
29
- function replaceTheme({
30
- name,
31
- theme
32
- }) {
33
- const next = (0, import_mutateTheme._mutateTheme)({
34
- name,
35
- theme,
36
- insertCSS: true,
37
- mutationType: "replace"
38
- });
39
- return next;
40
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var replaceTheme_exports = {};
26
- __export(replaceTheme_exports, {
27
- replaceTheme: () => replaceTheme
28
- });
29
- module.exports = __toCommonJS(replaceTheme_exports);
30
- var import_mutateTheme = require("./_mutateTheme.native.js");
31
- function replaceTheme(param) {
32
- var {
33
- name,
34
- theme
35
- } = param;
36
- var next = (0, import_mutateTheme._mutateTheme)({
37
- name,
38
- theme,
39
- insertCSS: true,
40
- mutationType: "replace"
41
- });
42
- return next;
43
- }
44
- //# sourceMappingURL=replaceTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","replaceTheme_exports","replaceTheme","module","exports","import_mutateTheme","require","param","theme","next","_mutateTheme","insertCSS","mutationType"],"sources":["replaceTheme.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar replaceTheme_exports = {};\n__export(replaceTheme_exports, {\n replaceTheme: () => replaceTheme\n});\nmodule.exports = __toCommonJS(replaceTheme_exports);\nvar import_mutateTheme = require(\"./_mutateTheme\");\nfunction replaceTheme(param) {\n var { name, theme } = param;\n var next = (0, import_mutateTheme._mutateTheme)({\n name,\n theme,\n insertCSS: true,\n mutationType: \"replace\"\n });\n return next;\n}\n//# sourceMappingURL=replaceTheme.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,oBAAoB,GAAG,CAAC,CAAC;AAC7BhB,QAAQ,CAACgB,oBAAoB,EAAE;EAC7BC,YAAY,EAAEA,CAAA,KAAMA;AACtB,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACG,oBAAoB,CAAC;AACnD,IAAII,kBAAkB,GAAGC,OAAO,CAAC,0BAAgB,CAAC;AAClD,SAASJ,YAAYA,CAACK,KAAK,EAAE;EAC3B,IAAI;IAAEnB,IAAI;IAAEoB;EAAM,CAAC,GAAGD,KAAK;EAC3B,IAAIE,IAAI,GAAG,CAAC,CAAC,EAAEJ,kBAAkB,CAACK,YAAY,EAAE;IAC9CtB,IAAI;IACJoB,KAAK;IACLG,SAAS,EAAE,IAAI;IACfC,YAAY,EAAE;EAChB,CAAC,CAAC;EACF,OAAOH,IAAI;AACb","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var updateTheme_exports = {};
24
- __export(updateTheme_exports, {
25
- updateTheme: () => updateTheme
26
- });
27
- module.exports = __toCommonJS(updateTheme_exports);
28
- var import_mutateTheme = require("./_mutateTheme.cjs");
29
- function updateTheme({
30
- name,
31
- theme
32
- }) {
33
- return (0, import_mutateTheme._mutateTheme)({
34
- name,
35
- theme,
36
- insertCSS: true,
37
- mutationType: "update"
38
- });
39
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var updateTheme_exports = {};
26
- __export(updateTheme_exports, {
27
- updateTheme: () => updateTheme
28
- });
29
- module.exports = __toCommonJS(updateTheme_exports);
30
- var import_mutateTheme = require("./_mutateTheme.native.js");
31
- function updateTheme(param) {
32
- var {
33
- name,
34
- theme
35
- } = param;
36
- return (0, import_mutateTheme._mutateTheme)({
37
- name,
38
- theme,
39
- insertCSS: true,
40
- mutationType: "update"
41
- });
42
- }
43
- //# sourceMappingURL=updateTheme.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","updateTheme_exports","updateTheme","module","exports","import_mutateTheme","require","param","theme","_mutateTheme","insertCSS","mutationType"],"sources":["updateTheme.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar updateTheme_exports = {};\n__export(updateTheme_exports, {\n updateTheme: () => updateTheme\n});\nmodule.exports = __toCommonJS(updateTheme_exports);\nvar import_mutateTheme = require(\"./_mutateTheme\");\nfunction updateTheme(param) {\n var { name, theme } = param;\n return (0, import_mutateTheme._mutateTheme)({\n name,\n theme,\n insertCSS: true,\n mutationType: \"update\"\n });\n}\n//# sourceMappingURL=updateT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