@tamagui/static 1.136.4 → 1.136.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{check-dep-versions.mjs → check-dep-versions.cjs} +1 -2
  2. package/dist/{checkDeps.mjs → checkDeps.cjs} +2 -3
  3. package/dist/{constants.mjs → constants.cjs} +1 -2
  4. package/dist/{exports.mjs → exports.cjs} +14 -15
  5. package/dist/extractor/{accessSafe.mjs → accessSafe.cjs} +1 -2
  6. package/dist/extractor/{babelParse.mjs → babelParse.cjs} +1 -2
  7. package/dist/extractor/{bundle.mjs → bundle.cjs} +4 -5
  8. package/dist/extractor/{bundleConfig.mjs → bundleConfig.cjs} +6 -7
  9. package/dist/extractor/{concatClassName.mjs → concatClassName.cjs} +1 -2
  10. package/dist/extractor/{createEvaluator.mjs → createEvaluator.cjs} +3 -4
  11. package/dist/extractor/{createExtractor.mjs → createExtractor.cjs} +16 -17
  12. package/dist/extractor/{createLogger.mjs → createLogger.cjs} +2 -3
  13. package/dist/extractor/{errors.mjs → errors.cjs} +1 -2
  14. package/dist/extractor/{esbuildAliasPlugin.mjs → esbuildAliasPlugin.cjs} +1 -2
  15. package/dist/extractor/{esbuildTsconfigPaths.mjs → esbuildTsconfigPaths.cjs} +1 -2
  16. package/dist/extractor/{evaluateAstNode.mjs → evaluateAstNode.cjs} +1 -2
  17. package/dist/extractor/{extractHelpers.mjs → extractHelpers.cjs} +2 -3
  18. package/dist/extractor/{extractMediaStyle.mjs → extractMediaStyle.cjs} +3 -4
  19. package/dist/extractor/{extractToClassNames.mjs → extractToClassNames.cjs} +10 -11
  20. package/dist/extractor/{extractToNative.mjs → extractToNative.cjs} +7 -8
  21. package/dist/extractor/{findTopmostFunction.mjs → findTopmostFunction.cjs} +1 -2
  22. package/dist/extractor/{generatedUid.mjs → generatedUid.cjs} +1 -2
  23. package/dist/extractor/{getPrefixLogs.mjs → getPrefixLogs.cjs} +1 -2
  24. package/dist/extractor/{getPropValueFromAttributes.mjs → getPropValueFromAttributes.cjs} +2 -3
  25. package/dist/extractor/{getSourceModule.mjs → getSourceModule.cjs} +1 -2
  26. package/dist/extractor/{getStaticBindingsForScope.mjs → getStaticBindingsForScope.cjs} +3 -4
  27. package/dist/extractor/{getTamaguiConfigPathFromOptionsConfig.mjs → getTamaguiConfigPathFromOptionsConfig.cjs} +1 -2
  28. package/dist/extractor/{literalToAst.mjs → literalToAst.cjs} +1 -2
  29. package/dist/extractor/{loadFile.mjs → loadFile.cjs} +1 -2
  30. package/dist/extractor/{loadTamagui.mjs → loadTamagui.cjs} +7 -8
  31. package/dist/extractor/{logLines.mjs → logLines.cjs} +1 -2
  32. package/dist/extractor/{normalizeTernaries.mjs → normalizeTernaries.cjs} +2 -3
  33. package/dist/extractor/{propsToFontFamilyCache.mjs → propsToFontFamilyCache.cjs} +1 -2
  34. package/dist/extractor/{regenerateConfig.mjs → regenerateConfig.cjs} +3 -4
  35. package/dist/extractor/{removeUnusedHooks.mjs → removeUnusedHooks.cjs} +1 -2
  36. package/dist/extractor/{timer.mjs → timer.cjs} +1 -2
  37. package/dist/extractor/{validHTMLAttributes.mjs → validHTMLAttributes.cjs} +1 -2
  38. package/dist/extractor/{watchTamaguiConfig.mjs → watchTamaguiConfig.cjs} +3 -4
  39. package/dist/{getPragmaOptions.mjs → getPragmaOptions.cjs} +1 -2
  40. package/dist/helpers/{memoize.mjs → memoize.cjs} +1 -2
  41. package/dist/helpers/{requireTamaguiCore.mjs → requireTamaguiCore.cjs} +1 -2
  42. package/dist/{index.mjs → index.cjs} +3 -4
  43. package/dist/{registerRequire.mjs → registerRequire.cjs} +3 -4
  44. package/dist/{server.mjs → server.cjs} +1 -2
  45. package/dist/setup.cjs +0 -0
  46. package/dist/{types.mjs → types.cjs} +1 -2
  47. package/dist/{worker.mjs → worker.cjs} +5 -6
  48. package/dist/worker.js +1 -1
  49. package/dist/worker.js.map +1 -1
  50. package/package.json +23 -18
  51. package/src/worker.ts +132 -0
  52. package/types/worker.d.ts +46 -0
  53. package/types/worker.d.ts.map +1 -1
  54. package/dist/async-wrapper.js +0 -98
  55. package/dist/async-wrapper.js.map +0 -6
  56. package/dist/async-wrapper.mjs +0 -113
  57. package/dist/async-wrapper.mjs.map +0 -1
  58. package/dist/check-dep-versions.mjs.map +0 -1
  59. package/dist/checkDeps.mjs.map +0 -1
  60. package/dist/constants.mjs.map +0 -1
  61. package/dist/exports.mjs.map +0 -1
  62. package/dist/extractor/accessSafe.mjs.map +0 -1
  63. package/dist/extractor/babelParse.mjs.map +0 -1
  64. package/dist/extractor/bundle.mjs.map +0 -1
  65. package/dist/extractor/bundleConfig.mjs.map +0 -1
  66. package/dist/extractor/concatClassName.mjs.map +0 -1
  67. package/dist/extractor/createEvaluator.mjs.map +0 -1
  68. package/dist/extractor/createExtractor.mjs.map +0 -1
  69. package/dist/extractor/createLogger.mjs.map +0 -1
  70. package/dist/extractor/errors.mjs.map +0 -1
  71. package/dist/extractor/esbuildAliasPlugin.mjs.map +0 -1
  72. package/dist/extractor/esbuildTsconfigPaths.mjs.map +0 -1
  73. package/dist/extractor/evaluateAstNode.mjs.map +0 -1
  74. package/dist/extractor/extractHelpers.mjs.map +0 -1
  75. package/dist/extractor/extractMediaStyle.mjs.map +0 -1
  76. package/dist/extractor/extractToClassNames.mjs.map +0 -1
  77. package/dist/extractor/extractToNative.mjs.map +0 -1
  78. package/dist/extractor/findTopmostFunction.mjs.map +0 -1
  79. package/dist/extractor/generatedUid.mjs.map +0 -1
  80. package/dist/extractor/getPrefixLogs.mjs.map +0 -1
  81. package/dist/extractor/getPropValueFromAttributes.mjs.map +0 -1
  82. package/dist/extractor/getSourceModule.mjs.map +0 -1
  83. package/dist/extractor/getStaticBindingsForScope.mjs.map +0 -1
  84. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +0 -1
  85. package/dist/extractor/literalToAst.mjs.map +0 -1
  86. package/dist/extractor/loadFile.mjs.map +0 -1
  87. package/dist/extractor/loadTamagui.mjs.map +0 -1
  88. package/dist/extractor/logLines.mjs.map +0 -1
  89. package/dist/extractor/normalizeTernaries.mjs.map +0 -1
  90. package/dist/extractor/propsToFontFamilyCache.mjs.map +0 -1
  91. package/dist/extractor/regenerateConfig.mjs.map +0 -1
  92. package/dist/extractor/removeUnusedHooks.mjs.map +0 -1
  93. package/dist/extractor/timer.mjs.map +0 -1
  94. package/dist/extractor/validHTMLAttributes.mjs.map +0 -1
  95. package/dist/extractor/watchTamaguiConfig.mjs.map +0 -1
  96. package/dist/getPragmaOptions.mjs.map +0 -1
  97. package/dist/helpers/memoize.mjs.map +0 -1
  98. package/dist/helpers/requireTamaguiCore.mjs.map +0 -1
  99. package/dist/index.mjs.map +0 -1
  100. package/dist/registerRequire.mjs.map +0 -1
  101. package/dist/server.mjs.map +0 -1
  102. package/dist/setup.mjs +0 -2
  103. package/dist/setup.mjs.map +0 -1
  104. package/dist/sync-wrapper.js +0 -61
  105. package/dist/sync-wrapper.js.map +0 -6
  106. package/dist/sync-wrapper.mjs +0 -62
  107. package/dist/sync-wrapper.mjs.map +0 -1
  108. package/dist/types.mjs.map +0 -1
  109. package/dist/worker.mjs.map +0 -1
  110. package/types/async-wrapper.d.ts.map +0 -1
  111. package/types/sync-wrapper.d.ts.map +0 -1
