@tamagui/web 1.82.1 → 1.82.3

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 (128) hide show
  1. package/dist/cjs/createComponent.js +2 -2
  2. package/dist/cjs/createComponent.js.map +1 -1
  3. package/dist/cjs/createComponent.native.js +2 -2
  4. package/dist/cjs/createComponent.native.js.map +1 -1
  5. package/dist/cjs/helpers/ThemeManager.js +12 -8
  6. package/dist/cjs/helpers/ThemeManager.js.map +1 -1
  7. package/dist/cjs/helpers/ThemeManager.native.js +12 -8
  8. package/dist/cjs/helpers/ThemeManager.native.js.map +1 -1
  9. package/dist/cjs/helpers/expandStyle.native.js +1 -1
  10. package/dist/cjs/helpers/getSplitStyles.js +1 -1
  11. package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
  12. package/dist/cjs/helpers/getSplitStyles.native.js +2 -2
  13. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  14. package/dist/cjs/helpers/themeable.js +4 -1
  15. package/dist/cjs/helpers/themeable.js.map +1 -1
  16. package/dist/cjs/helpers/themeable.native.js +4 -1
  17. package/dist/cjs/helpers/themeable.native.js.map +1 -1
  18. package/dist/cjs/hooks/useTheme.js +1 -1
  19. package/dist/cjs/hooks/useTheme.js.map +1 -1
  20. package/dist/cjs/hooks/useTheme.native.js +1 -1
  21. package/dist/cjs/hooks/useTheme.native.js.map +1 -1
  22. package/dist/cjs/views/Theme.js +28 -27
  23. package/dist/cjs/views/Theme.js.map +2 -2
  24. package/dist/cjs/views/Theme.native.js +28 -27
  25. package/dist/cjs/views/Theme.native.js.map +2 -2
  26. package/dist/cjs/views/ThemeDebug.js +3 -5
  27. package/dist/cjs/views/ThemeDebug.js.map +1 -1
  28. package/dist/esm/createComponent.js +3 -3
  29. package/dist/esm/createComponent.js.map +1 -1
  30. package/dist/esm/createComponent.native.js +3 -3
  31. package/dist/esm/createComponent.native.js.map +1 -1
  32. package/dist/esm/helpers/ThemeManager.js +12 -8
  33. package/dist/esm/helpers/ThemeManager.js.map +1 -1
  34. package/dist/esm/helpers/ThemeManager.native.js +12 -8
  35. package/dist/esm/helpers/ThemeManager.native.js.map +1 -1
  36. package/dist/esm/helpers/expandStyle.native.js +1 -1
  37. package/dist/esm/helpers/getSplitStyles.js +1 -1
  38. package/dist/esm/helpers/getSplitStyles.js.map +1 -1
  39. package/dist/esm/helpers/getSplitStyles.native.js +2 -2
  40. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  41. package/dist/esm/helpers/themeable.js +4 -1
  42. package/dist/esm/helpers/themeable.js.map +1 -1
  43. package/dist/esm/helpers/themeable.native.js +4 -1
  44. package/dist/esm/helpers/themeable.native.js.map +1 -1
  45. package/dist/esm/hooks/useTheme.js +1 -1
  46. package/dist/esm/hooks/useTheme.js.map +1 -1
  47. package/dist/esm/hooks/useTheme.native.js +1 -1
  48. package/dist/esm/hooks/useTheme.native.js.map +1 -1
  49. package/dist/esm/views/Theme.js +28 -34
  50. package/dist/esm/views/Theme.js.map +2 -2
  51. package/dist/esm/views/Theme.native.js +28 -34
  52. package/dist/esm/views/Theme.native.js.map +2 -2
  53. package/dist/esm/views/ThemeDebug.js +3 -4
  54. package/dist/esm/views/ThemeDebug.js.map +1 -1
  55. package/package.json +10 -10
  56. package/src/createComponent.tsx +3 -3
  57. package/src/helpers/ThemeManager.tsx +12 -8
  58. package/src/helpers/getSplitStyles.tsx +1 -1
  59. package/src/helpers/themeable.tsx +4 -2
  60. package/src/hooks/useTheme.tsx +1 -1
  61. package/src/views/Theme.tsx +44 -52
  62. package/src/views/ThemeDebug.tsx +7 -5
  63. package/types/helpers/ThemeManager.d.ts +1 -1
  64. package/types/helpers/ThemeManager.d.ts.map +1 -1
  65. package/types/helpers/themeable.d.ts.map +1 -1
  66. package/types/views/Theme.d.ts +1 -1
  67. package/types/views/Theme.d.ts.map +1 -1
  68. package/types/views/ThemeDebug.d.ts.map +1 -1
  69. package/dist/cjs/helpers/createChainedWeakCache.js +0 -53
  70. package/dist/cjs/helpers/createChainedWeakCache.js.map +0 -6
  71. package/dist/cjs/helpers/createChainedWeakCache.native.js +0 -54
  72. package/dist/cjs/helpers/createChainedWeakCache.native.js.map +0 -6
  73. package/dist/cjs/helpers/createProxy.js +0 -34
  74. package/dist/cjs/helpers/createProxy.js.map +0 -6
  75. package/dist/cjs/helpers/createProxy.native.js +0 -35
  76. package/dist/cjs/helpers/createProxy.native.js.map +0 -6
  77. package/dist/cjs/helpers/withStaticProperties.js +0 -40
  78. package/dist/cjs/helpers/withStaticProperties.js.map +0 -6
  79. package/dist/cjs/helpers/withStaticProperties.native.js +0 -41
  80. package/dist/cjs/helpers/withStaticProperties.native.js.map +0 -6
  81. package/dist/cjs/hooks/getThemeUnwrapped.js +0 -27
  82. package/dist/cjs/hooks/getThemeUnwrapped.js.map +0 -6
  83. package/dist/cjs/hooks/getThemeUnwrapped.native.js +0 -28
  84. package/dist/cjs/hooks/getThemeUnwrapped.native.js.map +0 -6
  85. package/dist/cjs/hooks/useId.js +0 -25
  86. package/dist/cjs/hooks/useId.js.map +0 -6
  87. package/dist/cjs/hooks/useId.native.js +0 -26
  88. package/dist/cjs/hooks/useId.native.js.map +0 -6
  89. package/dist/cjs/hooks/useMemoDebug.js +0 -30
  90. package/dist/cjs/hooks/useMemoDebug.js.map +0 -6
  91. package/dist/cjs/hooks/useMemoDebug.native.js +0 -31
  92. package/dist/cjs/hooks/useMemoDebug.native.js.map +0 -6
  93. package/dist/esm/helpers/createChainedWeakCache.js +0 -33
  94. package/dist/esm/helpers/createChainedWeakCache.js.map +0 -6
  95. package/dist/esm/helpers/createChainedWeakCache.native.js +0 -33
  96. package/dist/esm/helpers/createChainedWeakCache.native.js.map +0 -6
  97. package/dist/esm/helpers/createProxy.js +0 -14
  98. package/dist/esm/helpers/createProxy.js.map +0 -6
  99. package/dist/esm/helpers/createProxy.native.js +0 -14
  100. package/dist/esm/helpers/createProxy.native.js.map +0 -6
  101. package/dist/esm/helpers/withStaticProperties.js +0 -20
  102. package/dist/esm/helpers/withStaticProperties.js.map +0 -6
  103. package/dist/esm/helpers/withStaticProperties.native.js +0 -20
  104. package/dist/esm/helpers/withStaticProperties.native.js.map +0 -6
  105. package/dist/esm/hooks/getThemeUnwrapped.js +0 -6
  106. package/dist/esm/hooks/getThemeUnwrapped.js.map +0 -6
  107. package/dist/esm/hooks/getThemeUnwrapped.native.js +0 -6
  108. package/dist/esm/hooks/getThemeUnwrapped.native.js.map +0 -6
  109. package/dist/esm/hooks/useId.js +0 -5
  110. package/dist/esm/hooks/useId.js.map +0 -6
  111. package/dist/esm/hooks/useId.native.js +0 -5
  112. package/dist/esm/hooks/useId.native.js.map +0 -6
  113. package/dist/esm/hooks/useMemoDebug.js +0 -10
  114. package/dist/esm/hooks/useMemoDebug.js.map +0 -6
  115. package/dist/esm/hooks/useMemoDebug.native.js +0 -10
  116. package/dist/esm/hooks/useMemoDebug.native.js.map +0 -6
  117. package/types/helpers/createChainedWeakCache.d.ts +0 -5
  118. package/types/helpers/createChainedWeakCache.d.ts.map +0 -1
  119. package/types/helpers/createProxy.d.ts +0 -2
  120. package/types/helpers/createProxy.d.ts.map +0 -1
  121. package/types/helpers/withStaticProperties.d.ts +0 -4
  122. package/types/helpers/withStaticProperties.d.ts.map +0 -1
  123. package/types/hooks/getThemeUnwrapped.d.ts +0 -3
  124. package/types/hooks/getThemeUnwrapped.d.ts.map +0 -1
  125. package/types/hooks/useId.d.ts +0 -2
  126. package/types/hooks/useId.d.ts.map +0 -1
  127. package/types/hooks/useMemoDebug.d.ts +0 -3
  128. package/types/hooks/useMemoDebug.d.ts.map +0 -1
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useId.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;",
5
- "names": []
6
- }
@@ -1,26 +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 useId_exports = {};
17
- __export(useId_exports, {
18
- useId: () => import_react.useId
19
- });
20
- module.exports = __toCommonJS(useId_exports);
21
- var import_react = require("react");
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- useId
25
- });
26
- //# sourceMappingURL=useId.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useId.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;",
5
- "names": []
6
- }
@@ -1,30 +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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var useMemoDebug_exports = {};
16
- __export(useMemoDebug_exports, {
17
- useMemoDebug: () => useMemoDebug
18
- });
19
- module.exports = __toCommonJS(useMemoDebug_exports);
20
- var import_react = require("react");
21
- const useMemoDebug = (fn, args) => {
22
- let run = 1;
23
- const res = (0, import_react.useMemo)(() => (run = 0, fn()), args);
24
- return run === 1 && console.info("saved a run"), res;
25
- };
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {
28
- useMemoDebug
29
- });
30
- //# sourceMappingURL=useMemoDebug.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useMemoDebug.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAwB;AAEjB,MAAM,eAA+B,CAAC,IAAI,SAAS;AACxD,MAAI,MAAM;AAEV,QAAM,UAAM,sBAAQ,OAClB,MAAM,GACC,GAAG,IACT,IAAI;AAEP,SAAI,QAAQ,KACV,QAAQ,KAAK,aAAa,GAGrB;AACT;",
5
- "names": []
6
- }
@@ -1,31 +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 useMemoDebug_exports = {};
17
- __export(useMemoDebug_exports, {
18
- useMemoDebug: () => useMemoDebug
19
- });
20
- module.exports = __toCommonJS(useMemoDebug_exports);
21
- var import_react = require("react");
22
- const useMemoDebug = (fn, args) => {
23
- let run = 1;
24
- const res = (0, import_react.useMemo)(() => (run = 0, fn()), args);
25
- return run === 1 && console.info("saved a run"), res;
26
- };
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- useMemoDebug
30
- });
31
- //# sourceMappingURL=useMemoDebug.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useMemoDebug.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAwB;AAEjB,MAAM,eAA+B,CAAC,IAAI,SAAS;AACxD,MAAI,MAAM;AAEV,QAAM,UAAM,sBAAQ,OAClB,MAAM,GACC,GAAG,IACT,IAAI;AAEP,SAAI,QAAQ,KACV,QAAQ,KAAK,aAAa,GAGrB;AACT;",
5
- "names": []
6
- }
@@ -1,33 +0,0 @@
1
- const createChainedWeakCache = () => {
2
- const baseMap = /* @__PURE__ */ new WeakMap();
3
- return {
4
- get: (args) => {
5
- let cur = baseMap;
6
- for (let arg of args)
7
- if (cur.has(arg))
8
- cur = cur.get(arg);
9
- else
10
- return;
11
- return cur;
12
- },
13
- set(args, result) {
14
- const len = args.length;
15
- let cur = baseMap;
16
- for (let i = 0; i < len; i++) {
17
- const arg = args[i];
18
- if (i === len - 1)
19
- cur.set(arg, result);
20
- else if (cur.has(arg))
21
- cur = cur.get(arg);
22
- else {
23
- const next = /* @__PURE__ */ new WeakMap();
24
- cur.set(arg, next), cur = next;
25
- }
26
- }
27
- }
28
- };
29
- };
30
- export {
31
- createChainedWeakCache
32
- };
33
- //# sourceMappingURL=createChainedWeakCache.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/createChainedWeakCache.tsx"],
4
- "mappings": "AAAO,MAAM,yBAAyB,MAAM;AAC1C,QAAM,UAAU,oBAAI,QAAQ;AAE5B,SAAO;AAAA,IACL,KAAK,CAAC,SAAgB;AACpB,UAAI,MAAM;AACV,eAAS,OAAO;AACd,YAAI,IAAI,IAAI,GAAG;AACb,gBAAM,IAAI,IAAI,GAAG;AAAA;AAEjB;AAGJ,aAAO;AAAA,IACT;AAAA,IAEA,IAAI,MAAa,QAAa;AAC5B,YAAM,MAAM,KAAK;AACjB,UAAI,MAAM;AAEV,eAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,cAAM,MAAM,KAAK,CAAC;AAGlB,YAFe,MAAM,MAAM;AAGzB,cAAK,IAAI,KAAK,MAAM;AAAA,iBAEhB,IAAI,IAAI,GAAG;AACb,gBAAM,IAAI,IAAI,GAAG;AAAA,aACZ;AACL,gBAAM,OAAO,oBAAI,QAAQ;AACzB,cAAI,IAAI,KAAK,IAAI,GACjB,MAAM;AAAA,QACR;AAAA,MAEJ;AAAA,IACF;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,33 +0,0 @@
1
- const createChainedWeakCache = () => {
2
- const baseMap = /* @__PURE__ */ new WeakMap();
3
- return {
4
- get: (args) => {
5
- let cur = baseMap;
6
- for (let arg of args)
7
- if (cur.has(arg))
8
- cur = cur.get(arg);
9
- else
10
- return;
11
- return cur;
12
- },
13
- set(args, result) {
14
- const len = args.length;
15
- let cur = baseMap;
16
- for (let i = 0; i < len; i++) {
17
- const arg = args[i];
18
- if (i === len - 1)
19
- cur.set(arg, result);
20
- else if (cur.has(arg))
21
- cur = cur.get(arg);
22
- else {
23
- const next = /* @__PURE__ */ new WeakMap();
24
- cur.set(arg, next), cur = next;
25
- }
26
- }
27
- }
28
- };
29
- };
30
- export {
31
- createChainedWeakCache
32
- };
33
- //# sourceMappingURL=createChainedWeakCache.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/createChainedWeakCache.tsx"],
4
- "mappings": "AAAO,MAAM,yBAAyB,MAAM;AAC1C,QAAM,UAAU,oBAAI,QAAQ;AAE5B,SAAO;AAAA,IACL,KAAK,CAAC,SAAgB;AACpB,UAAI,MAAM;AACV,eAAS,OAAO;AACd,YAAI,IAAI,IAAI,GAAG;AACb,gBAAM,IAAI,IAAI,GAAG;AAAA;AAEjB;AAGJ,aAAO;AAAA,IACT;AAAA,IAEA,IAAI,MAAa,QAAa;AAC5B,YAAM,MAAM,KAAK;AACjB,UAAI,MAAM;AAEV,eAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,cAAM,MAAM,KAAK,CAAC;AAGlB,YAFe,MAAM,MAAM;AAGzB,cAAK,IAAI,KAAK,MAAM;AAAA,iBAEhB,IAAI,IAAI,GAAG;AACb,gBAAM,IAAI,IAAI,GAAG;AAAA,aACZ;AACL,gBAAM,OAAO,oBAAI,QAAQ;AACzB,cAAI,IAAI,KAAK,IAAI,GACjB,MAAM;AAAA,QACR;AAAA,MAEJ;AAAA,IACF;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,14 +0,0 @@
1
- function createProxy(target, handler) {
2
- return process.env.NODE_ENV === "development" && (typeof target != "object" || !target) && console.warn(
3
- "Invalid object given for proxy:",
4
- target,
5
- `
6
-
7
- This can be due to a missing theme or configuration given to Tamagui.`,
8
- new Error().stack
9
- ), new Proxy(target || {}, handler);
10
- }
11
- export {
12
- createProxy
13
- };
14
- //# sourceMappingURL=createProxy.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/createProxy.ts"],
4
- "mappings": "AAAO,SAAS,YAA8B,QAAW,SAA0B;AACjF,SAAI,QAAQ,IAAI,aAAa,kBACvB,OAAO,UAAW,YAAY,CAAC,WACjC,QAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,IAAI,MAAM,EAAE;AAAA,EACd,GAGG,IAAI,MAAM,UAAU,CAAC,GAAG,OAAO;AACxC;",
5
- "names": []
6
- }
@@ -1,14 +0,0 @@
1
- function createProxy(target, handler) {
2
- return process.env.NODE_ENV === "development" && (typeof target != "object" || !target) && console.warn(
3
- "Invalid object given for proxy:",
4
- target,
5
- `
6
-
7
- This can be due to a missing theme or configuration given to Tamagui.`,
8
- new Error().stack
9
- ), new Proxy(target || {}, handler);
10
- }
11
- export {
12
- createProxy
13
- };
14
- //# sourceMappingURL=createProxy.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/createProxy.ts"],
4
- "mappings": "AAAO,SAAS,YAA8B,QAAW,SAA0B;AACjF,SAAI,QAAQ,IAAI,aAAa,kBACvB,OAAO,UAAW,YAAY,CAAC,WACjC,QAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,IAAI,MAAM,EAAE;AAAA,EACd,GAGG,IAAI,MAAM,UAAU,CAAC,GAAG,OAAO;AACxC;",
5
- "names": []
6
- }
@@ -1,20 +0,0 @@
1
- import { createElement, forwardRef } from "react";
2
- const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
3
- const next = (() => {
4
- if (component[Decorated]) {
5
- const _ = forwardRef(
6
- (props, ref) => createElement(component, { ...props, ref })
7
- );
8
- for (const key in component) {
9
- const v = component[key];
10
- _[key] = v && typeof v == "object" ? { ...v } : v;
11
- }
12
- }
13
- return component;
14
- })();
15
- return Object.assign(next, staticProps), next[Decorated] = !0, next;
16
- };
17
- export {
18
- withStaticProperties
19
- };
20
- //# sourceMappingURL=withStaticProperties.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/withStaticProperties.tsx"],
4
- "mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,IAAI;AAAA,QAAW,CAAC,OAAO,QAC3B,cAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
- "names": []
6
- }
@@ -1,20 +0,0 @@
1
- import { createElement, forwardRef } from "react";
2
- const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
3
- const next = (() => {
4
- if (component[Decorated]) {
5
- const _ = forwardRef(
6
- (props, ref) => createElement(component, { ...props, ref })
7
- );
8
- for (const key in component) {
9
- const v = component[key];
10
- _[key] = v && typeof v == "object" ? { ...v } : v;
11
- }
12
- }
13
- return component;
14
- })();
15
- return Object.assign(next, staticProps), next[Decorated] = !0, next;
16
- };
17
- export {
18
- withStaticProperties
19
- };
20
- //# sourceMappingURL=withStaticProperties.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/withStaticProperties.tsx"],
4
- "mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,IAAI;AAAA,QAAW,CAAC,OAAO,QAC3B,cAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- const getThemeUnwrapped = (theme) => theme?.[GetThemeUnwrapped] || theme, GetThemeUnwrapped = Symbol();
2
- export {
3
- GetThemeUnwrapped,
4
- getThemeUnwrapped
5
- };
6
- //# sourceMappingURL=getThemeUnwrapped.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/getThemeUnwrapped.tsx"],
4
- "mappings": "AAAO,MAAM,oBAAoB,CAAC,UACzB,QAAQ,iBAAiB,KAAK,OAG1B,oBAAoB,OAAO;",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- const getThemeUnwrapped = (theme) => theme?.[GetThemeUnwrapped] || theme, GetThemeUnwrapped = Symbol();
2
- export {
3
- GetThemeUnwrapped,
4
- getThemeUnwrapped
5
- };
6
- //# sourceMappingURL=getThemeUnwrapped.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/getThemeUnwrapped.tsx"],
4
- "mappings": "AAAO,MAAM,oBAAoB,CAAC,UACzB,QAAQ,iBAAiB,KAAK,OAG1B,oBAAoB,OAAO;",
5
- "names": []
6
- }
@@ -1,5 +0,0 @@
1
- import { useId } from "react";
2
- export {
3
- useId
4
- };
5
- //# sourceMappingURL=useId.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useId.tsx"],
4
- "mappings": "AAAA,SAAS,aAAa;",
5
- "names": []
6
- }
@@ -1,5 +0,0 @@
1
- import { useId } from "react";
2
- export {
3
- useId
4
- };
5
- //# sourceMappingURL=useId.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useId.tsx"],
4
- "mappings": "AAAA,SAAS,aAAa;",
5
- "names": []
6
- }
@@ -1,10 +0,0 @@
1
- import { useMemo } from "react";
2
- const useMemoDebug = (fn, args) => {
3
- let run = 1;
4
- const res = useMemo(() => (run = 0, fn()), args);
5
- return run === 1 && console.info("saved a run"), res;
6
- };
7
- export {
8
- useMemoDebug
9
- };
10
- //# sourceMappingURL=useMemoDebug.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useMemoDebug.tsx"],
4
- "mappings": "AAEA,SAAS,eAAe;AAEjB,MAAM,eAA+B,CAAC,IAAI,SAAS;AACxD,MAAI,MAAM;AAEV,QAAM,MAAM,QAAQ,OAClB,MAAM,GACC,GAAG,IACT,IAAI;AAEP,SAAI,QAAQ,KACV,QAAQ,KAAK,aAAa,GAGrB;AACT;",
5
- "names": []
6
- }
@@ -1,10 +0,0 @@
1
- import { useMemo } from "react";
2
- const useMemoDebug = (fn, args) => {
3
- let run = 1;
4
- const res = useMemo(() => (run = 0, fn()), args);
5
- return run === 1 && console.info("saved a run"), res;
6
- };
7
- export {
8
- useMemoDebug
9
- };
10
- //# sourceMappingURL=useMemoDebug.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/hooks/useMemoDebug.tsx"],
4
- "mappings": "AAEA,SAAS,eAAe;AAEjB,MAAM,eAA+B,CAAC,IAAI,SAAS;AACxD,MAAI,MAAM;AAEV,QAAM,MAAM,QAAQ,OAClB,MAAM,GACC,GAAG,IACT,IAAI;AAEP,SAAI,QAAQ,KACV,QAAQ,KAAK,aAAa,GAGrB;AACT;",
5
- "names": []
6
- }
@@ -1,5 +0,0 @@
1
- export declare const createChainedWeakCache: () => {
2
- get: (args: any[]) => WeakMap<WeakKey, any> | undefined;
3
- set(args: any[], result: any): void;
4
- };
5
- //# sourceMappingURL=createChainedWeakCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createChainedWeakCache.d.ts","sourceRoot":"","sources":["../../src/helpers/createChainedWeakCache.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;gBAInB,GAAG,EAAE;cAYP,GAAG,EAAE,UAAU,GAAG;CAsB/B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare function createProxy<A extends object>(target: A, handler: ProxyHandler<A>): A;
2
- //# sourceMappingURL=createProxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createProxy.d.ts","sourceRoot":"","sources":["../../src/helpers/createProxy.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,KAchF"}
@@ -1,4 +0,0 @@
1
- type Combined<A, B> = A & B;
2
- export declare const withStaticProperties: <A extends Function, B>(component: A, staticProps: B) => Combined<A, B>;
3
- export {};
4
- //# sourceMappingURL=withStaticProperties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../../src/helpers/withStaticProperties.tsx"],"names":[],"mappings":"AAIA,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3B,eAAO,MAAM,oBAAoB,yEAyBhC,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const getThemeUnwrapped: (theme: any) => any;
2
- export declare const GetThemeUnwrapped: unique symbol;
3
- //# sourceMappingURL=getThemeUnwrapped.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getThemeUnwrapped.d.ts","sourceRoot":"","sources":["../../src/hooks/getThemeUnwrapped.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAAW,GAAG,QAE3C,CAAA;AAED,eAAO,MAAM,iBAAiB,eAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export { useId } from 'react';
2
- //# sourceMappingURL=useId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../src/hooks/useId.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA"}
@@ -1,3 +0,0 @@
1
- import { useMemo } from 'react';
2
- export declare const useMemoDebug: typeof useMemo;
3
- //# sourceMappingURL=useMemoDebug.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMemoDebug.d.ts","sourceRoot":"","sources":["../../src/hooks/useMemoDebug.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,eAAO,MAAM,YAAY,EAAE,OAAO,OAajC,CAAA"}