@tamagui/text 1.14.1 → 1.14.2

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 (63) hide show
  1. package/dist/cjs/Headings.js +79 -1
  2. package/dist/cjs/Headings.js.map +2 -2
  3. package/dist/cjs/Paragraph.js +36 -1
  4. package/dist/cjs/Paragraph.js.map +2 -2
  5. package/dist/cjs/SizableText.js +39 -1
  6. package/dist/cjs/SizableText.js.map +2 -2
  7. package/dist/cjs/index.js +22 -1
  8. package/dist/cjs/index.js.map +2 -2
  9. package/dist/cjs/types.js +16 -1
  10. package/dist/cjs/types.js.map +2 -2
  11. package/dist/cjs/wrapChildrenInText.js +103 -1
  12. package/dist/cjs/wrapChildrenInText.js.map +2 -2
  13. package/dist/cjs/wrapChildrenInText.test.js +30 -1
  14. package/dist/cjs/wrapChildrenInText.test.js.map +2 -2
  15. package/dist/esm/Headings.js +49 -1
  16. package/dist/esm/Headings.js.map +2 -2
  17. package/dist/esm/Headings.mjs +49 -1
  18. package/dist/esm/Headings.mjs.map +2 -2
  19. package/dist/esm/Paragraph.js +12 -1
  20. package/dist/esm/Paragraph.js.map +2 -2
  21. package/dist/esm/Paragraph.mjs +12 -1
  22. package/dist/esm/Paragraph.mjs.map +2 -2
  23. package/dist/esm/SizableText.js +15 -1
  24. package/dist/esm/SizableText.js.map +2 -2
  25. package/dist/esm/SizableText.mjs +15 -1
  26. package/dist/esm/SizableText.mjs.map +2 -2
  27. package/dist/esm/index.js +5 -1
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/index.mjs +5 -1
  30. package/dist/esm/index.mjs.map +1 -1
  31. package/dist/esm/wrapChildrenInText.js +69 -1
  32. package/dist/esm/wrapChildrenInText.js.map +2 -2
  33. package/dist/esm/wrapChildrenInText.mjs +69 -1
  34. package/dist/esm/wrapChildrenInText.mjs.map +2 -2
  35. package/dist/esm/wrapChildrenInText.test.js +29 -1
  36. package/dist/esm/wrapChildrenInText.test.js.map +2 -2
  37. package/dist/esm/wrapChildrenInText.test.mjs +29 -1
  38. package/dist/esm/wrapChildrenInText.test.mjs.map +2 -2
  39. package/dist/jsx/Headings.js +49 -1
  40. package/dist/jsx/Headings.js.map +2 -2
  41. package/dist/jsx/Headings.mjs +49 -1
  42. package/dist/jsx/Headings.mjs.map +2 -2
  43. package/dist/jsx/Paragraph.js +12 -1
  44. package/dist/jsx/Paragraph.js.map +2 -2
  45. package/dist/jsx/Paragraph.mjs +12 -1
  46. package/dist/jsx/Paragraph.mjs.map +2 -2
  47. package/dist/jsx/SizableText.js +15 -1
  48. package/dist/jsx/SizableText.js.map +2 -2
  49. package/dist/jsx/SizableText.mjs +15 -1
  50. package/dist/jsx/SizableText.mjs.map +2 -2
  51. package/dist/jsx/index.js +5 -1
  52. package/dist/jsx/index.js.map +1 -1
  53. package/dist/jsx/index.mjs +5 -1
  54. package/dist/jsx/index.mjs.map +1 -1
  55. package/dist/jsx/wrapChildrenInText.js +68 -1
  56. package/dist/jsx/wrapChildrenInText.js.map +2 -2
  57. package/dist/jsx/wrapChildrenInText.mjs +68 -1
  58. package/dist/jsx/wrapChildrenInText.mjs.map +2 -2
  59. package/dist/jsx/wrapChildrenInText.test.js +28 -1
  60. package/dist/jsx/wrapChildrenInText.test.js.map +2 -2
  61. package/dist/jsx/wrapChildrenInText.test.mjs +28 -1
  62. package/dist/jsx/wrapChildrenInText.test.mjs.map +2 -2
  63. package/package.json +5 -5
