@tamagui/tailwind 0.0.0-bootstrap.0 → 3.0.0-beta.637.1
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/cjs/candidate.cjs +385 -0
- package/dist/cjs/candidate.native.cjs +431 -0
- package/dist/cjs/candidate.native.js +433 -0
- package/dist/cjs/candidate.native.js.map +1 -0
- package/dist/cjs/frontend.cjs +80 -0
- package/dist/cjs/frontend.native.cjs +95 -0
- package/dist/cjs/frontend.native.js +97 -0
- package/dist/cjs/frontend.native.js.map +1 -0
- package/dist/cjs/index.cjs +39 -0
- package/dist/cjs/index.native.cjs +41 -0
- package/dist/cjs/index.native.js +43 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/styled.cjs +30 -0
- package/dist/cjs/styled.native.cjs +32 -0
- package/dist/cjs/styled.native.js +34 -0
- package/dist/cjs/styled.native.js.map +1 -0
- package/dist/cjs/types.cjs +17 -0
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +21 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/vite/state.cjs +249 -0
- package/dist/cjs/vite/state.native.cjs +331 -0
- package/dist/cjs/vite/state.native.js +333 -0
- package/dist/cjs/vite/state.native.js.map +1 -0
- package/dist/cjs/vite.cjs +148 -0
- package/dist/cjs/vite.native.cjs +188 -0
- package/dist/cjs/vite.native.js +190 -0
- package/dist/cjs/vite.native.js.map +1 -0
- package/dist/esm/candidate.mjs +360 -0
- package/dist/esm/candidate.mjs.map +1 -0
- package/dist/esm/candidate.native.js +404 -0
- package/dist/esm/candidate.native.js.map +1 -0
- package/dist/esm/frontend.mjs +57 -0
- package/dist/esm/frontend.mjs.map +1 -0
- package/dist/esm/frontend.native.js +70 -0
- package/dist/esm/frontend.native.js.map +1 -0
- package/dist/esm/index.mjs +11 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +11 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/styled.mjs +10 -0
- package/dist/esm/styled.mjs.map +1 -0
- package/dist/esm/styled.native.js +10 -0
- package/dist/esm/styled.native.js.map +1 -0
- package/dist/esm/types.mjs +0 -0
- package/dist/esm/types.native.js +0 -0
- package/dist/esm/vite/state.mjs +215 -0
- package/dist/esm/vite/state.mjs.map +1 -0
- package/dist/esm/vite/state.native.js +295 -0
- package/dist/esm/vite/state.native.js.map +1 -0
- package/dist/esm/vite.mjs +116 -0
- package/dist/esm/vite.mjs.map +1 -0
- package/dist/esm/vite.native.js +154 -0
- package/dist/esm/vite.native.js.map +1 -0
- package/package.json +88 -5
- package/src/candidate.ts +527 -0
- package/src/frontend.ts +116 -0
- package/src/index.tsx +24 -0
- package/src/styled.tsx +52 -0
- package/src/types.ts +226 -0
- package/src/vite/state.ts +274 -0
- package/src/vite.ts +204 -0
- package/types/candidate.d.ts +23 -0
- package/types/candidate.d.ts.map +1 -0
- package/types/frontend.d.ts +20 -0
- package/types/frontend.d.ts.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/styled.d.ts +12 -0
- package/types/styled.d.ts.map +1 -0
- package/types/types.d.ts +158 -0
- package/types/types.d.ts.map +1 -0
- package/types/vite/state.d.ts +28 -0
- package/types/vite/state.d.ts.map +1 -0
- package/types/vite.d.ts +20 -0
- package/types/vite.d.ts.map +1 -0
- package/README.md +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var frontend_exports = {};
|
|
25
|
+
__export(frontend_exports, {
|
|
26
|
+
parseStaticStyle: () => parseStaticStyle,
|
|
27
|
+
tailwindStyleFrontend: () => tailwindStyleFrontend
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(frontend_exports);
|
|
30
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
31
|
+
var import_candidate = require("./candidate.native.js");
|
|
32
|
+
function _type_of(obj) {
|
|
33
|
+
"@swc/helpers - typeof";
|
|
34
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
35
|
+
}
|
|
36
|
+
function parseStaticStyle(input, config) {
|
|
37
|
+
return (0, import_candidate.preprocessTailwindClassName)({ className: input }, config);
|
|
38
|
+
}
|
|
39
|
+
var normalizedStaticConfigCache = /* @__PURE__ */ new WeakMap();
|
|
40
|
+
var normalizedStaticConfigs = /* @__PURE__ */ new WeakSet();
|
|
41
|
+
function normalizeTailwindStaticConfig(staticConfig, config) {
|
|
42
|
+
var _staticConfig_compoundVariants;
|
|
43
|
+
if (normalizedStaticConfigs.has(staticConfig)) {
|
|
44
|
+
return staticConfig;
|
|
45
|
+
}
|
|
46
|
+
var configCache = normalizedStaticConfigCache.get(staticConfig);
|
|
47
|
+
var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(config);
|
|
48
|
+
if (cached) return cached;
|
|
49
|
+
var variants = staticConfig.variants;
|
|
50
|
+
if (variants) {
|
|
51
|
+
variants = Object.fromEntries(Object.entries(variants).map(function(param) {
|
|
52
|
+
var [variantName, definition] = param;
|
|
53
|
+
return [variantName, (typeof definition === "undefined" ? "undefined" : _type_of(definition)) === "object" && definition ? Object.fromEntries(Object.entries(definition).map(function(param2) {
|
|
54
|
+
var [matcher, value] = param2;
|
|
55
|
+
return [matcher, typeof value === "string" ? parseStaticStyle(value, config) : value];
|
|
56
|
+
})) : definition];
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
var compoundVariants = (_staticConfig_compoundVariants = staticConfig.compoundVariants) === null || _staticConfig_compoundVariants === void 0 ? void 0 : _staticConfig_compoundVariants.map(function(compoundVariant) {
|
|
60
|
+
return {
|
|
61
|
+
...compoundVariant,
|
|
62
|
+
style: typeof compoundVariant.style === "string" ? parseStaticStyle(compoundVariant.style, config) : compoundVariant.style
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
var baseStyle = staticConfig.baseStyle;
|
|
66
|
+
var passthroughClassName = staticConfig.passthroughClassName;
|
|
67
|
+
if (staticConfig.baseClassName) {
|
|
68
|
+
var { className, ...styles } = parseStaticStyle(staticConfig.baseClassName, config);
|
|
69
|
+
baseStyle = styles;
|
|
70
|
+
passthroughClassName = className;
|
|
71
|
+
}
|
|
72
|
+
var normalized = {
|
|
73
|
+
...staticConfig,
|
|
74
|
+
baseStyle,
|
|
75
|
+
passthroughClassName,
|
|
76
|
+
variants,
|
|
77
|
+
compoundVariants
|
|
78
|
+
};
|
|
79
|
+
normalizedStaticConfigs.add(normalized);
|
|
80
|
+
configCache || (configCache = /* @__PURE__ */ new WeakMap());
|
|
81
|
+
configCache.set(config, normalized);
|
|
82
|
+
normalizedStaticConfigCache.set(staticConfig, configCache);
|
|
83
|
+
return normalized;
|
|
84
|
+
}
|
|
85
|
+
var tailwindStyleFrontend = {
|
|
86
|
+
preprocessProps(props, config) {
|
|
87
|
+
var transformed = typeof props.className === "string" ? (0, import_candidate.preprocessTailwindClassName)(props, config, true) : props;
|
|
88
|
+
if (transformed !== props) {
|
|
89
|
+
;
|
|
90
|
+
transformed[import_internal_runtime.STYLE_FRONTEND_PREPROCESSED] = true;
|
|
91
|
+
}
|
|
92
|
+
return transformed;
|
|
93
|
+
},
|
|
94
|
+
normalizeStaticConfig: normalizeTailwindStaticConfig
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=frontend.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend.native.js","names":[],"sources":["cjs/frontend.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar frontend_exports = {};\n__export(frontend_exports, {\n parseStaticStyle: () => parseStaticStyle,\n tailwindStyleFrontend: () => tailwindStyleFrontend\n});\nmodule.exports = __toCommonJS(frontend_exports);\nvar import_internal_runtime = require(\"@tamagui/core/internal-runtime\");\nvar import_candidate = require(\"./candidate\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction parseStaticStyle(input, config) {\n return (0, import_candidate.preprocessTailwindClassName)({\n className: input\n }, config);\n}\nvar normalizedStaticConfigCache = /* @__PURE__ */ new WeakMap();\nvar normalizedStaticConfigs = /* @__PURE__ */ new WeakSet();\nfunction normalizeTailwindStaticConfig(staticConfig, config) {\n var _staticConfig_compoundVariants;\n if (normalizedStaticConfigs.has(staticConfig)) {\n return staticConfig;\n }\n var configCache = normalizedStaticConfigCache.get(staticConfig);\n var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(config);\n if (cached) return cached;\n var variants = staticConfig.variants;\n if (variants) {\n variants = Object.fromEntries(Object.entries(variants).map(function(param) {\n var [variantName, definition] = param;\n return [\n variantName,\n (typeof definition === \"undefined\" ? \"undefined\" : _type_of(definition)) === \"object\" && definition ? Object.fromEntries(Object.entries(definition).map(function(param2) {\n var [matcher, value] = param2;\n return [\n matcher,\n typeof value === \"string\" ? parseStaticStyle(value, config) : value\n ];\n })) : definition\n ];\n }));\n }\n var compoundVariants = (_staticConfig_compoundVariants = staticConfig.compoundVariants) === null || _staticConfig_compoundVariants === void 0 ? void 0 : _staticConfig_compoundVariants.map(function(compoundVariant) {\n return {\n ...compoundVariant,\n style: typeof compoundVariant.style === \"string\" ? parseStaticStyle(compoundVariant.style, config) : compoundVariant.style\n };\n });\n var baseStyle = staticConfig.baseStyle;\n var passthroughClassName = staticConfig.passthroughClassName;\n if (staticConfig.baseClassName) {\n var { className, ...styles } = parseStaticStyle(staticConfig.baseClassName, config);\n baseStyle = styles;\n passthroughClassName = className;\n }\n var normalized = {\n ...staticConfig,\n baseStyle,\n passthroughClassName,\n variants,\n compoundVariants\n };\n normalizedStaticConfigs.add(normalized);\n configCache || (configCache = /* @__PURE__ */ new WeakMap());\n configCache.set(config, normalized);\n normalizedStaticConfigCache.set(staticConfig, configCache);\n return normalized;\n}\nvar tailwindStyleFrontend = {\n preprocessProps(props, config) {\n var transformed = typeof props.className === \"string\" ? (0, import_candidate.preprocessTailwindClassName)(props, config, true) : props;\n if (transformed !== props) {\n ;\n transformed[import_internal_runtime.STYLE_FRONTEND_PREPROCESSED] = true;\n }\n return transformed;\n },\n normalizeStaticConfig: normalizeTailwindStaticConfig\n};\n//# sourceMappingURL=frontend.js.map\n"],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
Text: () => Text,
|
|
25
|
+
View: () => View,
|
|
26
|
+
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
27
|
+
preprocessTailwindClassName: () => import_candidate.preprocessTailwindClassName,
|
|
28
|
+
styled: () => import_styled.styled,
|
|
29
|
+
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(index_exports);
|
|
32
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
33
|
+
var import_frontend = require("./frontend.cjs");
|
|
34
|
+
var import_styled = require("./styled.cjs");
|
|
35
|
+
var import_frontend2 = require("./frontend.cjs");
|
|
36
|
+
var import_candidate = require("./candidate.cjs");
|
|
37
|
+
const frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
38
|
+
const View = frontendViews.View;
|
|
39
|
+
const Text = frontendViews.Text;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var index_exports = {};
|
|
25
|
+
__export(index_exports, {
|
|
26
|
+
Text: () => Text,
|
|
27
|
+
View: () => View,
|
|
28
|
+
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
29
|
+
preprocessTailwindClassName: () => import_candidate.preprocessTailwindClassName,
|
|
30
|
+
styled: () => import_styled.styled,
|
|
31
|
+
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_exports);
|
|
34
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
35
|
+
var import_frontend = require("./frontend.native.js");
|
|
36
|
+
var import_styled = require("./styled.native.js");
|
|
37
|
+
var import_frontend2 = require("./frontend.native.js");
|
|
38
|
+
var import_candidate = require("./candidate.native.js");
|
|
39
|
+
var frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
40
|
+
var View = frontendViews.View;
|
|
41
|
+
var Text = frontendViews.Text;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var index_exports = {};
|
|
25
|
+
__export(index_exports, {
|
|
26
|
+
Text: () => Text,
|
|
27
|
+
View: () => View,
|
|
28
|
+
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
29
|
+
preprocessTailwindClassName: () => import_candidate.preprocessTailwindClassName,
|
|
30
|
+
styled: () => import_styled.styled,
|
|
31
|
+
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_exports);
|
|
34
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
35
|
+
var import_frontend = require("./frontend.native.js");
|
|
36
|
+
var import_styled = require("./styled.native.js");
|
|
37
|
+
var import_frontend2 = require("./frontend.native.js");
|
|
38
|
+
var import_candidate = require("./candidate.native.js");
|
|
39
|
+
var frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
40
|
+
var View = frontendViews.View;
|
|
41
|
+
var Text = frontendViews.Text;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Text: () => Text,\n View: () => View,\n parseStaticStyle: () => import_frontend2.parseStaticStyle,\n preprocessTailwindClassName: () => import_candidate.preprocessTailwindClassName,\n styled: () => import_styled.styled,\n tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_internal_runtime = require(\"@tamagui/core/internal-runtime\");\nvar import_frontend = require(\"./frontend\");\nvar import_styled = require(\"./styled\");\nvar import_frontend2 = require(\"./frontend\");\nvar import_candidate = require(\"./candidate\");\nvar frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);\nvar View = frontendViews.View;\nvar Text = frontendViews.Text;\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,YAAY;CACZ,YAAY;CACZ,wBAAwB,iBAAiB;CACzC,mCAAmC,iBAAiB;CACpD,cAAc,cAAc;CAC5B,6BAA6B,iBAAiB;AAChD,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,0BAA0B,QAAQ,gCAAgC;AACtE,IAAI,kBAAkB,QAAQ,sBAAY;AAC1C,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,mBAAmB,QAAQ,sBAAY;AAC3C,IAAI,mBAAmB,QAAQ,uBAAa;AAC5C,IAAI,iBAAiB,GAAG,wBAAwB,qBAAqB,gBAAgB,qBAAqB;AAC1G,IAAI,OAAO,cAAc;AACzB,IAAI,OAAO,cAAc"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var styled_exports = {};
|
|
23
|
+
__export(styled_exports, { styled: () => styled });
|
|
24
|
+
module.exports = __toCommonJS(styled_exports);
|
|
25
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
26
|
+
var import_frontend = require("./frontend.cjs");
|
|
27
|
+
const styledWithFrontend = (0, import_internal_runtime.createFrontendStyled)(import_frontend.tailwindStyleFrontend);
|
|
28
|
+
function styled(Component, optionsOrBaseClassName, maybeOptions) {
|
|
29
|
+
return styledWithFrontend(Component, optionsOrBaseClassName, maybeOptions);
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var styled_exports = {};
|
|
25
|
+
__export(styled_exports, { styled: () => styled });
|
|
26
|
+
module.exports = __toCommonJS(styled_exports);
|
|
27
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
28
|
+
var import_frontend = require("./frontend.native.js");
|
|
29
|
+
var styledWithFrontend = (0, import_internal_runtime.createFrontendStyled)(import_frontend.tailwindStyleFrontend);
|
|
30
|
+
function styled(Component, optionsOrBaseClassName, maybeOptions) {
|
|
31
|
+
return styledWithFrontend(Component, optionsOrBaseClassName, maybeOptions);
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var styled_exports = {};
|
|
25
|
+
__export(styled_exports, { styled: () => styled });
|
|
26
|
+
module.exports = __toCommonJS(styled_exports);
|
|
27
|
+
var import_internal_runtime = require("@tamagui/core/internal-runtime");
|
|
28
|
+
var import_frontend = require("./frontend.native.js");
|
|
29
|
+
var styledWithFrontend = (0, import_internal_runtime.createFrontendStyled)(import_frontend.tailwindStyleFrontend);
|
|
30
|
+
function styled(Component, optionsOrBaseClassName, maybeOptions) {
|
|
31
|
+
return styledWithFrontend(Component, optionsOrBaseClassName, maybeOptions);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=styled.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.native.js","names":[],"sources":["cjs/styled.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar styled_exports = {};\n__export(styled_exports, {\n styled: () => styled\n});\nmodule.exports = __toCommonJS(styled_exports);\nvar import_internal_runtime = require(\"@tamagui/core/internal-runtime\");\nvar import_frontend = require(\"./frontend\");\nvar styledWithFrontend = (0, import_internal_runtime.createFrontendStyled)(import_frontend.tailwindStyleFrontend);\nfunction styled(Component, optionsOrBaseClassName, maybeOptions) {\n return styledWithFrontend(Component, optionsOrBaseClassName, maybeOptions);\n}\n//# sourceMappingURL=styled.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB,EACvB,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,0BAA0B,QAAQ,gCAAgC;AACtE,IAAI,kBAAkB,QAAQ,sBAAY;AAC1C,IAAI,sBAAsB,GAAG,wBAAwB,sBAAsB,gBAAgB,qBAAqB;AAChH,SAAS,OAAO,WAAW,wBAAwB,cAAc;CAC/D,OAAO,mBAAmB,WAAW,wBAAwB,YAAY;AAC3E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var types_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var types_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(types_exports);
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=types.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.native.js","names":[],"sources":["cjs/types.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar types_exports = {};\nmodule.exports = __toCommonJS(types_exports);\n//# sourceMappingURL=types.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var state_exports = {};
|
|
29
|
+
__export(state_exports, {
|
|
30
|
+
TAILWIND_RESOLVED_ID: () => TAILWIND_RESOLVED_ID,
|
|
31
|
+
TAILWIND_VERSION: () => TAILWIND_VERSION,
|
|
32
|
+
TAILWIND_VIRTUAL_ID: () => TAILWIND_VIRTUAL_ID,
|
|
33
|
+
createTailwindScannerState: () => createTailwindScannerState,
|
|
34
|
+
isTamaguiCoreResetCSS: () => isTamaguiCoreResetCSS,
|
|
35
|
+
updateTailwindForWatchChange: () => updateTailwindForWatchChange,
|
|
36
|
+
wrapWithTamaguiLayer: () => wrapWithTamaguiLayer
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(state_exports);
|
|
39
|
+
var import_node = require("@tailwindcss/node");
|
|
40
|
+
var import_oxide = require("@tailwindcss/oxide");
|
|
41
|
+
var import_runtime = require("@tamagui/style-grammar/runtime");
|
|
42
|
+
var import_promises = require("node:fs/promises");
|
|
43
|
+
var import_node_module = require("node:module");
|
|
44
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
45
|
+
const TAILWIND_VERSION = "4.3.0";
|
|
46
|
+
const TAILWIND_VIRTUAL_ID = "virtual:tamagui-tailwind.css";
|
|
47
|
+
const TAILWIND_RESOLVED_ID = `\0${TAILWIND_VIRTUAL_ID}`;
|
|
48
|
+
function wrapWithTamaguiLayer(css) {
|
|
49
|
+
return `@layer tamagui {
|
|
50
|
+
${css}
|
|
51
|
+
}`;
|
|
52
|
+
}
|
|
53
|
+
function isTamaguiCoreResetCSS(id) {
|
|
54
|
+
const normalizedId = id.split("?", 1)[0].replace(/\\/g, "/");
|
|
55
|
+
return normalizedId.endsWith("/@tamagui/core/reset.css") || normalizedId.endsWith("/code/core/core/reset.css");
|
|
56
|
+
}
|
|
57
|
+
const TAILWIND_INPUT = `@layer tamagui, theme, utilities;
|
|
58
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
59
|
+
@import "tailwindcss/utilities.css" layer(utilities);`;
|
|
60
|
+
function extensionForFile(id) {
|
|
61
|
+
return import_node_path.default.extname(id.split("?", 1)[0]).slice(1) || "html";
|
|
62
|
+
}
|
|
63
|
+
async function assertHostTailwind(root) {
|
|
64
|
+
const requireFromRoot = (0, import_node_module.createRequire)(import_node_path.default.join(root, "package.json"));
|
|
65
|
+
let packagePath;
|
|
66
|
+
try {
|
|
67
|
+
packagePath = requireFromRoot.resolve("tailwindcss/package.json");
|
|
68
|
+
} catch {
|
|
69
|
+
throw new Error(`[tamagui] @tamagui/tailwind/vite requires tailwindcss@${TAILWIND_VERSION} in the app. Install it with \`bun add -D tailwindcss@${TAILWIND_VERSION}\` (resolved from ${root}).`);
|
|
70
|
+
}
|
|
71
|
+
const packageJSON = JSON.parse(await (0, import_promises.readFile)(packagePath, "utf8"));
|
|
72
|
+
if (packageJSON.version !== TAILWIND_VERSION) {
|
|
73
|
+
throw new Error(`[tamagui] @tamagui/tailwind/vite requires tailwindcss@${TAILWIND_VERSION}, but ${packageJSON.version || "an unknown version"} was resolved from ${packagePath}. Align the app dependency before starting Vite.`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function createTailwindScannerState() {
|
|
77
|
+
let root = "";
|
|
78
|
+
let generation = -1;
|
|
79
|
+
let enabled = false;
|
|
80
|
+
let scanner = null;
|
|
81
|
+
let compiler = null;
|
|
82
|
+
let grammarConfig = (0, import_runtime.createGrammarConfigView)({});
|
|
83
|
+
let candidatesByFile = /* @__PURE__ */ new Map();
|
|
84
|
+
let compiledCandidates = /* @__PURE__ */ new Set();
|
|
85
|
+
let addDependency = () => {};
|
|
86
|
+
let css = "";
|
|
87
|
+
function clear() {
|
|
88
|
+
root = "";
|
|
89
|
+
generation = -1;
|
|
90
|
+
enabled = false;
|
|
91
|
+
scanner = null;
|
|
92
|
+
compiler = null;
|
|
93
|
+
grammarConfig = (0, import_runtime.createGrammarConfigView)({});
|
|
94
|
+
candidatesByFile = /* @__PURE__ */ new Map();
|
|
95
|
+
compiledCandidates = /* @__PURE__ */ new Set();
|
|
96
|
+
addDependency = () => {};
|
|
97
|
+
css = "";
|
|
98
|
+
}
|
|
99
|
+
async function configure(nextRoot, nextGeneration, config, onDependency, onSourceGlob = () => {}) {
|
|
100
|
+
if (!config) {
|
|
101
|
+
clear();
|
|
102
|
+
generation = nextGeneration;
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
if (compiler && scanner && enabled && generation === nextGeneration && root === nextRoot) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
await assertHostTailwind(nextRoot);
|
|
109
|
+
root = nextRoot;
|
|
110
|
+
generation = nextGeneration;
|
|
111
|
+
enabled = true;
|
|
112
|
+
grammarConfig = (0, import_runtime.createGrammarConfigView)(config);
|
|
113
|
+
addDependency = onDependency;
|
|
114
|
+
scanner = new import_oxide.Scanner({ sources: [
|
|
115
|
+
{
|
|
116
|
+
base: root,
|
|
117
|
+
pattern: "**/*",
|
|
118
|
+
negated: false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
base: root,
|
|
122
|
+
pattern: "node_modules/**",
|
|
123
|
+
negated: true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
base: root,
|
|
127
|
+
pattern: ".git/**",
|
|
128
|
+
negated: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
base: root,
|
|
132
|
+
pattern: ".vite/**",
|
|
133
|
+
negated: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
base: root,
|
|
137
|
+
pattern: "dist/**",
|
|
138
|
+
negated: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
base: root,
|
|
142
|
+
pattern: "build/**",
|
|
143
|
+
negated: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
base: root,
|
|
147
|
+
pattern: "coverage/**",
|
|
148
|
+
negated: true
|
|
149
|
+
}
|
|
150
|
+
] });
|
|
151
|
+
compiler = await createCompiler();
|
|
152
|
+
scanner.scan();
|
|
153
|
+
registerScannerSources(scanner, onDependency, onSourceGlob);
|
|
154
|
+
candidatesByFile = /* @__PURE__ */ new Map();
|
|
155
|
+
await Promise.all(scanner.files.map(async (file) => {
|
|
156
|
+
try {
|
|
157
|
+
const source = await (0, import_promises.readFile)(file, "utf8");
|
|
158
|
+
candidatesByFile.set(await normalizeSourcePath(file), candidatesForSource(scanner, file, source));
|
|
159
|
+
} catch {}
|
|
160
|
+
}));
|
|
161
|
+
await rebuild();
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
async function createCompiler() {
|
|
165
|
+
return (0, import_node.compile)(TAILWIND_INPUT, {
|
|
166
|
+
base: root,
|
|
167
|
+
onDependency: addDependency
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
async function rebuild() {
|
|
171
|
+
if (!compiler) return false;
|
|
172
|
+
const allCandidates = /* @__PURE__ */ new Set();
|
|
173
|
+
for (const candidates of candidatesByFile.values()) {
|
|
174
|
+
for (const candidate of candidates) allCandidates.add(candidate);
|
|
175
|
+
}
|
|
176
|
+
const passthrough = [...allCandidates].filter((candidate) => (0, import_runtime.classifyCandidate)(candidate, grammarConfig).kind === "passthrough").sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
177
|
+
const nextCandidates = new Set(passthrough);
|
|
178
|
+
const removedCandidate = [...compiledCandidates].some((candidate) => !nextCandidates.has(candidate));
|
|
179
|
+
if (removedCandidate) {
|
|
180
|
+
compiler = await createCompiler();
|
|
181
|
+
}
|
|
182
|
+
const nextCSS = compiler.build(passthrough);
|
|
183
|
+
compiledCandidates = nextCandidates;
|
|
184
|
+
if (nextCSS === css) return false;
|
|
185
|
+
css = nextCSS;
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
async function scanSource(id, source) {
|
|
189
|
+
if (!enabled || !scanner) return false;
|
|
190
|
+
candidatesByFile.set(await normalizeSourcePath(id), candidatesForSource(scanner, id, source));
|
|
191
|
+
return rebuild();
|
|
192
|
+
}
|
|
193
|
+
async function removeSource(id) {
|
|
194
|
+
if (!candidatesByFile.delete(await normalizeSourcePath(id))) return false;
|
|
195
|
+
return rebuild();
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
198
|
+
clear,
|
|
199
|
+
configure,
|
|
200
|
+
removeSource,
|
|
201
|
+
scanSource,
|
|
202
|
+
get enabled() {
|
|
203
|
+
return enabled;
|
|
204
|
+
},
|
|
205
|
+
get css() {
|
|
206
|
+
return css;
|
|
207
|
+
},
|
|
208
|
+
get candidateCount() {
|
|
209
|
+
return compiledCandidates.size;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
async function updateTailwindForWatchChange(state, id, event, configure) {
|
|
214
|
+
if (!await configure()) return false;
|
|
215
|
+
if (event === "delete") {
|
|
216
|
+
return state.removeSource(id);
|
|
217
|
+
}
|
|
218
|
+
try {
|
|
219
|
+
return state.scanSource(id, await (0, import_promises.readFile)(id, "utf8"));
|
|
220
|
+
} catch {
|
|
221
|
+
return state.removeSource(id);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function registerScannerSources(scanner, onDependency, onSourceGlob) {
|
|
225
|
+
for (const file of scanner.files) {
|
|
226
|
+
onDependency(file);
|
|
227
|
+
}
|
|
228
|
+
for (const { base, pattern } of scanner.globs) {
|
|
229
|
+
onSourceGlob(import_node_path.default.join(base, pattern));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async function normalizeSourcePath(id) {
|
|
233
|
+
const cleanId = import_node_path.default.resolve(id.split("?", 1)[0]);
|
|
234
|
+
try {
|
|
235
|
+
return await (0, import_promises.realpath)(cleanId);
|
|
236
|
+
} catch {
|
|
237
|
+
try {
|
|
238
|
+
return import_node_path.default.join(await (0, import_promises.realpath)(import_node_path.default.dirname(cleanId)), import_node_path.default.basename(cleanId));
|
|
239
|
+
} catch {
|
|
240
|
+
return cleanId;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function candidatesForSource(scanner, id, source) {
|
|
245
|
+
return new Set(scanner.getCandidatesWithPositions({
|
|
246
|
+
content: source,
|
|
247
|
+
extension: extensionForFile(id)
|
|
248
|
+
}).map(({ candidate }) => candidate));
|
|
249
|
+
}
|