tamagui 1.123.7 → 1.123.8
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/jsx/index.js +2 -2
- package/dist/jsx/index.mjs +2 -2
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +2 -2
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/native.js +322 -154
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +314 -146
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/src/index.ts +1 -1
package/dist/native.js
CHANGED
|
@@ -5751,9 +5751,145 @@ var require_expandStyles_native = __commonJS({
|
|
|
5751
5751
|
}
|
|
5752
5752
|
});
|
|
5753
5753
|
|
|
5754
|
-
// ../../core/web/dist/cjs/helpers/
|
|
5755
|
-
var
|
|
5756
|
-
"../../core/web/dist/cjs/helpers/
|
|
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
|
+
// ../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js
|
|
5891
|
+
var require_getCSSStylesAtomic_native = __commonJS({
|
|
5892
|
+
"../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js"(exports2, module2) {
|
|
5757
5893
|
"use strict";
|
|
5758
5894
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5759
5895
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -5787,22 +5923,189 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
5787
5923
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5788
5924
|
value: !0
|
|
5789
5925
|
}), mod);
|
|
5790
|
-
},
|
|
5791
|
-
__export2(
|
|
5926
|
+
}, getCSSStylesAtomic_exports = {};
|
|
5927
|
+
__export2(getCSSStylesAtomic_exports, {
|
|
5928
|
+
getCSSStylesAtomic: function() {
|
|
5929
|
+
return getCSSStylesAtomic2;
|
|
5930
|
+
},
|
|
5792
5931
|
getStyleAtomic: function() {
|
|
5793
5932
|
return getStyleAtomic;
|
|
5794
5933
|
},
|
|
5795
|
-
getStylesAtomic: function() {
|
|
5796
|
-
return getStylesAtomic2;
|
|
5797
|
-
},
|
|
5798
5934
|
styleToCSS: function() {
|
|
5799
5935
|
return styleToCSS;
|
|
5800
5936
|
}
|
|
5801
5937
|
});
|
|
5802
|
-
module2.exports = __toCommonJS2(
|
|
5803
|
-
var
|
|
5804
|
-
|
|
5805
|
-
|
|
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);
|
|
5806
6109
|
}
|
|
5807
6110
|
});
|
|
5808
6111
|
|
|
@@ -5969,83 +6272,6 @@ var require_log_native = __commonJS({
|
|
|
5969
6272
|
}
|
|
5970
6273
|
});
|
|
5971
6274
|
|
|
5972
|
-
// ../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
5973
|
-
var require_normalizeValueWithProperty_native = __commonJS({
|
|
5974
|
-
"../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
5975
|
-
"use strict";
|
|
5976
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5977
|
-
for (var name in all) __defProp2(target, name, {
|
|
5978
|
-
get: all[name],
|
|
5979
|
-
enumerable: !0
|
|
5980
|
-
});
|
|
5981
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
5982
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5983
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5984
|
-
for (var _loop = function() {
|
|
5985
|
-
var key = _step.value;
|
|
5986
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5987
|
-
get: function() {
|
|
5988
|
-
return from[key];
|
|
5989
|
-
},
|
|
5990
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5991
|
-
});
|
|
5992
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5993
|
-
} catch (err) {
|
|
5994
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
5995
|
-
} finally {
|
|
5996
|
-
try {
|
|
5997
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5998
|
-
} finally {
|
|
5999
|
-
if (_didIteratorError)
|
|
6000
|
-
throw _iteratorError;
|
|
6001
|
-
}
|
|
6002
|
-
}
|
|
6003
|
-
return to;
|
|
6004
|
-
}, __toCommonJS2 = function(mod) {
|
|
6005
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6006
|
-
value: !0
|
|
6007
|
-
}), mod);
|
|
6008
|
-
}, normalizeValueWithProperty_exports = {};
|
|
6009
|
-
__export2(normalizeValueWithProperty_exports, {
|
|
6010
|
-
normalizeValueWithProperty: function() {
|
|
6011
|
-
return normalizeValueWithProperty;
|
|
6012
|
-
},
|
|
6013
|
-
reverseMapClassNameToValue: function() {
|
|
6014
|
-
return reverseMapClassNameToValue;
|
|
6015
|
-
}
|
|
6016
|
-
});
|
|
6017
|
-
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
6018
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
6019
|
-
...import_helpers.stylePropsAll,
|
|
6020
|
-
translateX: !0,
|
|
6021
|
-
translateY: !0
|
|
6022
|
-
};
|
|
6023
|
-
function normalizeValueWithProperty(value) {
|
|
6024
|
-
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
6025
|
-
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
6026
|
-
var res = value;
|
|
6027
|
-
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
6028
|
-
}
|
|
6029
|
-
var rcache = {};
|
|
6030
|
-
function reverseMapClassNameToValue(key, className) {
|
|
6031
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
6032
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
6033
|
-
if (!cssRule) {
|
|
6034
|
-
process.env.NODE_ENV === "development" && console.warn(`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`);
|
|
6035
|
-
return;
|
|
6036
|
-
}
|
|
6037
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
6038
|
-
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:", {
|
|
6039
|
-
res,
|
|
6040
|
-
cssVal,
|
|
6041
|
-
cssRule,
|
|
6042
|
-
key,
|
|
6043
|
-
className
|
|
6044
|
-
}), res;
|
|
6045
|
-
}
|
|
6046
|
-
}
|
|
6047
|
-
});
|
|
6048
|
-
|
|
6049
6275
|
// ../../core/web/dist/cjs/constants/webToNativeProps.native.js
|
|
6050
6276
|
var require_webToNativeProps_native = __commonJS({
|
|
6051
6277
|
"../../core/web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
|
|
@@ -7077,64 +7303,6 @@ var require_sortString_native = __commonJS({
|
|
|
7077
7303
|
}
|
|
7078
7304
|
});
|
|
7079
7305
|
|
|
7080
|
-
// ../../core/web/dist/cjs/helpers/transformsToString.native.js
|
|
7081
|
-
var require_transformsToString_native = __commonJS({
|
|
7082
|
-
"../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
7083
|
-
"use strict";
|
|
7084
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7085
|
-
for (var name in all) __defProp2(target, name, {
|
|
7086
|
-
get: all[name],
|
|
7087
|
-
enumerable: !0
|
|
7088
|
-
});
|
|
7089
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
7090
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7091
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7092
|
-
for (var _loop = function() {
|
|
7093
|
-
var key = _step.value;
|
|
7094
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7095
|
-
get: function() {
|
|
7096
|
-
return from[key];
|
|
7097
|
-
},
|
|
7098
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7099
|
-
});
|
|
7100
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7101
|
-
} catch (err) {
|
|
7102
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
7103
|
-
} finally {
|
|
7104
|
-
try {
|
|
7105
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7106
|
-
} finally {
|
|
7107
|
-
if (_didIteratorError)
|
|
7108
|
-
throw _iteratorError;
|
|
7109
|
-
}
|
|
7110
|
-
}
|
|
7111
|
-
return to;
|
|
7112
|
-
}, __toCommonJS2 = function(mod) {
|
|
7113
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7114
|
-
value: !0
|
|
7115
|
-
}), mod);
|
|
7116
|
-
}, transformsToString_exports = {};
|
|
7117
|
-
__export2(transformsToString_exports, {
|
|
7118
|
-
transformsToString: function() {
|
|
7119
|
-
return transformsToString;
|
|
7120
|
-
}
|
|
7121
|
-
});
|
|
7122
|
-
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
7123
|
-
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
7124
|
-
function transformsToString(transforms) {
|
|
7125
|
-
return transforms.map(
|
|
7126
|
-
// { scale: 2 } => 'scale(2)'
|
|
7127
|
-
// { translateX: 20 } => 'translateX(20px)'
|
|
7128
|
-
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
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
|
-
|
|
7138
7306
|
// ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
|
|
7139
7307
|
var require_getSplitStyles_native = __commonJS({
|
|
7140
7308
|
"../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -7199,7 +7367,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7199
7367
|
}
|
|
7200
7368
|
});
|
|
7201
7369
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
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_getGroupPropParts = require_getGroupPropParts_native(),
|
|
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 = "-";
|
|
7203
7371
|
function isValidStyleKey(key, validStyles, accept) {
|
|
7204
7372
|
return key in validStyles ? !0 : accept && key in accept;
|
|
7205
7373
|
}
|
|
@@ -7305,7 +7473,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7305
7473
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
|
|
7306
7474
|
if (!descriptor) return;
|
|
7307
7475
|
if (shouldDoClasses && !isExit) {
|
|
7308
|
-
var pseudoStyles = (0,
|
|
7476
|
+
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
|
|
7309
7477
|
process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key4), (0, import_log.log)({
|
|
7310
7478
|
pseudoStyleObject,
|
|
7311
7479
|
pseudoStyles
|
|
@@ -7382,7 +7550,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7382
7550
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
7383
7551
|
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})`));
|
|
7384
7552
|
}
|
|
7385
|
-
var mediaStyles = (0,
|
|
7553
|
+
var mediaStyles = (0, import_getCSSStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
|
|
7386
7554
|
mediaStylesSeen += 1;
|
|
7387
7555
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
7388
7556
|
try {
|
|
@@ -7522,7 +7690,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7522
7690
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
7523
7691
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7524
7692
|
if (!avoidNormalize) {
|
|
7525
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0,
|
|
7693
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7526
7694
|
var _styleState;
|
|
7527
7695
|
(_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7528
7696
|
var [a] = param, [b] = param1;
|
|
@@ -11677,7 +11845,7 @@ var require_index_native14 = __commonJS({
|
|
|
11677
11845
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
11678
11846
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
11679
11847
|
__reExport2(index_exports2, require_getSplitStyles_native(), module2.exports);
|
|
11680
|
-
__reExport2(index_exports2,
|
|
11848
|
+
__reExport2(index_exports2, require_getCSSStylesAtomic_native(), module2.exports);
|
|
11681
11849
|
__reExport2(index_exports2, require_createComponent_native(), module2.exports);
|
|
11682
11850
|
__reExport2(index_exports2, require_getThemeCSSRules_native(), module2.exports);
|
|
11683
11851
|
__reExport2(index_exports2, require_getVariantExtras_native(), module2.exports);
|
|
@@ -31435,9 +31603,9 @@ __export(index_exports, {
|
|
|
31435
31603
|
createTokens: () => import_core11.createTokens,
|
|
31436
31604
|
createVariable: () => import_core11.createVariable,
|
|
31437
31605
|
defaultStyles: () => defaultStyles,
|
|
31606
|
+
getCSSStylesAtomic: () => import_core11.getCSSStylesAtomic,
|
|
31438
31607
|
getConfig: () => import_core11.getConfig,
|
|
31439
31608
|
getMedia: () => import_core11.getMedia,
|
|
31440
|
-
getStylesAtomic: () => import_core11.getStylesAtomic,
|
|
31441
31609
|
getThemes: () => import_core11.getThemes,
|
|
31442
31610
|
getToken: () => import_core11.getToken,
|
|
31443
31611
|
getTokenValue: () => import_core11.getTokenValue,
|
|
@@ -31846,9 +32014,9 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
31846
32014
|
createTokens,
|
|
31847
32015
|
createVariable,
|
|
31848
32016
|
defaultStyles,
|
|
32017
|
+
getCSSStylesAtomic,
|
|
31849
32018
|
getConfig,
|
|
31850
32019
|
getMedia,
|
|
31851
|
-
getStylesAtomic,
|
|
31852
32020
|
getThemes,
|
|
31853
32021
|
getToken,
|
|
31854
32022
|
getTokenValue,
|