@tamagui/text 2.0.0-rc.3 → 2.0.0-rc.30

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 (42) hide show
  1. package/dist/cjs/index.js +16 -13
  2. package/dist/esm/index.js +6 -6
  3. package/dist/esm/index.js.map +1 -6
  4. package/dist/jsx/index.js +6 -6
  5. package/dist/jsx/index.js.map +1 -6
  6. package/package.json +8 -11
  7. package/dist/cjs/Emphasis.js +0 -32
  8. package/dist/cjs/Emphasis.js.map +0 -6
  9. package/dist/cjs/Headings.js +0 -113
  10. package/dist/cjs/Headings.js.map +0 -6
  11. package/dist/cjs/Paragraph.js +0 -29
  12. package/dist/cjs/Paragraph.js.map +0 -6
  13. package/dist/cjs/SizableText.js +0 -45
  14. package/dist/cjs/SizableText.js.map +0 -6
  15. package/dist/cjs/types.js +0 -14
  16. package/dist/cjs/types.js.map +0 -6
  17. package/dist/cjs/wrapChildrenInText.js +0 -54
  18. package/dist/cjs/wrapChildrenInText.js.map +0 -6
  19. package/dist/esm/Emphasis.js +0 -16
  20. package/dist/esm/Emphasis.js.map +0 -6
  21. package/dist/esm/Headings.js +0 -98
  22. package/dist/esm/Headings.js.map +0 -6
  23. package/dist/esm/Paragraph.js +0 -14
  24. package/dist/esm/Paragraph.js.map +0 -6
  25. package/dist/esm/SizableText.js +0 -30
  26. package/dist/esm/SizableText.js.map +0 -6
  27. package/dist/esm/types.js +0 -1
  28. package/dist/esm/types.js.map +0 -6
  29. package/dist/esm/wrapChildrenInText.js +0 -31
  30. package/dist/esm/wrapChildrenInText.js.map +0 -6
  31. package/dist/jsx/Emphasis.js +0 -16
  32. package/dist/jsx/Emphasis.js.map +0 -6
  33. package/dist/jsx/Headings.js +0 -98
  34. package/dist/jsx/Headings.js.map +0 -6
  35. package/dist/jsx/Paragraph.js +0 -14
  36. package/dist/jsx/Paragraph.js.map +0 -6
  37. package/dist/jsx/SizableText.js +0 -30
  38. package/dist/jsx/SizableText.js.map +0 -6
  39. package/dist/jsx/types.js +0 -1
  40. package/dist/jsx/types.js.map +0 -6
  41. package/dist/jsx/wrapChildrenInText.js +0 -31
  42. package/dist/jsx/wrapChildrenInText.js.map +0 -6
package/dist/cjs/index.js CHANGED
@@ -3,18 +3,21 @@ 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))
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);
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
12
16
  var index_exports = {};
13
17
  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
18
+ __reExport(index_exports, require("./Emphasis.cjs"), module.exports);
19
+ __reExport(index_exports, require("./SizableText.cjs"), module.exports);
20
+ __reExport(index_exports, require("./Paragraph.cjs"), module.exports);
21
+ __reExport(index_exports, require("./Headings.cjs"), module.exports);
22
+ __reExport(index_exports, require("./wrapChildrenInText.cjs"), module.exports);
23
+ __reExport(index_exports, require("./types.cjs"), module.exports);
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./Emphasis";
2
- export * from "./SizableText";
3
- export * from "./Paragraph";
4
- export * from "./Headings";
5
- export * from "./wrapChildrenInText";
6
- export * from "./types";
1
+ export * from "./Emphasis.mjs";
2
+ export * from "./SizableText.mjs";
3
+ export * from "./Paragraph.mjs";
4
+ export * from "./Headings.mjs";
5
+ export * from "./wrapChildrenInText.mjs";
6
+ export * from "./types.mjs";
7
7
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
package/dist/jsx/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./Emphasis";
2
- export * from "./SizableText";
3
- export * from "./Paragraph";
4
- export * from "./Headings";
5
- export * from "./wrapChildrenInText";
6
- export * from "./types";
1
+ export * from "./Emphasis.mjs";
2
+ export * from "./SizableText.mjs";
3
+ export * from "./Paragraph.mjs";
4
+ export * from "./Headings.mjs";
5
+ export * from "./wrapChildrenInText.mjs";
6
+ export * from "./types.mjs";
7
7
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/text",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0-rc.30",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.tsx",
6
6
  "files": [
@@ -19,15 +19,12 @@
19
19
  "./package.json": "./package.json",
20
20
  ".": {
21
21
  "types": "./types/index.d.ts",
22
- "react-native": {
23
- "module": "./dist/esm/index.native.js",
24
- "import": "./dist/esm/index.native.js",
25
- "require": "./dist/cjs/index.native.js"
26
- },
22
+ "react-native": "./dist/esm/index.native.js",
23
+ "browser": "./dist/esm/index.mjs",
27
24
  "module": "./dist/esm/index.mjs",
28
25
  "import": "./dist/esm/index.mjs",
29
26
  "require": "./dist/cjs/index.cjs",
30
- "default": "./dist/cjs/index.native.js"
27
+ "default": "./dist/esm/index.mjs"
31
28
  }
32
29
  },