@@ -264,5 +264,4 @@ function dependenciesToMismatchSummary(dependencies) {
264
264
  const tables = mismatchingDependencyVersions.map(object => `${object.dependency} - ${object.versions.map(v => `${v.version}`).join(", ")}`).join("");
265
265
  return [`Found ${mismatchingDependencyVersions.length} ${mismatchingDependencyVersions.length === 1 ? "dependency" : "dependencies"} with mismatching versions across the workspace.`, tables].join(`
266
266
  `);
267
- }
268
- //# sourceMappingURL=check-dep-versions.mjs.map
267
+ }
@@ -24,10 +24,9 @@ __export(checkDeps_exports, {
24
24
  checkDeps: () => checkDeps
25
25
  });
26
26
  module.exports = __toCommonJS(checkDeps_exports);
27
- var import_check_dep_versions = require("./check-dep-versions.mjs"),
27
+ var import_check_dep_versions = require("./check-dep-versions.cjs"),
28
28
  DEPENDENCY_TYPE = /* @__PURE__ */(DEPENDENCY_TYPE2 => (DEPENDENCY_TYPE2.dependencies = "dependencies", DEPENDENCY_TYPE2.devDependencies = "devDependencies", DEPENDENCY_TYPE2.optionalDependencies = "optionalDependencies", DEPENDENCY_TYPE2.peerDependencies = "peerDependencies", DEPENDENCY_TYPE2.resolutions = "resolutions", DEPENDENCY_TYPE2))(DEPENDENCY_TYPE || {});
