@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.
Files changed (113) hide show
  1. package/dist/cjs/Emphasis.cjs +21 -25
  2. package/dist/cjs/Emphasis.native.cjs +39 -0
  3. package/dist/cjs/Emphasis.native.js +21 -24
  4. package/dist/cjs/Emphasis.native.js.map +1 -1
  5. package/dist/cjs/Headings.cjs +50 -100
  6. package/dist/cjs/Headings.native.cjs +79 -0
  7. package/dist/cjs/Headings.native.js +50 -99
  8. package/dist/cjs/Headings.native.js.map +1 -1
  9. package/dist/cjs/Paragraph.cjs +21 -24
  10. package/dist/cjs/Paragraph.native.cjs +36 -0
  11. package/dist/cjs/Paragraph.native.js +21 -23
  12. package/dist/cjs/Paragraph.native.js.map +1 -1
  13. package/dist/cjs/SizableText.cjs +40 -46
  14. package/dist/cjs/SizableText.native.cjs +56 -0
  15. package/dist/cjs/SizableText.native.js +42 -46
  16. package/dist/cjs/SizableText.native.js.map +1 -1
  17. package/dist/cjs/index.cjs +9 -11
  18. package/dist/cjs/index.native.cjs +25 -0
  19. package/dist/cjs/index.native.js +9 -10
  20. package/dist/cjs/index.native.js.map +1 -1
  21. package/dist/cjs/types.cjs +25 -11
  22. package/dist/cjs/types.native.cjs +34 -0
  23. package/dist/cjs/types.native.js +25 -10
  24. package/dist/cjs/types.native.js.map +1 -1
  25. package/dist/cjs/wrapChildrenInText.cjs +56 -67
  26. package/dist/cjs/wrapChildrenInText.native.cjs +73 -0
  27. package/dist/cjs/wrapChildrenInText.native.js +55 -66
  28. package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
  29. package/dist/esm/Emphasis.mjs +8 -8
  30. package/dist/esm/Emphasis.mjs.map +1 -1
  31. package/dist/esm/Emphasis.native.js +8 -8
  32. package/dist/esm/Emphasis.native.js.map +1 -1
  33. package/dist/esm/Headings.mjs +32 -78
  34. package/dist/esm/Headings.mjs.map +1 -1
  35. package/dist/esm/Headings.native.js +32 -78
  36. package/dist/esm/Headings.native.js.map +1 -1
  37. package/dist/esm/Paragraph.mjs +9 -6
  38. package/dist/esm/Paragraph.mjs.map +1 -1
  39. package/dist/esm/Paragraph.native.js +9 -6
  40. package/dist/esm/Paragraph.native.js.map +1 -1
  41. package/dist/esm/SizableText.mjs +29 -29
  42. package/dist/esm/SizableText.mjs.map +1 -1
  43. package/dist/esm/SizableText.native.js +30 -29
  44. package/dist/esm/SizableText.native.js.map +1 -1
  45. package/dist/esm/index.js +11 -7
  46. package/dist/esm/index.mjs +11 -7
  47. package/dist/esm/index.native.js +11 -7
  48. package/dist/esm/types.mjs +11 -0
  49. package/dist/esm/types.mjs.map +1 -1
  50. package/dist/esm/types.native.js +11 -0
  51. package/dist/esm/types.native.js.map +1 -1
  52. package/dist/esm/wrapChildrenInText.mjs +40 -41
  53. package/dist/esm/wrapChildrenInText.mjs.map +1 -1
  54. package/dist/esm/wrapChildrenInText.native.js +41 -42
  55. package/dist/esm/wrapChildrenInText.native.js.map +1 -1
  56. package/dist/jsx/Emphasis.mjs +8 -8
  57. package/dist/jsx/Emphasis.mjs.map +1 -1
  58. package/dist/jsx/Emphasis.native.cjs +39 -0
  59. package/dist/jsx/Emphasis.native.js +21 -24
  60. package/dist/jsx/Emphasis.native.js.map +1 -1
  61. package/dist/jsx/Headings.mjs +32 -78
  62. package/dist/jsx/Headings.mjs.map +1 -1
  63. package/dist/jsx/Headings.native.cjs +79 -0
  64. package/dist/jsx/Headings.native.js +50 -99
  65. package/dist/jsx/Headings.native.js.map +1 -1
  66. package/dist/jsx/Paragraph.mjs +9 -6
  67. package/dist/jsx/Paragraph.mjs.map +1 -1
  68. package/dist/jsx/Paragraph.native.cjs +36 -0
  69. package/dist/jsx/Paragraph.native.js +21 -23
  70. package/dist/jsx/Paragraph.native.js.map +1 -1
  71. package/dist/jsx/SizableText.mjs +29 -29
  72. package/dist/jsx/SizableText.mjs.map +1 -1
  73. package/dist/jsx/SizableText.native.cjs +56 -0
  74. package/dist/jsx/SizableText.native.js +42 -46
  75. package/dist/jsx/SizableText.native.js.map +1 -1
  76. package/dist/jsx/index.js +11 -7
  77. package/dist/jsx/index.mjs +11 -7
  78. package/dist/jsx/index.native.cjs +25 -0
  79. package/dist/jsx/index.native.js +9 -10
  80. package/dist/jsx/index.native.js.map +1 -1
  81. package/dist/jsx/types.mjs +11 -0
  82. package/dist/jsx/types.mjs.map +1 -1
  83. package/dist/jsx/types.native.cjs +34 -0
  84. package/dist/jsx/types.native.js +25 -10
  85. package/dist/jsx/types.native.js.map +1 -1
  86. package/dist/jsx/wrapChildrenInText.mjs +40 -41
  87. package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
  88. package/dist/jsx/wrapChildrenInText.native.cjs +73 -0
  89. package/dist/jsx/wrapChildrenInText.native.js +55 -66
  90. package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
  91. package/package.json +7 -6
  92. package/src/Headings.tsx +15 -15
  93. package/src/Paragraph.tsx +4 -3
  94. package/src/SizableText.tsx +32 -33
  95. package/src/types.ts +30 -5
  96. package/src/wrapChildrenInText.tsx +32 -11
  97. package/types/Emphasis.d.ts +15 -3
  98. package/types/Emphasis.d.ts.map +1 -1
  99. package/types/Headings.d.ts +89 -22
  100. package/types/Headings.d.ts.map +1 -1
  101. package/types/Paragraph.d.ts +11 -4
  102. package/types/Paragraph.d.ts.map +1 -1
  103. package/types/SizableText.d.ts +1 -2
  104. package/types/SizableText.d.ts.map +1 -1
  105. package/types/types.d.ts +44 -1
  106. package/types/types.d.ts.map +1 -1
  107. package/types/wrapChildrenInText.d.ts +2 -4
  108. package/types/wrapChildrenInText.d.ts.map +1 -1
  109. package/dist/esm/index.js.map +0 -1
  110. package/dist/esm/index.mjs.map +0 -1
  111. package/dist/esm/index.native.js.map +0 -1
  112. package/dist/jsx/index.js.map +0 -1
  113. package/dist/jsx/index.mjs.map +0 -1
