@tamagui/core 2.4.1 → 2.4.3

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 9264 ms
2
+ built @tamagui/core in 2256 ms
3
3
  Running afterBuild script...
4
- afterBuild completed in 1869 ms
4
+ afterBuild completed in 670 ms
package/dist/native.cjs CHANGED
@@ -9072,7 +9072,10 @@ var init_VirtualizedList$1 = __esmMin((() => {
9072
9072
  }
9073
9073
  render() {
9074
9074
  const _this$props = this.props, { ListEmptyComponent, ListFooterComponent, ListHeaderComponent, data, debug, disableVirtualization, getItem, getItemCount, getItemLayout, horizontal, keyExtractor, numColumns, onEndReached, onEndReachedThreshold, onLayout, onRefresh, onScroll, onScrollBeginDrag, onScrollEndDrag, onMomentumScrollBegin, onMomentumScrollEnd, onStartReached, onStartReachedThreshold, onViewableItemsChanged, refreshing, removeClippedSubviews, renderItem, viewabilityConfig, viewabilityConfigCallbackPairs } = _this$props, restProps = _objectWithoutProperties(_this$props, _excluded$17);
9075
- if (getItemCount(data) === 0) return ListEmptyComponent ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListEmptyComponent, {}) : null;
9075
+ if (getItemCount(data) === 0) {
9076
+ if (!ListEmptyComponent) return null;
9077
+ return (0, react.isValidElement)(ListEmptyComponent) ? ListEmptyComponent : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListEmptyComponent, {});
9078
+ }
9076
9079
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardedScrollView, _objectSpread2(_objectSpread2({}, restProps), {}, {
9077
9080
  ref: this._captureRef,
9078
9081
  onContentSizeChange: this._onContentSizeChange,
@@ -13362,7 +13365,10 @@ var init_useThemeState_native = __esmMin((() => {
13362
13365
  return [false, next];
13363
13366
  }
13364
13367
  var scheme = getScheme(name);
13368
+ var _parentState_inverses;
13369
+ var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
13365
13370
  var isInverse = parentState && scheme !== parentState.scheme;
13371
+ var inverses = parentInverses + (isInverse ? 1 : 0);
13366
13372
  var nextState = {
13367
13373
  id,
13368
13374
  name,
@@ -13370,6 +13376,7 @@ var init_useThemeState_native = __esmMin((() => {
13370
13376
  scheme,
13371
13377
  parentId,
13372
13378
  parentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,
13379
+ inverses,
13373
13380
  isInverse,
13374
13381
  isNew: true
13375
13382
  };
@@ -13433,7 +13440,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
13433
13440
  var { name, scheme } = curState;
13434
13441
  var fastSchemeChange = getSetting("fastSchemeChange");
13435
13442
  var rootMatchesSystem = doesRootSchemeMatchSystem();
13436
- if (scheme && platform !== "web" && supportsDynamicColorIOS && !curProps.deopt && !curState.isInverse && fastSchemeChange && rootMatchesSystem) {
13443
+ if (scheme && platform !== "web" && supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem) {
13437
13444
  var _config_themes_name, _config_themes_oppositeName;
13438
13445
  var oppositeScheme = scheme === "dark" ? "light" : "dark";
13439
13446
  var oppositeName = name.replace(scheme, oppositeScheme);
@@ -1647,7 +1647,10 @@ var getNextState = function(lastState, props, propsKey) {
1647
1647
  return [false, next];
1648
1648
  }
1649
1649
  var scheme = getScheme(name);
1650
+ var _parentState_inverses;
1651
+ var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
1650
1652
  var isInverse = parentState && scheme !== parentState.scheme;
1653
+ var inverses = parentInverses + (isInverse ? 1 : 0);
1651
1654
  var nextState = {
1652
1655
  id,
1653
1656
  name,
@@ -1655,6 +1658,7 @@ var getNextState = function(lastState, props, propsKey) {
1655
1658
  scheme,
1656
1659
  parentId,
1657
1660
  parentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,
1661
+ inverses,
1658
1662
  isInverse,
1659
1663
  isNew: true
1660
1664
  };
@@ -1892,7 +1896,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
1892
1896
  var { name, scheme } = curState;
1893
1897
  var fastSchemeChange = getSetting("fastSchemeChange");
1894
1898
  var rootMatchesSystem = doesRootSchemeMatchSystem();
1895
- if (scheme && platform !== "web" && supportsDynamicColorIOS && !curProps.deopt && !curState.isInverse && fastSchemeChange && rootMatchesSystem) {
1899
+ if (scheme && platform !== "web" && supportsDynamicColorIOS && !curProps.deopt && !curState.inverses && fastSchemeChange && rootMatchesSystem) {
1896
1900
  var _config_themes_name, _config_themes_oppositeName;
1897
1901
  var oppositeScheme = scheme === "dark" ? "light" : "dark";
1898
1902
  var oppositeName = name.replace(scheme, oppositeScheme);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
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.4.1",
83
- "@tamagui/react-native-media-driver": "2.4.1",
84
- "@tamagui/react-native-use-pressable": "2.4.1",
85
- "@tamagui/use-element-layout": "2.4.1",
86
- "@tamagui/use-event": "2.4.1",
87
- "@tamagui/web": "2.4.1"
82
+ "@tamagui/helpers": "2.4.3",
83
+ "@tamagui/react-native-media-driver": "2.4.3",
84
+ "@tamagui/react-native-use-pressable": "2.4.3",
85
+ "@tamagui/use-element-layout": "2.4.3",
86
+ "@tamagui/use-event": "2.4.3",
87
+ "@tamagui/web": "2.4.3"
88
88
  },
89
89
  "devDependencies": {
90
- "@tamagui/build": "2.4.1",
91
- "@tamagui/native-bundle": "2.4.1",
92
- "@tamagui/react-native-web-lite": "2.4.1",
90
+ "@tamagui/build": "2.4.3",
91
+ "@tamagui/native-bundle": "2.4.3",
92
+ "@tamagui/react-native-web-lite": "2.4.3",
93
93
  "@testing-library/react": "^16.1.0",
94
94
  "csstype": "^3.0.10",
95
95
  "react": ">=19",