@tamagui/text 1.61.3 → 1.62.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 (49) hide show
  1. package/dist/cjs/Headings.js +12 -23
  2. package/dist/cjs/Headings.js.map +1 -1
  3. package/dist/cjs/Headings.native.js +70 -0
  4. package/dist/cjs/Headings.native.js.map +6 -0
  5. package/dist/cjs/Paragraph.js +6 -11
  6. package/dist/cjs/Paragraph.js.map +1 -1
  7. package/dist/cjs/Paragraph.native.js +33 -0
  8. package/dist/cjs/Paragraph.native.js.map +6 -0
  9. package/dist/cjs/SizableText.js +9 -14
  10. package/dist/cjs/SizableText.js.map +1 -1
  11. package/dist/cjs/SizableText.native.js +48 -0
  12. package/dist/cjs/SizableText.native.js.map +6 -0
  13. package/dist/cjs/index.js +4 -8
  14. package/dist/cjs/index.js.map +1 -1
  15. package/dist/cjs/index.native.js +28 -0
  16. package/dist/cjs/index.native.js.map +6 -0
  17. package/dist/cjs/types.js +3 -6
  18. package/dist/cjs/types.js.map +1 -1
  19. package/dist/cjs/types.native.js +15 -0
  20. package/dist/cjs/types.native.js.map +6 -0
  21. package/dist/cjs/wrapChildrenInText.js +10 -38
  22. package/dist/cjs/wrapChildrenInText.js.map +1 -1
  23. package/dist/cjs/wrapChildrenInText.native.js +59 -0
  24. package/dist/cjs/wrapChildrenInText.native.js.map +6 -0
  25. package/dist/esm/Headings.js +6 -12
  26. package/dist/esm/Headings.js.map +1 -1
  27. package/dist/esm/SizableText.js +3 -3
  28. package/dist/esm/SizableText.js.map +1 -1
  29. package/dist/esm/wrapChildrenInText.js +6 -27
  30. package/dist/esm/wrapChildrenInText.js.map +1 -1
  31. package/dist/jsx/Headings.js +6 -12
  32. package/dist/jsx/Headings.js.map +1 -1
  33. package/dist/jsx/Headings.native.js +44 -0
  34. package/dist/jsx/Headings.native.js.map +6 -0
  35. package/dist/jsx/Paragraph.native.js +13 -0
  36. package/dist/jsx/Paragraph.native.js.map +6 -0
  37. package/dist/jsx/SizableText.js +3 -3
  38. package/dist/jsx/SizableText.js.map +1 -1
  39. package/dist/jsx/SizableText.native.js +28 -0
  40. package/dist/jsx/SizableText.native.js.map +6 -0
  41. package/dist/jsx/index.native.js +6 -0
  42. package/dist/jsx/index.native.js.map +6 -0
  43. package/dist/jsx/types.native.js +1 -0
  44. package/dist/jsx/types.native.js.map +6 -0
  45. package/dist/jsx/wrapChildrenInText.js +5 -26
  46. package/dist/jsx/wrapChildrenInText.js.map +1 -1
  47. package/dist/jsx/wrapChildrenInText.native.js +30 -0
  48. package/dist/jsx/wrapChildrenInText.native.js.map +6 -0
  49. package/package.json +5 -5
@@ -1,21 +1,17 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
12
10
  for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
12
  return to;
17
13
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
15
  var Headings_exports = {};
