@tamagui/text 2.7.7 → 3.0.0-beta.643.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.
- package/dist/cjs/Emphasis.cjs +22 -25
- package/dist/cjs/Emphasis.native.cjs +40 -0
- package/dist/cjs/Emphasis.native.js +22 -24
- package/dist/cjs/Emphasis.native.js.map +1 -1
- package/dist/cjs/Headings.cjs +51 -100
- package/dist/cjs/Headings.native.cjs +80 -0
- package/dist/cjs/Headings.native.js +51 -99
- package/dist/cjs/Headings.native.js.map +1 -1
- package/dist/cjs/Paragraph.cjs +21 -24
- package/dist/cjs/Paragraph.native.cjs +36 -0
- package/dist/cjs/Paragraph.native.js +21 -23
- package/dist/cjs/Paragraph.native.js.map +1 -1
- package/dist/cjs/SizableText.cjs +29 -45
- package/dist/cjs/SizableText.native.cjs +46 -0
- package/dist/cjs/SizableText.native.js +31 -45
- package/dist/cjs/SizableText.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +26 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/wrapChildrenInText.cjs +57 -67
- package/dist/cjs/wrapChildrenInText.native.cjs +74 -0
- package/dist/cjs/wrapChildrenInText.native.js +56 -66
- package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
- package/dist/esm/Emphasis.mjs +8 -8
- package/dist/esm/Emphasis.mjs.map +1 -1
- package/dist/esm/Emphasis.native.js +8 -8
- package/dist/esm/Emphasis.native.js.map +1 -1
- package/dist/esm/Headings.mjs +32 -78
- package/dist/esm/Headings.mjs.map +1 -1
- package/dist/esm/Headings.native.js +32 -78
- package/dist/esm/Headings.native.js.map +1 -1
- package/dist/esm/Paragraph.mjs +8 -6
- package/dist/esm/Paragraph.mjs.map +1 -1
- package/dist/esm/Paragraph.native.js +8 -6
- package/dist/esm/Paragraph.native.js.map +1 -1
- package/dist/esm/SizableText.mjs +17 -28
- package/dist/esm/SizableText.mjs.map +1 -1
- package/dist/esm/SizableText.native.js +18 -28
- package/dist/esm/SizableText.native.js.map +1 -1
- package/dist/esm/index.js +11 -7
- package/dist/esm/index.mjs +11 -7
- package/dist/esm/index.native.js +11 -7
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/wrapChildrenInText.mjs +40 -41
- package/dist/esm/wrapChildrenInText.mjs.map +1 -1
- package/dist/esm/wrapChildrenInText.native.js +41 -42
- package/dist/esm/wrapChildrenInText.native.js.map +1 -1
- package/dist/jsx/Emphasis.mjs +8 -8
- package/dist/jsx/Emphasis.mjs.map +1 -1
- package/dist/jsx/Emphasis.native.cjs +40 -0
- package/dist/jsx/Emphasis.native.js +22 -24
- package/dist/jsx/Emphasis.native.js.map +1 -1
- package/dist/jsx/Headings.mjs +32 -78
- package/dist/jsx/Headings.mjs.map +1 -1
- package/dist/jsx/Headings.native.cjs +80 -0
- package/dist/jsx/Headings.native.js +51 -99
- package/dist/jsx/Headings.native.js.map +1 -1
- package/dist/jsx/Paragraph.mjs +8 -6
- package/dist/jsx/Paragraph.mjs.map +1 -1
- package/dist/jsx/Paragraph.native.cjs +36 -0
- package/dist/jsx/Paragraph.native.js +21 -23
- package/dist/jsx/Paragraph.native.js.map +1 -1
- package/dist/jsx/SizableText.mjs +17 -28
- package/dist/jsx/SizableText.mjs.map +1 -1
- package/dist/jsx/SizableText.native.cjs +46 -0
- package/dist/jsx/SizableText.native.js +31 -45
- package/dist/jsx/SizableText.native.js.map +1 -1
- package/dist/jsx/index.js +11 -7
- package/dist/jsx/index.mjs +11 -7
- package/dist/jsx/index.native.cjs +26 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +19 -0
- package/dist/jsx/types.native.js +10 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/dist/jsx/wrapChildrenInText.mjs +40 -41
- package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
- package/dist/jsx/wrapChildrenInText.native.cjs +74 -0
- package/dist/jsx/wrapChildrenInText.native.js +56 -66
- package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
- package/package.json +5 -5
- package/src/Headings.tsx +15 -15
- package/src/Paragraph.tsx +3 -3
- package/src/SizableText.tsx +6 -18
- package/src/wrapChildrenInText.tsx +32 -11
- package/types/Emphasis.d.ts +15 -3
- package/types/Emphasis.d.ts.map +1 -1
- package/types/Headings.d.ts +89 -22
- package/types/Headings.d.ts.map +1 -1
- package/types/Paragraph.d.ts +11 -4
- package/types/Paragraph.d.ts.map +1 -1
- package/types/SizableText.d.ts +11 -4
- package/types/SizableText.d.ts.map +1 -1
- package/types/wrapChildrenInText.d.ts +2 -4
- package/types/wrapChildrenInText.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
+
|
|
3
4
|
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: child
|
|
43
|
-
}, index) : child;
|
|
44
|
-
});
|
|
5
|
+
var { children, textProps, size, noTextWrap, color, fontFamily, fontSize, fontWeight, letterSpacing, textAlign, fontStyle, ellipsis, maxFontSizeMultiplier } = propsIn;
|
|
6
|
+
if (noTextWrap || !children) {
|
|
7
|
+
return [children];
|
|
8
|
+
}
|
|
9
|
+
var props = { ...extraProps };
|
|
10
|
+
if (color) props.color = color;
|
|
11
|
+
if (fontFamily) props.fontFamily = fontFamily;
|
|
12
|
+
if (fontSize) props.fontSize = fontSize;
|
|
13
|
+
if (fontWeight) props.fontWeight = fontWeight;
|
|
14
|
+
if (letterSpacing) props.letterSpacing = letterSpacing;
|
|
15
|
+
if (textAlign) props.textAlign = textAlign;
|
|
16
|
+
if (size) props.size = size;
|
|
17
|
+
if (fontStyle) props.fontStyle = fontStyle;
|
|
18
|
+
if (ellipsis !== void 0) props.ellipsis = ellipsis;
|
|
19
|
+
if (maxFontSizeMultiplier != null) props.maxFontSizeMultiplier = maxFontSizeMultiplier;
|
|
20
|
+
var out = [];
|
|
21
|
+
var run = [];
|
|
22
|
+
var runKey = 0;
|
|
23
|
+
var flushRun = function() {
|
|
24
|
+
if (!run.length) return;
|
|
25
|
+
out.push(/* @__PURE__ */ jsx(TextComponent, {
|
|
26
|
+
...props,
|
|
27
|
+
...textProps,
|
|
28
|
+
children: run.length === 1 ? run[0] : run.join("")
|
|
29
|
+
}, `text-${runKey}`));
|
|
30
|
+
run = [];
|
|
31
|
+
};
|
|
32
|
+
React.Children.toArray(children).forEach(function(child, index) {
|
|
33
|
+
if (typeof child === "string" || typeof child === "number") {
|
|
34
|
+
if (!run.length) runKey = index;
|
|
35
|
+
run.push(child);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
flushRun();
|
|
39
|
+
out.push(child);
|
|
40
|
+
});
|
|
41
|
+
flushRun();
|
|
42
|
+
return out;
|
|
45
43
|
}
|
|
44
|
+
|
|
46
45
|
export { wrapChildrenInText };
|
|
47
46
|
//# sourceMappingURL=wrapChildrenInText.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"wrapChildrenInText.native.js","names":[],"sources":["esm/wrapChildrenInText.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nfunction wrapChildrenInText(TextComponent, propsIn, extraProps) {\n var { children, textProps, size, noTextWrap, color, fontFamily, fontSize, fontWeight, letterSpacing, textAlign, fontStyle, ellipsis, maxFontSizeMultiplier } = propsIn;\n if (noTextWrap || !children) {\n return [\n children\n ];\n }\n var props = {\n ...extraProps\n };\n if (color) props.color = color;\n if (fontFamily) props.fontFamily = fontFamily;\n if (fontSize) props.fontSize = fontSize;\n if (fontWeight) props.fontWeight = fontWeight;\n if (letterSpacing) props.letterSpacing = letterSpacing;\n if (textAlign) props.textAlign = textAlign;\n if (size) props.size = size;\n if (fontStyle) props.fontStyle = fontStyle;\n if (ellipsis !== void 0) props.ellipsis = ellipsis;\n if (maxFontSizeMultiplier != null) props.maxFontSizeMultiplier = maxFontSizeMultiplier;\n var out = [];\n var run = [];\n var runKey = 0;\n var flushRun = function() {\n if (!run.length) return;\n out.push(\n // data-disable-theme keeps wrapped text from adding another theme boundary\n /* @__PURE__ */ _jsx(TextComponent, {\n ...props,\n ...textProps,\n children: run.length === 1 ? run[0] : run.join(\"\")\n }, `text-${runKey}`)\n );\n run = [];\n };\n React.Children.toArray(children).forEach(function(child, index) {\n if (typeof child === \"string\" || typeof child === \"number\") {\n if (!run.length) runKey = index;\n run.push(child);\n return;\n }\n flushRun();\n out.push(child);\n });\n flushRun();\n return out;\n}\nexport {\n wrapChildrenInText\n};\n//# sourceMappingURL=wrapChildrenInText.js.map\n"],"mappings":";;;;AAEA,SAAS,mBAAmB,eAAe,SAAS,YAAY;CAC9D,IAAI,EAAE,UAAU,WAAW,MAAM,YAAY,OAAO,YAAY,UAAU,YAAY,eAAe,WAAW,WAAW,UAAU,0BAA0B;CAC/J,IAAI,cAAc,CAAC,UAAU;EAC3B,OAAO,CACL,QACF;CACF;CACA,IAAI,QAAQ,EACV,GAAG,WACL;CACA,IAAI,OAAO,MAAM,QAAQ;CACzB,IAAI,YAAY,MAAM,aAAa;CACnC,IAAI,UAAU,MAAM,WAAW;CAC/B,IAAI,YAAY,MAAM,aAAa;CACnC,IAAI,eAAe,MAAM,gBAAgB;CACzC,IAAI,WAAW,MAAM,YAAY;CACjC,IAAI,MAAM,MAAM,OAAO;CACvB,IAAI,WAAW,MAAM,YAAY;CACjC,IAAI,aAAa,KAAK,GAAG,MAAM,WAAW;CAC1C,IAAI,yBAAyB,MAAM,MAAM,wBAAwB;CACjE,IAAI,MAAM,CAAC;CACX,IAAI,MAAM,CAAC;CACX,IAAI,SAAS;CACb,IAAI,WAAW,WAAW;EACxB,IAAI,CAAC,IAAI,QAAQ;EACjB,IAAI,KAEc,oBAAK,eAAe;GAClC,GAAG;GACH,GAAG;GACH,UAAU,IAAI,WAAW,IAAI,IAAI,KAAK,IAAI,KAAK,EAAE;EACnD,GAAG,QAAQ,QAAQ,CACrB;EACA,MAAM,CAAC;CACT;CACA,MAAM,SAAS,QAAQ,QAAQ,EAAE,QAAQ,SAAS,OAAO,OAAO;EAC9D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAAU;GAC1D,IAAI,CAAC,IAAI,QAAQ,SAAS;GAC1B,IAAI,KAAK,KAAK;GACd;EACF;EACA,SAAS;EACT,IAAI,KAAK,KAAK;CAChB,CAAC;CACD,SAAS;CACT,OAAO;AACT"}
|
package/dist/jsx/Emphasis.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Text, styled } from "@tamagui/web";
|
|
2
|
+
|
|
2
3
|
const Strong = styled(Text, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
const Span = styled(Text, {
|
|
7
|
-
render: "span"
|
|
4
|
+
render: "strong",
|
|
5
|
+
fontWeight: "bold"
|
|
8
6
|
});
|
|
7
|
+
const Span = styled(Text, { render: "span" });
|
|
9
8
|
const Em = styled(Text, {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
render: "em",
|
|
10
|
+
fontStyle: "italic"
|
|
12
11
|
});
|
|
12
|
+
|
|
13
13
|
export { Em, Span, Strong };
|
|
14
14
|
//# sourceMappingURL=Emphasis.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Emphasis.js","names":[],"sources":["jsx/Emphasis.js"],"sourcesContent":["import { styled, Text } from \"@tamagui/web\";\nconst Strong = styled(Text, {\n render: \"strong\",\n fontWeight: \"bold\"\n});\nconst Span = styled(Text, {\n render: \"span\"\n});\nconst Em = styled(Text, {\n render: \"em\",\n fontStyle: \"italic\"\n});\nexport {\n Em,\n Span,\n Strong\n};\n//# sourceMappingURL=Emphasis.js.map\n"],"mappings":";;;AACA,MAAM,SAAS,OAAO,MAAM;CAC1B,QAAQ;CACR,YAAY;AACd,CAAC;AACD,MAAM,OAAO,OAAO,MAAM,EACxB,QAAQ,OACV,CAAC;AACD,MAAM,KAAK,OAAO,MAAM;CACtB,QAAQ;CACR,WAAW;AACb,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Emphasis_exports = {};
|
|
25
|
+
__export(Emphasis_exports, {
|
|
26
|
+
Em: () => Em,
|
|
27
|
+
Span: () => Span,
|
|
28
|
+
Strong: () => Strong
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(Emphasis_exports);
|
|
31
|
+
var import_web = require("@tamagui/web");
|
|
32
|
+
var Strong = (0, import_web.styled)(import_web.Text, {
|
|
33
|
+
render: "strong",
|
|
34
|
+
fontWeight: "bold"
|
|
35
|
+
});
|
|
36
|
+
var Span = (0, import_web.styled)(import_web.Text, { render: "span" });
|
|
37
|
+
var Em = (0, import_web.styled)(import_web.Text, {
|
|
38
|
+
render: "em",
|
|
39
|
+
fontStyle: "italic"
|
|
40
|
+
});
|
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var Emphasis_exports = {};
|
|
26
25
|
__export(Emphasis_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
Em: () => Em,
|
|
27
|
+
Span: () => Span,
|
|
28
|
+
Strong: () => Strong
|
|
30
29
|
});
|
|
31
30
|
module.exports = __toCommonJS(Emphasis_exports);
|
|
32
31
|
var import_web = require("@tamagui/web");
|
|
33
32
|
var Strong = (0, import_web.styled)(import_web.Text, {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
var Span = (0, import_web.styled)(import_web.Text, {
|
|
38
|
-
render: "span"
|
|
33
|
+
render: "strong",
|
|
34
|
+
fontWeight: "bold"
|
|
39
35
|
});
|
|
36
|
+
var Span = (0, import_web.styled)(import_web.Text, { render: "span" });
|
|
40
37
|
var Em = (0, import_web.styled)(import_web.Text, {
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
render: "em",
|
|
39
|
+
fontStyle: "italic"
|
|
43
40
|
});
|
|
41
|
+
|
|
44
42
|
//# sourceMappingURL=Emphasis.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Emphasis.native.js","names":[],"sources":["jsx/Emphasis.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Emphasis_exports = {};\n__export(Emphasis_exports, {\n Em: () => Em,\n Span: () => Span,\n Strong: () => Strong\n});\nmodule.exports = __toCommonJS(Emphasis_exports);\nvar import_web = require(\"@tamagui/web\");\nvar Strong = (0, import_web.styled)(import_web.Text, {\n render: \"strong\",\n fontWeight: \"bold\"\n});\nvar Span = (0, import_web.styled)(import_web.Text, {\n render: \"span\"\n});\nvar Em = (0, import_web.styled)(import_web.Text, {\n render: \"em\",\n fontStyle: \"italic\"\n});\n//# sourceMappingURL=Emphasis.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB;CACzB,UAAU;CACV,YAAY;CACZ,cAAc;AAChB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,UAAU,GAAG,WAAW,QAAQ,WAAW,MAAM;CACnD,QAAQ;CACR,YAAY;AACd,CAAC;AACD,IAAI,QAAQ,GAAG,WAAW,QAAQ,WAAW,MAAM,EACjD,QAAQ,OACV,CAAC;AACD,IAAI,MAAM,GAAG,WAAW,QAAQ,WAAW,MAAM;CAC/C,QAAQ;CACR,WAAW;AACb,CAAC"}
|
package/dist/jsx/Headings.mjs
CHANGED
|
@@ -1,96 +1,50 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { Paragraph } from "./Paragraph.mjs";
|
|
3
|
+
|
|
3
4
|
const Heading = styled(Paragraph, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
render: "span",
|
|
6
|
+
displayName: "Heading",
|
|
7
|
+
role: "heading",
|
|
8
|
+
fontFamily: "heading",
|
|
9
|
+
margin: 0,
|
|
10
|
+
size: "8"
|
|
10
11
|
});
|
|
11
12
|
const H1 = styled(Heading, {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
false: {
|
|
17
|
-
size: "$10"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
23
|
-
}
|
|
13
|
+
displayName: "H1",
|
|
14
|
+
render: "h1",
|
|
15
|
+
variants: { unstyled: { false: { size: "10" } } },
|
|
16
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
24
17
|
});
|
|
25
18
|
const H2 = styled(Heading, {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
false: {
|
|
31
|
-
size: "$9"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
37
|
-
}
|
|
19
|
+
displayName: "H2",
|
|
20
|
+
render: "h2",
|
|
21
|
+
variants: { unstyled: { false: { size: "9" } } },
|
|
22
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
38
23
|
});
|
|
39
24
|
const H3 = styled(Heading, {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
false: {
|
|
45
|
-
size: "$8"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: {
|
|
50
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
51
|
-
}
|
|
25
|
+
displayName: "H3",
|
|
26
|
+
render: "h3",
|
|
27
|
+
variants: { unstyled: { false: { size: "8" } } },
|
|
28
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
52
29
|
});
|
|
53
30
|
const H4 = styled(Heading, {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
false: {
|
|
59
|
-
size: "$7"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
defaultVariants: {
|
|
64
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
65
|
-
}
|
|
31
|
+
displayName: "H4",
|
|
32
|
+
render: "h4",
|
|
33
|
+
variants: { unstyled: { false: { size: "7" } } },
|
|
34
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
66
35
|
});
|
|
67
36
|
const H5 = styled(Heading, {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
false: {
|
|
73
|
-
size: "$6"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
79
|
-
}
|
|
37
|
+
displayName: "H5",
|
|
38
|
+
render: "h5",
|
|
39
|
+
variants: { unstyled: { false: { size: "6" } } },
|
|
40
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
80
41
|
});
|
|
81
42
|
const H6 = styled(Heading, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
false: {
|
|
87
|
-
size: "$5"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
defaultVariants: {
|
|
92
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false
|
|
93
|
-
}
|
|
43
|
+
displayName: "H6",
|
|
44
|
+
render: "h6",
|
|
45
|
+
variants: { unstyled: { false: { size: "5" } } },
|
|
46
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
94
47
|
});
|
|
48
|
+
|
|
95
49
|
export { H1, H2, H3, H4, H5, H6, Heading };
|
|
96
50
|
//# sourceMappingURL=Headings.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Headings.js","names":[],"sources":["jsx/Headings.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Paragraph } from \"./Paragraph\";\nconst Heading = styled(Paragraph, {\n render: \"span\",\n displayName: \"Heading\",\n role: \"heading\",\n fontFamily: \"heading\",\n margin: 0,\n size: \"8\"\n});\nconst H1 = styled(Heading, {\n displayName: \"H1\",\n render: \"h1\",\n variants: {\n unstyled: {\n false: {\n size: \"10\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H2 = styled(Heading, {\n displayName: \"H2\",\n render: \"h2\",\n variants: {\n unstyled: {\n false: {\n size: \"9\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H3 = styled(Heading, {\n displayName: \"H3\",\n render: \"h3\",\n variants: {\n unstyled: {\n false: {\n size: \"8\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H4 = styled(Heading, {\n displayName: \"H4\",\n render: \"h4\",\n variants: {\n unstyled: {\n false: {\n size: \"7\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H5 = styled(Heading, {\n displayName: \"H5\",\n render: \"h5\",\n variants: {\n unstyled: {\n false: {\n size: \"6\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nconst H6 = styled(Heading, {\n displayName: \"H6\",\n render: \"h6\",\n variants: {\n unstyled: {\n false: {\n size: \"5\"\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.TAMAGUI_HEADLESS === \"1\" ? true : false\n }\n});\nexport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Heading\n};\n//# sourceMappingURL=Headings.js.map\n"],"mappings":";;;;AAEA,MAAM,UAAU,OAAO,WAAW;CAChC,QAAQ;CACR,aAAa;CACb,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,MAAM;AACR,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,KACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC;AACD,MAAM,KAAK,OAAO,SAAS;CACzB,aAAa;CACb,QAAQ;CACR,UAAU,EACR,UAAU,EACR,OAAO,EACL,MAAM,IACR,EACF,EACF;CACA,iBAAiB,EACf,UAAU,QAAQ,IAAI,qBAAqB,MAAM,OAAO,MAC1D;AACF,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Headings_exports = {};
|
|
25
|
+
__export(Headings_exports, {
|
|
26
|
+
H1: () => H1,
|
|
27
|
+
H2: () => H2,
|
|
28
|
+
H3: () => H3,
|
|
29
|
+
H4: () => H4,
|
|
30
|
+
H5: () => H5,
|
|
31
|
+
H6: () => H6,
|
|
32
|
+
Heading: () => Heading
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Headings_exports);
|
|
35
|
+
var import_web = require("@tamagui/web");
|
|
36
|
+
var import_Paragraph = require("./Paragraph.native.js");
|
|
37
|
+
var Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
|
|
38
|
+
render: "span",
|
|
39
|
+
displayName: "Heading",
|
|
40
|
+
role: "heading",
|
|
41
|
+
fontFamily: "heading",
|
|
42
|
+
margin: 0,
|
|
43
|
+
size: "8"
|
|
44
|
+
});
|
|
45
|
+
var H1 = (0, import_web.styled)(Heading, {
|
|
46
|
+
displayName: "H1",
|
|
47
|
+
render: "h1",
|
|
48
|
+
variants: { unstyled: { false: { size: "10" } } },
|
|
49
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
50
|
+
});
|
|
51
|
+
var H2 = (0, import_web.styled)(Heading, {
|
|
52
|
+
displayName: "H2",
|
|
53
|
+
render: "h2",
|
|
54
|
+
variants: { unstyled: { false: { size: "9" } } },
|
|
55
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
56
|
+
});
|
|
57
|
+
var H3 = (0, import_web.styled)(Heading, {
|
|
58
|
+
displayName: "H3",
|
|
59
|
+
render: "h3",
|
|
60
|
+
variants: { unstyled: { false: { size: "8" } } },
|
|
61
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
62
|
+
});
|
|
63
|
+
var H4 = (0, import_web.styled)(Heading, {
|
|
64
|
+
displayName: "H4",
|
|
65
|
+
render: "h4",
|
|
66
|
+
variants: { unstyled: { false: { size: "7" } } },
|
|
67
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
68
|
+
});
|
|
69
|
+
var H5 = (0, import_web.styled)(Heading, {
|
|
70
|
+
displayName: "H5",
|
|
71
|
+
render: "h5",
|
|
72
|
+
variants: { unstyled: { false: { size: "6" } } },
|
|
73
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
74
|
+
});
|
|
75
|
+
var H6 = (0, import_web.styled)(Heading, {
|
|
76
|
+
displayName: "H6",
|
|
77
|
+
render: "h6",
|
|
78
|
+
variants: { unstyled: { false: { size: "5" } } },
|
|
79
|
+
defaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === "1" ? true : false }
|
|
80
|
+
});
|