@@ -1,2 +1,16 @@
1
- import{getFontSized as e}from"@tamagui/get-font-sized";import{Text as t,styled as o}from"@tamagui/web";const s=o(t,{name:"SizableText",fontFamily:"$body",variants:{size:e},defaultVariants:{size:"$true"}});export{s as SizableText};
1
+ import { getFontSized } from "@tamagui/get-font-sized";
2
+ import { Text, styled } from "@tamagui/web";
3
+ const SizableText = styled(Text, {
4
+ name: "SizableText",
5
+ fontFamily: "$body",
6
+ variants: {
7
+ size: getFontSized
8
+ },
9
+ defaultVariants: {
10
+ size: "$true"
11
+ }
12
+ });
13
+ export {
14
+ SizableText
15
+ };
2
16
  //# 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": "AAAA,OAAS,gBAAAA,MAAoB,0BAC7B,OAAmB,QAAAC,EAAM,UAAAC,MAAc,eAEhC,MAAMC,EAAcD,EAAOD,EAAM,CACtC,KAAM,cACN,WAAY,QAEZ,SAAU,CACR,KAAMD,CACR,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC",
6
- "names": ["getFontSized", "Text", "styled", "SizableText"]
5
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;AAEhC,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,16 @@
1
- import{getFontSized as e}from"@tamagui/get-font-sized";import{Text as t,styled as o}from"@tamagui/web";const s=o(t,{name:"SizableText",fontFamily:"$body",variants:{size:e},defaultVariants:{size:"$true"}});export{s as SizableText};
1
+ import { getFontSized } from "@tamagui/get-font-sized";
2
+ import { Text, styled } from "@tamagui/web";
3
+ const SizableText = styled(Text, {
4
+ name: "SizableText",
5
+ fontFamily: "$body",
6
+ variants: {
7
+ size: getFontSized
8
+ },
9
+ defaultVariants: {
10
+ size: "$true"
11
+ }
12
+ });
13
+ export {
14
+ SizableText
15
+ };
2
16
  //# sourceMappingURL=SizableText.mjs.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": "AAAA,OAAS,gBAAAA,MAAoB,0BAC7B,OAAmB,QAAAC,EAAM,UAAAC,MAAc,eAEhC,MAAMC,EAAcD,EAAOD,EAAM,CACtC,KAAM,cACN,WAAY,QAEZ,SAAU,CACR,KAAMD,CACR,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC",
6
- "names": ["getFontSized", "Text", "styled", "SizableText"]
5
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,SAAmB,MAAM,cAAc;AAEhC,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;",
6
+ "names": []
7
7
  }
package/dist/jsx/index.js CHANGED
@@ -1,2 +1,6 @@
1
- export*from"./SizableText";export*from"./Paragraph";export*from"./Headings";export*from"./wrapChildrenInText";export*from"./types";
1
+ export * from "./SizableText";
2
+ export * from "./Paragraph";
3
+ export * from "./Headings";
4
+ export * from "./wrapChildrenInText";
5
+ export * from "./types";
2
6
  //# sourceMappingURL=index.js.map
@@ -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": "AAAA,WAAc,gBACd,WAAc,cACd,WAAc,aACd,WAAc,uBACd,WAAc",
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,6 @@
1
- export*from"./SizableText";export*from"./Paragraph";export*from"./Headings";export*from"./wrapChildrenInText";export*from"./types";
1
+ export * from "./SizableText";
2
+ export * from "./Paragraph";
3
+ export * from "./Headings";
4
+ export * from "./wrapChildrenInText";
5
+ export * from "./types";
2
6
  //# sourceMappingURL=index.mjs.map
