tamagui 1.129.12-1751449245669 → 1.129.12

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.
@@ -3285,80 +3285,6 @@ var require_index_native11 = __commonJS({
3285
3285
  }
3286
3286
  });
3287
3287
 
3288
- // ../../packages/is-equal-shallow/dist/cjs/index.native.js
3289
- var require_index_native12 = __commonJS({
3290
- "../../packages/is-equal-shallow/dist/cjs/index.native.js"(exports2, module2) {
3291
- "use strict";
3292
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
3293
- for (var name in all) __defProp2(target, name, {
3294
- get: all[name],
3295
- enumerable: !0
3296
- });
3297
- }, __copyProps2 = function(to, from, except, desc) {
3298
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
3299
- if (from && typeof from == "object" || typeof from == "function") try {
3300
- for (var _loop = function() {
3301
- var key = _step.value;
3302
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
3303
- get: function() {
3304
- return from[key];
3305
- },
3306
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
3307
- });
3308
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
3309
- } catch (err) {
3310
- _didIteratorError = !0, _iteratorError = err;
3311
- } finally {
3312
- try {
3313
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
3314
- } finally {
3315
- if (_didIteratorError)
3316
- throw _iteratorError;
3317
- }
3318
- }
3319
- return to;
3320
- }, __toCommonJS2 = function(mod) {
3321
- return __copyProps2(__defProp2({}, "__esModule", {
3322
- value: !0
3323
- }), mod);
3324
- }, index_exports2 = {};
3325
- __export2(index_exports2, {
3326
- isEqualShallow: function() {
3327
- return isEqualShallow;
3328
- },
3329
- mergeIfNotShallowEqual: function() {
3330
- return mergeIfNotShallowEqual;
3331
- },
3332
- useCreateShallowSetState: function() {
3333
- return useCreateShallowSetState;
3334
- }
3335
- });
3336
- module2.exports = __toCommonJS2(index_exports2);
3337
- var import_react3 = require("react");
3338
- function useCreateShallowSetState(setter, debug) {
3339
- return (0, import_react3.useCallback)(function(stateOrGetState) {
3340
- setter(function(prev) {
3341
- var next = typeof stateOrGetState == "function" ? stateOrGetState(prev) : stateOrGetState, update = mergeIfNotShallowEqual(prev, next);
3342
- return update;
3343
- });
3344
- }, [
3345
- setter,
3346
- debug
3347
- ]);
3348
- }
3349
- function mergeIfNotShallowEqual(prev, next) {
3350
- return !prev || !next || isEqualShallow(prev, next) ? prev || next : {
3351
- ...prev,
3352
- ...next
3353
- };
3354
- }
3355
- function isEqualShallow(prev, next) {
3356
- for (var key in next) if (prev[key] !== next[key]) return !1;
3357
- return !0;
3358
- }
3359
- }
3360
- });
3361
-
3362
3288
  // ../../core/web/dist/cjs/constants/isDevTools.native.js
3363
3289
  var require_isDevTools_native = __commonJS({
3364
3290
  "../../core/web/dist/cjs/constants/isDevTools.native.js"(exports2, module2) {
@@ -3602,55 +3528,13 @@ var require_ComponentContext_native = __commonJS({
3602
3528
  inText: !1,
3603
3529
  language: null,
3604
3530
  animationDriver: null,
3605
- setParentFocusState: null
3606
- });
3607
- }
3608
- });
3609
-
3610
- // ../../core/web/dist/cjs/contexts/GroupContext.native.js
3611
- var require_GroupContext_native = __commonJS({
3612
- "../../core/web/dist/cjs/contexts/GroupContext.native.js"(exports2, module2) {
3613
- "use strict";
3614
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
3615
- for (var name in all) __defProp2(target, name, {
3616
- get: all[name],
3617
- enumerable: !0
3618
- });
3619
- }, __copyProps2 = function(to, from, except, desc) {
3620
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
3621
- if (from && typeof from == "object" || typeof from == "function") try {
3622
- for (var _loop = function() {
3623
- var key = _step.value;
3624
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
3625
- get: function() {
3626
- return from[key];
3627
- },
3628
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
3629
- });
3630
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
3631
- } catch (err) {
3632
- _didIteratorError = !0, _iteratorError = err;
3633
- } finally {
3634
- try {
3635
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
3636
- } finally {
3637
- if (_didIteratorError)
3638
- throw _iteratorError;
3639
- }
3640
- }
3641
- return to;
3642
- }, __toCommonJS2 = function(mod) {
3643
- return __copyProps2(__defProp2({}, "__esModule", {
3644
- value: !0
3645
- }), mod);
3646
- }, GroupContext_exports = {};
3647
- __export2(GroupContext_exports, {
3648
- GroupContext: function() {
3649
- return GroupContext;
3531
+ setParentFocusState: null,
3532
+ groups: {
3533
+ emit: null,
3534
+ subscribe: null,
3535
+ state: {}
3650
3536
  }
3651
3537
  });
3652
- module2.exports = __toCommonJS2(GroupContext_exports);
3653
- var import_react3 = require("react"), GroupContext = /* @__PURE__ */ (0, import_react3.createContext)(null);
3654
3538
  }
3655
3539
  });
3656
3540
 
@@ -4559,7 +4443,7 @@ var require_normalize_color = __commonJS({
4559
4443
  });
4560
4444
 
4561
4445
  // ../../core/normalize-css-color/dist/cjs/index.native.js
