@tamagui/text 1.13.3 → 1.14.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.
- package/dist/cjs/Headings.js +1 -79
- package/dist/cjs/Headings.js.map +2 -2
- package/dist/cjs/Paragraph.js +1 -36
- package/dist/cjs/Paragraph.js.map +2 -2
- package/dist/cjs/SizableText.js +1 -39
- package/dist/cjs/SizableText.js.map +2 -2
- package/dist/cjs/index.js +1 -22
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/types.js +1 -16
- package/dist/cjs/types.js.map +2 -2
- package/dist/cjs/wrapChildrenInText.js +1 -103
- package/dist/cjs/wrapChildrenInText.js.map +2 -2
- package/dist/cjs/wrapChildrenInText.test.js +1 -30
- package/dist/cjs/wrapChildrenInText.test.js.map +2 -2
- package/dist/esm/Headings.js +1 -49
- package/dist/esm/Headings.js.map +2 -2
- package/dist/esm/Headings.mjs +1 -49
- package/dist/esm/Headings.mjs.map +2 -2
- package/dist/esm/Paragraph.js +1 -12
- package/dist/esm/Paragraph.js.map +2 -2
- package/dist/esm/Paragraph.mjs +1 -12
- package/dist/esm/Paragraph.mjs.map +2 -2
- package/dist/esm/SizableText.js +1 -15
- package/dist/esm/SizableText.js.map +2 -2
- package/dist/esm/SizableText.mjs +1 -15
- package/dist/esm/SizableText.mjs.map +2 -2
- package/dist/esm/index.js +1 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -5
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/wrapChildrenInText.js +1 -69
- package/dist/esm/wrapChildrenInText.js.map +2 -2
- package/dist/esm/wrapChildrenInText.mjs +1 -69
- package/dist/esm/wrapChildrenInText.mjs.map +2 -2
- package/dist/esm/wrapChildrenInText.test.js +1 -29
- package/dist/esm/wrapChildrenInText.test.js.map +2 -2
- package/dist/esm/wrapChildrenInText.test.mjs +1 -29
- package/dist/esm/wrapChildrenInText.test.mjs.map +2 -2
- package/dist/jsx/Headings.js +1 -49
- package/dist/jsx/Headings.js.map +2 -2
- package/dist/jsx/Headings.mjs +1 -49
- package/dist/jsx/Headings.mjs.map +2 -2
- package/dist/jsx/Paragraph.js +1 -12
- package/dist/jsx/Paragraph.js.map +2 -2
- package/dist/jsx/Paragraph.mjs +1 -12
- package/dist/jsx/Paragraph.mjs.map +2 -2
- package/dist/jsx/SizableText.js +1 -15
- package/dist/jsx/SizableText.js.map +2 -2
- package/dist/jsx/SizableText.mjs +1 -15
- package/dist/jsx/SizableText.mjs.map +2 -2
- package/dist/jsx/index.js +1 -5
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -5
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/wrapChildrenInText.js +1 -68
- package/dist/jsx/wrapChildrenInText.js.map +2 -2
- package/dist/jsx/wrapChildrenInText.mjs +1 -68
- package/dist/jsx/wrapChildrenInText.mjs.map +2 -2
- package/dist/jsx/wrapChildrenInText.test.js +1 -28
- package/dist/jsx/wrapChildrenInText.test.js.map +2 -2
- package/dist/jsx/wrapChildrenInText.test.mjs +1 -28
- package/dist/jsx/wrapChildrenInText.test.mjs.map +2 -2
- package/package.json +5 -5
package/dist/cjs/Headings.js
CHANGED
|
@@ -1,80 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Headings_exports = {};
|
|
20
|
-
__export(Headings_exports, {
|
|
21
|
-
H1: () => H1,
|
|
22
|
-
H2: () => H2,
|
|
23
|
-
H3: () => H3,
|
|
24
|
-
H4: () => H4,
|
|
25
|
-
H5: () => H5,
|
|
26
|
-
H6: () => H6,
|
|
27
|
-
Heading: () => Heading
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(Headings_exports);
|
|
30
|
-
var import_web = require("@tamagui/web");
|
|
31
|
-
var import_Paragraph = require("./Paragraph");
|
|
32
|
-
const Heading = (0, import_web.styled)(import_Paragraph.Paragraph, {
|
|
33
|
-
tag: "span",
|
|
34
|
-
name: "Heading",
|
|
35
|
-
accessibilityRole: "header",
|
|
36
|
-
fontFamily: "$heading",
|
|
37
|
-
size: "$8",
|
|
38
|
-
margin: 0
|
|
39
|
-
});
|
|
40
|
-
const H1 = (0, import_web.styled)(Heading, {
|
|
41
|
-
name: "H1",
|
|
42
|
-
tag: "h1",
|
|
43
|
-
size: "$10"
|
|
44
|
-
});
|
|
45
|
-
const H2 = (0, import_web.styled)(Heading, {
|
|
46
|
-
name: "H2",
|
|
47
|
-
tag: "h2",
|
|
48
|
-
size: "$9"
|
|
49
|
-
});
|
|
50
|
-
const H3 = (0, import_web.styled)(Heading, {
|
|
51
|
-
name: "H3",
|
|
52
|
-
tag: "h3",
|
|
53
|
-
size: "$8"
|
|
54
|
-
});
|
|
55
|
-
const H4 = (0, import_web.styled)(Heading, {
|
|
56
|
-
name: "H4",
|
|
57
|
-
tag: "h4",
|
|
58
|
-
size: "$7"
|
|
59
|
-
});
|
|
60
|
-
const H5 = (0, import_web.styled)(Heading, {
|
|
61
|
-
name: "H5",
|
|
62
|
-
tag: "h5",
|
|
63
|
-
size: "$6"
|
|
64
|
-
});
|
|
65
|
-
const H6 = (0, import_web.styled)(Heading, {
|
|
66
|
-
name: "H6",
|
|
67
|
-
tag: "h6",
|
|
68
|
-
size: "$5"
|
|
69
|
-
});
|
|
70
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
-
0 && (module.exports = {
|
|
72
|
-
H1,
|
|
73
|
-
H2,
|
|
74
|
-
H3,
|
|
75
|
-
H4,
|
|
76
|
-
H5,
|
|
77
|
-
H6,
|
|
78
|
-
Heading
|
|
79
|
-
});
|
|
1
|
+
"use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(a,e)=>{for(var s in e)i(a,s,{get:e[s],enumerable:!0})},h=(a,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!p.call(a,o)&&o!==s&&i(a,o,{get:()=>e[o],enumerable:!(r=m(e,o))||r.enumerable});return a};var $=a=>h(i({},"__esModule",{value:!0}),a);var b={};c(b,{H1:()=>x,H2:()=>z,H3:()=>d,H4:()=>l,H5:()=>f,H6:()=>y,Heading:()=>n});module.exports=$(b);var t=require("@tamagui/web"),H=require("./Paragraph");const n=(0,t.styled)(H.Paragraph,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),x=(0,t.styled)(n,{name:"H1",tag:"h1",size:"$10"}),z=(0,t.styled)(n,{name:"H2",tag:"h2",size:"$9"}),d=(0,t.styled)(n,{name:"H3",tag:"h3",size:"$8"}),l=(0,t.styled)(n,{name:"H4",tag:"h4",size:"$7"}),f=(0,t.styled)(n,{name:"H5",tag:"h5",size:"$6"}),y=(0,t.styled)(n,{name:"H6",tag:"h6",size:"$5"});0&&(module.exports={H1,H2,H3,H4,H5,H6,Heading});
|
|
80
2
|
//# sourceMappingURL=Headings.js.map
|
package/dist/cjs/Headings.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Headings.tsx"],
|
|
4
4
|
"sourcesContent": ["import { styled } from '@tamagui/web'\n\nimport { Paragraph } from './Paragraph'\n\nexport const Heading = styled(Paragraph, {\n tag: 'span',\n name: 'Heading',\n accessibilityRole: 'header',\n fontFamily: '$heading',\n size: '$8',\n margin: 0,\n})\n\nexport const H1 = styled(Heading, {\n name: 'H1',\n tag: 'h1',\n size: '$10',\n})\n\nexport const H2 = styled(Heading, {\n name: 'H2',\n tag: 'h2',\n size: '$9',\n})\n\nexport const H3 = styled(Heading, {\n name: 'H3',\n tag: 'h3',\n size: '$8',\n})\n\nexport const H4 = styled(Heading, {\n name: 'H4',\n tag: 'h4',\n size: '$7',\n})\n\nexport const H5 = styled(Heading, {\n name: 'H5',\n tag: 'h5',\n size: '$6',\n})\n\nexport const H6 = styled(Heading, {\n name: 'H6',\n tag: 'h6',\n size: '$5',\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,QAAAE,EAAA,OAAAC,EAAA,OAAAC,EAAA,OAAAC,EAAA,OAAAC,EAAA,OAAAC,EAAA,YAAAC,IAAA,eAAAC,EAAAT,GAAA,IAAAU,EAAuB,wBAEvBC,EAA0B,uBAEnB,MAAMH,KAAU,UAAO,YAAW,CACvC,IAAK,OACL,KAAM,UACN,kBAAmB,SACnB,WAAY,WACZ,KAAM,KACN,OAAQ,CACV,CAAC,EAEYN,KAAK,UAAOM,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,KACR,CAAC,EAEYL,KAAK,UAAOK,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYJ,KAAK,UAAOI,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYH,KAAK,UAAOG,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYF,KAAK,UAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYD,KAAK,UAAOC,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC",
|
|
6
|
+
"names": ["Headings_exports", "__export", "H1", "H2", "H3", "H4", "H5", "H6", "Heading", "__toCommonJS", "import_web", "import_Paragraph"]
|
|
7
7
|
}
|
package/dist/cjs/Paragraph.js
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Paragraph_exports = {};
|
|
20
|
-
__export(Paragraph_exports, {
|
|
21
|
-
Paragraph: () => Paragraph
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Paragraph_exports);
|
|
24
|
-
var import_web = require("@tamagui/web");
|
|
25
|
-
var import_SizableText = require("./SizableText");
|
|
26
|
-
const Paragraph = (0, import_web.styled)(import_SizableText.SizableText, {
|
|
27
|
-
name: "Paragraph",
|
|
28
|
-
tag: "p",
|
|
29
|
-
userSelect: "auto",
|
|
30
|
-
color: "$color",
|
|
31
|
-
size: "$true"
|
|
32
|
-
});
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
Paragraph
|
|
36
|
-
});
|
|
1
|
+
"use strict";var t=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=(a,r)=>{for(var e in r)t(a,e,{get:r[e],enumerable:!0})},h=(a,r,e,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of l(r))!m.call(a,o)&&o!==e&&t(a,o,{get:()=>r[o],enumerable:!(p=g(r,o))||p.enumerable});return a};var i=a=>h(t({},"__esModule",{value:!0}),a);var u={};c(u,{Paragraph:()=>f});module.exports=i(u);var s=require("@tamagui/web"),P=require("./SizableText");const f=(0,s.styled)(P.SizableText,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true"});0&&(module.exports={Paragraph});
|
|
37
2
|
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Paragraph.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\n\nimport { SizableText } from './SizableText'\n\nexport const Paragraph = styled(SizableText, {\n name: 'Paragraph',\n tag: 'p',\n userSelect: 'auto',\n color: '$color',\n size: '$true',\n})\n\nexport type ParagraphProps = GetProps<typeof Paragraph>\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAiC,wBAEjCC,EAA4B,yBAErB,MAAMH,KAAY,UAAO,cAAa,CAC3C,KAAM,YACN,IAAK,IACL,WAAY,OACZ,MAAO,SACP,KAAM,OACR,CAAC",
|
|
6
|
+
"names": ["Paragraph_exports", "__export", "Paragraph", "__toCommonJS", "import_web", "import_SizableText"]
|
|
7
7
|
}
|
package/dist/cjs/SizableText.js
CHANGED
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var SizableText_exports = {};
|
|
20
|
-
__export(SizableText_exports, {
|
|
21
|
-
SizableText: () => SizableText
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(SizableText_exports);
|
|
24
|
-
var import_get_font_sized = require("@tamagui/get-font-sized");
|
|
25
|
-
var import_web = require("@tamagui/web");
|
|
26
|
-
const SizableText = (0, import_web.styled)(import_web.Text, {
|
|
27
|
-
name: "SizableText",
|
|
28
|
-
fontFamily: "$body",
|
|
29
|
-
variants: {
|
|
30
|
-
size: import_get_font_sized.getFontSized
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: {
|
|
33
|
-
size: "$true"
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
SizableText
|
|
39
|
-
});
|
|
1
|
+
"use strict";var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var z=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},m=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of n(e))!x.call(t,o)&&o!==a&&r(t,o,{get:()=>e[o],enumerable:!(s=l(e,o))||s.enumerable});return t};var b=t=>m(r({},"__esModule",{value:!0}),t);var y={};z(y,{SizableText:()=>f});module.exports=b(y);var p=require("@tamagui/get-font-sized"),i=require("@tamagui/web");const f=(0,i.styled)(i.Text,{name:"SizableText",fontFamily:"$body",variants:{size:p.getFontSized},defaultVariants:{size:"$true"}});0&&(module.exports={SizableText});
|
|
40
2
|
//# sourceMappingURL=SizableText.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SizableText.tsx"],
|
|
4
4
|
"sourcesContent": ["import { getFontSized } from '@tamagui/get-font-sized'\nimport { GetProps, Text, styled } from '@tamagui/web'\n\nexport const SizableText = styled(Text, {\n name: 'SizableText',\n fontFamily: '$body',\n\n variants: {\n size: getFontSized,\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA6B,mCAC7BC,EAAuC,wBAEhC,MAAMH,KAAc,UAAO,OAAM,CACtC,KAAM,cACN,WAAY,QAEZ,SAAU,CACR,KAAM,cACR,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC",
|
|
6
|
+
"names": ["SizableText_exports", "__export", "SizableText", "__toCommonJS", "import_get_font_sized", "import_web"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
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", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./SizableText"), module.exports);
|
|
19
|
-
__reExport(src_exports, require("./Paragraph"), module.exports);
|
|
20
|
-
__reExport(src_exports, require("./Headings"), module.exports);
|
|
21
|
-
__reExport(src_exports, require("./wrapChildrenInText"), module.exports);
|
|
22
|
-
__reExport(src_exports, require("./types"), module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./SizableText"),module.exports);r(o,require("./Paragraph"),module.exports);r(o,require("./Headings"),module.exports);r(o,require("./wrapChildrenInText"),module.exports);r(o,require("./types"),module.exports);
|
|
23
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
4
|
"sourcesContent": ["export * from './SizableText'\nexport * from './Paragraph'\nexport * from './Headings'\nexport * from './wrapChildrenInText'\nexport * from './types'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,yBAAd,gBACAE,EAAAF,EAAc,uBADd,gBAEAE,EAAAF,EAAc,sBAFd,gBAGAE,EAAAF,EAAc,gCAHd,gBAIAE,EAAAF,EAAc,mBAJd",
|
|
6
|
+
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
package/dist/cjs/types.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var types_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(types_exports);
|
|
1
|
+
"use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var n=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p(t))!S.call(e,o)&&o!==r&&i(e,o,{get:()=>t[o],enumerable:!(l=a(t,o))||l.enumerable});return e};var x=e=>n(i({},"__esModule",{value:!0}),e);var P={};module.exports=x(P);
|
|
17
2
|
//# sourceMappingURL=types.js.map
|
package/dist/cjs/types.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types.ts"],
|
|
4
4
|
"sourcesContent": ["import { SizableTextProps } from './SizableText'\n\nexport type TextParentStyles = {\n color?: SizableTextProps['color']\n fontWeight?: SizableTextProps['fontWeight']\n fontSize?: SizableTextProps['fontSize']\n fontFamily?: SizableTextProps['fontFamily']\n fontStyle?: SizableTextProps['fontStyle']\n letterSpacing?: SizableTextProps['letterSpacing']\n textAlign?: SizableTextProps['textAlign']\n // all the other text controls\n textProps?: Partial<SizableTextProps>\n noTextWrap?: boolean\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
|
|
6
|
+
"names": ["types_exports", "__toCommonJS"]
|
|
7
7
|
}
|
|
@@ -1,104 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var wrapChildrenInText_exports = {};
|
|
30
|
-
__export(wrapChildrenInText_exports, {
|
|
31
|
-
wrapChildrenInText: () => wrapChildrenInText
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(wrapChildrenInText_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
37
|
-
const {
|
|
38
|
-
children,
|
|
39
|
-
textProps,
|
|
40
|
-
size,
|
|
41
|
-
noTextWrap,
|
|
42
|
-
color,
|
|
43
|
-
fontFamily,
|
|
44
|
-
fontSize,
|
|
45
|
-
fontWeight,
|
|
46
|
-
letterSpacing,
|
|
47
|
-
textAlign,
|
|
48
|
-
fontStyle
|
|
49
|
-
} = propsIn;
|
|
50
|
-
if (noTextWrap || !children) {
|
|
51
|
-
return [children];
|
|
52
|
-
}
|
|
53
|
-
const allChildren = import_react.default.Children.toArray(children);
|
|
54
|
-
const nextChildren = [];
|
|
55
|
-
let lastIsString = false;
|
|
56
|
-
const props = {
|
|
57
|
-
...extraProps
|
|
58
|
-
};
|
|
59
|
-
if (color)
|
|
60
|
-
props.color = color;
|
|
61
|
-
if (fontFamily)
|
|
62
|
-
props.fontFamily = fontFamily;
|
|
63
|
-
if (fontSize)
|
|
64
|
-
props.fontSize = fontSize;
|
|
65
|
-
if (fontWeight)
|
|
66
|
-
props.fontWeight = fontWeight;
|
|
67
|
-
if (letterSpacing)
|
|
68
|
-
props.letterSpacing = letterSpacing;
|
|
69
|
-
if (textAlign)
|
|
70
|
-
props.textAlign = textAlign;
|
|
71
|
-
if (size)
|
|
72
|
-
props.size = size;
|
|
73
|
-
if (fontStyle)
|
|
74
|
-
props.fontStyle = fontStyle;
|
|
75
|
-
function concatStringChildren() {
|
|
76
|
-
if (!lastIsString)
|
|
77
|
-
return;
|
|
78
|
-
const index = nextChildren.length - 1;
|
|
79
|
-
const childrenStrings = nextChildren[index];
|
|
80
|
-
nextChildren[index] = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { ...props, ...textProps, children: childrenStrings }, index);
|
|
81
|
-
}
|
|
82
|
-
for (const child of allChildren) {
|
|
83
|
-
const last = nextChildren[nextChildren.length - 1];
|
|
84
|
-
const isString = typeof child === "string";
|
|
85
|
-
if (isString) {
|
|
86
|
-
if (lastIsString) {
|
|
87
|
-
last.push(child);
|
|
88
|
-
} else {
|
|
89
|
-
nextChildren.push([child]);
|
|
90
|
-
}
|
|
91
|
-
} else {
|
|
92
|
-
concatStringChildren();
|
|
93
|
-
nextChildren.push(child);
|
|
94
|
-
}
|
|
95
|
-
lastIsString = isString;
|
|
96
|
-
}
|
|
97
|
-
concatStringChildren();
|
|
98
|
-
return nextChildren;
|
|
99
|
-
}
|
|
100
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
-
0 && (module.exports = {
|
|
102
|
-
wrapChildrenInText
|
|
103
|
-
});
|
|
1
|
+
"use strict";var A=Object.create;var f=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var I=(t,e)=>{for(var n in e)f(t,n,{get:e[n],enumerable:!0})},T=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of b(e))!F.call(t,l)&&l!==n&&f(t,l,{get:()=>e[l],enumerable:!(s=W(e,l))||s.enumerable});return t};var N=(t,e,n)=>(n=t!=null?A(w(t)):{},T(e||!t||!t.__esModule?f(n,"default",{value:t,enumerable:!0}):n,t)),q=t=>T(f({},"__esModule",{value:!0}),t);var B={};I(B,{wrapChildrenInText:()=>v});module.exports=q(B);var P=require("react/jsx-runtime"),C=N(require("react"));function v(t,e,n){const{children:s,textProps:l,size:p,noTextWrap:R,color:h,fontFamily:g,fontSize:y,fontWeight:S,letterSpacing:d,textAlign:x,fontStyle:m}=e;if(R||!s)return[s];const k=C.default.Children.toArray(s),o=[];let c=!1;const i={...n};h&&(i.color=h),g&&(i.fontFamily=g),y&&(i.fontSize=y),S&&(i.fontWeight=S),d&&(i.letterSpacing=d),x&&(i.textAlign=x),p&&(i.size=p),m&&(i.fontStyle=m);function u(){if(!c)return;const r=o.length-1,a=o[r];o[r]=(0,P.jsx)(t,{...i,...l,children:a},r)}for(const r of k){const a=o[o.length-1],z=typeof r=="string";z?c?a.push(r):o.push([r]):(u(),o.push(r)),c=z}return u(),o}0&&(module.exports={wrapChildrenInText});
|
|
104
2
|
//# sourceMappingURL=wrapChildrenInText.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapChildrenInText.tsx"],
|
|
4
4
|
"sourcesContent": ["import type { SizeTokens } from '@tamagui/web'\nimport React from 'react'\n\nimport { TextParentStyles } from './types'\n\ntype Props = TextParentStyles & {\n children?: React.ReactNode\n size?: SizeTokens\n}\n\nexport function wrapChildrenInText(\n TextComponent: any,\n propsIn: Props & {\n unstyled?: boolean\n },\n extraProps?: Record<string, any>\n) {\n const {\n children,\n textProps,\n size,\n noTextWrap,\n color,\n fontFamily,\n fontSize,\n fontWeight,\n letterSpacing,\n textAlign,\n fontStyle,\n } = propsIn\n\n if (noTextWrap || !children) {\n return [children]\n }\n\n // in the case of using variables, like so:\n // <ListItem>Hello, {name}</ListItem>\n // it gives us props.children as ['Hello, ', 'name']\n // but we don't want to wrap multiple SizableText around each part\n // so we group them\n const allChildren = React.Children.toArray(children)\n const nextChildren: any[] = []\n let lastIsString = false\n const props = {\n ...extraProps,\n }\n\n // to avoid setting undefined\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\n function concatStringChildren() {\n if (!lastIsString) return\n const index = nextChildren.length - 1\n const childrenStrings = nextChildren[index]\n nextChildren[index] = (\n <TextComponent key={index} {...props} {...textProps}>\n {childrenStrings}\n </TextComponent>\n )\n }\n\n for (const child of allChildren) {\n const last = nextChildren[nextChildren.length - 1]\n const isString = typeof child === 'string'\n if (isString) {\n if (lastIsString) {\n last.push(child)\n } else {\n nextChildren.push([child])\n }\n } else {\n concatStringChildren()\n nextChildren.push(child)\n }\n lastIsString = isString\n }\n concatStringChildren()\n\n return nextChildren\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["React"]
|
|
5
|
+
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GA8DM,IAAAI,EAAA,6BA7DNC,EAAkB,oBASX,SAASH,EACdI,EACAC,EAGAC,EACA,CACA,KAAM,CACJ,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,WAAAC,EACA,MAAAC,EACA,WAAAC,EACA,SAAAC,EACA,WAAAC,EACA,cAAAC,EACA,UAAAC,EACA,UAAAC,CACF,EAAIZ,EAEJ,GAAIK,GAAc,CAACH,EACjB,MAAO,CAACA,CAAQ,EAQlB,MAAMW,EAAc,EAAAC,QAAM,SAAS,QAAQZ,CAAQ,EAC7Ca,EAAsB,CAAC,EAC7B,IAAIC,EAAe,GACnB,MAAMC,EAAQ,CACZ,GAAGhB,CACL,EAGIK,IAAOW,EAAM,MAAQX,GACrBC,IAAYU,EAAM,WAAaV,GAC/BC,IAAUS,EAAM,SAAWT,GAC3BC,IAAYQ,EAAM,WAAaR,GAC/BC,IAAeO,EAAM,cAAgBP,GACrCC,IAAWM,EAAM,UAAYN,GAC7BP,IAAMa,EAAM,KAAOb,GACnBQ,IAAWK,EAAM,UAAYL,GAEjC,SAASM,GAAuB,CAC9B,GAAI,CAACF,EAAc,OACnB,MAAMG,EAAQJ,EAAa,OAAS,EAC9BK,EAAkBL,EAAaI,CAAK,EAC1CJ,EAAaI,CAAK,KAChB,OAACpB,EAAA,CAA2B,GAAGkB,EAAQ,GAAGd,EACvC,SAAAiB,GADiBD,CAEpB,CAEJ,CAEA,UAAWE,KAASR,EAAa,CAC/B,MAAMS,EAAOP,EAAaA,EAAa,OAAS,CAAC,EAC3CQ,EAAW,OAAOF,GAAU,SAC9BE,EACEP,EACFM,EAAK,KAAKD,CAAK,EAEfN,EAAa,KAAK,CAACM,CAAK,CAAC,GAG3BH,EAAqB,EACrBH,EAAa,KAAKM,CAAK,GAEzBL,EAAeO,CACjB,CACA,OAAAL,EAAqB,EAEdH,CACT",
|
|
6
|
+
"names": ["wrapChildrenInText_exports", "__export", "wrapChildrenInText", "__toCommonJS", "import_jsx_runtime", "import_react", "TextComponent", "propsIn", "extraProps", "children", "textProps", "size", "noTextWrap", "color", "fontFamily", "fontSize", "fontWeight", "letterSpacing", "textAlign", "fontStyle", "allChildren", "React", "nextChildren", "lastIsString", "props", "concatStringChildren", "index", "childrenStrings", "child", "last", "isString"]
|
|
7
7
|
}
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
var import_vitest = require("vitest");
|
|
4
|
-
var import_wrapChildrenInText = require("./wrapChildrenInText");
|
|
5
|
-
const Comp = () => {
|
|
6
|
-
};
|
|
7
|
-
const re = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-id": Math.random() });
|
|
8
|
-
const reID = re.props["data-id"];
|
|
9
|
-
(0, import_vitest.test)("should wrap all string children, not wrap others", () => {
|
|
10
|
-
const out = (0, import_wrapChildrenInText.wrapChildrenInText)(Comp, {
|
|
11
|
-
children: [re, "a", "b", re, "c", re, "d"]
|
|
12
|
-
});
|
|
13
|
-
(0, import_vitest.expect)(out[0].props["data-id"]).toBe(reID);
|
|
14
|
-
(0, import_vitest.expect)(out[1].type).toBe(Comp);
|
|
15
|
-
(0, import_vitest.expect)(out[1].props.children).toStrictEqual(["a", "b"]);
|
|
16
|
-
(0, import_vitest.expect)(out[2].props["data-id"]).toBe(reID);
|
|
17
|
-
(0, import_vitest.expect)(out[3].type).toBe(Comp);
|
|
18
|
-
(0, import_vitest.expect)(out[3].props.children).toStrictEqual(["c"]);
|
|
19
|
-
(0, import_vitest.expect)(out[4].props["data-id"]).toBe(reID);
|
|
20
|
-
(0, import_vitest.expect)(out[5].type).toBe(Comp);
|
|
21
|
-
(0, import_vitest.expect)(out[5].props.children).toStrictEqual(["d"]);
|
|
22
|
-
});
|
|
23
|
-
(0, import_vitest.test)("should first child string", () => {
|
|
24
|
-
const out = (0, import_wrapChildrenInText.wrapChildrenInText)(Comp, {
|
|
25
|
-
children: ["a", re]
|
|
26
|
-
});
|
|
27
|
-
(0, import_vitest.expect)(out[0].type).toBe(Comp);
|
|
28
|
-
(0, import_vitest.expect)(out[0].props.children).toStrictEqual(["a"]);
|
|
29
|
-
(0, import_vitest.expect)(out[1].props["data-id"]).toBe(reID);
|
|
30
|
-
});
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("vitest"),d=require("./wrapChildrenInText");const r=()=>{},a=(0,e.jsx)("div",{"data-id":Math.random()}),p=a.props["data-id"];(0,t.test)("should wrap all string children, not wrap others",()=>{const o=(0,d.wrapChildrenInText)(r,{children:[a,"a","b",a,"c",a,"d"]});(0,t.expect)(o[0].props["data-id"]).toBe(p),(0,t.expect)(o[1].type).toBe(r),(0,t.expect)(o[1].props.children).toStrictEqual(["a","b"]),(0,t.expect)(o[2].props["data-id"]).toBe(p),(0,t.expect)(o[3].type).toBe(r),(0,t.expect)(o[3].props.children).toStrictEqual(["c"]),(0,t.expect)(o[4].props["data-id"]).toBe(p),(0,t.expect)(o[5].type).toBe(r),(0,t.expect)(o[5].props.children).toStrictEqual(["d"])}),(0,t.test)("should first child string",()=>{const o=(0,d.wrapChildrenInText)(r,{children:["a",a]});(0,t.expect)(o[0].type).toBe(r),(0,t.expect)(o[0].props.children).toStrictEqual(["a"]),(0,t.expect)(o[1].props["data-id"]).toBe(p)});
|
|
31
2
|
//# sourceMappingURL=wrapChildrenInText.test.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapChildrenInText.test.tsx"],
|
|
4
4
|
"sourcesContent": ["import React from 'react'\nimport { expect, test } from 'vitest'\n\nimport { wrapChildrenInText } from './wrapChildrenInText'\n\nconst Comp = () => {}\nconst re = <div data-id={Math.random()} />\nconst reID = re.props['data-id']\n\ntest('should wrap all string children, not wrap others', () => {\n const out = wrapChildrenInText(Comp, {\n children: [re, 'a', 'b', re, 'c', re, 'd'],\n }) as any\n\n expect(out[0].props['data-id']).toBe(reID)\n\n expect(out[1].type).toBe(Comp)\n expect(out[1].props.children).toStrictEqual(['a', 'b'])\n\n expect(out[2].props['data-id']).toBe(reID)\n\n expect(out[3].type).toBe(Comp)\n expect(out[3].props.children).toStrictEqual(['c'])\n\n expect(out[4].props['data-id']).toBe(reID)\n\n expect(out[5].type).toBe(Comp)\n expect(out[5].props.children).toStrictEqual(['d'])\n})\n\ntest('should first child string', () => {\n const out = wrapChildrenInText(Comp, {\n children: ['a', re],\n }) as any\n\n expect(out[0].type).toBe(Comp)\n expect(out[0].props.children).toStrictEqual(['a'])\n\n expect(out[1].props['data-id']).toBe(reID)\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAMW,IAAAA,EAAA,6BALXC,EAA6B,kBAE7BC,EAAmC,gCAEnC,MAAMC,EAAO,IAAM,CAAC,EACdC,KAAK,OAAC,OAAI,UAAS,KAAK,OAAO,EAAG,EAClCC,EAAOD,EAAG,MAAM,SAAS,KAE/B,QAAK,mDAAoD,IAAM,CAC7D,MAAME,KAAM,sBAAmBH,EAAM,CACnC,SAAU,CAACC,EAAI,IAAK,IAAKA,EAAI,IAAKA,EAAI,GAAG,CAC3C,CAAC,KAED,UAAOE,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,KAEzC,UAAOC,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,KAC7B,UAAOG,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,IAAK,GAAG,CAAC,KAEtD,UAAOA,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,KAEzC,UAAOC,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,KAC7B,UAAOG,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,KAEjD,UAAOA,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,KAEzC,UAAOC,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,KAC7B,UAAOG,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CACnD,CAAC,KAED,QAAK,4BAA6B,IAAM,CACtC,MAAMA,KAAM,sBAAmBH,EAAM,CACnC,SAAU,CAAC,IAAKC,CAAE,CACpB,CAAC,KAED,UAAOE,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,KAC7B,UAAOG,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,KAEjD,UAAOA,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,CAC3C,CAAC",
|
|
6
|
+
"names": ["import_jsx_runtime", "import_vitest", "import_wrapChildrenInText", "Comp", "re", "reID", "out"]
|
|
7
7
|
}
|
package/dist/esm/Headings.js
CHANGED
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Paragraph } from "./Paragraph";
|
|
3
|
-
const Heading = styled(Paragraph, {
|
|
4
|
-
tag: "span",
|
|
5
|
-
name: "Heading",
|
|
6
|
-
accessibilityRole: "header",
|
|
7
|
-
fontFamily: "$heading",
|
|
8
|
-
size: "$8",
|
|
9
|
-
margin: 0
|
|
10
|
-
});
|
|
11
|
-
const H1 = styled(Heading, {
|
|
12
|
-
name: "H1",
|
|
13
|
-
tag: "h1",
|
|
14
|
-
size: "$10"
|
|
15
|
-
});
|
|
16
|
-
const H2 = styled(Heading, {
|
|
17
|
-
name: "H2",
|
|
18
|
-
tag: "h2",
|
|
19
|
-
size: "$9"
|
|
20
|
-
});
|
|
21
|
-
const H3 = styled(Heading, {
|
|
22
|
-
name: "H3",
|
|
23
|
-
tag: "h3",
|
|
24
|
-
size: "$8"
|
|
25
|
-
});
|
|
26
|
-
const H4 = styled(Heading, {
|
|
27
|
-
name: "H4",
|
|
28
|
-
tag: "h4",
|
|
29
|
-
size: "$7"
|
|
30
|
-
});
|
|
31
|
-
const H5 = styled(Heading, {
|
|
32
|
-
name: "H5",
|
|
33
|
-
tag: "h5",
|
|
34
|
-
size: "$6"
|
|
35
|
-
});
|
|
36
|
-
const H6 = styled(Heading, {
|
|
37
|
-
name: "H6",
|
|
38
|
-
tag: "h6",
|
|
39
|
-
size: "$5"
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
H1,
|
|
43
|
-
H2,
|
|
44
|
-
H3,
|
|
45
|
-
H4,
|
|
46
|
-
H5,
|
|
47
|
-
H6,
|
|
48
|
-
Heading
|
|
49
|
-
};
|
|
1
|
+
import{styled as e}from"@tamagui/web";import{Paragraph as a}from"./Paragraph";const t=e(a,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),s=e(t,{name:"H1",tag:"h1",size:"$10"}),i=e(t,{name:"H2",tag:"h2",size:"$9"}),r=e(t,{name:"H3",tag:"h3",size:"$8"}),H=e(t,{name:"H4",tag:"h4",size:"$7"}),m=e(t,{name:"H5",tag:"h5",size:"$6"}),g=e(t,{name:"H6",tag:"h6",size:"$5"});export{s as H1,i as H2,r as H3,H as H4,m as H5,g as H6,t as Heading};
|
|
50
2
|
//# sourceMappingURL=Headings.js.map
|
package/dist/esm/Headings.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Headings.tsx"],
|
|
4
4
|
"sourcesContent": ["import { styled } from '@tamagui/web'\n\nimport { Paragraph } from './Paragraph'\n\nexport const Heading = styled(Paragraph, {\n tag: 'span',\n name: 'Heading',\n accessibilityRole: 'header',\n fontFamily: '$heading',\n size: '$8',\n margin: 0,\n})\n\nexport const H1 = styled(Heading, {\n name: 'H1',\n tag: 'h1',\n size: '$10',\n})\n\nexport const H2 = styled(Heading, {\n name: 'H2',\n tag: 'h2',\n size: '$9',\n})\n\nexport const H3 = styled(Heading, {\n name: 'H3',\n tag: 'h3',\n size: '$8',\n})\n\nexport const H4 = styled(Heading, {\n name: 'H4',\n tag: 'h4',\n size: '$7',\n})\n\nexport const H5 = styled(Heading, {\n name: 'H5',\n tag: 'h5',\n size: '$6',\n})\n\nexport const H6 = styled(Heading, {\n name: 'H6',\n tag: 'h6',\n size: '$5',\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,UAAAA,MAAc,eAEvB,OAAS,aAAAC,MAAiB,cAEnB,MAAMC,EAAUF,EAAOC,EAAW,CACvC,IAAK,OACL,KAAM,UACN,kBAAmB,SACnB,WAAY,WACZ,KAAM,KACN,OAAQ,CACV,CAAC,EAEYE,EAAKH,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,KACR,CAAC,EAEYE,EAAKJ,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYG,EAAKL,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYI,EAAKN,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYK,EAAKP,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYM,EAAKR,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC",
|
|
6
|
+
"names": ["styled", "Paragraph", "Heading", "H1", "H2", "H3", "H4", "H5", "H6"]
|
|
7
7
|
}
|
package/dist/esm/Headings.mjs
CHANGED
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Paragraph } from "./Paragraph";
|
|
3
|
-
const Heading = styled(Paragraph, {
|
|
4
|
-
tag: "span",
|
|
5
|
-
name: "Heading",
|
|
6
|
-
accessibilityRole: "header",
|
|
7
|
-
fontFamily: "$heading",
|
|
8
|
-
size: "$8",
|
|
9
|
-
margin: 0
|
|
10
|
-
});
|
|
11
|
-
const H1 = styled(Heading, {
|
|
12
|
-
name: "H1",
|
|
13
|
-
tag: "h1",
|
|
14
|
-
size: "$10"
|
|
15
|
-
});
|
|
16
|
-
const H2 = styled(Heading, {
|
|
17
|
-
name: "H2",
|
|
18
|
-
tag: "h2",
|
|
19
|
-
size: "$9"
|
|
20
|
-
});
|
|
21
|
-
const H3 = styled(Heading, {
|
|
22
|
-
name: "H3",
|
|
23
|
-
tag: "h3",
|
|
24
|
-
size: "$8"
|
|
25
|
-
});
|
|
26
|
-
const H4 = styled(Heading, {
|
|
27
|
-
name: "H4",
|
|
28
|
-
tag: "h4",
|
|
29
|
-
size: "$7"
|
|
30
|
-
});
|
|
31
|
-
const H5 = styled(Heading, {
|
|
32
|
-
name: "H5",
|
|
33
|
-
tag: "h5",
|
|
34
|
-
size: "$6"
|
|
35
|
-
});
|
|
36
|
-
const H6 = styled(Heading, {
|
|
37
|
-
name: "H6",
|
|
38
|
-
tag: "h6",
|
|
39
|
-
size: "$5"
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
H1,
|
|
43
|
-
H2,
|
|
44
|
-
H3,
|
|
45
|
-
H4,
|
|
46
|
-
H5,
|
|
47
|
-
H6,
|
|
48
|
-
Heading
|
|
49
|
-
};
|
|
1
|
+
import{styled as e}from"@tamagui/web";import{Paragraph as a}from"./Paragraph";const t=e(a,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),s=e(t,{name:"H1",tag:"h1",size:"$10"}),i=e(t,{name:"H2",tag:"h2",size:"$9"}),r=e(t,{name:"H3",tag:"h3",size:"$8"}),H=e(t,{name:"H4",tag:"h4",size:"$7"}),m=e(t,{name:"H5",tag:"h5",size:"$6"}),g=e(t,{name:"H6",tag:"h6",size:"$5"});export{s as H1,i as H2,r as H3,H as H4,m as H5,g as H6,t as Heading};
|
|
50
2
|
//# sourceMappingURL=Headings.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Headings.tsx"],
|
|
4
4
|
"sourcesContent": ["import { styled } from '@tamagui/web'\n\nimport { Paragraph } from './Paragraph'\n\nexport const Heading = styled(Paragraph, {\n tag: 'span',\n name: 'Heading',\n accessibilityRole: 'header',\n fontFamily: '$heading',\n size: '$8',\n margin: 0,\n})\n\nexport const H1 = styled(Heading, {\n name: 'H1',\n tag: 'h1',\n size: '$10',\n})\n\nexport const H2 = styled(Heading, {\n name: 'H2',\n tag: 'h2',\n size: '$9',\n})\n\nexport const H3 = styled(Heading, {\n name: 'H3',\n tag: 'h3',\n size: '$8',\n})\n\nexport const H4 = styled(Heading, {\n name: 'H4',\n tag: 'h4',\n size: '$7',\n})\n\nexport const H5 = styled(Heading, {\n name: 'H5',\n tag: 'h5',\n size: '$6',\n})\n\nexport const H6 = styled(Heading, {\n name: 'H6',\n tag: 'h6',\n size: '$5',\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,UAAAA,MAAc,eAEvB,OAAS,aAAAC,MAAiB,cAEnB,MAAMC,EAAUF,EAAOC,EAAW,CACvC,IAAK,OACL,KAAM,UACN,kBAAmB,SACnB,WAAY,WACZ,KAAM,KACN,OAAQ,CACV,CAAC,EAEYE,EAAKH,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,KACR,CAAC,EAEYE,EAAKJ,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYG,EAAKL,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYI,EAAKN,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYK,EAAKP,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC,EAEYM,EAAKR,EAAOE,EAAS,CAChC,KAAM,KACN,IAAK,KACL,KAAM,IACR,CAAC",
|
|
6
|
+
"names": ["styled", "Paragraph", "Heading", "H1", "H2", "H3", "H4", "H5", "H6"]
|
|
7
7
|
}
|
package/dist/esm/Paragraph.js
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SizableText } from "./SizableText";
|
|
3
|
-
const Paragraph = styled(SizableText, {
|
|
4
|
-
name: "Paragraph",
|
|
5
|
-
tag: "p",
|
|
6
|
-
userSelect: "auto",
|
|
7
|
-
color: "$color",
|
|
8
|
-
size: "$true"
|
|
9
|
-
});
|
|
10
|
-
export {
|
|
11
|
-
Paragraph
|
|
12
|
-
};
|
|
1
|
+
import{styled as r}from"@tamagui/web";import{SizableText as a}from"./SizableText";const p=r(a,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true"});export{p as Paragraph};
|
|
13
2
|
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Paragraph.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\n\nimport { SizableText } from './SizableText'\n\nexport const Paragraph = styled(SizableText, {\n name: 'Paragraph',\n tag: 'p',\n userSelect: 'auto',\n color: '$color',\n size: '$true',\n})\n\nexport type ParagraphProps = GetProps<typeof Paragraph>\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,UAAAA,MAAc,eAEjC,OAAS,eAAAC,MAAmB,gBAErB,MAAMC,EAAYF,EAAOC,EAAa,CAC3C,KAAM,YACN,IAAK,IACL,WAAY,OACZ,MAAO,SACP,KAAM,OACR,CAAC",
|
|
6
|
+
"names": ["styled", "SizableText", "Paragraph"]
|
|
7
7
|
}
|