@tamagui/core 1.125.0 → 1.125.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 +116 -196
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +116 -196
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -7
package/dist/test.native.js
CHANGED
|
@@ -1446,75 +1446,6 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
1448
|
|
|
1449
|
-
// ../use-did-finish-ssr/dist/cjs/index.native.js
|
|
1450
|
-
var require_index_native4 = __commonJS({
|
|
1451
|
-
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
1452
|
-
"use strict";
|
|
1453
|
-
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1454
|
-
for (var name in all) __defProp2(target, name, {
|
|
1455
|
-
get: all[name],
|
|
1456
|
-
enumerable: !0
|
|
1457
|
-
});
|
|
1458
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
1459
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1460
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1461
|
-
for (var _loop = function() {
|
|
1462
|
-
var key = _step.value;
|
|
1463
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
1464
|
-
get: function() {
|
|
1465
|
-
return from[key];
|
|
1466
|
-
},
|
|
1467
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
1468
|
-
});
|
|
1469
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
1470
|
-
} catch (err) {
|
|
1471
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
1472
|
-
} finally {
|
|
1473
|
-
try {
|
|
1474
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
1475
|
-
} finally {
|
|
1476
|
-
if (_didIteratorError)
|
|
1477
|
-
throw _iteratorError;
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
return to;
|
|
1481
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
1482
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
1483
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1484
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1485
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1486
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1487
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
1488
|
-
value: mod,
|
|
1489
|
-
enumerable: !0
|
|
1490
|
-
}) : target,
|
|
1491
|
-
mod
|
|
1492
|
-
);
|
|
1493
|
-
}, __toCommonJS2 = function(mod) {
|
|
1494
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1495
|
-
value: !0
|
|
1496
|
-
}), mod);
|
|
1497
|
-
}, index_exports2 = {};
|
|
1498
|
-
__export2(index_exports2, {
|
|
1499
|
-
useClientValue: function() {
|
|
1500
|
-
return useClientValue;
|
|
1501
|
-
},
|
|
1502
|
-
useDidFinishSSR: function() {
|
|
1503
|
-
return useDidFinishSSR;
|
|
1504
|
-
}
|
|
1505
|
-
});
|
|
1506
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
1507
|
-
var React3 = __toESM2(require("react"));
|
|
1508
|
-
function useDidFinishSSR(value) {
|
|
1509
|
-
return value ?? !0;
|
|
1510
|
-
}
|
|
1511
|
-
function useClientValue(value) {
|
|
1512
|
-
var done = useDidFinishSSR();
|
|
1513
|
-
return done ? typeof value == "function" ? value() : value : void 0;
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
});
|
|
1517
|
-
|
|
1518
1449
|
// ../web/dist/cjs/helpers/matchMedia.native.js
|
|
1519
1450
|
var require_matchMedia_native = __commonJS({
|
|
1520
1451
|
"../web/dist/cjs/helpers/matchMedia.native.js"(exports2, module2) {
|
|
@@ -1684,62 +1615,11 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
1684
1615
|
}
|
|
1685
1616
|
});
|
|
1686
1617
|
|
|
1687
|
-
// ../web/dist/cjs/hooks/useDisableSSR.native.js
|
|
1688
|
-
var require_useDisableSSR_native = __commonJS({
|
|
1689
|
-
"../web/dist/cjs/hooks/useDisableSSR.native.js"(exports2, module2) {
|
|
1690
|
-
"use strict";
|
|
1691
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1692
|
-
for (var name in all) __defProp2(target, name, {
|
|
1693
|
-
get: all[name],
|
|
1694
|
-
enumerable: !0
|
|
1695
|
-
});
|
|
1696
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
1697
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1698
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1699
|
-
for (var _loop = function() {
|
|
1700
|
-
var key = _step.value;
|
|
1701
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
1702
|
-
get: function() {
|
|
1703
|
-
return from[key];
|
|
1704
|
-
},
|
|
1705
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
1706
|
-
});
|
|
1707
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
1708
|
-
} catch (err) {
|
|
1709
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
1710
|
-
} finally {
|
|
1711
|
-
try {
|
|
1712
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
1713
|
-
} finally {
|
|
1714
|
-
if (_didIteratorError)
|
|
1715
|
-
throw _iteratorError;
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
return to;
|
|
1719
|
-
}, __toCommonJS2 = function(mod) {
|
|
1720
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1721
|
-
value: !0
|
|
1722
|
-
}), mod);
|
|
1723
|
-
}, useDisableSSR_exports = {};
|
|
1724
|
-
__export2(useDisableSSR_exports, {
|
|
1725
|
-
getDisableSSR: function() {
|
|
1726
|
-
return getDisableSSR;
|
|
1727
|
-
}
|
|
1728
|
-
});
|
|
1729
|
-
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
1730
|
-
var import_config = require_config_native();
|
|
1731
|
-
function getDisableSSR(componentContext) {
|
|
1732
|
-
var _componentContext_disableSSR;
|
|
1733
|
-
return (_componentContext_disableSSR = componentContext == null ? void 0 : componentContext.disableSSR) !== null && _componentContext_disableSSR !== void 0 ? _componentContext_disableSSR : (0, import_config.getSetting)("disableSSR");
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
});
|
|
1737
|
-
|
|
1738
1618
|
// ../web/dist/cjs/hooks/useMedia.native.js
|
|
1739
1619
|
var require_useMedia_native = __commonJS({
|
|
1740
1620
|
"../web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
1741
1621
|
"use strict";
|
|
1742
|
-
var
|
|
1622
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1743
1623
|
for (var name in all) __defProp2(target, name, {
|
|
1744
1624
|
get: all[name],
|
|
1745
1625
|
enumerable: !0
|
|
@@ -1767,18 +1647,6 @@ var require_useMedia_native = __commonJS({
|
|
|
1767
1647
|
}
|
|
1768
1648
|
}
|
|
1769
1649
|
return to;
|
|
1770
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
1771
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
1772
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1773
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1774
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1775
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1776
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
1777
|
-
value: mod,
|
|
1778
|
-
enumerable: !0
|
|
1779
|
-
}) : target,
|
|
1780
|
-
mod
|
|
1781
|
-
);
|
|
1782
1650
|
}, __toCommonJS2 = function(mod) {
|
|
1783
1651
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1784
1652
|
value: !0
|
|
@@ -1830,12 +1698,15 @@ var require_useMedia_native = __commonJS({
|
|
|
1830
1698
|
setupMediaListeners: function() {
|
|
1831
1699
|
return setupMediaListeners;
|
|
1832
1700
|
},
|
|
1701
|
+
updateMediaListeners: function() {
|
|
1702
|
+
return updateMediaListeners;
|
|
1703
|
+
},
|
|
1833
1704
|
useMedia: function() {
|
|
1834
1705
|
return useMedia2;
|
|
1835
1706
|
}
|
|
1836
1707
|
});
|
|
1837
1708
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
1838
|
-
var import_constants2 = require_index_native2(),
|
|
1709
|
+
var import_constants2 = require_index_native2(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState2 = {}, mediaQueryConfig2 = {}, getMedia2 = function() {
|
|
1839
1710
|
return mediaState2;
|
|
1840
1711
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
1841
1712
|
if (mediaKeys.has(key)) return !0;
|
|
@@ -1871,27 +1742,26 @@ var require_useMedia_native = __commonJS({
|
|
|
1871
1742
|
if (!match) throw new Error("\u26A0\uFE0F No match");
|
|
1872
1743
|
match.addListener(update), dispose.add(function() {
|
|
1873
1744
|
match.removeListener(update);
|
|
1874
|
-
})
|
|
1745
|
+
});
|
|
1875
1746
|
function update() {
|
|
1876
1747
|
var next = !!getMatch().matches;
|
|
1877
1748
|
next !== mediaState2[key2] && (mediaState2 = {
|
|
1878
1749
|
...mediaState2,
|
|
1879
1750
|
[key2]: next
|
|
1880
|
-
},
|
|
1751
|
+
}, updateMediaListeners());
|
|
1881
1752
|
}
|
|
1753
|
+
update();
|
|
1882
1754
|
};
|
|
1883
1755
|
if (!(import_constants2.isWeb && import_constants2.isServer) && !process.env.IS_STATIC && setupVersion !== mediaVersion) {
|
|
1884
1756
|
setupVersion = mediaVersion, unlisten();
|
|
1885
1757
|
for (var key in mediaQueryConfig2) _loop(key);
|
|
1886
1758
|
}
|
|
1887
1759
|
}
|
|
1888
|
-
var listeners = /* @__PURE__ */ new Set()
|
|
1889
|
-
function
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
});
|
|
1894
|
-
}));
|
|
1760
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
1761
|
+
function updateMediaListeners() {
|
|
1762
|
+
listeners.forEach(function(cb) {
|
|
1763
|
+
return cb(mediaState2);
|
|
1764
|
+
});
|
|
1895
1765
|
}
|
|
1896
1766
|
var States = /* @__PURE__ */ new WeakMap();
|
|
1897
1767
|
function setMediaShouldUpdate(ref, enabled, keys) {
|
|
@@ -1907,18 +1777,22 @@ var require_useMedia_native = __commonJS({
|
|
|
1907
1777
|
listeners.delete(subscriber);
|
|
1908
1778
|
};
|
|
1909
1779
|
}
|
|
1910
|
-
var CurrentKeysMap = /* @__PURE__ */ new WeakMap();
|
|
1911
1780
|
function useMedia2(cc, debug) {
|
|
1912
|
-
var
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1781
|
+
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
|
|
1782
|
+
internalRef.current || (internalRef.current = {
|
|
1783
|
+
keys: /* @__PURE__ */ new Set()
|
|
1784
|
+
});
|
|
1785
|
+
var { keys, lastState = (0, import_config.getSetting)("disableSSR") ? mediaState2 : initState } = internalRef.current;
|
|
1786
|
+
keys.size && keys.clear();
|
|
1787
|
+
var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
|
|
1788
|
+
if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState2, mediaState2;
|
|
1789
|
+
var curKeys = (componentState == null ? void 0 : componentState.keys) || keys;
|
|
1790
|
+
if (!curKeys.size) return lastState;
|
|
1917
1791
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1918
1792
|
try {
|
|
1919
|
-
for (var _iterator =
|
|
1793
|
+
for (var _iterator = curKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
1920
1794
|
var key = _step.value;
|
|
1921
|
-
if (mediaState2[key] !==
|
|
1795
|
+
if (mediaState2[key] !== lastState[key]) return internalRef.current.lastState = mediaState2, mediaState2;
|
|
1922
1796
|
}
|
|
1923
1797
|
} catch (err) {
|
|
1924
1798
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -1929,42 +1803,17 @@ var require_useMedia_native = __commonJS({
|
|
|
1929
1803
|
if (_didIteratorError) throw _iteratorError;
|
|
1930
1804
|
}
|
|
1931
1805
|
}
|
|
1932
|
-
return
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
return (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
1936
|
-
isRendering = !1;
|
|
1937
|
-
}), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
1938
|
-
var update = function() {
|
|
1939
|
-
return setState(function(prev) {
|
|
1940
|
-
var next = getSnapshot(prev);
|
|
1941
|
-
return next;
|
|
1942
|
-
});
|
|
1943
|
-
};
|
|
1944
|
-
update();
|
|
1945
|
-
var tm = setTimeout(function() {
|
|
1946
|
-
currentKeys.size && update();
|
|
1947
|
-
}), dispose2 = subscribe(update);
|
|
1948
|
-
return function() {
|
|
1949
|
-
dispose2(), clearTimeout(tm);
|
|
1950
|
-
};
|
|
1951
|
-
}, [
|
|
1952
|
-
setState
|
|
1953
|
-
]), new Proxy(state, {
|
|
1806
|
+
return lastState;
|
|
1807
|
+
}, getServerSnapshot);
|
|
1808
|
+
return new Proxy(state, {
|
|
1954
1809
|
get(_, key) {
|
|
1955
|
-
|
|
1956
|
-
currentKeys.add(key);
|
|
1957
|
-
var shouldUpdate = state[key] !== mediaState2[key];
|
|
1958
|
-
if (shouldUpdate && !isInitialState) {
|
|
1959
|
-
var next = getSnapshot(state);
|
|
1960
|
-
next !== state && setState(next);
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
return Reflect.get(state, key);
|
|
1810
|
+
return !disableMediaTouch && typeof key == "string" && keys.add(key), Reflect.get(state, key);
|
|
1964
1811
|
}
|
|
1965
1812
|
});
|
|
1966
1813
|
}
|
|
1967
|
-
var
|
|
1814
|
+
var getServerSnapshot = function() {
|
|
1815
|
+
return initState;
|
|
1816
|
+
}, disableMediaTouch = !1;
|
|
1968
1817
|
function _disableMediaTouch2(val) {
|
|
1969
1818
|
disableMediaTouch = val;
|
|
1970
1819
|
}
|
|
@@ -2170,7 +2019,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
2170
2019
|
});
|
|
2171
2020
|
|
|
2172
2021
|
// ../compose-refs/dist/cjs/index.native.js
|
|
2173
|
-
var
|
|
2022
|
+
var require_index_native4 = __commonJS({
|
|
2174
2023
|
"../compose-refs/dist/cjs/index.native.js"(exports2, module2) {
|
|
2175
2024
|
"use strict";
|
|
2176
2025
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -3368,7 +3217,7 @@ var require_normalize_color = __commonJS({
|
|
|
3368
3217
|
});
|
|
3369
3218
|
|
|
3370
3219
|
// ../normalize-css-color/dist/cjs/index.native.js
|
|
3371
|
-
var
|
|
3220
|
+
var require_index_native5 = __commonJS({
|
|
3372
3221
|
"../normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
|
|
3373
3222
|
"use strict";
|
|
3374
3223
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -3491,7 +3340,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
3491
3340
|
}
|
|
3492
3341
|
});
|
|
3493
3342
|
module2.exports = __toCommonJS2(normalizeColor_exports);
|
|
3494
|
-
var import_normalize_css_color =
|
|
3343
|
+
var import_normalize_css_color = require_index_native5(), import_normalize_css_color2 = require_index_native5(), normalizeColor = function(color, opacity) {
|
|
3495
3344
|
if (color) {
|
|
3496
3345
|
if (color[0] === "$") return color;
|
|
3497
3346
|
if (color.startsWith("var(")) {
|
|
@@ -5193,7 +5042,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5193
5042
|
if (isMedia) {
|
|
5194
5043
|
if (!val2) return;
|
|
5195
5044
|
var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
|
|
5196
|
-
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia
|
|
5045
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return;
|
|
5197
5046
|
if (shouldDoClasses) {
|
|
5198
5047
|
var mediaStyle = getSubStyle(styleState, key4, val2, !1);
|
|
5199
5048
|
if (hasSpace && (delete mediaStyle.space, mediaState2[mediaKeyShort])) {
|
|
@@ -6556,6 +6405,75 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
6556
6405
|
}
|
|
6557
6406
|
});
|
|
6558
6407
|
|
|
6408
|
+
// ../use-did-finish-ssr/dist/cjs/index.native.js
|
|
6409
|
+
var require_index_native6 = __commonJS({
|
|
6410
|
+
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
6411
|
+
"use strict";
|
|
6412
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6413
|
+
for (var name in all) __defProp2(target, name, {
|
|
6414
|
+
get: all[name],
|
|
6415
|
+
enumerable: !0
|
|
6416
|
+
});
|
|
6417
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6418
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6419
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
6420
|
+
for (var _loop = function() {
|
|
6421
|
+
var key = _step.value;
|
|
6422
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6423
|
+
get: function() {
|
|
6424
|
+
return from[key];
|
|
6425
|
+
},
|
|
6426
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6427
|
+
});
|
|
6428
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
6429
|
+
} catch (err) {
|
|
6430
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6431
|
+
} finally {
|
|
6432
|
+
try {
|
|
6433
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6434
|
+
} finally {
|
|
6435
|
+
if (_didIteratorError)
|
|
6436
|
+
throw _iteratorError;
|
|
6437
|
+
}
|
|
6438
|
+
}
|
|
6439
|
+
return to;
|
|
6440
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
6441
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
6442
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
6443
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
6444
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
6445
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
6446
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
6447
|
+
value: mod,
|
|
6448
|
+
enumerable: !0
|
|
6449
|
+
}) : target,
|
|
6450
|
+
mod
|
|
6451
|
+
);
|
|
6452
|
+
}, __toCommonJS2 = function(mod) {
|
|
6453
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6454
|
+
value: !0
|
|
6455
|
+
}), mod);
|
|
6456
|
+
}, index_exports2 = {};
|
|
6457
|
+
__export2(index_exports2, {
|
|
6458
|
+
useClientValue: function() {
|
|
6459
|
+
return useClientValue;
|
|
6460
|
+
},
|
|
6461
|
+
useDidFinishSSR: function() {
|
|
6462
|
+
return useDidFinishSSR;
|
|
6463
|
+
}
|
|
6464
|
+
});
|
|
6465
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
6466
|
+
var React3 = __toESM2(require("react"));
|
|
6467
|
+
function useDidFinishSSR(value) {
|
|
6468
|
+
return value ?? !0;
|
|
6469
|
+
}
|
|
6470
|
+
function useClientValue(value) {
|
|
6471
|
+
var done = useDidFinishSSR();
|
|
6472
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
6473
|
+
}
|
|
6474
|
+
}
|
|
6475
|
+
});
|
|
6476
|
+
|
|
6559
6477
|
// ../web/dist/cjs/hooks/useComponentState.native.js
|
|
6560
6478
|
var require_useComponentState_native = __commonJS({
|
|
6561
6479
|
"../web/dist/cjs/hooks/useComponentState.native.js"(exports2, module2) {
|
|
@@ -6599,7 +6517,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
6599
6517
|
}
|
|
6600
6518
|
});
|
|
6601
6519
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
6602
|
-
var import_constants2 = require_index_native2(), import_use_did_finish_ssr =
|
|
6520
|
+
var import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
|
|
6603
6521
|
var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
6604
6522
|
stateRef.current || (stateRef.current = {});
|
|
6605
6523
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
@@ -6802,7 +6720,7 @@ var require_Slot_native = __commonJS({
|
|
|
6802
6720
|
}
|
|
6803
6721
|
});
|
|
6804
6722
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
6805
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs =
|
|
6723
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = require("react"), is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.memo)(/* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
6806
6724
|
var { children, ...slotProps } = props;
|
|
6807
6725
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
6808
6726
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -6917,7 +6835,7 @@ var require_createComponent_native = __commonJS({
|
|
|
6917
6835
|
}
|
|
6918
6836
|
});
|
|
6919
6837
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
6920
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs =
|
|
6838
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), componentSetStates = /* @__PURE__ */ new Set();
|
|
6921
6839
|
typeof document < "u" && (cancelTouches = function() {
|
|
6922
6840
|
componentSetStates.forEach(function(setState) {
|
|
6923
6841
|
return setState(function(prev) {
|
|
@@ -7019,7 +6937,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7019
6937
|
}
|
|
7020
6938
|
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
7021
6939
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
7022
|
-
(0, import_useMedia.setMediaShouldUpdate)(
|
|
6940
|
+
(0, import_useMedia.setMediaShouldUpdate)(componentContext, shouldListenForMedia, mediaListeningKeys);
|
|
7023
6941
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
7024
6942
|
asChild,
|
|
7025
6943
|
children,
|
|
@@ -9051,7 +8969,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
9051
8969
|
}
|
|
9052
8970
|
});
|
|
9053
8971
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
9054
|
-
var import_constants2 = require_index_native2(), import_use_did_finish_ssr =
|
|
8972
|
+
var import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), useIsTouchDevice = function() {
|
|
9055
8973
|
return import_constants2.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants2.isTouchable : !1 : !0;
|
|
9056
8974
|
};
|
|
9057
8975
|
}
|
|
@@ -9562,7 +9480,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
9562
9480
|
}
|
|
9563
9481
|
});
|
|
9564
9482
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
9565
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
9483
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native(), import_useMedia = require_useMedia_native();
|
|
9566
9484
|
function TamaguiProvider(param) {
|
|
9567
9485
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
9568
9486
|
return process.env.TAMAGUI_REACT_19 || import_constants2.isClient && (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
@@ -9575,7 +9493,9 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
9575
9493
|
}, [
|
|
9576
9494
|
config,
|
|
9577
9495
|
disableInjectCSS
|
|
9578
|
-
]),
|
|
9496
|
+
]), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
9497
|
+
(0, import_useMedia.updateMediaListeners)();
|
|
9498
|
+
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
9579
9499
|
children: [
|
|
9580
9500
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
|
|
9581
9501
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -9999,9 +9919,9 @@ var require_index_native8 = __commonJS({
|
|
|
9999
9919
|
__reExport2(index_exports2, require_FontLanguage_native(), module2.exports);
|
|
10000
9920
|
__reExport2(index_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
10001
9921
|
__reExport2(index_exports2, require_Configuration_native(), module2.exports);
|
|
10002
|
-
__reExport2(index_exports2,
|
|
9922
|
+
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
10003
9923
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
10004
|
-
__reExport2(index_exports2,
|
|
9924
|
+
__reExport2(index_exports2, require_index_native4(), module2.exports);
|
|
10005
9925
|
__reExport2(index_exports2, require_index_native3(), module2.exports);
|
|
10006
9926
|
__reExport2(index_exports2, require_index_native2(), module2.exports);
|
|
10007
9927
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|