@@ -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": "AAAA,WAAc,gBACd,WAAc,cACd,WAAc,aACd,WAAc,uBACd,WAAc",
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,69 @@
1
- import W from"react";function I(T,C,P){const{children:i,textProps:R,size:s,noTextWrap:k,color:l,fontFamily:f,fontSize:c,fontWeight:a,letterSpacing:p,textAlign:h,fontStyle:g}=C;if(k||!i)return[i];const A=W.Children.toArray(i),e=[];let o=!1;const t={...P};l&&(t.color=l),f&&(t.fontFamily=f),c&&(t.fontSize=c),a&&(t.fontWeight=a),p&&(t.letterSpacing=p),h&&(t.textAlign=h),s&&(t.size=s),g&&(t.fontStyle=g);function y(){if(!o)return;const n=e.length-1,r=e[n];e[n]=<T key={n}{...t}{...R}>{r}</T>}for(const n of A){const r=e[e.length-1],S=typeof n=="string";S?o?r.push(n):e.push([n]):(y(),e.push(n)),o=S}return y(),e}export{I as wrapChildrenInText};
1
+ import React from "react";
2
+ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
3
+ const {
4
+ children,
5
+ textProps,
6
+ size,
7
+ noTextWrap,
8
+ color,
9
+ fontFamily,
10
+ fontSize,
11
+ fontWeight,
12
+ letterSpacing,
13
+ textAlign,
14
+ fontStyle
15
+ } = propsIn;
16
+ if (noTextWrap || !children) {
17
+ return [children];
18
+ }
19
+ const allChildren = React.Children.toArray(children);
20
+ const nextChildren = [];
21
+ let lastIsString = false;
22
+ const props = {
23
+ ...extraProps
24
+ };
25
+ if (color)
26
+ props.color = color;
27
+ if (fontFamily)
28
+ props.fontFamily = fontFamily;
29
+ if (fontSize)
30
+ props.fontSize = fontSize;
31
+ if (fontWeight)
32
+ props.fontWeight = fontWeight;
33
+ if (letterSpacing)
34
+ props.letterSpacing = letterSpacing;
35
+ if (textAlign)
36
+ props.textAlign = textAlign;
37
+ if (size)
38
+ props.size = size;
39
+ if (fontStyle)
40
+ props.fontStyle = fontStyle;
41
+ function concatStringChildren() {
42
+ if (!lastIsString)
43
+ return;
44
+ const index = nextChildren.length - 1;
45
+ const childrenStrings = nextChildren[index];
46
+ nextChildren[index] = <TextComponent key={index} {...props} {...textProps}>{childrenStrings}</TextComponent>;
47
+ }
48
+ for (const child of allChildren) {
49
+ const last = nextChildren[nextChildren.length - 1];
50
+ const isString = typeof child === "string";
51
+ if (isString) {
52
+ if (lastIsString) {
53
+ last.push(child);
54
+ } else {
55
+ nextChildren.push([child]);
56
+ }
57
+ } else {
58
+ concatStringChildren();
59
+ nextChildren.push(child);
60
+ }
61
+ lastIsString = isString;
62
+ }
63
+ concatStringChildren();
64
+ return nextChildren;
65
+ }
66
+ export {
67
+ wrapChildrenInText
68
+ };
2
69
  //# 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": "AACA,OAAOA,MAAW,QASX,SAASC,EACdC,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,EAAchB,EAAM,SAAS,QAAQK,CAAQ,EAC7CY,EAAsB,CAAC,EAC7B,IAAIC,EAAe,GACnB,MAAMC,EAAQ,CACZ,GAAGf,CACL,EAGIK,IAAOU,EAAM,MAAQV,GACrBC,IAAYS,EAAM,WAAaT,GAC/BC,IAAUQ,EAAM,SAAWR,GAC3BC,IAAYO,EAAM,WAAaP,GAC/BC,IAAeM,EAAM,cAAgBN,GACrCC,IAAWK,EAAM,UAAYL,GAC7BP,IAAMY,EAAM,KAAOZ,GACnBQ,IAAWI,EAAM,UAAYJ,GAEjC,SAASK,GAAuB,CAC9B,GAAI,CAACF,EAAc,OACnB,MAAMG,EAAQJ,EAAa,OAAS,EAC9BK,EAAkBL,EAAaI,CAAK,EAC1CJ,EAAaI,CAAK,EAChB,CAACnB,EAAc,KAAKmB,MAAWF,MAAWb,IACvCgB,EACH,EAFCpB,EAIL,CAEA,UAAWqB,KAASP,EAAa,CAC/B,MAAMQ,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": ["React", "wrapChildrenInText", "TextComponent", "propsIn", "extraProps", "children", "textProps", "size", "noTextWrap", "color", "fontFamily", "fontSize", "fontWeight", "letterSpacing", "textAlign", "fontStyle", "allChildren", "nextChildren", "lastIsString", "props", "concatStringChildren", "index", "childrenStrings", "child", "last", "isString"]
