tamagui 1.90.8 → 1.90.10

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
@@ -6379,58 +6379,6 @@ var require_getStylesAtomic_native = __commonJS({
6379
6379
  }
6380
6380
  });
6381
6381
 
6382
- // ../web/dist/cjs/helpers/isObj.native.js
6383
- var require_isObj_native = __commonJS({
6384
- "../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
6385
- "use strict";
6386
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6387
- for (var name in all)
6388
- __defProp2(target, name, {
6389
- get: all[name],
6390
- enumerable: !0
6391
- });
6392
- }, __copyProps2 = function(to, from, except, desc) {
6393
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6394
- if (from && typeof from == "object" || typeof from == "function")
6395
- try {
6396
- for (var _loop = function() {
6397
- var key = _step.value;
6398
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6399
- get: function() {
6400
- return from[key];
6401
- },
6402
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6403
- });
6404
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6405
- _loop();
6406
- } catch (err) {
6407
- _didIteratorError = !0, _iteratorError = err;
6408
- } finally {
6409
- try {
6410
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6411
- } finally {
6412
- if (_didIteratorError)
6413
- throw _iteratorError;
6414
- }
6415
- }
6416
- return to;
6417
- }, __toCommonJS2 = function(mod) {
6418
- return __copyProps2(__defProp2({}, "__esModule", {
6419
- value: !0
6420
- }), mod);
6421
- }, isObj_exports = {};
6422
- __export2(isObj_exports, {
6423
- isObj: function() {
6424
- return isObj;
6425
- }
6426
- });
6427
- module2.exports = __toCommonJS2(isObj_exports);
6428
- var isObj = function(x) {
6429
- return x && !Array.isArray(x) && typeof x == "object";
6430
- };
6431
- }
6432
- });
6433
-
6434
6382
  // ../web/dist/cjs/helpers/log.native.js
6435
6383
  var require_log_native = __commonJS({
6436
6384
  "../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
@@ -6791,6 +6739,58 @@ var require_expandStyle_native = __commonJS({
6791
6739
  }
6792
6740
  });
6793
6741
 
6742
+ // ../web/dist/cjs/helpers/isObj.native.js
6743
+ var require_isObj_native = __commonJS({
6744
+ "../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
6745
+ "use strict";
6746
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6747
+ for (var name in all)
6748
+ __defProp2(target, name, {
6749
+ get: all[name],
6750
+ enumerable: !0
6751
+ });
6752
+ }, __copyProps2 = function(to, from, except, desc) {
6753
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6754
+ if (from && typeof from == "object" || typeof from == "function")
6755
+ try {
6756
+ for (var _loop = function() {
6757
+ var key = _step.value;
6758
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6759
+ get: function() {
6760
+ return from[key];
6761
+ },
6762
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6763
+ });
6764
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6765
+ _loop();
6766
+ } catch (err) {
6767
+ _didIteratorError = !0, _iteratorError = err;
6768
+ } finally {
6769
+ try {
6770
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6771
+ } finally {
6772
+ if (_didIteratorError)
6773
+ throw _iteratorError;
6774
+ }
6775
+ }
6776
+ return to;
6777
+ }, __toCommonJS2 = function(mod) {
6778
+ return __copyProps2(__defProp2({}, "__esModule", {
6779
+ value: !0
6780
+ }), mod);
6781
+ }, isObj_exports = {};
6782
+ __export2(isObj_exports, {
6783
+ isObj: function() {
6784
+ return isObj;
6785
+ }
6786
+ });
6787
+ module2.exports = __toCommonJS2(isObj_exports);
6788
+ var isObj = function(x) {
6789
+ return x && !Array.isArray(x) && typeof x == "object";
6790
+ };
6791
+ }
6792
+ });
6793
+
6794
6794
  // ../web/dist/cjs/helpers/normalizeStyle.native.js