20
16
  __export(Headings_exports, {
21
17
  H1: () => H1,
@@ -27,8 +23,7 @@ __export(Headings_exports, {
27
23
  Heading: () => Heading
28
24
  });
29
25
  module.exports = __toCommonJS(Headings_exports);
30
- var import_web = require("@tamagui/web");
31
- var import_Paragraph = require("./Paragraph");
26
+ var import_web = require("@tamagui/web"), import_Paragraph = require("./Paragraph");
32
27
  const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
33
28
  tag: "span",
34
29
  name: "Heading",
@@ -36,33 +31,27 @@ const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
36
31
  fontFamily: "$heading",
37
32
  size: "$8",
38
33
  margin: 0
39
- });
40
- const H1 = (0, import_web.styled)(Heading, {
34
+ }), H1 = (0, import_web.styled)(Heading, {
41
35
  name: "H1",
42
36
  tag: "h1",
43
37
  size: "$10"
44
- });
45
- const H2 = (0, import_web.styled)(Heading, {
38
+ }), H2 = (0, import_web.styled)(Heading, {
46
39
  name: "H2",
47
40
  tag: "h2",
48
41
  size: "$9"
49
- });
50
- const H3 = (0, import_web.styled)(Heading, {
42
+ }), H3 = (0, import_web.styled)(Heading, {
51
43
  name: "H3",
52
44
  tag: "h3",
53
45
  size: "$8"
54
- });
55
- const H4 = (0, import_web.styled)(Heading, {
46
+ }), H4 = (0, import_web.styled)(Heading, {
56
47
  name: "H4",
57
48
  tag: "h4",
58
49
  size: "$7"
59
- });
60
- const H5 = (0, import_web.styled)(Heading, {
50
+ }), H5 = (0, import_web.styled)(Heading, {
61
51
  name: "H5",
62
52
  tag: "h5",
63
53
  size: "$6"
64
- });
65
- const H6 = (0, import_web.styled)(Heading, {
54
+ }), H6 = (0, import_web.styled)(Heading, {
66
55
  name: "H6",
67
56
  tag: "h6",
68
57
  size: "$5"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Headings.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC;AAEjC,uBAA0B;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;AAIM,MAAM,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,SAAK,mBAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,SAAK,mBAAO,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
  }
@@ -0,0 +1,70 @@
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, {
29
+ tag: "span",
30
+ name: "Heading",
31
+ accessibilityRole: "header",
32
+ fontFamily: "$heading",
33
+ size: "$8",
34
+ margin: 0
35
+ }), H1 = (0, import_web.styled)(Heading, {
36
+ name: "H1",
37
+ tag: "h1",
38
+ size: "$10"
39
+ }), H2 = (0, import_web.styled)(Heading, {
40
+ name: "H2",
41
+ tag: "h2",
42
+ size: "$9"
43
+ }), H3 = (0, import_web.styled)(Heading, {
44
+ name: "H3",
45
+ tag: "h3",
46
+ size: "$8"
47
+ }), H4 = (0, import_web.styled)(Heading, {
48
+ name: "H4",
49
+ tag: "h4",
50
+ size: "$7"
51
+ }), H5 = (0, import_web.styled)(Heading, {
52
+ name: "H5",
53
+ tag: "h5",
54
+ size: "$6"
55
+ }), H6 = (0, import_web.styled)(Heading, {
56
+ name: "H6",
57
+ tag: "h6",
58
+ size: "$5"
59
+ });
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ H1,
63
+ H2,
64
+ H3,
65
+ H4,
66
+ H5,
67
+ H6,
68
+ Heading
69
+ });
70
+ //# sourceMappingURL=Headings.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Headings.tsx"],
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
+ "names": []
6
+ }
@@ -1,28 +1,23 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
12
10
  for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
12
  return to;
17
13
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
15
  var Paragraph_exports = {};
20
16
  __export(Paragraph_exports, {
21
17
  Paragraph: () => Paragraph
22
18
  });
23
19
  module.exports = __toCommonJS(Paragraph_exports);
24
- var import_web = require("@tamagui/web");
25
- var import_SizableText = require("./SizableText");
20
+ var import_web = require("@tamagui/web"), import_SizableText = require("./SizableText");
26
21
  const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
27
22
  name: "Paragraph",
28
23
  tag: "p",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Paragraph.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiC;AAEjC,yBAA4B;AAErB,MAAM,gBAAY,mBAAO,gCAAa;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
  }
@@ -0,0 +1,33 @@
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, {
23
+ name: "Paragraph",
24
+ tag: "p",
25
+ userSelect: "auto",
26
+ color: "$color",
27
+ size: "$true"
28
+ });
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ Paragraph
32
+ });
33
+ //# sourceMappingURL=Paragraph.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Paragraph.tsx"],
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
+ "names": []
6
+ }
@@ -1,28 +1,23 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
12
10
  for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
12
  return to;
17
13
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
15
  var SizableText_exports = {};
20
16
  __export(SizableText_exports, {
21
17
  SizableText: () => SizableText
22
18
  });
23
19
  module.exports = __toCommonJS(SizableText_exports);
