@tamagui/core 1.75.9 → 1.77.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/native.js +61 -34
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +30 -4
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -2367,7 +2367,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2367
2367
|
// @ts-ignore
|
|
2368
2368
|
prefixes[mediaKey]
|
|
2369
2369
|
), prefix = groupMediaKey ? `@container ${containerName}` : "@media";
|
|
2370
|
-
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: inline-size) {${styleRule}}`);
|
|
2370
|
+
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: ${conf.settings.webContainerType || "inline-size"}) {${styleRule}}`);
|
|
2371
2371
|
}
|
|
2372
2372
|
return {
|
|
2373
2373
|
property,
|
|
@@ -3064,6 +3064,30 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
3066
|
|
|
3067
|
+
// ../web/dist/cjs/helpers/log.native.js
|
|
3068
|
+
var require_log_native = __commonJS({
|
|
3069
|
+
"../web/dist/cjs/helpers/log.native.js"(exports, module2) {
|
|
3070
|
+
"use strict";
|
|
3071
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3072
|
+
for (var name in all)
|
|
3073
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3074
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3075
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3076
|
+
for (let key of __getOwnPropNames2(from))
|
|
3077
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3078
|
+
return to;
|
|
3079
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
3080
|
+
__export2(log_exports, {
|
|
3081
|
+
log: () => log
|
|
3082
|
+
});
|
|
3083
|
+
module2.exports = __toCommonJS2(log_exports);
|
|
3084
|
+
function log(...args) {
|
|
3085
|
+
if (process.env.NODE_ENV !== "production")
|
|
3086
|
+
return console.log(...args);
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
});
|
|
3090
|
+
|
|
3067
3091
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
3068
3092
|
var require_expandStyle_native = __commonJS({
|
|
3069
3093
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
|
|
@@ -3488,7 +3512,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3488
3512
|
useSplitStyles: () => useSplitStyles
|
|
3489
3513
|
});
|
|
3490
3514
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3491
|
-
var import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), 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_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), fontFamilyKey = "fontFamily", IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-", getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
3515
|
+
var import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), 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_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), fontFamilyKey = "fontFamily", IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-", getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
3492
3516
|
var _a, _b, _c, _e, _f, _g;
|
|
3493
3517
|
conf = conf || (0, import_config.getConfig)(), import_constants2.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
3494
3518
|
let { shorthands } = conf, {
|
|
@@ -3515,7 +3539,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3515
3539
|
context,
|
|
3516
3540
|
debug
|
|
3517
3541
|
};
|
|
3518
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"),
|
|
3542
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
|
|
3519
3543
|
props,
|
|
3520
3544
|
staticConfig,
|
|
3521
3545
|
shouldDoClasses,
|
|
@@ -3584,7 +3608,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3584
3608
|
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
3585
3609
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
3586
3610
|
`\u{1F539}\u{1F539}\u{1F539}\u{1F539} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""} \u{1F539}\u{1F539}\u{1F539}\u{1F539}`
|
|
3587
|
-
),
|
|
3611
|
+
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants2.isClient && (0, import_log.log)({
|
|
3588
3612
|
variants,
|
|
3589
3613
|
variant: variants == null ? void 0 : variants[keyInit],
|
|
3590
3614
|
isVariant,
|
|
@@ -3601,7 +3625,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3601
3625
|
if (next && (styleState.fontFamily = next), process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
3602
3626
|
console.groupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
|
|
3603
3627
|
try {
|
|
3604
|
-
!import_constants2.isServer && import_isDevTools.isDevTools && (
|
|
3628
|
+
!import_constants2.isServer && import_isDevTools.isDevTools && ((0, import_log.log)({
|
|
3605
3629
|
expanded,
|
|
3606
3630
|
styleProps,
|
|
3607
3631
|
componentState,
|
|
@@ -3612,7 +3636,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3612
3636
|
theme,
|
|
3613
3637
|
usedKeys: { ...usedKeys },
|
|
3614
3638
|
curProps: { ...styleState.curProps }
|
|
3615
|
-
}),
|
|
3639
|
+
}), (0, import_log.log)("expanded", expanded, `
|
|
3616
3640
|
usedKeys`, { ...usedKeys }, `
|
|
3617
3641
|
current`, {
|
|
3618
3642
|
...style
|
|
@@ -3625,7 +3649,7 @@ current`, {
|
|
|
3625
3649
|
for (let [key, val] of expanded)
|
|
3626
3650
|
if (!(val == null || key in usedKeys)) {
|
|
3627
3651
|
if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key in variants, (inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || ((_b = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _b[keyInit]))) {
|
|
3628
|
-
passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`),
|
|
3652
|
+
passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`), (0, import_log.log)({ val, after: { ...viewProps[key] } }), console.groupEnd());
|
|
3629
3653
|
continue;
|
|
3630
3654
|
}
|
|
3631
3655
|
if (isPseudo) {
|
|
@@ -3648,12 +3672,12 @@ current`, {
|
|
|
3648
3672
|
}
|
|
3649
3673
|
if (shouldDoClasses && !isEnter && !isExit) {
|
|
3650
3674
|
let pseudoStyles = (0, import_getStylesAtomic.generateAtomicStyles)(pseudoStyleObject, descriptor);
|
|
3651
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key),
|
|
3675
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key), (0, import_log.log)({ pseudoStyleObject, pseudoStyles }), console.groupEnd());
|
|
3652
3676
|
for (let psuedoStyle of pseudoStyles)
|
|
3653
3677
|
`${psuedoStyle.property}${PROP_SPLIT}${descriptor.name}` in usedKeys || psuedoStyle.identifier;
|
|
3654
3678
|
} else {
|
|
3655
3679
|
let descriptorKey = descriptor.stateKey || descriptor.name, pseudoState = componentState[descriptorKey], isDisabled = isExit ? !styleProps.isExiting : !pseudoState;
|
|
3656
|
-
import_constants2.isWeb && !import_constants2.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }),
|
|
3680
|
+
import_constants2.isWeb && !import_constants2.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }), (0, import_log.log)(pseudoStyleObject, {
|
|
3657
3681
|
isDisabled,
|
|
3658
3682
|
descriptorKey,
|
|
3659
3683
|
descriptor,
|
|
@@ -3670,7 +3694,7 @@ current`, {
|
|
|
3670
3694
|
}
|
|
3671
3695
|
} else {
|
|
3672
3696
|
let curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
|
|
3673
|
-
shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3697
|
+
shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" subKey", pkey, shouldMerge, {
|
|
3674
3698
|
importance,
|
|
3675
3699
|
curImportance,
|
|
3676
3700
|
pkey,
|
|
@@ -3706,7 +3730,7 @@ current`, {
|
|
|
3706
3730
|
// TODO try true like pseudo
|
|
3707
3731
|
!1
|
|
3708
3732
|
), mediaKeyShort = key.slice(1);
|
|
3709
|
-
process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3733
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(` \u{1F4FA} ${key}`, {
|
|
3710
3734
|
key,
|
|
3711
3735
|
val,
|
|
3712
3736
|
mediaStyle,
|
|
@@ -3723,7 +3747,7 @@ current`, {
|
|
|
3723
3747
|
usedKeys,
|
|
3724
3748
|
!0
|
|
3725
3749
|
);
|
|
3726
|
-
importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3750
|
+
importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(
|
|
3727
3751
|
`Found more important space for current media ${mediaKeyShort}: ${val} (importance: ${importance})`
|
|
3728
3752
|
));
|
|
3729
3753
|
}
|
|
@@ -3738,7 +3762,7 @@ current`, {
|
|
|
3738
3762
|
!1,
|
|
3739
3763
|
priority
|
|
3740
3764
|
);
|
|
3741
|
-
`${style2.property}${PROP_SPLIT}${mediaKeyShort}` in usedKeys || out.identifier;
|
|
3765
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out), `${style2.property}${PROP_SPLIT}${mediaKeyShort}` in usedKeys || out.identifier;
|
|
3742
3766
|
}
|
|
3743
3767
|
} else {
|
|
3744
3768
|
let isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group";
|
|
@@ -3808,7 +3832,7 @@ current`, {
|
|
|
3808
3832
|
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
3809
3833
|
console.groupCollapsed(" \u2714\uFE0F expand complete", keyInit);
|
|
3810
3834
|
try {
|
|
3811
|
-
|
|
3835
|
+
(0, import_log.log)("style", { ...style }), (0, import_log.log)("transforms", { ...transforms }), (0, import_log.log)("viewProps", { ...viewProps });
|
|
3812
3836
|
} catch {
|
|
3813
3837
|
}
|
|
3814
3838
|
console.groupEnd();
|
|
@@ -3840,7 +3864,7 @@ current`, {
|
|
|
3840
3864
|
let overrideFace = (_g = (_f = faceInfo[style.fontWeight]) == null ? void 0 : _f[style.fontStyle || "normal"]) == null ? void 0 : _g.val;
|
|
3841
3865
|
overrideFace && (style.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style.fontWeight, delete style.fontStyle);
|
|
3842
3866
|
}
|
|
3843
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" &&
|
|
3867
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
|
|
3844
3868
|
}
|
|
3845
3869
|
if (className && (classNames.className = className), process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
3846
3870
|
console.groupCollapsed(" \u{1F539} ===>");
|
|
@@ -3856,7 +3880,7 @@ current`, {
|
|
|
3856
3880
|
parentSplitStyles
|
|
3857
3881
|
};
|
|
3858
3882
|
for (let key in logs)
|
|
3859
|
-
|
|
3883
|
+
(0, import_log.log)(key, logs[key]);
|
|
3860
3884
|
} catch {
|
|
3861
3885
|
}
|
|
3862
3886
|
console.groupEnd();
|
|
@@ -4327,6 +4351,13 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4327
4351
|
return Reflect.get(val, subkey);
|
|
4328
4352
|
}
|
|
4329
4353
|
});
|
|
4354
|
+
if (process.env.NODE_ENV === "development" && process.env.TAMAGUI_FEAT_THROW_ON_MISSING_THEME_VALUE === "1")
|
|
4355
|
+
throw new Error(
|
|
4356
|
+
`[tamagui] No theme key "${key}" found in theme ${name}.
|
|
4357
|
+
Keys in theme: ${Object.keys(
|
|
4358
|
+
theme
|
|
4359
|
+
).join(", ")}`
|
|
4360
|
+
);
|
|
4330
4361
|
}
|
|
4331
4362
|
return Reflect.get(_, key);
|
|
4332
4363
|
}
|
|
@@ -4722,7 +4753,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4722
4753
|
spacedChildren: () => spacedChildren
|
|
4723
4754
|
});
|
|
4724
4755
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
4725
|
-
var import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_mergeProps = require_mergeProps_native(), import_proxyThemeVariables = require_proxyThemeVariables_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4756
|
+
var import_compose_refs = require_index_native5(), import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_proxyThemeVariables = require_proxyThemeVariables_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4726
4757
|
if (typeof document < "u") {
|
|
4727
4758
|
let cancelTouches = () => {
|
|
4728
4759
|
mouseUps.forEach((x) => x()), mouseUps.clear();
|
|
@@ -4756,7 +4787,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4756
4787
|
(0, import_config.onConfiguredOnce)((conf) => {
|
|
4757
4788
|
if (config = conf, !tamaguiConfig && (tamaguiConfig = conf, !initialTheme)) {
|
|
4758
4789
|
let next = conf.themes[Object.keys(conf.themes)[0]];
|
|
4759
|
-
initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme ||
|
|
4790
|
+
initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme || (0, import_log.log)("Warning: Missing theme"));
|
|
4760
4791
|
}
|
|
4761
4792
|
});
|
|
4762
4793
|
let {
|
|
@@ -4767,7 +4798,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4767
4798
|
validStyles: validStyles2 = {},
|
|
4768
4799
|
variants = {}
|
|
4769
4800
|
} = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, defaultProps = staticConfig.defaultProps;
|
|
4770
|
-
process.env.NODE_ENV === "development" && (_a = staticConfig.defaultProps) != null && _a.debug && process.env.IS_STATIC !== "is_static" &&
|
|
4801
|
+
process.env.NODE_ENV === "development" && (_a = staticConfig.defaultProps) != null && _a.debug && process.env.IS_STATIC !== "is_static" && (0, import_log.log)(`\u{1F41B} [${staticConfig.componentName || "Component"}]`, {
|
|
4771
4802
|
staticConfig,
|
|
4772
4803
|
defaultProps,
|
|
4773
4804
|
defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
|
|
@@ -4872,7 +4903,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4872
4903
|
"background: green; color: white;"
|
|
4873
4904
|
), import_constants2.isServer || (console.groupCollapsed(
|
|
4874
4905
|
`Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
|
|
4875
|
-
),
|
|
4906
|
+
), (0, import_log.log)({
|
|
4876
4907
|
propsIn,
|
|
4877
4908
|
props,
|
|
4878
4909
|
state,
|
|
@@ -4926,14 +4957,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4926
4957
|
keys: mediaListeningKeys
|
|
4927
4958
|
});
|
|
4928
4959
|
let isAnimatedReactNativeWeb = hasAnimationProp && isReactNative;
|
|
4929
|
-
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.
|
|
4930
|
-
"props in",
|
|
4931
|
-
propsIn,
|
|
4932
|
-
"mapped to",
|
|
4933
|
-
props,
|
|
4934
|
-
"in order",
|
|
4935
|
-
Object.keys(props)
|
|
4936
|
-
), console.info("splitStyles", splitStyles), console.info("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.info("className", Object.values(splitStyles.classNames)), import_constants2.isClient && console.info("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
|
|
4960
|
+
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), (0, import_log.log)("props in", propsIn, "mapped to", props, "in order", Object.keys(props)), (0, import_log.log)("splitStyles", splitStyles), (0, import_log.log)("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), (0, import_log.log)("className", Object.values(splitStyles.classNames)), import_constants2.isClient && (0, import_log.log)("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
|
|
4937
4961
|
debugger;
|
|
4938
4962
|
let {
|
|
4939
4963
|
viewProps: viewPropsIn,
|
|
@@ -5111,7 +5135,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5111
5135
|
delayPressOut: viewProps.delayPressOut,
|
|
5112
5136
|
focusable: viewProps.focusable ?? !0,
|
|
5113
5137
|
minPressDuration: 0
|
|
5114
|
-
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" &&
|
|
5138
|
+
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("events", { events, isHoverable, attachPress }), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow, staticConfig);
|
|
5115
5139
|
let direction = props.spaceDirection || "both";
|
|
5116
5140
|
process.env.NODE_ENV === "development" && time && time`hooks`;
|
|
5117
5141
|
let content = !children || asChild ? children : spacedChildren({
|
|
@@ -5162,10 +5186,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5162
5186
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
5163
5187
|
console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> with props`);
|
|
5164
5188
|
try {
|
|
5165
|
-
|
|
5189
|
+
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("viewPropsOrder", Object.keys(viewProps));
|
|
5166
5190
|
for (let key in viewProps)
|
|
5167
|
-
|
|
5168
|
-
|
|
5191
|
+
(0, import_log.log)(" - ", key, viewProps[key]);
|
|
5192
|
+
(0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
|
|
5169
5193
|
viewProps,
|
|
5170
5194
|
state,
|
|
5171
5195
|
styleProps,
|
|
@@ -5317,7 +5341,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5317
5341
|
})
|
|
5318
5342
|
));
|
|
5319
5343
|
}
|
|
5320
|
-
return process.env.NODE_ENV === "development" && props.debug &&
|
|
5344
|
+
return process.env.NODE_ENV === "development" && props.debug && (0, import_log.log)(" Spaced children", final, props), final;
|
|
5321
5345
|
}
|
|
5322
5346
|
function createSpacer({ key, direction, space, spaceFlex }) {
|
|
5323
5347
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -5836,12 +5860,15 @@ ${runtimeStyles}`;
|
|
|
5836
5860
|
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5837
5861
|
let defaultFont = `$${defaultFontName}`, config = {
|
|
5838
5862
|
fonts: {},
|
|
5839
|
-
settings: {},
|
|
5840
5863
|
onlyAllowShorthands: !1,
|
|
5841
5864
|
fontLanguages: [],
|
|
5842
5865
|
animations: {},
|
|
5843
5866
|
media: {},
|
|
5844
5867
|
...configIn,
|
|
5868
|
+
settings: {
|
|
5869
|
+
webContainerType: "size",
|
|
5870
|
+
...configIn.settings
|
|
5871
|
+
},
|
|
5845
5872
|
tokens,
|
|
5846
5873
|
// vite made this into a function if it wasn't set
|
|
5847
5874
|
shorthands,
|