@tamagui/static 1.99.0 → 1.100.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/cjs/checkDeps.native.js +53 -58
  2. package/dist/cjs/checkDeps.native.js.map +1 -1
  3. package/dist/cjs/extractor/bundle.native.js +65 -79
  4. package/dist/cjs/extractor/bundle.native.js.map +1 -1
  5. package/dist/cjs/extractor/bundleConfig.js +2 -4
  6. package/dist/cjs/extractor/bundleConfig.js.map +1 -1
  7. package/dist/cjs/extractor/bundleConfig.native.js +67 -83
  8. package/dist/cjs/extractor/bundleConfig.native.js.map +1 -1
  9. package/dist/cjs/extractor/createExtractor.js +8 -16
  10. package/dist/cjs/extractor/createExtractor.js.map +1 -1
  11. package/dist/cjs/extractor/createExtractor.native.js +70 -92
  12. package/dist/cjs/extractor/createExtractor.native.js.map +1 -1
  13. package/dist/cjs/extractor/extractHelpers.js +4 -8
  14. package/dist/cjs/extractor/extractHelpers.js.map +1 -1
  15. package/dist/cjs/extractor/extractHelpers.native.js +11 -22
  16. package/dist/cjs/extractor/extractHelpers.native.js.map +1 -1
  17. package/dist/cjs/extractor/extractMediaStyle.js +3 -6
  18. package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
  19. package/dist/cjs/extractor/extractMediaStyle.native.js +10 -20
  20. package/dist/cjs/extractor/extractMediaStyle.native.js.map +1 -1
  21. package/dist/cjs/extractor/extractToClassNames.js +5 -7
  22. package/dist/cjs/extractor/extractToClassNames.js.map +1 -1
  23. package/dist/cjs/extractor/extractToClassNames.native.js +66 -79
  24. package/dist/cjs/extractor/extractToClassNames.native.js.map +1 -1
  25. package/dist/cjs/extractor/generateTamaguiStudioConfig.js +3 -6
  26. package/dist/cjs/extractor/generateTamaguiStudioConfig.js.map +1 -1
  27. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +63 -78
  28. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
  29. package/dist/cjs/extractor/generatedUid.native.js +2 -4
  30. package/dist/cjs/extractor/generatedUid.native.js.map +1 -1
  31. package/dist/cjs/extractor/getStaticBindingsForScope.js +4 -8
  32. package/dist/cjs/extractor/getStaticBindingsForScope.js.map +1 -1
  33. package/dist/cjs/extractor/getStaticBindingsForScope.native.js +82 -94
  34. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +1 -1
  35. package/dist/cjs/extractor/hoistClassNames.js +1 -2
  36. package/dist/cjs/extractor/hoistClassNames.js.map +1 -1
  37. package/dist/cjs/extractor/hoistClassNames.native.js +1 -2
  38. package/dist/cjs/extractor/hoistClassNames.native.js.map +1 -1
  39. package/dist/cjs/extractor/literalToAst.native.js +6 -12
  40. package/dist/cjs/extractor/literalToAst.native.js.map +1 -1
  41. package/dist/cjs/extractor/loadTamagui.native.js +75 -92
  42. package/dist/cjs/extractor/loadTamagui.native.js.map +1 -1
  43. package/dist/cjs/extractor/normalizeTernaries.native.js +2 -4
  44. package/dist/cjs/extractor/normalizeTernaries.native.js.map +1 -1
  45. package/dist/cjs/extractor/removeUnusedHooks.js +2 -4
  46. package/dist/cjs/extractor/removeUnusedHooks.js.map +1 -1
  47. package/dist/cjs/extractor/removeUnusedHooks.native.js +4 -8
  48. package/dist/cjs/extractor/removeUnusedHooks.native.js.map +1 -1
  49. package/dist/cjs/extractor/watchTamaguiConfig.native.js +57 -63
  50. package/dist/cjs/extractor/watchTamaguiConfig.native.js.map +1 -1
  51. package/dist/cjs/server.native.js +53 -58
  52. package/dist/cjs/server.native.js.map +1 -1
  53. package/dist/esm/checkDeps.native.js +53 -58
  54. package/dist/esm/checkDeps.native.js.map +1 -1
  55. package/dist/esm/extractor/bundle.native.js +65 -79
  56. package/dist/esm/extractor/bundle.native.js.map +1 -1
  57. package/dist/esm/extractor/bundleConfig.js +2 -4
  58. package/dist/esm/extractor/bundleConfig.js.map +1 -1
  59. package/dist/esm/extractor/bundleConfig.native.js +67 -83
  60. package/dist/esm/extractor/bundleConfig.native.js.map +1 -1
  61. package/dist/esm/extractor/createExtractor.js +8 -16
  62. package/dist/esm/extractor/createExtractor.js.map +1 -1
  63. package/dist/esm/extractor/createExtractor.native.js +70 -92
  64. package/dist/esm/extractor/createExtractor.native.js.map +1 -1
  65. package/dist/esm/extractor/extractHelpers.js +4 -8
  66. package/dist/esm/extractor/extractHelpers.js.map +1 -1
  67. package/dist/esm/extractor/extractHelpers.native.js +11 -22
  68. package/dist/esm/extractor/extractHelpers.native.js.map +1 -1
  69. package/dist/esm/extractor/extractMediaStyle.js +3 -6
  70. package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
  71. package/dist/esm/extractor/extractMediaStyle.native.js +10 -20
  72. package/dist/esm/extractor/extractMediaStyle.native.js.map +1 -1
  73. package/dist/esm/extractor/extractToClassNames.js +5 -7
  74. package/dist/esm/extractor/extractToClassNames.js.map +1 -1
  75. package/dist/esm/extractor/extractToClassNames.native.js +66 -79
  76. package/dist/esm/extractor/extractToClassNames.native.js.map +1 -1
  77. package/dist/esm/extractor/generateTamaguiStudioConfig.js +3 -6
  78. package/dist/esm/extractor/generateTamaguiStudioConfig.js.map +1 -1
  79. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +63 -78
  80. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
  81. package/dist/esm/extractor/generatedUid.native.js +2 -4
  82. package/dist/esm/extractor/generatedUid.native.js.map +1 -1
  83. package/dist/esm/extractor/getStaticBindingsForScope.js +4 -8
  84. package/dist/esm/extractor/getStaticBindingsForScope.js.map +1 -1
  85. package/dist/esm/extractor/getStaticBindingsForScope.native.js +82 -94
  86. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
  87. package/dist/esm/extractor/hoistClassNames.js +1 -2
  88. package/dist/esm/extractor/hoistClassNames.js.map +1 -1
  89. package/dist/esm/extractor/hoistClassNames.native.js +1 -2
  90. package/dist/esm/extractor/hoistClassNames.native.js.map +1 -1
  91. package/dist/esm/extractor/literalToAst.native.js +6 -12
  92. package/dist/esm/extractor/literalToAst.native.js.map +1 -1
  93. package/dist/esm/extractor/loadTamagui.native.js +75 -92
  94. package/dist/esm/extractor/loadTamagui.native.js.map +1 -1
  95. package/dist/esm/extractor/normalizeTernaries.native.js +2 -4
  96. package/dist/esm/extractor/normalizeTernaries.native.js.map +1 -1
  97. package/dist/esm/extractor/removeUnusedHooks.js +2 -4
  98. package/dist/esm/extractor/removeUnusedHooks.js.map +1 -1
  99. package/dist/esm/extractor/removeUnusedHooks.native.js +4 -8
  100. package/dist/esm/extractor/removeUnusedHooks.native.js.map +1 -1
  101. package/dist/esm/extractor/watchTamaguiConfig.native.js +57 -63
  102. package/dist/esm/extractor/watchTamaguiConfig.native.js.map +1 -1
  103. package/dist/esm/server.native.js +53 -58
  104. package/dist/esm/server.native.js.map +1 -1
  105. package/package.json +16 -15
