@tamagui/text 1.0.2 → 1.0.4

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.
@@ -30,7 +30,7 @@ const SizableText = (0, import_core.styled)(import_core.Text, {
30
30
  size: import_get_font_sized.getFontSized
31
31
  },
32
32
  defaultVariants: {
33
- size: "$4"
33
+ size: "$true"
34
34
  }
35
35
  });
36
36
  // Annotate the CommonJS export names for ESM import in node:
@@ -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(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"],
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: '$true',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
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
  }
@@ -7,7 +7,7 @@ const SizableText = styled(Text, {
7
7
  size: getFontSized
8
8
  },
9
9
  defaultVariants: {
10
- size: "$4"
10
+ size: "$true"
11
11
  }
12
12
  });
13
13
  export {
@@ -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(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"],
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: '$true',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
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
  }
@@ -7,7 +7,7 @@ const SizableText = styled(Text, {
7
7
  size: getFontSized
8
8
  },
9
9
  defaultVariants: {
10
- size: "$4"
10
+ size: "$true"
11
11
  }
12
12
  });
13
13
  export {
@@ -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(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"],
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: '$true',\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
5
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.2",
3
+ "version": "1.0.4",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -23,20 +23,27 @@
23
23
  "clean:build": "tamagui-build clean:build",
24
24
  "test": "vitest --config ../vite-plugin-internal/src/vite.config.ts --run"
25
25
  },
26
+ "exports": {
27
+ "./package.json": "./package.json",
28
+ ".": {
29
+ "import": "./dist/esm/index.js",
30
+ "require": "./dist/cjs/index.js"
31
+ }
32
+ },
26
33
  "dependencies": {
27
- "@tamagui/core": "^1.0.2",
28
- "@tamagui/get-font-sized": "^1.0.2",
29
- "@tamagui/helpers-tamagui": "^1.0.2"
34
+ "@tamagui/core": "^1.0.4",
35
+ "@tamagui/get-font-sized": "^1.0.4",
36
+ "@tamagui/helpers-tamagui": "^1.0.4"
30
37
  },
31
38
  "peerDependencies": {
32
39
  "react": "*",
33
40
  "react-dom": "*"
34
41
  },
35
42
  "devDependencies": {
36
- "@tamagui/build": "^1.0.2",
43
+ "@tamagui/build": "^1.0.4",
37
44
  "react": "^18.2.0",
38
45
  "react-dom": "^18.2.0",
39
- "vitest": "^0.26.2"
46
+ "vitest": "^0.26.3"
40
47
  },
41
48
  "publishConfig": {
42
49
  "access": "public"
@@ -10,7 +10,7 @@ export const SizableText = styled(Text, {
10
10
  } as const,
11
11
 
12
12
  defaultVariants: {
13
- size: '$4',
13
+ size: '$true',
14
14
  },
15
15
  })
16
16