@tamagui/text 2.0.0-rc.4 → 2.0.0-rc.40

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 (100) hide show
  1. package/dist/cjs/Emphasis.cjs +22 -20
  2. package/dist/cjs/Emphasis.native.js +24 -22
  3. package/dist/cjs/Emphasis.native.js.map +1 -1
  4. package/dist/cjs/Headings.cjs +93 -91
  5. package/dist/cjs/Headings.native.js +94 -92
  6. package/dist/cjs/Headings.native.js.map +1 -1
  7. package/dist/cjs/Paragraph.cjs +14 -12
  8. package/dist/cjs/Paragraph.native.js +22 -20
  9. package/dist/cjs/Paragraph.native.js.map +1 -1
  10. package/dist/cjs/SizableText.cjs +22 -18
  11. package/dist/cjs/SizableText.native.js +37 -33
  12. package/dist/cjs/SizableText.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +7 -5
  14. package/dist/cjs/index.native.js +7 -5
  15. package/dist/cjs/index.native.js.map +1 -1
  16. package/dist/cjs/types.cjs +7 -5
  17. package/dist/cjs/types.native.js +7 -5
  18. package/dist/cjs/types.native.js.map +1 -1
  19. package/dist/cjs/wrapChildrenInText.cjs +47 -32
  20. package/dist/cjs/wrapChildrenInText.native.js +40 -27
  21. package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
  22. package/dist/esm/Emphasis.mjs +10 -10
  23. package/dist/esm/Emphasis.mjs.map +1 -1
  24. package/dist/esm/Emphasis.native.js +10 -10
  25. package/dist/esm/Emphasis.native.js.map +1 -1
  26. package/dist/esm/Headings.mjs +79 -79
  27. package/dist/esm/Headings.mjs.map +1 -1
  28. package/dist/esm/Headings.native.js +79 -79
  29. package/dist/esm/Headings.native.js.map +1 -1
  30. package/dist/esm/SizableText.mjs +8 -6
  31. package/dist/esm/SizableText.mjs.map +1 -1
  32. package/dist/esm/SizableText.native.js +8 -6
  33. package/dist/esm/SizableText.native.js.map +1 -1
  34. package/dist/esm/index.js +6 -6
  35. package/dist/esm/index.js.map +1 -6
  36. package/dist/esm/wrapChildrenInText.mjs +22 -9
  37. package/dist/esm/wrapChildrenInText.mjs.map +1 -1
  38. package/dist/esm/wrapChildrenInText.native.js +14 -3
  39. package/dist/esm/wrapChildrenInText.native.js.map +1 -1
  40. package/dist/jsx/Emphasis.mjs +10 -10
  41. package/dist/jsx/Emphasis.mjs.map +1 -1
  42. package/dist/jsx/Emphasis.native.js +24 -22
  43. package/dist/jsx/Emphasis.native.js.map +1 -1
  44. package/dist/jsx/Headings.mjs +79 -79
  45. package/dist/jsx/Headings.mjs.map +1 -1
  46. package/dist/jsx/Headings.native.js +94 -92
  47. package/dist/jsx/Headings.native.js.map +1 -1
  48. package/dist/jsx/Paragraph.native.js +22 -20
  49. package/dist/jsx/Paragraph.native.js.map +1 -1
  50. package/dist/jsx/SizableText.mjs +8 -6
  51. package/dist/jsx/SizableText.mjs.map +1 -1
  52. package/dist/jsx/SizableText.native.js +37 -33
  53. package/dist/jsx/SizableText.native.js.map +1 -1
  54. package/dist/jsx/index.js +6 -6
  55. package/dist/jsx/index.js.map +1 -6
  56. package/dist/jsx/index.native.js +7 -5
  57. package/dist/jsx/types.native.js +7 -5
  58. package/dist/jsx/wrapChildrenInText.mjs +22 -9
  59. package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
  60. package/dist/jsx/wrapChildrenInText.native.js +40 -27
  61. package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
  62. package/package.json +8 -11
  63. package/dist/cjs/Emphasis.js +0 -32
  64. package/dist/cjs/Emphasis.js.map +0 -6
  65. package/dist/cjs/Headings.js +0 -113
  66. package/dist/cjs/Headings.js.map +0 -6
  67. package/dist/cjs/Paragraph.js +0 -29
  68. package/dist/cjs/Paragraph.js.map +0 -6
  69. package/dist/cjs/SizableText.js +0 -45
  70. package/dist/cjs/SizableText.js.map +0 -6
  71. package/dist/cjs/index.js +0 -20
  72. package/dist/cjs/index.js.map +0 -6
  73. package/dist/cjs/types.js +0 -14
  74. package/dist/cjs/types.js.map +0 -6
  75. package/dist/cjs/wrapChildrenInText.js +0 -54
  76. package/dist/cjs/wrapChildrenInText.js.map +0 -6
  77. package/dist/esm/Emphasis.js +0 -16
  78. package/dist/esm/Emphasis.js.map +0 -6
  79. package/dist/esm/Headings.js +0 -98
  80. package/dist/esm/Headings.js.map +0 -6
  81. package/dist/esm/Paragraph.js +0 -14
  82. package/dist/esm/Paragraph.js.map +0 -6
  83. package/dist/esm/SizableText.js +0 -30
  84. package/dist/esm/SizableText.js.map +0 -6
  85. package/dist/esm/types.js +0 -1
  86. package/dist/esm/types.js.map +0 -6
  87. package/dist/esm/wrapChildrenInText.js +0 -31
  88. package/dist/esm/wrapChildrenInText.js.map +0 -6
  89. package/dist/jsx/Emphasis.js +0 -16
  90. package/dist/jsx/Emphasis.js.map +0 -6
  91. package/dist/jsx/Headings.js +0 -98
  92. package/dist/jsx/Headings.js.map +0 -6
  93. package/dist/jsx/Paragraph.js +0 -14
  94. package/dist/jsx/Paragraph.js.map +0 -6
  95. package/dist/jsx/SizableText.js +0 -30
  96. package/dist/jsx/SizableText.js.map +0 -6
  97. package/dist/jsx/types.js +0 -1
  98. package/dist/jsx/types.js.map +0 -6
  99. package/dist/jsx/wrapChildrenInText.js +0 -31
  100. package/dist/jsx/wrapChildrenInText.js.map +0 -6