29
29
  async function checkDeps(root) {
30
30
  const summary = new import_check_dep_versions.CDVC(root).toMismatchSummary();
31
31
  summary || (console.info("Tamagui dependencies look good \u2705"), process.exit(0)), console.error(summary), process.exit(1);
32
- }
33
- //# sourceMappingURL=checkDeps.mjs.map
32
+ }
@@ -46,5 +46,4 @@ const CSS_FILE_NAME = "__snack.css",
46
46
  create: !0
47
47
  }),
48
48
  FAILED_EVAL = Symbol("failed_style_eval"),
49
- SHOULD_DEBUG = process.env.DEBUG === "*" || process.env.DEBUG?.startsWith("tamagui");
50
- //# sourceMappingURL=constants.mjs.map
49
+ SHOULD_DEBUG = process.env.DEBUG === "*" || process.env.DEBUG?.startsWith("tamagui");
@@ -25,18 +25,17 @@ __export(exports_exports, {
25
25
  literalToAst: () => import_literalToAst.literalToAst
26
26
  });
27
27
  module.exports = __toCommonJS(exports_exports);
28
- __reExport(exports_exports, require("./checkDeps.mjs"), module.exports);
29
- __reExport(exports_exports, require("./types.mjs"), module.exports);
30
- var import_createExtractor = require("./extractor/createExtractor.mjs"),
31
- import_literalToAst = require("./extractor/literalToAst.mjs");
32
- __reExport(exports_exports, require("./constants.mjs"), module.exports);
33
- __reExport(exports_exports, require("./extractor/extractToClassNames.mjs"), module.exports);
34
- __reExport(exports_exports, require("./extractor/concatClassName.mjs"), module.exports);
35
- __reExport(exports_exports, require("./extractor/extractToNative.mjs"), module.exports);
36
- __reExport(exports_exports, require("./extractor/extractHelpers.mjs"), module.exports);
37
- __reExport(exports_exports, require("./extractor/loadTamagui.mjs"), module.exports);
38
- __reExport(exports_exports, require("./extractor/watchTamaguiConfig.mjs"), module.exports);
39
- __reExport(exports_exports, require("./extractor/createLogger.mjs"), module.exports);
40
- __reExport(exports_exports, require("./registerRequire.mjs"), module.exports);
41
- __reExport(exports_exports, require("./getPragmaOptions.mjs"), module.exports);
42
- //# sourceMappingURL=exports.mjs.map
28
+ __reExport(exports_exports, require("./checkDeps.cjs"), module.exports);
29
+ __reExport(exports_exports, require("./types.cjs"), module.exports);
30
+ var import_createExtractor = require("./extractor/createExtractor.cjs"),
31
+ import_literalToAst = require("./extractor/literalToAst.cjs");
32
+ __reExport(exports_exports, require("./constants.cjs"), module.exports);
33
+ __reExport(exports_exports, require("./extractor/extractToClassNames.cjs"), module.exports);
34
+ __reExport(exports_exports, require("./extractor/concatClassName.cjs"), module.exports);
35
+ __reExport(exports_exports, require("./extractor/extractToNative.cjs"), module.exports);
36
+ __reExport(exports_exports, require("./extractor/extractHelpers.cjs"), module.exports);
37
+ __reExport(exports_exports, require("./extractor/loadTamagui.cjs"), module.exports);
38
+ __reExport(exports_exports, require("./extractor/watchTamaguiConfig.cjs"), module.exports);
39
+ __reExport(exports_exports, require("./extractor/createLogger.cjs"), module.exports);
40
+ __reExport(exports_exports, require("./registerRequire.cjs"), module.exports);
41
+ __reExport(exports_exports, require("./getPragmaOptions.cjs"), module.exports);
@@ -43,5 +43,4 @@ function accessSafe(obj, member) {
43
43
  t.binaryExpression("!==", obj, t.nullLiteral())),
44
44
  // obj.member
45
45
  t.memberExpression(obj, t.identifier(member), !1));
