@tamagui/core 1.89.28 → 1.89.30
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/createOptimizedView.native.js +4 -1
- package/dist/cjs/createOptimizedView.native.js.map +1 -1
- package/dist/cjs/index.native.js +39 -36
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/createOptimizedView.native.js +4 -1
- package/dist/esm/createOptimizedView.native.js.map +1 -1
- package/dist/esm/index.native.js +39 -36
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.js +310 -215
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +295 -203
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -531,6 +531,7 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
531
531
|
function ResponderTouchHistoryStore2() {
|
|
532
532
|
_class_call_check(this, ResponderTouchHistoryStore2), _define_property2(this, "_touchHistory", {
|
|
533
533
|
touchBank: [],
|
|
534
|
+
//Array<TouchRecord>
|
|
534
535
|
numberActiveTouches: 0,
|
|
535
536
|
// If there is only one active touch, we remember its location. This prevents
|
|
536
537
|
// us having to loop through all of the touches all the time in the most
|
|
@@ -742,7 +743,8 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
742
743
|
}
|
|
743
744
|
function eventListener(domEvent) {
|
|
744
745
|
var eventType = domEvent.type, eventTarget = domEvent.target;
|
|
745
|
-
if (eventType === "touchstart" && (isEmulatingMouseEvents = !0), (eventType === "touchmove" || trackedTouchCount > 1) && (isEmulatingMouseEvents = !1),
|
|
746
|
+
if (eventType === "touchstart" && (isEmulatingMouseEvents = !0), (eventType === "touchmove" || trackedTouchCount > 1) && (isEmulatingMouseEvents = !1), // Ignore browser emulated mouse events
|
|
747
|
+
!(eventType === "mousedown" && isEmulatingMouseEvents || eventType === "mousemove" && isEmulatingMouseEvents || // Ignore mousemove if a mousedown didn't occur first
|
|
746
748
|
eventType === "mousemove" && trackedTouchCount < 1)) {
|
|
747
749
|
if (isEmulatingMouseEvents && eventType === "mouseup") {
|
|
748
750
|
trackedTouchCount === 0 && (isEmulatingMouseEvents = !1);
|
|
@@ -942,18 +944,18 @@ var require_useResponderEvents_native = __commonJS({
|
|
|
942
944
|
}
|
|
943
945
|
});
|
|
944
946
|
module2.exports = __toCommonJS2(useResponderEvents_exports);
|
|
945
|
-
var
|
|
947
|
+
var React = __toESM2(require("react")), ResponderSystem = __toESM2(require_ResponderSystem_native());
|
|
946
948
|
__reExport2(useResponderEvents_exports, require_utils_native(), module2.exports);
|
|
947
949
|
var emptyObject = {};
|
|
948
950
|
function useResponderEvents2(hostRef) {
|
|
949
|
-
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : emptyObject, id =
|
|
950
|
-
|
|
951
|
+
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : emptyObject, id = React.useId(), isAttachedRef = React.useRef(!1);
|
|
952
|
+
React.useEffect(function() {
|
|
951
953
|
return ResponderSystem.attachListeners(), function() {
|
|
952
954
|
ResponderSystem.removeNode(id);
|
|
953
955
|
};
|
|
954
956
|
}, [
|
|
955
957
|
id
|
|
956
|
-
]),
|
|
958
|
+
]), React.useEffect(function() {
|
|
957
959
|
var onMoveShouldSetResponder = config.onMoveShouldSetResponder, onMoveShouldSetResponderCapture = config.onMoveShouldSetResponderCapture, onScrollShouldSetResponder = config.onScrollShouldSetResponder, onScrollShouldSetResponderCapture = config.onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder = config.onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture = config.onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder = config.onStartShouldSetResponder, onStartShouldSetResponderCapture = config.onStartShouldSetResponderCapture, requiresResponderSystem = onMoveShouldSetResponder != null || onMoveShouldSetResponderCapture != null || onScrollShouldSetResponder != null || onScrollShouldSetResponderCapture != null || onSelectionChangeShouldSetResponder != null || onSelectionChangeShouldSetResponderCapture != null || onStartShouldSetResponder != null || onStartShouldSetResponderCapture != null, node = hostRef.current;
|
|
958
960
|
requiresResponderSystem ? (ResponderSystem.addNode(id, node, config), isAttachedRef.current = !0) : isAttachedRef.current && (ResponderSystem.removeNode(id), isAttachedRef.current = !1);
|
|
959
961
|
}, [
|
|
@@ -1567,7 +1569,13 @@ var require_shouldRenderNativePlatform_native = __commonJS({
|
|
|
1567
1569
|
return null;
|
|
1568
1570
|
}
|
|
1569
1571
|
function resolvePlatformNames(nativeProp) {
|
|
1570
|
-
var platforms = nativeProp === !0 ?
|
|
1572
|
+
var platforms = nativeProp === !0 ? (
|
|
1573
|
+
// all native platforms
|
|
1574
|
+
ALL_PLATFORMS
|
|
1575
|
+
) : nativeProp === !1 ? (
|
|
1576
|
+
// no native platform
|
|
1577
|
+
[]
|
|
1578
|
+
) : Array.isArray(nativeProp) ? nativeProp : [
|
|
1571
1579
|
nativeProp
|
|
1572
1580
|
], set = new Set(platforms);
|
|
1573
1581
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
@@ -1775,75 +1783,86 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1775
1783
|
rotateY: !0,
|
|
1776
1784
|
rotateX: !0,
|
|
1777
1785
|
rotateZ: !0
|
|
1778
|
-
}, stylePropsView = _object_spread2(
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1786
|
+
}, stylePropsView = _object_spread2(
|
|
1787
|
+
{
|
|
1788
|
+
backfaceVisibility: !0,
|
|
1789
|
+
borderBottomEndRadius: !0,
|
|
1790
|
+
borderBottomStartRadius: !0,
|
|
1791
|
+
borderBottomWidth: !0,
|
|
1792
|
+
borderLeftWidth: !0,
|
|
1793
|
+
borderRightWidth: !0,
|
|
1794
|
+
borderStyle: !0,
|
|
1795
|
+
borderTopEndRadius: !0,
|
|
1796
|
+
borderTopStartRadius: !0,
|
|
1797
|
+
borderTopWidth: !0,
|
|
1798
|
+
borderWidth: !0,
|
|
1799
|
+
transform: !0,
|
|
1800
|
+
transformOrigin: !0,
|
|
1801
|
+
alignContent: !0,
|
|
1802
|
+
alignItems: !0,
|
|
1803
|
+
alignSelf: !0,
|
|
1804
|
+
borderEndWidth: !0,
|
|
1805
|
+
borderStartWidth: !0,
|
|
1806
|
+
bottom: !0,
|
|
1807
|
+
display: !0,
|
|
1808
|
+
end: !0,
|
|
1809
|
+
flexBasis: !0,
|
|
1810
|
+
flexDirection: !0,
|
|
1811
|
+
flexWrap: !0,
|
|
1812
|
+
gap: !0,
|
|
1813
|
+
columnGap: !0,
|
|
1814
|
+
rowGap: !0,
|
|
1815
|
+
justifyContent: !0,
|
|
1816
|
+
left: !0,
|
|
1817
|
+
margin: !0,
|
|
1818
|
+
marginBlockEnd: !0,
|
|
1819
|
+
marginBlockStart: !0,
|
|
1820
|
+
marginInlineEnd: !0,
|
|
1821
|
+
marginInline: !0,
|
|
1822
|
+
marginInlineStart: !0,
|
|
1823
|
+
marginBottom: !0,
|
|
1824
|
+
marginEnd: !0,
|
|
1825
|
+
marginHorizontal: !0,
|
|
1826
|
+
marginLeft: !0,
|
|
1827
|
+
marginRight: !0,
|
|
1828
|
+
marginStart: !0,
|
|
1829
|
+
marginTop: !0,
|
|
1830
|
+
marginVertical: !0,
|
|
1831
|
+
overflow: !0,
|
|
1832
|
+
padding: !0,
|
|
1833
|
+
paddingBottom: !0,
|
|
1834
|
+
paddingInline: !0,
|
|
1835
|
+
paddingBlock: !0,
|
|
1836
|
+
paddingBlockStart: !0,
|
|
1837
|
+
paddingInlineEnd: !0,
|
|
1838
|
+
paddingInlineStart: !0,
|
|
1839
|
+
paddingEnd: !0,
|
|
1840
|
+
paddingHorizontal: !0,
|
|
1841
|
+
paddingLeft: !0,
|
|
1842
|
+
paddingRight: !0,
|
|
1843
|
+
paddingStart: !0,
|
|
1844
|
+
paddingTop: !0,
|
|
1845
|
+
paddingVertical: !0,
|
|
1846
|
+
position: !0,
|
|
1847
|
+
right: !0,
|
|
1848
|
+
start: !0,
|
|
1849
|
+
top: !0,
|
|
1850
|
+
direction: !0,
|
|
1851
|
+
shadowOffset: !0,
|
|
1852
|
+
shadowRadius: !0
|
|
1853
|
+
},
|
|
1854
|
+
tokenCategories.color,
|
|
1855
|
+
tokenCategories.radius,
|
|
1856
|
+
tokenCategories.size,
|
|
1857
|
+
tokenCategories.radius,
|
|
1858
|
+
stylePropsTransform,
|
|
1859
|
+
stylePropsUnitless,
|
|
1860
|
+
// allow a few web only ones
|
|
1861
|
+
!1,
|
|
1862
|
+
import_constants.isAndroid ? {
|
|
1863
|
+
elevationAndroid: !0
|
|
1864
|
+
} : {}
|
|
1865
|
+
), stylePropsFont = {
|
|
1847
1866
|
fontFamily: !0,
|
|
1848
1867
|
fontSize: !0,
|
|
1849
1868
|
fontStyle: !0,
|
|
@@ -1851,14 +1870,18 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1851
1870
|
letterSpacing: !0,
|
|
1852
1871
|
lineHeight: !0,
|
|
1853
1872
|
textTransform: !0
|
|
1854
|
-
}, stylePropsTextOnly = _object_spread2(
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1873
|
+
}, stylePropsTextOnly = _object_spread2(
|
|
1874
|
+
_object_spread_props(_object_spread2(_object_spread_props(_object_spread2({}, stylePropsFont), {
|
|
1875
|
+
textAlign: !0,
|
|
1876
|
+
textDecorationLine: !0,
|
|
1877
|
+
textDecorationStyle: !0
|
|
1878
|
+
}), textColors), {
|
|
1879
|
+
textShadowOffset: !0,
|
|
1880
|
+
textShadowRadius: !0
|
|
1881
|
+
}),
|
|
1882
|
+
// allow some web only ones
|
|
1883
|
+
!1
|
|
1884
|
+
), stylePropsText = _object_spread2({}, stylePropsView, stylePropsTextOnly), stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
1862
1885
|
enterStyle: !0,
|
|
1863
1886
|
exitStyle: !0,
|
|
1864
1887
|
hoverStyle: !0,
|
|
@@ -2173,7 +2196,12 @@ var require_config_native = __commonJS({
|
|
|
2173
2196
|
tokensMerged = _;
|
|
2174
2197
|
}
|
|
2175
2198
|
var getTokens2 = function() {
|
|
2176
|
-
var prefixed = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2199
|
+
var prefixed = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (
|
|
2200
|
+
/**
|
|
2201
|
+
* Force either with $ or without $ prefix
|
|
2202
|
+
*/
|
|
2203
|
+
{}
|
|
2204
|
+
)).prefixed, tokens = conf.tokens, tokensParsed = conf.tokensParsed;
|
|
2177
2205
|
return prefixed === !1 ? tokens : prefixed === !0 ? tokensParsed : tokensMerged;
|
|
2178
2206
|
}, getTokenObject = function(value, group) {
|
|
2179
2207
|
var _tokensMerged_group, _tokensMerged_, _conf_specificTokens_value;
|
|
@@ -3471,7 +3499,10 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3471
3499
|
return (x == null ? void 0 : x.state.name) || "";
|
|
3472
3500
|
});
|
|
3473
3501
|
isDirectParentAComponentTheme && allComponentThemes.shift();
|
|
3474
|
-
for (var base = baseName.split(import_constants2.THEME_NAME_SEPARATOR), max = base.length, min = props.componentName && !nextName ? max :
|
|
3502
|
+
for (var base = baseName.split(import_constants2.THEME_NAME_SEPARATOR), max = base.length, min = props.componentName && !nextName ? max : (
|
|
3503
|
+
// component name only don't search upwards
|
|
3504
|
+
0
|
|
3505
|
+
), i = max; i >= min; i--) {
|
|
3475
3506
|
var prefix = base.slice(0, i).join(import_constants2.THEME_NAME_SEPARATOR);
|
|
3476
3507
|
props.inverse && (prefix = inverseThemeName(prefix));
|
|
3477
3508
|
var potentials = [];
|
|
@@ -4187,7 +4218,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
4187
4218
|
}
|
|
4188
4219
|
});
|
|
4189
4220
|
module2.exports = __toCommonJS2(compose_refs_exports);
|
|
4190
|
-
var
|
|
4221
|
+
var React = __toESM2(require("react"));
|
|
4191
4222
|
function _array_like_to_array(arr, len) {
|
|
4192
4223
|
(len == null || len > arr.length) && (len = arr.length);
|
|
4193
4224
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -4234,7 +4265,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
4234
4265
|
function useComposedRefs() {
|
|
4235
4266
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++)
|
|
4236
4267
|
refs[_key] = arguments[_key];
|
|
4237
|
-
return
|
|
4268
|
+
return React.useCallback(composeRefs.apply(void 0, _to_consumable_array(refs)), refs);
|
|
4238
4269
|
}
|
|
4239
4270
|
}
|
|
4240
4271
|
});
|
|
@@ -4418,7 +4449,7 @@ var require_objectIdentityKey_native = __commonJS({
|
|
|
4418
4449
|
var require_createStyledContext_native = __commonJS({
|
|
4419
4450
|
"../web/dist/cjs/helpers/createStyledContext.native.js"(exports2, module2) {
|
|
4420
4451
|
"use strict";
|
|
4421
|
-
var
|
|
4452
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
4422
4453
|
for (var name in all)
|
|
4423
4454
|
__defProp2(target, name, {
|
|
4424
4455
|
get: all[name],
|
|
@@ -4449,18 +4480,6 @@ var require_createStyledContext_native = __commonJS({
|
|
|
4449
4480
|
}
|
|
4450
4481
|
}
|
|
4451
4482
|
return to;
|
|
4452
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
4453
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
4454
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
4455
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
4456
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4457
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
4458
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
4459
|
-
value: mod,
|
|
4460
|
-
enumerable: !0
|
|
4461
|
-
}) : target,
|
|
4462
|
-
mod
|
|
4463
|
-
);
|
|
4464
4483
|
}, __toCommonJS2 = function(mod) {
|
|
4465
4484
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
4466
4485
|
value: !0
|
|
@@ -4472,7 +4491,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
4472
4491
|
}
|
|
4473
4492
|
});
|
|
4474
4493
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
4475
|
-
var import_react3 =
|
|
4494
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), import_objectIdentityKey = require_objectIdentityKey_native();
|
|
4476
4495
|
function _define_property2(obj, key, value) {
|
|
4477
4496
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
4478
4497
|
value,
|
|
@@ -4517,7 +4536,12 @@ var require_createStyledContext_native = __commonJS({
|
|
|
4517
4536
|
"children",
|
|
4518
4537
|
"scope"
|
|
4519
4538
|
]), next = (0, import_react3.useMemo)(function() {
|
|
4520
|
-
return _object_spread2(
|
|
4539
|
+
return _object_spread2(
|
|
4540
|
+
{},
|
|
4541
|
+
// this ! is a workaround for ts error
|
|
4542
|
+
defaultValues,
|
|
4543
|
+
values
|
|
4544
|
+
);
|
|
4521
4545
|
}, [
|
|
4522
4546
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
4523
4547
|
]), Provider22 = OGProvider;
|
|
@@ -4525,9 +4549,10 @@ var require_createStyledContext_native = __commonJS({
|
|
|
4525
4549
|
var ScopedContext = scopedContexts.get(scope);
|
|
4526
4550
|
ScopedContext || (ScopedContext = /* @__PURE__ */ (0, import_react3.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider22 = ScopedContext.Provider;
|
|
4527
4551
|
}
|
|
4528
|
-
return /* @__PURE__ */
|
|
4529
|
-
value: next
|
|
4530
|
-
|
|
4552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider22, {
|
|
4553
|
+
value: next,
|
|
4554
|
+
children
|
|
4555
|
+
});
|
|
4531
4556
|
}, useStyledContext = function(scope) {
|
|
4532
4557
|
var context = scope ? scopedContexts.get(scope) : OGContext;
|
|
4533
4558
|
return (0, import_react3.useContext)(context);
|
|
@@ -5054,7 +5079,13 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
5054
5079
|
];
|
|
5055
5080
|
})));
|
|
5056
5081
|
}
|
|
5057
|
-
var mediaKey = groupMediaKey || mediaKeyIn, mediaSelector1 = selectors[mediaKey], screenStr = negate ? "not all and " : "", mediaQuery = "".concat(screenStr).concat(mediaSelector1), precedenceImportancePrefix1 = groupMediaKey ? "" : enableMediaPropOrder ?
|
|
5082
|
+
var mediaKey = groupMediaKey || mediaKeyIn, mediaSelector1 = selectors[mediaKey], screenStr = negate ? "not all and " : "", mediaQuery = "".concat(screenStr).concat(mediaSelector1), precedenceImportancePrefix1 = groupMediaKey ? "" : enableMediaPropOrder ? (
|
|
5083
|
+
// this new array should be cached
|
|
5084
|
+
new Array(priority).fill(":root").join("")
|
|
5085
|
+
) : (
|
|
5086
|
+
// @ts-ignore
|
|
5087
|
+
prefixes[mediaKey]
|
|
5088
|
+
), prefix = groupMediaKey ? "@container ".concat(containerName) : "@media";
|
|
5058
5089
|
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", " and ".concat(mediaQuery, " {")).replace("and screen and", "and") : styleRule = "".concat(prefix, " ").concat(mediaQuery, "{").concat(precedenceImportancePrefix1).concat(styleInner, "}"), groupMediaKey && (styleRule = "@supports (contain: ".concat(conf.settings.webContainerType || "inline-size", ") {").concat(styleRule, "}"));
|
|
5059
5090
|
}
|
|
5060
5091
|
return {
|
|
@@ -5146,16 +5177,52 @@ var require_normalize_color = __commonJS({
|
|
|
5146
5177
|
parse255(match[3]) << 16 | // g
|
|
5147
5178
|
parse255(match[4]) << 8 | // b
|
|
5148
5179
|
parse1(match[5])) >>> // a
|
|
5149
|
-
0 : (match = matchers.hex3.exec(color)) ? parseInt(
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
0 : (match = matchers.
|
|
5157
|
-
|
|
5158
|
-
|
|
5180
|
+
0 : (match = matchers.hex3.exec(color)) ? parseInt(
|
|
5181
|
+
match[1] + match[1] + // r
|
|
5182
|
+
match[2] + match[2] + // g
|
|
5183
|
+
match[3] + match[3] + // b
|
|
5184
|
+
"ff",
|
|
5185
|
+
// a
|
|
5186
|
+
16
|
|
5187
|
+
) >>> 0 : (match = matchers.hex8.exec(color)) ? parseInt(match[1], 16) >>> 0 : (match = matchers.hex4.exec(color)) ? parseInt(
|
|
5188
|
+
match[1] + match[1] + // r
|
|
5189
|
+
match[2] + match[2] + // g
|
|
5190
|
+
match[3] + match[3] + // b
|
|
5191
|
+
match[4] + match[4],
|
|
5192
|
+
// a
|
|
5193
|
+
16
|
|
5194
|
+
) >>> 0 : (match = matchers.hsl.exec(color)) ? (hslToRgb(
|
|
5195
|
+
parse360(match[1]),
|
|
5196
|
+
// h
|
|
5197
|
+
parsePercentage(match[2]),
|
|
5198
|
+
// s
|
|
5199
|
+
parsePercentage(match[3])
|
|
5200
|
+
) | // l
|
|
5201
|
+
255) >>> // a
|
|
5202
|
+
0 : (match = matchers.hsla.exec(color)) ? match[6] !== void 0 ? (hslToRgb(
|
|
5203
|
+
parse360(match[6]),
|
|
5204
|
+
// h
|
|
5205
|
+
parsePercentage(match[7]),
|
|
5206
|
+
// s
|
|
5207
|
+
parsePercentage(match[8])
|
|
5208
|
+
) | // l
|
|
5209
|
+
parse1(match[9])) >>> // a
|
|
5210
|
+
0 : (hslToRgb(
|
|
5211
|
+
parse360(match[2]),
|
|
5212
|
+
// h
|
|
5213
|
+
parsePercentage(match[3]),
|
|
5214
|
+
// s
|
|
5215
|
+
parsePercentage(match[4])
|
|
5216
|
+
) | // l
|
|
5217
|
+
parse1(match[5])) >>> // a
|
|
5218
|
+
0 : (match = matchers.hwb.exec(color)) ? (hwbToRgb(
|
|
5219
|
+
parse360(match[1]),
|
|
5220
|
+
// h
|
|
5221
|
+
parsePercentage(match[2]),
|
|
5222
|
+
// w
|
|
5223
|
+
parsePercentage(match[3])
|
|
5224
|
+
) | // b
|
|
5225
|
+
255) >>> // a
|
|
5159
5226
|
0 : null);
|
|
5160
5227
|
}
|
|
5161
5228
|
function hue2rgb(p, q, t) {
|
|
@@ -6553,6 +6620,7 @@ var require_skipProps_native = __commonJS({
|
|
|
6553
6620
|
disableOptimization: 1,
|
|
6554
6621
|
tag: 1,
|
|
6555
6622
|
style: 1,
|
|
6623
|
+
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
6556
6624
|
group: 1,
|
|
6557
6625
|
themeInverse: 1
|
|
6558
6626
|
};
|
|
@@ -6766,7 +6834,8 @@ var require_propMapper_native = __commonJS({
|
|
|
6766
6834
|
res[subKey] = val;
|
|
6767
6835
|
else if (variants && subKey in variants) {
|
|
6768
6836
|
if (styleState.curProps[subKey] = val, parentVariantKey && parentVariantKey === key)
|
|
6769
|
-
res[subKey] =
|
|
6837
|
+
res[subKey] = // SYNC WITH *1
|
|
6838
|
+
val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val;
|
|
6770
6839
|
else {
|
|
6771
6840
|
var variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
|
|
6772
6841
|
if (variantOut) {
|
|
@@ -7819,7 +7888,7 @@ var require_Theme_native = __commonJS({
|
|
|
7819
7888
|
}
|
|
7820
7889
|
});
|
|
7821
7890
|
module2.exports = __toCommonJS2(Theme_exports);
|
|
7822
|
-
var import_constants = require_index_native3(), import_react3 = __toESM2(require("react")), import_createVariable = require_createVariable_native(), import_ThemeManagerContext = require_ThemeManagerContext_native(), import_useTheme = require_useTheme_native(), import_ThemeDebug = require_ThemeDebug_native();
|
|
7891
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants = require_index_native3(), import_react3 = __toESM2(require("react")), import_createVariable = require_createVariable_native(), import_ThemeManagerContext = require_ThemeManagerContext_native(), import_useTheme = require_useTheme_native(), import_ThemeDebug = require_ThemeDebug_native();
|
|
7823
7892
|
function _define_property2(obj, key, value) {
|
|
7824
7893
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
7825
7894
|
value,
|
|
@@ -7876,13 +7945,15 @@ var require_Theme_native = __commonJS({
|
|
|
7876
7945
|
return children;
|
|
7877
7946
|
var next = children;
|
|
7878
7947
|
shallow && (next = import_react3.Children.toArray(children).map(function(child) {
|
|
7879
|
-
return /* @__PURE__ */ (0, import_react3.isValidElement)(child) ? /* @__PURE__ */ (0, import_react3.cloneElement)(child, void 0, /* @__PURE__ */
|
|
7880
|
-
name: themeManager.state.parentName
|
|
7881
|
-
|
|
7948
|
+
return /* @__PURE__ */ (0, import_react3.isValidElement)(child) ? /* @__PURE__ */ (0, import_react3.cloneElement)(child, void 0, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, {
|
|
7949
|
+
name: themeManager.state.parentName,
|
|
7950
|
+
children: child.props.children
|
|
7951
|
+
})) : child;
|
|
7882
7952
|
}));
|
|
7883
|
-
var elementsWithContext = /* @__PURE__ */
|
|
7884
|
-
value: themeManager.id
|
|
7885
|
-
|
|
7953
|
+
var elementsWithContext = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerIDContext.Provider, {
|
|
7954
|
+
value: themeManager.id,
|
|
7955
|
+
children: next
|
|
7956
|
+
});
|
|
7886
7957
|
return forceClassName === !1 ? elementsWithContext : import_constants.isWeb ? wrapThemeElements({
|
|
7887
7958
|
children: elementsWithContext,
|
|
7888
7959
|
themeState,
|
|
@@ -7894,15 +7965,17 @@ var require_Theme_native = __commonJS({
|
|
|
7894
7965
|
var children = param.children, themeState = param.themeState, forceClassName = param.forceClassName, isRoot = param.isRoot;
|
|
7895
7966
|
if (isRoot && forceClassName === !1)
|
|
7896
7967
|
return children;
|
|
7897
|
-
var inverse = themeState.inversed, requiresExtraWrapper = inverse != null || forceClassName, _getThemeClassNameAndStyle = getThemeClassNameAndStyle(themeState, isRoot), className = _getThemeClassNameAndStyle.className, style = _getThemeClassNameAndStyle.style, themedChildren = /* @__PURE__ */
|
|
7968
|
+
var inverse = themeState.inversed, requiresExtraWrapper = inverse != null || forceClassName, _getThemeClassNameAndStyle = getThemeClassNameAndStyle(themeState, isRoot), className = _getThemeClassNameAndStyle.className, style = _getThemeClassNameAndStyle.style, themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
7898
7969
|
className: "".concat(className, " _dsp_contents is_Theme"),
|
|
7899
|
-
style
|
|
7900
|
-
|
|
7970
|
+
style,
|
|
7971
|
+
children
|
|
7972
|
+
});
|
|
7901
7973
|
if (requiresExtraWrapper) {
|
|
7902
7974
|
var _themeState_state, name = ((_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", inverseClassName = name.startsWith("light") ? "t_light is_inversed" : name.startsWith("dark") ? "t_dark is_inversed" : "";
|
|
7903
|
-
themedChildren = /* @__PURE__ */
|
|
7904
|
-
className: "".concat(inverse ? inverseClassName : "", " _dsp_contents")
|
|
7905
|
-
|
|
7975
|
+
themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
7976
|
+
className: "".concat(inverse ? inverseClassName : "", " _dsp_contents"),
|
|
7977
|
+
children: themedChildren
|
|
7978
|
+
});
|
|
7906
7979
|
}
|
|
7907
7980
|
return themedChildren;
|
|
7908
7981
|
}
|
|
@@ -7971,7 +8044,7 @@ var require_themeable_native = __commonJS({
|
|
|
7971
8044
|
}
|
|
7972
8045
|
});
|
|
7973
8046
|
module2.exports = __toCommonJS2(themeable_exports);
|
|
7974
|
-
var import_react3 = require("react"), import_Theme = require_Theme_native();
|
|
8047
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), import_Theme = require_Theme_native();
|
|
7975
8048
|
function _define_property2(obj, key, value) {
|
|
7976
8049
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
7977
8050
|
value,
|
|
@@ -8034,19 +8107,20 @@ var require_themeable_native = __commonJS({
|
|
|
8034
8107
|
"themeReset"
|
|
8035
8108
|
]), element = (
|
|
8036
8109
|
// @ts-expect-error its ok
|
|
8037
|
-
/* @__PURE__ */
|
|
8110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, _object_spread_props(_object_spread2({
|
|
8038
8111
|
ref
|
|
8039
8112
|
}, rest), {
|
|
8040
8113
|
"data-disable-theme": !0
|
|
8041
8114
|
}))
|
|
8042
|
-
), contents = /* @__PURE__ */
|
|
8115
|
+
), contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.Theme, {
|
|
8043
8116
|
componentName: componentName || (staticConfig == null ? void 0 : staticConfig.componentName),
|
|
8044
8117
|
name: theme,
|
|
8045
8118
|
"disable-child-theme": !0,
|
|
8046
8119
|
debug: props.debug,
|
|
8047
8120
|
inverse: themeInverse,
|
|
8048
|
-
reset: themeReset
|
|
8049
|
-
|
|
8121
|
+
reset: themeReset,
|
|
8122
|
+
children: element
|
|
8123
|
+
});
|
|
8050
8124
|
return contents;
|
|
8051
8125
|
}), withTheme = withThemeComponent;
|
|
8052
8126
|
return withTheme.displayName = "Themed(".concat((Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "Anonymous", ")"), withTheme;
|
|
@@ -8159,7 +8233,7 @@ var require_Slot_native = __commonJS({
|
|
|
8159
8233
|
}
|
|
8160
8234
|
});
|
|
8161
8235
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
8162
|
-
var import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react");
|
|
8236
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react");
|
|
8163
8237
|
function _define_property2(obj, key, value) {
|
|
8164
8238
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
8165
8239
|
value,
|
|
@@ -8228,7 +8302,9 @@ var require_Slot_native = __commonJS({
|
|
|
8228
8302
|
Slot.displayName = "Slot";
|
|
8229
8303
|
var Slottable = function(param) {
|
|
8230
8304
|
var children = param.children;
|
|
8231
|
-
return /* @__PURE__ */
|
|
8305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
8306
|
+
children
|
|
8307
|
+
});
|
|
8232
8308
|
};
|
|
8233
8309
|
Slottable.displayName = "Slottable";
|
|
8234
8310
|
var pressMap = import_constants.isWeb ? {
|
|
@@ -8330,7 +8406,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8330
8406
|
}
|
|
8331
8407
|
});
|
|
8332
8408
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8333
|
-
var import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_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(), import_ThemeDebug = require_ThemeDebug_native();
|
|
8409
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_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(), import_ThemeDebug = require_ThemeDebug_native();
|
|
8334
8410
|
function _array_like_to_array(arr, len) {
|
|
8335
8411
|
(len == null || len > arr.length) && (len = arr.length);
|
|
8336
8412
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -8753,7 +8829,9 @@ var require_createComponent_native = __commonJS({
|
|
|
8753
8829
|
var useChildrenResult;
|
|
8754
8830
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps, events, staticConfig)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ (0, import_react3.createElement)(elementType, viewProps, content);
|
|
8755
8831
|
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
8756
|
-
ResetPresence && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */
|
|
8832
|
+
ResetPresence && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, {
|
|
8833
|
+
children: content
|
|
8834
|
+
}));
|
|
8757
8835
|
var groupState = curState.group, subGroupContext = (0, import_react3.useMemo)(function() {
|
|
8758
8836
|
var _splitStyles_style, _splitStyles_style1;
|
|
8759
8837
|
if (!(!groupState || !groupName))
|
|
@@ -8774,9 +8852,10 @@ var require_createComponent_native = __commonJS({
|
|
|
8774
8852
|
}, [
|
|
8775
8853
|
groupName
|
|
8776
8854
|
]);
|
|
8777
|
-
if (groupName && subGroupContext && (content = /* @__PURE__ */
|
|
8778
|
-
groups: subGroupContext
|
|
8779
|
-
|
|
8855
|
+
if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, _object_spread_props(_object_spread2({}, componentContext), {
|
|
8856
|
+
groups: subGroupContext,
|
|
8857
|
+
children: content
|
|
8858
|
+
}))), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1), staticConfig.context) {
|
|
8780
8859
|
var contextProps = staticConfig.context.props;
|
|
8781
8860
|
for (var key1 in contextProps)
|
|
8782
8861
|
if (viewProps.style && key1 in viewProps.style || key1 in viewProps) {
|
|
@@ -8788,7 +8867,9 @@ var require_createComponent_native = __commonJS({
|
|
|
8788
8867
|
}
|
|
8789
8868
|
if (overriddenContextProps) {
|
|
8790
8869
|
var Provider = staticConfig.context.Provider;
|
|
8791
|
-
content = /* @__PURE__ */
|
|
8870
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, _object_spread_props(_object_spread2({}, contextValue, overriddenContextProps), {
|
|
8871
|
+
children: content
|
|
8872
|
+
}));
|
|
8792
8873
|
}
|
|
8793
8874
|
if (0) {
|
|
8794
8875
|
var element1, title;
|
|
@@ -8885,9 +8966,11 @@ var require_createComponent_native = __commonJS({
|
|
|
8885
8966
|
spaceFlex,
|
|
8886
8967
|
separator,
|
|
8887
8968
|
key: child.key
|
|
8888
|
-
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */
|
|
8889
|
-
|
|
8890
|
-
|
|
8969
|
+
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.Fragment, {
|
|
8970
|
+
children: isZStack ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AbsoluteFill, {
|
|
8971
|
+
children: child
|
|
8972
|
+
}) : child
|
|
8973
|
+
}, index)), !(isUnspaced(child) && index === 0) && !isZStack) {
|
|
8891
8974
|
var next = childrenList[index + 1];
|
|
8892
8975
|
next && !isUnspaced(next) && (separator ? (hasSpace && final.push(createSpacer({
|
|
8893
8976
|
key: "_".concat(index, "_00tmgui"),
|
|
@@ -8923,13 +9006,12 @@ var require_createComponent_native = __commonJS({
|
|
|
8923
9006
|
}
|
|
8924
9007
|
function createSpacer(param) {
|
|
8925
9008
|
var key = param.key, direction = param.direction, space = param.space, spaceFlex = param.spaceFlex;
|
|
8926
|
-
return /* @__PURE__ */
|
|
8927
|
-
key,
|
|
9009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, _object_spread2({
|
|
8928
9010
|
size: space,
|
|
8929
9011
|
direction
|
|
8930
9012
|
}, (typeof spaceFlex > "u" ? "undefined" : _type_of(spaceFlex)) < "u" && {
|
|
8931
9013
|
flex: spaceFlex === !0 ? 1 : spaceFlex === !1 ? 0 : spaceFlex
|
|
8932
|
-
}));
|
|
9014
|
+
}), key);
|
|
8933
9015
|
}
|
|
8934
9016
|
function isUnspaced(child) {
|
|
8935
9017
|
var t = child == null ? void 0 : child.type;
|
|
@@ -10704,7 +10786,7 @@ var require_withStableStyle_native = __commonJS({
|
|
|
10704
10786
|
}
|
|
10705
10787
|
});
|
|
10706
10788
|
module2.exports = __toCommonJS2(withStableStyle_exports);
|
|
10707
|
-
var import_react3 = require("react"), import_useTheme = require_useTheme_native();
|
|
10789
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), import_useTheme = require_useTheme_native();
|
|
10708
10790
|
function _define_property2(obj, key, value) {
|
|
10709
10791
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
10710
10792
|
value,
|
|
@@ -10748,7 +10830,7 @@ var require_withStableStyle_native = __commonJS({
|
|
|
10748
10830
|
var _props__expressions = props._expressions, _expressions = _props__expressions === void 0 ? [] : _props__expressions, rest = _object_without_properties(props, [
|
|
10749
10831
|
"_expressions"
|
|
10750
10832
|
]), theme = (0, import_useTheme.useTheme)();
|
|
10751
|
-
return /* @__PURE__ */
|
|
10833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, _object_spread2({
|
|
10752
10834
|
ref,
|
|
10753
10835
|
style: styleProvider(theme, _expressions)
|
|
10754
10836
|
}, rest));
|
|
@@ -11480,7 +11562,7 @@ var require_ThemeProvider_native = __commonJS({
|
|
|
11480
11562
|
}
|
|
11481
11563
|
});
|
|
11482
11564
|
module2.exports = __toCommonJS2(ThemeProvider_exports);
|
|
11483
|
-
var import_constants = require_index_native3(), import_react3 = require("react"), import_constants2 = require_constants_native2(), import_Theme = require_Theme_native(), ThemeProvider = function(props) {
|
|
11565
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants = require_index_native3(), import_react3 = require("react"), import_constants2 = require_constants_native2(), import_Theme = require_Theme_native(), ThemeProvider = function(props) {
|
|
11484
11566
|
return import_constants.isClient && (0, import_react3.useLayoutEffect)(function() {
|
|
11485
11567
|
if (!props.disableRootThemeClass) {
|
|
11486
11568
|
var cn = "".concat(import_constants2.THEME_CLASSNAME_PREFIX).concat(props.defaultTheme), target = props.themeClassNameOnRoot ? document.documentElement : document.body;
|
|
@@ -11492,14 +11574,15 @@ var require_ThemeProvider_native = __commonJS({
|
|
|
11492
11574
|
props.defaultTheme,
|
|
11493
11575
|
props.disableRootThemeClass,
|
|
11494
11576
|
props.themeClassNameOnRoot
|
|
11495
|
-
]), /* @__PURE__ */
|
|
11577
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.Theme, {
|
|
11496
11578
|
className: props.className,
|
|
11497
11579
|
name: props.defaultTheme,
|
|
11498
11580
|
// if root class disabled, force class here
|
|
11499
11581
|
forceClassName: !props.disableRootThemeClass,
|
|
11500
11582
|
// @ts-expect-error
|
|
11501
|
-
_isRoot: !0
|
|
11502
|
-
|
|
11583
|
+
_isRoot: !0,
|
|
11584
|
+
children: props.children
|
|
11585
|
+
});
|
|
11503
11586
|
};
|
|
11504
11587
|
}
|
|
11505
11588
|
});
|
|
@@ -11550,7 +11633,7 @@ var require_FontLanguage_native = __commonJS({
|
|
|
11550
11633
|
}
|
|
11551
11634
|
});
|
|
11552
11635
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
11553
|
-
var import_react3 = require("react"), import_ComponentContext = require_ComponentContext_native();
|
|
11636
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), import_ComponentContext = require_ComponentContext_native();
|
|
11554
11637
|
function _object_without_properties(source, excluded) {
|
|
11555
11638
|
if (source == null)
|
|
11556
11639
|
return {};
|
|
@@ -11578,9 +11661,10 @@ var require_FontLanguage_native = __commonJS({
|
|
|
11578
11661
|
}, [
|
|
11579
11662
|
JSON.stringify(props)
|
|
11580
11663
|
]);
|
|
11581
|
-
return /* @__PURE__ */
|
|
11582
|
-
language
|
|
11583
|
-
|
|
11664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11665
|
+
language,
|
|
11666
|
+
children
|
|
11667
|
+
});
|
|
11584
11668
|
};
|
|
11585
11669
|
FontLanguage.displayName = "FontLanguage";
|
|
11586
11670
|
}
|
|
@@ -11644,7 +11728,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11644
11728
|
}
|
|
11645
11729
|
});
|
|
11646
11730
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
11647
|
-
var import_constants = require_index_native3(),
|
|
11731
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants = require_index_native3(), React = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
11648
11732
|
function _define_property2(obj, key, value) {
|
|
11649
11733
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11650
11734
|
value,
|
|
@@ -11704,7 +11788,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11704
11788
|
"disableInjectCSS",
|
|
11705
11789
|
"config"
|
|
11706
11790
|
]);
|
|
11707
|
-
(0, import_useMedia.setupMediaListeners)(), import_constants.isClient &&
|
|
11791
|
+
(0, import_useMedia.setupMediaListeners)(), import_constants.isClient && React.useLayoutEffect(function() {
|
|
11708
11792
|
if (config && (config.disableSSR || document.documentElement.classList.contains("t_unmounted") && document.documentElement.classList.remove("t_unmounted"), !disableInjectCSS)) {
|
|
11709
11793
|
var style = document.createElement("style");
|
|
11710
11794
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -11716,14 +11800,16 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11716
11800
|
disableInjectCSS
|
|
11717
11801
|
]);
|
|
11718
11802
|
var _themePropsProvider_defaultTheme;
|
|
11719
|
-
return /* @__PURE__ */
|
|
11720
|
-
animationDriver: config == null ? void 0 : config.animations
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11804
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
11805
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, _object_spread_props(_object_spread2({
|
|
11806
|
+
themeClassNameOnRoot: config == null ? void 0 : config.themeClassNameOnRoot,
|
|
11807
|
+
disableRootThemeClass: config == null ? void 0 : config.disableRootThemeClass
|
|
11808
|
+
}, themePropsProvider), {
|
|
11809
|
+
defaultTheme: (_themePropsProvider_defaultTheme = themePropsProvider.defaultTheme) !== null && _themePropsProvider_defaultTheme !== void 0 ? _themePropsProvider_defaultTheme : config ? Object.keys(config.themes)[0] : "",
|
|
11810
|
+
children
|
|
11811
|
+
}))
|
|
11812
|
+
});
|
|
11727
11813
|
}
|
|
11728
11814
|
TamaguiProvider.displayName = "TamaguiProvider";
|
|
11729
11815
|
}
|
|
@@ -11775,7 +11861,7 @@ var require_Configuration_native = __commonJS({
|
|
|
11775
11861
|
}
|
|
11776
11862
|
});
|
|
11777
11863
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
11778
|
-
var import_react3 = require("react"), import_ComponentContext = require_ComponentContext_native();
|
|
11864
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), import_ComponentContext = require_ComponentContext_native();
|
|
11779
11865
|
function _define_property2(obj, key, value) {
|
|
11780
11866
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11781
11867
|
value,
|
|
@@ -11797,7 +11883,7 @@ var require_Configuration_native = __commonJS({
|
|
|
11797
11883
|
}
|
|
11798
11884
|
var Configuration = function(props) {
|
|
11799
11885
|
var current = (0, import_react3.useContext)(import_ComponentContext.ComponentContext);
|
|
11800
|
-
return /* @__PURE__ */
|
|
11886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, _object_spread2({}, current, props));
|
|
11801
11887
|
};
|
|
11802
11888
|
Configuration.displayName = "Configuration";
|
|
11803
11889
|
}
|
|
@@ -12177,7 +12263,10 @@ var import_react_native_use_responder_events = __toESM(require_index_native()),
|
|
|
12177
12263
|
// src/createOptimizedView.native.tsx
|
|
12178
12264
|
var import_react = require("react");
|
|
12179
12265
|
function createOptimizedView(children, viewProps, baseViews2) {
|
|
12180
|
-
var TextAncestor = baseViews2.TextAncestor, ViewNativeComponent = baseViews2.View, accessibilityElementsHidden =
|
|
12266
|
+
var TextAncestor = baseViews2.TextAncestor, ViewNativeComponent = baseViews2.View, accessibilityElementsHidden = (
|
|
12267
|
+
// ...otherProps
|
|
12268
|
+
viewProps.accessibilityElementsHidden
|
|
12269
|
+
), accessibilityLabel = viewProps.accessibilityLabel, accessibilityLabelledBy = viewProps.accessibilityLabelledBy, accessibilityLiveRegion = viewProps.accessibilityLiveRegion, accessibilityRole = viewProps.accessibilityRole, accessibilityState = viewProps.accessibilityState, accessibilityValue = viewProps.accessibilityValue, ariaBusy = viewProps["aria-busy"], ariaChecked = viewProps["aria-checked"], ariaDisabled = viewProps["aria-disabled"], ariaExpanded = viewProps["aria-expanded"], ariaHidden = viewProps["aria-hidden"], ariaLabel = viewProps["aria-label"], ariaLabelledBy = viewProps["aria-labelledby"], ariaLive = viewProps["aria-live"], ariaSelected = viewProps["aria-selected"], ariaValueMax = viewProps["aria-valuemax"], ariaValueMin = viewProps["aria-valuemin"], ariaValueNow = viewProps["aria-valuenow"], ariaValueText = viewProps["aria-valuetext"], focusable = viewProps.focusable, id = viewProps.id, importantForAccessibility = viewProps.importantForAccessibility, nativeID = viewProps.nativeID, pointerEvents = viewProps.pointerEvents, role = viewProps.role, tabIndex = viewProps.tabIndex, _ariaLabelledBy_split, _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy == null ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy, _accessibilityState;
|
|
12181
12270
|
(accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) && (_accessibilityState = {
|
|
12182
12271
|
busy: ariaBusy ?? (accessibilityState == null ? void 0 : accessibilityState.busy),
|
|
12183
12272
|
checked: ariaChecked ?? (accessibilityState == null ? void 0 : accessibilityState.checked),
|
|
@@ -12385,41 +12474,44 @@ function _object_spread(target) {
|
|
|
12385
12474
|
return target;
|
|
12386
12475
|
}
|
|
12387
12476
|
var baseViews = getBaseViews();
|
|
12388
|
-
(0, import_web.setupHooks)(_object_spread(
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12477
|
+
(0, import_web.setupHooks)(_object_spread(
|
|
12478
|
+
{
|
|
12479
|
+
getBaseViews,
|
|
12480
|
+
usePropsTransform: function(elementType, propsIn, stateRef, willHydrate) {
|
|
12481
|
+
if (0) {
|
|
12482
|
+
var isDOM, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, collapsable, focusable, accessible, accessibilityDisabled, onLayout, hrefAttrs, plainDOMProps;
|
|
12483
|
+
if (willHydrate || isDOM)
|
|
12484
|
+
var hostRef;
|
|
12485
|
+
if (isDOM && plainDOMProps.href && hrefAttrs)
|
|
12486
|
+
var download, rel, target;
|
|
12487
|
+
}
|
|
12488
|
+
},
|
|
12489
|
+
useEvents: function(viewProps, events, param, setStateShallow, staticConfig) {
|
|
12490
|
+
var pseudos = param.pseudos;
|
|
12491
|
+
if (events && (events.onFocus && (viewProps.onFocus = events.onFocus), events.onBlur && (viewProps.onBlur = events.onBlur)), staticConfig.isInput) {
|
|
12492
|
+
if (events) {
|
|
12493
|
+
var onPressIn = events.onPressIn, onPressOut = events.onPressOut, onPress = events.onPress, inputEvents = {
|
|
12494
|
+
onPressIn,
|
|
12495
|
+
onPressOut: onPressOut || onPress
|
|
12496
|
+
};
|
|
12497
|
+
onPressOut && onPress && (inputEvents.onPressOut = (0, import_web.composeEventHandlers)(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
|
|
12498
|
+
}
|
|
12499
|
+
} else {
|
|
12500
|
+
events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
|
|
12501
|
+
var pressability = usePressability(events);
|
|
12502
|
+
if (events && events.onPress)
|
|
12503
|
+
for (var key in pressability) {
|
|
12504
|
+
var og = viewProps[key], val = pressability[key];
|
|
12505
|
+
viewProps[key] = og && !dontComposePressabilityKeys[key] ? (0, import_web.composeEventHandlers)(og, val) : val;
|
|
12506
|
+
}
|
|
12507
|
+
}
|
|
12397
12508
|
}
|
|
12398
12509
|
},
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
if (events && (events.onFocus && (viewProps.onFocus = events.onFocus), events.onBlur && (viewProps.onBlur = events.onBlur)), staticConfig.isInput) {
|
|
12402
|
-
if (events) {
|
|
12403
|
-
var onPressIn = events.onPressIn, onPressOut = events.onPressOut, onPress = events.onPress, inputEvents = {
|
|
12404
|
-
onPressIn,
|
|
12405
|
-
onPressOut: onPressOut || onPress
|
|
12406
|
-
};
|
|
12407
|
-
onPressOut && onPress && (inputEvents.onPressOut = (0, import_web.composeEventHandlers)(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
|
|
12408
|
-
}
|
|
12409
|
-
} else {
|
|
12410
|
-
events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
|
|
12411
|
-
var pressability = usePressability(events);
|
|
12412
|
-
if (events && events.onPress)
|
|
12413
|
-
for (var key in pressability) {
|
|
12414
|
-
var og = viewProps[key], val = pressability[key];
|
|
12415
|
-
viewProps[key] = og && !dontComposePressabilityKeys[key] ? (0, import_web.composeEventHandlers)(og, val) : val;
|
|
12416
|
-
}
|
|
12510
|
+
{
|
|
12511
|
+
useChildren: function(elementType, children, viewProps, events, staticConfig) {
|
|
12417
12512
|
}
|
|
12418
12513
|
}
|
|
12419
|
-
|
|
12420
|
-
useChildren: function(elementType, children, viewProps, events, staticConfig) {
|
|
12421
|
-
}
|
|
12422
|
-
}));
|
|
12514
|
+
));
|
|
12423
12515
|
var dontComposePressabilityKeys = {
|
|
12424
12516
|
onClick: !0
|
|
12425
12517
|
}, View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|