@hanzogui/text 7.0.0 → 7.3.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 (97) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/Emphasis.cjs +41 -0
  3. package/dist/cjs/Emphasis.native.js +44 -0
  4. package/dist/cjs/Emphasis.native.js.map +1 -0
  5. package/dist/cjs/Headings.cjs +127 -0
  6. package/dist/cjs/Headings.native.js +130 -0
  7. package/dist/cjs/Headings.native.js.map +1 -0
  8. package/dist/cjs/Paragraph.cjs +37 -0
  9. package/dist/cjs/Paragraph.native.js +40 -0
  10. package/dist/cjs/Paragraph.native.js.map +1 -0
  11. package/dist/cjs/SizableText.cjs +58 -0
  12. package/dist/cjs/SizableText.native.js +61 -0
  13. package/dist/cjs/SizableText.native.js.map +1 -0
  14. package/dist/cjs/index.cjs +25 -0
  15. package/dist/cjs/index.native.js +28 -0
  16. package/dist/cjs/index.native.js.map +1 -0
  17. package/dist/cjs/types.cjs +18 -0
  18. package/dist/cjs/types.native.js +21 -0
  19. package/dist/cjs/types.native.js.map +1 -0
  20. package/dist/cjs/wrapChildrenInText.cjs +80 -0
  21. package/dist/cjs/wrapChildrenInText.native.js +84 -0
  22. package/dist/cjs/wrapChildrenInText.native.js.map +1 -0
  23. package/dist/esm/Emphasis.mjs +14 -0
  24. package/dist/esm/Emphasis.mjs.map +1 -0
  25. package/dist/esm/Emphasis.native.js +14 -0
  26. package/dist/esm/Emphasis.native.js.map +1 -0
  27. package/dist/esm/Headings.mjs +96 -0
  28. package/dist/esm/Headings.mjs.map +1 -0
  29. package/dist/esm/Headings.native.js +96 -0
  30. package/dist/esm/Headings.native.js.map +1 -0
  31. package/dist/esm/Paragraph.mjs +12 -0
  32. package/dist/esm/Paragraph.mjs.map +1 -0
  33. package/dist/esm/Paragraph.native.js +12 -0
  34. package/dist/esm/Paragraph.native.js.map +1 -0
  35. package/dist/esm/SizableText.mjs +33 -0
  36. package/dist/esm/SizableText.mjs.map +1 -0
  37. package/dist/esm/SizableText.native.js +33 -0
  38. package/dist/esm/SizableText.native.js.map +1 -0
  39. package/dist/esm/index.js +7 -0
  40. package/dist/esm/index.js.map +1 -0
  41. package/dist/esm/index.mjs +7 -0
  42. package/dist/esm/index.mjs.map +1 -0
  43. package/dist/esm/index.native.js +7 -0
  44. package/dist/esm/index.native.js.map +1 -0
  45. package/dist/esm/types.mjs +2 -0
  46. package/dist/esm/types.mjs.map +1 -0
  47. package/dist/esm/types.native.js +2 -0
  48. package/dist/esm/types.native.js.map +1 -0
  49. package/dist/esm/wrapChildrenInText.mjs +45 -0
  50. package/dist/esm/wrapChildrenInText.mjs.map +1 -0
  51. package/dist/esm/wrapChildrenInText.native.js +45 -0
  52. package/dist/esm/wrapChildrenInText.native.js.map +1 -0
  53. package/dist/jsx/Emphasis.mjs +14 -0
  54. package/dist/jsx/Emphasis.mjs.map +1 -0
  55. package/dist/jsx/Emphasis.native.js +44 -0
  56. package/dist/jsx/Emphasis.native.js.map +1 -0
  57. package/dist/jsx/Headings.mjs +96 -0
  58. package/dist/jsx/Headings.mjs.map +1 -0
  59. package/dist/jsx/Headings.native.js +130 -0
  60. package/dist/jsx/Headings.native.js.map +1 -0
  61. package/dist/jsx/Paragraph.mjs +12 -0
  62. package/dist/jsx/Paragraph.mjs.map +1 -0
  63. package/dist/jsx/Paragraph.native.js +40 -0
  64. package/dist/jsx/Paragraph.native.js.map +1 -0
  65. package/dist/jsx/SizableText.mjs +33 -0
  66. package/dist/jsx/SizableText.mjs.map +1 -0
  67. package/dist/jsx/SizableText.native.js +61 -0
  68. package/dist/jsx/SizableText.native.js.map +1 -0
  69. package/dist/jsx/index.js +7 -0
  70. package/dist/jsx/index.js.map +1 -0
  71. package/dist/jsx/index.mjs +7 -0
  72. package/dist/jsx/index.mjs.map +1 -0
  73. package/dist/jsx/index.native.js +28 -0
  74. package/dist/jsx/index.native.js.map +1 -0
  75. package/dist/jsx/types.mjs +2 -0
  76. package/dist/jsx/types.mjs.map +1 -0
  77. package/dist/jsx/types.native.js +21 -0
  78. package/dist/jsx/types.native.js.map +1 -0
  79. package/dist/jsx/wrapChildrenInText.mjs +45 -0
  80. package/dist/jsx/wrapChildrenInText.mjs.map +1 -0
  81. package/dist/jsx/wrapChildrenInText.native.js +84 -0
  82. package/dist/jsx/wrapChildrenInText.native.js.map +1 -0
  83. package/package.json +13 -11
  84. package/src/Headings.tsx +6 -6
  85. package/src/SizableText.tsx +1 -1
  86. package/types/Emphasis.d.ts +3 -3
  87. package/types/Emphasis.d.ts.map +1 -0
  88. package/types/Headings.d.ts +7 -7
  89. package/types/Headings.d.ts.map +1 -0
  90. package/types/Paragraph.d.ts +1 -1
  91. package/types/Paragraph.d.ts.map +1 -0
  92. package/types/SizableText.d.ts +1 -1
  93. package/types/SizableText.d.ts.map +1 -0
  94. package/types/index.d.ts.map +1 -0
  95. package/types/types.d.ts.map +1 -0
  96. package/types/wrapChildrenInText.d.ts +1 -1
  97. package/types/wrapChildrenInText.d.ts.map +1 -0
