tamagui 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.
Files changed (45) hide show
  1. package/dist/cjs/views/Input.js +1 -1
  2. package/dist/cjs/views/Input.js.map +1 -1
  3. package/dist/cjs/views/Input.native.js +1 -1
  4. package/dist/cjs/views/Input.native.js.map +1 -1
  5. package/dist/cjs/views/Text.js +1 -1
  6. package/dist/cjs/views/Text.js.map +1 -1
  7. package/dist/cjs/views/Text.native.js +1 -1
  8. package/dist/cjs/views/Text.native.js.map +1 -1
  9. package/dist/cjs/views/TextArea.js +1 -1
  10. package/dist/cjs/views/TextArea.js.map +1 -1
  11. package/dist/cjs/views/TextArea.native.js +1 -1
  12. package/dist/cjs/views/TextArea.native.js.map +1 -1
  13. package/dist/esm/views/Input.js +1 -1
  14. package/dist/esm/views/Input.js.map +1 -1
  15. package/dist/esm/views/Input.native.js +1 -1
  16. package/dist/esm/views/Input.native.js.map +1 -1
  17. package/dist/esm/views/Text.js +1 -1
  18. package/dist/esm/views/Text.js.map +1 -1
  19. package/dist/esm/views/Text.native.js +1 -1
  20. package/dist/esm/views/Text.native.js.map +1 -1
  21. package/dist/esm/views/TextArea.js +1 -1
  22. package/dist/esm/views/TextArea.js.map +1 -1
  23. package/dist/esm/views/TextArea.native.js +1 -1
  24. package/dist/esm/views/TextArea.native.js.map +1 -1
  25. package/dist/jsx/views/Input.js +1 -1
  26. package/dist/jsx/views/Input.js.map +1 -1
  27. package/dist/jsx/views/Input.native.js +1 -1
  28. package/dist/jsx/views/Input.native.js.map +1 -1
  29. package/dist/jsx/views/Text.js +1 -1
  30. package/dist/jsx/views/Text.js.map +1 -1
  31. package/dist/jsx/views/Text.native.js +1 -1
  32. package/dist/jsx/views/Text.native.js.map +1 -1
  33. package/dist/jsx/views/TextArea.js +1 -1
  34. package/dist/jsx/views/TextArea.js.map +1 -1
  35. package/dist/jsx/views/TextArea.native.js +1 -1
  36. package/dist/jsx/views/TextArea.native.js.map +1 -1
  37. package/dist/native.js +144 -147
  38. package/dist/native.js.map +3 -3
  39. package/dist/test.native.js +113 -117
  40. package/dist/test.native.js.map +3 -3
  41. package/package.json +57 -52
  42. package/src/views/Input.tsx +1 -1
  43. package/src/views/Text.tsx +1 -1
  44. package/src/views/TextArea.tsx +1 -1
  45. 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)"), console.info({
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
- ), console.info({ isVariant, valInit, shouldPassProp }), import_constants.isClient && console.info({
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 && (console.info({
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
- }), console.info("expanded", expanded, `
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}`), console.info({ val, after: { ...viewProps[key] } }), console.groupEnd());
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), console.info({ pseudoStyleObject, pseudoStyles }), console.groupEnd());
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 }), console.info(pseudoStyleObject, {
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" && console.info(" subKey", pkey, shouldMerge, {
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" && console.info(` \u{1F4FA} ${key}`, {
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" && console.info(
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
- console.info("style", { ...style }), console.info("transforms", { ...transforms }), console.info("viewProps", { ...viewProps });
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" && console.info(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
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
- console.info(key, logs[key]);
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 || console.info("Warning: Missing theme"));
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" && console.info(`\u{1F41B} [${staticConfig.componentName || "Component"}]`, {
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
- ), console.info({
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.info(
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" && console.info("events", { events, isHoverable, attachPress }), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow, staticConfig);
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
- console.info("viewProps", viewProps), console.info("viewPropsOrder", Object.keys(viewProps));
4548
+ (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("viewPropsOrder", Object.keys(viewProps));
4525
4549
  for (let key in viewProps)
4526
- console.info(" - ", key, viewProps[key]);
4527
- console.info("children", content), typeof window < "u" && console.info({
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 && console.info(" Spaced children", final, props), final;
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,
@@ -8477,7 +8504,7 @@ var require_SizableText_native = __commonJS({
8477
8504
  fontFamily: "$body",
8478
8505
  variants,
8479
8506
  defaultVariants: {
8480
- unstyled: !1
8507
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8481
8508
  }
8482
8509
  });
8483
8510
  }
@@ -8954,7 +8981,7 @@ var require_Accordion_native = __commonJS({
8954
8981
  }
8955
8982
  },
8956
8983
  defaultVariants: {
8957
- unstyled: !1
8984
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8958
8985
  }
8959
8986
  }), AccordionTrigger = AccordionTriggerFrame.styleable(function(props, forwardedRef) {
8960
8987
  let { __scopeAccordion, ...triggerProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
@@ -8979,7 +9006,7 @@ var require_Accordion_native = __commonJS({
8979
9006
  }
8980
9007
  },
8981
9008
  defaultVariants: {
8982
- unstyled: !1
9009
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8983
9010
  }
8984
9011
  }), AccordionContent = AccordionContentFrame.styleable(function(props, forwardedRef) {
8985
9012
  let { __scopeAccordion, ...contentProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
@@ -10661,7 +10688,7 @@ var require_Sheet_native = __commonJS({
10661
10688
  }
10662
10689
  },
10663
10690
  defaultVariants: {
10664
- unstyled: !1
10691
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10665
10692
  }
10666
10693
  }), Overlay = (0, import_core13.styled)(import_stacks3.ThemeableStack, {
10667
10694
  name: import_constants.SHEET_OVERLAY_NAME,
@@ -10687,7 +10714,7 @@ var require_Sheet_native = __commonJS({
10687
10714
  }
10688
10715
  },
10689
10716
  defaultVariants: {
10690
- unstyled: !1
10717
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10691
10718
  }
10692
10719
  }), Frame = (0, import_core13.styled)(import_stacks3.YStack, {
10693
10720
  name: import_constants.SHEET_NAME,
@@ -10705,7 +10732,7 @@ var require_Sheet_native = __commonJS({
10705
10732
  }
10706
10733
  },
10707
10734
  defaultVariants: {
10708
- unstyled: !1
10735
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10709
10736
  }
10710
10737
  }), Sheet = (0, import_createSheet.createSheet)({
10711
10738
  Frame,
@@ -10876,7 +10903,7 @@ var require_Dialog_native = __commonJS({
10876
10903
  }
10877
10904
  },
10878
10905
  defaultVariants: {
10879
- unstyled: !1
10906
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10880
10907
  }
10881
10908
  }), DialogPortalItem = (props) => {
10882
10909
  let themeName = (0, import_core13.useThemeName)(), context = useDialogContext(PORTAL_NAME, props.__scopeDialog);
@@ -10962,7 +10989,7 @@ var require_Dialog_native = __commonJS({
10962
10989
  },
10963
10990
  defaultVariants: {
10964
10991
  size: "$true",
10965
- unstyled: !1
10992
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10966
10993
  }
10967
10994
  }), DialogContent = DialogContentFrame.extractable(
10968
10995
  React2.forwardRef(
@@ -11137,7 +11164,7 @@ var require_Dialog_native = __commonJS({
11137
11164
  }
11138
11165
  },
11139
11166
  defaultVariants: {
11140
- unstyled: !1
11167
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11141
11168
  }
11142
11169
  }), DialogClose = DialogCloseFrame.styleable(
11143
11170
  (props, forwardedRef) => {
@@ -11914,10 +11941,10 @@ var require_useCurrentColor_native = __commonJS({
11914
11941
  });
11915
11942
  module2.exports = __toCommonJS2(useCurrentColor_exports);
11916
11943
  var import_web = require_index_native9(), useCurrentColor = (colorProp) => {
11917
- var _a;
11944
+ var _a, _b;
11918
11945
  let theme = (0, import_web.useTheme)();
11919
11946
  return (0, import_web.getVariable)(
11920
- colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || theme.color.get("web")
11947
+ colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || ((_b = theme.color) == null ? void 0 : _b.get("web"))
11921
11948
  );
11922
11949
  };
11923
11950
  }
@@ -12062,7 +12089,7 @@ var require_Button_native = __commonJS({
12062
12089
  }
12063
12090
  },
12064
12091
  defaultVariants: {
12065
- unstyled: !1
12092
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12066
12093
  }
12067
12094
  }), ButtonText = (0, import_web.styled)(import_text2.SizableText, {
12068
12095
  name: "Button",
@@ -12081,7 +12108,7 @@ var require_Button_native = __commonJS({
12081
12108
  }
12082
12109
  },
12083
12110
  defaultVariants: {
12084
- unstyled: !1
12111
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12085
12112
  }
12086
12113
  }), ButtonIcon = (props) => {
12087
12114
  let { children, scaleIcon = 1 } = props, { size: size2, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon;
@@ -12125,7 +12152,7 @@ var require_Button_native = __commonJS({
12125
12152
  Text3,
12126
12153
  { children: propsIn.children, fontFamily, fontSize, textProps },
12127
12154
  Text3 === ButtonText && propsActive.unstyled !== !0 ? {
12128
- unstyled: !1,
12155
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
12129
12156
  size: size2
12130
12157
  } : void 0
12131
12158
  ), inner = (0, import_web.spacedChildren)({
@@ -12222,7 +12249,7 @@ var require_Card_native = __commonJS({
12222
12249
  }
12223
12250
  },
12224
12251
  defaultVariants: {
12225
- unstyled: !1
12252
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12226
12253
  }
12227
12254
  }), CardHeader = (0, import_web.styled)(import_stacks3.ThemeableStack, {
12228
12255
  name: "CardHeader",
@@ -12242,7 +12269,7 @@ var require_Card_native = __commonJS({
12242
12269
  }
12243
12270
  },
12244
12271
  defaultVariants: {
12245
- unstyled: !1
12272
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12246
12273
  }
12247
12274
  }), CardFooter = (0, import_web.styled)(CardHeader, {
12248
12275
  name: "CardFooter",
@@ -12257,7 +12284,7 @@ var require_Card_native = __commonJS({
12257
12284
  }
12258
12285
  },
12259
12286
  defaultVariants: {
12260
- unstyled: !1
12287
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12261
12288
  }
12262
12289
  }), CardBackground = (0, import_web.styled)(import_stacks3.ThemeableStack, {
12263
12290
  name: "CardBackground",
@@ -12273,7 +12300,7 @@ var require_Card_native = __commonJS({
12273
12300
  }
12274
12301
  },
12275
12302
  defaultVariants: {
12276
- unstyled: !1
12303
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12277
12304
  }
12278
12305
  }), Card = (0, import_web.withStaticProperties)(CardFrame, {
12279
12306
  Header: CardHeader,
@@ -12487,7 +12514,7 @@ var require_Label_native = __commonJS({
12487
12514
  }
12488
12515
  },
12489
12516
  defaultVariants: {
12490
- unstyled: !1
12517
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12491
12518
  }
12492
12519
  }), LabelComponent = React2.forwardRef(
12493
12520
  (props, forwardedRef) => {
@@ -12744,7 +12771,7 @@ var require_Checkbox_native = __commonJS({
12744
12771
  }
12745
12772
  },
12746
12773
  defaultVariants: {
12747
- unstyled: !1
12774
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12748
12775
  }
12749
12776
  }), [createCheckboxContext, createCheckboxScope] = (0, import_create_context.createContextScope)(CHECKBOX_NAME), [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME), CheckboxComponent = CheckboxFrame.styleable(function(props, forwardedRef) {
12750
12777
  let {
@@ -13515,7 +13542,7 @@ var require_Group_native = __commonJS({
13515
13542
  })
13516
13543
  },
13517
13544
  defaultVariants: {
13518
- unstyled: !1
13545
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13519
13546
  }
13520
13547
  });
13521
13548
  function createGroup(verticalDefault) {
@@ -13739,7 +13766,7 @@ var require_ListItem_native = __commonJS({
13739
13766
  }
13740
13767
  },
13741
13768
  defaultVariants: {
13742
- unstyled: !1
13769
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13743
13770
  }
13744
13771
  }), ListItemText = (0, import_web.styled)(import_text2.SizableText, {
13745
13772
  name: "ListItemText",
@@ -13756,7 +13783,7 @@ var require_ListItem_native = __commonJS({
13756
13783
  }
13757
13784
  },
13758
13785
  defaultVariants: {
13759
- unstyled: !1
13786
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13760
13787
  }
13761
13788
  }), ListItemSubtitle = (0, import_web.styled)(ListItemText, {
13762
13789
  name: "ListItemSubtitle",
@@ -13779,7 +13806,7 @@ var require_ListItem_native = __commonJS({
13779
13806
  }
13780
13807
  },
13781
13808
  defaultVariants: {
13782
- unstyled: !1
13809
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13783
13810
  }
13784
13811
  }), ListItemTitle = (0, import_web.styled)(ListItemText, {
13785
13812
  name: "ListItemTitle"
@@ -15180,7 +15207,7 @@ var require_Popper_native = __commonJS({
15180
15207
  }
15181
15208
  },
15182
15209
  defaultVariants: {
15183
- unstyled: !1
15210
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15184
15211
  }
15185
15212
  }), PopperContent = React2.forwardRef(function(props, forwardedRef) {
15186
15213
  let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -15217,7 +15244,7 @@ var require_Popper_native = __commonJS({
15217
15244
  }
15218
15245
  },
15219
15246
  defaultVariants: {
15220
- unstyled: !1
15247
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15221
15248
  }
15222
15249
  }), PopperArrowOuterFrame = (0, import_core13.styled)(import_stacks3.YStack, {
15223
15250
  name: "PopperArrowOuter",
@@ -15234,7 +15261,7 @@ var require_Popper_native = __commonJS({
15234
15261
  }
15235
15262
  },
15236
15263
  defaultVariants: {
15237
- unstyled: !1
15264
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15238
15265
  }
15239
15266
  }), opposites = {
15240
15267
  top: "bottom",
@@ -15302,35 +15329,6 @@ var require_index_native54 = __commonJS({
15302
15329
  }
15303
15330
  });
15304
15331
 
15305
- // ../../node_modules/react-freeze/dist/index.js
15306
- var require_dist2 = __commonJS({
15307
- "../../node_modules/react-freeze/dist/index.js"(exports) {
15308
- function _interopDefault(ex) {
15309
- return ex && typeof ex == "object" && "default" in ex ? ex.default : ex;
15310
- }
15311
- var React2 = require("react"), React__default = _interopDefault(React2);
15312
- function Suspender(_ref) {
15313
- var freeze = _ref.freeze, children = _ref.children, promiseCache = React2.useRef({}).current;
15314
- if (freeze && !promiseCache.promise)
15315
- throw promiseCache.promise = new Promise(function(resolve) {
15316
- promiseCache.resolve = resolve;
15317
- }), promiseCache.promise;
15318
- if (freeze)
15319
- throw promiseCache.promise;
15320
- return promiseCache.promise && (promiseCache.resolve(), promiseCache.promise = void 0), React__default.createElement(React2.Fragment, null, children);
15321
- }
15322
- function Freeze(_ref2) {
15323
- var freeze = _ref2.freeze, children = _ref2.children, _ref2$placeholder = _ref2.placeholder, placeholder = _ref2$placeholder === void 0 ? null : _ref2$placeholder;
15324
- return React__default.createElement(React2.Suspense, {
15325
- fallback: placeholder
15326
- }, React__default.createElement(Suspender, {
15327
- freeze
15328
- }, children));
15329
- }
15330
- exports.Freeze = Freeze;
15331
- }
15332
- });
15333
-
15334
15332
  // ../popover/dist/cjs/useFloatingContext.native.js
15335
15333
  var require_useFloatingContext_native = __commonJS({
15336
15334
  "../popover/dist/cjs/useFloatingContext.native.js"(exports, module2) {
@@ -15384,7 +15382,7 @@ var require_Popover_native = __commonJS({
15384
15382
  usePopoverContext: () => usePopoverContext
15385
15383
  });
15386
15384
  module2.exports = __toCommonJS2(Popover_exports);
15387
- 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_freeze = require_dist2(), 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) {
15388
15386
  let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
15389
15387
  return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15390
15388
  import_popper.PopperAnchor,
@@ -15509,50 +15507,41 @@ var require_Popover_native = __commonJS({
15509
15507
  setIsFullyHidden(!0);
15510
15508
  },
15511
15509
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15512
- FreezeToLastContents,
15510
+ import_popper.PopperContent,
15513
15511
  {
15514
- freeze: !!(isFullyHidden && freezeContentsWhenHidden),
15512
+ __scopePopper: __scopePopover || POPOVER_SCOPE,
15513
+ "data-state": getState(open),
15514
+ id: context.contentId,
15515
+ ref: forwardedRef,
15516
+ ...contentProps,
15515
15517
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15516
- import_popper.PopperContent,
15518
+ import_remove_scroll.RemoveScroll,
15517
15519
  {
15518
- __scopePopper: __scopePopover || POPOVER_SCOPE,
15519
- "data-state": getState(open),
15520
- id: context.contentId,
15521
- ref: forwardedRef,
15522
- ...contentProps,
15520
+ enabled: disableRemoveScroll ? !1 : open,
15521
+ allowPinchZoom: !0,
15522
+ removeScrollBar: !1,
15523
+ style: {
15524
+ display: "contents"
15525
+ },
15523
15526
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15524
- import_remove_scroll.RemoveScroll,
15527
+ import_focus_scope.FocusScope,
15525
15528
  {
15526
- enabled: disableRemoveScroll ? !1 : open,
15527
- allowPinchZoom: !0,
15528
- removeScrollBar: !1,
15529
- style: {
15530
- display: "contents"
15531
- },
15532
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15533
- import_focus_scope.FocusScope,
15534
- {
15535
- loop: !0,
15536
- enabled: disableFocusScope ? !1 : open,
15537
- trapped: trapFocus,
15538
- onMountAutoFocus: onOpenAutoFocus,
15539
- onUnmountAutoFocus: onCloseAutoFocus,
15540
- children: contents
15541
- }
15542
- )
15529
+ loop: !0,
15530
+ enabled: disableFocusScope ? !1 : open,
15531
+ trapped: trapFocus,
15532
+ onMountAutoFocus: onOpenAutoFocus,
15533
+ onUnmountAutoFocus: onCloseAutoFocus,
15534
+ children: contents
15543
15535
  }
15544
15536
  )
15545
- },
15546
- context.contentId
15537
+ }
15547
15538
  )
15548
- }
15539
+ },
15540
+ context.contentId
15549
15541
  )
15550
15542
  }
15551
15543
  );
15552
- }), FreezeToLastContents = (props) => {
15553
- let last = React2.useRef();
15554
- return props.freeze || (last.current = props.children), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_freeze.Freeze, { placeholder: last.current, ...props });
15555
- }, PopoverClose = React2.forwardRef(function(props, forwardedRef) {
15544
+ }), PopoverClose = React2.forwardRef(function(props, forwardedRef) {
15556
15545
  let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
15557
15546
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15558
15547
  import_stacks3.YStack,
@@ -15566,9 +15555,9 @@ var require_Popover_native = __commonJS({
15566
15555
  )
15567
15556
  }
15568
15557
  );
15569
- }), PopoverArrow = React2.forwardRef(function(props, forwardedRef) {
15570
- let { __scopePopover, ...rest } = props;
15571
- 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)(
15572
15561
  import_popper.PopperArrow,
15573
15562
  {
15574
15563
  __scopePopper: __scopePopover || POPOVER_SCOPE,
@@ -15586,6 +15575,8 @@ var require_Popover_native = __commonJS({
15586
15575
  onOpenChange,
15587
15576
  __scopePopover,
15588
15577
  keepChildrenMounted,
15578
+ hoverable,
15579
+ disableFocus,
15589
15580
  ...restProps
15590
15581
  } = props, id = React2.useId(), { when, AdaptProvider } = (0, import_adapt.useAdaptParent)({
15591
15582
  Contents: React2.useCallback(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, { name: `${id}PopoverContents` }), [])
@@ -15593,16 +15584,22 @@ var require_Popover_native = __commonJS({
15593
15584
  prop: openProp,
15594
15585
  defaultProp: defaultOpen || !1,
15595
15586
  onChange: onOpenChange
15596
- }), breakpointActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({ open, setOpen, breakpointActive }), popoverContext = {
15587
+ }), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
15588
+ open,
15589
+ setOpen,
15590
+ disable: sheetActive,
15591
+ hoverable,
15592
+ disableFocus
15593
+ }), popoverContext = {
15597
15594
  id,
15598
15595
  sheetBreakpoint,
15599
15596
  contentId: React2.useId(),
15600
15597
  triggerRef,
15601
15598
  open,
15602
- breakpointActive,
15599
+ breakpointActive: sheetActive,
15603
15600
  onOpenChange: setOpen,
15604
15601
  onOpenToggle: (0, import_core13.useEvent)(() => {
15605
- open && breakpointActive || setOpen(!open);
15602
+ open && sheetActive || setOpen(!open);
15606
15603
  }),
15607
15604
  hasCustomAnchor,
15608
15605
  onCustomAnchorAdd: React2.useCallback(() => setHasCustomAnchor(!0), []),
@@ -15707,7 +15704,7 @@ var require_Progress_native = __commonJS({
15707
15704
  }
15708
15705
  },
15709
15706
  defaultVariants: {
15710
- unstyled: !1
15707
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15711
15708
  }
15712
15709
  }), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
15713
15710
  let { __scopeProgress, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), pct = context.max - (context.value ?? 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100);
@@ -15765,7 +15762,7 @@ var require_Progress_native = __commonJS({
15765
15762
  }
15766
15763
  },
15767
15764
  defaultVariants: {
15768
- unstyled: !1
15765
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15769
15766
  }
15770
15767
  }), Progress = (0, import_core13.withStaticProperties)(
15771
15768
  ProgressFrame.styleable(function(props, forwardedRef) {
@@ -15861,7 +15858,7 @@ var require_RadioGroup_native = __commonJS({
15861
15858
  }
15862
15859
  },
15863
15860
  defaultVariants: {
15864
- unstyled: !1
15861
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15865
15862
  }
15866
15863
  }), RadioIndicator = RadioIndicatorFrame.extractable(
15867
15864
  React2.forwardRef(
@@ -15945,7 +15942,7 @@ var require_RadioGroup_native = __commonJS({
15945
15942
  }
15946
15943
  },
15947
15944
  defaultVariants: {
15948
- unstyled: !1
15945
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15949
15946
  }
15950
15947
  }), RadioGroupItem = RadioGroupItemFrame.extractable(
15951
15948
  React2.forwardRef(
@@ -16514,7 +16511,7 @@ var require_SelectItemText_native = __commonJS({
16514
16511
  }
16515
16512
  },
16516
16513
  defaultVariants: {
16517
- unstyled: !1
16514
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
16518
16515
  }
16519
16516
  }), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
16520
16517
  let { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React2.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React2.useRef();
@@ -17408,7 +17405,7 @@ var require_Slider_native = __commonJS({
17408
17405
  }
17409
17406
  },
17410
17407
  defaultVariants: {
17411
- unstyled: !1
17408
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17412
17409
  }
17413
17410
  }), SliderTrack = React2.forwardRef(
17414
17411
  (props, forwardedRef) => {
@@ -17488,7 +17485,7 @@ var require_Slider_native = __commonJS({
17488
17485
  }
17489
17486
  },
17490
17487
  defaultVariants: {
17491
- unstyled: !1
17488
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17492
17489
  }
17493
17490
  }), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