24
- var import_get_font_sized = require("@tamagui/get-font-sized");
25
- var import_web = require("@tamagui/web");
20
+ var import_get_font_sized = require("@tamagui/get-font-sized"), import_web = require("@tamagui/web");
26
21
  const variants = {
27
22
  unstyled: {
28
23
  false: {
@@ -31,9 +26,9 @@ const variants = {
31
26
  },
32
27
  size: import_get_font_sized.getFontSized
33
28
  };
34
- variants["fontFamily"] = {
29
+ variants.fontFamily = {
35
30
  "...": (_, extras) => {
36
- const size = extras.props["size"] || "$true";
31
+ const size = extras.props.size || "$true";
37
32
  return (0, import_get_font_sized.getFontSized)(size, extras);
38
33
  }
39
34
  };
@@ -42,7 +37,7 @@ const SizableText = (0, import_web.styled)(import_web.Text, {
42
37
  fontFamily: "$body",
43
38
  variants,
44
39
  defaultVariants: {
45
- unstyled: false
40
+ unstyled: !1
46
41
  }
47
42
  });
48
43
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SizableText.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA6B;AAC7B,iBAAuC;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,MAAM;AACR;AAKA,SAAS,YAAY,IAAI;AAAA,EACvB,OAAO,CAAC,GAAG,WAAW;AACpB,UAAM,OAAO,OAAO,MAAM,MAAM,KAAK;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;AAAA,EACZ;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,IACR;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;AAAA,EACZ;AACF,CAAC;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,48 @@
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");
22
+ const variants = {
23
+ unstyled: {
24
+ false: {
25
+ size: "$true"
26
+ }
27
+ },
28
+ size: import_get_font_sized.getFontSized
29
+ };
30
+ variants.fontFamily = {
31
+ "...": (_, extras) => {
32
+ const size = extras.props.size || "$true";
33
+ return (0, import_get_font_sized.getFontSized)(size, extras);
34
+ }
35
+ };
36
+ const SizableText = (0, import_web.styled)(import_web.Text, {
37
+ name: "SizableText",
38
+ fontFamily: "$body",
39
+ variants,
40
+ defaultVariants: {
41
+ unstyled: !1
42
+ }
43
+ });
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ SizableText
47
+ });
48
+ //# sourceMappingURL=SizableText.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/SizableText.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA6B,oCAC7B,aAAuC;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,IACR;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;AAAA,EACZ;AACF,CAAC;",
5
+ "names": []
6
+ }
package/dist/cjs/index.js CHANGED
@@ -1,18 +1,14 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
6
+ if (from && typeof from == "object" || typeof from == "function")
8
7
  for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
9
  return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
12
  var src_exports = {};
17
13
  module.exports = __toCommonJS(src_exports);
18
14
  __reExport(src_exports, require("./SizableText"), module.exports);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,oBAJd;",
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,oBAJd;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,28 @@
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
+ });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,oBAJd;",
5
+ "names": []
6
+ }
package/dist/cjs/types.js CHANGED
@@ -1,17 +1,14 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
6
+ if (from && typeof from == "object" || typeof from == "function")
8
7
  for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
9
  return to;
13
10
  };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
12
  var types_exports = {};
16
13
  module.exports = __toCommonJS(types_exports);
17
14
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/types.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;",
5
5
  "names": []
6
6
  }
@@ -0,0 +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);
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/types.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
+ "names": []
6
+ }
@@ -1,20 +1,15 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
14
11
  for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
13
  return to;
19
14
  };
20
15
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
@@ -22,20 +17,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
17
  // file that has been converted to a CommonJS file using a Babel-
23
18
  // compatible transform (i.e. "__esModule" has not been set), then set
24
19
  // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
26
21
  mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
29
23
  var wrapChildrenInText_exports = {};
30
24
  __export(wrapChildrenInText_exports, {
31
25
  wrapChildrenInText: () => wrapChildrenInText
32
26
  });
33
27
  module.exports = __toCommonJS(wrapChildrenInText_exports);