5
+ "mappings": "AACA,OAAO,WAAW;AASX,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC,UAAU;AAC3B,WAAO,CAAC,QAAQ;AAAA,EAClB;AAOA,QAAM,cAAc,MAAM,SAAS,QAAQ,QAAQ;AACnD,QAAM,eAAsB,CAAC;AAC7B,MAAI,eAAe;AACnB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,MAAI;AAAO,UAAM,QAAQ;AACzB,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAU,UAAM,WAAW;AAC/B,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAe,UAAM,gBAAgB;AACzC,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAM,UAAM,OAAO;AACvB,MAAI;AAAW,UAAM,YAAY;AAEjC,WAAS,uBAAuB;AAC9B,QAAI,CAAC;AAAc;AACnB,UAAM,QAAQ,aAAa,SAAS;AACpC,UAAM,kBAAkB,aAAa,KAAK;AAC1C,iBAAa,KAAK,IAChB,CAAC,cAAc,KAAK,WAAW,WAAW,YACvC,gBACH,EAFC;AAAA,EAIL;AAEA,aAAW,SAAS,aAAa;AAC/B,UAAM,OAAO,aAAa,aAAa,SAAS,CAAC;AACjD,UAAM,WAAW,OAAO,UAAU;AAClC,QAAI,UAAU;AACZ,UAAI,cAAc;AAChB,aAAK,KAAK,KAAK;AAAA,MACjB,OAAO;AACL,qBAAa,KAAK,CAAC,KAAK,CAAC;AAAA,MAC3B;AAAA,IACF,OAAO;AACL,2BAAqB;AACrB,mBAAa,KAAK,KAAK;AAAA,IACzB;AACA,mBAAe;AAAA,EACjB;AACA,uBAAqB;AAErB,SAAO;AACT;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,69 @@
1
- import W from"react";function I(T,C,P){const{children:i,textProps:R,size:s,noTextWrap:k,color:l,fontFamily:f,fontSize:c,fontWeight:a,letterSpacing:p,textAlign:h,fontStyle:g}=C;if(k||!i)return[i];const A=W.Children.toArray(i),e=[];let o=!1;const t={...P};l&&(t.color=l),f&&(t.fontFamily=f),c&&(t.fontSize=c),a&&(t.fontWeight=a),p&&(t.letterSpacing=p),h&&(t.textAlign=h),s&&(t.size=s),g&&(t.fontStyle=g);function y(){if(!o)return;const n=e.length-1,r=e[n];e[n]=<T key={n}{...t}{...R}>{r}</T>}for(const n of A){const r=e[e.length-1],S=typeof n=="string";S?o?r.push(n):e.push([n]):(y(),e.push(n)),o=S}return y(),e}export{I as wrapChildrenInText};
1
+ import React from "react";
2
+ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
3
+ const {
4
+ children,
5
+ textProps,
6
+ size,
7
+ noTextWrap,
8
+ color,
9
+ fontFamily,
10
+ fontSize,
11
+ fontWeight,
12
+ letterSpacing,
13
+ textAlign,
14
+ fontStyle
15
+ } = propsIn;
16
+ if (noTextWrap || !children) {
17
+ return [children];
18
+ }
19
+ const allChildren = React.Children.toArray(children);
20
+ const nextChildren = [];
21
+ let lastIsString = false;
22
+ const props = {
23
+ ...extraProps
24
+ };
25
+ if (color)
26
+ props.color = color;
27
+ if (fontFamily)
28
+ props.fontFamily = fontFamily;
29
+ if (fontSize)
30
+ props.fontSize = fontSize;
31
+ if (fontWeight)
32
+ props.fontWeight = fontWeight;
33
+ if (letterSpacing)
34
+ props.letterSpacing = letterSpacing;
35
+ if (textAlign)
36
+ props.textAlign = textAlign;
37
+ if (size)
38
+ props.size = size;
39
+ if (fontStyle)
40
+ props.fontStyle = fontStyle;
41
+ function concatStringChildren() {
42
+ if (!lastIsString)
43
+ return;
44
+ const index = nextChildren.length - 1;
45
+ const childrenStrings = nextChildren[index];
46
+ nextChildren[index] = <TextComponent key={index} {...props} {...textProps}>{childrenStrings}</TextComponent>;
47
+ }
48
+ for (const child of allChildren) {
49
+ const last = nextChildren[nextChildren.length - 1];
50
+ const isString = typeof child === "string";
51
+ if (isString) {
52
+ if (lastIsString) {
53
+ last.push(child);
54
+ } else {
55
+ nextChildren.push([child]);
56
+ }
57
+ } else {
58
+ concatStringChildren();
59
+ nextChildren.push(child);
60
+ }
61
+ lastIsString = isString;
62
+ }
63
+ concatStringChildren();
64
+ return nextChildren;
65
+ }
66
+ export {
67
+ wrapChildrenInText
68
+ };
2
69
  //# sourceMappingURL=wrapChildrenInText.mjs.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": "AACA,OAAOA,MAAW,QASX,SAASC,EACdC,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,EAAchB,EAAM,SAAS,QAAQK,CAAQ,EAC7CY,EAAsB,CAAC,EAC7B,IAAIC,EAAe,GACnB,MAAMC,EAAQ,CACZ,GAAGf,CACL,EAGIK,IAAOU,EAAM,MAAQV,GACrBC,IAAYS,EAAM,WAAaT,GAC/BC,IAAUQ,EAAM,SAAWR,GAC3BC,IAAYO,EAAM,WAAaP,GAC/BC,IAAeM,EAAM,cAAgBN,GACrCC,IAAWK,EAAM,UAAYL,GAC7BP,IAAMY,EAAM,KAAOZ,GACnBQ,IAAWI,EAAM,UAAYJ,GAEjC,SAASK,GAAuB,CAC9B,GAAI,CAACF,EAAc,OACnB,MAAMG,EAAQJ,EAAa,OAAS,EAC9BK,EAAkBL,EAAaI,CAAK,EAC1CJ,EAAaI,CAAK,EAChB,CAACnB,EAAc,KAAKmB,MAAWF,MAAWb,IACvCgB,EACH,EAFCpB,EAIL,CAEA,UAAWqB,KAASP,EAAa,CAC/B,MAAMQ,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": ["React", "wrapChildrenInText", "TextComponent", "propsIn", "extraProps", "children", "textProps", "size", "noTextWrap", "color", "fontFamily", "fontSize", "fontWeight", "letterSpacing", "textAlign", "fontStyle", "allChildren", "nextChildren", "lastIsString", "props", "concatStringChildren", "index", "childrenStrings", "child", "last", "isString"]
