@tamagui/config-default 1.5.5 → 1.5.7

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/index.js CHANGED
@@ -172,32 +172,34 @@ function getDefaultTamaguiConfig() {
172
172
  color: "red"
173
173
  }
174
174
  };
175
+ const fonts = {
176
+ heading: font,
177
+ body: font
178
+ };
179
+ const media = {
180
+ xs: { maxWidth: 660 },
181
+ sm: { maxWidth: 800 },
182
+ md: { maxWidth: 1020 },
183
+ lg: { maxWidth: 1280 },
184
+ xl: { maxWidth: 1420 },
185
+ xxl: { maxWidth: 1600 },
186
+ gtXs: { minWidth: 660 + 1 },
187
+ gtSm: { minWidth: 800 + 1 },
188
+ gtMd: { minWidth: 1020 + 1 },
189
+ gtLg: { minWidth: 1280 + 1 },
190
+ short: { maxHeight: 820 },
191
+ tall: { minHeight: 820 },
192
+ hoverNone: { hover: "none" },
193
+ pointerCoarse: { pointer: "coarse" }
194
+ };
175
195
  return (0, import_core.createTamagui)({
176
196
  shouldAddPrefersColorThemes: true,
177
197
  themeClassNameOnRoot: true,
178
198
  shorthands: import_shorthands.shorthands,
179
- fonts: {
180
- heading: font,
181
- body: font
182
- },
199
+ fonts,
183
200
  themes,
184
201
  tokens,
185
- media: {
186
- xs: { maxWidth: 660 },
187
- sm: { maxWidth: 800 },
188
- md: { maxWidth: 1020 },
189
- lg: { maxWidth: 1280 },
190
- xl: { maxWidth: 1420 },
191
- xxl: { maxWidth: 1600 },
192
- gtXs: { minWidth: 660 + 1 },
193
- gtSm: { minWidth: 800 + 1 },
194
- gtMd: { minWidth: 1020 + 1 },
195
- gtLg: { minWidth: 1280 + 1 },
196
- short: { maxHeight: 820 },
197
- tall: { minHeight: 820 },
198
- hoverNone: { hover: "none" },
199
- pointerCoarse: { pointer: "coarse" }
200
- }
202
+ media
201
203
  });
202
204
  }