34
- var import_jsx_runtime = (
28
+ var import_react = __toESM(require("react")), import_jsx_runtime = (
35
29
  // so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
36
30
  require("react/jsx-runtime")
37
31
  );
38
- var import_react = __toESM(require("react"));
39
32
  function wrapChildrenInText(TextComponent, propsIn, extraProps) {
40
33
  const {
41
34
  children,
@@ -51,33 +44,12 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
51
44
  fontStyle,
52
45
  maxFontSizeMultiplier
53
46
  } = propsIn;
54
- if (noTextWrap || !children) {
47
+ if (noTextWrap || !children)
55
48
  return [children];
56
- }
57
49
  const props = {
58
50
  ...extraProps
59
51
  };
60
- if (color)
61
- props.color = color;
62
- if (fontFamily)
63
- props.fontFamily = fontFamily;
64
- if (fontSize)
65
- props.fontSize = fontSize;
66
- if (fontWeight)
67
- props.fontWeight = fontWeight;
68
- if (letterSpacing)
69
- props.letterSpacing = letterSpacing;
70
- if (textAlign)
71
- props.textAlign = textAlign;
72
- if (size)
73
- props.size = size;
74
- if (fontStyle)
75
- props.fontStyle = fontStyle;
76
- if (maxFontSizeMultiplier)
77
- props.maxFontSizeMultiplier = maxFontSizeMultiplier;
78
- return import_react.default.Children.toArray(children).map((child, index) => {
79
- return typeof child === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child;
80
- });
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);
81
53
  }
82
54
  // Annotate the CommonJS export names for ESM import in node:
83
55
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/wrapChildrenInText.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDM;AAAA;AAAA;AAAA;AArDN,mBAAkB;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,UAAU;AAC3B,WAAO,CAAC,QAAQ;AAAA,EAClB;AAEA,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,MAAI;AAAO,UAAM,QAAQ;AACzB,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAU,UAAM,WAAW;AAC/B,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAe,UAAM,gBAAgB;AACzC,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAM,UAAM,OAAO;AACvB,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAuB,UAAM,wBAAwB;AAEzD,SAAO,aAAAA,QAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAAU;AAC5D,WAAO,OAAO,UAAU,WAEtB,4CAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB,IAEA;AAAA,EAEJ,CAAC;AACH;",
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
5
  "names": ["React"]
6
6
  }
@@ -0,0 +1,59 @@
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
+ );
33
+ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
34
+ const {
35
+ children,
36
+ textProps,
37
+ size,
38
+ noTextWrap,
39
+ color,
40
+ fontFamily,
41
+ fontSize,
42
+ fontWeight,
43
+ letterSpacing,
44
+ textAlign,
45
+ fontStyle,
46
+ maxFontSizeMultiplier
47
+ } = propsIn;
48
+ if (noTextWrap || !children)
49
+ return [children];
50
+ const props = {
51
+ ...extraProps
52
+ };
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);
54
+ }
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ wrapChildrenInText
58
+ });
59
+ //# sourceMappingURL=wrapChildrenInText.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/wrapChildrenInText.tsx"],
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
+ }
@@ -7,33 +7,27 @@ const Heading = styled(Paragraph, {
7
7
  fontFamily: "$heading",
8
8
  size: "$8",
9
9
  margin: 0
10
- });
11
- const H1 = styled(Heading, {
10
+ }), H1 = styled(Heading, {
12
11
  name: "H1",
13
12
  tag: "h1",
14
13
  size: "$10"
15
- });
16
- const H2 = styled(Heading, {
14
+ }), H2 = styled(Heading, {
17
15
  name: "H2",
18
16
  tag: "h2",
19
17
  size: "$9"
20
- });
21
- const H3 = styled(Heading, {
18
+ }), H3 = styled(Heading, {
22
19
  name: "H3",
23
20
  tag: "h3",
24
21
  size: "$8"
25
- });
26
- const H4 = styled(Heading, {
22
+ }), H4 = styled(Heading, {
27
23
  name: "H4",
28
24
  tag: "h4",
29
25
  size: "$7"
30
- });
31
- const H5 = styled(Heading, {
26
+ }), H5 = styled(Heading, {
32
27
  name: "H5",
33
28
  tag: "h5",
34
29
  size: "$6"
35
- });
36
- const H6 = styled(Heading, {
30
+ }), H6 = styled(Heading, {
37
31
  name: "H6",
38
32
  tag: "h6",
39
33
  size: "$5"
@@ -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;AAIM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;",
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;",
5
5
  "names": []
6
6
  }
@@ -8,9 +8,9 @@ const variants = {
8
8
  },
9
9
  size: getFontSized
10
10
  };
