tamagui 1.90.13 → 1.90.15

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 CHANGED
@@ -8099,24 +8099,36 @@ current`, _object_spread9({}, styleState.style)));
8099
8099
  var rule;
8100
8100
  }
8101
8101
  }
8102
- if (props.style && !isHOC) {
8103
- var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
8102
+ if (!isReactNative && viewProps.tabIndex == null)
8103
+ var _viewProps_focusable, isFocusable, role;
8104
+ }
8105
+ if (props.style)
8106
+ if (isHOC)
8107
+ viewProps.style = normalizeStyle(props.style);
8108
+ else {
8109
+ var _iteratorNormalCompletion3 = !0, _didIteratorError3 = !1, _iteratorError3 = void 0;
8104
8110
  try {
8105
- for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8106
- var style1;
8107
- if (style1 && !style1.$$css)
8108
- var _styleState4;
8111
+ for (var _iterator3 = [].concat(props.style)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8112
+ var style1 = _step3.value;
8113
+ if (style1)
8114
+ if (style1.$$css)
8115
+ Object.assign(styleState.classNames, style1);
8116
+ else {
8117
+ var _styleState4;
8118
+ (_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, normalizeStyle(style1));
8119
+ }
8109
8120
  }
8110
8121
  } catch (err) {
8122
+ _didIteratorError3 = !0, _iteratorError3 = err;
8111
8123
  } finally {
8112
8124
  try {
8125
+ !_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
8113
8126
  } finally {
8127
+ if (_didIteratorError3)
8128
+ throw _iteratorError3;
8114
8129
  }
8115
8130
  }
8116
8131
  }
8117
- if (import_constants4.isWeb && !isReactNative && viewProps.tabIndex == null)
8118
- var _viewProps_focusable, isFocusable, role;
8119
- }
8120
8132
  var result = {
8121
8133
  space,
8122
8134
  hasMedia,
@@ -8270,6 +8282,14 @@ current`, _object_spread9({}, styleState.style)));
8270
8282
  var importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, importancesUsed, isSizeMedia);
8271
8283
  return importanceBump && (importance = (importance || 0) + importanceBump), importance === null ? !1 : (importancesUsed[key] = importance, mergeStyle(styleState, key, value), !0);
8272
8284
  }
8285
+ function normalizeStyle(style) {
8286
+ var out = {};
8287
+ for (var key in style) {
8288
+ var val = style[key];
8289
+ key in import_helpers.stylePropsTransform ? mergeTransform(out, key, val) : out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
8290
+ }
8291
+ return import_constants4.isWeb && Array.isArray(out.transform) && (out.transform = (0, import_transformsToString.transformsToString)(out.transform)), (0, import_expandStyles.fixStyles)(out), out;
8292
+ }
8273
8293
  }
8274
8294
  });
8275
8295
 
@@ -12404,14 +12424,7 @@ var require_Text_native = __commonJS({
12404
12424
  inlineWhenUnflattened: /* @__PURE__ */ new Set([
12405
12425
  "fontFamily"
12406
12426
  ]),
12407
- variants: _object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9({}, !1), {
12408
- // ??
12409
- ellipsizeMode: {
12410
- "...": function() {
12411
- return null;
12412
- }
12413
- }
12414
- }), !1), {
12427
+ variants: _object_spread_props8(_object_spread9({}, !1, !1), {
12415
12428
  /**
12416
12429
  * @deprecated Use ellipsis instead
12417
12430
  */