tamagui 1.123.8 → 1.123.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
@@ -1432,7 +1432,6 @@ var require_validStyleProps_native = __commonJS({
1432
1432
  ...textColors
1433
1433
  }
1434
1434
  }, stylePropsUnitless = {
1435
- perspective: !0,
1436
1435
  WebkitLineClamp: !0,
1437
1436
  animationIterationCount: !0,
1438
1437
  aspectRatio: !0,
@@ -5751,142 +5750,6 @@ var require_expandStyles_native = __commonJS({
5751
5750
  }
5752
5751
  });
5753
5752
 
5754
- // ../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js
5755
- var require_normalizeValueWithProperty_native = __commonJS({
5756
- "../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
5757
- "use strict";
5758
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5759
- for (var name in all) __defProp2(target, name, {
5760
- get: all[name],
5761
- enumerable: !0
5762
- });
5763
- }, __copyProps2 = function(to, from, except, desc) {
5764
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5765
- if (from && typeof from == "object" || typeof from == "function") try {
5766
- for (var _loop = function() {
5767
- var key = _step.value;
5768
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
5769
- get: function() {
5770
- return from[key];
5771
- },
5772
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
5773
- });
5774
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
5775
- } catch (err) {
5776
- _didIteratorError = !0, _iteratorError = err;
5777
- } finally {
5778
- try {
5779
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
5780
- } finally {
5781
- if (_didIteratorError)
5782
- throw _iteratorError;
5783
- }
5784
- }
5785
- return to;
5786
- }, __toCommonJS2 = function(mod) {
5787
- return __copyProps2(__defProp2({}, "__esModule", {
5788
- value: !0
5789
- }), mod);
5790
- }, normalizeValueWithProperty_exports = {};
5791
- __export2(normalizeValueWithProperty_exports, {
5792
- normalizeValueWithProperty: function() {
5793
- return normalizeValueWithProperty;
5794
- },
5795
- reverseMapClassNameToValue: function() {
5796
- return reverseMapClassNameToValue;
5797
- }
5798
- });
5799
- module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
5800
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
5801
- ...import_helpers.stylePropsAll,
5802
- translateX: !0,
5803
- translateY: !0
5804
- };
5805
- function normalizeValueWithProperty(value) {
5806
- var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
5807
- if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
5808
- var res = value;
5809
- return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
5810
- }
5811
- var rcache = {};
5812
- function reverseMapClassNameToValue(key, className) {
5813
- var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
5814
- if (rcache[cssRule]) return rcache[cssRule];
5815
- if (!cssRule) {
5816
- process.env.NODE_ENV === "development" && console.warn(`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`);
5817
- return;
5818
- }
5819
- var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
5820
- return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
5821
- res,
5822
- cssVal,
5823
- cssRule,
5824
- key,
5825
- className
5826
- }), res;
5827
- }
5828
- }
5829
- });
5830
-
5831
- // ../../core/web/dist/cjs/helpers/transformsToString.native.js
5832
- var require_transformsToString_native = __commonJS({
5833
- "../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
5834
- "use strict";
5835
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5836
- for (var name in all) __defProp2(target, name, {
5837
- get: all[name],
5838
- enumerable: !0
5839
- });
5840
- }, __copyProps2 = function(to, from, except, desc) {
5841
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5842
- if (from && typeof from == "object" || typeof from == "function") try {
5843
- for (var _loop = function() {
5844
- var key = _step.value;
5845
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
5846
- get: function() {
5847
- return from[key];
5848
- },
5849
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
5850
- });
5851
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
5852
- } catch (err) {
5853
- _didIteratorError = !0, _iteratorError = err;
5854
- } finally {
5855
- try {
5856
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
5857
- } finally {
5858
- if (_didIteratorError)
5859
- throw _iteratorError;
5860
- }
5861
- }
5862
- return to;
5863
- }, __toCommonJS2 = function(mod) {
5864
- return __copyProps2(__defProp2({}, "__esModule", {
5865
- value: !0
5866
- }), mod);
5867
- }, transformsToString_exports = {};
5868
- __export2(transformsToString_exports, {
5869
- transformsToString: function() {
5870
- return transformsToString;
5871
- }
5872
- });
5873
- module2.exports = __toCommonJS2(transformsToString_exports);
5874
- var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
5875
- function transformsToString(transforms) {
5876
- return transforms.map(
5877
- // { scale: 2 } => 'scale(2)'
5878
- // { translateX: 20 } => 'translateX(20px)'
5879
- // { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
5880
- // { perspective: 1000 } => perspective(1000px)
5881
- function(transform) {
5882
- var type = Object.keys(transform)[0], value = transform[type];
5883
- return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
5884
- }
5885
- ).join(" ");
5886
- }
5887
- }
5888
- });
5889
-
5890
5753
  // ../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js
