tamagui 1.129.11 → 1.129.12-1751386794649

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.
@@ -2542,6 +2542,9 @@ var require_insertStyleRule_native = __commonJS({
2542
2542
  shouldInsertStyleRules: function() {
2543
2543
  return shouldInsertStyleRules;
2544
2544
  },
2545
+ stopAccumulatingRules: function() {
2546
+ return stopAccumulatingRules;
2547
+ },
2545
2548
  updateRules: function() {
2546
2549
  return updateRules;
2547
2550
  }
@@ -2612,52 +2615,61 @@ var require_insertStyleRule_native = __commonJS({
2612
2615
  }
2613
2616
  }
2614
2617
  }
2615
- function track(id) {
2618
+ function trackInsertedStyle(id) {
2616
2619
  var remove = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, next = (totalSelectorsInserted.get(id) || 0) + (remove ? -1 : 1);
2617
2620
  return totalSelectorsInserted.set(id, next), next;
2618
2621
  }
2619
- var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700, sheet = null;
2622
+ var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700, sheet = null, trackAllRules = !0;
2623
+ function stopAccumulatingRules() {
2624
+ trackAllRules = !0;
2625
+ }
2620
2626
  function updateRules(identifier, rules) {
2621
- return identifier in allRules ? !1 : (allRules[identifier] = rules.join(" "), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0);
2627
+ return trackAllRules && (allRules[identifier] = rules.join(" ")), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0;
2622
2628
  }
2623
2629
  var nonce = "";
2624
2630
  function setNonce2(_) {
2625
2631
  nonce = _;
2626
2632
  }
2627
2633
  function insertStyleRules2(rulesToInsert) {
2628
- if (!sheet && import_constants4.isClient && document.head) {
2629
- var styleTag = document.createElement("style");
2630
- nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2631
- }
2632
- if (sheet) for (var key in rulesToInsert) {
2633
- var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers.StyleObjectIdentifier];
2634
- if (shouldInsertStyleRules(identifier)) {
2635
- var rules = styleObject[import_helpers.StyleObjectRules];
2636
- allSelectors[identifier] = rules.join(`
2637
- `), track(identifier), updateRules(identifier, rules);
2638
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
2639
- try {
2640
- for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
2641
- var rule = _step.value;
2642
- sheet.insertRule(rule, sheet.cssRules.length);
2643
- }
2644
- } catch (err) {
2645
- _didIteratorError = !0, _iteratorError = err;
2646
- } finally {
2634
+ if (import_constants4.isClient) {
2635
+ if (!sheet && document.head) {
2636
+ var styleTag = document.createElement("style");
2637
+ nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2638
+ }
2639
+ if (!sheet) {
2640
+ console.warn("[tamagui] no sheet");
2641
+ return;
2642
+ }
2643
+ for (var key in rulesToInsert) {
2644
+ var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers.StyleObjectIdentifier];
2645
+ if (shouldInsertStyleRules(identifier)) {
2646
+ var rules = styleObject[import_helpers.StyleObjectRules];
2647
+ allSelectors[identifier] = rules.join(`
2648
+ `), updateRules(identifier, rules), trackInsertedStyle(identifier);
2649
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
2647
2650
  try {
2648
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
2651
+ for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
2652
+ var rule = _step.value;
2653
+ sheet.insertRule(rule, sheet.cssRules.length);
2654
+ }
2655
+ } catch (err) {
2656
+ _didIteratorError = !0, _iteratorError = err;
2649
2657
  } finally {
2650
- if (_didIteratorError) throw _iteratorError;
2658
+ try {
2659
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
2660
+ } finally {
2661
+ if (_didIteratorError) throw _iteratorError;
2662
+ }
2651
2663
  }
2652
2664
  }
2653
2665
  }
2654
2666
  }
2655
2667
  }
2656
- var minInsertAmt = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
2668
+ var maxToInsert = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
2657
2669
  function shouldInsertStyleRules(identifier) {
2658
2670
  if (process.env.IS_STATIC === "is_static") return !0;
2659
- var total = totalSelectorsInserted.get(identifier);
2660
- return total === void 0 || total < minInsertAmt;
2671
+ var total = totalSelectorsInserted.get(identifier) || 0;
2672
+ return total < maxToInsert;
2661
2673
  }
2662
2674
  }