46
- }
47
- //# sourceMappingURL=accessSafe.mjs.map
46
+ }
@@ -51,5 +51,4 @@ function babelParse(code, fileName) {
51
51
  ${codeString}
52
52
  ${err.stack}`);
53
53
  }
54
- }
55
- //# sourceMappingURL=babelParse.mjs.map
54
+ }
@@ -39,9 +39,9 @@ module.exports = __toCommonJS(bundle_exports);
39
39
  var import_node_path = require("node:path"),
40
40
  import_esbuild = __toESM(require("esbuild")),
41
41
  FS = __toESM(require("fs-extra")),
42
- import_esbuildAliasPlugin = require("./esbuildAliasPlugin.mjs"),
43
- import_loadTamagui = require("./loadTamagui.mjs"),
44
- import_esbuildTsconfigPaths = require("./esbuildTsconfigPaths.mjs");
42
+ import_esbuildAliasPlugin = require("./esbuildAliasPlugin.cjs"),
43
+ import_loadTamagui = require("./loadTamagui.cjs"),
44
+ import_esbuildTsconfigPaths = require("./esbuildTsconfigPaths.cjs");
45
45
  const esbuildLoaderConfig = {
46
46
  ".js": "jsx",
47
47
  ".png": "dataurl",
@@ -145,5 +145,4 @@ async function asyncLock(props) {
145
145
  }
146
146
  }
147
147
  FS.writeFile(lockFile, "");
148
- }
149
- //# sourceMappingURL=bundle.mjs.map
148
+ }
@@ -50,11 +50,11 @@ var import_generator = __toESM(require("@babel/generator")),
50
50
  import_esbuild = __toESM(require("esbuild")),
51
51
  FS = __toESM(require("fs-extra")),
52
52
  import_promises = require("node:fs/promises"),
53
- import_registerRequire = require("../registerRequire.mjs"),
54
- import_babelParse = require("./babelParse.mjs"),
55
- import_bundle = require("./bundle.mjs"),
56
- import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.mjs"),
57
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs");
53
+ import_registerRequire = require("../registerRequire.cjs"),
54
+ import_babelParse = require("./babelParse.cjs"),
55
+ import_bundle = require("./bundle.cjs"),
56
+ import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.cjs"),
57
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs");
58
58
  const external = ["@tamagui/core", "@tamagui/web", "react", "react-dom", "react-native-svg"],
59
59
  esbuildExtraOptions = {
60
60
  define: {
@@ -327,5 +327,4 @@ function transformAddExports(ast) {
327
327
  retainLines: !1,
328
328
  sourceMaps: !1
329
329
  }).code;
330
- }
331
- //# sourceMappingURL=bundleConfig.mjs.map
330
+ }
@@ -75,5 +75,4 @@ const pseudoInvert = {
75
75
  focusVisible: "focusVisibleStyle",
76
76
  focusWithin: "focusWithinStyle",
77
77
  disabled: "disabledStyle"
78
- };
79
- //# sourceMappingURL=concatClassName.mjs.map
78
+ };
@@ -39,8 +39,8 @@ var import_node_vm = __toESM(require("node:vm")),
39
39
  import_generator = __toESM(require("@babel/generator")),
40
40
  t = __toESM(require("@babel/types")),
41
41
  import_esbuild = __toESM(require("esbuild")),
42
- import_constants = require("../constants.mjs"),
43
- import_evaluateAstNode = require("./evaluateAstNode.mjs");
42
+ import_constants = require("../constants.cjs"),
43
+ import_evaluateAstNode = require("./evaluateAstNode.cjs");
44
44
  function createEvaluator({
45
45
  props,
46
46
  staticNamespace,
@@ -72,5 +72,4 @@ function createSafeEvaluator(attemptEval) {
72
72
  return import_constants.FAILED_EVAL;
73
73
  }
74
74
  };
75
- }
76
- //# sourceMappingURL=createEvaluator.mjs.map
75
+ }
@@ -40,21 +40,21 @@ var import_traverse = __toESM(require("@babel/traverse")),
40
40
  reactNativeWebInternals = __toESM(require("@tamagui/react-native-web-internals")),
41
41
  import_web = require("@tamagui/web"),
42
42
  import_node_path = require("node:path"),
43
- import_constants = require("../constants.mjs"),
44
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
45
- import_createEvaluator = require("./createEvaluator.mjs"),
46
- import_evaluateAstNode = require("./evaluateAstNode.mjs"),
47
- import_extractHelpers = require("./extractHelpers.mjs"),
48
- import_findTopmostFunction = require("./findTopmostFunction.mjs"),
49
- import_getStaticBindingsForScope = require("./getStaticBindingsForScope.mjs"),
50
- import_literalToAst = require("./literalToAst.mjs"),
51
- import_loadTamagui = require("./loadTamagui.mjs"),
52
- import_logLines = require("./logLines.mjs"),
53
- import_normalizeTernaries = require("./normalizeTernaries.mjs"),
54
- import_propsToFontFamilyCache = require("./propsToFontFamilyCache.mjs"),
55
- import_timer = require("./timer.mjs"),
56
- import_validHTMLAttributes = require("./validHTMLAttributes.mjs"),
57
- import_errors = require("./errors.mjs");
43
+ import_constants = require("../constants.cjs"),
44
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs"),
45
+ import_createEvaluator = require("./createEvaluator.cjs"),
46
+ import_evaluateAstNode = require("./evaluateAstNode.cjs"),
47
+ import_extractHelpers = require("./extractHelpers.cjs"),
48
+ import_findTopmostFunction = require("./findTopmostFunction.cjs"),
49
+ import_getStaticBindingsForScope = require("./getStaticBindingsForScope.cjs"),
50
+ import_literalToAst = require("./literalToAst.cjs"),
51
+ import_loadTamagui = require("./loadTamagui.cjs"),
52
+ import_logLines = require("./logLines.cjs"),
53
+ import_normalizeTernaries = require("./normalizeTernaries.cjs"),
54
+ import_propsToFontFamilyCache = require("./propsToFontFamilyCache.cjs"),
55
+ import_timer = require("./timer.cjs"),
56
+ import_validHTMLAttributes = require("./validHTMLAttributes.cjs"),
57
+ import_errors = require("./errors.cjs");
58
58
  const UNTOUCHED_PROPS = {
59
59
  key: !0,
60
60
  style: !0,
@@ -972,5 +972,4 @@ function createExtractor({
972
972
  }
973
973
  }), tm.mark("jsx-done", !!shouldPrintDebug), tm.done(shouldPrintDebug === "verbose"), res;
974
974
  }
975
- }
976
- //# sourceMappingURL=createExtractor.mjs.map
975
+ }
@@ -24,7 +24,7 @@ __export(createLogger_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(createLogger_exports);
26
26
  var import_node_path = require("node:path"),
27
- import_getPrefixLogs = require("./getPrefixLogs.mjs");
27
+ import_getPrefixLogs = require("./getPrefixLogs.cjs");
28
28
  function createLogger(sourcePath, options) {
29
29
  const shouldLogTiming = options.logTimings ?? !0,
30
30
  start = Date.now(),
@@ -42,5 +42,4 @@ function createLogger(sourcePath, options) {
42
42
  memStr = memory ? `(${memory})` : "";
43
43
  console.info(`${pre} ${path} \xB7 ${numFound} found \xB7 ${numOptimized} opt \xB7 ${numFlattened} flat ${timingStr} ${memStr}`);
44
44
  };
45
- }
46
- //# sourceMappingURL=createLogger.mjs.map
45
+ }
@@ -23,5 +23,4 @@ __export(errors_exports, {
23
23
  BailOptimizationError: () => BailOptimizationError
24
24
  });
25
25
  module.exports = __toCommonJS(errors_exports);
26
- class BailOptimizationError extends Error {}
27
- //# sourceMappingURL=errors.mjs.map
26
+ class BailOptimizationError extends Error {}
@@ -41,5 +41,4 @@ const esbuildAliasPlugin = config => {
41
41
  });
42
42
  }
43
43
  };
44
- };
45
- //# sourceMappingURL=esbuildAliasPlugin.mjs.map
44
+ };
@@ -81,5 +81,4 @@ function parseTsconfig(configFilePath) {
81
81
  if (configFile.error) throw new Error(`Error reading tsconfig file '${configFilePath}': ${configFile.error.messageText}`);
82
82
  const baseDir = import_node_path.default.dirname(configFilePath);
83
83
  return (0, import_typescript.parseJsonConfigFileContent)(configFile.config, import_typescript.sys, baseDir).options;
84
- }
85
- //# sourceMappingURL=esbuildTsconfigPaths.mjs.map
84
+ }
@@ -80,5 +80,4 @@ function evaluateAstNode(exprNode, evalFn, shouldPrintDebug) {
80
80
  if (typeof evalFn != "function") throw new Error("evaluateAstNode does not support non-literal values unless an eval function is provided");
81
81
  return evalFn(exprNode);
82
82
  }
83
- }
84
- //# sourceMappingURL=evaluateAstNode.mjs.map
83
+ }
@@ -51,7 +51,7 @@ var import_node_path = require("node:path"),
51
51
  import_generator = __toESM(require("@babel/generator")),
52
52
  t = __toESM(require("@babel/types")),
53
53
  import_find_root = __toESM(require("find-root")),
54
- import_memoize = require("../helpers/memoize.mjs");
54
+ import_memoize = require("../helpers/memoize.cjs");
55
55
  function isPresent(input) {
56
56
  return input != null;
57
57
  }
@@ -117,5 +117,4 @@ const isValidModule = (props, moduleName) => {
117
117
  getValidComponentsPaths = (0, import_memoize.memoize)(props => getValidComponentPackages(props).flatMap(pkg => {
118
118
  const root = (0, import_find_root.default)(pkg);
119
119
  return [(0, import_node_path.basename)(root), pkg].filter(Boolean);
120
- }));
121
- //# sourceMappingURL=extractHelpers.mjs.map
120
+ }));
@@ -37,8 +37,8 @@ __export(extractMediaStyle_exports, {
37
37
  module.exports = __toCommonJS(extractMediaStyle_exports);
38
38
  var t = __toESM(require("@babel/types")),
39
39
  core = __toESM(require("@tamagui/core")),
40
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
41
- import_extractHelpers = require("./extractHelpers.mjs");
40
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs"),
41
+ import_extractHelpers = require("./extractHelpers.cjs");
42
42
  function extractMediaStyle(props, ternary, jsxPath, tamaguiConfig, sourcePath, importance = 0, shouldPrintDebug = !1) {
43
43
  const {
44
44
  getCSSStylesAtomic
@@ -125,5 +125,4 @@ function isValidMediaCall(props, jsxPath, init, sourcePath) {
125
125
  if (!mediaBinding) return !1;
126
126
  const useMediaImport = mediaBinding.path.parent;
127
127
  return !(!t.isImportDeclaration(useMediaImport) || !(0, import_extractHelpers.isValidImport)(props, sourcePath));
128
- }
129
- //# sourceMappingURL=extractMediaStyle.mjs.map
128
+ }
@@ -39,15 +39,15 @@ var import_generator = __toESM(require("@babel/generator")),
39
39
  import_web = require("@tamagui/web"),
40
40
  path = __toESM(require("node:path")),
41
41
  util = __toESM(require("node:util")),
42
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
43
- import_babelParse = require("./babelParse.mjs"),
44
- import_createLogger = require("./createLogger.mjs"),
45
- import_extractMediaStyle = require("./extractMediaStyle.mjs"),
46
- import_normalizeTernaries = require("./normalizeTernaries.mjs"),
47
- import_propsToFontFamilyCache = require("./propsToFontFamilyCache.mjs"),
48
- import_timer = require("./timer.mjs"),
49
- import_errors = require("./errors.mjs"),
50
- import_concatClassName = require("./concatClassName.mjs");
42
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs"),
43
+ import_babelParse = require("./babelParse.cjs"),
44
+ import_createLogger = require("./createLogger.cjs"),
45
+ import_extractMediaStyle = require("./extractMediaStyle.cjs"),
46
+ import_normalizeTernaries = require("./normalizeTernaries.cjs"),
47
+ import_propsToFontFamilyCache = require("./propsToFontFamilyCache.cjs"),
48
+ import_timer = require("./timer.cjs"),
49
+ import_errors = require("./errors.cjs"),
50
+ import_concatClassName = require("./concatClassName.cjs");
51
51
  const remove = () => {},
52
52
  spaceString = t.stringLiteral(" ");
53
53
  async function extractToClassNames({
@@ -300,5 +300,4 @@ function cleanupClassName(inStr) {
300
300
  const out = /* @__PURE__ */new Set();
301
301
  for (const part of inStr.split(" ")) part !== " " && part !== "font_" && out.add(part);
302
302
  return [...out].join(" ") + " ";
303
- }
304
- //# sourceMappingURL=extractToClassNames.mjs.map
303
+ }
@@ -43,12 +43,12 @@ var import_core = require("@babel/core"),
43
43
  import_template = __toESM(require("@babel/template")),
44
44
  t = __toESM(require("@babel/types")),
45
45
  import_node_path = require("node:path"),
46
- import_getPragmaOptions = require("../getPragmaOptions.mjs"),
47
- import_createExtractor = require("./createExtractor.mjs"),
48
- import_createLogger = require("./createLogger.mjs"),
49
- import_extractHelpers = require("./extractHelpers.mjs"),
50
- import_literalToAst = require("./literalToAst.mjs"),
51
- import_loadTamagui = require("./loadTamagui.mjs");
46
+ import_getPragmaOptions = require("../getPragmaOptions.cjs"),
47
+ import_createExtractor = require("./createExtractor.cjs"),
48
+ import_createLogger = require("./createLogger.cjs"),
49
+ import_extractHelpers = require("./extractHelpers.cjs"),
50
+ import_literalToAst = require("./literalToAst.cjs"),
51
+ import_loadTamagui = require("./loadTamagui.cjs");
52
52
  const importNativeView = (0, import_template.default)(`
53
53
  const __ReactNativeView = require('react-native').View;
54
54
  const __ReactNativeText = require('react-native').Text;
@@ -258,5 +258,4 @@ function splitThemeStyles(style) {
258
258
  themed: noTheme ? null : themed,
259
259
  plain
260
260
  };
261
- }
262
- //# sourceMappingURL=extractToNative.mjs.map
261
+ }
@@ -31,5 +31,4 @@ function findTopmostFunction(jsxPath) {
31
31
  if (parent) compFn = parent;else break;
32
32
  }
