tamagui 1.129.11 → 1.129.12-1751358691172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/views/Fieldset.cjs +2 -0
- package/dist/cjs/views/Fieldset.js +2 -0
- package/dist/cjs/views/Fieldset.js.map +1 -1
- package/dist/cjs/views/Fieldset.native.js +2 -0
- package/dist/cjs/views/Fieldset.native.js.map +2 -2
- package/dist/esm/views/Fieldset.js +2 -0
- package/dist/esm/views/Fieldset.js.map +1 -1
- package/dist/esm/views/Fieldset.mjs +2 -0
- package/dist/esm/views/Fieldset.mjs.map +1 -1
- package/dist/esm/views/Fieldset.native.js +2 -0
- package/dist/esm/views/Fieldset.native.js.map +1 -1
- package/dist/jsx/views/Fieldset.js +2 -0
- package/dist/jsx/views/Fieldset.js.map +1 -1
- package/dist/jsx/views/Fieldset.mjs +2 -0
- package/dist/jsx/views/Fieldset.mjs.map +1 -1
- package/dist/jsx/views/Fieldset.native.js +2 -0
- package/dist/jsx/views/Fieldset.native.js.map +2 -2
- package/dist/native.js +99 -117
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +92 -84
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
- package/src/views/Fieldset.tsx +3 -0
- package/types/views/Fieldset.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -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
|
|
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
|
|
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 (
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
var
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 = {
|
|
@@ -7603,7 +7614,7 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7603
7614
|
});
|
|
7604
7615
|
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
7605
7616
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_helpers = require_index_native7();
|
|
7606
|
-
function getStyleTags(styles
|
|
7617
|
+
function getStyleTags(styles) {
|
|
7607
7618
|
import_constants4.IS_REACT_19;
|
|
7608
7619
|
}
|
|
7609
7620
|
}
|
|
@@ -7792,14 +7803,14 @@ var require_useComponentState_native = __commonJS({
|
|
|
7792
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) {
|
|
7793
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);
|
|
7794
7805
|
stateRef.current || (stateRef.current = {});
|
|
7795
|
-
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)),
|
|
7806
|
+
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
7796
7807
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
7797
7808
|
var willBeAnimatedClient = function() {
|
|
7798
7809
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
7799
7810
|
return !!(next || curStateRef.hasAnimated);
|
|
7800
7811
|
}(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
|
|
7801
7812
|
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) || !
|
|
7813
|
+
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
7814
|
// this is just for a better ux, supports css variables for light/dark, media queries, etc
|
|
7804
7815
|
disableClassName, initialState = shouldEnter ? (
|
|
7805
7816
|
// on the very first render we switch all spring animation drivers to css rendering
|
|
@@ -7813,7 +7824,9 @@ var require_useComponentState_native = __commonJS({
|
|
|
7813
7824
|
var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
|
|
7814
7825
|
...states[0],
|
|
7815
7826
|
[props.forceStyle]: !0
|
|
7816
|
-
} : states[0], setState = states[1]
|
|
7827
|
+
} : states[0], setState = states[1];
|
|
7828
|
+
stateRef.current.nextComponentState && (Object.assign(state, stateRef.current.nextComponentState), stateRef.current.nextComponentState = void 0);
|
|
7829
|
+
var isAnimated = willBeAnimated;
|
|
7817
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(_) {
|
|
7818
7831
|
return {
|
|
7819
7832
|
...state
|
|
@@ -7828,7 +7841,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7828
7841
|
}
|
|
7829
7842
|
var noClass = !import_constants4.isWeb || !!props.forceStyle || isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles);
|
|
7830
7843
|
if (import_constants4.isWeb && (!import_constants4.isServer || isHydrated)) {
|
|
7831
|
-
var isAnimatedAndHydrated = isAnimated && !
|
|
7844
|
+
var isAnimatedAndHydrated = isAnimated && !supportsCSS, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
|
|
7832
7845
|
(isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0);
|
|
7833
7846
|
}
|
|
7834
7847
|
if (groupName && !curStateRef.group) {
|
|
@@ -7888,7 +7901,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7888
7901
|
noClass,
|
|
7889
7902
|
state,
|
|
7890
7903
|
stateRef,
|
|
7891
|
-
|
|
7904
|
+
supportsCSS,
|
|
7892
7905
|
willBeAnimated,
|
|
7893
7906
|
willBeAnimatedClient
|
|
7894
7907
|
};
|
|
@@ -8121,18 +8134,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8121
8134
|
});
|
|
8122
8135
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8123
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();
|
|
8124
|
-
|
|
8125
|
-
|
|
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 = {
|
|
8137
|
+
if (0) var cancelTouches;
|
|
8138
|
+
var BaseText, BaseView, hasSetupBaseViews = !1, lastInteractionWasKeyboard = {
|
|
8136
8139
|
value: !1
|
|
8137
8140
|
};
|
|
8138
8141
|
import_constants4.isWeb && globalThis.document && (document.addEventListener("keydown", function() {
|
|
@@ -8184,7 +8187,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8184
8187
|
...styledContextProps
|
|
8185
8188
|
} : defaultProps, props = propsIn;
|
|
8186
8189
|
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,
|
|
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;
|
|
8188
8191
|
animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
|
|
8189
8192
|
// "needsWebStyles" basically with motion we just animate a plain div, but
|
|
8190
8193
|
// we still have animated.View/Text for Sheet which wants to control
|
|
@@ -8210,7 +8213,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8210
8213
|
(0, import_createVariable.setDidGetVariableValue)(!1);
|
|
8211
8214
|
var resolveValues = (
|
|
8212
8215
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
8213
|
-
isAnimated && !
|
|
8216
|
+
isAnimated && !supportsCSS || isHOC && state.unmounted == !1 && hasAnimationProp ? "value" : "auto"
|
|
8214
8217
|
), styleProps = {
|
|
8215
8218
|
mediaState: mediaState3,
|
|
8216
8219
|
noClass,
|
|
@@ -8235,7 +8238,9 @@ var require_createComponent_native = __commonJS({
|
|
|
8235
8238
|
var updatedState = {
|
|
8236
8239
|
...state,
|
|
8237
8240
|
...next
|
|
8238
|
-
}
|
|
8241
|
+
};
|
|
8242
|
+
stateRef.current.nextComponentState = updatedState;
|
|
8243
|
+
var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
8239
8244
|
styleListener(nextStyles.style);
|
|
8240
8245
|
} else ogSetStateShallow(next);
|
|
8241
8246
|
};
|
|
@@ -8275,7 +8280,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8275
8280
|
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), tagProp && elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
8276
8281
|
var animationStyles, shouldUseAnimation = (
|
|
8277
8282
|
// if it supports css vars we run it on server too to get matching initial style
|
|
8278
|
-
(
|
|
8283
|
+
(supportsCSS ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
|
|
8279
8284
|
), animatedRef;
|
|
8280
8285
|
if (shouldUseAnimation) {
|
|
8281
8286
|
var useStyleEmitter = animationDriver != null && animationDriver.avoidReRenders ? function(listener) {
|
|
@@ -8324,8 +8329,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8324
8329
|
}
|
|
8325
8330
|
var tm;
|
|
8326
8331
|
if (state.unmounted) {
|
|
8327
|
-
|
|
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() {
|
|
8332
|
+
if (animationDriver != null && animationDriver.supportsCSS || import_constants4.isAndroid) return tm = setTimeout(function() {
|
|
8329
8333
|
setStateShallow({
|
|
8330
8334
|
unmounted: !1
|
|
8331
8335
|
});
|
|
@@ -10847,7 +10851,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10847
10851
|
}
|
|
10848
10852
|
});
|
|
10849
10853
|
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();
|
|
10854
|
+
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
10855
|
function TamaguiProvider2(param) {
|
|
10852
10856
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10853
10857
|
import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -10861,7 +10865,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10861
10865
|
config,
|
|
10862
10866
|
disableInjectCSS
|
|
10863
10867
|
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10864
|
-
(0, import_useMedia.updateMediaListeners)();
|
|
10868
|
+
(0, import_insertStyleRule.stopAccumulatingRules)(), (0, import_useMedia.updateMediaListeners)();
|
|
10865
10869
|
}, []);
|
|
10866
10870
|
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
10867
10871
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -12777,49 +12781,51 @@ var require_index_native19 = __commonJS({
|
|
|
12777
12781
|
return cb();
|
|
12778
12782
|
}), queuedUpdates.clear()));
|
|
12779
12783
|
}
|
|
12784
|
+
var expectedFrameTime = 16.67, numDroppedFramesUntilPause = 10;
|
|
12780
12785
|
if (import_constants4.isClient && rAF) {
|
|
12781
12786
|
layoutOnAnimationFrame = function() {
|
|
12782
12787
|
var now = Date.now(), timeSinceLastFrame = now - lastFrameAt;
|
|
12783
|
-
if (lastFrameAt = now,
|
|
12784
|
-
|
|
12788
|
+
if (lastFrameAt = now, frameCount < runEveryXFrames) {
|
|
12789
|
+
frameCount++, rAF(layoutOnAnimationFrame);
|
|
12790
|
+
return;
|
|
12791
|
+
}
|
|
12792
|
+
if (frameCount = 0, strategy !== "off") {
|
|
12793
|
+
var hasRecentSyncWork = timeSinceLastFrame > expectedFrameTime * numDroppedFramesUntilPause;
|
|
12785
12794
|
hasRecentSyncWork || Nodes.forEach(function(node) {
|
|
12786
12795
|
updateLayoutIfChanged(node, lastFrameAt);
|
|
12787
12796
|
});
|
|
12788
12797
|
}
|
|
12789
12798
|
rAF(layoutOnAnimationFrame);
|
|
12790
|
-
}, layoutOnAnimationFrame2 = layoutOnAnimationFrame, lastFrameAt = Date.now()
|
|
12799
|
+
}, layoutOnAnimationFrame2 = layoutOnAnimationFrame, lastFrameAt = Date.now();
|
|
12791
12800
|
async function updateLayoutIfChanged(node, frameId) {
|
|
12792
|
-
var
|
|
12793
|
-
if (
|
|
12794
|
-
var
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12801
|
+
var onLayout = LayoutHandlers.get(node);
|
|
12802
|
+
if (typeof onLayout == "function") {
|
|
12803
|
+
var parentNode = node.parentElement;
|
|
12804
|
+
if (parentNode) {
|
|
12805
|
+
var nodeRect, parentRect;
|
|
12806
|
+
if (strategy === "async") {
|
|
12807
|
+
var [nr, pr] = await Promise.all([
|
|
12808
|
+
getBoundingClientRectAsync(node),
|
|
12809
|
+
getBoundingClientRectAsync(parentNode)
|
|
12810
|
+
]);
|
|
12811
|
+
if (frameId !== lastFrameAt) return;
|
|
12812
|
+
nodeRect = nr, parentRect = pr;
|
|
12813
|
+
} else nodeRect = node.getBoundingClientRect(), parentRect = parentNode.getBoundingClientRect();
|
|
12814
|
+
var cachedRect = NodeRectCache.get(node), cachedParentRect = NodeRectCache.get(parentNode);
|
|
12805
12815
|
if (!cachedRect || // has changed one rect
|
|
12806
12816
|
!(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect))) {
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
} else if (strategy !== "async") {
|
|
12813
|
-
var event1 = getElementLayoutEvent(nodeRect, parentRect);
|
|
12814
|
-
onLayout(event1);
|
|
12815
|
-
}
|
|
12817
|
+
NodeRectCache.set(node, nodeRect), ParentRectCache.set(parentNode, parentRect);
|
|
12818
|
+
var event = getElementLayoutEvent(nodeRect, parentRect);
|
|
12819
|
+
avoidUpdates ? queuedUpdates.set(node, function() {
|
|
12820
|
+
return onLayout(event);
|
|
12821
|
+
}) : onLayout(event);
|
|
12816
12822
|
}
|
|
12817
12823
|
}
|
|
12818
12824
|
}
|
|
12819
12825
|
}
|
|
12820
|
-
rAF(layoutOnAnimationFrame);
|
|
12826
|
+
rAF(layoutOnAnimationFrame), frameCount = 0, runEveryXFrames = 6;
|
|
12821
12827
|
}
|
|
12822
|
-
var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt,
|
|
12828
|
+
var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt, frameCount, runEveryXFrames, getElementLayoutEvent = function(nodeRect, parentRect) {
|
|
12823
12829
|
return {
|
|
12824
12830
|
nativeEvent: {
|
|
12825
12831
|
layout: getRelativeDimensions(nodeRect, parentRect),
|
|
@@ -17861,7 +17867,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17861
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, {
|
|
17862
17868
|
onOverlayComponent: setOverlayComponent
|
|
17863
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() {
|
|
17864
|
-
if (animationDriver.
|
|
17870
|
+
if (animationDriver.supportsCSS) return {};
|
|
17865
17871
|
var [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [
|
|
17866
17872
|
animation
|
|
17867
17873
|
] : [];
|
|
@@ -30187,6 +30193,8 @@ EnsureFlexed.isVisuallyHidden = !0;
|
|
|
30187
30193
|
var import_core5 = __toESM(require_index_native20()), import_stacks = __toESM(require_index_native24()), Fieldset = (0, import_core5.styled)(import_stacks.YStack, {
|
|
30188
30194
|
name: "Fieldset",
|
|
30189
30195
|
tag: "fieldset",
|
|
30196
|
+
// remove browser default styling
|
|
30197
|
+
borderWidth: 0,
|
|
30190
30198
|
variants: {
|
|
30191
30199
|
horizontal: {
|
|
30192
30200
|
true: {
|