tamagui 1.123.8 → 1.123.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +162 -328
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +154 -320
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -1432,7 +1432,6 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1432
1432
|
...textColors
|
|
1433
1433
|
}
|
|
1434
1434
|
}, stylePropsUnitless = {
|
|
1435
|
-
perspective: !0,
|
|
1436
1435
|
WebkitLineClamp: !0,
|
|
1437
1436
|
animationIterationCount: !0,
|
|
1438
1437
|
aspectRatio: !0,
|
|
@@ -5423,134 +5422,6 @@ var require_expandStyles_native = __commonJS({
|
|
|
5423
5422
|
}
|
|
5424
5423
|
});
|
|
5425
5424
|
|
|
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
5425
|
// ../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js
|
|
5555
5426
|
var require_getCSSStylesAtomic_native = __commonJS({
|
|
5556
5427
|
"../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js"(exports2, module2) {
|
|
@@ -5587,8 +5458,8 @@ var require_getCSSStylesAtomic_native = __commonJS({
|
|
|
5587
5458
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5588
5459
|
value: !0
|
|
5589
5460
|
}), mod);
|
|
5590
|
-
},
|
|
5591
|
-
__export2(
|
|
5461
|
+
}, getCSSStylesAtomic_native_exports = {};
|
|
5462
|
+
__export2(getCSSStylesAtomic_native_exports, {
|
|
5592
5463
|
getCSSStylesAtomic: function() {
|
|
5593
5464
|
return getCSSStylesAtomic2;
|
|
5594
5465
|
},
|
|
@@ -5599,177 +5470,10 @@ var require_getCSSStylesAtomic_native = __commonJS({
|
|
|
5599
5470
|
return styleToCSS;
|
|
5600
5471
|
}
|
|
5601
5472
|
});
|
|
5602
|
-
module2.exports = __toCommonJS2(
|
|
5603
|
-
var
|
|
5604
|
-
|
|
5605
|
-
|
|
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);
|
|
5473
|
+
module2.exports = __toCommonJS2(getCSSStylesAtomic_native_exports);
|
|
5474
|
+
var empty = function() {
|
|
5475
|
+
console.warn("no-op native");
|
|
5476
|
+
}, getCSSStylesAtomic2 = empty, getStyleAtomic = empty, styleToCSS = empty;
|
|
5773
5477
|
}
|
|
5774
5478
|
});
|
|
5775
5479
|
|
|
@@ -5934,6 +5638,75 @@ var require_log_native = __commonJS({
|
|
|
5934
5638
|
}
|
|
5935
5639
|
});
|
|
5936
5640
|
|
|
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
|
+
|
|
5937
5710
|
// ../../core/web/dist/cjs/constants/webToNativeProps.native.js
|
|
5938
5711
|
var require_webToNativeProps_native = __commonJS({
|
|
5939
5712
|
"../../core/web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
|
|
@@ -6699,7 +6472,7 @@ var require_propMapper_native = __commonJS({
|
|
|
6699
6472
|
return;
|
|
6700
6473
|
}
|
|
6701
6474
|
}
|
|
6702
|
-
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps
|
|
6475
|
+
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
|
|
6703
6476
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
6704
6477
|
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
|
|
6705
6478
|
if (expanded) for (var max2 = expanded.length, i = 0; i < max2; i++) {
|
|
@@ -6753,7 +6526,7 @@ var require_propMapper_native = __commonJS({
|
|
|
6753
6526
|
if (styleProps.noExpand) res[subKey] = val;
|
|
6754
6527
|
else if (variants && subKey in variants) {
|
|
6755
6528
|
if (parentVariantKey && parentVariantKey === key) res[subKey] = // SYNC WITH *1
|
|
6756
|
-
val[0] === "$" ? getTokenForKey(subKey, val, styleProps
|
|
6529
|
+
val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val;
|
|
6757
6530
|
else {
|
|
6758
6531
|
var variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
|
|
6759
6532
|
if (variantOut) {
|
|
@@ -6786,7 +6559,7 @@ var require_propMapper_native = __commonJS({
|
|
|
6786
6559
|
if (typeof val == "string") {
|
|
6787
6560
|
var fVal = (
|
|
6788
6561
|
// SYNC WITH *1
|
|
6789
|
-
val[0] === "$" ? getTokenForKey(subKey, val, styleProps
|
|
6562
|
+
val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val
|
|
6790
6563
|
);
|
|
6791
6564
|
res[subKey] = fVal;
|
|
6792
6565
|
continue;
|
|
@@ -6842,16 +6615,18 @@ var require_propMapper_native = __commonJS({
|
|
|
6842
6615
|
var fontShorthand = {
|
|
6843
6616
|
fontSize: "size",
|
|
6844
6617
|
fontWeight: "weight"
|
|
6845
|
-
}, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
|
|
6846
|
-
var resolveAs =
|
|
6618
|
+
}, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
|
|
6619
|
+
var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
|
|
6847
6620
|
if (resolveAs === "none") return value;
|
|
6848
6621
|
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
|
|
6849
6622
|
if (customTokenAccept) {
|
|
6850
6623
|
var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
|
|
6851
6624
|
val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
|
|
6852
6625
|
}
|
|
6853
|
-
if (theme && value in theme)
|
|
6854
|
-
|
|
6626
|
+
if (theme && value in theme) {
|
|
6627
|
+
if (resolveAs === "except-theme") return value;
|
|
6628
|
+
valOrVar = theme[value], hasSet = !0;
|
|
6629
|
+
} else {
|
|
6855
6630
|
if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
|
|
6856
6631
|
else {
|
|
6857
6632
|
switch (key) {
|
|
@@ -6952,6 +6727,65 @@ var require_sortString_native = __commonJS({
|
|
|
6952
6727
|
}
|
|
6953
6728
|
});
|
|
6954
6729
|
|
|
6730
|
+
// ../../core/web/dist/cjs/helpers/transformsToString.native.js
|
|
6731
|
+
var require_transformsToString_native = __commonJS({
|
|
6732
|
+
"../../core/web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
6733
|
+
"use strict";
|
|
6734
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6735
|
+
for (var name in all) __defProp2(target, name, {
|
|
6736
|
+
get: all[name],
|
|
6737
|
+
enumerable: !0
|
|
6738
|
+
});
|
|
6739
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6740
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6741
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
6742
|
+
for (var _loop = function() {
|
|
6743
|
+
var key = _step.value;
|
|
6744
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6745
|
+
get: function() {
|
|
6746
|
+
return from[key];
|
|
6747
|
+
},
|
|
6748
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6749
|
+
});
|
|
6750
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
6751
|
+
} catch (err) {
|
|
6752
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6753
|
+
} finally {
|
|
6754
|
+
try {
|
|
6755
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6756
|
+
} finally {
|
|
6757
|
+
if (_didIteratorError)
|
|
6758
|
+
throw _iteratorError;
|
|
6759
|
+
}
|
|
6760
|
+
}
|
|
6761
|
+
return to;
|
|
6762
|
+
}, __toCommonJS2 = function(mod) {
|
|
6763
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6764
|
+
value: !0
|
|
6765
|
+
}), mod);
|
|
6766
|
+
}, transformsToString_exports = {};
|
|
6767
|
+
__export2(transformsToString_exports, {
|
|
6768
|
+
transformsToString: function() {
|
|
6769
|
+
return transformsToString;
|
|
6770
|
+
}
|
|
6771
|
+
});
|
|
6772
|
+
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
6773
|
+
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
6774
|
+
function transformsToString(transforms) {
|
|
6775
|
+
return transforms.map(
|
|
6776
|
+
// { scale: 2 } => 'scale(2)'
|
|
6777
|
+
// { translateX: 20 } => 'translateX(20px)'
|
|
6778
|
+
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
6779
|
+
// { perspective: 1000 } => perspective(1000px)
|
|
6780
|
+
function(transform) {
|
|
6781
|
+
var type = Object.keys(transform)[0], value = transform[type];
|
|
6782
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
6783
|
+
}
|
|
6784
|
+
).join(" ");
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
});
|
|
6788
|
+
|
|
6955
6789
|
// ../../core/web/dist/cjs/helpers/getSplitStyles.native.js
|
|
6956
6790
|
var require_getSplitStyles_native = __commonJS({
|
|
6957
6791
|
"../../core/web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -7016,7 +6850,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7016
6850
|
}
|
|
7017
6851
|
});
|
|
7018
6852
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
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(),
|
|
6853
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants4.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
|
|
7020
6854
|
function isValidStyleKey(key, validStyles, accept) {
|
|
7021
6855
|
return key in validStyles ? !0 : accept && key in accept;
|
|
7022
6856
|
}
|
|
@@ -7158,7 +6992,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7158
6992
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
7159
6993
|
importance1 && (space = val2.space, usedKeys.space = importance1);
|
|
7160
6994
|
}
|
|
7161
|
-
var mediaStyles = (0, import_getCSSStylesAtomic.
|
|
6995
|
+
var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
|
|
7162
6996
|
mediaStylesSeen += 1;
|
|
7163
6997
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
7164
6998
|
try {
|
|
@@ -7235,7 +7069,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7235
7069
|
}
|
|
7236
7070
|
});
|
|
7237
7071
|
};
|
|
7238
|
-
|
|
7072
|
+
conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
7239
7073
|
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
|
|
7240
7074
|
classNames,
|
|
7241
7075
|
conf,
|
|
@@ -7262,7 +7096,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7262
7096
|
for (var keyOg in props) _loop(keyOg);
|
|
7263
7097
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7264
7098
|
if (!avoidNormalize) {
|
|
7265
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7099
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7266
7100
|
var _styleState;
|
|
7267
7101
|
(_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7268
7102
|
var [a] = param, [b] = param1;
|
|
@@ -7282,7 +7116,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7282
7116
|
}
|
|
7283
7117
|
if (0) var _styleState_style, shouldStringifyTransforms;
|
|
7284
7118
|
if (0) {
|
|
7285
|
-
if (styleState.style && shouldDoClasses) {
|
|
7119
|
+
if (!styleProps.noMergeStyle && styleState.style && shouldDoClasses) {
|
|
7286
7120
|
var retainedStyles, shouldRetain;
|
|
7287
7121
|
if (!styleState.style.$$css) {
|
|
7288
7122
|
var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
|
|
@@ -7302,7 +7136,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7302
7136
|
} else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
|
|
7303
7137
|
}
|
|
7304
7138
|
var styleProp = props.style;
|
|
7305
|
-
if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
|
|
7139
|
+
if (!styleProps.noMergeStyle && styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
|
|
7306
7140
|
else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
|
|
7307
7141
|
var style = isArray ? styleProp[i] : styleProp;
|
|
7308
7142
|
if (style) if (style.$$css) Object.assign(styleState.classNames, style);
|
|
@@ -7332,11 +7166,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7332
7166
|
pseudoGroups,
|
|
7333
7167
|
mediaGroups
|
|
7334
7168
|
}, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
7335
|
-
if (!asChildExceptStyleLike) {
|
|
7169
|
+
if (!styleProps.noMergeStyle && !asChildExceptStyleLike) {
|
|
7336
7170
|
var style2 = styleState.style;
|
|
7337
7171
|
if (0) {
|
|
7338
7172
|
var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
|
|
7339
|
-
if (!
|
|
7173
|
+
if (!(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
|
|
7340
7174
|
var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
|
|
7341
7175
|
try {
|
|
7342
7176
|
for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
|
|
@@ -7344,7 +7178,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7344
7178
|
} finally {
|
|
7345
7179
|
}
|
|
7346
7180
|
}
|
|
7347
|
-
} else style2 &&
|
|
7181
|
+
} else style2 && (viewProps.style = style2);
|
|
7348
7182
|
}
|
|
7349
7183
|
if (0)
|
|
7350
7184
|
try {
|
|
@@ -25067,9 +24901,9 @@ var require_Popover_native = __commonJS({
|
|
|
25067
24901
|
// (closed !== unmounted when animating out)
|
|
25068
24902
|
trapFocus: trapFocus ?? context.open,
|
|
25069
24903
|
disableOutsidePointerEvents: !0,
|
|
25070
|
-
onCloseAutoFocus: (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
|
|
24904
|
+
onCloseAutoFocus: props.onCloseAutoFocus === !1 ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
|
|
25071
24905
|
var _context_triggerRef_current;
|
|
25072
|
-
event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus();
|
|
24906
|
+
event.defaultPrevented || (event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus());
|
|
25073
24907
|
}),
|
|
25074
24908
|
onPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {
|
|
25075
24909
|
var originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|