@@ -3,35 +3,32 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var Paragraph_exports = {};
24
- __export(Paragraph_exports, {
25
- Paragraph: () => Paragraph
26
- });
22
+ __export(Paragraph_exports, { Paragraph: () => Paragraph });
27
23
  module.exports = __toCommonJS(Paragraph_exports);
28
24
  var import_web = require("@tamagui/web");
29
25
  var import_SizableText = require("./SizableText.cjs");
30
26
  const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
31
- name: "Paragraph",
32
- render: "p",
33
- userSelect: "auto",
34
- color: "$color",
35
- size: "$true",
36
- whiteSpace: "normal"
37
- });
27
+ displayName: "Paragraph",
28
+ className: "tm-paragraph",
29
+ render: "p",
30
+ userSelect: "auto",
31
+ color: "color",
32
+ whiteSpace: "normal",
33
+ size: true
34
+ });
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var Paragraph_exports = {};
24
+ __export(Paragraph_exports, { Paragraph: () => Paragraph });
25
+ module.exports = __toCommonJS(Paragraph_exports);
26
+ var import_web = require("@tamagui/web");
27
+ var import_SizableText = require("./SizableText.native.js");
28
+ var Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
29
+ displayName: "Paragraph",
30
+ className: "tm-paragraph",
31
+ render: "p",
32
+ userSelect: "auto",
33
+ color: "color",
34
+ whiteSpace: "normal",
35
+ size: true
36
+ });
@@ -5,36 +5,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var Paragraph_exports = {};
26
- __export(Paragraph_exports, {
27
- Paragraph: () => Paragraph
28
- });
24
+ __export(Paragraph_exports, { Paragraph: () => Paragraph });
29
25
  module.exports = __toCommonJS(Paragraph_exports);