33
33
  return compFn || null;
34
- }
35
- //# sourceMappingURL=findTopmostFunction.mjs.map
34
+ }
@@ -44,5 +44,4 @@ function generateUid(scope, name) {
44
44
  do i > 1 ? uid = name + i : uid = name, i++; while (scope.hasLabel(uid) || scope.hasBinding(uid) || scope.hasGlobal(uid) || scope.hasReference(uid));
45
45
  const program = scope.getProgramParent();
46
46
  return program.references[uid] = !0, program.uids[uid] = !0, uid;
47
- }
48
- //# sourceMappingURL=generatedUid.mjs.map
47
+ }
@@ -26,5 +26,4 @@ module.exports = __toCommonJS(getPrefixLogs_exports);
26
26
  var import_cli_color = require("@tamagui/cli-color");
27
27
  function getPrefixLogs(options) {
28
28
  return options?.prefixLogs ?? ` \u{1F425} [tamagui] ${(0, import_cli_color.colorString)(import_cli_color.Color.FgYellow, options?.platform || "web")}`;
29
- }
30
- //# sourceMappingURL=getPrefixLogs.mjs.map
29
+ }
@@ -36,7 +36,7 @@ __export(getPropValueFromAttributes_exports, {
36
36
  module.exports = __toCommonJS(getPropValueFromAttributes_exports);
37
37
  var import_generator = __toESM(require("@babel/generator")),
38
38
  t = __toESM(require("@babel/types")),
39
- import_accessSafe = require("./accessSafe.mjs");
39
+ import_accessSafe = require("./accessSafe.cjs");
40
40
  function getPropValueFromAttributes(propName, attrs) {
41
41
  let propIndex = -1,
42
42
  jsxAttr = null;
@@ -64,5 +64,4 @@ function getPropValueFromAttributes(propName, attrs) {
64
64
  return !1;
65
65
  }).map(attr => attr.argument);
66
66
  return applicableSpreads.length > 0 && (propValue = applicableSpreads.reduce((acc, val) => t.logicalExpression("||", (0, import_accessSafe.accessSafe)(val, propName), acc), propValue)), propValue;
67
- }
68
- //# sourceMappingURL=getPropValueFromAttributes.mjs.map
67
+ }
@@ -61,5 +61,4 @@ function getSourceModule(itemName, itemBinding) {
61
61
  sourceModule,
62
62
  usesImportSyntax
63
63
  };
