tamagui 1.95.1 → 1.95.3
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/Input.js.map +1 -1
- package/dist/cjs/views/Input.native.js +1 -14
- package/dist/cjs/views/Input.native.js.map +2 -2
- package/dist/esm/views/Input.js.map +1 -1
- package/dist/esm/views/Input.native.js +3 -16
- package/dist/esm/views/Input.native.js.map +2 -2
- package/dist/jsx/views/Input.js.map +1 -1
- package/dist/jsx/views/Input.native.js +3 -16
- package/dist/jsx/views/Input.native.js.map +2 -2
- package/dist/native.js +11 -23
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +11 -23
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/src/views/Input.tsx +2 -16
- package/types/views/Input.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -23574,14 +23574,14 @@ var require_registerFocusable_native = __commonJS({
|
|
|
23574
23574
|
return focusFocusable;
|
|
23575
23575
|
},
|
|
23576
23576
|
registerFocusable: function() {
|
|
23577
|
-
return
|
|
23577
|
+
return registerFocusable2;
|
|
23578
23578
|
},
|
|
23579
23579
|
unregisterFocusable: function() {
|
|
23580
23580
|
return unregisterFocusable;
|
|
23581
23581
|
}
|
|
23582
23582
|
});
|
|
23583
23583
|
module2.exports = __toCommonJS2(registerFocusable_native_exports);
|
|
23584
|
-
var InputsMap = /* @__PURE__ */ new Map(),
|
|
23584
|
+
var InputsMap = /* @__PURE__ */ new Map(), registerFocusable2 = function(id, input) {
|
|
23585
23585
|
return InputsMap.set(id, input), function() {
|
|
23586
23586
|
InputsMap.delete(id);
|
|
23587
23587
|
};
|
|
@@ -25354,7 +25354,7 @@ var require_use_sync_external_store_shim_native_development = __commonJS({
|
|
|
25354
25354
|
function is(x, y) {
|
|
25355
25355
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
25356
25356
|
}
|
|
25357
|
-
var objectIs = typeof Object.is == "function" ? Object.is : is, useState = React2.useState,
|
|
25357
|
+
var objectIs = typeof Object.is == "function" ? Object.is : is, useState = React2.useState, useEffect2 = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue2 = React2.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1;
|
|
25358
25358
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
25359
25359
|
didWarnOld18Alpha || React2.startTransition !== void 0 && (didWarnOld18Alpha = !0, error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
25360
25360
|
var value = getSnapshot();
|
|
@@ -25376,7 +25376,7 @@ var require_use_sync_external_store_shim_native_development = __commonJS({
|
|
|
25376
25376
|
subscribe,
|
|
25377
25377
|
value,
|
|
25378
25378
|
getSnapshot
|
|
25379
|
-
]),
|
|
25379
|
+
]), useEffect2(function() {
|
|
25380
25380
|
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
25381
25381
|
inst
|
|
25382
25382
|
});
|
|
@@ -25424,7 +25424,7 @@ var require_with_selector_development = __commonJS({
|
|
|
25424
25424
|
function is(x, y) {
|
|
25425
25425
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
25426
25426
|
}
|
|
25427
|
-
var objectIs = typeof Object.is == "function" ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef3 = React2.useRef,
|
|
25427
|
+
var objectIs = typeof Object.is == "function" ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef3 = React2.useRef, useEffect2 = React2.useEffect, useMemo = React2.useMemo, useDebugValue2 = React2.useDebugValue;
|
|
25428
25428
|
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
25429
25429
|
var instRef = useRef3(null), inst;
|
|
25430
25430
|
instRef.current === null ? (inst = {
|
|
@@ -25463,7 +25463,7 @@ var require_with_selector_development = __commonJS({
|
|
|
25463
25463
|
selector,
|
|
25464
25464
|
isEqual
|
|
25465
25465
|
]), getSelection = _useMemo[0], getServerSelection = _useMemo[1], value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
25466
|
-
return
|
|
25466
|
+
return useEffect2(function() {
|
|
25467
25467
|
inst.hasValue = !0, inst.value = value;
|
|
25468
25468
|
}, [
|
|
25469
25469
|
value
|
|
@@ -29646,7 +29646,7 @@ var require_Popper_native = __commonJS({
|
|
|
29646
29646
|
strategy,
|
|
29647
29647
|
props
|
|
29648
29648
|
]), _React_useState = _sliced_to_array(React2.useState(!0), 2), needsMeasure = _React_useState[0], setNeedsMeasure = _React_useState[1];
|
|
29649
|
-
|
|
29649
|
+
React2.useEffect(function() {
|
|
29650
29650
|
(x || y) && setNeedsMeasure(!1);
|
|
29651
29651
|
}, [
|
|
29652
29652
|
x,
|
|
@@ -29655,8 +29655,7 @@ var require_Popper_native = __commonJS({
|
|
|
29655
29655
|
isMounted && update();
|
|
29656
29656
|
}, [
|
|
29657
29657
|
isMounted
|
|
29658
|
-
])
|
|
29659
|
-
return null;
|
|
29658
|
+
]);
|
|
29660
29659
|
var show = !0, setShow = void 0;
|
|
29661
29660
|
if (import_constants4.isAndroid) {
|
|
29662
29661
|
var ref;
|
|
@@ -29668,6 +29667,8 @@ var require_Popper_native = __commonJS({
|
|
|
29668
29667
|
y
|
|
29669
29668
|
]);
|
|
29670
29669
|
}
|
|
29670
|
+
if (!isMounted)
|
|
29671
|
+
return null;
|
|
29671
29672
|
var frameProps = _object_spread9({
|
|
29672
29673
|
ref: contentRefs,
|
|
29673
29674
|
x: x || 0,
|
|
@@ -37872,20 +37873,7 @@ var defaultStyles = _object_spread_props6(_object_spread6({
|
|
|
37872
37873
|
}
|
|
37873
37874
|
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
37874
37875
|
var ref = (0, import_react2.useRef)(null), composedRefs = (0, import_core7.useComposedRefs)(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
37875
|
-
return (0,
|
|
37876
|
-
if (props.id && !props.disabled)
|
|
37877
|
-
return (0, import_focusable.registerFocusable)(props.id, {
|
|
37878
|
-
focusAndSelect: function() {
|
|
37879
|
-
var _ref_current;
|
|
37880
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
|
|
37881
|
-
},
|
|
37882
|
-
focus: function() {
|
|
37883
|
-
}
|
|
37884
|
-
});
|
|
37885
|
-
}, [
|
|
37886
|
-
props.id,
|
|
37887
|
-
props.disabled
|
|
37888
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputFrame, _object_spread6({}, props));
|
|
37876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputFrame, _object_spread6({}, props));
|
|
37889
37877
|
});
|
|
37890
37878
|
function useInputProps(props, ref) {
|
|
37891
37879
|
var _theme_placeholderColorProp, _theme_placeholderColor, theme = (0, import_core7.useTheme)(), _useFocusable = (0, import_focusable.useFocusable)({
|