@tamagui/text 1.88.1 → 1.88.3
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/Headings.js +0 -10
- package/dist/cjs/Paragraph.js +0 -4
- package/dist/cjs/SizableText.js +0 -4
- package/dist/cjs/index.js +0 -8
- package/dist/cjs/wrapChildrenInText.js +0 -4
- package/dist/esm/Headings.native.js +37 -11
- package/dist/esm/Headings.native.js.map +1 -1
- package/dist/esm/Paragraph.native.js +25 -5
- package/dist/esm/Paragraph.native.js.map +1 -1
- package/dist/esm/SizableText.native.js +27 -7
- package/dist/esm/SizableText.native.js.map +1 -1
- package/dist/esm/index.native.js +27 -5
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/types.native.js +14 -0
- package/dist/esm/types.native.js.map +2 -2
- package/dist/esm/wrapChildrenInText.native.js +36 -8
- package/dist/esm/wrapChildrenInText.native.js.map +2 -2
- package/dist/jsx/Headings.native.js +37 -11
- package/dist/jsx/Headings.native.js.map +1 -1
- package/dist/jsx/Paragraph.native.js +25 -5
- package/dist/jsx/Paragraph.native.js.map +1 -1
- package/dist/jsx/SizableText.native.js +27 -7
- package/dist/jsx/SizableText.native.js.map +1 -1
- package/dist/jsx/index.native.js +27 -5
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.native.js +14 -0
- package/dist/jsx/types.native.js.map +2 -2
- package/dist/jsx/wrapChildrenInText.js +2 -1
- package/dist/jsx/wrapChildrenInText.js.map +1 -1
- package/dist/jsx/wrapChildrenInText.native.js +36 -7
- package/dist/jsx/wrapChildrenInText.native.js.map +2 -2
- package/package.json +5 -5
package/dist/cjs/Headings.js
CHANGED
|
@@ -56,14 +56,4 @@ const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
|
|
|
56
56
|
tag: "h6",
|
|
57
57
|
size: "$5"
|
|
58
58
|
});
|
|
59
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
-
0 && (module.exports = {
|
|
61
|
-
H1,
|
|
62
|
-
H2,
|
|
63
|
-
H3,
|
|
64
|
-
H4,
|
|
65
|
-
H5,
|
|
66
|
-
H6,
|
|
67
|
-
Heading
|
|
68
|
-
});
|
|
69
59
|
//# sourceMappingURL=Headings.js.map
|
package/dist/cjs/Paragraph.js
CHANGED
|
@@ -25,8 +25,4 @@ const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
|
25
25
|
color: "$color",
|
|
26
26
|
size: "$true"
|
|
27
27
|
});
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
Paragraph
|
|
31
|
-
});
|
|
32
28
|
//# sourceMappingURL=Paragraph.js.map
|
package/dist/cjs/SizableText.js
CHANGED
|
@@ -41,8 +41,4 @@ const SizableText = (0, import_web.styled)(import_web.Text, {
|
|
|
41
41
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
-
0 && (module.exports = {
|
|
46
|
-
SizableText
|
|
47
|
-
});
|
|
48
44
|
//# sourceMappingURL=SizableText.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,12 +16,4 @@ __reExport(src_exports, require("./Paragraph"), module.exports);
|
|
|
16
16
|
__reExport(src_exports, require("./Headings"), module.exports);
|
|
17
17
|
__reExport(src_exports, require("./wrapChildrenInText"), module.exports);
|
|
18
18
|
__reExport(src_exports, require("./types"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./SizableText"),
|
|
22
|
-
...require("./Paragraph"),
|
|
23
|
-
...require("./Headings"),
|
|
24
|
-
...require("./wrapChildrenInText"),
|
|
25
|
-
...require("./types")
|
|
26
|
-
});
|
|
27
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -51,8 +51,4 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
51
51
|
};
|
|
52
52
|
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
|
|
53
53
|
}
|
|
54
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
-
0 && (module.exports = {
|
|
56
|
-
wrapChildrenInText
|
|
57
|
-
});
|
|
58
54
|
//# sourceMappingURL=wrapChildrenInText.js.map
|
|
@@ -1,38 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var Headings_exports = {};
|
|
17
|
+
__export(Headings_exports, {
|
|
18
|
+
H1: () => H1,
|
|
19
|
+
H2: () => H2,
|
|
20
|
+
H3: () => H3,
|
|
21
|
+
H4: () => H4,
|
|
22
|
+
H5: () => H5,
|
|
23
|
+
H6: () => H6,
|
|
24
|
+
Heading: () => Heading
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Headings_exports);
|
|
27
|
+
var import_web = require("@tamagui/web"), import_Paragraph = require("./Paragraph");
|
|
28
|
+
const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
|
|
4
29
|
tag: "span",
|
|
5
30
|
name: "Heading",
|
|
6
31
|
accessibilityRole: "header",
|
|
7
32
|
fontFamily: "$heading",
|
|
8
33
|
size: "$8",
|
|
9
34
|
margin: 0
|
|
10
|
-
}), H1 = styled(Heading, {
|
|
35
|
+
}), H1 = (0, import_web.styled)(Heading, {
|
|
11
36
|
name: "H1",
|
|
12
37
|
tag: "h1",
|
|
13
38
|
size: "$10"
|
|
14
|
-
}), H2 = styled(Heading, {
|
|
39
|
+
}), H2 = (0, import_web.styled)(Heading, {
|
|
15
40
|
name: "H2",
|
|
16
41
|
tag: "h2",
|
|
17
42
|
size: "$9"
|
|
18
|
-
}), H3 = styled(Heading, {
|
|
43
|
+
}), H3 = (0, import_web.styled)(Heading, {
|
|
19
44
|
name: "H3",
|
|
20
45
|
tag: "h3",
|
|
21
46
|
size: "$8"
|
|
22
|
-
}), H4 = styled(Heading, {
|
|
47
|
+
}), H4 = (0, import_web.styled)(Heading, {
|
|
23
48
|
name: "H4",
|
|
24
49
|
tag: "h4",
|
|
25
50
|
size: "$7"
|
|
26
|
-
}), H5 = styled(Heading, {
|
|
51
|
+
}), H5 = (0, import_web.styled)(Heading, {
|
|
27
52
|
name: "H5",
|
|
28
53
|
tag: "h5",
|
|
29
54
|
size: "$6"
|
|
30
|
-
}), H6 = styled(Heading, {
|
|
55
|
+
}), H6 = (0, import_web.styled)(Heading, {
|
|
31
56
|
name: "H6",
|
|
32
57
|
tag: "h6",
|
|
33
58
|
size: "$5"
|
|
34
59
|
});
|
|
35
|
-
export
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
36
62
|
H1,
|
|
37
63
|
H2,
|
|
38
64
|
H3,
|
|
@@ -40,5 +66,5 @@ export {
|
|
|
40
66
|
H5,
|
|
41
67
|
H6,
|
|
42
68
|
Heading
|
|
43
|
-
};
|
|
69
|
+
});
|
|
44
70
|
//# sourceMappingURL=Headings.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Headings.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC,yBAEjC,mBAA0B;AAEnB,MAAM,cAAU,mBAAO,4BAAW;AAAA,EACvC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var Paragraph_exports = {};
|
|
17
|
+
__export(Paragraph_exports, {
|
|
18
|
+
Paragraph: () => Paragraph
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(Paragraph_exports);
|
|
21
|
+
var import_web = require("@tamagui/web"), import_SizableText = require("./SizableText");
|
|
22
|
+
const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
4
23
|
name: "Paragraph",
|
|
5
24
|
tag: "p",
|
|
6
25
|
userSelect: "auto",
|
|
7
26
|
color: "$color",
|
|
8
27
|
size: "$true"
|
|
9
28
|
});
|
|
10
|
-
export
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
11
31
|
Paragraph
|
|
12
|
-
};
|
|
32
|
+
});
|
|
13
33
|
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Paragraph.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC,yBAEjC,qBAA4B;AAErB,MAAM,gBAAY,mBAAO,gCAAa;AAAA,EAC3C,MAAM;AAAA,EACN,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var SizableText_exports = {};
|
|
17
|
+
__export(SizableText_exports, {
|
|
18
|
+
SizableText: () => SizableText
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(SizableText_exports);
|
|
21
|
+
var import_get_font_sized = require("@tamagui/get-font-sized"), import_web = require("@tamagui/web");
|
|
3
22
|
const variants = {
|
|
4
23
|
unstyled: {
|
|
5
24
|
false: {
|
|
@@ -7,15 +26,15 @@ const variants = {
|
|
|
7
26
|
color: "$color"
|
|
8
27
|
}
|
|
9
28
|
},
|
|
10
|
-
size: getFontSized
|
|
29
|
+
size: import_get_font_sized.getFontSized
|
|
11
30
|
};
|
|
12
31
|
variants.fontFamily = {
|
|
13
32
|
"...": (_, extras) => {
|
|
14
33
|
const size = extras.props.size || "$true";
|
|
15
|
-
return getFontSized(size, extras);
|
|
34
|
+
return (0, import_get_font_sized.getFontSized)(size, extras);
|
|
16
35
|
}
|
|
17
36
|
};
|
|
18
|
-
const SizableText = styled(Text, {
|
|
37
|
+
const SizableText = (0, import_web.styled)(import_web.Text, {
|
|
19
38
|
name: "SizableText",
|
|
20
39
|
fontFamily: "$body",
|
|
21
40
|
variants,
|
|
@@ -23,7 +42,8 @@ const SizableText = styled(Text, {
|
|
|
23
42
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
24
43
|
}
|
|
25
44
|
});
|
|
26
|
-
export
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
27
47
|
SizableText
|
|
28
|
-
};
|
|
48
|
+
});
|
|
29
49
|
//# sourceMappingURL=SizableText.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SizableText.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA6B,oCAC7B,aAAuC;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EAEA,MAAM;AACR;AAKA,SAAS,aAAgB;AAAA,EACvB,OAAO,CAAC,GAAG,WAAW;AACpB,UAAM,OAAO,OAAO,MAAM,QAAW;AACrC,eAAO,oCAAa,MAAM,MAAM;AAAA,EAClC;AACF;AAEO,MAAM,kBAAc,mBAAO,iBAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./SizableText"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./Paragraph"), module.exports);
|
|
17
|
+
__reExport(src_exports, require("./Headings"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./wrapChildrenInText"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./types"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./SizableText"),
|
|
23
|
+
...require("./Paragraph"),
|
|
24
|
+
...require("./Headings"),
|
|
25
|
+
...require("./wrapChildrenInText"),
|
|
26
|
+
...require("./types")
|
|
27
|
+
});
|
|
6
28
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/types.native.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var types_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(types_exports);
|
|
1
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var wrapChildrenInText_exports = {};
|
|
25
|
+
__export(wrapChildrenInText_exports, {
|
|
26
|
+
wrapChildrenInText: () => wrapChildrenInText
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(wrapChildrenInText_exports);
|
|
29
|
+
var import_react = __toESM(require("react")), import_jsx_runtime = (
|
|
30
|
+
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
31
|
+
require("react/jsx-runtime")
|
|
32
|
+
);
|
|
3
33
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
4
34
|
const {
|
|
5
35
|
children,
|
|
@@ -20,12 +50,10 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
20
50
|
const props = {
|
|
21
51
|
...extraProps
|
|
22
52
|
};
|
|
23
|
-
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier),
|
|
24
|
-
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
25
|
-
/* @__PURE__ */ jsx(TextComponent, { ...props, ...textProps, children: child }, index)
|
|
26
|
-
) : child);
|
|
53
|
+
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
|
|
27
54
|
}
|
|
28
|
-
export
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
29
57
|
wrapChildrenInText
|
|
30
|
-
};
|
|
58
|
+
});
|
|
31
59
|
//# sourceMappingURL=wrapChildrenInText.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapChildrenInText.tsx"],
|
|
4
|
-
"mappings": "AACA,
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB,2BAqDZ;AAAA;AAAA;AAAA;AA5CC,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC;AACjB,WAAO,CAAC,QAAQ;AAGlB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,SAAI,UAAO,MAAM,QAAQ,QACrB,eAAY,MAAM,aAAa,aAC/B,aAAU,MAAM,WAAW,WAC3B,eAAY,MAAM,aAAa,aAC/B,kBAAe,MAAM,gBAAgB,gBACrC,cAAW,MAAM,YAAY,YAC7B,SAAM,MAAM,OAAO,OACnB,cAAW,MAAM,YAAY,YAC7B,0BAAuB,MAAM,wBAAwB,wBAElD,aAAAA,QAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAC3C,OAAO,SAAU,WAEtB,4CAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB,IAEA,KAEH;AACH;",
|
|
5
|
+
"names": ["React"]
|
|
6
6
|
}
|
|
@@ -1,38 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var Headings_exports = {};
|
|
17
|
+
__export(Headings_exports, {
|
|
18
|
+
H1: () => H1,
|
|
19
|
+
H2: () => H2,
|
|
20
|
+
H3: () => H3,
|
|
21
|
+
H4: () => H4,
|
|
22
|
+
H5: () => H5,
|
|
23
|
+
H6: () => H6,
|
|
24
|
+
Heading: () => Heading
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Headings_exports);
|
|
27
|
+
var import_web = require("@tamagui/web"), import_Paragraph = require("./Paragraph");
|
|
28
|
+
const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
|
|
4
29
|
tag: "span",
|
|
5
30
|
name: "Heading",
|
|
6
31
|
accessibilityRole: "header",
|
|
7
32
|
fontFamily: "$heading",
|
|
8
33
|
size: "$8",
|
|
9
34
|
margin: 0
|
|
10
|
-
}), H1 = styled(Heading, {
|
|
35
|
+
}), H1 = (0, import_web.styled)(Heading, {
|
|
11
36
|
name: "H1",
|
|
12
37
|
tag: "h1",
|
|
13
38
|
size: "$10"
|
|
14
|
-
}), H2 = styled(Heading, {
|
|
39
|
+
}), H2 = (0, import_web.styled)(Heading, {
|
|
15
40
|
name: "H2",
|
|
16
41
|
tag: "h2",
|
|
17
42
|
size: "$9"
|
|
18
|
-
}), H3 = styled(Heading, {
|
|
43
|
+
}), H3 = (0, import_web.styled)(Heading, {
|
|
19
44
|
name: "H3",
|
|
20
45
|
tag: "h3",
|
|
21
46
|
size: "$8"
|
|
22
|
-
}), H4 = styled(Heading, {
|
|
47
|
+
}), H4 = (0, import_web.styled)(Heading, {
|
|
23
48
|
name: "H4",
|
|
24
49
|
tag: "h4",
|
|
25
50
|
size: "$7"
|
|
26
|
-
}), H5 = styled(Heading, {
|
|
51
|
+
}), H5 = (0, import_web.styled)(Heading, {
|
|
27
52
|
name: "H5",
|
|
28
53
|
tag: "h5",
|
|
29
54
|
size: "$6"
|
|
30
|
-
}), H6 = styled(Heading, {
|
|
55
|
+
}), H6 = (0, import_web.styled)(Heading, {
|
|
31
56
|
name: "H6",
|
|
32
57
|
tag: "h6",
|
|
33
58
|
size: "$5"
|
|
34
59
|
});
|
|
35
|
-
export
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
36
62
|
H1,
|
|
37
63
|
H2,
|
|
38
64
|
H3,
|
|
@@ -40,5 +66,5 @@ export {
|
|
|
40
66
|
H5,
|
|
41
67
|
H6,
|
|
42
68
|
Heading
|
|
43
|
-
};
|
|
69
|
+
});
|
|
44
70
|
//# sourceMappingURL=Headings.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Headings.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC,yBAEjC,mBAA0B;AAEnB,MAAM,cAAU,mBAAO,4BAAW;AAAA,EACvC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var Paragraph_exports = {};
|
|
17
|
+
__export(Paragraph_exports, {
|
|
18
|
+
Paragraph: () => Paragraph
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(Paragraph_exports);
|
|
21
|
+
var import_web = require("@tamagui/web"), import_SizableText = require("./SizableText");
|
|
22
|
+
const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
4
23
|
name: "Paragraph",
|
|
5
24
|
tag: "p",
|
|
6
25
|
userSelect: "auto",
|
|
7
26
|
color: "$color",
|
|
8
27
|
size: "$true"
|
|
9
28
|
});
|
|
10
|
-
export
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
11
31
|
Paragraph
|
|
12
|
-
};
|
|
32
|
+
});
|
|
13
33
|
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Paragraph.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC,yBAEjC,qBAA4B;AAErB,MAAM,gBAAY,mBAAO,gCAAa;AAAA,EAC3C,MAAM;AAAA,EACN,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var SizableText_exports = {};
|
|
17
|
+
__export(SizableText_exports, {
|
|
18
|
+
SizableText: () => SizableText
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(SizableText_exports);
|
|
21
|
+
var import_get_font_sized = require("@tamagui/get-font-sized"), import_web = require("@tamagui/web");
|
|
3
22
|
const variants = {
|
|
4
23
|
unstyled: {
|
|
5
24
|
false: {
|
|
@@ -7,15 +26,15 @@ const variants = {
|
|
|
7
26
|
color: "$color"
|
|
8
27
|
}
|
|
9
28
|
},
|
|
10
|
-
size: getFontSized
|
|
29
|
+
size: import_get_font_sized.getFontSized
|
|
11
30
|
};
|
|
12
31
|
variants.fontFamily = {
|
|
13
32
|
"...": (_, extras) => {
|
|
14
33
|
const size = extras.props.size || "$true";
|
|
15
|
-
return getFontSized(size, extras);
|
|
34
|
+
return (0, import_get_font_sized.getFontSized)(size, extras);
|
|
16
35
|
}
|
|
17
36
|
};
|
|
18
|
-
const SizableText = styled(Text, {
|
|
37
|
+
const SizableText = (0, import_web.styled)(import_web.Text, {
|
|
19
38
|
name: "SizableText",
|
|
20
39
|
fontFamily: "$body",
|
|
21
40
|
variants,
|
|
@@ -23,7 +42,8 @@ const SizableText = styled(Text, {
|
|
|
23
42
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
24
43
|
}
|
|
25
44
|
});
|
|
26
|
-
export
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
27
47
|
SizableText
|
|
28
|
-
};
|
|
48
|
+
});
|
|
29
49
|
//# sourceMappingURL=SizableText.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SizableText.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA6B,oCAC7B,aAAuC;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EAEA,MAAM;AACR;AAKA,SAAS,aAAgB;AAAA,EACvB,OAAO,CAAC,GAAG,WAAW;AACpB,UAAM,OAAO,OAAO,MAAM,QAAW;AACrC,eAAO,oCAAa,MAAM,MAAM;AAAA,EAClC;AACF;AAEO,MAAM,kBAAc,mBAAO,iBAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./SizableText"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./Paragraph"), module.exports);
|
|
17
|
+
__reExport(src_exports, require("./Headings"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./wrapChildrenInText"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./types"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./SizableText"),
|
|
23
|
+
...require("./Paragraph"),
|
|
24
|
+
...require("./Headings"),
|
|
25
|
+
...require("./wrapChildrenInText"),
|
|
26
|
+
...require("./types")
|
|
27
|
+
});
|
|
6
28
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/types.native.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var types_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(types_exports);
|
|
1
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
3
4
|
const {
|
|
4
5
|
children,
|
|
@@ -21,7 +22,7 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
21
22
|
};
|
|
22
23
|
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), React.Children.toArray(children).map((child, index) => typeof child == "string" ? (
|
|
23
24
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
24
|
-
|
|
25
|
+
/* @__PURE__ */ jsx(TextComponent, { ...props, ...textProps, children: child }, index)
|
|
25
26
|
) : child);
|
|
26
27
|
}
|
|
27
28
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapChildrenInText.tsx"],
|
|
4
|
-
"mappings": "AACA,OAAO,WAAW;
|
|
4
|
+
"mappings": "AACA,OAAO,WAAW;AAqDZ;AA5CC,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC;AACjB,WAAO,CAAC,QAAQ;AAGlB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,SAAI,UAAO,MAAM,QAAQ,QACrB,eAAY,MAAM,aAAa,aAC/B,aAAU,MAAM,WAAW,WAC3B,eAAY,MAAM,aAAa,aAC/B,kBAAe,MAAM,gBAAgB,gBACrC,cAAW,MAAM,YAAY,YAC7B,SAAM,MAAM,OAAO,OACnB,cAAW,MAAM,YAAY,YAC7B,0BAAuB,MAAM,wBAAwB,wBAElD,MAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAC3C,OAAO,SAAU;AAAA;AAAA,IAEtB,oBAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB;AAAA,MAEA,KAEH;AACH;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var wrapChildrenInText_exports = {};
|
|
25
|
+
__export(wrapChildrenInText_exports, {
|
|
26
|
+
wrapChildrenInText: () => wrapChildrenInText
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(wrapChildrenInText_exports);
|
|
29
|
+
var import_react = __toESM(require("react")), import_jsx_runtime = (
|
|
30
|
+
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
31
|
+
require("react/jsx-runtime")
|
|
32
|
+
);
|
|
2
33
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
3
34
|
const {
|
|
4
35
|
children,
|
|
@@ -19,12 +50,10 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
19
50
|
const props = {
|
|
20
51
|
...extraProps
|
|
21
52
|
};
|
|
22
|
-
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier),
|
|
23
|
-
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
24
|
-
<TextComponent key={index} {...props} {...textProps}>{child}</TextComponent>
|
|
25
|
-
) : child);
|
|
53
|
+
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
|
|
26
54
|
}
|
|
27
|
-
export
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
28
57
|
wrapChildrenInText
|
|
29
|
-
};
|
|
58
|
+
});
|
|
30
59
|
//# sourceMappingURL=wrapChildrenInText.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapChildrenInText.tsx"],
|
|
4
|
-
"mappings": "AACA,
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB,2BAqDZ;AAAA;AAAA;AAAA;AA5CC,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC;AACjB,WAAO,CAAC,QAAQ;AAGlB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,SAAI,UAAO,MAAM,QAAQ,QACrB,eAAY,MAAM,aAAa,aAC/B,aAAU,MAAM,WAAW,WAC3B,eAAY,MAAM,aAAa,aAC/B,kBAAe,MAAM,gBAAgB,gBACrC,cAAW,MAAM,YAAY,YAC7B,SAAM,MAAM,OAAO,OACnB,cAAW,MAAM,YAAY,YAC7B,0BAAuB,MAAM,wBAAwB,wBAElD,aAAAA,QAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAC3C,OAAO,SAAU,WAEtB,4CAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB,IAEA,KAEH;AACH;",
|
|
5
|
+
"names": ["React"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/text",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.3",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/get-font-sized": "1.88.
|
|
36
|
-
"@tamagui/helpers-tamagui": "1.88.
|
|
37
|
-
"@tamagui/web": "1.88.
|
|
35
|
+
"@tamagui/get-font-sized": "1.88.3",
|
|
36
|
+
"@tamagui/helpers-tamagui": "1.88.3",
|
|
37
|
+
"@tamagui/web": "1.88.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "*"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "1.88.
|
|
43
|
+
"@tamagui/build": "1.88.3",
|
|
44
44
|
"react": "^18.2.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|