tamagui 1.129.3 → 1.129.5-1751174117974

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/native.js CHANGED
@@ -222,7 +222,7 @@ var require_index_native2 = __commonJS({
222
222
  if (typeof document > "u") return React4.useMemo(function() {
223
223
  return fn();
224
224
  }, []);
225
- var ref = React4.useRef();
225
+ var ref = React4.useRef(void 0);
226
226
  return ref.current || (ref.current = {
227
227
  v: fn()
228
228
  }), ref.current.v;
@@ -3190,7 +3190,7 @@ var require_useMedia_native = __commonJS({
3190
3190
  };
3191
3191
  }
3192
3192
  function useMedia3(cc, debug) {
3193
- var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
3193
+ var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)(null);
3194
3194
  internalRef.current || (internalRef.current = {
3195
3195
  keys: /* @__PURE__ */ new Set()
3196
3196
  });
@@ -3862,57 +3862,6 @@ var require_defaultComponentState_native = __commonJS({
3862
3862
  }
3863
3863
  });
3864
3864
 
3865
- // ../../core/web/dist/cjs/helpers/consoleLog.native.js
3866
- var require_consoleLog_native = __commonJS({
3867
- "../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
3868
- "use strict";
3869
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
3870
- for (var name in all) __defProp2(target, name, {
3871
- get: all[name],
3872
- enumerable: !0
3873
- });
3874
- }, __copyProps2 = function(to, from, except, desc) {
3875
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
3876
- if (from && typeof from == "object" || typeof from == "function") try {
3877
- for (var _loop = function() {
3878
- var key = _step.value;
3879
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
3880
- get: function() {
3881
- return from[key];
3882
- },
3883
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
3884
- });
3885
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
3886
- } catch (err) {
3887
- _didIteratorError = !0, _iteratorError = err;
3888
- } finally {
3889
- try {
3890
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
3891
- } finally {
3892
- if (_didIteratorError)
3893
- throw _iteratorError;
3894
- }
3895
- }
3896
- return to;
3897
- }, __toCommonJS2 = function(mod) {
3898
- return __copyProps2(__defProp2({}, "__esModule", {
3899
- value: !0
3900
- }), mod);
3901
- }, consoleLog_native_exports = {};
3902
- __export2(consoleLog_native_exports, {
3903
- groupCollapsed: function() {
3904
- return groupCollapsed;
3905
- },
3906
- groupEnd: function() {
3907
- return groupEnd;
3908
- }
3909
- });
3910
- module2.exports = __toCommonJS2(consoleLog_native_exports);
3911
- var groupEnd = function() {
3912
- }, groupCollapsed = console.info;
3913
- }
3914
- });
3915
-
3916
3865
  // ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