5
+ "mappings": "AACA,OAAO,WAAW;AASX,SAAS,mBACd,eACA,SAGA,YACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,cAAc,CAAC,UAAU;AAC3B,WAAO,CAAC,QAAQ;AAAA,EAClB;AAOA,QAAM,cAAc,MAAM,SAAS,QAAQ,QAAQ;AACnD,QAAM,eAAsB,CAAC;AAC7B,MAAI,eAAe;AACnB,QAAM,QAAQ;AAAA,IACZ,GAAG;AAAA,EACL;AAGA,MAAI;AAAO,UAAM,QAAQ;AACzB,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAU,UAAM,WAAW;AAC/B,MAAI;AAAY,UAAM,aAAa;AACnC,MAAI;AAAe,UAAM,gBAAgB;AACzC,MAAI;AAAW,UAAM,YAAY;AACjC,MAAI;AAAM,UAAM,OAAO;AACvB,MAAI;AAAW,UAAM,YAAY;AAEjC,WAAS,uBAAuB;AAC9B,QAAI,CAAC;AAAc;AACnB,UAAM,QAAQ,aAAa,SAAS;AACpC,UAAM,kBAAkB,aAAa,KAAK;AAC1C,iBAAa,KAAK,IAChB,CAAC,cAAc,KAAK,WAAW,WAAW,YACvC,gBACH,EAFC;AAAA,EAIL;AAEA,aAAW,SAAS,aAAa;AAC/B,UAAM,OAAO,aAAa,aAAa,SAAS,CAAC;AACjD,UAAM,WAAW,OAAO,UAAU;AAClC,QAAI,UAAU;AACZ,UAAI,cAAc;AAChB,aAAK,KAAK,KAAK;AAAA,MACjB,OAAO;AACL,qBAAa,KAAK,CAAC,KAAK,CAAC;AAAA,MAC3B;AAAA,IACF,OAAO;AACL,2BAAqB;AACrB,mBAAa,KAAK,KAAK;AAAA,IACzB;AACA,mBAAe;AAAA,EACjB;AACA,uBAAqB;AAErB,SAAO;AACT;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,29 @@
1
- import{expect as o,test as e}from"vitest";import{wrapChildrenInText as d}from"./wrapChildrenInText";const r=()=>{},a=<div data-id={Math.random()}/>,p=a.props["data-id"];e("should wrap all string children, not wrap others",()=>{const t=d(r,{children:[a,"a","b",a,"c",a,"d"]});o(t[0].props["data-id"]).toBe(p),o(t[1].type).toBe(r),o(t[1].props.children).toStrictEqual(["a","b"]),o(t[2].props["data-id"]).toBe(p),o(t[3].type).toBe(r),o(t[3].props.children).toStrictEqual(["c"]),o(t[4].props["data-id"]).toBe(p),o(t[5].type).toBe(r),o(t[5].props.children).toStrictEqual(["d"])}),e("should first child string",()=>{const t=d(r,{children:["a",a]});o(t[0].type).toBe(r),o(t[0].props.children).toStrictEqual(["a"]),o(t[1].props["data-id"]).toBe(p)});
1
+ import { expect, test } from "vitest";
2
+ import { wrapChildrenInText } from "./wrapChildrenInText";
3
+ const Comp = () => {
4
+ };
5
+ const re = <div data-id={Math.random()} />;
6
+ const reID = re.props["data-id"];
7
+ test("should wrap all string children, not wrap others", () => {
8
+ const out = wrapChildrenInText(Comp, {
9
+ children: [re, "a", "b", re, "c", re, "d"]
10
+ });
11
+ expect(out[0].props["data-id"]).toBe(reID);
12
+ expect(out[1].type).toBe(Comp);
13
+ expect(out[1].props.children).toStrictEqual(["a", "b"]);
14
+ expect(out[2].props["data-id"]).toBe(reID);
15
+ expect(out[3].type).toBe(Comp);
16
+ expect(out[3].props.children).toStrictEqual(["c"]);
17
+ expect(out[4].props["data-id"]).toBe(reID);
18
+ expect(out[5].type).toBe(Comp);
19
+ expect(out[5].props.children).toStrictEqual(["d"]);
20
+ });
21
+ test("should first child string", () => {
22
+ const out = wrapChildrenInText(Comp, {
23
+ children: ["a", re]
24
+ });
25
+ expect(out[0].type).toBe(Comp);
26
+ expect(out[0].props.children).toStrictEqual(["a"]);
27
+ expect(out[1].props["data-id"]).toBe(reID);
28
+ });
2
29
  //# 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": "AACA,OAAS,UAAAA,EAAQ,QAAAC,MAAY,SAE7B,OAAS,sBAAAC,MAA0B,uBAEnC,MAAMC,EAAO,IAAM,CAAC,EACdC,EAAK,CAAC,IAAI,SAAS,KAAK,OAAO,EAAG,GAClCC,EAAOD,EAAG,MAAM,SAAS,EAE/BH,EAAK,mDAAoD,IAAM,CAC7D,MAAMK,EAAMJ,EAAmBC,EAAM,CACnC,SAAU,CAACC,EAAI,IAAK,IAAKA,EAAI,IAAKA,EAAI,GAAG,CAC3C,CAAC,EAEDJ,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,IAAK,GAAG,CAAC,EAEtDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,EAEjDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CACnD,CAAC,EAEDL,EAAK,4BAA6B,IAAM,CACtC,MAAMK,EAAMJ,EAAmBC,EAAM,CACnC,SAAU,CAAC,IAAKC,CAAE,CACpB,CAAC,EAEDJ,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,EAEjDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,CAC3C,CAAC",
