@tamagui/core 1.143.0 → 1.144.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
@@ -9012,13 +9012,27 @@ function getNewThemeName() {
9012
9012
  if (!found && !nameHasScheme) {
9013
9013
  var parentScheme = getScheme(parentName);
9014
9014
  if (parentScheme) {
9015
- var parentBase = parentParts.join("_"), withScheme = [componentName ? `${parentBase}_${name}_${componentName}` : void 0, `${parentBase}_${name}`, componentName ? `${parentScheme}_${name}_${componentName}` : void 0, `${parentScheme}_${name}`].filter(Boolean), _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
9015
+ for (var potentialBases = [], i = parentParts.length; i >= 1; i--) potentialBases.push(parentParts.slice(0, i).join("_"));
9016
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
9016
9017
  try {
9017
- for (var _iterator1 = withScheme[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
9018
- var potential = _step1.value;
9019
- if (potential in themes2) {
9020
- found = potential;
9021
- break;
9018
+ outer: for (var _iterator1 = potentialBases[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
9019
+ var base = _step1.value, candidates = [componentName ? `${base}_${name}_${componentName}` : void 0, `${base}_${name}`].filter(Boolean), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
9020
+ try {
9021
+ for (var _iterator2 = candidates[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
9022
+ var potential = _step2.value;
9023
+ if (potential in themes2) {
9024
+ found = potential;
9025
+ break outer;
9026
+ }
9027
+ }
9028
+ } catch (err) {
9029
+ _didIteratorError2 = true, _iteratorError2 = err;
9030
+ } finally {
9031
+ try {
9032
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
9033
+ } finally {
9034
+ if (_didIteratorError2) throw _iteratorError2;
9035
+ }
9022
9036
  }
9023
9037
  }
9024
9038
  } catch (err) {
@@ -9036,23 +9050,23 @@ function getNewThemeName() {
9036
9050
  if (!found) if (!name && componentName) {
9037
9051
  var potential1 = `${parentParts.join("_")}_${componentName}`;
9038
9052
  potential1 in themes2 && (found = potential1);
9039
- } else for (var max = parentParts.length, i = 0; i <= max; i++) {
9040
- var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
9053
+ } else for (var max = parentParts.length, i1 = 0; i1 <= max; i1++) {
9054
+ var base1 = (i1 === 0 ? parentParts : parentParts.slice(0, -i1)).join("_"), _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = void 0;
9041
9055
  try {
9042
- for (var _iterator2 = subNames[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
9043
- var subName1 = _step2.value, potential2 = base ? `${base}_${subName1}` : subName1;
9056
+ for (var _iterator3 = subNames[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
9057
+ var subName1 = _step3.value, potential2 = base1 ? `${base1}_${subName1}` : subName1;
9044
9058
  if (potential2 in themes2) {
9045
9059
  found = potential2;
9046
9060
  break;
9047
9061
  }
9048
9062
  }
9049
9063
  } catch (err) {
9050
- _didIteratorError2 = true, _iteratorError2 = err;
9064
+ _didIteratorError3 = true, _iteratorError3 = err;
9051
9065
  } finally {
9052
9066
  try {
9053
- !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
9067
+ !_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
9054
9068
  } finally {
9055
- if (_didIteratorError2) throw _iteratorError2;
9069
+ if (_didIteratorError3) throw _iteratorError3;
9056
9070
  }
9057
9071
  }
9058
9072
  if (found) break;
@@ -11063,7 +11077,7 @@ function createComponent(staticConfig) {
11063
11077
  }, attachPress && {
11064
11078
  onMouseEnter: function(e2) {
11065
11079
  var next = {};
11066
- needsHoverState && (next.hover = true), needsPressState && state.pressIn && (next.press = true), setStateShallow(next), onHoverIn == null ? void 0 : onHoverIn(e2), onMouseEnter == null ? void 0 : onMouseEnter(e2);
11080
+ needsHoverState && true && (next.hover = true), needsPressState && state.pressIn && (next.press = true), setStateShallow(next), onHoverIn == null ? void 0 : onHoverIn(e2), onMouseEnter == null ? void 0 : onMouseEnter(e2);
11067
11081
  },
11068
11082
  onMouseLeave: function(e2) {
11069
11083
  var next = {};
@@ -1164,13 +1164,27 @@ function getNewThemeName() {
1164
1164
  if (!found && !nameHasScheme) {
1165
1165
  var parentScheme = getScheme(parentName);
1166
1166
  if (parentScheme) {
1167
- var parentBase = parentParts.join("_"), withScheme = [componentName ? `${parentBase}_${name}_${componentName}` : void 0, `${parentBase}_${name}`, componentName ? `${parentScheme}_${name}_${componentName}` : void 0, `${parentScheme}_${name}`].filter(Boolean), _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
1167
+ for (var potentialBases = [], i = parentParts.length; i >= 1; i--) potentialBases.push(parentParts.slice(0, i).join("_"));
1168
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
1168
1169
  try {
1169
- for (var _iterator1 = withScheme[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
1170
- var potential = _step1.value;
1171
- if (potential in themes2) {
1172
- found = potential;
1173
- break;
1170
+ outer: for (var _iterator1 = potentialBases[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
1171
+ var base = _step1.value, candidates = [componentName ? `${base}_${name}_${componentName}` : void 0, `${base}_${name}`].filter(Boolean), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
1172
+ try {
1173
+ for (var _iterator2 = candidates[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
1174
+ var potential = _step2.value;
1175
+ if (potential in themes2) {
1176
+ found = potential;
1177
+ break outer;
1178
+ }
1179
+ }
1180
+ } catch (err) {
1181
+ _didIteratorError2 = true, _iteratorError2 = err;
1182
+ } finally {
1183
+ try {
1184
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
1185
+ } finally {
1186
+ if (_didIteratorError2) throw _iteratorError2;
1187
+ }
1174
1188
  }
1175
1189
  }
1176
1190
  } catch (err) {
@@ -1188,23 +1202,23 @@ function getNewThemeName() {
1188
1202
  if (!found) if (!name && componentName) {
1189
1203
  var potential1 = `${parentParts.join("_")}_${componentName}`;
1190
1204
  potential1 in themes2 && (found = potential1);
1191
- } else for (var max = parentParts.length, i = 0; i <= max; i++) {
1192
- var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
1205
+ } else for (var max = parentParts.length, i1 = 0; i1 <= max; i1++) {
1206
+ var base1 = (i1 === 0 ? parentParts : parentParts.slice(0, -i1)).join("_"), _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = void 0;
1193
1207
  try {
1194
- for (var _iterator2 = subNames[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
1195
- var subName1 = _step2.value, potential2 = base ? `${base}_${subName1}` : subName1;
1208
+ for (var _iterator3 = subNames[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
1209
+ var subName1 = _step3.value, potential2 = base1 ? `${base1}_${subName1}` : subName1;
1196
1210
  if (potential2 in themes2) {
1197
1211
  found = potential2;
1198
1212
  break;
1199
1213
  }
1200
1214
  }
1201
1215
  } catch (err) {
1202
- _didIteratorError2 = true, _iteratorError2 = err;
1216
+ _didIteratorError3 = true, _iteratorError3 = err;
1203
1217
  } finally {
1204
1218
  try {
1205
- !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
1219
+ !_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
1206
1220
  } finally {
1207
- if (_didIteratorError2) throw _iteratorError2;
1221
+ if (_didIteratorError3) throw _iteratorError3;
1208
1222
  }
1209
1223
  }
1210
1224
  if (found) break;
@@ -3762,7 +3776,7 @@ function createComponent(staticConfig) {
3762
3776
  }, attachPress && {
3763
3777
  onMouseEnter: function(e2) {
3764
3778
  var next = {};
3765
- needsHoverState && (next.hover = true), needsPressState && state.pressIn && (next.press = true), setStateShallow(next), onHoverIn == null ? void 0 : onHoverIn(e2), onMouseEnter == null ? void 0 : onMouseEnter(e2);
3779
+ needsHoverState && true && (next.hover = true), needsPressState && state.pressIn && (next.press = true), setStateShallow(next), onHoverIn == null ? void 0 : onHoverIn(e2), onMouseEnter == null ? void 0 : onMouseEnter(e2);
3766
3780
  },
3767
3781
  onMouseLeave: function(e2) {
3768
3782
  var next = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "1.143.0",
3
+ "version": "1.144.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.143.0",
37
- "@tamagui/react-native-media-driver": "1.143.0",
38
- "@tamagui/react-native-use-pressable": "1.143.0",
39
- "@tamagui/react-native-use-responder-events": "1.143.0",
40
- "@tamagui/use-element-layout": "1.143.0",
41
- "@tamagui/use-event": "1.143.0",
42
- "@tamagui/web": "1.143.0"
36
+ "@tamagui/helpers": "1.144.0",
37
+ "@tamagui/react-native-media-driver": "1.144.0",
38
+ "@tamagui/react-native-use-pressable": "1.144.0",
39
+ "@tamagui/react-native-use-responder-events": "1.144.0",
40
+ "@tamagui/use-element-layout": "1.144.0",
41
+ "@tamagui/use-event": "1.144.0",
42
+ "@tamagui/web": "1.144.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "1.143.0",
46
- "@tamagui/native-bundle": "1.143.0",
47
- "@tamagui/react-native-web-lite": "1.143.0",
45
+ "@tamagui/build": "1.144.0",
46
+ "@tamagui/native-bundle": "1.144.0",
47
+ "@tamagui/react-native-web-lite": "1.144.0",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",