@tamagui/core 1.143.1 → 1.144.1-1768163771506
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 +30 -16
- package/dist/test.native.cjs +30 -16
- package/package.json +11 -11
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
|
|
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 =
|
|
9018
|
-
var
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
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,
|
|
9040
|
-
var
|
|
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
|
|
9043
|
-
var 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
|
-
|
|
9064
|
+
_didIteratorError3 = true, _iteratorError3 = err;
|
|
9051
9065
|
} finally {
|
|
9052
9066
|
try {
|
|
9053
|
-
!
|
|
9067
|
+
!_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
|
|
9054
9068
|
} finally {
|
|
9055
|
-
if (
|
|
9069
|
+
if (_didIteratorError3) throw _iteratorError3;
|
|
9056
9070
|
}
|
|
9057
9071
|
}
|
|
9058
9072
|
if (found) break;
|
|
@@ -10753,14 +10767,14 @@ function createComponent(staticConfig) {
|
|
|
10753
10767
|
var {
|
|
10754
10768
|
context,
|
|
10755
10769
|
isReactNative
|
|
10756
|
-
} = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
|
|
10770
|
+
} = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
|
|
10757
10771
|
var props = propsIn;
|
|
10758
10772
|
if (styledContextValue || defaultProps2) {
|
|
10759
|
-
var [nextProps, overrides] = mergeComponentProps(
|
|
10773
|
+
var effectiveDefaults = defaultProps2, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
|
|
10760
10774
|
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
10761
10775
|
}
|
|
10762
10776
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
10763
|
-
var
|
|
10777
|
+
var groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
|
|
10764
10778
|
disabled,
|
|
10765
10779
|
groupName,
|
|
10766
10780
|
hasAnimationProp,
|
package/dist/test.native.cjs
CHANGED
|
@@ -1164,13 +1164,27 @@ function getNewThemeName() {
|
|
|
1164
1164
|
if (!found && !nameHasScheme) {
|
|
1165
1165
|
var parentScheme = getScheme(parentName);
|
|
1166
1166
|
if (parentScheme) {
|
|
1167
|
-
var
|
|
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 =
|
|
1170
|
-
var
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
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,
|
|
1192
|
-
var
|
|
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
|
|
1195
|
-
var 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
|
-
|
|
1216
|
+
_didIteratorError3 = true, _iteratorError3 = err;
|
|
1203
1217
|
} finally {
|
|
1204
1218
|
try {
|
|
1205
|
-
!
|
|
1219
|
+
!_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
|
|
1206
1220
|
} finally {
|
|
1207
|
-
if (
|
|
1221
|
+
if (_didIteratorError3) throw _iteratorError3;
|
|
1208
1222
|
}
|
|
1209
1223
|
}
|
|
1210
1224
|
if (found) break;
|
|
@@ -3452,14 +3466,14 @@ function createComponent(staticConfig) {
|
|
|
3452
3466
|
var {
|
|
3453
3467
|
context,
|
|
3454
3468
|
isReactNative
|
|
3455
|
-
} = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
|
|
3469
|
+
} = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
|
|
3456
3470
|
var props = propsIn;
|
|
3457
3471
|
if (styledContextValue || defaultProps) {
|
|
3458
|
-
var [nextProps, overrides] = mergeComponentProps(
|
|
3472
|
+
var effectiveDefaults = defaultProps, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
|
|
3459
3473
|
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
3460
3474
|
}
|
|
3461
3475
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
3462
|
-
var
|
|
3476
|
+
var groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
|
|
3463
3477
|
disabled,
|
|
3464
3478
|
groupName,
|
|
3465
3479
|
hasAnimationProp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.144.1-1768163771506",
|
|
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.
|
|
37
|
-
"@tamagui/react-native-media-driver": "1.
|
|
38
|
-
"@tamagui/react-native-use-pressable": "1.
|
|
39
|
-
"@tamagui/react-native-use-responder-events": "1.
|
|
40
|
-
"@tamagui/use-element-layout": "1.
|
|
41
|
-
"@tamagui/use-event": "1.
|
|
42
|
-
"@tamagui/web": "1.
|
|
36
|
+
"@tamagui/helpers": "1.144.1-1768163771506",
|
|
37
|
+
"@tamagui/react-native-media-driver": "1.144.1-1768163771506",
|
|
38
|
+
"@tamagui/react-native-use-pressable": "1.144.1-1768163771506",
|
|
39
|
+
"@tamagui/react-native-use-responder-events": "1.144.1-1768163771506",
|
|
40
|
+
"@tamagui/use-element-layout": "1.144.1-1768163771506",
|
|
41
|
+
"@tamagui/use-event": "1.144.1-1768163771506",
|
|
42
|
+
"@tamagui/web": "1.144.1-1768163771506"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "1.
|
|
46
|
-
"@tamagui/native-bundle": "1.
|
|
47
|
-
"@tamagui/react-native-web-lite": "1.
|
|
45
|
+
"@tamagui/build": "1.144.1-1768163771506",
|
|
46
|
+
"@tamagui/native-bundle": "1.144.1-1768163771506",
|
|
47
|
+
"@tamagui/react-native-web-lite": "1.144.1-1768163771506",
|
|
48
48
|
"@testing-library/react": "^16.1.0",
|
|
49
49
|
"csstype": "^3.0.10",
|
|
50
50
|
"react": "*",
|