64
- }
65
- //# sourceMappingURL=getSourceModule.mjs.map
64
+ }
@@ -38,8 +38,8 @@ module.exports = __toCommonJS(getStaticBindingsForScope_exports);
38
38
  var import_node_child_process = require("node:child_process"),
39
39
  import_node_path = require("node:path"),
40
40
  t = __toESM(require("@babel/types")),
41
- import_evaluateAstNode = require("./evaluateAstNode.mjs"),
42
- import_getSourceModule = require("./getSourceModule.mjs");
41
+ import_evaluateAstNode = require("./evaluateAstNode.cjs"),
42
+ import_getSourceModule = require("./getSourceModule.cjs");
43
43
  const isLocalImport = path => path.startsWith(".") || path.startsWith("/");
44
44
  function resolveImportPath(sourcePath, path) {
45
45
  const sourceDir = (0, import_node_path.dirname)(sourcePath);
@@ -145,5 +145,4 @@ async function getStaticBindingsForScope(scope, whitelist = [], sourcePath, bind
145
145
  } catch {}
146
146
  }
147
147
  return ret;
148
- }
149
- //# sourceMappingURL=getStaticBindingsForScope.mjs.map
148
+ }
@@ -32,5 +32,4 @@ function getTamaguiConfigPathFromOptionsConfig(config) {
32
32
  if ((0, import_node_fs.statSync)(fullPath).isFile()) return fullPath;
33
33
  } catch {}