3917
3866
  var require_getShorthandValue_native = __commonJS({
3918
3867
  "../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
@@ -6445,7 +6394,7 @@ var require_getSplitStyles_native = __commonJS({
6445
6394
  }
6446
6395
  });
6447
6396
  module2.exports = __toCommonJS2(getSplitStyles_exports);
6448
- var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
6397
+ var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
6449
6398
  function isValidStyleKey(key, validStyles, accept) {
6450
6399
  return key in validStyles ? !0 : accept && key in accept;
6451
6400
  }
@@ -6458,7 +6407,7 @@ var require_getSplitStyles_native = __commonJS({
6458
6407
  var accepted = accept[keyInit];
6459
6408
  if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
6460
6409
  }
6461
- if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_consoleLog.groupEnd)(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
6410
+ if (process.env.NODE_ENV, disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
6462
6411
  if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
6463
6412
  if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
6464
6413
  return "continue";
@@ -6490,7 +6439,7 @@ var require_getSplitStyles_native = __commonJS({
6490
6439
  if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
6491
6440
  var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
6492
6441
  isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
6493
- if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupCollapsed)(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
6442
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
6494
6443
  isVariant,
6495
6444
  valInit,
6496
6445
  shouldPassProp
@@ -6509,7 +6458,7 @@ var require_getSplitStyles_native = __commonJS({
6509
6458
  viewProps[key4] = val2;
6510
6459
  return;
6511
6460
  }
6512
- if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), (0, import_consoleLog.groupEnd)()), val2 != null && !(key4 in usedKeys)) {
6461
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), console.groupEnd()), val2 != null && !(key4 in usedKeys)) {
6513
6462
  if (key4 === "pointerEvents") {
6514
6463
  viewProps[key4] = val2;
6515
6464
  return;
@@ -6524,12 +6473,12 @@ var require_getSplitStyles_native = __commonJS({
6524
6473
  }
6525
6474
  var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
6526
6475
  if (shouldPassThrough2) {
6527
- passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(` - passing down prop ${key4}`), (0, import_log.log)({
6476
+ passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key4}`), (0, import_log.log)({
6528
6477
  val: val2,
6529
6478
  after: {
6530
6479
  ...viewProps[key4]
6531
6480
  }
6532
- }), (0, import_consoleLog.groupEnd)());
6481
+ }), console.groupEnd());
6533
6482
  return;
6534
6483
  }
6535
6484
  if (isPseudo) {
@@ -6565,14 +6514,14 @@ var require_getSplitStyles_native = __commonJS({
6565
6514
  }
6566
6515
  if (!shouldDoClasses || isExit || isEnter) {
6567
6516
  var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
6568
- isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)("pseudo", key4, {
6517
+ isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key4, {
6569
6518
  isDisabled
6570
6519
  }), (0, import_log.log)({
6571
6520
  pseudoStyleObject,
6572
6521
  isDisabled,
6573
6522
  descriptor,
6574
6523
  componentState
6575
- }), (0, import_consoleLog.groupEnd)());
6524
+ }), console.groupEnd());
6576
6525
  var importance = descriptor.priority;
6577
6526
  for (var pkey in pseudoStyleObject) {
6578
6527
  var _$val = pseudoStyleObject[pkey];
@@ -6724,13 +6673,13 @@ var require_getSplitStyles_native = __commonJS({
6724
6673
  });
6725
6674
  } catch {
6726
6675
  }
6727
- (0, import_consoleLog.groupEnd)();
6676
+ console.groupEnd();
6728
6677
  }
6729
6678
  };
6730
6679
  conf = conf || (0, import_config.getConfig)();
6731
6680
  var animationDriver = (componentContext == null ? void 0 : componentContext.animationDriver) || conf.animations;
6732
6681
  import_constants4.isWeb && styleProps.isAnimated && animationDriver.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
6733
- var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
6682
+ var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass && !styleProps.isAnimated, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
6734
6683
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
6735
6684
  var styleState = {
6736
6685
  classNames,
@@ -6754,7 +6703,7 @@ var require_getSplitStyles_native = __commonJS({
6754
6703
  }
6755
6704
  }));
6756
6705
  }
6757
- process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && ((0, import_consoleLog.groupCollapsed)("getSplitStyles (collapsed)"), (0, import_log.log)({
6706
+ process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
6758
6707
  props,
6759
6708
  staticConfig,
6760
6709
  shouldDoClasses,
@@ -6765,7 +6714,7 @@ var require_getSplitStyles_native = __commonJS({
6765
6714
  theme: {
6766
6715
  ...theme
6767
6716
  }
6768
- }), (0, import_consoleLog.groupEnd)());
6717
+ }), console.groupEnd());
6769
6718
  var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
6770
6719
  for (var keyOg in props) _loop(keyOg);
6771
6720
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
@@ -6837,7 +6786,7 @@ var require_getSplitStyles_native = __commonJS({
6837
6786
  var style2 = styleState.style;
6838
6787
  if (0) {
6839
6788
  var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
6840
- if (!(styleProps.isAnimated && !animationDriver.supportsCSSVars && isReactNative) && isReactNative) {
6789
+ if (!styleProps.isAnimated && isReactNative) {
6841
6790
  var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
6842
6791
  try {
6843
6792
  for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
@@ -6848,7 +6797,7 @@ var require_getSplitStyles_native = __commonJS({
6848
6797
  } else style2 && (viewProps.style = style2);
6849
6798
  }
6850
6799
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
6851
- (0, import_consoleLog.groupCollapsed)("\u{1F539} getSplitStyles ===>");
6800
+ console.groupCollapsed("\u{1F539} getSplitStyles ===>");
6852
6801
  try {
6853
6802
  var logs = {
6854
6803
  ...result,
@@ -6861,7 +6810,7 @@ var require_getSplitStyles_native = __commonJS({
6861
6810
  for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
6862
6811
  } catch {
6863
6812
  }
6864
- (0, import_consoleLog.groupEnd)();
6813
+ console.groupEnd();
6865
6814
  }
6866
6815
  return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
6867
6816
  };
@@ -6919,7 +6868,6 @@ var require_getSplitStyles_native = __commonJS({
6919
6868
  return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
6920
6869
  }, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
6921
6870
  }, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k) {
6922
- conf = conf || (0, import_config.getConfig)();
6923
6871
  var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k);
6924
6872
  return res;
6925
6873
  };
@@ -7107,9 +7055,9 @@ var require_setElementProps_native = __commonJS({
7107
7055
  }
7108
7056
  });
7109
7057
 
7110
- // ../../core/web/dist/cjs/helpers/createShallowSetState.native.js
7111
- var require_createShallowSetState_native = __commonJS({
7112
- "../../core/web/dist/cjs/helpers/createShallowSetState.native.js"(exports2, module2) {
7058
+ // ../../core/web/dist/cjs/helpers/useCreateShallowSetState.native.js
7059
+ var require_useCreateShallowSetState_native = __commonJS({
7060
+ "../../core/web/dist/cjs/helpers/useCreateShallowSetState.native.js"(exports2, module2) {
7113
7061
  "use strict";
7114
7062
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
7115
7063
  for (var name in all) __defProp2(target, name, {
@@ -7143,43 +7091,31 @@ var require_createShallowSetState_native = __commonJS({
7143
7091
  return __copyProps2(__defProp2({}, "__esModule", {
7144
7092
  value: !0
7145
7093
  }), mod);
7146
- }, createShallowSetState_exports = {};
7147
- __export2(createShallowSetState_exports, {
7148
- createShallowSetState: function() {
7149
- return createShallowSetState;
7150
- },
7094
+ }, useCreateShallowSetState_exports = {};
7095
+ __export2(useCreateShallowSetState_exports, {
7151
7096
  isEqualShallow: function() {
7152
7097
  return isEqualShallow;
7153
7098
  },
7154
7099
  mergeIfNotShallowEqual: function() {
7155
7100
  return mergeIfNotShallowEqual;
7101
+ },
7102
+ useCreateShallowSetState: function() {
7103
+ return useCreateShallowSetState;
7156
7104
  }
7157
7105
  });
7158
- module2.exports = __toCommonJS2(createShallowSetState_exports);
7159
- var import_react3 = require("react"), callImmediate = function(cb) {
7160
- return cb();
7161
- };
7162
- function createShallowSetState(setter, onlyAllow, transition, debugIn) {
7106
+ module2.exports = __toCommonJS2(useCreateShallowSetState_exports);
7107
+ var import_react3 = require("react");
7108
+ function useCreateShallowSetState(setter, debugIn) {
7163
7109
  return (0, import_react3.useCallback)(function(next) {
7164
- var wrap = transition ? import_react3.startTransition : callImmediate;
7165
- wrap(function() {
7166
- setter(function(prev) {
7167
- return mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn);
7168
- });
7110
+ setter(function(prev) {
7111
+ return mergeIfNotShallowEqual(prev, next, debugIn);
7169
7112
  });
7170
7113
  }, [
7171
7114
  setter,
7172
- onlyAllow ? onlyAllow.join("") : "",
7173
- transition,
7174
7115
  debugIn
7175
7116
  ]);
7176
7117
  }
7177
- function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
7178
- if (onlyAllow) {
7179
- var allowed = {};
7180
- for (var key in next) onlyAllow.includes(key) && (allowed[key] = next[key]);
7181
- next = allowed;
7182
- }
7118
+ function mergeIfNotShallowEqual(prev, next, debug) {
7183
7119
  if (!prev || !next || isEqualShallow(prev, next)) return prev || next;
7184
7120
  if (process.env.NODE_ENV === "development" && debug && (console.info("setStateShallow CHANGE", {
7185
7121
  prev,
@@ -7240,7 +7176,7 @@ var require_subscribeToContextGroup_native = __commonJS({
7240
7176
  }
7241
7177
  });
7242
7178
  module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
7243
- var import_useMedia = require_useMedia_native(), import_createShallowSetState = require_createShallowSetState_native(), subscribeToContextGroup = function(param) {
7179
+ var import_useMedia = require_useMedia_native(), import_useCreateShallowSetState = require_useCreateShallowSetState_native(), subscribeToContextGroup = function(param) {
7244
7180
  var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
7245
7181
  if (pseudoGroups || mediaGroups) {
7246
7182
  var _componentContext_groups_subscribe, _componentContext_groups;
@@ -7251,7 +7187,7 @@ var require_subscribeToContextGroup_native = __commonJS({
7251
7187
  };
7252
7188
  if (pseudo && pseudoGroups != null && pseudoGroups.has(String(name))) Object.assign(current.pseudo, pseudo), persist();
7253
7189
  else if (layout && mediaGroups) {
7254
- var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0, import_createShallowSetState.mergeIfNotShallowEqual)(current.media, mediaState3);
7190
+ var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0, import_useCreateShallowSetState.mergeIfNotShallowEqual)(current.media || {}, mediaState3);
7255
7191
  next !== current.media && (Object.assign(current.media, next), persist());
7256
7192
  }
7257
7193
  function persist() {
@@ -8083,6 +8019,62 @@ var require_wrapStyleTags_native = __commonJS({
8083
8019
  }
8084
8020
  });
8085
8021
 
8022
+ // ../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js
8023
+ var require_ClientOnly_native = __commonJS({
8024
+ "../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
8025
+ "use strict";
8026
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8027
+ for (var name in all) __defProp2(target, name, {
8028
+ get: all[name],
8029
+ enumerable: !0
8030
+ });
8031
+ }, __copyProps2 = function(to, from, except, desc) {
8032
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
8033
+ if (from && typeof from == "object" || typeof from == "function") try {
8034
+ for (var _loop = function() {
8035
+ var key = _step.value;
8036
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
8037
+ get: function() {
8038
+ return from[key];
8039
+ },
8040
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
8041
+ });
8042
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
8043
+ } catch (err) {
8044
+ _didIteratorError = !0, _iteratorError = err;
8045
+ } finally {
8046
+ try {
8047
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
8048
+ } finally {
8049
+ if (_didIteratorError)
8050
+ throw _iteratorError;
8051
+ }
8052
+ }
8053
+ return to;
8054
+ }, __toCommonJS2 = function(mod) {
8055
+ return __copyProps2(__defProp2({}, "__esModule", {
8056
+ value: !0
8057
+ }), mod);
8058
+ }, ClientOnly_exports = {};
8059
+ __export2(ClientOnly_exports, {
8060
+ ClientOnly: function() {
8061
+ return ClientOnly2;
8062
+ },
8063
+ ClientOnlyContext: function() {
8064
+ return ClientOnlyContext2;
8065
+ }
8066
+ });
8067
+ module2.exports = __toCommonJS2(ClientOnly_exports);
8068
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
8069
+ var { children } = param;
8070
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
8071
+ value: !0,
8072
+ children
8073
+ });
8074
+ };
8075
+ }
8076
+ });
8077
+
8086
8078
  // ../../core/use-did-finish-ssr/dist/cjs/index.native.js
8087
8079
  var require_index_native13 = __commonJS({
8088
8080
  "../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
@@ -8133,16 +8125,28 @@ var require_index_native13 = __commonJS({
8133
8125
  }), mod);
8134
8126
  }, index_exports2 = {};
8135
8127
  __export2(index_exports2, {
8128
+ ClientOnly: function() {
8129
+ return import_ClientOnly2.ClientOnly;
8130
+ },
8131
+ ClientOnlyContext: function() {
8132
+ return import_ClientOnly2.ClientOnlyContext;
8133
+ },
8136
8134
  useClientValue: function() {
8137
8135
  return useClientValue;
8138
8136
  },
8139
8137
  useDidFinishSSR: function() {
8140
8138
  return useDidFinishSSR2;
8139
+ },
8140
+ useIsClientOnly: function() {
8141
+ return useIsClientOnly;
8141
8142
  }
8142
8143
  });
8143
8144
  module2.exports = __toCommonJS2(index_exports2);
8144
- var React4 = __toESM2(require("react"));
8145
+ var React4 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
8146
+ return React4.useContext(import_ClientOnly.ClientOnlyContext);
8147
+ };
8145
8148
  function useDidFinishSSR2(value) {
8149
+ var clientOnly = React4.useContext(import_ClientOnly.ClientOnlyContext);
8146
8150
  return value ?? !0;
8147
8151
  }
8148
8152
  function useClientValue(value) {
@@ -8195,10 +8199,12 @@ var require_useComponentState_native = __commonJS({
8195
8199
  }
8196
8200
  });
8197
8201
  module2.exports = __toCommonJS2(useComponentState_exports);
8198
- var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
8199
- var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), [startedUnhydrated] = (0, import_react3.useState)(import_constants4.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
8202
+ var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_useCreateShallowSetState = require_useCreateShallowSetState_native(), useComponentState = function(props, param, staticConfig, config) {
8203
+ var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(import_constants4.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
8200
8204
  stateRef.current || (stateRef.current = {});
8201
- var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
8205
+ var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current;
8206
+ !needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
8207
+ var willBeAnimatedClient = function() {
8202
8208
  var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
8203
8209
  return !!(next || curStateRef.hasAnimated);
8204
8210
  }(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
@@ -8218,16 +8224,12 @@ var require_useComponentState_native = __commonJS({
8218
8224
  ...states[0],
8219
8225
  [props.forceStyle]: !0
8220
8226
  } : states[0], setState = states[1], isAnimated = willBeAnimated;
8221
- import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
8222
- ...state
8227
+ import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState(function(_) {
8228
+ return {
8229
+ ...state
8230
+ };
8223
8231
  }));
8224
- var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
8225
- setState,
8226
- void 0,
8227
- // note: allows all state updates even when disabled for the enterStyle animation to work
8228
- !1,
8229
- props.debug
8230
- );
8232
+ var groupName = props.group, setStateShallow = (0, import_useCreateShallowSetState.useCreateShallowSetState)(setState, props.debug);
8231
8233
  if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
8232
8234
  process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`has presenceState ${JSON.stringify(presenceState)}`);
8233
8235
  var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
@@ -8235,7 +8237,7 @@ var require_useComponentState_native = __commonJS({
8235
8237
  var exv = exitVariant ?? enterExitVariant, env = enterVariant ?? enterExitVariant;
8236
8238
  state.unmounted && env && staticConfig.variants[env] ? (process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`Animating presence ENTER "${env}"`), props[env] = !0) : isExiting && exv && (process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`Animating presence EXIT "${exv}"`), props[exv] = exitVariant !== enterExitVariant);
8237
8239
  }
8238
- var noClass = !import_constants4.isWeb || !!props.forceStyle;
8240
+ var noClass = !import_constants4.isWeb || !!props.forceStyle || isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles);
8239
8241
  if (import_constants4.isWeb && (!import_constants4.isServer || isHydrated)) {
8240
8242
  var isAnimatedAndHydrated = isAnimated && !supportsCSSVars, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
8241
8243
  (isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0, process.env.NODE_ENV === "development" && props.debug && (0, import_log.log)("avoiding className", {
@@ -8264,6 +8266,26 @@ var require_useComponentState_native = __commonJS({
8264
8266
  }
8265
8267
  };
8266
8268
  }
8269
+ if (!curStateRef.stateEmitter && hasAnimationProp) {
8270
+ var listeners1 = /* @__PURE__ */ new Set();
8271
+ curStateRef.stateEmitter = {
8272
+ listeners: listeners1,
8273
+ emit(state2) {
8274
+ listeners1.forEach(function(l) {
8275
+ return l(state2);
8276
+ });
8277
+ },
8278
+ subscribe(cb) {
8279
+ return listeners1.add(cb), setStateShallow({
8280
+ hasDynGroupChildren: !0
8281
+ }), function() {
8282
+ listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
8283
+ hasDynGroupChildren: !1
8284
+ });
8285
+ };
8286
+ }
8287
+ };
8288
+ }
8267
8289
  return {
8268
8290
  startedUnhydrated,
8269
8291
  curStateRef,
@@ -8513,7 +8535,7 @@ var require_createComponent_native = __commonJS({
8513
8535
  }
8514
8536
  });
8515
8537
  module2.exports = __toCommonJS2(createComponent_exports);
8516
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_consoleLog = require_consoleLog_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
8538
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
8517
8539
  typeof document < "u" && (cancelTouches = function() {
8518
8540
  componentSetStates.forEach(function(setState) {
8519
8541
  return setState(function(prev) {
@@ -8627,10 +8649,14 @@ var require_createComponent_native = __commonJS({
8627
8649
  }, [
8628
8650
  componentName2
8629
8651
  ]);
8630
- var animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, setStateShallow, noClass, state, stateRef, supportsCSSVars, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, config);
8652
+ var animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, config), { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSSVars, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState, setStateShallow = componentState.setStateShallow;
8631
8653
  process.env.NODE_ENV === "development" && time2 && time2`use-state`;
8632
8654
  var hasTextAncestor = !!(import_constants4.isWeb && isText && componentContext.inText), isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants4.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
8633
- animationDriver && isAnimated && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
8655
+ animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
8656
+ // "needsWebStyles" basically with motion we just animate a plain div, but
8657
+ // we still have animated.View/Text for Sheet which wants to control
8658
+ // things declaratively
8659
+ !animationDriver.needsWebStyles && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
8634
8660
  var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
8635
8661
  process.env.NODE_ENV === "development" && time2 && time2`theme-props`, props.themeShallow && (curStateRef.themeShallow = !0);
8636
8662
  var themeStateProps = {
@@ -8642,7 +8668,7 @@ var require_createComponent_native = __commonJS({
8642
8668
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
8643
8669
  return !!stateRef.current.isListeningToTheme;
8644
8670
  }), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
8645
- var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
8671
+ var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : ""} ${type.trim()}`;
8646
8672
  if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), import_constants4.isServer) (0, import_log.log)({
8647
8673
  noClass,
8648
8674
  isAnimated,
@@ -8650,9 +8676,9 @@ var require_createComponent_native = __commonJS({
8650
8676
  supportsCSSVars
8651
8677
  });
8652
8678
  else {
8653
- (0, import_consoleLog.groupEnd)();
8679
+ console.groupEnd();
8654
8680
  var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
8655
- childLog.length && (childLog = `(children: ${childLog})`), (0, import_consoleLog.groupCollapsed)(`${childLog} Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
8681
+ childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
8656
8682
  state,
8657
8683
  staticConfig,
8658
8684
  elementType,
@@ -8666,7 +8692,7 @@ var require_createComponent_native = __commonJS({
8666
8692
  isHOC,
8667
8693
  hasAnimationProp,
8668
8694
  useAnimations
8669
- }), (0, import_consoleLog.groupEnd)();
8695
+ }), console.groupEnd();
8670
8696
  }
8671
8697
  }
8672
8698
  process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
@@ -8684,10 +8710,30 @@ var require_createComponent_native = __commonJS({
8684
8710
  isExiting,
8685
8711
  isAnimated,
8686
8712
  willBeAnimated,
8687
- styledContextProps
8713
+ styledContextProps,
8714
+ noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
8688
8715
  }, themeName = (themeState == null ? void 0 : themeState.name) || "";
8689
8716
  process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
8690
8717
  var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8718
+ if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
8719
+ var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
8720
+ setStateShallow = function(next) {
8721
+ var avoidReRenderKeys = /* @__PURE__ */ new Set([
8722
+ "hover",
8723
+ "press",
8724
+ "pressIn"
8725
+ ]), canAvoidReRender = Object.keys(next).every(function(key3) {
8726
+ return avoidReRenderKeys.has(key3);
8727
+ });
8728
+ if (canAvoidReRender) {
8729
+ var updatedState = {
8730
+ ...state,
8731
+ ...next
8732
+ }, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8733
+ styleListener(nextStyles.style);
8734
+ } else ogSetStateShallow(next);
8735
+ };
8736
+ }
8691
8737
  if (process.env.NODE_ENV === "development" && time2 && time2`split-styles`, props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
8692
8738
  var _splitStyles;
8693
8739
  (_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
@@ -8726,10 +8772,15 @@ var require_createComponent_native = __commonJS({
8726
8772
  (supportsCSSVars ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
8727
8773
  );
8728
8774
  if (shouldUseAnimation) {
8729
- var animations = useAnimations({
8775
+ var useStyleEmitter = animationDriver != null && animationDriver.avoidReRenders ? function(listener) {
8776
+ stateRef.current.useStyleListener = listener;
8777
+ } : void 0, animations = useAnimations({
8730
8778
  props: propsWithAnimation,
8731
8779
  // if hydrating, send empty style
8732
8780
  style: splitStylesStyle || {},
8781
+ // @ts-ignore
8782
+ styleState: splitStyles,
8783
+ useStyleEmitter,
8733
8784
  presence,
8734
8785
  componentState: state,
8735
8786
  styleProps,
@@ -8738,7 +8789,7 @@ var require_createComponent_native = __commonJS({
8738
8789
  staticConfig,
8739
8790
  stateRef
8740
8791
  });
8741
- (isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
8792
+ animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
8742
8793
  }
8743
8794
  process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
8744
8795
 
@@ -8772,7 +8823,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8772
8823
  }
8773
8824
  return styleObject;
8774
8825
  }, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
8775
- (0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
8826
+ console.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), console.groupEnd();
8776
8827
  }
8777
8828
  }), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8778
8829
  if (state.unmounted === !0 && hasEnterStyle) {
@@ -8988,7 +9039,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8988
9039
  if (process.env.NODE_ENV === "development" && time2 && time2`context-override`, process.env.NODE_ENV === "development" && time2 && time2`style-tags`, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
8989
9040
  var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
8990
9041
  if (import_constants4.isWeb) {
8991
- (0, import_consoleLog.groupCollapsed)(title);
9042
+ console.groupCollapsed(title);
8992
9043
  try {
8993
9044
  (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
8994
9045
  propsIn,
@@ -9019,7 +9070,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9019
9070
  });
9020
9071
  } catch {
9021
9072
  } finally {
9022
- (0, import_consoleLog.groupEnd)();
9073
+ console.groupEnd();
9023
9074
  }
9024
9075
  } else {
9025
9076
  (0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
@@ -10305,9 +10356,9 @@ var require_styled_native = __commonJS({
10305
10356
  });
10306
10357
  module2.exports = __toCommonJS2(styled_exports);
10307
10358
  var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
10308
- function styled8(ComponentIn, options, staticExtractionOptions) {
10359
+ function styled8(ComponentIn, options, config) {
10309
10360
  if (process.env.NODE_ENV !== "production" && !ComponentIn) throw new Error("No component given to styled()");
10310
- var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || staticExtractionOptions != null && staticExtractionOptions.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
10361
+ var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || config != null && config.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
10311
10362
  var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
10312
10363
  if (parentStaticConfig) {
10313
10364
  var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
@@ -10326,9 +10377,9 @@ var require_styled_native = __commonJS({
10326
10377
  ...defaultProps,
10327
10378
  ...defaultVariants
10328
10379
  }), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
10329
- var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), _staticExtractionOptions_acceptsClassName, _ref, acceptsClassName = (_ref = (_staticExtractionOptions_acceptsClassName = staticExtractionOptions == null ? void 0 : staticExtractionOptions.acceptsClassName) !== null && _staticExtractionOptions_acceptsClassName !== void 0 ? _staticExtractionOptions_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
10380
+ var isText = !!(config != null && config.isText || parentStaticConfig != null && parentStaticConfig.isText), _config_acceptsClassName, _ref, acceptsClassName = (_ref = (_config_acceptsClassName = config == null ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
10330
10381
  ...parentStaticConfig,
10331
- ...staticExtractionOptions,
10382
+ ...config,
10332
10383
  ...!isPlainStyledComponent && {
10333
10384
  Component
10334
10385
  },
@@ -11371,13 +11422,13 @@ var require_TamaguiProvider_native = __commonJS({
11371
11422
  }
11372
11423
  });
11373
11424
  module2.exports = __toCommonJS2(TamaguiProvider_exports);
11374
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native(), import_useMedia = require_useMedia_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
11425
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
11375
11426
  function ___onDidFinishClientRender(cb) {
11376
11427
  didRender ? cb() : listeners.add(cb);
11377
11428
  }
11378
11429
  function TamaguiProvider2(param) {
11379
11430
  var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
11380
- return (0, import_react3.useEffect)(function() {
11431
+ (0, import_react3.useEffect)(function() {
11381
11432
  return listeners.forEach(function(cb) {
11382
11433
  return cb();
11383
11434
  }), didRender = !0, function() {
@@ -11395,21 +11446,25 @@ var require_TamaguiProvider_native = __commonJS({
11395
11446
  disableInjectCSS
11396
11447
  ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
11397
11448
  (0, import_useMedia.updateMediaListeners)();
11398
- }, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
11449
+ }, []);
11450
+ var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
11451
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11452
+ animationDriver: config == null ? void 0 : config.animations,
11453
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
11454
+ themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
11455
+ disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
11456
+ defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
11457
+ reset,
11458
+ className,
11459
+ children
11460
+ })
11461
+ })
11462
+ });
11463
+ return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
11464
+ children: contents
11465
+ })), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
11399
11466
  children: [
11400
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
11401
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11402
- animationDriver: config == null ? void 0 : config.animations,
11403
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
11404
- themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
11405
- disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
11406
- defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
11407
- reset,
11408
- className,
11409
- children
11410
- })
11411
- })
11412
- }),
11467
+ contents,
11413
11468
  !1
11414
11469
  ]
11415
11470
  });
@@ -11485,12 +11540,14 @@ var require_Configuration_native = __commonJS({
11485
11540
  }
11486
11541
  });
11487
11542
  module2.exports = __toCommonJS2(Configuration_exports);
11488
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
11489
- var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
11490
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11543
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
11544
+ var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), clientOnly = (0, import_react3.useContext)(import_use_did_finish_ssr.ClientOnlyContext), children = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
11491
11545
  ...current,
11492
11546
  ...props
11493
11547
  });
11548
+ return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
11549
+ children
11550
+ }) : children;
11494
11551
  };
11495
11552
  Configuration2.displayName = "Configuration";
11496
11553
  }
@@ -11614,7 +11671,7 @@ var require_index_native14 = __commonJS({
11614
11671
  __reExport2(index_exports2, require_withStableStyle_native(), module2.exports);
11615
11672
  __reExport2(index_exports2, require_createMediaStyle_native(), module2.exports);
11616
11673
  __reExport2(index_exports2, require_getShorthandValue_native(), module2.exports);
11617
- __reExport2(index_exports2, require_createShallowSetState_native(), module2.exports);
11674
+ __reExport2(index_exports2, require_useCreateShallowSetState_native(), module2.exports);
11618
11675
  __reExport2(index_exports2, require_createStyledContext_native(), module2.exports);
11619
11676
  __reExport2(index_exports2, require_expandStyles_native(), module2.exports);
11620
11677
  __reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
@@ -14229,11 +14286,11 @@ var require_Collection_native = __commonJS({
14229
14286
  function createCollection(name) {
14230
14287
  var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
14231
14288
  collectionRef: {
14232
- current: null
14289
+ current: void 0
14233
14290
  },
14234
14291
  itemMap: /* @__PURE__ */ new Map()
14235
14292
  }), CollectionProvider = function(props) {
14236
- var { __scopeCollection, children } = props, ref = import_react3.default.useRef(null), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
14293
+ var { __scopeCollection, children } = props, ref = import_react3.default.useRef(void 0), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
14237
14294
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CollectionProviderImpl, {
14238
14295
  scope: __scopeCollection,
14239
14296
  itemMap,
@@ -14251,7 +14308,7 @@ var require_Collection_native = __commonJS({
14251
14308
  });
14252
14309
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
14253
14310
  var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
14254
- var { __scopeCollection, children, ...itemData } = props, ref = import_react3.default.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(__scopeCollection);
14311
+ var { __scopeCollection, children, ...itemData } = props, ref = import_react3.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(__scopeCollection);
14255
14312
  return import_react3.default.useEffect(function() {
14256
14313
  return context.itemMap.set(ref, {
14257
14314
  ref,
@@ -16575,10 +16632,9 @@ var require_GorhomPortal_native = __commonJS({
16575
16632
  });
16576
16633
  });
16577
16634
  function PortalHostWeb(props) {
16578
- var [mounted, setMounted] = (0, import_react3.useState)(!1);
16579
16635
  return (0, import_react3.useEffect)(function() {
16580
- return setMounted(!0), function() {
16581
- setMounted(!1), import_constants22.allPortalHosts.delete(props.name);
16636
+ return function() {
16637
+ import_constants22.allPortalHosts.delete(props.name);
16582
16638
  };
16583
16639
  }, [
16584
16640
  props.name
@@ -16587,7 +16643,7 @@ var require_GorhomPortal_native = __commonJS({
16587
16643
  display: "contents"
16588
16644
  },
16589
16645
  ref: function(node) {
16590
- if (node && mounted) {
16646
+ if (node) {
16591
16647
  var _portalListeners_props_name;
16592
16648
  import_constants22.allPortalHosts.set(props.name, node), (_portalListeners_props_name = import_constants22.portalListeners[props.name]) === null || _portalListeners_props_name === void 0 || _portalListeners_props_name.forEach(function(x) {
16593
16649
  return x(node);
@@ -18284,7 +18340,7 @@ var require_nativeSheet_native = __commonJS({
18284
18340
  function setupNativeSheet(platform2, RNIOSModal) {
18285
18341
  var { ModalSheetView, ModalSheetViewMainContent } = RNIOSModal;
18286
18342
  platform2 === "ios" && (nativeSheets[platform2] = function(props) {
18287
- var state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), { open, setOpen } = state, ref = (0, import_react3.useRef)();
18343
+ var state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), { open, setOpen } = state, ref = (0, import_react3.useRef)(void 0);
18288
18344
  (0, import_react3.useEffect)(function() {
18289
18345
  if (open) {
18290
18346
  var _ref_current;
@@ -18515,7 +18571,7 @@ var require_SheetImplementationCustom_native = __commonJS({
18515
18571
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native2(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
18516
18572
  var parentSheet = import_react3.default.useContext(import_contexts.ParentSheetContext), { animation, animationConfig: animationConfigProp, modal = !1, zIndex = parentSheet.zIndex + 1, moveOnKeyboardChange = !1, unmountChildrenWhenHidden = !1, portalProps, containerComponent: ContainerComponent = import_react3.default.Fragment } = props, state = (0, import_useSheetOpenState.useSheetOpenState)(props), [overlayComponent, setOverlayComponent] = import_react3.default.useState(null), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state, {
18517
18573
  onOverlayComponent: setOverlayComponent
18518
- }), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(null), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)(), animationConfig = function() {
18574
+ }), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(void 0), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)(), animationConfig = function() {
18519
18575
  if (animationDriver.supportsCSSVars) return {};
18520
18576
  var [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [
18521
18577
  animation
@@ -18573,7 +18629,7 @@ var require_SheetImplementationCustom_native = __commonJS({
18573
18629
  }
18574
18630
  });
18575
18631
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
18576
- if (hasntMeasured && screenSize) {
18632
+ if (hasntMeasured && screenSize && frameSize) {
18577
18633
  at.current = screenSize, animatedNumber.setValue(screenSize, {
18578
18634
  type: "timing",
18579
18635
  duration: 0
@@ -18736,10 +18792,9 @@ var require_SheetImplementationCustom_native = __commonJS({
18736
18792
  ref,
18737
18793
  ...panResponder == null ? void 0 : panResponder.panHandlers,
18738
18794
  onLayout: handleAnimationViewLayout,
18739
- ...!isDragging && {
18740
- // @ts-ignore for CSS driver this is necessary to attach the transition
18741
- animation: disableAnimation ? null : animation
18742
- },
18795
+ // @ts-ignore for CSS driver this is necessary to attach the transition
18796
+ // also motion driver at least though i suspect all drivers?
18797
+ animation: isDragging || disableAnimation ? null : animation,
18743
18798
  // @ts-ignore
18744
18799
  disableClassName: !0,
18745
18800
  style: [
@@ -19967,7 +20022,10 @@ var require_Dialog_native = __commonJS({
19967
20022
  }
19968
20023
  });
19969
20024
  }), DialogContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
19970
- var { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)();
20025
+ var { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
20026
+ // TODO react 19 type workaround
20027
+ void 0
20028
+ ), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)();
19971
20029
  if (isAdapted) return !import_constants4.isWeb && !context.open ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
19972
20030
  children: contentProps.children
19973
20031
  });
@@ -20497,7 +20555,10 @@ var require_AlertDialog_native = __commonJS({
20497
20555
  try {
20498
20556
  for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
20499
20557
  var child = _step.value;
20500
- /* @__PURE__ */ React4.isValidElement(child) && onChild(child) && child.props.children && forEachChildDeep(React4.Children.toArray(child.props.children), onChild);
20558
+ if (/* @__PURE__ */ React4.isValidElement(child) && onChild(child)) {
20559
+ var childProps = child.props;
20560
+ childProps.children && forEachChildDeep(React4.Children.toArray(childProps.children), onChild);
20561
+ }
20501
20562
  }
20502
20563
  } catch (err) {
20503
20564
  _didIteratorError = !0, _iteratorError = err;
@@ -20825,6 +20886,8 @@ var require_Square_native = __commonJS({
20825
20886
  ":number": import_getShapeSize.getShapeSize
20826
20887
  }
20827
20888
  }
20889
+ }, {
20890
+ memo: !0
20828
20891
  });
20829
20892
  }
20830
20893
  });
@@ -22197,7 +22260,7 @@ var require_focusableInputHOC_native = __commonJS({
22197
22260
  module2.exports = __toCommonJS2(focusableInputHOC_exports);
22198
22261
  var import_compose_refs = require_index_native11(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
22199
22262
  function useFocusable2(param) {
22200
- var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(), focusAndSelect = import_react3.default.useCallback(function(input) {
22263
+ var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(void 0), focusAndSelect = import_react3.default.useCallback(function(input) {
22201
22264
  input.focus(), input.setSelection && typeof inputValue.current == "string" && input.setSelection(0, inputValue.current.length);
22202
22265
  }, []), registerFocusableHandler = import_react3.default.useCallback(function(input) {
22203
22266
  var _unregisterFocusable_current;
@@ -23494,7 +23557,7 @@ var require_Group_native = __commonJS({
23494
23557
  }
23495
23558
  var GroupItem = /* @__PURE__ */ import_react3.default.forwardRef(function(props, _ref) {
23496
23559
  var { __scopeGroup, children, forcePlacement } = props, groupItemProps = useGroupItem({
23497
- disabled: /* @__PURE__ */ import_react3.default.isValidElement(children) ? children.props.disabled : void 0
23560
+ disabled: /* @__PURE__ */ import_react3.default.isValidElement(children) ? children.props.disabled : !1
23498
23561
  }, forcePlacement, __scopeGroup);
23499
23562
  return !/* @__PURE__ */ import_react3.default.isValidElement(children) || children.type === import_react3.default.Fragment ? children : /* @__PURE__ */ import_react3.default.cloneElement(children, groupItemProps);
23500
23563
  }), useGroupItem = function(childrenProps, forcePlacement, __scopeGroup) {
@@ -25023,7 +25086,7 @@ var require_Popover_native = __commonJS({
25023
25086
  Sheet: import_sheet.Sheet.Controlled,
25024
25087
  FocusScope: import_focus_scope.FocusScopeController
25025
25088
  }), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25026
- var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
25089
+ var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(void 0), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
25027
25090
  prop: openProp,
25028
25091
  defaultProp: defaultOpen || !1,
25029
25092
  onChange: function(val) {
@@ -25037,7 +25100,7 @@ var require_Popover_native = __commonJS({
25037
25100
  disable: isAdapted,
25038
25101
  hoverable,
25039
25102
  disableFocus
25040
- }), [anchorTo, setAnchorToRaw] = React4.useState(), setAnchorTo = (0, import_core12.createShallowSetState)(setAnchorToRaw);
25103
+ }), [anchorTo, setAnchorToRaw] = React4.useState(), setAnchorTo = (0, import_core12.useCreateShallowSetState)(setAnchorToRaw);
25041
25104
  React4.useImperativeHandle(forwardedRef, function() {
25042
25105
  return {
25043
25106
  anchorTo: setAnchorTo,
@@ -26979,7 +27042,7 @@ var require_SelectItemText_native = __commonJS({
26979
27042
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
26980
27043
  }
26981
27044
  }), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
26982
- var { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React4.useRef();
27045
+ var { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React4.useRef(null);
26983
27046
  return contents.current = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemTextFrame, {
26984
27047
  className,
26985
27048
  size: itemParentContext.size,
@@ -27503,7 +27566,7 @@ var require_Select_native = __commonJS({
27503
27566
  FocusScope: import_focus_scope.FocusScopeController
27504
27567
  });
27505
27568
  function useEmitter() {
27506
- var listeners = React4.useRef();
27569
+ var listeners = React4.useRef(null);
27507
27570
  listeners.current || (listeners.current = /* @__PURE__ */ new Set());
27508
27571
  var emit = function(value) {
27509
27572
  listeners.current.forEach(function(l) {
@@ -28122,7 +28185,7 @@ var require_Slider_native = __commonJS({
28122
28185
  size: 0,
28123
28186
  offset: 0
28124
28187
  };
28125
- }), setState = (0, import_core12.createShallowSetState)(setState_);
28188
+ }), setState = (0, import_core12.useCreateShallowSetState)(setState_);
28126
28189
  function getValueFromPointer(pointerPosition) {
28127
28190
  var input = [
28128
28191
  0,
@@ -28220,7 +28283,7 @@ var require_Slider_native = __commonJS({
28220
28283
  size: 0,
28221
28284
  offset: 0
28222
28285
  };
28223
- }), setState = (0, import_core12.createShallowSetState)(setState_), sliderRef = React4.useRef(null);
28286
+ }), setState = (0, import_core12.useCreateShallowSetState)(setState_), sliderRef = React4.useRef(null);
28224
28287
  function getValueFromPointer(pointerPosition) {
28225
28288
  var input = [
28226
28289
  0,
@@ -28985,6 +29048,7 @@ var require_createSwitch_native = __commonJS({
28985
29048
  checked,
28986
29049
  setChecked
28987
29050
  ],
29051
+ // @ts-ignore TODO tamagui react 19 type error
28988
29052
  forwardedRef
28989
29053
  );
28990
29054
  React4.useEffect(function() {