@tamagui/text 3.0.0-beta.807.1 → 3.0.0-beta.831.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/types.cjs +16 -0
- package/dist/cjs/types.native.cjs +16 -0
- package/dist/cjs/types.native.js +16 -0
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/types.mjs +13 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +13 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/jsx/types.mjs +13 -0
- package/dist/jsx/types.mjs.map +1 -0
- package/dist/jsx/types.native.cjs +16 -0
- package/dist/jsx/types.native.js +16 -0
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +5 -5
- package/src/types.ts +30 -5
- package/types/types.d.ts +44 -1
- package/types/types.d.ts.map +1 -1
package/dist/cjs/types.cjs
CHANGED
|
@@ -2,6 +2,12 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
5
11
|
var __copyProps = (to, from, except, desc) => {
|
|
6
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
13
|
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
@@ -13,4 +19,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
19
|
};
|
|
14
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
21
|
var types_exports = {};
|
|
22
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
16
23
|
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
var import_web = require("@tamagui/web");
|
|
25
|
+
const textParentProps = {
|
|
26
|
+
...import_web.stylePropsTextOnly,
|
|
27
|
+
ellipsis: true,
|
|
28
|
+
maxFontSizeMultiplier: true,
|
|
29
|
+
noTextWrap: true,
|
|
30
|
+
numberOfLines: true,
|
|
31
|
+
textProps: true
|
|
32
|
+
};
|
|
@@ -4,6 +4,12 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
7
13
|
var __copyProps = (to, from, except, desc) => {
|
|
8
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
15
|
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
@@ -15,4 +21,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
21
|
};
|
|
16
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
23
|
var types_exports = {};
|
|
24
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
18
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
var import_web = require("@tamagui/web");
|
|
27
|
+
var textParentProps = {
|
|
28
|
+
...import_web.stylePropsTextOnly,
|
|
29
|
+
ellipsis: true,
|
|
30
|
+
maxFontSizeMultiplier: true,
|
|
31
|
+
noTextWrap: true,
|
|
32
|
+
numberOfLines: true,
|
|
33
|
+
textProps: true
|
|
34
|
+
};
|
package/dist/cjs/types.native.js
CHANGED
|
@@ -4,6 +4,12 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
7
13
|
var __copyProps = (to, from, except, desc) => {
|
|
8
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
15
|
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
@@ -15,6 +21,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
21
|
};
|
|
16
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
23
|
var types_exports = {};
|
|
24
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
18
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
var import_web = require("@tamagui/web");
|
|
27
|
+
var textParentProps = {
|
|
28
|
+
...import_web.stylePropsTextOnly,
|
|
29
|
+
ellipsis: true,
|
|
30
|
+
maxFontSizeMultiplier: true,
|
|
31
|
+
noTextWrap: true,
|
|
32
|
+
numberOfLines: true,
|
|
33
|
+
textProps: true
|
|
34
|
+
};
|
|
19
35
|
|
|
20
36
|
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +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"}
|
|
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 __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 types_exports = {};\n__export(types_exports, {\n textParentProps: () => textParentProps\n});\nmodule.exports = __toCommonJS(types_exports);\nvar import_web = require(\"@tamagui/web\");\nvar textParentProps = {\n ...import_web.stylePropsTextOnly,\n ellipsis: true,\n maxFontSizeMultiplier: true,\n noTextWrap: true,\n numberOfLines: true,\n textProps: true\n};\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,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,EACtB,uBAAuB,gBACzB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,kBAAkB;CACpB,GAAG,WAAW;CACd,UAAU;CACV,uBAAuB;CACvB,YAAY;CACZ,eAAe;CACf,WAAW;AACb"}
|
package/dist/esm/types.mjs
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { stylePropsTextOnly } from "@tamagui/web";
|
|
2
|
+
|
|
3
|
+
const textParentProps = {
|
|
4
|
+
...stylePropsTextOnly,
|
|
5
|
+
ellipsis: true,
|
|
6
|
+
maxFontSizeMultiplier: true,
|
|
7
|
+
noTextWrap: true,
|
|
8
|
+
numberOfLines: true,
|
|
9
|
+
textProps: true
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { textParentProps };
|
|
13
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["esm/types.js"],"sourcesContent":["import {\n stylePropsTextOnly\n} from \"@tamagui/web\";\nconst textParentProps = {\n ...stylePropsTextOnly,\n ellipsis: true,\n maxFontSizeMultiplier: true,\n noTextWrap: true,\n numberOfLines: true,\n textProps: true\n};\nexport {\n textParentProps\n};\n//# sourceMappingURL=types.js.map\n"],"mappings":";;;AAGA,MAAM,kBAAkB;CACtB,GAAG;CACH,UAAU;CACV,uBAAuB;CACvB,YAAY;CACZ,eAAe;CACf,WAAW;AACb"}
|
package/dist/esm/types.native.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { stylePropsTextOnly } from "@tamagui/web";
|
|
2
|
+
|
|
3
|
+
var textParentProps = {
|
|
4
|
+
...stylePropsTextOnly,
|
|
5
|
+
ellipsis: true,
|
|
6
|
+
maxFontSizeMultiplier: true,
|
|
7
|
+
noTextWrap: true,
|
|
8
|
+
numberOfLines: true,
|
|
9
|
+
textProps: true
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { textParentProps };
|
|
13
|
+
//# sourceMappingURL=types.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.native.js","names":[],"sources":["esm/types.native.js"],"sourcesContent":["import { stylePropsTextOnly } from \"@tamagui/web\";\nvar textParentProps = {\n ...stylePropsTextOnly,\n ellipsis: true,\n maxFontSizeMultiplier: true,\n noTextWrap: true,\n numberOfLines: true,\n textProps: true\n};\nexport {\n textParentProps\n};\n//# sourceMappingURL=types.js.map\n"],"mappings":";;;AACA,IAAI,kBAAkB;CACpB,GAAG;CACH,UAAU;CACV,uBAAuB;CACvB,YAAY;CACZ,eAAe;CACf,WAAW;AACb"}
|
package/dist/jsx/types.mjs
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { stylePropsTextOnly } from "@tamagui/web";
|
|
2
|
+
|
|
3
|
+
const textParentProps = {
|
|
4
|
+
...stylePropsTextOnly,
|
|
5
|
+
ellipsis: true,
|
|
6
|
+
maxFontSizeMultiplier: true,
|
|
7
|
+
noTextWrap: true,
|
|
8
|
+
numberOfLines: true,
|
|
9
|
+
textProps: true
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { textParentProps };
|
|
13
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["jsx/types.js"],"sourcesContent":["import {\n stylePropsTextOnly\n} from \"@tamagui/web\";\nconst textParentProps = {\n ...stylePropsTextOnly,\n ellipsis: true,\n maxFontSizeMultiplier: true,\n noTextWrap: true,\n numberOfLines: true,\n textProps: true\n};\nexport {\n textParentProps\n};\n//# sourceMappingURL=types.js.map\n"],"mappings":";;;AAGA,MAAM,kBAAkB;CACtB,GAAG;CACH,UAAU;CACV,uBAAuB;CACvB,YAAY;CACZ,eAAe;CACf,WAAW;AACb"}
|
|
@@ -4,6 +4,12 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
7
13
|
var __copyProps = (to, from, except, desc) => {
|
|
8
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
15
|
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
@@ -15,4 +21,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
21
|
};
|
|
16
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
23
|
var types_exports = {};
|
|
24
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
18
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
var import_web = require("@tamagui/web");
|
|
27
|
+
var textParentProps = {
|
|
28
|
+
...import_web.stylePropsTextOnly,
|
|
29
|
+
ellipsis: true,
|
|
30
|
+
maxFontSizeMultiplier: true,
|
|
31
|
+
noTextWrap: true,
|
|
32
|
+
numberOfLines: true,
|
|
33
|
+
textProps: true
|
|
34
|
+
};
|
package/dist/jsx/types.native.js
CHANGED
|
@@ -4,6 +4,12 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
7
13
|
var __copyProps = (to, from, except, desc) => {
|
|
8
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
15
|
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
@@ -15,6 +21,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
21
|
};
|
|
16
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
23
|
var types_exports = {};
|
|
24
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
18
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
var import_web = require("@tamagui/web");
|
|
27
|
+
var textParentProps = {
|
|
28
|
+
...import_web.stylePropsTextOnly,
|
|
29
|
+
ellipsis: true,
|
|
30
|
+
maxFontSizeMultiplier: true,
|
|
31
|
+
noTextWrap: true,
|
|
32
|
+
numberOfLines: true,
|
|
33
|
+
textProps: true
|
|
34
|
+
};
|
|
19
35
|
|
|
20
36
|
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.native.js","names":[],"sources":["jsx/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"}
|
|
1
|
+
{"version":3,"file":"types.native.js","names":[],"sources":["jsx/types.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 types_exports = {};\n__export(types_exports, {\n textParentProps: () => textParentProps\n});\nmodule.exports = __toCommonJS(types_exports);\nvar import_web = require(\"@tamagui/web\");\nvar textParentProps = {\n ...import_web.stylePropsTextOnly,\n ellipsis: true,\n maxFontSizeMultiplier: true,\n noTextWrap: true,\n numberOfLines: true,\n textProps: true\n};\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,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,EACtB,uBAAuB,gBACzB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,kBAAkB;CACpB,GAAG,WAAW;CACd,UAAU;CACV,uBAAuB;CACvB,YAAY;CACZ,eAAe;CACf,WAAW;AACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/text",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.831.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"files": [
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"clean:build": "tamagui-build clean:build"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@tamagui/get-font-sized": "3.0.0-beta.
|
|
39
|
-
"@tamagui/helpers-tamagui": "3.0.0-beta.
|
|
40
|
-
"@tamagui/web": "3.0.0-beta.
|
|
38
|
+
"@tamagui/get-font-sized": "3.0.0-beta.831.1",
|
|
39
|
+
"@tamagui/helpers-tamagui": "3.0.0-beta.831.1",
|
|
40
|
+
"@tamagui/web": "3.0.0-beta.831.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "3.0.0-beta.
|
|
43
|
+
"@tamagui/build": "3.0.0-beta.831.1",
|
|
44
44
|
"react": "19.2.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
stylePropsTextOnly,
|
|
3
|
+
type Shorthands,
|
|
4
|
+
type TextStyle,
|
|
5
|
+
type TextStylePropsBase,
|
|
6
|
+
type WithShorthands,
|
|
7
|
+
} from '@tamagui/web'
|
|
8
|
+
|
|
1
9
|
import type { SizableTextProps } from './SizableText'
|
|
2
10
|
|
|
11
|
+
export const textParentProps = {
|
|
12
|
+
...stylePropsTextOnly,
|
|
13
|
+
ellipsis: true,
|
|
14
|
+
maxFontSizeMultiplier: true,
|
|
15
|
+
noTextWrap: true,
|
|
16
|
+
numberOfLines: true,
|
|
17
|
+
textProps: true,
|
|
18
|
+
} as const
|
|
19
|
+
|
|
3
20
|
export type TextContextStyles = {
|
|
4
21
|
color?: SizableTextProps['color']
|
|
5
22
|
fontWeight?: SizableTextProps['fontWeight']
|
|
@@ -12,8 +29,16 @@ export type TextContextStyles = {
|
|
|
12
29
|
maxFontSizeMultiplier?: number
|
|
13
30
|
}
|
|
14
31
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
type TextParentStyleKeys = Extract<keyof TextStylePropsBase, keyof typeof textParentProps>
|
|
33
|
+
|
|
34
|
+
type TextParentStyleProps = Partial<Pick<TextStyle, TextParentStyleKeys>>
|
|
35
|
+
type TextParentShorthandKeys = {
|
|
36
|
+
[Key in keyof Shorthands]: Shorthands[Key] extends TextParentStyleKeys ? Key : never
|
|
37
|
+
}[keyof Shorthands]
|
|
38
|
+
|
|
39
|
+
export type TextParentStyles = TextParentStyleProps &
|
|
40
|
+
Pick<WithShorthands<TextParentStyleProps>, TextParentShorthandKeys> & {
|
|
41
|
+
maxFontSizeMultiplier?: number
|
|
42
|
+
textProps?: Partial<SizableTextProps>
|
|
43
|
+
noTextWrap?: boolean
|
|
44
|
+
}
|
package/types/types.d.ts
CHANGED
|
@@ -1,4 +1,40 @@
|
|
|
1
|
+
import { type Shorthands, type TextStyle, type TextStylePropsBase, type WithShorthands } from '@tamagui/web';
|
|
1
2
|
import type { SizableTextProps } from './SizableText';
|
|
3
|
+
export declare const textParentProps: {
|
|
4
|
+
readonly whiteSpace?: boolean | undefined;
|
|
5
|
+
readonly wordWrap?: boolean | undefined;
|
|
6
|
+
readonly textOverflow?: boolean | undefined;
|
|
7
|
+
readonly WebkitBoxOrient?: boolean | undefined;
|
|
8
|
+
readonly textDecorationDistance?: boolean | undefined;
|
|
9
|
+
readonly WebkitLineClamp?: boolean | undefined;
|
|
10
|
+
readonly color: boolean;
|
|
11
|
+
readonly textDecorationColor: boolean;
|
|
12
|
+
readonly textShadowColor: boolean;
|
|
13
|
+
readonly fontFamily: boolean;
|
|
14
|
+
readonly fontStyle: boolean;
|
|
15
|
+
readonly fontVariant: boolean;
|
|
16
|
+
readonly textTransform: boolean;
|
|
17
|
+
readonly textAlign: boolean;
|
|
18
|
+
readonly textDecorationLine: boolean;
|
|
19
|
+
readonly textDecorationStyle: boolean;
|
|
20
|
+
readonly userSelect: boolean;
|
|
21
|
+
readonly writingDirection: boolean;
|
|
22
|
+
readonly fontSize: boolean;
|
|
23
|
+
readonly fontWeight: boolean;
|
|
24
|
+
readonly letterSpacing: boolean;
|
|
25
|
+
readonly lineHeight: boolean;
|
|
26
|
+
readonly textShadow: boolean;
|
|
27
|
+
readonly textShadowOffset: boolean;
|
|
28
|
+
readonly textShadowRadius: boolean;
|
|
29
|
+
readonly textDecoration: boolean;
|
|
30
|
+
readonly font: boolean;
|
|
31
|
+
readonly verticalAlign: boolean;
|
|
32
|
+
readonly ellipsis: true;
|
|
33
|
+
readonly maxFontSizeMultiplier: true;
|
|
34
|
+
readonly noTextWrap: true;
|
|
35
|
+
readonly numberOfLines: true;
|
|
36
|
+
readonly textProps: true;
|
|
37
|
+
};
|
|
2
38
|
export type TextContextStyles = {
|
|
3
39
|
color?: SizableTextProps['color'];
|
|
4
40
|
fontWeight?: SizableTextProps['fontWeight'];
|
|
@@ -10,8 +46,15 @@ export type TextContextStyles = {
|
|
|
10
46
|
ellipsis?: SizableTextProps['ellipsis'];
|
|
11
47
|
maxFontSizeMultiplier?: number;
|
|
12
48
|
};
|
|
13
|
-
|
|
49
|
+
type TextParentStyleKeys = Extract<keyof TextStylePropsBase, keyof typeof textParentProps>;
|
|
50
|
+
type TextParentStyleProps = Partial<Pick<TextStyle, TextParentStyleKeys>>;
|
|
51
|
+
type TextParentShorthandKeys = {
|
|
52
|
+
[Key in keyof Shorthands]: Shorthands[Key] extends TextParentStyleKeys ? Key : never;
|
|
53
|
+
}[keyof Shorthands];
|
|
54
|
+
export type TextParentStyles = TextParentStyleProps & Pick<WithShorthands<TextParentStyleProps>, TextParentShorthandKeys> & {
|
|
55
|
+
maxFontSizeMultiplier?: number;
|
|
14
56
|
textProps?: Partial<SizableTextProps>;
|
|
15
57
|
noTextWrap?: boolean;
|
|
16
58
|
};
|
|
59
|
+
export {};
|
|
17
60
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,KAAK,mBAAmB,GAAG,OAAO,CAAC,MAAM,kBAAkB,EAAE,MAAM,OAAO,eAAe,CAAC,CAAA;AAE1F,KAAK,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAA;AACzE,KAAK,uBAAuB,GAAG;KAC5B,GAAG,IAAI,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,mBAAmB,GAAG,GAAG,GAAG,KAAK;CACrF,CAAC,MAAM,UAAU,CAAC,CAAA;AAEnB,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,GAAG;IACpE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|