@tamagui/text 1.0.1-beta.197 → 1.0.1-beta.199

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.
@@ -23,22 +23,16 @@ __export(SizableText_exports, {
23
23
  module.exports = __toCommonJS(SizableText_exports);
24
24
  var import_core = require("@tamagui/core");
25
25
  var import_get_font_sized = require("@tamagui/get-font-sized");
26
- const SizableText = (0, import_core.styled)(
27
- import_core.Text,
28
- {
29
- name: "SizableText",
30
- fontFamily: "$body",
31
- variants: {
32
- size: import_get_font_sized.getFontSized
33
- },
34
- defaultVariants: {
35
- size: "$4"
36
- }
26
+ const SizableText = (0, import_core.styled)(import_core.Text, {
27
+ name: "SizableText",
28
+ fontFamily: "$body",
29
+ variants: {
30
+ size: import_get_font_sized.getFontSized
37
31
  },
38
- {
39
- inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"])
32
+ defaultVariants: {
33
+ size: "$4"
40
34
  }
41
- );
35
+ });
42
36
  // Annotate the CommonJS export names for ESM import in node:
43
37
  0 && (module.exports = {
44
38
  SizableText
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SizableText.tsx"],
4
- "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\n\nexport const SizableText = styled(\n Text,\n {\n name: 'SizableText',\n fontFamily: '$body',\n\n variants: {\n size: getFontSized,\n } as const,\n\n defaultVariants: {\n size: '$4',\n },\n },\n {\n inlineWhenUnflattened: new Set(['fontFamily']),\n }\n)\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,4BAA6B;AAEtB,MAAM,kBAAc;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IAEZ,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IAEA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA;AAAA,IACE,uBAAuB,oBAAI,IAAI,CAAC,YAAY,CAAC;AAAA,EAC/C;AACF;",
4
+ "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\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: '$4',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,4BAA6B;AAEtB,MAAM,kBAAc,oBAAO,kBAAM;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
6
  "names": []
7
7
  }
@@ -1,21 +1,15 @@
1
1
  import { Text, styled } from "@tamagui/core";
2
2
  import { getFontSized } from "@tamagui/get-font-sized";
3
- const SizableText = styled(
4
- Text,
5
- {
6
- name: "SizableText",
7
- fontFamily: "$body",
8
- variants: {
9
- size: getFontSized
10
- },
11
- defaultVariants: {
12
- size: "$4"
13
- }
3
+ const SizableText = styled(Text, {
4
+ name: "SizableText",
5
+ fontFamily: "$body",
6
+ variants: {
7
+ size: getFontSized
14
8
  },
15
- {
16
- inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"])
9
+ defaultVariants: {
10
+ size: "$4"
17
11
  }
18
- );
12
+ });
19
13
  export {
20
14
  SizableText
21
15
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SizableText.tsx"],
4
- "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\n\nexport const SizableText = styled(\n Text,\n {\n name: 'SizableText',\n fontFamily: '$body',\n\n variants: {\n size: getFontSized,\n } as const,\n\n defaultVariants: {\n size: '$4',\n },\n },\n {\n inlineWhenUnflattened: new Set(['fontFamily']),\n }\n)\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
- "mappings": "AAAA,SAAmB,MAAM,cAAc;AACvC,SAAS,oBAAoB;AAEtB,MAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IAEZ,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IAEA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA;AAAA,IACE,uBAAuB,oBAAI,IAAI,CAAC,YAAY,CAAC;AAAA,EAC/C;AACF;",
4
+ "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\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: '$4',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
+ "mappings": "AAAA,SAAmB,MAAM,cAAc;AACvC,SAAS,oBAAoB;AAEtB,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
6
  "names": []
7
7
  }
@@ -1,21 +1,15 @@
1
1
  import { Text, styled } from "@tamagui/core";
2
2
  import { getFontSized } from "@tamagui/get-font-sized";
3
- const SizableText = styled(
4
- Text,
5
- {
6
- name: "SizableText",
7
- fontFamily: "$body",
8
- variants: {
9
- size: getFontSized
10
- },
11
- defaultVariants: {
12
- size: "$4"
13
- }
3
+ const SizableText = styled(Text, {
4
+ name: "SizableText",
5
+ fontFamily: "$body",
6
+ variants: {
7
+ size: getFontSized
14
8
  },
15
- {
16
- inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"])
9
+ defaultVariants: {
10
+ size: "$4"
17
11
  }
18
- );
12
+ });
19
13
  export {
20
14
  SizableText
21
15
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SizableText.tsx"],
4
- "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\n\nexport const SizableText = styled(\n Text,\n {\n name: 'SizableText',\n fontFamily: '$body',\n\n variants: {\n size: getFontSized,\n } as const,\n\n defaultVariants: {\n size: '$4',\n },\n },\n {\n inlineWhenUnflattened: new Set(['fontFamily']),\n }\n)\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
- "mappings": "AAAA,SAAmB,MAAM,cAAc;AACvC,SAAS,oBAAoB;AAEtB,MAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IAEZ,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IAEA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA;AAAA,IACE,uBAAuB,oBAAI,IAAI,CAAC,YAAY,CAAC;AAAA,EAC/C;AACF;",
4
+ "sourcesContent": ["import { GetProps, Text, styled } from '@tamagui/core'\nimport { getFontSized } from '@tamagui/get-font-sized'\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: '$4',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
+ "mappings": "AAAA,SAAmB,MAAM,cAAc;AACvC,SAAS,oBAAoB;AAEtB,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
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/text",
3
- "version": "1.0.1-beta.197",
3
+ "version": "1.0.1-beta.199",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -24,19 +24,19 @@
24
24
  "test": "vitest --config ../vite-plugin-internal/src/vite.config.ts --run"
25
25
  },
26
26
  "dependencies": {
27
- "@tamagui/core": "^1.0.1-beta.197",
28
- "@tamagui/get-font-sized": "^1.0.1-beta.197",
29
- "@tamagui/helpers-tamagui": "^1.0.1-beta.197"
27
+ "@tamagui/core": "^1.0.1-beta.199",
28
+ "@tamagui/get-font-sized": "^1.0.1-beta.199",
29
+ "@tamagui/helpers-tamagui": "^1.0.1-beta.199"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "*",
33
33
  "react-dom": "*"
34
34
  },
35
35
  "devDependencies": {
36
- "@tamagui/build": "^1.0.1-beta.197",
36
+ "@tamagui/build": "^1.0.1-beta.199",
37
37
  "react": "*",
38
38
  "react-dom": "*",
39
- "vitest": "^0.20.3"
39
+ "vitest": "^0.24.3"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -1,23 +1,17 @@
1
1
  import { GetProps, Text, styled } from '@tamagui/core'
2
2
  import { getFontSized } from '@tamagui/get-font-sized'
3
3
 
4
- export const SizableText = styled(
5
- Text,
6
- {
7
- name: 'SizableText',
8
- fontFamily: '$body',
4
+ export const SizableText = styled(Text, {
5
+ name: 'SizableText',
6
+ fontFamily: '$body',
9
7
 
10
- variants: {
11
- size: getFontSized,
12
- } as const,
8
+ variants: {
9
+ size: getFontSized,
10
+ } as const,
13
11
 
14
- defaultVariants: {
15
- size: '$4',
16
- },
12
+ defaultVariants: {
13
+ size: '$4',
17
14
  },
18
- {
19
- inlineWhenUnflattened: new Set(['fontFamily']),
20
- }
21
- )
15
+ })
22
16
 
23
17
  export type SizableTextProps = GetProps<typeof SizableText>