@tamagui/core 1.74.8 → 1.74.10
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/getBaseViews.native.js +2 -1
- package/dist/cjs/getBaseViews.native.js.map +1 -1
- package/dist/cjs/index.js +16 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/index.native.js +30 -7
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/getBaseViews.native.js +2 -1
- package/dist/esm/getBaseViews.native.js.map +1 -1
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/index.native.js +30 -7
- package/dist/esm/index.native.js.map +2 -2
- package/dist/native.js +12 -11
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +12 -11
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
- package/src/getBaseViews.native.ts +1 -0
- package/src/{index.ts → index.tsx} +49 -18
- package/types/getBaseViews.native.d.ts +1 -0
- package/types/getBaseViews.native.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/native.js +0 -20
- package/dist/cjs/native.js.map +0 -6
package/dist/test.native.js
CHANGED
|
@@ -4731,7 +4731,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4731
4731
|
delayPressOut: viewProps.delayPressOut,
|
|
4732
4732
|
focusable: viewProps.focusable ?? !0,
|
|
4733
4733
|
minPressDuration: 0
|
|
4734
|
-
}), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow);
|
|
4734
|
+
}), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow, staticConfig);
|
|
4735
4735
|
let direction = props.spaceDirection || "both", content = !children || asChild ? children : spacedChildren({
|
|
4736
4736
|
separator,
|
|
4737
4737
|
children,
|
|
@@ -5544,9 +5544,9 @@ var require_setupReactNative_native = __commonJS({
|
|
|
5544
5544
|
});
|
|
5545
5545
|
module2.exports = __toCommonJS2(setupReactNative_exports);
|
|
5546
5546
|
function getReactNativeConfig(Component) {
|
|
5547
|
-
var _a, _b;
|
|
5547
|
+
var _a, _b, _c;
|
|
5548
5548
|
if (Component)
|
|
5549
|
-
return Component.
|
|
5549
|
+
return (_a = Component.propTypes) != null && _a.onTextInput || (_b = Component.propTypes) != null && _b.onChangeText ? RNConfigs.TextInput : Component.getSizeWithHeaders ? RNConfigs.Image : (_c = Component.propTypes) != null && _c.textBreakStrategy ? RNConfigs.Text : RNConfigs.default;
|
|
5550
5550
|
}
|
|
5551
5551
|
var RNConfigs = {
|
|
5552
5552
|
Image: {
|
|
@@ -5990,7 +5990,6 @@ var require_Text_native = __commonJS({
|
|
|
5990
5990
|
acceptsClassName: !0,
|
|
5991
5991
|
isText: !0,
|
|
5992
5992
|
defaultProps: {
|
|
5993
|
-
display: "flex",
|
|
5994
5993
|
suppressHighlighting: !0
|
|
5995
5994
|
},
|
|
5996
5995
|
inlineWhenUnflattened: /* @__PURE__ */ new Set(["fontFamily"]),
|
|
@@ -6514,13 +6513,15 @@ var Stack = import_web2.Stack, Text = import_web2.Text;
|
|
|
6514
6513
|
}
|
|
6515
6514
|
return viewProps;
|
|
6516
6515
|
},
|
|
6517
|
-
useEvents(viewProps, events, { pseudos }, setStateShallow) {
|
|
6518
|
-
{
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6516
|
+
useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
|
|
6517
|
+
if (!!(pseudos != null && pseudos.focusStyle) && (viewProps.onFocus = (0, import_web2.composeEventHandlers)(viewProps.onFocus, () => {
|
|
6518
|
+
setStateShallow({ focus: !0 });
|
|
6519
|
+
}), viewProps.onBlur = (0, import_web2.composeEventHandlers)(viewProps.onBlur, () => {
|
|
6520
|
+
setStateShallow({ focus: !1 });
|
|
6521
|
+
})), staticConfig.isInput)
|
|
6522
|
+
Object.assign(viewProps, events);
|
|
6523
|
+
else {
|
|
6524
|
+
events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
|
|
6524
6525
|
let pressability = usePressability(events || null);
|
|
6525
6526
|
if (events && events.onPress)
|
|
6526
6527
|
for (let key in pressability) {
|