@tamagui/core 3.0.0-beta.1546.1 → 3.0.0-beta.1562.1

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
@@ -15167,7 +15167,7 @@ function contributeProp(pass, keyOg, valOg) {
15167
15167
  var property2 = entry[0] === "--t-x" ? "x" : entry[0] === "--t-y" ? "y" : entry[0] === "--t-scale-x" ? "scaleX" : entry[0] === "--t-scale-y" ? "scaleY" : entry[0];
15168
15168
  var value = ((_styleState_animationDriver = styleState.animationDriver) === null || _styleState_animationDriver === void 0 ? void 0 : _styleState_animationDriver.inputStyle) === "value" ? entry[6] : entry[1];
15169
15169
  entry[3] ? contributeValue(styleState, property2, value, entry[6], false, entry[3]) : emitValue(styleState, property2, value, null, entry[6], false);
15170
- } else writeCapturedStyleRecord(slots, slot, entry, pass[passSourceLayer]);
15170
+ } else writeStyleSlot(slots, slot, [...entry], pass[passSourceLayer]);
15171
15171
  }
15172
15172
  } catch (err) {
15173
15173
  _didIteratorError1 = true;
@@ -15662,7 +15662,7 @@ function resolveStylePiece(styleState, piece) {
15662
15662
  themeCache.set(theme, resolved);
15663
15663
  return resolved;
15664
15664
  }
15665
- function writeCapturedStyleRecord(slots, slot, source, sourceLayer) {
15665
+ function writeStyleSlot(slots, slot, source, sourceLayer) {
15666
15666
  var list = slots.get(slot);
15667
15667
  if (!list) slots.set(slot, list = []);
15668
15668
  var flags = source[7] & 31;
@@ -15687,9 +15687,8 @@ function writeCapturedStyleRecord(slots, slot, source, sourceLayer) {
15687
15687
  break;
15688
15688
  }
15689
15689
  }
15690
- var next = [...source];
15691
- next[7] = flags | sourceLayer << 5;
15692
- list.push(next);
15690
+ source[7] = flags | sourceLayer << 5;
15691
+ list.push(source);
15693
15692
  }
15694
15693
  function mergeStyle(styleState, key, val) {
15695
15694
  arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
@@ -15788,7 +15787,7 @@ var recordDefault = 8;
15788
15787
  var recordCSS = 16;
15789
15788
  function writeStyleRecord(state, property, value, cursor, original, flags) {
15790
15789
  var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
15791
- var _direct_flatPass;
15790
+ var _direct_flatPass, _direct_flatPass1;
15792
15791
  var _direct;
15793
15792
  var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
15794
15793
  var identity = cursor ? cursor[conditionKey] : "";
@@ -15813,23 +15812,7 @@ function writeStyleRecord(state, property, value, cursor, original, flags) {
15813
15812
  if (entry[0] === property && !entry[2] && entryFlags >> 5 === sourceLayerStyle && (entryFlags & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) other.splice(index--, 1);
15814
15813
  }
15815
15814
  }
15816
- for (var index1 = 0; index1 < list.length; index1++) {
15817
- var entry1 = list[index1];
15818
- var entryFlags1 = entry1[7];
15819
- if ((entryFlags1 & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) continue;
15820
- if (entry1[0] !== property) continue;
15821
- if (flags & recordDefault) {
15822
- if (!(entryFlags1 & recordDefault) && (!entry1[2] || entry1[3] === identity)) return;
15823
- } else if (entryFlags1 & recordDefault && (!condition || entry1[3] === identity)) {
15824
- list.splice(index1--, 1);
15825
- continue;
15826
- }
15827
- if (entry1[3] === identity) {
15828
- list.splice(index1, 1);
15829
- break;
15830
- }
15831
- }
15832
- list.push([
15815
+ writeStyleSlot(slots, slot, [
15833
15816
  property,
15834
15817
  value,
15835
15818
  condition,
@@ -15837,8 +15820,10 @@ function writeStyleRecord(state, property, value, cursor, original, flags) {
15837
15820
  cursor ? cursor[conditionSelector] : "",
15838
15821
  cursor ? cursor[conditionWrappers] : void 0,
15839
15822
  original,
15840
- flags | sourceLayer << 5
15841
- ]);
15823
+ flags,
15824
+ void 0,
15825
+ !sourceLayer && ((_direct_flatPass1 = direct.flatPass) === null || _direct_flatPass1 === void 0 ? void 0 : _direct_flatPass1[passVariantOutput])
15826
+ ], sourceLayer);
15842
15827
  }
15843
15828
  function streamWriteInline(state, property, value, cursor, original) {
15844
15829
  var normalize = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : property === "lineHeight", conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1, force = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
@@ -16107,19 +16092,22 @@ function configuredValue(state, property, raw) {
16107
16092
  }
16108
16093
  function ownsSourceLayer(state, property) {
16109
16094
  var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
16110
- var _direct_flatPass;
16095
+ var _direct_flatPass, _direct_flatPass1;
16111
16096
  var _direct;
16112
16097
  var direct = state;
16113
16098
  var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
16114
16099
  var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
16115
16100
  var previous = layers.get(property);
16116
- if (previous !== void 0) {
16117
- if (previous > layer) return false;
16118
- if (previous < layer) {
16119
- if (conditional) return true;
16120
- clearDirectStyle(state, property);
16101
+ if (!layer && !conditional && !((_direct_flatPass1 = direct.flatPass) === null || _direct_flatPass1 === void 0 ? void 0 : _direct_flatPass1[passVariantOutput])) {
16102
+ var _direct_flatSlots;
16103
+ var entries = (_direct_flatSlots = direct.flatSlots) === null || _direct_flatSlots === void 0 ? void 0 : _direct_flatSlots.get(property);
16104
+ if (entries) {
16105
+ for (var index = entries.length; index--;) if (entries[index][0] === property && entries[index][9]) entries.splice(index, 1);
16121
16106
  }
16122
- } else if (conditional) return true;
16107
+ }
16108
+ if (previous > layer) return false;
16109
+ if (conditional && previous !== layer) return true;
16110
+ if (previous < layer) clearDirectStyle(state, property);
16123
16111
  layers.set(property, layer);
16124
16112
  return true;
16125
16113
  }
@@ -5876,7 +5876,7 @@ function contributeProp(pass, keyOg, valOg) {
5876
5876
  var property2 = entry[0] === "--t-x" ? "x" : entry[0] === "--t-y" ? "y" : entry[0] === "--t-scale-x" ? "scaleX" : entry[0] === "--t-scale-y" ? "scaleY" : entry[0];
5877
5877
  var value = ((_styleState_animationDriver = styleState.animationDriver) === null || _styleState_animationDriver === void 0 ? void 0 : _styleState_animationDriver.inputStyle) === "value" ? entry[6] : entry[1];
5878
5878
  entry[3] ? contributeValue(styleState, property2, value, entry[6], false, entry[3]) : emitValue(styleState, property2, value, null, entry[6], false);
5879
- } else writeCapturedStyleRecord(slots, slot, entry, pass[passSourceLayer]);
5879
+ } else writeStyleSlot(slots, slot, [...entry], pass[passSourceLayer]);
5880
5880
  }
5881
5881
  } catch (err) {
5882
5882
  _didIteratorError1 = true;
@@ -6457,7 +6457,7 @@ function resolveStylePiece(styleState, piece) {
6457
6457
  themeCache.set(theme, resolved);
6458
6458
  return resolved;
6459
6459
  }
6460
- function writeCapturedStyleRecord(slots, slot, source, sourceLayer) {
6460
+ function writeStyleSlot(slots, slot, source, sourceLayer) {
6461
6461
  var list = slots.get(slot);
6462
6462
  if (!list) slots.set(slot, list = []);
6463
6463
  var flags = source[7] & 31;
@@ -6482,9 +6482,8 @@ function writeCapturedStyleRecord(slots, slot, source, sourceLayer) {
6482
6482
  break;
6483
6483
  }
6484
6484
  }
6485
- var next = [...source];
6486
- next[7] = flags | sourceLayer << 5;
6487
- list.push(next);
6485
+ source[7] = flags | sourceLayer << 5;
6486
+ list.push(source);
6488
6487
  }
6489
6488
  function mergeStyle(styleState, key, val) {
6490
6489
  arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
@@ -6583,7 +6582,7 @@ var recordDefault = 8;
6583
6582
  var recordCSS = 16;
6584
6583
  function writeStyleRecord(state, property, value, cursor, original, flags) {
6585
6584
  var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
6586
- var _direct_flatPass;
6585
+ var _direct_flatPass, _direct_flatPass1;
6587
6586
  var _direct;
6588
6587
  var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
6589
6588
  var identity = cursor ? cursor[conditionKey] : "";
@@ -6608,23 +6607,7 @@ function writeStyleRecord(state, property, value, cursor, original, flags) {
6608
6607
  if (entry[0] === property && !entry[2] && entryFlags >> 5 === sourceLayerStyle && (entryFlags & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) other.splice(index--, 1);
6609
6608
  }
6610
6609
  }
6611
- for (var index1 = 0; index1 < list.length; index1++) {
6612
- var entry1 = list[index1];
6613
- var entryFlags1 = entry1[7];
6614
- if ((entryFlags1 & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) continue;
6615
- if (entry1[0] !== property) continue;
6616
- if (flags & recordDefault) {
6617
- if (!(entryFlags1 & recordDefault) && (!entry1[2] || entry1[3] === identity)) return;
6618
- } else if (entryFlags1 & recordDefault && (!condition || entry1[3] === identity)) {
6619
- list.splice(index1--, 1);
6620
- continue;
6621
- }
6622
- if (entry1[3] === identity) {
6623
- list.splice(index1, 1);
6624
- break;
6625
- }
6626
- }
6627
- list.push([
6610
+ writeStyleSlot(slots, slot, [
6628
6611
  property,
6629
6612
  value,
6630
6613
  condition,
@@ -6632,8 +6615,10 @@ function writeStyleRecord(state, property, value, cursor, original, flags) {
6632
6615
  cursor ? cursor[conditionSelector] : "",
6633
6616
  cursor ? cursor[conditionWrappers] : void 0,
6634
6617
  original,
6635
- flags | sourceLayer << 5
6636
- ]);
6618
+ flags,
6619
+ void 0,
6620
+ !sourceLayer && ((_direct_flatPass1 = direct.flatPass) === null || _direct_flatPass1 === void 0 ? void 0 : _direct_flatPass1[passVariantOutput])
6621
+ ], sourceLayer);
6637
6622
  }
6638
6623
  function streamWriteInline(state, property, value, cursor, original) {
6639
6624
  var normalize = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : property === "lineHeight", conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1, force = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
@@ -6997,19 +6982,22 @@ function configuredValue(state, property, raw) {
6997
6982
  }
6998
6983
  function ownsSourceLayer(state, property) {
6999
6984
  var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
7000
- var _direct_flatPass;
6985
+ var _direct_flatPass, _direct_flatPass1;
7001
6986
  var _direct;
7002
6987
  var direct = state;
7003
6988
  var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
7004
6989
  var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
7005
6990
  var previous = layers.get(property);
7006
- if (previous !== void 0) {
7007
- if (previous > layer) return false;
7008
- if (previous < layer) {
7009
- if (conditional) return true;
7010
- clearDirectStyle(state, property);
6991
+ if (!layer && !conditional && !((_direct_flatPass1 = direct.flatPass) === null || _direct_flatPass1 === void 0 ? void 0 : _direct_flatPass1[passVariantOutput])) {
6992
+ var _direct_flatSlots;
6993
+ var entries = (_direct_flatSlots = direct.flatSlots) === null || _direct_flatSlots === void 0 ? void 0 : _direct_flatSlots.get(property);
6994
+ if (entries) {
6995
+ for (var index = entries.length; index--;) if (entries[index][0] === property && entries[index][9]) entries.splice(index, 1);
7011
6996
  }
7012
- } else if (conditional) return true;
6997
+ }
6998
+ if (previous > layer) return false;
6999
+ if (conditional && previous !== layer) return true;
7000
+ if (previous < layer) clearDirectStyle(state, property);
7013
7001
  layers.set(property, layer);
7014
7002
  return true;
7015
7003
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "3.0.0-beta.1546.1",
3
+ "version": "3.0.0-beta.1562.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -137,19 +137,19 @@
137
137
  "clean:build": "tamagui-build clean:build"
138
138
  },
139
139
  "dependencies": {
140
- "@tamagui/compose-refs": "3.0.0-beta.1546.1",
141
- "@tamagui/constants": "3.0.0-beta.1546.1",
142
- "@tamagui/helpers": "3.0.0-beta.1546.1",
143
- "@tamagui/react-native-media-driver": "3.0.0-beta.1546.1",
144
- "@tamagui/react-native-use-pressable": "3.0.0-beta.1546.1",
145
- "@tamagui/use-element-layout": "3.0.0-beta.1546.1",
146
- "@tamagui/use-event": "3.0.0-beta.1546.1",
147
- "@tamagui/web": "3.0.0-beta.1546.1"
140
+ "@tamagui/compose-refs": "3.0.0-beta.1562.1",
141
+ "@tamagui/constants": "3.0.0-beta.1562.1",
142
+ "@tamagui/helpers": "3.0.0-beta.1562.1",
143
+ "@tamagui/react-native-media-driver": "3.0.0-beta.1562.1",
144
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.1562.1",
145
+ "@tamagui/use-element-layout": "3.0.0-beta.1562.1",
146
+ "@tamagui/use-event": "3.0.0-beta.1562.1",
147
+ "@tamagui/web": "3.0.0-beta.1562.1"
148
148
  },
149
149
  "devDependencies": {
150
- "@tamagui/build": "3.0.0-beta.1546.1",
151
- "@tamagui/native-bundle": "3.0.0-beta.1546.1",
152
- "@tamagui/react-native-web-lite": "3.0.0-beta.1546.1",
150
+ "@tamagui/build": "3.0.0-beta.1562.1",
151
+ "@tamagui/native-bundle": "3.0.0-beta.1562.1",
152
+ "@tamagui/react-native-web-lite": "3.0.0-beta.1562.1",
153
153
  "@testing-library/react": "^16.1.0",
154
154
  "csstype": "^3.0.10",
155
155
  "react": "19.2.3",