@tamagui/core 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
@@ -8002,24 +8002,36 @@ current`, _object_spread2({}, styleState.style)));
8002
8002
  var rule;
8003
8003
  }
8004
8004
  }
8005
- if (props.style && !isHOC) {
8006
- var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
8005
+ if (!isReactNative && viewProps.tabIndex == null)
8006
+ var _viewProps_focusable, isFocusable, role;
8007
+ }
8008
+ if (props.style)
8009
+ if (isHOC)
8010
+ viewProps.style = normalizeStyle(props.style);
8011
+ else {
8012
+ var _iteratorNormalCompletion3 = !0, _didIteratorError3 = !1, _iteratorError3 = void 0;
8007
8013
  try {
8008
- for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8009
- var style1;
8010
- if (style1 && !style1.$$css)
8011
- var _styleState4;
8014
+ for (var _iterator3 = [].concat(props.style)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8015
+ var style1 = _step3.value;
8016
+ if (style1)
8017
+ if (style1.$$css)
8018
+ Object.assign(styleState.classNames, style1);
8019
+ else {
8020
+ var _styleState4;
8021
+ (_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, normalizeStyle(style1));
8022
+ }
8012
8023
  }
8013
8024
  } catch (err) {
8025
+ _didIteratorError3 = !0, _iteratorError3 = err;
8014
8026
  } finally {
8015
8027
  try {
8028
+ !_iteratorNormalCompletion3 && _iterator3.return != null && _iterator3.return();
8016
8029
  } finally {
8030
+ if (_didIteratorError3)
8031
+ throw _iteratorError3;
8017
8032
  }
8018
8033
  }
8019
8034
  }
8020
- if (import_constants.isWeb && !isReactNative && viewProps.tabIndex == null)
8021
- var _viewProps_focusable, isFocusable, role;
8022
- }
8023
8035
  var result = {
8024
8036
  space,
8025
8037
  hasMedia,
@@ -8173,6 +8185,14 @@ current`, _object_spread2({}, styleState.style)));
8173
8185
  var importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, importancesUsed, isSizeMedia);
8174
8186
  return importanceBump && (importance = (importance || 0) + importanceBump), importance === null ? !1 : (importancesUsed[key] = importance, mergeStyle(styleState, key, value), !0);
8175
8187
  }
8188
+ function normalizeStyle(style) {
8189
+ var out = {};
8190
+ for (var key in style) {
8191
+ var val = style[key];
8192
+ key in import_helpers.stylePropsTransform ? mergeTransform(out, key, val) : out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
8193
+ }
8194
+ return import_constants.isWeb && Array.isArray(out.transform) && (out.transform = (0, import_transformsToString.transformsToString)(out.transform)), (0, import_expandStyles.fixStyles)(out), out;
8195
+ }
8176
8196
  }
8177
8197
  });
8178
8198
 
@@ -12307,14 +12327,7 @@ var require_Text_native = __commonJS({
12307
12327
  inlineWhenUnflattened: /* @__PURE__ */ new Set([
12308
12328
  "fontFamily"
12309
12329
  ]),
12310
- variants: _object_spread_props(_object_spread2(_object_spread_props(_object_spread2({}, !1), {
12311
- // ??
12312
- ellipsizeMode: {
12313
- "...": function() {
12314
- return null;
12315
- }
12316
- }
12317
- }), !1), {
12330
+ variants: _object_spread_props(_object_spread2({}, !1, !1), {
12318
12331
  /**
12319
12332
  * @deprecated Use ellipsis instead
12320
12333
  */