@tamagui/core 1.97.1 → 1.98.1
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 +366 -22
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +366 -22
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -10
- package/types/hooks/useElementLayout.d.ts.map +1 -1
package/dist/native.js
CHANGED
|
@@ -1720,7 +1720,13 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1720
1720
|
minWidth: !0,
|
|
1721
1721
|
minHeight: !0,
|
|
1722
1722
|
maxWidth: !0,
|
|
1723
|
-
maxHeight: !0
|
|
1723
|
+
maxHeight: !0,
|
|
1724
|
+
blockSize: !0,
|
|
1725
|
+
minBlockSize: !0,
|
|
1726
|
+
maxBlockSize: !0,
|
|
1727
|
+
inlineSize: !0,
|
|
1728
|
+
minInlineSize: !0,
|
|
1729
|
+
maxInlineSize: !0
|
|
1724
1730
|
},
|
|
1725
1731
|
zIndex: {
|
|
1726
1732
|
zIndex: !0
|
|
@@ -1732,6 +1738,9 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1732
1738
|
borderBlockEndColor: !0,
|
|
1733
1739
|
borderBlockColor: !0,
|
|
1734
1740
|
borderBottomColor: !0,
|
|
1741
|
+
borderInlineColor: !0,
|
|
1742
|
+
borderInlineStartColor: !0,
|
|
1743
|
+
borderInlineEndColor: !0,
|
|
1735
1744
|
borderTopColor: !0,
|
|
1736
1745
|
borderLeftColor: !0,
|
|
1737
1746
|
borderRightColor: !0,
|
|
@@ -1797,7 +1806,19 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1797
1806
|
borderBottomWidth: !0,
|
|
1798
1807
|
borderLeftWidth: !0,
|
|
1799
1808
|
borderRightWidth: !0,
|
|
1809
|
+
borderBlockWidth: !0,
|
|
1810
|
+
borderBlockEndWidth: !0,
|
|
1811
|
+
borderBlockStartWidth: !0,
|
|
1812
|
+
borderInlineWidth: !0,
|
|
1813
|
+
borderInlineEndWidth: !0,
|
|
1814
|
+
borderInlineStartWidth: !0,
|
|
1800
1815
|
borderStyle: !0,
|
|
1816
|
+
borderBlockStyle: !0,
|
|
1817
|
+
borderBlockEndStyle: !0,
|
|
1818
|
+
borderBlockStartStyle: !0,
|
|
1819
|
+
borderInlineStyle: !0,
|
|
1820
|
+
borderInlineEndStyle: !0,
|
|
1821
|
+
borderInlineStartStyle: !0,
|
|
1801
1822
|
borderTopEndRadius: !0,
|
|
1802
1823
|
borderTopStartRadius: !0,
|
|
1803
1824
|
borderTopWidth: !0,
|
|
@@ -1821,11 +1842,12 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1821
1842
|
justifyContent: !0,
|
|
1822
1843
|
left: !0,
|
|
1823
1844
|
margin: !0,
|
|
1845
|
+
marginBlock: !0,
|
|
1824
1846
|
marginBlockEnd: !0,
|
|
1825
1847
|
marginBlockStart: !0,
|
|
1826
|
-
marginInlineEnd: !0,
|
|
1827
1848
|
marginInline: !0,
|
|
1828
1849
|
marginInlineStart: !0,
|
|
1850
|
+
marginInlineEnd: !0,
|
|
1829
1851
|
marginBottom: !0,
|
|
1830
1852
|
marginEnd: !0,
|
|
1831
1853
|
marginHorizontal: !0,
|
|
@@ -1853,6 +1875,13 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1853
1875
|
right: !0,
|
|
1854
1876
|
start: !0,
|
|
1855
1877
|
top: !0,
|
|
1878
|
+
inset: !0,
|
|
1879
|
+
insetBlock: !0,
|
|
1880
|
+
insetBlockEnd: !0,
|
|
1881
|
+
insetBlockStart: !0,
|
|
1882
|
+
insetInline: !0,
|
|
1883
|
+
insetInlineEnd: !0,
|
|
1884
|
+
insetInlineStart: !0,
|
|
1856
1885
|
direction: !0,
|
|
1857
1886
|
shadowOffset: !0,
|
|
1858
1887
|
shadowRadius: !0
|
|
@@ -1883,7 +1912,10 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1883
1912
|
textDecorationStyle: !0
|
|
1884
1913
|
}), textColors), {
|
|
1885
1914
|
textShadowOffset: !0,
|
|
1886
|
-
textShadowRadius: !0
|
|
1915
|
+
textShadowRadius: !0,
|
|
1916
|
+
userSelect: !0,
|
|
1917
|
+
selectable: !0,
|
|
1918
|
+
verticalAlign: !0
|
|
1887
1919
|
}),
|
|
1888
1920
|
// allow some web only ones
|
|
1889
1921
|
!1
|
|
@@ -6479,6 +6511,220 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
6479
6511
|
}
|
|
6480
6512
|
});
|
|
6481
6513
|
|
|
6514
|
+
// ../web/dist/cjs/constants/webToNativeProps.native.js
|
|
6515
|
+
var require_webToNativeProps_native = __commonJS({
|
|
6516
|
+
"../web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
|
|
6517
|
+
"use strict";
|
|
6518
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6519
|
+
for (var name in all)
|
|
6520
|
+
__defProp2(target, name, {
|
|
6521
|
+
get: all[name],
|
|
6522
|
+
enumerable: !0
|
|
6523
|
+
});
|
|
6524
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6525
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6526
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
6527
|
+
try {
|
|
6528
|
+
for (var _loop2 = function() {
|
|
6529
|
+
var key = _step.value;
|
|
6530
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6531
|
+
get: function() {
|
|
6532
|
+
return from[key];
|
|
6533
|
+
},
|
|
6534
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6535
|
+
});
|
|
6536
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
6537
|
+
_loop2();
|
|
6538
|
+
} catch (err) {
|
|
6539
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6540
|
+
} finally {
|
|
6541
|
+
try {
|
|
6542
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6543
|
+
} finally {
|
|
6544
|
+
if (_didIteratorError)
|
|
6545
|
+
throw _iteratorError;
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
return to;
|
|
6549
|
+
}, __toCommonJS2 = function(mod) {
|
|
6550
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6551
|
+
value: !0
|
|
6552
|
+
}), mod);
|
|
6553
|
+
}, webToNativeProps_native_exports = {};
|
|
6554
|
+
__export2(webToNativeProps_native_exports, {
|
|
6555
|
+
webToNativeDynamicExpansion: function() {
|
|
6556
|
+
return webToNativeDynamicExpansion;
|
|
6557
|
+
},
|
|
6558
|
+
webToNativeExpansion: function() {
|
|
6559
|
+
return webToNativeExpansion;
|
|
6560
|
+
}
|
|
6561
|
+
});
|
|
6562
|
+
module2.exports = __toCommonJS2(webToNativeProps_native_exports);
|
|
6563
|
+
var _loop = function(parent2) {
|
|
6564
|
+
var _exec, _exec_index, prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
|
|
6565
|
+
expansionsNoPrefix[parent2] = expansionsNoPrefix[parent2].map(function(k) {
|
|
6566
|
+
return "".concat(prefix).concat(k);
|
|
6567
|
+
});
|
|
6568
|
+
}, resizeModeMap = {
|
|
6569
|
+
fill: "stretch",
|
|
6570
|
+
none: "center",
|
|
6571
|
+
"scale-down": "contain",
|
|
6572
|
+
contain: "contain",
|
|
6573
|
+
cover: "cover"
|
|
6574
|
+
}, verticalAlignMap = {
|
|
6575
|
+
top: "top",
|
|
6576
|
+
middle: "center",
|
|
6577
|
+
bottom: "bottom",
|
|
6578
|
+
auto: "auto"
|
|
6579
|
+
}, webToNativeDynamicExpansion = {
|
|
6580
|
+
objectFit: function(val) {
|
|
6581
|
+
var resizeMode = resizeModeMap[val] || "cover";
|
|
6582
|
+
return [
|
|
6583
|
+
[
|
|
6584
|
+
"resizeMode",
|
|
6585
|
+
resizeMode
|
|
6586
|
+
]
|
|
6587
|
+
];
|
|
6588
|
+
},
|
|
6589
|
+
verticalAlign: function(val) {
|
|
6590
|
+
return [
|
|
6591
|
+
[
|
|
6592
|
+
"textAlignVertical",
|
|
6593
|
+
verticalAlignMap[val] || "auto"
|
|
6594
|
+
]
|
|
6595
|
+
];
|
|
6596
|
+
}
|
|
6597
|
+
}, vert = [
|
|
6598
|
+
"Top",
|
|
6599
|
+
"Bottom"
|
|
6600
|
+
], es = [
|
|
6601
|
+
"End",
|
|
6602
|
+
"Start"
|
|
6603
|
+
], t = [
|
|
6604
|
+
"Top"
|
|
6605
|
+
], b = [
|
|
6606
|
+
"Bottom"
|
|
6607
|
+
], s = [
|
|
6608
|
+
"Start"
|
|
6609
|
+
], e = [
|
|
6610
|
+
"End"
|
|
6611
|
+
], h = [
|
|
6612
|
+
"Height"
|
|
6613
|
+
], w = [
|
|
6614
|
+
"Width"
|
|
6615
|
+
], expansionsNoPrefix = {
|
|
6616
|
+
borderBlockColor: [
|
|
6617
|
+
"TopColor",
|
|
6618
|
+
"BottomColor"
|
|
6619
|
+
],
|
|
6620
|
+
borderInlineColor: [
|
|
6621
|
+
"EndColor",
|
|
6622
|
+
"StartColor"
|
|
6623
|
+
],
|
|
6624
|
+
borderBlockWidth: [
|
|
6625
|
+
"TopWidth",
|
|
6626
|
+
"BottomWidth"
|
|
6627
|
+
],
|
|
6628
|
+
borderInlineWidth: [
|
|
6629
|
+
"EndWidth",
|
|
6630
|
+
"StartWidth"
|
|
6631
|
+
],
|
|
6632
|
+
borderBlockStyle: [
|
|
6633
|
+
"TopStyle",
|
|
6634
|
+
"BottomStyle"
|
|
6635
|
+
],
|
|
6636
|
+
borderInlineStyle: [
|
|
6637
|
+
"EndStyle",
|
|
6638
|
+
"StartStyle"
|
|
6639
|
+
],
|
|
6640
|
+
marginBlock: vert,
|
|
6641
|
+
marginInline: es,
|
|
6642
|
+
paddingBlock: vert,
|
|
6643
|
+
paddingInline: es,
|
|
6644
|
+
borderBlockStartColor: [
|
|
6645
|
+
"TopColor"
|
|
6646
|
+
],
|
|
6647
|
+
borderBlockEndColor: [
|
|
6648
|
+
"BottomColor"
|
|
6649
|
+
],
|
|
6650
|
+
borderInlineStartColor: [
|
|
6651
|
+
"StartColor"
|
|
6652
|
+
],
|
|
6653
|
+
borderInlineEndColor: [
|
|
6654
|
+
"EndColor"
|
|
6655
|
+
],
|
|
6656
|
+
borderBlockStartWidth: [
|
|
6657
|
+
"TopWidth"
|
|
6658
|
+
],
|
|
6659
|
+
borderBlockEndWidth: [
|
|
6660
|
+
"BottomWidth"
|
|
6661
|
+
],
|
|
6662
|
+
borderInlineStartWidth: [
|
|
6663
|
+
"StartWidth"
|
|
6664
|
+
],
|
|
6665
|
+
borderInlineEndWidth: [
|
|
6666
|
+
"EndWidth"
|
|
6667
|
+
],
|
|
6668
|
+
borderBlockStartStyle: [
|
|
6669
|
+
"TopStyle"
|
|
6670
|
+
],
|
|
6671
|
+
borderBlockEndStyle: [
|
|
6672
|
+
"BottomStyle"
|
|
6673
|
+
],
|
|
6674
|
+
borderInlineStartStyle: [
|
|
6675
|
+
"StartStyle"
|
|
6676
|
+
],
|
|
6677
|
+
borderInlineEndStyle: [
|
|
6678
|
+
"EndStyle"
|
|
6679
|
+
],
|
|
6680
|
+
marginBlockStart: t,
|
|
6681
|
+
marginBlockEnd: b,
|
|
6682
|
+
marginInlineStart: s,
|
|
6683
|
+
marginInlineEnd: e,
|
|
6684
|
+
paddingBlockStart: t,
|
|
6685
|
+
paddingBlockEnd: b,
|
|
6686
|
+
paddingInlineStart: s,
|
|
6687
|
+
paddingInlineEnd: e,
|
|
6688
|
+
minBlockSize: h,
|
|
6689
|
+
maxBlockSize: h,
|
|
6690
|
+
minInlineSize: w,
|
|
6691
|
+
maxInlineSize: w
|
|
6692
|
+
};
|
|
6693
|
+
for (parent in expansionsNoPrefix)
|
|
6694
|
+
_loop(parent);
|
|
6695
|
+
var parent, expansions = {
|
|
6696
|
+
inset: [
|
|
6697
|
+
"top",
|
|
6698
|
+
"right",
|
|
6699
|
+
"bottom",
|
|
6700
|
+
"left"
|
|
6701
|
+
],
|
|
6702
|
+
insetBlock: [
|
|
6703
|
+
"top",
|
|
6704
|
+
"bottom"
|
|
6705
|
+
],
|
|
6706
|
+
insetBlockStart: [
|
|
6707
|
+
"top"
|
|
6708
|
+
],
|
|
6709
|
+
insetBlockEnd: [
|
|
6710
|
+
"bottom"
|
|
6711
|
+
],
|
|
6712
|
+
insetInlineStart: [
|
|
6713
|
+
"left"
|
|
6714
|
+
],
|
|
6715
|
+
insetInlineEnd: [
|
|
6716
|
+
"right"
|
|
6717
|
+
],
|
|
6718
|
+
blockSize: [
|
|
6719
|
+
"height"
|
|
6720
|
+
],
|
|
6721
|
+
inlineSize: [
|
|
6722
|
+
"width"
|
|
6723
|
+
]
|
|
6724
|
+
}, webToNativeExpansion = Object.assign(expansionsNoPrefix, expansions);
|
|
6725
|
+
}
|
|
6726
|
+
});
|
|
6727
|
+
|
|
6482
6728
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
6483
6729
|
var require_expandStyle_native = __commonJS({
|
|
6484
6730
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
|
|
@@ -6525,7 +6771,7 @@ var require_expandStyle_native = __commonJS({
|
|
|
6525
6771
|
}
|
|
6526
6772
|
});
|
|
6527
6773
|
module2.exports = __toCommonJS2(expandStyle_exports);
|
|
6528
|
-
var import_constants = require_index_native3();
|
|
6774
|
+
var import_constants = require_index_native3(), import_webToNativeProps = require_webToNativeProps_native();
|
|
6529
6775
|
function _define_property2(obj, key, value) {
|
|
6530
6776
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
6531
6777
|
value,
|
|
@@ -6566,6 +6812,15 @@ var require_expandStyle_native = __commonJS({
|
|
|
6566
6812
|
value
|
|
6567
6813
|
];
|
|
6568
6814
|
});
|
|
6815
|
+
if (key in import_webToNativeProps.webToNativeExpansion)
|
|
6816
|
+
return import_webToNativeProps.webToNativeExpansion[key].map(function(key2) {
|
|
6817
|
+
return [
|
|
6818
|
+
key2,
|
|
6819
|
+
value
|
|
6820
|
+
];
|
|
6821
|
+
});
|
|
6822
|
+
if (key in import_webToNativeProps.webToNativeDynamicExpansion)
|
|
6823
|
+
return import_webToNativeProps.webToNativeDynamicExpansion[key](value);
|
|
6569
6824
|
}
|
|
6570
6825
|
var all = [
|
|
6571
6826
|
"Top",
|
|
@@ -6908,6 +7163,109 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
6908
7163
|
}
|
|
6909
7164
|
});
|
|
6910
7165
|
|
|
7166
|
+
// ../web/dist/cjs/helpers/webPropsToSkip.native.js
|
|
7167
|
+
var require_webPropsToSkip_native = __commonJS({
|
|
7168
|
+
"../web/dist/cjs/helpers/webPropsToSkip.native.js"(exports2, module2) {
|
|
7169
|
+
"use strict";
|
|
7170
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7171
|
+
for (var name in all)
|
|
7172
|
+
__defProp2(target, name, {
|
|
7173
|
+
get: all[name],
|
|
7174
|
+
enumerable: !0
|
|
7175
|
+
});
|
|
7176
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7177
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7178
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
7179
|
+
try {
|
|
7180
|
+
for (var _loop = function() {
|
|
7181
|
+
var key = _step.value;
|
|
7182
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7183
|
+
get: function() {
|
|
7184
|
+
return from[key];
|
|
7185
|
+
},
|
|
7186
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7187
|
+
});
|
|
7188
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
7189
|
+
_loop();
|
|
7190
|
+
} catch (err) {
|
|
7191
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7192
|
+
} finally {
|
|
7193
|
+
try {
|
|
7194
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7195
|
+
} finally {
|
|
7196
|
+
if (_didIteratorError)
|
|
7197
|
+
throw _iteratorError;
|
|
7198
|
+
}
|
|
7199
|
+
}
|
|
7200
|
+
return to;
|
|
7201
|
+
}, __toCommonJS2 = function(mod) {
|
|
7202
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7203
|
+
value: !0
|
|
7204
|
+
}), mod);
|
|
7205
|
+
}, webPropsToSkip_native_exports = {};
|
|
7206
|
+
__export2(webPropsToSkip_native_exports, {
|
|
7207
|
+
webPropsToSkip: function() {
|
|
7208
|
+
return webPropsToSkip;
|
|
7209
|
+
}
|
|
7210
|
+
});
|
|
7211
|
+
module2.exports = __toCommonJS2(webPropsToSkip_native_exports);
|
|
7212
|
+
var webPropsToSkip = {
|
|
7213
|
+
whiteSpace: 1,
|
|
7214
|
+
wordWrap: 1,
|
|
7215
|
+
textOverflow: 1,
|
|
7216
|
+
textDecorationDistance: 1,
|
|
7217
|
+
cursor: 1,
|
|
7218
|
+
contain: 1,
|
|
7219
|
+
boxSizing: 1,
|
|
7220
|
+
touchAction: 1,
|
|
7221
|
+
boxShadow: 1,
|
|
7222
|
+
outlineStyle: 1,
|
|
7223
|
+
outlineOffset: 1,
|
|
7224
|
+
outlineWidth: 1,
|
|
7225
|
+
outlineColor: 1,
|
|
7226
|
+
filter: 1,
|
|
7227
|
+
backdropFilter: 1,
|
|
7228
|
+
backgroundImage: 1,
|
|
7229
|
+
mixBlendMode: 1,
|
|
7230
|
+
scrollbarWidth: 1,
|
|
7231
|
+
backgroundOrigin: 1,
|
|
7232
|
+
backgroundPosition: 1,
|
|
7233
|
+
backgroundRepeat: 1,
|
|
7234
|
+
backgroundSize: 1,
|
|
7235
|
+
backgroundClip: 1,
|
|
7236
|
+
backgroundBlendMode: 1,
|
|
7237
|
+
backgroundAttachment: 1,
|
|
7238
|
+
background: 1,
|
|
7239
|
+
clipPath: 1,
|
|
7240
|
+
caretColor: 1,
|
|
7241
|
+
transformStyle: 1,
|
|
7242
|
+
mask: 1,
|
|
7243
|
+
maskImage: 1,
|
|
7244
|
+
textEmphasis: 1,
|
|
7245
|
+
borderImage: 1,
|
|
7246
|
+
float: 1,
|
|
7247
|
+
content: 1,
|
|
7248
|
+
overflowBlock: 1,
|
|
7249
|
+
overflowInline: 1,
|
|
7250
|
+
maskBorder: 1,
|
|
7251
|
+
maskBorderMode: 1,
|
|
7252
|
+
maskBorderOutset: 1,
|
|
7253
|
+
maskBorderRepeat: 1,
|
|
7254
|
+
maskBorderSlice: 1,
|
|
7255
|
+
maskBorderSource: 1,
|
|
7256
|
+
maskBorderWidth: 1,
|
|
7257
|
+
maskClip: 1,
|
|
7258
|
+
maskComposite: 1,
|
|
7259
|
+
maskMode: 1,
|
|
7260
|
+
maskOrigin: 1,
|
|
7261
|
+
maskPosition: 1,
|
|
7262
|
+
maskRepeat: 1,
|
|
7263
|
+
maskSize: 1,
|
|
7264
|
+
maskType: 1
|
|
7265
|
+
};
|
|
7266
|
+
}
|
|
7267
|
+
});
|
|
7268
|
+
|
|
6911
7269
|
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
6912
7270
|
var require_skipProps_native = __commonJS({
|
|
6913
7271
|
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
@@ -6954,7 +7312,7 @@ var require_skipProps_native = __commonJS({
|
|
|
6954
7312
|
}
|
|
6955
7313
|
});
|
|
6956
7314
|
module2.exports = __toCommonJS2(skipProps_exports);
|
|
6957
|
-
var skipProps = {
|
|
7315
|
+
var import_webPropsToSkip = require_webPropsToSkip_native(), skipProps = {
|
|
6958
7316
|
untilMeasured: 1,
|
|
6959
7317
|
animation: 1,
|
|
6960
7318
|
space: 1,
|
|
@@ -6971,21 +7329,7 @@ var require_skipProps_native = __commonJS({
|
|
|
6971
7329
|
animatePresence: 1
|
|
6972
7330
|
};
|
|
6973
7331
|
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
6974
|
-
Object.assign(skipProps,
|
|
6975
|
-
whiteSpace: 1,
|
|
6976
|
-
wordWrap: 1,
|
|
6977
|
-
textOverflow: 1,
|
|
6978
|
-
textDecorationDistance: 1,
|
|
6979
|
-
cursor: 1,
|
|
6980
|
-
contain: 1,
|
|
6981
|
-
boxSizing: 1,
|
|
6982
|
-
boxShadow: 1,
|
|
6983
|
-
outlineStyle: 1,
|
|
6984
|
-
outlineOffset: 1,
|
|
6985
|
-
outlineWidth: 1,
|
|
6986
|
-
outlineColor: 1,
|
|
6987
|
-
scrollbarWidth: 1
|
|
6988
|
-
});
|
|
7332
|
+
Object.assign(skipProps, import_webPropsToSkip.webPropsToSkip);
|
|
6989
7333
|
}
|
|
6990
7334
|
});
|
|
6991
7335
|
|
|
@@ -8757,14 +9101,14 @@ var require_Slot_native = __commonJS({
|
|
|
8757
9101
|
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
8758
9102
|
return target;
|
|
8759
9103
|
}
|
|
8760
|
-
var Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
9104
|
+
var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
8761
9105
|
var children = props.children, slotProps = _object_without_properties(props, [
|
|
8762
9106
|
"children"
|
|
8763
9107
|
]);
|
|
8764
9108
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
8765
9109
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
8766
9110
|
return /* @__PURE__ */ (0, import_react3.cloneElement)(children, children.type.avoidForwardRef ? mergedProps : _object_spread_props(_object_spread2({}, mergedProps), {
|
|
8767
|
-
ref: (0, import_compose_refs.composeRefs)(forwardedRef, children.ref)
|
|
9111
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, is19 ? children.props.ref : children.ref)
|
|
8768
9112
|
}));
|
|
8769
9113
|
}
|
|
8770
9114
|
return import_react3.Children.count(children) > 1 ? import_react3.Children.only(null) : null;
|