11
- variants["fontFamily"] = {
11
+ variants.fontFamily = {
12
12
  "...": (_, extras) => {
13
- const size = extras.props["size"] || "$true";
13
+ const size = extras.props.size || "$true";
14
14
  return getFontSized(size, extras);
15
15
  }
16
16
  };
@@ -19,7 +19,7 @@ const SizableText = styled(Text, {
19
19
  fontFamily: "$body",
20
20
  variants,
21
21
  defaultVariants: {
22
- unstyled: false
22
+ unstyled: !1
23
23
  }
24
24
  });
25
25
  export {
@@ -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,IACR;AAAA,EACF;AAAA,EAEA,MAAM;AACR;AAKA,SAAS,YAAY,IAAI;AAAA,EACvB,OAAO,CAAC,GAAG,WAAW;AACpB,UAAM,OAAO,OAAO,MAAM,MAAM,KAAK;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;AAAA,EACZ;AACF,CAAC;",
4
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,IACR;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;AAAA,EACZ;AACF,CAAC;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,5 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  function wrapChildrenInText(TextComponent, propsIn, extraProps) {
4
4
  const {
5
5
  children,
@@ -15,36 +15,15 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
15
15
  fontStyle,
16
16
  maxFontSizeMultiplier
17
17
  } = propsIn;
18
- if (noTextWrap || !children) {
18
+ if (noTextWrap || !children)
19
19
  return [children];
20
- }
21
20
  const props = {
22
21
  ...extraProps
23
22
  };
24
- if (color)
25
- props.color = color;
26
- if (fontFamily)
27
- props.fontFamily = fontFamily;
28
- if (fontSize)
29
- props.fontSize = fontSize;
30
- if (fontWeight)
31
- props.fontWeight = fontWeight;
32
- if (letterSpacing)
33
- props.letterSpacing = letterSpacing;
34
- if (textAlign)
35
- props.textAlign = textAlign;
36
- if (size)
37
- props.size = size;
38
- if (fontStyle)
39
- props.fontStyle = fontStyle;
40
- if (maxFontSizeMultiplier)
41
- props.maxFontSizeMultiplier = maxFontSizeMultiplier;
42
- return React.Children.toArray(children).map((child, index) => {
43
- return typeof child === "string" ? (
44
- // so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
45
- /* @__PURE__ */ jsx(TextComponent, { ...props, ...textProps, children: child }, index)
46
- ) : child;
47
- });
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);
48
27
  }
49
28
  export {
50
29
  wrapChildrenInText
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/wrapChildrenInText.tsx"],
4
- "mappings": "AAsDM;AArDN,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,UAAU;AAC3B,WAAO,CAAC,QAAQ;AAAA,EAClB;AAEA,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,MAAI;AAAO,UAAM,QAAQ;AACzB,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAU,UAAM,WAAW;AAC/B,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAe,UAAM,gBAAgB;AACzC,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAM,UAAM,OAAO;AACvB,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAuB,UAAM,wBAAwB;AAEzD,SAAO,MAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAAU;AAC5D,WAAO,OAAO,UAAU;AAAA;AAAA,MAEtB,oBAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB;AAAA,QAEA;AAAA,EAEJ,CAAC;AACH;",
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
  }
@@ -7,33 +7,27 @@ const Heading = styled(Paragraph, {
7
7
  fontFamily: "$heading",
8
8
  size: "$8",
9
9
  margin: 0
10
- });
11
- const H1 = styled(Heading, {
10
+ }), H1 = styled(Heading, {
12
11
  name: "H1",
13
12
  tag: "h1",
14
13
  size: "$10"
15
- });
16
- const H2 = styled(Heading, {
14
+ }), H2 = styled(Heading, {
17
15
  name: "H2",
18
16
  tag: "h2",
19
17
  size: "$9"
20
- });
21
- const H3 = styled(Heading, {
18
+ }), H3 = styled(Heading, {
22
19
  name: "H3",
23
20
  tag: "h3",
24
21
  size: "$8"
25
- });
26
- const H4 = styled(Heading, {
22
+ }), H4 = styled(Heading, {
27
23
  name: "H4",
28
24
  tag: "h4",
29
25
  size: "$7"
30
- });
31
- const H5 = styled(Heading, {
26
+ }), H5 = styled(Heading, {
32
27
  name: "H5",
33
28
  tag: "h5",
34
29
  size: "$6"
35
- });
36
- const H6 = styled(Heading, {
30
+ }), H6 = styled(Heading, {
37
31
  name: "H6",
38
32
  tag: "h6",
39
33
  size: "$5"
@@ -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;AAIM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;AAEM,MAAM,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,MAAM;AACR,CAAC;",
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;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,44 @@
1
+ import { styled } from "@tamagui/web";
2
+ import { Paragraph } from "./Paragraph";
3
+ const Heading = styled(Paragraph, {
4
+ tag: "span",
5
+ name: "Heading",
6
+ accessibilityRole: "header",
7
+ fontFamily: "$heading",
8
+ size: "$8",
9
+ margin: 0
10
+ }), H1 = styled(Heading, {
11
+ name: "H1",
12
+ tag: "h1",
13
+ size: "$10"
14
+ }), H2 = styled(Heading, {
15
+ name: "H2",
16
+ tag: "h2",
17
+ size: "$9"
18
+ }), H3 = styled(Heading, {
19
+ name: "H3",
20
+ tag: "h3",
21
+ size: "$8"
22
+ }), H4 = styled(Heading, {
23
+ name: "H4",
24
+ tag: "h4",
25
+ size: "$7"
26
+ }), H5 = styled(Heading, {
27
+ name: "H5",
28
+ tag: "h5",
29
+ size: "$6"
30
+ }), H6 = styled(Heading, {
31
+ name: "H6",
32
+ tag: "h6",
33
+ size: "$5"
34
+ });
35
+ export {
36
+ H1,
37
+ H2,
38
+ H3,
39
+ H4,
40
+ H5,
41
+ H6,
42
+ Heading
43
+ };
44
+ //# sourceMappingURL=Headings.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 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;",
5
+ "names": []
6
+ }
@@ -0,0 +1,13 @@
1
+ import { styled } from "@tamagui/web";
2
+ import { SizableText } from "./SizableText";
3
+ const Paragraph = styled(SizableText, {
4
+ name: "Paragraph",
5
+ tag: "p",
6
+ userSelect: "auto",
7
+ color: "$color",
8
+ size: "$true"
9
+ });
10
+ export {
11
+ Paragraph
12
+ };
13
+ //# sourceMappingURL=Paragraph.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 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;",
5
+ "names": []
6
+ }
@@ -8,9 +8,9 @@ const variants = {
8
8
  },
9
9
  size: getFontSized
10
10
  };
