@tamagui/text 2.7.7 → 3.0.0-beta.1093.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/Emphasis.cjs +21 -25
- package/dist/cjs/Emphasis.native.cjs +39 -0
- package/dist/cjs/Emphasis.native.js +21 -24
- package/dist/cjs/Emphasis.native.js.map +1 -1
- package/dist/cjs/Headings.cjs +50 -100
- package/dist/cjs/Headings.native.cjs +79 -0
- package/dist/cjs/Headings.native.js +50 -99
- package/dist/cjs/Headings.native.js.map +1 -1
- package/dist/cjs/Paragraph.cjs +21 -24
- package/dist/cjs/Paragraph.native.cjs +36 -0
- package/dist/cjs/Paragraph.native.js +21 -23
- package/dist/cjs/Paragraph.native.js.map +1 -1
- package/dist/cjs/SizableText.cjs +40 -46
- package/dist/cjs/SizableText.native.cjs +56 -0
- package/dist/cjs/SizableText.native.js +42 -46
- package/dist/cjs/SizableText.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +25 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +25 -11
- package/dist/cjs/types.native.cjs +34 -0
- package/dist/cjs/types.native.js +25 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/wrapChildrenInText.cjs +56 -67
- package/dist/cjs/wrapChildrenInText.native.cjs +73 -0
- package/dist/cjs/wrapChildrenInText.native.js +55 -66
- package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
- package/dist/esm/Emphasis.mjs +8 -8
- package/dist/esm/Emphasis.mjs.map +1 -1
- package/dist/esm/Emphasis.native.js +8 -8
- package/dist/esm/Emphasis.native.js.map +1 -1
- package/dist/esm/Headings.mjs +32 -78
- package/dist/esm/Headings.mjs.map +1 -1
- package/dist/esm/Headings.native.js +32 -78
- package/dist/esm/Headings.native.js.map +1 -1
- package/dist/esm/Paragraph.mjs +9 -6
- package/dist/esm/Paragraph.mjs.map +1 -1
- package/dist/esm/Paragraph.native.js +9 -6
- package/dist/esm/Paragraph.native.js.map +1 -1
- package/dist/esm/SizableText.mjs +29 -29
- package/dist/esm/SizableText.mjs.map +1 -1
- package/dist/esm/SizableText.native.js +30 -29
- package/dist/esm/SizableText.native.js.map +1 -1
- package/dist/esm/index.js +11 -7
- package/dist/esm/index.mjs +11 -7
- package/dist/esm/index.native.js +11 -7
- package/dist/esm/types.mjs +11 -0
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +11 -0
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/wrapChildrenInText.mjs +40 -41
- package/dist/esm/wrapChildrenInText.mjs.map +1 -1
- package/dist/esm/wrapChildrenInText.native.js +41 -42
- package/dist/esm/wrapChildrenInText.native.js.map +1 -1
- package/dist/jsx/Emphasis.mjs +8 -8
- package/dist/jsx/Emphasis.mjs.map +1 -1
- package/dist/jsx/Emphasis.native.cjs +39 -0
- package/dist/jsx/Emphasis.native.js +21 -24
- package/dist/jsx/Emphasis.native.js.map +1 -1
- package/dist/jsx/Headings.mjs +32 -78
- package/dist/jsx/Headings.mjs.map +1 -1
- package/dist/jsx/Headings.native.cjs +79 -0
- package/dist/jsx/Headings.native.js +50 -99
- package/dist/jsx/Headings.native.js.map +1 -1
- package/dist/jsx/Paragraph.mjs +9 -6
- package/dist/jsx/Paragraph.mjs.map +1 -1
- package/dist/jsx/Paragraph.native.cjs +36 -0
- package/dist/jsx/Paragraph.native.js +21 -23
- package/dist/jsx/Paragraph.native.js.map +1 -1
- package/dist/jsx/SizableText.mjs +29 -29
- package/dist/jsx/SizableText.mjs.map +1 -1
- package/dist/jsx/SizableText.native.cjs +56 -0
- package/dist/jsx/SizableText.native.js +42 -46
- package/dist/jsx/SizableText.native.js.map +1 -1
- package/dist/jsx/index.js +11 -7
- package/dist/jsx/index.mjs +11 -7
- package/dist/jsx/index.native.cjs +25 -0
- package/dist/jsx/index.native.js +9 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +11 -0
- package/dist/jsx/types.mjs.map +1 -1
- package/dist/jsx/types.native.cjs +34 -0
- package/dist/jsx/types.native.js +25 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/dist/jsx/wrapChildrenInText.mjs +40 -41
- package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
- package/dist/jsx/wrapChildrenInText.native.cjs +73 -0
- package/dist/jsx/wrapChildrenInText.native.js +55 -66
- package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
- package/package.json +7 -6
- package/src/Headings.tsx +15 -15
- package/src/Paragraph.tsx +4 -3
- package/src/SizableText.tsx +32 -33
- package/src/types.ts +30 -5
- package/src/wrapChildrenInText.tsx +32 -11
- package/types/Emphasis.d.ts +15 -3
- package/types/Emphasis.d.ts.map +1 -1
- package/types/Headings.d.ts +89 -22
- package/types/Headings.d.ts.map +1 -1
- package/types/Paragraph.d.ts +11 -4
- package/types/Paragraph.d.ts.map +1 -1
- package/types/SizableText.d.ts +1 -2
- package/types/SizableText.d.ts.map +1 -1
- package/types/types.d.ts +44 -1
- package/types/types.d.ts.map +1 -1
- package/types/wrapChildrenInText.d.ts +2 -4
- package/types/wrapChildrenInText.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
package/dist/cjs/Paragraph.cjs
CHANGED
|
@@ -3,35 +3,32 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var Paragraph_exports = {};
|
|
24
|
-
__export(Paragraph_exports, {
|
|
25
|
-
Paragraph: () => Paragraph
|
|
26
|
-
});
|
|
22
|
+
__export(Paragraph_exports, { Paragraph: () => Paragraph });
|
|
27
23
|
module.exports = __toCommonJS(Paragraph_exports);
|
|
28
24
|
var import_web = require("@tamagui/web");
|
|
29
25
|
var import_SizableText = require("./SizableText.cjs");
|
|
30
26
|
const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
displayName: "Paragraph",
|
|
28
|
+
className: "tm-paragraph",
|
|
29
|
+
render: "p",
|
|
30
|
+
userSelect: "auto",
|
|
31
|
+
color: "color",
|
|
32
|
+
whiteSpace: "normal",
|
|
33
|
+
size: true
|
|
34
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var Paragraph_exports = {};
|
|
24
|
+
__export(Paragraph_exports, { Paragraph: () => Paragraph });
|
|
25
|
+
module.exports = __toCommonJS(Paragraph_exports);
|
|
26
|
+
var import_web = require("@tamagui/web");
|
|
27
|
+
var import_SizableText = require("./SizableText.native.js");
|
|
28
|
+
var Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
29
|
+
displayName: "Paragraph",
|
|
30
|
+
className: "tm-paragraph",
|
|
31
|
+
render: "p",
|
|
32
|
+
userSelect: "auto",
|
|
33
|
+
color: "color",
|
|
34
|
+
whiteSpace: "normal",
|
|
35
|
+
size: true
|
|
36
|
+
});
|
|
@@ -5,36 +5,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var Paragraph_exports = {};
|
|
26
|
-
__export(Paragraph_exports, {
|
|
27
|
-
Paragraph: () => Paragraph
|
|
28
|
-
});
|
|
24
|
+
__export(Paragraph_exports, { Paragraph: () => Paragraph });
|
|
29
25
|
module.exports = __toCommonJS(Paragraph_exports);
|
|
30
26
|
var import_web = require("@tamagui/web");
|
|
31
27
|
var import_SizableText = require("./SizableText.native.js");
|
|
32
28
|
var Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
displayName: "Paragraph",
|
|
30
|
+
className: "tm-paragraph",
|
|
31
|
+
render: "p",
|
|
32
|
+
userSelect: "auto",
|
|
33
|
+
color: "color",
|
|
34
|
+
whiteSpace: "normal",
|
|
35
|
+
size: true
|
|
39
36
|
});
|
|
37
|
+
|
|
40
38
|
//# sourceMappingURL=Paragraph.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Paragraph.native.js","names":[],"sources":["cjs/Paragraph.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 Paragraph_exports = {};\n__export(Paragraph_exports, {\n Paragraph: () => Paragraph\n});\nmodule.exports = __toCommonJS(Paragraph_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_SizableText = require(\"./SizableText\");\nvar Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {\n displayName: \"Paragraph\",\n className: \"tm-paragraph\",\n render: \"p\",\n userSelect: \"auto\",\n color: \"color\",\n whiteSpace: \"normal\",\n size: true\n});\n//# sourceMappingURL=Paragraph.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,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,aAAa,GAAG,WAAW,OAAM,CAAE,mBAAmB,aAAa;CACrE,aAAa;CACb,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,YAAY;CACZ,MAAM;AACR,CAAC"}
|
package/dist/cjs/SizableText.cjs
CHANGED
|
@@ -3,57 +3,51 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var SizableText_exports = {};
|
|
24
|
-
__export(SizableText_exports, {
|
|
25
|
-
SizableText: () => SizableText
|
|
26
|
-
});
|
|
22
|
+
__export(SizableText_exports, { SizableText: () => SizableText });
|
|
27
23
|
module.exports = __toCommonJS(SizableText_exports);
|
|
28
24
|
var import_get_font_sized = require("@tamagui/get-font-sized");
|
|
29
25
|
var import_web = require("@tamagui/web");
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
const SizableTextFrame = (0, import_web.styled)(import_web.Text, {
|
|
27
|
+
displayName: "SizableText",
|
|
28
|
+
fontFamily: "body",
|
|
29
|
+
color: "color",
|
|
30
|
+
size: true,
|
|
31
|
+
variants: { size: import_get_font_sized.getFontSized }
|
|
32
|
+
});
|
|
33
|
+
const SizableText = SizableTextFrame.resolve((props, env) => {
|
|
34
|
+
if (props.fontFamily === "inherit") {
|
|
35
|
+
return { fontFamily: "inherit" };
|
|
36
|
+
}
|
|
37
|
+
if (props.fontFamily === void 0) {
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
const size = props.size === true && props.fontSize ? props.fontSize : props.size ?? true;
|
|
41
|
+
const sized = (0, import_get_font_sized.getFontSized)(size, env);
|
|
42
|
+
return {
|
|
43
|
+
color: sized?.color,
|
|
44
|
+
fontFamily: sized?.fontFamily,
|
|
45
|
+
fontSize: sized?.fontSize,
|
|
46
|
+
fontStyle: sized?.fontStyle,
|
|
47
|
+
fontWeight: sized?.fontWeight,
|
|
48
|
+
letterSpacing: sized?.letterSpacing,
|
|
49
|
+
lineHeight: sized?.lineHeight,
|
|
50
|
+
textTransform: sized?.textTransform
|
|
51
|
+
};
|
|
45
52
|
});
|
|
46
|
-
SizableText.staticConfig.inlineProps = /* @__PURE__ */new Set([...
|
|
47
|
-
SizableText.staticConfig.variants.fontFamily = {
|
|
48
|
-
"...": (val, extras) => {
|
|
49
|
-
if (val === "inherit") {
|
|
50
|
-
return {
|
|
51
|
-
fontFamily: "inherit"
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const sizeProp = extras.props["size"];
|
|
55
|
-
const fontSizeProp = extras.props["fontSize"];
|
|
56
|
-
const size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props["size"] || "$true";
|
|
57
|
-
return (0, import_get_font_sized.getFontSized)(size, extras);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
53
|
+
SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var SizableText_exports = {};
|
|
24
|
+
__export(SizableText_exports, { SizableText: () => SizableText });
|
|
25
|
+
module.exports = __toCommonJS(SizableText_exports);
|
|
26
|
+
var import_get_font_sized = require("@tamagui/get-font-sized");
|
|
27
|
+
var import_web = require("@tamagui/web");
|
|
28
|
+
var SizableTextFrame = (0, import_web.styled)(import_web.Text, {
|
|
29
|
+
displayName: "SizableText",
|
|
30
|
+
fontFamily: "body",
|
|
31
|
+
color: "color",
|
|
32
|
+
size: true,
|
|
33
|
+
variants: { size: import_get_font_sized.getFontSized }
|
|
34
|
+
});
|
|
35
|
+
var SizableText = SizableTextFrame.resolve(function(props, env) {
|
|
36
|
+
if (props.fontFamily === "inherit") {
|
|
37
|
+
return { fontFamily: "inherit" };
|
|
38
|
+
}
|
|
39
|
+
if (props.fontFamily === void 0) {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
var _props_size;
|
|
43
|
+
var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;
|
|
44
|
+
var sized = (0, import_get_font_sized.getFontSized)(size, env);
|
|
45
|
+
return {
|
|
46
|
+
color: sized === null || sized === void 0 ? void 0 : sized.color,
|
|
47
|
+
fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
|
|
48
|
+
fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
|
|
49
|
+
fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
|
|
50
|
+
fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
|
|
51
|
+
letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
|
|
52
|
+
lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
|
|
53
|
+
textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
|
|
@@ -5,58 +5,54 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var SizableText_exports = {};
|
|
26
|
-
__export(SizableText_exports, {
|
|
27
|
-
SizableText: () => SizableText
|
|
28
|
-
});
|
|
24
|
+
__export(SizableText_exports, { SizableText: () => SizableText });
|
|
29
25
|
module.exports = __toCommonJS(SizableText_exports);
|
|
30
26
|
var import_get_font_sized = require("@tamagui/get-font-sized");
|
|
31
27
|
var import_web = require("@tamagui/web");
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
size: "$true",
|
|
39
|
-
color: "$color"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
size: import_get_font_sized.getFontSized
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
46
|
-
}
|
|
28
|
+
var SizableTextFrame = (0, import_web.styled)(import_web.Text, {
|
|
29
|
+
displayName: "SizableText",
|
|
30
|
+
fontFamily: "body",
|
|
31
|
+
color: "color",
|
|
32
|
+
size: true,
|
|
33
|
+
variants: { size: import_get_font_sized.getFontSized }
|
|
47
34
|
});
|
|
48
|
-
SizableText
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
35
|
+
var SizableText = SizableTextFrame.resolve(function(props, env) {
|
|
36
|
+
if (props.fontFamily === "inherit") {
|
|
37
|
+
return { fontFamily: "inherit" };
|
|
38
|
+
}
|
|
39
|
+
if (props.fontFamily === void 0) {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
var _props_size;
|
|
43
|
+
var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;
|
|
44
|
+
var sized = (0, import_get_font_sized.getFontSized)(size, env);
|
|
45
|
+
return {
|
|
46
|
+
color: sized === null || sized === void 0 ? void 0 : sized.color,
|
|
47
|
+
fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
|
|
48
|
+
fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
|
|
49
|
+
fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
|
|
50
|
+
fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
|
|
51
|
+
letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
|
|
52
|
+
lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
|
|
53
|
+
textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
|
|
57
|
+
|
|
62
58
|
//# sourceMappingURL=SizableText.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SizableText.native.js","names":[],"sources":["cjs/SizableText.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 SizableText_exports = {};\n__export(SizableText_exports, {\n SizableText: () => SizableText\n});\nmodule.exports = __toCommonJS(SizableText_exports);\nvar import_get_font_sized = require(\"@tamagui/get-font-sized\");\nvar import_web = require(\"@tamagui/web\");\nvar SizableTextFrame = (0, import_web.styled)(import_web.Text, {\n displayName: \"SizableText\",\n fontFamily: \"body\",\n color: \"color\",\n size: true,\n variants: {\n size: import_get_font_sized.getFontSized\n }\n});\nvar SizableText = SizableTextFrame.resolve(function(props, env) {\n if (props.fontFamily === \"inherit\") {\n return {\n fontFamily: \"inherit\"\n };\n }\n if (props.fontFamily === void 0) {\n return {};\n }\n var _props_size;\n var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;\n var sized = (0, import_get_font_sized.getFontSized)(size, env);\n return {\n color: sized === null || sized === void 0 ? void 0 : sized.color,\n fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,\n fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,\n fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,\n fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,\n letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,\n lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,\n textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform\n };\n});\nSizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([\n ...SizableText.staticConfig.inlineProps || [],\n \"maxFontSizeMultiplier\"\n]);\n//# sourceMappingURL=SizableText.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,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB,EAC5B,mBAAmB,YACrB,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,wBAAwB,QAAQ,yBAAyB;AAC7D,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,oBAAoB,GAAG,WAAW,OAAM,CAAE,WAAW,MAAM;CAC7D,aAAa;CACb,YAAY;CACZ,OAAO;CACP,MAAM;CACN,UAAU,EACR,MAAM,sBAAsB,aAC9B;AACF,CAAC;AACD,IAAI,cAAc,iBAAiB,QAAQ,SAAS,OAAO,KAAK;CAC9D,IAAI,MAAM,eAAe,WAAW;EAClC,OAAO,EACL,YAAY,UACd;CACF;CACA,IAAI,MAAM,eAAe,KAAK,GAAG;EAC/B,OAAO,CAAC;CACV;CACA,IAAI;CACJ,IAAI,OAAO,MAAM,SAAS,QAAQ,MAAM,WAAW,MAAM,YAAY,cAAc,MAAM,UAAU,QAAQ,gBAAgB,KAAK,IAAI,cAAc;CAClJ,IAAI,SAAS,GAAG,sBAAsB,aAAY,CAAE,MAAM,GAAG;CAC7D,OAAO;EACL,OAAO,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC3D,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,UAAU,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC9D,WAAW,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC/D,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,eAAe,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EACnE,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,eAAe,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;CACrE;AACF,CAAC;AACD,YAAY,aAAa,8BAA8B,IAAI,IAAI,CAC7D,GAAG,YAAY,aAAa,eAAe,CAAC,GAC5C,uBACF,CAAC"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,18 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
13
|
};
|
|
14
14
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
}), mod);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
16
|
var index_exports = {};
|
|
19
17
|
module.exports = __toCommonJS(index_exports);
|
|
20
18
|
__reExport(index_exports, require("./Emphasis.cjs"), module.exports);
|
|
@@ -22,4 +20,4 @@ __reExport(index_exports, require("./SizableText.cjs"), module.exports);
|
|
|
22
20
|
__reExport(index_exports, require("./Paragraph.cjs"), module.exports);
|
|
23
21
|
__reExport(index_exports, require("./Headings.cjs"), module.exports);
|
|
24
22
|
__reExport(index_exports, require("./wrapChildrenInText.cjs"), module.exports);
|
|
25
|
-
__reExport(index_exports, require("./types.cjs"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./types.cjs"), module.exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./Emphasis.native.js"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./SizableText.native.js"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./Paragraph.native.js"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./Headings.native.js"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("./wrapChildrenInText.native.js"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("./types.native.js"), module.exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,18 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
15
|
};
|
|
16
16
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
18
|
var index_exports = {};
|
|
21
19
|
module.exports = __toCommonJS(index_exports);
|
|
22
20
|
__reExport(index_exports, require("./Emphasis.native.js"), module.exports);
|
|
@@ -25,4 +23,5 @@ __reExport(index_exports, require("./Paragraph.native.js"), module.exports);
|
|
|
25
23
|
__reExport(index_exports, require("./Headings.native.js"), module.exports);
|
|
26
24
|
__reExport(index_exports, require("./wrapChildrenInText.native.js"), module.exports);
|
|
27
25
|
__reExport(index_exports, require("./types.native.js"), module.exports);
|
|
26
|
+
|
|
28
27
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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 __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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Emphasis\"), module.exports);\n__reExport(index_exports, require(\"./SizableText\"), module.exports);\n__reExport(index_exports, require(\"./Paragraph\"), module.exports);\n__reExport(index_exports, require(\"./Headings\"), module.exports);\n__reExport(index_exports, require(\"./wrapChildrenInText\"), module.exports);\n__reExport(index_exports, require(\"./types\"), module.exports);\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,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,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,WAAW,eAAe,QAAQ,yBAAe,GAAG,OAAO,OAAO;AAClE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO;AAChE,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,WAAW,eAAe,QAAQ,gCAAsB,GAAG,OAAO,OAAO;AACzE,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO"}
|
package/dist/cjs/types.cjs
CHANGED
|
@@ -2,17 +2,31 @@ 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
13
19
|
};
|
|
14
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
21
|
var types_exports = {};
|
|
18
|
-
|
|
22
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
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
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var types_exports = {};
|
|
24
|
+
__export(types_exports, { textParentProps: () => textParentProps });
|
|
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
|
+
};
|