@tamagui/core 2.3.3-1782465561627 → 2.3.3-1782469370633

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.
@@ -1,4 +1,4 @@
1
1
  $ tamagui-build
2
- built @tamagui/core in 842 ms
2
+ built @tamagui/core in 676 ms
3
3
  Running afterBuild script...
4
- afterBuild completed in 317 ms
4
+ afterBuild completed in 228 ms
package/dist/native.cjs CHANGED
@@ -13352,9 +13352,13 @@ var init_useThemeState_native = __esmMin((() => {
13352
13352
  return [shouldRerender, _objectSpread2(_objectSpread2({}, parentState), {}, { isNew: false })];
13353
13353
  }
13354
13354
  if (!name) {
13355
- var next = lastState !== null && lastState !== void 0 ? lastState : parentState;
13356
- if (!next) throw new Error(MISSING_THEME_MESSAGE);
13357
- if (shouldRerender) return [true, _objectSpread2({}, parentState || lastState)];
13355
+ var _ref, _ref1;
13356
+ var next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
13357
+ id,
13358
+ name: "light",
13359
+ theme: getConfig().themes.light
13360
+ };
13361
+ if (shouldRerender) return [true, _objectSpread2({}, parentState || lastState || next)];
13358
13362
  return [false, next];
13359
13363
  }
13360
13364
  var scheme = getScheme(name);
@@ -1637,9 +1637,13 @@ var getNextState = function(lastState, props, propsKey) {
1637
1637
  return [shouldRerender, _objectSpread2(_objectSpread2({}, parentState), {}, { isNew: false })];
1638
1638
  }
1639
1639
  if (!name) {
1640
- var next = lastState !== null && lastState !== void 0 ? lastState : parentState;
1641
- if (!next) throw new Error(MISSING_THEME_MESSAGE);
1642
- if (shouldRerender) return [true, _objectSpread2({}, parentState || lastState)];
1640
+ var _ref, _ref1;
1641
+ var next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
1642
+ id,
1643
+ name: "light",
1644
+ theme: getConfig().themes.light
1645
+ };
1646
+ if (shouldRerender) return [true, _objectSpread2({}, parentState || lastState || next)];
1643
1647
  return [false, next];
1644
1648
  }
1645
1649
  var scheme = getScheme(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.3.3-1782465561627",
3
+ "version": "2.3.3-1782469370633",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -79,17 +79,17 @@
79
79
  "clean:build": "tamagui-build clean:build"
80
80
  },
81
81
  "dependencies": {
82
- "@tamagui/helpers": "2.3.3-1782465561627",
83
- "@tamagui/react-native-media-driver": "2.3.3-1782465561627",
84
- "@tamagui/react-native-use-pressable": "2.3.3-1782465561627",
85
- "@tamagui/use-element-layout": "2.3.3-1782465561627",
86
- "@tamagui/use-event": "2.3.3-1782465561627",
87
- "@tamagui/web": "2.3.3-1782465561627"
82
+ "@tamagui/helpers": "2.3.3-1782469370633",
83
+ "@tamagui/react-native-media-driver": "2.3.3-1782469370633",
84
+ "@tamagui/react-native-use-pressable": "2.3.3-1782469370633",
85
+ "@tamagui/use-element-layout": "2.3.3-1782469370633",
86
+ "@tamagui/use-event": "2.3.3-1782469370633",
87
+ "@tamagui/web": "2.3.3-1782469370633"
88
88
  },
89
89
  "devDependencies": {
90
- "@tamagui/build": "2.3.3-1782465561627",
91
- "@tamagui/native-bundle": "2.3.3-1782465561627",
92
- "@tamagui/react-native-web-lite": "2.3.3-1782465561627",
90
+ "@tamagui/build": "2.3.3-1782469370633",
91
+ "@tamagui/native-bundle": "2.3.3-1782469370633",
92
+ "@tamagui/react-native-web-lite": "2.3.3-1782469370633",
93
93
  "@testing-library/react": "^16.1.0",
94
94
  "csstype": "^3.0.10",
95
95
  "react": ">=19",