34
34
  return config;
35
- }
36
- //# sourceMappingURL=getTamaguiConfigPathFromOptionsConfig.mjs.map
35
+ }
@@ -81,5 +81,4 @@ function computeProps(props) {
81
81
  }
82
82
  return acc;
83
83
  }, {});
84
- }
85
- //# sourceMappingURL=literalToAst.mjs.map
84
+ }
@@ -8,5 +8,4 @@ process.on("message", path => {
8
8
  ${err.stack}`) : process.send?.(`-${err}`);
9
9
  }
10
10
  });
11
- setInterval(() => {}, 1e3);
12
- //# sourceMappingURL=loadFile.mjs.map
11
+ setInterval(() => {}, 1e3);
@@ -44,12 +44,12 @@ var import_node_path = require("node:path"),
44
44
  import_cli_color = require("@tamagui/cli-color"),
45
45
  import_esbuild = __toESM(require("esbuild")),
46
46
  fsExtra = __toESM(require("fs-extra")),
47
- import_constants = require("../constants.mjs"),
48
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
49
- import_registerRequire = require("../registerRequire.mjs"),
50
- import_bundleConfig = require("./bundleConfig.mjs"),
51
- import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.mjs"),
52
- import_regenerateConfig = require("./regenerateConfig.mjs");
47
+ import_constants = require("../constants.cjs"),
48
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs"),
49
+ import_registerRequire = require("../registerRequire.cjs"),
50
+ import_bundleConfig = require("./bundleConfig.cjs"),
51
+ import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.cjs"),
52
+ import_regenerateConfig = require("./regenerateConfig.cjs");
53
53
  const getFilledOptions = propsIn => ({
54
54
  // defaults
55
55
  platform: "web",
@@ -292,5 +292,4 @@ async function esbuildWatchFiles(entry, onChanged) {
292
292
  return context.watch(), () => {
293
293
  context.dispose();
294
294
  };
295
- }
296
- //# sourceMappingURL=loadTamagui.mjs.map
295
+ }
@@ -32,5 +32,4 @@ ${prefix}`);
32
32
  for (const item of items) item.length + lines[lines.length - 1].length > 85 && lines.push(""), lines[lines.length - 1] += item + " ";
33
33
  return lines.map((line, i) => prefix + (i == 0 ? "" : " ") + line.trim()).join(`
34
34
  `);
35
- };
36
- //# sourceMappingURL=logLines.mjs.map
35
+ };
@@ -38,7 +38,7 @@ var import_generator = __toESM(require("@babel/generator")),
38
38
  t = __toESM(require("@babel/types")),
39
39
  import_web = require("@tamagui/web"),
40
40
  import_invariant = __toESM(require("invariant")),
41
- import_propsToFontFamilyCache = require("./propsToFontFamilyCache.mjs");
41
+ import_propsToFontFamilyCache = require("./propsToFontFamilyCache.cjs");
42
42
  function normalizeTernaries(ternaries) {
43
43
  if ((0, import_invariant.default)(Array.isArray(ternaries), "extractStaticTernaries expects param 1 to be an array of ternaries"), ternaries.length === 0) return [];
44
44
  const ternariesByKey = {};
@@ -70,5 +70,4 @@ function normalizeTernaries(ternaries) {
70
70
  ternariesByKey[key].consequent = (0, import_web.mergeProps)(consStyle, nextCons), (0, import_propsToFontFamilyCache.forwardFontFamilyName)(consStyle, ternariesByKey[key].consequent);
71
71
  }
72
72
  return Object.keys(ternariesByKey).map(key => ternariesByKey[key]);
73
- }
74
- //# sourceMappingURL=normalizeTernaries.mjs.map
73
+ }
@@ -35,5 +35,4 @@ function getFontFamilyNameFromProps(props) {
35
35
  function forwardFontFamilyName(prev, next, fallback) {
36
36
  const ff = getFontFamilyNameFromProps(prev) || fallback;
37
37
  ff && setPropsToFontFamily(next, ff);
38
- }
39
- //# sourceMappingURL=propsToFontFamilyCache.mjs.map
38
+ }
@@ -39,8 +39,8 @@ module.exports = __toCommonJS(regenerateConfig_exports);
39
39
  var import_node_path = require("node:path"),
40
40
  import_generate_themes = require("@tamagui/generate-themes"),
41
41
  FS = __toESM(require("fs-extra")),
42
- import_requireTamaguiCore = require("../helpers/requireTamaguiCore.mjs"),
43
- import_bundleConfig = require("./bundleConfig.mjs");
42
+ import_requireTamaguiCore = require("../helpers/requireTamaguiCore.cjs"),
43
+ import_bundleConfig = require("./bundleConfig.cjs");
44
44
  const tamaguiDir = (0, import_node_path.join)(process.cwd(), ".tamagui"),