6
- "names": ["expect", "test", "wrapChildrenInText", "Comp", "re", "reID", "out"]
5
+ "mappings": "AACA,SAAS,QAAQ,YAAY;AAE7B,SAAS,0BAA0B;AAEnC,MAAM,OAAO,MAAM;AAAC;AACpB,MAAM,KAAK,CAAC,IAAI,SAAS,KAAK,OAAO,GAAG;AACxC,MAAM,OAAO,GAAG,MAAM,SAAS;AAE/B,KAAK,oDAAoD,MAAM;AAC7D,QAAM,MAAM,mBAAmB,MAAM;AAAA,IACnC,UAAU,CAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,GAAG;AAAA,EAC3C,CAAC;AAED,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,KAAK,GAAG,CAAC;AAEtD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AAEjD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AACnD,CAAC;AAED,KAAK,6BAA6B,MAAM;AACtC,QAAM,MAAM,mBAAmB,MAAM;AAAA,IACnC,UAAU,CAAC,KAAK,EAAE;AAAA,EACpB,CAAC;AAED,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AAEjD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAC3C,CAAC;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,29 @@
1
- import{expect as o,test as e}from"vitest";import{wrapChildrenInText as d}from"./wrapChildrenInText";const r=()=>{},a=<div data-id={Math.random()}/>,p=a.props["data-id"];e("should wrap all string children, not wrap others",()=>{const t=d(r,{children:[a,"a","b",a,"c",a,"d"]});o(t[0].props["data-id"]).toBe(p),o(t[1].type).toBe(r),o(t[1].props.children).toStrictEqual(["a","b"]),o(t[2].props["data-id"]).toBe(p),o(t[3].type).toBe(r),o(t[3].props.children).toStrictEqual(["c"]),o(t[4].props["data-id"]).toBe(p),o(t[5].type).toBe(r),o(t[5].props.children).toStrictEqual(["d"])}),e("should first child string",()=>{const t=d(r,{children:["a",a]});o(t[0].type).toBe(r),o(t[0].props.children).toStrictEqual(["a"]),o(t[1].props["data-id"]).toBe(p)});
1
+ import { expect, test } from "vitest";
2
+ import { wrapChildrenInText } from "./wrapChildrenInText";
3
+ const Comp = () => {
4
+ };
5
+ const re = <div data-id={Math.random()} />;
6
+ const reID = re.props["data-id"];
7
+ test("should wrap all string children, not wrap others", () => {
8
+ const out = wrapChildrenInText(Comp, {
9
+ children: [re, "a", "b", re, "c", re, "d"]
10
+ });
11
+ expect(out[0].props["data-id"]).toBe(reID);
12
+ expect(out[1].type).toBe(Comp);
13
+ expect(out[1].props.children).toStrictEqual(["a", "b"]);
14
+ expect(out[2].props["data-id"]).toBe(reID);
15
+ expect(out[3].type).toBe(Comp);
16
+ expect(out[3].props.children).toStrictEqual(["c"]);
17
+ expect(out[4].props["data-id"]).toBe(reID);
18
+ expect(out[5].type).toBe(Comp);
19
+ expect(out[5].props.children).toStrictEqual(["d"]);
20
+ });
21
+ test("should first child string", () => {
22
+ const out = wrapChildrenInText(Comp, {
23
+ children: ["a", re]
24
+ });
25
+ expect(out[0].type).toBe(Comp);
26
+ expect(out[0].props.children).toStrictEqual(["a"]);
27
+ expect(out[1].props["data-id"]).toBe(reID);
28
+ });
2
29
  //# sourceMappingURL=wrapChildrenInText.test.mjs.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": "AACA,OAAS,UAAAA,EAAQ,QAAAC,MAAY,SAE7B,OAAS,sBAAAC,MAA0B,uBAEnC,MAAMC,EAAO,IAAM,CAAC,EACdC,EAAK,CAAC,IAAI,SAAS,KAAK,OAAO,EAAG,GAClCC,EAAOD,EAAG,MAAM,SAAS,EAE/BH,EAAK,mDAAoD,IAAM,CAC7D,MAAMK,EAAMJ,EAAmBC,EAAM,CACnC,SAAU,CAACC,EAAI,IAAK,IAAKA,EAAI,IAAKA,EAAI,GAAG,CAC3C,CAAC,EAEDJ,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,IAAK,GAAG,CAAC,EAEtDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,EAEjDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,EAEzCL,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CACnD,CAAC,EAEDL,EAAK,4BAA6B,IAAM,CACtC,MAAMK,EAAMJ,EAAmBC,EAAM,CACnC,SAAU,CAAC,IAAKC,CAAE,CACpB,CAAC,EAEDJ,EAAOM,EAAI,CAAC,EAAE,IAAI,EAAE,KAAKH,CAAI,EAC7BH,EAAOM,EAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,EAEjDN,EAAOM,EAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAKD,CAAI,CAC3C,CAAC",
