@tamagui/core 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 +1 -88
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +1 -88
- package/dist/test.native.js.map +3 -3
- package/package.json +10 -10
package/dist/test.native.js
CHANGED
|
@@ -210,92 +210,6 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
// ../helpers/dist/cjs/concatClassName.native.js
|
|
214
|
-
var require_concatClassName_native = __commonJS({
|
|
215
|
-
"../helpers/dist/cjs/concatClassName.native.js"(exports2, module2) {
|
|
216
|
-
"use strict";
|
|
217
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
218
|
-
for (var name in all) __defProp2(target, name, {
|
|
219
|
-
get: all[name],
|
|
220
|
-
enumerable: !0
|
|
221
|
-
});
|
|
222
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
223
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
224
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
225
|
-
for (var _loop = function() {
|
|
226
|
-
var key = _step.value;
|
|
227
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
228
|
-
get: function() {
|
|
229
|
-
return from[key];
|
|
230
|
-
},
|
|
231
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
232
|
-
});
|
|
233
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
234
|
-
} catch (err) {
|
|
235
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
236
|
-
} finally {
|
|
237
|
-
try {
|
|
238
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
239
|
-
} finally {
|
|
240
|
-
if (_didIteratorError)
|
|
241
|
-
throw _iteratorError;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return to;
|
|
245
|
-
}, __toCommonJS2 = function(mod) {
|
|
246
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
247
|
-
value: !0
|
|
248
|
-
}), mod);
|
|
249
|
-
}, concatClassName_exports = {};
|
|
250
|
-
__export2(concatClassName_exports, {
|
|
251
|
-
concatClassName: function() {
|
|
252
|
-
return concatClassName;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
module2.exports = __toCommonJS2(concatClassName_exports);
|
|
256
|
-
function concatClassName(_cn) {
|
|
257
|
-
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
258
|
-
var _loop = function(i2) {
|
|
259
|
-
var name = names[i2];
|
|
260
|
-
if (!name || name === " ") return "continue";
|
|
261
|
-
if (name[0] !== "_") return final = name + " " + final, "continue";
|
|
262
|
-
var splitIndex = name.indexOf("-");
|
|
263
|
-
if (splitIndex < 1) return final = name + " " + final, "continue";
|
|
264
|
-
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;
|
|
265
|
-
if (usedPrefixes.indexOf(uid) > -1) return "continue";
|
|
266
|
-
usedPrefixes.push(uid);
|
|
267
|
-
var propName = styleKey;
|
|
268
|
-
if (propName && propObjects && propObjects.some(function(po) {
|
|
269
|
-
if (mediaKey) {
|
|
270
|
-
var propKey = pseudoInvert[mediaKey];
|
|
271
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
272
|
-
}
|
|
273
|
-
var res = po && propName in po && po[propName] !== null;
|
|
274
|
-
return res;
|
|
275
|
-
})) return "continue";
|
|
276
|
-
final = name + " " + final;
|
|
277
|
-
}, cns = args[x];
|
|
278
|
-
if (cns) {
|
|
279
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
280
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return final;
|
|
287
|
-
}
|
|
288
|
-
var pseudoInvert = {
|
|
289
|
-
hover: "hoverStyle",
|
|
290
|
-
focus: "focusStyle",
|
|
291
|
-
press: "pressStyle",
|
|
292
|
-
focusVisible: "focusVisibleStyle",
|
|
293
|
-
focusWithin: "focusWithinStyle",
|
|
294
|
-
disabled: "disabledStyle"
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
|
|
299
213
|
// ../helpers/dist/cjs/types.native.js
|
|
300
214
|
var require_types_native = __commonJS({
|
|
301
215
|
"../helpers/dist/cjs/types.native.js"(exports2, module2) {
|
|
@@ -1014,7 +928,6 @@ var require_index_native3 = __commonJS({
|
|
|
1014
928
|
__reExport2(index_exports2, require_index_native(), module2.exports);
|
|
1015
929
|
__reExport2(index_exports2, require_clamp_native(), module2.exports);
|
|
1016
930
|
__reExport2(index_exports2, require_composeEventHandlers_native(), module2.exports);
|
|
1017
|
-
__reExport2(index_exports2, require_concatClassName_native(), module2.exports);
|
|
1018
931
|
__reExport2(index_exports2, require_types_native(), module2.exports);
|
|
1019
932
|
__reExport2(index_exports2, require_shouldRenderNativePlatform_native(), module2.exports);
|
|
1020
933
|
__reExport2(index_exports2, require_validStyleProps_native(), module2.exports);
|
|
@@ -5684,7 +5597,7 @@ var require_mergeProps_native = __commonJS({
|
|
|
5684
5597
|
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
5685
5598
|
if (b && Object.keys(b).length > 0) {
|
|
5686
5599
|
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
5687
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && key4 in a && key4 in out;
|
|
5600
|
+
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
5688
5601
|
});
|
|
5689
5602
|
if (hasPropsNeedingReorder) {
|
|
5690
5603
|
var reordered = {};
|