@tamagui/core 1.119.1 → 1.119.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +93 -91
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +53 -51
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -7170,108 +7170,110 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7170
7170
|
viewProps[key] = val;
|
|
7171
7171
|
}
|
|
7172
7172
|
}, keyInit = keyOg, valInit = props[keyInit];
|
|
7173
|
-
if (process.env.NODE_ENV === "
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
}
|
|
7180
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
|
|
7181
|
-
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
7182
|
-
if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
|
|
7183
|
-
continue;
|
|
7184
|
-
}
|
|
7185
|
-
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
|
|
7186
|
-
if (0) {
|
|
7187
|
-
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps, _dataSet;
|
|
7188
|
-
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
7189
|
-
var isValidClassName, isMediaOrPseudo;
|
|
7190
|
-
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
|
|
7173
|
+
if (!(process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle")) {
|
|
7174
|
+
if (process.env.NODE_ENV === "development" && debug === "profile" && time`prop-${keyInit}`, accept) {
|
|
7175
|
+
var accepted = accept[keyInit];
|
|
7176
|
+
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
|
|
7177
|
+
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);
|
|
7178
|
+
continue;
|
|
7191
7179
|
}
|
|
7192
7180
|
}
|
|
7193
|
-
if (!
|
|
7194
|
-
if (
|
|
7195
|
-
|
|
7196
|
-
else if (keyInit.startsWith("data-")) continue;
|
|
7197
|
-
}
|
|
7198
|
-
if (keyInit === "dataSet") {
|
|
7199
|
-
for (var keyInit1 in valInit) viewProps[`data-${hyphenate(keyInit1)}`] = valInit[keyInit1];
|
|
7200
|
-
continue;
|
|
7201
|
-
}
|
|
7202
|
-
if (0) var didUseKeyInit;
|
|
7203
|
-
var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
|
|
7204
|
-
if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
|
|
7205
|
-
var name = keyInit.split("-")[1];
|
|
7206
|
-
context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
7207
|
-
}
|
|
7208
|
-
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
|
|
7209
|
-
if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
|
|
7210
|
-
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
7211
|
-
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
7212
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), consoleGroupCollapsed(` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
|
|
7213
|
-
isVariant,
|
|
7214
|
-
valInit,
|
|
7215
|
-
shouldPassProp
|
|
7216
|
-
}), import_constants2.isClient && (0, import_log.log)({
|
|
7217
|
-
variants,
|
|
7218
|
-
variant: variants == null ? void 0 : variants[keyInit],
|
|
7219
|
-
isVariant,
|
|
7220
|
-
isHOCShouldPassThrough,
|
|
7221
|
-
parentStaticConfig
|
|
7222
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) {
|
|
7223
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7181
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
|
|
7182
|
+
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
7183
|
+
if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
|
|
7224
7184
|
continue;
|
|
7225
7185
|
}
|
|
7226
|
-
|
|
7227
|
-
|
|
7186
|
+
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
|
|
7187
|
+
if (0) {
|
|
7188
|
+
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps, _dataSet;
|
|
7189
|
+
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
7190
|
+
var isValidClassName, isMediaOrPseudo;
|
|
7191
|
+
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
|
|
7192
|
+
}
|
|
7193
|
+
}
|
|
7194
|
+
if (!isValidStyleKeyInit) {
|
|
7195
|
+
if (!import_constants2.isAndroid && keyInit === "elevationAndroid") continue;
|
|
7196
|
+
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
7197
|
+
else if (keyInit.startsWith("data-")) continue;
|
|
7198
|
+
}
|
|
7199
|
+
if (keyInit === "dataSet") {
|
|
7200
|
+
for (var keyInit1 in valInit) viewProps[`data-${hyphenate(keyInit1)}`] = valInit[keyInit1];
|
|
7228
7201
|
continue;
|
|
7229
7202
|
}
|
|
7230
|
-
|
|
7231
|
-
var
|
|
7232
|
-
if (
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
next && (styleState.fontFamily = next);
|
|
7203
|
+
if (0) var didUseKeyInit;
|
|
7204
|
+
var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
|
|
7205
|
+
if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
|
|
7206
|
+
var name = keyInit.split("-")[1];
|
|
7207
|
+
context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
7236
7208
|
}
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7209
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
|
|
7210
|
+
if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
|
|
7211
|
+
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
7212
|
+
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
7213
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), consoleGroupCollapsed(` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
|
|
7214
|
+
isVariant,
|
|
7215
|
+
valInit,
|
|
7216
|
+
shouldPassProp
|
|
7217
|
+
}), import_constants2.isClient && (0, import_log.log)({
|
|
7218
|
+
variants,
|
|
7219
|
+
variant: variants == null ? void 0 : variants[keyInit],
|
|
7220
|
+
isVariant,
|
|
7221
|
+
isHOCShouldPassThrough,
|
|
7222
|
+
parentStaticConfig
|
|
7223
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) {
|
|
7224
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7225
|
+
continue;
|
|
7226
|
+
}
|
|
7227
|
+
if (!noSkip && keyInit in import_skipProps.skipProps) {
|
|
7228
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7229
|
+
continue;
|
|
7230
|
+
}
|
|
7231
|
+
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
7232
|
+
var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
|
|
7233
|
+
if (!avoidPropMap) {
|
|
7234
|
+
if (!expanded) continue;
|
|
7235
|
+
var next = (0, import_propMapper.getPropMappedFontFamily)(expanded);
|
|
7236
|
+
next && (styleState.fontFamily = next);
|
|
7237
|
+
}
|
|
7238
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
7239
|
+
consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
|
|
7240
|
+
try {
|
|
7241
|
+
!import_constants2.isServer && import_isDevTools.isDevTools && ((0, import_log.log)({
|
|
7242
|
+
expanded,
|
|
7243
|
+
styleProps,
|
|
7244
|
+
componentState,
|
|
7245
|
+
isVariant,
|
|
7246
|
+
variant: variants == null ? void 0 : variants[keyInit],
|
|
7247
|
+
shouldPassProp,
|
|
7248
|
+
isHOCShouldPassThrough,
|
|
7249
|
+
usedKeys: {
|
|
7250
|
+
...usedKeys
|
|
7251
|
+
}
|
|
7252
|
+
}), globalThis.tamaguiAvoidTracking = !0, (0, import_log.log)("expanded", expanded, `
|
|
7252
7253
|
usedKeys`, {
|
|
7253
|
-
|
|
7254
|
-
|
|
7254
|
+
...usedKeys
|
|
7255
|
+
}, `
|
|
7255
7256
|
current`, {
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7257
|
+
...styleState.style
|
|
7258
|
+
}), globalThis.tamaguiAvoidTracking = !1);
|
|
7259
|
+
} catch {
|
|
7260
|
+
}
|
|
7261
|
+
console.groupEnd();
|
|
7259
7262
|
}
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
}
|
|
7272
|
-
|
|
7263
|
+
for (var key = keyInit, val = valInit, max = expanded ? expanded.length : 1, i = 0; i < max; i++) _loop(i);
|
|
7264
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
7265
|
+
try {
|
|
7266
|
+
(0, import_log.log)(" \u2714\uFE0F expand complete", keyInit), (0, import_log.log)("style", {
|
|
7267
|
+
...styleState.style
|
|
7268
|
+
}), (0, import_log.log)("transforms", {
|
|
7269
|
+
...transforms
|
|
7270
|
+
}), (0, import_log.log)("viewProps", {
|
|
7271
|
+
...viewProps
|
|
7272
|
+
});
|
|
7273
|
+
} catch {
|
|
7274
|
+
}
|
|
7275
|
+
console.groupEnd();
|
|
7273
7276
|
}
|
|
7274
|
-
console.groupEnd();
|
|
7275
7277
|
}
|
|
7276
7278
|
}
|
|
7277
7279
|
}
|