33
30
  "publishConfig": {
@@ -40,12 +37,12 @@
40
37
  "clean:build": "tamagui-build clean:build"
41
38
  },
42
39
  "dependencies": {
43
- "@tamagui/get-font-sized": "2.0.0-rc.3",
44
- "@tamagui/helpers-tamagui": "2.0.0-rc.3",
45
- "@tamagui/web": "2.0.0-rc.3"
40
+ "@tamagui/get-font-sized": "2.0.0-rc.30",
41
+ "@tamagui/helpers-tamagui": "2.0.0-rc.30",
42
+ "@tamagui/web": "2.0.0-rc.30"
46
43
  },
47
44
  "devDependencies": {
48
- "@tamagui/build": "2.0.0-rc.3",
45
+ "@tamagui/build": "2.0.0-rc.30",
49
46
  "react": ">=19"
50
47
  },
51
48
  "peerDependencies": {
@@ -1,32 +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 __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Emphasis_exports = {};
16
- __export(Emphasis_exports, {
17
- Em: () => Em,
18
- Span: () => Span,
19
- Strong: () => Strong
20
- });
21
- module.exports = __toCommonJS(Emphasis_exports);
22
- var import_web = require("@tamagui/web");
23
- const Strong = (0, import_web.styled)(import_web.Text, {
24
- render: "strong",
25
- fontWeight: "bold"
26
- }), Span = (0, import_web.styled)(import_web.Text, {
27
- render: "span"
28
- }), Em = (0, import_web.styled)(import_web.Text, {
29
- render: "em",
30
- fontStyle: "italic"
31
- });
32
- //# sourceMappingURL=Emphasis.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Emphasis.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA6B;AAEtB,MAAM,aAAS,mBAAO,iBAAM;AAAA,EACjC,QAAQ;AAAA,EACR,YAAY;AACd,CAAC,GAEY,WAAO,mBAAO,iBAAM;AAAA,EAC/B,QAAQ;AACV,CAAC,GAEY,SAAK,mBAAO,iBAAM;AAAA,EAC7B,QAAQ;AAAA,EACR,WAAW;AACb,CAAC;",
5
- "names": []
6
- }
@@ -1,113 +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 __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Headings_exports = {};
16
- __export(Headings_exports, {
17
- H1: () => H1,
18
- H2: () => H2,
19
- H3: () => H3,
20
- H4: () => H4,
21
- H5: () => H5,
22
- H6: () => H6,
23
- Heading: () => Heading
24
- });
25
- module.exports = __toCommonJS(Headings_exports);
26
- var import_web = require("@tamagui/web"), import_Paragraph = require("./Paragraph");
27
- const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
28
- render: "span",
29
- name: "Heading",
30
- role: "heading",
31
- fontFamily: "$heading",
32
- size: "$8",
33
- margin: 0
34
- }), H1 = (0, import_web.styled)(Heading, {
35
- name: "H1",
36
- render: "h1",
37
- variants: {
38
- unstyled: {
39
- false: {
40
- size: "$10"
41
- }
42
- }
43
- },
44
- defaultVariants: {
45
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
46
- }
47
- }), H2 = (0, import_web.styled)(Heading, {
48
- name: "H2",
49
- render: "h2",
50
- variants: {
51
- unstyled: {
52
- false: {
53
- size: "$9"
54
- }
55
- }
56
- },
57
- defaultVariants: {
58
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
59
- }
60
- }), H3 = (0, import_web.styled)(Heading, {
61
- name: "H3",
62
- render: "h3",
63
- variants: {
64
- unstyled: {
65
- false: {
66
- size: "$8"
67
- }
68
- }
69
- },
70
- defaultVariants: {
71
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
72
- }
73
- }), H4 = (0, import_web.styled)(Heading, {
74
- name: "H4",
75
- render: "h4",
76
- variants: {
77
- unstyled: {
78
- false: {
79
- size: "$7"
80
- }
81
- }
82
- },
83
- defaultVariants: {
84
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
85
- }
86
- }), H5 = (0, import_web.styled)(Heading, {
87
- name: "H5",
88
- render: "h5",
89
- variants: {
90
- unstyled: {
91
- false: {
92
- size: "$6"
93
- }
94
- }
95
- },
96
- defaultVariants: {
97
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
98
- }
99
- }), H6 = (0, import_web.styled)(Heading, {
100
- name: "H6",
101
- render: "h6",
102
- variants: {
103
- unstyled: {
104
- false: {
105
- size: "$5"
106
- }
107
- }
108
- },
109
- defaultVariants: {
110
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
111
- }
112
- });
113
- //# sourceMappingURL=Headings.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Headings.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAAuB,yBAEvB,mBAA0B;AAEnB,MAAM,cAAU,mBAAO,4BAAW;AAAA,EACvC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAIY,SAAK,mBAAO,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,SAAK,mBAAO,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,SAAK,mBAAO,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,SAAK,mBAAO,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,SAAK,mBAAO,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,SAAK,mBAAO,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,29 +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 __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Paragraph_exports = {};
16
- __export(Paragraph_exports, {
17
- Paragraph: () => Paragraph
18
- });
19
- module.exports = __toCommonJS(Paragraph_exports);
20
- var import_web = require("@tamagui/web"), import_SizableText = require("./SizableText");
21
- const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
22
- name: "Paragraph",
23
- render: "p",
24
- userSelect: "auto",
25
- color: "$color",
26
- size: "$true",
27
- whiteSpace: "normal"
28
- });
29
- //# sourceMappingURL=Paragraph.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Paragraph.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAAuB,yBAEvB,qBAA4B;AAErB,MAAM,gBAAY,mBAAO,gCAAa;AAAA,EAC3C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,YAAY;AACd,CAAC;",
5
- "names": []
6
- }
@@ -1,45 +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 __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var SizableText_exports = {};
16
- __export(SizableText_exports, {
17
- SizableText: () => SizableText
18
- });
19
- module.exports = __toCommonJS(SizableText_exports);
20
- var import_get_font_sized = require("@tamagui/get-font-sized"), import_web = require("@tamagui/web");
21
- const SizableText = (0, import_web.styled)(import_web.Text, {
22
- name: "SizableText",
23
- fontFamily: "$body",
24
- variants: {
25
- unstyled: {
26
- false: {
27
- size: "$true",
28
- color: "$color"
29
- }
30
- },
31
- size: import_get_font_sized.getFontSized
32
- },
33
- defaultVariants: {
34
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
35
- }
36
- });
37
- SizableText.staticConfig.variants.fontFamily = {
38
- "...": (val, extras) => {
39
- if (val === "inherit")
40
- return { fontFamily: "inherit" };
41
- const sizeProp = extras.props.size, fontSizeProp = extras.props.fontSize, size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props.size || "$true";
42
- return (0, import_get_font_sized.getFontSized)(size, extras);
43
- }
44
- };
45
- //# sourceMappingURL=SizableText.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/SizableText.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA6B,oCAE7B,aAA6B;AAEtB,MAAM,kBAAc,mBAAO,iBAAM;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,eAAO,oCAAa,MAAM,MAAM;AAAA,EAClC;AACF;",
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
- }