@vellira-ui/react-native 2.54.0 → 2.55.0
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/index.js +7 -5
- package/package.json +14 -1
package/dist/index.js
CHANGED
|
@@ -5159,10 +5159,10 @@ function InternalArrow() {
|
|
|
5159
5159
|
left: "right"
|
|
5160
5160
|
}[side];
|
|
5161
5161
|
const crossAxisStyle = side === "left" || side === "right" ? {
|
|
5162
|
-
top:
|
|
5162
|
+
top: tooltip.arrowPosition.top ?? 0,
|
|
5163
5163
|
marginTop: -size / 2
|
|
5164
5164
|
} : {
|
|
5165
|
-
left:
|
|
5165
|
+
left: tooltip.arrowPosition.left ?? 0,
|
|
5166
5166
|
marginLeft: -size / 2
|
|
5167
5167
|
};
|
|
5168
5168
|
return /* @__PURE__ */ jsx(View, {
|
|
@@ -5202,7 +5202,7 @@ const TooltipRoot = ({ children, open: openProp, defaultOpen = false, onOpenChan
|
|
|
5202
5202
|
defaultValue: defaultOpen,
|
|
5203
5203
|
onChange: onOpenChange
|
|
5204
5204
|
});
|
|
5205
|
-
const { position, updatePosition, onFloatingLayout } = useNativeFloatingPosition(placement, offset);
|
|
5205
|
+
const { position, arrowPosition, placement: resolvedPlacement, updatePosition, onFloatingLayout } = useNativeFloatingPosition(placement, offset);
|
|
5206
5206
|
const clearCloseTimer = useCallback(() => {
|
|
5207
5207
|
if (closeTimerRef.current) {
|
|
5208
5208
|
clearTimeout(closeTimerRef.current);
|
|
@@ -5261,8 +5261,9 @@ const TooltipRoot = ({ children, open: openProp, defaultOpen = false, onOpenChan
|
|
|
5261
5261
|
contentId,
|
|
5262
5262
|
open,
|
|
5263
5263
|
disabled,
|
|
5264
|
-
placement,
|
|
5264
|
+
placement: resolvedPlacement,
|
|
5265
5265
|
position,
|
|
5266
|
+
arrowPosition,
|
|
5266
5267
|
triggerRef,
|
|
5267
5268
|
setOpen,
|
|
5268
5269
|
show,
|
|
@@ -5271,13 +5272,14 @@ const TooltipRoot = ({ children, open: openProp, defaultOpen = false, onOpenChan
|
|
|
5271
5272
|
requestOutsideClose: dismiss.requestOutsideClose,
|
|
5272
5273
|
onFloatingLayout
|
|
5273
5274
|
}), [
|
|
5275
|
+
arrowPosition,
|
|
5274
5276
|
contentId,
|
|
5275
5277
|
disabled,
|
|
5276
5278
|
dismiss.requestClose,
|
|
5277
5279
|
dismiss.requestOutsideClose,
|
|
5278
5280
|
hide,
|
|
5279
5281
|
open,
|
|
5280
|
-
|
|
5282
|
+
resolvedPlacement,
|
|
5281
5283
|
position,
|
|
5282
5284
|
setOpen,
|
|
5283
5285
|
show,
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vellira-ui/react-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.55.0",
|
|
4
4
|
"description": "React Native components for Vellira Design System",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vellira",
|
|
7
|
+
"react-native",
|
|
8
|
+
"ui",
|
|
9
|
+
"components",
|
|
10
|
+
"design-system",
|
|
11
|
+
"typescript",
|
|
12
|
+
"mobile"
|
|
13
|
+
],
|
|
5
14
|
"author": "Roman Bakurov",
|
|
6
15
|
"license": "MIT",
|
|
7
16
|
"repository": {
|
|
@@ -9,6 +18,10 @@
|
|
|
9
18
|
"url": "git+https://github.com/vellira-dev/vellira.git",
|
|
10
19
|
"directory": "packages/react-native"
|
|
11
20
|
},
|
|
21
|
+
"homepage": "https://vellira.dev",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/vellira-dev/vellira/issues"
|
|
24
|
+
},
|
|
12
25
|
"private": false,
|
|
13
26
|
"type": "module",
|
|
14
27
|
"sideEffects": false,
|