@tamagui/static 1.136.6 → 1.136.8
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.
- package/dist/{check-dep-versions.mjs → check-dep-versions.cjs} +1 -2
- package/dist/{checkDeps.mjs → checkDeps.cjs} +2 -3
- package/dist/{constants.mjs → constants.cjs} +1 -2
- package/dist/{exports.mjs → exports.cjs} +14 -15
- package/dist/extractor/{accessSafe.mjs → accessSafe.cjs} +1 -2
- package/dist/extractor/{babelParse.mjs → babelParse.cjs} +1 -2
- package/dist/extractor/{bundle.mjs → bundle.cjs} +4 -5
- package/dist/extractor/{bundleConfig.mjs → bundleConfig.cjs} +6 -7
- package/dist/extractor/{concatClassName.mjs → concatClassName.cjs} +1 -2
- package/dist/extractor/{createEvaluator.mjs → createEvaluator.cjs} +3 -4
- package/dist/extractor/{createExtractor.mjs → createExtractor.cjs} +16 -17
- package/dist/extractor/{createLogger.mjs → createLogger.cjs} +2 -3
- package/dist/extractor/{errors.mjs → errors.cjs} +1 -2
- package/dist/extractor/{esbuildAliasPlugin.mjs → esbuildAliasPlugin.cjs} +1 -2
- package/dist/extractor/{esbuildTsconfigPaths.mjs → esbuildTsconfigPaths.cjs} +1 -2
- package/dist/extractor/{evaluateAstNode.mjs → evaluateAstNode.cjs} +1 -2
- package/dist/extractor/{extractHelpers.mjs → extractHelpers.cjs} +2 -3
- package/dist/extractor/{extractMediaStyle.mjs → extractMediaStyle.cjs} +3 -4
- package/dist/extractor/{extractToClassNames.mjs → extractToClassNames.cjs} +10 -11
- package/dist/extractor/{extractToNative.mjs → extractToNative.cjs} +7 -8
- package/dist/extractor/{findTopmostFunction.mjs → findTopmostFunction.cjs} +1 -2
- package/dist/extractor/{generatedUid.mjs → generatedUid.cjs} +1 -2
- package/dist/extractor/{getPrefixLogs.mjs → getPrefixLogs.cjs} +1 -2
- package/dist/extractor/{getPropValueFromAttributes.mjs → getPropValueFromAttributes.cjs} +2 -3
- package/dist/extractor/{getSourceModule.mjs → getSourceModule.cjs} +1 -2
- package/dist/extractor/{getStaticBindingsForScope.mjs → getStaticBindingsForScope.cjs} +3 -4
- package/dist/extractor/{getTamaguiConfigPathFromOptionsConfig.mjs → getTamaguiConfigPathFromOptionsConfig.cjs} +1 -2
- package/dist/extractor/{literalToAst.mjs → literalToAst.cjs} +1 -2
- package/dist/extractor/{loadFile.mjs → loadFile.cjs} +1 -2
- package/dist/extractor/{loadTamagui.mjs → loadTamagui.cjs} +7 -8
- package/dist/extractor/{logLines.mjs → logLines.cjs} +1 -2
- package/dist/extractor/{normalizeTernaries.mjs → normalizeTernaries.cjs} +2 -3
- package/dist/extractor/{propsToFontFamilyCache.mjs → propsToFontFamilyCache.cjs} +1 -2
- package/dist/extractor/{regenerateConfig.mjs → regenerateConfig.cjs} +3 -4
- package/dist/extractor/{removeUnusedHooks.mjs → removeUnusedHooks.cjs} +1 -2
- package/dist/extractor/{timer.mjs → timer.cjs} +1 -2
- package/dist/extractor/{validHTMLAttributes.mjs → validHTMLAttributes.cjs} +1 -2
- package/dist/extractor/{watchTamaguiConfig.mjs → watchTamaguiConfig.cjs} +3 -4
- package/dist/{getPragmaOptions.mjs → getPragmaOptions.cjs} +1 -2
- package/dist/helpers/{memoize.mjs → memoize.cjs} +1 -2
- package/dist/helpers/{requireTamaguiCore.mjs → requireTamaguiCore.cjs} +1 -2
- package/dist/{index.mjs → index.cjs} +3 -4
- package/dist/{registerRequire.mjs → registerRequire.cjs} +3 -4
- package/dist/{server.mjs → server.cjs} +1 -2
- package/dist/setup.cjs +0 -0
- package/dist/{types.mjs → types.cjs} +1 -2
- package/dist/{worker.mjs → worker.cjs} +4 -7
- package/dist/worker.js +0 -4
- package/dist/worker.js.map +1 -1
- package/package.json +20 -20
- package/src/worker.ts +0 -7
- package/types/worker.d.ts.map +1 -1
- package/dist/check-dep-versions.mjs.map +0 -1
- package/dist/checkDeps.mjs.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/exports.mjs.map +0 -1
- package/dist/extractor/accessSafe.mjs.map +0 -1
- package/dist/extractor/babelParse.mjs.map +0 -1
- package/dist/extractor/bundle.mjs.map +0 -1
- package/dist/extractor/bundleConfig.mjs.map +0 -1
- package/dist/extractor/concatClassName.mjs.map +0 -1
- package/dist/extractor/createEvaluator.mjs.map +0 -1
- package/dist/extractor/createExtractor.mjs.map +0 -1
- package/dist/extractor/createLogger.mjs.map +0 -1
- package/dist/extractor/errors.mjs.map +0 -1
- package/dist/extractor/esbuildAliasPlugin.mjs.map +0 -1
- package/dist/extractor/esbuildTsconfigPaths.mjs.map +0 -1
- package/dist/extractor/evaluateAstNode.mjs.map +0 -1
- package/dist/extractor/extractHelpers.mjs.map +0 -1
- package/dist/extractor/extractMediaStyle.mjs.map +0 -1
- package/dist/extractor/extractToClassNames.mjs.map +0 -1
- package/dist/extractor/extractToNative.mjs.map +0 -1
- package/dist/extractor/findTopmostFunction.mjs.map +0 -1
- package/dist/extractor/generatedUid.mjs.map +0 -1
- package/dist/extractor/getPrefixLogs.mjs.map +0 -1
- package/dist/extractor/getPropValueFromAttributes.mjs.map +0 -1
- package/dist/extractor/getSourceModule.mjs.map +0 -1
- package/dist/extractor/getStaticBindingsForScope.mjs.map +0 -1
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +0 -1
- package/dist/extractor/literalToAst.mjs.map +0 -1
- package/dist/extractor/loadFile.mjs.map +0 -1
- package/dist/extractor/loadTamagui.mjs.map +0 -1
- package/dist/extractor/logLines.mjs.map +0 -1
- package/dist/extractor/normalizeTernaries.mjs.map +0 -1
- package/dist/extractor/propsToFontFamilyCache.mjs.map +0 -1
- package/dist/extractor/regenerateConfig.mjs.map +0 -1
- package/dist/extractor/removeUnusedHooks.mjs.map +0 -1
- package/dist/extractor/timer.mjs.map +0 -1
- package/dist/extractor/validHTMLAttributes.mjs.map +0 -1
- package/dist/extractor/watchTamaguiConfig.mjs.map +0 -1
- package/dist/getPragmaOptions.mjs.map +0 -1
- package/dist/helpers/memoize.mjs.map +0 -1
- package/dist/helpers/requireTamaguiCore.mjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/registerRequire.mjs.map +0 -1
- package/dist/server.mjs.map +0 -1
- package/dist/setup.mjs +0 -2
- package/dist/setup.mjs.map +0 -1
- package/dist/types.mjs.map +0 -1
- package/dist/worker.mjs.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.
|
|
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.
|
|
29
|
-
__reExport(exports_exports, require("./types.
|
|
30
|
-
var import_createExtractor = require("./extractor/createExtractor.
|
|
31
|
-
import_literalToAst = require("./extractor/literalToAst.
|
|
32
|
-
__reExport(exports_exports, require("./constants.
|
|
33
|
-
__reExport(exports_exports, require("./extractor/extractToClassNames.
|
|
34
|
-
__reExport(exports_exports, require("./extractor/concatClassName.
|
|
35
|
-
__reExport(exports_exports, require("./extractor/extractToNative.
|
|
36
|
-
__reExport(exports_exports, require("./extractor/extractHelpers.
|
|
37
|
-
__reExport(exports_exports, require("./extractor/loadTamagui.
|
|
38
|
-
__reExport(exports_exports, require("./extractor/watchTamaguiConfig.
|
|
39
|
-
__reExport(exports_exports, require("./extractor/createLogger.
|
|
40
|
-
__reExport(exports_exports, require("./registerRequire.
|
|
41
|
-
__reExport(exports_exports, require("./getPragmaOptions.
|
|
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);
|
|
@@ -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.
|
|
43
|
-
import_loadTamagui = require("./loadTamagui.
|
|
44
|
-
import_esbuildTsconfigPaths = require("./esbuildTsconfigPaths.
|
|
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.
|
|
54
|
-
import_babelParse = require("./babelParse.
|
|
55
|
-
import_bundle = require("./bundle.
|
|
56
|
-
import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.
|
|
57
|
-
import_requireTamaguiCore = require("../helpers/requireTamaguiCore.
|
|
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
|
+
}
|
|
@@ -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.
|
|
43
|
-
import_evaluateAstNode = require("./evaluateAstNode.
|
|
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.
|
|
44
|
-
import_requireTamaguiCore = require("../helpers/requireTamaguiCore.
|
|
45
|
-
import_createEvaluator = require("./createEvaluator.
|
|
46
|
-
import_evaluateAstNode = require("./evaluateAstNode.
|
|
47
|
-
import_extractHelpers = require("./extractHelpers.
|
|
48
|
-
import_findTopmostFunction = require("./findTopmostFunction.
|
|
49
|
-
import_getStaticBindingsForScope = require("./getStaticBindingsForScope.
|
|
50
|
-
import_literalToAst = require("./literalToAst.
|
|
51
|
-
import_loadTamagui = require("./loadTamagui.
|
|
52
|
-
import_logLines = require("./logLines.
|
|
53
|
-
import_normalizeTernaries = require("./normalizeTernaries.
|
|
54
|
-
import_propsToFontFamilyCache = require("./propsToFontFamilyCache.
|
|
55
|
-
import_timer = require("./timer.
|
|
56
|
-
import_validHTMLAttributes = require("./validHTMLAttributes.
|
|
57
|
-
import_errors = require("./errors.
|
|
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.
|
|
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 {}
|
|
@@ -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.
|
|
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.
|
|
41
|
-
import_extractHelpers = require("./extractHelpers.
|
|
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.
|
|
43
|
-
import_babelParse = require("./babelParse.
|
|
44
|
-
import_createLogger = require("./createLogger.
|
|
45
|
-
import_extractMediaStyle = require("./extractMediaStyle.
|
|
46
|
-
import_normalizeTernaries = require("./normalizeTernaries.
|
|
47
|
-
import_propsToFontFamilyCache = require("./propsToFontFamilyCache.
|
|
48
|
-
import_timer = require("./timer.
|
|
49
|
-
import_errors = require("./errors.
|
|
50
|
-
import_concatClassName = require("./concatClassName.
|
|
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.
|
|
47
|
-
import_createExtractor = require("./createExtractor.
|
|
48
|
-
import_createLogger = require("./createLogger.
|
|
49
|
-
import_extractHelpers = require("./extractHelpers.
|
|
50
|
-
import_literalToAst = require("./literalToAst.
|
|
51
|
-
import_loadTamagui = require("./loadTamagui.
|
|
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
|
+
}
|
|
@@ -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.
|
|
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
|
+
}
|
|
@@ -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.
|
|
42
|
-
import_getSourceModule = require("./getSourceModule.
|
|
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
|
+
}
|
|
@@ -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.
|
|
48
|
-
import_requireTamaguiCore = require("../helpers/requireTamaguiCore.
|
|
49
|
-
import_registerRequire = require("../registerRequire.
|
|
50
|
-
import_bundleConfig = require("./bundleConfig.
|
|
51
|
-
import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig.
|
|
52
|
-
import_regenerateConfig = require("./regenerateConfig.
|
|
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.
|
|
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.
|
|
43
|
-
import_bundleConfig = require("./bundleConfig.
|
|
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
|
+
}
|
|
@@ -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.
|
|
27
|
-
import_regenerateConfig = require("./regenerateConfig.
|
|
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
|
+
}
|
|
@@ -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.
|
|
39
|
-
__reExport(index_exports, require("./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.
|
|
30
|
-
import_requireTamaguiCore = require("./helpers/requireTamaguiCore.
|
|
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
|
+
};
|