tamagui 1.76.0 → 1.77.1
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 +82 -41
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +51 -11
- package/dist/test.native.js.map +3 -3
- package/package.json +57 -52
- package/types/views/Input.d.ts +2 -2
package/dist/native.js
CHANGED
|
@@ -1726,7 +1726,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
1726
1726
|
// @ts-ignore
|
|
1727
1727
|
prefixes[mediaKey]
|
|
1728
1728
|
), prefix = groupMediaKey ? `@container ${containerName}` : "@media";
|
|
1729
|
-
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: inline-size) {${styleRule}}`);
|
|
1729
|
+
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}}`);
|
|
1730
1730
|
}
|
|
1731
1731
|
return {
|
|
1732
1732
|
property,
|
|
@@ -2423,6 +2423,30 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
2425
|
|
|
2426
|
+
// ../web/dist/cjs/helpers/log.native.js
|
|
2427
|
+
var require_log_native = __commonJS({
|
|
2428
|
+
"../web/dist/cjs/helpers/log.native.js"(exports, module2) {
|
|
2429
|
+
"use strict";
|
|
2430
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2431
|
+
for (var name in all)
|
|
2432
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2433
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2434
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2435
|
+
for (let key of __getOwnPropNames2(from))
|
|
2436
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2437
|
+
return to;
|
|
2438
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
2439
|
+
__export2(log_exports, {
|
|
2440
|
+
log: () => log
|
|
2441
|
+
});
|
|
2442
|
+
module2.exports = __toCommonJS2(log_exports);
|
|
2443
|
+
function log(...args) {
|
|
2444
|
+
if (process.env.NODE_ENV !== "production")
|
|
2445
|
+
return console.log(...args);
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
|
|
2426
2450
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
2427
2451
|
var require_expandStyle_native = __commonJS({
|
|
2428
2452
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
|
|
@@ -2847,7 +2871,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2847
2871
|
useSplitStyles: () => useSplitStyles
|
|
2848
2872
|
});
|
|
2849
2873
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
2850
|
-
var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_react2 = 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) => {
|
|
2874
|
+
var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_react2 = 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) => {
|
|
2851
2875
|
var _a, _b, _c, _e, _f, _g;
|
|
2852
2876
|
conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
2853
2877
|
let { shorthands } = conf, {
|
|
@@ -2874,7 +2898,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2874
2898
|
context,
|
|
2875
2899
|
debug
|
|
2876
2900
|
};
|
|
2877
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"),
|
|
2901
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
|
|
2878
2902
|
props,
|
|
2879
2903
|
staticConfig,
|
|
2880
2904
|
shouldDoClasses,
|
|
@@ -2943,7 +2967,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2943
2967
|
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;
|
|
2944
2968
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
2945
2969
|
`\u{1F539}\u{1F539}\u{1F539}\u{1F539} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""} \u{1F539}\u{1F539}\u{1F539}\u{1F539}`
|
|
2946
|
-
),
|
|
2970
|
+
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants.isClient && (0, import_log.log)({
|
|
2947
2971
|
variants,
|
|
2948
2972
|
variant: variants == null ? void 0 : variants[keyInit],
|
|
2949
2973
|
isVariant,
|
|
@@ -2960,7 +2984,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2960
2984
|
if (next && (styleState.fontFamily = next), process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
2961
2985
|
console.groupCollapsed(" \u{1F4A0} expanded", keyInit, valInit);
|
|
2962
2986
|
try {
|
|
2963
|
-
!import_constants.isServer && import_isDevTools.isDevTools && (
|
|
2987
|
+
!import_constants.isServer && import_isDevTools.isDevTools && ((0, import_log.log)({
|
|
2964
2988
|
expanded,
|
|
2965
2989
|
styleProps,
|
|
2966
2990
|
componentState,
|
|
@@ -2971,7 +2995,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2971
2995
|
theme,
|
|
2972
2996
|
usedKeys: { ...usedKeys },
|
|
2973
2997
|
curProps: { ...styleState.curProps }
|
|
2974
|
-
}),
|
|
2998
|
+
}), (0, import_log.log)("expanded", expanded, `
|
|
2975
2999
|
usedKeys`, { ...usedKeys }, `
|
|
2976
3000
|
current`, {
|
|
2977
3001
|
...style
|
|
@@ -2984,7 +3008,7 @@ current`, {
|
|
|
2984
3008
|
for (let [key, val] of expanded)
|
|
2985
3009
|
if (!(val == null || key in usedKeys)) {
|
|
2986
3010
|
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]))) {
|
|
2987
|
-
passDownProp(viewProps, key, val, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key}`),
|
|
3011
|
+
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());
|
|
2988
3012
|
continue;
|
|
2989
3013
|
}
|
|
2990
3014
|
if (isPseudo) {
|
|
@@ -3007,12 +3031,12 @@ current`, {
|
|
|
3007
3031
|
}
|
|
3008
3032
|
if (shouldDoClasses && !isEnter && !isExit) {
|
|
3009
3033
|
let pseudoStyles = (0, import_getStylesAtomic.generateAtomicStyles)(pseudoStyleObject, descriptor);
|
|
3010
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key),
|
|
3034
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo (classes)", key), (0, import_log.log)({ pseudoStyleObject, pseudoStyles }), console.groupEnd());
|
|
3011
3035
|
for (let psuedoStyle of pseudoStyles)
|
|
3012
3036
|
`${psuedoStyle.property}${PROP_SPLIT}${descriptor.name}` in usedKeys || psuedoStyle.identifier;
|
|
3013
3037
|
} else {
|
|
3014
3038
|
let descriptorKey = descriptor.stateKey || descriptor.name, pseudoState = componentState[descriptorKey], isDisabled = isExit ? !styleProps.isExiting : !pseudoState;
|
|
3015
|
-
import_constants.isWeb && !import_constants.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }),
|
|
3039
|
+
import_constants.isWeb && !import_constants.isClient && isEnter && (isDisabled = !1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key, { isDisabled }), (0, import_log.log)(pseudoStyleObject, {
|
|
3016
3040
|
isDisabled,
|
|
3017
3041
|
descriptorKey,
|
|
3018
3042
|
descriptor,
|
|
@@ -3029,7 +3053,7 @@ current`, {
|
|
|
3029
3053
|
}
|
|
3030
3054
|
} else {
|
|
3031
3055
|
let curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
|
|
3032
|
-
shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3056
|
+
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, {
|
|
3033
3057
|
importance,
|
|
3034
3058
|
curImportance,
|
|
3035
3059
|
pkey,
|
|
@@ -3065,7 +3089,7 @@ current`, {
|
|
|
3065
3089
|
// TODO try true like pseudo
|
|
3066
3090
|
!1
|
|
3067
3091
|
), mediaKeyShort = key.slice(1);
|
|
3068
|
-
process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3092
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(` \u{1F4FA} ${key}`, {
|
|
3069
3093
|
key,
|
|
3070
3094
|
val,
|
|
3071
3095
|
mediaStyle,
|
|
@@ -3082,7 +3106,7 @@ current`, {
|
|
|
3082
3106
|
usedKeys,
|
|
3083
3107
|
!0
|
|
3084
3108
|
);
|
|
3085
|
-
importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
3109
|
+
importance && (space = val.space, usedKeys.space = importance, process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(
|
|
3086
3110
|
`Found more important space for current media ${mediaKeyShort}: ${val} (importance: ${importance})`
|
|
3087
3111
|
));
|
|
3088
3112
|
}
|
|
@@ -3097,7 +3121,7 @@ current`, {
|
|
|
3097
3121
|
!1,
|
|
3098
3122
|
priority
|
|
3099
3123
|
);
|
|
3100
|
-
`${style2.property}${PROP_SPLIT}${mediaKeyShort}` in usedKeys || out.identifier;
|
|
3124
|
+
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;
|
|
3101
3125
|
}
|
|
3102
3126
|
} else {
|
|
3103
3127
|
let isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group";
|
|
@@ -3167,7 +3191,7 @@ current`, {
|
|
|
3167
3191
|
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
3168
3192
|
console.groupCollapsed(" \u2714\uFE0F expand complete", keyInit);
|
|
3169
3193
|
try {
|
|
3170
|
-
|
|
3194
|
+
(0, import_log.log)("style", { ...style }), (0, import_log.log)("transforms", { ...transforms }), (0, import_log.log)("viewProps", { ...viewProps });
|
|
3171
3195
|
} catch {
|
|
3172
3196
|
}
|
|
3173
3197
|
console.groupEnd();
|
|
@@ -3199,7 +3223,7 @@ current`, {
|
|
|
3199
3223
|
let overrideFace = (_g = (_f = faceInfo[style.fontWeight]) == null ? void 0 : _f[style.fontStyle || "normal"]) == null ? void 0 : _g.val;
|
|
3200
3224
|
overrideFace && (style.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style.fontWeight, delete style.fontStyle);
|
|
3201
3225
|
}
|
|
3202
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" &&
|
|
3226
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
|
|
3203
3227
|
}
|
|
3204
3228
|
if (className && (classNames.className = className), process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
3205
3229
|
console.groupCollapsed(" \u{1F539} ===>");
|
|
@@ -3215,7 +3239,7 @@ current`, {
|
|
|
3215
3239
|
parentSplitStyles
|
|
3216
3240
|
};
|
|
3217
3241
|
for (let key in logs)
|
|
3218
|
-
|
|
3242
|
+
(0, import_log.log)(key, logs[key]);
|
|
3219
3243
|
} catch {
|
|
3220
3244
|
}
|
|
3221
3245
|
console.groupEnd();
|
|
@@ -3686,6 +3710,13 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3686
3710
|
return Reflect.get(val, subkey);
|
|
3687
3711
|
}
|
|
3688
3712
|
});
|
|
3713
|
+
if (process.env.NODE_ENV === "development" && process.env.TAMAGUI_FEAT_THROW_ON_MISSING_THEME_VALUE === "1")
|
|
3714
|
+
throw new Error(
|
|
3715
|
+
`[tamagui] No theme key "${key}" found in theme ${name}.
|
|
3716
|
+
Keys in theme: ${Object.keys(
|
|
3717
|
+
theme
|
|
3718
|
+
).join(", ")}`
|
|
3719
|
+
);
|
|
3689
3720
|
}
|
|
3690
3721
|
return Reflect.get(_, key);
|
|
3691
3722
|
}
|
|
@@ -4081,7 +4112,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4081
4112
|
spacedChildren: () => spacedChildren2
|
|
4082
4113
|
});
|
|
4083
4114
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
4084
|
-
var import_compose_refs = require_index_native5(), import_constants = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_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_runtime6 = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4115
|
+
var import_compose_refs = require_index_native5(), import_constants = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_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_runtime6 = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4085
4116
|
if (typeof document < "u") {
|
|
4086
4117
|
let cancelTouches = () => {
|
|
4087
4118
|
mouseUps.forEach((x) => x()), mouseUps.clear();
|
|
@@ -4115,7 +4146,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4115
4146
|
(0, import_config.onConfiguredOnce)((conf) => {
|
|
4116
4147
|
if (config = conf, !tamaguiConfig && (tamaguiConfig = conf, !initialTheme)) {
|
|
4117
4148
|
let next = conf.themes[Object.keys(conf.themes)[0]];
|
|
4118
|
-
initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme ||
|
|
4149
|
+
initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next), process.env.NODE_ENV === "development" && (initialTheme || (0, import_log.log)("Warning: Missing theme"));
|
|
4119
4150
|
}
|
|
4120
4151
|
});
|
|
4121
4152
|
let {
|
|
@@ -4126,7 +4157,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4126
4157
|
validStyles: validStyles2 = {},
|
|
4127
4158
|
variants = {}
|
|
4128
4159
|
} = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, defaultProps = staticConfig.defaultProps;
|
|
4129
|
-
process.env.NODE_ENV === "development" && (_a = staticConfig.defaultProps) != null && _a.debug && process.env.IS_STATIC !== "is_static" &&
|
|
4160
|
+
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"}]`, {
|
|
4130
4161
|
staticConfig,
|
|
4131
4162
|
defaultProps,
|
|
4132
4163
|
defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
|
|
@@ -4231,7 +4262,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4231
4262
|
"background: green; color: white;"
|
|
4232
4263
|
), import_constants.isServer || (console.groupCollapsed(
|
|
4233
4264
|
`Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
|
|
4234
|
-
),
|
|
4265
|
+
), (0, import_log.log)({
|
|
4235
4266
|
propsIn,
|
|
4236
4267
|
props,
|
|
4237
4268
|
state,
|
|
@@ -4285,14 +4316,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4285
4316
|
keys: mediaListeningKeys
|
|
4286
4317
|
});
|
|
4287
4318
|
let isAnimatedReactNativeWeb = hasAnimationProp && isReactNative;
|
|
4288
|
-
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.
|
|
4289
|
-
"props in",
|
|
4290
|
-
propsIn,
|
|
4291
|
-
"mapped to",
|
|
4292
|
-
props,
|
|
4293
|
-
"in order",
|
|
4294
|
-
Object.keys(props)
|
|
4295
|
-
), console.info("splitStyles", splitStyles), console.info("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.info("className", Object.values(splitStyles.classNames)), import_constants.isClient && console.info("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
|
|
4319
|
+
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_constants.isClient && (0, import_log.log)("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
|
|
4296
4320
|
debugger;
|
|
4297
4321
|
let {
|
|
4298
4322
|
viewProps: viewPropsIn,
|
|
@@ -4470,7 +4494,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4470
4494
|
delayPressOut: viewProps.delayPressOut,
|
|
4471
4495
|
focusable: viewProps.focusable ?? !0,
|
|
4472
4496
|
minPressDuration: 0
|
|
4473
|
-
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" &&
|
|
4497
|
+
}), 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);
|
|
4474
4498
|
let direction = props.spaceDirection || "both";
|
|
4475
4499
|
process.env.NODE_ENV === "development" && time && time`hooks`;
|
|
4476
4500
|
let content = !children || asChild ? children : spacedChildren2({
|
|
@@ -4521,10 +4545,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4521
4545
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
4522
4546
|
console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> with props`);
|
|
4523
4547
|
try {
|
|
4524
|
-
|
|
4548
|
+
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("viewPropsOrder", Object.keys(viewProps));
|
|
4525
4549
|
for (let key in viewProps)
|
|
4526
|
-
|
|
4527
|
-
|
|
4550
|
+
(0, import_log.log)(" - ", key, viewProps[key]);
|
|
4551
|
+
(0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
|
|
4528
4552
|
viewProps,
|
|
4529
4553
|
state,
|
|
4530
4554
|
styleProps,
|
|
@@ -4676,7 +4700,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4676
4700
|
})
|
|
4677
4701
|
));
|
|
4678
4702
|
}
|
|
4679
|
-
return process.env.NODE_ENV === "development" && props.debug &&
|
|
4703
|
+
return process.env.NODE_ENV === "development" && props.debug && (0, import_log.log)(" Spaced children", final, props), final;
|
|
4680
4704
|
}
|
|
4681
4705
|
function createSpacer({ key, direction, space, spaceFlex }) {
|
|
4682
4706
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -5195,12 +5219,15 @@ ${runtimeStyles}`;
|
|
|
5195
5219
|
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5196
5220
|
let defaultFont = `$${defaultFontName}`, config = {
|
|
5197
5221
|
fonts: {},
|
|
5198
|
-
settings: {},
|
|
5199
5222
|
onlyAllowShorthands: !1,
|
|
5200
5223
|
fontLanguages: [],
|
|
5201
5224
|
animations: {},
|
|
5202
5225
|
media: {},
|
|
5203
5226
|
...configIn,
|
|
5227
|
+
settings: {
|
|
5228
|
+
webContainerType: "size",
|
|
5229
|
+
...configIn.settings
|
|
5230
|
+
},
|
|
5204
5231
|
tokens,
|
|
5205
5232
|
// vite made this into a function if it wasn't set
|
|
5206
5233
|
shorthands,
|
|
@@ -15355,7 +15382,7 @@ var require_Popover_native = __commonJS({
|
|
|
15355
15382
|
usePopoverContext: () => usePopoverContext
|
|
15356
15383
|
});
|
|
15357
15384
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
15358
|
-
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
15385
|
+
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
15359
15386
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
15360
15387
|
return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15361
15388
|
import_popper.PopperAnchor,
|
|
@@ -15470,7 +15497,6 @@ var require_Popover_native = __commonJS({
|
|
|
15470
15497
|
}
|
|
15471
15498
|
)), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
15472
15499
|
}
|
|
15473
|
-
let freeze = !!(isFullyHidden && freezeContentsWhenHidden);
|
|
15474
15500
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15475
15501
|
import_animate.Animate,
|
|
15476
15502
|
{
|
|
@@ -15497,7 +15523,17 @@ var require_Popover_native = __commonJS({
|
|
|
15497
15523
|
style: {
|
|
15498
15524
|
display: "contents"
|
|
15499
15525
|
},
|
|
15500
|
-
children:
|
|
15526
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15527
|
+
import_focus_scope.FocusScope,
|
|
15528
|
+
{
|
|
15529
|
+
loop: !0,
|
|
15530
|
+
enabled: disableFocusScope ? !1 : open,
|
|
15531
|
+
trapped: trapFocus,
|
|
15532
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
15533
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
15534
|
+
children: contents
|
|
15535
|
+
}
|
|
15536
|
+
)
|
|
15501
15537
|
}
|
|
15502
15538
|
)
|
|
15503
15539
|
},
|
|
@@ -15519,9 +15555,9 @@ var require_Popover_native = __commonJS({
|
|
|
15519
15555
|
)
|
|
15520
15556
|
}
|
|
15521
15557
|
);
|
|
15522
|
-
}), PopoverArrow =
|
|
15523
|
-
let { __scopePopover, ...rest } = props;
|
|
15524
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15558
|
+
}), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
|
|
15559
|
+
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
15560
|
+
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15525
15561
|
import_popper.PopperArrow,
|
|
15526
15562
|
{
|
|
15527
15563
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
@@ -17840,7 +17876,11 @@ var require_createSwitch_native = __commonJS({
|
|
|
17840
17876
|
nativeProps,
|
|
17841
17877
|
children,
|
|
17842
17878
|
...switchProps
|
|
17843
|
-
} = props, native = Array.isArray(nativeProp) ? nativeProp : [nativeProp], shouldRenderMobileNative = !import_core13.isWeb && nativeProp === !0 || !import_core13.isWeb && native.includes("mobile") || native.includes("android") && import_react_native4.Platform.OS === "android" || native.includes("ios") && import_react_native4.Platform.OS === "ios", [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
17879
|
+
} = props, native = Array.isArray(nativeProp) ? nativeProp : [nativeProp], shouldRenderMobileNative = !import_core13.isWeb && nativeProp === !0 || !import_core13.isWeb && native.includes("mobile") || native.includes("android") && import_react_native4.Platform.OS === "android" || native.includes("ios") && import_react_native4.Platform.OS === "ios", [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
17880
|
+
forwardedRef,
|
|
17881
|
+
// @ts-expect-error
|
|
17882
|
+
setButton
|
|
17883
|
+
), labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId, hasConsumerStoppedPropagationRef = React2.useRef(!1), isFormControl = import_core13.isWeb ? button ? !!button.closest("form") : !0 : !1, [frameWidth, setFrameWidth] = React2.useState(0), [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
|
|
17844
17884
|
prop: checkedProp,
|
|
17845
17885
|
defaultProp: defaultChecked || !1,
|
|
17846
17886
|
onChange: onCheckedChange,
|
|
@@ -17864,6 +17904,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
17864
17904
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17865
17905
|
Frame,
|
|
17866
17906
|
{
|
|
17907
|
+
tag: "button",
|
|
17867
17908
|
unstyled,
|
|
17868
17909
|
size: size2,
|
|
17869
17910
|
checked,
|