@tamagui/core 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
@@ -6282,58 +6282,6 @@ var require_getStylesAtomic_native = __commonJS({
6282
6282
  }
6283
6283
  });
6284
6284
 
6285
- // ../web/dist/cjs/helpers/isObj.native.js
6286
- var require_isObj_native = __commonJS({
6287
- "../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
6288
- "use strict";
6289
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6290
- for (var name in all)
6291
- __defProp2(target, name, {
6292
- get: all[name],
6293
- enumerable: !0
6294
- });
6295
- }, __copyProps2 = function(to, from, except, desc) {
6296
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6297
- if (from && typeof from == "object" || typeof from == "function")
6298
- try {
6299
- for (var _loop = function() {
6300
- var key = _step.value;
6301
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6302
- get: function() {
6303
- return from[key];
6304
- },
6305
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6306
- });
6307
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6308
- _loop();
6309
- } catch (err) {
6310
- _didIteratorError = !0, _iteratorError = err;
6311
- } finally {
6312
- try {
6313
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6314
- } finally {
6315
- if (_didIteratorError)
6316
- throw _iteratorError;
6317
- }
6318
- }
6319
- return to;
6320
- }, __toCommonJS2 = function(mod) {
6321
- return __copyProps2(__defProp2({}, "__esModule", {
6322
- value: !0
6323
- }), mod);
6324
- }, isObj_exports = {};
6325
- __export2(isObj_exports, {
6326
- isObj: function() {
6327
- return isObj;
6328
- }
6329
- });
6330
- module2.exports = __toCommonJS2(isObj_exports);
6331
- var isObj = function(x) {
6332
- return x && !Array.isArray(x) && typeof x == "object";
6333
- };
6334
- }
6335
- });
6336
-
6337
6285
  // ../web/dist/cjs/helpers/log.native.js
6338
6286
  var require_log_native = __commonJS({
6339
6287
  "../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
@@ -6694,6 +6642,58 @@ var require_expandStyle_native = __commonJS({
6694
6642
  }
6695
6643
  });
6696
6644
 
6645
+ // ../web/dist/cjs/helpers/isObj.native.js
6646
+ var require_isObj_native = __commonJS({
6647
+ "../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
6648
+ "use strict";
6649
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6650
+ for (var name in all)
6651
+ __defProp2(target, name, {
6652
+ get: all[name],
6653
+ enumerable: !0
6654
+ });
6655
+ }, __copyProps2 = function(to, from, except, desc) {
6656
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6657
+ if (from && typeof from == "object" || typeof from == "function")
6658
+ try {
6659
+ for (var _loop = function() {
6660
+ var key = _step.value;
6661
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6662
+ get: function() {
6663
+ return from[key];
6664
+ },
6665
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6666
+ });
6667
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6668
+ _loop();
6669
+ } catch (err) {
6670
+ _didIteratorError = !0, _iteratorError = err;
6671
+ } finally {
6672
+ try {
6673
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6674
+ } finally {
6675
+ if (_didIteratorError)
6676
+ throw _iteratorError;
6677
+ }
6678
+ }
6679
+ return to;
6680
+ }, __toCommonJS2 = function(mod) {
6681
+ return __copyProps2(__defProp2({}, "__esModule", {
6682
+ value: !0
6683
+ }), mod);
6684
+ }, isObj_exports = {};
6685
+ __export2(isObj_exports, {
6686
+ isObj: function() {
6687
+ return isObj;
6688
+ }
6689
+ });
6690
+ module2.exports = __toCommonJS2(isObj_exports);
6691
+ var isObj = function(x) {
6692
+ return x && !Array.isArray(x) && typeof x == "object";
6693
+ };
6694
+ }
6695
+ });
6696
+
6697
6697
  // ../web/dist/cjs/helpers/normalizeStyle.native.js