17494
17491
  let { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
@@ -17693,7 +17690,7 @@ var require_SwitchContext_native = __commonJS({
17693
17690
  disabled: !1,
17694
17691
  size: void 0,
17695
17692
  frameWidth: 0,
17696
- unstyled: !1
17693
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17697
17694
  });
17698
17695
  }
17699
17696
  });
@@ -17741,7 +17738,7 @@ var require_Switch_native = __commonJS({
17741
17738
  }
17742
17739
  },
17743
17740
  defaultVariants: {
17744
- unstyled: !1
17741
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17745
17742
  }
17746
17743
  }), getSwitchHeight = (val) => Math.round((0, import_core13.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.65), getSwitchWidth = (val) => getSwitchHeight(val) * 2, SwitchFrame = (0, import_core13.styled)(import_stacks3.YStack, {
17747
17744
  name: "Switch",
@@ -17779,7 +17776,7 @@ var require_Switch_native = __commonJS({
17779
17776
  }
17780
17777
  },
17781
17778
  defaultVariants: {
17782
- unstyled: !1
17779
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17783
17780
  }
17784
17781
  });
17785
17782
  }
@@ -17835,7 +17832,7 @@ var require_createSwitch_native = __commonJS({
17835
17832
  Thumb,
17836
17833
  {
17837
17834
  ...(unstyledProp ?? unstyledContext ?? !1) === !1 && {
17838
- unstyled: !1,
17835
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
17839
17836
  size: sizeProp ?? sizeContext ?? "$true",
17840
17837
  ...!disableActiveTheme && {
17841
17838
  theme: checked ? "active" : null
@@ -18179,7 +18176,7 @@ var require_Tabs_native = __commonJS({
18179
18176
  }
18180
18177
  },
18181
18178
  defaultVariants: {
18182
- unstyled: !1
18179
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18183
18180
  }
18184
18181
  }), TabsTrigger = TabsTriggerFrame.extractable(
18185
18182
  React2.forwardRef(
@@ -18649,7 +18646,7 @@ var require_Toggle_native = __commonJS({
18649
18646
  }
18650
18647
  },
18651
18648
  defaultVariants: {
18652
- unstyled: !1
18649
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18653
18650
  }
18654
18651
  }), Toggle = React2.forwardRef(function(props, forwardedRef) {
18655
18652
  let {
@@ -18861,7 +18858,7 @@ var require_ToggleGroup_native = __commonJS({
18861
18858
  }
18862
18859
  },
18863
18860
  defaultVariants: {
18864
- unstyled: !1
18861
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18865
18862
  }
18866
18863
  }), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
18867
18864
  import_react2.default.forwardRef(
@@ -19477,7 +19474,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime"), defaultStyles = {
19477
19474
  }
19478
19475
  },
19479
19476
  defaultVariants: {
19480
- unstyled: !1
19477
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
19481
19478
  }
19482
19479
  }), Input = InputFrame.styleable((propsIn, ref) => {
19483
19480
  let props = useInputProps(propsIn, ref);
@@ -19567,7 +19564,7 @@ var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0, impo
19567
19564
  }
19568
19565
  },
19569
19566
  defaultVariants: {
19570
- unstyled: !1
19567
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
19571
19568
  }
19572
19569
  }), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
19573
19570
  let props = useInputProps(propsIn, ref), linesProp = {
@@ -19587,7 +19584,7 @@ var import_core11 = __toESM(require_index_native15()), Text2 = (0, import_core11
19587
19584
  }
19588
19585
  },
19589
19586
  defaultVariants: {
19590
- unstyled: !1
19587
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
19591
19588
  }
19592
19589
  });
19593
19590