45
45
  confFile = (0, import_node_path.join)(tamaguiDir, "tamagui.config.json");
46
46
  async function regenerateConfig(tamaguiOptions, configIn, rebuild = !1) {
@@ -141,5 +141,4 @@ function transformConfig(config, platform) {
141
141
  nameToPaths,
142
142
  tamaguiConfig: cleanedConfig
143
143
  };
144
- }
145
- //# sourceMappingURL=regenerateConfig.mjs.map
144
+ }
@@ -73,5 +73,4 @@ function removeUnusedHooks(compFn, shouldPrintDebug) {
73
73
  })() && (declarator.remove(), shouldPrintDebug && console.info(` [\u{1FA9D}] removed ${id.node.name ?? ""}`));
74
74
  }
75
75
  }
76
- }
77
- //# sourceMappingURL=removeUnusedHooks.mjs.map
76
+ }
@@ -40,5 +40,4 @@ const timer = () => {
40
40
  }
41
41
  }
42
42
  };
43
- };
44
- //# sourceMappingURL=timer.mjs.map
43
+ };
@@ -70,5 +70,4 @@ const validHTMLAttributes = {
70
70
  "aria-required": !0,
71
71
  "aria-selected": !0,
72
72
  "aria-sort": !0
73
- };
74
- //# sourceMappingURL=validHTMLAttributes.mjs.map
73
+ };
@@ -23,8 +23,8 @@ __export(watchTamaguiConfig_exports, {
23
23
  watchTamaguiConfig: () => watchTamaguiConfig
24
24
  });
25
25
  module.exports = __toCommonJS(watchTamaguiConfig_exports);
26
- var import_loadTamagui = require("./loadTamagui.mjs"),
27
- import_regenerateConfig = require("./regenerateConfig.mjs");
26
+ var import_loadTamagui = require("./loadTamagui.cjs"),
27
+ import_regenerateConfig = require("./regenerateConfig.cjs");
28
28
  let isWatching = !1;
29
29
  async function watchTamaguiConfig(tamaguiOptions) {
30
30
  if (process.env.NODE_ENV === "production") return {
@@ -55,5 +55,4 @@ async function watchTamaguiConfig(tamaguiOptions) {
55
55
  isWatching = !1, disposeConfigWatcher(), disposeThemesWatcher?.();
56
56
  }
57
57
  };
58
- }
59
- //# sourceMappingURL=watchTamaguiConfig.mjs.map
58
+ }
@@ -51,5 +51,4 @@ function getPragmaOptions({
51
51
  shouldPrintDebug,
52
52
  shouldDisable
53
53
  };
54
- }
55
- //# sourceMappingURL=getPragmaOptions.mjs.map
54
+ }
@@ -34,5 +34,4 @@ function memoize(func, resolver) {
34
34
  };
35
35
  return memoized.cache = new (memoize.Cache || Map)(), memoized;
36
36
  }
37
- memoize.Cache = Map;
38
- //# sourceMappingURL=memoize.mjs.map
37
+ memoize.Cache = Map;
@@ -30,5 +30,4 @@ function requireTamaguiCore(platform, ogRequire = require) {
30
30
  process.env.TAMAGUI_IS_SERVER ||= "1", process.env.TAMAGUI_KEEP_THEMES ||= "1";
31
31
  const exported = ogRequire(platform === "native" ? "@tamagui/core/native" : "@tamagui/core");
32
32
  return process.env.TAMAGUI_IS_SERVER = og1, process.env.TAMAGUI_KEEP_THEMES = og2, exported;
33
- }
34
- //# sourceMappingURL=requireTamaguiCore.mjs.map
33
+ }
@@ -35,7 +35,6 @@ __export(index_exports, {
35
35
  default: () => index_default
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
- var Static1 = __toESM(require("./exports.mjs"));
39
- __reExport(index_exports, require("./exports.mjs"), module.exports);
40
- var index_default = Static1;
41
- //# sourceMappingURL=index.mjs.map
38
+ var Static1 = __toESM(require("./exports.cjs"));
39
+ __reExport(index_exports, require("./exports.cjs"), module.exports);
40
+ var index_default = Static1;
@@ -26,8 +26,8 @@ __export(registerRequire_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(registerRequire_exports);
28
28
  var import_node = require("esbuild-register/dist/node"),
29
- import_bundle = require("./extractor/bundle.mjs"),
30
- import_requireTamaguiCore = require("./helpers/requireTamaguiCore.mjs");
29
+ import_bundle = require("./extractor/bundle.cjs"),
30
+ import_requireTamaguiCore = require("./helpers/requireTamaguiCore.cjs");
31
31
  const nameToPaths = {},
32
32
  getNameToPaths = () => nameToPaths,
33
33
  Module = require("node:module"),
@@ -103,5 +103,4 @@ const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS,
103
103
  "expo-constants": !0,
104
104
  "./ExpoHaptics": !0,
105
105
  "./js/MaskedView": !0
106
- };
107
- //# sourceMappingURL=registerRequire.mjs.map
106
+ };
@@ -72,5 +72,4 @@ function checkAvailablePort(port) {
72
72
  });
73
73
  });
74
74
  });
75
- }
76
- //# sourceMappingURL=server.mjs.map
75
+ }