@tamagui/core 1.129.0 → 1.129.2
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 +4 -8
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -8
- package/dist/test.native.js.map +1 -1
- package/package.json +8 -8
package/dist/test.native.js
CHANGED
|
@@ -7379,12 +7379,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7379
7379
|
return Component2.staticConfig = extendStyledConfig(extended), Component2.styleable = styleable, Component2;
|
|
7380
7380
|
}
|
|
7381
7381
|
function styleable(Component2, options) {
|
|
7382
|
-
var _Component_render,
|
|
7383
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component2, {
|
|
7384
|
-
...props,
|
|
7385
|
-
ref
|
|
7386
|
-
});
|
|
7387
|
-
}), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
|
|
7382
|
+
var _Component_render, skipForwardRef = import_constants2.IS_REACT_19 && typeof Component2 == "function" || ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = skipForwardRef ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
|
|
7388
7383
|
return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig, !0), process.env.TAMAGUI_MEMOIZE_STYLEABLE && (out = /* @__PURE__ */ import_react3.default.memo(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
|
|
7389
7384
|
}
|
|
7390
7385
|
return res.extractable = extractable, res.styleable = styleable, res;
|
|
@@ -7395,7 +7390,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7395
7390
|
Unspaced.isUnspaced = !0;
|
|
7396
7391
|
var getSpacerSize = function(size, param) {
|
|
7397
7392
|
var { tokens } = param;
|
|
7398
|
-
size = size === !0 ? "$true" : size;
|
|
7393
|
+
size = size === !1 ? 0 : size === !0 ? "$true" : size;
|
|
7399
7394
|
var _tokens_space_size, sizePx = (_tokens_space_size = tokens.space[size]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size;
|
|
7400
7395
|
return {
|
|
7401
7396
|
width: sizePx,
|
|
@@ -7447,6 +7442,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7447
7442
|
for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
7448
7443
|
var [index, child] = _step.value, _child_type, isEmpty = child == null || Array.isArray(child) && child.length === 0;
|
|
7449
7444
|
if (!isEmpty && /* @__PURE__ */ import_react3.default.isValidElement(child) && !((_child_type = child.type) === null || _child_type === void 0) && _child_type.shouldForwardSpace && (child = /* @__PURE__ */ import_react3.default.cloneElement(child, {
|
|
7445
|
+
// @ts-expect-error we explicitly know with shouldForwardSpace
|
|
7450
7446
|
space,
|
|
7451
7447
|
spaceFlex,
|
|
7452
7448
|
separator,
|
|
@@ -7514,7 +7510,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7514
7510
|
pointerEvents: "box-none"
|
|
7515
7511
|
}
|
|
7516
7512
|
}), fromPx = function(val) {
|
|
7517
|
-
return typeof val
|
|
7513
|
+
return typeof val == "number" ? val : typeof val == "string" ? +val.replace("px", "") : 0;
|
|
7518
7514
|
};
|
|
7519
7515
|
}
|
|
7520
7516
|
});
|