5891
5754
  var require_getCSSStylesAtomic_native = __commonJS({
5892
5755
  "../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js"(exports2, module2) {
@@ -5923,8 +5786,8 @@ var require_getCSSStylesAtomic_native = __commonJS({
5923
5786
  return __copyProps2(__defProp2({}, "__esModule", {
5924
5787
  value: !0
5925
5788
  }), mod);
5926
- }, getCSSStylesAtomic_exports = {};
5927
- __export2(getCSSStylesAtomic_exports, {
5789
+ }, getCSSStylesAtomic_native_exports = {};
5790
+ __export2(getCSSStylesAtomic_native_exports, {
5928
5791
  getCSSStylesAtomic: function() {
5929
5792
  return getCSSStylesAtomic2;
5930
5793
  },
@@ -5935,177 +5798,10 @@ var require_getCSSStylesAtomic_native = __commonJS({
5935
5798
  return styleToCSS;
5936
5799
  }
5937
5800
  });
5938
- module2.exports = __toCommonJS2(getCSSStylesAtomic_exports);
5939
- var import_helpers = require_index_native7(), import_config = require_config_native(), import_defaultOffset = require_defaultOffset_native(), import_normalizeColor = require_normalizeColor_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_transformsToString = require_transformsToString_native(), import_useMedia = require_useMedia_native();
5940
- function getCSSStylesAtomic2(style) {
5941
- styleToCSS(style);
5942
- var out = [];
5943
- for (var key in style) if (key !== "$$css") {
5944
- var val = style[key];
5945
- if (key in import_pseudoDescriptors.pseudoDescriptors) val && out.push(...getStyleAtomic(val, import_pseudoDescriptors.pseudoDescriptors[key]));
5946
- else if ((0, import_useMedia.isMediaKey)(key)) for (var subKey in val) {
5947
- var so = getStyleObject(val, subKey);
5948
- so && (so[0] = key, out.push(so));
5949
- }
5950
- else {
5951
- var so1 = getStyleObject(style, key);
5952
- so1 && out.push(so1);
5953
- }
5954
- }
5955
- return out;
5956
- }
5957
- var getStyleAtomic = function(style, pseudo) {
5958
- styleToCSS(style);
5959
- var out = [];
5960
- for (var key in style) {
5961
- var so = getStyleObject(style, key, pseudo);
5962
- so && out.push(so);
5963
- }
5964
- return out;
5965
- }, conf = null, getStyleObject = function(style, key, pseudo) {
5966
- var val = style[key];
5967
- if (val != null) {
5968
- key === "transform" && Array.isArray(style.transform) && (val = (0, import_transformsToString.transformsToString)(val));
5969
- var value = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key), hash = (0, import_helpers.simpleHash)(typeof value == "string" ? value : `${value}`), pseudoPrefix = pseudo ? `0${pseudo.name}-` : "";
5970
- conf || (conf = (0, import_config.getConfigMaybe)());
5971
- var shortProp = (conf == null ? void 0 : conf.inverseShorthands[key]) || key, identifier = `_${shortProp}-${pseudoPrefix}${hash}`, rules = createAtomicRules(identifier, key, value, pseudo);
5972
- return [
5973
- // array for performance
5974
- key,
5975
- value,
5976
- identifier,
5977
- pseudo == null ? void 0 : pseudo.name,
5978
- rules
5979
- ];
5980
- }
5981
- };
5982
- function styleToCSS(style) {
5983
- var { shadowOffset, shadowRadius, shadowColor, shadowOpacity } = style;
5984
- if (shadowRadius || shadowColor) {
5985
- var offset4 = shadowOffset || import_defaultOffset.defaultOffset, width = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(offset4.width), height = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(offset4.height), radius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(shadowRadius), color = (0, import_normalizeColor.normalizeColor)(shadowColor, shadowOpacity), shadow = `${width} ${height} ${radius} ${color}`;
5986
- style.boxShadow = style.boxShadow ? `${style.boxShadow}, ${shadow}` : shadow, delete style.shadowOffset, delete style.shadowRadius, delete style.shadowColor, delete style.shadowOpacity;
5987
- }
5988
- var { textShadowColor, textShadowOffset, textShadowRadius } = style;
5989
- if (textShadowColor || textShadowOffset || textShadowRadius) {
5990
- var { height: height1, width: width1 } = textShadowOffset || import_defaultOffset.defaultOffset, radius1 = textShadowRadius || 0, color1 = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(textShadowColor, "textShadowColor");
5991
- if (color1 && (height1 !== 0 || width1 !== 0 || radius1 !== 0)) {
5992
- var blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(radius1), offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width1), offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height1);
5993
- style.textShadow = `${offsetX} ${offsetY} ${blurRadius} ${color1}`;
5994
- }
5995
- delete style.textShadowColor, delete style.textShadowOffset, delete style.textShadowRadius;
5996
- }
5997
- }
5998
- function createDeclarationBlock(style) {
5999
- var important = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, next = "", _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6000
- try {
6001
- for (var _iterator = style[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
6002
- var [key, value] = _step.value;
6003
- next += `${hyphenateStyleName(key)}:${value}${important ? " !important" : ""};`;
6004
- }
6005
- } catch (err) {
6006
- _didIteratorError = !0, _iteratorError = err;
6007
- } finally {
6008
- try {
6009
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6010
- } finally {
6011
- if (_didIteratorError) throw _iteratorError;
6012
- }
6013
- }
6014
- return `{${next}}`;
6015
- }
6016
- var hcache = {}, toHyphenLower = function(match) {
6017
- return `-${match.toLowerCase()}`;
6018
- }, hyphenateStyleName = function(key) {
6019
- if (key in hcache) return hcache[key];
6020
- var val = key.replace(/[A-Z]/g, toHyphenLower);
6021
- return hcache[key] = val, val;
6022
- }, selectorPriority = function() {
6023
- var res = {};
6024
- for (var key in import_pseudoDescriptors.pseudoDescriptors) {
6025
- var pseudo = import_pseudoDescriptors.pseudoDescriptors[key];
6026
- res[pseudo.name] = `${[
6027
- ...Array(pseudo.priority)
6028
- ].map(function() {
6029
- return ":root";
6030
- }).join("")} `;
6031
- }
6032
- return res;
6033
- }();
6034
- function createAtomicRules(identifier, property, value, pseudo) {
6035
- var pseudoIdPostfix = pseudo ? pseudo.name === "disabled" ? "[aria-disabled]" : `:${pseudo.name}` : "", pseudoSelector = pseudo == null ? void 0 : pseudo.selector, selector = pseudo ? pseudoSelector ? `${pseudoSelector} .${identifier}` : `${selectorPriority[pseudo.name]} .${identifier}${pseudoIdPostfix}` : `:root .${identifier}`;
6036
- pseudoSelector === import_pseudoDescriptors.pseudoDescriptors.enterStyle.selector && (selector = `${selector}, .${identifier}${pseudoSelector}`);
6037
- var important = !!pseudo, rules = [];
6038
- switch (property) {
6039
- // Equivalent to using '::placeholder'
6040
- case "placeholderTextColor": {
6041
- var block = createDeclarationBlock([
6042
- [
6043
- "color",
6044
- value
6045
- ],
6046
- [
6047
- "opacity",
6048
- 1
6049
- ]
6050
- ], important);
6051
- rules.push(`${selector}::placeholder${block}`);
6052
- break;
6053
- }
6054
- // all webkit prefixed rules
6055
- case "backgroundClip":
6056
- case "userSelect": {
6057
- var propertyCapitalized = `${property[0].toUpperCase()}${property.slice(1)}`, webkitProperty = `Webkit${propertyCapitalized}`, block1 = createDeclarationBlock([
6058
- [
6059
- property,
6060
- value
6061
- ],
6062
- [
6063
- webkitProperty,
6064
- value
6065
- ]
6066
- ], important);
6067
- rules.push(`${selector}${block1}`);
6068
- break;
6069
- }
6070
- // Polyfill for additional 'pointer-events' values
6071
- case "pointerEvents": {
6072
- var finalValue = value;
6073
- value === "auto" || value === "box-only" ? (finalValue = "auto", value === "box-only" && rules.push(`${selector}>*${boxOnly}`)) : (value === "none" || value === "box-none") && (finalValue = "none", value === "box-none" && rules.push(`${selector}>*${boxNone}`));
6074
- var block2 = createDeclarationBlock([
6075
- [
6076
- "pointerEvents",
6077
- finalValue
6078
- ]
6079
- ], !0);
6080
- rules.push(`${selector}${block2}`);
6081
- break;
6082
- }
6083
- default: {
6084
- var block3 = createDeclarationBlock([
6085
- [
6086
- property,
6087
- value
6088
- ]
6089
- ], important);
6090
- rules.push(`${selector}${block3}`);
6091
- break;
6092
- }
6093
- }
6094
- return (pseudo == null ? void 0 : pseudo.name) === "hover" && (rules = rules.map(function(r) {
6095
- return `@media (hover) {${r}}`;
6096
- })), rules;
6097
- }
6098
- var boxNone = createDeclarationBlock([
6099
- [
6100
- "pointerEvents",
6101
- "auto"
6102
- ]
6103
- ], !0), boxOnly = createDeclarationBlock([
6104
- [
6105
- "pointerEvents",
6106
- "none"
6107
- ]
6108
- ], !0);
5801
+ module2.exports = __toCommonJS2(getCSSStylesAtomic_native_exports);
5802
+ var empty = function() {
5803
+ console.warn("no-op native");
5804
+ }, getCSSStylesAtomic2 = empty, getStyleAtomic = empty, styleToCSS = empty;
6109
5805
  }
6110
5806
  });
6111
5807
 
@@ -6272,6 +5968,83 @@ var require_log_native = __commonJS({
6272
5968
  }
6273
5969
  });