@@ -35,8 +35,7 @@ function _ts_generator(thisArg, body) {
35
35
  var f, y, t2, g, _ = {
36
36
  label: 0,
37
37
  sent: function() {
38
- if (t2[0] & 1)
39
- throw t2[1];
38
+ if (t2[0] & 1) throw t2[1];
40
39
  return t2[1];
41
40
  },
42
41
  trys: [],
@@ -58,64 +57,60 @@ function _ts_generator(thisArg, body) {
58
57
  };
59
58
  }
60
59
  function step(op) {
61
- if (f)
62
- throw new TypeError("Generator is already executing.");
63
- for (; _; )
64
- try {
65
- if (f = 1, y && (t2 = op[0] & 2 ? y.return : op[0] ? y.throw || ((t2 = y.return) && t2.call(y), 0) : y.next) && !(t2 = t2.call(y, op[1])).done)
66
- return t2;
67
- switch (y = 0, t2 && (op = [
68
- op[0] & 2,
69
- t2.value
70
- ]), op[0]) {
71
- case 0:
72
- case 1:
73
- t2 = op;
74
- break;
75
- case 4:
76
- return _.label++, {
77
- value: op[1],
78
- done: !1
79
- };
80
- case 5:
81
- _.label++, y = op[1], op = [
82
- 0
83
- ];
84
- continue;
85
- case 7:
86
- op = _.ops.pop(), _.trys.pop();
87
- continue;
88
- default:
89
- if (t2 = _.trys, !(t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
90
- _ = 0;
91
- continue;
92
- }
93
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
94
- _.label = op[1];
95
- break;
96
- }
97
- if (op[0] === 6 && _.label < t2[1]) {
98
- _.label = t2[1], t2 = op;
99
- break;
100
- }
101
- if (t2 && _.label < t2[2]) {
102
- _.label = t2[2], _.ops.push(op);
103
- break;
104
- }
105
- t2[2] && _.ops.pop(), _.trys.pop();
60
+ if (f) throw new TypeError("Generator is already executing.");
61
+ for (; _; ) try {
62
+ if (f = 1, y && (t2 = op[0] & 2 ? y.return : op[0] ? y.throw || ((t2 = y.return) && t2.call(y), 0) : y.next) && !(t2 = t2.call(y, op[1])).done) return t2;
63
+ switch (y = 0, t2 && (op = [
64
+ op[0] & 2,
65
+ t2.value
66
+ ]), op[0]) {
67
+ case 0:
68
+ case 1:
69
+ t2 = op;
70
+ break;
71
+ case 4:
72
+ return _.label++, {
73
+ value: op[1],
74
+ done: !1
75
+ };
76
+ case 5:
77
+ _.label++, y = op[1], op = [
78
+ 0
79
+ ];
80
+ continue;
81
+ case 7:
82
+ op = _.ops.pop(), _.trys.pop();
83
+ continue;
84
+ default:
85
+ if (t2 = _.trys, !(t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
86
+ _ = 0;
106
87
  continue;
107
- }
108
- op = body.call(thisArg, _);
109
- } catch (e) {
110
- op = [
111
- 6,
112
- e
113
- ], y = 0;
114
- } finally {
115
- f = t2 = 0;
88
+ }
89
+ if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
90
+ _.label = op[1];
91
+ break;
92
+ }
93
+ if (op[0] === 6 && _.label < t2[1]) {
94
+ _.label = t2[1], t2 = op;
95
+ break;
96
+ }
97
+ if (t2 && _.label < t2[2]) {
98
+ _.label = t2[2], _.ops.push(op);
99
+ break;
100
+ }
101
+ t2[2] && _.ops.pop(), _.trys.pop();
102
+ continue;
116
103
  }
117
- if (op[0] & 5)
118
- throw op[1];
104
+ op = body.call(thisArg, _);
105
+ } catch (e) {
106
+ op = [
107
+ 6,
108
+ e
109
+ ], y = 0;
110
+ } finally {
111
+ f = t2 = 0;
112
+ }
113
+ if (op[0] & 5) throw op[1];
119
114
  return {
120
115
  value: op[0] ? op[1] : void 0,
121
116
  done: !0
@@ -124,17 +119,15 @@ function _ts_generator(thisArg, body) {
124
119
  }
125
120
  function _ts_values(o) {
126
121
  var s = typeof Symbol == "function" && Symbol.iterator, m = s && o[s], i = 0;
127
- if (m)
128
- return m.call(o);
129
- if (o && typeof o.length == "number")
130
- return {
131
- next: function() {
132
- return o && i >= o.length && (o = void 0), {
133
- value: o && o[i++],
134
- done: !o
135
- };
136
- }
137
- };
122
+ if (m) return m.call(o);
123
+ if (o && typeof o.length == "number") return {
124
+ next: function() {
125
+ return o && i >= o.length && (o = void 0), {
126
+ value: o && o[i++],
127
+ done: !o
128
+ };
129
+ }
130
+ };
138
131
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
139
132
  }
140
133
  var isLocalImport = function(path) {
@@ -242,16 +235,14 @@ function _getStaticBindingsForScope() {
242
235
  return _ts_generator(this, function(_state2) {
243
236
  switch (_state2.label) {
244
237
  case 0:
245
- if (node = _step.value, !t.isImportDeclaration(node))
246
- return [
247
- 3,
248
- 4
249
- ];
250
- if (importPath = node.source.value, !node.specifiers.length)
251
- return [
252
- 2,
253
- "continue"
254
- ];
238
+ if (node = _step.value, !t.isImportDeclaration(node)) return [
239
+ 3,
240
+ 4
241
+ ];
242
+ if (importPath = node.source.value, !node.specifiers.length) return [
243
+ 2,
244
+ "continue"
245
+ ];
255
246
  if (!isLocalImport(importPath))
256
247
  return [
257
248
  2,
@@ -259,11 +250,10 @@ function _getStaticBindingsForScope() {
259
250
  ];
260
251
  if (moduleName = resolveImportPath(sourcePath, importPath), isOnWhitelist = whitelist.some(function(test) {
261
252
  return moduleName.endsWith(test);
262
- }), !isOnWhitelist)
263
- return [
264
- 2,
265
- "continue"
266
- ];
253
+ }), !isOnWhitelist) return [
254
+ 2,
255
+ "continue"
256
+ ];
267
257
  _state2.label = 1;
268
258
  case 1:
269
259
  return _state2.trys.push([
@@ -276,11 +266,10 @@ function _getStaticBindingsForScope() {
276
266
  importModule(moduleName)
277
267
  ];
278
268
  case 2:
279
- if (src = _state2.sent(), !src)
280
- return [
281
- 2,
282
- "continue"
283
- ];
269
+ if (src = _state2.sent(), !src) return [
270
+ 2,
271
+ "continue"
272
+ ];
284
273
  _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
285
274
  try {
286
275
  for (_iterator2 = node.specifiers[Symbol.iterator](); !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
@@ -350,11 +339,10 @@ function _getStaticBindingsForScope() {
350
339
  if (!bindingCache)
351
340
  throw new Error("BindingCache is a required param");
352
341
  for (var k2 in bindings)
353
- if (_ret = _loop(k2), _type_of(_ret) === "object")
354
- return [
355
- 2,
356
- _ret.v
357
- ];
342
+ if (_ret = _loop(k2), _type_of(_ret) === "object") return [
343
+ 2,
344
+ _ret.v
345
+ ];
358
346
  return [
359
347
  2,
360
348
  ret
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getStaticBindingsForScope.ts"],
4
- "mappings": "AACA,SAASA,YAAY;AACrB,SAASC,SAASC,SAASC,MAAMC,eAAe;AAGhD,YAAYC,OAAO;AAEnB,SAASC,uBAAuB;AAChC,SAASC,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMhC,IAAMC,gBAAgB,SAACC,MAAAA;SAAiBA,KAAKC,WAAW,GAAA,KAAQD,KAAKC,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,QAAQyD,KAAI,OAAA,QAAA,EAAA;;kBAA1B,6BAAA,QAAA,UAAA,KAAA,GAAA,QAAA;;;;;;;;;;AAAA,6CAAA;;;;;;;;;;sCAAA,oBAAA,IAAA,iBAAA;;;;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;;;;AAiCL,cAAI,CAAC7D;AACH,kBAAM,IAAIZ,MAAM,kCAAA;AAGlB,mBAAWiB,MAAKH;;;;;AAmFhB,iBAAA;;YAAOC;;;;EACT,CAAA,GA5IsBN,2BAAAA,MAAAA,MAAAA,SAAAA;;",
5
5
  "names": ["fork", "dirname", "extname", "join", "resolve", "t", "evaluateAstNode", "getSourceModule", "isLocalImport", "path", "startsWith", "resolveImportPath", "sourcePath", "sourceDir", "cache", "Map", "pending", "loadCmd", "__dirname", "exited", "child", "forkChild", "execArgv", "detached", "stdio", "cleanupBeforeExit", "removeAllListeners", "unref", "disconnect", "kill", "process", "once", "importModule", "has", "get", "promise", "Promise", "res", "rej", "size", "clear", "listener", "msg", "Error", "slice", "removeListener", "val", "JSON", "parse", "set", "send", "replace", "getStaticBindingsForScope", "scope", "whitelist", "bindingCache", "shouldPrintDebug", "bindings", "ret", "program", "k", "binding", "sourceModule", "moduleName", "isOnWhitelist", "some", "test", "endsWith", "src", "console", "info", "destructured", "imported", "parent", "isVariableDeclaration", "kind", "dec", "declarations", "find", "d", "isIdentifier", "id", "name", "init", "start", "end", "error", "cacheKey", "Object", "hasOwnProperty", "call", "undefined", "getAllBindings", "getProgramParent", "block", "node", "importPath", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "specifier", "err", "isImportDeclaration", "source", "value", "specifiers", "length", "_state", "isImportSpecifier", "local", "warn", "env", "DEBUG", "message", "stack", "body"]
6
6
  }
@@ -22,8 +22,7 @@ function hoistClassNames(path, existing, expr) {
22
22
  return expr;
23
23
  function replaceStringWithVariable(str) {
24
24
  const uid = path.scope.generateUidIdentifier("cn"), parent = path.findParent((path2) => path2.isProgram());
25
- if (!parent)
26
- throw new Error("no program?");
25
+ if (!parent) throw new Error("no program?");
27
26
  const variable = t.variableDeclaration("const", [
28
27
  // adding a space for extra safety
29
28
  t.variableDeclarator(uid, t.stringLiteral(` ${str.value}`))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/hoistClassNames.ts"],
4
- "mappings": "AACA,YAAY,OAAO;AAEZ,SAAS,gBACd,MACA,UACA,MACA;AACA,QAAM,QAAQ,gBAAgB,KAAK,MAAM,MAAM,QAAQ;AACvD,MAAI,EAAE,gBAAgB,IAAI,GAAG;AAC3B,QAAI,KAAK,MAAM,KAAK,MAAM;AACxB,aAAO;AAET,QAAI,SAAS,KAAK,KAAK;AACrB,aAAO,SAAS,KAAK,KAAK;AAE5B,UAAM,aAAa,0BAA0B,IAAI;AACjD,oBAAS,KAAK,KAAK,IAAI,YAChB;AAAA,EACT;AACA,MAAI,EAAE,mBAAmB,IAAI;AAC3B,WAAO,EAAE,iBAAiB,KAAK,UAAU,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC;AAE9E,MAAI,EAAE,oBAAoB,IAAI;AAC5B,WAAO,EAAE,kBAAkB,KAAK,UAAU,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC;AAE/E,MAAI,EAAE,wBAAwB,IAAI;AAChC,WAAO,EAAE;AAAA,MACP,KAAK;AAAA,MACL,MAAM,KAAK,UAAU;AAAA,MACrB,MAAM,KAAK,SAAS;AAAA,IACtB;AAEF,SAAO;AAEP,WAAS,0BAA0B,KAAoC;AAErE,UAAM,MAAM,KAAK,MAAM,sBAAsB,IAAI,GAC3C,SAAS,KAAK,WAAW,CAACA,UAASA,MAAK,UAAU,CAAC;AACzD,QAAI,CAAC;AAAQ,YAAM,IAAI,MAAM,aAAa;AAC1C,UAAM,WAAW,EAAE,oBAAoB,SAAS;AAAA;AAAA,MAE9C,EAAE,mBAA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T;AACF;",
5
5
  "names": ["path"]
6
6
  }
@@ -20,8 +20,7 @@ function hoistClassNames(path, existing, expr) {
20
20
  var uid = path.scope.generateUidIdentifier("cn"), parent = path.findParent(function(path2) {
21
21
  return path2.isProgram();
22
22
  });
23
- if (!parent)
24
- throw new Error("no program?");
23
+ if (!parent) throw new Error("no program?");
25
24
  var variable = t.variableDeclaration("const", [
26
25
  // adding a space for extra safety
27
26
  t.variableDeclarator(uid, t.stringLiteral(" ".concat(str.value)))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/hoistClassNames.ts"],
4
- "mappings": "AACA,YAAYA,OAAO;AAEZ,SAASC,gBACdC,MACAC,UACAC,MAAkB;AAElB,MAAMC,QAAQJ,gBAAgBK,KAAK,MAAMJ,MAAMC,QAAAA;AAC/C,MAAIH,EAAEO,gBAAgBH,IAAAA,GAAO;AAC3B,QAAIA,KAAKI,MAAMC,KAAI,MAAO;AACxB,aAAOL;AAET,QAAID,SAASC,KAAKI,KAAK;AACrB,aAAOL,SAASC,KAAKI,KAAK;AAE5B,QAAME,aAAaC,0BAA0BP,IAAAA;AAC7CD,oBAASC,KAAKI,KAAK,IAAIE,YAChBA;EACT;AACA,MAAIV,EAAEY,mBAAmBR,IAAAA;AACvB,WAAOJ,EAAEa,iBAAiBT,KAAKU,UAAUT,MAAMD,KAAKW,IAAI,GAAGV,MAAMD,KAAKY,KAAK,CAAA;AAE7E,MAAIhB,EAAEiB,oBAAoBb,IAAAA;AACxB,WAAOJ,EAAEkB,kBAAkBd,KAAKU,UAAUT,MAAMD,KAAKW,IAAI,GAAGV,MAAMD,KAAKY,KAAK,CAAA;AAE9E,MAAIhB,EAAEmB,wBAAwBf,IAAAA;AAC5B,WAAOJ,EAAEoB,sBACPhB,KAAKiB,MACLhB,MAAMD,KAAKkB,UAAU,GACrBjB,MAAMD,KAAKmB,SAAS,CAAA;AAGxB,SAAOnB;AAE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AA0Ba,KAAoB;AAErD,QAAMC,MAAMvB,KAAKwB,MAAMC,sBAAsB,IAAA,GACvCC,SAAS1B,KAAK2B,WAAW,SAAC3B,OAAAA;aAASA,MAAK4B,UAAS;;AACvD,QAAI,CAACF,OAAQ,OAAM,IAAIG,MAAO,aAAA;AAC9B,QAAMC,WAAWhC,EAAEiC,oBAAoB,SAAS;;MAE9CjC,EAAEkC,mBAAmBT,KAAKzB,EAAEmC,cAAe,IAAa,OAAVX,IAAIhB,KAAK,CAAA,CAAA;KACxD;AAEDoB,kBAAOQ,iBAAiB,QAAQJ,QAAAA,GACzBP;EACT;AACF;",
5
5
  "names": ["t", "hoistClassNames", "path", "existing", "expr", "hoist", "bind", "isStringLiteral", "value", "trim", "identifier", "replaceStringWithVariable", "isBinaryExpression", "binaryExpression", "operator", "left", "right", "isLogicalExpression", "logicalExpression", "isConditionalExpression", "conditionalExpression", "test", "consequent", "alternate", "str", "uid", "scope", "generateUidIdentifier", "parent", "findParent", "isProgram", "Error", "variable", "variableDeclaration", "variableDeclarator", "stringLiteral", "unshiftContainer"]
6
6
  }
@@ -1,13 +1,11 @@
1
1
  import * as t from "@babel/types";
2
2
  function _array_like_to_array(arr, len) {
3
3
  (len == null || len > arr.length) && (len = arr.length);
4
- for (var i = 0, arr2 = new Array(len); i < len; i++)
5
- arr2[i] = arr[i];
4
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
5
  return arr2;
7
6
  }
8
7
  function _array_without_holes(arr) {
9
- if (Array.isArray(arr))
10
- return _array_like_to_array(arr);
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
11
9
  }
12
10
  function _define_property(obj, key, value) {
13
11
  return key in obj ? Object.defineProperty(obj, key, {
@@ -18,8 +16,7 @@ function _define_property(obj, key, value) {
18
16
  }) : obj[key] = value, obj;
19
17
  }
20
18
  function _iterable_to_array(iter) {
21
- if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
22
- return Array.from(iter);
19
+ if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
23
20
  }
24
21
  function _non_iterable_spread() {
25
22
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -59,13 +56,10 @@ function _type_of(obj) {
59
56
  }
60
57
  function _unsupported_iterable_to_array(o, minLen) {
61
58
  if (o) {
62
- if (typeof o == "string")
63
- return _array_like_to_array(o, minLen);
59
+ if (typeof o == "string") return _array_like_to_array(o, minLen);
64
60
  var n = Object.prototype.toString.call(o).slice(8, -1);
65
- if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
66
- return Array.from(n);
67
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
68
- return _array_like_to_array(o, minLen);
61
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
62
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
69
63
  }
70
64
  }
71
65
  function literalToAst(literal) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/literalToAst.ts"],
4
- "mappings": "AAAA,YAAYA,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,SAASC,aAAaC,SAAY;AACvC,MAAIA,YAAY;AACd,WAAOF,EAAEG,YAAW;AAEtB,UAAQ,OAAOD,UAAAA,MAAAA,cAAP,SAAOA,OAAAA,GAAAA;IACb,KAAK;AACH,YAAM,IAAIE,MAAM,aAAA;IAClB,KAAK;AACH,aAAOJ,EAAEK,eAAeH,OAAAA;IAC1B,KAAK;AACH,aAAOF,EAAEM,cAAcJ,OAAAA;IACzB,KAAK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F,KAAKG;AAEd,QAAIH,OAAKI,SAAS,eAAe,CAACJ,KAAKG,QAGvC;UAAIxB,EAAE0B,cAAcL,IAAAA;AAClB,eAAO;AAET,UAAIrB,EAAE2B,mBAAmBN,IAAAA;AACvB,eAAOO,aAAaP,KAAKQ,UAAU;AAErC,UAAI7B,EAAE8B,kBAAkBT,IAAAA;AACtB,eAAOA,KAAKU,SAASC;;UAEnB,SAACC,KAAKC,SAAAA;mBACJ,qBAAGD,GAAAA,EAAAA,OACH,sBAAIC,WAAAA,OAAAA,SAAAA,QAASX,UAAS,kBAClBH,aAAac,QAAQC,QAAQ,IAC7B;cAACf,aAAac,OAAAA;aAAS,CAAA;;UAE7B,CAAA;QAAE;;;AAGR;AAEA,SAASN,aAAaQ,OAAK;AACzB,SAAOA,MAAMJ,OAAO,SAACC,KAAKI,MAAAA;AACxB,QAAIA,KAAKd,SAAS;AAChB,aAAO,eAAA,CAAA,GACFU,KACAb,aAAaiB,KAAKF,QAAQ,CAAA;AAGjC,QAAIE,KAAKd,SAAS,gBAAgB;AAChC,UAAMe,MAAMlB,aAAaiB,KAAKb,KAAK;AACnC,UAAIc,QAAQC;AACV,eAAO,qBAAA,eAAA,CAAA,GACFN,GAAAA,GACH,iBAAA,CAAA,GAACI,KAAKG,IAAIf,MAAOa,GAAAA,CAAAA;IAGvB;AACA,WAAOL;EACT,GAAG,CAAC,CAAA;AACN;",
5
5
  "names": ["t", "literalToAst", "literal", "nullLiteral", "Error", "numericLiteral", "stringLiteral", "booleanLiteral", "unaryExpression", "Array", "isArray", "arrayExpression", "map", "objectExpression", "Object", "keys", "filter", "k", "objectProperty", "easyPeasies", "astToLiteral", "node", "includes", "type", "value", "name", "isNullLiteral", "isObjectExpression", "computeProps", "properties", "isArrayExpression", "elements", "reduce", "acc", "element", "argument", "props", "prop", "val", "undefined", "key"]
6
6
  }
@@ -13,13 +13,11 @@ import { generateTamaguiStudioConfig, generateTamaguiStudioConfigSync, generateT
13
13
  import { getTamaguiConfigPathFromOptionsConfig } from "./getTamaguiConfigPathFromOptionsConfig";
14
14
  function _array_like_to_array(arr, len) {
15
15
  (len == null || len > arr.length) && (len = arr.length);
16
- for (var i = 0, arr2 = new Array(len); i < len; i++)
17
- arr2[i] = arr[i];
16
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
18
17
  return arr2;
19
18
  }
20
19
  function _array_without_holes(arr) {
21
- if (Array.isArray(arr))
22
- return _array_like_to_array(arr);
20
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
23
21
  }
24
22
  function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
25
23
  try {
@@ -57,8 +55,7 @@ function _instanceof(left, right) {
57
55
  return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
58
56
  }
59
57
  function _iterable_to_array(iter) {
60
- if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
61
- return Array.from(iter);
58
+ if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
62
59
  }
63
60
  function _non_iterable_spread() {
64
61
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -90,8 +87,7 @@ function _object_spread_props(target, source) {
90
87
  }), target;
91
88
  }
92
89
  function _object_without_properties(source, excluded) {
93
- if (source == null)
94
- return {};
90
+ if (source == null) return {};
95
91
  var target = _object_without_properties_loose(source, excluded), key, i;
96
92
  if (Object.getOwnPropertySymbols) {
97
93
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -101,8 +97,7 @@ function _object_without_properties(source, excluded) {
101
97
  return target;
102
98
  }
103
99
  function _object_without_properties_loose(source, excluded) {
104
- if (source == null)
105
- return {};
100
+ if (source == null) return {};
106
101
  var target = {}, sourceKeys = Object.keys(source), key, i;
107
102
  for (i = 0; i < sourceKeys.length; i++)
108
103
  key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
@@ -113,21 +108,17 @@ function _to_consumable_array(arr) {
113
108
  }
114
109
  function _unsupported_iterable_to_array(o, minLen) {
115
110
  if (o) {
116
- if (typeof o == "string")
117
- return _array_like_to_array(o, minLen);
111
+ if (typeof o == "string") return _array_like_to_array(o, minLen);
118
112
  var n = Object.prototype.toString.call(o).slice(8, -1);
119
- if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
120
- return Array.from(n);
121
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
122
- return _array_like_to_array(o, minLen);
113
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
114
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
123
115
  }
124
116
  }
125
117
  function _ts_generator(thisArg, body) {
126
118
  var f, y, t, g, _ = {
127
119
  label: 0,
128
120
  sent: function() {
129
- if (t[0] & 1)
130
- throw t[1];
121
+ if (t[0] & 1) throw t[1];
131
122
  return t[1];
132
123
  },
133
124
  trys: [],
@@ -149,64 +140,60 @@ function _ts_generator(thisArg, body) {
149
140
  };
150
141
  }
151
142
  function step(op) {
152
- if (f)
153
- throw new TypeError("Generator is already executing.");
154
- for (; _; )
155
- try {
156
- if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
157
- return t;
158
- switch (y = 0, t && (op = [
159
- op[0] & 2,
160
- t.value
161
- ]), op[0]) {
162
- case 0:
163
- case 1:
164
- t = op;
165
- break;
166
- case 4:
167
- return _.label++, {
168
- value: op[1],
169
- done: !1
170
- };
171
- case 5:
172
- _.label++, y = op[1], op = [
173
- 0
174
- ];
175
- continue;
176
- case 7:
177
- op = _.ops.pop(), _.trys.pop();
178
- continue;
179
- default:
180
- if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
181
- _ = 0;
182
- continue;
183
- }
184
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
185
- _.label = op[1];
186
- break;
187
- }
188
- if (op[0] === 6 && _.label < t[1]) {
189
- _.label = t[1], t = op;
190
- break;
191
- }
192
- if (t && _.label < t[2]) {
193
- _.label = t[2], _.ops.push(op);
194
- break;
195
- }
196
- t[2] && _.ops.pop(), _.trys.pop();
143
+ if (f) throw new TypeError("Generator is already executing.");
144
+ for (; _; ) try {
145
+ if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
146
+ switch (y = 0, t && (op = [
147
+ op[0] & 2,
148
+ t.value
149
+ ]), op[0]) {
150
+ case 0:
151
+ case 1:
152
+ t = op;
153
+ break;
154
+ case 4:
155
+ return _.label++, {
156
+ value: op[1],
157
+ done: !1
158
+ };
159
+ case 5:
160
+ _.label++, y = op[1], op = [
161
+ 0
162
+ ];
163
+ continue;
164
+ case 7:
165
+ op = _.ops.pop(), _.trys.pop();
166
+ continue;
167
+ default:
168
+ if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
169
+ _ = 0;
197
170
  continue;
198
- }
199
- op = body.call(thisArg, _);
200
- } catch (e) {
201
- op = [
202
- 6,
203
- e
204
- ], y = 0;
205
- } finally {
206
- f = t = 0;
171
+ }
172
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
173
+ _.label = op[1];
174
+ break;
175
+ }
176
+ if (op[0] === 6 && _.label < t[1]) {
177
+ _.label = t[1], t = op;
178
+ break;
179
+ }
180
+ if (t && _.label < t[2]) {
181
+ _.label = t[2], _.ops.push(op);
182
+ break;
183
+ }
184
+ t[2] && _.ops.pop(), _.trys.pop();
185
+ continue;
207
186
  }
208
- if (op[0] & 5)
209
- throw op[1];
187
+ op = body.call(thisArg, _);
188
+ } catch (e) {
189
+ op = [
190
+ 6,
191
+ e
192
+ ], y = 0;
193
+ } finally {
194
+ f = t = 0;
195
+ }
196
+ if (op[0] & 5) throw op[1];
210
197
  return {
211
198
  value: op[0] ? op[1] : void 0,
212
199
  done: !0
@@ -251,16 +238,14 @@ function _loadTamagui() {
251
238
  bundleInfo
252
239
  ];
253
240
  if (!// this depends on the config so run it after
254
- bundleInfo)
255
- return [
256
- 3,
257
- 10
258
- ];
259
- if (createTamagui = requireTamaguiCore(props.platform || "web").createTamagui, config = createTamagui(bundleInfo.tamaguiConfig), outputCSS = props.outputCSS, !(outputCSS && props.platform === "web"))
260
- return [
261
- 3,
262
- 10
263
- ];
241
+ bundleInfo) return [
242
+ 3,
243
+ 10
244
+ ];
245
+ if (createTamagui = requireTamaguiCore(props.platform || "web").createTamagui, config = createTamagui(bundleInfo.tamaguiConfig), outputCSS = props.outputCSS, !(outputCSS && props.platform === "web")) return [
246
+ 3,
247
+ 10
248
+ ];
264
249
  flush = function() {
265
250
  var _ref = _async_to_generator(function() {
266
251
  return _ts_generator(this, function(_state2) {
@@ -347,14 +332,12 @@ var waiting = !1, hasLoggedOnce = !1, generateThemesAndLog = function() {
347
332
  return _ts_generator(this, function(_state) {
348
333
  switch (_state.label) {
349
334
  case 0:
350
- if (force = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : !1, waiting)
351
- return [
352
- 2
353
- ];
354
- if (!options.themeBuilder)
355
- return [
356
- 2
357
- ];
335
+ if (force = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : !1, waiting) return [
336
+ 2
337
+ ];
338
+ if (!options.themeBuilder) return [
339
+ 2
340
+ ];
358
341
  _state.label = 1;
359
342
  case 1:
360
343
  return _state.trys.push([