tamagui 1.79.10 → 1.79.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +7 -16
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +7 -16
- package/dist/test.native.js.map +1 -1
- package/package.json +52 -52
package/dist/native.js
CHANGED
|
@@ -11194,27 +11194,18 @@ var require_Dialog_native = __commonJS({
|
|
|
11194
11194
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
11195
11195
|
var CLOSE_NAME = "DialogClose", DialogCloseFrame = (0, import_core13.styled)(import_core13.View, {
|
|
11196
11196
|
name: CLOSE_NAME,
|
|
11197
|
-
tag: "button"
|
|
11198
|
-
variants: {
|
|
11199
|
-
unstyled: {
|
|
11200
|
-
false: {
|
|
11201
|
-
zIndex: 100
|
|
11202
|
-
}
|
|
11203
|
-
}
|
|
11204
|
-
},
|
|
11205
|
-
defaultVariants: {
|
|
11206
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
11207
|
-
}
|
|
11197
|
+
tag: "button"
|
|
11208
11198
|
}), DialogClose = DialogCloseFrame.styleable(
|
|
11209
11199
|
(props, forwardedRef) => {
|
|
11210
11200
|
let { __scopeDialog, displayWhenAdapted, ...closeProps } = props, context = useDialogContext(CLOSE_NAME, __scopeDialog, {
|
|
11211
11201
|
warn: !1,
|
|
11212
11202
|
fallback: {}
|
|
11213
|
-
});
|
|
11214
|
-
return
|
|
11203
|
+
}), isSheet = useShowDialogSheet(context), isInsideButton = React2.useContext(import_stacks3.ButtonNestingContext);
|
|
11204
|
+
return isSheet && !displayWhenAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
11215
11205
|
DialogCloseFrame,
|
|
11216
11206
|
{
|
|
11217
11207
|
accessibilityLabel: "Dialog Close",
|
|
11208
|
+
tag: isInsideButton ? "span" : "button",
|
|
11218
11209
|
...closeProps,
|
|
11219
11210
|
ref: forwardedRef,
|
|
11220
11211
|
onPress: (0, import_core13.composeEventHandlers)(
|
|
@@ -17147,8 +17138,8 @@ var require_helpers_native2 = __commonJS({
|
|
|
17147
17138
|
return distances.indexOf(closestDistance);
|
|
17148
17139
|
}
|
|
17149
17140
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
17150
|
-
let
|
|
17151
|
-
return (
|
|
17141
|
+
let quarterWidth = width / 4, offset2 = linearScale([0, 50], [0, quarterWidth]);
|
|
17142
|
+
return (quarterWidth - offset2(left) * direction) * direction;
|
|
17152
17143
|
}
|
|
17153
17144
|
function getStepsBetweenValues(values) {
|
|
17154
17145
|
return values.slice(0, -1).map((value, index) => values[index + 1] - value);
|
|
@@ -19105,7 +19096,7 @@ var require_index_native67 = __commonJS({
|
|
|
19105
19096
|
}, debounced;
|
|
19106
19097
|
}
|
|
19107
19098
|
var defaultOpts = { leading: !1 };
|
|
19108
|
-
function useDebounce(fn, wait, options = defaultOpts, mountArgs = []) {
|
|
19099
|
+
function useDebounce(fn, wait, options = defaultOpts, mountArgs = [fn]) {
|
|
19109
19100
|
let dbEffect = (0, import_react2.useRef)(null);
|
|
19110
19101
|
return (0, import_react2.useEffect)(() => () => {
|
|
19111
19102
|
var _a;
|