11
- variants["fontFamily"] = {
11
+ variants.fontFamily = {
12
12
  "...": (_, extras) => {
13
- const size = extras.props["size"] || "$true";
13
+ const size = extras.props.size || "$true";
14
14
  return getFontSized(size, extras);
15
15
  }
16
16
  };
@@ -19,7 +19,7 @@ const SizableText = styled(Text, {
19
19
  fontFamily: "$body",
20
20
  variants,
21
21
  defaultVariants: {
22
- unstyled: false
22
+ unstyled: !1
23
23
  }
24
24
  });
25
25
  export {
@@ -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,IACR;AAAA,EACF;AAAA,EAEA,MAAM;AACR;AAKA,SAAS,YAAY,IAAI;AAAA,EACvB,OAAO,CAAC,GAAG,WAAW;AACpB,UAAM,OAAO,OAAO,MAAM,MAAM,KAAK;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;AAAA,EACZ;AACF,CAAC;",
4
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;AAEvC,MAAM,WAAW;AAAA,EACf,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,IACR;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;AAAA,EACZ;AACF,CAAC;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,28 @@
1
+ import { getFontSized } from "@tamagui/get-font-sized";
2
+ import { Text, styled } from "@tamagui/web";
3
+ const variants = {
4
+ unstyled: {
5
+ false: {
6
+ size: "$true"
7
+ }
8
+ },
9
+ size: getFontSized
10
+ };
11
+ variants.fontFamily = {
12
+ "...": (_, extras) => {
13
+ const size = extras.props.size || "$true";
14
+ return getFontSized(size, extras);
15
+ }
16
+ };
17
+ const SizableText = styled(Text, {
18
+ name: "SizableText",
19
+ fontFamily: "$body",
20
+ variants,
21
+ defaultVariants: {
22
+ unstyled: !1
23
+ }
24
+ });
25
+ export {
26
+ SizableText
27
+ };
28
+ //# sourceMappingURL=SizableText.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 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,IACR;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;AAAA,EACZ;AACF,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./SizableText";
2
+ export * from "./Paragraph";
3
+ export * from "./Headings";
4
+ export * from "./wrapChildrenInText";
5
+ export * from "./types";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
+ "names": []
6
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -14,36 +14,15 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
14
14
  fontStyle,
15
15
  maxFontSizeMultiplier
16
16
  } = propsIn;
17
- if (noTextWrap || !children) {
17
+ if (noTextWrap || !children)
18
18
  return [children];
19
- }
20
19
  const props = {
21
20
  ...extraProps
22
21
  };
23
- if (color)
24
- props.color = color;
25
- if (fontFamily)
26
- props.fontFamily = fontFamily;
27
- if (fontSize)
28
- props.fontSize = fontSize;
29
- if (fontWeight)
30
- props.fontWeight = fontWeight;
31
- if (letterSpacing)
32
- props.letterSpacing = letterSpacing;
33
- if (textAlign)
34
- props.textAlign = textAlign;
35
- if (size)
36
- props.size = size;
37
- if (fontStyle)
38
- props.fontStyle = fontStyle;
39
- if (maxFontSizeMultiplier)
40
- props.maxFontSizeMultiplier = maxFontSizeMultiplier;
41
- return React.Children.toArray(children).map((child, index) => {
42
- return typeof child === "string" ? (
43
- // so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
44
- <TextComponent key={index} {...props} {...textProps}>{child}</TextComponent>
45
- ) : child;
46
- });
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);
47
26
  }