4562
- var require_index_native13 = __commonJS({
4446
+ var require_index_native12 = __commonJS({
4563
4447
  "../../core/normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
4564
4448
  "use strict";
4565
4449
  var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -4682,7 +4566,7 @@ var require_normalizeColor_native = __commonJS({
4682
4566
  }
4683
4567
  });
4684
4568
  module2.exports = __toCommonJS2(normalizeColor_exports);
4685
- var import_normalize_css_color = require_index_native13(), import_normalize_css_color2 = require_index_native13(), normalizeColor = function(color, opacity) {
4569
+ var import_normalize_css_color = require_index_native12(), import_normalize_css_color2 = require_index_native12(), normalizeColor = function(color, opacity) {
4686
4570
  if (color) {
4687
4571
  if (color[0] === "$") return color;
4688
4572
  if (color.startsWith("var(")) {
@@ -6243,7 +6127,7 @@ var require_getSplitStyles_native = __commonJS({
6243
6127
  function isValidStyleKey(key, validStyles, accept) {
6244
6128
  return key in validStyles ? !0 : accept && key in accept;
6245
6129
  }
6246
- var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug) {
6130
+ var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, elementType, startedUnhydrated, debug) {
6247
6131
  var _loop = function(keyOg2) {
6248
6132
  var keyInit = keyOg2, valInit = props[keyInit];
6249
6133
  if (keyInit === "children") return viewProps[keyInit] = valInit, "continue";
@@ -6252,7 +6136,7 @@ var require_getSplitStyles_native = __commonJS({
6252
6136
  var accepted = accept[keyInit];
6253
6137
  if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
6254
6138
  }
6255
- if (disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className") return "continue";
6139
+ if (disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
6256
6140
  if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
6257
6141
  if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
6258
6142
  return "continue";
@@ -6277,7 +6161,7 @@ var require_getSplitStyles_native = __commonJS({
6277
6161
  parts.length === 2 || parts.length === 3 && import_pseudoDescriptors.pseudoPriorities[parts[parts.length - 1]]
6278
6162
  ) {
6279
6163
  var name2 = parts[1];
6280
- groupContext != null && groupContext[name2] || (keyInit = keyInit.replace("$group-", "$group-true-"));
6164
+ componentContext != null && componentContext.groups.subscribe && !(componentContext != null && componentContext.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
6281
6165
  }
6282
6166
  }
6283
6167
  var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
@@ -6293,13 +6177,13 @@ var require_getSplitStyles_native = __commonJS({
6293
6177
  viewProps[key4] = val2;
6294
6178
  return;
6295
6179
  }
6296
- if (val2 != null) {
6180
+ if (val2 != null && !(key4 in usedKeys)) {
6297
6181
  if (key4 === "pointerEvents") {
6298
6182
  viewProps[key4] = val2;
6299
6183
  return;
6300
6184
  }
6301
6185
  if (!isHOC && isValidStyleKey(key4, validStyles, accept) || import_constants4.isAndroid && key4 === "elevation") {
6302
- mergeStyle(styleState, key4, val2, 1);
6186
+ mergeStyle(styleState, key4, val2);
6303
6187
  return;
6304
6188
  }
6305
6189
  if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
@@ -6328,7 +6212,7 @@ var require_getSplitStyles_native = __commonJS({
6328
6212
  try {
6329
6213
  for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
6330
6214
  var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
6331
- addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier];
6215
+ fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
6332
6216
  }
6333
6217
  } catch (err) {
6334
6218
  _didIteratorError2 = !0, _iteratorError2 = err;
@@ -6354,7 +6238,7 @@ var require_getSplitStyles_native = __commonJS({
6354
6238
  var _pseudos1, _key1;
6355
6239
  pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key4] || (_pseudos1[_key1] = {}), pseudos[key4][pkey] = _$val;
6356
6240
  }
6357
- mergeStyle(styleState, pkey, _$val, importance);
6241
+ mergeStyle(styleState, pkey, _$val);
6358
6242
  }
6359
6243
  }
6360
6244
  }
@@ -6369,20 +6253,21 @@ var require_getSplitStyles_native = __commonJS({
6369
6253
  if (!val2) return;
6370
6254
  var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
6371
6255
  if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return;
6372
- var priority = mediaStylesSeen;
6373
- if (mediaStylesSeen += 1, shouldDoClasses) {
6256
+ if (shouldDoClasses) {
6374
6257
  var mediaStyle = getSubStyle(styleState, key4, val2, !1);
6375
6258
  if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
6376
6259
  var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
6377
6260
  importance1 && (space = val2.space, usedKeys.space = importance1);
6378
6261
  }
6379
- var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
6262
+ var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
6263
+ mediaStylesSeen += 1;
6264
+ var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
6380
6265
  try {
6381
6266
  for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = !0) {
6382
6267
  var style3 = _step12.value, property = style3[import_helpers.StyleObjectProperty], isSubStyle = property[0] === "$";
6383
6268
  if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
6384
6269
  var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
6385
- addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier];
6270
+ fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
6386
6271
  }
6387
6272
  }
6388
6273
  } catch (err) {
@@ -6415,28 +6300,27 @@ var require_getSplitStyles_native = __commonJS({
6415
6300
  scheme,
6416
6301
  val: _$val1,
6417
6302
  oppositeVal
6418
- }), mergeStyle(styleState, subKey1, mediaStyle1[subKey1], priority);
6303
+ }), mergeStyle(styleState, subKey1, mediaStyle1[subKey1]);
6419
6304
  }
6420
6305
  } else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
6421
6306
  } else if (isGroupMedia) {
6422
- var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state;
6423
- if (!groupState)
6307
+ var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = componentContext == null ? void 0 : componentContext.groups.state[groupName];
6308
+ if (!groupContext)
6424
6309
  return;
6425
6310
  var groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
6426
6311
  if (groupMediaKey) {
6427
6312
  mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
6428
6313
  var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
6429
- if (!mediaState1 && groupState.layout && (isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupState.layout)), !isActive) {
6314
+ if (!mediaState1 && groupContext.layout && (isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupContext.layout)), !isActive) {
6430
6315
  for (var pkey1 in mediaStyle1) applyDefaultStyle(pkey1, styleState);
6431
6316
  return;
6432
6317
  }
6433
6318
  importanceBump = 2;
6434
6319
  }
6435
6320
  if (groupPseudoKey) {
6436
- var _this;
6437
6321
  pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set()), pseudoGroups.add(groupName);
6438
- var componentGroupPseudoState = (_this = componentGroupState || // fallback to context initially
6439
- (groupContext == null ? void 0 : groupContext[groupName].state)) === null || _this === void 0 ? void 0 : _this.pseudo, isActive1 = componentGroupPseudoState == null ? void 0 : componentGroupPseudoState[groupPseudoKey], priority1 = import_pseudoDescriptors.pseudoPriorities[groupPseudoKey];
6322
+ var componentGroupPseudoState = (componentGroupState || // fallback to context initially
6323
+ componentContext.groups.state[groupName]).pseudo, isActive1 = componentGroupPseudoState == null ? void 0 : componentGroupPseudoState[groupPseudoKey], priority1 = import_pseudoDescriptors.pseudoPriorities[groupPseudoKey];
6440
6324
  if (!isActive1) {
6441
6325
  for (var pkey2 in mediaStyle1) applyDefaultStyle(pkey2, styleState);
6442
6326
  return;
@@ -6584,11 +6468,11 @@ var require_getSplitStyles_native = __commonJS({
6584
6468
  mergeTransform(target, key, val, !0);
6585
6469
  });
6586
6470
  }
6587
- function mergeStyle(styleState, key, val, importance) {
6588
- var disableNormalize = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, { viewProps, styleProps, staticConfig } = styleState, existingImportance = styleState.usedKeys[key];
6589
- if (!(importance < existingImportance)) if (key in import_helpers.stylePropsTransform) {
6590
- var _styleState, _styleState_usedKeys, _key;
6591
- (_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), (_styleState_usedKeys = styleState.usedKeys)[_key = key] || (_styleState_usedKeys[_key] = 1), styleState.flatTransforms[key] = val;
6471
+ function mergeStyle(styleState, key, val) {
6472
+ var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, { viewProps, styleProps, staticConfig } = styleState;
6473
+ if (key in import_helpers.stylePropsTransform) {
6474
+ var _styleState;
6475
+ (_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
6592
6476
  } else {
6593
6477
  var shouldNormalize = import_constants4.isWeb && !disableNormalize && !styleProps.noNormalize, out = shouldNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
6594
6478
  if (
@@ -6596,8 +6480,8 @@ var require_getSplitStyles_native = __commonJS({
6596
6480
  staticConfig.accept && key in staticConfig.accept
6597
6481
  ) viewProps[key] = out;
6598
6482
  else {
6599
- var _styleState1, _styleState_usedKeys1, _key1;
6600
- (_styleState1 = styleState).style || (_styleState1.style = {}), (_styleState_usedKeys1 = styleState.usedKeys)[_key1 = key] || (_styleState_usedKeys1[_key1] = 1), styleState.style[key] = // if you dont do this you'll be passing props.transform arrays directly here and then mutating them
6483
+ var _styleState1;
6484
+ (_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] = // if you dont do this you'll be passing props.transform arrays directly here and then mutating them
6601
6485
  // if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
6602
6486
  key === "transform" && Array.isArray(out) ? [
6603
6487
  ...out
@@ -6628,8 +6512,8 @@ var require_getSplitStyles_native = __commonJS({
6628
6512
  }
6629
6513
  return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
6630
6514
  }, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
6631
- }, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l) {
6632
- var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l);
6515
+ }, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k) {
6516
+ var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k);
6633
6517
  return res;
6634
6518
  };
6635
6519
  function addStyleToInsertRules(rulesToInsert, styleObject) {
@@ -6674,14 +6558,14 @@ var require_getSplitStyles_native = __commonJS({
6674
6558
  delete viewProps[key], viewProps[key] = next;
6675
6559
  } else viewProps[key] = val;
6676
6560
  }
6677
- function mergeMediaByImportance(styleState, mediaKey, key, value, usedKeys, isSizeMedia, importanceBump, debugProp) {
6678
- var importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, usedKeys, isSizeMedia);
6561
+ function mergeMediaByImportance(styleState, mediaKey, key, value, importancesUsed, isSizeMedia, importanceBump, debugProp) {
6562
+ var importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, importancesUsed, isSizeMedia);
6679
6563
  if (importanceBump && (importance = (importance || 0) + importanceBump), importance === null) return !1;
6680
- if (usedKeys[key] = importance, key in import_pseudoDescriptors.pseudoDescriptors) {
6564
+ if (importancesUsed[key] = importance, key in import_pseudoDescriptors.pseudoDescriptors) {
6681
6565
  var descriptor = import_pseudoDescriptors.pseudoDescriptors[key], descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = styleState.componentState[descriptorKey] === !1;
6682
6566
  if (isDisabled) return !1;
6683
- for (var subKey in value) mergeStyle(styleState, subKey, value[subKey], importance);
6684
- } else mergeStyle(styleState, key, value, importance);
6567
+ for (var subKey in value) mergeStyle(styleState, subKey, value[subKey]);
6568
+ } else mergeStyle(styleState, key, value);
6685
6569
  return !0;
6686
6570
  }
6687
6571
  function normalizeStyle(style) {
@@ -6694,7 +6578,7 @@ var require_getSplitStyles_native = __commonJS({
6694
6578
  }
6695
6579
  function applyDefaultStyle(pkey, styleState) {
6696
6580
  var defaultValues = animatableDefaults[pkey];
6697
- defaultValues != null && !(pkey in styleState.usedKeys) && (!styleState.style || !(pkey in styleState.style)) && mergeStyle(styleState, pkey, defaultValues, 1);
6581
+ defaultValues != null && !(pkey in styleState.usedKeys) && (!styleState.style || !(pkey in styleState.style)) && mergeStyle(styleState, pkey, defaultValues);
6698
6582
  }
6699
6583
  }
6700
6584
  });
@@ -6815,6 +6699,79 @@ var require_setElementProps_native = __commonJS({
6815
6699
  }
6816
6700
  });
6817
6701
 
6702
+ // ../../packages/is-equal-shallow/dist/cjs/index.native.js
6703
+ var require_index_native13 = __commonJS({
6704
+ "../../packages/is-equal-shallow/dist/cjs/index.native.js"(exports2, module2) {
6705
+ "use strict";
6706
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6707
+ for (var name in all) __defProp2(target, name, {
6708
+ get: all[name],
6709
+ enumerable: !0
6710
+ });
6711
+ }, __copyProps2 = function(to, from, except, desc) {
6712
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6713
+ if (from && typeof from == "object" || typeof from == "function") try {
6714
+ for (var _loop = function() {
6715
+ var key = _step.value;
6716
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6717
+ get: function() {
6718
+ return from[key];
6719
+ },
6720
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6721
+ });
6722
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
6723
+ } catch (err) {
6724
+ _didIteratorError = !0, _iteratorError = err;
6725
+ } finally {
6726
+ try {
6727
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6728
+ } finally {
6729
+ if (_didIteratorError)
6730
+ throw _iteratorError;
6731
+ }
6732
+ }
6733
+ return to;
6734
+ }, __toCommonJS2 = function(mod) {
6735
+ return __copyProps2(__defProp2({}, "__esModule", {
6736
+ value: !0
6737
+ }), mod);
6738
+ }, index_exports2 = {};
6739
+ __export2(index_exports2, {
6740
+ isEqualShallow: function() {
6741
+ return isEqualShallow;
6742
+ },
6743
+ mergeIfNotShallowEqual: function() {
6744
+ return mergeIfNotShallowEqual;
6745
+ },
6746
+ useCreateShallowSetState: function() {
6747
+ return useCreateShallowSetState;
6748
+ }
6749
+ });
6750
+ module2.exports = __toCommonJS2(index_exports2);
6751
+ var import_react3 = require("react");
6752
+ function useCreateShallowSetState(setter, debugIn) {
6753
+ return (0, import_react3.useCallback)(function(next) {
6754
+ setter(function(prev) {
6755
+ return mergeIfNotShallowEqual(prev, next, debugIn);
6756
+ });
6757
+ }, [
6758
+ setter,
6759
+ debugIn
6760
+ ]);
6761
+ }
6762
+ function mergeIfNotShallowEqual(prev, next, debug) {
6763
+ return !prev || !next || isEqualShallow(prev, next) ? prev || next : {
6764
+ ...prev,
6765
+ ...next
6766
+ };
6767
+ }
6768
+ function isEqualShallow(prev, next) {
6769
+ for (var key in next) if (prev[key] !== next[key]) return !1;
6770
+ return !0;
6771
+ }
6772
+ }
6773
+ });
6774
+
6818
6775
  // ../../core/web/dist/cjs/helpers/subscribeToContextGroup.native.js
6819
6776
  var require_subscribeToContextGroup_native = __commonJS({
6820
6777
  "../../core/web/dist/cjs/helpers/subscribeToContextGroup.native.js"(exports2, module2) {
@@ -6858,57 +6815,31 @@ var require_subscribeToContextGroup_native = __commonJS({
6858
6815
  }
6859
6816
  });
6860
6817
  module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
6861
- var import_is_equal_shallow = require_index_native12(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(props) {
6862
- var { pseudoGroups, mediaGroups, groupContext } = props;
6818
+ var import_useMedia = require_useMedia_native(), import_is_equal_shallow = require_index_native13(), subscribeToContextGroup = function(param) {
6819
+ var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
6863
6820
  if (pseudoGroups || mediaGroups) {
6864
- var disposables = /* @__PURE__ */ new Set();
6865
- if (pseudoGroups) for (var _i = 0, _iter = [
6866
- ...pseudoGroups
6867
- ]; _i < _iter.length; _i++) {
6868
- var name = _iter[_i];
6869
- disposables.add(createGroupListener(name, props));
6870
- }
6871
- if (mediaGroups) for (var _i1 = 0, _iter1 = [
6872
- ...mediaGroups
6873
- ]; _i1 < _iter1.length; _i1++) {
6874
- var name1 = _iter1[_i1];
6875
- disposables.add(createGroupListener(name1, props));
6876
- }
6877
- return function() {
6878
- disposables.forEach(function(d) {
6879
- return d();
6880
- });
6881
- };
6882
- }
6883
- }, createGroupListener = function(name, param) {
6884
- var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param, parent = groupContext == null ? void 0 : groupContext[name];
6885
- return parent ? parent.subscribe(function(param2) {
6886
- var { layout, pseudo } = param2;
6887
- setStateShallow(function(prev) {
6888
- var _prev_group, didChange = !1, group = ((_prev_group = prev.group) === null || _prev_group === void 0 ? void 0 : _prev_group[name]) || {
6821
+ var _componentContext_groups_subscribe, _componentContext_groups;
6822
+ return (_componentContext_groups = componentContext.groups) === null || _componentContext_groups === void 0 || (_componentContext_groups_subscribe = _componentContext_groups.subscribe) === null || _componentContext_groups_subscribe === void 0 ? void 0 : _componentContext_groups_subscribe.call(_componentContext_groups, function(name, param2) {
6823
+ var { layout, pseudo } = param2, _state_group, current = ((_state_group = state.group) === null || _state_group === void 0 ? void 0 : _state_group[name]) || {
6889
6824
  pseudo: {},
6890
6825
  media: {}
6891
6826
  };
6892
- if (pseudo && pseudoGroups != null && pseudoGroups.has(name)) {
6893
- var _group;
6894
- (_group = group).pseudo || (_group.pseudo = {});
6895
- var next = (0, import_is_equal_shallow.mergeIfNotShallowEqual)(group.pseudo, pseudo);
6896
- next !== group.pseudo && (Object.assign(group.pseudo, pseudo), didChange = !0);
6897
- } else if (layout && mediaGroups) {
6898
- var _group1;
6899
- (_group1 = group).media || (_group1.media = {});
6900
- var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next1 = (0, import_is_equal_shallow.mergeIfNotShallowEqual)(group.media, mediaState3);
6901
- next1 !== group.media && (Object.assign(group.media, next1), didChange = !0);
6827
+ if (pseudo && pseudoGroups != null && pseudoGroups.has(String(name))) Object.assign(current.pseudo, pseudo), persist();
6828
+ else if (layout && mediaGroups) {
6829
+ var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0, import_is_equal_shallow.mergeIfNotShallowEqual)(current.media || {}, mediaState3);
6830
+ next !== current.media && (Object.assign(current.media, next), persist());
6831
+ }
6832
+ function persist() {
6833
+ var group = {
6834
+ ...state.group,
6835
+ [name]: current
6836
+ };
6837
+ setStateShallow({
6838
+ group
6839
+ });
6902
6840
  }
6903
- return didChange ? {
6904
- group: {
6905
- ...prev.group,
6906
- [name]: group
6907
- }
6908
- } : prev;
6909
6841
  });
6910
- }) : function() {
6911
- };
6842
+ }
6912
6843
  };
6913
6844
  }
6914
6845
  });
@@ -7869,8 +7800,8 @@ var require_useComponentState_native = __commonJS({
7869
7800
  }
7870
7801
  });
7871
7802
  module2.exports = __toCommonJS2(useComponentState_exports);
7872
- var import_constants4 = require_index_native6(), import_is_equal_shallow = require_index_native12(), import_use_did_finish_ssr = require_index_native14(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, animationDriver, staticConfig, config) {
7873
- var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
7803
+ var import_constants4 = require_index_native6(), import_is_equal_shallow = require_index_native13(), import_use_did_finish_ssr = require_index_native14(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
7804
+ 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)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
7874
7805
  stateRef.current || (stateRef.current = {});
7875
7806
  var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
7876
7807
  !needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
@@ -7894,7 +7825,7 @@ var require_useComponentState_native = __commonJS({
7894
7825
  ...states[0],
7895
7826
  [props.forceStyle]: !0
7896
7827
  } : states[0], setState = states[1];
7897
- stateRef.current.nextComponentState && Object.assign(state, stateRef.current.nextComponentState);
7828
+ stateRef.current.nextComponentState && (Object.assign(state, stateRef.current.nextComponentState), stateRef.current.nextComponentState = void 0);
7898
7829
  var isAnimated = willBeAnimated;
7899
7830
  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(_) {
7900
7831
  return {
@@ -7913,6 +7844,46 @@ var require_useComponentState_native = __commonJS({
7913
7844
  var isAnimatedAndHydrated = isAnimated && !supportsCSS, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
7914
7845
  (isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0);
7915
7846
  }
7847
+ if (groupName && !curStateRef.group) {
7848
+ var listeners = /* @__PURE__ */ new Set();
7849
+ curStateRef.group = {
7850
+ listeners,
7851
+ emit(name, state2) {
7852
+ listeners.forEach(function(l) {
7853
+ return l(name, state2);
7854
+ });
7855
+ },
7856
+ subscribe(cb) {
7857
+ return listeners.add(cb), setStateShallow({
7858
+ hasDynGroupChildren: !0
7859
+ }), function() {
7860
+ listeners.delete(cb), listeners.size === 0 && setStateShallow({
7861
+ hasDynGroupChildren: !1
7862
+ });
7863
+ };
7864
+ }
7865
+ };
7866
+ }
7867
+ if (!curStateRef.stateEmitter && hasAnimationProp) {
7868
+ var listeners1 = /* @__PURE__ */ new Set();
7869
+ curStateRef.stateEmitter = {
7870
+ listeners: listeners1,
7871
+ emit(state2) {
7872
+ listeners1.forEach(function(l) {
7873
+ return l(state2);
7874
+ });
7875
+ },
7876
+ subscribe(cb) {
7877
+ return listeners1.add(cb), setStateShallow({
7878
+ hasDynGroupChildren: !0
7879
+ }), function() {
7880
+ listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
7881
+ hasDynGroupChildren: !1
7882
+ });
7883
+ };
7884
+ }
7885
+ };
7886
+ }
7916
7887
  return {
7917
7888
  startedUnhydrated,
7918
7889
  curStateRef,
@@ -8162,26 +8133,17 @@ var require_createComponent_native = __commonJS({
8162
8133
  }
8163
8134
  });
8164
8135
  module2.exports = __toCommonJS2(createComponent_exports);
8165
- 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_is_equal_shallow = require_index_native12(), 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_GroupContext = require_GroupContext_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(), componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
8166
- "hover",
8167
- "press",
8168
- "pressIn",
8169
- "group",
8170
- "focus",
8171
- "focusWithin",
8172
- "media",
8173
- "group"
8174
- ]);
8136
+ 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(), componentSetStates = /* @__PURE__ */ new Set();
8175
8137
  if (0) var cancelTouches;
8176
8138
  var BaseText, BaseView, hasSetupBaseViews = !1, lastInteractionWasKeyboard = {
8177
8139
  value: !1
8178
8140
  };
8179
8141
  import_constants4.isWeb && globalThis.document && (document.addEventListener("keydown", function() {
8180
- lastInteractionWasKeyboard.value || (lastInteractionWasKeyboard.value = !0);
8142
+ lastInteractionWasKeyboard.value = !0;
8181
8143
  }), document.addEventListener("mousedown", function() {
8182
- lastInteractionWasKeyboard.value && (lastInteractionWasKeyboard.value = !1);
8144
+ lastInteractionWasKeyboard.value = !1;
8183
8145
  }), document.addEventListener("mousemove", function() {
8184
- lastInteractionWasKeyboard.value && (lastInteractionWasKeyboard.value = !1);
8146
+ lastInteractionWasKeyboard.value = !1;
8185
8147
  }));
8186
8148
  function createComponent2(staticConfig) {
8187
8149
  var _staticConfig_defaultProps, { componentName } = staticConfig, config = null, defaultProps = staticConfig.defaultProps;
@@ -8206,7 +8168,7 @@ var require_createComponent_native = __commonJS({
8206
8168
  var _propsIn_datatestrenders, _current, _;
8207
8169
  (_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
8208
8170
  }
8209
- var styledContextProps, overriddenContextProps, contextValue, { context, isReactNative } = staticConfig;
8171
+ var componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), styledContextProps, overriddenContextProps, contextValue, { context, isReactNative } = staticConfig;
8210
8172
  if (context && (contextValue = import_react3.default.useContext(context), contextValue))
8211
8173
  for (var key in context.props) {
8212
8174
  var propVal = (0, import_getShorthandValue.getShorthandValue)(propsIn, key);
@@ -8225,67 +8187,21 @@ var require_createComponent_native = __commonJS({
8225
8187
  ...styledContextProps
8226
8188
  } : defaultProps, props = propsIn;
8227
8189
  curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
8228
- var componentName2 = props.componentName || staticConfig.componentName, componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContextParent = import_react3.default.useContext(import_GroupContext.GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, animationDriver, staticConfig, config), { disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState, allGroupContexts = (0, import_react3.useMemo)(function() {
8229
- var _stateRef_current_group;
8230
- if (!groupName) return groupContextParent;
8231
- (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
8232
- var listeners = /* @__PURE__ */ new Set();
8233
- return stateRef.current.group = {
8234
- listeners,
8235
- emit(state2) {
8236
- listeners.forEach(function(l) {
8237
- return l(state2);
8238
- });
8239
- },
8240
- subscribe(cb) {
8241
- return listeners.add(cb), listeners.size === 1 && setStateShallow({
8242
- hasDynGroupChildren: !0
8243
- }), function() {
8244
- listeners.delete(cb), listeners.size === 0 && setStateShallow({
8245
- hasDynGroupChildren: !1
8246
- });
8247
- };
8248
- }
8249
- }, {
8250
- ...groupContextParent,
8251
- [groupName]: {
8252
- state: {
8253
- pseudo: import_defaultComponentState.defaultComponentStateMounted
8254
- },
8255
- subscribe: function(listener) {
8256
- var _stateRef_current_group2, dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
8257
- return function() {
8258
- dispose == null || dispose();
8259
- };
8260
- }
8261
- }
8262
- };
8263
- }, [
8264
- stateRef,
8265
- groupName,
8266
- groupContextParent
8267
- ]), setStateShallow = componentState.setStateShallow, pendingState = stateRef.current.nextComponentState;
8268
- pendingState && (stateRef.current.nextComponentState = void 0, componentState.setState(function(prev) {
8269
- return {
8270
- ...prev,
8271
- ...pendingState
8272
- };
8273
- }));
8274
- 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;
8190
+ var componentName2 = props.componentName || staticConfig.componentName, 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, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState, setStateShallow = componentState.setStateShallow, 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;
8275
8191
  animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
8276
8192
  // "needsWebStyles" basically with motion we just animate a plain div, but
8277
8193
  // we still have animated.View/Text for Sheet which wants to control
8278
8194
  // things declaratively
8279
8195
  !animationDriver.needsWebStyles && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
8280
8196
  var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
8281
- props.themeShallow && (stateRef.current.themeShallow = !0);
8197
+ props.themeShallow && (curStateRef.themeShallow = !0);
8282
8198
  var themeStateProps = {
8283
8199
  componentName: componentName2,
8284
8200
  disable: disableTheme,
8285
- shallow: stateRef.current.themeShallow,
8201
+ shallow: curStateRef.themeShallow,
8286
8202
  debug: debugProp
8287
8203
  };
8288
- if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
8204
+ if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
8289
8205
  return !!stateRef.current.isListeningToTheme;
8290
8206
  }), themeStateProps.deopt = willBeAnimated, !1) {
8291
8207
  var name, type, dataIs, banner;
@@ -8307,47 +8223,33 @@ var require_createComponent_native = __commonJS({
8307
8223
  willBeAnimated,
8308
8224
  styledContextProps,
8309
8225
  noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
8310
- }, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
8311
- if (groupContext) {
8312
- var groupState = groupContext == null ? void 0 : groupContext.state;
8313
- if (groupState && groupState.layout === void 0) {
8314
- var _splitStyles_style, _splitStyles_style1;
8315
- (!((_splitStyles_style = splitStyles.style) === null || _splitStyles_style === void 0) && _splitStyles_style.width || !((_splitStyles_style1 = splitStyles.style) === null || _splitStyles_style1 === void 0) && _splitStyles_style1.height) && (groupState.layout = {
8316
- width: fromPx(splitStyles.style.width),
8317
- height: fromPx(splitStyles.style.height)
8318
- });
8319
- }
8320
- }
8321
- if ((hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
8226
+ }, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8227
+ if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
8322
8228
  var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
8323
- stateRef.current.setStateShallow = function(nextOrGetNext) {
8324
- var prev = stateRef.current.nextComponentState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
8325
- if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
8326
- var canAvoidReRender = Object.keys(next).every(function(key3) {
8327
- return avoidReRenderKeys.has(key3);
8328
- });
8329
- if (canAvoidReRender) {
8330
- var updatedState = {
8331
- ...prev,
8332
- ...next
8333
- };
8334
- stateRef.current.nextComponentState = updatedState;
8335
- var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
8336
- if (groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState), !hasAnimationProp || !styleListener) return;
8337
- var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp);
8338
- styleListener(nextStyles.style);
8339
- } else ogSetStateShallow(next);
8340
- }
8341
- }, setStateShallow = function(state2) {
8342
- var _stateRef_current_setStateShallow, _stateRef_current;
8343
- (_stateRef_current_setStateShallow = (_stateRef_current = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current, state2);
8229
+ setStateShallow = function(next) {
8230
+ var avoidReRenderKeys = /* @__PURE__ */ new Set([
8231
+ "hover",
8232
+ "press",
8233
+ "pressIn"
8234
+ ]), canAvoidReRender = Object.keys(next).every(function(key3) {
8235
+ return avoidReRenderKeys.has(key3);
8236
+ });
8237
+ if (canAvoidReRender && styleListener) {
8238
+ var updatedState = {
8239
+ ...state,
8240
+ ...next
8241
+ };
8242
+ stateRef.current.nextComponentState = updatedState;
8243
+ var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8244
+ styleListener(nextStyles.style);
8245
+ } else ogSetStateShallow(next);
8344
8246
  };
8345
8247
  }
8346
- if (props.group && props.untilMeasured === "hide" && !stateRef.current.hasMeasured) {
8248
+ if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
8347
8249
  var _splitStyles;
8348
8250
  (_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
8349
8251
  }
8350
- splitStyles.dynamicThemeAccess != null && (stateRef.current.isListeningToTheme = splitStyles.dynamicThemeAccess);
8252
+ curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
8351
8253
  var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
8352
8254
  (0, import_useMedia.setMediaShouldUpdate)(componentContext, shouldListenForMedia, mediaListeningKeys);
8353
8255
  var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
@@ -8400,18 +8302,18 @@ var require_createComponent_native = __commonJS({
8400
8302
  });
8401
8303
  animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`), animations.ref && (animatedRef = animations.ref));
8402
8304
  }
8403
- groupContext && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
8404
- var _stateRef_current_group, layout = e.nativeEvent.layout;
8405
- groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
8305
+ groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
8306
+ var layout = e.nativeEvent.layout;
8307
+ stateRef.current.group.layout = layout, stateRef.current.group.emit(groupName, {
8406
8308
  layout
8407
8309
  }), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
8408
8310
  return {
8409
8311
  ...prev
8410
8312
  };
8411
8313
  }), stateRef.current.hasMeasured = !0;
8412
- })), viewProps = ((_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, stateRef.current.willHydrate)) || nonTamaguiProps, stateRef.current.composedRef || (stateRef.current.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
8314
+ })), viewProps = ((_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curStateRef.willHydrate)) || nonTamaguiProps, curStateRef.composedRef || (curStateRef.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
8413
8315
  return stateRef.current.host = x;
8414
- }, forwardedRef, import_setElementProps.setElementProps, animatedRef)), viewProps.ref = stateRef.current.composedRef;
8316
+ }, forwardedRef, import_setElementProps.setElementProps, animatedRef)), viewProps.ref = curStateRef.composedRef;
8415
8317
  var { pseudoGroups, mediaGroups } = splitStyles, unPress = function() {
8416
8318
  setStateShallow({
8417
8319
  press: !1,
@@ -8439,21 +8341,18 @@ var require_createComponent_native = __commonJS({
8439
8341
  });
8440
8342
  return;
8441
8343
  }
8442
- return function() {
8443
- componentSetStates.delete(setState);
8444
- };
8445
- }, [
8446
- state.unmounted,
8447
- disabled
8448
- ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8449
- if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
8450
- groupContext: allGroupContexts,
8344
+ var dispose = !disabled && (pseudoGroups || mediaGroups) ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
8345
+ componentContext,
8451
8346
  setStateShallow,
8347
+ state,
8452
8348
  mediaGroups,
8453
8349
  pseudoGroups
8454
- });
8350
+ }) : null;
8351
+ return function() {
8352
+ dispose == null || dispose(), componentSetStates.delete(setState);
8353
+ };
8455
8354
  }, [
8456
- allGroupContexts,
8355
+ state.unmounted,
8457
8356
  disabled,
8458
8357
  pseudoGroups ? Object.keys([
8459
8358
  ...pseudoGroups
@@ -8461,15 +8360,24 @@ var require_createComponent_native = __commonJS({
8461
8360
  mediaGroups ? Object.keys([
8462
8361
  ...mediaGroups
8463
8362
  ]).join("") : 0
8464
- ]), hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_react3.useEffect)(function() {
8465
- stateRef.current.nextComponentState = void 0;
8466
- });
8467
- var groupEmitter = stateRef.current.group;
8468
- (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8469
- !groupContext || !groupEmitter || notifyGroupSubscribers(groupContext, groupEmitter, state);
8363
+ ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8364
+ var _curStateRef_group;
8365
+ if (groupName) {
8366
+ curStateRef.group.emit(groupName, {
8367
+ pseudo: state,
8368
+ layout: (_curStateRef_group = curStateRef.group) === null || _curStateRef_group === void 0 ? void 0 : _curStateRef_group.layout
8369
+ });
8370
+ var groupContextState = componentContext == null ? void 0 : componentContext.groups;
8371
+ if (groupContextState) {
8372
+ var next = {
8373
+ ...groupContextState[groupName],
8374
+ ...state
8375
+ };
8376
+ groupContextState[groupName] = next;
8377
+ }
8378
+ }
8470
8379
  }, [
8471
- groupContext,
8472
- groupEmitter,
8380
+ groupName,
8473
8381
  state
8474
8382
  ]);
8475
8383
  var runtimePressStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur || componentContext.setParentFocusState), hasDynamicGroupChildren = !!(groupName && state.hasDynGroupChildren), attachPress = !!(hasDynamicGroupChildren || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(hasDynamicGroupChildren || runtimeHoverStyle), attachHover = import_constants4.isWeb && !!(hasDynamicGroupChildren || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(hasDynamicGroupChildren || runtimePressStyle), events = shouldAttach ? {
@@ -8483,7 +8391,7 @@ var require_createComponent_native = __commonJS({
8483
8391
  },
8484
8392
  onMouseLeave: function(e) {
8485
8393
  var next = {};
8486
- needsHoverState && (next.hover = !1), needsPressState && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
8394
+ needsHoverState && (next.hover = !1), needsPressState && state.pressIn && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
8487
8395
  }
8488
8396
  },
8489
8397
  onPressIn: attachPress ? function(e) {
@@ -8554,15 +8462,37 @@ var require_createComponent_native = __commonJS({
8554
8462
  var useChildrenResult;
8555
8463
  import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
8556
8464
  var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
8557
- if (ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
8465
+ ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
8558
8466
  children: content
8559
- })), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
8467
+ }));
8468
+ var groupState = curStateRef.group, subGroupContext = import_react3.default.useMemo(function() {
8469
+ var _splitStyles_style, _splitStyles_style1;
8470
+ if (!(!groupState || !groupName)) return groupState.listeners.clear(), {
8471
+ ...componentContext.groups,
8472
+ // change reference so as we mutate it doesn't affect siblings etc
8473
+ state: {
8474
+ ...componentContext.groups.state,
8475
+ [groupName]: {
8476
+ pseudo: import_defaultComponentState.defaultComponentStateMounted,
8477
+ // capture just initial width and height if they exist
8478
+ // will have top, left, width, height (not x, y)
8479
+ layout: {
8480
+ width: fromPx((_splitStyles_style = splitStyles.style) === null || _splitStyles_style === void 0 ? void 0 : _splitStyles_style.width),
8481
+ height: fromPx((_splitStyles_style1 = splitStyles.style) === null || _splitStyles_style1 === void 0 ? void 0 : _splitStyles_style1.height)
8482
+ }
8483
+ }
8484
+ },
8485
+ emit: groupState.emit,
8486
+ subscribe: groupState.subscribe
8487
+ };
8488
+ }, [
8489
+ groupName
8490
+ ]);
8491
+ if (("group" in props || propsIn.focusWithinStyle) && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
8560
8492
  ...componentContext,
8493
+ groups: subGroupContext,
8561
8494
  setParentFocusState: setStateShallow,
8562
8495
  children: content
8563
- })), "group" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_GroupContext.GroupContext.Provider, {
8564
- value: allGroupContexts,
8565
- children: content
8566
8496
  })), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
8567
8497
  var contextProps = staticConfig.context.props;
8568
8498
  for (var key1 in contextProps) if (viewProps.style && key1 in viewProps.style || key1 in viewProps) {
@@ -8588,15 +8518,6 @@ var require_createComponent_native = __commonJS({
8588
8518
  }
8589
8519
  return content;
8590
8520
  });
8591
- function notifyGroupSubscribers(groupContext, groupEmitter, pseudo) {
8592
- if (!(!groupContext || !groupEmitter)) {
8593
- var nextState = {
8594
- ...groupContext.state,
8595
- pseudo
8596
- };
8597
- groupEmitter.emit(nextState), groupContext.state = nextState;
8598
- }
8599
- }
8600
8521
  staticConfig.componentName && (component.displayName = staticConfig.componentName);
8601
8522
  var res = component;
8602
8523
  (process.env.TAMAGUI_FORCE_MEMO || staticConfig.memo) && (res = /* @__PURE__ */ import_react3.default.memo(res)), res.staticConfig = staticConfig;
@@ -10366,8 +10287,13 @@ var require_useConfiguration_native = __commonJS({
10366
10287
  }
10367
10288
  });
10368
10289
  module2.exports = __toCommonJS2(useConfiguration_exports);
10369
- var import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), useConfiguration2 = function() {
10370
- return import_react3.default.useContext(import_ComponentContext.ComponentContext);
10290
+ var import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), useConfiguration2 = function() {
10291
+ var { groups, animationDriver, ...restComponentConfig } = import_react3.default.useContext(import_ComponentContext.ComponentContext), { animations, ...restConfig } = (0, import_config.getConfig)();
10292
+ return {
10293
+ ...restConfig,
10294
+ ...restComponentConfig,
10295
+ animationDriver: animationDriver ?? (0, import_config.getConfig)().animations
10296
+ };
10371
10297
  };
10372
10298
  }
10373
10299
  });
@@ -10534,7 +10460,7 @@ var require_useProps_native = __commonJS({
10534
10460
  }
10535
10461
  });
10536
10462
  module2.exports = __toCommonJS2(useProps_exports);
10537
- var import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_getSplitStyles = require_getSplitStyles_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_Stack = require_Stack_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native();
10463
+ var import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_getSplitStyles = require_getSplitStyles_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_Stack = require_Stack_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native();
10538
10464
  function useProps2(props, opts) {
10539
10465
  var [propsOut, styleOut] = usePropsAndStyle2(props, {
10540
10466
  ...opts,
@@ -10558,7 +10484,7 @@ var require_useProps_native = __commonJS({
10558
10484
  needsUpdate() {
10559
10485
  return !0;
10560
10486
  }
10561
- }), componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContext = import_react3.default.useContext(import_GroupContext.GroupContext), { state, disabled, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext.animationDriver, staticConfig, (0, import_config.getConfig)()), mediaStateNow = opts != null && opts.noMedia ? (
10487
+ }), componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), { state, disabled, setStateShallow } = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, (0, import_config.getConfig)()), mediaStateNow = opts != null && opts.noMedia ? (
10562
10488
  // not safe to use mediaState but really marginal to hit this
10563
10489
  import_useMedia.mediaState
10564
10490
  ) : (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, (themeState == null ? void 0 : themeState.name) || "", state, {
@@ -10569,7 +10495,7 @@ var require_useProps_native = __commonJS({
10569
10495
  noClass: !0,
10570
10496
  resolveValues: "auto",
10571
10497
  ...opts
10572
- }, null, componentContext, groupContext), { mediaGroups, pseudoGroups } = splitStyles;
10498
+ }, null, componentContext), { mediaGroups, pseudoGroups } = splitStyles;
10573
10499
  return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
10574
10500
  if (!disabled) {
10575
10501
  if (state.unmounted) {
@@ -10578,16 +10504,16 @@ var require_useProps_native = __commonJS({
10578
10504
  });
10579
10505
  return;
10580
10506
  }
10581
- if (groupContext) return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
10582
- groupContext,
10507
+ return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
10508
+ componentContext,
10583
10509
  setStateShallow,
10510
+ state,
10584
10511
  mediaGroups,
10585
10512
  pseudoGroups
10586
10513
  });
10587
10514
  }
10588
10515
  }, [
10589
10516
  disabled,
10590
- groupContext,
10591
10517
  pseudoGroups ? Object.keys([
10592
10518
  ...pseudoGroups
10593
10519
  ]).join("") : 0,
@@ -11168,7 +11094,7 @@ var require_index_native15 = __commonJS({
11168
11094
  __reExport2(index_exports2, require_withStableStyle_native(), module2.exports);
11169
11095
  __reExport2(index_exports2, require_createMediaStyle_native(), module2.exports);
11170
11096
  __reExport2(index_exports2, require_getShorthandValue_native(), module2.exports);
11171
- __reExport2(index_exports2, require_index_native12(), module2.exports);
11097
+ __reExport2(index_exports2, require_index_native13(), module2.exports);
11172
11098
  var import_insertStyleRule2 = require_insertStyleRule_native();
11173
11099
  __reExport2(index_exports2, require_createStyledContext_native(), module2.exports);
11174
11100
  __reExport2(index_exports2, require_expandStyles_native(), module2.exports);
@@ -12845,7 +12771,7 @@ var require_index_native19 = __commonJS({
12845
12771
  }
12846
12772
  });
12847
12773
  module2.exports = __toCommonJS2(index_exports2);
12848
- var import_constants4 = require_index_native6(), import_is_equal_shallow = require_index_native12(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), strategy = "async";
12774
+ var import_constants4 = require_index_native6(), import_is_equal_shallow = require_index_native13(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), strategy = "async";
12849
12775
  function setOnLayoutStrategy3(state) {
12850
12776
  strategy = state;
12851
12777
  }
@@ -12887,9 +12813,7 @@ var require_index_native19 = __commonJS({
12887
12813
  } else nodeRect = node.getBoundingClientRect(), parentRect = parentNode.getBoundingClientRect();
12888
12814
  var cachedRect = NodeRectCache.get(node), cachedParentRect = NodeRectCache.get(parentNode);
12889
12815
  if (!cachedRect || // has changed one rect
12890
- // @ts-expect-error DOMRectReadOnly can go into object
12891
- !(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) && // @ts-expect-error DOMRectReadOnly can go into object
12892
- (!cachedParentRect || !(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect))) {
12816
+ !(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect))) {
12893
12817
  NodeRectCache.set(node, nodeRect), ParentRectCache.set(parentNode, parentRect);
12894
12818
  var event = getElementLayoutEvent(nodeRect, parentRect);
12895
12819
  avoidUpdates ? queuedUpdates.set(node, function() {
@@ -17942,9 +17866,7 @@ var require_SheetImplementationCustom_native = __commonJS({
17942
17866
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_portal2 = require_index_native30(), 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) {
17943
17867
  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, {
17944
17868
  onOverlayComponent: setOverlayComponent
17945
- }), { 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)();
17946
- if (!animationDriver) throw new Error("Sheet reqiures an animation driver to be set");
17947
- var animationConfig = function() {
17869
+ }), { 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() {
17948
17870
  if (animationDriver.supportsCSS) return {};
17949
17871
  var [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [
17950
17872
  animation