6795
6795
  var require_normalizeStyle_native = __commonJS({
6796
6796
  "../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
@@ -7428,24 +7428,20 @@ var require_propMapper_native = __commonJS({
7428
7428
  fontSize: "size",
7429
7429
  fontWeight: "weight"
7430
7430
  }, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
7431
- var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0;
7431
+ var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0, _staticConfig_acceptTokens;
7432
7432
  if (resolveAs === "none")
7433
7433
  return value;
7434
- var theme = styleState.theme, _styleState_conf = styleState.conf, conf = _styleState_conf === void 0 ? (0, import_config.getConfig)() : _styleState_conf, context = styleState.context, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1;
7435
- if (theme && value in theme) {
7436
- if (valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose") {
7437
- var _valOrVar_get;
7438
- console.info(" - resolving ".concat(key, " to theme value ").concat(value, ": ").concat(valOrVar == null || (_valOrVar_get = valOrVar.get) === null || _valOrVar_get === void 0 ? void 0 : _valOrVar_get.call(valOrVar)));
7439
- }
7440
- hasSet = !0;
7441
- } else if (value in conf.specificTokens)
7442
- hasSet = !0, valOrVar = conf.specificTokens[value];
7434
+ var theme = styleState.theme, _styleState_conf = styleState.conf, conf = _styleState_conf === void 0 ? (0, import_config.getConfig)() : _styleState_conf, context = styleState.context, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_acceptTokens = staticConfig.acceptTokens) === null || _staticConfig_acceptTokens === void 0 ? void 0 : _staticConfig_acceptTokens[key];
7435
+ if (customTokenAccept) {
7436
+ var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
7437
+ val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
7438
+ }
7439
+ if (theme && value in theme)
7440
+ valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(" - resolving ".concat(key, " to theme value ").concat(value, ": ").concat(valOrVar == null ? void 0 : valOrVar.val)), hasSet = !0;
7443
7441
  else {
7444
- var _staticConfig_acceptTokens, customTokenAccept = staticConfig == null || (_staticConfig_acceptTokens = staticConfig.acceptTokens) === null || _staticConfig_acceptTokens === void 0 ? void 0 : _staticConfig_acceptTokens[key];
7445
- if (customTokenAccept) {
7446
- var val = tokensParsed[customTokenAccept][value];
7447
- val && (valOrVar = val, hasSet = !0);
7448
- } else {
7442
+ if (value in conf.specificTokens)
7443
+ hasSet = !0, valOrVar = conf.specificTokens[value];
7444
+ else {
7449
7445
  switch (key) {
7450
7446
  case "fontFamily": {
7451
7447
  var _fontsParsed_value, fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed;
@@ -7615,7 +7611,7 @@ var require_getSplitStyles_native = __commonJS({
7615
7611
  }
7616
7612
  });
7617
7613
  module2.exports = __toCommonJS2(getSplitStyles_exports);
7618
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_transformsToString = require_transformsToString_native();
7614
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_transformsToString = require_transformsToString_native();
7619
7615
  function _array_like_to_array2(arr, len) {
7620
7616
  (len == null || len > arr.length) && (len = arr.length);
7621
7617
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -7776,11 +7772,6 @@ var require_getSplitStyles_native = __commonJS({
7776
7772
  viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
7777
7773
  continue;
7778
7774
  }
7779
- if (!isValidStyleKeyInit && keyInit.startsWith("_style") && (0, import_isObj.isObj)(valInit)) {
7780
- var _styleState1;
7781
- (_styleState1 = styleState).style || (_styleState1.style = {}), Object.assign(styleState.style, valInit);
7782
- continue;
7783
- }
7784
7775
  if (0) {
7785
7776
  var didUseKeyInit;
7786
7777
  if (!isReactNative)
@@ -8026,12 +8017,12 @@ current`, _object_spread9({}, styleState.style)));
8026
8017
  }
8027
8018
  }
8028
8019
  for (var subKey in mediaStyle1) {
8029
- var _styleState2;
8020
+ var _styleState1;
8030
8021
  if (subKey === "space") {
8031
8022
  space = valInit.space;
8032
8023
  continue;
8033
8024
  }
8034
- (_styleState2 = styleState).style || (_styleState2.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
8025
+ (_styleState1 = styleState).style || (_styleState1.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
8035
8026
  }
8036
8027
  }
8037
8028
  continue;
@@ -8061,38 +8052,11 @@ current`, _object_spread9({}, styleState.style)));
8061
8052
  }
8062
8053
  }
8063
8054
  }
8064
- if (props.style)
8065
- if (isHOC)
8066
- viewProps.style = props.style;
8067
- else {
8068
- var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
8069
- try {
8070
- for (var _iterator2 = [].concat(props.style)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
8071
- var style1 = _step2.value;
8072
- if (style1)
8073
- if (style1.$$css)
8074
- Object.assign(styleState.classNames, style1);
8075
- else {
8076
- var _styleState3;
8077
- (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
8078
- }
8079
- }
8080
- } catch (err) {
8081
- _didIteratorError2 = !0, _iteratorError2 = err;
8082
- } finally {
8083
- try {
8084
- !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
8085
- } finally {
8086
- if (_didIteratorError2)
8087
- throw _iteratorError2;
8088
- }
8089
- }
8090
- }
8091
8055
  var avoidNormalize = styleProps.noNormalize === !1;
8092
8056
  if (!avoidNormalize) {
8093
8057
  if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
8094
- var _styleState4;
8095
- (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
8058
+ var _styleState2;
8059
+ (_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
8096
8060
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
8097
8061
  return a.localeCompare(b);
8098
8062
  }).forEach(function(param) {
@@ -8106,8 +8070,8 @@ current`, _object_spread9({}, styleState.style)));
8106
8070
  var val2;
8107
8071
  if (!shouldDoClasses)
8108
8072
  for (var key3 in parentSplitStyles.style) {
8109
- var _styleState5;
8110
- key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
8073
+ var _styleState3;
8074
+ key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState3 = styleState).style || (_styleState3.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
8111
8075
  }
8112
8076
  }
8113
8077
  }
@@ -8117,9 +8081,9 @@ current`, _object_spread9({}, styleState.style)));
8117
8081
  if (styleState.style && shouldDoClasses) {
8118
8082
  var retainedStyles, shouldRetain;
8119
8083
  if (!styleState.style.$$css) {
8120
- var atomic, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
8084
+ var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
8121
8085
  try {
8122
- for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0)
8086
+ for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
8123
8087
  var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
8124
8088
  } catch (err) {
8125
8089
  } finally {
@@ -8135,6 +8099,21 @@ current`, _object_spread9({}, styleState.style)));
8135
8099
  var rule;
8136
8100
  }
8137
8101
  }
8102
+ if (props.style && !isHOC) {
8103
+ var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
8104
+ try {
8105
+ for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8106
+ var style1;
8107
+ if (style1 && !style1.$$css)
8108
+ var _styleState4;
8109
+ }
8110
+ } catch (err) {
8111
+ } finally {
8112
+ try {
8113
+ } finally {
8114
+ }
8115
+ }
8116
+ }
8138
8117
  if (import_constants4.isWeb && !isReactNative && viewProps.tabIndex == null)
8139
8118
  var _viewProps_focusable, isFocusable, role;
8140
8119
  }
@@ -9011,7 +8990,7 @@ var require_createComponent_native = __commonJS({
9011
8990
  }
9012
8991
  });
9013
8992
  module2.exports = __toCommonJS2(createComponent_exports);
9014
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_use_did_finish_ssr = require_index_native11(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native();
8993
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_use_did_finish_ssr = require_index_native11(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_isDevTools = require_isDevTools_native();
9015
8994
  function _array_like_to_array2(arr, len) {
9016
8995
  (len == null || len > arr.length) && (len = arr.length);
9017
8996
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -9757,7 +9736,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9757
9736
  children: content
9758
9737
  }));
9759
9738
  }
9760
- if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9739
+ if (viewProps.placeholderTextColor && console.warn("it is", internalID, viewProps.placeholderTextColor, viewProps), process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9761
9740
  var element1 = typeof elementType == "string" ? elementType : "Component", title = "render <".concat(element1, " /> (").concat(internalID, ") with props");
9762
9741
  if (import_constants4.isWeb) {
9763
9742
  console.groupCollapsed(title);
@@ -9795,7 +9774,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9795
9774
  console.groupEnd();
9796
9775
  }
9797
9776
  } else {
9798
- (0, import_log.log)(title), (0, import_log.log)("final styles:");
9777
+ (0, import_log.log)(title), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
9799
9778
  for (var key2 in splitStylesStyle)
9800
9779
  (0, import_log.log)(key2, splitStylesStyle[key2]);
9801
9780
  }
@@ -11397,7 +11376,7 @@ var require_styled_native = __commonJS({
11397
11376
  }
11398
11377
  }(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
11399
11378
  for (var key in ComponentIn)
11400
- key in component || (component[key] = ComponentIn[key]);
11379
+ key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
11401
11380
  return component;
11402
11381
  }
11403
11382
  }