48
27
  export {
49
28
  wrapChildrenInText
@@ -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,UAAU;AAC3B,WAAO,CAAC,QAAQ;AAAA,EAClB;AAEA,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,MAAI;AAAO,UAAM,QAAQ;AACzB,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAU,UAAM,WAAW;AAC/B,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAe,UAAM,gBAAgB;AACzC,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAM,UAAM,OAAO;AACvB,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAuB,UAAM,wBAAwB;AAEzD,SAAO,MAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAAU;AAC5D,WAAO,OAAO,UAAU;AAAA;AAAA,MAEtB,CAAC,cAAc,KAAK,WAAW,WAAW,YACvC,MACH,EAFC;AAAA,QAID;AAAA,EAEJ,CAAC;AACH;",
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,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,CAAC,cAAc,KAAK,WAAW,WAAW,YACvC,MACH,EAFC;AAAA,MAID,KAEH;AACH;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
3
+ const {
4
+ children,
5
+ textProps,
6
+ size,
7
+ noTextWrap,
8
+ color,
9
+ fontFamily,
10
+ fontSize,
11
+ fontWeight,
12
+ letterSpacing,
13
+ textAlign,
14
+ fontStyle,
15
+ maxFontSizeMultiplier
16
+ } = propsIn;
17
+ if (noTextWrap || !children)
18
+ return [children];
19
+ const props = {
20
+ ...extraProps
21
+ };
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);
26
+ }
27
+ export {
28
+ wrapChildrenInText
29
+ };
30
+ //# sourceMappingURL=wrapChildrenInText.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 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,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,CAAC,cAAc,KAAK,WAAW,WAAW,YACvC,MACH,EAFC;AAAA,MAID,KAEH;AACH;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/text",
3
- "version": "1.61.3",
3
+ "version": "1.62.1",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,15 +31,15 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/get-font-sized": "1.61.3",
35
- "@tamagui/helpers-tamagui": "1.61.3",
36
- "@tamagui/web": "1.61.3"
34
+ "@tamagui/get-font-sized": "1.62.1",
35
+ "@tamagui/helpers-tamagui": "1.62.1",
36
+ "@tamagui/web": "1.62.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.61.3",
42
+ "@tamagui/build": "1.62.1",
43
43
  "react": "^18.2.0"
44
44
  },
45
45
  "publishConfig": {