package/dist/cjs/index.js DELETED
@@ -1,20 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var index_exports = {};
13
- module.exports = __toCommonJS(index_exports);
14
- __reExport(index_exports, require("./Emphasis"), module.exports);
15
- __reExport(index_exports, require("./SizableText"), module.exports);
16
- __reExport(index_exports, require("./Paragraph"), module.exports);
17
- __reExport(index_exports, require("./Headings"), module.exports);
18
- __reExport(index_exports, require("./wrapChildrenInText"), module.exports);
19
- __reExport(index_exports, require("./types"), module.exports);
20
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,uBAAd;AACA,0BAAc,0BADd;AAEA,0BAAc,wBAFd;AAGA,0BAAc,uBAHd;AAIA,0BAAc,iCAJd;AAKA,0BAAc,oBALd;",
5
- "names": []
6
- }
package/dist/cjs/types.js DELETED
@@ -1,14 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- };
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var types_exports = {};
13
- module.exports = __toCommonJS(types_exports);
14
- //# sourceMappingURL=types.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/types.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;",
5
- "names": []
6
- }
@@ -1,54 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var wrapChildrenInText_exports = {};
24
- __export(wrapChildrenInText_exports, {
25
- wrapChildrenInText: () => wrapChildrenInText
26
- });
27
- module.exports = __toCommonJS(wrapChildrenInText_exports);
28
- var import_react = __toESM(require("react"), 1), import_jsx_runtime = (
29
- // so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
30
- require("react/jsx-runtime")
31
- );
32
- function wrapChildrenInText(TextComponent, propsIn, extraProps) {
33
- const {
34
- children,
35
- textProps,
36
- size,
37
- noTextWrap,
38
- color,
39
- fontFamily,
40
- fontSize,
41
- fontWeight,
42
- letterSpacing,
43
- textAlign,
44
- fontStyle,
45
- maxFontSizeMultiplier
46
- } = propsIn;
47
- if (noTextWrap || !children)
48
- return [children];
49
- const props = {
50
- ...extraProps
51
- };
52
- return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
53
- }
54
- //# sourceMappingURL=wrapChildrenInText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/wrapChildrenInText.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB,8BAqDZ;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
- }
@@ -1,16 +0,0 @@
1
- import { styled, Text } from "@tamagui/web";
2
- const Strong = styled(Text, {
3
- render: "strong",
4
- fontWeight: "bold"
5
- }), Span = styled(Text, {
6
- render: "span"
7
- }), Em = styled(Text, {
8
- render: "em",
9
- fontStyle: "italic"
10
- });
11
- export {
12
- Em,
13
- Span,
14
- Strong
15
- };
16
- //# sourceMappingURL=Emphasis.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Emphasis.tsx"],
4
- "mappings": "AAAA,SAAS,QAAQ,YAAY;AAEtB,MAAM,SAAS,OAAO,MAAM;AAAA,EACjC,QAAQ;AAAA,EACR,YAAY;AACd,CAAC,GAEY,OAAO,OAAO,MAAM;AAAA,EAC/B,QAAQ;AACV,CAAC,GAEY,KAAK,OAAO,MAAM;AAAA,EAC7B,QAAQ;AAAA,EACR,WAAW;AACb,CAAC;",
5
- "names": []
6
- }
@@ -1,98 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { Paragraph } from "./Paragraph";
3
- const Heading = styled(Paragraph, {
4
- render: "span",
5
- name: "Heading",
6
- role: "heading",
7
- fontFamily: "$heading",
8
- size: "$8",
9
- margin: 0
10
- }), H1 = styled(Heading, {
11
- name: "H1",
12
- render: "h1",
13
- variants: {
14
- unstyled: {
15
- false: {
16
- size: "$10"
17
- }
18
- }
19
- },
20
- defaultVariants: {
21
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
22
- }
23
- }), H2 = styled(Heading, {
24
- name: "H2",
25
- render: "h2",
26
- variants: {
27
- unstyled: {
28
- false: {
29
- size: "$9"
30
- }
31
- }
32
- },
33
- defaultVariants: {
34
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
35
- }
36
- }), H3 = styled(Heading, {
37
- name: "H3",
38
- render: "h3",
39
- variants: {
40
- unstyled: {
41
- false: {
42
- size: "$8"
43
- }
44
- }
45
- },
46
- defaultVariants: {
47
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
48
- }
49
- }), H4 = styled(Heading, {
50
- name: "H4",
51
- render: "h4",
52
- variants: {
53
- unstyled: {
54
- false: {
55
- size: "$7"
56
- }
57
- }
58
- },
59
- defaultVariants: {
60
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
61
- }
62
- }), H5 = styled(Heading, {
63
- name: "H5",
64
- render: "h5",
65
- variants: {
66
- unstyled: {
67
- false: {
68
- size: "$6"
69
- }
70
- }
71
- },
72
- defaultVariants: {
73
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
74
- }
75
- }), H6 = styled(Heading, {
76
- name: "H6",
77
- render: "h6",
78
- variants: {
79
- unstyled: {
80
- false: {
81
- size: "$5"
82
- }
83
- }
84
- },
85
- defaultVariants: {
86
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
87
- }
88
- });
89
- export {
90
- H1,
91
- H2,
92
- H3,
93
- H4,
94
- H5,
95
- H6,
96
- Heading
97
- };
98
- //# sourceMappingURL=Headings.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Headings.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,iBAAiB;AAEnB,MAAM,UAAU,OAAO,WAAW;AAAA,EACvC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
- "names": []
6
- }
@@ -1,14 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { SizableText } from "./SizableText";
3
- const Paragraph = styled(SizableText, {
4
- name: "Paragraph",
5
- render: "p",
6
- userSelect: "auto",
7
- color: "$color",
8
- size: "$true",
9
- whiteSpace: "normal"
10
- });
11
- export {
12
- Paragraph
13
- };
14
- //# sourceMappingURL=Paragraph.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Paragraph.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,mBAAmB;AAErB,MAAM,YAAY,OAAO,aAAa;AAAA,EAC3C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,YAAY;AACd,CAAC;",
5
- "names": []
6
- }
@@ -1,30 +0,0 @@
1
- import { getFontSized } from "@tamagui/get-font-sized";
2
- import { Text, styled } from "@tamagui/web";
3
- const SizableText = styled(Text, {
4
- name: "SizableText",
5
- fontFamily: "$body",
6
- variants: {
7
- unstyled: {
8
- false: {
9
- size: "$true",
10
- color: "$color"
11
- }
12
- },
13
- size: getFontSized
14
- },
15
- defaultVariants: {
16
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
17
- }
18
- });
19
- SizableText.staticConfig.variants.fontFamily = {
20
- "...": (val, extras) => {
21
- if (val === "inherit")
22
- return { fontFamily: "inherit" };
23
- const sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize, size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props.size || "$true";
24
- return getFontSized(size, extras);
25
- }
26
- };
27
- export {
28
- SizableText
29
- };
30
- //# sourceMappingURL=SizableText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/SizableText.tsx"],
4
- "mappings": "AAAA,SAAS,oBAAoB;AAE7B,SAAS,MAAM,cAAc;AAEtB,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;AAID,YAAY,aAAa,SAAU,aAAa;AAAA,EAC9C,OAAO,CAAC,KAAK,WAAW;AAEtB,QAAI,QAAQ;AACV,aAAO,EAAE,YAAY,UAAU;AAGjC,UAAM,WAAW,OAAO,MAAM,MACxB,eAAe,OAAO,MAAM,UAC5B,OACJ,aAAa,WAAW,eACpB,eACA,OAAO,MAAM,QAAW;AAC9B,WAAO,aAAa,MAAM,MAAM;AAAA,EAClC;AACF;",
5
- "names": []
6
- }
package/dist/esm/types.js DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
@@ -1,31 +0,0 @@
1
- import React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- function wrapChildrenInText(TextComponent, propsIn, extraProps) {
4
- const {
5
- children,
6
- textProps,
7
- size,
8
- noTextWrap,
9
- color,
10
- fontFamily,
11
- fontSize,
12
- fontWeight,
13
- letterSpacing,
14
- textAlign,
15
- fontStyle,
16
- maxFontSizeMultiplier
17
- } = propsIn;
18
- if (noTextWrap || !children)
19
- return [children];
20
- const props = {
21
- ...extraProps
22
- };
23
- return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), React.Children.toArray(children).map((child, index) => typeof child == "string" ? (
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);
27
- }
28
- export {
29
- wrapChildrenInText
30
- };
31
- //# sourceMappingURL=wrapChildrenInText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/wrapChildrenInText.tsx"],
4
- "mappings": "AACA,OAAO,WAAW;AAqDZ;AA5CC,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC;AACjB,WAAO,CAAC,QAAQ;AAGlB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,SAAI,UAAO,MAAM,QAAQ,QACrB,eAAY,MAAM,aAAa,aAC/B,aAAU,MAAM,WAAW,WAC3B,eAAY,MAAM,aAAa,aAC/B,kBAAe,MAAM,gBAAgB,gBACrC,cAAW,MAAM,YAAY,YAC7B,SAAM,MAAM,OAAO,OACnB,cAAW,MAAM,YAAY,YAC7B,0BAAuB,MAAM,wBAAwB,wBAElD,MAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAC3C,OAAO,SAAU;AAAA;AAAA,IAEtB,oBAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB;AAAA,MAEA,KAEH;AACH;",
5
- "names": []
6
- }
@@ -1,16 +0,0 @@
1
- import { styled, Text } from "@tamagui/web";
2
- const Strong = styled(Text, {
3
- render: "strong",
4
- fontWeight: "bold"
5
- }), Span = styled(Text, {
6
- render: "span"
7
- }), Em = styled(Text, {
8
- render: "em",
9
- fontStyle: "italic"
10
- });
11
- export {
12
- Em,
13
- Span,
14
- Strong
15
- };
16
- //# sourceMappingURL=Emphasis.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Emphasis.tsx"],
4
- "mappings": "AAAA,SAAS,QAAQ,YAAY;AAEtB,MAAM,SAAS,OAAO,MAAM;AAAA,EACjC,QAAQ;AAAA,EACR,YAAY;AACd,CAAC,GAEY,OAAO,OAAO,MAAM;AAAA,EAC/B,QAAQ;AACV,CAAC,GAEY,KAAK,OAAO,MAAM;AAAA,EAC7B,QAAQ;AAAA,EACR,WAAW;AACb,CAAC;",
5
- "names": []
6
- }
@@ -1,98 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { Paragraph } from "./Paragraph";
3
- const Heading = styled(Paragraph, {
4
- render: "span",
5
- name: "Heading",
6
- role: "heading",
7
- fontFamily: "$heading",
8
- size: "$8",
9
- margin: 0
10
- }), H1 = styled(Heading, {
11
- name: "H1",
12
- render: "h1",
13
- variants: {
14
- unstyled: {
15
- false: {
16
- size: "$10"
17
- }
18
- }
19
- },
20
- defaultVariants: {
21
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
22
- }
23
- }), H2 = styled(Heading, {
24
- name: "H2",
25
- render: "h2",
26
- variants: {
27
- unstyled: {
28
- false: {
29
- size: "$9"
30
- }
31
- }
32
- },
33
- defaultVariants: {
34
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
35
- }
36
- }), H3 = styled(Heading, {
37
- name: "H3",
38
- render: "h3",
39
- variants: {
40
- unstyled: {
41
- false: {
42
- size: "$8"
43
- }
44
- }
45
- },
46
- defaultVariants: {
47
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
48
- }
49
- }), H4 = styled(Heading, {
50
- name: "H4",
51
- render: "h4",
52
- variants: {
53
- unstyled: {
54
- false: {
55
- size: "$7"
56
- }
57
- }
58
- },
59
- defaultVariants: {
60
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
61
- }
62
- }), H5 = styled(Heading, {
63
- name: "H5",
64
- render: "h5",
65
- variants: {
66
- unstyled: {
67
- false: {
68
- size: "$6"
69
- }
70
- }
71
- },
72
- defaultVariants: {
73
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
74
- }
75
- }), H6 = styled(Heading, {
76
- name: "H6",
77
- render: "h6",
78
- variants: {
79
- unstyled: {
80
- false: {
81
- size: "$5"
82
- }
83
- }
84
- },
85
- defaultVariants: {
86
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
87
- }
88
- });
89
- export {
90
- H1,
91
- H2,
92
- H3,
93
- H4,
94
- H5,
95
- H6,
96
- Heading
97
- };
98
- //# sourceMappingURL=Headings.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Headings.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,iBAAiB;AAEnB,MAAM,UAAU,OAAO,WAAW;AAAA,EACvC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAEY,KAAK,OAAO,SAAS;AAAA,EAChC,MAAM;AAAA,EACN,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
- "names": []
6
- }
@@ -1,14 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { SizableText } from "./SizableText";
3
- const Paragraph = styled(SizableText, {
4
- name: "Paragraph",
5
- render: "p",
6
- userSelect: "auto",
7
- color: "$color",
8
- size: "$true",
9
- whiteSpace: "normal"
10
- });
11
- export {
12
- Paragraph
13
- };
14
- //# sourceMappingURL=Paragraph.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Paragraph.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,mBAAmB;AAErB,MAAM,YAAY,OAAO,aAAa;AAAA,EAC3C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,YAAY;AACd,CAAC;",
5
- "names": []
6
- }
@@ -1,30 +0,0 @@
1
- import { getFontSized } from "@tamagui/get-font-sized";
2
- import { Text, styled } from "@tamagui/web";
3
- const SizableText = styled(Text, {
4
- name: "SizableText",
5
- fontFamily: "$body",
6
- variants: {
7
- unstyled: {
8
- false: {
9
- size: "$true",
10
- color: "$color"
11
- }
12
- },
13
- size: getFontSized
14
- },
15
- defaultVariants: {
16
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
17
- }
18
- });
19
- SizableText.staticConfig.variants.fontFamily = {
20
- "...": (val, extras) => {
21
- if (val === "inherit")
22
- return { fontFamily: "inherit" };
23
- const sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize, size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props.size || "$true";
24
- return getFontSized(size, extras);
25
- }
26
- };
27
- export {
28
- SizableText
29
- };
30
- //# sourceMappingURL=SizableText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/SizableText.tsx"],
4
- "mappings": "AAAA,SAAS,oBAAoB;AAE7B,SAAS,MAAM,cAAc;AAEtB,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;AAID,YAAY,aAAa,SAAU,aAAa;AAAA,EAC9C,OAAO,CAAC,KAAK,WAAW;AAEtB,QAAI,QAAQ;AACV,aAAO,EAAE,YAAY,UAAU;AAGjC,UAAM,WAAW,OAAO,MAAM,MACxB,eAAe,OAAO,MAAM,UAC5B,OACJ,aAAa,WAAW,eACpB,eACA,OAAO,MAAM,QAAW;AAC9B,WAAO,aAAa,MAAM,MAAM;AAAA,EAClC;AACF;",
5
- "names": []
6
- }
package/dist/jsx/types.js DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
@@ -1,31 +0,0 @@
1
- import React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- function wrapChildrenInText(TextComponent, propsIn, extraProps) {
4
- const {
5
- children,
6
- textProps,
7
- size,
8
- noTextWrap,
9
- color,
10
- fontFamily,
11
- fontSize,
12
- fontWeight,
13
- letterSpacing,
14
- textAlign,
15
- fontStyle,
16
- maxFontSizeMultiplier
17
- } = propsIn;
18
- if (noTextWrap || !children)
19
- return [children];
20
- const props = {
21
- ...extraProps
22
- };
23
- return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), React.Children.toArray(children).map((child, index) => typeof child == "string" ? (
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);
27
- }
28
- export {
29
- wrapChildrenInText
30
- };
31
- //# sourceMappingURL=wrapChildrenInText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/wrapChildrenInText.tsx"],
4
- "mappings": "AACA,OAAO,WAAW;AAqDZ;AA5CC,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC;AACjB,WAAO,CAAC,QAAQ;AAGlB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,SAAI,UAAO,MAAM,QAAQ,QACrB,eAAY,MAAM,aAAa,aAC/B,aAAU,MAAM,WAAW,WAC3B,eAAY,MAAM,aAAa,aAC/B,kBAAe,MAAM,gBAAgB,gBACrC,cAAW,MAAM,YAAY,YAC7B,SAAM,MAAM,OAAO,OACnB,cAAW,MAAM,YAAY,YAC7B,0BAAuB,MAAM,wBAAwB,wBAElD,MAAM,SAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,UAC3C,OAAO,SAAU;AAAA;AAAA,IAEtB,oBAAC,iBAA2B,GAAG,OAAQ,GAAG,WACvC,mBADiB,KAEpB;AAAA,MAEA,KAEH;AACH;",
5
- "names": []
6
- }