6274
5970
 
5971
+ // ../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js
5972
+ var require_normalizeValueWithProperty_native = __commonJS({
5973
+ "../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
5974
+ "use strict";
5975
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5976
+ for (var name in all) __defProp2(target, name, {
5977
+ get: all[name],
5978
+ enumerable: !0
5979
+ });
5980
+ }, __copyProps2 = function(to, from, except, desc) {
5981
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5982
+ if (from && typeof from == "object" || typeof from == "function") try {
5983
+ for (var _loop = function() {
5984
+ var key = _step.value;
5985
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
5986
+ get: function() {
5987
+ return from[key];
5988
+ },
5989
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
5990
+ });
5991
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
5992
+ } catch (err) {
5993
+ _didIteratorError = !0, _iteratorError = err;
5994
+ } finally {
5995
+ try {
5996
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
5997
+ } finally {
5998
+ if (_didIteratorError)
5999
+ throw _iteratorError;
6000
+ }
6001
+ }
6002
+ return to;
6003
+ }, __toCommonJS2 = function(mod) {
6004
+ return __copyProps2(__defProp2({}, "__esModule", {
6005
+ value: !0
6006
+ }), mod);
6007
+ }, normalizeValueWithProperty_exports = {};
6008
+ __export2(normalizeValueWithProperty_exports, {
6009
+ normalizeValueWithProperty: function() {
6010
+ return normalizeValueWithProperty;
6011
+ },
6012
+ reverseMapClassNameToValue: function() {
6013
+ return reverseMapClassNameToValue;
6014
+ }
6015
+ });
6016
+ module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
6017
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
6018
+ ...import_helpers.stylePropsAll,
6019
+ translateX: !0,
6020
+ translateY: !0
6021
+ };
6022
+ function normalizeValueWithProperty(value) {
6023
+ var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
6024
+ if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
6025
+ var res = value;
6026
+ return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
6027
+ }
6028
+ var rcache = {};
6029
+ function reverseMapClassNameToValue(key, className) {
6030
+ var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
6031
+ if (rcache[cssRule]) return rcache[cssRule];
6032
+ if (!cssRule) {
6033
+ process.env.NODE_ENV === "development" && console.warn(`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`);
6034
+ return;
6035
+ }
6036
+ var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
6037
+ return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
6038
+ res,
6039
+ cssVal,
6040
+ cssRule,
6041
+ key,
6042
+ className
6043
+ }), res;
6044
+ }
6045
+ }
6046
+ });
6047
+
6275
6048
  // ../../core/web/dist/cjs/constants/webToNativeProps.native.js
