tamagui 1.132.16 → 1.132.17
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.js +2 -91
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +2 -91
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -1130,92 +1130,6 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
1132
|
|
|
1133
|
-
// ../../core/helpers/dist/cjs/concatClassName.native.js
|
|
1134
|
-
var require_concatClassName_native = __commonJS({
|
|
1135
|
-
"../../core/helpers/dist/cjs/concatClassName.native.js"(exports2, module2) {
|
|
1136
|
-
"use strict";
|
|
1137
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1138
|
-
for (var name in all) __defProp2(target, name, {
|
|
1139
|
-
get: all[name],
|
|
1140
|
-
enumerable: !0
|
|
1141
|
-
});
|
|
1142
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
1143
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1144
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1145
|
-
for (var _loop = function() {
|
|
1146
|
-
var key = _step.value;
|
|
1147
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
1148
|
-
get: function() {
|
|
1149
|
-
return from[key];
|
|
1150
|
-
},
|
|
1151
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
1152
|
-
});
|
|
1153
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
1154
|
-
} catch (err) {
|
|
1155
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
1156
|
-
} finally {
|
|
1157
|
-
try {
|
|
1158
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
1159
|
-
} finally {
|
|
1160
|
-
if (_didIteratorError)
|
|
1161
|
-
throw _iteratorError;
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
return to;
|
|
1165
|
-
}, __toCommonJS2 = function(mod) {
|
|
1166
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1167
|
-
value: !0
|
|
1168
|
-
}), mod);
|
|
1169
|
-
}, concatClassName_exports = {};
|
|
1170
|
-
__export2(concatClassName_exports, {
|
|
1171
|
-
concatClassName: function() {
|
|
1172
|
-
return concatClassName;
|
|
1173
|
-
}
|
|
1174
|
-
});
|
|
1175
|
-
module2.exports = __toCommonJS2(concatClassName_exports);
|
|
1176
|
-
function concatClassName(_cn) {
|
|
1177
|
-
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
1178
|
-
var _loop = function(i2) {
|
|
1179
|
-
var name = names[i2];
|
|
1180
|
-
if (!name || name === " ") return "continue";
|
|
1181
|
-
if (name[0] !== "_") return final = name + " " + final, "continue";
|
|
1182
|
-
var splitIndex = name.indexOf("-");
|
|
1183
|
-
if (splitIndex < 1) return final = name + " " + final, "continue";
|
|
1184
|
-
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
1185
|
-
if (usedPrefixes.indexOf(uid) > -1) return "continue";
|
|
1186
|
-
usedPrefixes.push(uid);
|
|
1187
|
-
var propName = styleKey;
|
|
1188
|
-
if (propName && propObjects && propObjects.some(function(po) {
|
|
1189
|
-
if (mediaKey) {
|
|
1190
|
-
var propKey = pseudoInvert[mediaKey];
|
|
1191
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
1192
|
-
}
|
|
1193
|
-
var res = po && propName in po && po[propName] !== null;
|
|
1194
|
-
return res;
|
|
1195
|
-
})) return "continue";
|
|
1196
|
-
final = name + " " + final;
|
|
1197
|
-
}, cns = args[x];
|
|
1198
|
-
if (cns) {
|
|
1199
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
1200
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
1201
|
-
continue;
|
|
1202
|
-
}
|
|
1203
|
-
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
return final;
|
|
1207
|
-
}
|
|
1208
|
-
var pseudoInvert = {
|
|
1209
|
-
hover: "hoverStyle",
|
|
1210
|
-
focus: "focusStyle",
|
|
1211
|
-
press: "pressStyle",
|
|
1212
|
-
focusVisible: "focusVisibleStyle",
|
|
1213
|
-
focusWithin: "focusWithinStyle",
|
|
1214
|
-
disabled: "disabledStyle"
|
|
1215
|
-
};
|
|
1216
|
-
}
|
|
1217
|
-
});
|
|
1218
|
-
|
|
1219
1133
|
// ../../core/helpers/dist/cjs/types.native.js
|
|
1220
1134
|
var require_types_native2 = __commonJS({
|
|
1221
1135
|
"../../core/helpers/dist/cjs/types.native.js"(exports2, module2) {
|
|
@@ -1776,7 +1690,6 @@ var require_index_native7 = __commonJS({
|
|
|
1776
1690
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
1777
1691
|
__reExport2(index_exports2, require_clamp_native(), module2.exports);
|
|
1778
1692
|
__reExport2(index_exports2, require_composeEventHandlers_native(), module2.exports);
|
|
1779
|
-
__reExport2(index_exports2, require_concatClassName_native(), module2.exports);
|
|
1780
1693
|
__reExport2(index_exports2, require_types_native2(), module2.exports);
|
|
1781
1694
|
__reExport2(index_exports2, require_shouldRenderNativePlatform_native(), module2.exports);
|
|
1782
1695
|
__reExport2(index_exports2, require_validStyleProps_native(), module2.exports);
|
|
@@ -7164,7 +7077,7 @@ var require_mergeProps_native = __commonJS({
|
|
|
7164
7077
|
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
7165
7078
|
if (b && Object.keys(b).length > 0) {
|
|
7166
7079
|
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
7167
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && key4 in a && key4 in out;
|
|
7080
|
+
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
7168
7081
|
});
|
|
7169
7082
|
if (hasPropsNeedingReorder) {
|
|
7170
7083
|
var reordered = {};
|
|
@@ -22583,9 +22496,7 @@ var require_Label_native = __commonJS({
|
|
|
22583
22496
|
});
|
|
22584
22497
|
});
|
|
22585
22498
|
LabelComponent.displayName = NAME;
|
|
22586
|
-
var Label = LabelFrame.extractable((0, import_web.themeable)(LabelComponent), {
|
|
22587
|
-
neverFlatten: !0
|
|
22588
|
-
}), useLabelContext = function(element) {
|
|
22499
|
+
var Label = LabelFrame.extractable((0, import_web.themeable)(LabelComponent)), useLabelContext = function(element) {
|
|
22589
22500
|
var context = useLabelContextImpl("LabelConsumer"), { controlRef } = context;
|
|
22590
22501
|
return React4.useEffect(function() {
|
|
22591
22502
|
element && (controlRef.current = element);
|