30
26
  var import_web = require("@tamagui/web");
31
27
  var import_SizableText = require("./SizableText.native.js");
32
28
  var Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
33
- name: "Paragraph",
34
- render: "p",
35
- userSelect: "auto",
36
- color: "$color",
37
- size: "$true",
38
- whiteSpace: "normal"
29
+ displayName: "Paragraph",
30
+ className: "tm-paragraph",
31
+ render: "p",
32
+ userSelect: "auto",
33
+ color: "color",
34
+ whiteSpace: "normal",
35
+ size: true
39
36
  });
37
+
40
38
  //# sourceMappingURL=Paragraph.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Paragraph_exports","__export","Paragraph","module","exports","import_web","require","import_SizableText","styled","SizableText","name","render","userSelect","color","size","whiteSpace"],"sources":["../../src/Paragraph.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,iBAAA;AAEvB,IAAAK,UAAA,GAAAC,OAAA,CAA4B;AAErB,IAAAC,kBAAkB,GAAAD,OAAA,0BAAO;AAAa,IAC3CJ,SAAM,OAAAG,UAAA,CAAAG,MAAA,EAAAD,kBAAA,CAAAE,WAAA;EACNC,IAAA,aAAQ;EACRC,MAAA;EACAC,UAAO;EACPC,KAAA,EAAM;EACNC,IAAA,SAAY;EACbC,UAAA","ignoreList":[]}
