@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/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
|
|
|
@@ -1228,7 +1213,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1228
1213
|
}
|
|
1229
1214
|
});
|
|
1230
1215
|
module2.exports = __toCommonJS2(createVariable_exports);
|
|
1231
|
-
var import_constants2 = require_index_native2(),
|
|
1216
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_config = require_config_native();
|
|
1232
1217
|
function constructCSSVariableName(name) {
|
|
1233
1218
|
return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
1234
1219
|
}
|
|
@@ -1239,7 +1224,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1239
1224
|
return {
|
|
1240
1225
|
isVar: !0,
|
|
1241
1226
|
key,
|
|
1242
|
-
name: skipHash ? name : (0,
|
|
1227
|
+
name: skipHash ? name : (0, import_helpers2.simpleHash)(name, 40),
|
|
1243
1228
|
val,
|
|
1244
1229
|
variable: import_constants2.isWeb ? skipHash ? constructCSSVariableName(name) : createCSSVariable(name) : ""
|
|
1245
1230
|
};
|
|
@@ -1280,7 +1265,7 @@ var require_createVariable_native = __commonJS({
|
|
|
1280
1265
|
var createCSSVariable = function(nameProp) {
|
|
1281
1266
|
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1282
1267
|
if (process.env.NODE_ENV === "development" && (!nameProp || typeof nameProp != "string")) throw new Error(`createCSSVariable expected string, got: ${nameProp}`);
|
|
1283
|
-
var name = (0,
|
|
1268
|
+
var name = (0, import_helpers2.simpleHash)(nameProp, 60);
|
|
1284
1269
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
1285
1270
|
};
|
|
1286
1271
|
}
|
|
@@ -1356,7 +1341,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1356
1341
|
}
|
|
1357
1342
|
});
|
|
1358
1343
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
1359
|
-
var import_constants2 = require_index_native2(),
|
|
1344
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms2 = {}, getAllSelectors = function() {
|
|
1360
1345
|
return allSelectors;
|
|
1361
1346
|
}, getAllRules = function() {
|
|
1362
1347
|
return Object.values(allRules);
|
|
@@ -1604,9 +1589,9 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1604
1589
|
}
|
|
1605
1590
|
if (!sheet) return;
|
|
1606
1591
|
for (var key in rulesToInsert) {
|
|
1607
|
-
var styleObject = rulesToInsert[key], identifier = styleObject[
|
|
1592
|
+
var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers2.StyleObjectIdentifier];
|
|
1608
1593
|
if (shouldInsertStyleRules(identifier)) {
|
|
1609
|
-
var rules = styleObject[
|
|
1594
|
+
var rules = styleObject[import_helpers2.StyleObjectRules];
|
|
1610
1595
|
allSelectors[identifier] = rules.join(`
|
|
1611
1596
|
`), track(identifier), updateRules(identifier, rules);
|
|
1612
1597
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
@@ -2849,73 +2834,61 @@ var require_useTheme_native = __commonJS({
|
|
|
2849
2834
|
process.env.NODE_ENV === "development" && (state != null && state.theme || process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.error(`[tamagui] No theme found, this could be due to an invalid theme name (given theme props ${JSON.stringify(props)}).
|
|
2850
2835
|
|
|
2851
2836
|
If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`));
|
|
2852
|
-
var themeProxied = (
|
|
2853
|
-
return keys.current && (keys.current = null), !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state, props.deopt, keys, themeManager, props.debug);
|
|
2854
|
-
}, [
|
|
2855
|
-
state == null ? void 0 : state.theme,
|
|
2856
|
-
themeManager,
|
|
2857
|
-
props.deopt,
|
|
2858
|
-
props.debug
|
|
2859
|
-
]);
|
|
2837
|
+
var themeProxied = getThemeProxied(props, state, keys, themeManager);
|
|
2860
2838
|
return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(` \u{1F539} [${themeManager == null ? void 0 : themeManager.id}] useTheme =>`, state == null ? void 0 : state.name), console.info("returning state", changedThemeState.state, changedThemeState.isNewTheme, "from props", props), console.groupEnd()), [
|
|
2861
2839
|
changedThemeState,
|
|
2862
2840
|
themeProxied
|
|
2863
2841
|
];
|
|
2864
|
-
};
|
|
2865
|
-
function getThemeProxied(
|
|
2866
|
-
var
|
|
2867
|
-
if (!theme) return
|
|
2868
|
-
|
|
2842
|
+
}, emptyObject = {}, ProxiedThemes = /* @__PURE__ */ new Map(), curKeys, curProps, curThemeManger;
|
|
2843
|
+
function getThemeProxied(_props, state, _keys, _themeManager) {
|
|
2844
|
+
var theme = state == null ? void 0 : state.theme;
|
|
2845
|
+
if (!theme || !_themeManager) return emptyObject;
|
|
2846
|
+
if (curKeys = _keys, curProps = _props, curThemeManger = _themeManager, ProxiedThemes.has(theme)) {
|
|
2847
|
+
var proxied = ProxiedThemes.get(theme);
|
|
2848
|
+
return proxied;
|
|
2849
|
+
}
|
|
2850
|
+
var { name, scheme } = state, config = (0, import_config.getConfig)();
|
|
2869
2851
|
function track(key) {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
[scheme]: color,
|
|
2897
|
-
[oppositeScheme]: oppositeColor
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
|
-
return dynamicVal;
|
|
2901
|
-
}
|
|
2902
|
-
return process.env.NODE_ENV === "development" && debug && console.info(` \u{1F3A8} useTheme() tracking new key because of:
|
|
2903
|
-
not web: ${platform !== "web"}
|
|
2904
|
-
isIOS: ${import_constants2.isIos}
|
|
2905
|
-
deopt: ${deopt}
|
|
2906
|
-
fastScheme: ${(0, import_config.getSetting)("fastSchemeChange")}
|
|
2907
|
-
inversed: ${getIsInversed(themeManager)}
|
|
2908
|
-
`), track(keyString), outVal;
|
|
2909
|
-
};
|
|
2910
|
-
return Reflect.get(val, subkey);
|
|
2911
|
-
}
|
|
2912
|
-
});
|
|
2913
|
-
if (process.env.NODE_ENV === "development" && process.env.TAMAGUI_FEAT_THROW_ON_MISSING_THEME_VALUE === "1") throw new Error(`[tamagui] No theme key "${key}" found in theme ${name}.
|
|
2914
|
-
Keys in theme: ${Object.keys(theme).join(", ")}`);
|
|
2852
|
+
curKeys && (curKeys.current || (curKeys.current = []), curKeys.current.push(key), process.env.NODE_ENV === "development" && curProps.debug && console.info(` \u{1F3A8} useTheme() tracking new key: ${key}`));
|
|
2853
|
+
}
|
|
2854
|
+
var proxied1 = Object.fromEntries(Object.entries(theme).flatMap(function(param) {
|
|
2855
|
+
var [key, value] = param, proxied2 = {
|
|
2856
|
+
...value,
|
|
2857
|
+
get val() {
|
|
2858
|
+
return globalThis.tamaguiAvoidTracking || track(key), value.val;
|
|
2859
|
+
},
|
|
2860
|
+
get(platform) {
|
|
2861
|
+
var outVal = (0, import_createVariable.getVariable)(value);
|
|
2862
|
+
if (platform !== "web" && import_constants2.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && !(0, import_shouldDeoptDueToParentScheme.shouldDeoptDueToParentScheme)(curThemeManger) && scheme) {
|
|
2863
|
+
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 = {
|
|
2864
|
+
dynamic: {
|
|
2865
|
+
[scheme]: color,
|
|
2866
|
+
[oppositeScheme]: oppositeColor
|
|
2867
|
+
}
|
|
2868
|
+
};
|
|
2869
|
+
return dynamicVal;
|
|
2870
|
+
}
|
|
2871
|
+
return process.env.NODE_ENV === "development" && curProps.debug && console.info(` \u{1F3A8} useTheme() tracking new key because of:
|
|
2872
|
+
not web: ${platform !== "web"}
|
|
2873
|
+
isIOS: ${import_constants2.isIos}
|
|
2874
|
+
deopt: ${curProps.deopt}
|
|
2875
|
+
fastScheme: ${(0, import_config.getSetting)("fastSchemeChange")}
|
|
2876
|
+
inversed: ${getIsInversed(curThemeManger)}
|
|
2877
|
+
`), track(key), outVal;
|
|
2915
2878
|
}
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2879
|
+
};
|
|
2880
|
+
return [
|
|
2881
|
+
[
|
|
2882
|
+
key,
|
|
2883
|
+
proxied2
|
|
2884
|
+
],
|
|
2885
|
+
[
|
|
2886
|
+
`$${key}`,
|
|
2887
|
+
proxied2
|
|
2888
|
+
]
|
|
2889
|
+
];
|
|
2890
|
+
}));
|
|
2891
|
+
return ProxiedThemes.set(theme, proxied1), proxied1;
|
|
2919
2892
|
}
|
|
2920
2893
|
function getIsInversed(manager) {
|
|
2921
2894
|
for (var isInversed = !1, cur = manager; cur; ) {
|
|
@@ -4929,14 +4902,14 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4929
4902
|
}
|
|
4930
4903
|
});
|
|
4931
4904
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
4932
|
-
var import_constants2 = require_index_native2(),
|
|
4933
|
-
...
|
|
4905
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
4906
|
+
...import_helpers2.stylePropsAll,
|
|
4934
4907
|
translateX: !0,
|
|
4935
4908
|
translateY: !0
|
|
4936
4909
|
};
|
|
4937
4910
|
function normalizeValueWithProperty(value) {
|
|
4938
4911
|
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
4939
|
-
if (!import_constants2.isWeb ||
|
|
4912
|
+
if (!import_constants2.isWeb || import_helpers2.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean") return value;
|
|
4940
4913
|
var res = value;
|
|
4941
4914
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
4942
4915
|
}
|
|
@@ -4949,7 +4922,7 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4949
4922
|
return;
|
|
4950
4923
|
}
|
|
4951
4924
|
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
4952
|
-
return cssVal.startsWith("var(") ? res = cssVal :
|
|
4925
|
+
return cssVal.startsWith("var(") ? res = cssVal : import_helpers2.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
4953
4926
|
res,
|
|
4954
4927
|
cssVal,
|
|
4955
4928
|
cssRule,
|
|
@@ -5705,7 +5678,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5705
5678
|
}
|
|
5706
5679
|
});
|
|
5707
5680
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
5708
|
-
var import_constants2 = require_index_native2(),
|
|
5681
|
+
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) {
|
|
5709
5682
|
if (disabled) return map(key, value);
|
|
5710
5683
|
if (lastFontFamilyToken = null, !(!import_constants2.isAndroid && key === "elevationAndroid")) {
|
|
5711
5684
|
var { conf, styleProps, staticConfig } = styleState;
|
|
@@ -5908,7 +5881,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5908
5881
|
break;
|
|
5909
5882
|
}
|
|
5910
5883
|
}
|
|
5911
|
-
for (var cat in
|
|
5884
|
+
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
5912
5885
|
var res = tokensParsed[cat][value];
|
|
5913
5886
|
res != null && (valOrVar = res, hasSet = !0);
|
|
5914
5887
|
}
|
|
@@ -6111,9 +6084,9 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6111
6084
|
}
|
|
6112
6085
|
});
|
|
6113
6086
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6114
|
-
var import_constants2 = require_index_native2(),
|
|
6115
|
-
function isValidStyleKey(key,
|
|
6116
|
-
return key in
|
|
6087
|
+
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 = "-";
|
|
6088
|
+
function isValidStyleKey(key, validStyles2, accept) {
|
|
6089
|
+
return key in validStyles2 ? !0 : accept && key in accept;
|
|
6117
6090
|
}
|
|
6118
6091
|
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) {
|
|
6119
6092
|
var _loop = function(keyOg2) {
|
|
@@ -6129,7 +6102,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6129
6102
|
if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
|
|
6130
6103
|
return "continue";
|
|
6131
6104
|
}
|
|
6132
|
-
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit,
|
|
6105
|
+
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles2, accept);
|
|
6133
6106
|
if (0) {
|
|
6134
6107
|
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
6135
6108
|
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
@@ -6147,7 +6120,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6147
6120
|
return "continue";
|
|
6148
6121
|
}
|
|
6149
6122
|
if (0) var didUseKeyInit;
|
|
6150
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in
|
|
6123
|
+
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);
|
|
6151
6124
|
if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
|
|
6152
6125
|
var parts = keyInit.split("-");
|
|
6153
6126
|
if (
|
|
@@ -6186,11 +6159,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6186
6159
|
viewProps[key4] = val2;
|
|
6187
6160
|
return;
|
|
6188
6161
|
}
|
|
6189
|
-
if (!isHOC && isValidStyleKey(key4,
|
|
6162
|
+
if (!isHOC && isValidStyleKey(key4, validStyles2, accept) || import_constants2.isAndroid && key4 === "elevation") {
|
|
6190
6163
|
mergeStyle(styleState, key4, val2);
|
|
6191
6164
|
return;
|
|
6192
6165
|
}
|
|
6193
|
-
if (isPseudo = key4 in
|
|
6166
|
+
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)) {
|
|
6194
6167
|
var _props_key;
|
|
6195
6168
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6196
6169
|
}
|
|
@@ -6225,8 +6198,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6225
6198
|
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
6226
6199
|
try {
|
|
6227
6200
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6228
|
-
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[
|
|
6229
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle[
|
|
6201
|
+
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers2.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
6202
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), mergeClassName(transforms, classNames, fullKey, psuedoStyle[import_helpers2.StyleObjectIdentifier], isMediaOrPseudo1, !0));
|
|
6230
6203
|
}
|
|
6231
6204
|
} catch (err) {
|
|
6232
6205
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -6299,12 +6272,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6299
6272
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
6300
6273
|
try {
|
|
6301
6274
|
for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = !0) {
|
|
6302
|
-
var style3 = _step12.value, property = style3[
|
|
6275
|
+
var style3 = _step12.value, property = style3[import_helpers2.StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
6303
6276
|
if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
|
|
6304
6277
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
6305
6278
|
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
|
|
6306
|
-
var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[
|
|
6307
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[
|
|
6279
|
+
var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers2.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers2.StyleObjectPseudo] || ""}`;
|
|
6280
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[import_helpers2.StyleObjectIdentifier], !0, !0));
|
|
6308
6281
|
}
|
|
6309
6282
|
}
|
|
6310
6283
|
} catch (err) {
|
|
@@ -6393,7 +6366,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6393
6366
|
}
|
|
6394
6367
|
};
|
|
6395
6368
|
props.reddish && (debug = "verbose"), conf = conf || (0, import_config.getConfig)(), import_constants2.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
6396
|
-
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,
|
|
6369
|
+
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);
|
|
6397
6370
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
|
|
6398
6371
|
var styleState = {
|
|
6399
6372
|
classNames,
|
|
@@ -6548,7 +6521,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6548
6521
|
if (import_constants2.isWeb && (val == null ? void 0 : val[0]) === "_") {
|
|
6549
6522
|
var _usedKeys, _key;
|
|
6550
6523
|
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
6551
|
-
} else if (key in
|
|
6524
|
+
} else if (key in import_helpers2.stylePropsTransform) {
|
|
6552
6525
|
var _styleState;
|
|
6553
6526
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
6554
6527
|
} else {
|
|
@@ -6570,7 +6543,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6570
6543
|
var shouldSkip = !staticConfig.isHOC && key1 in import_skipProps.skipProps && !styleProps.noSkip;
|
|
6571
6544
|
if (shouldSkip) return key = key1, "continue";
|
|
6572
6545
|
(0, import_propMapper.propMapper)(key1, val, styleState, !1, function(skey, sval) {
|
|
6573
|
-
skey in
|
|
6546
|
+
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);
|
|
6574
6547
|
}), key = key1;
|
|
6575
6548
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
6576
6549
|
for (var key in styleIn) _loop(key);
|
|
@@ -6585,7 +6558,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6585
6558
|
if (0) var identifier;
|
|
6586
6559
|
}
|
|
6587
6560
|
var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animatableDefaults = {
|
|
6588
|
-
...Object.fromEntries(Object.entries(
|
|
6561
|
+
...Object.fromEntries(Object.entries(import_helpers2.tokenCategories.color).map(function(param) {
|
|
6589
6562
|
var [k, v] = param;
|
|
6590
6563
|
return [
|
|
6591
6564
|
k,
|
|
@@ -6637,7 +6610,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6637
6610
|
var out = {};
|
|
6638
6611
|
for (var key in style) {
|
|
6639
6612
|
var val = style[key];
|
|
6640
|
-
key in
|
|
6613
|
+
key in import_helpers2.stylePropsTransform ? mergeTransform(out, key, val) : out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
|
|
6641
6614
|
}
|
|
6642
6615
|
return import_constants2.isWeb && Array.isArray(out.transform) && (out.transform = (0, import_transformsToString.transformsToString)(out.transform)), (0, import_expandStyles.fixStyles)(out), out;
|
|
6643
6616
|
}
|
|
@@ -7164,7 +7137,7 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7164
7137
|
}
|
|
7165
7138
|
});
|
|
7166
7139
|
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
7167
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
7140
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_helpers2 = require_index_native3();
|
|
7168
7141
|
function wrapStyleTags(styles, content) {
|
|
7169
7142
|
return process.env.TAMAGUI_REACT_19, content;
|
|
7170
7143
|
}
|
|
@@ -7420,7 +7393,7 @@ var require_Slot_native = __commonJS({
|
|
|
7420
7393
|
}
|
|
7421
7394
|
});
|
|
7422
7395
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
7423
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(),
|
|
7396
|
+
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) {
|
|
7424
7397
|
var { children, ...slotProps } = props;
|
|
7425
7398
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
7426
7399
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -7451,7 +7424,7 @@ var require_Slot_native = __commonJS({
|
|
|
7451
7424
|
var slotPropValue = slotProps[propName], childPropValue = childProps[propName];
|
|
7452
7425
|
isHTMLChild && propName in pressMap && (propName = pressMap[propName], delete overrideProps[propName]);
|
|
7453
7426
|
var isHandler = handleRegex.test(propName);
|
|
7454
|
-
isHandler ? overrideProps[propName] = (0,
|
|
7427
|
+
isHandler ? overrideProps[propName] = (0, import_helpers2.composeEventHandlers)(childPropValue, slotPropValue) : propName === "style" ? overrideProps[propName] = {
|
|
7455
7428
|
...slotPropValue,
|
|
7456
7429
|
...childPropValue
|
|
7457
7430
|
} : propName === "className" && (overrideProps[propName] = [
|
|
@@ -7535,7 +7508,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7535
7508
|
}
|
|
7536
7509
|
});
|
|
7537
7510
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7538
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(),
|
|
7511
|
+
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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
7539
7512
|
typeof document < "u" && (cancelTouches = function() {
|
|
7540
7513
|
componentSetStates.forEach(function(setState) {
|
|
7541
7514
|
return setState(function(prev) {
|
|
@@ -7763,7 +7736,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7763
7736
|
}
|
|
7764
7737
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7765
7738
|
|
|
7766
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, groupName && (nonTamaguiProps.onLayout = (0,
|
|
7739
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, groupName && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7767
7740
|
stateRef.current.group.emit(groupName, {
|
|
7768
7741
|
layout: e.nativeEvent.layout
|
|
7769
7742
|
}), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
|
|
@@ -8072,7 +8045,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8072
8045
|
acceptsClassName: !0,
|
|
8073
8046
|
memo: !0,
|
|
8074
8047
|
componentName: "Spacer",
|
|
8075
|
-
validStyles:
|
|
8048
|
+
validStyles: import_helpers2.validStyles,
|
|
8076
8049
|
defaultProps: {
|
|
8077
8050
|
...import_constants22.stackDefaultStyles,
|
|
8078
8051
|
// avoid nesting issues
|
|
@@ -8325,7 +8298,7 @@ var require_createVariables_native = __commonJS({
|
|
|
8325
8298
|
}
|
|
8326
8299
|
});
|
|
8327
8300
|
module2.exports = __toCommonJS2(createVariables_exports);
|
|
8328
|
-
var
|
|
8301
|
+
var import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), cache2 = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) {
|
|
8329
8302
|
var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", isFont = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
8330
8303
|
if (cache2.has(tokens)) return tokens;
|
|
8331
8304
|
var res = {}, i = 0;
|
|
@@ -8336,7 +8309,7 @@ var require_createVariables_native = __commonJS({
|
|
|
8336
8309
|
res[key] = val;
|
|
8337
8310
|
continue;
|
|
8338
8311
|
}
|
|
8339
|
-
var niceKey = (0,
|
|
8312
|
+
var niceKey = (0, import_helpers2.simpleHash)(key, 1e3), name = parentPath && parentPath !== "t-color" ? `${parentPath}-${niceKey}` : `c-${niceKey}`;
|
|
8340
8313
|
if (val && typeof val == "object") {
|
|
8341
8314
|
res[key] = createVariables(tokens[key], name, !1);
|
|
8342
8315
|
continue;
|
|
@@ -8448,7 +8421,7 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
8448
8421
|
}
|
|
8449
8422
|
});
|
|
8450
8423
|
module2.exports = __toCommonJS2(proxyThemeToParents_exports);
|
|
8451
|
-
var
|
|
8424
|
+
var themesRaw = {};
|
|
8452
8425
|
function proxyThemesToParents(dedupedThemes) {
|
|
8453
8426
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
8454
8427
|
try {
|
|
@@ -8509,21 +8482,24 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
8509
8482
|
return themes;
|
|
8510
8483
|
}
|
|
8511
8484
|
function proxyThemeToParents(themeName, theme) {
|
|
8512
|
-
var cur = [], parents = themeName.split("_").slice(0, -1).map(function(part) {
|
|
8485
|
+
var out = {}, cur = [], parents = themeName.split("_").slice(0, -1).map(function(part) {
|
|
8513
8486
|
return cur.push(part), cur.join("_");
|
|
8514
|
-
}),
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
key == "undefined" || Reflect.has(target, key)) return Reflect.get(target, key);
|
|
8520
|
-
for (var i = numParents - 1; i >= 0; i--) {
|
|
8521
|
-
var parent = themesRaw[parents[i]];
|
|
8522
|
-
if (parent && Reflect.has(parent, key)) return Reflect.get(parent, key);
|
|
8523
|
-
}
|
|
8524
|
-
return (0, import_config.getTokenObject)(key);
|
|
8487
|
+
}), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
8488
|
+
try {
|
|
8489
|
+
for (var _iterator = parents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
8490
|
+
var parent = _step.value;
|
|
8491
|
+
Object.assign(out, themesRaw[parent]);
|
|
8525
8492
|
}
|
|
8526
|
-
})
|
|
8493
|
+
} catch (err) {
|
|
8494
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
8495
|
+
} finally {
|
|
8496
|
+
try {
|
|
8497
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
8498
|
+
} finally {
|
|
8499
|
+
if (_didIteratorError) throw _iteratorError;
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
return Object.assign(out, theme), out;
|
|
8527
8503
|
}
|
|
8528
8504
|
}
|
|
8529
8505
|
});
|
|
@@ -9885,10 +9861,10 @@ var require_Stack_native = __commonJS({
|
|
|
9885
9861
|
}
|
|
9886
9862
|
});
|
|
9887
9863
|
module2.exports = __toCommonJS2(Stack_exports);
|
|
9888
|
-
var
|
|
9864
|
+
var import_helpers2 = require_index_native3(), import_constants2 = require_constants_native2(), import_createComponent = require_createComponent_native(), Stack2 = (0, import_createComponent.createComponent)({
|
|
9889
9865
|
acceptsClassName: !0,
|
|
9890
9866
|
defaultProps: import_constants2.stackDefaultStyles,
|
|
9891
|
-
validStyles:
|
|
9867
|
+
validStyles: import_helpers2.validStyles
|
|
9892
9868
|
});
|
|
9893
9869
|
Stack2.displayName = "Stack";
|
|
9894
9870
|
}
|
|
@@ -10063,10 +10039,10 @@ var require_View_native = __commonJS({
|
|
|
10063
10039
|
}
|
|
10064
10040
|
});
|
|
10065
10041
|
module2.exports = __toCommonJS2(View_exports);
|
|
10066
|
-
var
|
|
10042
|
+
var import_helpers2 = require_index_native3(), import_constants2 = require_constants_native2(), import_createComponent = require_createComponent_native(), View2 = (0, import_createComponent.createComponent)({
|
|
10067
10043
|
acceptsClassName: !0,
|
|
10068
10044
|
defaultProps: import_constants2.stackDefaultStyles,
|
|
10069
|
-
validStyles:
|
|
10045
|
+
validStyles: import_helpers2.validStyles
|
|
10070
10046
|
});
|
|
10071
10047
|
}
|
|
10072
10048
|
});
|
|
@@ -10114,7 +10090,7 @@ var require_Text_native = __commonJS({
|
|
|
10114
10090
|
}
|
|
10115
10091
|
});
|
|
10116
10092
|
module2.exports = __toCommonJS2(Text_exports);
|
|
10117
|
-
var
|
|
10093
|
+
var import_helpers2 = require_index_native3(), import_createComponent = require_createComponent_native(), ellipsisStyle = {
|
|
10118
10094
|
numberOfLines: 1,
|
|
10119
10095
|
lineBreakMode: "clip"
|
|
10120
10096
|
}, Text2 = (0, import_createComponent.createComponent)({
|
|
@@ -10139,8 +10115,8 @@ var require_Text_native = __commonJS({
|
|
|
10139
10115
|
}
|
|
10140
10116
|
},
|
|
10141
10117
|
validStyles: {
|
|
10142
|
-
...
|
|
10143
|
-
...
|
|
10118
|
+
...import_helpers2.validStyles,
|
|
10119
|
+
...import_helpers2.stylePropsTextOnly
|
|
10144
10120
|
}
|
|
10145
10121
|
});
|
|
10146
10122
|
Text2.displayName = "Text";
|
|
@@ -12547,8 +12523,28 @@ var tm, measureElement = async function(target) {
|
|
|
12547
12523
|
// src/vendor/Pressability.native.tsx
|
|
12548
12524
|
var Pressability = require_fake_react_native().default, usePressability = (init_idFn(), __toCommonJS(idFn_exports)).default;
|
|
12549
12525
|
|
|
12526
|
+
// src/addNativeValidStyles.native.ts
|
|
12527
|
+
var import_helpers = __toESM(require_index_native3()), import_ReactNativeVersion = __toESM(require("react-native/Libraries/Core/ReactNativeVersion"));
|
|
12528
|
+
function addNativeValidStyles() {
|
|
12529
|
+
if (import_ReactNativeVersion.default) {
|
|
12530
|
+
var { version: { major, minor } } = import_ReactNativeVersion.default;
|
|
12531
|
+
if (major === 0 && minor >= 77) {
|
|
12532
|
+
var additional = {
|
|
12533
|
+
boxSizing: !0,
|
|
12534
|
+
mixBlendMode: !0,
|
|
12535
|
+
outlineWidth: !0,
|
|
12536
|
+
outlineStyle: !0,
|
|
12537
|
+
outlineSpread: !0,
|
|
12538
|
+
outlineColor: !0
|
|
12539
|
+
};
|
|
12540
|
+
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
12541
|
+
}
|
|
12542
|
+
}
|
|
12543
|
+
}
|
|
12544
|
+
|
|
12550
12545
|
// src/index.tsx
|
|
12551
12546
|
__reExport(index_exports, __toESM(require_index_native8()), module.exports);
|
|
12547
|
+
addNativeValidStyles();
|
|
12552
12548
|
var createTamagui = function(conf) {
|
|
12553
12549
|
return conf.media && (conf.media = (0, import_react_native_media_driver.createMedia)(conf.media)), (0, import_web.createTamagui)(conf);
|
|
12554
12550
|
}, baseViews = getBaseViews();
|