@tamagui/core 1.141.4 → 1.142.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/native.cjs CHANGED
@@ -9587,18 +9587,20 @@ var cache$1 = /* @__PURE__ */ new WeakMap(), getVariantExtras = function(styleSt
9587
9587
  props,
9588
9588
  conf: conf2,
9589
9589
  context,
9590
- theme
9590
+ theme,
9591
+ styleProps: styleProps2
9591
9592
  } = styleState, fonts = conf2.fontsParsed;
9592
9593
  (context == null ? void 0 : context.language) && (fonts = getFontsForLanguage(conf2.fontsParsed, context.language));
9593
9594
  var next = {
9594
9595
  fonts,
9595
9596
  tokens: conf2.tokensParsed,
9596
9597
  theme,
9598
+ context: styleProps2 == null ? void 0 : styleProps2.styledContext,
9597
9599
  get fontFamily() {
9598
- return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(styleState.conf.defaultFont);
9600
+ return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
9599
9601
  },
9600
9602
  get font() {
9601
- return fonts[this.fontFamily] || (!props.fontFamily || props.fontFamily[0] === "$" ? fonts[styleState.conf.defaultFont] : void 0);
9603
+ return fonts[this.fontFamily] || (!props.fontFamily || props.fontFamily[0] === "$" ? fonts[getSetting("defaultFont") || ""] : void 0);
9602
9604
  },
9603
9605
  props
9604
9606
  };
@@ -2280,18 +2280,20 @@ var cache$1 = /* @__PURE__ */ new WeakMap(), getVariantExtras = function(styleSt
2280
2280
  props,
2281
2281
  conf: conf2,
2282
2282
  context,
2283
- theme
2283
+ theme,
2284
+ styleProps
2284
2285
  } = styleState, fonts = conf2.fontsParsed;
2285
2286
  (context == null ? void 0 : context.language) && (fonts = getFontsForLanguage(conf2.fontsParsed, context.language));
2286
2287
  var next = {
2287
2288
  fonts,
2288
2289
  tokens: conf2.tokensParsed,
2289
2290
  theme,
2291
+ context: styleProps == null ? void 0 : styleProps.styledContext,
2290
2292
  get fontFamily() {
2291
- return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(styleState.conf.defaultFont);
2293
+ return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
2292
2294
  },
2293
2295
  get font() {
2294
- return fonts[this.fontFamily] || (!props.fontFamily || props.fontFamily[0] === "$" ? fonts[styleState.conf.defaultFont] : void 0);
2296
+ return fonts[this.fontFamily] || (!props.fontFamily || props.fontFamily[0] === "$" ? fonts[getSetting("defaultFont") || ""] : void 0);
2295
2297
  },
2296
2298
  props
2297
2299
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "1.141.4",
3
+ "version": "1.142.0",
4
4
  "type": "module",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/cjs",
@@ -33,18 +33,18 @@
33
33
  "native-test.d.ts"
34
34
  ],
35
35
  "dependencies": {
36
- "@tamagui/helpers": "1.141.4",
37
- "@tamagui/react-native-media-driver": "1.141.4",
38
- "@tamagui/react-native-use-pressable": "1.141.4",
39
- "@tamagui/react-native-use-responder-events": "1.141.4",
40
- "@tamagui/use-element-layout": "1.141.4",
41
- "@tamagui/use-event": "1.141.4",
42
- "@tamagui/web": "1.141.4"
36
+ "@tamagui/helpers": "1.142.0",
37
+ "@tamagui/react-native-media-driver": "1.142.0",
38
+ "@tamagui/react-native-use-pressable": "1.142.0",
39
+ "@tamagui/react-native-use-responder-events": "1.142.0",
40
+ "@tamagui/use-element-layout": "1.142.0",
41
+ "@tamagui/use-event": "1.142.0",
42
+ "@tamagui/web": "1.142.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "1.141.4",
46
- "@tamagui/native-bundle": "1.141.4",
47
- "@tamagui/react-native-web-lite": "1.141.4",
45
+ "@tamagui/build": "1.142.0",
46
+ "@tamagui/native-bundle": "1.142.0",
47
+ "@tamagui/react-native-web-lite": "1.142.0",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",
@@ -61,32 +61,38 @@
61
61
  "./reset.css": "./reset.css",
62
62
  ".": {
63
63
  "react-native": {
64
+ "module": "./dist/esm/index.native.js",
64
65
  "import": "./dist/esm/index.native.js",
65
66
  "require": "./dist/cjs/index.native.js"
66
67
  },
67
68
  "types": "./types/index.d.ts",
69
+ "module": "./dist/esm/index.mjs",
68
70
  "import": "./dist/esm/index.mjs",
69
71
  "require": "./dist/cjs/index.cjs",
70
72
  "default": "./dist/cjs/index.native.js"
71
73
  },
72
74
  "./native": {
73
75
  "types": "./types/index.d.ts",
76
+ "module": "./dist/native.cjs",
74
77
  "import": "./dist/native.cjs",
75
78
  "require": "./dist/native.cjs"
76
79
  },
77
80
  "./native-test": {
78
81
  "types": "./types/index.d.ts",
82
+ "module": "./dist/test.native.cjs",
79
83
  "import": "./dist/test.native.cjs",
80
84
  "require": "./dist/test.native.cjs"
81
85
  },
82
86
  "./inject-styles": {
83
87
  "types": "./types/inject-styles.d.ts",
88
+ "module": "./dist/esm/inject-styles.mjs",
84
89
  "import": "./dist/esm/inject-styles.mjs",
85
90
  "require": "./dist/cjs/inject-styles.cjs",
86
91
  "default": "./dist/cjs/inject-styles.cjs"
87
92
  },
88
93
  "./reactNativeTypes": {
89
94
  "types": "./types/reactNativeTypes.d.ts",
95
+ "module": "./dist/esm/reactNativeTypes.mjs",
90
96
  "import": "./dist/esm/reactNativeTypes.mjs",
91
97
  "require": "./dist/cjs/reactNativeTypes.cjs",
92
98
  "react-native": "./dist/cjs/reactNativeTypes.native.js"