@tamagui/text 1.88.1 → 1.88.2

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.
@@ -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
@@ -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
@@ -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
- import { styled } from "@tamagui/web";
2
- import { Paragraph } from "./Paragraph";
3
- const Heading = styled(Paragraph, {
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,SAAmB,cAAc;AAEjC,SAAS,iBAAiB;AAEnB,MAAM,UAAU,OAAO,WAAW;AAAA,EACvC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC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;AACR,CAAC;",
5
5
  "names": []
6
6
  }
@@ -1,13 +1,33 @@
1
- import { styled } from "@tamagui/web";
2
- import { SizableText } from "./SizableText";
3
- const Paragraph = styled(SizableText, {
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,SAAmB,cAAc;AAEjC,SAAS,mBAAmB;AAErB,MAAM,YAAY,OAAO,aAAa;AAAA,EAC3C,MAAM;AAAA,EACN,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR,CAAC;",
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
- import { getFontSized } from "@tamagui/get-font-sized";
2
- import { Text, styled } from "@tamagui/web";
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,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;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,WAAO,aAAa,MAAM,MAAM;AAAA,EAClC;AACF;AAEO,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
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
  }
@@ -1,6 +1,28 @@
1
- export * from "./SizableText";
2
- export * from "./Paragraph";
3
- export * from "./Headings";
4
- export * from "./wrapChildrenInText";
5
- export * from "./types";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,oBAJd;",
5
5
  "names": []
6
6
  }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "mappings": "",
3
+ "sources": ["../../src/types.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,35 @@
1
- import React from "react";
2
- import { jsx } from "react/jsx-runtime";
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), React.Children.toArray(children).map((child, index) => typeof child == "string" ? (
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,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
- "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
- import { styled } from "@tamagui/web";
2
- import { Paragraph } from "./Paragraph";
3
- const Heading = styled(Paragraph, {
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,SAAmB,cAAc;AAEjC,SAAS,iBAAiB;AAEnB,MAAM,UAAU,OAAO,WAAW;AAAA,EACvC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;",
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
- import { styled } from "@tamagui/web";
2
- import { SizableText } from "./SizableText";
3
- const Paragraph = styled(SizableText, {
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,SAAmB,cAAc;AAEjC,SAAS,mBAAmB;AAErB,MAAM,YAAY,OAAO,aAAa;AAAA,EAC3C,MAAM;AAAA,EACN,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR,CAAC;",
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
- import { getFontSized } from "@tamagui/get-font-sized";
2
- import { Text, styled } from "@tamagui/web";
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,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;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,WAAO,aAAa,MAAM,MAAM;AAAA,EAClC;AACF;AAEO,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
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
  }
@@ -1,6 +1,28 @@
1
- export * from "./SizableText";
2
- export * from "./Paragraph";
3
- export * from "./Headings";
4
- export * from "./wrapChildrenInText";
5
- export * from "./types";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,oBAJd;",
5
5
  "names": []
6
6
  }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "mappings": "",
3
+ "sources": ["../../src/types.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
5
  "names": []
6
6
  }
@@ -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
- <TextComponent key={index} {...props} {...textProps}>{child}</TextComponent>
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;AASX,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;AACj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names": []
6
6
  }
@@ -1,4 +1,35 @@
1
- import React from "react";
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), React.Children.toArray(children).map((child, index) => typeof child == "string" ? (
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,OAAO,WAAW;AASX,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,UA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  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/text",
3
- "version": "1.88.1",
3
+ "version": "1.88.2",
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.1",
36
- "@tamagui/helpers-tamagui": "1.88.1",
37
- "@tamagui/web": "1.88.1"
35
+ "@tamagui/get-font-sized": "1.88.2",
36
+ "@tamagui/helpers-tamagui": "1.88.2",
37
+ "@tamagui/web": "1.88.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.88.1",
43
+ "@tamagui/build": "1.88.2",
44
44
  "react": "^18.2.0"
45
45
  },
46
46
  "publishConfig": {