tamagui 1.123.8 → 1.123.9

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) {
@@ -7303,6 +7076,65 @@ var require_sortString_native = __commonJS({
7303
7076
  }
7304
7077
  });
7305
7078
 
7079
+ // ../../core/web/dist/cjs/helpers/transformsToString.native.js
7080
+ var require_transformsToString_native = __commonJS({
7081
+ "../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
7082
+ "use strict";
7083
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
7084
+ for (var name in all) __defProp2(target, name, {
7085
+ get: all[name],
7086
+ enumerable: !0
7087
+ });
7088
+ }, __copyProps2 = function(to, from, except, desc) {
7089
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
7090
+ if (from && typeof from == "object" || typeof from == "function") try {
7091
+ for (var _loop = function() {
7092
+ var key = _step.value;
7093
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
7094
+ get: function() {
7095
+ return from[key];
7096
+ },
7097
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
7098
+ });
7099
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
7100
+ } catch (err) {
7101
+ _didIteratorError = !0, _iteratorError = err;
7102
+ } finally {
7103
+ try {
7104
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
7105
+ } finally {
7106
+ if (_didIteratorError)
7107
+ throw _iteratorError;
7108
+ }
7109
+ }
7110
+ return to;
7111
+ }, __toCommonJS2 = function(mod) {
7112
+ return __copyProps2(__defProp2({}, "__esModule", {
7113
+ value: !0
7114
+ }), mod);
7115
+ }, transformsToString_exports = {};
7116
+ __export2(transformsToString_exports, {
7117
+ transformsToString: function() {
7118
+ return transformsToString;
7119
+ }
7120
+ });
7121
+ module2.exports = __toCommonJS2(transformsToString_exports);
7122
+ var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
7123
+ function transformsToString(transforms) {
7124
+ return transforms.map(
7125
+ // { scale: 2 } => 'scale(2)'
7126
+ // { translateX: 20 } => 'translateX(20px)'
7127
+ // { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
7128
+ // { perspective: 1000 } => perspective(1000px)
7129
+ function(transform) {
7130
+ var type = Object.keys(transform)[0], value = transform[type];
7131
+ return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
7132
+ }
7133
+ ).join(" ");
7134
+ }
7135
+ }
7136
+ });
7137
+
7306
7138
  // ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
7307
7139
  var require_getSplitStyles_native = __commonJS({
7308
7140
  "../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
@@ -7367,7 +7199,7 @@ var require_getSplitStyles_native = __commonJS({
7367
7199
  }
7368
7200
  });
7369
7201
  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 = "-";
7202
+ 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
7203
  function isValidStyleKey(key, validStyles, accept) {
7372
7204
  return key in validStyles ? !0 : accept && key in accept;
7373
7205
  }
@@ -7550,7 +7382,7 @@ var require_getSplitStyles_native = __commonJS({
7550
7382
  var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
7551
7383
  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
7384
  }
7553
- var mediaStyles = (0, import_getCSSStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7385
+ var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
7554
7386
  mediaStylesSeen += 1;
7555
7387
  var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
7556
7388
  try {
@@ -7690,7 +7522,7 @@ var require_getSplitStyles_native = __commonJS({
7690
7522
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
7691
7523
  var avoidNormalize = styleProps.noNormalize === !1;
7692
7524
  if (!avoidNormalize) {
7693
- if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7525
+ 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
7526
  var _styleState;
7695
7527
  (_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7696
7528
  var [a] = param, [b] = param1;
@@ -7710,7 +7542,7 @@ var require_getSplitStyles_native = __commonJS({
7710
7542
  }
7711
7543
  if (0) var _styleState_style, shouldStringifyTransforms;
7712
7544
  if (0) {
7713
- if (styleState.style && shouldDoClasses) {
7545
+ if (!styleProps.noMergeStyle && styleState.style && shouldDoClasses) {
7714
7546
  var retainedStyles, shouldRetain;
7715
7547
  if (!styleState.style.$$css) {
7716
7548
  var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
@@ -7730,7 +7562,7 @@ var require_getSplitStyles_native = __commonJS({
7730
7562
  } else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
7731
7563
  }
7732
7564
  var styleProp = props.style;
7733
- if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
7565
+ if (!styleProps.noMergeStyle && styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
7734
7566
  else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
7735
7567
  var style = isArray ? styleProp[i] : styleProp;
7736
7568
  if (style) if (style.$$css) Object.assign(styleState.classNames, style);
@@ -7762,11 +7594,11 @@ var require_getSplitStyles_native = __commonJS({
7762
7594
  pseudoGroups,
7763
7595
  mediaGroups
7764
7596
  }, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
7765
- if (!asChildExceptStyleLike) {
7597
+ if (!styleProps.noMergeStyle && !asChildExceptStyleLike) {
7766
7598
  var style2 = styleState.style;
7767
7599
  if (0) {
7768
7600
  var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
7769
- if (!styleProps.noMergeStyle && !(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
7601
+ if (!(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
7770
7602
  var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
7771
7603
  try {
7772
7604
  for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
@@ -7774,7 +7606,7 @@ var require_getSplitStyles_native = __commonJS({
7774
7606
  } finally {
7775
7607
  }
7776
7608
  }
7777
- } else style2 && !styleProps.noMergeStyle && (viewProps.style = style2);
7609
+ } else style2 && (viewProps.style = style2);
7778
7610
  }
7779
7611
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
7780
7612
  consoleGroupCollapsed("\u{1F539} getSplitStyles ===>");
@@ -25796,9 +25628,9 @@ var require_Popover_native = __commonJS({
25796
25628
  // (closed !== unmounted when animating out)
25797
25629
  trapFocus: trapFocus ?? context.open,
25798
25630
  disableOutsidePointerEvents: !0,
25799
- onCloseAutoFocus: (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
25631
+ onCloseAutoFocus: props.onCloseAutoFocus === !1 ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
25800
25632
  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();
25633
+ event.defaultPrevented || (event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus());
25802
25634
  }),
25803
25635
  onPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {
25804
25636
  var originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;