@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Headings.js","names":[],"sources":["esm/Headings.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Paragraph } from \"./Paragraph\";\nconst Heading = styled(Paragraph, {\n render: \"span\",\n displayName: \"Heading\",\n role: \"heading\",\n fontFamily: \"heading\",\n margin: 0,\n size: \"8\"\n});\nconst H1 = styled(Heading, {\n displayName: \"H1\",\n render: \"h1\",\n variants: {\n unstyled: {\n false: {\n size: \"10\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H2 = styled(Heading, {\n displayName: \"H2\",\n render: \"h2\",\n variants: {\n unstyled: {\n false: {\n size: \"9\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H3 = styled(Heading, {\n displayName: \"H3\",\n render: \"h3\",\n variants: {\n unstyled: {\n false: {\n size: \"8\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H4 = styled(Heading, {\n displayName: \"H4\",\n render: \"h4\",\n variants: {\n unstyled: {\n false: {\n size: \"7\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H5 = styled(Heading, {\n displayName: \"H5\",\n render: \"h5\",\n variants: {\n unstyled: {\n false: {\n size: \"6\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H6 = styled(Heading, {\n displayName: \"H6\",\n render: \"h6\",\n variants: {\n unstyled: {\n false: {\n size: \"5\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nexport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Heading\n};\n//# sourceMappingURL=Headings.js.map\n"],"mappings":";;;;AAEA,MAAM,UAAU,OAAO,WAAW;CAChC,QAAQ;CACR,aAAa;CACb,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,MAAM;AACR,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,KACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC"}
|
|
@@ -1,96 +1,50 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { Paragraph } from "./Paragraph.native.js";
|
|
3
|
+
|
|
3
4
|
var Heading = styled(Paragraph, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
render: "span",
|
|
6
|
+
displayName: "Heading",
|
|
7
|
+
role: "heading",
|
|
8
|
+
fontFamily: "heading",
|
|
9
|
+
margin: 0,
|
|
10
|
+
size: "8"
|
|
10
11
|
});
|
|
11
12
|
var H1 = styled(Heading, {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
false: {
|
|
17
|
-
size: "$10"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
23
|
-
}
|
|
13
|
+
displayName: "H1",
|
|
14
|
+
render: "h1",
|
|
15
|
+
variants: { unstyled: { false: { size: "10" } } },
|
|
16
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
24
17
|
});
|
|
25
18
|
var H2 = styled(Heading, {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
false: {
|
|
31
|
-
size: "$9"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
37
|
-
}
|
|
19
|
+
displayName: "H2",
|
|
20
|
+
render: "h2",
|
|
21
|
+
variants: { unstyled: { false: { size: "9" } } },
|
|
22
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
38
23
|
});
|
|
39
24
|
var H3 = styled(Heading, {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
false: {
|
|
45
|
-
size: "$8"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: {
|
|
50
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
51
|
-
}
|
|
25
|
+
displayName: "H3",
|
|
26
|
+
render: "h3",
|
|
27
|
+
variants: { unstyled: { false: { size: "8" } } },
|
|
28
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
52
29
|
});
|
|
53
30
|
var H4 = styled(Heading, {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
false: {
|
|
59
|
-
size: "$7"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
defaultVariants: {
|
|
64
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
65
|
-
}
|
|
31
|
+
displayName: "H4",
|
|
32
|
+
render: "h4",
|
|
33
|
+
variants: { unstyled: { false: { size: "7" } } },
|
|
34
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
66
35
|
});
|
|
67
36
|
var H5 = styled(Heading, {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
false: {
|
|
73
|
-
size: "$6"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
79
|
-
}
|
|
37
|
+
displayName: "H5",
|
|
38
|
+
render: "h5",
|
|
39
|
+
variants: { unstyled: { false: { size: "6" } } },
|
|
40
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
80
41
|
});
|
|
81
42
|
var H6 = styled(Heading, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
false: {
|
|
87
|
-
size: "$5"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
defaultVariants: {
|
|
92
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
93
|
-
}
|
|
43
|
+
displayName: "H6",
|
|
44
|
+
render: "h6",
|
|
45
|
+
variants: { unstyled: { false: { size: "5" } } },
|
|
46
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
94
47
|
});
|
|
48
|
+
|
|
95
49
|
export { H1, H2, H3, H4, H5, H6, Heading };
|
|
96
50
|
//# sourceMappingURL=Headings.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Headings.native.js","names":[],"sources":["esm/Headings.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Paragraph } from \"./Paragraph\";\nvar Heading = styled(Paragraph, {\n render: \"span\",\n displayName: \"Heading\",\n role: \"heading\",\n fontFamily: \"heading\",\n margin: 0,\n size: \"8\"\n});\nvar H1 = styled(Heading, {\n displayName: \"H1\",\n render: \"h1\",\n variants: {\n unstyled: {\n false: {\n size: \"10\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nvar H2 = styled(Heading, {\n displayName: \"H2\",\n render: \"h2\",\n variants: {\n unstyled: {\n false: {\n size: \"9\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nvar H3 = styled(Heading, {\n displayName: \"H3\",\n render: \"h3\",\n variants: {\n unstyled: {\n false: {\n size: \"8\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nvar H4 = styled(Heading, {\n displayName: \"H4\",\n render: \"h4\",\n variants: {\n unstyled: {\n false: {\n size: \"7\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nvar H5 = styled(Heading, {\n displayName: \"H5\",\n render: \"h5\",\n variants: {\n unstyled: {\n false: {\n size: \"6\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nvar H6 = styled(Heading, {\n displayName: \"H6\",\n render: \"h6\",\n variants: {\n unstyled: {\n false: {\n size: \"5\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nexport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Heading\n};\n//# sourceMappingURL=Headings.js.map\n"],"mappings":";;;;AAEA,IAAI,UAAU,OAAO,WAAW;CAC9B,QAAQ;CACR,aAAa;CACb,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,MAAM;AACR,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,KACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,IAAI,KAAK,OAAO,SAAS;CACvB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC"}
|
package/dist/esm/Paragraph.mjs
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { SizableText } from "./SizableText.mjs";
|
|
3
|
+
|
|
3
4
|
const Paragraph = styled(SizableText, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
displayName: "Paragraph",
|
|
6
|
+
className: "tm-paragraph",
|
|
7
|
+
render: "p",
|
|
8
|
+
userSelect: "auto",
|
|
9
|
+
color: "color",
|
|
10
|
+
whiteSpace: "normal",
|
|
11
|
+
size: true
|
|
10
12
|
});
|
|
13
|
+
|
|
11
14
|
export { Paragraph };
|
|
12
15
|
//# sourceMappingURL=Paragraph.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Paragraph.js","names":[],"sources":["esm/Paragraph.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { SizableText } from \"./SizableText\";\nconst Paragraph = styled(SizableText, {\n displayName: \"Paragraph\",\n className: \"tm-paragraph\",\n render: \"p\",\n userSelect: \"auto\",\n color: \"color\",\n whiteSpace: \"normal\",\n size: true\n});\nexport {\n Paragraph\n};\n//# sourceMappingURL=Paragraph.js.map\n"],"mappings":";;;;AAEA,MAAM,YAAY,OAAO,aAAa;CACpC,aAAa;CACb,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,YAAY;CACZ,MAAM;AACR,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { SizableText } from "./SizableText.native.js";
|
|
3
|
+
|
|
3
4
|
var Paragraph = styled(SizableText, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
displayName: "Paragraph",
|
|
6
|
+
className: "tm-paragraph",
|
|
7
|
+
render: "p",
|
|
8
|
+
userSelect: "auto",
|
|
9
|
+
color: "color",
|
|
10
|
+
whiteSpace: "normal",
|
|
11
|
+
size: true
|
|
10
12
|
});
|
|
13
|
+
|
|
11
14
|
export { Paragraph };
|
|
12
15
|
//# sourceMappingURL=Paragraph.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Paragraph.native.js","names":[],"sources":["esm/Paragraph.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { SizableText } from \"./SizableText\";\nvar Paragraph = styled(SizableText, {\n displayName: \"Paragraph\",\n className: \"tm-paragraph\",\n render: \"p\",\n userSelect: \"auto\",\n color: \"color\",\n whiteSpace: \"normal\",\n size: true\n});\nexport {\n Paragraph\n};\n//# sourceMappingURL=Paragraph.js.map\n"],"mappings":";;;;AAEA,IAAI,YAAY,OAAO,aAAa;CAClC,aAAa;CACb,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,YAAY;CACZ,MAAM;AACR,CAAC"}
|
package/dist/esm/SizableText.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { getFontSized } from "@tamagui/get-font-sized";
|
|
2
2
|
import { Text, styled } from "@tamagui/web";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
color: "$color"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
size: getFontSized
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17
|
-
}
|
|
3
|
+
|
|
4
|
+
const SizableTextFrame = styled(Text, {
|
|
5
|
+
displayName: "SizableText",
|
|
6
|
+
fontFamily: "body",
|
|
7
|
+
color: "color",
|
|
8
|
+
size: true,
|
|
9
|
+
variants: { size: getFontSized }
|
|
18
10
|
});
|
|
19
|
-
SizableText
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
const SizableText = SizableTextFrame.resolve((props, env) => {
|
|
12
|
+
if (props.fontFamily === "inherit") {
|
|
13
|
+
return { fontFamily: "inherit" };
|
|
14
|
+
}
|
|
15
|
+
if (props.fontFamily === void 0) {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
const size = props.size === true && props.fontSize ? props.fontSize : props.size ?? true;
|
|
19
|
+
const sized = getFontSized(size, env);
|
|
20
|
+
return {
|
|
21
|
+
color: sized?.color,
|
|
22
|
+
fontFamily: sized?.fontFamily,
|
|
23
|
+
fontSize: sized?.fontSize,
|
|
24
|
+
fontStyle: sized?.fontStyle,
|
|
25
|
+
fontWeight: sized?.fontWeight,
|
|
26
|
+
letterSpacing: sized?.letterSpacing,
|
|
27
|
+
lineHeight: sized?.lineHeight,
|
|
28
|
+
textTransform: sized?.textTransform
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
|
|
32
|
+
|
|
33
33
|
export { SizableText };
|
|
34
34
|
//# sourceMappingURL=SizableText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SizableText.js","names":[],"sources":["esm/SizableText.js"],"sourcesContent":["import { getFontSized } from \"@tamagui/get-font-sized\";\nimport { Text, styled } from \"@tamagui/web\";\nconst SizableTextFrame = styled(Text, {\n displayName: \"SizableText\",\n fontFamily: \"body\",\n color: \"color\",\n size: true,\n variants: {\n size: getFontSized\n }\n});\nconst SizableText = SizableTextFrame.resolve((props, env) => {\n if (props.fontFamily === \"inherit\") {\n return { fontFamily: \"inherit\" };\n }\n if (props.fontFamily === void 0) {\n return {};\n }\n const size = props.size === true && props.fontSize ? props.fontSize : props.size ?? true;\n const sized = getFontSized(size, env);\n return {\n color: sized?.color,\n fontFamily: sized?.fontFamily,\n fontSize: sized?.fontSize,\n fontStyle: sized?.fontStyle,\n fontWeight: sized?.fontWeight,\n letterSpacing: sized?.letterSpacing,\n lineHeight: sized?.lineHeight,\n textTransform: sized?.textTransform\n };\n});\nSizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([\n ...SizableText.staticConfig.inlineProps || [],\n \"maxFontSizeMultiplier\"\n]);\nexport {\n SizableText\n};\n//# sourceMappingURL=SizableText.js.map\n"],"mappings":";;;;AAEA,MAAM,mBAAmB,OAAO,MAAM;CACpC,aAAa;CACb,YAAY;CACZ,OAAO;CACP,MAAM;CACN,UAAU,EACR,MAAM,aACR;AACF,CAAC;AACD,MAAM,cAAc,iBAAiB,SAAS,OAAO,QAAQ;CAC3D,IAAI,MAAM,eAAe,WAAW;EAClC,OAAO,EAAE,YAAY,UAAU;CACjC;CACA,IAAI,MAAM,eAAe,KAAK,GAAG;EAC/B,OAAO,CAAC;CACV;CACA,MAAM,OAAO,MAAM,SAAS,QAAQ,MAAM,WAAW,MAAM,WAAW,MAAM,QAAQ;CACpF,MAAM,QAAQ,aAAa,MAAM,GAAG;CACpC,OAAO;EACL,OAAO,OAAO;EACd,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,WAAW,OAAO;EAClB,YAAY,OAAO;EACnB,eAAe,OAAO;EACtB,YAAY,OAAO;EACnB,eAAe,OAAO;CACxB;AACF,CAAC;AACD,YAAY,aAAa,8BAA8B,IAAI,IAAI,CAC7D,GAAG,YAAY,aAAa,eAAe,CAAC,GAC5C,uBACF,CAAC"}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { getFontSized } from "@tamagui/get-font-sized";
|
|
2
2
|
import { Text, styled } from "@tamagui/web";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
color: "$color"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
size: getFontSized
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17
|
-
}
|
|
3
|
+
|
|
4
|
+
var SizableTextFrame = styled(Text, {
|
|
5
|
+
displayName: "SizableText",
|
|
6
|
+
fontFamily: "body",
|
|
7
|
+
color: "color",
|
|
8
|
+
size: true,
|
|
9
|
+
variants: { size: getFontSized }
|
|
18
10
|
});
|
|
19
|
-
SizableText
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
var SizableText = SizableTextFrame.resolve(function(props, env) {
|
|
12
|
+
if (props.fontFamily === "inherit") {
|
|
13
|
+
return { fontFamily: "inherit" };
|
|
14
|
+
}
|
|
15
|
+
if (props.fontFamily === void 0) {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
var _props_size;
|
|
19
|
+
var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;
|
|
20
|
+
var sized = getFontSized(size, env);
|
|
21
|
+
return {
|
|
22
|
+
color: sized === null || sized === void 0 ? void 0 : sized.color,
|
|
23
|
+
fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
|
|
24
|
+
fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
|
|
25
|
+
fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
|
|
26
|
+
fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
|
|
27
|
+
letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
|
|
28
|
+
lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
|
|
29
|
+
textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
|
|
33
|
+
|
|
33
34
|
export { SizableText };
|
|
34
35
|
//# sourceMappingURL=SizableText.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SizableText.native.js","names":[],"sources":["esm/SizableText.native.js"],"sourcesContent":["import { getFontSized } from \"@tamagui/get-font-sized\";\nimport { Text, styled } from \"@tamagui/web\";\nvar SizableTextFrame = styled(Text, {\n displayName: \"SizableText\",\n fontFamily: \"body\",\n color: \"color\",\n size: true,\n variants: {\n size: 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 = 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]);\nexport {\n SizableText\n};\n//# sourceMappingURL=SizableText.js.map\n"],"mappings":";;;;AAEA,IAAI,mBAAmB,OAAO,MAAM;CAClC,aAAa;CACb,YAAY;CACZ,OAAO;CACP,MAAM;CACN,UAAU,EACR,MAAM,aACR;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,QAAQ,aAAa,MAAM,GAAG;CAClC,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/esm/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export * from "./Emphasis.mjs"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export * from "./Emphasis.mjs"
|
|
2
|
+
|
|
3
|
+
export * from "./SizableText.mjs"
|
|
4
|
+
|
|
5
|
+
export * from "./Paragraph.mjs"
|
|
6
|
+
|
|
7
|
+
export * from "./Headings.mjs"
|
|
8
|
+
|
|
9
|
+
export * from "./wrapChildrenInText.mjs"
|
|
10
|
+
|
|
11
|
+
export * from "./types.mjs"
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export * from "./Emphasis.mjs"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export * from "./Emphasis.mjs"
|
|
2
|
+
|
|
3
|
+
export * from "./SizableText.mjs"
|
|
4
|
+
|
|
5
|
+
export * from "./Paragraph.mjs"
|
|
6
|
+
|
|
7
|
+
export * from "./Headings.mjs"
|
|
8
|
+
|
|
9
|
+
export * from "./wrapChildrenInText.mjs"
|
|
10
|
+
|
|
11
|
+
export * from "./types.mjs"
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export * from "./Emphasis.native.js"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export * from "./Emphasis.native.js"
|
|
2
|
+
|
|
3
|
+
export * from "./SizableText.native.js"
|
|
4
|
+
|
|
5
|
+
export * from "./Paragraph.native.js"
|
|
6
|
+
|
|
7
|
+
export * from "./Headings.native.js"
|
|
8
|
+
|
|
9
|
+
export * from "./wrapChildrenInText.native.js"
|
|
10
|
+
|
|
11
|
+
export * from "./types.native.js"
|
package/dist/esm/types.mjs
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import { stylePropsTextOnly } from "@tamagui/web";
|
|
1
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 };
|
|
2
13
|
//# sourceMappingURL=types.mjs.map
|
package/dist/esm/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"
|
|
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
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import { stylePropsTextOnly } from "@tamagui/web";
|
|
1
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 };
|
|
2
13
|
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"
|
|
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"}
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
3
4
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: child
|
|
43
|
-
}, index) : child;
|
|
44
|
-
});
|
|
5
|
+
const { children, textProps, size, noTextWrap, color, fontFamily, fontSize, fontWeight, letterSpacing, textAlign, fontStyle, ellipsis, maxFontSizeMultiplier } = propsIn;
|
|
6
|
+
if (noTextWrap || !children) {
|
|
7
|
+
return [children];
|
|
8
|
+
}
|
|
9
|
+
const props = { ...extraProps };
|
|
10
|
+
if (color) props.color = color;
|
|
11
|
+
if (fontFamily) props.fontFamily = fontFamily;
|
|
12
|
+
if (fontSize) props.fontSize = fontSize;
|
|
13
|
+
if (fontWeight) props.fontWeight = fontWeight;
|
|
14
|
+
if (letterSpacing) props.letterSpacing = letterSpacing;
|
|
15
|
+
if (textAlign) props.textAlign = textAlign;
|
|
16
|
+
if (size) props.size = size;
|
|
17
|
+
if (fontStyle) props.fontStyle = fontStyle;
|
|
18
|
+
if (ellipsis !== void 0) props.ellipsis = ellipsis;
|
|
19
|
+
if (maxFontSizeMultiplier != null) props.maxFontSizeMultiplier = maxFontSizeMultiplier;
|
|
20
|
+
const out = [];
|
|
21
|
+
let run = [];
|
|
22
|
+
let runKey = 0;
|
|
23
|
+
const flushRun = () => {
|
|
24
|
+
if (!run.length) return;
|
|
25
|
+
out.push(/* @__PURE__ */ jsx(TextComponent, {
|
|
26
|
+
...props,
|
|
27
|
+
...textProps,
|
|
28
|
+
children: run.length === 1 ? run[0] : run.join("")
|
|
29
|
+
}, `text-${runKey}`));
|
|
30
|
+
run = [];
|
|
31
|
+
};
|
|
32
|
+
React.Children.toArray(children).forEach((child, index) => {
|
|
33
|
+
if (typeof child === "string" || typeof child === "number") {
|
|
34
|
+
if (!run.length) runKey = index;
|
|
35
|
+
run.push(child);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
flushRun();
|
|
39
|
+
out.push(child);
|
|
40
|
+
});
|
|
41
|
+
flushRun();
|
|
42
|
+
return out;
|
|
45
43
|
}
|
|
44
|
+
|
|
46
45
|
export { wrapChildrenInText };
|
|
47
46
|
//# sourceMappingURL=wrapChildrenInText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"wrapChildrenInText.js","names":[],"sources":["esm/wrapChildrenInText.js"],"sourcesContent":["import React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction wrapChildrenInText(TextComponent, propsIn, extraProps) {\n const {\n children,\n textProps,\n size,\n noTextWrap,\n color,\n fontFamily,\n fontSize,\n fontWeight,\n letterSpacing,\n textAlign,\n fontStyle,\n ellipsis,\n maxFontSizeMultiplier\n } = propsIn;\n if (noTextWrap || !children) {\n return [children];\n }\n const props = {\n ...extraProps\n };\n if (color) props.color = color;\n if (fontFamily) props.fontFamily = fontFamily;\n if (fontSize) props.fontSize = fontSize;\n if (fontWeight) props.fontWeight = fontWeight;\n if (letterSpacing) props.letterSpacing = letterSpacing;\n if (textAlign) props.textAlign = textAlign;\n if (size) props.size = size;\n if (fontStyle) props.fontStyle = fontStyle;\n if (ellipsis !== void 0) props.ellipsis = ellipsis;\n if (maxFontSizeMultiplier != null) props.maxFontSizeMultiplier = maxFontSizeMultiplier;\n const out = [];\n let run = [];\n let runKey = 0;\n const flushRun = () => {\n if (!run.length) return;\n out.push(\n // data-disable-theme keeps wrapped text from adding another theme boundary\n /* @__PURE__ */ jsx(TextComponent, { ...props, ...textProps, children: run.length === 1 ? run[0] : run.join(\"\") }, `text-${runKey}`)\n );\n run = [];\n };\n React.Children.toArray(children).forEach((child, index) => {\n if (typeof child === \"string\" || typeof child === \"number\") {\n if (!run.length) runKey = index;\n run.push(child);\n return;\n }\n flushRun();\n out.push(child);\n });\n flushRun();\n return out;\n}\nexport {\n wrapChildrenInText\n};\n//# sourceMappingURL=wrapChildrenInText.js.map\n"],"mappings":";;;;AAEA,SAAS,mBAAmB,eAAe,SAAS,YAAY;CAC9D,MAAM,EACJ,UACA,WACA,MACA,YACA,OACA,YACA,UACA,YACA,eACA,WACA,WACA,UACA,0BACE;CACJ,IAAI,cAAc,CAAC,UAAU;EAC3B,OAAO,CAAC,QAAQ;CAClB;CACA,MAAM,QAAQ,EACZ,GAAG,WACL;CACA,IAAI,OAAO,MAAM,QAAQ;CACzB,IAAI,YAAY,MAAM,aAAa;CACnC,IAAI,UAAU,MAAM,WAAW;CAC/B,IAAI,YAAY,MAAM,aAAa;CACnC,IAAI,eAAe,MAAM,gBAAgB;CACzC,IAAI,WAAW,MAAM,YAAY;CACjC,IAAI,MAAM,MAAM,OAAO;CACvB,IAAI,WAAW,MAAM,YAAY;CACjC,IAAI,aAAa,KAAK,GAAG,MAAM,WAAW;CAC1C,IAAI,yBAAyB,MAAM,MAAM,wBAAwB;CACjE,MAAM,MAAM,CAAC;CACb,IAAI,MAAM,CAAC;CACX,IAAI,SAAS;CACb,MAAM,iBAAiB;EACrB,IAAI,CAAC,IAAI,QAAQ;EACjB,IAAI,KAEc,oBAAI,eAAe;GAAE,GAAG;GAAO,GAAG;GAAW,UAAU,IAAI,WAAW,IAAI,IAAI,KAAK,IAAI,KAAK,EAAE;EAAE,GAAG,QAAQ,QAAQ,CACrI;EACA,MAAM,CAAC;CACT;CACA,MAAM,SAAS,QAAQ,QAAQ,CAAC,CAAC,SAAS,OAAO,UAAU;EACzD,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAAU;GAC1D,IAAI,CAAC,IAAI,QAAQ,SAAS;GAC1B,IAAI,KAAK,KAAK;GACd;EACF;EACA,SAAS;EACT,IAAI,KAAK,KAAK;CAChB,CAAC;CACD,SAAS;CACT,OAAO;AACT"}
|