tamagui 3.0.18 → 3.1.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.
Files changed (52) hide show
  1. package/dist/native.cjs +93 -59
  2. package/dist/test.cjs +167 -101
  3. package/package.json +70 -70
  4. package/src/components/Sheet.tsx +9 -1
  5. package/types/components/Accordion.d.ts +12 -63
  6. package/types/components/Accordion.d.ts.map +1 -1
  7. package/types/components/AlertDialog.d.ts +11 -82
  8. package/types/components/AlertDialog.d.ts.map +1 -1
  9. package/types/components/Button.d.ts +7 -261
  10. package/types/components/Button.d.ts.map +1 -1
  11. package/types/components/Card.d.ts +14 -66
  12. package/types/components/Card.d.ts.map +1 -1
  13. package/types/components/Checkbox.d.ts +13 -131
  14. package/types/components/Checkbox.d.ts.map +1 -1
  15. package/types/components/Dialog.d.ts +17 -314
  16. package/types/components/Dialog.d.ts.map +1 -1
  17. package/types/components/Label.d.ts +2 -10
  18. package/types/components/Label.d.ts.map +1 -1
  19. package/types/components/ListItem.d.ts +19 -233
  20. package/types/components/ListItem.d.ts.map +1 -1
  21. package/types/components/Popover.d.ts +11 -36
  22. package/types/components/Popover.d.ts.map +1 -1
  23. package/types/components/Progress.d.ts +12 -52
  24. package/types/components/Progress.d.ts.map +1 -1
  25. package/types/components/RadioGroup.d.ts +35 -125
  26. package/types/components/RadioGroup.d.ts.map +1 -1
  27. package/types/components/Select.d.ts +81 -471
  28. package/types/components/Select.d.ts.map +1 -1
  29. package/types/components/Separator.d.ts +2 -10
  30. package/types/components/Separator.d.ts.map +1 -1
  31. package/types/components/Sheet.d.ts +83 -865
  32. package/types/components/Sheet.d.ts.map +1 -1
  33. package/types/components/Slider.d.ts +15 -127
  34. package/types/components/Slider.d.ts.map +1 -1
  35. package/types/components/Surface.d.ts +2 -18
  36. package/types/components/Surface.d.ts.map +1 -1
  37. package/types/components/Switch.d.ts +14 -78
  38. package/types/components/Switch.d.ts.map +1 -1
  39. package/types/components/Tabs.d.ts +17 -153
  40. package/types/components/Tabs.d.ts.map +1 -1
  41. package/types/components/Toast.d.ts +18 -93
  42. package/types/components/Toast.d.ts.map +1 -1
  43. package/types/components/ToggleGroup.d.ts +13 -67
  44. package/types/components/ToggleGroup.d.ts.map +1 -1
  45. package/types/views/EnsureFlexed.d.ts +1 -5
  46. package/types/views/EnsureFlexed.d.ts.map +1 -1
  47. package/types/views/Fieldset.d.ts +2 -10
  48. package/types/views/Fieldset.d.ts.map +1 -1
  49. package/types/views/Text.d.ts +1 -5
  50. package/types/views/Text.d.ts.map +1 -1
  51. package/types/views/VisuallyHidden.d.ts +2 -12
  52. package/types/views/VisuallyHidden.d.ts.map +1 -1