6276
6049
  var require_webToNativeProps_native = __commonJS({
6277
6050
  "../../core/web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
@@ -7037,7 +6810,7 @@ var require_propMapper_native = __commonJS({
7037
6810
  return;
7038
6811
  }
7039
6812
  }
7040
- if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
6813
+ if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
7041
6814
  key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
7042
6815
  var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
7043
6816
  if (expanded) for (var max2 = expanded.length, i = 0; i < max2; i++) {
@@ -7099,7 +6872,7 @@ var require_propMapper_native = __commonJS({
7099
6872
  if (styleProps.noExpand) res[subKey] = val;
7100
6873
  else if (variants && subKey in variants) {
7101
6874
  if (parentVariantKey && parentVariantKey === key) res[subKey] = // SYNC WITH *1
7102
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val;
6875
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val;
7103
6876
  else {
7104
6877
  var variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
7105
6878
  if (variantOut) {
@@ -7132,7 +6905,7 @@ var require_propMapper_native = __commonJS({
7132
6905
  if (typeof val == "string") {
7133
6906
  var fVal = (
7134
6907
  // SYNC WITH *1
7135
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val
6908
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val
7136
6909
  );
7137
6910
  res[subKey] = fVal;
7138
6911
  continue;
@@ -7192,16 +6965,18 @@ var require_propMapper_native = __commonJS({
7192
6965
  var fontShorthand = {
7193
6966
  fontSize: "size",
7194
6967
  fontWeight: "weight"
7195
- }, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
7196
- var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0, _staticConfig_accept;
6968
+ }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
6969
+ var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
7197
6970
  if (resolveAs === "none") return value;
7198
6971
  var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
7199
6972
  if (customTokenAccept) {
7200
6973
  var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
7201
6974
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
7202
6975
  }
7203
- if (theme && value in theme) valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
7204
- else {
6976
+ if (theme && value in theme) {
6977
+ if (resolveAs === "except-theme") return value;
6978
+ valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
6979
+ } else {
7205
6980
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
7206
6981
  else {
7207
6982
  switch (key) {
@@ -7303,6 +7078,65 @@ var require_sortString_native = __commonJS({
7303
7078
  }
7304
7079
  });
7305
7080
 
7081
+ // ../../core/web/dist/cjs/helpers/transformsToString.native.js
7082
+ var require_transformsToString_native = __commonJS({
7083
+ "../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
7084
+ "use strict";
7085
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
7086
+ for (var name in all) __defProp2(target, name, {
7087
+ get: all[name],
7088
+ enumerable: !0
7089
+ });
7090
+ }, __copyProps2 = function(to, from, except, desc) {
7091
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
7092
+ if (from && typeof from == "object" || typeof from == "function") try {
7093
+ for (var _loop = function() {
7094
+ var key = _step.value;
7095
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
7096
+ get: function() {
7097
+ return from[key];
7098
+ },
7099
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
7100
+ });
7101
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
7102
+ } catch (err) {
7103
+ _didIteratorError = !0, _iteratorError = err;
7104
+ } finally {
7105
+ try {
7106
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
7107
+ } finally {
7108
+ if (_didIteratorError)
7109
+ throw _iteratorError;
7110
+ }
7111
+ }
7112
+ return to;
7113
+ }, __toCommonJS2 = function(mod) {
7114
+ return __copyProps2(__defProp2({}, "__esModule", {
7115
+ value: !0
7116
+ }), mod);
7117
+ }, transformsToString_exports = {};
7118
+ __export2(transformsToString_exports, {
7119
+ transformsToString: function() {
7120
+ return transformsToString;
7121
+ }
7122
+ });
7123
+ module2.exports = __toCommonJS2(transformsToString_exports);
7124
+ var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
7125
+ function transformsToString(transforms) {
7126
+ return transforms.map(
7127
+ // { scale: 2 } => 'scale(2)'
7128
+ // { translateX: 20 } => 'translateX(20px)'
7129
+ // { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
7130
+ // { perspective: 1000 } => perspective(1000px)
7131
+ function(transform) {
7132
+ var type = Object.keys(transform)[0], value = transform[type];
7133
+ return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
7134
+ }
7135
+ ).join(" ");
7136
+ }
7137
+ }
7138
+ });
7139
+
7306
7140
  // ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
7307
7141
  var require_getSplitStyles_native = __commonJS({
7308
7142
  "../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
@@ -7367,7 +7201,7 @@ var require_getSplitStyles_native = __commonJS({
7367
7201
  }
7368
7202
  });
7369
7203
  module2.exports = __toCommonJS2(getSplitStyles_exports);
7370
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(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_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_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_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants4.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
7204
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(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_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_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_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants4.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
7371
7205
  function isValidStyleKey(key, validStyles, accept) {
7372
7206
  return key in validStyles ? !0 : accept && key in accept;
7373
7207
  }
@@ -7550,7 +7384,7 @@ var require_getSplitStyles_native = __commonJS({
7550
7384
  var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
7551
7385
  importance1 && (space = val2.space, usedKeys.space = importance1, process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(`Found more important space for current media ${mediaKeyShort}: ${val2} (importance: ${importance1})`));
7552
7386
  }
7553
- var mediaStyles = (0, import_getCSSStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7387
+ var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7554
7388
  mediaStylesSeen += 1;
7555
7389
  var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
7556
7390
  try {
@@ -7648,7 +7482,7 @@ var require_getSplitStyles_native = __commonJS({
7648
7482
  console.groupEnd();
7649
7483
  }
7650
7484
  };
7651
- props.reddish && (debug = "verbose"), conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7485
+ conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7652
7486
  var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
7653
7487
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
7654
7488
  var styleState = {
@@ -7690,7 +7524,7 @@ var require_getSplitStyles_native = __commonJS({
7690
7524
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
7691
7525
  var avoidNormalize = styleProps.noNormalize === !1;
7692
7526
  if (!avoidNormalize) {
7693
- if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7527
+ if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7694
7528
  var _styleState;
7695
7529
  (_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7696
7530
  var [a] = param, [b] = param1;
@@ -7710,7 +7544,7 @@ var require_getSplitStyles_native = __commonJS({
7710
7544
  }
7711
7545
  if (0) var _styleState_style, shouldStringifyTransforms;
7712
7546
  if (0) {
7713
- if (styleState.style && shouldDoClasses) {
7547
+ if (!styleProps.noMergeStyle && styleState.style && shouldDoClasses) {
7714
7548
  var retainedStyles, shouldRetain;
7715
7549
  if (!styleState.style.$$css) {
7716
7550
  var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
@@ -7730,7 +7564,7 @@ var require_getSplitStyles_native = __commonJS({
7730
7564
  } else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
7731
7565
  }
7732
7566
  var styleProp = props.style;
7733
- if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
7567
+ if (!styleProps.noMergeStyle && styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
7734
7568
  else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
7735
7569
  var style = isArray ? styleProp[i] : styleProp;
7736
7570
  if (style) if (style.$$css) Object.assign(styleState.classNames, style);
@@ -7762,11 +7596,11 @@ var require_getSplitStyles_native = __commonJS({
7762
7596
  pseudoGroups,
7763
7597
  mediaGroups
7764
7598
  }, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
7765
- if (!asChildExceptStyleLike) {
7599
+ if (!styleProps.noMergeStyle && !asChildExceptStyleLike) {
7766
7600
  var style2 = styleState.style;
7767
7601
  if (0) {
7768
7602
  var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
7769
- if (!styleProps.noMergeStyle && !(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
7603
+ if (!(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
7770
7604
  var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
7771
7605
  try {
7772
7606
  for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
@@ -7774,7 +7608,7 @@ var require_getSplitStyles_native = __commonJS({
7774
7608
  } finally {
7775
7609
  }
7776
7610
  }
7777
- } else style2 && !styleProps.noMergeStyle && (viewProps.style = style2);
7611
+ } else style2 && (viewProps.style = style2);
7778
7612
  }
7779
7613
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
7780
7614
  consoleGroupCollapsed("\u{1F539} getSplitStyles ===>");
@@ -25796,9 +25630,9 @@ var require_Popover_native = __commonJS({
25796
25630
  // (closed !== unmounted when animating out)
25797
25631
  trapFocus: trapFocus ?? context.open,
25798
25632
  disableOutsidePointerEvents: !0,
25799
- onCloseAutoFocus: (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
25633
+ onCloseAutoFocus: props.onCloseAutoFocus === !1 ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
25800
25634
  var _context_triggerRef_current;
25801
- event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus();
25635
+ event.defaultPrevented || (event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus());
25802
25636
  }),
25803
25637
  onPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {
25804
25638
  var originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;