@tamagui/core 1.122.8 → 1.123.0
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/addNativeValidStyles.cjs +26 -0
- package/dist/cjs/addNativeValidStyles.js +22 -0
- package/dist/cjs/addNativeValidStyles.js.map +6 -0
- package/dist/cjs/addNativeValidStyles.native.js +50 -0
- package/dist/cjs/addNativeValidStyles.native.js.map +6 -0
- package/dist/cjs/index.cjs +3 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -1
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/addNativeValidStyles.js +6 -0
- package/dist/esm/addNativeValidStyles.js.map +6 -0
- package/dist/esm/addNativeValidStyles.mjs +3 -0
- package/dist/esm/addNativeValidStyles.mjs.map +1 -0
- package/dist/esm/addNativeValidStyles.native.js +22 -0
- package/dist/esm/addNativeValidStyles.native.js.map +6 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -0
- package/dist/esm/index.native.js.map +2 -2
- package/dist/native.js +136 -140
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +130 -132
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -7
- package/src/addNativeValidStyles.native.ts +27 -0
- package/src/addNativeValidStyles.ts +3 -0
- package/src/index.tsx +4 -0
- package/types/addNativeValidStyles.d.ts +2 -0
- package/types/addNativeValidStyles.d.ts.map +1 -0
- package/types/addNativeValidStyles.native.d.ts +2 -0
- package/types/addNativeValidStyles.native.d.ts.map +1 -0
- package/types/index.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -359,7 +359,7 @@ var require_types_native = __commonJS({
|
|
|
359
359
|
var require_constants_native = __commonJS({
|
|
360
360
|
"../constants/dist/cjs/constants.native.js"(exports2, module2) {
|
|
361
361
|
"use strict";
|
|
362
|
-
var
|
|
362
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
363
363
|
for (var name in all) __defProp2(target, name, {
|
|
364
364
|
get: all[name],
|
|
365
365
|
enumerable: !0
|
|
@@ -387,18 +387,6 @@ var require_constants_native = __commonJS({
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
return to;
|
|
390
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
391
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
392
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
393
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
394
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
395
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
396
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
397
|
-
value: mod,
|
|
398
|
-
enumerable: !0
|
|
399
|
-
}) : target,
|
|
400
|
-
mod
|
|
401
|
-
);
|
|
402
390
|
}, __toCommonJS2 = function(mod) {
|
|
403
391
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
404
392
|
value: !0
|
|
@@ -440,7 +428,7 @@ var require_constants_native = __commonJS({
|
|
|
440
428
|
}
|
|
441
429
|
});
|
|
442
430
|
module2.exports = __toCommonJS2(constants_native_exports);
|
|
443
|
-
var import_react3 =
|
|
431
|
+
var import_react3 = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native";
|
|
444
432
|
}
|
|
445
433
|
});
|
|
446
434
|
|
|
@@ -604,10 +592,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
604
592
|
}, validStyleProps_exports = {};
|
|
605
593
|
__export2(validStyleProps_exports, {
|
|
606
594
|
stylePropsAll: function() {
|
|
607
|
-
return
|
|
608
|
-
},
|
|
609
|
-
stylePropsFont: function() {
|
|
610
|
-
return stylePropsFont;
|
|
595
|
+
return stylePropsAll2;
|
|
611
596
|
},
|
|
612
597
|
stylePropsText: function() {
|
|
613
598
|
return stylePropsText;
|
|
@@ -631,7 +616,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
631
616
|
return validPseudoKeys;
|
|
632
617
|
},
|
|
633
618
|
validStyles: function() {
|
|
634
|
-
return
|
|
619
|
+
return validStyles2;
|
|
635
620
|
}
|
|
636
621
|
});
|
|
637
622
|
module2.exports = __toCommonJS2(validStyleProps_exports);
|
|
@@ -859,7 +844,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
859
844
|
}, stylePropsText = {
|
|
860
845
|
...stylePropsView,
|
|
861
846
|
...stylePropsTextOnly
|
|
862
|
-
},
|
|
847
|
+
}, stylePropsAll2 = stylePropsText, validPseudoKeys = {
|
|
863
848
|
enterStyle: !0,
|
|
864
849
|
exitStyle: !0,
|
|
865
850
|
hoverStyle: !0,
|
|
@@ -867,7 +852,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
867
852
|
focusStyle: !0,
|
|
868
853
|
disabledStyle: !0,
|
|
869
854
|
focusWithinStyle: !0
|
|
870
|
-
},
|
|
855
|
+
}, validStyles2 = stylePropsView;
|
|
871
856
|
}
|
|
872
857
|
});
|
|
873
858
|
|
|
@@ -1214,7 +1199,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1214
1199
|
}
|
|
1215
1200
|
});
|
|
1216
1201
|
module2.exports = __toCommonJS2(createVariable_exports);
|
|
1217
|
-
var import_constants2 = require_index_native2(),
|
|
1202
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_config = require_config_native();
|
|
1218
1203
|
function constructCSSVariableName(name) {
|
|
1219
1204
|
return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
1220
1205
|
}
|
|
@@ -1225,7 +1210,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1225
1210
|
return {
|
|
1226
1211
|
isVar: !0,
|
|
1227
1212
|
key,
|
|
1228
|
-
name: skipHash ? name : (0,
|
|
1213
|
+
name: skipHash ? name : (0, import_helpers2.simpleHash)(name, 40),
|
|
1229
1214
|
val,
|
|
1230
1215
|
variable: import_constants2.isWeb ? skipHash ? constructCSSVariableName(name) : createCSSVariable(name) : ""
|
|
1231
1216
|
};
|
|
@@ -1264,7 +1249,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1264
1249
|
return isVariable(v) ? v.variable : v;
|
|
1265
1250
|
}
|
|
1266
1251
|
var createCSSVariable = function(nameProp) {
|
|
1267
|
-
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, name = (0,
|
|
1252
|
+
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, name = (0, import_helpers2.simpleHash)(nameProp, 60);
|
|
1268
1253
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
1269
1254
|
};
|
|
1270
1255
|
}
|
|
@@ -1340,7 +1325,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1340
1325
|
}
|
|
1341
1326
|
});
|
|
1342
1327
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
1343
|
-
var import_constants2 = require_index_native2(),
|
|
1328
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms2 = {}, getAllSelectors = function() {
|
|
1344
1329
|
return allSelectors;
|
|
1345
1330
|
}, getAllRules = function() {
|
|
1346
1331
|
return Object.values(allRules);
|
|
@@ -1425,9 +1410,9 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1425
1410
|
}
|
|
1426
1411
|
if (!sheet) return;
|
|
1427
1412
|
for (var key in rulesToInsert) {
|
|
1428
|
-
var styleObject = rulesToInsert[key], identifier = styleObject[
|
|
1413
|
+
var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers2.StyleObjectIdentifier];
|
|
1429
1414
|
if (shouldInsertStyleRules(identifier)) {
|
|
1430
|
-
var rules = styleObject[
|
|
1415
|
+
var rules = styleObject[import_helpers2.StyleObjectRules];
|
|
1431
1416
|
allSelectors[identifier] = rules.join(`
|
|
1432
1417
|
`), track(identifier), updateRules(identifier, rules);
|
|
1433
1418
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
@@ -2643,65 +2628,55 @@ var require_useTheme_native = __commonJS({
|
|
|
2643
2628
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : emptyProps, [_, theme] = useThemeWithState(props), res = theme;
|
|
2644
2629
|
return res;
|
|
2645
2630
|
}, useThemeWithState = function(props) {
|
|
2646
|
-
var keys = (0, import_react3.useRef)(null), changedThemeState = useChangeThemeEffect(props, !1, keys), { themeManager, state } = changedThemeState, themeProxied = (
|
|
2647
|
-
return keys.current && (keys.current = null), !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state, props.deopt, keys, themeManager, props.debug);
|
|
2648
|
-
}, [
|
|
2649
|
-
state == null ? void 0 : state.theme,
|
|
2650
|
-
themeManager,
|
|
2651
|
-
props.deopt,
|
|
2652
|
-
props.debug
|
|
2653
|
-
]);
|
|
2631
|
+
var keys = (0, import_react3.useRef)(null), changedThemeState = useChangeThemeEffect(props, !1, keys), { themeManager, state } = changedThemeState, themeProxied = getThemeProxied(props, state, keys, themeManager);
|
|
2654
2632
|
return [
|
|
2655
2633
|
changedThemeState,
|
|
2656
2634
|
themeProxied
|
|
2657
2635
|
];
|
|
2658
|
-
};
|
|
2659
|
-
function getThemeProxied(
|
|
2660
|
-
var
|
|
2661
|
-
if (!theme) return
|
|
2662
|
-
|
|
2636
|
+
}, emptyObject = {}, ProxiedThemes = /* @__PURE__ */ new Map(), curKeys, curProps, curThemeManger;
|
|
2637
|
+
function getThemeProxied(_props, state, _keys, _themeManager) {
|
|
2638
|
+
var theme = state == null ? void 0 : state.theme;
|
|
2639
|
+
if (!theme || !_themeManager) return emptyObject;
|
|
2640
|
+
if (curKeys = _keys, curProps = _props, curThemeManger = _themeManager, ProxiedThemes.has(theme)) {
|
|
2641
|
+
var proxied = ProxiedThemes.get(theme);
|
|
2642
|
+
return proxied;
|
|
2643
|
+
}
|
|
2644
|
+
var { name, scheme } = state, config = (0, import_config.getConfig)();
|
|
2663
2645
|
function track(key) {
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
if (subkey === "val") globalThis.tamaguiAvoidTracking || track(keyString);
|
|
2685
|
-
else if (subkey === "get") return function(platform) {
|
|
2686
|
-
var outVal = (0, import_createVariable.getVariable)(val);
|
|
2687
|
-
if (platform !== "web" && import_constants2.isIos && !deopt && (0, import_config.getSetting)("fastSchemeChange") && !(0, import_shouldDeoptDueToParentScheme.shouldDeoptDueToParentScheme)(themeManager) && scheme) {
|
|
2688
|
-
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[keyString]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[keyString]), dynamicVal = {
|
|
2689
|
-
dynamic: {
|
|
2690
|
-
[scheme]: color,
|
|
2691
|
-
[oppositeScheme]: oppositeColor
|
|
2692
|
-
}
|
|
2693
|
-
};
|
|
2694
|
-
return dynamicVal;
|
|
2695
|
-
}
|
|
2696
|
-
return track(keyString), outVal;
|
|
2697
|
-
};
|
|
2698
|
-
return Reflect.get(val, subkey);
|
|
2699
|
-
}
|
|
2700
|
-
});
|
|
2646
|
+
curKeys && (curKeys.current || (curKeys.current = []), curKeys.current.push(key));
|
|
2647
|
+
}
|
|
2648
|
+
var proxied1 = Object.fromEntries(Object.entries(theme).flatMap(function(param) {
|
|
2649
|
+
var [key, value] = param, proxied2 = {
|
|
2650
|
+
...value,
|
|
2651
|
+
get val() {
|
|
2652
|
+
return globalThis.tamaguiAvoidTracking || track(key), value.val;
|
|
2653
|
+
},
|
|
2654
|
+
get(platform) {
|
|
2655
|
+
var outVal = (0, import_createVariable.getVariable)(value);
|
|
2656
|
+
if (platform !== "web" && import_constants2.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && !(0, import_shouldDeoptDueToParentScheme.shouldDeoptDueToParentScheme)(curThemeManger) && scheme) {
|
|
2657
|
+
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = {
|
|
2658
|
+
dynamic: {
|
|
2659
|
+
[scheme]: color,
|
|
2660
|
+
[oppositeScheme]: oppositeColor
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
return dynamicVal;
|
|
2664
|
+
}
|
|
2665
|
+
return track(key), outVal;
|
|
2701
2666
|
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2667
|
+
};
|
|
2668
|
+
return [
|
|
2669
|
+
[
|
|
2670
|
+
key,
|
|
2671
|
+
proxied2
|
|
2672
|
+
],
|
|
2673
|
+
[
|
|
2674
|
+
`$${key}`,
|
|
2675
|
+
proxied2
|
|
2676
|
+
]
|
|
2677
|
+
];
|
|
2678
|
+
}));
|
|
2679
|
+
return ProxiedThemes.set(theme, proxied1), proxied1;
|
|
2705
2680
|
}
|
|
2706
2681
|
var activeThemeManagers = /* @__PURE__ */ new Set(), _uidToManager = /* @__PURE__ */ new WeakMap(), _idToUID = {}, getId = function(id) {
|
|
2707
2682
|
return _idToUID[id];
|
|
@@ -4597,14 +4572,14 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4597
4572
|
}
|
|
4598
4573
|
});
|
|
4599
4574
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
4600
|
-
var import_constants2 = require_index_native2(),
|
|
4601
|
-
...
|
|
4575
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
4576
|
+
...import_helpers2.stylePropsAll,
|
|
4602
4577
|
translateX: !0,
|
|
4603
4578
|
translateY: !0
|
|
4604
4579
|
};
|
|
4605
4580
|
function normalizeValueWithProperty(value) {
|
|
4606
4581
|
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
4607
|
-
if (!import_constants2.isWeb ||
|
|
4582
|
+
if (!import_constants2.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
4608
4583
|
var res = value;
|
|
4609
4584
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
4610
4585
|
}
|
|
@@ -4614,7 +4589,7 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4614
4589
|
if (rcache[cssRule]) return rcache[cssRule];
|
|
4615
4590
|
if (cssRule) {
|
|
4616
4591
|
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
4617
|
-
return cssVal.startsWith("var(") ? res = cssVal :
|
|
4592
|
+
return cssVal.startsWith("var(") ? res = cssVal : import_helpers2.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, res;
|
|
4618
4593
|
}
|
|
4619
4594
|
}
|
|
4620
4595
|
}
|
|
@@ -5365,7 +5340,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5365
5340
|
}
|
|
5366
5341
|
});
|
|
5367
5342
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
5368
|
-
var import_constants2 = require_index_native2(),
|
|
5343
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_normalizeStyle = require_normalizeStyle_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), propMapper = function(key, value, styleState, disabled, map) {
|
|
5369
5344
|
if (disabled) return map(key, value);
|
|
5370
5345
|
if (lastFontFamilyToken = null, !(!import_constants2.isAndroid && key === "elevationAndroid")) {
|
|
5371
5346
|
var { conf, styleProps, staticConfig } = styleState;
|
|
@@ -5556,7 +5531,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5556
5531
|
break;
|
|
5557
5532
|
}
|
|
5558
5533
|
}
|
|
5559
|
-
for (var cat in
|
|
5534
|
+
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
5560
5535
|
var res = tokensParsed[cat][value];
|
|
5561
5536
|
res != null && (valOrVar = res, hasSet = !0);
|
|
5562
5537
|
}
|
|
@@ -5758,9 +5733,9 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5758
5733
|
}
|
|
5759
5734
|
});
|
|
5760
5735
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
5761
|
-
var import_constants2 = require_index_native2(),
|
|
5762
|
-
function isValidStyleKey(key,
|
|
5763
|
-
return key in
|
|
5736
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants2.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
|
|
5737
|
+
function isValidStyleKey(key, validStyles2, accept) {
|
|
5738
|
+
return key in validStyles2 ? !0 : accept && key in accept;
|
|
5764
5739
|
}
|
|
5765
5740
|
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) {
|
|
5766
5741
|
var _loop = function(keyOg2) {
|
|
@@ -5776,7 +5751,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5776
5751
|
if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
|
|
5777
5752
|
return "continue";
|
|
5778
5753
|
}
|
|
5779
|
-
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit,
|
|
5754
|
+
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles2, accept);
|
|
5780
5755
|
if (0) {
|
|
5781
5756
|
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
5782
5757
|
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
@@ -5794,7 +5769,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5794
5769
|
return "continue";
|
|
5795
5770
|
}
|
|
5796
5771
|
if (0) var didUseKeyInit;
|
|
5797
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in
|
|
5772
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
|
|
5798
5773
|
if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
|
|
5799
5774
|
var parts = keyInit.split("-");
|
|
5800
5775
|
if (
|
|
@@ -5823,11 +5798,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5823
5798
|
viewProps[key4] = val2;
|
|
5824
5799
|
return;
|
|
5825
5800
|
}
|
|
5826
|
-
if (!isHOC && isValidStyleKey(key4,
|
|
5801
|
+
if (!isHOC && isValidStyleKey(key4, validStyles2, accept) || import_constants2.isAndroid && key4 === "elevation") {
|
|
5827
5802
|
mergeStyle(styleState, key4, val2);
|
|
5828
5803
|
return;
|
|
5829
5804
|
}
|
|
5830
|
-
if (isPseudo = key4 in
|
|
5805
|
+
if (isPseudo = key4 in import_helpers2.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
|
|
5831
5806
|
var _props_key;
|
|
5832
5807
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
5833
5808
|
}
|
|
@@ -5852,8 +5827,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5852
5827
|
var pseudoStyles = (0, import_getStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
5853
5828
|
try {
|
|
5854
5829
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
5855
|
-
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[
|
|
5856
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle[
|
|
5830
|
+
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers2.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
5831
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle[import_helpers2.StyleObjectIdentifier], isMediaOrPseudo1, !0));
|
|
5857
5832
|
}
|
|
5858
5833
|
} catch (err) {
|
|
5859
5834
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -5905,10 +5880,10 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5905
5880
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
5906
5881
|
try {
|
|
5907
5882
|
for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = !0) {
|
|
5908
|
-
var style3 = _step12.value, property = style3[
|
|
5883
|
+
var style3 = _step12.value, property = style3[import_helpers2.StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
5909
5884
|
if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
|
|
5910
|
-
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[
|
|
5911
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[
|
|
5885
|
+
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers2.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers2.StyleObjectPseudo] || ""}`;
|
|
5886
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[import_helpers2.StyleObjectIdentifier], !0, !0));
|
|
5912
5887
|
}
|
|
5913
5888
|
}
|
|
5914
5889
|
} catch (err) {
|
|
@@ -5978,7 +5953,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5978
5953
|
});
|
|
5979
5954
|
};
|
|
5980
5955
|
props.reddish && (debug = "verbose"), conf = conf || (0, import_config.getConfig)(), import_constants2.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
5981
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0,
|
|
5956
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles2 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers2.stylePropsText : import_helpers2.validStyles), styleState = {
|
|
5982
5957
|
classNames,
|
|
5983
5958
|
conf,
|
|
5984
5959
|
props,
|
|
@@ -6105,7 +6080,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6105
6080
|
if (import_constants2.isWeb && (val == null ? void 0 : val[0]) === "_") {
|
|
6106
6081
|
var _usedKeys, _key;
|
|
6107
6082
|
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
6108
|
-
} else if (key in
|
|
6083
|
+
} else if (key in import_helpers2.stylePropsTransform) {
|
|
6109
6084
|
var _styleState;
|
|
6110
6085
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
6111
6086
|
} else {
|
|
@@ -6127,7 +6102,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6127
6102
|
var shouldSkip = !staticConfig.isHOC && key1 in import_skipProps.skipProps && !styleProps.noSkip;
|
|
6128
6103
|
if (shouldSkip) return key = key1, "continue";
|
|
6129
6104
|
(0, import_propMapper.propMapper)(key1, val, styleState, !1, function(skey, sval) {
|
|
6130
|
-
skey in
|
|
6105
|
+
skey in import_helpers2.validPseudoKeys && (sval = getSubStyle(styleState, skey, sval, avoidMergeTransform)), !avoidMergeTransform && skey in import_helpers2.stylePropsTransform ? mergeTransform(styleOut, skey, sval) : styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key1);
|
|
6131
6106
|
}), key = key1;
|
|
6132
6107
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
6133
6108
|
for (var key in styleIn) _loop(key);
|
|
@@ -6142,7 +6117,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6142
6117
|
if (0) var identifier;
|
|
6143
6118
|
}
|
|
6144
6119
|
var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animatableDefaults = {
|
|
6145
|
-
...Object.fromEntries(Object.entries(
|
|
6120
|
+
...Object.fromEntries(Object.entries(import_helpers2.tokenCategories.color).map(function(param) {
|
|
6146
6121
|
var [k, v] = param;
|
|
6147
6122
|
return [
|
|
6148
6123
|
k,
|
|
@@ -6194,7 +6169,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6194
6169
|
var out = {};
|
|
6195
6170
|
for (var key in style) {
|
|
6196
6171
|
var val = style[key];
|
|
6197
|
-
key in
|
|
6172
|
+
key in import_helpers2.stylePropsTransform ? mergeTransform(out, key, val) : out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
|
|
6198
6173
|
}
|
|
6199
6174
|
return import_constants2.isWeb && Array.isArray(out.transform) && (out.transform = (0, import_transformsToString.transformsToString)(out.transform)), (0, import_expandStyles.fixStyles)(out), out;
|
|
6200
6175
|
}
|
|
@@ -6715,7 +6690,7 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
6715
6690
|
}
|
|
6716
6691
|
});
|
|
6717
6692
|
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
6718
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
6693
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_helpers2 = require_index_native3();
|
|
6719
6694
|
function wrapStyleTags(styles, content) {
|
|
6720
6695
|
return process.env.TAMAGUI_REACT_19, content;
|
|
6721
6696
|
}
|
|
@@ -6966,7 +6941,7 @@ var require_Slot_native = __commonJS({
|
|
|
6966
6941
|
}
|
|
6967
6942
|
});
|
|
6968
6943
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
6969
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(),
|
|
6944
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), 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) {
|
|
6970
6945
|
var { children, ...slotProps } = props;
|
|
6971
6946
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
6972
6947
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -6997,7 +6972,7 @@ var require_Slot_native = __commonJS({
|
|
|
6997
6972
|
var slotPropValue = slotProps[propName], childPropValue = childProps[propName];
|
|
6998
6973
|
isHTMLChild && propName in pressMap && (propName = pressMap[propName], delete overrideProps[propName]);
|
|
6999
6974
|
var isHandler = handleRegex.test(propName);
|
|
7000
|
-
isHandler ? overrideProps[propName] = (0,
|
|
6975
|
+
isHandler ? overrideProps[propName] = (0, import_helpers2.composeEventHandlers)(childPropValue, slotPropValue) : propName === "style" ? overrideProps[propName] = {
|
|
7001
6976
|
...slotPropValue,
|
|
7002
6977
|
...childPropValue
|
|
7003
6978
|
} : propName === "className" && (overrideProps[propName] = [
|
|
@@ -7081,7 +7056,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7081
7056
|
}
|
|
7082
7057
|
});
|
|
7083
7058
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7084
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(),
|
|
7059
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), 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_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(), import_ThemeDebug = require_ThemeDebug_native(), componentSetStates = /* @__PURE__ */ new Set();
|
|
7085
7060
|
typeof document < "u" && (cancelTouches = function() {
|
|
7086
7061
|
componentSetStates.forEach(function(setState) {
|
|
7087
7062
|
return setState(function(prev) {
|
|
@@ -7231,7 +7206,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7231
7206
|
});
|
|
7232
7207
|
(isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`));
|
|
7233
7208
|
}
|
|
7234
|
-
groupName && (nonTamaguiProps.onLayout = (0,
|
|
7209
|
+
groupName && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7235
7210
|
stateRef.current.group.emit(groupName, {
|
|
7236
7211
|
layout: e.nativeEvent.layout
|
|
7237
7212
|
}), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
|
|
@@ -7463,7 +7438,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7463
7438
|
acceptsClassName: !0,
|
|
7464
7439
|
memo: !0,
|
|
7465
7440
|
componentName: "Spacer",
|
|
7466
|
-
validStyles:
|
|
7441
|
+
validStyles: import_helpers2.validStyles,
|
|
7467
7442
|
defaultProps: {
|
|
7468
7443
|
...import_constants22.stackDefaultStyles,
|
|
7469
7444
|
// avoid nesting issues
|
|
@@ -7716,7 +7691,7 @@ var require_createVariables_native = __commonJS({
|
|
|
7716
7691
|
}
|
|
7717
7692
|
});
|
|
7718
7693
|
module2.exports = __toCommonJS2(createVariables_exports);
|
|
7719
|
-
var
|
|
7694
|
+
var import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), cache2 = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) {
|
|
7720
7695
|
var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", isFont = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
7721
7696
|
if (cache2.has(tokens)) return tokens;
|
|
7722
7697
|
var res = {}, i = 0;
|
|
@@ -7727,7 +7702,7 @@ var require_createVariables_native = __commonJS({
|
|
|
7727
7702
|
res[key] = val;
|
|
7728
7703
|
continue;
|
|
7729
7704
|
}
|
|
7730
|
-
var niceKey = (0,
|
|
7705
|
+
var niceKey = (0, import_helpers2.simpleHash)(key, 1e3), name = parentPath && parentPath !== "t-color" ? `${parentPath}-${niceKey}` : `c-${niceKey}`;
|
|
7731
7706
|
if (val && typeof val == "object") {
|
|
7732
7707
|
res[key] = createVariables(tokens[key], name, !1);
|
|
7733
7708
|
continue;
|
|
@@ -7839,7 +7814,7 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
7839
7814
|
}
|
|
7840
7815
|
});
|
|
7841
7816
|
module2.exports = __toCommonJS2(proxyThemeToParents_exports);
|
|
7842
|
-
var
|
|
7817
|
+
var themesRaw = {};
|
|
7843
7818
|
function proxyThemesToParents(dedupedThemes) {
|
|
7844
7819
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7845
7820
|
try {
|
|
@@ -7900,21 +7875,24 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
7900
7875
|
return themes;
|
|
7901
7876
|
}
|
|
7902
7877
|
function proxyThemeToParents(themeName, theme) {
|
|
7903
|
-
var cur = [], parents = themeName.split("_").slice(0, -1).map(function(part) {
|
|
7878
|
+
var out = {}, cur = [], parents = themeName.split("_").slice(0, -1).map(function(part) {
|
|
7904
7879
|
return cur.push(part), cur.join("_");
|
|
7905
|
-
}),
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
key == "undefined" || Reflect.has(target, key)) return Reflect.get(target, key);
|
|
7911
|
-
for (var i = numParents - 1; i >= 0; i--) {
|
|
7912
|
-
var parent = themesRaw[parents[i]];
|
|
7913
|
-
if (parent && Reflect.has(parent, key)) return Reflect.get(parent, key);
|
|
7914
|
-
}
|
|
7915
|
-
return (0, import_config.getTokenObject)(key);
|
|
7880
|
+
}), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7881
|
+
try {
|
|
7882
|
+
for (var _iterator = parents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
7883
|
+
var parent = _step.value;
|
|
7884
|
+
Object.assign(out, themesRaw[parent]);
|
|
7916
7885
|
}
|
|
7917
|
-
})
|
|
7886
|
+
} catch (err) {
|
|
7887
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7888
|
+
} finally {
|
|
7889
|
+
try {
|
|
7890
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7891
|
+
} finally {
|
|
7892
|
+
if (_didIteratorError) throw _iteratorError;
|
|
7893
|
+
}
|
|
7894
|
+
}
|
|
7895
|
+
return Object.assign(out, theme), out;
|
|
7918
7896
|
}
|
|
7919
7897
|
}
|
|
7920
7898
|
});
|
|
@@ -9272,10 +9250,10 @@ var require_Stack_native = __commonJS({
|
|
|
9272
9250
|
}
|
|
9273
9251
|
});
|
|
9274
9252
|
module2.exports = __toCommonJS2(Stack_exports);
|
|
9275
|
-
var
|
|
9253
|
+
var import_helpers2 = require_index_native3(), import_constants2 = require_constants_native2(), import_createComponent = require_createComponent_native(), Stack2 = (0, import_createComponent.createComponent)({
|
|
9276
9254
|
acceptsClassName: !0,
|
|
9277
9255
|
defaultProps: import_constants2.stackDefaultStyles,
|
|
9278
|
-
validStyles:
|
|
9256
|
+
validStyles: import_helpers2.validStyles
|
|
9279
9257
|
});
|
|
9280
9258
|
Stack2.displayName = "Stack";
|
|
9281
9259
|
}
|
|
@@ -9450,10 +9428,10 @@ var require_View_native = __commonJS({
|
|
|
9450
9428
|
}
|
|
9451
9429
|
});
|
|
9452
9430
|
module2.exports = __toCommonJS2(View_exports);
|
|
9453
|
-
var
|
|
9431
|
+
var import_helpers2 = require_index_native3(), import_constants2 = require_constants_native2(), import_createComponent = require_createComponent_native(), View2 = (0, import_createComponent.createComponent)({
|
|
9454
9432
|
acceptsClassName: !0,
|
|
9455
9433
|
defaultProps: import_constants2.stackDefaultStyles,
|
|
9456
|
-
validStyles:
|
|
9434
|
+
validStyles: import_helpers2.validStyles
|
|
9457
9435
|
});
|
|
9458
9436
|
}
|
|
9459
9437
|
});
|
|
@@ -9501,7 +9479,7 @@ var require_Text_native = __commonJS({
|
|
|
9501
9479
|
}
|
|
9502
9480
|
});
|
|
9503
9481
|
module2.exports = __toCommonJS2(Text_exports);
|
|
9504
|
-
var
|
|
9482
|
+
var import_helpers2 = require_index_native3(), import_createComponent = require_createComponent_native(), ellipsisStyle = {
|
|
9505
9483
|
numberOfLines: 1,
|
|
9506
9484
|
lineBreakMode: "clip"
|
|
9507
9485
|
}, Text2 = (0, import_createComponent.createComponent)({
|
|
@@ -9526,8 +9504,8 @@ var require_Text_native = __commonJS({
|
|
|
9526
9504
|
}
|
|
9527
9505
|
},
|
|
9528
9506
|
validStyles: {
|
|
9529
|
-
...
|
|
9530
|
-
...
|
|
9507
|
+
...import_helpers2.validStyles,
|
|
9508
|
+
...import_helpers2.stylePropsTextOnly
|
|
9531
9509
|
}
|
|
9532
9510
|
});
|
|
9533
9511
|
Text2.displayName = "Text";
|
|
@@ -11930,8 +11908,28 @@ var tm, measureElement = async function(target) {
|
|
|
11930
11908
|
// src/vendor/Pressability.native.tsx
|
|
11931
11909
|
var Pressability = require_fake_react_native().default, usePressability = (init_idFn(), __toCommonJS(idFn_exports)).default;
|
|
11932
11910
|
|
|
11911
|
+
// src/addNativeValidStyles.native.ts
|
|
11912
|
+
var import_helpers = __toESM(require_index_native3()), import_ReactNativeVersion = __toESM(require("react-native/Libraries/Core/ReactNativeVersion"));
|
|
11913
|
+
function addNativeValidStyles() {
|
|
11914
|
+
if (import_ReactNativeVersion.default) {
|
|
11915
|
+
var { version: { major, minor } } = import_ReactNativeVersion.default;
|
|
11916
|
+
if (major === 0 && minor >= 77) {
|
|
11917
|
+
var additional = {
|
|
11918
|
+
boxSizing: !0,
|
|
11919
|
+
mixBlendMode: !0,
|
|
11920
|
+
outlineWidth: !0,
|
|
11921
|
+
outlineStyle: !0,
|
|
11922
|
+
outlineSpread: !0,
|
|
11923
|
+
outlineColor: !0
|
|
11924
|
+
};
|
|
11925
|
+
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
11926
|
+
}
|
|
11927
|
+
}
|
|
11928
|
+
}
|
|
11929
|
+
|
|
11933
11930
|
// src/index.tsx
|
|
11934
11931
|
__reExport(index_exports, __toESM(require_index_native8()), module.exports);
|
|
11932
|
+
addNativeValidStyles();
|
|
11935
11933
|
var createTamagui = function(conf) {
|
|
11936
11934
|
return conf.media && (conf.media = (0, import_react_native_media_driver.createMedia)(conf.media)), (0, import_web.createTamagui)(conf);
|
|
11937
11935
|
}, baseViews = getBaseViews();
|