203
205
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "sourcesContent": ["// SEE config-default-node\n\nimport {\n TamaguiInternalConfig,\n createFont,\n createTamagui,\n createTokens,\n} from '@tamagui/core'\nimport { shorthands } from '@tamagui/shorthands'\n\n// basic fallback theme just to have compiler load in decent tate\nexport function getDefaultTamaguiConfig() {\n const font = createFont({\n family: 'System',\n size: {\n 1: 15,\n },\n lineHeight: {\n 1: 15,\n },\n transform: {},\n weight: {\n 1: '400',\n },\n color: {\n 1: '$color',\n },\n letterSpacing: {\n 1: 0,\n },\n })\n\n const size = {\n 0: 0,\n 0.25: 2,\n 0.5: 4,\n 0.75: 8,\n 1: 20,\n 1.5: 24,\n 2: 28,\n 2.5: 32,\n 3: 36,\n 3.5: 40,\n 4: 44,\n true: 44,\n 4.5: 48,\n 5: 52,\n 5.5: 59,\n 6: 64,\n 6.5: 69,\n 7: 74,\n 7.6: 79,\n 8: 84,\n 8.5: 89,\n 9: 94,\n 9.5: 99,\n 10: 104,\n 11: 124,\n 12: 144,\n 13: 164,\n 14: 184,\n 15: 204,\n 16: 224,\n 17: 224,\n 18: 244,\n 19: 264,\n 20: 284,\n }\n\n const spaces = Object.entries(size).map(([k, v]) => [\n k,\n Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12)),\n ])\n\n const spacesNegative = spaces.map(([k, v]) => [`-${k}`, -v])\n\n const space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative),\n } as any\n\n const zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n }\n\n const radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50,\n }\n\n const tokens = createTokens({\n color: {\n white: '#fff',\n black: '#000',\n },\n radius,\n zIndex,\n space,\n size,\n })\n\n const themes = {\n light: {\n background: tokens.color.white,\n color: tokens.color.black,\n },\n dark: {\n background: tokens.color.black,\n color: tokens.color.white,\n },\n // most of these used for testing:\n dark_blue: {\n background: 'blue',\n color: 'white',\n },\n dark_Card: {\n background: 'dark',\n color: 'card',\n },\n dark_blue_Button: {\n background: 'blue',\n color: 'white',\n },\n dark_red: {\n background: 'darkred',\n color: 'white',\n },\n dark_red_alt1: {\n background: 'darkred',\n color: 'white',\n },\n dark_red_Button: {\n background: 'darkred',\n color: '#ccc',\n },\n dark_yellow_Button: {\n background: 'brown',\n color: '#ccc',\n },\n dark_red_alt2: {\n background: 'darkred',\n color: '#555',\n },\n dark_red_alt2_Button: {\n background: 'darkred',\n color: '#444',\n },\n red: {\n background: 'red',\n color: 'red',\n },\n }\n\n return createTamagui({\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n shorthands,\n fonts: {\n heading: font,\n body: font,\n },\n themes,\n tokens,\n media: {\n xs: { maxWidth: 660 },\n sm: { maxWidth: 800 },\n md: { maxWidth: 1020 },\n lg: { maxWidth: 1280 },\n xl: { maxWidth: 1420 },\n xxl: { maxWidth: 1600 },\n gtXs: { minWidth: 660 + 1 },\n gtSm: { minWidth: 800 + 1 },\n gtMd: { minWidth: 1020 + 1 },\n gtLg: { minWidth: 1280 + 1 },\n short: { maxHeight: 820 },\n tall: { minHeight: 820 },\n hoverNone: { hover: 'none' },\n pointerCoarse: { pointer: 'coarse' },\n },\n }) as TamaguiInternalConfig\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAKO;AACP,wBAA2B;AAGpB,SAAS,0BAA0B;AACxC,QAAM,WAAO,wBAAW;AAAA,IACtB,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,GAAG;AAAA,IACL;AAAA,IACA,YAAY;AAAA,MACV,GAAG;AAAA,IACL;AAAA,IACA,WAAW,CAAC;AAAA,IACZ,QAAQ;AAAA,MACN,GAAG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ACA,KAAK;AAAA,MACH,YAAY;AAAA,MACZ,OAAO;AAAA,IACT;AAAA,EACF;AAEA,aAAO,2BAAc;AAAA,IACnB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,MACL,IAAI,EAAE,UAAU,IAAI;AAAA,MACpB,IAAI,EAAE,UAAU,IAAI;AAAA,MACpB,IAAI,EAAE,UAAU,KAAK;AAAA,MACrB,IAAI,EAAE,UAAU,KAAK;AAAA,MACrB,IAAI,EAAE,UAAU,KAAK;AAAA,MACrB,KAAK,EAAE,UAAU,KAAK;AAAA,MACtB,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,MAC1B,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,MAC1B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,MAC3B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,MAC3B,OAAO,EAAE,WAAW,IAAI;AAAA,MACxB,MAAM,EAAE,WAAW,IAAI;AAAA,MACvB,WAAW,EAAE,OAAO,OAAO;AAAA,MAC3B,eAAe,EAAE,SAAS,SAAS;AAAA,IACrC;AAAA,EACF,CAAC;AACH;",
4
+ "sourcesContent": ["// SEE config-default-node\n\nimport { createFont, createTamagui, createTokens } from '@tamagui/core'\nimport { shorthands } from '@tamagui/shorthands'\n\n// basic fallback theme just to have compiler load in decent tate\nexport function getDefaultTamaguiConfig() {\n const font = createFont({\n family: 'System',\n size: {\n 1: 15,\n },\n lineHeight: {\n 1: 15,\n },\n transform: {},\n weight: {\n 1: '400',\n },\n color: {\n 1: '$color',\n },\n letterSpacing: {\n 1: 0,\n },\n })\n\n const size = {\n 0: 0,\n 0.25: 2,\n 0.5: 4,\n 0.75: 8,\n 1: 20,\n 1.5: 24,\n 2: 28,\n 2.5: 32,\n 3: 36,\n 3.5: 40,\n 4: 44,\n true: 44,\n 4.5: 48,\n 5: 52,\n 5.5: 59,\n 6: 64,\n 6.5: 69,\n 7: 74,\n 7.6: 79,\n 8: 84,\n 8.5: 89,\n 9: 94,\n 9.5: 99,\n 10: 104,\n 11: 124,\n 12: 144,\n 13: 164,\n 14: 184,\n 15: 204,\n 16: 224,\n 17: 224,\n 18: 244,\n 19: 264,\n 20: 284,\n }\n\n const spaces = Object.entries(size).map(([k, v]) => [\n k,\n Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12)),\n ])\n\n const spacesNegative = spaces.map(([k, v]) => [`-${k}`, -v])\n\n const space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative),\n } as any\n\n const zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n }\n\n const radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50,\n }\n\n const tokens = createTokens({\n color: {\n white: '#fff',\n black: '#000',\n },\n radius,\n zIndex,\n space,\n size,\n })\n\n const themes = {\n light: {\n background: tokens.color.white,\n color: tokens.color.black,\n },\n dark: {\n background: tokens.color.black,\n color: tokens.color.white,\n },\n // most of these used for testing:\n dark_blue: {\n background: 'blue',\n color: 'white',\n },\n dark_Card: {\n background: 'dark',\n color: 'card',\n },\n dark_blue_Button: {\n background: 'blue',\n color: 'white',\n },\n dark_red: {\n background: 'darkred',\n color: 'white',\n },\n dark_red_alt1: {\n background: 'darkred',\n color: 'white',\n },\n dark_red_Button: {\n background: 'darkred',\n color: '#ccc',\n },\n dark_yellow_Button: {\n background: 'brown',\n color: '#ccc',\n },\n dark_red_alt2: {\n background: 'darkred',\n color: '#555',\n },\n dark_red_alt2_Button: {\n background: 'darkred',\n color: '#444',\n },\n red: {\n background: 'red',\n color: 'red',\n },\n }\n\n const fonts = {\n heading: font,\n body: font,\n }\n\n const media = {\n xs: { maxWidth: 660 },\n sm: { maxWidth: 800 },\n md: { maxWidth: 1020 },\n lg: { maxWidth: 1280 },\n xl: { maxWidth: 1420 },\n xxl: { maxWidth: 1600 },\n gtXs: { minWidth: 660 + 1 },\n gtSm: { minWidth: 800 + 1 },\n gtMd: { minWidth: 1020 + 1 },\n gtLg: { minWidth: 1280 + 1 },\n short: { maxHeight: 820 },\n tall: { minHeight: 820 },\n hoverNone: { hover: 'none' },\n pointerCoarse: { pointer: 'coarse' },\n }\n\n return createTamagui({\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n shorthands,\n fonts,\n themes,\n tokens,\n media,\n })\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAAwD;AACxD,wBAA2B;AAGpB,SAAS,0BAA0B;AACxC,QAAM,WAAO,wBAAW;AAAA,IACtB,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,GAAG;AAAA,IACL;AAAA,IACA,YAAY;AAAA,MACV,GAAG;AAAA,IACL;AAAA,IACA,WAAW,CAAC;AAAA,IACZ,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,IACL;AAAA,EACF,CAAC;AAED,QAAM,OAAO;AAAA,IACX,GAAG;AAAA,IACH,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,MAAM;AAAA,IACN,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA,IACL,GAAG;AAAA,IACH,KAAK;AAAA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E;AAAA,IAC3B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,IAC3B,OAAO,EAAE,WAAW,IAAI;AAAA,IACxB,MAAM,EAAE,WAAW,IAAI;AAAA,IACvB,WAAW,EAAE,OAAO,OAAO;AAAA,IAC3B,eAAe,EAAE,SAAS,SAAS;AAAA,EACrC;AAEA,aAAO,2BAAc;AAAA,IACnB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/config-default",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist",
6
6
  "types": "./types/index.d.ts",
@@ -15,11 +15,11 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@tamagui/core": "^1.5.5",
19
- "@tamagui/shorthands": "^1.5.5"
18
+ "@tamagui/core": "^1.5.7",
19
+ "@tamagui/shorthands": "^1.5.7"
20
20
  },
21
21
  "devDependencies": {
22
- "@tamagui/build": "^1.5.5"
22
+ "@tamagui/build": "^1.5.7"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
package/types/index.d.ts CHANGED
@@ -1,15 +1,281 @@
1
- import { TamaguiInternalConfig } from '@tamagui/core';
2
- export declare function getDefaultTamaguiConfig(): TamaguiInternalConfig<import("@tamagui/core").CreateTokens<import("@tamagui/core").VariableVal>, {
3
- [key: string]: Partial<import("@tamagui/core").TamaguiBaseTheme> & {
4
- [key: string]: import("@tamagui/core").VariableVal;
1
+ export declare function getDefaultTamaguiConfig(): import("@tamagui/core").TamaguiInternalConfig<{
2
+ color: {
3
+ white: import("@tamagui/core").Variable<string>;
4
+ black: import("@tamagui/core").Variable<string>;
5
5
  };
6
- }, import("@tamagui/core").GenericShorthands, {
7
- [key: string]: {
8
- [key: string]: string | number;
6
+ space: {
7
+ [x: string]: import("@tamagui/core").Variable<number>;
8
+ [x: number]: import("@tamagui/core").Variable<number>;
9
+ [x: symbol]: import("@tamagui/core").Variable<number>;
10
+ };
11
+ size: {
12
+ 0: import("@tamagui/core").Variable<number>;
13
+ 15: import("@tamagui/core").Variable<number>;
14
+ 1: import("@tamagui/core").Variable<number>;
15
+ 2: import("@tamagui/core").Variable<number>;
16
+ 4: import("@tamagui/core").Variable<number>;
17
+ 8: import("@tamagui/core").Variable<number>;
18
+ 20: import("@tamagui/core").Variable<number>;
19
+ 0.25: import("@tamagui/core").Variable<number>;
20
+ 0.5: import("@tamagui/core").Variable<number>;
21
+ 0.75: import("@tamagui/core").Variable<number>;
22
+ 1.5: import("@tamagui/core").Variable<number>;
23
+ 2.5: import("@tamagui/core").Variable<number>;
24
+ 3: import("@tamagui/core").Variable<number>;
25
+ 3.5: import("@tamagui/core").Variable<number>;
26
+ true: import("@tamagui/core").Variable<number>;
27
+ 4.5: import("@tamagui/core").Variable<number>;
28
+ 5: import("@tamagui/core").Variable<number>;
29
+ 5.5: import("@tamagui/core").Variable<number>;
30
+ 6: import("@tamagui/core").Variable<number>;
31
+ 6.5: import("@tamagui/core").Variable<number>;
32
+ 7: import("@tamagui/core").Variable<number>;
33
+ 7.6: import("@tamagui/core").Variable<number>;
34
+ 8.5: import("@tamagui/core").Variable<number>;
35
+ 9: import("@tamagui/core").Variable<number>;
36
+ 9.5: import("@tamagui/core").Variable<number>;
37
+ 10: import("@tamagui/core").Variable<number>;
38
+ 11: import("@tamagui/core").Variable<number>;
39
+ 12: import("@tamagui/core").Variable<number>;
40
+ 13: import("@tamagui/core").Variable<number>;
41
+ 14: import("@tamagui/core").Variable<number>;
42
+ 16: import("@tamagui/core").Variable<number>;
43
+ 17: import("@tamagui/core").Variable<number>;
44
+ 18: import("@tamagui/core").Variable<number>;
45
+ 19: import("@tamagui/core").Variable<number>;
46
+ };
47
+ radius: {
48
+ 0: import("@tamagui/core").Variable<number>;
49
+ 1: import("@tamagui/core").Variable<number>;
50
+ 2: import("@tamagui/core").Variable<number>;
51
+ 4: import("@tamagui/core").Variable<number>;
52
+ 8: import("@tamagui/core").Variable<number>;
53
+ 3: import("@tamagui/core").Variable<number>;
54
+ 5: import("@tamagui/core").Variable<number>;
55
+ 6: import("@tamagui/core").Variable<number>;
56
+ 7: import("@tamagui/core").Variable<number>;
57
+ 9: import("@tamagui/core").Variable<number>;
58
+ 10: import("@tamagui/core").Variable<number>;
59
+ 11: import("@tamagui/core").Variable<number>;
60
+ 12: import("@tamagui/core").Variable<number>;
61
+ };
62
+ zIndex: {
63
+ 0: import("@tamagui/core").Variable<number>;
64
+ 1: import("@tamagui/core").Variable<number>;
65
+ 2: import("@tamagui/core").Variable<number>;
66
+ 4: import("@tamagui/core").Variable<number>;
67
+ 3: import("@tamagui/core").Variable<number>;
68
+ 5: import("@tamagui/core").Variable<number>;
69
+ };
70
+ }, {
71
+ light: {
72
+ background: import("@tamagui/core").Variable<string>;
73
+ color: import("@tamagui/core").Variable<string>;
74
+ };
75
+ dark: {
76
+ background: import("@tamagui/core").Variable<string>;
77
+ color: import("@tamagui/core").Variable<string>;
78
+ };
79
+ dark_blue: {
80
+ background: string;
81
+ color: string;
82
+ };
83
+ dark_Card: {
84
+ background: string;
85
+ color: string;
86
+ };
87
+ dark_blue_Button: {
88
+ background: string;
89
+ color: string;
90
+ };
91
+ dark_red: {
92
+ background: string;
93
+ color: string;
94
+ };
95
+ dark_red_alt1: {
96
+ background: string;
97
+ color: string;
98
+ };
99
+ dark_red_Button: {
100
+ background: string;
101
+ color: string;
102
+ };
103
+ dark_yellow_Button: {
104
+ background: string;
105
+ color: string;
106
+ };
107
+ dark_red_alt2: {
108
+ background: string;
109
+ color: string;
110
+ };
111
+ dark_red_alt2_Button: {
112
+ background: string;
113
+ color: string;
114
+ };
115
+ red: {
116
+ background: string;
117
+ color: string;
118
+ };
119
+ }, {
120
+ readonly ussel: "userSelect";
121
+ readonly cur: "cursor";
122
+ readonly pe: "pointerEvents";
123
+ readonly col: "color";
124
+ readonly ff: "fontFamily";
125
+ readonly fos: "fontSize";
126
+ readonly fost: "fontStyle";
127
+ readonly fow: "fontWeight";
128
+ readonly ls: "letterSpacing";
129
+ readonly lh: "lineHeight";
130
+ readonly ta: "textAlign";
131
+ readonly tt: "textTransform";
132
+ readonly ww: "wordWrap";
133
+ readonly ac: "alignContent";
134
+ readonly ai: "alignItems";
135
+ readonly als: "alignSelf";
136
+ readonly b: "bottom";
137
+ readonly bc: "backgroundColor";
138
+ readonly bg: "backgroundColor";
139
+ readonly bbc: "borderBottomColor";
140
+ readonly bblr: "borderBottomLeftRadius";
141
+ readonly bbrr: "borderBottomRightRadius";
142
+ readonly bbw: "borderBottomWidth";
143
+ readonly blc: "borderLeftColor";
144
+ readonly blw: "borderLeftWidth";
145
+ readonly boc: "borderColor";
146
+ readonly br: "borderRadius";
147
+ readonly bs: "borderStyle";
148
+ readonly brw: "borderRightWidth";
149
+ readonly brc: "borderRightColor";
150
+ readonly btc: "borderTopColor";
151
+ readonly btlr: "borderTopLeftRadius";
152
+ readonly btrr: "borderTopRightRadius";
153
+ readonly btw: "borderTopWidth";
154
+ readonly bw: "borderWidth";
155
+ readonly dsp: "display";
156
+ readonly f: "flex";
157
+ readonly fb: "flexBasis";
158
+ readonly fd: "flexDirection";
159
+ readonly fg: "flexGrow";
160
+ readonly fs: "flexShrink";
161
+ readonly fw: "flexWrap";
162
+ readonly h: "height";
163
+ readonly jc: "justifyContent";
164
+ readonly l: "left";
165
+ readonly m: "margin";
166
+ readonly mah: "maxHeight";
167
+ readonly maw: "maxWidth";
168
+ readonly mb: "marginBottom";
169
+ readonly mih: "minHeight";
170
+ readonly miw: "minWidth";
171
+ readonly ml: "marginLeft";
172
+ readonly mr: "marginRight";
173
+ readonly mt: "marginTop";
174
+ readonly mx: "marginHorizontal";
175
+ readonly my: "marginVertical";
176
+ readonly o: "opacity";
177
+ readonly ov: "overflow";
178
+ readonly p: "padding";
179
+ readonly pb: "paddingBottom";
180
+ readonly pl: "paddingLeft";
181
+ readonly pos: "position";
182
+ readonly pr: "paddingRight";
183
+ readonly pt: "paddingTop";
184
+ readonly px: "paddingHorizontal";
185
+ readonly py: "paddingVertical";
186
+ readonly r: "right";
187
+ readonly shac: "shadowColor";
188
+ readonly shar: "shadowRadius";
189
+ readonly shof: "shadowOffset";
190
+ readonly shop: "shadowOpacity";
191
+ readonly t: "top";
192
+ readonly w: "width";
193
+ readonly zi: "zIndex";
194
+ }, {
195
+ xs: {
196
+ maxWidth: number;
197
+ };
198
+ sm: {
199
+ maxWidth: number;
200
+ };
201
+ md: {
202
+ maxWidth: number;
203
+ };
204
+ lg: {
205
+ maxWidth: number;
206
+ };
207
+ xl: {
208
+ maxWidth: number;
209
+ };
210
+ xxl: {
211
+ maxWidth: number;
212
+ };
213
+ gtXs: {
214
+ minWidth: number;
215
+ };
216
+ gtSm: {
217
+ minWidth: number;
218
+ };
219
+ gtMd: {
220
+ minWidth: number;
221
+ };
222
+ gtLg: {
223
+ minWidth: number;
224
+ };
225
+ short: {
226
+ maxHeight: number;
227
+ };
228
+ tall: {
229
+ minHeight: number;
230
+ };
231
+ hoverNone: {
232
+ hover: string;
233
+ };
234
+ pointerCoarse: {
235
+ pointer: string;
9
236
  };
10
237
  }, {
11
238
  [key: string]: string | any[] | {
12
239
  [key: string]: any;
13
240
  };
14
- }, import("@tamagui/core").GenericFonts>;
241
+ }, {
242
+ heading: {
243
+ family: string;
244
+ size: {
245
+ 1: number;
246
+ };
247
+ lineHeight: {
248
+ 1: number;
249
+ };
250
+ transform: {};
251
+ weight: {
252
+ 1: string;
253
+ };
254
+ color: {
255
+ 1: string;
256
+ };
257
+ letterSpacing: {
258
+ 1: number;
259
+ };
260
+ };
261
+ body: {
262
+ family: string;
263
+ size: {
264
+ 1: number;
265
+ };
266
+ lineHeight: {
267
+ 1: number;
268
+ };
269
+ transform: {};
270
+ weight: {
271
+ 1: string;
272
+ };
273
+ color: {
274
+ 1: string;
275
+ };
276
+ letterSpacing: {
277
+ 1: number;
278
+ };
279
+ };
280
+ }>;
15
281
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EAItB,MAAM,eAAe,CAAA;AAItB,wBAAgB,uBAAuB;;;;;;;;;;;;yCAyLtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,wBAAgB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6LtC"}