2663
2675
  });
@@ -6200,7 +6212,7 @@ var require_getSplitStyles_native = __commonJS({
6200
6212
  try {
6201
6213
  for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
6202
6214
  var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
6203
- fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle, startedUnhydrated), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
6215
+ fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
6204
6216
  }
6205
6217
  } catch (err) {
6206
6218
  _didIteratorError2 = !0, _iteratorError2 = err;
@@ -6255,7 +6267,7 @@ var require_getSplitStyles_native = __commonJS({
6255
6267
  var style3 = _step12.value, property = style3[import_helpers.StyleObjectProperty], isSubStyle = property[0] === "$";
6256
6268
  if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
6257
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] || ""}`;
6258
- fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out, startedUnhydrated), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
6270
+ fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
6259
6271
  }
6260
6272
  }
6261
6273
  } catch (err) {
@@ -6505,7 +6517,6 @@ var require_getSplitStyles_native = __commonJS({
6505
6517
  return res;
6506
6518
  };
6507
6519
  function addStyleToInsertRules(rulesToInsert, styleObject) {
6508
- var startedUnhydrated = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
6509
6520
  if (0) var identifier;
6510
6521
  }
6511
6522
  var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animatableDefaults = {
@@ -6738,17 +6749,18 @@ var require_index_native13 = __commonJS({
6738
6749
  });
6739
6750
  module2.exports = __toCommonJS2(index_exports2);
6740
6751
  var import_react3 = require("react");
6741
- function useCreateShallowSetState(setter, debugIn) {
6752
+ function useCreateShallowSetState(setter, debug) {
6742
6753
  return (0, import_react3.useCallback)(function(next) {
6743
6754
  setter(function(prev) {
6744
- return mergeIfNotShallowEqual(prev, next, debugIn);
6755
+ var update = mergeIfNotShallowEqual(prev, next);
6756
+ return update;
6745
6757
  });
6746
6758
  }, [
6747
6759
  setter,
6748
- debugIn
6760
+ debug
6749
6761
  ]);
6750
6762
  }
6751
- function mergeIfNotShallowEqual(prev, next, debug) {
6763
+ function mergeIfNotShallowEqual(prev, next) {
6752
6764
  return !prev || !next || isEqualShallow(prev, next) ? prev || next : {
6753
6765
  ...prev,
6754
6766
  ...next
@@ -7603,7 +7615,7 @@ var require_wrapStyleTags_native = __commonJS({
7603
7615
  });
7604
7616
  module2.exports = __toCommonJS2(wrapStyleTags_exports);
7605
7617
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_helpers = require_index_native7();
7606
- function getStyleTags(styles, content) {
7618
+ function getStyleTags(styles) {
7607
7619
  import_constants4.IS_REACT_19;
7608
7620
  }
7609
7621
  }
@@ -7792,14 +7804,14 @@ var require_useComponentState_native = __commonJS({
7792
7804
  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) {
7793
7805
  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);
7794
7806
  stateRef.current || (stateRef.current = {});
7795
- var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current;
7807
+ var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
7796
7808
  !needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
7797
7809
  var willBeAnimatedClient = function() {
7798
7810
  var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
7799
7811
  return !!(next || curStateRef.hasAnimated);
7800
7812
  }(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
7801
7813
  willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
7802
- var { disableClassName } = props, presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSSVars), hasEnterState = hasEnterStyle || isEntering, shouldEnter = hasEnterState || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
7814
+ var { disableClassName } = props, presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS), hasEnterState = hasEnterStyle || isEntering, shouldEnter = hasEnterState || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
7803
7815
  // this is just for a better ux, supports css variables for light/dark, media queries, etc
7804
7816
  disableClassName, initialState = shouldEnter ? (
7805
7817
  // on the very first render we switch all spring animation drivers to css rendering
@@ -7813,7 +7825,9 @@ var require_useComponentState_native = __commonJS({
7813
7825
  var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
7814
7826
  ...states[0],
7815
7827
  [props.forceStyle]: !0
7816
- } : states[0], setState = states[1], isAnimated = willBeAnimated;
7828
+ } : states[0], setState = states[1];
7829
+ stateRef.current.nextComponentState && Object.assign(state, stateRef.current.nextComponentState);
7830
+ var isAnimated = willBeAnimated;
7817
7831
  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(_) {
7818
7832
  return {
7819
7833
  ...state
@@ -7828,7 +7842,7 @@ var require_useComponentState_native = __commonJS({
7828
7842
  }
7829
7843
  var noClass = !import_constants4.isWeb || !!props.forceStyle || isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles);
7830
7844
  if (import_constants4.isWeb && (!import_constants4.isServer || isHydrated)) {
7831
- var isAnimatedAndHydrated = isAnimated && !supportsCSSVars, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
7845
+ var isAnimatedAndHydrated = isAnimated && !supportsCSS, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
7832
7846
  (isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0);
7833
7847
  }
7834
7848
  if (groupName && !curStateRef.group) {
@@ -7851,26 +7865,6 @@ var require_useComponentState_native = __commonJS({
7851
7865
  }
7852
7866
  };
7853
7867
  }
7854
- if (!curStateRef.stateEmitter && hasAnimationProp) {
7855
- var listeners1 = /* @__PURE__ */ new Set();
7856
- curStateRef.stateEmitter = {
7857
- listeners: listeners1,
7858
- emit(state2) {
7859
- listeners1.forEach(function(l) {
7860
- return l(state2);
7861
- });
7862
- },
7863
- subscribe(cb) {
7864
- return listeners1.add(cb), setStateShallow({
7865
- hasDynGroupChildren: !0
7866
- }), function() {
7867
- listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
7868
- hasDynGroupChildren: !1
7869
- });
7870
- };
7871
- }
7872
- };
7873
- }
7874
7868
  return {
7875
7869
  startedUnhydrated,
7876
7870
  curStateRef,
@@ -7888,7 +7882,7 @@ var require_useComponentState_native = __commonJS({
7888
7882
  noClass,
7889
7883
  state,
7890
7884
  stateRef,
7891
- supportsCSSVars,
7885
+ supportsCSS,
7892
7886
  willBeAnimated,
7893
7887
  willBeAnimatedClient
7894
7888
  };
@@ -8120,19 +8114,15 @@ var require_createComponent_native = __commonJS({
8120
8114
  }
8121
8115
  });
8122
8116
  module2.exports = __toCommonJS2(createComponent_exports);
8123
- 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();
8124
- typeof window < "u" && (cancelTouches = function() {
8125
- componentSetStates.forEach(function(setState) {
8126
- return setState(function(prev) {
8127
- return prev.press || prev.pressIn ? {
8128
- ...prev,
8129
- press: !1,
8130
- pressIn: !1
8131
- } : prev;
8132
- });
8133
- }), componentSetStates.clear();
8134
- }, addEventListener("mouseup", cancelTouches), addEventListener("touchend", cancelTouches), addEventListener("touchcancel", cancelTouches));
8135
- var cancelTouches, BaseText, BaseView, hasSetupBaseViews = !1, lastInteractionWasKeyboard = {
8117
+ 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(), avoidReRenderKeys = /* @__PURE__ */ new Set([
8118
+ "hover",
8119
+ "press",
8120
+ "pressIn",
8121
+ "group",
8122
+ "media"
8123
+ ]);
8124
+ if (0) var cancelTouches;
8125
+ var BaseText, BaseView, hasSetupBaseViews = !1, lastInteractionWasKeyboard = {
8136
8126
  value: !1
8137
8127
  };
8138
8128
  import_constants4.isWeb && globalThis.document && (document.addEventListener("keydown", function() {
@@ -8184,7 +8174,7 @@ var require_createComponent_native = __commonJS({
8184
8174
  ...styledContextProps
8185
8175
  } : defaultProps, props = propsIn;
8186
8176
  curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
8187
- 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, supportsCSSVars, 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;
8177
+ 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;
8188
8178
  animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
8189
8179
  // "needsWebStyles" basically with motion we just animate a plain div, but
8190
8180
  // we still have animated.View/Text for Sheet which wants to control
@@ -8210,7 +8200,7 @@ var require_createComponent_native = __commonJS({
8210
8200
  (0, import_createVariable.setDidGetVariableValue)(!1);
8211
8201
  var resolveValues = (
8212
8202
  // if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
8213
- isAnimated && !supportsCSSVars || isHOC && state.unmounted == !1 && hasAnimationProp ? "value" : "auto"
8203
+ isAnimated && !supportsCSS || isHOC && state.unmounted == !1 && hasAnimationProp ? "value" : "auto"
8214
8204
  ), styleProps = {
8215
8205
  mediaState: mediaState3,
8216
8206
  noClass,
@@ -8224,18 +8214,19 @@ var require_createComponent_native = __commonJS({
8224
8214
  if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
8225
8215
  var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
8226
8216
  setStateShallow = function(next) {
8227
- var avoidReRenderKeys = /* @__PURE__ */ new Set([
8228
- "hover",
8229
- "press",
8230
- "pressIn"
8231
- ]), canAvoidReRender = Object.keys(next).every(function(key3) {
8217
+ var canAvoidReRender = Object.keys(next).every(function(key3) {
8232
8218
  return avoidReRenderKeys.has(key3);
8233
8219
  });
8234
8220
  if (canAvoidReRender && styleListener) {
8235
- var updatedState = {
8221
+ var _curStateRef_group, _curStateRef_group1, updatedState = {
8236
8222
  ...state,
8237
8223
  ...next
8238
- }, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8224
+ };
8225
+ (_curStateRef_group1 = curStateRef.group) === null || _curStateRef_group1 === void 0 || _curStateRef_group1.emit(groupName, {
8226
+ pseudo: updatedState,
8227
+ layout: (_curStateRef_group = curStateRef.group) === null || _curStateRef_group === void 0 ? void 0 : _curStateRef_group.layout
8228
+ }), stateRef.current.nextComponentState = updatedState;
8229
+ var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
8239
8230
  styleListener(nextStyles.style);
8240
8231
  } else ogSetStateShallow(next);
8241
8232
  };
@@ -8275,7 +8266,7 @@ var require_createComponent_native = __commonJS({
8275
8266
  !isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), tagProp && elementType.acceptTagProp && (viewProps.tag = tagProp);
8276
8267
  var animationStyles, shouldUseAnimation = (
8277
8268
  // if it supports css vars we run it on server too to get matching initial style
8278
- (supportsCSSVars ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
8269
+ (supportsCSS ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
8279
8270
  ), animatedRef;
8280
8271
  if (shouldUseAnimation) {
8281
8272
  var useStyleEmitter = animationDriver != null && animationDriver.avoidReRenders ? function(listener) {
@@ -8316,7 +8307,7 @@ var require_createComponent_native = __commonJS({
8316
8307
  });
8317
8308
  };
8318
8309
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8319
- if (state.unmounted === !0 && hasEnterStyle) {
8310
+ if (stateRef.current.nextComponentState = void 0, state.unmounted === !0 && hasEnterStyle) {
8320
8311
  setStateShallow({
8321
8312
  unmounted: "should-enter"
8322
8313
  });
@@ -8324,8 +8315,7 @@ var require_createComponent_native = __commonJS({
8324
8315
  }
8325
8316
  var tm;
8326
8317
  if (state.unmounted) {
8327
- var _config_animations2, _animationDriver_supportsCSSVars;
8328
- if (((_animationDriver_supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars) !== null && _animationDriver_supportsCSSVars !== void 0 ? _animationDriver_supportsCSSVars : !(config == null || (_config_animations2 = config.animations) === null || _config_animations2 === void 0) && _config_animations2.supportsCSSVars) || import_constants4.isAndroid) return tm = setTimeout(function() {
8318
+ if (animationDriver != null && animationDriver.supportsCSS || import_constants4.isAndroid) return tm = setTimeout(function() {
8329
8319
  setStateShallow({
8330
8320
  unmounted: !1
8331
8321
  });
@@ -10847,7 +10837,7 @@ var require_TamaguiProvider_native = __commonJS({
10847
10837
  }
10848
10838
  });
10849
10839
  module2.exports = __toCommonJS2(TamaguiProvider_exports);
10850
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native14(), 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();
10840
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native14(), 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(), import_insertStyleRule = require_insertStyleRule_native();
10851
10841
  function TamaguiProvider2(param) {
10852
10842
  var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
10853
10843
  import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
@@ -10861,7 +10851,7 @@ var require_TamaguiProvider_native = __commonJS({
10861
10851
  config,
10862
10852
  disableInjectCSS
10863
10853
  ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
10864
- (0, import_useMedia.updateMediaListeners)();
10854
+ (0, import_insertStyleRule.stopAccumulatingRules)(), (0, import_useMedia.updateMediaListeners)();
10865
10855
  }, []);
10866
10856
  var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
10867
10857
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
@@ -12777,49 +12767,51 @@ var require_index_native19 = __commonJS({
12777
12767
  return cb();
12778
12768
  }), queuedUpdates.clear()));
12779
12769
  }
12770
+ var expectedFrameTime = 16.67, numDroppedFramesUntilPause = 10;
12780
12771
  if (import_constants4.isClient && rAF) {
12781
12772
  layoutOnAnimationFrame = function() {
12782
12773
  var now = Date.now(), timeSinceLastFrame = now - lastFrameAt;
12783
- if (lastFrameAt = now, strategy !== "off") {
12784
- var expectedFrameTime = 16.67, hasRecentSyncWork = timeSinceLastFrame > expectedFrameTime * numDroppedFramesUntilPause;
12774
+ if (lastFrameAt = now, frameCount < runEveryXFrames) {
12775
+ frameCount++, rAF(layoutOnAnimationFrame);
12776
+ return;
12777
+ }
12778
+ if (frameCount = 0, strategy !== "off") {
12779
+ var hasRecentSyncWork = timeSinceLastFrame > expectedFrameTime * numDroppedFramesUntilPause;
12785
12780
  hasRecentSyncWork || Nodes.forEach(function(node) {
12786
12781
  updateLayoutIfChanged(node, lastFrameAt);
12787
12782
  });
12788
12783
  }
12789
12784
  rAF(layoutOnAnimationFrame);
12790
- }, layoutOnAnimationFrame2 = layoutOnAnimationFrame, lastFrameAt = Date.now(), numDroppedFramesUntilPause = 2;
12785
+ }, layoutOnAnimationFrame2 = layoutOnAnimationFrame, lastFrameAt = Date.now();
12791
12786
  async function updateLayoutIfChanged(node, frameId) {
12792
- var parentNode = node.parentElement, nodeRect, parentRect;
12793
- if (strategy === "async") {
12794
- var [nr, pr] = await Promise.all([
12795
- getBoundingClientRectAsync(node),
12796
- getBoundingClientRectAsync(parentNode)
12797
- ]);
12798
- if (frameId !== lastFrameAt) return;
12799
- nodeRect = nr, parentRect = pr;
12800
- } else nodeRect = node.getBoundingClientRect(), parentRect = parentNode == null ? void 0 : parentNode.getBoundingClientRect();
12801
- if (parentRect) {
12802
- var onLayout = LayoutHandlers.get(node);
12803
- if (typeof onLayout == "function") {
12804
- var cachedRect = NodeRectCache.get(node), cachedParentRect = parentNode ? NodeRectCache.get(parentNode) : null;
12787
+ var onLayout = LayoutHandlers.get(node);
12788
+ if (typeof onLayout == "function") {
12789
+ var parentNode = node.parentElement;
12790
+ if (parentNode) {
12791
+ var nodeRect, parentRect;
12792
+ if (strategy === "async") {
12793
+ var [nr, pr] = await Promise.all([
12794
+ getBoundingClientRectAsync(node),
12795
+ getBoundingClientRectAsync(parentNode)
12796
+ ]);
12797
+ if (frameId !== lastFrameAt) return;
12798
+ nodeRect = nr, parentRect = pr;
12799
+ } else nodeRect = node.getBoundingClientRect(), parentRect = parentNode.getBoundingClientRect();
12800
+ var cachedRect = NodeRectCache.get(node), cachedParentRect = NodeRectCache.get(parentNode);
12805
12801
  if (!cachedRect || // has changed one rect
12806
12802
  !(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect))) {
12807
- if (NodeRectCache.set(node, nodeRect), parentRect && parentNode && ParentRectCache.set(parentNode, parentRect), avoidUpdates) {
12808
- var event = getElementLayoutEvent(nodeRect, parentRect);
12809
- queuedUpdates.set(node, function() {
12810
- return onLayout(event);
12811
- });
12812
- } else if (strategy !== "async") {
12813
- var event1 = getElementLayoutEvent(nodeRect, parentRect);
12814
- onLayout(event1);
12815
- }
12803
+ NodeRectCache.set(node, nodeRect), ParentRectCache.set(parentNode, parentRect);
12804
+ var event = getElementLayoutEvent(nodeRect, parentRect);
12805
+ avoidUpdates ? queuedUpdates.set(node, function() {
12806
+ return onLayout(event);
12807
+ }) : onLayout(event);
12816
12808
  }
12817
12809
  }
12818
12810
  }
12819
12811
  }
12820
- rAF(layoutOnAnimationFrame);
12812
+ rAF(layoutOnAnimationFrame), frameCount = 0, runEveryXFrames = 6;
12821
12813
  }
12822
- var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt, numDroppedFramesUntilPause, getElementLayoutEvent = function(nodeRect, parentRect) {
12814
+ var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt, frameCount, runEveryXFrames, getElementLayoutEvent = function(nodeRect, parentRect) {
12823
12815
  return {
12824
12816
  nativeEvent: {
12825
12817
  layout: getRelativeDimensions(nodeRect, parentRect),
@@ -17861,7 +17853,7 @@ var require_SheetImplementationCustom_native = __commonJS({
17861
17853
  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, {
17862
17854
  onOverlayComponent: setOverlayComponent
17863
17855
  }), { 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() {
17864
- if (animationDriver.supportsCSSVars) return {};
17856
+ if (animationDriver.supportsCSS) return {};
17865
17857
  var [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [
17866
17858
  animation
17867
17859
  ] : [];
@@ -30187,6 +30179,8 @@ EnsureFlexed.isVisuallyHidden = !0;
30187
30179
  var import_core5 = __toESM(require_index_native20()), import_stacks = __toESM(require_index_native24()), Fieldset = (0, import_core5.styled)(import_stacks.YStack, {
30188
30180
  name: "Fieldset",
30189
30181
  tag: "fieldset",
30182
+ // remove browser default styling
30183
+ borderWidth: 0,
30190
30184
  variants: {
30191
30185
  horizontal: {
30192
30186
  true: {