package/dist/test.cjs CHANGED
@@ -11248,16 +11248,21 @@ var require_react_dom_development = /* @__PURE__ */ __commonJSMin(((exports) =>
11248
11248
  }
11249
11249
  function createPortal$1(children, containerInfo, implementation) {
11250
11250
  var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
11251
- try {
11252
- testStringCoercion(key);
11253
- var JSCompiler_inline_result = !1;
11254
- } catch (e) {
11255
- JSCompiler_inline_result = !0;
11251
+ if (null == key) key = null;
11252
+ else if (key === REACT_OPTIMISTIC_KEY) key = REACT_OPTIMISTIC_KEY;
11253
+ else {
11254
+ try {
11255
+ testStringCoercion(key);
11256
+ var JSCompiler_inline_result = !1;
11257
+ } catch (e) {
11258
+ JSCompiler_inline_result = !0;
11259
+ }
11260
+ JSCompiler_inline_result && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"), testStringCoercion(key));
11261
+ key = "" + key;
11256
11262
  }
11257
- JSCompiler_inline_result && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"), testStringCoercion(key));
11258
11263
  return {
11259
11264
  $$typeof: REACT_PORTAL_TYPE,
11260
- key: null == key ? null : "" + key,
11265
+ key,
11261
11266
  children,
11262
11267
  containerInfo,
11263
11268
  implementation
@@ -11295,9 +11300,15 @@ var require_react_dom_development = /* @__PURE__ */ __commonJSMin(((exports) =>
11295
11300
  },
11296
11301
  p: 0,
11297
11302
  findDOMNode: null
11298
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
11303
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"), REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
11299
11304
  "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills");
11300
11305
  exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
11306
+ exports.browser = function(reason) {
11307
+ return {
11308
+ $$typeof: REACT_RECOVERABLE_TYPE,
11309
+ _reason: reason
11310
+ };
11311
+ };
11301
11312
  exports.createPortal = function(children, container) {
11302
11313
  var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
11303
11314
  if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType) throw Error("Target container is not a DOM element.");
@@ -11352,7 +11363,8 @@ var require_react_dom_development = /* @__PURE__ */ __commonJSMin(((exports) =>
11352
11363
  if (null == options.as || "script" === options.as) encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.M(href, {
11353
11364
  crossOrigin: encountered,
11354
11365
  integrity: "string" === typeof options.integrity ? options.integrity : void 0,
11355
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
11366
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
11367
+ fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
11356
11368
  });
11357
11369
  } else null == options && Internals.d.M(href);
11358
11370
  };
@@ -11385,7 +11397,9 @@ var require_react_dom_development = /* @__PURE__ */ __commonJSMin(((exports) =>
11385
11397
  "string" === typeof href && (options ? (encountered = getCrossOriginStringAs(options.as, options.crossOrigin), Internals.d.m(href, {
11386
11398
  as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
11387
11399
  crossOrigin: encountered,
11388
- integrity: "string" === typeof options.integrity ? options.integrity : void 0
11400
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0,
11401
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
11402
+ fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
11389
11403
  })) : Internals.d.m(href));
11390
11404
  };
11391
11405
  exports.requestFormReset = function(form) {
@@ -11400,7 +11414,7 @@ var require_react_dom_development = /* @__PURE__ */ __commonJSMin(((exports) =>
11400
11414
  exports.useFormStatus = function() {
11401
11415
  return resolveDispatcher().useHostTransitionStatus();
11402
11416
  };
11403
- exports.version = "19.2.3";
11417
+ exports.version = "19.3.0";
11404
11418
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
11405
11419
  })();
11406
11420
  }));
@@ -14009,7 +14023,7 @@ function resolveSafeAreaVariable(name) {
14009
14023
  if (edge !== "top" && edge !== "right" && edge !== "bottom" && edge !== "left") return;
14010
14024
  var state = getSafeArea().state;
14011
14025
  if (!state.didSetup) {
14012
- if (!didWarnMissingSetup) {
14026
+ if (!isProd$11 && !didWarnMissingSetup) {
14013
14027
  didWarnMissingSetup = true;
14014
14028
  console.warn("[tamagui] safe-area variables on native require importing @tamagui/native/setup-safe-area and wrapping the app in the SafeAreaProvider from react-native-safe-area-context.");
14015
14029
  }
@@ -14020,9 +14034,10 @@ function resolveSafeAreaVariable(name) {
14020
14034
  function subscribeToSafeArea(listener) {
14021
14035
  return getSafeArea().subscribe(listener);
14022
14036
  }
14023
- var didWarnMissingSetup;
14037
+ var isProd$11, didWarnMissingSetup;
14024
14038
  var init_resolveSafeAreaVariable_native = __esmMin((() => {
14025
14039
  init_index_native$4();
14040
+ isProd$11 = false;
14026
14041
  didWarnMissingSetup = false;
14027
14042
  }));
14028
14043
  //#endregion
@@ -14606,7 +14621,7 @@ var init_mediaState_native = __esmMin((() => {
14606
14621
  //#endregion
14607
14622
  //#region ../../core/web/dist/esm/helpers/matchMedia.native.js
14608
14623
  function matchMediaFallback(query) {
14609
- if (!process.env.IS_STATIC && false);
14624
+ if (!process.env.IS_STATIC && !isProd$10 && false);
14610
14625
  return {
14611
14626
  match: function match(a, b) {
14612
14627
  return false;
@@ -14620,8 +14635,9 @@ function setupMatchMedia(_) {
14620
14635
  matchMediaImpl = _;
14621
14636
  globalThis["matchMedia"] = _;
14622
14637
  }
14623
- var matchMediaImpl, matchMedia;
14638
+ var isProd$10, matchMediaImpl, matchMedia;
14624
14639
  var init_matchMedia_native = __esmMin((() => {
14640
+ isProd$10 = false;
14625
14641
  matchMediaImpl = matchMediaFallback;
14626
14642
  matchMedia = function matchMedia2() {
14627
14643
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
@@ -14643,11 +14659,11 @@ function setupMediaListeners() {
14643
14659
  return matchMedia(str);
14644
14660
  };
14645
14661
  var match = getMatch();
14646
- if (!match) throw new Error(formatDiagnostic("TAMAGUI_MEDIA_MATCH", "useMedia", "matchMedia returned no MediaQueryList", "Provide a matchMedia implementation that returns a MediaQueryList", "key,query,platform", {
14662
+ if (!match) throw new Error(!isProd$9 && true ? formatDiagnostic("TAMAGUI_MEDIA_MATCH", "useMedia", "matchMedia returned no MediaQueryList", "Provide a matchMedia implementation that returns a MediaQueryList", "key,query,platform", {
14647
14663
  key: key2,
14648
14664
  query: str,
14649
14665
  platform: "native"
14650
- }));
14666
+ }) : "❌ Error 013");
14651
14667
  match.addListener(update);
14652
14668
  dispose.add(function() {
14653
14669
  match.removeListener(update);
@@ -14992,7 +15008,7 @@ function getMediaState(mediaGroups, layout) {
14992
15008
  }
14993
15009
  return res;
14994
15010
  }
14995
- var dispose, mediaVersion, configureMedia, setupVersion, listenersByKey, globalListeners, publishedState, _mediaListenerStats, States, touchTrackerProto, refSlot, incReducer$1, disableMediaTouch;
15011
+ var isProd$9, dispose, mediaVersion, configureMedia, setupVersion, listenersByKey, globalListeners, publishedState, _mediaListenerStats, States, touchTrackerProto, refSlot, incReducer$1, disableMediaTouch;
14996
15012
  var init_useMedia_native = __esmMin((() => {
14997
15013
  init_index_native$7();
14998
15014
  init_config_native();
@@ -15002,6 +15018,7 @@ var init_useMedia_native = __esmMin((() => {
15002
15018
  init_mediaObjectToString_native();
15003
15019
  init_mediaState_native();
15004
15020
  init_objectSpread2();
15021
+ isProd$9 = false;
15005
15022
  dispose = /* @__PURE__ */ new Set();
15006
15023
  mediaVersion = 0;
15007
15024
  configureMedia = function configureMedia2(config) {
@@ -16793,7 +16810,10 @@ var init_styledDynamic_native = __esmMin((() => {
16793
16810
  function scanAllSheets() {
16794
16811
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
16795
16812
  arguments.length > 1 && arguments[1];
16796
- if (process.env.TAMAGUI_RUNTIME !== "island" || collectThemes) return;
16813
+ if (process.env.TAMAGUI_RUNTIME !== "island" || collectThemes) {
16814
+ if (!isProd$8 && true) return;
16815
+ return;
16816
+ }
16797
16817
  }
16798
16818
  function trackInsertedStyle(id) {
16799
16819
  var next = (totalSelectorsInserted.get(id) || 0) + 1;
@@ -16863,9 +16883,10 @@ function shouldInsertStyleRules(identifier) {
16863
16883
  if (process.env.IS_STATIC === "is_static") return true;
16864
16884
  return (totalSelectorsInserted.get(identifier) || 0) < maxToInsert;
16865
16885
  }
16866
- var totalSelectorsInserted, allSelectors, allRules, allRuleSets, getRulesForIdentifier, sortedRulesStale, bailAfterEnv, sheet$1, mountedProviders, trackAllRules, nonce, maxToInsert;
16886
+ var isProd$8, totalSelectorsInserted, allSelectors, allRules, allRuleSets, getRulesForIdentifier, sortedRulesStale, bailAfterEnv, sheet$1, mountedProviders, trackAllRules, nonce, maxToInsert;
16867
16887
  var init_insertStyleRule_native = __esmMin((() => {
16868
16888
  init_index_native$5();
16889
+ isProd$8 = false;
16869
16890
  totalSelectorsInserted = /* @__PURE__ */ new Map();
16870
16891
  allSelectors = {};
16871
16892
  allRules = {};
@@ -17385,9 +17406,10 @@ var init_webPropsToSkip_native = __esmMin((() => {
17385
17406
  }));
17386
17407
  //#endregion
17387
17408
  //#region ../../core/web/dist/esm/helpers/skipProps.native.js
17388
- var HOC_CLASSNAME_MARKER, skipProps;
17409
+ var isProd$7, HOC_CLASSNAME_MARKER, skipProps;
17389
17410
  var init_skipProps_native = __esmMin((() => {
17390
17411
  init_webPropsToSkip_native();
17412
+ isProd$7 = false;
17391
17413
  HOC_CLASSNAME_MARKER = "data-tamagui-hoc-class";
17392
17414
  skipProps = {
17393
17415
  untilMeasured: 1,
@@ -17406,7 +17428,7 @@ var init_skipProps_native = __esmMin((() => {
17406
17428
  container: 1,
17407
17429
  animatePresence: 1
17408
17430
  };
17409
- skipProps["data-test-renders"] = 1;
17431
+ if (!isProd$7 && true) skipProps["data-test-renders"] = 1;
17410
17432
  Object.assign(skipProps, webPropsToSkip);
17411
17433
  }));
17412
17434
  //#endregion
@@ -17493,7 +17515,7 @@ function setConditionUnresolved(condition) {
17493
17515
  var name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
17494
17516
  var _condition;
17495
17517
  condition[conditionValue] &= ~conditionResolvedFlag;
17496
- (_condition = condition).problem || (_condition.problem = name);
17518
+ if (!isProd$6 && true) (_condition = condition).problem || (_condition.problem = name);
17497
17519
  }
17498
17520
  function appendConditionWrapper(condition, wrapper) {
17499
17521
  var wrappers = condition[conditionWrappers];
@@ -17601,7 +17623,10 @@ function commitCondition(condition) {
17601
17623
  condition[conditionKey] = condition[conditionAtoms].join(":");
17602
17624
  var ranks = condition[conditionRanks];
17603
17625
  var depth = ranks.length;
17604
- if (depth > 5) throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${condition[conditionKey]}:"`);
17626
+ if (depth > 5) {
17627
+ if (!isProd$6 && true) throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${condition[conditionKey]}:"`);
17628
+ return 0;
17629
+ }
17605
17630
  var precedence = condition[conditionPlatform] * 6 + depth;
17606
17631
  for (var index = 0; index < 5; index++) precedence = precedence * 256 + (ranks[index] || 0);
17607
17632
  var value = precedence * 256 + condition[conditionValue];
@@ -17691,7 +17716,7 @@ function contributeProp(pass, keyOg, valOg) {
17691
17716
  }
17692
17717
  if (keyInit === "ref") return;
17693
17718
  if (keyInit[0] === "d" && keyInit.startsWith("data-")) return;
17694
- if (keyInit === "jestAnimatedStyle") return;
17719
+ if (!isProd$6 && keyInit === "jestAnimatedStyle") return;
17695
17720
  if (!disableExpandShorthands) {
17696
17721
  if (keyInit in shorthands) keyInit = shorthands[keyInit];
17697
17722
  }
@@ -18202,7 +18227,7 @@ function emitAtParentCondition(state, property, value, originalValue, contextOnl
18202
18227
  function emitUnderCondition(state, property, value, cursor, originalValue, contextOnly, warnMode, warnSource) {
18203
18228
  var condition = cursor[conditionValue];
18204
18229
  if (!(condition & conditionResolvedFlag)) {
18205
- if (warnMode && true) warnRefusedValue(property, warnSource, `unknown modifier "${cursor.problem}"`);
18230
+ if (warnMode && !isProd$6 && true) warnRefusedValue(property, warnSource, `unknown modifier "${cursor.problem}"`);
18206
18231
  return 0;
18207
18232
  }
18208
18233
  emitValue(state, property, value, cursor, warnMode === 2 ? originalValue : originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
@@ -18619,7 +18644,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
18619
18644
  var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
18620
18645
  emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
18621
18646
  hasBase = true;
18622
- } else if (warnMode && !chainCount && (failure === "invalid-character" || failure === "stray-comment-close")) {
18647
+ } else if (!isProd$6 && warnMode && !chainCount && (failure === "invalid-character" || failure === "stray-comment-close")) {
18623
18648
  emitConditionalValue(state, property, value, parentCondition, value, sink, warnMode, contextOnly);
18624
18649
  hasBase = true;
18625
18650
  } else if (warnMode);
@@ -18644,7 +18669,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
18644
18669
  emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
18645
18670
  }
18646
18671
  }
18647
- value.slice(lastPayloadStart);
18672
+ if (!isProd$6 && true) value.slice(lastPayloadStart);
18648
18673
  } else {
18649
18674
  if (!value || typeof value !== "object" || Array.isArray(value) || isVariable(value) || !classifyConditionalObject(value, state)) return false;
18650
18675
  if (value.default != null) {
@@ -18757,7 +18782,7 @@ function emitVariantStyle(state, key, value, original, condition, disabled) {
18757
18782
  pass[passParentCursor] = parent;
18758
18783
  pass[passVariantOutput] = parentVariantOutput;
18759
18784
  }
18760
- var shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig, resolvedStylePieceCache, resolveStyleObject, recordInline, recordNormalize, recordRetract, recordDefault, recordCSS, borderTargets, valueCacheConf, valueCacheRevision, valueCaches, valueCacheEntries, valueCacheRoot, parsedSlices, shadowRecipeProperties, shadowRecipeKeywords;
18785
+ var isProd$6, shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig, resolvedStylePieceCache, resolveStyleObject, recordInline, recordNormalize, recordRetract, recordDefault, recordCSS, borderTargets, valueCacheConf, valueCacheRevision, valueCaches, valueCacheEntries, valueCacheRoot, parsedSlices, shadowRecipeProperties, shadowRecipeKeywords;
18761
18786
  var init_getSplitStyles_native = __esmMin((() => {
18762
18787
  init_transitionResolver_native();
18763
18788
  init_index_native$7();
@@ -18796,7 +18821,8 @@ var init_getSplitStyles_native = __esmMin((() => {
18796
18821
  init_style_native();
18797
18822
  init_objectSpread2();
18798
18823
  init_tokenCategories_native();
18799
- shouldTrackStyleTokenProvenance = false;
18824
+ isProd$6 = false;
18825
+ shouldTrackStyleTokenProvenance = !isProd$6 && false;
18800
18826
  conditionValue = 0;
18801
18827
  conditionPlatform = 1;
18802
18828
  conditionKey = 2;
@@ -19817,10 +19843,10 @@ function getThemedChildren(themeState, children, props) {
19817
19843
  if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
19818
19844
  if (shallow) if (!themeState.parentId) {} else {
19819
19845
  var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
19820
- if (!parentState) throw new Error(formatDiagnostic("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
19846
+ if (!parentState) throw new Error(!isProd$5 && true ? formatDiagnostic("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
19821
19847
  name: themeState.name,
19822
19848
  parentId: themeState.parentId
19823
- }));
19849
+ }) : "❌ Error 014");
19824
19850
  children = react$1.Children.toArray(children).map(function(child) {
19825
19851
  return /* @__PURE__ */ (0, react$1.isValidElement)(child) ? passThrough ? child : /* @__PURE__ */ (0, react$1.cloneElement)(child, void 0, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, {
19826
19852
  name: parentState.name,
@@ -19831,7 +19857,7 @@ function getThemedChildren(themeState, children, props) {
19831
19857
  if (forceClassName === false) return children;
19832
19858
  return children;
19833
19859
  }
19834
- var Theme;
19860
+ var isProd$5, Theme;
19835
19861
  var init_Theme_native = __esmMin((() => {
19836
19862
  init_index_native$3();
19837
19863
  init_index_native$7();
@@ -19842,6 +19868,7 @@ var init_Theme_native = __esmMin((() => {
19842
19868
  init_useTheme_native();
19843
19869
  init_useThemeState_native();
19844
19870
  init_objectSpread2();
19871
+ isProd$5 = false;
19845
19872
  Theme = createRefComponent(function Theme2(props, ref) {
19846
19873
  "use no memo";
19847
19874
  if (props.disable) return props.children;
@@ -19870,7 +19897,7 @@ var init_Theme_native = __esmMin((() => {
19870
19897
  //#endregion
19871
19898
  //#region ../../core/web/dist/esm/createComponent.native.js
19872
19899
  function createComponent(staticConfig) {
19873
- if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(`[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.`);
19900
+ if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(!isProd$4 && true ? `[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.` : "❌ Error 010");
19874
19901
  var config = null;
19875
19902
  var resolvedDefaultProps;
19876
19903
  var resolvedStyleRevision = -1;
@@ -19903,11 +19930,13 @@ function createComponent(staticConfig) {
19903
19930
  BaseView = baseViews.View;
19904
19931
  }
19905
19932
  }
19906
- var testRenderCount = propsIn["data-test-renders"];
19907
- if (testRenderCount && typeof testRenderCount === "object" && !Object.isFrozen(testRenderCount)) {
19908
- var _testRenderCount_current;
19909
- testRenderCount.current = (_testRenderCount_current = testRenderCount.current) !== null && _testRenderCount_current !== void 0 ? _testRenderCount_current : 0;
19910
- testRenderCount.current += 1;
19933
+ if (!isProd$4 && true) {
19934
+ var testRenderCount = propsIn["data-test-renders"];
19935
+ if (testRenderCount && typeof testRenderCount === "object" && !Object.isFrozen(testRenderCount)) {
19936
+ var _testRenderCount_current;
19937
+ testRenderCount.current = (_testRenderCount_current = testRenderCount.current) !== null && _testRenderCount_current !== void 0 ? _testRenderCount_current : 0;
19938
+ testRenderCount.current += 1;
19939
+ }
19911
19940
  }
19912
19941
  var { context } = staticConfig;
19913
19942
  var debugProp = propsIn["debug"];
@@ -19968,7 +19997,7 @@ function createComponent(staticConfig) {
19968
19997
  if (isAnimatedCustomComponent) elementType = animationDriver[isText ? "Text" : "View"] || elementType;
19969
19998
  var disableThemeProp = false;
19970
19999
  var hocThemesSelf = isHOC && "theme" in props;
19971
- var disableTheme = disableThemeProp || isHOC && !hocThemesSelf;
20000
+ var disableTheme = disableThemeProp || isHOC && false;
19972
20001
  var themeStateProps = {
19973
20002
  disable: disableTheme,
19974
20003
  shallow: props.themeShallow,
@@ -20625,7 +20654,7 @@ function getRenderElementForPlatform(potential) {
20625
20654
  function isHTMLElement(el) {
20626
20655
  return typeof el["type"] === "string" && el["type"][0] === el["type"][0].toLowerCase();
20627
20656
  }
20628
- var _excluded$64, _excluded2$36, componentSetStates, avoidReRenderKeys, groupPseudoKeys, BaseText, BaseView, hasSetupBaseViews, lastInteractionWasKeyboard, lastInteractionWasTouch, fromPx, getCustomRender;
20657
+ var _excluded$64, _excluded2$36, isProd$4, componentSetStates, avoidReRenderKeys, groupPseudoKeys, BaseText, BaseView, hasSetupBaseViews, lastInteractionWasKeyboard, lastInteractionWasTouch, fromPx, getCustomRender;
20629
20658
  var init_createComponent_native = __esmMin((() => {
20630
20659
  init_index_native$3();
20631
20660
  init_index_native$7();
@@ -20692,6 +20721,7 @@ var init_createComponent_native = __esmMin((() => {
20692
20721
  "onClick",
20693
20722
  "theme"
20694
20723
  ];
20724
+ isProd$4 = false;
20695
20725
  componentSetStates = /* @__PURE__ */ new Set();
20696
20726
  avoidReRenderKeys = /* @__PURE__ */ new Set([
20697
20727
  "hover",
@@ -21071,7 +21101,7 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
21071
21101
  return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}${sep}{${sep}${[...decs].join(`;${sep}`)}${developmentWhitespace ? "\n" : ""}}`;
21072
21102
  };
21073
21103
  var cssRuleSets = [];
21074
- var developmentWhitespace = false;
21104
+ var developmentWhitespace = !isProd$3 && false;
21075
21105
  var sep = developmentWhitespace ? " " : "";
21076
21106
  if (declarations.length) cssRuleSets.push(declarationsToRuleSet2(declarations));
21077
21107
  var fontSelectors = [];
@@ -21117,10 +21147,12 @@ function getCSS(themeConfig) {
21117
21147
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS && false);
21118
21148
  return "";
21119
21149
  }
21150
+ var isProd$3;
21120
21151
  var init_createDesignSystem_native = __esmMin((() => {
21121
21152
  init_index_native$7();
21122
21153
  init_registerCSSVariable_native();
21123
21154
  init_getThemeCSSRules_native();
21155
+ isProd$3 = false;
21124
21156
  }));
21125
21157
  //#endregion
21126
21158
  //#region ../../core/web/dist/esm/helpers/proxyThemeToParents.native.js
@@ -21669,7 +21701,7 @@ var init_createTamagui_native = __esmMin((() => {
21669
21701
  //#region ../../core/web/dist/esm/createTokens.native.js
21670
21702
  function createTokens(tokens) {
21671
21703
  var _process_env_TAMAGUI_TOKEN_PREFIX;
21672
- validateNoTrueTokenKeys(tokens);
21704
+ if (!isProd$2 && true) validateNoTrueTokenKeys(tokens);
21673
21705
  return createVariables(tokens, (_process_env_TAMAGUI_TOKEN_PREFIX = process.env.TAMAGUI_TOKEN_PREFIX) !== null && _process_env_TAMAGUI_TOKEN_PREFIX !== void 0 ? _process_env_TAMAGUI_TOKEN_PREFIX : "t");
21674
21706
  }
21675
21707
  function validateNoTrueTokenKeys(tokens) {
@@ -21679,8 +21711,10 @@ function validateNoTrueTokenKeys(tokens) {
21679
21711
  if ("true" in tokenSet) throw new Error(`tokens.${category}.true is reserved because boolean values select component defaults. Use an explicit token name instead.`);
21680
21712
  }
21681
21713
  }
21714
+ var isProd$2;
21682
21715
  var init_createTokens_native = __esmMin((() => {
21683
21716
  init_createVariables_native();
21717
+ isProd$2 = false;
21684
21718
  }));
21685
21719
  //#endregion
21686
21720
  //#region ../../core/web/dist/esm/helpers/mergeVariants.native.js
@@ -21966,20 +22000,21 @@ var init_useIsTouchDevice_native = __esmMin((() => {
21966
22000
  //#region ../../core/web/dist/esm/hooks/useAnimationDriver.native.js
21967
22001
  function useAnimationDriver() {
21968
22002
  var { animationDriver } = useConfiguration();
21969
- if (!animationDriver || animationDriver.isStub) throw new Error(`No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
22003
+ if (!animationDriver || animationDriver.isStub) throw new Error(!isProd$1 && true ? `No animation driver configured. Pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations` : "❌ Error 011");
21970
22004
  return animationDriver;
21971
22005
  }
21972
22006
  function useAnimatedNumberDriver() {
21973
22007
  var animatedDriver = useAnimationDriver();
21974
- if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") throw new Error(`The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css`);
22008
+ if (typeof animatedDriver.useAnimatedNumber !== "function" || typeof animatedDriver.useAnimatedNumberStyle !== "function" || typeof animatedDriver.useAnimatedNumbersStyle !== "function" || typeof animatedDriver.useAnimatedNumberReaction !== "function") throw new Error(!isProd$1 && true ? `The configured animation driver does not include animated-number hooks. When using the CSS driver, import \`createAnimations\` from \`@tamagui/animations-css/extras\` instead of \`@tamagui/animations-css\`. See: https://tamagui.dev/docs/core/animations-css` : "❌ Error 012");
21975
22009
  return animatedDriver;
21976
22010
  }
21977
22011
  function useAnimatedNumber(initial) {
21978
22012
  return useAnimatedNumberDriver().useAnimatedNumber(initial);
21979
22013
  }
21980
- var useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimatedNumberReaction;
22014
+ var isProd$1, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimatedNumberReaction;
21981
22015
  var init_useAnimationDriver_native = __esmMin((() => {
21982
22016
  init_ComponentContext_native();
22017
+ isProd$1 = false;
21983
22018
  useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
21984
22019
  return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);
21985
22020
  };
@@ -23751,12 +23786,12 @@ function TamaguiProvider$3(param) {
23751
23786
  });
23752
23787
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
23753
23788
  !process.env.TAMAGUI_DID_OUTPUT_CSS && false,
23754
- false,
23789
+ !isProd && false,
23755
23790
  hasSafeAreaTracker() && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SafeAreaTracker, {}),
23756
23791
  contents
23757
23792
  ] });
23758
23793
  }
23759
- var _cachedFirstKey, _cachedConfig;
23794
+ var isProd, _cachedFirstKey, _cachedConfig;
23760
23795
  var init_TamaguiProvider_native = __esmMin((() => {
23761
23796
  init_index_native$7();
23762
23797
  init_index_native$2();
@@ -23767,6 +23802,7 @@ var init_TamaguiProvider_native = __esmMin((() => {
23767
23802
  init_SafeAreaTracker_native();
23768
23803
  init_TamaguiRoot_native();
23769
23804
  init_ThemeProvider_native();
23805
+ isProd = false;
23770
23806
  }));
23771
23807
  //#endregion
23772
23808
  //#region ../../core/use-event/dist/esm/useGet.native.js
@@ -26239,7 +26275,8 @@ var _excluded10$3 = ["scope", "displayWhenAdapted"];
26239
26275
  var DialogContext = createStyledContext({}, "Dialog__");
26240
26276
  var { useStyledContext: useDialogContext, Provider: DialogProvider } = DialogContext;
26241
26277
  var DialogTriggerFrame = styled(View, { displayName: "DialogTrigger" });
26242
- var DialogTrigger = createStyledHOC(DialogTriggerFrame, function DialogTrigger2(props, forwardedRef) {
26278
+ var DialogTrigger = createStyledHOC(DialogTriggerFrame, function DialogTrigger2(propsIn, forwardedRef) {
26279
+ var props = propsIn;
26243
26280
  var { scope } = props, triggerProps = _objectWithoutProperties(props, _excluded$51);
26244
26281
  var isInsideButton = react$1.useContext(ButtonNestingContext);
26245
26282
  var context = useDialogContext(scope);
@@ -26388,8 +26425,8 @@ var DialogOverlayFrame = styled(YStack, {
26388
26425
  false: { pointerEvents: "none" }
26389
26426
  } }
26390
26427
  });
26391
- var DialogOverlay$1 = createStyledHOC(DialogOverlayFrame, function DialogOverlay2(param, forwardedRef) {
26392
- var { scope } = param, props = _objectWithoutProperties(param, _excluded3$15);
26428
+ var DialogOverlay$1 = createStyledHOC(DialogOverlayFrame, function DialogOverlay2(propsIn, forwardedRef) {
26429
+ var { scope } = propsIn, props = _objectWithoutProperties(propsIn, _excluded3$15);
26393
26430
  var context = useDialogContext(scope);
26394
26431
  var { forceMount = context.forceMount } = props, overlayProps = _objectWithoutProperties(props, _excluded4$15);
26395
26432
  var isAdapted = useAdaptIsActive(context.adaptScope);
@@ -26433,8 +26470,8 @@ var DialogContentFrame = styled(YStack, {
26433
26470
  } }
26434
26471
  }
26435
26472
  });
26436
- var DialogContent$1 = createStyledHOC(DialogContentFrame, function DialogContent2(param, forwardedRef) {
26437
- var { scope } = param, props = _objectWithoutProperties(param, _excluded5$12);
26473
+ var DialogContent$1 = createStyledHOC(DialogContentFrame, function DialogContent2(propsIn, forwardedRef) {
26474
+ var { scope } = propsIn, props = _objectWithoutProperties(propsIn, _excluded5$12);
26438
26475
  var context = useDialogContext(scope);
26439
26476
  var isAdapted = useAdaptIsActive(context.adaptScope);
26440
26477
  var reporter = useDialogAnimationReporter(context);
@@ -26565,7 +26602,8 @@ var DialogCloseFrame = styled(View, {
26565
26602
  displayName: "DialogClose",
26566
26603
  render: "button"
26567
26604
  });
26568
- var DialogClose = createStyledHOC(DialogCloseFrame, function(props, forwardedRef) {
26605
+ var DialogClose = createStyledHOC(DialogCloseFrame, function(propsIn, forwardedRef) {
26606
+ var props = propsIn;
26569
26607
  var { scope, displayWhenAdapted } = props, closeProps = _objectWithoutProperties(props, _excluded10$3);
26570
26608
  var context = useDialogContext(scope);
26571
26609
  var isAdapted = useAdaptIsActive(context.adaptScope);
@@ -27516,8 +27554,8 @@ var CheckboxContext = /* @__PURE__ */ react$1.default.createContext({
27516
27554
  checked: false,
27517
27555
  disabled: false
27518
27556
  });
27519
- var Checkbox2 = withStaticProperties(createStyledHOC(CheckboxFrame$1, function Checkbox(propsIn, forwardedRef) {
27520
- var { checked: checkedProp, defaultChecked, onCheckedChange, native, activeStyle, activeTheme } = propsIn, props = _objectWithoutProperties(propsIn, _excluded$43);
27557
+ var Checkbox2 = withStaticProperties(createStyledHOC(CheckboxFrame$1, function Checkbox(extraProps, forwardedRef) {
27558
+ var { checked: checkedProp, defaultChecked, onCheckedChange, native, activeStyle, activeTheme } = extraProps, props = _objectWithoutProperties(extraProps, _excluded$43);
27521
27559
  var [checked = false, setChecked] = useControllableState({
27522
27560
  prop: checkedProp,
27523
27561
  defaultProp: defaultChecked,
@@ -27565,8 +27603,8 @@ var Checkbox2 = withStaticProperties(createStyledHOC(CheckboxFrame$1, function C
27565
27603
  children: props.children
27566
27604
  })), bubbleInput]
27567
27605
  });
27568
- }), { Indicator: createStyledHOC(CheckboxIndicatorFrame, function(props, forwardedRef) {
27569
- var { children, forceMount, activeStyle } = props, indicatorProps = _objectWithoutProperties(props, _excluded2$25);
27606
+ }), { Indicator: createStyledHOC(CheckboxIndicatorFrame, function(propsIn, forwardedRef) {
27607
+ var { children, forceMount, activeStyle } = propsIn, indicatorProps = _objectWithoutProperties(propsIn, _excluded2$25);
27570
27608
  var { active } = CheckboxStyledContext.useStyledContext();
27571
27609
  var context = react$1.default.useContext(CheckboxContext);
27572
27610
  if (forceMount || isIndeterminate$1(context.checked) || context.checked === true) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckboxIndicatorFrame, _objectSpread2(_objectSpread2({ pointerEvents: "none" }, indicatorProps), {}, {
@@ -28882,7 +28920,8 @@ var [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME$2);
28882
28920
  var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME$2);
28883
28921
  var GroupFrame = styled(YStack, { displayName: "GroupFrame" });
28884
28922
  function createGroup(verticalDefault) {
28885
- return withStaticProperties(createStyledHOC(GroupFrame, function(props, ref) {
28923
+ return withStaticProperties(createStyledHOC(GroupFrame, function(propsIn, ref) {
28924
+ var props = propsIn;
28886
28925
  var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled } = props, restProps = _objectWithoutProperties(props, _excluded$40);
28887
28926
  var vertical = orientation === "vertical";
28888
28927
  var indexedChildren = useIndexedChildren(react$1.default.Children.toArray(childrenProp));
@@ -32890,7 +32929,7 @@ var PopoverContextProvider = /* @__PURE__ */ react$1.memo(function(param) {
32890
32929
  });
32891
32930
  });
32892
32931
  var voidFn = function voidFn2() {};
32893
- var PopoverAnchor = /* @__PURE__ */ react$1.memo(createRefComponent(function PopoverAnchor2(props, forwardedRef) {
32932
+ var PopoverAnchorComponent = createRefComponent(function PopoverAnchor(props, forwardedRef) {
32894
32933
  var { scope } = props, rest = _objectWithoutProperties(props, _excluded$32);
32895
32934
  var { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};
32896
32935
  react$1.useEffect(function() {
@@ -32900,8 +32939,9 @@ var PopoverAnchor = /* @__PURE__ */ react$1.memo(createRefComponent(function Pop
32900
32939
  };
32901
32940
  }, [onCustomAnchorAdd, onCustomAnchorRemove]);
32902
32941
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopperAnchor, _objectSpread2(_objectSpread2({ scope }, rest), {}, { ref: forwardedRef }));
32903
- }));
32904
- var PopoverTrigger = /* @__PURE__ */ react$1.memo(createRefComponent(function PopoverTrigger2(props, forwardedRef) {
32942
+ });
32943
+ var PopoverAnchor2 = /* @__PURE__ */ react$1.memo(PopoverAnchorComponent);
32944
+ var PopoverTriggerComponent = createRefComponent(function PopoverTrigger(props, forwardedRef) {
32905
32945
  var { scope, disablePressTrigger } = props, rest = _objectWithoutProperties(props, _excluded2$14);
32906
32946
  var triggerContext = usePopoverTriggerContext(scope);
32907
32947
  var popperContext = usePopperContextSlow(scope);
@@ -32974,7 +33014,8 @@ var PopoverTrigger = /* @__PURE__ */ react$1.memo(createRefComponent(function Po
32974
33014
  asChild: true,
32975
33015
  children: wrappedTrigger
32976
33016
  }));
32977
- }));
33017
+ });
33018
+ var PopoverTrigger2 = /* @__PURE__ */ react$1.memo(PopoverTriggerComponent);
32978
33019
  var PopoverContent$1 = createStyledHOC(PopperContentFrame, function PopoverContent2(props, forwardedRef) {
32979
33020
  var _contentImplProps_pointerEvents;
32980
33021
  var { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount } = props, contentImplProps = _objectWithoutProperties(props, _excluded3$6);
@@ -33191,9 +33232,9 @@ var Popover$1 = withStaticProperties(createRefComponent(function Popover2(param,
33191
33232
  }, props))
33192
33233
  });
33193
33234
  }), {
33194
- Anchor: PopoverAnchor,
33235
+ Anchor: PopoverAnchor2,
33195
33236
  Arrow: PopoverArrow$1,
33196
- Trigger: PopoverTrigger,
33237
+ Trigger: PopoverTrigger2,
33197
33238
  Content: PopoverContent$1,
33198
33239
  Close: PopoverClose,
33199
33240
  Adapt,
@@ -33320,8 +33361,9 @@ var ProgressIndicatorFrame = styled(YStack, {
33320
33361
  height: "100%",
33321
33362
  width: "100%"
33322
33363
  });
33323
- var ProgressIndicator$1 = createStyledHOC(ProgressIndicatorFrame, function ProgressIndicator2(props, forwardedRef) {
33364
+ var ProgressIndicator$1 = createStyledHOC(ProgressIndicatorFrame, function ProgressIndicator2(propsIn, forwardedRef) {
33324
33365
  var _context_value, _context_value1;
33366
+ var props = propsIn;
33325
33367
  var { __scopeProgress, transition } = props, indicatorProps = _objectWithoutProperties(props, _excluded$31);
33326
33368
  var context = useProgressContext(INDICATOR_NAME, __scopeProgress);
33327
33369
  var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;
@@ -33381,7 +33423,8 @@ var ProgressFrame = styled(YStack, {
33381
33423
  overflow: "hidden",
33382
33424
  variants: { size: getProgressSize }
33383
33425
  });
33384
- var Progress$1 = withStaticProperties(createStyledHOC(ProgressFrame, function Progress2(props, forwardedRef) {
33426
+ var Progress$1 = withStaticProperties(createStyledHOC(ProgressFrame, function Progress2(propsIn, forwardedRef) {
33427
+ var props = propsIn;
33385
33428
  var { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = true } = props, progressProps = _objectWithoutProperties(props, _excluded2$13);
33386
33429
  var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
33387
33430
  var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
@@ -33627,7 +33670,8 @@ var RadioGroupItemContext = /* @__PURE__ */ react$1.default.createContext({
33627
33670
  checked: false,
33628
33671
  disabled: false
33629
33672
  });
33630
- var RadioGroupComponent = createStyledHOC(RadioGroupFrame$1, function(props, ref) {
33673
+ var RadioGroupComponent = createStyledHOC(RadioGroupFrame$1, function(propsIn, ref) {
33674
+ var props = propsIn;
33631
33675
  var { value, defaultValue, onValueChange, required = false, disabled = false, name, native, accentColor, orientation = "vertical" } = props, rest = _objectWithoutProperties(props, _excluded$28);
33632
33676
  var { providerValue, frameAttrs, rovingFocusGroupAttrs } = useRadioGroup({
33633
33677
  orientation: orientation === "horizontal" ? "horizontal" : "vertical",
@@ -33645,7 +33689,8 @@ var RadioGroupComponent = createStyledHOC(RadioGroupFrame$1, function(props, ref
33645
33689
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RovingFocusGroup, _objectSpread2(_objectSpread2({}, rovingFocusGroupAttrs), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioGroupFrame$1, _objectSpread2(_objectSpread2({}, frameAttrs), {}, { ref }, rest)) }))
33646
33690
  });
33647
33691
  });
33648
- var RadioGroupItem$1 = createStyledHOC(RadioGroupItemFrame, function(props, ref) {
33692
+ var RadioGroupItem$1 = createStyledHOC(RadioGroupItemFrame, function(propsIn, ref) {
33693
+ var props = propsIn;
33649
33694
  var { value, labelledBy, onPress, onKeyDown, disabled, id, activeStyle, activeTheme } = props, rest = _objectWithoutProperties(props, _excluded2$12);
33650
33695
  var { providerValue, checked, bubbleInput, rovingFocusGroupAttrs, frameAttrs, isFormControl, native } = useRadioGroupItem({
33651
33696
  radioGroupContext: RadioGroupContext,
@@ -33662,7 +33707,8 @@ var RadioGroupItem$1 = createStyledHOC(RadioGroupItemFrame, function(props, ref)
33662
33707
  });
33663
33708
  });
33664
33709
  RadioGroupItem$1.displayName = "RadioGroupItem";
33665
- var RadioGroupIndicator$1 = createStyledHOC(RadioGroupIndicatorFrame, function(props, forwardedRef) {
33710
+ var RadioGroupIndicator$1 = createStyledHOC(RadioGroupIndicatorFrame, function(propsIn, forwardedRef) {
33711
+ var props = propsIn;
33666
33712
  var { forceMount, disabled } = props, indicatorProps = _objectWithoutProperties(props, _excluded3$5);
33667
33713
  var _useRadioGroupItemInd = useRadioGroupItemIndicator({
33668
33714
  radioGroupItemContext: RadioGroupItemContext,
@@ -34067,7 +34113,8 @@ var SelectItemFrame = styled(View, {
34067
34113
  alignItems: "center",
34068
34114
  flexDirection: "row"
34069
34115
  });
34070
- var SelectItem$1 = createStyledHOC(SelectItemFrame, function SelectItem2(props, forwardedRef) {
34116
+ var SelectItem$1 = createStyledHOC(SelectItemFrame, function SelectItem2(propsIn, forwardedRef) {
34117
+ var props = propsIn;
34071
34118
  var { scope, value, disabled: disabledProp, "aria-disabled": ariaDisabled, textValue: textValueProp } = props, restProps = _objectWithoutProperties(props, _excluded$27);
34072
34119
  var disabled = disabledProp !== null && disabledProp !== void 0 ? disabledProp : ariaDisabled === true;
34073
34120
  var context = useSelectItemParentContext(scope);
@@ -34292,7 +34339,8 @@ init_objectSpread2();
34292
34339
  var _excluded$26 = ["scope", "className"];
34293
34340
  var ITEM_TEXT_NAME = "SelectItemText";
34294
34341
  var SelectItemTextFrame = styled(Text$1, { displayName: ITEM_TEXT_NAME });
34295
- var SelectItemText$1 = createStyledHOC(SelectItemTextFrame, function SelectItemText2(props, forwardedRef) {
34342
+ var SelectItemText$1 = createStyledHOC(SelectItemTextFrame, function SelectItemText2(propsIn, forwardedRef) {
34343
+ var props = propsIn;
34296
34344
  var { scope, className } = props, itemTextProps = _objectWithoutProperties(props, _excluded$26);
34297
34345
  var itemParentContext = useSelectItemParentContext(scope);
34298
34346
  var composedRefs = useComposedRefs(forwardedRef, react$1.useRef(null));
@@ -34339,9 +34387,9 @@ var SelectTriggerFrame = styled(View, {
34339
34387
  flexDirection: "row",
34340
34388
  render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { type: "button" })
34341
34389
  });
34342
- var SelectTrigger$1 = createStyledHOC(SelectTriggerFrame, function SelectTrigger2(props, forwardedRef) {
34390
+ var SelectTrigger$1 = createStyledHOC(SelectTriggerFrame, function SelectTrigger2(propsIn, forwardedRef) {
34343
34391
  var _context_floatingContext;
34344
- var { scope, disabled = false } = props, triggerProps = _objectWithoutProperties(props, _excluded$25);
34392
+ var { scope, disabled = false } = propsIn, triggerProps = _objectWithoutProperties(propsIn, _excluded$25);
34345
34393
  var context = useSelectContext(scope);
34346
34394
  var itemParentContext = useSelectItemParentContext(scope);
34347
34395
  var composedRefs = useComposedRefs(forwardedRef, (_context_floatingContext = context.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
@@ -34390,7 +34438,8 @@ var SelectViewportFrame = styled(View, {
34390
34438
  displayName: VIEWPORT_NAME,
34391
34439
  position: "relative"
34392
34440
  });
34393
- var SelectViewport$1 = createStyledHOC(SelectViewportFrame, function SelectViewport2(props, forwardedRef) {
34441
+ var SelectViewport$1 = createStyledHOC(SelectViewportFrame, function SelectViewport2(propsIn, forwardedRef) {
34442
+ var props = propsIn;
34394
34443
  var { scope, children, disableScroll: _disableScroll } = props, viewportProps = _objectWithoutProperties(props, _excluded$24);
34395
34444
  var context = useSelectContext(scope);
34396
34445
  var itemParentContext = useSelectItemParentContext(scope);
@@ -34438,10 +34487,10 @@ var _excluded3$4 = ["scope"];
34438
34487
  var _excluded4$4 = ["scope"];
34439
34488
  var _excluded5$3 = ["scope"];
34440
34489
  var SelectValueFrame = styled(Text$1, { displayName: "SelectValue" });
34441
- var SelectValue$1 = createStyledHOC(SelectValueFrame, function SelectValue2(param, forwardedRef) {
34442
- var { scope, children: childrenProp, placeholder } = param, props = _objectWithoutProperties(param, _excluded$23);
34490
+ var SelectValue$1 = createStyledHOC(SelectValueFrame, function SelectValue2(propsIn, forwardedRef) {
34443
34491
  var _ref;
34444
34492
  var _itemParentContext_registry_getItem;
34493
+ var { scope, children: childrenProp, placeholder } = propsIn, props = _objectWithoutProperties(propsIn, _excluded$23);
34445
34494
  var context = useSelectContext(scope);
34446
34495
  var itemParentContext = useSelectItemParentContext(scope);
34447
34496
  var composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);
@@ -34484,8 +34533,8 @@ var SelectIndicatorFrame = styled(View, {
34484
34533
  pointerEvents: "none",
34485
34534
  zIndex: 10
34486
34535
  });
34487
- var SelectIndicator$1 = createStyledHOC(SelectIndicatorFrame, function SelectIndicator2(param, forwardedRef) {
34488
- var { scope } = param, props = _objectWithoutProperties(param, _excluded3$4);
34536
+ var SelectIndicator$1 = createStyledHOC(SelectIndicatorFrame, function SelectIndicator2(propsIn, forwardedRef) {
34537
+ var { scope } = propsIn, props = _objectWithoutProperties(propsIn, _excluded3$4);
34489
34538
  var itemContext = useSelectItemParentContext(scope);
34490
34539
  var context = useSelectContext(scope);
34491
34540
  var [layout, setLayout] = react$1.useState(null);
@@ -34523,7 +34572,8 @@ var NativeSelect = styled(Text$1, {
34523
34572
  displayName: "NativeSelect",
34524
34573
  render: "select"
34525
34574
  });
34526
- var SelectGroup$1 = createStyledHOC(SelectGroupFrame, function(props, forwardedRef) {
34575
+ var SelectGroup$1 = createStyledHOC(SelectGroupFrame, function(propsIn, forwardedRef) {
34576
+ var props = propsIn;
34527
34577
  var { scope } = props, groupProps = _objectWithoutProperties(props, _excluded4$4);
34528
34578
  var groupId = react$1.useId();
34529
34579
  var context = useSelectContext(scope);
@@ -34563,8 +34613,8 @@ var SelectGroup$1 = createStyledHOC(SelectGroupFrame, function(props, forwardedR
34563
34613
  });
34564
34614
  SelectGroup$1.displayName = GROUP_NAME;
34565
34615
  var SelectLabelFrame = styled(Text$1, { displayName: "SelectLabel" });
34566
- var SelectLabel$1 = createStyledHOC(SelectLabelFrame, function(props, forwardedRef) {
34567
- var { scope } = props, labelProps = _objectWithoutProperties(props, _excluded5$3);
34616
+ var SelectLabel$1 = createStyledHOC(SelectLabelFrame, function(propsIn, forwardedRef) {
34617
+ var { scope } = propsIn, labelProps = _objectWithoutProperties(propsIn, _excluded5$3);
34568
34618
  var context = useSelectItemParentContext(scope);
34569
34619
  var groupContext = useSelectGroupContext(scope);
34570
34620
  if (context.shouldRenderWebNative) return null;
@@ -35701,6 +35751,7 @@ var SheetImplementationCustom = createRefComponent(function SheetImplementationC
35701
35751
  onTransition === null || onTransition === void 0 || onTransition(e);
35702
35752
  controller === null || controller === void 0 || (_controller_onTransition = controller.onTransition) == null || _controller_onTransition.call(controller, e);
35703
35753
  });
35754
+ var isParkedClosedRef = react$1.default.useRef(false);
35704
35755
  var syncAnimatedPosition = useEvent(function(value) {
35705
35756
  at.current = value;
35706
35757
  scrollBridge.paneY = value;
@@ -35771,11 +35822,13 @@ var SheetImplementationCustom = createRefComponent(function SheetImplementationC
35771
35822
  lastPositionIndexRef.current = -1;
35772
35823
  emitTransition("start", event);
35773
35824
  syncAnimatedPosition(toValue);
35825
+ isParkedClosedRef.current = true;
35774
35826
  setIsFullyClosed(true);
35775
35827
  emitTransition("end", event, true);
35776
35828
  }
35777
35829
  return;
35778
35830
  }
35831
+ at.current;
35779
35832
  at.current = toValue;
35780
35833
  var cause = !isOpenAnimation ? "close" : lastPositionIndexRef.current < 0 ? "open" : "snap";
35781
35834
  lastPositionIndexRef.current = isOpenAnimation ? position2 : -1;
@@ -35788,11 +35841,16 @@ var SheetImplementationCustom = createRefComponent(function SheetImplementationC
35788
35841
  pendingTransitionRef.current = null;
35789
35842
  }
35790
35843
  stopSpring();
35844
+ isParkedClosedRef.current;
35845
+ isParkedClosedRef.current = false;
35791
35846
  var animationCompleteCallback = function animationCompleteCallback2() {
35792
35847
  if (at.current !== toValue) return;
35793
35848
  syncAnimatedPosition(toValue);
35794
35849
  pendingTransitionRef.current = null;
35795
- if (!isOpenAnimation && !openRef.current) setIsFullyClosed(true);
35850
+ if (!isOpenAnimation && !openRef.current) {
35851
+ isParkedClosedRef.current = true;
35852
+ setIsFullyClosed(true);
35853
+ }
35796
35854
  emitTransition("end", event1, true);
35797
35855
  };
35798
35856
  pendingTransitionRef.current = event1;
@@ -36537,8 +36595,8 @@ var SheetScrollViewCustom = createRefComponent(function(param, ref) {
36537
36595
  children: contentWrapper
36538
36596
  }));
36539
36597
  });
36540
- var SheetScrollView$1 = createStyledHOC(ScrollView, function(param, ref) {
36541
- var { scope } = param, props = _objectWithoutProperties(param, _excluded2$8);
36598
+ var SheetScrollView$1 = createStyledHOC(ScrollView, function(propsIn, ref) {
36599
+ var { scope } = propsIn, props = _objectWithoutProperties(propsIn, _excluded2$8);
36542
36600
  return useSheetContext(scope).onlyShowContainer ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollView, _objectSpread2(_objectSpread2({}, props), {}, { ref })) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SheetScrollViewCustom, _objectSpread2(_objectSpread2({}, props), {}, {
36543
36601
  scope,
36544
36602
  ref
@@ -36621,8 +36679,8 @@ var SheetBackgroundFrame = styled(YStack, {
36621
36679
  zIndex: -1,
36622
36680
  pointerEvents: "none"
36623
36681
  });
36624
- var SheetHandle$1 = createStyledHOC(SheetHandleFrame$1, function(param, forwardedRef) {
36625
- var { scope } = param, props = _objectWithoutProperties(param, _excluded$19);
36682
+ var SheetHandle$1 = createStyledHOC(SheetHandleFrame$1, function(propsIn, forwardedRef) {
36683
+ var { scope } = propsIn, props = _objectWithoutProperties(propsIn, _excluded$19);
36626
36684
  var context = useSheetContext(scope);
36627
36685
  var composedRef = useComposedRefs(context.handleRef, forwardedRef);
36628
36686
  var wasDraggingRef = (0, react$1.useRef)(false);
@@ -36664,8 +36722,8 @@ var SheetOverlay$1 = createStyledHOC(SheetOverlayFrame, function(propsIn, ref) {
36664
36722
  } : void 0)
36665
36723
  }));
36666
36724
  });
36667
- var SheetContainer$1 = createStyledHOC(SheetContainerFrame, function(param, forwardedRef) {
36668
- var { scope, adjustPaddingForOffscreenContent, children } = param, props = _objectWithoutProperties(param, _excluded3$3);
36725
+ var SheetContainer$1 = createStyledHOC(SheetContainerFrame, function(propsIn, forwardedRef) {
36726
+ var { scope, adjustPaddingForOffscreenContent, children } = propsIn, props = _objectWithoutProperties(propsIn, _excluded3$3);
36669
36727
  var context = useSheetContext(scope);
36670
36728
  var { hasFit, frameSize, contentRef, open } = context;
36671
36729
  var composedContentRef = useComposedRefs(forwardedRef, contentRef);
@@ -36724,8 +36782,8 @@ var SheetContainer$1 = createStyledHOC(SheetContainerFrame, function(param, forw
36724
36782
  children: sheetContents
36725
36783
  });
36726
36784
  });
36727
- var SheetBackground$1 = createStyledHOC(SheetBackgroundFrame, function(param, forwardedRef) {
36728
- var { scope, disableHideBottomOverflow } = param, props = _objectWithoutProperties(param, _excluded4$3);
36785
+ var SheetBackground$1 = createStyledHOC(SheetBackgroundFrame, function(propsIn, forwardedRef) {
36786
+ var { scope, disableHideBottomOverflow } = propsIn, props = _objectWithoutProperties(propsIn, _excluded4$3);
36729
36787
  var context = useSheetContext(scope);
36730
36788
  if (context.onlyShowContainer) return null;
36731
36789
  var bottomOverflow = context.frameSize;
@@ -37460,8 +37518,9 @@ function createSwitch(createProps) {
37460
37518
  var Thumb = (_createProps_Thumb = createProps.Thumb) !== null && _createProps_Thumb !== void 0 ? _createProps_Thumb : SwitchThumbFrame$1;
37461
37519
  Frame.staticConfig.context = SwitchStyledContext;
37462
37520
  Thumb.staticConfig.context = SwitchStyledContext;
37463
- var SwitchThumbComponent = createStyledHOC(Thumb, function SwitchThumb2(props, forwardedRef) {
37521
+ var SwitchThumbComponent = createStyledHOC(Thumb, function SwitchThumb2(propsIn, forwardedRef) {
37464
37522
  var _ref;
37523
+ var props = propsIn;
37465
37524
  var { size: sizeProp, activeStyle } = props, thumbProps = _objectWithoutProperties(props, _excluded$16);
37466
37525
  var { size: sizeContext, active, disabled, frameWidth = 0 } = SwitchStyledContext.useStyledContext();
37467
37526
  var size = (_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : sizeContext) !== null && _ref !== void 0 ? _ref : true;
@@ -37481,8 +37540,9 @@ function createSwitch(createProps) {
37481
37540
  disabled
37482
37541
  }, thumbProps), active && activeStyle));
37483
37542
  });
37484
- var SwitchComponent = createStyledHOC(Frame, function Switch2(_props, forwardedRef) {
37543
+ var SwitchComponent = createStyledHOC(Frame, function Switch2(propsIn, forwardedRef) {
37485
37544
  var _ref, _styledContext_size, _ref1;
37545
+ var _props = propsIn;
37486
37546
  var { native, nativeProps, checked: checkedProp, defaultChecked, onCheckedChange, activeStyle, activeTheme } = _props, props = _objectWithoutProperties(_props, _excluded2$5);
37487
37547
  var [checked, setChecked] = useControllableState({
37488
37548
  prop: checkedProp,
@@ -37690,7 +37750,8 @@ var TabsTabFrame = styled(View, {
37690
37750
  });
37691
37751
  var TabsContentFrame = styled(View, { displayName: "TabsContent" });
37692
37752
  var TabsListDisabledContext = /* @__PURE__ */ react$1.createContext(false);
37693
- var TabsList$1 = createStyledHOC(TabsListFrame, function TabsList2(props, forwardedRef) {
37753
+ var TabsList$1 = createStyledHOC(TabsListFrame, function TabsList2(propsIn, forwardedRef) {
37754
+ var props = propsIn;
37694
37755
  var { __scopeTabs, loop = true, disabled = false, children } = props, listProps = _objectWithoutProperties(props, _excluded$15);
37695
37756
  var context = useTabsContext(__scopeTabs);
37696
37757
  var { listProps: headlessListProps } = useTabsList({
@@ -37712,7 +37773,8 @@ var TabsList$1 = createStyledHOC(TabsListFrame, function TabsList2(props, forwar
37712
37773
  })
37713
37774
  });
37714
37775
  });
37715
- var TabsTab$1 = createStyledHOC(TabsTabFrame, function TabsTab2(props, forwardedRef) {
37776
+ var TabsTab$1 = createStyledHOC(TabsTabFrame, function TabsTab2(propsIn, forwardedRef) {
37777
+ var props = propsIn;
37716
37778
  var { __scopeTabs, value, disabled: disabledProp, onInteraction, activeStyle, activeTheme, onLayout, onMouseEnter, onMouseLeave, onPress, onKeyDown, onFocus, onBlur } = props, triggerProps = _objectWithoutProperties(props, _excluded2$4);
37717
37779
  var context = useTabsContext(__scopeTabs);
37718
37780
  var listDisabled = react$1.useContext(TabsListDisabledContext);
@@ -37790,7 +37852,8 @@ var TabsTab$1 = createStyledHOC(TabsTabFrame, function TabsTab2(props, forwarded
37790
37852
  }, false))
37791
37853
  });
37792
37854
  });
37793
- var TabsContent$1 = createStyledHOC(TabsContentFrame, function TabsContent2(props, forwardedRef) {
37855
+ var TabsContent$1 = createStyledHOC(TabsContentFrame, function TabsContent2(propsIn, forwardedRef) {
37856
+ var props = propsIn;
37794
37857
  var { __scopeTabs, value, forceMount, children } = props, contentProps = _objectWithoutProperties(props, _excluded4$1);
37795
37858
  var context = useTabsContext(__scopeTabs);
37796
37859
  var { shouldMount, contentProps: headlessContentProps } = useTabContent({
@@ -37806,7 +37869,8 @@ var TabsContent$1 = createStyledHOC(TabsContentFrame, function TabsContent2(prop
37806
37869
  children
37807
37870
  }), value);
37808
37871
  });
37809
- var TabsComponent = createStyledHOC(TabsFrame$1, function Tabs(props, forwardedRef) {
37872
+ var TabsComponent = createStyledHOC(TabsFrame$1, function Tabs(propsIn, forwardedRef) {
37873
+ var props = propsIn;
37810
37874
  var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic" } = props, tabsProps = _objectWithoutProperties(props, _excluded5$1);
37811
37875
  var { value, setValue, baseId, direction, triggersCount, registerTrigger, unregisterTrigger, tabsProps: headlessTabsProps } = useTabs({
37812
37876
  value: valueProp,
@@ -39393,7 +39457,8 @@ var TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem";
39393
39457
  var TOGGLE_GROUP_CONTEXT = "ToggleGroup";
39394
39458
  var { Provider: ToggleGroupItemProvider } = createStyledContext();
39395
39459
  var { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = createStyledContext({});
39396
- var ToggleGroupItem$1 = createStyledHOC(ToggleFrame, function(props, forwardedRef) {
39460
+ var ToggleGroupItem$1 = createStyledHOC(ToggleFrame, function(propsIn, forwardedRef) {
39461
+ var props = propsIn;
39397
39462
  var valueContext = useToggleGroupValueContext(props.__scopeToggleGroup);
39398
39463
  var context$1 = useToggleGroupContext(props.__scopeToggleGroup);
39399
39464
  var toggleContext = context.useStyledContext(props.__scopeToggleGroup);
@@ -39499,7 +39564,8 @@ var ToggleGroupImplMultiple = createRefComponent(function(props, forwardedRef) {
39499
39564
  });
39500
39565
  });
39501
39566
  var ToggleGroupFrame = styled(View$1, { displayName: TOGGLE_GROUP_NAME });
39502
- var ToggleGroupImpl = createStyledHOC(ToggleGroupFrame, function(props, forwardedRef) {
39567
+ var ToggleGroupImpl = createStyledHOC(ToggleGroupFrame, function(propsIn, forwardedRef) {
39568
+ var props = propsIn;
39503
39569
  var { __scopeToggleGroup, disabled = false, orientation = "horizontal", dir, rovingFocus = true, loop = true, color } = props, toggleGroupProps = _objectWithoutProperties(props, _excluded5);
39504
39570
  var direction = useDirection(dir);
39505
39571
  var content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleGroupFrame, _objectSpread2({
@@ -42189,13 +42255,13 @@ exports.Menu = Menu;
42189
42255
  exports.Paragraph = Paragraph;
42190
42256
  exports.ParentSheetContext = ParentSheetContext;
42191
42257
  exports.Popover = Popover;
42192
- exports.PopoverAnchor = PopoverAnchor;
42258
+ exports.PopoverAnchor = PopoverAnchor2;
42193
42259
  exports.PopoverArrow = PopoverArrow;
42194
42260
  exports.PopoverClose = PopoverClose;
42195
42261
  exports.PopoverContent = PopoverContent;
42196
42262
  exports.PopoverContext = PopoverContext;
42197
42263
  exports.PopoverContextProvider = PopoverContextProvider;
42198
- exports.PopoverTrigger = PopoverTrigger;
42264
+ exports.PopoverTrigger = PopoverTrigger2;
42199
42265
  exports.PopoverTriggerContext = PopoverTriggerContext;
42200
42266
  exports.PopoverZIndexContext = PopoverZIndexContext;
42201
42267
  exports.Popper = Popper;