tamagui 1.123.6 → 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 +323 -154
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +315 -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
|
@@ -1432,6 +1432,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1432
1432
|
...textColors
|
|
1433
1433
|
}
|
|
1434
1434
|
}, stylePropsUnitless = {
|
|
1435
|
+
perspective: !0,
|
|
1435
1436
|
WebkitLineClamp: !0,
|
|
1436
1437
|
animationIterationCount: !0,
|
|
1437
1438
|
aspectRatio: !0,
|
|
@@ -5750,9 +5751,145 @@ var require_expandStyles_native = __commonJS({
|
|
|
5750
5751
|
}
|
|
5751
5752
|
});
|
|
5752
5753
|
|
|
5753
|
-
// ../../core/web/dist/cjs/helpers/
|
|
5754
|
-
var
|
|
5755
|
-
"../../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) {
|
|
5756
5893
|
"use strict";
|
|
5757
5894
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5758
5895
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -5786,22 +5923,189 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
5786
5923
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5787
5924
|
value: !0
|
|
5788
5925
|
}), mod);
|
|
5789
|
-
},
|
|
5790
|
-
__export2(
|
|
5926
|
+
}, getCSSStylesAtomic_exports = {};
|
|
5927
|
+
__export2(getCSSStylesAtomic_exports, {
|
|
5928
|
+
getCSSStylesAtomic: function() {
|
|
5929
|
+
return getCSSStylesAtomic2;
|
|
5930
|
+
},
|
|
5791
5931
|
getStyleAtomic: function() {
|
|
5792
5932
|
return getStyleAtomic;
|
|
5793
5933
|
},
|
|
5794
|
-
getStylesAtomic: function() {
|
|
5795
|
-
return getStylesAtomic2;
|
|
5796
|
-
},
|
|
5797
5934
|
styleToCSS: function() {
|
|
5798
5935
|
return styleToCSS;
|
|
5799
5936
|
}
|
|
5800
5937
|
});
|
|
5801
|
-
module2.exports = __toCommonJS2(
|
|
5802
|
-
var
|
|
5803
|
-
|
|
5804
|
-
|
|
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);
|
|
5805
6109
|
}
|
|
5806
6110
|
});
|
|
5807
6111
|
|
|
@@ -5968,83 +6272,6 @@ var require_log_native = __commonJS({
|
|
|
5968
6272
|
}
|
|
5969
6273
|
});
|
|
5970
6274
|
|
|
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
|
-
|
|
6048
6275
|
// ../../core/web/dist/cjs/constants/webToNativeProps.native.js
|
|
6049
6276
|
var require_webToNativeProps_native = __commonJS({
|
|
6050
6277
|
"../../core/web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
|
|
@@ -7076,64 +7303,6 @@ var require_sortString_native = __commonJS({
|
|
|
7076
7303
|
}
|
|
7077
7304
|
});
|
|
7078
7305
|
|
|
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
|
-
function(transform) {
|
|
7129
|
-
var type = Object.keys(transform)[0], value = transform[type];
|
|
7130
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
7131
|
-
}
|
|
7132
|
-
).join(" ");
|
|
7133
|
-
}
|
|
7134
|
-
}
|
|
7135
|
-
});
|
|
7136
|
-
|
|
7137
7306
|
// ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
|
|
7138
7307
|
var require_getSplitStyles_native = __commonJS({
|
|
7139
7308
|
"../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -7198,7 +7367,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7198
7367
|
}
|
|
7199
7368
|
});
|
|
7200
7369
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
7201
|
-
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 = "-";
|
|
7202
7371
|
function isValidStyleKey(key, validStyles, accept) {
|
|
7203
7372
|
return key in validStyles ? !0 : accept && key in accept;
|
|
7204
7373
|
}
|
|
@@ -7304,7 +7473,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7304
7473
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
|
|
7305
7474
|
if (!descriptor) return;
|
|
7306
7475
|
if (shouldDoClasses && !isExit) {
|
|
7307
|
-
var pseudoStyles = (0,
|
|
7476
|
+
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
|
|
7308
7477
|
process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed("pseudo (classes)", key4), (0, import_log.log)({
|
|
7309
7478
|
pseudoStyleObject,
|
|
7310
7479
|
pseudoStyles
|
|
@@ -7381,7 +7550,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7381
7550
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
7382
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})`));
|
|
7383
7552
|
}
|
|
7384
|
-
var mediaStyles = (0,
|
|
7553
|
+
var mediaStyles = (0, import_getCSSStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
|
|
7385
7554
|
mediaStylesSeen += 1;
|
|
7386
7555
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
7387
7556
|
try {
|
|
@@ -7521,7 +7690,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7521
7690
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
7522
7691
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7523
7692
|
if (!avoidNormalize) {
|
|
7524
|
-
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) {
|
|
7525
7694
|
var _styleState;
|
|
7526
7695
|
(_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7527
7696
|
var [a] = param, [b] = param1;
|
|
@@ -11676,7 +11845,7 @@ var require_index_native14 = __commonJS({
|
|
|
11676
11845
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
11677
11846
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
11678
11847
|
__reExport2(index_exports2, require_getSplitStyles_native(), module2.exports);
|
|
11679
|
-
__reExport2(index_exports2,
|
|
11848
|
+
__reExport2(index_exports2, require_getCSSStylesAtomic_native(), module2.exports);
|
|
11680
11849
|
__reExport2(index_exports2, require_createComponent_native(), module2.exports);
|
|
11681
11850
|
__reExport2(index_exports2, require_getThemeCSSRules_native(), module2.exports);
|
|
11682
11851
|
__reExport2(index_exports2, require_getVariantExtras_native(), module2.exports);
|
|
@@ -31434,9 +31603,9 @@ __export(index_exports, {
|
|
|
31434
31603
|
createTokens: () => import_core11.createTokens,
|
|
31435
31604
|
createVariable: () => import_core11.createVariable,
|
|
31436
31605
|
defaultStyles: () => defaultStyles,
|
|
31606
|
+
getCSSStylesAtomic: () => import_core11.getCSSStylesAtomic,
|
|
31437
31607
|
getConfig: () => import_core11.getConfig,
|
|
31438
31608
|
getMedia: () => import_core11.getMedia,
|
|
31439
|
-
getStylesAtomic: () => import_core11.getStylesAtomic,
|
|
31440
31609
|
getThemes: () => import_core11.getThemes,
|
|
31441
31610
|
getToken: () => import_core11.getToken,
|
|
31442
31611
|
getTokenValue: () => import_core11.getTokenValue,
|
|
@@ -31845,9 +32014,9 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
31845
32014
|
createTokens,
|
|
31846
32015
|
createVariable,
|
|
31847
32016
|
defaultStyles,
|
|
32017
|
+
getCSSStylesAtomic,
|
|
31848
32018
|
getConfig,
|
|
31849
32019
|
getMedia,
|
|
31850
|
-
getStylesAtomic,
|
|
31851
32020
|
getThemes,
|
|
31852
32021
|
getToken,
|
|
31853
32022
|
getTokenValue,
|