@tamagui/tailwind 3.0.0-beta.922.1 → 3.0.0
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 +312 -137
- package/dist/cjs/candidate.native.cjs +342 -153
- package/dist/cjs/candidate.native.js +342 -153
- package/dist/cjs/candidate.native.js.map +1 -1
- package/dist/cjs/compose.cjs +383 -0
- package/dist/cjs/compose.native.cjs +389 -0
- package/dist/cjs/compose.native.js +391 -0
- package/dist/cjs/compose.native.js.map +1 -0
- package/dist/cjs/composedResolver.cjs +226 -0
- package/dist/cjs/composedResolver.native.cjs +255 -0
- package/dist/cjs/composedResolver.native.js +257 -0
- package/dist/cjs/composedResolver.native.js.map +1 -0
- package/dist/cjs/frontend.cjs +4 -11
- package/dist/cjs/frontend.native.cjs +5 -16
- package/dist/cjs/frontend.native.js +5 -16
- package/dist/cjs/frontend.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.native.cjs +2 -0
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/candidate.mjs +314 -140
- package/dist/esm/candidate.mjs.map +1 -1
- package/dist/esm/candidate.native.js +344 -156
- package/dist/esm/candidate.native.js.map +1 -1
- package/dist/esm/compose.mjs +359 -0
- package/dist/esm/compose.mjs.map +1 -0
- package/dist/esm/compose.native.js +363 -0
- package/dist/esm/compose.native.js.map +1 -0
- package/dist/esm/composedResolver.mjs +206 -0
- package/dist/esm/composedResolver.mjs.map +1 -0
- package/dist/esm/composedResolver.native.js +233 -0
- package/dist/esm/composedResolver.native.js.map +1 -0
- package/dist/esm/frontend.mjs +4 -11
- package/dist/esm/frontend.mjs.map +1 -1
- package/dist/esm/frontend.native.js +5 -16
- package/dist/esm/frontend.native.js.map +1 -1
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +3 -2
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +18 -15
- package/src/candidate.ts +396 -60
- package/src/frontend.ts +3 -16
- package/src/index.tsx +14 -2
- package/src/types.ts +32 -4
- package/types/candidate.d.ts +2 -1
- package/types/candidate.d.ts.map +1 -1
- package/types/compose.d.ts +19 -0
- package/types/compose.d.ts.map +1 -0
- package/types/composedResolver.d.ts +19 -0
- package/types/composedResolver.d.ts.map +1 -0
- package/types/frontend.d.ts.map +1 -1
- package/types/index.d.ts +11 -1
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +18 -3
- package/types/types.d.ts.map +1 -1
|
@@ -1 +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_candidate = require(\"./candidate\");\
|
|
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_candidate = require(\"./candidate\");\nvar import_composedResolver = require(\"./composedResolver\");\nfunction parseStaticStyle(input, config) {\n return (0, import_candidate.resolveTailwindClassName)(input, config);\n}\nfunction normalizeTailwindStaticConfig(staticConfig, config) {\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 === \"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 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 return {\n baseStyle,\n passthroughClassName,\n variants\n };\n}\nvar tailwindStyleFrontend = {\n resolveClassName: import_candidate.resolveTailwindCandidate,\n normalizeStaticConfig: normalizeTailwindStaticConfig,\n compose: import_composedResolver.composedResolver\n};\n//# sourceMappingURL=frontend.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;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,SACA,OAAO,UAAU,WAAW,iBAAiB,OAAO,MAAM,IAAI,KAChE;GACF,CAAC,CAAC,IAAI,UACR;EACF,CAAC,CAAC;CACJ;CACA,IAAI,YAAY,aAAa;CAC7B,IAAI,uBAAuB,aAAa;CACxC,IAAI,aAAa,eAAe;EAC9B,IAAI,EAAE,WAAW,GAAG,WAAW,iBAAiB,aAAa,eAAe,MAAM;EAClF,YAAY;EACZ,uBAAuB;CACzB;CACA,OAAO;EACL;EACA;EACA;CACF;AACF;AACA,IAAI,wBAAwB;CAC1B,kBAAkB,iBAAiB;CACnC,uBAAuB;CACvB,SAAS,wBAAwB;AACnC"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
Text: () => Text,
|
|
24
24
|
View: () => View,
|
|
25
|
+
html: () => html,
|
|
25
26
|
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
26
27
|
styled: () => import_styled.styled,
|
|
27
28
|
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
@@ -34,3 +35,4 @@ var import_frontend2 = require("./frontend.cjs");
|
|
|
34
35
|
const frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
35
36
|
const View = frontendViews.View;
|
|
36
37
|
const Text = frontendViews.Text;
|
|
38
|
+
const html = (0, import_internal_runtime.createFrontendHTML)(import_frontend.tailwindStyleFrontend);
|
|
@@ -24,6 +24,7 @@ var index_exports = {};
|
|
|
24
24
|
__export(index_exports, {
|
|
25
25
|
Text: () => Text,
|
|
26
26
|
View: () => View,
|
|
27
|
+
html: () => html,
|
|
27
28
|
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
28
29
|
styled: () => import_styled.styled,
|
|
29
30
|
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
@@ -36,3 +37,4 @@ var import_frontend2 = require("./frontend.native.js");
|
|
|
36
37
|
var frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
37
38
|
var View = frontendViews.View;
|
|
38
39
|
var Text = frontendViews.Text;
|
|
40
|
+
var html = (0, import_internal_runtime.createFrontendHTML)(import_frontend.tailwindStyleFrontend);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -24,6 +24,7 @@ var index_exports = {};
|
|
|
24
24
|
__export(index_exports, {
|
|
25
25
|
Text: () => Text,
|
|
26
26
|
View: () => View,
|
|
27
|
+
html: () => html,
|
|
27
28
|
parseStaticStyle: () => import_frontend2.parseStaticStyle,
|
|
28
29
|
styled: () => import_styled.styled,
|
|
29
30
|
tailwindStyleFrontend: () => import_frontend2.tailwindStyleFrontend
|
|
@@ -36,5 +37,6 @@ var import_frontend2 = require("./frontend.native.js");
|
|
|
36
37
|
var frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);
|
|
37
38
|
var View = frontendViews.View;
|
|
38
39
|
var Text = frontendViews.Text;
|
|
40
|
+
var html = (0, import_internal_runtime.createFrontendHTML)(import_frontend.tailwindStyleFrontend);
|
|
39
41
|
|
|
40
42
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +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 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 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,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,iBAAiB,GAAG,wBAAwB,oBAAmB,CAAE,gBAAgB,qBAAqB;AAC1G,IAAI,OAAO,cAAc;AACzB,IAAI,OAAO,cAAc"}
|
|
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 html: () => html,\n parseStaticStyle: () => import_frontend2.parseStaticStyle,\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 frontendViews = (0, import_internal_runtime.createFrontendViews)(import_frontend.tailwindStyleFrontend);\nvar View = frontendViews.View;\nvar Text = frontendViews.Text;\nvar html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