6
- "names": ["expect", "test", "wrapChildrenInText", "Comp", "re", "reID", "out"]
5
+ "mappings": "AACA,SAAS,QAAQ,YAAY;AAE7B,SAAS,0BAA0B;AAEnC,MAAM,OAAO,MAAM;AAAC;AACpB,MAAM,KAAK,CAAC,IAAI,SAAS,KAAK,OAAO,GAAG;AACxC,MAAM,OAAO,GAAG,MAAM,SAAS;AAE/B,KAAK,oDAAoD,MAAM;AAC7D,QAAM,MAAM,mBAAmB,MAAM;AAAA,IACnC,UAAU,CAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,GAAG;AAAA,EAC3C,CAAC;AAED,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,KAAK,GAAG,CAAC;AAEtD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AAEjD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAEzC,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AACnD,CAAC;AAED,KAAK,6BAA6B,MAAM;AACtC,QAAM,MAAM,mBAAmB,MAAM;AAAA,IACnC,UAAU,CAAC,KAAK,EAAE;AAAA,EACpB,CAAC;AAED,SAAO,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI;AAC7B,SAAO,IAAI,CAAC,EAAE,MAAM,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC;AAEjD,SAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,EAAE,KAAK,IAAI;AAC3C,CAAC;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/text",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,15 +31,15 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/get-font-sized": "1.14.1",
35
- "@tamagui/helpers-tamagui": "1.14.1",
36
- "@tamagui/web": "1.14.1"
34
+ "@tamagui/get-font-sized": "1.14.2",
35
+ "@tamagui/helpers-tamagui": "1.14.2",
36
+ "@tamagui/web": "1.14.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.14.1",
42
+ "@tamagui/build": "1.14.2",
43
43
  "react": "^18.2.0"
44
44
  },
45
45
  "publishConfig": {