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/test.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,
|
|
@@ -5422,9 +5423,137 @@ var require_expandStyles_native = __commonJS({
|
|
|
5422
5423
|
}
|
|
5423
5424
|
});
|
|
5424
5425
|
|
|
5425
|
-
// ../../core/web/dist/cjs/helpers/
|
|
5426
|
-
var
|
|
5427
|
-
"../../core/web/dist/cjs/helpers/
|
|
5426
|
+
// ../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
5427
|
+
var require_normalizeValueWithProperty_native = __commonJS({
|
|
5428
|
+
"../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
5429
|
+
"use strict";
|
|
5430
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5431
|
+
for (var name in all) __defProp2(target, name, {
|
|
5432
|
+
get: all[name],
|
|
5433
|
+
enumerable: !0
|
|
5434
|
+
});
|
|
5435
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
5436
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5437
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5438
|
+
for (var _loop = function() {
|
|
5439
|
+
var key = _step.value;
|
|
5440
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5441
|
+
get: function() {
|
|
5442
|
+
return from[key];
|
|
5443
|
+
},
|
|
5444
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5445
|
+
});
|
|
5446
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5447
|
+
} catch (err) {
|
|
5448
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
5449
|
+
} finally {
|
|
5450
|
+
try {
|
|
5451
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5452
|
+
} finally {
|
|
5453
|
+
if (_didIteratorError)
|
|
5454
|
+
throw _iteratorError;
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
|
+
return to;
|
|
5458
|
+
}, __toCommonJS2 = function(mod) {
|
|
5459
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5460
|
+
value: !0
|
|
5461
|
+
}), mod);
|
|
5462
|
+
}, normalizeValueWithProperty_exports = {};
|
|
5463
|
+
__export2(normalizeValueWithProperty_exports, {
|
|
5464
|
+
normalizeValueWithProperty: function() {
|
|
5465
|
+
return normalizeValueWithProperty;
|
|
5466
|
+
},
|
|
5467
|
+
reverseMapClassNameToValue: function() {
|
|
5468
|
+
return reverseMapClassNameToValue;
|
|
5469
|
+
}
|
|
5470
|
+
});
|
|
5471
|
+
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
5472
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
5473
|
+
...import_helpers.stylePropsAll,
|
|
5474
|
+
translateX: !0,
|
|
5475
|
+
translateY: !0
|
|
5476
|
+
};
|
|
5477
|
+
function normalizeValueWithProperty(value) {
|
|
5478
|
+
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
5479
|
+
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
5480
|
+
var res = value;
|
|
5481
|
+
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
5482
|
+
}
|
|
5483
|
+
var rcache = {};
|
|
5484
|
+
function reverseMapClassNameToValue(key, className) {
|
|
5485
|
+
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
5486
|
+
if (rcache[cssRule]) return rcache[cssRule];
|
|
5487
|
+
if (cssRule) {
|
|
5488
|
+
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
5489
|
+
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, res;
|
|
5490
|
+
}
|
|
5491
|
+
}
|
|
5492
|
+
}
|
|
5493
|
+
});
|
|
5494
|
+
|
|
5495
|
+
// ../../core/web/dist/cjs/helpers/transformsToString.native.js
|
|
5496
|
+
var require_transformsToString_native = __commonJS({
|
|
5497
|
+
"../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
5498
|
+
"use strict";
|
|
5499
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5500
|
+
for (var name in all) __defProp2(target, name, {
|
|
5501
|
+
get: all[name],
|
|
5502
|
+
enumerable: !0
|
|
5503
|
+
});
|
|
5504
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
5505
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5506
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5507
|
+
for (var _loop = function() {
|
|
5508
|
+
var key = _step.value;
|
|
5509
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5510
|
+
get: function() {
|
|
5511
|
+
return from[key];
|
|
5512
|
+
},
|
|
5513
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5514
|
+
});
|
|
5515
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5516
|
+
} catch (err) {
|
|
5517
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
5518
|
+
} finally {
|
|
5519
|
+
try {
|
|
5520
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5521
|
+
} finally {
|
|
5522
|
+
if (_didIteratorError)
|
|
5523
|
+
throw _iteratorError;
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
return to;
|
|
5527
|
+
}, __toCommonJS2 = function(mod) {
|
|
5528
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5529
|
+
value: !0
|
|
5530
|
+
}), mod);
|
|
5531
|
+
}, transformsToString_exports = {};
|
|
5532
|
+
__export2(transformsToString_exports, {
|
|
5533
|
+
transformsToString: function() {
|
|
5534
|
+
return transformsToString;
|
|
5535
|
+
}
|
|
5536
|
+
});
|
|
5537
|
+
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
5538
|
+
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
5539
|
+
function transformsToString(transforms) {
|
|
5540
|
+
return transforms.map(
|
|
5541
|
+
// { scale: 2 } => 'scale(2)'
|
|
5542
|
+
// { translateX: 20 } => 'translateX(20px)'
|
|
5543
|
+
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
5544
|
+
// { perspective: 1000 } => perspective(1000px)
|
|
5545
|
+
function(transform) {
|
|
5546
|
+
var type = Object.keys(transform)[0], value = transform[type];
|
|
5547
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
5548
|
+
}
|
|
5549
|
+
).join(" ");
|
|
5550
|
+
}
|
|
5551
|
+
}
|
|
5552
|
+
});
|
|
5553
|
+
|
|
5554
|
+
// ../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js
|
|
5555
|
+
var require_getCSSStylesAtomic_native = __commonJS({
|
|
5556
|
+
"../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js"(exports2, module2) {
|
|
5428
5557
|
"use strict";
|
|
5429
5558
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5430
5559
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -5458,22 +5587,189 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
5458
5587
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5459
5588
|
value: !0
|
|
5460
5589
|
}), mod);
|
|
5461
|
-
},
|
|
5462
|
-
__export2(
|
|
5590
|
+
}, getCSSStylesAtomic_exports = {};
|
|
5591
|
+
__export2(getCSSStylesAtomic_exports, {
|
|
5592
|
+
getCSSStylesAtomic: function() {
|
|
5593
|
+
return getCSSStylesAtomic2;
|
|
5594
|
+
},
|
|
5463
5595
|
getStyleAtomic: function() {
|
|
5464
5596
|
return getStyleAtomic;
|
|
5465
5597
|
},
|
|
5466
|
-
getStylesAtomic: function() {
|
|
5467
|
-
return getStylesAtomic2;
|
|
5468
|
-
},
|
|
5469
5598
|
styleToCSS: function() {
|
|
5470
5599
|
return styleToCSS;
|
|
5471
5600
|
}
|
|
5472
5601
|
});
|
|
5473
|
-
module2.exports = __toCommonJS2(
|
|
5474
|
-
var
|
|
5475
|
-
|
|
5476
|
-
|
|
5602
|
+
module2.exports = __toCommonJS2(getCSSStylesAtomic_exports);
|
|
5603
|
+
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();
|
|
5604
|
+
function getCSSStylesAtomic2(style) {
|
|
5605
|
+
styleToCSS(style);
|
|
5606
|
+
var out = [];
|
|
5607
|
+
for (var key in style) if (key !== "$$css") {
|
|
5608
|
+
var val = style[key];
|
|
5609
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors) val && out.push(...getStyleAtomic(val, import_pseudoDescriptors.pseudoDescriptors[key]));
|
|
5610
|
+
else if ((0, import_useMedia.isMediaKey)(key)) for (var subKey in val) {
|
|
5611
|
+
var so = getStyleObject(val, subKey);
|
|
5612
|
+
so && (so[0] = key, out.push(so));
|
|
5613
|
+
}
|
|
5614
|
+
else {
|
|
5615
|
+
var so1 = getStyleObject(style, key);
|
|
5616
|
+
so1 && out.push(so1);
|
|
5617
|
+
}
|
|
5618
|
+
}
|
|
5619
|
+
return out;
|
|
5620
|
+
}
|
|
5621
|
+
var getStyleAtomic = function(style, pseudo) {
|
|
5622
|
+
styleToCSS(style);
|
|
5623
|
+
var out = [];
|
|
5624
|
+
for (var key in style) {
|
|
5625
|
+
var so = getStyleObject(style, key, pseudo);
|
|
5626
|
+
so && out.push(so);
|
|
5627
|
+
}
|
|
5628
|
+
return out;
|
|
5629
|
+
}, conf = null, getStyleObject = function(style, key, pseudo) {
|
|
5630
|
+
var val = style[key];
|
|
5631
|
+
if (val != null) {
|
|
5632
|
+
key === "transform" && Array.isArray(style.transform) && (val = (0, import_transformsToString.transformsToString)(val));
|
|
5633
|
+
var value = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key), hash = (0, import_helpers.simpleHash)(typeof value == "string" ? value : `${value}`), pseudoPrefix = pseudo ? `0${pseudo.name}-` : "";
|
|
5634
|
+
conf || (conf = (0, import_config.getConfigMaybe)());
|
|
5635
|
+
var shortProp = (conf == null ? void 0 : conf.inverseShorthands[key]) || key, identifier = `_${shortProp}-${pseudoPrefix}${hash}`, rules = createAtomicRules(identifier, key, value, pseudo);
|
|
5636
|
+
return [
|
|
5637
|
+
// array for performance
|
|
5638
|
+
key,
|
|
5639
|
+
value,
|
|
5640
|
+
identifier,
|
|
5641
|
+
pseudo == null ? void 0 : pseudo.name,
|
|
5642
|
+
rules
|
|
5643
|
+
];
|
|
5644
|
+
}
|
|
5645
|
+
};
|
|
5646
|
+
function styleToCSS(style) {
|
|
5647
|
+
var { shadowOffset, shadowRadius, shadowColor, shadowOpacity } = style;
|
|
5648
|
+
if (shadowRadius || shadowColor) {
|
|
5649
|
+
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}`;
|
|
5650
|
+
style.boxShadow = style.boxShadow ? `${style.boxShadow}, ${shadow}` : shadow, delete style.shadowOffset, delete style.shadowRadius, delete style.shadowColor, delete style.shadowOpacity;
|
|
5651
|
+
}
|
|
5652
|
+
var { textShadowColor, textShadowOffset, textShadowRadius } = style;
|
|
5653
|
+
if (textShadowColor || textShadowOffset || textShadowRadius) {
|
|
5654
|
+
var { height: height1, width: width1 } = textShadowOffset || import_defaultOffset.defaultOffset, radius1 = textShadowRadius || 0, color1 = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(textShadowColor, "textShadowColor");
|
|
5655
|
+
if (color1 && (height1 !== 0 || width1 !== 0 || radius1 !== 0)) {
|
|
5656
|
+
var blurRadius = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(radius1), offsetX = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(width1), offsetY = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(height1);
|
|
5657
|
+
style.textShadow = `${offsetX} ${offsetY} ${blurRadius} ${color1}`;
|
|
5658
|
+
}
|
|
5659
|
+
delete style.textShadowColor, delete style.textShadowOffset, delete style.textShadowRadius;
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
function createDeclarationBlock(style) {
|
|
5663
|
+
var important = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, next = "", _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5664
|
+
try {
|
|
5665
|
+
for (var _iterator = style[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
5666
|
+
var [key, value] = _step.value;
|
|
5667
|
+
next += `${hyphenateStyleName(key)}:${value}${important ? " !important" : ""};`;
|
|
5668
|
+
}
|
|
5669
|
+
} catch (err) {
|
|
5670
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
5671
|
+
} finally {
|
|
5672
|
+
try {
|
|
5673
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5674
|
+
} finally {
|
|
5675
|
+
if (_didIteratorError) throw _iteratorError;
|
|
5676
|
+
}
|
|
5677
|
+
}
|
|
5678
|
+
return `{${next}}`;
|
|
5679
|
+
}
|
|
5680
|
+
var hcache = {}, toHyphenLower = function(match) {
|
|
5681
|
+
return `-${match.toLowerCase()}`;
|
|
5682
|
+
}, hyphenateStyleName = function(key) {
|
|
5683
|
+
if (key in hcache) return hcache[key];
|
|
5684
|
+
var val = key.replace(/[A-Z]/g, toHyphenLower);
|
|
5685
|
+
return hcache[key] = val, val;
|
|
5686
|
+
}, selectorPriority = function() {
|
|
5687
|
+
var res = {};
|
|
5688
|
+
for (var key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
5689
|
+
var pseudo = import_pseudoDescriptors.pseudoDescriptors[key];
|
|
5690
|
+
res[pseudo.name] = `${[
|
|
5691
|
+
...Array(pseudo.priority)
|
|
5692
|
+
].map(function() {
|
|
5693
|
+
return ":root";
|
|
5694
|
+
}).join("")} `;
|
|
5695
|
+
}
|
|
5696
|
+
return res;
|
|
5697
|
+
}();
|
|
5698
|
+
function createAtomicRules(identifier, property, value, pseudo) {
|
|
5699
|
+
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}`;
|
|
5700
|
+
pseudoSelector === import_pseudoDescriptors.pseudoDescriptors.enterStyle.selector && (selector = `${selector}, .${identifier}${pseudoSelector}`);
|
|
5701
|
+
var important = !!pseudo, rules = [];
|
|
5702
|
+
switch (property) {
|
|
5703
|
+
// Equivalent to using '::placeholder'
|
|
5704
|
+
case "placeholderTextColor": {
|
|
5705
|
+
var block = createDeclarationBlock([
|
|
5706
|
+
[
|
|
5707
|
+
"color",
|
|
5708
|
+
value
|
|
5709
|
+
],
|
|
5710
|
+
[
|
|
5711
|
+
"opacity",
|
|
5712
|
+
1
|
|
5713
|
+
]
|
|
5714
|
+
], important);
|
|
5715
|
+
rules.push(`${selector}::placeholder${block}`);
|
|
5716
|
+
break;
|
|
5717
|
+
}
|
|
5718
|
+
// all webkit prefixed rules
|
|
5719
|
+
case "backgroundClip":
|
|
5720
|
+
case "userSelect": {
|
|
5721
|
+
var propertyCapitalized = `${property[0].toUpperCase()}${property.slice(1)}`, webkitProperty = `Webkit${propertyCapitalized}`, block1 = createDeclarationBlock([
|
|
5722
|
+
[
|
|
5723
|
+
property,
|
|
5724
|
+
value
|
|
5725
|
+
],
|
|
5726
|
+
[
|
|
5727
|
+
webkitProperty,
|
|
5728
|
+
value
|
|
5729
|
+
]
|
|
5730
|
+
], important);
|
|
5731
|
+
rules.push(`${selector}${block1}`);
|
|
5732
|
+
break;
|
|
5733
|
+
}
|
|
5734
|
+
// Polyfill for additional 'pointer-events' values
|
|
5735
|
+
case "pointerEvents": {
|
|
5736
|
+
var finalValue = value;
|
|
5737
|
+
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}`));
|
|
5738
|
+
var block2 = createDeclarationBlock([
|
|
5739
|
+
[
|
|
5740
|
+
"pointerEvents",
|
|
5741
|
+
finalValue
|
|
5742
|
+
]
|
|
5743
|
+
], !0);
|
|
5744
|
+
rules.push(`${selector}${block2}`);
|
|
5745
|
+
break;
|
|
5746
|
+
}
|
|
5747
|
+
default: {
|
|
5748
|
+
var block3 = createDeclarationBlock([
|
|
5749
|
+
[
|
|
5750
|
+
property,
|
|
5751
|
+
value
|
|
5752
|
+
]
|
|
5753
|
+
], important);
|
|
5754
|
+
rules.push(`${selector}${block3}`);
|
|
5755
|
+
break;
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
return (pseudo == null ? void 0 : pseudo.name) === "hover" && (rules = rules.map(function(r) {
|
|
5759
|
+
return `@media (hover) {${r}}`;
|
|
5760
|
+
})), rules;
|
|
5761
|
+
}
|
|
5762
|
+
var boxNone = createDeclarationBlock([
|
|
5763
|
+
[
|
|
5764
|
+
"pointerEvents",
|
|
5765
|
+
"auto"
|
|
5766
|
+
]
|
|
5767
|
+
], !0), boxOnly = createDeclarationBlock([
|
|
5768
|
+
[
|
|
5769
|
+
"pointerEvents",
|
|
5770
|
+
"none"
|
|
5771
|
+
]
|
|
5772
|
+
], !0);
|
|
5477
5773
|
}
|
|
5478
5774
|
});
|
|
5479
5775
|
|
|
@@ -5638,75 +5934,6 @@ var require_log_native = __commonJS({
|
|
|
5638
5934
|
}
|
|
5639
5935
|
});
|
|
5640
5936
|
|
|
5641
|
-
// ../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
5642
|
-
var require_normalizeValueWithProperty_native = __commonJS({
|
|
5643
|
-
"../../core/web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
5644
|
-
"use strict";
|
|
5645
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5646
|
-
for (var name in all) __defProp2(target, name, {
|
|
5647
|
-
get: all[name],
|
|
5648
|
-
enumerable: !0
|
|
5649
|
-
});
|
|
5650
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
5651
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5652
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5653
|
-
for (var _loop = function() {
|
|
5654
|
-
var key = _step.value;
|
|
5655
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5656
|
-
get: function() {
|
|
5657
|
-
return from[key];
|
|
5658
|
-
},
|
|
5659
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5660
|
-
});
|
|
5661
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5662
|
-
} catch (err) {
|
|
5663
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
5664
|
-
} finally {
|
|
5665
|
-
try {
|
|
5666
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5667
|
-
} finally {
|
|
5668
|
-
if (_didIteratorError)
|
|
5669
|
-
throw _iteratorError;
|
|
5670
|
-
}
|
|
5671
|
-
}
|
|
5672
|
-
return to;
|
|
5673
|
-
}, __toCommonJS2 = function(mod) {
|
|
5674
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5675
|
-
value: !0
|
|
5676
|
-
}), mod);
|
|
5677
|
-
}, normalizeValueWithProperty_exports = {};
|
|
5678
|
-
__export2(normalizeValueWithProperty_exports, {
|
|
5679
|
-
normalizeValueWithProperty: function() {
|
|
5680
|
-
return normalizeValueWithProperty;
|
|
5681
|
-
},
|
|
5682
|
-
reverseMapClassNameToValue: function() {
|
|
5683
|
-
return reverseMapClassNameToValue;
|
|
5684
|
-
}
|
|
5685
|
-
});
|
|
5686
|
-
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
5687
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
5688
|
-
...import_helpers.stylePropsAll,
|
|
5689
|
-
translateX: !0,
|
|
5690
|
-
translateY: !0
|
|
5691
|
-
};
|
|
5692
|
-
function normalizeValueWithProperty(value) {
|
|
5693
|
-
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
5694
|
-
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
5695
|
-
var res = value;
|
|
5696
|
-
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
5697
|
-
}
|
|
5698
|
-
var rcache = {};
|
|
5699
|
-
function reverseMapClassNameToValue(key, className) {
|
|
5700
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
5701
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
5702
|
-
if (cssRule) {
|
|
5703
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
5704
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, res;
|
|
5705
|
-
}
|
|
5706
|
-
}
|
|
5707
|
-
}
|
|
5708
|
-
});
|
|
5709
|
-
|
|
5710
5937
|
// ../../core/web/dist/cjs/constants/webToNativeProps.native.js
|
|
5711
5938
|
var require_webToNativeProps_native = __commonJS({
|
|
5712
5939
|
"../../core/web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
|
|
@@ -6725,64 +6952,6 @@ var require_sortString_native = __commonJS({
|
|
|
6725
6952
|
}
|
|
6726
6953
|
});
|
|
6727
6954
|
|
|
6728
|
-
// ../../core/web/dist/cjs/helpers/transformsToString.native.js
|
|
6729
|
-
var require_transformsToString_native = __commonJS({
|
|
6730
|
-
"../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
6731
|
-
"use strict";
|
|
6732
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6733
|
-
for (var name in all) __defProp2(target, name, {
|
|
6734
|
-
get: all[name],
|
|
6735
|
-
enumerable: !0
|
|
6736
|
-
});
|
|
6737
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
6738
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6739
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
6740
|
-
for (var _loop = function() {
|
|
6741
|
-
var key = _step.value;
|
|
6742
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6743
|
-
get: function() {
|
|
6744
|
-
return from[key];
|
|
6745
|
-
},
|
|
6746
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6747
|
-
});
|
|
6748
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
6749
|
-
} catch (err) {
|
|
6750
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
6751
|
-
} finally {
|
|
6752
|
-
try {
|
|
6753
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6754
|
-
} finally {
|
|
6755
|
-
if (_didIteratorError)
|
|
6756
|
-
throw _iteratorError;
|
|
6757
|
-
}
|
|
6758
|
-
}
|
|
6759
|
-
return to;
|
|
6760
|
-
}, __toCommonJS2 = function(mod) {
|
|
6761
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6762
|
-
value: !0
|
|
6763
|
-
}), mod);
|
|
6764
|
-
}, transformsToString_exports = {};
|
|
6765
|
-
__export2(transformsToString_exports, {
|
|
6766
|
-
transformsToString: function() {
|
|
6767
|
-
return transformsToString;
|
|
6768
|
-
}
|
|
6769
|
-
});
|
|
6770
|
-
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
6771
|
-
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
6772
|
-
function transformsToString(transforms) {
|
|
6773
|
-
return transforms.map(
|
|
6774
|
-
// { scale: 2 } => 'scale(2)'
|
|
6775
|
-
// { translateX: 20 } => 'translateX(20px)'
|
|
6776
|
-
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
6777
|
-
function(transform) {
|
|
6778
|
-
var type = Object.keys(transform)[0], value = transform[type];
|
|
6779
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
6780
|
-
}
|
|
6781
|
-
).join(" ");
|
|
6782
|
-
}
|
|
6783
|
-
}
|
|
6784
|
-
});
|
|
6785
|
-
|
|
6786
6955
|
// ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
|
|
6787
6956
|
var require_getSplitStyles_native = __commonJS({
|
|
6788
6957
|
"../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -6847,7 +7016,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6847
7016
|
}
|
|
6848
7017
|
});
|
|
6849
7018
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6850
|
-
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(),
|
|
7019
|
+
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 = "-";
|
|
6851
7020
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6852
7021
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6853
7022
|
}
|
|
@@ -6938,7 +7107,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6938
7107
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
|
|
6939
7108
|
if (!descriptor) return;
|
|
6940
7109
|
if (shouldDoClasses && !isExit) {
|
|
6941
|
-
var pseudoStyles = (0,
|
|
7110
|
+
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
6942
7111
|
try {
|
|
6943
7112
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6944
7113
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
@@ -6989,7 +7158,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6989
7158
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
6990
7159
|
importance1 && (space = val2.space, usedKeys.space = importance1);
|
|
6991
7160
|
}
|
|
6992
|
-
var mediaStyles = (0,
|
|
7161
|
+
var mediaStyles = (0, import_getCSSStylesAtomic.getStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
|
|
6993
7162
|
mediaStylesSeen += 1;
|
|
6994
7163
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
6995
7164
|
try {
|
|
@@ -7093,7 +7262,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7093
7262
|
for (var keyOg in props) _loop(keyOg);
|
|
7094
7263
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7095
7264
|
if (!avoidNormalize) {
|
|
7096
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0,
|
|
7265
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7097
7266
|
var _styleState;
|
|
7098
7267
|
(_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7099
7268
|
var [a] = param, [b] = param1;
|
|
@@ -11065,7 +11234,7 @@ var require_index_native14 = __commonJS({
|
|
|
11065
11234
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
11066
11235
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
11067
11236
|
__reExport2(index_exports2, require_getSplitStyles_native(), module2.exports);
|
|
11068
|
-
__reExport2(index_exports2,
|
|
11237
|
+
__reExport2(index_exports2, require_getCSSStylesAtomic_native(), module2.exports);
|
|
11069
11238
|
__reExport2(index_exports2, require_createComponent_native(), module2.exports);
|
|
11070
11239
|
__reExport2(index_exports2, require_getThemeCSSRules_native(), module2.exports);
|
|
11071
11240
|
__reExport2(index_exports2, require_getVariantExtras_native(), module2.exports);
|
|
@@ -30700,9 +30869,9 @@ __export(index_exports, {
|
|
|
30700
30869
|
createTokens: () => import_core11.createTokens,
|
|
30701
30870
|
createVariable: () => import_core11.createVariable,
|
|
30702
30871
|
defaultStyles: () => defaultStyles,
|
|
30872
|
+
getCSSStylesAtomic: () => import_core11.getCSSStylesAtomic,
|
|
30703
30873
|
getConfig: () => import_core11.getConfig,
|
|
30704
30874
|
getMedia: () => import_core11.getMedia,
|
|
30705
|
-
getStylesAtomic: () => import_core11.getStylesAtomic,
|
|
30706
30875
|
getThemes: () => import_core11.getThemes,
|
|
30707
30876
|
getToken: () => import_core11.getToken,
|
|
30708
30877
|
getTokenValue: () => import_core11.getTokenValue,
|
|
@@ -31057,9 +31226,9 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
31057
31226
|
createTokens,
|
|
31058
31227
|
createVariable,
|
|
31059
31228
|
defaultStyles,
|
|
31229
|
+
getCSSStylesAtomic,
|
|
31060
31230
|
getConfig,
|
|
31061
31231
|
getMedia,
|
|
31062
|
-
getStylesAtomic,
|
|
31063
31232
|
getThemes,
|
|
31064
31233
|
getToken,
|
|
31065
31234
|
getTokenValue,
|