6698
6698
  var require_normalizeStyle_native = __commonJS({
6699
6699
  "../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
@@ -7331,24 +7331,20 @@ var require_propMapper_native = __commonJS({
7331
7331
  fontSize: "size",
7332
7332
  fontWeight: "weight"
7333
7333
  }, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
7334
- var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0;
7334
+ var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0, _staticConfig_acceptTokens;
7335
7335
  if (resolveAs === "none")
7336
7336
  return value;
7337
- 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;
7338
- if (theme && value in theme) {
7339
- if (valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose") {
7340
- var _valOrVar_get;
7341
- 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)));
7342
- }
7343
- hasSet = !0;
7344
- } else if (value in conf.specificTokens)
7345
- hasSet = !0, valOrVar = conf.specificTokens[value];
7337
+ 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];
7338
+ if (customTokenAccept) {
7339
+ var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
7340
+ val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
7341
+ }
7342
+ if (theme && value in theme)
7343
+ 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;
7346
7344
  else {
7347
- var _staticConfig_acceptTokens, customTokenAccept = staticConfig == null || (_staticConfig_acceptTokens = staticConfig.acceptTokens) === null || _staticConfig_acceptTokens === void 0 ? void 0 : _staticConfig_acceptTokens[key];
7348
- if (customTokenAccept) {
7349
- var val = tokensParsed[customTokenAccept][value];
7350
- val && (valOrVar = val, hasSet = !0);
7351
- } else {
7345
+ if (value in conf.specificTokens)
7346
+ hasSet = !0, valOrVar = conf.specificTokens[value];
7347
+ else {
7352
7348
  switch (key) {
7353
7349
  case "fontFamily": {
7354
7350
  var _fontsParsed_value, fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed;
@@ -7518,7 +7514,7 @@ var require_getSplitStyles_native = __commonJS({
7518
7514
  }
7519
7515
  });
7520
7516
  module2.exports = __toCommonJS2(getSplitStyles_exports);
7521
- var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = 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();
7517
+ var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = 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();
7522
7518
  function _array_like_to_array(arr, len) {
7523
7519
  (len == null || len > arr.length) && (len = arr.length);
7524
7520
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -7679,11 +7675,6 @@ var require_getSplitStyles_native = __commonJS({
7679
7675
  viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
7680
7676
  continue;
7681
7677
  }
7682
- if (!isValidStyleKeyInit && keyInit.startsWith("_style") && (0, import_isObj.isObj)(valInit)) {
7683
- var _styleState1;
7684
- (_styleState1 = styleState).style || (_styleState1.style = {}), Object.assign(styleState.style, valInit);
7685
- continue;
7686
- }
7687
7678
  if (0) {
7688
7679
  var didUseKeyInit;
7689
7680
  if (!isReactNative)
@@ -7929,12 +7920,12 @@ current`, _object_spread2({}, styleState.style)));
7929
7920
  }
7930
7921
  }
7931
7922
  for (var subKey in mediaStyle1) {
7932
- var _styleState2;
7923
+ var _styleState1;
7933
7924
  if (subKey === "space") {
7934
7925
  space = valInit.space;
7935
7926
  continue;
7936
7927
  }
7937
- (_styleState2 = styleState).style || (_styleState2.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
7928
+ (_styleState1 = styleState).style || (_styleState1.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
7938
7929
  }
7939
7930
  }
7940
7931
  continue;
@@ -7964,38 +7955,11 @@ current`, _object_spread2({}, styleState.style)));
7964
7955
  }
7965
7956
  }
7966
7957
  }
7967
- if (props.style)
7968
- if (isHOC)
7969
- viewProps.style = props.style;
7970
- else {
7971
- var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
7972
- try {
7973
- for (var _iterator2 = [].concat(props.style)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
7974
- var style1 = _step2.value;
7975
- if (style1)
7976
- if (style1.$$css)
7977
- Object.assign(styleState.classNames, style1);
7978
- else {
7979
- var _styleState3;
7980
- (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
7981
- }
7982
- }
7983
- } catch (err) {
7984
- _didIteratorError2 = !0, _iteratorError2 = err;
7985
- } finally {
7986
- try {
7987
- !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
7988
- } finally {
7989
- if (_didIteratorError2)
7990
- throw _iteratorError2;
7991
- }
7992
- }
7993
- }
7994
7958
  var avoidNormalize = styleProps.noNormalize === !1;
7995
7959
  if (!avoidNormalize) {
7996
7960
  if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7997
- var _styleState4;
7998
- (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7961
+ var _styleState2;
7962
+ (_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7999
7963
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
8000
7964
  return a.localeCompare(b);
8001
7965
  }).forEach(function(param) {
@@ -8009,8 +7973,8 @@ current`, _object_spread2({}, styleState.style)));
8009
7973
  var val2;
8010
7974
  if (!shouldDoClasses)
8011
7975
  for (var key3 in parentSplitStyles.style) {
8012
- var _styleState5;
8013
- key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
7976
+ var _styleState3;
7977
+ key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState3 = styleState).style || (_styleState3.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
8014
7978
  }
8015
7979
  }
8016
7980
  }
@@ -8020,9 +7984,9 @@ current`, _object_spread2({}, styleState.style)));
8020
7984
  if (styleState.style && shouldDoClasses) {
8021
7985
  var retainedStyles, shouldRetain;
8022
7986
  if (!styleState.style.$$css) {
8023
- var atomic, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
7987
+ var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
8024
7988
  try {
8025
- for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0)
7989
+ for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
8026
7990
  var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
8027
7991
  } catch (err) {
8028
7992
  } finally {
@@ -8038,6 +8002,21 @@ current`, _object_spread2({}, styleState.style)));
8038
8002
  var rule;
8039
8003
  }
8040
8004
  }
8005
+ if (props.style && !isHOC) {
8006
+ var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
8007
+ try {
8008
+ for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
8009
+ var style1;
8010
+ if (style1 && !style1.$$css)
8011
+ var _styleState4;
8012
+ }
8013
+ } catch (err) {
8014
+ } finally {
8015
+ try {
8016
+ } finally {
8017
+ }
8018
+ }
8019
+ }
8041
8020
  if (import_constants.isWeb && !isReactNative && viewProps.tabIndex == null)
8042
8021
  var _viewProps_focusable, isFocusable, role;
8043
8022
  }
@@ -8914,7 +8893,7 @@ var require_createComponent_native = __commonJS({
8914
8893
  }
8915
8894
  });
8916
8895
  module2.exports = __toCommonJS2(createComponent_exports);
8917
- var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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();
8896
+ var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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();
8918
8897
  function _array_like_to_array(arr, len) {
8919
8898
  (len == null || len > arr.length) && (len = arr.length);
8920
8899
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -9660,7 +9639,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9660
9639
  children: content
9661
9640
  }));
9662
9641
  }
9663
- if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9642
+ if (viewProps.placeholderTextColor && console.warn("it is", internalID, viewProps.placeholderTextColor, viewProps), process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9664
9643
  var element1 = typeof elementType == "string" ? elementType : "Component", title = "render <".concat(element1, " /> (").concat(internalID, ") with props");
9665
9644
  if (import_constants.isWeb) {
9666
9645
  console.groupCollapsed(title);
@@ -9698,7 +9677,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9698
9677
  console.groupEnd();
9699
9678
  }
9700
9679
  } else {
9701
- (0, import_log.log)(title), (0, import_log.log)("final styles:");
9680
+ (0, import_log.log)(title), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
9702
9681
  for (var key2 in splitStylesStyle)
9703
9682
  (0, import_log.log)(key2, splitStylesStyle[key2]);
9704
9683
  }
@@ -11300,7 +11279,7 @@ var require_styled_native = __commonJS({
11300
11279
  }
11301
11280
  }(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
11302
11281
  for (var key in ComponentIn)
11303
- key in component || (component[key] = ComponentIn[key]);
11282
+ key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
11304
11283
  return component;
11305
11284
  }
11306
11285
  }