1
+ {"version":3,"file":"Paragraph.native.js","names":[],"sources":["cjs/Paragraph.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Paragraph_exports = {};\n__export(Paragraph_exports, {\n Paragraph: () => Paragraph\n});\nmodule.exports = __toCommonJS(Paragraph_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_SizableText = require(\"./SizableText\");\nvar Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {\n displayName: \"Paragraph\",\n className: \"tm-paragraph\",\n render: \"p\",\n userSelect: \"auto\",\n color: \"color\",\n whiteSpace: \"normal\",\n size: true\n});\n//# sourceMappingURL=Paragraph.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,aAAa,GAAG,WAAW,OAAM,CAAE,mBAAmB,aAAa;CACrE,aAAa;CACb,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,YAAY;CACZ,MAAM;AACR,CAAC"}
@@ -3,57 +3,51 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var SizableText_exports = {};
24
- __export(SizableText_exports, {
25
- SizableText: () => SizableText
26
- });
22
+ __export(SizableText_exports, { SizableText: () => SizableText });
27
23
  module.exports = __toCommonJS(SizableText_exports);
28
24
  var import_get_font_sized = require("@tamagui/get-font-sized");
29
25
  var import_web = require("@tamagui/web");
30
- const SizableText = (0, import_web.styled)(import_web.Text, {
31
- name: "SizableText",
32
- fontFamily: "$body",
33
- variants: {
34
- unstyled: {
35
- false: {
36
- size: "$true",
37
- color: "$color"
38
- }
39
- },
40
- size: import_get_font_sized.getFontSized
41
- },
42
- defaultVariants: {
43
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
44
- }
26
+ const SizableTextFrame = (0, import_web.styled)(import_web.Text, {
27
+ displayName: "SizableText",
28
+ fontFamily: "body",
29
+ color: "color",
30
+ size: true,
31
+ variants: { size: import_get_font_sized.getFontSized }
32
+ });
33
+ const SizableText = SizableTextFrame.resolve((props, env) => {
34
+ if (props.fontFamily === "inherit") {
35
+ return { fontFamily: "inherit" };
36
+ }
37
+ if (props.fontFamily === void 0) {
38
+ return {};
39
+ }
40
+ const size = props.size === true && props.fontSize ? props.fontSize : props.size ?? true;
41
+ const sized = (0, import_get_font_sized.getFontSized)(size, env);
42
+ return {
43
+ color: sized?.color,
44
+ fontFamily: sized?.fontFamily,
45
+ fontSize: sized?.fontSize,
46
+ fontStyle: sized?.fontStyle,
47
+ fontWeight: sized?.fontWeight,
48
+ letterSpacing: sized?.letterSpacing,
49
+ lineHeight: sized?.lineHeight,
50
+ textTransform: sized?.textTransform
51
+ };
45
52
  });
46
- SizableText.staticConfig.inlineProps = /* @__PURE__ */new Set([...(SizableText.staticConfig.inlineProps || []), "maxFontSizeMultiplier"]);
47
- SizableText.staticConfig.variants.fontFamily = {
48
- "...": (val, extras) => {
49
- if (val === "inherit") {
50
- return {
51
- fontFamily: "inherit"
52
- };
53
- }
54
- const sizeProp = extras.props["size"];
55
- const fontSizeProp = extras.props["fontSize"];
56
- const size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props["size"] || "$true";
57
- return (0, import_get_font_sized.getFontSized)(size, extras);
58
- }
59
- };
53
+ SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var SizableText_exports = {};
24
+ __export(SizableText_exports, { SizableText: () => SizableText });
25
+ module.exports = __toCommonJS(SizableText_exports);
26
+ var import_get_font_sized = require("@tamagui/get-font-sized");
27
+ var import_web = require("@tamagui/web");
28
+ var SizableTextFrame = (0, import_web.styled)(import_web.Text, {
29
+ displayName: "SizableText",
30
+ fontFamily: "body",
31
+ color: "color",
32
+ size: true,
33
+ variants: { size: import_get_font_sized.getFontSized }
34
+ });
35
+ var SizableText = SizableTextFrame.resolve(function(props, env) {
36
+ if (props.fontFamily === "inherit") {
37
+ return { fontFamily: "inherit" };
38
+ }
39
+ if (props.fontFamily === void 0) {
40
+ return {};
41
+ }
42
+ var _props_size;
43
+ var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;
44
+ var sized = (0, import_get_font_sized.getFontSized)(size, env);
45
+ return {
46
+ color: sized === null || sized === void 0 ? void 0 : sized.color,
47
+ fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
48
+ fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
49
+ fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
50
+ fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
51
+ letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
52
+ lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
53
+ textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform
54
+ };
55
+ });
56
+ SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
@@ -5,58 +5,54 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var SizableText_exports = {};
26
- __export(SizableText_exports, {
27
- SizableText: () => SizableText
28
- });
24
+ __export(SizableText_exports, { SizableText: () => SizableText });
29
25
  module.exports = __toCommonJS(SizableText_exports);
30
26
  var import_get_font_sized = require("@tamagui/get-font-sized");
31
27
  var import_web = require("@tamagui/web");
32
- var SizableText = (0, import_web.styled)(import_web.Text, {
33
- name: "SizableText",
34
- fontFamily: "$body",
35
- variants: {
36
- unstyled: {
37
- false: {
38
- size: "$true",
39
- color: "$color"
40
- }
41
- },
42
- size: import_get_font_sized.getFontSized
43
- },
44
- defaultVariants: {
45
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
46
- }
28
+ var SizableTextFrame = (0, import_web.styled)(import_web.Text, {
29
+ displayName: "SizableText",
30
+ fontFamily: "body",
31
+ color: "color",
32
+ size: true,
33
+ variants: { size: import_get_font_sized.getFontSized }
47
34
  });
48
- SizableText.staticConfig.inlineProps = /* @__PURE__ */new Set([...(SizableText.staticConfig.inlineProps || []), "maxFontSizeMultiplier"]);
49
- SizableText.staticConfig.variants.fontFamily = {
50
- "...": function (val, extras) {
51
- if (val === "inherit") {
52
- return {
53
- fontFamily: "inherit"
54
- };
55
- }
56
- var sizeProp = extras.props["size"];
57
- var fontSizeProp = extras.props["fontSize"];
58
- var size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props["size"] || "$true";
59
- return (0, import_get_font_sized.getFontSized)(size, extras);
60
- }
61
- };
35
+ var SizableText = SizableTextFrame.resolve(function(props, env) {
36
+ if (props.fontFamily === "inherit") {
37
+ return { fontFamily: "inherit" };
38
+ }
39
+ if (props.fontFamily === void 0) {
40
+ return {};
41
+ }
42
+ var _props_size;
43
+ var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;
44
+ var sized = (0, import_get_font_sized.getFontSized)(size, env);
45
+ return {
46
+ color: sized === null || sized === void 0 ? void 0 : sized.color,
47
+ fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
48
+ fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
49
+ fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
50
+ fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
51
+ letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
52
+ lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
53
+ textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform
54
+ };
55
+ });
56
+ SizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([...SizableText.staticConfig.inlineProps || [], "maxFontSizeMultiplier"]);
57
+
62
58
  //# sourceMappingURL=SizableText.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableText_exports","__export","SizableText","module","exports","import_get_font_sized","require","import_web","styled","Text","name","fontFamily","variants","unstyled","false","size","color","getFontSized","defaultVariants","process","env","TAMAGUI_HEADLESS","staticConfig","inlineProps","Set","...","val","extras","sizeProp","props","fontSizeProp"],"sources":["../../src/SizableText.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA6B,CAAAK,mBAAA;AAE7B,IAAAK,qBAA6B,GAAAC,OAAA;AAEtB,IAAAC,UAAM,GAAAD,OAAc;AAAa,IACtCJ,WAAM,OAAAK,UAAA,CAAAC,MAAA,EAAAD,UAAA,CAAAE,IAAA;EACNC,IAAA,eAAY;EAEZC,UAAU;EAAAC,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACAC,IAAA,SAAO;QACTC,KAAA;MACF;IAEA;IACFD,IAAA,EAAAV,qBAAA,CAAAY;EAEA;EAAiBC,eACL;IACZL,QAAA,EAAAM,OAAA,CAAAC,GAAA,CAAAC,gBAAA;EACD;AAED;AAA+CnB,WACzC,CAAAoB,YAAY,CAAAC,WAAa,kBAAgB,IAAAC,GAAA,EAC7C,IAAAtB,WAAA,CAAAoB,YAAA,CAAAC,WAAA,SACD,wBAID;AAAgDrB,WACtC,CAAAoB,YAAK,CAAAV,QAAW,CAAAD,UAAA;EAEtB,OAAI,SAAAc,CAAQC,GAAA,EAAAC,MAAW;IACrB,IAAAD,GAAA,KAAS,WAAY;MACvB;QAEAf,UAAM;MACN;IACA;IAIA,IAAAiB,QAAO,GAAAD,MAAA,CAAAE,KAAA;IACT,IAAAC,YAAA,GAAAH,MAAA,CAAAE,KAAA;IACF,IAAAd,IAAA,GAAAa,QAAA,gBAAAE,YAAA,GAAAA,YAAA,GAAAH,MAAA,CAAAE,KAAA","ignoreList":[]}
1
+ {"version":3,"file":"SizableText.native.js","names":[],"sources":["cjs/SizableText.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar SizableText_exports = {};\n__export(SizableText_exports, {\n SizableText: () => SizableText\n});\nmodule.exports = __toCommonJS(SizableText_exports);\nvar import_get_font_sized = require(\"@tamagui/get-font-sized\");\nvar import_web = require(\"@tamagui/web\");\nvar SizableTextFrame = (0, import_web.styled)(import_web.Text, {\n displayName: \"SizableText\",\n fontFamily: \"body\",\n color: \"color\",\n size: true,\n variants: {\n size: import_get_font_sized.getFontSized\n }\n});\nvar SizableText = SizableTextFrame.resolve(function(props, env) {\n if (props.fontFamily === \"inherit\") {\n return {\n fontFamily: \"inherit\"\n };\n }\n if (props.fontFamily === void 0) {\n return {};\n }\n var _props_size;\n var size = props.size === true && props.fontSize ? props.fontSize : (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true;\n var sized = (0, import_get_font_sized.getFontSized)(size, env);\n return {\n color: sized === null || sized === void 0 ? void 0 : sized.color,\n fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,\n fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,\n fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,\n fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,\n letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,\n lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,\n textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform\n };\n});\nSizableText.staticConfig.inlineProps = /* @__PURE__ */ new Set([\n ...SizableText.staticConfig.inlineProps || [],\n \"maxFontSizeMultiplier\"\n]);\n//# sourceMappingURL=SizableText.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB,EAC5B,mBAAmB,YACrB,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,wBAAwB,QAAQ,yBAAyB;AAC7D,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,oBAAoB,GAAG,WAAW,OAAM,CAAE,WAAW,MAAM;CAC7D,aAAa;CACb,YAAY;CACZ,OAAO;CACP,MAAM;CACN,UAAU,EACR,MAAM,sBAAsB,aAC9B;AACF,CAAC;AACD,IAAI,cAAc,iBAAiB,QAAQ,SAAS,OAAO,KAAK;CAC9D,IAAI,MAAM,eAAe,WAAW;EAClC,OAAO,EACL,YAAY,UACd;CACF;CACA,IAAI,MAAM,eAAe,KAAK,GAAG;EAC/B,OAAO,CAAC;CACV;CACA,IAAI;CACJ,IAAI,OAAO,MAAM,SAAS,QAAQ,MAAM,WAAW,MAAM,YAAY,cAAc,MAAM,UAAU,QAAQ,gBAAgB,KAAK,IAAI,cAAc;CAClJ,IAAI,SAAS,GAAG,sBAAsB,aAAY,CAAE,MAAM,GAAG;CAC7D,OAAO;EACL,OAAO,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC3D,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,UAAU,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC9D,WAAW,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAC/D,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,eAAe,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EACnE,YAAY,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EAChE,eAAe,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;CACrE;AACF,CAAC;AACD,YAAY,aAAa,8BAA8B,IAAI,IAAI,CAC7D,GAAG,YAAY,aAAa,eAAe,CAAC,GAC5C,uBACF,CAAC"}
@@ -3,18 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
12
+ return to;
13
13
  };
14
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
16
  var index_exports = {};
19
17
  module.exports = __toCommonJS(index_exports);
20
18
  __reExport(index_exports, require("./Emphasis.cjs"), module.exports);
@@ -22,4 +20,4 @@ __reExport(index_exports, require("./SizableText.cjs"), module.exports);
22
20
  __reExport(index_exports, require("./Paragraph.cjs"), module.exports);
23
21
  __reExport(index_exports, require("./Headings.cjs"), module.exports);
24
22
  __reExport(index_exports, require("./wrapChildrenInText.cjs"), module.exports);
25
- __reExport(index_exports, require("./types.cjs"), module.exports);
23
+ __reExport(index_exports, require("./types.cjs"), module.exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./Emphasis.native.js"), module.exports);
21
+ __reExport(index_exports, require("./SizableText.native.js"), module.exports);
22
+ __reExport(index_exports, require("./Paragraph.native.js"), module.exports);
23
+ __reExport(index_exports, require("./Headings.native.js"), module.exports);
24
+ __reExport(index_exports, require("./wrapChildrenInText.native.js"), module.exports);
25
+ __reExport(index_exports, require("./types.native.js"), module.exports);
@@ -5,18 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
15
  };
16
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
18
  var index_exports = {};
21
19
  module.exports = __toCommonJS(index_exports);
22
20
  __reExport(index_exports, require("./Emphasis.native.js"), module.exports);
@@ -25,4 +23,5 @@ __reExport(index_exports, require("./Paragraph.native.js"), module.exports);
25
23
  __reExport(index_exports, require("./Headings.native.js"), module.exports);
26
24
  __reExport(index_exports, require("./wrapChildrenInText.native.js"), module.exports);
27
25
  __reExport(index_exports, require("./types.native.js"), module.exports);
26
+
28
27
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BAAAH,MADd,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,2BAFd,EAAAH,MAAA,CAAAC,OAAA;AAGAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,2BAHdH,MAAA,CAAAC,OAAA;AAIAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BAAAH,MAAA,CAAAC,OAJd;AAKAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,iCALd,GAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Emphasis\"), module.exports);\n__reExport(index_exports, require(\"./SizableText\"), module.exports);\n__reExport(index_exports, require(\"./Paragraph\"), module.exports);\n__reExport(index_exports, require(\"./Headings\"), module.exports);\n__reExport(index_exports, require(\"./wrapChildrenInText\"), module.exports);\n__reExport(index_exports, require(\"./types\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,WAAW,eAAe,QAAQ,yBAAe,GAAG,OAAO,OAAO;AAClE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO;AAChE,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,WAAW,eAAe,QAAQ,gCAAsB,GAAG,OAAO,OAAO;AACzE,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO"}
@@ -2,17 +2,31 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
5
11
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
13
19
  };
14
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: true
16
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
21
  var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
22
+ __export(types_exports, { textParentProps: () => textParentProps });
23
+ module.exports = __toCommonJS(types_exports);
24
+ var import_web = require("@tamagui/web");
25
+ const textParentProps = {
26
+ ...import_web.stylePropsTextOnly,
27
+ ellipsis: true,
28
+ maxFontSizeMultiplier: true,
29
+ noTextWrap: true,
30
+ numberOfLines: true,
31
+ textProps: true
32
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var types_exports = {};
24
+ __export(types_exports, { textParentProps: () => textParentProps });
25
+ module.exports = __toCommonJS(types_exports);
26
+ var import_web = require("@tamagui/web");
27
+ var textParentProps = {
28
+ ...import_web.stylePropsTextOnly,
29
+ ellipsis: true,
30
+ maxFontSizeMultiplier: true,
31
+ noTextWrap: true,
32
+ numberOfLines: true,
33
+ textProps: true
34
+ };