@hanzogui/text 3.0.2 → 7.3.0

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 (73) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/Emphasis.cjs +24 -22
  3. package/dist/cjs/Emphasis.native.js +24 -22
  4. package/dist/cjs/Emphasis.native.js.map +1 -1
  5. package/dist/cjs/Headings.cjs +94 -92
  6. package/dist/cjs/Headings.native.js +94 -92
  7. package/dist/cjs/Headings.native.js.map +1 -1
  8. package/dist/cjs/Paragraph.cjs +15 -13
  9. package/dist/cjs/Paragraph.native.js +22 -20
  10. package/dist/cjs/Paragraph.native.js.map +1 -1
  11. package/dist/cjs/SizableText.cjs +26 -22
  12. package/dist/cjs/SizableText.native.js +38 -34
  13. package/dist/cjs/SizableText.native.js.map +1 -1
  14. package/dist/cjs/index.cjs +7 -5
  15. package/dist/cjs/index.native.js +7 -5
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/cjs/types.cjs +7 -5
  18. package/dist/cjs/types.native.js +7 -5
  19. package/dist/cjs/types.native.js.map +1 -1
  20. package/dist/cjs/wrapChildrenInText.cjs +47 -32
  21. package/dist/cjs/wrapChildrenInText.native.js +40 -27
  22. package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
  23. package/dist/esm/Emphasis.mjs +10 -10
  24. package/dist/esm/Emphasis.mjs.map +1 -1
  25. package/dist/esm/Emphasis.native.js +10 -10
  26. package/dist/esm/Emphasis.native.js.map +1 -1
  27. package/dist/esm/Headings.mjs +79 -79
  28. package/dist/esm/Headings.mjs.map +1 -1
  29. package/dist/esm/Headings.native.js +79 -79
  30. package/dist/esm/Headings.native.js.map +1 -1
  31. package/dist/esm/SizableText.mjs +9 -7
  32. package/dist/esm/SizableText.mjs.map +1 -1
  33. package/dist/esm/SizableText.native.js +9 -7
  34. package/dist/esm/SizableText.native.js.map +1 -1
  35. package/dist/esm/wrapChildrenInText.mjs +22 -9
  36. package/dist/esm/wrapChildrenInText.mjs.map +1 -1
  37. package/dist/esm/wrapChildrenInText.native.js +14 -3
  38. package/dist/esm/wrapChildrenInText.native.js.map +1 -1
  39. package/dist/jsx/Emphasis.mjs +10 -10
  40. package/dist/jsx/Emphasis.mjs.map +1 -1
  41. package/dist/jsx/Emphasis.native.js +24 -22
  42. package/dist/jsx/Emphasis.native.js.map +1 -1
  43. package/dist/jsx/Headings.mjs +79 -79
  44. package/dist/jsx/Headings.mjs.map +1 -1
  45. package/dist/jsx/Headings.native.js +94 -92
  46. package/dist/jsx/Headings.native.js.map +1 -1
  47. package/dist/jsx/Paragraph.native.js +22 -20
  48. package/dist/jsx/Paragraph.native.js.map +1 -1
  49. package/dist/jsx/SizableText.mjs +9 -7
  50. package/dist/jsx/SizableText.mjs.map +1 -1
  51. package/dist/jsx/SizableText.native.js +38 -34
  52. package/dist/jsx/SizableText.native.js.map +1 -1
  53. package/dist/jsx/index.native.js +7 -5
  54. package/dist/jsx/types.native.js +7 -5
  55. package/dist/jsx/wrapChildrenInText.mjs +22 -9
  56. package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
  57. package/dist/jsx/wrapChildrenInText.native.js +40 -27
  58. package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
  59. package/package.json +12 -10
  60. package/src/Headings.tsx +6 -6
  61. package/src/SizableText.tsx +1 -1
  62. package/types/Emphasis.d.ts +3 -3
  63. package/types/Emphasis.d.ts.map +1 -0
  64. package/types/Headings.d.ts +22 -22
  65. package/types/Headings.d.ts.map +1 -0
  66. package/types/Paragraph.d.ts +4 -4
  67. package/types/Paragraph.d.ts.map +1 -0
  68. package/types/SizableText.d.ts +4 -4
  69. package/types/SizableText.d.ts.map +1 -0
  70. package/types/index.d.ts.map +1 -0
  71. package/types/types.d.ts.map +1 -0
  72. package/types/wrapChildrenInText.d.ts +2 -2
  73. 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.
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var Emphasis_exports = {};
22
24
  __export(Emphasis_exports, {
@@ -25,15 +27,15 @@ __export(Emphasis_exports, {
25
27
  Strong: () => Strong
26
28
  });
27
29
  module.exports = __toCommonJS(Emphasis_exports);
28
- var import_gui_web = require("@hanzogui/web");
29
- const Strong = (0, import_gui_web.styled)(import_gui_web.Text, {
30
- render: "strong",
31
- fontWeight: "bold"
32
- }),
33
- Span = (0, import_gui_web.styled)(import_gui_web.Text, {
34
- render: "span"
35
- }),
36
- Em = (0, import_gui_web.styled)(import_gui_web.Text, {
37
- render: "em",
38
- fontStyle: "italic"
39
- });
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
+ });
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var Emphasis_exports = {};
24
26
  __export(Emphasis_exports, {
@@ -27,16 +29,16 @@ __export(Emphasis_exports, {
27
29
  Strong: () => Strong
28
30
  });
29
31
  module.exports = __toCommonJS(Emphasis_exports);
30
- var import_gui_web = require("@hanzogui/web"),
31
- Strong = (0, import_gui_web.styled)(import_gui_web.Text, {
32
- render: "strong",
33
- fontWeight: "bold"
34
- }),
35
- Span = (0, import_gui_web.styled)(import_gui_web.Text, {
36
- render: "span"
37
- }),
38
- Em = (0, import_gui_web.styled)(import_gui_web.Text, {
39
- render: "em",
40
- fontStyle: "italic"
41
- });
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
+ });
42
44
  //# sourceMappingURL=Emphasis.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Emphasis_exports","__export","Em","Span","Strong","module","exports","import_gui_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,GAAAX,YAA6B,CAAAK,gBAAA;AAEtB,IAAAO,cAAM,GAASC,OAAA,iBAAO;EAAAJ,MAAA,OAAAG,cAAM,CAAAE,MAAA,EAAAF,cAAA,CAAAG,IAAA;IACjCC,MAAA,EAAQ;IACRC,UAAA,EAAY;EACd,CAAC;EAEYT,IAAA,OAAOI,cAAA,CAAAE,MAAA,EAAOF,cAAA,CAAAG,IAAA,EAAM;IAC/BC,MAAA,EAAQ;EACV,CAAC;EAEYT,EAAA,OAAKK,cAAA,CAAAE,MAAA,EAAOF,cAAA,CAAAG,IAAA,EAAM;IAC7BC,MAAA,EAAQ;IACRE,SAAA,EAAW;EACb,CAAC","ignoreList":[]}
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":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var Headings_exports = {};
22
24
  __export(Headings_exports, {
@@ -29,97 +31,97 @@ __export(Headings_exports, {
29
31
  Heading: () => Heading
30
32
  });
31
33
  module.exports = __toCommonJS(Headings_exports);
32
- var import_gui_web = require("@hanzogui/web"),
33
- import_Paragraph = require("./Paragraph.cjs");
34
- const Heading = (0, import_gui_web.styled)(import_Paragraph.Paragraph, {
35
- render: "span",
36
- name: "Heading",
37
- role: "heading",
38
- fontFamily: "$heading",
39
- size: "$8",
40
- margin: 0
41
- }),
42
- H1 = (0, import_gui_web.styled)(Heading, {
43
- name: "H1",
44
- render: "h1",
45
- variants: {
46
- unstyled: {
47
- false: {
48
- size: "$10"
49
- }
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"
50
51
  }
51
- },
52
- defaultVariants: {
53
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
54
52
  }
55
- }),
56
- H2 = (0, import_gui_web.styled)(Heading, {
57
- name: "H2",
58
- render: "h2",
59
- variants: {
60
- unstyled: {
61
- false: {
62
- size: "$9"
63
- }
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"
64
65
  }
65
- },
66
- defaultVariants: {
67
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
68
66
  }
69
- }),
70
- H3 = (0, import_gui_web.styled)(Heading, {
71
- name: "H3",
72
- render: "h3",
73
- variants: {
74
- unstyled: {
75
- false: {
76
- size: "$8"
77
- }
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"
78
79
  }
79
- },
80
- defaultVariants: {
81
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
82
80
  }
83
- }),
84
- H4 = (0, import_gui_web.styled)(Heading, {
85
- name: "H4",
86
- render: "h4",
87
- variants: {
88
- unstyled: {
89
- false: {
90
- size: "$7"
91
- }
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"
92
93
  }
93
- },
94
- defaultVariants: {
95
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
96
94
  }
97
- }),
98
- H5 = (0, import_gui_web.styled)(Heading, {
99
- name: "H5",
100
- render: "h5",
101
- variants: {
102
- unstyled: {
103
- false: {
104
- size: "$6"
105
- }
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"
106
107
  }
107
- },
108
- defaultVariants: {
109
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
110
108
  }
111
- }),
112
- H6 = (0, import_gui_web.styled)(Heading, {
113
- name: "H6",
114
- render: "h6",
115
- variants: {
116
- unstyled: {
117
- false: {
118
- size: "$5"
119
- }
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"
120
121
  }
121
- },
122
- defaultVariants: {
123
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
124
122
  }
125
- });
123
+ },
124
+ defaultVariants: {
125
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
126
+ }
127
+ });
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var Headings_exports = {};
24
26
  __export(Headings_exports, {
@@ -31,98 +33,98 @@ __export(Headings_exports, {
31
33
  Heading: () => Heading
32
34
  });
33
35
  module.exports = __toCommonJS(Headings_exports);
34
- var import_gui_web = require("@hanzogui/web"),
35
- import_Paragraph = require("./Paragraph.native.js"),
36
- Heading = (0, import_gui_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
- H1 = (0, import_gui_web.styled)(Heading, {
45
- name: "H1",
46
- render: "h1",
47
- variants: {
48
- unstyled: {
49
- false: {
50
- size: "$10"
51
- }
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"
52
53
  }
53
- },
54
- defaultVariants: {
55
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
56
54
  }
57
- }),
58
- H2 = (0, import_gui_web.styled)(Heading, {
59
- name: "H2",
60
- render: "h2",
61
- variants: {
62
- unstyled: {
63
- false: {
64
- size: "$9"
65
- }
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"
66
67
  }
67
- },
68
- defaultVariants: {
69
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
70
68
  }
71
- }),
72
- H3 = (0, import_gui_web.styled)(Heading, {
73
- name: "H3",
74
- render: "h3",
75
- variants: {
76
- unstyled: {
77
- false: {
78
- size: "$8"
79
- }
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"
80
81
  }
81
- },
82
- defaultVariants: {
83
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
84
82
  }
85
- }),
86
- H4 = (0, import_gui_web.styled)(Heading, {
87
- name: "H4",
88
- render: "h4",
89
- variants: {
90
- unstyled: {
91
- false: {
92
- size: "$7"
93
- }
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"
94
95
  }
95
- },
96
- defaultVariants: {
97
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
98
96
  }
99
- }),
100
- H5 = (0, import_gui_web.styled)(Heading, {
101
- name: "H5",
102
- render: "h5",
103
- variants: {
104
- unstyled: {
105
- false: {
106
- size: "$6"
107
- }
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"
108
109
  }
109
- },
110
- defaultVariants: {
111
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
112
110
  }
113
- }),
114
- H6 = (0, import_gui_web.styled)(Heading, {
115
- name: "H6",
116
- render: "h6",
117
- variants: {
118
- unstyled: {
119
- false: {
120
- size: "$5"
121
- }
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"
122
123
  }
123
- },
124
- defaultVariants: {
125
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
126
124
  }
127
- });
125
+ },
126
+ defaultVariants: {
127
+ unstyled: process.env.GUI_HEADLESS === "1" ? true : false
128
+ }
129
+ });
128
130
  //# sourceMappingURL=Headings.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Headings_exports","__export","H1","H2","H3","H4","H5","H6","Heading","module","exports","import_gui_web","require","import_Paragraph","styled","Paragraph","render","name","role","fontFamily","size","margin","variants","unstyled","false","defaultVariants","process","env","HANZO_GUI_HEADLES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kBAAA,KAAuB;IAC/C;EACF,CAAC","ignoreList":[]}
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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