package/LICENSE CHANGED
@@ -1,21 +1,42 @@
1
- MIT License
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026-present, Hanzo AI, Inc.
4
+
5
+ Portions of this software are derived from upstream code originally licensed under
6
+ the MIT License, with the following copyright notices retained per its terms:
2
7
 
3
8
  Copyright (c) 2020 Nate Wienert
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ Copyright (c) 2015-present, Nicolas Gallagher.
10
+ Copyright (c) 2015-present, Facebook, Inc.
11
+ Copyright (c) 2021 Radix
12
+ Copyright (c) 2017 Carmelo Pullara
13
+ Copyright (c) 2018 Framer B.V.
14
+ Copyright (c) 2022 WorkOS
15
+
16
+ All rights reserved.
17
+
18
+ Redistribution and use in source and binary forms, with or without
19
+ modification, are permitted provided that the following conditions are met:
20
+
21
+ 1. Redistributions of source code must retain the above copyright notice, this
22
+ list of conditions and the following disclaimer.
23
+
24
+ 2. Redistributions in binary form must reproduce the above copyright notice,
25
+ this list of conditions and the following disclaimer in the documentation
26
+ and/or other materials provided with the distribution.
27
+
28
+ 3. Neither the name of the copyright holder nor the names of its contributors
29
+ may be used to endorse or promote products derived from this software
30
+ without specific prior written permission.
31
+
32
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
+ POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,41 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var Emphasis_exports = {};
24
+ __export(Emphasis_exports, {
25
+ Em: () => Em,
26
+ Span: () => Span,
27
+ Strong: () => Strong
28
+ });
29
+ module.exports = __toCommonJS(Emphasis_exports);
30
+ var import_web = require("@hanzogui/web");
31
+ const Strong = (0, import_web.styled)(import_web.Text, {
32
+ render: "strong",
33
+ fontWeight: "bold"
34
+ });
35
+ const Span = (0, import_web.styled)(import_web.Text, {
36
+ render: "span"
37
+ });
38
+ const Em = (0, import_web.styled)(import_web.Text, {
39
+ render: "em",
40
+ fontStyle: "italic"
41
+ });
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var Emphasis_exports = {};
26
+ __export(Emphasis_exports, {
27
+ Em: () => Em,
28
+ Span: () => Span,
29
+ Strong: () => Strong
30
+ });
31
+ module.exports = __toCommonJS(Emphasis_exports);
32
+ var import_web = require("@hanzogui/web");
33
+ var Strong = (0, import_web.styled)(import_web.Text, {
34
+ render: "strong",
35
+ fontWeight: "bold"
36
+ });
37
+ var Span = (0, import_web.styled)(import_web.Text, {
38
+ render: "span"
39
+ });
40
+ var Em = (0, import_web.styled)(import_web.Text, {
41
+ render: "em",
42
+ fontStyle: "italic"
43
+ });
44
+ //# sourceMappingURL=Emphasis.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Emphasis_exports","__export","Em","Span","Strong","module","exports","import_web","require","styled","Text","render","fontWeight","fontStyle"],"sources":["../../src/Emphasis.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAA6BX,YAAA,CAAAK,gBAAA;AAEtB,IAAAO,UAAM,GAAAC,OAAS,gBAAO;AAAM,IACjCJ,MAAQ,OAAAG,UAAA,CAAAE,MAAA,EAAAF,UAAA,CAAAG,IAAA;EACRC,MAAA,UAAY;EACbC,UAAA;AAEM;AAA0B,IAC/BT,IAAA,GAAQ,IAAAI,UAAA,CAAAE,MAAA,EAAAF,UAAA,CAAAG,IAAA;EACTC,MAAA;AAEM;AAAwB,IAC7BT,EAAA,IAAQ,GAAAK,UAAA,CAAAE,MAAA,EAAAF,UAAA,CAAAG,IAAA;EACRC,MAAA,MAAW;EACZE,SAAA","ignoreList":[]}
@@ -0,0 +1,127 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var Headings_exports = {};
24
+ __export(Headings_exports, {
25
+ H1: () => H1,
26
+ H2: () => H2,
27
+ H3: () => H3,
28
+ H4: () => H4,
29
+ H5: () => H5,
30
+ H6: () => H6,
31
+ Heading: () => Heading
32
+ });
33
+ module.exports = __toCommonJS(Headings_exports);
34
+ var import_web = require("@hanzogui/web");
35
+ var import_Paragraph = require("./Paragraph.cjs");
36
+ const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
37
+ render: "span",
38
+ name: "Heading",
39
+ role: "heading",
40
+ fontFamily: "$heading",
41
+ size: "$8",
42
+ margin: 0
43
+ });
44
+ const H1 = (0, import_web.styled)(Heading, {
45
+ name: "H1",
46
+ render: "h1",
47
+ variants: {
48
+ unstyled: {
49
+ false: {
50
+ size: "$10"
51
+ }
52
+ }
53
+ },
54
+ defaultVariants: {
55
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
56
+ }
57
+ });
58
+ const H2 = (0, import_web.styled)(Heading, {
59
+ name: "H2",
60
+ render: "h2",
61
+ variants: {
62
+ unstyled: {
63
+ false: {
64
+ size: "$9"
65
+ }
66
+ }
67
+ },
68
+ defaultVariants: {
69
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
70
+ }
71
+ });
72
+ const H3 = (0, import_web.styled)(Heading, {
73
+ name: "H3",
74
+ render: "h3",
75
+ variants: {
76
+ unstyled: {
77
+ false: {
78
+ size: "$8"
79
+ }
80
+ }
81
+ },
82
+ defaultVariants: {
83
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
84
+ }
85
+ });
86
+ const H4 = (0, import_web.styled)(Heading, {
87
+ name: "H4",
88
+ render: "h4",
89
+ variants: {
90
+ unstyled: {
91
+ false: {
92
+ size: "$7"
93
+ }
94
+ }
95
+ },
96
+ defaultVariants: {
97
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
98
+ }
99
+ });
100
+ const H5 = (0, import_web.styled)(Heading, {
101
+ name: "H5",
102
+ render: "h5",
103
+ variants: {
104
+ unstyled: {
105
+ false: {
106
+ size: "$6"
107
+ }
108
+ }
109
+ },
110
+ defaultVariants: {
111
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
112
+ }
113
+ });
114
+ const H6 = (0, import_web.styled)(Heading, {
115
+ name: "H6",
116
+ render: "h6",
117
+ variants: {
118
+ unstyled: {
119
+ false: {
120
+ size: "$5"
121
+ }
122
+ }
123
+ },
124
+ defaultVariants: {
125
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
126
+ }
127
+ });
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var Headings_exports = {};
26
+ __export(Headings_exports, {
27
+ H1: () => H1,
28
+ H2: () => H2,
29
+ H3: () => H3,
30
+ H4: () => H4,
31
+ H5: () => H5,
32
+ H6: () => H6,
33
+ Heading: () => Heading
34
+ });
35
+ module.exports = __toCommonJS(Headings_exports);
36
+ var import_web = require("@hanzogui/web");
37
+ var import_Paragraph = require("./Paragraph.native.js");
38
+ var Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
39
+ render: "span",
40
+ name: "Heading",
41
+ role: "heading",
42
+ fontFamily: "$heading",
43
+ size: "$8",
44
+ margin: 0
45
+ });
46
+ var H1 = (0, import_web.styled)(Heading, {
47
+ name: "H1",
48
+ render: "h1",
49
+ variants: {
50
+ unstyled: {
51
+ false: {
52
+ size: "$10"
53
+ }
54
+ }
55
+ },
56
+ defaultVariants: {
57
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
58
+ }
59
+ });
60
+ var H2 = (0, import_web.styled)(Heading, {
61
+ name: "H2",
62
+ render: "h2",
63
+ variants: {
64
+ unstyled: {
65
+ false: {
66
+ size: "$9"
67
+ }
68
+ }
69
+ },
70
+ defaultVariants: {
71
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
72
+ }
73
+ });
74
+ var H3 = (0, import_web.styled)(Heading, {
75
+ name: "H3",
76
+ render: "h3",
77
+ variants: {
78
+ unstyled: {
79
+ false: {
80
+ size: "$8"
81
+ }
82
+ }
83
+ },
84
+ defaultVariants: {
85
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
86
+ }
87
+ });
88
+ var H4 = (0, import_web.styled)(Heading, {
89
+ name: "H4",
90
+ render: "h4",
91
+ variants: {
92
+ unstyled: {
93
+ false: {
94
+ size: "$7"
95
+ }
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
100
+ }
101
+ });
102
+ var H5 = (0, import_web.styled)(Heading, {
103
+ name: "H5",
104
+ render: "h5",
105
+ variants: {
106
+ unstyled: {
107
+ false: {
108
+ size: "$6"
109
+ }
110
+ }
111
+ },
112
+ defaultVariants: {
113
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
114
+ }
115
+ });
116
+ var H6 = (0, import_web.styled)(Heading, {
117
+ name: "H6",
118
+ render: "h6",
119
+ variants: {
120
+ unstyled: {
121
+ false: {
122
+ size: "$5"
123
+ }
124
+ }
125
+ },
126
+ defaultVariants: {
127
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
128
+ }
129
+ });
130
+ //# sourceMappingURL=Headings.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Headings_exports","__export","H1","H2","H3","H4","H5","H6","Heading","module","exports","import_web","require","import_Paragraph","styled","Paragraph","render","name","role","fontFamily","size","margin","variants","unstyled","false","defaultVariants","process","env","GUI_HEADLESS"],"sources":["../../src/Headings.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,EAAA,EAAAA,CAAA,KAAAA,EAAA;EAAAC,OAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAuBf,YAAA,CAAAK,gBAAA;AAEvB,IAAAW,UAAA,GAAAC,OAA0B;AAEnB,IAAAC,gBAAgB,GAAAD,OAAA,wBAAO;AAAW,IACvCJ,OAAQ,OAAAG,UAAA,CAAAG,MAAA,EAAAD,gBAAA,CAAAE,SAAA;EACRC,MAAM;EACNC,IAAA,EAAM;EACNC,IAAA,WAAY;EACZC,UAAM;EACNC,IAAA,MAAQ;EACTC,MAAA;AAIM;AAA2B,IAChCnB,EAAA,GAAM,IAAAS,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAEM;AAA2B,IAChCzB,EAAA,GAAM,IAAAQ,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAEM;AAA2B,IAChCxB,EAAA,GAAM,IAAAO,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAEM;AAA2B,IAChCvB,EAAA,GAAM,IAAAM,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAEM;AAA2B,IAChCtB,EAAA,GAAM,IAAAK,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAEM;AAA2B,IAChCrB,EAAA,GAAM,IAAAI,UAAA,CAAAG,MAAA,EAAAN,OAAA;EACNS,IAAA,MAAQ;EAERD,MAAA,MAAU;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFJ,IAAA;MACF;IACF;EAEA;EAAiBK,eACL;IACZF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD","ignoreList":[]}
@@ -0,0 +1,37 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var Paragraph_exports = {};
24
+ __export(Paragraph_exports, {
25
+ Paragraph: () => Paragraph
26
+ });
27
+ module.exports = __toCommonJS(Paragraph_exports);
28
+ var import_web = require("@hanzogui/web");
29
+ var import_SizableText = require("./SizableText.cjs");
30
+ const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
31
+ name: "Paragraph",
32
+ render: "p",
33
+ userSelect: "auto",
34
+ color: "$color",
35
+ size: "$true",
36
+ whiteSpace: "normal"
37
+ });
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var Paragraph_exports = {};
26
+ __export(Paragraph_exports, {
27
+ Paragraph: () => Paragraph
28
+ });
29
+ module.exports = __toCommonJS(Paragraph_exports);
30
+ var import_web = require("@hanzogui/web");
31
+ var import_SizableText = require("./SizableText.native.js");
32
+ var Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
33
+ name: "Paragraph",
34
+ render: "p",
35
+ userSelect: "auto",
36
+ color: "$color",
37
+ size: "$true",
38
+ whiteSpace: "normal"
39
+ });
40
+ //# sourceMappingURL=Paragraph.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Paragraph_exports","__export","Paragraph","module","exports","import_web","require","import_SizableText","styled","SizableText","name","render","userSelect","color","size","whiteSpace"],"sources":["../../src/Paragraph.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,iBAAA;AAEvB,IAAAK,UAAA,GAAAC,OAAA,CAA4B;AAErB,IAAAC,kBAAkB,GAAAD,OAAA,0BAAO;AAAa,IAC3CJ,SAAM,OAAAG,UAAA,CAAAG,MAAA,EAAAD,kBAAA,CAAAE,WAAA;EACNC,IAAA,aAAQ;EACRC,MAAA;EACAC,UAAO;EACPC,KAAA,EAAM;EACNC,IAAA,SAAY;EACbC,UAAA","ignoreList":[]}
@@ -0,0 +1,58 @@
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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var SizableText_exports = {};
24
+ __export(SizableText_exports, {
25
+ SizableText: () => SizableText
26
+ });
27
+ module.exports = __toCommonJS(SizableText_exports);
28
+ var import_get_font_sized = require("@hanzogui/get-font-sized");
29
+ var import_web = require("@hanzogui/web");
30
+ const SizableText = (0, import_web.styled)(import_web.Text, {
31
+ name: "SizableText",
32
+ fontFamily: "$body",
33
+ variants: {
34
+ unstyled: {
35
+ false: {
36
+ size: "$true",
37
+ color: "$color"
38
+ }
39
+ },
40
+ size: import_get_font_sized.getFontSized
41
+ },
42
+ defaultVariants: {
43
+ unstyled: process.env.GUI_HEADLESS === "1"
44
+ }
45
+ });
46
+ SizableText.staticConfig.variants.fontFamily = {
47
+ "...": (val, extras) => {
48
+ if (val === "inherit") {
49
+ return {
50
+ fontFamily: "inherit"
51
+ };
52
+ }
53
+ const sizeProp = extras.props["size"];
54
+ const fontSizeProp = extras.props["fontSize"];
55
+ const size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props["size"] || "$true";
56
+ return (0, import_get_font_sized.getFontSized)(size, extras);
57
+ }
58
+ };
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var SizableText_exports = {};
26
+ __export(SizableText_exports, {
27
+ SizableText: () => SizableText
28
+ });
29
+ module.exports = __toCommonJS(SizableText_exports);
30
+ var import_get_font_sized = require("@hanzogui/get-font-sized");
31
+ var import_web = require("@hanzogui/web");
32
+ var SizableText = (0, import_web.styled)(import_web.Text, {
33
+ name: "SizableText",
34
+ fontFamily: "$body",
35
+ variants: {
36
+ unstyled: {
37
+ false: {
38
+ size: "$true",
39
+ color: "$color"
40
+ }
41
+ },
42
+ size: import_get_font_sized.getFontSized
43
+ },
44
+ defaultVariants: {
45
+ unstyled: process.env.GUI_HEADLESS === "1"
46
+ }
47
+ });
48
+ SizableText.staticConfig.variants.fontFamily = {
49
+ "...": function (val, extras) {
50
+ if (val === "inherit") {
51
+ return {
52
+ fontFamily: "inherit"
53
+ };
54
+ }
55
+ var sizeProp = extras.props["size"];
56
+ var fontSizeProp = extras.props["fontSize"];
57
+ var size = sizeProp === "$true" && fontSizeProp ? fontSizeProp : extras.props["size"] || "$true";
58
+ return (0, import_get_font_sized.getFontSized)(size, extras);
59
+ }
60
+ };
61
+ //# sourceMappingURL=SizableText.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableText_exports","__export","SizableText","module","exports","import_get_font_sized","require","import_web","styled","Text","name","fontFamily","variants","unstyled","false","size","color","getFontSized","defaultVariants","process","env","GUI_HEADLESS","staticConfig","...","val","extras","sizeProp","props","fontSizeProp"],"sources":["../../src/SizableText.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA6B,CAAAK,mBAAA;AAE7B,IAAAK,qBAA6B,GAAAC,OAAA;AAEtB,IAAAC,UAAM,GAAAD,OAAc;AAAa,IACtCJ,WAAM,OAAAK,UAAA,CAAAC,MAAA,EAAAD,UAAA,CAAAE,IAAA;EACNC,IAAA,eAAY;EAEZC,UAAU;EAAAC,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACAC,IAAA,SAAO;QACTC,KAAA;MACF;IAEA;IACFD,IAAA,EAAAV,qBAAA,CAAAY;EAEA;EAAiBC,eACL;IACZL,QAAA,EAAAM,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAID;AAAgDnB,WACtC,CAAAoB,YAAK,CAAAV,QAAW,CAAAD,UAAA;EAEtB,OAAI,SAAAY,CAAQC,GAAA,EAAAC,MAAW;IACrB,IAAAD,GAAA,KAAS,WAAY;MACvB;QAEAb,UAAM;MACN;IACA;IAIA,IAAAe,QAAO,GAAAD,MAAA,CAAAE,KAAA;IACT,IAAAC,YAAA,GAAAH,MAAA,CAAAE,KAAA;IACF,IAAAZ,IAAA,GAAAW,QAAA,gBAAAE,YAAA,GAAAA,YAAA,GAAAH,MAAA,CAAAE,KAAA","ignoreList":[]}
@@ -0,0 +1,25 @@
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)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: true
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./Emphasis.cjs"), module.exports);
21
+ __reExport(index_exports, require("./SizableText.cjs"), module.exports);
22
+ __reExport(index_exports, require("./Paragraph.cjs"), module.exports);
23
+ __reExport(index_exports, require("./Headings.cjs"), module.exports);
24
+ __reExport(index_exports, require("./wrapChildrenInText.cjs"), module.exports);
25
+ __reExport(index_exports, require("./types.cjs"), module.exports);